tp-public 1.0.32 → 1.0.34
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/index.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
package/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("vue")):"function"==typeof define&&define.amd?define("tp-public",["vue"],t):"object"==typeof exports?exports["tp-public"]=t(require("vue")):e["tp-public"]=t(e.Vue)}("undefined"!=typeof self?self:this,function(e){return function(e){var t={};function n(a){if(t[a])return t[a].exports;var r=t[a]={i:a,l:!1,exports:{}};return e[a].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,a){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:a})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var a=Object.create(null);if(n.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(a,r,function(t){return e[t]}.bind(null,r));return a},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=29)}([function(e,t,n){"use strict";var a=n(1),r=Object.prototype.toString;function i(e){return"[object Array]"===r.call(e)}function o(e){return void 0===e}function c(e){return null!==e&&"object"==typeof e}function s(e){if("[object Object]"!==r.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function u(e){return"[object Function]"===r.call(e)}function l(e,t){if(null!==e&&void 0!==e)if("object"!=typeof e&&(e=[e]),i(e))for(var n=0,a=e.length;n<a;n++)t.call(null,e[n],n,e);else for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.call(null,e[r],r,e)}e.exports={isArray:i,isArrayBuffer:function(e){return"[object ArrayBuffer]"===r.call(e)},isBuffer:function(e){return null!==e&&!o(e)&&null!==e.constructor&&!o(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){return"undefined"!=typeof FormData&&e instanceof FormData},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:c,isPlainObject:s,isUndefined:o,isDate:function(e){return"[object Date]"===r.call(e)},isFile:function(e){return"[object File]"===r.call(e)},isBlob:function(e){return"[object Blob]"===r.call(e)},isFunction:u,isStream:function(e){return c(e)&&u(e.pipe)},isURLSearchParams:function(e){return"undefined"!=typeof URLSearchParams&&e instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&"undefined"!=typeof window&&"undefined"!=typeof document},forEach:l,merge:function e(){var t={};function n(n,a){s(t[a])&&s(n)?t[a]=e(t[a],n):s(n)?t[a]=e({},n):i(n)?t[a]=n.slice():t[a]=n}for(var a=0,r=arguments.length;a<r;a++)l(arguments[a],n);return t},extend:function(e,t,n){return l(t,function(t,r){e[r]=n&&"function"==typeof t?a(t,n):t}),e},trim:function(e){return e.replace(/^\s*/,"").replace(/\s*$/,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e}}},function(e,t,n){"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),a=0;a<n.length;a++)n[a]=arguments[a];return e.apply(t,n)}}},function(e,t,n){"use strict";var a=n(0);function r(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var i;if(n)i=n(t);else if(a.isURLSearchParams(t))i=t.toString();else{var o=[];a.forEach(t,function(e,t){null!==e&&void 0!==e&&(a.isArray(e)?t+="[]":e=[e],a.forEach(e,function(e){a.isDate(e)?e=e.toISOString():a.isObject(e)&&(e=JSON.stringify(e)),o.push(r(t)+"="+r(e))}))}),i=o.join("&")}if(i){var c=e.indexOf("#");-1!==c&&(e=e.slice(0,c)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}},function(e,t,n){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},function(e,t,n){"use strict";(function(t){var a=n(0),r=n(17),i={"Content-Type":"application/x-www-form-urlencoded"};function o(e,t){!a.isUndefined(e)&&a.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var c,s={adapter:("undefined"!=typeof XMLHttpRequest?c=n(5):void 0!==t&&"[object process]"===Object.prototype.toString.call(t)&&(c=n(5)),c),transformRequest:[function(e,t){return r(t,"Accept"),r(t,"Content-Type"),a.isFormData(e)||a.isArrayBuffer(e)||a.isBuffer(e)||a.isStream(e)||a.isFile(e)||a.isBlob(e)?e:a.isArrayBufferView(e)?e.buffer:a.isURLSearchParams(e)?(o(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):a.isObject(e)?(o(t,"application/json;charset=utf-8"),JSON.stringify(e)):e}],transformResponse:[function(e){if("string"==typeof e)try{e=JSON.parse(e)}catch(e){}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300}};s.headers={common:{Accept:"application/json, text/plain, */*"}},a.forEach(["delete","get","head"],function(e){s.headers[e]={}}),a.forEach(["post","put","patch"],function(e){s.headers[e]=a.merge(i)}),e.exports=s}).call(this,n(16))},function(e,t,n){"use strict";var a=n(0),r=n(18),i=n(20),o=n(2),c=n(21),s=n(24),u=n(25),l=n(6);e.exports=function(e){return new Promise(function(t,n){var f=e.data,d=e.headers;a.isFormData(f)&&delete d["Content-Type"];var p=new XMLHttpRequest;if(e.auth){var v=e.auth.username||"",m=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";d.Authorization="Basic "+btoa(v+":"+m)}var h=c(e.baseURL,e.url);if(p.open(e.method.toUpperCase(),o(h,e.params,e.paramsSerializer),!0),p.timeout=e.timeout,p.onreadystatechange=function(){if(p&&4===p.readyState&&(0!==p.status||p.responseURL&&0===p.responseURL.indexOf("file:"))){var a="getAllResponseHeaders"in p?s(p.getAllResponseHeaders()):null,i={data:e.responseType&&"text"!==e.responseType?p.response:p.responseText,status:p.status,statusText:p.statusText,headers:a,config:e,request:p};r(t,n,i),p=null}},p.onabort=function(){p&&(n(l("Request aborted",e,"ECONNABORTED",p)),p=null)},p.onerror=function(){n(l("Network Error",e,null,p)),p=null},p.ontimeout=function(){var t="timeout of "+e.timeout+"ms exceeded";e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(l(t,e,"ECONNABORTED",p)),p=null},a.isStandardBrowserEnv()){var g=(e.withCredentials||u(h))&&e.xsrfCookieName?i.read(e.xsrfCookieName):void 0;g&&(d[e.xsrfHeaderName]=g)}if("setRequestHeader"in p&&a.forEach(d,function(e,t){void 0===f&&"content-type"===t.toLowerCase()?delete d[t]:p.setRequestHeader(t,e)}),a.isUndefined(e.withCredentials)||(p.withCredentials=!!e.withCredentials),e.responseType)try{p.responseType=e.responseType}catch(t){if("json"!==e.responseType)throw t}"function"==typeof e.onDownloadProgress&&p.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&p.upload&&p.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then(function(e){p&&(p.abort(),n(e),p=null)}),f||(f=null),p.send(f)})}},function(e,t,n){"use strict";var a=n(19);e.exports=function(e,t,n,r,i){var o=new Error(e);return a(o,t,n,r,i)}},function(e,t,n){"use strict";var a=n(0);e.exports=function(e,t){t=t||{};var n={},r=["url","method","data"],i=["headers","auth","proxy","params"],o=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],c=["validateStatus"];function s(e,t){return a.isPlainObject(e)&&a.isPlainObject(t)?a.merge(e,t):a.isPlainObject(t)?a.merge({},t):a.isArray(t)?t.slice():t}function u(r){a.isUndefined(t[r])?a.isUndefined(e[r])||(n[r]=s(void 0,e[r])):n[r]=s(e[r],t[r])}a.forEach(r,function(e){a.isUndefined(t[e])||(n[e]=s(void 0,t[e]))}),a.forEach(i,u),a.forEach(o,function(r){a.isUndefined(t[r])?a.isUndefined(e[r])||(n[r]=s(void 0,e[r])):n[r]=s(void 0,t[r])}),a.forEach(c,function(a){a in t?n[a]=s(e[a],t[a]):a in e&&(n[a]=s(void 0,e[a]))});var l=r.concat(i).concat(o).concat(c),f=Object.keys(e).concat(Object.keys(t)).filter(function(e){return-1===l.indexOf(e)});return a.forEach(f,u),n}},function(e,t,n){"use strict";function a(e){this.message=e}a.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},a.prototype.__CANCEL__=!0,e.exports=a},function(e,t,n){e.exports=n(11)},function(t,n){t.exports=e},function(e,t,n){"use strict";var a=n(0),r=n(1),i=n(12),o=n(7);function c(e){var t=new i(e),n=r(i.prototype.request,t);return a.extend(n,i.prototype,t),a.extend(n,t),n}var s=c(n(4));s.Axios=i,s.create=function(e){return c(o(s.defaults,e))},s.Cancel=n(8),s.CancelToken=n(26),s.isCancel=n(3),s.all=function(e){return Promise.all(e)},s.spread=n(27),s.isAxiosError=n(28),e.exports=s,e.exports.default=s},function(e,t,n){"use strict";var a=n(0),r=n(2),i=n(13),o=n(14),c=n(7);function s(e){this.defaults=e,this.interceptors={request:new i,response:new i}}s.prototype.request=function(e){"string"==typeof e?(e=arguments[1]||{}).url=arguments[0]:e=e||{},(e=c(this.defaults,e)).method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t=[o,void 0],n=Promise.resolve(e);for(this.interceptors.request.forEach(function(e){t.unshift(e.fulfilled,e.rejected)}),this.interceptors.response.forEach(function(e){t.push(e.fulfilled,e.rejected)});t.length;)n=n.then(t.shift(),t.shift());return n},s.prototype.getUri=function(e){return e=c(this.defaults,e),r(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},a.forEach(["delete","get","head","options"],function(e){s.prototype[e]=function(t,n){return this.request(c(n||{},{method:e,url:t,data:(n||{}).data}))}}),a.forEach(["post","put","patch"],function(e){s.prototype[e]=function(t,n,a){return this.request(c(a||{},{method:e,url:t,data:n}))}}),e.exports=s},function(e,t,n){"use strict";var a=n(0);function r(){this.handlers=[]}r.prototype.use=function(e,t){return this.handlers.push({fulfilled:e,rejected:t}),this.handlers.length-1},r.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},r.prototype.forEach=function(e){a.forEach(this.handlers,function(t){null!==t&&e(t)})},e.exports=r},function(e,t,n){"use strict";var a=n(0),r=n(15),i=n(3),o=n(4);function c(e){e.cancelToken&&e.cancelToken.throwIfRequested()}e.exports=function(e){return c(e),e.headers=e.headers||{},e.data=r(e.data,e.headers,e.transformRequest),e.headers=a.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),a.forEach(["delete","get","head","post","put","patch","common"],function(t){delete e.headers[t]}),(e.adapter||o.adapter)(e).then(function(t){return c(e),t.data=r(t.data,t.headers,e.transformResponse),t},function(t){return i(t)||(c(e),t&&t.response&&(t.response.data=r(t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)})}},function(e,t,n){"use strict";var a=n(0);e.exports=function(e,t,n){return a.forEach(n,function(n){e=n(e,t)}),e}},function(e,t){var n,a,r=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function c(e){if(n===setTimeout)return setTimeout(e,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:i}catch(e){n=i}try{a="function"==typeof clearTimeout?clearTimeout:o}catch(e){a=o}}();var s,u=[],l=!1,f=-1;function d(){l&&s&&(l=!1,s.length?u=s.concat(u):f=-1,u.length&&p())}function p(){if(!l){var e=c(d);l=!0;for(var t=u.length;t;){for(s=u,u=[];++f<t;)s&&s[f].run();f=-1,t=u.length}s=null,l=!1,function(e){if(a===clearTimeout)return clearTimeout(e);if((a===o||!a)&&clearTimeout)return a=clearTimeout,clearTimeout(e);try{a(e)}catch(t){try{return a.call(null,e)}catch(t){return a.call(this,e)}}}(e)}}function v(e,t){this.fun=e,this.array=t}function m(){}r.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];u.push(new v(e,t)),1!==u.length||l||c(p)},v.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=m,r.addListener=m,r.once=m,r.off=m,r.removeListener=m,r.removeAllListeners=m,r.emit=m,r.prependListener=m,r.prependOnceListener=m,r.listeners=function(e){return[]},r.binding=function(e){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(e){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}},function(e,t,n){"use strict";var a=n(0);e.exports=function(e,t){a.forEach(e,function(n,a){a!==t&&a.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[a])})}},function(e,t,n){"use strict";var a=n(6);e.exports=function(e,t,n){var r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(a("Request failed with status code "+n.status,n.config,null,n.request,n)):e(n)}},function(e,t,n){"use strict";e.exports=function(e,t,n,a,r){return e.config=t,n&&(e.code=n),e.request=a,e.response=r,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},e}},function(e,t,n){"use strict";var a=n(0);e.exports=a.isStandardBrowserEnv()?{write:function(e,t,n,r,i,o){var c=[];c.push(e+"="+encodeURIComponent(t)),a.isNumber(n)&&c.push("expires="+new Date(n).toGMTString()),a.isString(r)&&c.push("path="+r),a.isString(i)&&c.push("domain="+i),!0===o&&c.push("secure"),document.cookie=c.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},function(e,t,n){"use strict";var a=n(22),r=n(23);e.exports=function(e,t){return e&&!a(t)?r(e,t):t}},function(e,t,n){"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},function(e,t,n){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},function(e,t,n){"use strict";var a=n(0),r=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,n,i,o={};return e?(a.forEach(e.split("\n"),function(e){if(i=e.indexOf(":"),t=a.trim(e.substr(0,i)).toLowerCase(),n=a.trim(e.substr(i+1)),t){if(o[t]&&r.indexOf(t)>=0)return;o[t]="set-cookie"===t?(o[t]?o[t]:[]).concat([n]):o[t]?o[t]+", "+n:n}}),o):o}},function(e,t,n){"use strict";var a=n(0);e.exports=a.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function r(e){var a=e;return t&&(n.setAttribute("href",a),a=n.href),n.setAttribute("href",a),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=r(window.location.href),function(t){var n=a.isString(t)?r(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0}},function(e,t,n){"use strict";var a=n(8);function r(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise(function(e){t=e});var n=this;e(function(e){n.reason||(n.reason=new a(e),t(n.reason))})}r.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},r.source=function(){var e;return{token:new r(function(t){e=t}),cancel:e}},e.exports=r},function(e,t,n){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},function(e,t,n){"use strict";e.exports=function(e){return"object"==typeof e&&!0===e.isAxiosError}},function(e,t,n){"use strict";function a(e){return(a=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function r(e,t,n){return(r="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=a(e)););return e}(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(n):i.value}})(e,t,n||e)}function i(){return(i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}n.r(t);var o,c,s=n(9),u=n.n(s),l=(new(function(){function e(){this.timeout=6e3}var t=e.prototype;return t.merge=function(e){return i({},e,{timeout:this.timeout})},t.setInterceptor=function(e){e.interceptors.request.use(function(e){return e.headers["Content-Type"]="application/json;charset=utf-8",e.headers["tp-auth-token"]=localStorage.getItem("tp_token_info")||"",e},function(e){return Promise.reject(e)}),e.interceptors.response.use(function(e){var t=e.data;return 0===t.code?t:Promise.reject(t)},function(e){return Promise.reject(e)})},t.instance=function(e){var t=this.merge(e),n=u.a.create(t);return this.setInterceptor(n),n},e}())).instance(),f=n(10),d=n.n(f),p="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",v=new Array(-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,62,-1,-1,-1,63,52,53,54,55,56,57,58,59,60,61,-1,-1,-1,-1,-1,-1,-1,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,-1,-1,-1,-1,-1,-1,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,-1,-1,-1,-1,-1),m={encode:function(e){return function(e){var t,n,a,r,i,o;for(a=e.length,n=0,t="";n<a;){if(r=255&e.charCodeAt(n++),n==a){t+=p.charAt(r>>2),t+=p.charAt((3&r)<<4),t+="==";break}if(i=e.charCodeAt(n++),n==a){t+=p.charAt(r>>2),t+=p.charAt((3&r)<<4|(240&i)>>4),t+=p.charAt((15&i)<<2),t+="=";break}o=e.charCodeAt(n++),t+=p.charAt(r>>2),t+=p.charAt((3&r)<<4|(240&i)>>4),t+=p.charAt((15&i)<<2|(192&o)>>6),t+=p.charAt(63&o)}return t}(function(e){var t,n,a,r;for(t="",a=e.length,n=0;n<a;n++)(r=e.charCodeAt(n))>=1&&r<=127?t+=e.charAt(n):r>2047?(t+=String.fromCharCode(224|r>>12&15),t+=String.fromCharCode(128|r>>6&63),t+=String.fromCharCode(128|r>>0&63)):(t+=String.fromCharCode(192|r>>6&31),t+=String.fromCharCode(128|r>>0&63));return t}(e))},decode:function(e){return function(e){var t,n,a,r,i,o;for(t="",a=e.length,n=0;n<a;)switch((r=e.charCodeAt(n++))>>4){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:t+=e.charAt(n-1);break;case 12:case 13:i=e.charCodeAt(n++),t+=String.fromCharCode((31&r)<<6|63&i);break;case 14:i=e.charCodeAt(n++),o=e.charCodeAt(n++),t+=String.fromCharCode((15&r)<<12|(63&i)<<6|(63&o)<<0)}return t}(function(e){var t,n,a,r,i,o,c;for(o=e.length,i=0,c="";i<o;){do{t=v[255&e.charCodeAt(i++)]}while(i<o&&-1==t);if(-1==t)break;do{n=v[255&e.charCodeAt(i++)]}while(i<o&&-1==n);if(-1==n)break;c+=String.fromCharCode(t<<2|(48&n)>>4);do{if(61==(a=255&e.charCodeAt(i++)))return c;a=v[a]}while(i<o&&-1==a);if(-1==a)break;c+=String.fromCharCode((15&n)<<4|(60&a)>>2);do{if(61==(r=255&e.charCodeAt(i++)))return c;r=v[r]}while(i<o&&-1==r);if(-1==r)break;c+=String.fromCharCode((3&a)<<6|r)}return c}(e))}},h=!!window.navigator.userAgent.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/),g=window.navigator.userAgent.indexOf("Android")>=0,b={isIos:function(){return h},isAndroid:function(){return g},setkeyValue:function(e,t){if(window.localStorage)return window.localStorage.setItem(e,t)},getKeyValue:function(e){return window.localStorage.getItem(e)||""},removeKeyValue:function(e){window.localStorage&&window.localStorage.removeItem(e)},getKeys:function(){if(window.localStorage){for(var e=[],t=0;t<window.localStorage.length;t++)e.push(window.localStorage.key(t));return e}},getKeyObjectValue:function(e,t){var n=this.getKeyValue(e);return n?JSON.parse(n):t||{}},contentFormat:function(e){if(this.isString(e)){var t=new RegExp("\r\n","g"),n=new RegExp("\n","g");return e.replace(t,"<br>").replace(n,"<br>")}return""},html2Escape:function(e){return e.replace(/[<>&"]/g,function(e){return{"<":"<",">":">","&":"&",'"':"""}[e]})},contentFormat2:function(e){return this.isString(e)?this.html2Escape(e).replace(/\r?\n/g,"<br />"):""},clearLocVal:function(){window.localStorage&&window.localStorage.clear()},isDateString:function(e){return!(!isNaN(e)||isNaN(Date.parse(e)))},getDateTime:function(e){var t;switch(e){case 0:t=this.format("yyyy-MM-dd hh:mm:ss");break;case 1:t=this.format("yyyy-MM-dd");break;case 2:t=this.format("hh:mm:ss")}return t},getValue:function(e){return"object"==typeof e?e.value:e},getKey:function(e){return"object"==typeof e?e.key:e},tpSplit:function(e,t){return""==(e=e||"").trim()?[]:(t=t||";",e.lastIndexOf(t)+1===e.length&&e.length>0&&(e=e.substring(0,e.length-1)),0===e.indexOf(t)&&(e=e.substring(1,e.length)),e.split(t))},format:function(e){var t={"M+":(new Date).getMonth()+1,"d+":(new Date).getDate(),"h+":(new Date).getHours(),"m+":(new Date).getMinutes(),"s+":(new Date).getSeconds(),"q+":Math.floor(((new Date).getMonth()+3)/3),S:(new Date).getMilliseconds()};for(var n in/(y+)/.test(e)&&(e=e.replace(RegExp.$1,((new Date).getFullYear()+"").substr(4-RegExp.$1.length))),t)new RegExp("("+n+")").test(e)&&(e=e.replace(RegExp.$1,1==RegExp.$1.length?t[n]:("00"+t[n]).substr((""+t[n]).length)));return e},getDateFmt:function(e){return e.length>=16?"YYYY-MM-DD HH:mm":13==e.length?"YYYY-MM-DD HH":10==e.length||11==e.length?"YYYY-MM-DD":7==e.length?"YYYY-MM":4==e.length?"YYYY":5==e.length?"HH:mm":void 0},numFmt:function(e){return e>10?""+e:"0"+e},getNextMonthDate:function(e){if(this.isDate(e)){var t=e.getFullYear(),n=e.getMonth()+1;return 13==++n&&(n=1,t++),new Date(t,n-1,(new Date).getDate())}return new Date},getPreMonthDate:function(e){if(this.isDate(e)){var t=e.getFullYear(),n=e.getMonth()+1;return 0==--n&&(n=12,t--),new Date(t,n-1,(new Date).getDate())}return new Date},dateFmt:function(e,t){if(!this.isString(t))return t;if(""==t)return t;(t=t.replace(/-/g,"/")).length>19&&(t=t.substring(0,19));var n={"M+":(t=new Date(t)).getMonth()+1,"d+":t.getDate(),"h+":t.getHours(),"m+":t.getMinutes(),"s+":t.getSeconds(),"q+":Math.floor((t.getMonth()+3)/3),S:t.getMilliseconds()};for(var a in/(y+)/.test(e)&&(e=e.replace(RegExp.$1,(t.getFullYear()+"").substr(4-RegExp.$1.length))),n)new RegExp("("+a+")").test(e)&&(e=e.replace(RegExp.$1,1==RegExp.$1.length?n[a]:("00"+n[a]).substr((""+n[a]).length)));return e},getDateNum:function(e,t,n){var a,r,i,o=n||"-";a=e.split(o),r=t.split(o);var c=new Date(a[0],a[1]-1,a[2]),s=new Date(r[0],r[1]-1,r[2]);return i=parseInt(Math.abs(c-s)/1e3/60/60/24,10),parseInt(i,10)},getDateByDay:function(e,t,n){var a,r=n||"-";a=e.split(r);var i=new Date(a[0],a[1]-1,a[2]).getTime();return new Date(i-60*t*60*24*1e3)},isTelPhone:function(e){return/^1(3|4|5|7|8)\d{9}$/.test(e)},isTel:function(e){return/^(\(\d{3,4}\)|\d{3,4}-|\s)?\d{7,14}$/.test(e)},isEmail:function(e){return/^([a-zA-Z0-9._-])+@([a-zA-Z0-9_-])+(\.[a-zA-Z0-9_-])+/.test(e)},getScrollTop:function(){return document.documentElement.scrollTop||document.body.scrollTop},trim:function(e){return String.prototype.trim?null==e?"":String.prototype.trim.call(e):e.replace(/(^\s*)|(\s*$)/g,"")},trimAll:function(e){return e.replace(/\s*/g,"")},isArray:function(e){return this.isType(e,"Array")},isObject:function(e){return this.isType(e,"Object")},isRegExp:function(e){return this.isType(e,"RegExp")},isString:function(e){return this.isType(e,"String")},isNumber:function(e){return this.isType(e,"Number")},isBoolean:function(e){return this.isType(e,"Boolean")},isFunction:function(e){return this.isType(e,"Function")},isNull:function(e){return null===e},isUndefined:function(e){return void 0===e},isDate:function(e){return this.isType(e,"Date")},isType:function(e,t){return Object.prototype.toString.call(e)==="[object "+t+"]"},isEmptyObject:function(e){return"{}"===JSON.stringify(e)},sortByObj:function(e){return function(t,n){return t[e]-n[e]}},replaceAllText:function(e,t,n){return void 0===n&&(n=""),e.replace(new RegExp(t,"g"),n)},equalArray:function(e,t){var n={};return e.reduce(function(e,t){return!n[t.id]&&(n[t.id]=e.push(t)),e},[])},arryHasVal:function(e,t){for(var n=0;n<e.length;n++)if(e[n]===t)return!0;return!1},arryIndexOf:function(e,t){for(var n=0;n<e.length;n++)if(e[n]===t)return n;return-1},arryRemoveVal:function(e,t){var n=this.arryIndexOf(e,t);n>-1&&e.splice(n,1)},extendDeep:function(e,t){var n,a;for(n in a=JSON.stringify(e),a=JSON.parse(a),t=t||{},a)a.hasOwnProperty(n)&&(t[n]=a[n]);return a=null,t},extend:function(e,t){var n;for(n in e)t[n]=e[n];return t},throttle:function(){var e,t,n=arguments[0];if(this.isBoolean(n))(e=arguments[1]).__throttleID&&clearTimeout(e.__throttleID);else{e=n,t=arguments[1];var a=this.extend(t,{context:null,args:[],time:800});this.throttle(!0,e),e.__throttleID=setTimeout(function(){e.apply(a.context,a.args)},a.time)}},getSuffixName:function(e){var t=e.lastIndexOf(".");return t>=0?e.substring(t+1,e.length):""},getFileType:function(e){var t="";return"doc"==e||"ppt"==e||"pptx"==e||"xls"==e||"xlsx"==e||"xlt"==e||"docx"==e||"txt"==e?t="OFFICE":"pdf"==e?t="PDF":"png"!=e&&"jpg"!=e&&"jpeg"!=e&&"gif"!=e&&"bmp"!=e||(t="IMAGE"),t},isOffice:function(e){var t=e||"";return"doc"==(t=t.toLowerCase())||"ppt"==t||"pptx"==t||"xls"==t||"xlsx"==t||"docx"==t},showToast:function(e){d.a.$vux.toast.show({text:e.text||"提示",time:e.time||2e3,isShowMask:!0,width:"80%",type:e.type||"warn",position:e.position||"middle"})},createId:function(){return Math.random().toString(36).substring(3,8)},getAttachType:function(e){return"doc"==(e=e.toLowerCase()||"")||"docx"==e||"wps"==e?"#tpicon-doc":"xls"==e||"xlsx"==e?"#tpicon-excel":"pdf"==e?"#tpicon-pdf":"jpg"==e||"png"==e||"gif"==e||"bmp"==e||"jpeg"==e?"#tpicon-png":"rar"==e||"zip"==e||"7z"==e?"#tpicon-zip":"folder"==e?"#tpicon-folder":"txt"==e?"#tpicon-txt":"ppt"==e||"pptx"==e?"#tpicon-ppt":"wav"==e||"mp3"==e?"#tpicon-audio":"mp4"==e?"#tpicon-video":"#tpicon-other_attach"},getFunParam:function(e,t,n){var a=e+"_Callback_"+(new Date).getTime();return window[a]=function(e){n&&n.cBack&&n.cBack(e)},this.extendDeep(t,{__callback:a})},getImageUrl:function(e,t,n){if("0"==n){return t+"/api/v1/proxy/picProxy/"+m.encode(e)}return t+e},dateCountFmt:function(e){return e>9?e:"0"+e},pure:function(e){return JSON.parse(JSON.stringify(e))},getOSInfo:function(){var e={},t=navigator.userAgent,n=t.match(/(MicroMessenger)\/([\d\.]+)/i);n&&(e.wechat={version:n[2].replace(/_/g,".")},e.type="wechat");var a=t.match(/(Android);?[\s\/]+([\d.]+)?/);a&&(e.type="android",e.android=!0,e.version=a[2],e.isBadAndroid=!/Chrome\/\d/.test(window.navigator.appVersion));var r=t.match(/(iPhone\sOS)\s([\d_]+)/),i=/iPad/i.test(t)||/Macintosh/i.test(t);return r?(e.type="ios",e.ios=e.iphone=!0):i&&(e.type="ios",e.ios=e.ipad=!0),/win|mac/i.test(navigator.platform)&&!i&&(e.type="pc"),"micromessenger"==navigator.userAgent.toLowerCase().match(/MicroMessenger/i)&&(e.type="uaWechat"),e},setViewport:function(e){var t=document.querySelector("meta[name=viewport]"),n="width=device-width, initial-scale="+(e.initialScale||"1.0")+", minimum-scale="+(e.minimumScale||"1.0")+", maximum-scale="+(e.maximumScale||"1.0")+", user-scalable="+(e.userScalable?"yes":"no");t&&t.setAttribute("content",n)}},y=function(){function e(){return(65536*(1+Math.random())|0).toString(16).substring(1)}return{guid16:function(){return e()+e()+e()+e()}}}(),w={ajax:l,common:b,random:y},k="/api/v1/proxy/common1",N="/api/v1/proxy/common2",C="/api/v1/proxy/common3",S=((o={SCHEDULE_QUERY:N,GMCAPP:N,ZNYW:N,MIS:C,NEWS:N,IRR:C,SALARY:N,JKKQ:N,SCHEDULE:N,OA:N,JSC:N,FKXT:N,JTKQ:C,HEC:N,SVC:N,SCV:k,SCV_NEW:k,TPAudit:k,partyBuilding:k,controlCabin:k,HRX_ESS:k,intelligentPersonnel:k}).IRR=N,o.MOM=k,o),x={defaultSystemTag:"MOM",systemTag:"XWEB",generateCallbackName:function(){for(var e="",t=1;t<=32;t++){e+=Math.floor(16*Math.random()).toString(16)}return"cb_"+e},getServerParams:function(e,t){if("XWEB"===e.system&&t)return e.params;var n=e.params||{};return"XWEB"!==e.system&&n&&"object"==typeof n&&(n=JSON.stringify(n)),{method:e.method||"",params:n,system:e.system||"MOM"}},getServiceUrl2:function(e,t){var n=e.service;return"XWEB"===t.system?e.url+t.method:e.url+n[t.system||"MOM"]||n.MOM},getServiceUrl:function(e){var t=b.getKeyValue("urlKey")||"",n=b.getKeyObjectValue("serviceKey",S);return"XWEB"===e.system?t+e.method:t+(n[e.system]||k)}},P=((c={request:{overHandler:function(e){var t=x.getServiceUrl(e),n=x.getServerParams(e,!0);return l.post(t,n)}},getBaseInfo:{resolveData:{code:0,data:{id:"105426",loginName:"",hrID:"K3NS7NBJ8GLATZ6FD7DG",roles:[{code:"common",name:"普通员工"}],host:"/xweb",appKey:"7fd10f76-c33d-42d7-a37e-d927304dc483",themeColor:"#006CCE",titleBackgroundColor:"#FFFFFF",backgroundColor:"#FCF5F5",titleFontColor:"#212529"}}},getUserInfo:{resolveData:{code:0,data:{userName:"",phone:"",telphone:"",IPPhone:"",email:"",department:"",position:"",organization:"",watermark:""}}},getDeviceInfo:{resolveData:{code:0,data:{token:"xxxxx",os:"Android|iOS",type:"Phone|Pad",model:"型号(小米 5S)",vendor:"品牌(小米)"}}},getNetStatus:{resolveData:{code:0,data:{status:"4g"}}},getPhoto:{resolveData:{code:0,data:{list:[{path:"原图1路径",thumbPath:"缩略图1路径"},{path:"原图2路径",thumbPath:"缩略图2路径"}]}}},upload:{resolveData:{code:0,data:{files:[{name:"file1.jpg",url:"http://www..../file1.jpg",type:"jpg"}]}}},selectUser:{resolveData:{code:0,data:{users:[{id:"1156",userName:"张三",avatar:"http://.../1156.jpg",companyId:"123",company:"",phone:"",telephone:"",IPPhone:"",email:"",departmentId:"101",department:"",position:""},{id:"1157",userName:"",avatar:"http://.../1156.jpg",companyId:"123",company:"",phone:"",telephone:"",IPPhone:"",email:"",departmentId:"101",department:"",position:""}]}}},getStepCount:{resolveData:{code:0,result:[{date:"20190615",stepCount:7400},{date:"20190616",stepCount:12600}]}},adjustCardHeight:{resolveData:{code:0,data:{result:[{rate:"1.0"}]}}},searchUser:{resolveData:{code:0,data:{users:[{id:"1",userName:"",avatar:"https://.../img/profile.jpg",companyId:"1",company:"",phone:"",telephone:"",IPPhone:"",email:"",departmentId:"3",department:"",position:""},{id:"2",userName:"",avatar:"https://.../img/profile.jpg",companyId:"1",company:"",phone:"",telephone:"",IPPhone:"",email:"",departmentId:"3",department:"",position:""}]}}},selectFile:{resolveData:{code:0,data:{files:[{name:"信息反馈表.doc",type:"doc",size:39151,path:"",source:"APP"}]}}},getFileBase64String:{resolveData:{code:0,data:{base64String:"5bm06L275Lq677yM5aW95aWH5b+D5LiN6KaB6YKj5LmI5by677yB"}}},choiceInvoice:{resolveData:{code:0,data:{list:[{card_id:"pIKi3wTZ_JwQbJ74zsQxNRpzTc-4",cardState:0,encrypt_code:""},{card_id:"pEVWfuBIATRHlanYIfSNkl00yodo",cardState:0,encrypt_code:""}]}}},quesShare:{resolveData:{code:0}},shareToYxtp:{resolveData:{code:0}},grantStoragePermission:{result:!0,resolveData:{code:0,data:{havePermission:!0}},rejectData:{code:1,data:{havePermission:!1},msg:""}},call:{resolveData:{code:0}},mail:{resolveData:{code:0}},hideKeyboard:{resolveData:{code:0}},sms:{resolveData:{code:0}},getLanguage:{resolveData:{code:0,data:{language:"zh_CN"}}},speechRecognize:{resolveData:{code:0,data:{content:"这是语音转出来的文字"}}},getLightApp:{resolveData:{code:0,data:{appCode:"",lightAppName:"",appStatus:"ENABLE",appType:"FIXED",address:"",iconAddressSmall:"",relativePath:"newOA",languageCode:"zh_CN",absolutePath:"",lightAppId:"118",version:"10134",unzip:"Y",iconAddressBig:"",folderPath:"",versionSize:479047}}},createGroup:{resolveData:{code:0,data:{groupId:"test12345",groupName:"测试群组"}}},openGroupChat:{resolveData:{code:0,msg:""}},addGroupMembers:{resolveData:{code:0,msg:""}},deleteGroupMembers:{resolveData:{code:0,msg:""}},renameGroup:{resolveData:{code:0,data:{groupId:"xxxx",groupName:"xxxxx"}}},searchGroupMembers:{resolveData:{code:0,data:{list:[{contactAlias:"",create_dt:1603872374938,gorder:1,id:"",isExecutive:!1,mobile:"",mute_status:0,name:"",alias:"",portrait_url:"",update_dt:1603872374938,user_type:0}]}}},getLocationInfo:{resolveData:{code:0,data:{longitude:"114.",latitude:"22.",country:"中国",province:"",city:"",district:"",street:"",number:"",citycode:"",adcode:"",POIName:"",AOIName:"",address:""}}},showLocationInfo:{resolveData:{code:0,data:{}}},getConnectionWifiInfo:{resolveData:{code:0,data:{BSSID:"9c:50:ee:77:1f:71",SSID:"TP-GUEST"}}},getWifiList:{resolveData:{code:0,data:{list:[{BSSID:"9c:50:ee:77:1f:71",SSID:"TP-GUEST"},{BSSID:"12:34:56:78:90:a1",SSID:"TP-Dev"}]}}},getDistanceBetweenTwoPoints:{resolveData:{code:0,data:{list:[{sDistance:500,distance:100,isIn:!0}]}}},editPhotos:{resolveData:{code:0,data:{}}},continuousShooting:{resolveData:{code:0,data:{}}},invoiceImageProcessing:{resolveData:{code:0,data:{info:[{imgType:"0"},{invoiceid:"",Invoicetype:"",invoicecode:"044031600111",invoicenum:"36986934",Invoicedate:"2018年02月04日",checkcode:"538045",buyname:"",buynsrsbh:"",amount:" ",imgType:"1",taxamount:"",totalamount:"",salesname:"",salesnsrsbh:"",mima1:"",mima2:"",mima3:"",mima4:"",checkstatu:"0",goodslist:[{goodsname:"",goodsamount:"",goodstaxamount:""}],area:{leftx:"",lefty:"",rightx:"",righty:""}},{trainnum:"G1312",startstation:"",endstation:"",ridedate:"",seatnum:"",ticketprice:"368.5",seatuser:"",seattype:"",path:"",imgType:"2"}]}}},getVoiceprintStatus:{resolveData:{code:0,data:{permission:!0,enable:!0}}}}).getVoiceprintStatus={resolveData:{code:0,data:{code:101,msg:"没有该原生方法"}}},c.sendIMMessage={resolveData:{code:0,msg:""}},c.shareToWechat={resolveData:{code:0,msg:""}},c.shareToWechat={resolveData:{code:0,data:{}}},c.TPNotificationScreenshot={resolveData:{code:0,data:{}}},c.TPNotificationShowKeyboard={resolveData:{code:0,data:{height:200}}},c.TPNotificationHideKeyboard={resolveData:{code:0,data:{}}},c.recognizeCard={resolveData:{code:0,data:{firstName:"三",middleName:"",lastName:"张",fullName:"张三",nickName:"三哥",phones:[{label:"CELL",info:""},{label:"FAX",info:""}],emails:[{label:"WORK",info:""},{label:"HOME",info:""}],urls:[{label:"HOMEPAGE",info:""},{label:"HOMEPAGE",info:""}],companies:[{company:"",jobtitle:"董事",department:"董事会"},{company:"",jobtitle:"总经理",department:""}],addresses:[{label:"WORK",country:"",province:"",city:"",street:"",street2:"",postcode:"",address:""}],SNS:[{type:"WEIBO",account:"zhangsan"}],IM:[{label:"QQ",url:"612345"}],companyRegisterCode:"",cardPath:"/.../20191025163600123.jpg",vcard:""}}},c.scanCard={resolveData:{code:0,data:{firstName:"",middleName:"",lastName:"",fullName:"",nickName:"",phones:[{label:"CELL",info:""},{label:"FAX",info:""}],emails:[{label:"WORK",info:""},{label:"HOME",info:""}],urls:[{label:"HOMEPAGE",info:""},{label:"HOMEPAGE",info:""}],companies:[{company:"",jobtitle:"",department:""},{company:"",jobtitle:"",department:""}],addresses:[{label:"WORK",country:"中国",province:"广东省",city:"",street:"",street2:"",postcode:"",address:""}],SNS:[{type:"WEIBO",account:"zhangsan"}],IM:[{label:"QQ",url:"612345"}],companyRegisterCode:"",cardPath:"/.../20191025163600123.jpg",vcard:""}}},c.scanQRCode={resolveData:{code:0,data:{result:["",""]}}},c.scan={resolveData:{code:0,data:{result:["",""]}}},c.toast={resolveData:{code:0,data:{}}},c.alert={resolveData:{code:0,data:{}}},c.confirm={resolveData:{code:0,data:{isConfirm:!0}}},c.getShortVideo={resolveData:{code:0,data:{name:"20191018100101123.mp4",size:11020,duration:19,videoPath:"/.../20191018100101123.mp4",coverPath:"/.../20191018100101123_cover.jpg",width:1242,height:2688}}},c.startRecord={result:!0,responseTime:1e3,resolveData:{code:0,data:{status:"recording",valume:0}},rejectData:{code:1,msg:""}},c.pauseRecord={resolveData:{code:0,data:{}}},c.resumeRecord={resolveData:{code:0,msg:"",data:{}}},c.stopRecord={resolveData:{code:0,msg:"",data:{path:"/原生本地路径/.../yyyyMMddHHmmss.wav",size:10240,duration:59}}},c.getRecordStatus={resolveData:{code:0,msg:"",data:{status:"paused"}}},c.startPlayingAudio={resolveData:{code:0,msg:"",data:{}}},c.stopPlayingAudio={resolveData:{code:0,msg:"",data:{}}},c.pausePlayingAudio={resolveData:{code:0,msg:"",data:{}}},c.resumePlayingAudio={resolveData:{code:0,msg:"",data:{}}},c.getPlayingAudioStatus={resolveData:{code:0,msg:"",data:{status:"playing"}}},c.checkLightAppLock={resolveData:{code:0,msg:"",data:{}}},c.closeView={overHandler:function(){window.history.back()}},c.setTimedTasks={overHandler:function(e){(e.tasks||[]).forEach(function(e){window.clearInterval(window.taskId),window.taskId=window.setInterval(function(){"function"==typeof window[e.task]&&window[e.task]()},1e3*e.timeInterval)})}},c.executeSQL={overHandler:function(){}},c.querySQL={overHandler:function(){}},c.viewAppear={overHandler:function(){}},c.viewDisappear={overHandler:function(){}},c.setScreenOrientation={overHandler:function(e){}},c.subscribeNotification={overHandler:function(e){}},c.unsubscribeNotification={overHandler:function(e){}},c.postNotification={overHandler:function(e){"function"==typeof window.handlenewDataNotify&&window.handlenewDataNotify(e.content)}},c.joinXYMeeting={overHandler:function(e){}},c.reserveCloudMeeting={overHandler:function(e){}},c.createCloudMeeting={overHandler:function(e){}},c.joinCloudMeeting={overHandler:function(e){}},c);function D(e,t,n){var a=window.pcNativeConfig,r=null;if(a&&a[e]?r=a[e]:P&&P[e]&&(r=P[e]),r&&n&&b.isFunction(n)){var i=n(r);r&&i&&(r.resolveData=i)}if(!1!=!!r){var o="boolean"!=typeof r.result||r.result,c=r.responseTime||1e3,s=r.resolveData||{},u=r.rejectData||{};setTimeout(function(){o?window[t.callback](s):window[t.callback](u)},c)}else"[object Object]"===Object.prototype.toString.call(t)&&t.callback&&Reflect.deleteProperty(window,t.callback)}function T(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}var A,I=new(function(e){var t,n;function a(){return e.apply(this,arguments)||this}return n=e,(t=a).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,a}(function(){function e(){}var t,n,a,r=e.prototype;return r.initNativeCallback=function(e,t,n,a){var r=x.generateCallbackName();return r=!0===n?"keep_"+r:r,window[r]=function(n){r.indexOf("keep_")<0&&setTimeout(function(){Reflect.deleteProperty(window,r)},1e4);var i=window[a];a&&i&&(i.data=n,window.dispatchEvent(i)),0===n.code?e(n):t(n)},r},r.invokeNative=function(e,t){switch(this.os.type){case"ios":t?TPNative[e](t):TPNative[e]();break;case"android":t?native[e](JSON.stringify(t)):native[e]();break;default:try{t?PCNative(e,t):PCNative(e)}catch(e){}}},r.request=function(e){var t=this;return new Promise(function(n,a){var r=t.initNativeCallback(n,a),i={param:x.getServerParams(e),callback:r};t.invokeNative("request",i)})},r.getBaseInfo=function(){var e=this;return new Promise(function(t,n){var a={callback:e.initNativeCallback(t,n)};e.invokeNative("getBaseInfo",a)})},r.getUserInfo=function(){var e=this;return new Promise(function(t,n){var a={callback:e.initNativeCallback(t,n)};e.invokeNative("getUserInfo",a)})},r.getDeviceInfo=function(){var e=this;return new Promise(function(t,n){var a={callback:e.initNativeCallback(t,n)};e.invokeNative("getDeviceInfo",a)})},r.getNetStatus=function(){var e=this;return new Promise(function(t,n){var a={callback:e.initNativeCallback(t,n)};e.invokeNative("getNetStatus",a)})},r.getPhoto=function(e){var t=this;return new Promise(function(n,a){var r=t.initNativeCallback(n,a),i={param:{type:e.type,maxNumber:e.maxNumber||1},callback:r};t.invokeNative("getPhoto",i)})},r.showPhoto=function(e){var t=this;return new Promise(function(n,a){var r=t.initNativeCallback(n,a),i={param:{paths:e.paths||[],index:e.index||0,canSave:e.canSave||!1},callback:r};t.invokeNative("showPhoto",i)})},r.compressPhoto=function(e){var t=this;return new Promise(function(n,a){var r=t.initNativeCallback(n,a),i={param:{paths:e.paths,maxSide:e.maxSide?Number(e.maxSide):"",maxSize:e.maxSize?Number(e.maxSize):""},callback:r};t.invokeNative("compressPhoto",i)})},r.showLoading=function(e){var t={param:{msg:e||"加载中"}};this.invokeNative("showLoading",t)},r.hideLoading=function(){this.invokeNative("hideLoading")},r.openWeb=function(e){var t={param:{url:e.url||"",title:e.title||""}};this.invokeNative("openWeb",t)},r.openLightApp=function(e){var t=this;return new Promise(function(n,a){var r=t.initNativeCallback(n,a),i={param:{appCode:e.appCode||"",url:e.url||""},callback:r};t.invokeNative("openLightApp",i)})},r.closeView=function(e){var t={param:{allView:(e||{}).allView||!1}};this.invokeNative("closeView",t)},r.upload=function(e){var t=this;return new Promise(function(n,a){var r=t.initNativeCallback(n,a),i={param:{paths:e.paths||[],system:e.system||t.defaultSystemTag,hideLoading:e.hideLoading||!1},callback:r};t.invokeNative("upload",i)})},r.openFile=function(e){var t=this;return new Promise(function(n,a){var r=t.initNativeCallback(n,a),i={param:{url:e.url||"",system:e.system||systemTag,name:e.name||"",type:e.type||"",download:e.download||!1},callback:r};t.invokeNative("openFile",i)})},r.tpBack=function(e){},r.selectUser=function(e){var t=this;return new Promise(function(n,a){var r=t.initNativeCallback(n,a),i={param:{initUsers:e.initUsers||[],maxNumber:e.maxNumber||200,allowsEditing:e.allowsEditing||!0,excludedUsers:e.excludedUsers||[]},callback:r};t.invokeNative("selectUser",i)})},r.getStepCount=function(e){var t=this;return new Promise(function(n,a){var r=t.initNativeCallback(n,a),i={param:{startDate:e.startDate||"",endDate:e.endDate||""},callback:r};t.invokeNative("getStepCount",i)})},r.setTimedTasks=function(e){var t=this;return new Promise(function(n,a){var r=t.initNativeCallback(n,a),i={param:{tasks:e.tasks||[]},callback:r};t.invokeNative("setTimedTasks",i)})},r.executeSQL=function(e){var t=this;return new Promise(function(n,a){var r=t.initNativeCallback(n,a),i={param:{sqls:e.sqls||[]},callback:r};t.invokeNative("executeSQL",i)})},r.querySQL=function(e){var t=this;return new Promise(function(n,a){var r=t.initNativeCallback(n,a),i={param:{sql:e.sql,parameter:e.parameter||[]},callback:r};t.invokeNative("querySQL",i)})},r.viewAppear=function(){this.invokeNative("viewAppear")},r.viewDisappear=function(){this.invokeNative("viewDisappear")},r.adjustCardHeight=function(e){var t=this;return new Promise(function(n,a){var r=t.initNativeCallback(n,a),i={param:{rate:e.rate||""},callback:r};t.invokeNative("adjustCardHeight",i)})},r.subscribeNotification=function(e){var t=x.generateCallbackName();window[t]=function(t){b.isFunction(e.callback)&&e.callback(t)};var n={param:{name:e.name,function:t}};this.invokeNative("subscribeNotification",n)},r.unsubscribeNotification=function(e){var t={param:{name:e.name}};this.invokeNative("unsubscribeNotification",t)},r.postNotification=function(e){var t={param:i({},e)};this.invokeNative("postNotification",t)},r.searchUser=function(e){var t=this;return new Promise(function(n,a){var r=t.initNativeCallback(n,a),i={param:{keyword:e.keyword,pageNumber:e.pageNumber||0,pageSize:e.pageSize||20},callback:r};t.invokeNative("searchUser",i)})},r.selectFile=function(e){var t=this;return new Promise(function(n,a){var r=t.initNativeCallback(n,a),i={param:{maxNumber:e.maxNumber||"1",maxFileSize:e.maxFileSize||"31457280",acceptTypes:e.acceptTypes||[]},callback:r};t.invokeNative("selectFile",i)})},r.getFileBase64String=function(e){var t=this;return new Promise(function(n,a){var r=t.initNativeCallback(n,a),i={param:{path:e.path},callback:r};t.invokeNative("getFileBase64String",i)})},r.choiceInvoice=function(e){var t=this;return new Promise(function(n,a){var r=t.initNativeCallback(n,a),i={param:{cardSign:e.cardSign||"",nonceStr:e.nonceStr||"",timeStamp:e.timeStamp||(new Date).getTime(),type:e.type||"wx"},callback:r};t.invokeNative("choiceInvoice",i)})},r.joinXYMeeting=function(){var e=this;return new Promise(function(t,n){var a=e.initNativeCallback(t,n),r={param:{number:opt.number||"",pwd:opt.pwd||""},callback:a};e.invokeNative("joinXYMeeting",r)})},r.reserveCloudMeeting=function(e){var t=this;return new Promise(function(n,a){var r=t.initNativeCallback(n,a),i={param:{subject:e.subject,startTime:e.startTime||"",duration:e.duration||""},callback:r};t.invokeNative("reserveCloudMeeting",i)})},r.createCloudMeeting=function(e){var t=this;return new Promise(function(n,a){var r=t.initNativeCallback(n,a),i={param:{type:e.type||"xy",subject:e.subject||"",startTime:e.startTime||"",endTime:e.endTime||""},callback:r};t.invokeNative("createCloudMeeting",i)})},r.joinCloudMeeting=function(e){var t=this;return new Promise(function(n,a){var r=t.initNativeCallback(n,a),i={param:{type:e.type,roomID:e.roomID||"",password:e.password||"",IPAddress:e.IPAddress||"",isPolycom:e.isPolycom},callback:r};t.invokeNative("joinCloudMeeting",i)})},r.quesShare=function(e){var t=this;return new Promise(function(n,a){var r=t.initNativeCallback(n,a),o={param:i({},e),callback:r};t.invokeNative("quesShare",o)})},r.shareToYxtp=function(e){var t=this;return new Promise(function(n,a){var r=t.initNativeCallback(n,a),o={param:i({},e),callback:r};t.invokeNative("shareToYxtp",o)})},r.grantStoragePermission=function(e){var t=this;return new Promise(function(n,a){var r=t.initNativeCallback(n,a),o={param:i({},e),callback:r};t.invokeNative("grantStoragePermission",o)})},r.getModule=function(){},r.call=function(e){var t=this;return new Promise(function(n,a){var r=t.initNativeCallback(n,a),o={param:i({},e),callback:r};t.invokeNative("call",o)})},r.sms=function(e){var t=this;return new Promise(function(n,a){var r=t.initNativeCallback(n,a),o={param:i({},e),callback:r};t.invokeNative("sms",o)})},r.mail=function(e){var t=this;return new Promise(function(n,a){var r=t.initNativeCallback(n,a),o={param:i({},e),callback:r};t.invokeNative("mail",o)})},r.getLanguage=function(){var e=this;return new Promise(function(t,n){var a={callback:e.initNativeCallback(t,n)};e.invokeNative("getLanguage",a)})},r.speechRecognize=function(){var e=this;return new Promise(function(t,n){var a=e.initNativeCallback(t,n),r={param:i({},opt),callback:a};e.invokeNative("speechRecognize",r)})},r.getLightApp=function(e){var t=this;return new Promise(function(n,a){var r=t.initNativeCallback(n,a),o={param:i({},e),callback:r};t.invokeNative("getLightApp",o)})},r.createGroup=function(e){var t=this;return new Promise(function(n,a){var r=t.initNativeCallback(n,a),o={param:i({},e),callback:r};t.invokeNative("createGroup",o)})},r.openGroupChat=function(e){var t=this;return new Promise(function(n,a){var r=t.initNativeCallback(n,a),o={param:i({},e),callback:r};t.invokeNative("openGroupChat",o)})},r.addGroupMembers=function(e){var t=this;return new Promise(function(n,a){var r=t.initNativeCallback(n,a),o={param:i({},e),callback:r};t.invokeNative("addGroupMembers",o)})},r.deleteGroupMembers=function(e){var t=this;return new Promise(function(n,a){var r=t.initNativeCallback(n,a),o={param:i({},e),callback:r};t.invokeNative("deleteGroupMembers",o)})},r.toast=function(e){var t=this;return new Promise(function(n,a){var r=t.initNativeCallback(n,a),i={param:{type:e.type,content:e.content||""},callback:r};t.invokeNative("toast",i)})},r.alert=function(e){var t=this;return new Promise(function(n,a){var r=t.initNativeCallback(n,a),i={param:{content:e.content||""},callback:r};t.invokeNative("alert",i)})},r.confirm=function(e){var t=this;return new Promise(function(n,a){var r=t.initNativeCallback(n,a),i={param:{title:e.title||"",content:e.content||"",cancelButtonTitle:e.cancelButtonTitle||"",confirmButtonTitle:e.confirmButtonTitle||""},callback:r};t.invokeNative("confirm",i)})},r.getShortVideo=function(e){var t=this;return new Promise(function(n,a){var r=t.initNativeCallback(n,a),i={param:{minDuration:e.minDuration,maxDuration:e.maxDuration},callback:r};t.invokeNative("getShortVideo",i)})},r.scan=function(e){var t=this;return new Promise(function(n,a){var r=t.initNativeCallback(n,a),i={param:{type:e.type||["QRCode"],isInBatch:e.isInBatch||!1,showAlbum:e.showAlbum||!1,startTip:e.startTip||""},callback:r};t.invokeNative("scan",i)})},r.scanQRCode=function(e){var t=this;return new Promise(function(n,a){var r=t.initNativeCallback(n,a),i={param:{isInBatch:e.isInBatch||!1,showAlbum:e.showAlbum||!1},callback:r};t.invokeNative("scanQRCode",i)})},r.setScreenOrientation=function(e){var t=this;return new Promise(function(n,a){var r=t.initNativeCallback(n,a),o={param:i({},e),callback:r};t.invokeNative("setScreenOrientation",o)})},r.getLocationInfo=function(e){var t=this;return new Promise(function(n,a){var r=t.initNativeCallback(n,a),i={param:{showMap:e.showMap||!1},callback:r};t.invokeNative("getLocationInfo",i)})},r.showLocationInfo=function(e){var t=this;return new Promise(function(n,a){var r=t.initNativeCallback(n,a),i={param:{title:e.title||"",locationInfo:e.locationInfo||[],hideUserLocation:e.hideUserLocation||!1},callback:r};t.invokeNative("showLocationInfo",i)})},r.getConnectionWifiInfo=function(){var e=this;return new Promise(function(t,n){var a={param:{},callback:e.initNativeCallback(t,n)};e.invokeNative("getConnectionWifiInfo",a)})},r.getWifiList=function(){var e=this;return new Promise(function(t,n){var a={param:{},callback:e.initNativeCallback(t,n)};e.invokeNative("getWifiList",a)})},r.getDistanceBetweenTwoPoints=function(e){var t=this;return new Promise(function(n,a){var r=t.initNativeCallback(n,a),i={param:{list:e.list||[]},callback:r};t.invokeNative("getDistanceBetweenTwoPoints",i)})},r.editPhotos=function(e){var t=this;return new Promise(function(n,a){var r=t.initNativeCallback(n,a),i={param:{list:e.list||[]},callback:r};t.invokeNative("editPhotos",i)})},r.continuousShooting=function(e){var t=this;return new Promise(function(n,a){var r=t.initNativeCallback(n,a),i={param:{maxCount:e.maxCount||9,isNeedToEdit:e.isNeedToEdit||!1,isNeedCheckInclinedAngle:e.isNeedCheckInclinedAngle||!1,inclinedAngle:e.inclinedAngle||"15",tip:e.tip||""},callback:r};t.invokeNative("continuousShooting",i)})},r.invoiceImageProcessing=function(e){var t=this;return new Promise(function(n,a){var r=t.initNativeCallback(n,a),i={param:{action:e.action||"",info:e.info||""},callback:r};t.invokeNative("invoiceImageProcessing",i)})},r.getVoiceprintStatus=function(){var e=this;return new Promise(function(t,n){var a={param:{},callback:e.initNativeCallback(t,n)};e.invokeNative("getVoiceprintStatus",a)})},r.verifyVoiceprint=function(){var e=this;return new Promise(function(t,n){var a={param:{},callback:e.initNativeCallback(t,n)};e.invokeNative("verifyVoiceprint",a)})},r.sendIMMessage=function(e){var t=this;return new Promise(function(n,a){var r=t.initNativeCallback(n,a),o={param:i({},e),callback:r};t.invokeNative("sendIMMessage",o)})},r.shareToWechat=function(e){var t=this;return new Promise(function(n,a){var r=t.initNativeCallback(n,a),o={param:i({},e),callback:r};t.invokeNative("shareToWechat",o)})},r.recognizeCard=function(e){var t=this;return new Promise(function(n,a){var r=t.initNativeCallback(n,a),o={param:i({},e),callback:r};t.invokeNative("recognizeCard",o)})},r.scanCard=function(e){var t=this;return new Promise(function(e,n){var a={callback:t.initNativeCallback(e,n)};t.invokeNative("scanCard",a)})},r.checkLightAppLock=function(e){var t=this;return new Promise(function(n,a){var r=t.initNativeCallback(n,a),o={param:i({},e),callback:r};t.invokeNative("checkLightAppLock",o)})},r.share=function(e){var t=this;return new Promise(function(n,a){var r=t.initNativeCallback(n,a),o={param:i({},e),callback:r};t.invokeNative("share",o)})},r.checkApp=function(e){var t=this;return new Promise(function(n,a){var r=t.initNativeCallback(n,a),o={param:i({},e),callback:r};t.invokeNative("checkApp",o)})},r.openApp=function(e){var t=this;return new Promise(function(n,a){var r=t.initNativeCallback(n,a),o={param:i({},e),callback:r};t.invokeNative("openApp",o)})},r.createEventCalendar=function(e){var t=this;return new Promise(function(n,a){var r=t.initNativeCallback(n,a),o={param:i({},e),callback:r};t.invokeNative("createEventCalendar",o)})},r.setScrollViewBounces=function(e){var t=this;return new Promise(function(n,a){var r=t.initNativeCallback(n,a),o={param:i({},e),callback:r};t.invokeNative("setScrollViewBounces",o)})},r.getTicket=function(e){var t=this;return new Promise(function(n,a){var r=t.initNativeCallback(n,a),o={param:i({},e),callback:r};t.invokeNative("getTicket",o)})},r.TPNotificationScreenshot=function(e){var t=x.generateCallbackName();window[t]=function(t){e.callback&&b.isFunction(e.callback)&&e.callback(t)};var n={callback:t};this.invokeNative("TPNotificationScreenshot",n)},r.TPNotificationShowKeyboard=function(e){var t=this;return new Promise(function(e,n){var a={callback:t.initNativeCallback(e,n)};t.invokeNative("TPNotificationShowKeyboard",a)})},r.TPNotificationHideKeyboard=function(e){var t=this;return new Promise(function(e,n){var a={callback:t.initNativeCallback(e,n)};t.invokeNative("TPNotificationHideKeyboard",a)})},r.stopRecord=function(){this.invokeNative("stopRecord",{})},r.pauseRecord=function(){this.invokeNative("pauseRecord",{})},r.resumeRecord=function(){this.invokeNative("resumeRecord",{})},r.commNativeCall=function(e,t){var n=this;return void 0===t&&(t={}),new Promise(function(a,r){var o=n.initNativeCallback(a,r),c={param:i({},t),callback:o};n.invokeNative(e,c)})},r.startRecord=function(e){var t=this;return new Promise(function(n,a){window.startRecordEvent=new CustomEvent("startRecordEvent");var r=t.initNativeCallback(n,a,!0,"startRecordEvent"),o={param:i({},e),callback:r};t.invokeNative("startRecord",o)})},t=e,(n=[{key:"os",get:function(){return b.getOSInfo()}},{key:"defaultSystemTag",get:function(){return x.defaultSystemTag}},{key:"systemTag",get:function(){return x.systemTag}}])&&T(t.prototype,n),a&&T(t,a),e}())),E="40000",O=b.getOSInfo();"pc"===O.type&&(window.PCNative=function(e,t){switch(e){case"getDistanceBetweenTwoPoints":D(e,t,function(e){e.resolveData.data.list[0].sDistance=t.param.list[0].sDistance});break;case"startRecord":D(e,t,function(e){var n=e.resolveData;return!0===t.param.enableRealTimeVolume&&(n.data.valume=80),n});break;default:D(e,t)}});var j=A={tpBack:function(e){var t=e.context;if(e.isBacPortal)switch(this.os.type){case"ios":case"android":r(a(A),"closeView",this).call(this);break;default:t&&t.$router.goBack(-1)}else t&&(e.backCount?t.$router.goBack(e.backCount):t.$router.goBack(-1))}},M=[].concat(["getBaseInfo","getBaseInfo2"],["showLoading","hideLoading","openWeb","openLightApp","closeView"],["subscribeNotification","postNotification","unsubscribeNotification"],["getNetStatus","request","upload"],["executeSQL","querySQL"],["getPhoto","showPhoto","compressPhoto","scanQRCode","scan","getShortVideo","toast","alert","confirm"],["getLocationInfo","showLocationInfo","getStepCount","getLanguage","setScreenOrientation"],["openFile","selectFile","getFileBase64String"],["getDeviceInfo","call","sms","mail","hideKeyboard"],["getUserInfo","selectUser","searchUser"],["TPNotificationScreenshot","TPNotificationShowKeyboard","TPNotificationHideKeyboard"],["recognizeCard","scanCard"],["createCloudMeeting","joinCloudMeeting"],["startRecord","stopRecord","pauseRecord","pauseRecord","resumeRecord","getRecordStatus"],["startPlayingAudio","stopPlayingAudio","pausePlayingAudio","resumePlayingAudio","getPlayingAudioStatus"],["sendIMMessage","createGroup","openGroupChat","addGroupMembers","deleteGroupMembers","renameGroup","searchGroupMembers"],["getConnectionWifiInfo","getWifiList"],["choiceInvoice","invoiceImageProcessing","getDistanceBetweenTwoPoints","setStatusBarStyle","getStatusBarHeight","getSafeArea","checkLightAppLock","share","checkApp","openApp","getTicket","createEventCalendar","setScrollViewBounces","OCR","faceComparison"],["getVoiceprintStatus","verifyVoiceprint"]);!function(){var e,t=M.length,n=function(){var t=M[e];j[t]=function(e){return function(e,t){var n=j;if("ios"===O.type)n=TPNative;else if("android"===O.type)n=native;else if("pc"===O.type){var a=window.pcNativeConfig;a&&a[e]&&a[e].overHandler?I[e]=a[e].overHandler:P&&P[e]&&P[e].overHandler&&(I[e]=P[e].overHandler)}return b.isFunction(n[e])?I[e]?I[e](t):I.commNativeCall(e,t):Promise.reject({code:E,msg:"方法不存在"})}(t,e)}};for(e=0;e<t;e++)n()}();var R=j,L=0,B=8;function _(e,t,n,a,r,i){return V((o=V(V(t,e),V(a,i)))<<(c=r)|o>>>32-c,n);var o,c}function F(e,t,n,a,r,i,o){return _(t&n|~t&a,e,t,r,i,o)}function U(e,t,n,a,r,i,o){return _(t&a|n&~a,e,t,r,i,o)}function H(e,t,n,a,r,i,o){return _(t^n^a,e,t,r,i,o)}function z(e,t,n,a,r,i,o){return _(n^(t|~a),e,t,r,i,o)}function V(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}var q={hex_md5:function(e){return function(e){for(var t=L?"0123456789ABCDEF":"0123456789abcdef",n="",a=0;a<4*e.length;a++)n+=t.charAt(e[a>>2]>>a%4*8+4&15)+t.charAt(e[a>>2]>>a%4*8&15);return n}(function(e,t){e[t>>5]|=128<<t%32,e[14+(t+64>>>9<<4)]=t;for(var n=1732584193,a=-271733879,r=-1732584194,i=271733878,o=0;o<e.length;o+=16){var c=n,s=a,u=r,l=i;a=z(a=z(a=z(a=z(a=H(a=H(a=H(a=H(a=U(a=U(a=U(a=U(a=F(a=F(a=F(a=F(a,r=F(r,i=F(i,n=F(n,a,r,i,e[o+0],7,-680876936),a,r,e[o+1],12,-389564586),n,a,e[o+2],17,606105819),i,n,e[o+3],22,-1044525330),r=F(r,i=F(i,n=F(n,a,r,i,e[o+4],7,-176418897),a,r,e[o+5],12,1200080426),n,a,e[o+6],17,-1473231341),i,n,e[o+7],22,-45705983),r=F(r,i=F(i,n=F(n,a,r,i,e[o+8],7,1770035416),a,r,e[o+9],12,-1958414417),n,a,e[o+10],17,-42063),i,n,e[o+11],22,-1990404162),r=F(r,i=F(i,n=F(n,a,r,i,e[o+12],7,1804603682),a,r,e[o+13],12,-40341101),n,a,e[o+14],17,-1502002290),i,n,e[o+15],22,1236535329),r=U(r,i=U(i,n=U(n,a,r,i,e[o+1],5,-165796510),a,r,e[o+6],9,-1069501632),n,a,e[o+11],14,643717713),i,n,e[o+0],20,-373897302),r=U(r,i=U(i,n=U(n,a,r,i,e[o+5],5,-701558691),a,r,e[o+10],9,38016083),n,a,e[o+15],14,-660478335),i,n,e[o+4],20,-405537848),r=U(r,i=U(i,n=U(n,a,r,i,e[o+9],5,568446438),a,r,e[o+14],9,-1019803690),n,a,e[o+3],14,-187363961),i,n,e[o+8],20,1163531501),r=U(r,i=U(i,n=U(n,a,r,i,e[o+13],5,-1444681467),a,r,e[o+2],9,-51403784),n,a,e[o+7],14,1735328473),i,n,e[o+12],20,-1926607734),r=H(r,i=H(i,n=H(n,a,r,i,e[o+5],4,-378558),a,r,e[o+8],11,-2022574463),n,a,e[o+11],16,1839030562),i,n,e[o+14],23,-35309556),r=H(r,i=H(i,n=H(n,a,r,i,e[o+1],4,-1530992060),a,r,e[o+4],11,1272893353),n,a,e[o+7],16,-155497632),i,n,e[o+10],23,-1094730640),r=H(r,i=H(i,n=H(n,a,r,i,e[o+13],4,681279174),a,r,e[o+0],11,-358537222),n,a,e[o+3],16,-722521979),i,n,e[o+6],23,76029189),r=H(r,i=H(i,n=H(n,a,r,i,e[o+9],4,-640364487),a,r,e[o+12],11,-421815835),n,a,e[o+15],16,530742520),i,n,e[o+2],23,-995338651),r=z(r,i=z(i,n=z(n,a,r,i,e[o+0],6,-198630844),a,r,e[o+7],10,1126891415),n,a,e[o+14],15,-1416354905),i,n,e[o+5],21,-57434055),r=z(r,i=z(i,n=z(n,a,r,i,e[o+12],6,1700485571),a,r,e[o+3],10,-1894986606),n,a,e[o+10],15,-1051523),i,n,e[o+1],21,-2054922799),r=z(r,i=z(i,n=z(n,a,r,i,e[o+8],6,1873313359),a,r,e[o+15],10,-30611744),n,a,e[o+6],15,-1560198380),i,n,e[o+13],21,1309151649),r=z(r,i=z(i,n=z(n,a,r,i,e[o+4],6,-145523070),a,r,e[o+11],10,-1120210379),n,a,e[o+2],15,718787259),i,n,e[o+9],21,-343485551),n=V(n,c),a=V(a,s),r=V(r,u),i=V(i,l)}return Array(n,a,r,i)}(function(e){for(var t=Array(),n=(1<<B)-1,a=0;a<e.length*B;a+=B)t[a>>5]|=(e.charCodeAt(a/B)&n)<<a%32;return t}(e),e.length*B))}},Y={base64:m,md5:q,pwd:{generate:function(e,t){var n=this._saltvalid(this._salt());return this._encrypt(this._md5Hex(e+t+n),n)},_salt:function(){var e=""+Math.random();return e=e.substr(2,16),e},_saltvalid:function(e){var t=e.length;if(t<16)for(var n=0;n<16-t;n++)e+="0";return e},_md5Hex:function(e){return q.hex_md5(e)},_encrypt:function(e,t){for(var n=new Array(48),a=0;a<48;a+=3){n[a]=e.charAt(a/3*2);var r=t.charAt(a/3);n[a+1]=r,n[a+2]=e.charAt(a/3*2+1)}return n.join("")}}};function K(){var e=arguments;if(!(e.length<2)){for(var t=function e(t){if("object"!=typeof t)return t;if(null==t)return t;var n={};for(var a in t)n[a]=e(t[a]);return n}(e[0]),n=1;n<e.length;n++)for(var a in e[n])t[a]=e[n][a];return t}}var W=function(e){this.elem=e};W.prototype={defaults:{text:"此处水印文字",spaceX:80,spaceY:55,textRotate:-22,textColor:"#000000",fontFamily:"Helvetica Neue",fontSize:"10",opacity:.1,backgroundScroll:!0},options:{},init:function(e){var t=this;if(this.elem){this.options=K(this.defaults,e);var n=document.body,a=this.options;this.__calcTextSize(n);var r,i=a.spaceX+a.txts.width,o=a.spaceY+a.txts.height,c=2*o,s=i/2,u='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" preserveAspectRatio="none">\n <defs>\n <pattern id="pattern1" x="0" y="0" width="'+i+'" height="'+c+'" patternUnits="userSpaceOnUse" patternTransform = "rotate('+a.textRotate+')">\n <text x="0" y="'+a.fontSize+'" style="font-family:'+a.fontFamily+"; font-size:"+a.fontSize+"px; fill:"+a.textColor+"; fill-opacity:"+a.opacity+';">'+a.text+'</text>\n </pattern>\n <pattern id="pattern2" x="'+s+'" y="'+o+'" width="'+i+'" height="'+c+'" patternUnits="userSpaceOnUse" patternTransform="rotate('+a.textRotate+')">\n <text x="0" y="'+a.fontSize+'" style="font-family:'+a.fontFamily+"; font-size:"+a.fontSize+"px; fill:"+a.textColor+"; fill-opacity:"+a.opacity+'; ">'+a.text+'</text>\n </pattern>\n </defs>\n <rect x="0" y="0" width="100%" height="100%" style=" fill: url(#pattern1); fill-opacity:1;"/>\n <rect x="0" y="0" width="100%" height="100%" style=" fill: url(#pattern2); fill-opacity:1;"/>\n </svg>',l=(r=u,window.btoa(unescape(encodeURIComponent(r))));setTimeout(function(){t.elem.style.backgroundImage="url(data:image/svg+xml;base64,"+l+")"},200)}},__calcTextSize:function(e){var t=this.options,n=t.text,a=document.createElement("span");a.innerText=n;a.setAttribute("style",'"font-family:PingFangSC-Thin; font-size:14px;visibility: hidden;display: inline-block;"'),e.appendChild(a);var r=a.offsetWidth,i=a.offsetHeight;a.remove(),t.txts={txt:n,width:r,height:i}}};var G=W;var Q=function(e,t){var n=new G(e),a=t.value;n.init({text:a})},X={waterMark:{inserted:Q,update:Q}};n.d(t,"tpNative",function(){return R}),n.d(t,"Security",function(){return Y}),n.d(t,"Utils",function(){return w}),n.d(t,"directives",function(){return X});t.default={tpNative:R,Security:Y,Utils:w,directives:X}}])});
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("vue")):"function"==typeof define&&define.amd?define("tp-public",["vue"],t):"object"==typeof exports?exports["tp-public"]=t(require("vue")):e["tp-public"]=t(e.Vue)}("undefined"!=typeof self?self:this,function(e){return function(e){var t={};function n(a){if(t[a])return t[a].exports;var r=t[a]={i:a,l:!1,exports:{}};return e[a].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,a){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:a})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var a=Object.create(null);if(n.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(a,r,function(t){return e[t]}.bind(null,r));return a},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=29)}([function(e,t,n){"use strict";var a=n(1),r=Object.prototype.toString;function i(e){return"[object Array]"===r.call(e)}function o(e){return void 0===e}function c(e){return null!==e&&"object"==typeof e}function s(e){if("[object Object]"!==r.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function u(e){return"[object Function]"===r.call(e)}function l(e,t){if(null!==e&&void 0!==e)if("object"!=typeof e&&(e=[e]),i(e))for(var n=0,a=e.length;n<a;n++)t.call(null,e[n],n,e);else for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.call(null,e[r],r,e)}e.exports={isArray:i,isArrayBuffer:function(e){return"[object ArrayBuffer]"===r.call(e)},isBuffer:function(e){return null!==e&&!o(e)&&null!==e.constructor&&!o(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){return"undefined"!=typeof FormData&&e instanceof FormData},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:c,isPlainObject:s,isUndefined:o,isDate:function(e){return"[object Date]"===r.call(e)},isFile:function(e){return"[object File]"===r.call(e)},isBlob:function(e){return"[object Blob]"===r.call(e)},isFunction:u,isStream:function(e){return c(e)&&u(e.pipe)},isURLSearchParams:function(e){return"undefined"!=typeof URLSearchParams&&e instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&"undefined"!=typeof window&&"undefined"!=typeof document},forEach:l,merge:function e(){var t={};function n(n,a){s(t[a])&&s(n)?t[a]=e(t[a],n):s(n)?t[a]=e({},n):i(n)?t[a]=n.slice():t[a]=n}for(var a=0,r=arguments.length;a<r;a++)l(arguments[a],n);return t},extend:function(e,t,n){return l(t,function(t,r){e[r]=n&&"function"==typeof t?a(t,n):t}),e},trim:function(e){return e.replace(/^\s*/,"").replace(/\s*$/,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e}}},function(e,t,n){"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),a=0;a<n.length;a++)n[a]=arguments[a];return e.apply(t,n)}}},function(e,t,n){"use strict";var a=n(0);function r(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var i;if(n)i=n(t);else if(a.isURLSearchParams(t))i=t.toString();else{var o=[];a.forEach(t,function(e,t){null!==e&&void 0!==e&&(a.isArray(e)?t+="[]":e=[e],a.forEach(e,function(e){a.isDate(e)?e=e.toISOString():a.isObject(e)&&(e=JSON.stringify(e)),o.push(r(t)+"="+r(e))}))}),i=o.join("&")}if(i){var c=e.indexOf("#");-1!==c&&(e=e.slice(0,c)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}},function(e,t,n){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},function(e,t,n){"use strict";(function(t){var a=n(0),r=n(17),i={"Content-Type":"application/x-www-form-urlencoded"};function o(e,t){!a.isUndefined(e)&&a.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var c,s={adapter:("undefined"!=typeof XMLHttpRequest?c=n(5):void 0!==t&&"[object process]"===Object.prototype.toString.call(t)&&(c=n(5)),c),transformRequest:[function(e,t){return r(t,"Accept"),r(t,"Content-Type"),a.isFormData(e)||a.isArrayBuffer(e)||a.isBuffer(e)||a.isStream(e)||a.isFile(e)||a.isBlob(e)?e:a.isArrayBufferView(e)?e.buffer:a.isURLSearchParams(e)?(o(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):a.isObject(e)?(o(t,"application/json;charset=utf-8"),JSON.stringify(e)):e}],transformResponse:[function(e){if("string"==typeof e)try{e=JSON.parse(e)}catch(e){}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300}};s.headers={common:{Accept:"application/json, text/plain, */*"}},a.forEach(["delete","get","head"],function(e){s.headers[e]={}}),a.forEach(["post","put","patch"],function(e){s.headers[e]=a.merge(i)}),e.exports=s}).call(this,n(16))},function(e,t,n){"use strict";var a=n(0),r=n(18),i=n(20),o=n(2),c=n(21),s=n(24),u=n(25),l=n(6);e.exports=function(e){return new Promise(function(t,n){var f=e.data,p=e.headers;a.isFormData(f)&&delete p["Content-Type"];var d=new XMLHttpRequest;if(e.auth){var v=e.auth.username||"",m=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";p.Authorization="Basic "+btoa(v+":"+m)}var h=c(e.baseURL,e.url);if(d.open(e.method.toUpperCase(),o(h,e.params,e.paramsSerializer),!0),d.timeout=e.timeout,d.onreadystatechange=function(){if(d&&4===d.readyState&&(0!==d.status||d.responseURL&&0===d.responseURL.indexOf("file:"))){var a="getAllResponseHeaders"in d?s(d.getAllResponseHeaders()):null,i={data:e.responseType&&"text"!==e.responseType?d.response:d.responseText,status:d.status,statusText:d.statusText,headers:a,config:e,request:d};r(t,n,i),d=null}},d.onabort=function(){d&&(n(l("Request aborted",e,"ECONNABORTED",d)),d=null)},d.onerror=function(){n(l("Network Error",e,null,d)),d=null},d.ontimeout=function(){var t="timeout of "+e.timeout+"ms exceeded";e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(l(t,e,"ECONNABORTED",d)),d=null},a.isStandardBrowserEnv()){var g=(e.withCredentials||u(h))&&e.xsrfCookieName?i.read(e.xsrfCookieName):void 0;g&&(p[e.xsrfHeaderName]=g)}if("setRequestHeader"in d&&a.forEach(p,function(e,t){void 0===f&&"content-type"===t.toLowerCase()?delete p[t]:d.setRequestHeader(t,e)}),a.isUndefined(e.withCredentials)||(d.withCredentials=!!e.withCredentials),e.responseType)try{d.responseType=e.responseType}catch(t){if("json"!==e.responseType)throw t}"function"==typeof e.onDownloadProgress&&d.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&d.upload&&d.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then(function(e){d&&(d.abort(),n(e),d=null)}),f||(f=null),d.send(f)})}},function(e,t,n){"use strict";var a=n(19);e.exports=function(e,t,n,r,i){var o=new Error(e);return a(o,t,n,r,i)}},function(e,t,n){"use strict";var a=n(0);e.exports=function(e,t){t=t||{};var n={},r=["url","method","data"],i=["headers","auth","proxy","params"],o=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],c=["validateStatus"];function s(e,t){return a.isPlainObject(e)&&a.isPlainObject(t)?a.merge(e,t):a.isPlainObject(t)?a.merge({},t):a.isArray(t)?t.slice():t}function u(r){a.isUndefined(t[r])?a.isUndefined(e[r])||(n[r]=s(void 0,e[r])):n[r]=s(e[r],t[r])}a.forEach(r,function(e){a.isUndefined(t[e])||(n[e]=s(void 0,t[e]))}),a.forEach(i,u),a.forEach(o,function(r){a.isUndefined(t[r])?a.isUndefined(e[r])||(n[r]=s(void 0,e[r])):n[r]=s(void 0,t[r])}),a.forEach(c,function(a){a in t?n[a]=s(e[a],t[a]):a in e&&(n[a]=s(void 0,e[a]))});var l=r.concat(i).concat(o).concat(c),f=Object.keys(e).concat(Object.keys(t)).filter(function(e){return-1===l.indexOf(e)});return a.forEach(f,u),n}},function(e,t,n){"use strict";function a(e){this.message=e}a.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},a.prototype.__CANCEL__=!0,e.exports=a},function(e,t,n){e.exports=n(11)},function(t,n){t.exports=e},function(e,t,n){"use strict";var a=n(0),r=n(1),i=n(12),o=n(7);function c(e){var t=new i(e),n=r(i.prototype.request,t);return a.extend(n,i.prototype,t),a.extend(n,t),n}var s=c(n(4));s.Axios=i,s.create=function(e){return c(o(s.defaults,e))},s.Cancel=n(8),s.CancelToken=n(26),s.isCancel=n(3),s.all=function(e){return Promise.all(e)},s.spread=n(27),s.isAxiosError=n(28),e.exports=s,e.exports.default=s},function(e,t,n){"use strict";var a=n(0),r=n(2),i=n(13),o=n(14),c=n(7);function s(e){this.defaults=e,this.interceptors={request:new i,response:new i}}s.prototype.request=function(e){"string"==typeof e?(e=arguments[1]||{}).url=arguments[0]:e=e||{},(e=c(this.defaults,e)).method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t=[o,void 0],n=Promise.resolve(e);for(this.interceptors.request.forEach(function(e){t.unshift(e.fulfilled,e.rejected)}),this.interceptors.response.forEach(function(e){t.push(e.fulfilled,e.rejected)});t.length;)n=n.then(t.shift(),t.shift());return n},s.prototype.getUri=function(e){return e=c(this.defaults,e),r(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},a.forEach(["delete","get","head","options"],function(e){s.prototype[e]=function(t,n){return this.request(c(n||{},{method:e,url:t,data:(n||{}).data}))}}),a.forEach(["post","put","patch"],function(e){s.prototype[e]=function(t,n,a){return this.request(c(a||{},{method:e,url:t,data:n}))}}),e.exports=s},function(e,t,n){"use strict";var a=n(0);function r(){this.handlers=[]}r.prototype.use=function(e,t){return this.handlers.push({fulfilled:e,rejected:t}),this.handlers.length-1},r.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},r.prototype.forEach=function(e){a.forEach(this.handlers,function(t){null!==t&&e(t)})},e.exports=r},function(e,t,n){"use strict";var a=n(0),r=n(15),i=n(3),o=n(4);function c(e){e.cancelToken&&e.cancelToken.throwIfRequested()}e.exports=function(e){return c(e),e.headers=e.headers||{},e.data=r(e.data,e.headers,e.transformRequest),e.headers=a.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),a.forEach(["delete","get","head","post","put","patch","common"],function(t){delete e.headers[t]}),(e.adapter||o.adapter)(e).then(function(t){return c(e),t.data=r(t.data,t.headers,e.transformResponse),t},function(t){return i(t)||(c(e),t&&t.response&&(t.response.data=r(t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)})}},function(e,t,n){"use strict";var a=n(0);e.exports=function(e,t,n){return a.forEach(n,function(n){e=n(e,t)}),e}},function(e,t){var n,a,r=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function c(e){if(n===setTimeout)return setTimeout(e,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:i}catch(e){n=i}try{a="function"==typeof clearTimeout?clearTimeout:o}catch(e){a=o}}();var s,u=[],l=!1,f=-1;function p(){l&&s&&(l=!1,s.length?u=s.concat(u):f=-1,u.length&&d())}function d(){if(!l){var e=c(p);l=!0;for(var t=u.length;t;){for(s=u,u=[];++f<t;)s&&s[f].run();f=-1,t=u.length}s=null,l=!1,function(e){if(a===clearTimeout)return clearTimeout(e);if((a===o||!a)&&clearTimeout)return a=clearTimeout,clearTimeout(e);try{a(e)}catch(t){try{return a.call(null,e)}catch(t){return a.call(this,e)}}}(e)}}function v(e,t){this.fun=e,this.array=t}function m(){}r.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];u.push(new v(e,t)),1!==u.length||l||c(d)},v.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=m,r.addListener=m,r.once=m,r.off=m,r.removeListener=m,r.removeAllListeners=m,r.emit=m,r.prependListener=m,r.prependOnceListener=m,r.listeners=function(e){return[]},r.binding=function(e){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(e){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}},function(e,t,n){"use strict";var a=n(0);e.exports=function(e,t){a.forEach(e,function(n,a){a!==t&&a.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[a])})}},function(e,t,n){"use strict";var a=n(6);e.exports=function(e,t,n){var r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(a("Request failed with status code "+n.status,n.config,null,n.request,n)):e(n)}},function(e,t,n){"use strict";e.exports=function(e,t,n,a,r){return e.config=t,n&&(e.code=n),e.request=a,e.response=r,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},e}},function(e,t,n){"use strict";var a=n(0);e.exports=a.isStandardBrowserEnv()?{write:function(e,t,n,r,i,o){var c=[];c.push(e+"="+encodeURIComponent(t)),a.isNumber(n)&&c.push("expires="+new Date(n).toGMTString()),a.isString(r)&&c.push("path="+r),a.isString(i)&&c.push("domain="+i),!0===o&&c.push("secure"),document.cookie=c.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},function(e,t,n){"use strict";var a=n(22),r=n(23);e.exports=function(e,t){return e&&!a(t)?r(e,t):t}},function(e,t,n){"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},function(e,t,n){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},function(e,t,n){"use strict";var a=n(0),r=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,n,i,o={};return e?(a.forEach(e.split("\n"),function(e){if(i=e.indexOf(":"),t=a.trim(e.substr(0,i)).toLowerCase(),n=a.trim(e.substr(i+1)),t){if(o[t]&&r.indexOf(t)>=0)return;o[t]="set-cookie"===t?(o[t]?o[t]:[]).concat([n]):o[t]?o[t]+", "+n:n}}),o):o}},function(e,t,n){"use strict";var a=n(0);e.exports=a.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function r(e){var a=e;return t&&(n.setAttribute("href",a),a=n.href),n.setAttribute("href",a),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=r(window.location.href),function(t){var n=a.isString(t)?r(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0}},function(e,t,n){"use strict";var a=n(8);function r(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise(function(e){t=e});var n=this;e(function(e){n.reason||(n.reason=new a(e),t(n.reason))})}r.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},r.source=function(){var e;return{token:new r(function(t){e=t}),cancel:e}},e.exports=r},function(e,t,n){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},function(e,t,n){"use strict";e.exports=function(e){return"object"==typeof e&&!0===e.isAxiosError}},function(e,t,n){"use strict";function a(e){return(a=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function r(e,t,n){return(r="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=a(e)););return e}(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(n):i.value}})(e,t,n||e)}function i(){return(i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}n.r(t);var o,c,s=n(9),u=n.n(s),l=(new(function(){function e(){this.timeout=6e3}var t=e.prototype;return t.merge=function(e){return i({},e,{timeout:this.timeout})},t.setInterceptor=function(e){e.interceptors.request.use(function(e){return e.headers["Content-Type"]="application/json;charset=utf-8",e.headers["tp-auth-token"]=localStorage.getItem("tp_token_info")||"",e},function(e){return Promise.reject(e)}),e.interceptors.response.use(function(e){var t=e.data;return 0===t.code?t:Promise.reject(t)},function(e){return Promise.reject(e)})},t.instance=function(e){var t=this.merge(e),n=u.a.create(t);return this.setInterceptor(n),n},e}())).instance(),f=n(10),p=n.n(f),d="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",v=new Array(-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,62,-1,-1,-1,63,52,53,54,55,56,57,58,59,60,61,-1,-1,-1,-1,-1,-1,-1,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,-1,-1,-1,-1,-1,-1,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,-1,-1,-1,-1,-1),m={encode:function(e){return function(e){var t,n,a,r,i,o;for(a=e.length,n=0,t="";n<a;){if(r=255&e.charCodeAt(n++),n==a){t+=d.charAt(r>>2),t+=d.charAt((3&r)<<4),t+="==";break}if(i=e.charCodeAt(n++),n==a){t+=d.charAt(r>>2),t+=d.charAt((3&r)<<4|(240&i)>>4),t+=d.charAt((15&i)<<2),t+="=";break}o=e.charCodeAt(n++),t+=d.charAt(r>>2),t+=d.charAt((3&r)<<4|(240&i)>>4),t+=d.charAt((15&i)<<2|(192&o)>>6),t+=d.charAt(63&o)}return t}(function(e){var t,n,a,r;for(t="",a=e.length,n=0;n<a;n++)(r=e.charCodeAt(n))>=1&&r<=127?t+=e.charAt(n):r>2047?(t+=String.fromCharCode(224|r>>12&15),t+=String.fromCharCode(128|r>>6&63),t+=String.fromCharCode(128|r>>0&63)):(t+=String.fromCharCode(192|r>>6&31),t+=String.fromCharCode(128|r>>0&63));return t}(e))},decode:function(e){return function(e){var t,n,a,r,i,o;for(t="",a=e.length,n=0;n<a;)switch((r=e.charCodeAt(n++))>>4){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:t+=e.charAt(n-1);break;case 12:case 13:i=e.charCodeAt(n++),t+=String.fromCharCode((31&r)<<6|63&i);break;case 14:i=e.charCodeAt(n++),o=e.charCodeAt(n++),t+=String.fromCharCode((15&r)<<12|(63&i)<<6|(63&o)<<0)}return t}(function(e){var t,n,a,r,i,o,c;for(o=e.length,i=0,c="";i<o;){do{t=v[255&e.charCodeAt(i++)]}while(i<o&&-1==t);if(-1==t)break;do{n=v[255&e.charCodeAt(i++)]}while(i<o&&-1==n);if(-1==n)break;c+=String.fromCharCode(t<<2|(48&n)>>4);do{if(61==(a=255&e.charCodeAt(i++)))return c;a=v[a]}while(i<o&&-1==a);if(-1==a)break;c+=String.fromCharCode((15&n)<<4|(60&a)>>2);do{if(61==(r=255&e.charCodeAt(i++)))return c;r=v[r]}while(i<o&&-1==r);if(-1==r)break;c+=String.fromCharCode((3&a)<<6|r)}return c}(e))}},h=!!window.navigator.userAgent.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/),g=window.navigator.userAgent.indexOf("Android")>=0,b={isIos:function(){return h},isAndroid:function(){return g},setkeyValue:function(e,t){if(window.localStorage)return window.localStorage.setItem(e,t)},getKeyValue:function(e){return window.localStorage.getItem(e)||""},removeKeyValue:function(e){window.localStorage&&window.localStorage.removeItem(e)},getKeys:function(){if(window.localStorage){for(var e=[],t=0;t<window.localStorage.length;t++)e.push(window.localStorage.key(t));return e}},getKeyObjectValue:function(e,t){var n=this.getKeyValue(e);return n?JSON.parse(n):t||{}},contentFormat:function(e){if(this.isString(e)){var t=new RegExp("\r\n","g"),n=new RegExp("\n","g");return e.replace(t,"<br>").replace(n,"<br>")}return""},html2Escape:function(e){return e.replace(/[<>&"]/g,function(e){return{"<":"<",">":">","&":"&",'"':"""}[e]})},contentFormat2:function(e){return this.isString(e)?this.html2Escape(e).replace(/\r?\n/g,"<br />"):""},clearLocVal:function(){window.localStorage&&window.localStorage.clear()},isDateString:function(e){return!(!isNaN(e)||isNaN(Date.parse(e)))},getDateTime:function(e){var t;switch(e){case 0:t=this.format("yyyy-MM-dd hh:mm:ss");break;case 1:t=this.format("yyyy-MM-dd");break;case 2:t=this.format("hh:mm:ss")}return t},getValue:function(e){return"object"==typeof e?e.value:e},getKey:function(e){return"object"==typeof e?e.key:e},tpSplit:function(e,t){return""==(e=e||"").trim()?[]:(t=t||";",e.lastIndexOf(t)+1===e.length&&e.length>0&&(e=e.substring(0,e.length-1)),0===e.indexOf(t)&&(e=e.substring(1,e.length)),e.split(t))},format:function(e){var t={"M+":(new Date).getMonth()+1,"d+":(new Date).getDate(),"h+":(new Date).getHours(),"m+":(new Date).getMinutes(),"s+":(new Date).getSeconds(),"q+":Math.floor(((new Date).getMonth()+3)/3),S:(new Date).getMilliseconds()};for(var n in/(y+)/.test(e)&&(e=e.replace(RegExp.$1,((new Date).getFullYear()+"").substr(4-RegExp.$1.length))),t)new RegExp("("+n+")").test(e)&&(e=e.replace(RegExp.$1,1==RegExp.$1.length?t[n]:("00"+t[n]).substr((""+t[n]).length)));return e},getDateFmt:function(e){return e.length>=16?"YYYY-MM-DD HH:mm":13==e.length?"YYYY-MM-DD HH":10==e.length||11==e.length?"YYYY-MM-DD":7==e.length?"YYYY-MM":4==e.length?"YYYY":5==e.length?"HH:mm":void 0},numFmt:function(e){return e>10?""+e:"0"+e},getNextMonthDate:function(e){if(this.isDate(e)){var t=e.getFullYear(),n=e.getMonth()+1;return 13==++n&&(n=1,t++),new Date(t,n-1,(new Date).getDate())}return new Date},getPreMonthDate:function(e){if(this.isDate(e)){var t=e.getFullYear(),n=e.getMonth()+1;return 0==--n&&(n=12,t--),new Date(t,n-1,(new Date).getDate())}return new Date},dateFmt:function(e,t){if(!this.isString(t))return t;if(""==t)return t;(t=t.replace(/-/g,"/")).length>19&&(t=t.substring(0,19));var n={"M+":(t=new Date(t)).getMonth()+1,"d+":t.getDate(),"h+":t.getHours(),"m+":t.getMinutes(),"s+":t.getSeconds(),"q+":Math.floor((t.getMonth()+3)/3),S:t.getMilliseconds()};for(var a in/(y+)/.test(e)&&(e=e.replace(RegExp.$1,(t.getFullYear()+"").substr(4-RegExp.$1.length))),n)new RegExp("("+a+")").test(e)&&(e=e.replace(RegExp.$1,1==RegExp.$1.length?n[a]:("00"+n[a]).substr((""+n[a]).length)));return e},getDateNum:function(e,t,n){var a,r,i,o=n||"-";a=e.split(o),r=t.split(o);var c=new Date(a[0],a[1]-1,a[2]),s=new Date(r[0],r[1]-1,r[2]);return i=parseInt(Math.abs(c-s)/1e3/60/60/24,10),parseInt(i,10)},getDateByDay:function(e,t,n){var a,r=n||"-";a=e.split(r);var i=new Date(a[0],a[1]-1,a[2]).getTime();return new Date(i-60*t*60*24*1e3)},isTelPhone:function(e){return/^1(3|4|5|7|8)\d{9}$/.test(e)},isTel:function(e){return/^(\(\d{3,4}\)|\d{3,4}-|\s)?\d{7,14}$/.test(e)},isEmail:function(e){return/^([a-zA-Z0-9._-])+@([a-zA-Z0-9_-])+(\.[a-zA-Z0-9_-])+/.test(e)},getScrollTop:function(){return document.documentElement.scrollTop||document.body.scrollTop},trim:function(e){return String.prototype.trim?null==e?"":String.prototype.trim.call(e):e.replace(/(^\s*)|(\s*$)/g,"")},trimAll:function(e){return e.replace(/\s*/g,"")},isArray:function(e){return this.isType(e,"Array")},isObject:function(e){return this.isType(e,"Object")},isRegExp:function(e){return this.isType(e,"RegExp")},isString:function(e){return this.isType(e,"String")},isNumber:function(e){return this.isType(e,"Number")},isBoolean:function(e){return this.isType(e,"Boolean")},isFunction:function(e){return this.isType(e,"Function")},isNull:function(e){return null===e},isUndefined:function(e){return void 0===e},isDate:function(e){return this.isType(e,"Date")},isType:function(e,t){return Object.prototype.toString.call(e)==="[object "+t+"]"},isEmptyObject:function(e){return"{}"===JSON.stringify(e)},sortByObj:function(e){return function(t,n){return t[e]-n[e]}},replaceAllText:function(e,t,n){return void 0===n&&(n=""),e.replace(new RegExp(t,"g"),n)},equalArray:function(e,t){var n={};return e.reduce(function(e,t){return!n[t.id]&&(n[t.id]=e.push(t)),e},[])},arryHasVal:function(e,t){for(var n=0;n<e.length;n++)if(e[n]===t)return!0;return!1},arryIndexOf:function(e,t){for(var n=0;n<e.length;n++)if(e[n]===t)return n;return-1},arryRemoveVal:function(e,t){var n=this.arryIndexOf(e,t);n>-1&&e.splice(n,1)},extendDeep:function(e,t){var n,a;for(n in a=JSON.stringify(e),a=JSON.parse(a),t=t||{},a)a.hasOwnProperty(n)&&(t[n]=a[n]);return a=null,t},extend:function(e,t){var n;for(n in e)t[n]=e[n];return t},throttle:function(){var e,t,n=arguments[0];if(this.isBoolean(n))(e=arguments[1]).__throttleID&&clearTimeout(e.__throttleID);else{e=n,t=arguments[1];var a=this.extend(t,{context:null,args:[],time:800});this.throttle(!0,e),e.__throttleID=setTimeout(function(){e.apply(a.context,a.args)},a.time)}},getSuffixName:function(e){var t=e.lastIndexOf(".");return t>=0?e.substring(t+1,e.length):""},getFileType:function(e){var t="";return"doc"==e||"ppt"==e||"pptx"==e||"xls"==e||"xlsx"==e||"xlt"==e||"docx"==e||"txt"==e?t="OFFICE":"pdf"==e?t="PDF":"png"!=e&&"jpg"!=e&&"jpeg"!=e&&"gif"!=e&&"bmp"!=e||(t="IMAGE"),t},isOffice:function(e){var t=e||"";return"doc"==(t=t.toLowerCase())||"ppt"==t||"pptx"==t||"xls"==t||"xlsx"==t||"docx"==t},showToast:function(e){p.a.$vux.toast.show({text:e.text||"提示",time:e.time||2e3,isShowMask:!0,width:"80%",type:e.type||"warn",position:e.position||"middle"})},createId:function(){return Math.random().toString(36).substring(3,8)},getAttachType:function(e){return"doc"==(e=e.toLowerCase()||"")||"docx"==e||"wps"==e?"#tpicon-doc":"xls"==e||"xlsx"==e?"#tpicon-excel":"pdf"==e?"#tpicon-pdf":"jpg"==e||"png"==e||"gif"==e||"bmp"==e||"jpeg"==e?"#tpicon-png":"rar"==e||"zip"==e||"7z"==e?"#tpicon-zip":"folder"==e?"#tpicon-folder":"txt"==e?"#tpicon-txt":"ppt"==e||"pptx"==e?"#tpicon-ppt":"wav"==e||"mp3"==e?"#tpicon-audio":"mp4"==e?"#tpicon-video":"#tpicon-other_attach"},getFunParam:function(e,t,n){var a=e+"_Callback_"+(new Date).getTime();return window[a]=function(e){n&&n.cBack&&n.cBack(e)},this.extendDeep(t,{__callback:a})},getImageUrl:function(e,t,n){if("0"==n){return t+"/api/v1/proxy/picProxy/"+m.encode(e)}return t+e},dateCountFmt:function(e){return e>9?e:"0"+e},pure:function(e){return JSON.parse(JSON.stringify(e))},getOSInfo:function(){var e={},t=navigator.userAgent,n=t.match(/(MicroMessenger)\/([\d\.]+)/i);n&&(e.wechat={version:n[2].replace(/_/g,".")},e.type="wechat");var a=t.match(/(Android);?[\s\/]+([\d.]+)?/);a&&(e.type="android",e.android=!0,e.version=a[2],e.isBadAndroid=!/Chrome\/\d/.test(window.navigator.appVersion));var r=t.match(/(iPhone\sOS)\s([\d_]+)/),i=/iPad/i.test(t)||/Macintosh/i.test(t);return r?(e.type="ios",e.ios=e.iphone=!0):i&&(e.type="ios",e.ios=e.ipad=!0),/win|mac/i.test(navigator.platform)&&!i&&(e.type="pc"),"micromessenger"==navigator.userAgent.toLowerCase().match(/MicroMessenger/i)&&(e.type="uaWechat"),e},setViewport:function(e){var t=document.querySelector("meta[name=viewport]"),n="width=device-width, initial-scale="+(e.initialScale||"1.0")+", minimum-scale="+(e.minimumScale||"1.0")+", maximum-scale="+(e.maximumScale||"1.0")+", user-scalable="+(e.userScalable?"yes":"no");t&&t.setAttribute("content",n)}},y=function(){function e(){return(65536*(1+Math.random())|0).toString(16).substring(1)}return{guid16:function(){return e()+e()+e()+e()}}}(),w={ajax:l,common:b,random:y},k="/api/v1/proxy/common1",N="/api/v1/proxy/common2",C="/api/v1/proxy/common3",S=((o={SCHEDULE_QUERY:N,GMCAPP:N,ZNYW:N,MIS:C,NEWS:N,IRR:C,SALARY:N,JKKQ:N,SCHEDULE:N,OA:N,JSC:N,FKXT:N,JTKQ:C,HEC:N,SVC:N,SCV:k,SCV_NEW:k,TPAudit:k,partyBuilding:k,controlCabin:k,HRX_ESS:k,intelligentPersonnel:k}).IRR=N,o.MOM=k,o),x={defaultSystemTag:"MOM",systemTag:"XWEB",generateCallbackName:function(){for(var e="",t=1;t<=32;t++){e+=Math.floor(16*Math.random()).toString(16)}return"cb_"+e},getServerParams:function(e,t){if("XWEB"===e.system&&t)return e.params;var n=e.params||{};return"XWEB"!==e.system&&n&&"object"==typeof n&&(n=JSON.stringify(n)),{method:e.method||"",params:n,system:e.system||"MOM"}},getServiceUrl2:function(e,t){var n=e.service;return"XWEB"===t.system?e.url+t.method:e.url+n[t.system||"MOM"]||n.MOM},getServiceUrl:function(e){var t=b.getKeyValue("urlKey")||"",n=b.getKeyObjectValue("serviceKey",S);return"XWEB"===e.system?t+e.method:t+(n[e.system]||k)}},P=((c={request:{overHandler:function(e){var t=x.getServiceUrl(e),n=x.getServerParams(e,!0);return l.post(t,n)}},getBaseInfo:{resolveData:{code:0,data:{id:"",loginName:"",hrID:"K3NS7NBJ8GLATZ6FD7DG",roles:[{code:"common",name:"普通员工"}],host:"/xweb",appKey:"7fd10f76-c33d-42d7-a37e-d927304dc483",themeColor:"#006CCE",titleBackgroundColor:"#FFFFFF",backgroundColor:"#FCF5F5",titleFontColor:"#212529"}}},getUserInfo:{resolveData:{code:0,data:{userName:"",phone:"",telphone:"",IPPhone:"",email:"",department:"",position:"部门长",organization:"易享太平",watermark:"安全水印"}}},getDeviceInfo:{resolveData:{code:0,data:{token:"xxxxx",os:"Android|iOS",type:"Phone|Pad",model:"型号(小米 5S)",vendor:"品牌(小米)"}}},getNetStatus:{resolveData:{code:0,data:{status:"4g"}}},getPhoto:{resolveData:{code:0,data:{list:[{path:"原图1路径",thumbPath:"缩略图1路径"},{path:"原图2路径",thumbPath:"缩略图2路径"}]}}},upload:{resolveData:{code:0,data:{files:[{name:"file1.jpg",url:"http://www..../file1.jpg",type:"jpg"}]}}},selectUser:{resolveData:{code:0,data:{users:[{id:"",userName:"",avatar:"http://.../1156.jpg",companyId:"",company:"",phone:"",telephone:"",IPPhone:"",email:"",departmentId:"",department:"",position:""},{id:"",userName:"",avatar:"http://.../1156.jpg",companyId:"",company:"",phone:"",telephone:"",IPPhone:"",email:"",departmentId:"",department:"",position:""}]}}},getStepCount:{resolveData:{code:0,result:[{date:"20190615",stepCount:7400},{date:"20190616",stepCount:12600}]}},adjustCardHeight:{resolveData:{code:0,data:{result:[{rate:"1.0"}]}}},searchUser:{resolveData:{code:0,data:{users:[{id:"",userName:"",avatar:"https://.../img/profile.jpg",companyId:"",company:"",phone:"",telephone:"",IPPhone:"",email:"",departmentId:"",department:"",position:""},{id:"",userName:"",avatar:"https://.../img/profile.jpg",companyId:"",company:"",phone:"",telephone:"",IPPhone:"",email:"",departmentId:"",department:"",position:""}]}}},selectFile:{resolveData:{code:0,data:{files:[{name:"信息反馈表.doc",type:"doc",size:39151,path:"",source:"APP"}]}}},getFileBase64String:{resolveData:{code:0,data:{base64String:"5bm06L275Lq677yM5aW95aWH5b+D5LiN6KaB6YKj5LmI5by677yB"}}},choiceInvoice:{resolveData:{code:0,data:{list:[{card_id:"pIKi3wTZ_JwQbJ74zsQxNRpzTc-4",cardState:0,encrypt_code:""},{card_id:"pEVWfuBIATRHlanYIfSNkl00yodo",cardState:0,encrypt_code:""}]}}},quesShare:{resolveData:{code:0}},shareToYxtp:{resolveData:{code:0}},grantStoragePermission:{result:!0,resolveData:{code:0,data:{havePermission:!0}},rejectData:{code:1,data:{havePermission:!1},msg:""}},call:{resolveData:{code:0}},mail:{resolveData:{code:0}},hideKeyboard:{resolveData:{code:0}},sms:{resolveData:{code:0}},getLanguage:{resolveData:{code:0,data:{language:"zh_CN"}}},speechRecognize:{resolveData:{code:0,data:{content:"这是语音转出来的文字"}}},getLightApp:{resolveData:{code:0,data:{appCode:"newOA",lightAppName:"OA新建",appStatus:"ENABLE",appType:"FIXED",address:"",iconAddressSmall:"/api/v1/file/id/5d283fbb5d84e92df81dd203",relativePath:"newOA",languageCode:"zh_CN",absolutePath:"/var/mobile/Containers/Data/Application/33B96561-9EB2-48BD-A6D4-CBBBB494B6C8/Library/Caches/taiping/lightApps/newOA/index.html",lightAppId:"118",version:"10134",unzip:"Y",iconAddressBig:"/api/v1/file/id/5e463e5960c44e3b3c402c27",folderPath:"/var/mobile/Containers/Data/Application/33B96561-9EB2-48BD-A6D4-CBBBB494B6C8/Library/Caches/taiping/lightApps/newOA",versionSize:479047}}},createGroup:{resolveData:{code:0,data:{groupId:"test12345",groupName:"测试群组"}}},openGroupChat:{resolveData:{code:0,msg:""}},addGroupMembers:{resolveData:{code:0,msg:""}},deleteGroupMembers:{resolveData:{code:0,msg:""}},renameGroup:{resolveData:{code:0,data:{groupId:"xxxx",groupName:"xxxxx"}}},searchGroupMembers:{resolveData:{code:0,data:{list:[{contactAlias:"",create_dt:1603872374938,gorder:1,id:"",isExecutive:!1,mobile:"",mute_status:0,name:"",alias:"",portrait_url:"",update_dt:1603872374938,user_type:0}]}}},getLocationInfo:{resolveData:{code:0,data:{longitude:"114",latitude:"22",country:"中国",province:"广东省",city:"",district:"",street:"",number:"",citycode:"",adcode:"",POIName:"",AOIName:"",address:""}}},showLocationInfo:{resolveData:{code:0,data:{}}},getConnectionWifiInfo:{resolveData:{code:0,data:{BSSID:"9c:50:ee:77:1f:71",SSID:"TP-GUEST"}}},getWifiList:{resolveData:{code:0,data:{list:[{BSSID:"9c:50:ee:77:1f:71",SSID:"TP-GUEST"},{BSSID:"12:34:56:78:90:a1",SSID:"TP-Dev"}]}}},getDistanceBetweenTwoPoints:{resolveData:{code:0,data:{list:[{sDistance:500,distance:100,isIn:!0}]}}},editPhotos:{resolveData:{code:0,data:{}}},continuousShooting:{resolveData:{code:0,data:{}}},invoiceImageProcessing:{resolveData:{code:0,data:{info:[{imgType:"0"},{invoiceid:"",Invoicetype:"",invoicecode:"044031600111",invoicenum:"36986934",Invoicedate:"2018年02月04日",checkcode:"538045",buyname:"",buynsrsbh:"",amount:" ",imgType:"1",taxamount:"",totalamount:"",salesname:"",salesnsrsbh:"",mima1:"",mima2:"",mima3:"",mima4:"",checkstatu:"0",goodslist:[{goodsname:"",goodsamount:"",goodstaxamount:""}],area:{leftx:"",lefty:"",rightx:"",righty:""}},{trainnum:"G1312",startstation:"深圳北",endstation:"株洲西",ridedate:"",seatnum:"",ticketprice:"368.5",seatuser:"",seattype:"二等座",path:"/storage/emulated/0/photograph/1438be8d01da45669994365b6987b523/1536567390993.jpg",imgType:"2"}]}}},getVoiceprintStatus:{resolveData:{code:0,data:{permission:!0,enable:!0}}}}).getVoiceprintStatus={resolveData:{code:0,data:{code:101,msg:"没有该原生方法"}}},c.sendIMMessage={resolveData:{code:0,msg:""}},c.shareToWechat={resolveData:{code:0,msg:""}},c.shareToWechat={resolveData:{code:0,data:{}}},c.TPNotificationScreenshot={resolveData:{code:0,data:{}}},c.TPNotificationShowKeyboard={resolveData:{code:0,data:{height:200}}},c.TPNotificationHideKeyboard={resolveData:{code:0,data:{}}},c.recognizeCard={resolveData:{code:0,data:{firstName:"",middleName:"",lastName:"",fullName:"",nickName:"",phones:[{label:"CELL",info:""},{label:"FAX",info:""}],emails:[{label:"WORK",info:""},{label:"HOME",info:""}],urls:[{label:"HOMEPAGE",info:""},{label:"HOMEPAGE",info:""}],companies:[{company:"",jobtitle:"",department:""},{company:"",jobtitle:"",department:""}],addresses:[{label:"WORK",country:"中国",province:"广东省",city:"",street:"",street2:"",postcode:"",address:""}],SNS:[{type:"WEIBO",account:""}],IM:[{label:"QQ",url:"612345"}],companyRegisterCode:"",cardPath:"/.../20191025163600123.jpg",vcard:""}}},c.scanCard={resolveData:{code:0,data:{firstName:"",middleName:"",lastName:"",fullName:"",nickName:"",phones:[{label:"CELL",info:""},{label:"FAX",info:""}],emails:[{label:"WORK",info:""},{label:"HOME",info:""}],urls:[{label:"HOMEPAGE",info:""},{label:"HOMEPAGE",info:""}],companies:[{company:"",jobtitle:"",department:""},{company:"",jobtitle:"",department:""}],addresses:[{label:"WORK",country:"中国",province:"广东省",city:"",street:"",street2:"",postcode:"",address:""}],SNS:[{type:"WEIBO",account:""}],IM:[{label:"QQ",url:"612345"}],companyRegisterCode:"",cardPath:"/.../20191025163600123.jpg",vcard:""}}},c.scanQRCode={resolveData:{code:0,data:{result:["",""]}}},c.scan={resolveData:{code:0,data:{result:["",""]}}},c.toast={resolveData:{code:0,data:{}}},c.alert={resolveData:{code:0,data:{}}},c.confirm={resolveData:{code:0,data:{isConfirm:!0}}},c.getShortVideo={resolveData:{code:0,data:{name:"20191018100101123.mp4",size:11020,duration:19,videoPath:"/.../20191018100101123.mp4",coverPath:"/.../20191018100101123_cover.jpg",width:1242,height:2688}}},c.startRecord={result:!0,responseTime:1e3,resolveData:{code:0,data:{status:"recording",valume:0}},rejectData:{code:1,msg:""}},c.pauseRecord={resolveData:{code:0,data:{}}},c.resumeRecord={resolveData:{code:0,msg:"",data:{}}},c.stopRecord={resolveData:{code:0,msg:"",data:{path:"/原生本地路径/.../yyyyMMddHHmmss.wav",size:10240,duration:59}}},c.getRecordStatus={resolveData:{code:0,msg:"",data:{status:"paused"}}},c.startPlayingAudio={resolveData:{code:0,msg:"",data:{}}},c.stopPlayingAudio={resolveData:{code:0,msg:"",data:{}}},c.pausePlayingAudio={resolveData:{code:0,msg:"",data:{}}},c.resumePlayingAudio={resolveData:{code:0,msg:"",data:{}}},c.getPlayingAudioStatus={resolveData:{code:0,msg:"",data:{status:"playing"}}},c.checkLightAppLock={resolveData:{code:0,msg:"",data:{}}},c.closeView={overHandler:function(){window.history.back()}},c.setTimedTasks={overHandler:function(e){(e.tasks||[]).forEach(function(e){window.clearInterval(window.taskId),window.taskId=window.setInterval(function(){"function"==typeof window[e.task]&&window[e.task]()},1e3*e.timeInterval)})}},c.executeSQL={overHandler:function(){}},c.querySQL={overHandler:function(){}},c.viewAppear={overHandler:function(){}},c.viewDisappear={overHandler:function(){}},c.setScreenOrientation={overHandler:function(e){}},c.subscribeNotification={overHandler:function(e){}},c.unsubscribeNotification={overHandler:function(e){}},c.postNotification={overHandler:function(e){"function"==typeof window.handlenewDataNotify&&window.handlenewDataNotify(e.content)}},c.joinXYMeeting={overHandler:function(e){}},c.reserveCloudMeeting={overHandler:function(e){}},c.createCloudMeeting={overHandler:function(e){}},c.joinCloudMeeting={overHandler:function(e){}},c);function D(e,t,n){var a=window.pcNativeConfig,r=null;if(a&&a[e]?r=a[e]:P&&P[e]&&(r=P[e]),r&&n&&b.isFunction(n)){var i=n(r);r&&i&&(r.resolveData=i)}if(!1!=!!r){var o="boolean"!=typeof r.result||r.result,c=r.responseTime||1e3,s=r.resolveData||{},u=r.rejectData||{};setTimeout(function(){o?window[t.callback](s):window[t.callback](u)},c)}else"[object Object]"===Object.prototype.toString.call(t)&&t.callback&&Reflect.deleteProperty(window,t.callback)}function A(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}var T,I=new(function(e){var t,n;function a(){return e.apply(this,arguments)||this}return n=e,(t=a).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,a}(function(){function e(){}var t,n,a,r=e.prototype;return r.initNativeCallback=function(e,t,n,a){var r=x.generateCallbackName();return r=!0===n?"keep_"+r:r,window[r]=function(n){r.indexOf("keep_")<0&&setTimeout(function(){Reflect.deleteProperty(window,r)},1e4);var i=window[a];a&&i&&(i.data=n,window.dispatchEvent(i)),0===n.code?e(n):t(n)},r},r.invokeNative=function(e,t){switch(this.os.type){case"ios":t?TPNative[e](t):TPNative[e]();break;case"android":t?native[e](JSON.stringify(t)):native[e]();break;default:try{t?PCNative(e,t):PCNative(e)}catch(e){}}},r.request=function(e){var t=this;return new Promise(function(n,a){var r=t.initNativeCallback(n,a),i={param:x.getServerParams(e),callback:r};t.invokeNative("request",i)})},r.getBaseInfo=function(){var e=this;return new Promise(function(t,n){var a={callback:e.initNativeCallback(t,n)};e.invokeNative("getBaseInfo",a)})},r.getUserInfo=function(){var e=this;return new Promise(function(t,n){var a={callback:e.initNativeCallback(t,n)};e.invokeNative("getUserInfo",a)})},r.getDeviceInfo=function(){var e=this;return new Promise(function(t,n){var a={callback:e.initNativeCallback(t,n)};e.invokeNative("getDeviceInfo",a)})},r.getNetStatus=function(){var e=this;return new Promise(function(t,n){var a={callback:e.initNativeCallback(t,n)};e.invokeNative("getNetStatus",a)})},r.getPhoto=function(e){var t=this;return new Promise(function(n,a){var r=t.initNativeCallback(n,a),i={param:{type:e.type,maxNumber:e.maxNumber||1},callback:r};t.invokeNative("getPhoto",i)})},r.showPhoto=function(e){var t=this;return new Promise(function(n,a){var r=t.initNativeCallback(n,a),i={param:{paths:e.paths||[],index:e.index||0,canSave:e.canSave||!1},callback:r};t.invokeNative("showPhoto",i)})},r.compressPhoto=function(e){var t=this;return new Promise(function(n,a){var r=t.initNativeCallback(n,a),i={param:{paths:e.paths,maxSide:e.maxSide?Number(e.maxSide):"",maxSize:e.maxSize?Number(e.maxSize):""},callback:r};t.invokeNative("compressPhoto",i)})},r.showLoading=function(e){var t={param:{msg:e||"加载中"}};this.invokeNative("showLoading",t)},r.hideLoading=function(){this.invokeNative("hideLoading")},r.openWeb=function(e){var t={param:{url:e.url||"",title:e.title||""}};this.invokeNative("openWeb",t)},r.openLightApp=function(e){var t=this;return new Promise(function(n,a){var r=t.initNativeCallback(n,a),i={param:{appCode:e.appCode||"",url:e.url||""},callback:r};t.invokeNative("openLightApp",i)})},r.closeView=function(e){var t={param:{allView:(e||{}).allView||!1}};this.invokeNative("closeView",t)},r.upload=function(e){var t=this;return new Promise(function(n,a){var r=t.initNativeCallback(n,a),i={param:{paths:e.paths||[],system:e.system||t.defaultSystemTag,hideLoading:e.hideLoading||!1},callback:r};t.invokeNative("upload",i)})},r.openFile=function(e){var t=this;return new Promise(function(n,a){var r=t.initNativeCallback(n,a),i={param:{url:e.url||"",system:e.system||systemTag,name:e.name||"",type:e.type||"",download:e.download||!1},callback:r};t.invokeNative("openFile",i)})},r.tpBack=function(e){},r.selectUser=function(e){var t=this;return new Promise(function(n,a){var r=t.initNativeCallback(n,a),i={param:{initUsers:e.initUsers||[],maxNumber:e.maxNumber||200,allowsEditing:e.allowsEditing||!0,excludedUsers:e.excludedUsers||[]},callback:r};t.invokeNative("selectUser",i)})},r.getStepCount=function(e){var t=this;return new Promise(function(n,a){var r=t.initNativeCallback(n,a),i={param:{startDate:e.startDate||"",endDate:e.endDate||""},callback:r};t.invokeNative("getStepCount",i)})},r.setTimedTasks=function(e){var t=this;return new Promise(function(n,a){var r=t.initNativeCallback(n,a),i={param:{tasks:e.tasks||[]},callback:r};t.invokeNative("setTimedTasks",i)})},r.executeSQL=function(e){var t=this;return new Promise(function(n,a){var r=t.initNativeCallback(n,a),i={param:{sqls:e.sqls||[]},callback:r};t.invokeNative("executeSQL",i)})},r.querySQL=function(e){var t=this;return new Promise(function(n,a){var r=t.initNativeCallback(n,a),i={param:{sql:e.sql,parameter:e.parameter||[]},callback:r};t.invokeNative("querySQL",i)})},r.viewAppear=function(){this.invokeNative("viewAppear")},r.viewDisappear=function(){this.invokeNative("viewDisappear")},r.adjustCardHeight=function(e){var t=this;return new Promise(function(n,a){var r=t.initNativeCallback(n,a),i={param:{rate:e.rate||""},callback:r};t.invokeNative("adjustCardHeight",i)})},r.subscribeNotification=function(e){var t=x.generateCallbackName();window[t]=function(t){b.isFunction(e.callback)&&e.callback(t)};var n={param:{name:e.name,function:t}};this.invokeNative("subscribeNotification",n)},r.unsubscribeNotification=function(e){var t={param:{name:e.name}};this.invokeNative("unsubscribeNotification",t)},r.postNotification=function(e){var t={param:i({},e)};this.invokeNative("postNotification",t)},r.searchUser=function(e){var t=this;return new Promise(function(n,a){var r=t.initNativeCallback(n,a),i={param:{keyword:e.keyword,pageNumber:e.pageNumber||0,pageSize:e.pageSize||20},callback:r};t.invokeNative("searchUser",i)})},r.selectFile=function(e){var t=this;return new Promise(function(n,a){var r=t.initNativeCallback(n,a),i={param:{maxNumber:e.maxNumber||"1",maxFileSize:e.maxFileSize||"31457280",acceptTypes:e.acceptTypes||[]},callback:r};t.invokeNative("selectFile",i)})},r.getFileBase64String=function(e){var t=this;return new Promise(function(n,a){var r=t.initNativeCallback(n,a),i={param:{path:e.path},callback:r};t.invokeNative("getFileBase64String",i)})},r.choiceInvoice=function(e){var t=this;return new Promise(function(n,a){var r=t.initNativeCallback(n,a),i={param:{cardSign:e.cardSign||"",nonceStr:e.nonceStr||"",timeStamp:e.timeStamp||(new Date).getTime(),type:e.type||"wx"},callback:r};t.invokeNative("choiceInvoice",i)})},r.joinXYMeeting=function(){var e=this;return new Promise(function(t,n){var a=e.initNativeCallback(t,n),r={param:{number:opt.number||"",pwd:opt.pwd||""},callback:a};e.invokeNative("joinXYMeeting",r)})},r.reserveCloudMeeting=function(e){var t=this;return new Promise(function(n,a){var r=t.initNativeCallback(n,a),i={param:{subject:e.subject,startTime:e.startTime||"",duration:e.duration||""},callback:r};t.invokeNative("reserveCloudMeeting",i)})},r.createCloudMeeting=function(e){var t=this;return new Promise(function(n,a){var r=t.initNativeCallback(n,a),i={param:{type:e.type||"xy",subject:e.subject||"",startTime:e.startTime||"",endTime:e.endTime||""},callback:r};t.invokeNative("createCloudMeeting",i)})},r.joinCloudMeeting=function(e){var t=this;return new Promise(function(n,a){var r=t.initNativeCallback(n,a),i={param:{type:e.type,roomID:e.roomID||"",password:e.password||"",IPAddress:e.IPAddress||"",isPolycom:e.isPolycom},callback:r};t.invokeNative("joinCloudMeeting",i)})},r.quesShare=function(e){var t=this;return new Promise(function(n,a){var r=t.initNativeCallback(n,a),o={param:i({},e),callback:r};t.invokeNative("quesShare",o)})},r.shareToYxtp=function(e){var t=this;return new Promise(function(n,a){var r=t.initNativeCallback(n,a),o={param:i({},e),callback:r};t.invokeNative("shareToYxtp",o)})},r.grantStoragePermission=function(e){var t=this;return new Promise(function(n,a){var r=t.initNativeCallback(n,a),o={param:i({},e),callback:r};t.invokeNative("grantStoragePermission",o)})},r.getModule=function(){},r.call=function(e){var t=this;return new Promise(function(n,a){var r=t.initNativeCallback(n,a),o={param:i({},e),callback:r};t.invokeNative("call",o)})},r.sms=function(e){var t=this;return new Promise(function(n,a){var r=t.initNativeCallback(n,a),o={param:i({},e),callback:r};t.invokeNative("sms",o)})},r.mail=function(e){var t=this;return new Promise(function(n,a){var r=t.initNativeCallback(n,a),o={param:i({},e),callback:r};t.invokeNative("mail",o)})},r.getLanguage=function(){var e=this;return new Promise(function(t,n){var a={callback:e.initNativeCallback(t,n)};e.invokeNative("getLanguage",a)})},r.speechRecognize=function(){var e=this;return new Promise(function(t,n){var a=e.initNativeCallback(t,n),r={param:i({},opt),callback:a};e.invokeNative("speechRecognize",r)})},r.getLightApp=function(e){var t=this;return new Promise(function(n,a){var r=t.initNativeCallback(n,a),o={param:i({},e),callback:r};t.invokeNative("getLightApp",o)})},r.createGroup=function(e){var t=this;return new Promise(function(n,a){var r=t.initNativeCallback(n,a),o={param:i({},e),callback:r};t.invokeNative("createGroup",o)})},r.openGroupChat=function(e){var t=this;return new Promise(function(n,a){var r=t.initNativeCallback(n,a),o={param:i({},e),callback:r};t.invokeNative("openGroupChat",o)})},r.addGroupMembers=function(e){var t=this;return new Promise(function(n,a){var r=t.initNativeCallback(n,a),o={param:i({},e),callback:r};t.invokeNative("addGroupMembers",o)})},r.deleteGroupMembers=function(e){var t=this;return new Promise(function(n,a){var r=t.initNativeCallback(n,a),o={param:i({},e),callback:r};t.invokeNative("deleteGroupMembers",o)})},r.toast=function(e){var t=this;return new Promise(function(n,a){var r=t.initNativeCallback(n,a),i={param:{type:e.type,content:e.content||""},callback:r};t.invokeNative("toast",i)})},r.alert=function(e){var t=this;return new Promise(function(n,a){var r=t.initNativeCallback(n,a),i={param:{content:e.content||""},callback:r};t.invokeNative("alert",i)})},r.confirm=function(e){var t=this;return new Promise(function(n,a){var r=t.initNativeCallback(n,a),i={param:{title:e.title||"",content:e.content||"",cancelButtonTitle:e.cancelButtonTitle||"",confirmButtonTitle:e.confirmButtonTitle||""},callback:r};t.invokeNative("confirm",i)})},r.getShortVideo=function(e){var t=this;return new Promise(function(n,a){var r=t.initNativeCallback(n,a),i={param:{minDuration:e.minDuration,maxDuration:e.maxDuration},callback:r};t.invokeNative("getShortVideo",i)})},r.scan=function(e){var t=this;return new Promise(function(n,a){var r=t.initNativeCallback(n,a),i={param:{type:e.type||["QRCode"],isInBatch:e.isInBatch||!1,showAlbum:e.showAlbum||!1,startTip:e.startTip||""},callback:r};t.invokeNative("scan",i)})},r.scanQRCode=function(e){var t=this;return new Promise(function(n,a){var r=t.initNativeCallback(n,a),i={param:{isInBatch:e.isInBatch||!1,showAlbum:e.showAlbum||!1},callback:r};t.invokeNative("scanQRCode",i)})},r.setScreenOrientation=function(e){var t=this;return new Promise(function(n,a){var r=t.initNativeCallback(n,a),o={param:i({},e),callback:r};t.invokeNative("setScreenOrientation",o)})},r.getLocationInfo=function(e){var t=this;return new Promise(function(n,a){var r=t.initNativeCallback(n,a),i={param:{showMap:e.showMap||!1},callback:r};t.invokeNative("getLocationInfo",i)})},r.showLocationInfo=function(e){var t=this;return new Promise(function(n,a){var r=t.initNativeCallback(n,a),i={param:{title:e.title||"",locationInfo:e.locationInfo||[],hideUserLocation:e.hideUserLocation||!1},callback:r};t.invokeNative("showLocationInfo",i)})},r.getConnectionWifiInfo=function(){var e=this;return new Promise(function(t,n){var a={param:{},callback:e.initNativeCallback(t,n)};e.invokeNative("getConnectionWifiInfo",a)})},r.getWifiList=function(){var e=this;return new Promise(function(t,n){var a={param:{},callback:e.initNativeCallback(t,n)};e.invokeNative("getWifiList",a)})},r.getDistanceBetweenTwoPoints=function(e){var t=this;return new Promise(function(n,a){var r=t.initNativeCallback(n,a),i={param:{list:e.list||[]},callback:r};t.invokeNative("getDistanceBetweenTwoPoints",i)})},r.editPhotos=function(e){var t=this;return new Promise(function(n,a){var r=t.initNativeCallback(n,a),i={param:{list:e.list||[]},callback:r};t.invokeNative("editPhotos",i)})},r.faceComparison=function(e){var t=this;return new Promise(function(n,a){var r=t.initNativeCallback(n,a),o={param:i({},e),callback:r};t.invokeNative("faceComparison",o)})},r.continuousShooting=function(e){var t=this;return new Promise(function(n,a){var r=t.initNativeCallback(n,a),i={param:{maxCount:e.maxCount||9,isNeedToEdit:e.isNeedToEdit||!1,isNeedCheckInclinedAngle:e.isNeedCheckInclinedAngle||!1,inclinedAngle:e.inclinedAngle||"15",tip:e.tip||""},callback:r};t.invokeNative("continuousShooting",i)})},r.invoiceImageProcessing=function(e){var t=this;return new Promise(function(n,a){var r=t.initNativeCallback(n,a),i={param:{action:e.action||"",info:e.info||""},callback:r};t.invokeNative("invoiceImageProcessing",i)})},r.getVoiceprintStatus=function(){var e=this;return new Promise(function(t,n){var a={param:{},callback:e.initNativeCallback(t,n)};e.invokeNative("getVoiceprintStatus",a)})},r.verifyVoiceprint=function(){var e=this;return new Promise(function(t,n){var a={param:{},callback:e.initNativeCallback(t,n)};e.invokeNative("verifyVoiceprint",a)})},r.sendIMMessage=function(e){var t=this;return new Promise(function(n,a){var r=t.initNativeCallback(n,a),o={param:i({},e),callback:r};t.invokeNative("sendIMMessage",o)})},r.shareToWechat=function(e){var t=this;return new Promise(function(n,a){var r=t.initNativeCallback(n,a),o={param:i({},e),callback:r};t.invokeNative("shareToWechat",o)})},r.recognizeCard=function(e){var t=this;return new Promise(function(n,a){var r=t.initNativeCallback(n,a),o={param:i({},e),callback:r};t.invokeNative("recognizeCard",o)})},r.scanCard=function(e){var t=this;return new Promise(function(e,n){var a={callback:t.initNativeCallback(e,n)};t.invokeNative("scanCard",a)})},r.checkLightAppLock=function(e){var t=this;return new Promise(function(n,a){var r=t.initNativeCallback(n,a),o={param:i({},e),callback:r};t.invokeNative("checkLightAppLock",o)})},r.share=function(e){var t=this;return new Promise(function(n,a){var r=t.initNativeCallback(n,a),o={param:i({},e),callback:r};t.invokeNative("share",o)})},r.checkApp=function(e){var t=this;return new Promise(function(n,a){var r=t.initNativeCallback(n,a),o={param:i({},e),callback:r};t.invokeNative("checkApp",o)})},r.openApp=function(e){var t=this;return new Promise(function(n,a){var r=t.initNativeCallback(n,a),o={param:i({},e),callback:r};t.invokeNative("openApp",o)})},r.createEventCalendar=function(e){var t=this;return new Promise(function(n,a){var r=t.initNativeCallback(n,a),o={param:i({},e),callback:r};t.invokeNative("createEventCalendar",o)})},r.setScrollViewBounces=function(e){var t=this;return new Promise(function(n,a){var r=t.initNativeCallback(n,a),o={param:i({},e),callback:r};t.invokeNative("setScrollViewBounces",o)})},r.getTicket=function(e){var t=this;return new Promise(function(n,a){var r=t.initNativeCallback(n,a),o={param:i({},e),callback:r};t.invokeNative("getTicket",o)})},r.TPNotificationScreenshot=function(e){var t=x.generateCallbackName();window[t]=function(t){e.callback&&b.isFunction(e.callback)&&e.callback(t)};var n={callback:t};this.invokeNative("TPNotificationScreenshot",n)},r.TPNotificationShowKeyboard=function(e){var t=this;return new Promise(function(e,n){var a={callback:t.initNativeCallback(e,n)};t.invokeNative("TPNotificationShowKeyboard",a)})},r.TPNotificationHideKeyboard=function(e){var t=this;return new Promise(function(e,n){var a={callback:t.initNativeCallback(e,n)};t.invokeNative("TPNotificationHideKeyboard",a)})},r.stopRecord=function(){this.invokeNative("stopRecord",{})},r.pauseRecord=function(){this.invokeNative("pauseRecord",{})},r.resumeRecord=function(){this.invokeNative("resumeRecord",{})},r.commNativeCall=function(e,t){var n=this;return void 0===t&&(t={}),new Promise(function(a,r){var o=n.initNativeCallback(a,r),c={param:i({},t),callback:o};n.invokeNative(e,c)})},r.startRecord=function(e){var t=this;return new Promise(function(n,a){window.startRecordEvent=new CustomEvent("startRecordEvent");var r=t.initNativeCallback(n,a,!0,"startRecordEvent"),o={param:i({},e),callback:r};t.invokeNative("startRecord",o)})},t=e,(n=[{key:"os",get:function(){return b.getOSInfo()}},{key:"defaultSystemTag",get:function(){return x.defaultSystemTag}},{key:"systemTag",get:function(){return x.systemTag}}])&&A(t.prototype,n),a&&A(t,a),e}())),E="40000",O=b.getOSInfo();"pc"===O.type&&(window.PCNative=function(e,t){switch(e){case"getDistanceBetweenTwoPoints":D(e,t,function(e){e.resolveData.data.list[0].sDistance=t.param.list[0].sDistance});break;case"startRecord":D(e,t,function(e){var n=e.resolveData;return!0===t.param.enableRealTimeVolume&&(n.data.valume=80),n});break;default:D(e,t)}});var M=T={tpBack:function(e){var t=e.context;if(e.isBacPortal)switch(this.os.type){case"ios":case"android":r(a(T),"closeView",this).call(this);break;default:t&&t.$router.goBack(-1)}else t&&(e.backCount?t.$router.goBack(e.backCount):t.$router.goBack(-1))}},j=[].concat(["getBaseInfo","getBaseInfo2"],["showLoading","hideLoading","openWeb","openLightApp","closeView"],["subscribeNotification","postNotification","unsubscribeNotification"],["getNetStatus","request","upload","requestSse"],["executeSQL","querySQL"],["getPhoto","showPhoto","compressPhoto","scanQRCode","scan","getShortVideo","toast","alert","confirm","editPhotos","continuousShooting","transformPictureToBase64","saveToAlbum"],["getLocationInfo","showLocationInfo","getStepCount","getLanguage","setScreenOrientation"],["openFile","selectFile","getFileBase64String","selectYundocFile"],["getDeviceInfo","call","sms","mail","hideKeyboard","openBluetoothVC","searchBluetooth","connectBlueTooth","disconnectBlueTooth","sendBlueToothMsg","getMsgFromBluetooth","getCDNUrl"],["getUserInfo","selectUser","searchUser"],["TPNotificationScreenshot","TPNotificationShowKeyboard","TPNotificationHideKeyboard"],["recognizeCard","scanCard"],["createCloudMeeting","joinCloudMeeting"],["startRecord","stopRecord","pauseRecord","pauseRecord","resumeRecord","getRecordStatus"],["startPlayingAudio","stopPlayingAudio","pausePlayingAudio","resumePlayingAudio","getPlayingAudioStatus"],["sendIMMessage","createGroup","openGroupChat","addGroupMembers","deleteGroupMembers","renameGroup","searchGroupMembers"],["getConnectionWifiInfo","getWifiList"],["choiceInvoice","invoiceImageProcessing","getDistanceBetweenTwoPoints","setStatusBarStyle","getStatusBarHeight","getSafeArea","checkLightAppLock","share","checkApp","openApp","getTicket","createEventCalendar","setScrollViewBounces","OCR","faceComparison","getNativeConfiguration","liveFaceDetection","track","getAppSkin","setShowWebTitle","setFutureActions","setFutureActionsV2","openCCTalkDetail","openCCPersonalSpace","gaodeNavi","baiduNavi","elecSign","elecSignNew","getWinkToken","getUserToken","getLayout","externalShare","speechRecognize","reGeoCode"],["getVoiceprintStatus","verifyVoiceprint"],["searchLightApps","searchStaffInfos","searchOrganizationInfos","searchConversations","searchPositions","searchGroupInfos","openUserInfo","openOrganization","openConversation","openPositionStaffList","openSearchMoreList","getSearchHistory","saveSearchHistory"]);!function(){var e,t=j.length,n=function(){var t=j[e];M[t]=function(e){return function(e,t){var n=M;if("ios"===O.type)n=TPNative;else if("android"===O.type)n=native;else if("pc"===O.type){var a=window.pcNativeConfig;a&&a[e]&&a[e].overHandler?I[e]=a[e].overHandler:P&&P[e]&&P[e].overHandler&&(I[e]=P[e].overHandler)}return b.isFunction(n[e])?I[e]?I[e](t):I.commNativeCall(e,t):Promise.reject({code:E,msg:"方法不存在"})}(t,e)}};for(e=0;e<t;e++)n()}();var R=M,B=0,L=8;function _(e,t,n,a,r,i){return V((o=V(V(t,e),V(a,i)))<<(c=r)|o>>>32-c,n);var o,c}function F(e,t,n,a,r,i,o){return _(t&n|~t&a,e,t,r,i,o)}function U(e,t,n,a,r,i,o){return _(t&a|n&~a,e,t,r,i,o)}function H(e,t,n,a,r,i,o){return _(t^n^a,e,t,r,i,o)}function z(e,t,n,a,r,i,o){return _(n^(t|~a),e,t,r,i,o)}function V(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}var q={hex_md5:function(e){return function(e){for(var t=B?"0123456789ABCDEF":"0123456789abcdef",n="",a=0;a<4*e.length;a++)n+=t.charAt(e[a>>2]>>a%4*8+4&15)+t.charAt(e[a>>2]>>a%4*8&15);return n}(function(e,t){e[t>>5]|=128<<t%32,e[14+(t+64>>>9<<4)]=t;for(var n=1732584193,a=-271733879,r=-1732584194,i=271733878,o=0;o<e.length;o+=16){var c=n,s=a,u=r,l=i;a=z(a=z(a=z(a=z(a=H(a=H(a=H(a=H(a=U(a=U(a=U(a=U(a=F(a=F(a=F(a=F(a,r=F(r,i=F(i,n=F(n,a,r,i,e[o+0],7,-680876936),a,r,e[o+1],12,-389564586),n,a,e[o+2],17,606105819),i,n,e[o+3],22,-1044525330),r=F(r,i=F(i,n=F(n,a,r,i,e[o+4],7,-176418897),a,r,e[o+5],12,1200080426),n,a,e[o+6],17,-1473231341),i,n,e[o+7],22,-45705983),r=F(r,i=F(i,n=F(n,a,r,i,e[o+8],7,1770035416),a,r,e[o+9],12,-1958414417),n,a,e[o+10],17,-42063),i,n,e[o+11],22,-1990404162),r=F(r,i=F(i,n=F(n,a,r,i,e[o+12],7,1804603682),a,r,e[o+13],12,-40341101),n,a,e[o+14],17,-1502002290),i,n,e[o+15],22,1236535329),r=U(r,i=U(i,n=U(n,a,r,i,e[o+1],5,-165796510),a,r,e[o+6],9,-1069501632),n,a,e[o+11],14,643717713),i,n,e[o+0],20,-373897302),r=U(r,i=U(i,n=U(n,a,r,i,e[o+5],5,-701558691),a,r,e[o+10],9,38016083),n,a,e[o+15],14,-660478335),i,n,e[o+4],20,-405537848),r=U(r,i=U(i,n=U(n,a,r,i,e[o+9],5,568446438),a,r,e[o+14],9,-1019803690),n,a,e[o+3],14,-187363961),i,n,e[o+8],20,1163531501),r=U(r,i=U(i,n=U(n,a,r,i,e[o+13],5,-1444681467),a,r,e[o+2],9,-51403784),n,a,e[o+7],14,1735328473),i,n,e[o+12],20,-1926607734),r=H(r,i=H(i,n=H(n,a,r,i,e[o+5],4,-378558),a,r,e[o+8],11,-2022574463),n,a,e[o+11],16,1839030562),i,n,e[o+14],23,-35309556),r=H(r,i=H(i,n=H(n,a,r,i,e[o+1],4,-1530992060),a,r,e[o+4],11,1272893353),n,a,e[o+7],16,-155497632),i,n,e[o+10],23,-1094730640),r=H(r,i=H(i,n=H(n,a,r,i,e[o+13],4,681279174),a,r,e[o+0],11,-358537222),n,a,e[o+3],16,-722521979),i,n,e[o+6],23,76029189),r=H(r,i=H(i,n=H(n,a,r,i,e[o+9],4,-640364487),a,r,e[o+12],11,-421815835),n,a,e[o+15],16,530742520),i,n,e[o+2],23,-995338651),r=z(r,i=z(i,n=z(n,a,r,i,e[o+0],6,-198630844),a,r,e[o+7],10,1126891415),n,a,e[o+14],15,-1416354905),i,n,e[o+5],21,-57434055),r=z(r,i=z(i,n=z(n,a,r,i,e[o+12],6,1700485571),a,r,e[o+3],10,-1894986606),n,a,e[o+10],15,-1051523),i,n,e[o+1],21,-2054922799),r=z(r,i=z(i,n=z(n,a,r,i,e[o+8],6,1873313359),a,r,e[o+15],10,-30611744),n,a,e[o+6],15,-1560198380),i,n,e[o+13],21,1309151649),r=z(r,i=z(i,n=z(n,a,r,i,e[o+4],6,-145523070),a,r,e[o+11],10,-1120210379),n,a,e[o+2],15,718787259),i,n,e[o+9],21,-343485551),n=V(n,c),a=V(a,s),r=V(r,u),i=V(i,l)}return Array(n,a,r,i)}(function(e){for(var t=Array(),n=(1<<L)-1,a=0;a<e.length*L;a+=L)t[a>>5]|=(e.charCodeAt(a/L)&n)<<a%32;return t}(e),e.length*L))}},Y={base64:m,md5:q,pwd:{generate:function(e,t){var n=this._saltvalid(this._salt());return this._encrypt(this._md5Hex(e+t+n),n)},_salt:function(){var e=""+Math.random();return e=e.substr(2,16),e},_saltvalid:function(e){var t=e.length;if(t<16)for(var n=0;n<16-t;n++)e+="0";return e},_md5Hex:function(e){return q.hex_md5(e)},_encrypt:function(e,t){for(var n=new Array(48),a=0;a<48;a+=3){n[a]=e.charAt(a/3*2);var r=t.charAt(a/3);n[a+1]=r,n[a+2]=e.charAt(a/3*2+1)}return n.join("")}}};function W(){var e=arguments;if(!(e.length<2)){for(var t=function e(t){if("object"!=typeof t)return t;if(null==t)return t;var n={};for(var a in t)n[a]=e(t[a]);return n}(e[0]),n=1;n<e.length;n++)for(var a in e[n])t[a]=e[n][a];return t}}var K=function(e){this.elem=e};K.prototype={defaults:{text:"此处水印文字",spaceX:80,spaceY:55,textRotate:-22,textColor:"#000000",fontFamily:"Helvetica Neue",fontSize:"10",opacity:.1,backgroundScroll:!0},options:{},init:function(e){var t=this;if(this.elem){this.options=W(this.defaults,e);var n=document.body,a=this.options;this.__calcTextSize(n);var r,i=a.spaceX+a.txts.width,o=a.spaceY+a.txts.height,c=2*o,s=i/2,u='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" preserveAspectRatio="none">\n <defs>\n <pattern id="pattern1" x="0" y="0" width="'+i+'" height="'+c+'" patternUnits="userSpaceOnUse" patternTransform = "rotate('+a.textRotate+')">\n <text x="0" y="'+a.fontSize+'" style="font-family:'+a.fontFamily+"; font-size:"+a.fontSize+"px; fill:"+a.textColor+"; fill-opacity:"+a.opacity+';">'+a.text+'</text>\n </pattern>\n <pattern id="pattern2" x="'+s+'" y="'+o+'" width="'+i+'" height="'+c+'" patternUnits="userSpaceOnUse" patternTransform="rotate('+a.textRotate+')">\n <text x="0" y="'+a.fontSize+'" style="font-family:'+a.fontFamily+"; font-size:"+a.fontSize+"px; fill:"+a.textColor+"; fill-opacity:"+a.opacity+'; ">'+a.text+'</text>\n </pattern>\n </defs>\n <rect x="0" y="0" width="100%" height="100%" style=" fill: url(#pattern1); fill-opacity:1;"/>\n <rect x="0" y="0" width="100%" height="100%" style=" fill: url(#pattern2); fill-opacity:1;"/>\n </svg>',l=(r=u,window.btoa(unescape(encodeURIComponent(r))));setTimeout(function(){t.elem.style.backgroundImage="url(data:image/svg+xml;base64,"+l+")"},200)}},__calcTextSize:function(e){var t=this.options,n=t.text,a=document.createElement("span");a.innerText=n;a.setAttribute("style",'"font-family:PingFangSC-Thin; font-size:14px;visibility: hidden;display: inline-block;"'),e.appendChild(a);var r=a.offsetWidth,i=a.offsetHeight;a.remove(),t.txts={txt:n,width:r,height:i}}};var G=K;var Q=function(e,t){var n=new G(e),a=t.value;n.init({text:a})},X={waterMark:{inserted:Q,update:Q}};n.d(t,"tpNative",function(){return R}),n.d(t,"Security",function(){return Y}),n.d(t,"Utils",function(){return w}),n.d(t,"directives",function(){return X});t.default={tpNative:R,Security:Y,Utils:w,directives:X}}])});
|