if(!window.plus||window.plus&&!window.plus.isReady){var type=typeof window.plus;"function"==type||"object"==type?(window.plus.isReady=!0,navigator.plus=window.__html5plus__=window.plus):window.__html5plus__=window.plus=navigator.plus={isReady:!0}}function __adsfsdaf99dsafsd090dsfsd__(){var e=["plus","tools","bridge","Console","console","concat","slice","call","logLevel","apply","j","o","stringify","c","","error JSON.stringify()ing argument: ","prototype","toString","","length","string","exec","shift","push","%","%","unshift","join","","log","LOG","info","INFO","warn","WARN","error","ERROR","assert","ASSERT:","clear","clear","time","valueOf","timeEnd","Timer [",": ","ms]","format","logLevel"," ","debug","addEventListener","error","message","\rfilename:","filename","\rlineno:","lineno"],t=(window[e[0]][e[1]],window[e[0]]);function n(t,n){n=[t][e[5]]([][e[6]][e[7]](n)),logger[e[8]][e[9]](logger,n)}function i(t,n){try{switch(n){case e[10]:case e[11]:return JSON[e[12]](t);case e[13]:return e[14]}}catch(t){return e[15]+t}return null===t||void 0===t?Object[e[16]].toString[e[7]](t):t[e[17]]()}B=window[e[0]][e[2]],_LOGF=e[3],winConsole=window[e[4]],Timers={},logger={},logger[e[29]]=function(t){n(e[30],arguments)},logger[e[31]]=function(t){n(e[32],arguments)},logger[e[33]]=function(t){n(e[34],arguments)},logger[e[35]]=function(t){n(e[36],arguments)},logger[e[37]]=function(t){if(!t){var n=vformat([][e[6]][e[7]](arguments,1));throw logger[e[29]](e[38]+n),new Error(n)}},logger[e[39]]=function(){B[e[21]](_LOGF,e[40],0)},logger[e[41]]=function(t){Timers[t]=(new Date)[e[42]]()},logger[e[43]]=function(t){var n=Timers[t];if(n){var i=(new Date)[e[42]]()-n;logger[e[29]](e[44]+t+e[45]+i+e[46])}},logger[e[8]]=function(t){var n=[][e[6]][e[7]](arguments,1),i=logger[e[47]][e[9]](logger[e[47]],n);B[e[21]](_LOGF,e[48],[t,i])},logger[e[47]]=function(t,n){return function(t,n){if(null===t||void 0===t)return[e[18]];if(1==arguments[e[19]])return[t[e[17]]()];typeof t!=e[20]&&(t=t[e[17]]());for(var o=/(.*?)%(.)(.*)/,r=t,a=[];n[e[19]];){var c=o[e[21]](r);if(!c)break;var s=n[e[22]]();r=c[3],a[e[23]](c[1]),c[2]!=e[24]?a[e[23]](i(s,c[2])):(a[e[23]](e[24]),n[e[26]](s))}a[e[23]](r);var u=[][e[6]][e[7]](n);return u[e[26]](a[e[27]](e[14])),u}(arguments[0],[][e[6]][e[7]](arguments,1))[e[27]](e[49])},t[e[4]]={},t[e[4]][e[29]]=function(){},t[e[4]][e[31]]=function(){},t[e[4]][e[35]]=function(){},t[e[4]][e[33]]=function(){},t[e[4]][e[37]]=function(){},t[e[4]][e[39]]=function(){},t[e[4]][e[41]]=function(){},t[e[4]][e[43]]=function(){},t[e[1]][e[50]]&&(window[e[4]][e[29]]=logger[e[29]],window[e[4]][e[31]]=logger[e[31]],window[e[4]][e[35]]=logger[e[35]],window[e[4]][e[33]]=logger[e[33]],window[e[51]](e[52],function(t){var n=t[e[53]]+e[54]+t[e[55]]+e[56]+t[e[57]];window[e[4]][e[35]](n)}))}!function(e){var t=e.tools={__UUID__:0,UNKNOWN:-1,IOS:0,ANDROID:1,platform:-1,debug:!1,UUID:function(e){return e+this.__UUID__+++(new Date).valueOf()},extend:function(e,t){for(var n in t)e[n]=t[n]},typeName:function(e){return Object.prototype.toString.call(e).slice(8,-1)},isDate:function(e){return"Date"==t.typeName(e)},isArray:function(e){return"Array"==t.typeName(e)},isDebug:function(){return e.tools.debug},stringify:function(e){return window.JSON3?window.JSON3.stringify(e):JSON.stringify(e)},isNumber:function(e){return"number"==typeof e||e instanceof Number},getElementOffsetInWebview:function(e,t){for(var n=0,i=e;i;)n+=i[t],i=i.offsetParent;return n},getElementOffsetXInWebview:function(e){return t.getElementOffsetInWebview(e,"offsetLeft")},getElementOffsetYInWebview:function(e){return t.getElementOffsetInWebview(e,"offsetTop")},execJSfile:function(e){var t=document.createElement("script");t.type="text/javascript",t.src=e,function e(t){var n=document.head,i=document.body;n?n.insertBefore(t,n.firstChild):i?i.insertBefore(t,i.firstChild):setTimeout(function(){e(t)},100)}(t)},copyObjProp2Obj:function(e,t,n){var i=n instanceof Array;for(var o in t){var r=!0;if(i)for(var a=0;a-1&&(c.splice(t,1),0===c.length&&(n.exec(o,"stop",[]),r=!1))}var d={getCurrentAcceleration:function(e,t,n){var i=_(function(t){f(i),e(t)},function(e){f(i),t&&t(e)});c.push(i),r||l(-1)},watchAcceleration:function(e,n,o){var u=o&&o.frequency&&"number"==typeof o.frequency?o.frequency:500,d=i.UUID("watch"),h=_(function(){},function(e){f(h),n&&n(e)});return c.push(h),a[d]={timer:t.setInterval(function(){s&&e(s)},u),listeners:h},r?s&&e(s):l(u),d},clearWatch:function(e){e&&a[e]&&(t.clearInterval(a[e].timer),f(a[e].listeners),delete a[e])}};e.accelerometer=d}(this.plus,this),function(e){var t=(e=e).bridge,n=e.tools;e.audio={getRecorder:function(){var e={_Audio_UUID__:n.UUID("Record"),supportedFormats:["amr","3gp","aac"],supportedSamplerates:[44100,16e3,8e3],record:function(e,n,i){var o=t.callbackId(n,i);t.exec("Audio","RecorderExecMethod",["record",[this._Audio_UUID__,o,e]])},stop:function(){t.exec("Audio","RecorderExecMethod",["stop",[this._Audio_UUID__]])},pause:function(){t.exec("Audio","RecorderExecMethod",["pause",[this._Audio_UUID__]])},resume:function(){t.exec("Audio","RecorderExecMethod",["resume",[this._Audio_UUID__]])}};return n.IOS==n.platform&&(e.supportedFormats=["wav","aac","amr","mp3"]),e},createPlayer:function(e){var i={_Player_Param:e,_Audio_Player_UUID_:n.UUID("Player"),play:function(e,n){var i=t.callbackId(e,n);t.exec("Audio","AudioExecMethod",["play",[this._Audio_Player_UUID_,i]])},pause:function(){t.exec("Audio","AudioExecMethod",["pause",[this._Audio_Player_UUID_]])},resume:function(){t.exec("Audio","AudioExecMethod",["resume",[this._Audio_Player_UUID_]])},stop:function(){t.exec("Audio","AudioExecMethod",["stop",[this._Audio_Player_UUID_]])},seekTo:function(e){t.exec("Audio","AudioExecMethod",["seekTo",[this._Audio_Player_UUID_,e]])},getDuration:function(){return t.execSync2("Audio","AudioSyncExecMethod",["getDuration",[this._Audio_Player_UUID_]])},getPosition:function(){return t.execSync2("Audio","AudioSyncExecMethod",["getPosition",[this._Audio_Player_UUID_]])},setRoute:function(e){t.exec("Audio","AudioExecMethod",["setRoute",[this._Audio_Player_UUID_,e]])},setSessionCategory:function(e){t.exec("Audio","AudioExecMethod",["setSessionCategory",[this._Audio_Player_UUID_,e]])},isPaused:function(){return t.execSync2("Audio","AudioSyncExecMethod",["getPaused",[this._Audio_Player_UUID_]])},getBuffered:function(){return t.execSync2("Audio","AudioSyncExecMethod",["getBuffered",[this._Audio_Player_UUID_]])},getStyles:function(e){return t.execSync2("Audio","AudioSyncExecMethod",["getStyles",[this._Audio_Player_UUID_,e]])},setStyles:function(e){t.exec("Audio","AudioExecMethod",["setStyles",[this._Audio_Player_UUID_,e]])},addEventListener:function(e,n){var i=t.callbackId(n);t.exec("Audio","AudioExecMethod",["addEventListener",[this._Audio_Player_UUID_,e,i]])},removeEventListener:function(e){t.exec("Audio","AudioExecMethod",["removeEventListener",[this._Audio_Player_UUID_,e]])},close:function(){t.exec("Audio","AudioExecMethod",["close",[this._Audio_Player_UUID_]])}},o={};return"string"==typeof i._Player_Param?o.src=i._Player_Param:o=i._Player_Param,t.execSync("Audio","AudioSyncExecMethod",["CreatePlayer",[i._Audio_Player_UUID_,o]]),i},ROUTE_SPEAKER:0,ROUTE_EARPIECE:1}}(window.plus),function(e){var t="barcode",n=(e=e).tools,i=e.bridge,o={};function r(e,o,r,a,c,s){var u=this;u.IDENTITY=t,u.onmarked=null,u.onerror=null,u.isClose=!1,u.__uuid__=n.UUID("bc"),u.callbackId=null;var l=null;c||(c=u.__uuid__),this.callbackId=i.callbackId(function(e){"function"==typeof u.onmarked&&u.onmarked(e.type,e.message,e.file)},function(e){"function"==typeof u.onerror&&u.onerror(e)}),div=document.getElementById(e),null!=div&&void 0!=div&&(div.addEventListener("resize",function(){var e=[div.offsetLeft,div.offsetTop,div.offsetWidth,div.offsetHeight];i.exec(t,"resize",[e])},!1),l=[div.offsetLeft,div.offsetTop,div.offsetWidth,div.offsetHeight]);var _=!0;void 0==s||null==s||s||(_=!1),_&&i.exec(t,"Barcode",[this.__uuid__,this.callbackId,c,l,o,r,a])}var a=r.prototype;a.setStyle=function(e){this.isClose||i.exec(t,"setStyle",[this.__uuid__,e])},a.start=function(e){this.isClose||i.exec(t,"start",[this.__uuid__,e])},a.setFlash=function(e){this.isClose||i.exec(t,"setFlash",[this.__uuid__,e])},a.cancel=function(){this.isClose||i.exec(t,"cancel",[this.__uuid__])},a.close=function(){this.isClose||(i.exec(t,"close",[this.__uuid__]),this.isClose=!0)};var c={Barcode:r,create:function(t,n,i,r){var a=new e.barcode.Barcode(null,n,i,r,t,!0);return o[a.__uuid__]=a,o[a.__uuid__]},getBarcodeById:function(n){if(n&&"string"==typeof n){var r=i.execSync(t,"getBarcodeById",[n]);if(null!=r&&null!=r.uuid){if(o[r.uuid])return o[r.uuid];if(null!=r&&void 0!=r){var a=new e.barcode.Barcode(null,r.filters,r.options,r.autoDecodeCharset,n,!1);return a.__uuid__=r.uuid,i.exec(t,"addCallBack",[a.__uuid__,a.callbackId]),o[a.__uuid__]=a,a}return null}}},scan:function(e,n,o,r,a){var c="function"!=typeof n?null:function(e){n(e.type,e.message,e.file,e.charSet)},s="function"!=typeof o?null:function(e){o(e)},u=i.callbackId(c,s);i.exec(t,"scan",[u,e,r,a])},QR:0,EAN13:1,EAN8:2,AZTEC:3,DATAMATRIX:4,UPCA:5,UPCE:6,CODABAR:7,CODE39:8,CODE93:9,CODE128:10,ITF:11,MAXICODE:12,PDF417:13,RSS14:14,RSSEXPANDED:15};e.barcode=c}(window.plus),function(e){var t=(e=e).bridge,n="Cache";e.cache={clear:function(e){var i=t.callbackId(function(t){e&&e()},null);window.localStorage.clear(),window.sessionStorage.clear(),t.exec(n,"clear",[i])},calculate:function(e){var i=t.callbackId(function(t){e&&e(t)},null);t.exec(n,"calculate",[i])},setMaxSize:function(e){t.exec(n,"setMaxSize",[e])}}}(window.plus),function(e){var t,n=(e=e).bridge;function i(){this.index=1,this.__busy__=!1,this.supportedImageResolutions=[],this.supportedVideoResolutions=[],this.supportedImageFormats=[],this.supportedVideoFormats=[]}var o=i.prototype;o.captureImage=function(e,t,i){var o=this;if(!o.__busy__){var r="function"!=typeof e?null:function(t){o.__busy__=!1,e(t)},a="function"!=typeof t?null:function(e){o.__busy__=!1,t(e)},c=n.callbackId(r,a);i||(i={}),i.index||(i.index=this.index),n.exec("Camera","captureImage",[c,i])}},o.startVideoCapture=function(e,t,i){var o=this;if(!o.__busy__){var r="function"!=typeof e?null:function(t){o.__busy__=!1,e(t)},a="function"!=typeof t?null:function(e){o.__busy__=!1,t(e)},c=n.callbackId(r,a);i||(i={}),i.index||(i.index=this.index),n.exec("Camera","startVideoCapture",[c,i])}},o.stopVideoCapture=function(){n.exec("Camera","stopVideoCapture",[])};var r={getCamera:function(e){if(t)return t;(t=new i).index=e;var o=n.execSync("Camera","getCamera",[t.__UUID__,e]);return o?(t.supportedImageFormats=o.supportedImageFormats,t.supportedVideoFormats=o.supportedVideoFormats,t.supportedImageResolutions=o.supportedImageResolutions,t.supportedVideoResolutions=o.supportedVideoResolutions):(t.supportedImageFormats=["png","jpg"],t.supportedImageResolutions=["640*480","1280*720","960*540","high","medium","low"],t.supportedVideoFormats=["mp4"],t.supportedVideoResolutions=["640*480","1280*720","960*540"]),t}};e.camera=r}(window.plus),plus.__updateStartArgs=function(e){e.debug?__adsfsdaf99dsafsd090dsfsd__():(plus.console={},plus.console.log=function(){},plus.console.info=function(){},plus.console.error=function(){},plus.console.warn=function(){},plus.console.assert=function(){},plus.console.clear=function(){},plus.console.time=function(){},plus.console.timeEnd=function(){}),plus.runtime&&(plus.runtime.isRecovery=e.isRecovery)},plus.__updateStartArgs(plus.tools),function(e){var t,n,i=(e=e).bridge,o=e.tools,r=function(e){this.code=e||null};function a(e,t,n,i,o,r,a,c,s,u,l,_,f,d,h){this.id=e||null,this.rawId=h||null,this.target=0,this.displayName=t||null,this.name=n||null,this.nickname=i||null,this.phoneNumbers=o||null,this.emails=r||null,this.addresses=a||null,this.ims=c||null,this.organizations=s||null,this.birthday=u||null,this.note=l||null,this.photos=_||null,this.categories=f||null,this.urls=d||null}r.UNKNOWN_ERROR=0,r.INVALID_ARGUMENT_ERROR=1,r.TIMEOUT_ERROR=2,r.PENDING_OPERATION_ERROR=3,r.IO_ERROR=4,r.NOT_SUPPORTED_ERROR=5,r.PERMISSION_DENIED_ERROR=20;var c=a.prototype;function s(e){this.type=e}c.remove=function(e,t){var n=t&&function(e){t(new r(e))};if(null===this.id)n(r.UNKNOWN_ERROR);else{var o=i.callbackId(e,n);i.exec("Contacts","remove",[o,this.id,this.target],{cbid:o})}},c.clone=function(){var e=o.clone(this);function t(e){if(e)for(var t=e.length,n=0;n0&&(t.maximumAge=e.maximumAge),void 0!==e.enableHighAccuracy&&(t.enableHighAccuracy=e.enableHighAccuracy),void 0===e.timeout||isNaN(e.timeout)||(e.timeout<0?t.timeout=0:t.timeout=e.timeout),e.coordsType&&(t.coordsType=e.coordsType),e.provider&&(t.provider=e.provider),void 0!==e.geocode&&(t.geocode=e.geocode)),t}function u(e,t){var n=setTimeout(function(){l(n),n=null,e(new c(c.TIMEOUT,"Position retrieval timed out."))},t);return n}function l(e){!0!==e&&clearTimeout(e)}c.PERMISSION_DENIED=1,c.POSITION_UNAVAILABLE=2,c.TIMEOUT=3,c.UNKNOWN_ERROR=4;var _=e.geolocation={lastPosition:null,getCurrentPosition:function(e,t,n){f(e,t,n,!0)},watchPosition:function(e,r,d){d=s(d);var h=i.UUID("timer");o[h]=f(e,r,d,!1);var p=function(e){l(o[h].timer);var t=new c(e.code,e.message);r&&r(t)},y=n.callbackId(function(t){l(o[h].timer),d.timeout!==1/0&&(o[h].timer=u(p,d.timeout));var n=new a({latitude:t.latitude,longitude:t.longitude,altitude:t.altitude,accuracy:t.accuracy,heading:t.heading,velocity:t.velocity,coordsType:t.coordsType,address:t.address,addresses:t.addresses,altitudeAccuracy:t.altitudeAccuracy},void 0===t.timestamp?(new Date).getTime():t.timestamp instanceof Date?t.timestamp.getTime():t.timestamp);_.lastPosition=n,e(n)},p);return n.exec(t,"watchPosition",[y,h,d.enableHighAccuracy,d.coordsType,d.provider,d.geocode,d.timeout,d.maximumAge],{cbid:y,l:location.href}),h},clearWatch:function(e){e&&void 0!==o[e]&&(l(o[e].timer),o[e].timer=!1,n.exec(t,"clearWatch",[e]))}};function f(e,i,o,r){o=s(o);var f={timer:null},d=function(e){l(f.timer),f.timer=null;var t=new c(e.code,e.message);i&&i(t)};if(_.lastPosition&&o.maximumAge&&(new Date).getTime()-_.lastPosition.timestamp<=o.maximumAge)e(_.lastPosition);else if(0===o.timeout)d(new c(c.TIMEOUT,"timeout value in PositionOptions set to 0 and no cached Position object available, or cached Position object's age exceeds provided PositionOptions' maximumAge parameter."));else if(o.timeout!==1/0?f.timer=u(d,o.timeout):f.timer=!0,r){var h=n.callbackId(function(t){if(l(f.timer),f.timer){var n=new a({latitude:t.latitude,longitude:t.longitude,altitude:t.altitude,accuracy:t.accuracy,heading:t.heading,velocity:t.velocity,coordsType:t.coordsType,address:t.address,addresses:t.addresses,altitudeAccuracy:t.altitudeAccuracy},void 0===t.timestamp?(new Date).getTime():t.timestamp instanceof Date?t.timestamp.getTime():t.timestamp);_.lastPosition=n,e(n)}},d);n.exec(t,"getCurrentPosition",[h,o.enableHighAccuracy,o.maximumAge,o.coordsType,o.provider,o.geocode,o.timeout],{cbid:h,l:location.href})}return f}}(window.plus),function(e){var t=(e=e).bridge,n=(e.tools,[]),i={NATIVEF:"File",exec:function(e,n,o,r){var a=t.callbackId(e,n);t.exec(i.NATIVEF,o,[a,r])}};function o(e){this.code=e.code||null,this.message=e.message||""}function r(e){var t="未知错误";switch(e){case o.NOT_FOUND_ERR:t="文件没有发现";break;case o.SECURITY_ERR:t="没有获得授权";break;case o.ABORT_ERR:t="取消";break;case o.NOT_READABLE_ERR:t="不允许读";break;case o.ENCODING_ERR:t="编码错误";break;case o.NO_MODIFICATION_ALLOWED_ERR:t="不允许修改";break;case o.INVALID_STATE_ERR:t="无效的状态";break;case o.SYNTAX_ERR:t="语法错误";break;case o.INVALID_MODIFICATION_ERR:t="无效的修改";break;case o.QUOTA_EXCEEDED_ERR:t="执行出错";break;case o.TYPE_MISMATCH_ERR:t="类型不匹配";break;case o.PATH_EXISTS_ERR:t="路径存在"}return{code:e,message:t}}function a(e,t){t=t||{},this.type=e,this.bubbles=!1,this.cancelBubble=!1,this.cancelable=!1,this.lengthComputable=!1,this.loaded=t.loaded||0,this.total=t.total||0,this.target=t.target||null}function c(e,t,n,i,o){this.size=o||0,this.type=n||null,this.name=e||"",this.lastModifiedDate=new Date(i)||null,this.fullPath=t||null}o.NOT_FOUND_ERR=1,o.SECURITY_ERR=2,o.ABORT_ERR=3,o.NOT_READABLE_ERR=4,o.ENCODING_ERR=5,o.NO_MODIFICATION_ALLOWED_ERR=6,o.INVALID_STATE_ERR=7,o.SYNTAX_ERR=8,o.INVALID_MODIFICATION_ERR=9,o.QUOTA_EXCEEDED_ERR=10,o.TYPE_MISMATCH_ERR=11,o.PATH_EXISTS_ERR=12;var s=c.prototype;function u(e,t,n,i,o,r){this.isFile=void 0!==e&&e,this.isDirectory=void 0!==t&&t,this.name=n||"",this.fullPath=i||"",this.fileSystem=o||null,this.__PURL__=r||"",this.__remoteURL__=r?"http://localhost:13131/"+r:""}s.slice=function(e,t,n){var i=this.size>0?this.size-1:0,o=0,r=i;if(arguments.length&&(o=e<0?Math.max(i+e,0):Math.min(i,e)),arguments.length>=2&&(r=t<0?Math.max(i+t,0):Math.min(t,i)),rthis.length?this.position=this.length:this.position=e)},g.truncate=function(e){if(this.readyState===v.WRITING)throw new o(o.INVALID_STATE_ERR);this.readyState=v.WRITING;var t=this;"function"==typeof t.onwritestart&&t.onwritestart(new a("writestart",{target:this})),i.exec(function(e){t.readyState!==v.DONE&&(t.readyState=v.DONE,t.length=e,t.position=Math.min(t.position,e),"function"==typeof t.onwrite&&t.onwrite(new a("write",{target:t})),"function"==typeof t.onwriteend&&t.onwriteend(new a("writeend",{target:t})))},function(e){t.readyState!==v.DONE&&(t.readyState=v.DONE,t.error=new o(e),"function"==typeof t.onerror&&t.onerror(new a("error",{target:t})),"function"==typeof t.onwriteend&&t.onwriteend(new a("writeend",{target:t})))},"truncate",[this.fileName,e,this.position])},e.io={FileSystem:w,DirectoryEntry:f,DirectoryReader:h,FileReader:p,FileWriter:v,requestFileSystem:function(e,t,a){var c=function(e){"function"==typeof a&&a(new o(e))};if(e<1||e>4)c(r(o.SYNTAX_ERR));else{var s=n[e],u=function(i){i?"function"==typeof t&&(s||(s=new w(i.name,i.root),n[e]=s),t(s)):c(r(o.NOT_FOUND_ERR))};s?window.setTimeout(u(s),0):i.exec(u,c,"requestFileSystem",[e])}},resolveLocalFileSystemURL:function(e,t,a){var c=function(e){a&&a(new o(e))};"string"==typeof e?i.exec(function(e){var i;if(e){if(t){var a=n[e.type];a||(a=new w(e.fsName,e.fsRoot),n[e.type]=a),i=e.isDirectory?new f(e.name,e.fullPath,a,e.remoteURL):new _(e.name,e.fullPath,a,e.remoteURL),t(i)}}else c(r(o.NOT_FOUND_ERR))},c,"resolveLocalFileSystemURL",[e]):setTimeout(function(){c(r(o.ENCODING_ERR))},0)},convertLocalFileSystemURL:function(e){return t.execSync(i.NATIVEF,"convertLocalFileSystemURL",[e])},convertAbsoluteFileSystem:function(e){return t.execSync(i.NATIVEF,"convertAbsoluteFileSystem",[e])},getImageInfo:function(e){var n="function"!=typeof e.complete?function(){}:e.complete,o="function"!=typeof e.success?n:function(t){e.success(t),n(t)},r="function"!=typeof e.fail?n:function(t){e.fail(t),n(t)},a="string"!=typeof e.savePath?"":e.savePath;callbackID=t.callbackId(o,r),t.exec(i.NATIVEF,"getImageInfo",[callbackID,e.src,a])},getFileInfo:function(e){I(e,"getFileInfo",function(){return{filePath:e.filePath,digestAlgorithm:e.digestAlgorithm}})},getAudioInfo:function(e){I(e,"getAudioInfo",function(){return{filePath:e.filePath}})},getVideoInfo:function(e){I(e,"getVideoInfo",function(){return{filePath:e.filePath}})},PRIVATE_WWW:1,PRIVATE_DOC:2,PUBLIC_DOCUMENTS:3,PUBLIC_DOWNLOADS:4}}(window.plus),function(e){var t=(e=e).bridge,n=e.tools,i="Maps",o="createObject",r="updateObject",a="updateObjectSYNC",c="execMethod",s={callback:[],pushCallback:function(e,t,n){this.callback[e]={fun:t,nokeep:n}},execCallback:function(e,t){this.callback[e]&&(this.callback[e].fun&&this.callback[e].fun(e,t),this.callback[e].nokeep&&delete this.callback[e])}},u={};function l(e,r,a,c){return n.ANDROID==n.platform?t.exec(i,o,[n.stringify([e,r,a,c])],null):t.exec(i,o,[e,r,a,c],null)}function _(e,o,a){return n.ANDROID==n.platform?t.exec(i,r,[n.stringify([e,[o,a]])],null):t.exec(i,r,[e,[o,a]],null)}function f(e,o,r){return n.ANDROID==n.platform?t.exec(i,c,[n.stringify([e,[o,r]])],null):t.exec(i,c,[e,[o,r]],null)}function d(t,o,r,a,c){o=function(e){var t={zoom:12,type:"MAPTYPE_NORMAL",traffic:!1,zoomControls:!1};return e&&e.center instanceof g&&(t.center=e.center),e&&"number"==typeof e.zoom&&e.zoom<=22&&e.zoom>=1&&(t.zoom=e.zoom),!e||"MAPTYPE_NORMAL"!=e.type&&"MAPTYPE_SATELLITE"!=e.type||(t.type=e.type),e&&"boolean"==typeof e.traffic&&(t.traffic=e.traffic),e&&"boolean"==typeof e.zoomControls&&(t.zoomControls=e.zoomControls),e&&"string"==typeof e.position&&(t.position=e.position),e&&(t.top=e.top,t.left=e.left,t.width=e.width,t.height=e.height),t}(o);var f=this;if(this.IDENTITY=i,this._UUID_=c||n.UUID("map"),this._map_id_=r,this._ui_div_id_=t,this.__showUserLocationVisable__=!1,this.center=o.center?o.center:new e.maps.Point(116.39716,39.91669),this.zoom=o.zoom,this.userLocation=null,this.mapType=o.type,this.zoomControlsVisable=o.zoomControls,this.trafficVisable=o.traffic,this.visable=!0,this.onclick=function(e){},this.onstatuschanged=function(){},s.pushCallback(this._UUID_,function(e,t){if("click"==t.callbackType)f.onclick&&f.onclick(t.payload);else if("change"==t.callbackType&&(f&&(f.zoom=t.zoom),f.onstatuschanged)){var n={};n.target=f,n.zoom=t.zoom,n.center=new g(t.center.long,t.center.lat),t.northease&&(n.bounds=new v(new g(t.northease.long,t.northease.lat),new g(t.southwest.long,t.southwest.lat))),f.onstatuschanged(n)}}),!a){var d=document.getElementById(this._ui_div_id_),h=[o];d&&(e.tools.platform==e.tools.ANDROID?document.addEventListener("plusorientationchange",function(){setTimeout(function(){var e=[d.offsetLeft,d.offsetTop,d.offsetWidth,d.offsetHeight];_(f._UUID_,"resize",e)},200)},!1):d.addEventListener("resize",function(){var e=[d.offsetLeft,d.offsetTop,d.offsetWidth,d.offsetHeight];_(f._UUID_,"resize",e)},!1),h=[o,d.offsetLeft,d.offsetTop,d.offsetWidth,d.offsetHeight]),u[this._UUID_]=l(this._UUID_,"mapview",h,this._map_id_)}}var h=d.prototype;function p(e){this._UUID_=n.UUID("Bubble"),this.label="string"==typeof e?e:"",this.icon=null,this.marker=null,this.__contentImage=null,this.__contentImageAsDataURL=null,this.onclick=function(e){}}h.close=function(){f("map","close",this._UUID_),u[this._UUID_]&&delete u[this._UUID_]},h.centerAndZoom=function(e,t){if(e instanceof g&&"number"==typeof t){this.center=e,this.zoom=t;var n=[e,t];_(this._UUID_,"centerAndZoom",n)}},h.setCenter=function(e){if(e instanceof g){this.center=e;var t=[e];_(this._UUID_,"setCenter",t)}},h.getCenter=function(){return this.center},h.setZoom=function(e){"number"==typeof e&&(this.zoom=e,_(this._UUID_,"setZoom",[e]))},h.resize=function(){var e=document.getElementById(this._ui_div_id_),t=[null];e&&(t=[e.offsetLeft,e.offsetTop,e.offsetWidth,e.offsetHeight]),_(this._UUID_,"resize",t)},h.getZoom=function(){return this.zoom},h.setMapType=function(e){"MAPTYPE_NORMAL"!=e&&"MAPTYPE_SATELLITE"!=e||(this.mapType=e,_(this._UUID_,"setMapType",[e]))},h.getMapType=function(){return this.mapType},h.showUserLocation=function(e){if("boolean"==typeof e&&this.__showUserLocationVisable__!=e){this.__showUserLocationVisable__=e;var t=[e];_(this._UUID_,"showUserLocation",t)}},h.isShowUserLocation=function(){return this.__showUserLocationVisable__},h.getUserLocation=function(e){if("function"==typeof e){var t=n.UUID("callback");s.pushCallback(t,function(t,n){e&&e(n.state,n.point)},!0);var i=[t,window.__HtMl_Id__];return _(this._UUID_,"getUserLocation",i),!0}return!1},h.getCurrentCenter=function(e){if("function"==typeof e){function n(t,n){e&&e(n.state,n.point)}var i=t.callbackId(n);s.pushCallback(i,n,!0);var o=[i,window.__HtMl_Id__];return _(this._UUID_,"getCurrentCenter",o),!0}return!1},h.setTraffic=function(e){if("boolean"==typeof e&&e!=this.trafficVisable){this.trafficVisable=e;var t=[e];_(this._UUID_,"setTraffic",t)}},h.isTraffic=function(){return this.trafficVisable},h.showZoomControls=function(e){if("boolean"==typeof e&&e!=this.zoomControlsVisable){this.zoomControlsVisable=e;var t=[e];_(this._UUID_,"showZoomControls",t)}},h.isShowZoomControls=function(){return this.zoomControlsVisable},h.getBounds=function(){var e,o,r,c=(e=this._UUID_,o="getBounds",r=[],n.ANDROID==n.platform?t.execSync(i,a,[n.stringify([e,[o,r]])],null):t.execSync(i,a,[e,[o,r]],null));return new v(new g(c.northease.longitude,c.northease.latitude),new g(c.southwest.longitude,c.southwest.latitude))},h.reset=function(){_(this._UUID_,"reset",[null])},h.show=function(){if(1!=this.visable){this.visable=!0;var e=document.getElementById(this._ui_div_id_),t=[null];e&&(e.style.display="",t=[e.offsetLeft,e.offsetTop,e.offsetWidth,e.offsetHeight]),_(this._UUID_,"show",t)}},h.hide=function(){0!=this.visable&&(this.visable=!1,document.getElementById(this._ui_div_id_)&&(document.getElementById(this._ui_div_id_).style.display="none"),_(this._UUID_,"hide",[null]))},h.addOverlay=function(e){if(e instanceof D||e instanceof T||e instanceof C||e instanceof R||e instanceof m){var t=[e._UUID_];return _(this._UUID_,"addOverlay",t),!0}return!1},h.removeOverlay=function(e){if(e instanceof D||e instanceof T||e instanceof C||e instanceof R||e instanceof m){var t=[e._UUID_];return _(this._UUID_,"removeOverlay",t),!0}return!1},h.clearOverlays=function(){_(this._UUID_,"clearOverlays",[null])},d.calculateDistance=function(e,n,o,r){var a=t.callbackId(function(e){"function"==typeof o&&o({distance:e})},function(e){"function"==typeof r&&r(e)});t.exec(i,"calculateDistance",[e,n,a])},d.calculateArea=function(e,n,o){var r=t.callbackId(function(e){"function"==typeof n&&n({area:e})},function(e){"function"==typeof o&&o(e)});t.exec(i,"calculateArea",[e,r])},d.convertCoordinates=function(e,n,o,r){var a=t.callbackId(function(e){if("function"==typeof o){var t={};t.coord=new g(e.long,e.lat),t.coordType=e.type,o(t)}},function(e){"function"==typeof r&&r(e)});t.exec(i,"convertCoordinates",[e,n,a])},d.geocode=function(e,n,o,r){var a=t.callbackId(function(e){if("function"==typeof o){var t={};t.coord=new g(e.long,e.lat),t.address=e.addr,t.coordType=e.type,o(t)}},function(e){"function"==typeof r&&r(e)});t.exec(i,"geocode",[e,n,a])},d.reverseGeocode=function(e,n,o,r){var a=t.callbackId(function(e){if("function"==typeof o){var t={};t.coord=new g(e.long,e.lat),t.address=e.addr,t.coordType=e.type,o(t)}},function(e){"function"==typeof r&&r(e)});t.exec(i,"reverseGeocode",[e,n,a])};var y=p.prototype;function v(e,t,n,i){"number"==typeof e&&"number"==typeof t&&"number"==typeof n&&"number"==typeof i?(this.northease=new g(e,t),this.northeast=new g(e,t),this.southwest=new g(n,i)):e instanceof g&&t instanceof g&&(this.northease=e,this.northeast=e,this.southwest=t)}function g(e,t){this.longitude=e,this.latitude=t}y.setIcon=function(e){"string"==typeof e&&(this.icon=e,this.marker&&_(this.marker._UUID_,"setBubbleIcon",[this.icon]))},y.loadImage=function(e){this.__contentImage=e,this.__contentImageAsDataURL=null,this.marker&&_(this.marker._UUID_,"loadImage",[e])},y.loadImageDataURL=function(e){this.__contentImage=null,this.__contentImageAsDataURL=e,this.marker&&_(this.marker._UUID_,"loadImageDataURL",[e])},y.getLabel=function(){return this.label},y.setLabel=function(e){"string"==typeof e&&(this.label=e,this.marker&&_(this.marker._UUID_,"setBubbleLabel",[this.label]))},y.belongMarker=function(){return this.marker},v.prototype.setNorthEase=function(e){e instanceof g&&(this.northease=e,this.northeast=e)},v.prototype.setNorthEast=function(e){e instanceof g&&(this.northeast=e,this.northease=e)},v.prototype.getNorthEase=function(){return this.northease},v.prototype.getNorthEast=function(){return this.northeast},v.prototype.setSouthWest=function(e){e instanceof g&&(this.southwest=e)},v.prototype.getSouthWest=function(){return this.southwest},v.prototype.contains=function(e){return e instanceof g&&(e.longitude<=this.northease.longitude&&e.longitude>=this.southwest.longitude&&e.latitude<=this.northease.latitude&&e.latitude>=this.southwest.latitude)},v.prototype.equals=function(e){return e instanceof v&&(this.northease.equals(e.northease)&&this.southwest.equals(e.southwest))},v.prototype.getCenter=function(){var e=(this.northease.longitude-this.southwest.longitude)/2,t=(this.northease.latitude-this.southwest.latitude)/2;return new g(e+this.southwest.longitude,t+this.southwest.latitude)};var w=g.prototype;function I(){this._UUID_=null,this.visable=!0}w.setLng=function(e){this.longitude=e},w.getLng=function(){return this.longitude},w.setLat=function(e){this.latitude=e},w.getLat=function(){return this.latitude},w.equals=function(e){return this.longitude==e.longitude&&this.latitude==e.latitude};var b=I.prototype;function m(e){var t=this;this._UUID_=n.UUID("marker"),this.point=e,this.icon="",this.caption="",this.bubble=null,this.canDraggable=!1,this.onclick=function(e){},this.onDrag=function(e){},s.pushCallback(this._UUID_,function(e,n){"bubbleclick"==n.type?t.bubble&&t.bubble.onclick&&t.bubble.onclick(t.bubble):"markerclick"==n.type?t.onclick&&t.onclick(t):"onDrag"==n.type&&(t.point=n.pt,t.onDrag(t))}),l(this._UUID_,"marker",[e])}b.show=function(){1!=this.visable&&(this.visable=!0,_(this._UUID_,"show",["true"]))},b.hide=function(){0!=this.visable&&(this.visable=!1,_(this._UUID_,"hide",["false"]))},b.isVisible=function(){return this.visable},b.bringToTop=function(){_(this._UUID_,"bringToTop",[])},m.prototype=new I;var x=m.prototype;function S(){this.strokeColor="#FFFFFF",this.strokeOpacity=1,this.fillColor="#FFFFFF",this.fillOpacity=1,this.lineWidth=5,this.visable=!0}x.constructor=m,x.setPoint=function(e){if(e instanceof g){this.point=e;var t=[e];_(this._UUID_,"setPoint",t)}},x.getPoint=function(){return this.point},x.setIcon=function(e){"string"==typeof e&&(this.icon=e,_(this._UUID_,"setIcon",[e]))},x.setLabel=function(e){"string"==typeof e&&(this.caption=e,_(this._UUID_,"setLabel",[e]))},x.getLabel=function(){return this.caption},x.setBubble=function(e,t){if(e instanceof p){var n=e.marker;if(n&&n!=this){n.bubble=null;var i=[null,null,null,null,!1];_(n._UUID_,"setBubble",i)}e.marker=this,this.bubble=e;i=[this.bubble.label,this.bubble.icon,this.bubble.__contentImageAsDataURL,this.bubble.__contentImage,t];_(this._UUID_,"setBubble",i)}else null==e&&_(this._UUID_,"setBubble",[null,null,null,null,t])},x.hideBubble=function(){this.bubble&&_(this._UUID_,"hideBubble",[])},x.getBubble=function(){return this.bubble},x.setDraggable=function(e){e!=this.canDraggable&&(this.canDraggable=!this.canDraggable,_(this._UUID_,"setDraggable",[this.canDraggable]))},x.isDraggable=function(){return this.canDraggable},x.setIcons=function(e,t){_(this._UUID_,"setIcons",[e,t])},S.prototype=new I;var k=S.prototype;function D(e,t){this.center=e,this.radius=t,this._UUID_=n.UUID("circle"),l(this._UUID_,"circle",[e,t])}k.constructor=S,k.setStrokeColor=function(e){"string"==typeof e&&(this.strokeColor=e,_(this._UUID_,"setStrokeColor",[e]))},k.getStrokeColor=function(){return this.strokeColor},k.setStrokeOpacity=function(e){"number"==typeof e&&(e<0?e=0:e>1&&(e=1),this.strokeOpacity=e,_(this._UUID_,"setStrokeOpacity",[e]))},k.getStrokeOpacity=function(){return this.strokeOpacity},k.setFillColor=function(e){"string"==typeof e&&(this.fillColor=e,_(this._UUID_,"setFillColor",[e]))},k.getFillColor=function(){return this.fillColor},k.setFillOpacity=function(e){"number"==typeof e&&(e<0?e=0:e>1&&(e=1),this.fillOpacity=e,_(this._UUID_,"setFillOpacity",[e]))},k.getFillOpacity=function(){return this.fillOpacity},k.setLineWidth=function(e){"number"==typeof e&&(e<0&&(e=0),this.lineWidth=e,_(this._UUID_,"setLineWidth",[e]))},k.getLineWidth=function(){return this.lineWidth},D.prototype=new S;var U=D.prototype;function T(e){this.path=e,this._UUID_=n.UUID("polygon"),l(this._UUID_,"polygon",[e])}U.constructor=D,U.setCenter=function(e){e instanceof g&&(this.center=e,_(this._UUID_,"setCenter",[e]))},U.getCenter=function(){return this.center},U.setRadius=function(e){"number"==typeof e&&e>=0&&(this.radius=e,_(this._UUID_,"setRadius",[e]))},U.getRadius=function(){return this.radius},T.prototype=new S;var E=T.prototype;function C(e){this.path=e,this._UUID_=n.UUID("polyline"),l(this._UUID_,"polyline",[e])}E.constructor=T,E.setPath=function(e){this.path=e,_(this._UUID_,"setPath",[e])},E.getPath=function(){return this.path},C.prototype=new S;var N=C.prototype;function R(e,t,i){this._UUID_=n.UUID("route"),this.startPoint=e,this.endPoint=t,this.pointCount=0,this.pointList=[],this.distance=0,this.routeTip="",void 0===i&&l(this._UUID_,"route",[e,t,i])}function A(){this.__state__=0,this.__type__=1,this.startPosition=null,this.endPosition=null,this.routeNumber=0,this.routeList=[]}function O(){this.__state__=0,this.__type__=0,this.totalNumber=0,this.currentNumber=0,this.pageNumber=0,this.pageIndex=0,this.poiList=[]}function B(e){var t=this;this._UUID_=n.UUID("search"),this.pageCapacity=10,this.map=e,this.onPoiSearchComplete=function(e,t){},this.onRouteSearchComplete=function(e,t){},s.pushCallback(this._UUID_,function(e,n){0==n.__type__?t.onPoiSearchComplete&&t.onPoiSearchComplete(n.__state__,n):1==n.__type__&&t.onRouteSearchComplete&&t.onRouteSearchComplete(n.__state__,n)}),l(this._UUID_,"search",[null])}N.constructor=C,N.setPath=function(e){this.path=e,_(this._UUID_,"setPath",[e])},N.getPath=function(){return this.path},R.prototype=new I,R.prototype.constructor=R,A.prototype.getRoute=function(e){return e>=0&&e=0&&e=0;i--){var o=this.__view_array__[i];if(n==o.id)return o}var r=t.execSync(this,"findViewById",[n]),a=r.identity,c=r.option,s=(r.uuid,new e.ui.__nviews__[a](c));return s.__uuid__=r.uuid,this.__view_array__.push(s),s},t.NWindow=o}(window.plus),function(e){var t=e.ui;e=e;function n(){t.NView.prototype.constructor.apply(this,["Navigator"]),e.obj.Callback.prototype.constructor.apply(this)}t.register("Navigator",n);var i=n.prototype;i.constructor=n,e.tools.extend(i,t.NView.prototype),i.setLeft=function(e){t.exec(this,"setLeft",[e])},i.setRight=function(e){t.exec(this,"setRight",[e])},i.setSystemList=function(e){t.exec(this,"setSystemList",[e])},i.setRight=function(e){t.exec(this,"setRight",[e])},i.addNavigationListener=function(n){var i=e.bridge.callbackId(n);t.exec(this,"addNavigationListener",[i])},i.addListItemListener=function(n){var i=e.bridge.callbackId(n);t.exec(this,"addListItemListener",[i])},i.setTitleText=function(e){t.exec(this,"setTitleText",[e])},i.setList=function(e){t.exec(this,"setList",[e])},t.Navigator=n}(window.plus),function(e){var t=(e=e).bridge,n=e.tools,i="Orientation",o=!1,r={},a=[],c=null,s=function(e,t,n,i,o,r){this.alpha=e,this.beta=t,this.gamma=n,this.magneticHeading=i,this.trueHeading=o,this.headingAccuracy=r},u=void 0,l=void 0,_=void 0;function f(){var e=t.callbackId(function(e){u=e.magneticHeading,l=e.trueHeading,_=e.headingAccuracy,function(e){var t=a.slice(0);c=new s(e.alpha,e.beta,e.gamma,u,l,_);for(var n=0,i=t.length;n-1&&(a.splice(n,1),0===a.length&&(t.exec(i,"stop",[]),o=!1))}var p={getCurrentOrientation:function(e,t){var n;n=d(function(t){h(n),e(t)},function(e){h(n),t&&t(e)}),a.push(n),o||f()},watchOrientation:function(e,t,i){var s=i&&i.frequency&&("number"==typeof i.frequency||i.frequency instanceof Number)?i.frequency:500,u=n.UUID("watch"),l=d(function(){},function(e){h(l),t&&t(e)});return a.push(l),r[u]={timer:window.setInterval(function(){c&&e(c)},s),listeners:l},o?c&&e(c):f(),u},clearWatch:function(e){e&&r[e]&&(window.clearInterval(r[e].timer),h(r[e].listeners),delete r[e])}};e.orientation=p}(window.plus),function(e){e=e;var t="Payment",n=window.plus.bridge;function i(){this.id="",this.description="",this.serviceReady=!0,this.installService=function(){n.exec(t,"installService",[this.id])},this.appStoreReceipt=function(){return n.execSync(t,"appStoreReceipt",[this.id])},this.restoreComplateRequest=function(e,i,o){if("appleiap"!==this.id){o({errorcode:"-3"})}var r="function"!=typeof i?null:function(e){i(e)},a="function"!=typeof o?null:function(e){o(e)},c=n.callbackId(r,a);n.exec(t,"restoreComplateRequest",[this.id,c,e])},this.requestOrder=function(e,i,o){if("appleiap"===this.id){var r="function"!=typeof i?null:function(e){i(e)},a="function"!=typeof o?null:function(e){o(e)},c=n.callbackId(r,a);n.exec(t,"requestOrder",[this.id,c,e])}else{o({errorcode:"-3"})}}}var o={Channel:i,getChannels:function(e,i){var r="function"!=typeof e?null:function(t){for(var n=[],i=t.length,r=0;r10&&"blob:file:"==e.url.substring(0,10)){var o=new XMLHttpRequest;o.open("GET",e.url,!0),o.setRequestHeader("Content-type","application/x-www-form-urlencoded"),o.responseType="blob",o.onload=function(o){if(200==this.status){var r=this.response;try{const o=new FileReader;o.onload=function(o){var r=t.callbackId(n,i);t.exec("Runtime","downloadBlob",[o.target.result,e.fileName,r])},o.readAsDataURL(r),o.onerror=function(){i({code:-1,message:"blob error"})}}catch(e){i(a={code:-1,message:e})}}else{var a={code:-1,message:this.status};i(a)}},o.onerror=function(e){i({code:-1,message:"data error"})},o.send()}else{var r=document.createElement("a");r.href=e.url+"&DCLOUD_DOWNLOAD_BLOB:"+e.fileName,r.download=e.fileName,r.click()}else try{const o=new FileReader;o.onload=function(o){var r=t.callbackId(n,i);t.exec("Runtime","downloadBlob",[o.target.result,e.fileName,r])},o.readAsDataURL(e.url),o.onerror=function(){i({code:-1,message:"blob error"})}}catch(e){i({code:-1,message:e})}}}}(window.plus),function(e){var t=(e=e).bridge,n=e.tools,i="Share",o={};function r(e,t,n,i){this.id=e,this.description=t,this.authenticated=n,this.accessToken=i,this.nativeClient=!1}var a=r.prototype;function c(o,r){var a=this;a.__UUID__=n.UUID("Authorize"),a.__componentid__=o,a.display=r,a.onloaded=null,a.onauthenticated=null,a.onerror=null,a.__top__=0,a.__left__=0,a.__width__=0,a.__height__=0;var c=document.getElementById(a.__componentid__);c&&(a.__left__=c.offsetLeft,a.__top__=c.offsetTop,a.__width__=c.offsetWidth,a.__height__=c.offsetHeight);var s=function(e){"function"==typeof a.onerror&&a.onerror(e)},u=t.callbackId(function(t){"load"==t.evt?"function"==typeof a.onloaded&&a.onloaded():"auth"==t.evt&&"function"==typeof a.onauthenticated&&e.share.getServices(function(e){for(var n=0;no.Uninitialized&&("function"==typeof this.onabort&&this.onabort(this.__progessEvent__),this.__init__(),t.exec(o.__F__,"abort",[this.__UUID__]))},r.getAllResponseHeaders=function(){if(this.readyState>=o.Receiving){if(this.__noParseResponseHeader__)return this.__noParseResponseHeader__;var e="";for(var t in this.__responseHeaders__)e=e+t+": "+this.__responseHeaders__[t]+"\r\n";return this.__noParseResponseHeader__=e,this.__noParseResponseHeader__}return null},r.getResponseHeader=function(e){if("string"==typeof e&&this.readyState>=o.Receiving){var t=null;if(e=e.toLowerCase(),t=this.__cacheReponseHeaders__[e])return t;for(var n in this.__responseHeaders__){var i=this.__responseHeaders__[n];e===(n=n.toLowerCase())&&(t=t?t+", "+i:i)}return this.__cacheReponseHeaders__[e]=t,t}return null},r.setRequestHeader=function(e,t){if("string"==typeof e&&"string"==typeof t&&o.Open==this.readyState){var n=this.__requestHeaders__[e];this.__requestHeaders__[e]=n?n+", "+t:t}},r.open=function(e,n,i,r){o.Open!=this.readyState&&o.Loaded!=this.readyState||this.__init__(),o.Uninitialized==this.readyState&&(this.readyState=o.Open,t.exec(o.__F__,"open",[this.__UUID__,e,function(e){return"string"==typeof e?0==(e=e.replace(/(^\s*)|(\s*$)/g,"")).indexOf("http://")||0==e.indexOf("https://")?e:e=0==e.indexOf("/")?location.origin+e:location.origin+location.pathname+e:""}(n),i,r,this.timeout]),"function"==typeof this.onreadystatechange&&this.onreadystatechange())},r.overrideMimeType=function(e){t.exec(o.__F__,"overrideMimeType",[this.__UUID__,e])},r.send=function(e){var n=this;if(o.Open==this.readyState){this.readyState=o.Sent,"function"==typeof this.onloadstart&&this.onloadstart(n.__progessEvent__);var r=t.callbackId(function(e){if(o.Receiving==e.readyState)o.Sent==n.readyState?(n.readyState=o.Receiving,n.status=e.status,n.statusText=e.statusText,n.__responseHeaders__=e.header,n.__progessEvent__.lengthComputable=e.lengthComputable,n.__progessEvent__.total=e.totalSize):o.Receiving==n.readyState&&(n.responseText=e.responseText,n.__progessEvent__.loaded=e.revSize),"function"==typeof n.onreadystatechange&&n.onreadystatechange(),"function"==typeof n.onprogress&&n.onprogress(n.__progessEvent__);else if(o.Loaded==e.readyState){n.readyState=o.Loaded,e.status&&(n.status=e.status);try{if(n.responseText){var t=new DOMParser;n.responseXML=t.parseFromString(n.responseText,"text/xml")}}catch(e){n.responseXML=null}try{if("document"==n.responseType){t=new DOMParser;n.response=n.responseXML}else"json"==n.responseType&&(n.response=JSON.parse(n.responseText))}catch(e){n.response=null}"function"==typeof n.onreadystatechange&&n.onreadystatechange(),e.error==i.Timeout?"function"==typeof n.ontimeout&&n.ontimeout(n.__progessEvent__):e.error==i.Other?"function"==typeof n.onerror&&n.onerror(n.__progessEvent__):"function"==typeof n.onload&&n.onload(n.__progessEvent__),"function"==typeof n.onloadend&&n.onloadend(n.__progessEvent__)}});return t.exec(o.__F__,"send",[this.__UUID__,r,e,this.__requestHeaders__]),void("function"==typeof this.onreadystatechange&&this.onreadystatechange())}throw new Error("XMLHttpRequest not open")},e.net={XMLHttpRequest:o}}(window.plus),function(e){e=e;var t=window.plus.bridge;e.zip={decompress:function(e,n,i,o){var r=t.callbackId(i,o);t.exec("Zip","decompress",[e,n,r])},compress:function(e,n,i,o){var r=t.callbackId(i,o);t.exec("Zip","compress",[e,n,r])},compressImage:function(e,n,i){var o=t.callbackId(function(e){if(n){var t={target:e.path,width:e.w,height:e.h,size:e.size};n(t)}},i);t.exec("Zip","compressImage",[e,o])}}}(window.plus),function(e){var t=(e=e).bridge,n=e.tools,i="Proximity",o=!1,r={},a=[];function c(e){var n=a.indexOf(e);n>-1&&(a.splice(n,1),0===a.length&&(t.exec(i,"stop",[]),o=!1))}var s={getCurrentProximity:function(e,o){var r=t.callbackId(function(t){n.IOS==n.platform&&(t=0==t?0:1/0),e&&e(t)},function(e){o&&o(e)});t.exec(i,"getCurrentProximity",[r])},watchProximity:function(e,s){var u,l=n.UUID("watch"),_={win:function(t){n.IOS==n.platform&&(t=0==t?0:1/0),e&&e(t)},fail:function(e){c(_),s&&s(e)}};return a.push(_),r[l]={listeners:_},o||(u=t.callbackId(function(e){for(var t=a.slice(0),n=0,i=t.length;n0)for(var _=0;_=0;s--)r=s==c-1?o.importClass(a[s],null):o.importClass(a[s],a[s+1]);return n&&(n.__proto__=r.prototype),r}return null},u.prototype.invoke=function(t,n){for(var i=null,o=[],r=2;r0){for(var o=0;o