diff --git a/.hbuilderx/launch.json b/.hbuilderx/launch.json index 07d9281..fe7f40f 100644 --- a/.hbuilderx/launch.json +++ b/.hbuilderx/launch.json @@ -4,16 +4,19 @@ "version" : "0.0", "configurations" : [ { - "app-plus" : { - "launchtype" : "local" - }, - "default" : { - "launchtype" : "local" - }, - "mp-weixin" : { - "launchtype" : "local" - }, - "type" : "uniCloud" + "app-plus" : + { + "launchtype" : "local" + }, + "default" : + { + "launchtype" : "local" + }, + "mp-weixin" : + { + "launchtype" : "local" + }, + "type" : "uniCloud" }, { "playground" : "standard", diff --git a/certificate/book.keystore b/certificate/book.keystore index 450d265..ad6e4b6 100644 Binary files a/certificate/book.keystore and b/certificate/book.keystore differ diff --git a/certificate/证书信息.txt b/certificate/证书信息.txt index 7c8a649..3a245d2 100644 --- a/certificate/证书信息.txt +++ b/certificate/证书信息.txt @@ -1,8 +1,9 @@ 证书指纹: -MD5: E9:4A:C7:11:D5:D7:DD:B2:E2:C1:61:85:FB:EC:45:1B -SHA1: B8:69:64:18:C9:22:43:B7:A4:52:CE:BB:A3:EB:BD:7C:24:C2:C5:93 -SHA256: AF:A7:4B:54:97:18:AD:A4:C4:C7:EA:6B:3C:E3:F2:28:81:EA:4C:F5:56:F2:D9:6E:EC:D2:E6:BD:F6:FA:4F:75 +MD5: 9A:AD:4D:78:17:EE:17:D3:62:B2:6E:B2:56:0B:18:C3 +SHA1: B1:1E:CE:4B:70:C7:88:B3:6E:8B:B9:05:98:4B:FD:67:81:C1:3A:8F +SHA256: A9:78:BD:BF:BB:DE:35:14:AA:5D:45:E9:6A:D0:E5:17:6D:BE:58:86:7A:1D:66:A2:F3:62:2F:E7:9C:9E:59:F6 -别名: __uni__f0afd30 -证书密码为:LBJcfP45 + +别名: __uni__9f097f0 +证书密码为:uZ6Stufj 包名:com.tianranqi.app \ No newline at end of file diff --git a/components/treeSelect/data-select-item.vue b/components/treeSelect/data-select-item.vue index ff69562..a65f884 100644 --- a/components/treeSelect/data-select-item.vue +++ b/components/treeSelect/data-select-item.vue @@ -34,6 +34,7 @@ (!choseParent && node[dataChildren] && !node[dataChildren].length) " :class="['check-box', { disabled: node.disabled }]" + :style="{ 'border-radius': mutiple ? '3px' : '50%' }" @click.stop="!node.disabled && nodeClick(node)" > @@ -106,7 +107,11 @@ const props = defineProps({ level: { type: Number, default: 0 - } + }, + mutiple: { + type: Boolean, + default: false + }, }) const listData = ref([]) @@ -173,7 +178,6 @@ $col-lg: 12px; $row-sm: 5px; $row-base: 10px; $row-lg: 15px; -$radius-sm: 3px; $radius-base: 6px; $border-color: #c8c7cc; @@ -257,11 +261,11 @@ $border-color: #c8c7cc; width: 23.6px; height: 23.6px; border: 1px solid $border-color; - border-radius: $radius-sm; + display: flex; justify-content: center; align-items: center; - + &.disabled { background-color: rgb(225, 225, 225); } diff --git a/manifest.json b/manifest.json index 44a8274..c83d3ee 100644 --- a/manifest.json +++ b/manifest.json @@ -1,6 +1,6 @@ { "name" : "数智产销", - "appid" : "__UNI__F0AFD30", + "appid" : "__UNI__9F097F0", "description" : "", "versionName" : "1.0.0", "versionCode" : 20241024, @@ -21,7 +21,8 @@ "Geolocation" : {}, "Fingerprint" : {}, "Camera" : {}, - "Barcode" : {} + "Barcode" : {}, + "Push" : {} }, /* 应用发布信息 */ "distribute" : { @@ -56,6 +57,12 @@ "system" : { "__platform__" : [ "android" ] } + }, + "push" : { + "unipush" : { + "version" : "2", + "offline" : false + } } }, "icons" : { diff --git a/pages/tab/index.vue b/pages/tab/index.vue index 4922ac0..ea43d35 100644 --- a/pages/tab/index.vue +++ b/pages/tab/index.vue @@ -131,7 +131,6 @@ } from 'vue'; import { onLoad, - onShow, onPullDownRefresh, // onReachBottom } from '@dcloudio/uni-app'; @@ -160,7 +159,8 @@ const baseurl = import.meta.env.VITE_REQUEST_BASE_URL + '/jeecg-boot' const store = useStore(); - onShow(() => { + onLoad(() => { + // list.value = [] // if (!uni.getStorageSync('token')) { // return uni.navigateTo({ // url: '/pages/login/login' diff --git a/uniCloud-aliyun/cloudfunctions/uniPush/index.js b/uniCloud-aliyun/cloudfunctions/uniPush/index.js new file mode 100644 index 0000000..49d54ca --- /dev/null +++ b/uniCloud-aliyun/cloudfunctions/uniPush/index.js @@ -0,0 +1,13 @@ +// 简单的使用示例 +'use strict'; +const uniPush = uniCloud.getPushManager({appId:"__UNI__9F097F0"}) //注意这里需要传入你的应用appId,用于指定接收消息的客户端 +exports.main = async (event, context) => { + return await uniPush.sendMessage({ + "push_clientid": "4033dd01957129991552f89ee7b538f1", //填写上一步在uni-app客户端获取到的客户端推送标识push_clientid + "title": "通知栏显示的标题", + "content": "通知栏显示的内容", + "payload": { + "text":"体验一下uni-push2.0" + } + }) +}; diff --git a/uniCloud-aliyun/cloudfunctions/uniPush/package.json b/uniCloud-aliyun/cloudfunctions/uniPush/package.json new file mode 100644 index 0000000..fc736cd --- /dev/null +++ b/uniCloud-aliyun/cloudfunctions/uniPush/package.json @@ -0,0 +1,7 @@ +{ + "name": "uniPush", + "dependencies": {}, + "extensions": { + "uni-cloud-push": {} + } +} \ No newline at end of file diff --git a/uniCloud-aliyun/database/JQL查询.jql b/uniCloud-aliyun/database/JQL查询.jql new file mode 100644 index 0000000..35d21de --- /dev/null +++ b/uniCloud-aliyun/database/JQL查询.jql @@ -0,0 +1,12 @@ +// 本文件用于,使用JQL语法操作项目关联的uniCloud空间的数据库,方便开发调试和远程数据库管理 +// 编写clientDB的js API(也支持常规js语法,比如var),可以对云数据库进行增删改查操作。不支持uniCloud-db组件写法 +// 可以全部运行,也可以选中部分代码运行。点击工具栏上的运行按钮或者按下【F5】键运行代码 +// 如果文档中存在多条JQL语句,只有最后一条语句生效 +// 如果混写了普通js,最后一条语句需是数据库操作语句 +// 此处代码运行不受DB Schema的权限控制,移植代码到实际业务中注意在schema中配好permission +// 不支持clientDB的action +// 数据库查询有最大返回条数限制,详见:https://uniapp.dcloud.net.cn/uniCloud/cf-database.html#limit +// 详细JQL语法,请参考:https://uniapp.dcloud.net.cn/uniCloud/jql.html + +// 下面示例查询uni-id-users表的所有数据 +db.collection('uni-id-users').get(); diff --git a/uni_modules/uni-config-center/changelog.md b/uni_modules/uni-config-center/changelog.md new file mode 100644 index 0000000..57dbcb5 --- /dev/null +++ b/uni_modules/uni-config-center/changelog.md @@ -0,0 +1,6 @@ +## 0.0.3(2022-11-11) +- 修复 config 方法获取根节点为数组格式配置时错误的转化为了对象的Bug +## 0.0.2(2021-04-16) +- 修改插件package信息 +## 0.0.1(2021-03-15) +- 初始化项目 diff --git a/uni_modules/uni-config-center/package.json b/uni_modules/uni-config-center/package.json new file mode 100644 index 0000000..bace866 --- /dev/null +++ b/uni_modules/uni-config-center/package.json @@ -0,0 +1,81 @@ +{ + "id": "uni-config-center", + "displayName": "uni-config-center", + "version": "0.0.3", + "description": "uniCloud 配置中心", + "keywords": [ + "配置", + "配置中心" +], + "repository": "", + "engines": { + "HBuilderX": "^3.1.0" + }, +"dcloudext": { + "sale": { + "regular": { + "price": "0.00" + }, + "sourcecode": { + "price": "0.00" + } + }, + "contact": { + "qq": "" + }, + "declaration": { + "ads": "无", + "data": "无", + "permissions": "无" + }, + "npmurl": "", + "type": "unicloud-template-function" + }, + "directories": { + "example": "../../../scripts/dist" + }, + "uni_modules": { + "dependencies": [], + "encrypt": [], + "platforms": { + "cloud": { + "tcb": "y", + "aliyun": "y" + }, + "client": { + "App": { + "app-vue": "u", + "app-nvue": "u" + }, + "H5-mobile": { + "Safari": "u", + "Android Browser": "u", + "微信浏览器(Android)": "u", + "QQ浏览器(Android)": "u" + }, + "H5-pc": { + "Chrome": "u", + "IE": "u", + "Edge": "u", + "Firefox": "u", + "Safari": "u" + }, + "小程序": { + "微信": "u", + "阿里": "u", + "百度": "u", + "字节跳动": "u", + "QQ": "u" + }, + "快应用": { + "华为": "u", + "联盟": "u" + }, + "Vue": { + "vue2": "y", + "vue3": "u" + } + } + } + } +} diff --git a/uni_modules/uni-config-center/readme.md b/uni_modules/uni-config-center/readme.md new file mode 100644 index 0000000..03f7fc2 --- /dev/null +++ b/uni_modules/uni-config-center/readme.md @@ -0,0 +1,93 @@ +# 为什么使用uni-config-center + +实际开发中很多插件需要配置文件才可以正常运行,如果每个插件都单独进行配置的话就会产生下面这样的目录结构 + +```bash +cloudfunctions +└─────common 公共模块 + ├─plugin-a // 插件A对应的目录 + │ ├─index.js + │ ├─config.json // plugin-a对应的配置文件 + │ └─other-file.cert // plugin-a依赖的其他文件 + └─plugin-b // plugin-b对应的目录 + ├─index.js + └─config.json // plugin-b对应的配置文件 +``` + +假设插件作者要发布一个项目模板,里面使用了很多需要配置的插件,无论是作者发布还是用户使用都是一个大麻烦。 + +uni-config-center就是用了统一管理这些配置文件的,使用uni-config-center后的目录结构如下 + +```bash +cloudfunctions +└─────common 公共模块 + ├─plugin-a // 插件A对应的目录 + │ └─index.js + ├─plugin-b // plugin-b对应的目录 + │ └─index.js + └─uni-config-center + ├─index.js // config-center入口文件 + ├─plugin-a + │ ├─config.json // plugin-a对应的配置文件 + │ └─other-file.cert // plugin-a依赖的其他文件 + └─plugin-b + └─config.json // plugin-b对应的配置文件 +``` + +使用uni-config-center后的优势 + +- 配置文件统一管理,分离插件主体和配置信息,更新插件更方便 +- 支持对config.json设置schema,插件使用者在HBuilderX内编写config.json文件时会有更好的提示(后续HBuilderX会提供支持) + +# 用法 + +在要使用uni-config-center的公共模块或云函数内引入uni-config-center依赖,请参考:[使用公共模块](https://uniapp.dcloud.net.cn/uniCloud/cf-common) + +```js +const createConfig = require('uni-config-center') + +const uniIdConfig = createConfig({ + pluginId: 'uni-id', // 插件id + defaultConfig: { // 默认配置 + tokenExpiresIn: 7200, + tokenExpiresThreshold: 600, + }, + customMerge: function(defaultConfig, userConfig) { // 自定义默认配置和用户配置的合并规则,不设置的情况侠会对默认配置和用户配置进行深度合并 + // defaudltConfig 默认配置 + // userConfig 用户配置 + return Object.assign(defaultConfig, userConfig) + } +}) + + +// 以如下配置为例 +// { +// "tokenExpiresIn": 7200, +// "passwordErrorLimit": 6, +// "bindTokenToDevice": false, +// "passwordErrorRetryTime": 3600, +// "app-plus": { +// "tokenExpiresIn": 2592000 +// }, +// "service": { +// "sms": { +// "codeExpiresIn": 300 +// } +// } +// } + +// 获取配置 +uniIdConfig.config() // 获取全部配置,注意:uni-config-center内不存在对应插件目录时会返回空对象 +uniIdConfig.config('tokenExpiresIn') // 指定键值获取配置,返回:7200 +uniIdConfig.config('service.sms.codeExpiresIn') // 指定键值获取配置,返回:300 +uniIdConfig.config('tokenExpiresThreshold', 600) // 指定键值获取配置,如果不存在则取传入的默认值,返回:600 + +// 获取文件绝对路径 +uniIdConfig.resolve('custom-token.js') // 获取uni-config-center/uni-id/custom-token.js文件的路径 + +// 引用文件(require) +uniIDConfig.requireFile('custom-token.js') // 使用require方式引用uni-config-center/uni-id/custom-token.js文件。文件不存在时返回undefined,文件内有其他错误导致require失败时会抛出错误。 + +// 判断是否包含某文件 +uniIDConfig.hasFile('custom-token.js') // 配置目录是否包含某文件,true: 文件存在,false: 文件不存在 +``` \ No newline at end of file diff --git a/uni_modules/uni-config-center/uniCloud/cloudfunctions/common/uni-config-center/index.js b/uni_modules/uni-config-center/uniCloud/cloudfunctions/common/uni-config-center/index.js new file mode 100644 index 0000000..00ba62f --- /dev/null +++ b/uni_modules/uni-config-center/uniCloud/cloudfunctions/common/uni-config-center/index.js @@ -0,0 +1 @@ +"use strict";var t=require("fs"),r=require("path");function e(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var n=e(t),o=e(r),i="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};var u=function(t){var r={exports:{}};return t(r,r.exports),r.exports}((function(t,r){var e="__lodash_hash_undefined__",n=9007199254740991,o="[object Arguments]",u="[object Function]",c="[object Object]",a=/^\[object .+?Constructor\]$/,f=/^(?:0|[1-9]\d*)$/,s={};s["[object Float32Array]"]=s["[object Float64Array]"]=s["[object Int8Array]"]=s["[object Int16Array]"]=s["[object Int32Array]"]=s["[object Uint8Array]"]=s["[object Uint8ClampedArray]"]=s["[object Uint16Array]"]=s["[object Uint32Array]"]=!0,s[o]=s["[object Array]"]=s["[object ArrayBuffer]"]=s["[object Boolean]"]=s["[object DataView]"]=s["[object Date]"]=s["[object Error]"]=s[u]=s["[object Map]"]=s["[object Number]"]=s[c]=s["[object RegExp]"]=s["[object Set]"]=s["[object String]"]=s["[object WeakMap]"]=!1;var l="object"==typeof i&&i&&i.Object===Object&&i,h="object"==typeof self&&self&&self.Object===Object&&self,p=l||h||Function("return this")(),_=r&&!r.nodeType&&r,v=_&&t&&!t.nodeType&&t,d=v&&v.exports===_,y=d&&l.process,g=function(){try{var t=v&&v.require&&v.require("util").types;return t||y&&y.binding&&y.binding("util")}catch(t){}}(),b=g&&g.isTypedArray;function j(t,r,e){switch(e.length){case 0:return t.call(r);case 1:return t.call(r,e[0]);case 2:return t.call(r,e[0],e[1]);case 3:return t.call(r,e[0],e[1],e[2])}return t.apply(r,e)}var w,O,m,A=Array.prototype,z=Function.prototype,M=Object.prototype,x=p["__core-js_shared__"],C=z.toString,F=M.hasOwnProperty,U=(w=/[^.]+$/.exec(x&&x.keys&&x.keys.IE_PROTO||""))?"Symbol(src)_1."+w:"",S=M.toString,I=C.call(Object),P=RegExp("^"+C.call(F).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),T=d?p.Buffer:void 0,q=p.Symbol,E=p.Uint8Array,$=T?T.allocUnsafe:void 0,D=(O=Object.getPrototypeOf,m=Object,function(t){return O(m(t))}),k=Object.create,B=M.propertyIsEnumerable,N=A.splice,L=q?q.toStringTag:void 0,R=function(){try{var t=vt(Object,"defineProperty");return t({},"",{}),t}catch(t){}}(),G=T?T.isBuffer:void 0,V=Math.max,W=Date.now,H=vt(p,"Map"),J=vt(Object,"create"),K=function(){function t(){}return function(r){if(!xt(r))return{};if(k)return k(r);t.prototype=r;var e=new t;return t.prototype=void 0,e}}();function Q(t){var r=-1,e=null==t?0:t.length;for(this.clear();++r-1},X.prototype.set=function(t,r){var e=this.__data__,n=nt(e,t);return n<0?(++this.size,e.push([t,r])):e[n][1]=r,this},Y.prototype.clear=function(){this.size=0,this.__data__={hash:new Q,map:new(H||X),string:new Q}},Y.prototype.delete=function(t){var r=_t(this,t).delete(t);return this.size-=r?1:0,r},Y.prototype.get=function(t){return _t(this,t).get(t)},Y.prototype.has=function(t){return _t(this,t).has(t)},Y.prototype.set=function(t,r){var e=_t(this,t),n=e.size;return e.set(t,r),this.size+=e.size==n?0:1,this},Z.prototype.clear=function(){this.__data__=new X,this.size=0},Z.prototype.delete=function(t){var r=this.__data__,e=r.delete(t);return this.size=r.size,e},Z.prototype.get=function(t){return this.__data__.get(t)},Z.prototype.has=function(t){return this.__data__.has(t)},Z.prototype.set=function(t,r){var e=this.__data__;if(e instanceof X){var n=e.__data__;if(!H||n.length<199)return n.push([t,r]),this.size=++e.size,this;e=this.__data__=new Y(n)}return e.set(t,r),this.size=e.size,this};var it,ut=function(t,r,e){for(var n=-1,o=Object(t),i=e(t),u=i.length;u--;){var c=i[it?u:++n];if(!1===r(o[c],c,o))break}return t};function ct(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":L&&L in Object(t)?function(t){var r=F.call(t,L),e=t[L];try{t[L]=void 0;var n=!0}catch(t){}var o=S.call(t);n&&(r?t[L]=e:delete t[L]);return o}(t):function(t){return S.call(t)}(t)}function at(t){return Ct(t)&&ct(t)==o}function ft(t){return!(!xt(t)||function(t){return!!U&&U in t}(t))&&(zt(t)?P:a).test(function(t){if(null!=t){try{return C.call(t)}catch(t){}try{return t+""}catch(t){}}return""}(t))}function st(t){if(!xt(t))return function(t){var r=[];if(null!=t)for(var e in Object(t))r.push(e);return r}(t);var r=yt(t),e=[];for(var n in t)("constructor"!=n||!r&&F.call(t,n))&&e.push(n);return e}function lt(t,r,e,n,o){t!==r&&ut(r,(function(i,u){if(o||(o=new Z),xt(i))!function(t,r,e,n,o,i,u){var a=gt(t,e),f=gt(r,e),s=u.get(f);if(s)return void rt(t,e,s);var l=i?i(a,f,e+"",t,r,u):void 0,h=void 0===l;if(h){var p=Ot(f),_=!p&&At(f),v=!p&&!_&&Ft(f);l=f,p||_||v?Ot(a)?l=a:Ct(j=a)&&mt(j)?l=function(t,r){var e=-1,n=t.length;r||(r=Array(n));for(;++e-1&&t%1==0&&t0){if(++r>=800)return arguments[0]}else r=0;return t.apply(void 0,arguments)}}(pt);function jt(t,r){return t===r||t!=t&&r!=r}var wt=at(function(){return arguments}())?at:function(t){return Ct(t)&&F.call(t,"callee")&&!B.call(t,"callee")},Ot=Array.isArray;function mt(t){return null!=t&&Mt(t.length)&&!zt(t)}var At=G||function(){return!1};function zt(t){if(!xt(t))return!1;var r=ct(t);return r==u||"[object GeneratorFunction]"==r||"[object AsyncFunction]"==r||"[object Proxy]"==r}function Mt(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=n}function xt(t){var r=typeof t;return null!=t&&("object"==r||"function"==r)}function Ct(t){return null!=t&&"object"==typeof t}var Ft=b?function(t){return function(r){return t(r)}}(b):function(t){return Ct(t)&&Mt(t.length)&&!!s[ct(t)]};function Ut(t){return mt(t)?tt(t,!0):st(t)}var St,It=(St=function(t,r,e){lt(t,r,e)},ht((function(t,r){var e=-1,n=r.length,o=n>1?r[n-1]:void 0,i=n>2?r[2]:void 0;for(o=St.length>3&&"function"==typeof o?(n--,o):void 0,i&&function(t,r,e){if(!xt(e))return!1;var n=typeof r;return!!("number"==n?mt(e)&&dt(r,e.length):"string"==n&&r in e)&&jt(e[r],t)}(r[0],r[1],i)&&(o=n<3?void 0:o,n=1),t=Object(t);++ec.call(t,r);class f{constructor({pluginId:t,defaultConfig:r={},customMerge:e,root:n}){this.pluginId=t,this.defaultConfig=r,this.pluginConfigPath=o.default.resolve(n||__dirname,t),this.customMerge=e,this._config=void 0}resolve(t){return o.default.resolve(this.pluginConfigPath,t)}hasFile(t){return n.default.existsSync(this.resolve(t))}requireFile(t){try{return require(this.resolve(t))}catch(t){if("MODULE_NOT_FOUND"===t.code)return;throw t}}_getUserConfig(){return this.requireFile("config.json")}config(t,r){if(!this._config){const t=this._getUserConfig();this._config=Array.isArray(t)?t:(this.customMerge||u)(this.defaultConfig,t)}let e=this._config;return t?function(t,r,e){if("number"==typeof r)return t[r];if("symbol"==typeof r)return a(t,r)?t[r]:e;const n="string"!=typeof(o=r)?o:o.split(".").reduce(((t,r)=>(r.split(/\[([^}]+)\]/g).forEach((r=>r&&t.push(r))),t)),[]);var o;let i=t;for(let t=0;tparseInt(e)):void 0}function o(e,t){const n=r(e),i=r(t);return n?i?function(e,t){const n=Math.max(e.length,t.length);for(let i=0;ir)return 1;if(n=e)throw new Error("Config error, tokenExpiresThreshold should be less than tokenExpiresIn");t>e/2&&console.warn(`Please check whether the tokenExpiresThreshold configuration is set too large, tokenExpiresThreshold: ${t}, tokenExpiresIn: ${e}`)}get customToken(){return this.uniId.interceptorMap.get("customToken")}isTokenInDb(e){return o(e,"1.0.10")>=0}async getUserRecord(){if(this.userRecord)return this.userRecord;const e=await C.doc(this.uid).get();if(this.userRecord=e.data[0],!this.userRecord)throw{errCode:n.ACCOUNT_NOT_EXISTS};switch(this.userRecord.status){case void 0:case 0:break;case 1:throw{errCode:n.ACCOUNT_BANNED};case 2:throw{errCode:n.ACCOUNT_AUDITING};case 3:throw{errCode:n.ACCOUNT_AUDIT_FAILED};case 4:throw{errCode:n.ACCOUNT_CLOSED}}if(this.oldTokenPayload){if(this.isTokenInDb(this.oldTokenPayload.uniIdVersion)){if(-1===(this.userRecord.token||[]).indexOf(this.oldToken))throw{errCode:n.CHECK_TOKEN_FAILED}}if(this.userRecord.valid_token_date&&this.userRecord.valid_token_date>1e3*this.oldTokenPayload.iat)throw{errCode:n.TOKEN_EXPIRED}}return this.userRecord}async updateUserRecord(e){await C.doc(this.uid).update(e)}async getUserPermission(){if(this.userPermission)return this.userPermission;const e=(await this.getUserRecord()).role||[];if(0===e.length)return this.userPermission={role:[],permission:[]},this.userPermission;if(e.includes("admin"))return this.userPermission={role:e,permission:[]},this.userPermission;const t=await T.where({role_id:I.in(e)}).get(),n=(i=t.data.reduce((e,t)=>(t.permission&&e.push(...t.permission),e),[]),Array.from(new Set(i)));var i;return this.userPermission={role:e,permission:n},this.userPermission}async _createToken({uid:e,role:t,permission:i}={}){if(!t||!i){const e=await this.getUserPermission();t=e.role,i=e.permission}let r={uid:e,role:t,permission:i};if(this.uniId.interceptorMap.has("customToken")){const n=this.uniId.interceptorMap.get("customToken");if("function"!=typeof n)throw new Error("Invalid custom token file");r=await n({uid:e,role:t,permission:i})}const o=Date.now(),{tokenSecret:s,tokenExpiresIn:c,maxTokenLength:a=10}=this.config,u=g({...r,uniIdVersion:"1.0.18"},s,{expiresIn:c}),d=await this.getUserRecord(),l=(d.token||[]).filter(e=>{try{const t=this._checkToken(e);if(d.valid_token_date&&d.valid_token_date>1e3*t.iat)return!1}catch(e){if(e.errCode===n.TOKEN_EXPIRED)return!1}return!0});return l.push(u),l.length>a&&l.splice(0,l.length-a),await this.updateUserRecord({last_login_ip:this.clientInfo.clientIP,last_login_date:o,token:l}),{token:u,tokenExpired:o+1e3*c}}async createToken({uid:e,role:t,permission:i}={}){if(!e)throw{errCode:n.PARAM_REQUIRED,errMsgValue:{param:"uid"}};this.uid=e;const{token:r,tokenExpired:o}=await this._createToken({uid:e,role:t,permission:i});return{errCode:0,token:r,tokenExpired:o}}async refreshToken({token:e}={}){if(!e)throw{errCode:n.PARAM_REQUIRED,errMsgValue:{param:"token"}};this.oldToken=e;const t=this._checkToken(e);this.uid=t.uid,this.oldTokenPayload=t;const{uid:i}=t,{role:r,permission:o}=await this.getUserPermission(),{token:s,tokenExpired:c}=await this._createToken({uid:i,role:r,permission:o});return{errCode:0,token:s,tokenExpired:c}}_checkToken(e){const{tokenSecret:t}=this.config;let i;try{i=k(e,t)}catch(e){if("TokenExpiredError"===e.name)throw{errCode:n.TOKEN_EXPIRED};throw{errCode:n.CHECK_TOKEN_FAILED}}return i}async checkToken(e,{autoRefresh:t=!0}={}){if(!e)throw{errCode:n.CHECK_TOKEN_FAILED};this.oldToken=e;const i=this._checkToken(e);this.uid=i.uid,this.oldTokenPayload=i;const{tokenExpiresThreshold:r}=this.config,{uid:o,role:s,permission:c}=i,a={role:s,permission:c};if(!s&&!c){const{role:e,permission:t}=await this.getUserPermission();a.role=e,a.permission=t}if(!r||!t){const e={code:0,errCode:0,...i,...a};return delete e.uniIdVersion,e}const u=Date.now();let d={};1e3*i.exp-u<1e3*r&&(d=await this._createToken({uid:o}));const l={code:0,errCode:0,...i,...a,...d};return delete l.uniIdVersion,l}}var m=Object.freeze({__proto__:null,checkToken:async function(e,{autoRefresh:t=!0}={}){return new E({uniId:this}).checkToken(e,{autoRefresh:t})},createToken:async function({uid:e,role:t,permission:n}={}){return new E({uniId:this}).createToken({uid:e,role:t,permission:n})},refreshToken:async function({token:e}={}){return new E({uniId:this}).refreshToken({token:e})}});const w=require("uni-config-center")({pluginId:"uni-id"});class x{constructor({context:e,clientInfo:t,config:n}={}){this._clientInfo=e?function(e){return{appId:e.APPID,platform:e.PLATFORM,locale:e.LOCALE,clientIP:e.CLIENTIP,deviceId:e.DEVICEID}}(e):t,this._config=n,this.config=this._getOriginConfig(),this.interceptorMap=new Map,w.hasFile("custom-token.js")&&this.setInterceptor("customToken",require(w.resolve("custom-token.js")));this._i18n=uniCloud.initI18n({locale:this._clientInfo.locale,fallbackLocale:"zh-Hans",messages:JSON.parse(JSON.stringify(d))}),d[this._i18n.locale]||this._i18n.setLocale("zh-Hans")}setInterceptor(e,t){this.interceptorMap.set(e,t)}_t(...e){return this._i18n.t(...e)}_parseOriginConfig(e){return Array.isArray(e)?e:e[0]?Object.values(e):e}_getOriginConfig(){if(this._config)return this._config;if(w.hasFile("config.json")){let e;try{e=w.config()}catch(e){throw new Error("Invalid uni-id config file\n"+e.message)}return this._parseOriginConfig(e)}try{return this._parseOriginConfig(require("uni-id/config.json"))}catch(e){throw new Error("Invalid uni-id config file")}}_getAppConfig(){const e=this._getOriginConfig();return Array.isArray(e)?e.find(e=>e.dcloudAppid===this._clientInfo.appId)||e.find(e=>e.isDefaultConfig):e}_getPlatformConfig(){const e=this._getAppConfig();if(!e)throw new Error(`Config for current app (${this._clientInfo.appId}) was not found, please check your config file or client appId`);let t;switch(["app-plus","app-android","app-ios"].indexOf(this._clientInfo.platform)>-1&&(this._clientInfo.platform="app"),"h5"===this._clientInfo.platform&&(this._clientInfo.platform="web"),this._clientInfo.platform){case"web":t="h5";break;case"app":t="app-plus"}const n=[{tokenExpiresIn:7200,tokenExpiresThreshold:1200,passwordErrorLimit:6,passwordErrorRetryTime:3600},e];t&&e[t]&&n.push(e[t]),n.push(e[this._clientInfo.platform]);const i=Object.assign(...n);return["tokenSecret","tokenExpiresIn"].forEach(e=>{if(!i||!i[e])throw new Error(`Config parameter missing, ${e} is required`)}),i}_getConfig(){return this._getPlatformConfig()}}for(const e in m)x.prototype[e]=m[e];function y(e){const t=new x(e);return new Proxy(t,{get(e,t){if(t in e&&0!==t.indexOf("_")){if("function"==typeof e[t])return(n=e[t],function(){let e;try{e=n.apply(this,arguments)}catch(e){if(a(e))return c.call(this,e),e;throw e}return i(e)?e.then(e=>(a(e)&&c.call(this,e),e),e=>{if(a(e))return c.call(this,e),e;throw e}):(a(e)&&c.call(this,e),e)}).bind(e);if("context"!==t&&"config"!==t)return e[t]}var n}})}x.prototype.createInstance=y;const O={createInstance:y};module.exports=O; diff --git a/uni_modules/uni-id-common/uniCloud/cloudfunctions/common/uni-id-common/package.json b/uni_modules/uni-id-common/uniCloud/cloudfunctions/common/uni-id-common/package.json new file mode 100644 index 0000000..7003ea0 --- /dev/null +++ b/uni_modules/uni-id-common/uniCloud/cloudfunctions/common/uni-id-common/package.json @@ -0,0 +1,20 @@ +{ + "name": "uni-id-common", + "version": "1.0.18", + "description": "uni-id token生成、校验、刷新", + "main": "index.js", + "homepage": "https:\/\/uniapp.dcloud.io\/uniCloud\/uni-id-common.html", + "repository": { + "type": "git", + "url": "git+https:\/\/gitee.com\/dcloud\/uni-id-common.git" + }, + "author": "DCloud", + "license": "Apache-2.0", + "dependencies": { + "uni-config-center": "file:..\/..\/..\/..\/..\/uni-config-center\/uniCloud\/cloudfunctions\/common\/uni-config-center" + }, + "origin-plugin-dev-name": "uni-id-common", + "origin-plugin-version": "1.0.18", + "plugin-dev-name": "uni-id-common", + "plugin-version": "1.0.18" +} \ No newline at end of file diff --git a/unpackage/cache/apk/__UNI__9F097F0_cm.apk b/unpackage/cache/apk/__UNI__9F097F0_cm.apk new file mode 100644 index 0000000..6f3c1bd Binary files /dev/null and b/unpackage/cache/apk/__UNI__9F097F0_cm.apk differ diff --git a/unpackage/cache/apk/apkurl b/unpackage/cache/apk/apkurl index a673219..d41d0af 100644 --- a/unpackage/cache/apk/apkurl +++ b/unpackage/cache/apk/apkurl @@ -1 +1 @@ -https://app.liuyingyong.cn/build/download/16e9ebb0-929b-11ef-a16c-ddd0268bedc8 \ No newline at end of file +https://app.liuyingyong.cn/build/download/8cc29db0-9a56-11ef-94b2-653680120b70 \ No newline at end of file diff --git a/unpackage/cache/apk/cmManifestCache.json b/unpackage/cache/apk/cmManifestCache.json index bc812fd..eb339b7 100644 --- a/unpackage/cache/apk/cmManifestCache.json +++ b/unpackage/cache/apk/cmManifestCache.json @@ -1 +1 @@ -b1kWame9yBmby5SJKXZdMiBIfIZ7jYUx3ZnXt20I8klef9B7ZTIAFKtSJZT7FZLkXnplYmgxJ/DYpe4pxPfhmeg31aUnQr/RaGPVw8XmBU4MJ5ru4UZpw1VxXXlTLZAGhihfE1FYXFk4s+R4Beal0hyTfbi83RuO8WC64+ulQf55AK/hIVRgRNUQnxM/r6PKLAV1DzM1DnBvOqDHHbpcvQPxvgw66Z64wxHsR/UGLB8XGVypnOChkmbGsd1AtxoMuEqUpJDLCKkLIeiAhfjY9MEjBG7WQbRMaN1jg/6L4O4dtKGz2VjSUDrILAIlmhD5Ob9daxsWjcFSUP3fcaQcXJdwrFDEUwK7fJ99nimuBVVce7uf10xn9JpJwoHiFkGj3tqWWNnjIEvsIG56HEkIAQOzBtdqBtGO4me7rxf/FeRm9dDJid9Oxl87qUT9aq4svmX2Nw0XCEa6C6HxBmOhtX0aupwiO8oFLyv6VSSWpRI+FDOCB/CMJ5Fq2cGAj9OEwuzDx0WxfXm+IHW8waD04i8kU7VgjaNBj1hXyOjzROVe1JZEBCr2SpOT/XTaYN/BrrhJYjxSyasKbZ2GjDnO3ySdxPOtysxPEalOKpJe1nB39J7fuyvdMzAF/JVfgBo2e066VcI9OVaHGAQdZPp9l4FyFnbFfhhGHru7YKJrhmm/B1+DlSsGN1HIj9Tv1cPNJqoOlB+DmhjAEc04OmZ2bGk//V8hb1Eg3W6D27iEUIkKMwB++J32bfsZ2ZcdYRTO9g5EPc8tdONES3IaFfctAtEn44Y/OY2kHEguAtunJ4l1ubtDnQKr/lo5vj+6P2yifNvUAj1uy5c2GvpHgqxFos65FXK+FEaU+dypGeetim/7AWX/bst+i+gx15GacLL0FzTf67TFlC4UZxaPwR6XsWrCNj2/8MAtvCAAAgWmy/CQ7Ho2KxvWl31ITq5ukdA1453MputLdD//jGitDaCYB0O1Ts/9370PsTVamG9B/LK6/hsyKdnxLOhCF76Twj9FAj+trfeo64ya3x2i8/OJqvmqLFqoLHP6Seuc3EshQ2FgPJR8I/ryqa77RuDD3yppgxwsgyZrEAf9RFwQrt9Hd4sQZT6/r3BdnfNy8yzvI3/uVK0WCq7r3ajeBLc9mK/39XK2Rn/oaEUkjw2XiNJ9zDj7ezo01M8r4jK6enCVZv+tE9UpPARGO1pD3GXPUjaT45lfQZEWsZJkaHStSGGJ04vk1Uie5pUYfv98i1YmC7hj0Q/d6bxFDLxmqfn6PjCXeGaChHcBC3VRUZ+a4lzByF/+Sphj/PJnByZuExKPpAT2d2ToJaQYDLvKilhrNTXnB/WH6HvVcLCAo/G/KqrdWHWuMVcpCC+Ut3BrrIybuYF9eWAOoZiOybe0n36yZob/9YCGD5NuaEWMTe80ojLbPAzdwC5GwJ0nAEcZRNsqLJjRq/1SdQQ8crxDOcKH4E7tBwSLs7FhnhD68283NCyhxJGd0jGBZcC5F3BI+K8MIzvSGoxZlzcBu5LsmF7jkcWwTsWcSAUEoCwyUQhkihN7tX3lDmNqDSItB7zKdmRuAKhY4L/Vvt+EyMOsHeyRrOGmKKP+D6bmrLO0WX9OeeLoPME1mL4NDmLtOQyQTXQUWSSUtrt3YRMvW1SpRbXRsCsw0bBE8ASWpdc4XncWk5Y+AJXkdEjzWROT5cOV9VDwF3wkOvTB813hcuaRFAoNggZrGnDfNFCVgI43Sc2+W8BbpPue7XhvbzOu3BtdPl9R8evyE3KiRI4mL24Dd9/H3sDLVKpqNzkC0bv4gYPAA6ZBYIJ/kMjYv6HnLlbu3HpXtNjhSjhuRRsi+jrh2ROonGhhuZNLROvBDE9w3MV/M6SuFQ7KR44p9QoMdvDlljCyxG+uuhpidSMN9A0lFIelviT0ehjsR2RjoT+jE6CjRIbWOcxGmAQwJu8OJUJgGNhXCYfFpiELPz6GTL7L7b6vX9xSWXFRywyYJ0YII2bpunDmzgDBi5qNHZo8vWfJLWbCLSL7FRP/15TstO3RENgTx4nTOGVXUYfMw6KJ/H77z8ukuYWfjQp1Lr36VbcjWEl3/JgfN0S5YDVF1BbSVOPDBPCvwfaIEOc7yMewXwub7mUtpUkMftbLod9q2oSWEnKRbLW7Dj+iwz4bZN9jTRPWqZzhmJ2Tyd2A5Z7E6Bd2TY1E/rUDKomw+Pgsc9esZCyCdx9kJT/IEUzOY7EhHARvFdiXwj5NR29AEf6SleKjRKZZXFsfoJ4Wj7yqsu7Yv5IMn3bLO4Dem3hPKZDG33YRndnhNgxwICo+8aGbCLwOyKU/5eCkg7vqwzGIZ3t6lFoczkywAISffD/fjRhW82aFs/3X/MkGzlJE6w6hXB/NQR1V5tNCbWUGZyXLUfewzeFWFMs8Q3w/T9tsw5iqj9t3etabSXFJGLs3itRfD23wpTjRdRPIZgopdtQTzAPOB7ll40lEWWD4dAef182MloOVbh9VhPrsOsOSQajmbGMv2x9JBahxYXoTiA0ruAvc9pOevC3JSoypVVuGUPdPT6Nm2svY3Rb8m3aipMk6SDWDQuggth/dE1vi3lRXBN7F9DnVJgJxeNJpi91X4d9SoITXybSIFmAdrX8A02ibWH4g2pwXEwQzHUzG/VF90tuVudYiero8KBZWKlE8zrVgHQ7hOFnv5yG2zIp5bsEILDpm+h6y8pz42qbIT9xEMIjHma2fBn+dzm/4vs6e9YHlZ+bOwmKASOpqBEPOgV5o+QMlr47ElkNWVE5i7t2U7UZ5ipYGQWcc3l7dfFSuRCFxopdSmt9nnGbqGs1Z+FrZ4cZzN0pnXocJKsL6BMq9T2HfzR1FTKc0kXIQ8TJuQl2CBOMu17jakOec08YOX7VhFMFOZzamqmJ8N/lutXZqbP1j+pDNITJ+dQX8WEYV8UiGrKwddRE7iLuzX4bv0CQr3DkSfoZLAKmnWGWh+zuAChhRNGOV3zBPP9TAE0buo8/UVMlWWqHu5GKQxHqHGEL707TuXMdlg0Ma+rBQ87GEcn31od6/oCV2jNa8rfF6iOMl1991K8fI2MgCQM+8KBChnPKYE5iGHrPMxNJiAj9bxL4wk0cLHZleMaWLGGt0/NokTWK8/HkgWK8K1PYhnD5smXW1wmVwCaCJ07TPA2lGB4g/xgADdxy9o0TPg+1OjMmWjMwx+gilh3H+G4jX6jbd2Ec6+DPmmPrPTyKfi0226k32X6Ye66qL0f1R3i9SGmZyHFOVgWtTcZ4wd2PCNzRtu07T4bqg2ZNUscCqJxRl4FDOIU6sCoInNSuSgz9bw76CWciCoGsIT20wVcatHDpbubQV/a3JiV4sil4iWWHUhkMFs6fcK3aICK7+7cO7EkZ4TDeGrYBlLbam/YNlSj0tl9+VaMVPkooYotb/alH7Ehvyim5YlsL2Wa0fRIzDnFK6TU2YfFbsOY3J9IXFwfPTzHMWU/deUn7dMSJ1r7Dkc6jNEA53Dob1stctTdan/lGWQ4odjFUmdnDlkxO6edx1GrmyRn8jhfWchcbIIFGKp2sW5xEH+37EKZoZ6CNBnpCuj5S2g7JQMw4/hbW921QIGoNFVMPEolC9v6hWNXdGn2JOOwsJ0YdILgTUyyVUlz7+UF6lg38wv1HDXNgXXLblRwyMGz9gcj17rNZPSMSo3jaa0ok4eNOFcwifQFNJkhNszRJuOkPBt4rnDo5Y4+jnT7MH1PmNwNmDuRcySyYFYsw0eBAvbOED0bsBiyse8ZQY7AkG9VYMviS33QvkWvCZu8rPacwevzz1jNgInnJ1iZYXVSgf2hTGrMoIeK0xttOGcqnCqwCIuJeQOe2XE6f1wB4zsoEuorMvZefLKf8R7rupXdsiNW3hWofXBi2egxiMCtDZ5afu28/mpzccLkiN03gULMWon/mOGlB9gPltlN6oPRd0SDpcsrHDLngWDM7WK09jOXmjrLr0OA+RwSk2rDHWsuoSoYIKLxTgttk/RyPKFqddlsZpuaeHMctq0EuD/NH3W/hLJ4hbXFT8jezEVY1rL8Gq1vsY/8iHe7uIgroSHwi84cYxFAkDAls9xqn75ac1HJGNwppDOCt6Zobizx+FlfpHmyiA08szI0NqS2Tlzf4dAHG9NJH6R204FKXuMi8Qt/g34C96RxUwa0qTIqeCMbv4LZitjsuGZvD9+porqdajozwKFD7ANoTDTxJZ9YsOO1iKNL0yLEz3X14fwtOOFCPp9NLI7JwwW4ckx40jYtz98i3Zf4RTc06fTRSz0HjuGKiJCv/cWjyVaP4DncGXN9bNu/r6OodQgupeNLDQmYWgmIOgYfLrqdNDMKxR4uNTUMX3UJYo4Zs+pjWh6BsaXdjYjEmhxt8eP1CEnvgzPRpSZz1wARuJnlxADuV4zog7gJevfW/ukHtMAGHlHLI7bn1o2SWGUibyUbencLRBvV3SlFLQifGZzBFL1kaN4ZEPw1SPY1K3ntHM1133qrCj2sYD/Z049ckc900GFs8+KdDu6BqGAXOUkrO+JgAUVtHXBPNBLv/fsQoIYhT+d0/Y8rVRKC+K8FwTJurPk1LwzH7BygoP29FlLG75utREhseAJ29m/O94MEJ7VuFriBWXrdn3BqQnPBH71y/te4J/WD4rsBVn9rg5fmZWlj5zcOmGdfBs8m6HSWWOFM1CAYsTUIGY8l2MkAcl9GMHWt4X4QErv+K1lalHtOrpHEcnaNPIv9f2b7qvOdR47v0Jk6ngg0aSQ+hhFZlVG0aFgcQHE/Iv4TD7qN2CdKhXTV4xld2fraEFYR4P/5AOY7rNEPd+XSC70Cqok0Nx+g/8I1Eie2DpN7M3qOkPRbpRDipfTF9r7QRVPUVSejkhsuuDDTeIkWay2fj9GOSIOYoACuiRxph4srsiWLPGjchJ6xF55iFhWSpzhQeO+NeSzhVg1g5En3u+bOcxMcDPLazGl9KCdA4l9RABicdi/aOr6G6qVC0QD4HPS8Omh8g7AcUNQmPUTqEZxd58Q5o+iIGWDEwB9OsdcIMjCQ3QfkxQLkE3pj2p1DgCzLVDWfbJYMe3Q0gv6l4LOmeHrrrLpMiJufYQ2zjuW5LiPTiE8o5NSD/eU8CQCVYGgm2/2L+DeukXYvb0g+B2DJNlW2ZvCKNJPnmuBUBYWGKWigdO6ZwqiYvhWDvdHX6KzlIr7DKu+Z8xyv6PfnPfzRiNWEYTV0UI5mipiqqtCOS9nG9PSl7KJQLR/91yHUQ+bqoB8sGq0gNR481CoeCh9hFr0PrBIZndO1UzTEqnGnnVUxkyMLYzcO0YnjlcB/SbcGzWFYCBIhSYEf/Mdn8vJUtX4yF+XUJu1ncWwL3fWVA7wOd/Ga0ubBUPphQ82/wVIgrQkapqky02b032xezW+d0E7/FifYu/xd+TO/iwfTvxlJJf/qu9wirCtEty/oVy3I5FNeaY6Pai+7FI79Cj0OCkdcXv8xZe8jfytsI+GKmYe4Xn6PprKGtYVKT5gOIfLKe6ck96vW2nYq2HOFaHAU2lUvW5gYVjL92YALa6CgJz94MMTKSxzyorVGNHnKqmb32ZNPXD3SklMBuMkHhw+GlGAYw8LgmvNjAHJ1NcYI1W7h1+sxZYa+wYvpHr1xEkU6K0A3es/ghrUE4WXLuO7tsG0Ct1V8oJSAgs7ryenOfTJHSy8nwOGqhdVBIvrSZxhgjlbOPgF25GwRODjMB4pKdit5p+A5Po8Ej2rs1bVx0aHNPM7hdkwDc+BtOQieP7xk1eH6HHv5xgsWbWAWvFYuMpBXBzD2q9ZDi+fRA6rAIBBRkP0tJJlPV0TxMmo+5YMdwoTEX2Tv/u8vRkKxdr8tnnrZ0be8GnHqSppggU3qNfq4Gp7cij1fvjmydqKokMfgUGgwo9LS2wohHBvBdL7i6vfUImEglVFFoJgltUxinG+xeFu9DVDUes9KhIFAk4EdT1WLMMoPwR39gKgK1DmbqxebEDIN6j3LjLm4KAiDWZ8jnouLjXR984nwuUaWgVTeYIsYZPQw44D17Bo7XucWo0wekwtS/49SRUfSSkk7cJh71qKmPCV/b1d7SZMojS8U9+1gyvgxb1WqlUomJyjsYWWmc0C9mNZ94MoMjhoj8uD48DGGue5jAvhKzmqmHuEcbUHrSlqfdCGA0F2EuaQlVhMVxBP7Eug9Ackui9iKv75ufqTKVTP6ORrJ6PVXcBRcnUNTLNG9TFGfhrXyAjgQN+FGaayzMQ37q8WYb5bXx+ualy5nPhZsbqaKzxUKENFDeyxjtMKcP6iB1OBMwjqNvdGuflYHjgLxZLs6/iO8wGh8bwW7C6q5ZhbOqrDGNExW37Xojo6gGs7Qeg3ZBKsADB54HESoHQ/GMru3Vd0euSfbAztpVjEK8b3hPy+Wi/ \ No newline at end of file +b1kWame9yBmby5SJKXZdMiBIfIZ7jYUx3ZnXt20I8klef9B7ZTIAFKtSJZT7FZLk8OghhztlLUgFmtjmypkegtPh5k76qqH115imHhUSG/w+xve9kdWX9TNBoHRLRKbVmMH28eKDo8z7h6pRecOKRAh3Dfx+ERsB7fy0dmxH3dcGl6ac06DczhP0QISirqaqcvGS3aFwC3HaMdwyiPKwuHl5tUmuFI1OMxVZkzm/etjPuDmg0ZyISGLJzuEMmm9mrzk/e+cACniFrn3eBT/j49unK9MMANsrfHCqefmwP3qMqdnXYp6jsP5tQQFa/PGtbgoK3vgH6NuYdrScNHUCdvcOMzVBQbZzsnNgYhl0LAE7cj9Ze2cFxnXKx7OG0cA+YZkMRbIZMneLjmZd9klLh4416FYwZ0EilbXgbMkGwN0hLhXDQY6fpDOWSSNhnGjsoAidVbI9ix3AY7QLcoYFfoKCgLP46TFhvWzykLXlNheii7to6AG4n2gylBLQLze6OkdXEfA3panUKO3ciYifNlnbzV+uD55wKecydIsiaK5pAkYsKJDIRKFW2tV+bc54BICq+ziPZ4ClhliPWiMyH1khUkNHVpA5KONLVsQM4Z5S2TgIgbSp5o7+dES4WdJYTU4uYkmAd14DGx48jLys6My1mG1Rc1jWuQ33exOos2gcieY2Y8xM3boyRwQ/UhW8EOjn2bybTzuCUh9IJe3kTsEtVjebatG2y/1UA2tNzRSP3vcv236FKpOTvfamG8S0F4ywXgrbFftKv1LFdXn7Uh3PgNUIagUT00eoQ9Vo/sliTsGZ+ekiwZjeGmsTX9r2D3Q1q3GBDSQmMQGAkxYONG8Y9ysMSVIUZjQTjZ5fBBicRYVXO1mpTQWOx0upx+3Il6AJyaXdpHstM7qoAey1tIGa3ICbKp/mssr49K0MOdTZAWLQFuQ+zzpEG1bwi9My6f52JxJIuK2SkRMz6bOWG44+DSTYcb7gAm5xMq0WPI0QDFNC9qu6/EWjZzgM3sVrQgGb1dj7VoD5TV8avYCFhF5xdUAxhkb5zUBz7LqnDnlsONL88SBKMoz+gT86mIJN6uf23358yus9GrSu/O3nNOGRTVd7rQ+0CUxFSAUZw4+TCgLD6WQaAFe7PIFuZYojimG65CAS3jh1cSloGZQH75oCXVK02uBo5yzlnUWiYECRoFddTVshcZIqw+vcXkdi/FaATzz6hSr/7pw4NkPFlhv8JAJvbSJRaKtqCX+eSf+KuAMzZc+nFh4X7QkE/9LQyogFPj470TSNBT2nJbA7aqfNEAYP0Dnf7lNoHkjKCVXjyErPAp+XUlIBdDxHc2ewP8Qbh5zQe7SX9LHCZ4W526DHEr/xcDxuXMC/6VfjrFew2P0SU3s9/8mT8NqmQHUOgg2lrjjzSLhJVzrg4Iq0XEo3/qOYU/MVXN30DOss9ylVkJxxEvjVIU2jhFdH7dvL11ORDCOEER8H6zvTgVZriw4n7jx/0EnycmIL0gE82GuLymngmeo+/9ZGs84SAfhaOVVhCzMAAl5p8LyBYBkyVixGTi7S7Wa6dI8XbUSuUc3+u/+XNA9Mcq8YbLTHpYpbx4b/mD7KwNHYzrFy3JsoXGMmrrjwAMz7Qk/ue96DOfDR03W5+zP/hJrMhenyim7G1chCTIUt7Lc84vOl50pirSzkN2dBTi04ZN3TLuO5cm6XT1LWKUXPj4y1mzd2euu3FbYdAOzh4KdVsf1drsQTIojbNmHp8CQU1HWtDB4CNImWOL9XLvOIL3fBIlYhjmc0mJUeCEQ/9Wybo89LPoRd8fKJMIlIQ8ICwCPTqgJZOzlFLChDi04kqdhpc/xhLsyIwixXqzni7QSMpykcqd21ni2JelhX/5NSaYSq778px1jP4IsrBNXA8D+FWgkURgNpHJsW+KVjd64OyVgN2tBOAiSZlr455V1j8eIfmcUC0M7UGAsCGCSPEI4ELYA/tlG3JlW653Bs7C7fkKIQ5Cet1KaGP2zOmsTKho/TFDaLXlR55KCmwTIhpbWwbXwEkexOci6H7j5NAJrXYwXH3YM9/GeVNeeD7nr3TSTDcGQbpH2APc20cdoy+dyajlk0HY3Z9ILF00TeppilVpw2t4mSSByb6LZNsoQPUCvMwmn400xE/g4uNwJPEIxe9eOdjhYkP9dngZ4B9YCxaK7hENOwmz2G1u/jHBFB1s9AYK7Jj2EEjpwfOObROVSjbiuYPQF8COB7QZd0ftRl3LzIxEK27VJYTzJh8QWNNoqWBatH0oeYhS+j3ejvUODytvU8yIc5Q/CCc2uD17tX6Ri5w67v+cspoZfcMxCDUdr5y1lNIqsQL6balJl0Ifytr/EBhtBozEHVL9lYtC8Mz/OSAHopOvoe3DzcLdNGlX+5wMF0jZZzMU8LYXkTOi0CE055DSFEwmNEokh893BEr5NDMR8c2Xo0b/Vl4f8YD0yK//Nm1t5RFEq8yCflSoDaFk+oTxz0nIhrGKWoXwgpPn4xpmyaOxWzZAuuXDNVsIR1FbDezKbkns/FbSnIY56AGDz1fblDAbbQYPl8cyx/KUR1YmWIEgVlEudNiyD9plFs6qG8z6C/P3eSEcA9BY8zsOE5wMKAoFVCO1RDEdheY0l5iTDfbEU9to/D54E/C0av61q+EnrnkYIxEsyIenLeh6AWS8yQN5+aOQ8zLNoW94gYqFWTC8Wwofb3MvOxYCZtUa+pU7OZbc9l6MtX3OotM6pYpQpl2aPlKhd29h6kL7oMDOuuZVm9o6bAAtSwvQ9BVziUQHVq5+SNvg5sSLlAGUPCe90dessLlDo4SDJwV6oIwIiZGKcV8h41aJKr1BQC80dHHNL3src2873ErjVN81cHTjuCI3YLqFiamQGUhLndwro+T0MQ67RgQOcczZiscKD/DXZQxpEHa/rLB7rXxbHXKp11PJGicwVmTuO6s6/ereBDrAKnVWgjuNdr5v4/52xQ5rRiZ6QbcsnA//Jn42z21kVo+Zmkxq9yZmQTzs7r9xPkR4MCFdWi3Bu6cFWPIndPQIqVJX3tL0O79QsXMcBuN4L7dfWzZ0uxTFQdSZUdY5Dg9Ta3pD0usNAFUAiQitZrnS5KWYn14syvChgcKGcnOGxx36CbYUrF7Xrg8+VfWLZxroZhqGlCN/ypGvMWCOpvSjYw5ZJu+YbH4lIvL6J9TQbxufKVxpf3fih0jLcaBt5qOIwthBWgjOBU+choJhEYiAnCBgAO/i+k4x3btqNic/tdapSlWl7p1iqkCSKzi1pVsrjjCuGjrqFeVpuXeZTmEsIVXGQJetaO7mb4qbBr2eJxSdhEYFPCfr7jNgxBu28GE/Fp77Sg2iXapTE0MA8VmqwJZuaXhdmZ3MRCzji0NSBImH3rjA2uWBO+yR4hLa6qZlHEE9+YlRN0j7wKDEss0vwIanW8mpqVuhiy3THRP0pNaSc+yAC8h4Rp/K4HwC+/Iuc5sPRBA+MhnSU2ZHqlIYdhHydVaimefwHg8poccJydHqdfe3gooXZjN6bNHE9Aj1F9fbLw7XTGl6+XkbumQcQklmKSpKUT5IanD6Am0UmDcyf+J/H7I1HDHODzLUNf8/IesihAE8Liwd78RpLd9XrXg+7KlANYCazzOS5NQH3Mwxpxz9fseQo+lgLMEEejWhEVpRhvhpGVyXGJBYa2Wku1ponrupr0+sUtLwb4W7Ud69pEKBzhuK81hVcWWUUE6XC+IWu/NRThCu2hxNRXt2BNEtpxXCIv0BSoFDOsInkHoN3O3euDE0Mhgq7SEWSo6pCWDPKUTDIHENapRZIxjWPmhMYNsyW5ZwGIr1OZUfJuUa0gv6XLxgocv3LVk5w9J3VMljutW+ts+C618Cl9RB+GbuEsLkkWaN1wodJeE2DJin5GIz+QoQdPop6scNilxu6FPluEKQgvPKaijO/AwRmc6GYkd2hkLQZfFDsdGUrfDLYaiuhHjHrZv/yYx2p3eNwL7/r3RR00tlYX443pkYzFgiGLNLB0C2YzxNnCKvXl7bNNt2aLHcZvSpDbkjv8HARYZDO8kz7gs7xQs61Vnl3QbdykjX0HVjJXahMIain7O0FeuSPfnWzMWdmQuxOgKU5hpRgCAZT63KF8lrONnndRLkNbCsjiCFvZYAWsBSHjL7mo4x/okrvOYeDWbbf/60nssfYLCgRmpLGIas7p5XC6VqCv51iHzIThY6K+Q0k6ldjdlqhfYqbJ6wKPWZ2Yn/hZ6RmVwj02hWNOpb/8AvzWgmxpmZdgYMUgBE6F9XNmMmQLQQbhQxrMsJg77SFzqR1FXLCW7XORGP9yCnDQyYnJOpgm5aD6OdXEGztWL56q9gFZD3ovFjfsgKvNWpEpAk/S6FxdIafpww1s4uMptQU+CK6jmlvqrsiudDphxI2/jR0HdVBmexZuE8DyLFtMAYDr56kNQK6o16GydLrU/VoZr8jMpZ6dydGsoncyTLTN2P+SZ4pe2BRndt0kRz/FPl2qfzAUDDinVRO05K/24TxV5fWk6r1rLEMMor1sJld4gbkjEksP7a82ji5BuRmGo1GShxwarG4mAXR5M11Dg68flCT5pLC9izxBZ0Xg7IVpy5FrJ/+meGzJm2vXUSrv0jX+W83GadecMgCzzte1GqAQKR6pdRl65konng5GI9fuIJjvLR9XbQ5sxgUNspeE3Fh5SRKa+9G4yoQAyQzpl5Pd7FdwLqjlym1ZJnPNGWYRgJopfypd2fc/v7ExqlFSMRTQklTcZVFYNmm5mhBZYdejWuxTbsf2xxjjeFzV3+mnfPiGL2ZShRPRgaQjCTb9CWqSb4x72oV89iqvQng5+qWjpxGM3fX5v65JkhycLmO50GVWAshzq3mJhPbEDbAq9clDsOw5tboZG6LnJE7cpDrlt2pYVYa7PS4NKpaUAFnwpqA3VrlSy+bkV34ic7QwGzhxpwx4dy/6ke2DfHKrNL8VWnLAYMRUfal5RROCYT61nsyzELUuknj++9PseJchAeb87ctHiQM4hkKIDmDPsv/h99C3IUi1czYldE2x37ACyVqhnNdwyQejzD7j4s/cPzwwlEylHeJ0WpoutxoI6SO0nVH45nP+kRK3iBKvBML1M4jcCy1c+TjfW7zA18x2PV5ciQNCDJ0SGRSnvsTxEdS47UaOr3lZR4R11GzIH7snmT0x9NLVmjQcH6iVylnJtvZtdlLyUKDyNARhoHkdqUJPASvomZLmRy8tj6lSmrRR+EhuqlUklvYJTQg/yOT11Ellg3nmG+nQCq+khkxEcOPvVAciA6DoQDMPOSKS8YaUrZOWrwXveKRtEnvyAXPZ/7OEKzPOyA0Q/o9vN1xp1CxEmMBKu42fwZz6tcPkeAPSfYK6JLazy3MaIPHtnnggD6DVdiQDXksQ8g/NIitzv08DuNPeRh5Obu1ASspzw6G/SF3g6NShLAOvHT7I55xhDXAwBy16yh73EMwjFKWmUf8un+GxiQzLAvN/NXpemyQU37jjGSKazpXL4YmA6taJL7uyOL6iCra+Yri2F1BXlkHxF3cx5b06md5mUL/bLc54d55JMeB6IHU8e3uBoh4JjujBmA3TMpk27FibXqZcRrD/LpFi2KJDS+6XJNUL5ernq+nh8op97+K6xV8KW1Mq1LEvivEgagwMf4Cbbh/elWxNh3vyDhoBExNrGwT58GTnVW/3BmX2q8eJdR1R86NdUuXCAHUcg8gxx4i5SI+atL2tLaDqhP+fXnVpsQJIVq4RsgBflm14ona8H3dYBYdt9k8sWqiCci4CefqbiBrYa/MuxFtd8RytgjSMhT+EzFRoKO/0o8jT9anjnMOcN3DRCmPDVLXZtO+7jCPmPPH7snbuKGBQTT0EnNnXBTtPcwg5966/WBG2sHmubFlRq62S/jx9sQ4RLga4p7m1b11krxUEP2a+7VaxKD7T3GEXiDiZ/R8Giy2Bwez+dkWdSgLZC+RztjukyCFH8Qlm83d4hmUR1dp6oZ5j9haJ5yF/AxIW1gZBseqaFjMkL0tWrttGxtS6v9SbFPeXjBs+bYyktA/Os/BBLOBkx180PFs0MNtuPLNY09lyGDnJMuoF/Ps9U5NHEo6CA/Q7GgrHfXG3RsSRGdQfLwBOYuZLNDRPd0GNR1abo45StUj+DCp6/Zs/rRbbJgHg19dtnAOOrbKkcyoBuTzwzGdlaVnN+su5TpjtXeMqnqVvIF92lOUwg5CdHrv6OwUqsKnw0E8xIwuAlU38OmHXq0RQzqeM3Sdq2VCC4cQQPjNYhKKZ7P626D7Wq6YTAZo5pTZIKXQCqczfib61P6BbaacO1kt6F6JHCRnS870H9aPHrYEdiW7pVxCMscS6SuvCeQor9Lte0i9F1TTqUIje2Sv8oelCfiy8Mux6VGU7Doqq6gMKD6QrlAfyxqDWajKVxtdhGqwVdkgNHdny/jCq7vn45N1npa+RmwhWTmhbA0JsiuRP70V2vm+S1ifMHXtT5MPfPGyegpgc2B0yXH5+Liw3imIZtAHhYwIS \ No newline at end of file diff --git a/unpackage/cache/wgt/__UNI__9F097F0/.manifest/google-keystore.keystore b/unpackage/cache/wgt/__UNI__9F097F0/.manifest/google-keystore.keystore new file mode 100644 index 0000000..ad6e4b6 Binary files /dev/null and b/unpackage/cache/wgt/__UNI__9F097F0/.manifest/google-keystore.keystore differ diff --git a/unpackage/cache/wgt/__UNI__F0AFD30/.manifest/icon-android-hdpi.png b/unpackage/cache/wgt/__UNI__9F097F0/.manifest/icon-android-hdpi.png similarity index 100% rename from unpackage/cache/wgt/__UNI__F0AFD30/.manifest/icon-android-hdpi.png rename to unpackage/cache/wgt/__UNI__9F097F0/.manifest/icon-android-hdpi.png diff --git a/unpackage/cache/wgt/__UNI__F0AFD30/.manifest/icon-android-xhdpi.png b/unpackage/cache/wgt/__UNI__9F097F0/.manifest/icon-android-xhdpi.png similarity index 100% rename from unpackage/cache/wgt/__UNI__F0AFD30/.manifest/icon-android-xhdpi.png rename to unpackage/cache/wgt/__UNI__9F097F0/.manifest/icon-android-xhdpi.png diff --git a/unpackage/cache/wgt/__UNI__F0AFD30/.manifest/icon-android-xxhdpi.png b/unpackage/cache/wgt/__UNI__9F097F0/.manifest/icon-android-xxhdpi.png similarity index 100% rename from unpackage/cache/wgt/__UNI__F0AFD30/.manifest/icon-android-xxhdpi.png rename to unpackage/cache/wgt/__UNI__9F097F0/.manifest/icon-android-xxhdpi.png diff --git a/unpackage/cache/wgt/__UNI__F0AFD30/.manifest/icon-android-xxxhdpi.png b/unpackage/cache/wgt/__UNI__9F097F0/.manifest/icon-android-xxxhdpi.png similarity index 100% rename from unpackage/cache/wgt/__UNI__F0AFD30/.manifest/icon-android-xxxhdpi.png rename to unpackage/cache/wgt/__UNI__9F097F0/.manifest/icon-android-xxxhdpi.png diff --git a/unpackage/cache/wgt/__UNI__F0AFD30/__uniappautomator.js b/unpackage/cache/wgt/__UNI__9F097F0/__uniappautomator.js similarity index 100% rename from unpackage/cache/wgt/__UNI__F0AFD30/__uniappautomator.js rename to unpackage/cache/wgt/__UNI__9F097F0/__uniappautomator.js diff --git a/unpackage/cache/wgt/__UNI__F0AFD30/__uniappchooselocation.js b/unpackage/cache/wgt/__UNI__9F097F0/__uniappchooselocation.js similarity index 100% rename from unpackage/cache/wgt/__UNI__F0AFD30/__uniappchooselocation.js rename to unpackage/cache/wgt/__UNI__9F097F0/__uniappchooselocation.js diff --git a/unpackage/cache/wgt/__UNI__F0AFD30/__uniapperror.png b/unpackage/cache/wgt/__UNI__9F097F0/__uniapperror.png similarity index 100% rename from unpackage/cache/wgt/__UNI__F0AFD30/__uniapperror.png rename to unpackage/cache/wgt/__UNI__9F097F0/__uniapperror.png diff --git a/unpackage/cache/wgt/__UNI__F0AFD30/__uniappopenlocation.js b/unpackage/cache/wgt/__UNI__9F097F0/__uniappopenlocation.js similarity index 100% rename from unpackage/cache/wgt/__UNI__F0AFD30/__uniappopenlocation.js rename to unpackage/cache/wgt/__UNI__9F097F0/__uniappopenlocation.js diff --git a/unpackage/cache/wgt/__UNI__F0AFD30/__uniapppicker.js b/unpackage/cache/wgt/__UNI__9F097F0/__uniapppicker.js similarity index 100% rename from unpackage/cache/wgt/__UNI__F0AFD30/__uniapppicker.js rename to unpackage/cache/wgt/__UNI__9F097F0/__uniapppicker.js diff --git a/unpackage/cache/wgt/__UNI__F0AFD30/__uniappquill.js b/unpackage/cache/wgt/__UNI__9F097F0/__uniappquill.js similarity index 100% rename from unpackage/cache/wgt/__UNI__F0AFD30/__uniappquill.js rename to unpackage/cache/wgt/__UNI__9F097F0/__uniappquill.js diff --git a/unpackage/cache/wgt/__UNI__F0AFD30/__uniappquillimageresize.js b/unpackage/cache/wgt/__UNI__9F097F0/__uniappquillimageresize.js similarity index 100% rename from unpackage/cache/wgt/__UNI__F0AFD30/__uniappquillimageresize.js rename to unpackage/cache/wgt/__UNI__9F097F0/__uniappquillimageresize.js diff --git a/unpackage/cache/wgt/__UNI__F0AFD30/__uniappscan.js b/unpackage/cache/wgt/__UNI__9F097F0/__uniappscan.js similarity index 100% rename from unpackage/cache/wgt/__UNI__F0AFD30/__uniappscan.js rename to unpackage/cache/wgt/__UNI__9F097F0/__uniappscan.js diff --git a/unpackage/cache/wgt/__UNI__F0AFD30/__uniappsuccess.png b/unpackage/cache/wgt/__UNI__9F097F0/__uniappsuccess.png similarity index 100% rename from unpackage/cache/wgt/__UNI__F0AFD30/__uniappsuccess.png rename to unpackage/cache/wgt/__UNI__9F097F0/__uniappsuccess.png diff --git a/unpackage/cache/wgt/__UNI__F0AFD30/__uniappview.html b/unpackage/cache/wgt/__UNI__9F097F0/__uniappview.html similarity index 100% rename from unpackage/cache/wgt/__UNI__F0AFD30/__uniappview.html rename to unpackage/cache/wgt/__UNI__9F097F0/__uniappview.html diff --git a/unpackage/cache/wgt/__UNI__F0AFD30/app-config-service.js b/unpackage/cache/wgt/__UNI__9F097F0/app-config-service.js similarity index 100% rename from unpackage/cache/wgt/__UNI__F0AFD30/app-config-service.js rename to unpackage/cache/wgt/__UNI__9F097F0/app-config-service.js diff --git a/unpackage/cache/wgt/__UNI__F0AFD30/app-config.js b/unpackage/cache/wgt/__UNI__9F097F0/app-config.js similarity index 100% rename from unpackage/cache/wgt/__UNI__F0AFD30/app-config.js rename to unpackage/cache/wgt/__UNI__9F097F0/app-config.js diff --git a/unpackage/cache/wgt/__UNI__9F097F0/app-service.js b/unpackage/cache/wgt/__UNI__9F097F0/app-service.js new file mode 100644 index 0000000..3a77d7b --- /dev/null +++ b/unpackage/cache/wgt/__UNI__9F097F0/app-service.js @@ -0,0 +1,9 @@ +if("undefined"==typeof Promise||Promise.prototype.finally||(Promise.prototype.finally=function(e){const t=this.constructor;return this.then((n=>t.resolve(e()).then((()=>n))),(n=>t.resolve(e()).then((()=>{throw n}))))}),"undefined"!=typeof uni&&uni&&uni.requireGlobal){const e=uni.requireGlobal();ArrayBuffer=e.ArrayBuffer,Int8Array=e.Int8Array,Uint8Array=e.Uint8Array,Uint8ClampedArray=e.Uint8ClampedArray,Int16Array=e.Int16Array,Uint16Array=e.Uint16Array,Int32Array=e.Int32Array,Uint32Array=e.Uint32Array,Float32Array=e.Float32Array,Float64Array=e.Float64Array,BigInt64Array=e.BigInt64Array,BigUint64Array=e.BigUint64Array}uni.restoreGlobal&&uni.restoreGlobal(Vue,weex,plus,setTimeout,clearTimeout,setInterval,clearInterval),function(e){"use strict";function t(e,t,...n){uni.__log__?uni.__log__(e,t,...n):console[e].apply(console,[...n,t])}function n(e,t){return"string"==typeof e?t:e}const i=t=>(n,i=e.getCurrentInstance())=>{!e.isInSSRComponentSetup&&e.injectHook(t,n,i)},a=i("onShow"),s=i("onLaunch"),r=i("onLoad"),o=i("onReachBottom"),l=i("onPullDownRefresh");let c=!1;function u(e){if(c)return;if(uni.getStorageSync("logintime")&&uni.getStorageSync("logintime")+36e5<=Date.now())return c=!0,t("log","at utils/http.js:11","token超时"),uni.removeStorageSync("logintime"),uni.navigateTo({url:"/pages/login/login"}),void(c=!1);e.url="https://36.112.48.190/jeecg-boot"+e.url;let n=uni.getStorageSync("token")||"";return e.header={"content-type":"application/json;charset=utf-8","X-Access-Token":n},new Promise((function(t,n){uni.request(e).then((e=>{if(wx.hideLoading(),e[0])uni.showToast({title:"数据获取失败",icon:"none",duration:1500}),t(!1);else{let n=e.data;if(t(n),c)return;500==n.code&&uni.showToast({title:n.message,icon:"none",duration:1500}),510==n.code&&(c=!0,uni.showToast({title:n.message,icon:"none",duration:1500}),uni.removeStorageSync("token"),uni.removeStorageSync("user"),uni.removeStorageSync("role"),uni.navigateTo({url:"/pages/login/login"}),uni.removeStorageSync("logintime"),c=!1)}})).catch((e=>{uni.hideLoading(),n(e)}))}))}function d(e){return u({url:"/sys/permission/getUserPermissionByToken",method:"get",data:e})}function h(e){return u({url:"/act/task/list",method:"get",data:e})}function p(e){return u({url:"/act/task/taskHistoryList",method:"get",data:e})}function f(e){return u({url:"/act/task/myApplyProcessList",method:"get",data:e})}function m(e){return u({url:"/cxcoagwfb/cxcOaGwfb/bpmlist",method:"get",data:e})}function g(e){return u({url:"/cxctz/cxcTz/list",method:"get",data:e})}function v(e){return u({url:"/cxcoaflgf/cxcOaFlgf/zslist",method:"get",data:e})}function y(e){return u({url:"/cxcjyglsjzdgl/cxcJyglSjzdgl/zslist",method:"get",data:e})}function w(e){return u({url:"/cxczd/cxcZdgl/list",method:"get",data:e})}function k(e){return u({url:"/process/extActFlowData/getProcessInfo",method:"get",data:e})}function _(e){return u({url:"/act/task/processHistoryList",method:"get",data:e})}function S(e){return u({url:"/act/task/processComplete",method:"post",data:e})}var b="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function E(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var x,D,T={exports:{}}; +/*! https://mths.be/base64 v1.0.0 by @mathias | MIT license */x=T,D=T.exports,function(e){var t=D,n=x&&x.exports==t&&x,i="object"==typeof b&&b;i.global!==i&&i.window!==i||(e=i);var a=function(e){this.message=e};(a.prototype=new Error).name="InvalidCharacterError";var s=function(e){throw new a(e)},r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=/[\t\n\f\r ]/g,l={encode:function(e){e=String(e),/[^\0-\xFF]/.test(e)&&s("The string to be encoded contains characters outside of the Latin1 range.");for(var t,n,i,a,o=e.length%3,l="",c=-1,u=e.length-o;++c>18&63)+r.charAt(a>>12&63)+r.charAt(a>>6&63)+r.charAt(63&a);return 2==o?(t=e.charCodeAt(c)<<8,n=e.charCodeAt(++c),l+=r.charAt((a=t+n)>>10)+r.charAt(a>>4&63)+r.charAt(a<<2&63)+"="):1==o&&(a=e.charCodeAt(c),l+=r.charAt(a>>2)+r.charAt(a<<4&63)+"=="),l},decode:function(e){var t=(e=String(e).replace(o,"")).length;t%4==0&&(t=(e=e.replace(/==?$/,"")).length),(t%4==1||/[^+a-zA-Z0-9/]/.test(e))&&s("Invalid character: the string to be decoded is not correctly encoded.");for(var n,i,a=0,l="",c=-1;++c>(-2*a&6)));return l},version:"1.0.0"};if(t&&!t.nodeType)if(n)n.exports=l;else for(var c in l)l.hasOwnProperty(c)&&(t[c]=l[c]);else e.base64=l}(b);const N=E(T.exports); +/*! + * pinia v2.1.7 + * (c) 2023 Eduardo San Martin Morote + * @license MIT + */ +let C;const V=e=>C=e,I=Symbol();function B(e){return e&&"object"==typeof e&&"[object Object]"===Object.prototype.toString.call(e)&&"function"!=typeof e.toJSON}var A,M;(M=A||(A={})).direct="direct",M.patchObject="patch object",M.patchFunction="patch function";const P=()=>{};function R(t,n,i,a=P){t.push(n);const s=()=>{const e=t.indexOf(n);e>-1&&(t.splice(e,1),a())};return!i&&e.getCurrentScope()&&e.onScopeDispose(s),s}function O(e,...t){e.slice().forEach((e=>{e(...t)}))}const L=e=>e();function F(t,n){t instanceof Map&&n instanceof Map&&n.forEach(((e,n)=>t.set(n,e))),t instanceof Set&&n instanceof Set&&n.forEach(t.add,t);for(const i in n){if(!n.hasOwnProperty(i))continue;const a=n[i],s=t[i];B(s)&&B(a)&&t.hasOwnProperty(i)&&!e.isRef(a)&&!e.isReactive(a)?t[i]=F(s,a):t[i]=a}return t}const j=Symbol();const{assign:U}=Object;function $(t,n,i={},a,s,r){let o;const l=U({actions:{}},i),c={deep:!0};let u,d,h,p=[],f=[];const m=a.state.value[t];let g;function v(n){let i;u=d=!1,"function"==typeof n?(n(a.state.value[t]),i={type:A.patchFunction,storeId:t,events:h}):(F(a.state.value[t],n),i={type:A.patchObject,payload:n,storeId:t,events:h});const s=g=Symbol();e.nextTick().then((()=>{g===s&&(u=!0)})),d=!0,O(p,i,a.state.value[t])}r||m||(a.state.value[t]={}),e.ref({});const y=r?function(){const{state:e}=i,t=e?e():{};this.$patch((e=>{U(e,t)}))}:P;function w(e,n){return function(){V(a);const i=Array.from(arguments),s=[],r=[];function o(e){s.push(e)}function l(e){r.push(e)}let c;O(f,{args:i,name:e,store:_,after:o,onError:l});try{c=n.apply(this&&this.$id===t?this:_,i)}catch(u){throw O(r,u),u}return c instanceof Promise?c.then((e=>(O(s,e),e))).catch((e=>(O(r,e),Promise.reject(e)))):(O(s,c),c)}}const k={_p:a,$id:t,$onAction:R.bind(null,f),$patch:v,$reset:y,$subscribe(n,i={}){const s=R(p,n,i.detached,(()=>r())),r=o.run((()=>e.watch((()=>a.state.value[t]),(e=>{("sync"===i.flush?d:u)&&n({storeId:t,type:A.direct,events:h},e)}),U({},c,i))));return s},$dispose:function(){o.stop(),p=[],f=[],a._s.delete(t)}},_=e.reactive(k);a._s.set(t,_);const S=(a._a&&a._a.runWithContext||L)((()=>a._e.run((()=>(o=e.effectScope()).run(n)))));for(const x in S){const n=S[x];if(e.isRef(n)&&(E=n,!e.isRef(E)||!E.effect)||e.isReactive(n))r||(!m||B(b=n)&&b.hasOwnProperty(j)||(e.isRef(n)?n.value=m[x]:F(n,m[x])),a.state.value[t][x]=n);else if("function"==typeof n){const e=w(x,n);S[x]=e,l.actions[x]=n}}var b,E;return U(_,S),U(e.toRaw(_),S),Object.defineProperty(_,"$state",{get:()=>a.state.value[t],set:e=>{v((t=>{U(t,e)}))}}),a._p.forEach((e=>{U(_,o.run((()=>e({store:_,app:a._a,pinia:a,options:l}))))})),m&&r&&i.hydrate&&i.hydrate(_.$state,m),u=!0,d=!0,_}function z(t,n,i){let a,s;const r="function"==typeof n;function o(t,i){const o=e.hasInjectionContext();(t=t||(o?e.inject(I,null):null))&&V(t),(t=C)._s.has(a)||(r?$(a,n,s,t):function(t,n,i,a){const{state:s,actions:r,getters:o}=n,l=i.state.value[t];let c;c=$(t,(function(){l||(i.state.value[t]=s?s():{});const n=e.toRefs(i.state.value[t]);return U(n,r,Object.keys(o||{}).reduce(((n,a)=>(n[a]=e.markRaw(e.computed((()=>{V(i);const e=i._s.get(t);return o[a].call(e,e)}))),n)),{}))}),n,i,0,!0)}(a,s,t));return t._s.get(a)}return"string"==typeof t?(a=t,s=r?i:n):(s=t,a=t.id),o.$id=a,o}const H=z("user",{state:()=>({userinfo:uni.getStorageSync("user")&&JSON.parse(uni.getStorageSync("user"))||{},token:uni.getStorageSync("token")||null,role:uni.getStorageSync("role")||null,allowPage:uni.getStorageSync("allowPage")||null,position:uni.getStorageSync("position")||null,positionSwitch:uni.getStorageSync("positionSwitch")||null,wendu:uni.getStorageSync("wendu")||null,wenduIcon:uni.getStorageSync("wenduIcon")||null,isgray:uni.getStorageSync("isgray")||0}),getters:{},actions:{setUserInfo(e){this.userinfo=e},setToken(e){this.token=e},setRole(e){this.role=e},setPosition(e){this.position=e},setPositionSwitch(e){this.positionSwitch=e},setWeather(e,t){this.wendu=e,this.wenduIcon=t},setAllowPage(e){this.allowPage=e},setIsgray(e){this.isgray=e}}}),q=(e,t)=>{const n=e.__vccOpts||e;for(const[i,a]of t)n[i]=a;return n},K=q({__name:"login",setup(n){const i=H(),{proxy:a}=e.getCurrentInstance(),s=e.ref(!1),o=e.ref(!0),l=e.ref(""),c=e.ref(""),d=()=>{if(!l.value.trim())return a.$toast("请输入账号");if(!c.value.trim())return a.$toast("请输入密码");let e=N.encode(encodeURIComponent(l.value)),n=N.encode(encodeURIComponent(c.value));var s;uni.showLoading({title:"登录中..."}),(s={username:e,password:n,ip:f()},u({url:"/sys/sinopecLogin",method:"post",data:s})).then((e=>{e.success&&(uni.setStorageSync("token",e.result.token),i.setToken(e.result.token),(()=>{let e={un:l.value};o.value&&(e.pw=c.value),uni.setStorageSync("accountObj",JSON.stringify(e))})(),function(e){return u({url:"/appConnet/app/queryRoleByRoleIds",method:"get",data:e})}({roles:e.result.userInfo.roles}).then((t=>{uni.setStorageSync("logintime",Date.now()),uni.setStorageSync("role",t),i.setRole(t),uni.setStorageSync("user",JSON.stringify(e.result.userInfo)),i.setUserInfo(e.result.userInfo),p(),uni.switchTab({url:"/pages/tab/index"})})))})).catch((e=>{t("log","at pages/login/login.vue:136",e)}))};e.ref([]),r((()=>{if(uni.getStorageSync("accountObj")){let e=JSON.parse(uni.getStorageSync("accountObj"));l.value=e.un?e.un:"",c.value=e.pw?e.pw:""}}));const p=()=>{h().then((e=>{e.success&&(e.result.total>0?uni.setTabBarBadge({index:"1",text:e.result.total}):uni.removeTabBarBadge({index:"1"}))}))};function f(){let e;if("Android"==plus.os.name){let s=plus.android.importClass("android.content.Context"),r=plus.android.runtimeMainActivity().getSystemService(s.CONNECTIVITY_SERVICE);plus.android.importClass(r);let o=r.getLinkProperties(r.getActiveNetwork()),l=plus.android.invoke(o,"getLinkAddresses");plus.android.importClass(l);for(var t=0;t>8&255)+"."+(a>>16&255)+"."+(a>>24&255))}}return e}return(t,n)=>(e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass({gray:1==e.unref(i).isgray})},[e.createElementVNode("view",{class:"logo f-col aic"},[e.createElementVNode("image",{src:"/static/login/logo.png"})]),e.createElementVNode("view",{class:"form f-col aic"},[e.createElementVNode("view",{class:"box f-row aic"},[e.createElementVNode("image",{src:"/static/login/phone.png"}),e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":n[0]||(n[0]=e=>l.value=e),type:"text",placeholder:"请输入统一身份认证","placeholder-style":"font-size: 28rpx;color: #999999;"},null,512),[[e.vModelText,l.value]])]),e.createElementVNode("view",{class:"box f-row aic"},[e.createElementVNode("image",{src:"/static/login/pwd.png"}),e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":n[1]||(n[1]=e=>c.value=e),type:s.value?"text":"password",placeholder:"请输入密码","placeholder-style":"font-size: 28rpx;color: #999999;"},null,8,["type"]),[[e.vModelDynamic,c.value]]),s.value?(e.openBlock(),e.createElementBlock("image",{key:0,src:"/static/login/eye.png",onClick:n[2]||(n[2]=e=>s.value=!s.value)})):(e.openBlock(),e.createElementBlock("image",{key:1,src:"/static/login/eye-off.png",onClick:n[3]||(n[3]=e=>s.value=!s.value)}))])]),e.createElementVNode("view",{class:"pwd f-row aic"},[e.createElementVNode("view",{style:{display:"inline-block"},onClick:n[4]||(n[4]=e=>o.value=!o.value)},[e.createElementVNode("view",{class:"f-row aic"},[o.value?(e.openBlock(),e.createElementBlock("image",{key:1,src:"/static/login/checked.png"})):(e.openBlock(),e.createElementBlock("image",{key:0,src:"/static/login/nocheck.png"})),e.createElementVNode("text",null,"记住密码")])])]),e.createElementVNode("view",{class:"login f-col aic"},[e.createElementVNode("view",{onClick:d}," 登录 ")])],2))}},[["__scopeId","data-v-6ad77018"]]),J=[{font_class:"arrow-down",unicode:""},{font_class:"arrow-left",unicode:""},{font_class:"arrow-right",unicode:""},{font_class:"arrow-up",unicode:""},{font_class:"auth",unicode:""},{font_class:"auth-filled",unicode:""},{font_class:"back",unicode:""},{font_class:"bars",unicode:""},{font_class:"calendar",unicode:""},{font_class:"calendar-filled",unicode:""},{font_class:"camera",unicode:""},{font_class:"camera-filled",unicode:""},{font_class:"cart",unicode:""},{font_class:"cart-filled",unicode:""},{font_class:"chat",unicode:""},{font_class:"chat-filled",unicode:""},{font_class:"chatboxes",unicode:""},{font_class:"chatboxes-filled",unicode:""},{font_class:"chatbubble",unicode:""},{font_class:"chatbubble-filled",unicode:""},{font_class:"checkbox",unicode:""},{font_class:"checkbox-filled",unicode:""},{font_class:"checkmarkempty",unicode:""},{font_class:"circle",unicode:""},{font_class:"circle-filled",unicode:""},{font_class:"clear",unicode:""},{font_class:"close",unicode:""},{font_class:"closeempty",unicode:""},{font_class:"cloud-download",unicode:""},{font_class:"cloud-download-filled",unicode:""},{font_class:"cloud-upload",unicode:""},{font_class:"cloud-upload-filled",unicode:""},{font_class:"color",unicode:""},{font_class:"color-filled",unicode:""},{font_class:"compose",unicode:""},{font_class:"contact",unicode:""},{font_class:"contact-filled",unicode:""},{font_class:"down",unicode:""},{font_class:"bottom",unicode:""},{font_class:"download",unicode:""},{font_class:"download-filled",unicode:""},{font_class:"email",unicode:""},{font_class:"email-filled",unicode:""},{font_class:"eye",unicode:""},{font_class:"eye-filled",unicode:""},{font_class:"eye-slash",unicode:""},{font_class:"eye-slash-filled",unicode:""},{font_class:"fire",unicode:""},{font_class:"fire-filled",unicode:""},{font_class:"flag",unicode:""},{font_class:"flag-filled",unicode:""},{font_class:"folder-add",unicode:""},{font_class:"folder-add-filled",unicode:""},{font_class:"font",unicode:""},{font_class:"forward",unicode:""},{font_class:"gear",unicode:""},{font_class:"gear-filled",unicode:""},{font_class:"gift",unicode:""},{font_class:"gift-filled",unicode:""},{font_class:"hand-down",unicode:""},{font_class:"hand-down-filled",unicode:""},{font_class:"hand-up",unicode:""},{font_class:"hand-up-filled",unicode:""},{font_class:"headphones",unicode:""},{font_class:"heart",unicode:""},{font_class:"heart-filled",unicode:""},{font_class:"help",unicode:""},{font_class:"help-filled",unicode:""},{font_class:"home",unicode:""},{font_class:"home-filled",unicode:""},{font_class:"image",unicode:""},{font_class:"image-filled",unicode:""},{font_class:"images",unicode:""},{font_class:"images-filled",unicode:""},{font_class:"info",unicode:""},{font_class:"info-filled",unicode:""},{font_class:"left",unicode:""},{font_class:"link",unicode:""},{font_class:"list",unicode:""},{font_class:"location",unicode:""},{font_class:"location-filled",unicode:""},{font_class:"locked",unicode:""},{font_class:"locked-filled",unicode:""},{font_class:"loop",unicode:""},{font_class:"mail-open",unicode:""},{font_class:"mail-open-filled",unicode:""},{font_class:"map",unicode:""},{font_class:"map-filled",unicode:""},{font_class:"map-pin",unicode:""},{font_class:"map-pin-ellipse",unicode:""},{font_class:"medal",unicode:""},{font_class:"medal-filled",unicode:""},{font_class:"mic",unicode:""},{font_class:"mic-filled",unicode:""},{font_class:"micoff",unicode:""},{font_class:"micoff-filled",unicode:""},{font_class:"minus",unicode:""},{font_class:"minus-filled",unicode:""},{font_class:"more",unicode:""},{font_class:"more-filled",unicode:""},{font_class:"navigate",unicode:""},{font_class:"navigate-filled",unicode:""},{font_class:"notification",unicode:""},{font_class:"notification-filled",unicode:""},{font_class:"paperclip",unicode:""},{font_class:"paperplane",unicode:""},{font_class:"paperplane-filled",unicode:""},{font_class:"person",unicode:""},{font_class:"person-filled",unicode:""},{font_class:"personadd",unicode:""},{font_class:"personadd-filled",unicode:""},{font_class:"personadd-filled-copy",unicode:""},{font_class:"phone",unicode:""},{font_class:"phone-filled",unicode:""},{font_class:"plus",unicode:""},{font_class:"plus-filled",unicode:""},{font_class:"plusempty",unicode:""},{font_class:"pulldown",unicode:""},{font_class:"pyq",unicode:""},{font_class:"qq",unicode:""},{font_class:"redo",unicode:""},{font_class:"redo-filled",unicode:""},{font_class:"refresh",unicode:""},{font_class:"refresh-filled",unicode:""},{font_class:"refreshempty",unicode:""},{font_class:"reload",unicode:""},{font_class:"right",unicode:""},{font_class:"scan",unicode:""},{font_class:"search",unicode:""},{font_class:"settings",unicode:""},{font_class:"settings-filled",unicode:""},{font_class:"shop",unicode:""},{font_class:"shop-filled",unicode:""},{font_class:"smallcircle",unicode:""},{font_class:"smallcircle-filled",unicode:""},{font_class:"sound",unicode:""},{font_class:"sound-filled",unicode:""},{font_class:"spinner-cycle",unicode:""},{font_class:"staff",unicode:""},{font_class:"staff-filled",unicode:""},{font_class:"star",unicode:""},{font_class:"star-filled",unicode:""},{font_class:"starhalf",unicode:""},{font_class:"trash",unicode:""},{font_class:"trash-filled",unicode:""},{font_class:"tune",unicode:""},{font_class:"tune-filled",unicode:""},{font_class:"undo",unicode:""},{font_class:"undo-filled",unicode:""},{font_class:"up",unicode:""},{font_class:"top",unicode:""},{font_class:"upload",unicode:""},{font_class:"upload-filled",unicode:""},{font_class:"videocam",unicode:""},{font_class:"videocam-filled",unicode:""},{font_class:"vip",unicode:""},{font_class:"vip-filled",unicode:""},{font_class:"wallet",unicode:""},{font_class:"wallet-filled",unicode:""},{font_class:"weibo",unicode:""},{font_class:"weixin",unicode:""}];const W=q({name:"UniIcons",emits:["click"],props:{type:{type:String,default:""},color:{type:String,default:"#333333"},size:{type:[Number,String],default:16},customPrefix:{type:String,default:""},fontFamily:{type:String,default:""}},data:()=>({icons:J}),computed:{unicode(){let e=this.icons.find((e=>e.font_class===this.type));return e?e.unicode:""},iconSize(){return"number"==typeof(e=this.size)||/^[0-9]*$/g.test(e)?e+"px":e;var e},styleObj(){return""!==this.fontFamily?`color: ${this.color}; font-size: ${this.iconSize}; font-family: ${this.fontFamily};`:`color: ${this.color}; font-size: ${this.iconSize};`}},methods:{_onClick(){this.$emit("click")}}},[["render",function(t,n,i,a,s,r){return e.openBlock(),e.createElementBlock("text",{style:e.normalizeStyle(r.styleObj),class:e.normalizeClass(["uni-icons",["uniui-"+i.type,i.customPrefix,i.customPrefix?i.type:""]]),onClick:n[0]||(n[0]=(...e)=>r._onClick&&r._onClick(...e))},[e.renderSlot(t.$slots,"default",{},void 0,!0)],6)}],["__scopeId","data-v-5610c8db"]]);function Y(e,t){return`${G(e)} ${Z(e,t)}`}function G(e){e=ie(e);const t=(e=new Date(e)).getFullYear(),n=e.getMonth()+1,i=e.getDate();return`${t}-${Q(n)}-${Q(i)}`}function Z(e,t){e=ie(e);const n=(e=new Date(e)).getHours(),i=e.getMinutes(),a=e.getSeconds();return t?`${Q(n)}:${Q(i)}`:`${Q(n)}:${Q(i)}:${Q(a)}`}function Q(e){return e<10&&(e=`0${e}`),e}function X(e){return e?"00:00":"00:00:00"}function ee(e,t){return(e=new Date(ie(e)))<=(t=new Date(ie(t)))}function te(e){return e.match(/((19|20)\d{2})(-|\/)\d{1,2}(-|\/)\d{1,2}/g)}const ne=/^\d{4}-(0?[1-9]|1[012])-(0?[1-9]|[12][0-9]|3[01])( [0-5]?[0-9]:[0-5]?[0-9](:[0-5]?[0-9])?)?$/;function ie(e){return"string"==typeof e&&ne.test(e)&&(e=e.replace(/-/g,"/")),e}const ae=q({props:{weeks:{type:Object,default:()=>({})},calendar:{type:Object,default:()=>({})},selected:{type:Array,default:()=>[]},checkHover:{type:Boolean,default:!1}},methods:{choiceDate(e){this.$emit("change",e)},handleMousemove(e){this.$emit("handleMouse",e)}}},[["render",function(t,n,i,a,s,r){return e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass(["uni-calendar-item__weeks-box",{"uni-calendar-item--disable":i.weeks.disable,"uni-calendar-item--before-checked-x":i.weeks.beforeMultiple,"uni-calendar-item--multiple":i.weeks.multiple,"uni-calendar-item--after-checked-x":i.weeks.afterMultiple}]),onClick:n[0]||(n[0]=e=>r.choiceDate(i.weeks)),onMouseenter:n[1]||(n[1]=e=>r.handleMousemove(i.weeks))},[e.createElementVNode("view",{class:e.normalizeClass(["uni-calendar-item__weeks-box-item",{"uni-calendar-item--checked":i.calendar.fullDate===i.weeks.fullDate&&(i.calendar.userChecked||!i.checkHover),"uni-calendar-item--checked-range-text":i.checkHover,"uni-calendar-item--before-checked":i.weeks.beforeMultiple,"uni-calendar-item--multiple":i.weeks.multiple,"uni-calendar-item--after-checked":i.weeks.afterMultiple,"uni-calendar-item--disable":i.weeks.disable}])},[i.selected&&i.weeks.extraInfo?(e.openBlock(),e.createElementBlock("text",{key:0,class:"uni-calendar-item__weeks-box-circle"})):e.createCommentVNode("",!0),e.createElementVNode("text",{class:"uni-calendar-item__weeks-box-text uni-calendar-item__weeks-box-text-disable uni-calendar-item--checked-text"},e.toDisplayString(i.weeks.date),1)],2),e.createElementVNode("view",{class:e.normalizeClass({"uni-calendar-item--today":i.weeks.isToday})},null,2)],34)}],["__scopeId","data-v-a5fd30c1"]]),se=["{","}"];const re=/^(?:\d)+/,oe=/^(?:\w)+/;const le="zh-Hans",ce="zh-Hant",ue="en",de=Object.prototype.hasOwnProperty,he=(e,t)=>de.call(e,t),pe=new class{constructor(){this._caches=Object.create(null)}interpolate(e,t,n=se){if(!t)return[e];let i=this._caches[e];return i||(i=function(e,[t,n]){const i=[];let a=0,s="";for(;a-1?le:e.indexOf("-hant")>-1?ce:(n=e,["-tw","-hk","-mo","-cht"].find((e=>-1!==n.indexOf(e)))?ce:le);var n;let i=[ue,"fr","es"];t&&Object.keys(t).length>0&&(i=Object.keys(t));const a=function(e,t){return t.find((t=>0===e.indexOf(t)))}(e,i);return a||void 0}class me{constructor({locale:e,fallbackLocale:t,messages:n,watcher:i,formater:a}){this.locale=ue,this.fallbackLocale=ue,this.message={},this.messages={},this.watchers=[],t&&(this.fallbackLocale=t),this.formater=a||pe,this.messages=n||{},this.setLocale(e||ue),i&&this.watchLocale(i)}setLocale(e){const t=this.locale;this.locale=fe(e,this.messages)||this.fallbackLocale,this.messages[this.locale]||(this.messages[this.locale]={}),this.message=this.messages[this.locale],t!==this.locale&&this.watchers.forEach((e=>{e(this.locale,t)}))}getLocale(){return this.locale}watchLocale(e){const t=this.watchers.push(e)-1;return()=>{this.watchers.splice(t,1)}}add(e,t,n=!0){const i=this.messages[e];i?n?Object.assign(i,t):Object.keys(t).forEach((e=>{he(i,e)||(i[e]=t[e])})):this.messages[e]=t}f(e,t,n){return this.formater.interpolate(e,t,n).join("")}t(e,t,n){let i=this.message;return"string"==typeof t?(t=fe(t,this.messages))&&(i=this.messages[t]):n=t,he(i,e)?this.formater.interpolate(i[e],n).join(""):(console.warn(`Cannot translate the value of keypath ${e}. Use the value of keypath as default.`),e)}}function ge(e,t={},n,i){"string"!=typeof e&&([e,t]=[t,e]),"string"!=typeof e&&(e="undefined"!=typeof uni&&uni.getLocale?uni.getLocale():"undefined"!=typeof global&&global.getLocale?global.getLocale():ue),"string"!=typeof n&&(n="undefined"!=typeof __uniConfig&&__uniConfig.fallbackLocale||ue);const a=new me({locale:e,fallbackLocale:n,messages:t,watcher:i});let s=(e,t)=>{if("function"!=typeof getApp)s=function(e,t){return a.t(e,t)};else{let e=!1;s=function(t,n){const i=getApp().$vm;return i&&(i.$locale,e||(e=!0,function(e,t){e.$watchLocale?e.$watchLocale((e=>{t.setLocale(e)})):e.$watch((()=>e.$locale),(e=>{t.setLocale(e)}))}(i,a))),a.t(t,n)}}return s(e,t)};return{i18n:a,f:(e,t,n)=>a.f(e,t,n),t:(e,t)=>s(e,t),add:(e,t,n=!0)=>a.add(e,t,n),watch:e=>a.watchLocale(e),getLocale:()=>a.getLocale(),setLocale:e=>a.setLocale(e)}}const ve={en:{"uni-datetime-picker.selectDate":"select date","uni-datetime-picker.selectTime":"select time","uni-datetime-picker.selectDateTime":"select date and time","uni-datetime-picker.startDate":"start date","uni-datetime-picker.endDate":"end date","uni-datetime-picker.startTime":"start time","uni-datetime-picker.endTime":"end time","uni-datetime-picker.ok":"ok","uni-datetime-picker.clear":"clear","uni-datetime-picker.cancel":"cancel","uni-datetime-picker.year":"-","uni-datetime-picker.month":"","uni-calender.MON":"MON","uni-calender.TUE":"TUE","uni-calender.WED":"WED","uni-calender.THU":"THU","uni-calender.FRI":"FRI","uni-calender.SAT":"SAT","uni-calender.SUN":"SUN","uni-calender.confirm":"confirm"},"zh-Hans":{"uni-datetime-picker.selectDate":"选择日期","uni-datetime-picker.selectTime":"选择时间","uni-datetime-picker.selectDateTime":"选择日期时间","uni-datetime-picker.startDate":"开始日期","uni-datetime-picker.endDate":"结束日期","uni-datetime-picker.startTime":"开始时间","uni-datetime-picker.endTime":"结束时间","uni-datetime-picker.ok":"确定","uni-datetime-picker.clear":"清除","uni-datetime-picker.cancel":"取消","uni-datetime-picker.year":"年","uni-datetime-picker.month":"月","uni-calender.SUN":"日","uni-calender.MON":"一","uni-calender.TUE":"二","uni-calender.WED":"三","uni-calender.THU":"四","uni-calender.FRI":"五","uni-calender.SAT":"六","uni-calender.confirm":"确认"},"zh-Hant":{"uni-datetime-picker.selectDate":"選擇日期","uni-datetime-picker.selectTime":"選擇時間","uni-datetime-picker.selectDateTime":"選擇日期時間","uni-datetime-picker.startDate":"開始日期","uni-datetime-picker.endDate":"結束日期","uni-datetime-picker.startTime":"開始时间","uni-datetime-picker.endTime":"結束时间","uni-datetime-picker.ok":"確定","uni-datetime-picker.clear":"清除","uni-datetime-picker.cancel":"取消","uni-datetime-picker.year":"年","uni-datetime-picker.month":"月","uni-calender.SUN":"日","uni-calender.MON":"一","uni-calender.TUE":"二","uni-calender.WED":"三","uni-calender.THU":"四","uni-calender.FRI":"五","uni-calender.SAT":"六","uni-calender.confirm":"確認"}},{t:ye}=ge(ve),we={name:"UniDatetimePicker",data:()=>({indicatorStyle:"height: 50px;",visible:!1,fixNvueBug:{},dateShow:!0,timeShow:!0,title:"日期和时间",time:"",year:1920,month:0,day:0,hour:0,minute:0,second:0,startYear:1920,startMonth:1,startDay:1,startHour:0,startMinute:0,startSecond:0,endYear:2120,endMonth:12,endDay:31,endHour:23,endMinute:59,endSecond:59}),options:{virtualHost:!0},props:{type:{type:String,default:"datetime"},value:{type:[String,Number],default:""},modelValue:{type:[String,Number],default:""},start:{type:[Number,String],default:""},end:{type:[Number,String],default:""},returnType:{type:String,default:"string"},disabled:{type:[Boolean,String],default:!1},border:{type:[Boolean,String],default:!0},hideSecond:{type:[Boolean,String],default:!1}},watch:{modelValue:{handler(e){e?(this.parseValue(ie(e)),this.initTime(!1)):(this.time="",this.parseValue(Date.now()))},immediate:!0},type:{handler(e){"date"===e?(this.dateShow=!0,this.timeShow=!1,this.title="日期"):"time"===e?(this.dateShow=!1,this.timeShow=!0,this.title="时间"):(this.dateShow=!0,this.timeShow=!0,this.title="日期和时间")},immediate:!0},start:{handler(e){this.parseDatetimeRange(ie(e),"start")},immediate:!0},end:{handler(e){this.parseDatetimeRange(ie(e),"end")},immediate:!0},months(e){this.checkValue("month",this.month,e)},days(e){this.checkValue("day",this.day,e)},hours(e){this.checkValue("hour",this.hour,e)},minutes(e){this.checkValue("minute",this.minute,e)},seconds(e){this.checkValue("second",this.second,e)}},computed:{years(){return this.getCurrentRange("year")},months(){return this.getCurrentRange("month")},days(){return this.getCurrentRange("day")},hours(){return this.getCurrentRange("hour")},minutes(){return this.getCurrentRange("minute")},seconds(){return this.getCurrentRange("second")},ymd(){return[this.year-this.minYear,this.month-this.minMonth,this.day-this.minDay]},hms(){return[this.hour-this.minHour,this.minute-this.minMinute,this.second-this.minSecond]},currentDateIsStart(){return this.year===this.startYear&&this.month===this.startMonth&&this.day===this.startDay},currentDateIsEnd(){return this.year===this.endYear&&this.month===this.endMonth&&this.day===this.endDay},minYear(){return this.startYear},maxYear(){return this.endYear},minMonth(){return this.year===this.startYear?this.startMonth:1},maxMonth(){return this.year===this.endYear?this.endMonth:12},minDay(){return this.year===this.startYear&&this.month===this.startMonth?this.startDay:1},maxDay(){return this.year===this.endYear&&this.month===this.endMonth?this.endDay:this.daysInMonth(this.year,this.month)},minHour(){return"datetime"===this.type?this.currentDateIsStart?this.startHour:0:"time"===this.type?this.startHour:void 0},maxHour(){return"datetime"===this.type?this.currentDateIsEnd?this.endHour:23:"time"===this.type?this.endHour:void 0},minMinute(){return"datetime"===this.type?this.currentDateIsStart&&this.hour===this.startHour?this.startMinute:0:"time"===this.type?this.hour===this.startHour?this.startMinute:0:void 0},maxMinute(){return"datetime"===this.type?this.currentDateIsEnd&&this.hour===this.endHour?this.endMinute:59:"time"===this.type?this.hour===this.endHour?this.endMinute:59:void 0},minSecond(){return"datetime"===this.type?this.currentDateIsStart&&this.hour===this.startHour&&this.minute===this.startMinute?this.startSecond:0:"time"===this.type?this.hour===this.startHour&&this.minute===this.startMinute?this.startSecond:0:void 0},maxSecond(){return"datetime"===this.type?this.currentDateIsEnd&&this.hour===this.endHour&&this.minute===this.endMinute?this.endSecond:59:"time"===this.type?this.hour===this.endHour&&this.minute===this.endMinute?this.endSecond:59:void 0},selectTimeText:()=>ye("uni-datetime-picker.selectTime"),okText:()=>ye("uni-datetime-picker.ok"),clearText:()=>ye("uni-datetime-picker.clear"),cancelText:()=>ye("uni-datetime-picker.cancel")},mounted(){},methods:{lessThanTen:e=>e<10?"0"+e:e,parseTimeType(e){if(e){let t=e.split(":");this.hour=Number(t[0]),this.minute=Number(t[1]),this.second=Number(t[2])}},initPickerValue(e){let t=null;e?t=this.compareValueWithStartAndEnd(e,this.start,this.end):(t=Date.now(),t=this.compareValueWithStartAndEnd(t,this.start,this.end)),this.parseValue(t)},compareValueWithStartAndEnd(e,t,n){let i=null;return e=this.superTimeStamp(e),t=this.superTimeStamp(t),n=this.superTimeStamp(n),i=t&&n?en?new Date(n):new Date(e):t&&!n?t<=e?new Date(e):new Date(t):!t&&n?e<=n?new Date(e):new Date(n):new Date(e),i},superTimeStamp(e){let t="";if("time"===this.type&&e&&"string"==typeof e){const e=new Date;t=e.getFullYear()+"/"+(e.getMonth()+1)+"/"+e.getDate()+" "}return Number(e)&&(e=parseInt(e),t=0),this.createTimeStamp(t+e)},parseValue(e){if(e){if("time"===this.type&&"string"==typeof e)this.parseTimeType(e);else{let t=null;t=new Date(e),"time"!==this.type&&(this.year=t.getFullYear(),this.month=t.getMonth()+1,this.day=t.getDate()),"date"!==this.type&&(this.hour=t.getHours(),this.minute=t.getMinutes(),this.second=t.getSeconds())}this.hideSecond&&(this.second=0)}},parseDatetimeRange(e,t){if(!e)return"start"===t&&(this.startYear=1920,this.startMonth=1,this.startDay=1,this.startHour=0,this.startMinute=0,this.startSecond=0),void("end"===t&&(this.endYear=2120,this.endMonth=12,this.endDay=31,this.endHour=23,this.endMinute=59,this.endSecond=59));if("time"===this.type){const n=e.split(":");this[t+"Hour"]=Number(n[0]),this[t+"Minute"]=Number(n[1]),this[t+"Second"]=Number(n[2])}else{if(!e)return void("start"===t?this.startYear=this.year-60:this.endYear=this.year+60);Number(e)&&(e=parseInt(e));const n=/[0-9]:[0-9]/;"datetime"!==this.type||"end"!==t||"string"!=typeof e||n.test(e)||(e+=" 23:59:59");const i=new Date(e);this[t+"Year"]=i.getFullYear(),this[t+"Month"]=i.getMonth()+1,this[t+"Day"]=i.getDate(),"datetime"===this.type&&(this[t+"Hour"]=i.getHours(),this[t+"Minute"]=i.getMinutes(),this[t+"Second"]=i.getSeconds())}},getCurrentRange(e){const t=[];for(let n=this["min"+this.capitalize(e)];n<=this["max"+this.capitalize(e)];n++)t.push(n);return t},capitalize:e=>e.charAt(0).toUpperCase()+e.slice(1),checkValue(e,t,n){-1===n.indexOf(t)&&(this[e]=n[0])},daysInMonth:(e,t)=>new Date(e,t,0).getDate(),createTimeStamp(e){if(e)return"number"==typeof e?e:(e=e.replace(/-/g,"/"),"date"===this.type&&(e+=" 00:00:00"),Date.parse(e))},createDomSting(){const e=this.year+"-"+this.lessThanTen(this.month)+"-"+this.lessThanTen(this.day);let t=this.lessThanTen(this.hour)+":"+this.lessThanTen(this.minute);return this.hideSecond||(t=t+":"+this.lessThanTen(this.second)),"date"===this.type?e:"time"===this.type?t:e+" "+t},initTime(e=!0){this.time=this.createDomSting(),e&&("timestamp"===this.returnType&&"time"!==this.type?(this.$emit("change",this.createTimeStamp(this.time)),this.$emit("input",this.createTimeStamp(this.time)),this.$emit("update:modelValue",this.createTimeStamp(this.time))):(this.$emit("change",this.time),this.$emit("input",this.time),this.$emit("update:modelValue",this.time)))},bindDateChange(e){const t=e.detail.value;this.year=this.years[t[0]],this.month=this.months[t[1]],this.day=this.days[t[2]]},bindTimeChange(e){const t=e.detail.value;this.hour=this.hours[t[0]],this.minute=this.minutes[t[1]],this.second=this.seconds[t[2]]},initTimePicker(){if(this.disabled)return;const e=ie(this.time);this.initPickerValue(e),this.visible=!this.visible},tiggerTimePicker(e){this.visible=!this.visible},clearTime(){this.time="",this.$emit("change",this.time),this.$emit("input",this.time),this.$emit("update:modelValue",this.time),this.tiggerTimePicker()},setTime(){this.initTime(),this.tiggerTimePicker()}}};const ke=q(we,[["render",function(t,n,i,a,s,r){return e.openBlock(),e.createElementBlock("view",{class:"uni-datetime-picker"},[e.createElementVNode("view",{onClick:n[0]||(n[0]=(...e)=>r.initTimePicker&&r.initTimePicker(...e))},[e.renderSlot(t.$slots,"default",{},(()=>[e.createElementVNode("view",{class:e.normalizeClass(["uni-datetime-picker-timebox-pointer",{"uni-datetime-picker-disabled":i.disabled,"uni-datetime-picker-timebox":i.border}])},[e.createElementVNode("text",{class:"uni-datetime-picker-text"},e.toDisplayString(s.time),1),s.time?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("view",{key:0,class:"uni-datetime-picker-time"},[e.createElementVNode("text",{class:"uni-datetime-picker-text"},e.toDisplayString(r.selectTimeText),1)]))],2)]),!0)]),s.visible?(e.openBlock(),e.createElementBlock("view",{key:0,id:"mask",class:"uni-datetime-picker-mask",onClick:n[1]||(n[1]=(...e)=>r.tiggerTimePicker&&r.tiggerTimePicker(...e))})):e.createCommentVNode("",!0),s.visible?(e.openBlock(),e.createElementBlock("view",{key:1,class:e.normalizeClass(["uni-datetime-picker-popup",[s.dateShow&&s.timeShow?"":"fix-nvue-height"]]),style:e.normalizeStyle(s.fixNvueBug)},[e.createElementVNode("view",{class:"uni-title"},[e.createElementVNode("text",{class:"uni-datetime-picker-text"},e.toDisplayString(r.selectTimeText),1)]),s.dateShow?(e.openBlock(),e.createElementBlock("view",{key:0,class:"uni-datetime-picker__container-box"},[e.createElementVNode("picker-view",{class:"uni-datetime-picker-view","indicator-style":s.indicatorStyle,value:r.ymd,onChange:n[2]||(n[2]=(...e)=>r.bindDateChange&&r.bindDateChange(...e))},[e.createElementVNode("picker-view-column",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.years,((t,n)=>(e.openBlock(),e.createElementBlock("view",{class:"uni-datetime-picker-item",key:n},[e.createElementVNode("text",{class:"uni-datetime-picker-item"},e.toDisplayString(r.lessThanTen(t)),1)])))),128))]),e.createElementVNode("picker-view-column",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.months,((t,n)=>(e.openBlock(),e.createElementBlock("view",{class:"uni-datetime-picker-item",key:n},[e.createElementVNode("text",{class:"uni-datetime-picker-item"},e.toDisplayString(r.lessThanTen(t)),1)])))),128))]),e.createElementVNode("picker-view-column",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.days,((t,n)=>(e.openBlock(),e.createElementBlock("view",{class:"uni-datetime-picker-item",key:n},[e.createElementVNode("text",{class:"uni-datetime-picker-item"},e.toDisplayString(r.lessThanTen(t)),1)])))),128))])],40,["indicator-style","value"]),e.createElementVNode("text",{class:"uni-datetime-picker-sign sign-left"},"-"),e.createElementVNode("text",{class:"uni-datetime-picker-sign sign-right"},"-")])):e.createCommentVNode("",!0),s.timeShow?(e.openBlock(),e.createElementBlock("view",{key:1,class:"uni-datetime-picker__container-box"},[e.createElementVNode("picker-view",{class:e.normalizeClass(["uni-datetime-picker-view",[i.hideSecond?"time-hide-second":""]]),"indicator-style":s.indicatorStyle,value:r.hms,onChange:n[3]||(n[3]=(...e)=>r.bindTimeChange&&r.bindTimeChange(...e))},[e.createElementVNode("picker-view-column",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.hours,((t,n)=>(e.openBlock(),e.createElementBlock("view",{class:"uni-datetime-picker-item",key:n},[e.createElementVNode("text",{class:"uni-datetime-picker-item"},e.toDisplayString(r.lessThanTen(t)),1)])))),128))]),e.createElementVNode("picker-view-column",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.minutes,((t,n)=>(e.openBlock(),e.createElementBlock("view",{class:"uni-datetime-picker-item",key:n},[e.createElementVNode("text",{class:"uni-datetime-picker-item"},e.toDisplayString(r.lessThanTen(t)),1)])))),128))]),i.hideSecond?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("picker-view-column",{key:0},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.seconds,((t,n)=>(e.openBlock(),e.createElementBlock("view",{class:"uni-datetime-picker-item",key:n},[e.createElementVNode("text",{class:"uni-datetime-picker-item"},e.toDisplayString(r.lessThanTen(t)),1)])))),128))]))],42,["indicator-style","value"]),e.createElementVNode("text",{class:e.normalizeClass(["uni-datetime-picker-sign",[i.hideSecond?"sign-center":"sign-left"]])},":",2),i.hideSecond?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("text",{key:0,class:"uni-datetime-picker-sign sign-right"},":"))])):e.createCommentVNode("",!0),e.createElementVNode("view",{class:"uni-datetime-picker-btn"},[e.createElementVNode("view",{onClick:n[4]||(n[4]=(...e)=>r.clearTime&&r.clearTime(...e))},[e.createElementVNode("text",{class:"uni-datetime-picker-btn-text"},e.toDisplayString(r.clearText),1)]),e.createElementVNode("view",{class:"uni-datetime-picker-btn-group"},[e.createElementVNode("view",{class:"uni-datetime-picker-cancel",onClick:n[5]||(n[5]=(...e)=>r.tiggerTimePicker&&r.tiggerTimePicker(...e))},[e.createElementVNode("text",{class:"uni-datetime-picker-btn-text"},e.toDisplayString(r.cancelText),1)]),e.createElementVNode("view",{onClick:n[6]||(n[6]=(...e)=>r.setTime&&r.setTime(...e))},[e.createElementVNode("text",{class:"uni-datetime-picker-btn-text"},e.toDisplayString(r.okText),1)])])])],6)):e.createCommentVNode("",!0)])}],["__scopeId","data-v-8a3925ff"]]),{t:_e}=ge(ve),Se={components:{calendarItem:ae,timePicker:ke},options:{virtualHost:!0},props:{date:{type:String,default:""},defTime:{type:[String,Object],default:""},selectableTimes:{type:[Object],default:()=>({})},selected:{type:Array,default:()=>[]},startDate:{type:String,default:""},endDate:{type:String,default:""},startPlaceholder:{type:String,default:""},endPlaceholder:{type:String,default:""},range:{type:Boolean,default:!1},hasTime:{type:Boolean,default:!1},insert:{type:Boolean,default:!0},showMonth:{type:Boolean,default:!0},clearDate:{type:Boolean,default:!0},checkHover:{type:Boolean,default:!0},hideSecond:{type:[Boolean],default:!1},pleStatus:{type:Object,default:()=>({before:"",after:"",data:[],fulldate:""})},defaultValue:{type:[String,Object,Array],default:""}},data:()=>({show:!1,weeks:[],calendar:{},nowDate:{},aniMaskShow:!1,firstEnter:!0,time:"",timeRange:{startTime:"",endTime:""},tempSingleDate:"",tempRange:{before:"",after:""}}),watch:{date:{immediate:!0,handler(e){this.range||(this.tempSingleDate=e,setTimeout((()=>{this.init(e)}),100))}},defTime:{immediate:!0,handler(e){this.range?(this.timeRange.startTime=e.start,this.timeRange.endTime=e.end):this.time=e}},startDate(e){this.cale&&(this.cale.setStartDate(e),this.cale.setDate(this.nowDate.fullDate),this.weeks=this.cale.weeks)},endDate(e){this.cale&&(this.cale.setEndDate(e),this.cale.setDate(this.nowDate.fullDate),this.weeks=this.cale.weeks)},selected(e){this.cale&&(this.cale.setSelectInfo(this.nowDate.fullDate,e),this.weeks=this.cale.weeks)},pleStatus:{immediate:!0,handler(e){const{before:t,after:n,fulldate:i,which:a}=e;this.tempRange.before=t,this.tempRange.after=n,setTimeout((()=>{if(i)if(this.cale.setHoverMultiple(i),t&&n){if(this.cale.lastHover=!0,this.rangeWithinMonth(n,t))return;this.setDate(t)}else this.cale.setMultiple(i),this.setDate(this.nowDate.fullDate),this.calendar.fullDate="",this.cale.lastHover=!1;else{if(!this.cale)return;this.cale.setDefaultMultiple(t,n),"left"===a&&t?(this.setDate(t),this.weeks=this.cale.weeks):n&&(this.setDate(n),this.weeks=this.cale.weeks),this.cale.lastHover=!0}}),16)}}},computed:{timepickerStartTime(){return(this.range?this.tempRange.before:this.calendar.fullDate)===this.startDate?this.selectableTimes.start:""},timepickerEndTime(){return(this.range?this.tempRange.after:this.calendar.fullDate)===this.endDate?this.selectableTimes.end:""},selectDateText:()=>_e("uni-datetime-picker.selectDate"),startDateText(){return this.startPlaceholder||_e("uni-datetime-picker.startDate")},endDateText(){return this.endPlaceholder||_e("uni-datetime-picker.endDate")},okText:()=>_e("uni-datetime-picker.ok"),yearText:()=>_e("uni-datetime-picker.year"),monthText:()=>_e("uni-datetime-picker.month"),MONText:()=>_e("uni-calender.MON"),TUEText:()=>_e("uni-calender.TUE"),WEDText:()=>_e("uni-calender.WED"),THUText:()=>_e("uni-calender.THU"),FRIText:()=>_e("uni-calender.FRI"),SATText:()=>_e("uni-calender.SAT"),SUNText:()=>_e("uni-calender.SUN"),confirmText:()=>_e("uni-calender.confirm")},created(){this.cale=new class{constructor({selected:e,startDate:t,endDate:n,range:i}={}){this.date=this.getDateObj(new Date),this.selected=e||[],this.startDate=t,this.endDate=n,this.range=i,this.cleanMultipleStatus(),this.weeks={},this.lastHover=!1}setDate(e){const t=this.getDateObj(e);this.getWeeks(t.fullDate)}cleanMultipleStatus(){this.multipleStatus={before:"",after:"",data:[]}}setStartDate(e){this.startDate=e}setEndDate(e){this.endDate=e}getPreMonthObj(e){e=ie(e);const t=(e=new Date(e)).getMonth();e.setMonth(t-1);const n=e.getMonth();return 0!==t&&n-t==0&&e.setMonth(n-1),this.getDateObj(e)}getNextMonthObj(e){e=ie(e);const t=(e=new Date(e)).getMonth();e.setMonth(t+1);const n=e.getMonth();return n-t>1&&e.setMonth(n-1),this.getDateObj(e)}getDateObj(e){return e=ie(e),{fullDate:G(e=new Date(e)),year:e.getFullYear(),month:Q(e.getMonth()+1),date:Q(e.getDate()),day:e.getDay()}}getPreMonthDays(e,t){const n=[];for(let i=e-1;i>=0;i--){const e=t.month-1;n.push({date:new Date(t.year,e,-i).getDate(),month:e,disable:!0})}return n}getCurrentMonthDays(e,t){const n=[],i=this.date.fullDate;for(let a=1;a<=e;a++){const e=`${t.year}-${t.month}-${Q(a)}`,s=i===e,r=this.selected&&this.selected.find((t=>{if(this.dateEqual(e,t.date))return t}));this.startDate&&ee(this.startDate,e),this.endDate&&ee(e,this.endDate);let o=this.multipleStatus.data,l=-1;this.range&&o&&(l=o.findIndex((t=>this.dateEqual(t,e))));const c=-1!==l;n.push({fullDate:e,year:t.year,date:a,multiple:!!this.range&&c,beforeMultiple:this.isLogicBefore(e,this.multipleStatus.before,this.multipleStatus.after),afterMultiple:this.isLogicAfter(e,this.multipleStatus.before,this.multipleStatus.after),month:t.month,disable:this.startDate&&!ee(this.startDate,e)||this.endDate&&!ee(e,this.endDate),isToday:s,userChecked:!1,extraInfo:r})}return n}_getNextMonthDays(e,t){const n=[],i=t.month+1;for(let a=1;a<=e;a++)n.push({date:a,month:i,disable:!0});return n}getInfo(e){return e||(e=new Date),this.calendar.find((t=>t.fullDate===this.getDateObj(e).fullDate))}dateEqual(e,t){return e=new Date(ie(e)),t=new Date(ie(t)),e.valueOf()===t.valueOf()}isLogicBefore(e,t,n){let i=t;return t&&n&&(i=ee(t,n)?t:n),this.dateEqual(i,e)}isLogicAfter(e,t,n){let i=n;return t&&n&&(i=ee(t,n)?n:t),this.dateEqual(i,e)}geDateAll(e,t){var n=[],i=e.split("-"),a=t.split("-"),s=new Date;s.setFullYear(i[0],i[1]-1,i[2]);var r=new Date;r.setFullYear(a[0],a[1]-1,a[2]);for(var o=s.getTime()-864e5,l=r.getTime()-864e5,c=o;c<=l;)c+=864e5,n.push(this.getDateObj(new Date(parseInt(c))).fullDate);return n}setMultiple(e){if(!this.range)return;let{before:t,after:n}=this.multipleStatus;if(t&&n){if(!this.lastHover)return void(this.lastHover=!0);this.multipleStatus.before=e,this.multipleStatus.after="",this.multipleStatus.data=[],this.multipleStatus.fulldate="",this.lastHover=!1}else t?(this.multipleStatus.after=e,ee(this.multipleStatus.before,this.multipleStatus.after)?this.multipleStatus.data=this.geDateAll(this.multipleStatus.before,this.multipleStatus.after):this.multipleStatus.data=this.geDateAll(this.multipleStatus.after,this.multipleStatus.before),this.lastHover=!0):(this.multipleStatus.before=e,this.multipleStatus.after=void 0,this.lastHover=!1);this.getWeeks(e)}setHoverMultiple(e){if(!this.range||this.lastHover)return;const{before:t}=this.multipleStatus;t?(this.multipleStatus.after=e,ee(this.multipleStatus.before,this.multipleStatus.after)?this.multipleStatus.data=this.geDateAll(this.multipleStatus.before,this.multipleStatus.after):this.multipleStatus.data=this.geDateAll(this.multipleStatus.after,this.multipleStatus.before)):this.multipleStatus.before=e,this.getWeeks(e)}setDefaultMultiple(e,t){this.multipleStatus.before=e,this.multipleStatus.after=t,e&&t&&(ee(e,t)?(this.multipleStatus.data=this.geDateAll(e,t),this.getWeeks(t)):(this.multipleStatus.data=this.geDateAll(t,e),this.getWeeks(e)))}getWeeks(e){const{year:t,month:n}=this.getDateObj(e),i=new Date(t,n-1,1).getDay(),a=this.getPreMonthDays(i,this.getDateObj(e)),s=new Date(t,n,0).getDate(),r=42-i-s,o=[...a,...this.getCurrentMonthDays(s,this.getDateObj(e)),...this._getNextMonthDays(r,this.getDateObj(e))],l=new Array(6);for(let c=0;c{setTimeout((()=>{this.aniMaskShow=!0}),50)}))},close(){this.aniMaskShow=!1,this.$nextTick((()=>{setTimeout((()=>{this.show=!1,this.$emit("close")}),300)}))},confirm(){this.setEmit("confirm"),this.close()},change(e){(this.insert||e)&&this.setEmit("change")},monthSwitch(){let{year:e,month:t}=this.nowDate;this.$emit("monthSwitch",{year:e,month:Number(t)})},setEmit(e){this.range||(this.calendar.fullDate||(this.calendar=this.cale.getInfo(new Date),this.tempSingleDate=this.calendar.fullDate),this.hasTime&&!this.time&&(this.time=Z(new Date,this.hideSecond)));let{year:t,month:n,date:i,fullDate:a,extraInfo:s}=this.calendar;this.$emit(e,{range:this.cale.multipleStatus,year:t,month:n,date:i,time:this.time,timeRange:this.timeRange,fulldate:a,extraInfo:s||{}})},choiceDate(e){if(e.disable)return;this.calendar=e,this.calendar.userChecked=!0,this.cale.setMultiple(this.calendar.fullDate,!0),this.weeks=this.cale.weeks,this.tempSingleDate=this.calendar.fullDate;const t=new Date(this.cale.multipleStatus.before).getTime(),n=new Date(this.cale.multipleStatus.after).getTime();t>n&&n?(this.tempRange.before=this.cale.multipleStatus.after,this.tempRange.after=this.cale.multipleStatus.before):(this.tempRange.before=this.cale.multipleStatus.before,this.tempRange.after=this.cale.multipleStatus.after),this.change(!0)},changeMonth(e){let t;"pre"===e?t=this.cale.getPreMonthObj(this.nowDate.fullDate).fullDate:"next"===e&&(t=this.cale.getNextMonthObj(this.nowDate.fullDate).fullDate),this.setDate(t),this.monthSwitch()},setDate(e){this.cale.setDate(e),this.weeks=this.cale.weeks,this.nowDate=this.cale.getInfo(e)}}};const be={name:"UniDatetimePicker",options:{virtualHost:!0},components:{Calendar:q(Se,[["render",function(t,i,a,s,r,o){const l=e.resolveComponent("calendar-item"),c=e.resolveComponent("time-picker"),u=n(e.resolveDynamicComponent("uni-icons"),W);return e.openBlock(),e.createElementBlock("view",{class:"uni-calendar",onMouseleave:i[8]||(i[8]=(...e)=>o.leaveCale&&o.leaveCale(...e))},[!a.insert&&r.show?(e.openBlock(),e.createElementBlock("view",{key:0,class:e.normalizeClass(["uni-calendar__mask",{"uni-calendar--mask-show":r.aniMaskShow}]),onClick:i[0]||(i[0]=(...e)=>o.maskClick&&o.maskClick(...e))},null,2)):e.createCommentVNode("",!0),a.insert||r.show?(e.openBlock(),e.createElementBlock("view",{key:1,class:e.normalizeClass(["uni-calendar__content",{"uni-calendar--fixed":!a.insert,"uni-calendar--ani-show":r.aniMaskShow,"uni-calendar__content-mobile":r.aniMaskShow}])},[e.createElementVNode("view",{class:e.normalizeClass(["uni-calendar__header",{"uni-calendar__header-mobile":!a.insert}])},[e.createElementVNode("view",{class:"uni-calendar__header-btn-box",onClick:i[1]||(i[1]=e.withModifiers((e=>o.changeMonth("pre")),["stop"]))},[e.createElementVNode("view",{class:"uni-calendar__header-btn uni-calendar--left"})]),e.createElementVNode("picker",{mode:"date",value:a.date,fields:"month",onChange:i[2]||(i[2]=(...e)=>o.bindDateChange&&o.bindDateChange(...e))},[e.createElementVNode("text",{class:"uni-calendar__header-text"},e.toDisplayString((r.nowDate.year||"")+o.yearText+(r.nowDate.month||"")+o.monthText),1)],40,["value"]),e.createElementVNode("view",{class:"uni-calendar__header-btn-box",onClick:i[3]||(i[3]=e.withModifiers((e=>o.changeMonth("next")),["stop"]))},[e.createElementVNode("view",{class:"uni-calendar__header-btn uni-calendar--right"})]),a.insert?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("view",{key:0,class:"dialog-close",onClick:i[4]||(i[4]=(...e)=>o.maskClick&&o.maskClick(...e))},[e.createElementVNode("view",{class:"dialog-close-plus","data-id":"close"}),e.createElementVNode("view",{class:"dialog-close-plus dialog-close-rotate","data-id":"close"})]))],2),e.createElementVNode("view",{class:"uni-calendar__box"},[a.showMonth?(e.openBlock(),e.createElementBlock("view",{key:0,class:"uni-calendar__box-bg"},[e.createElementVNode("text",{class:"uni-calendar__box-bg-text"},e.toDisplayString(r.nowDate.month),1)])):e.createCommentVNode("",!0),e.createElementVNode("view",{class:"uni-calendar__weeks",style:{"padding-bottom":"7px"}},[e.createElementVNode("view",{class:"uni-calendar__weeks-day"},[e.createElementVNode("text",{class:"uni-calendar__weeks-day-text"},e.toDisplayString(o.SUNText),1)]),e.createElementVNode("view",{class:"uni-calendar__weeks-day"},[e.createElementVNode("text",{class:"uni-calendar__weeks-day-text"},e.toDisplayString(o.MONText),1)]),e.createElementVNode("view",{class:"uni-calendar__weeks-day"},[e.createElementVNode("text",{class:"uni-calendar__weeks-day-text"},e.toDisplayString(o.TUEText),1)]),e.createElementVNode("view",{class:"uni-calendar__weeks-day"},[e.createElementVNode("text",{class:"uni-calendar__weeks-day-text"},e.toDisplayString(o.WEDText),1)]),e.createElementVNode("view",{class:"uni-calendar__weeks-day"},[e.createElementVNode("text",{class:"uni-calendar__weeks-day-text"},e.toDisplayString(o.THUText),1)]),e.createElementVNode("view",{class:"uni-calendar__weeks-day"},[e.createElementVNode("text",{class:"uni-calendar__weeks-day-text"},e.toDisplayString(o.FRIText),1)]),e.createElementVNode("view",{class:"uni-calendar__weeks-day"},[e.createElementVNode("text",{class:"uni-calendar__weeks-day-text"},e.toDisplayString(o.SATText),1)])]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.weeks,((t,n)=>(e.openBlock(),e.createElementBlock("view",{class:"uni-calendar__weeks",key:n},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t,((t,n)=>(e.openBlock(),e.createElementBlock("view",{class:"uni-calendar__weeks-item",key:n},[e.createVNode(l,{class:"uni-calendar-item--hook",weeks:t,calendar:r.calendar,selected:a.selected,checkHover:a.range,onChange:o.choiceDate,onHandleMouse:o.handleMouse},null,8,["weeks","calendar","selected","checkHover","onChange","onHandleMouse"])])))),128))])))),128))]),a.insert||a.range||!a.hasTime?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("view",{key:0,class:"uni-date-changed uni-calendar--fixed-top",style:{padding:"0 80px"}},[e.createElementVNode("view",{class:"uni-date-changed--time-date"},e.toDisplayString(r.tempSingleDate?r.tempSingleDate:o.selectDateText),1),e.createVNode(c,{type:"time",start:o.timepickerStartTime,end:o.timepickerEndTime,modelValue:r.time,"onUpdate:modelValue":i[5]||(i[5]=e=>r.time=e),disabled:!r.tempSingleDate,border:!1,"hide-second":a.hideSecond,class:"time-picker-style"},null,8,["start","end","modelValue","disabled","hide-second"])])),!a.insert&&a.range&&a.hasTime?(e.openBlock(),e.createElementBlock("view",{key:1,class:"uni-date-changed uni-calendar--fixed-top"},[e.createElementVNode("view",{class:"uni-date-changed--time-start"},[e.createElementVNode("view",{class:"uni-date-changed--time-date"},e.toDisplayString(r.tempRange.before?r.tempRange.before:o.startDateText),1),e.createVNode(c,{type:"time",start:o.timepickerStartTime,modelValue:r.timeRange.startTime,"onUpdate:modelValue":i[6]||(i[6]=e=>r.timeRange.startTime=e),border:!1,"hide-second":a.hideSecond,disabled:!r.tempRange.before,class:"time-picker-style"},null,8,["start","modelValue","hide-second","disabled"])]),e.createElementVNode("view",{style:{"line-height":"50px"}},[e.createVNode(u,{type:"arrowthinright",color:"#999"})]),e.createElementVNode("view",{class:"uni-date-changed--time-end"},[e.createElementVNode("view",{class:"uni-date-changed--time-date"},e.toDisplayString(r.tempRange.after?r.tempRange.after:o.endDateText),1),e.createVNode(c,{type:"time",end:o.timepickerEndTime,modelValue:r.timeRange.endTime,"onUpdate:modelValue":i[7]||(i[7]=e=>r.timeRange.endTime=e),border:!1,"hide-second":a.hideSecond,disabled:!r.tempRange.after,class:"time-picker-style"},null,8,["end","modelValue","hide-second","disabled"])])])):e.createCommentVNode("",!0),a.insert?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("view",{key:2,class:"uni-date-changed uni-date-btn--ok"}))],2)):e.createCommentVNode("",!0)],32)}],["__scopeId","data-v-8dc4a3ee"]]),TimePicker:ke},data:()=>({isRange:!1,hasTime:!1,displayValue:"",inputDate:"",calendarDate:"",pickerTime:"",calendarRange:{startDate:"",startTime:"",endDate:"",endTime:""},displayRangeValue:{startDate:"",endDate:""},tempRange:{startDate:"",startTime:"",endDate:"",endTime:""},startMultipleStatus:{before:"",after:"",data:[],fulldate:""},endMultipleStatus:{before:"",after:"",data:[],fulldate:""},pickerVisible:!1,pickerPositionStyle:null,isEmitValue:!1,isPhone:!1,isFirstShow:!0,i18nT:()=>{}}),props:{type:{type:String,default:"datetime"},value:{type:[String,Number,Array,Date],default:""},modelValue:{type:[String,Number,Array,Date],default:""},start:{type:[Number,String],default:""},end:{type:[Number,String],default:""},returnType:{type:String,default:"string"},placeholder:{type:String,default:""},startPlaceholder:{type:String,default:""},endPlaceholder:{type:String,default:""},rangeSeparator:{type:String,default:"-"},border:{type:[Boolean],default:!0},disabled:{type:[Boolean],default:!1},clearIcon:{type:[Boolean],default:!0},hideSecond:{type:[Boolean],default:!1},defaultValue:{type:[String,Object,Array],default:""}},watch:{type:{immediate:!0,handler(e){this.hasTime=-1!==e.indexOf("time"),this.isRange=-1!==e.indexOf("range")}},modelValue:{immediate:!0,handler(e){this.isEmitValue?this.isEmitValue=!1:this.initPicker(e)}},start:{immediate:!0,handler(e){e&&(this.calendarRange.startDate=G(e),this.hasTime&&(this.calendarRange.startTime=Z(e)))}},end:{immediate:!0,handler(e){e&&(this.calendarRange.endDate=G(e),this.hasTime&&(this.calendarRange.endTime=Z(e,this.hideSecond)))}}},computed:{timepickerStartTime(){return(this.isRange?this.tempRange.startDate:this.inputDate)===this.calendarRange.startDate?this.calendarRange.startTime:""},timepickerEndTime(){return(this.isRange?this.tempRange.endDate:this.inputDate)===this.calendarRange.endDate?this.calendarRange.endTime:""},mobileCalendarTime(){const e={start:this.tempRange.startTime,end:this.tempRange.endTime};return this.isRange?e:this.pickerTime},mobSelectableTime(){return{start:this.calendarRange.startTime,end:this.calendarRange.endTime}},datePopupWidth(){return this.isRange?653:301},singlePlaceholderText(){return this.placeholder||("date"===this.type?this.selectDateText:this.selectDateTimeText)},startPlaceholderText(){return this.startPlaceholder||this.startDateText},endPlaceholderText(){return this.endPlaceholder||this.endDateText},selectDateText(){return this.i18nT("uni-datetime-picker.selectDate")},selectDateTimeText(){return this.i18nT("uni-datetime-picker.selectDateTime")},selectTimeText(){return this.i18nT("uni-datetime-picker.selectTime")},startDateText(){return this.startPlaceholder||this.i18nT("uni-datetime-picker.startDate")},startTimeText(){return this.i18nT("uni-datetime-picker.startTime")},endDateText(){return this.endPlaceholder||this.i18nT("uni-datetime-picker.endDate")},endTimeText(){return this.i18nT("uni-datetime-picker.endTime")},okText(){return this.i18nT("uni-datetime-picker.ok")},clearText(){return this.i18nT("uni-datetime-picker.clear")},showClearIcon(){return this.clearIcon&&!this.disabled&&(this.displayValue||this.displayRangeValue.startDate&&this.displayRangeValue.endDate)}},created(){this.initI18nT(),this.platform()},methods:{initI18nT(){const e=ge(ve);this.i18nT=e.t},initPicker(e){if(!e&&!this.defaultValue||Array.isArray(e)&&!e.length)this.$nextTick((()=>{this.clear(!1)}));else if(Array.isArray(e)||this.isRange){const[t,n]=e;if(!t&&!n)return;const i=G(t),a=Z(t,this.hideSecond),s=G(n),r=Z(n,this.hideSecond),o=i,l=s;this.displayRangeValue.startDate=this.tempRange.startDate=o,this.displayRangeValue.endDate=this.tempRange.endDate=l,this.hasTime&&(this.displayRangeValue.startDate=`${i} ${a}`,this.displayRangeValue.endDate=`${s} ${r}`,this.tempRange.startTime=a,this.tempRange.endTime=r);const c={before:i,after:s};this.startMultipleStatus=Object.assign({},this.startMultipleStatus,c,{which:"right"}),this.endMultipleStatus=Object.assign({},this.endMultipleStatus,c,{which:"left"})}else e?(this.displayValue=this.inputDate=this.calendarDate=G(e),this.hasTime&&(this.pickerTime=Z(e,this.hideSecond),this.displayValue=`${this.displayValue} ${this.pickerTime}`)):this.defaultValue&&(this.inputDate=this.calendarDate=G(this.defaultValue),this.hasTime&&(this.pickerTime=Z(this.defaultValue,this.hideSecond)))},updateLeftCale(e){const t=this.$refs.left;t.cale.setHoverMultiple(e.after),t.setDate(this.$refs.left.nowDate.fullDate)},updateRightCale(e){const t=this.$refs.right;t.cale.setHoverMultiple(e.after),t.setDate(this.$refs.right.nowDate.fullDate)},platform(){if("undefined"!=typeof navigator)return void(this.isPhone=-1!==navigator.userAgent.toLowerCase().indexOf("mobile"));const{windowWidth:e}=uni.getSystemInfoSync();this.isPhone=e<=500,this.windowWidth=e},show(){if(this.$emit("show"),this.disabled)return;if(this.platform(),this.isPhone)return void setTimeout((()=>{this.$refs.mobile.open()}),0);this.pickerPositionStyle={top:"10px"};uni.createSelectorQuery().in(this).select(".uni-date-editor").boundingClientRect((e=>{this.windowWidth-e.left{if(this.pickerVisible=!this.pickerVisible,!this.isPhone&&this.isRange&&this.isFirstShow){this.isFirstShow=!1;const{startDate:e,endDate:t}=this.calendarRange;e&&t?this.diffDate(e,t)<30&&this.$refs.right.changeMonth("pre"):this.isPhone&&(this.$refs.right.cale.lastHover=!1)}}),50)},close(){setTimeout((()=>{this.pickerVisible=!1,this.$emit("maskClick",this.value),this.$refs.mobile&&this.$refs.mobile.close()}),20)},setEmit(e){"timestamp"!==this.returnType&&"date"!==this.returnType||(Array.isArray(e)?(this.hasTime||(e[0]=e[0]+" 00:00:00",e[1]=e[1]+" 00:00:00"),e[0]=this.createTimestamp(e[0]),e[1]=this.createTimestamp(e[1]),"date"===this.returnType&&(e[0]=new Date(e[0]),e[1]=new Date(e[1]))):(this.hasTime||(e+=" 00:00:00"),e=this.createTimestamp(e),"date"===this.returnType&&(e=new Date(e)))),this.$emit("update:modelValue",e),this.$emit("input",e),this.$emit("change",e),this.isEmitValue=!0},createTimestamp:e=>(e=ie(e),Date.parse(new Date(e))),singleChange(e){this.calendarDate=this.inputDate=e.fulldate,this.hasTime||this.confirmSingleChange()},confirmSingleChange(){if(!te(this.inputDate)){const e=new Date;this.calendarDate=this.inputDate=G(e),this.pickerTime=Z(e,this.hideSecond)}let e,t,n=!1;if(this.start){let i=this.start;"number"==typeof this.start&&(i=Y(this.start,this.hideSecond)),[e,t]=i.split(" "),this.start&&!ee(e,this.inputDate)&&(n=!0,this.inputDate=e)}let i,a,s=!1;if(this.end){let e=this.end;"number"==typeof this.end&&(e=Y(this.end,this.hideSecond)),[i,a]=e.split(" "),this.end&&!ee(this.inputDate,i)&&(s=!0,this.inputDate=i)}this.hasTime?(n&&(this.pickerTime=t||X(this.hideSecond)),s&&(this.pickerTime=a||X(this.hideSecond)),this.pickerTime||(this.pickerTime=Z(Date.now(),this.hideSecond)),this.displayValue=`${this.inputDate} ${this.pickerTime}`):this.displayValue=this.inputDate,this.setEmit(this.displayValue),this.pickerVisible=!1},leftChange(e){const{before:t,after:n}=e.range;this.rangeChange(t,n);const i={before:e.range.before,after:e.range.after,data:e.range.data,fulldate:e.fulldate};this.startMultipleStatus=Object.assign({},this.startMultipleStatus,i),this.$emit("calendarClick",e)},rightChange(e){const{before:t,after:n}=e.range;this.rangeChange(t,n);const i={before:e.range.before,after:e.range.after,data:e.range.data,fulldate:e.fulldate};this.endMultipleStatus=Object.assign({},this.endMultipleStatus,i),this.$emit("calendarClick",e)},mobileChange(e){if(this.isRange){const{before:t,after:n}=e.range;if(!t)return;if(this.handleStartAndEnd(t,n,!0),this.hasTime){const{startTime:t,endTime:n}=e.timeRange;this.tempRange.startTime=t,this.tempRange.endTime=n}this.confirmRangeChange()}else this.hasTime?this.displayValue=e.fulldate+" "+e.time:this.displayValue=e.fulldate,this.setEmit(this.displayValue);this.$refs.mobile.close()},rangeChange(e,t){e&&t&&(this.handleStartAndEnd(e,t,!0),this.hasTime||this.confirmRangeChange())},confirmRangeChange(){if(!this.tempRange.startDate||!this.tempRange.endDate)return void(this.pickerVisible=!1);let e,t;te(this.tempRange.startDate)||(this.tempRange.startDate=G(Date.now())),te(this.tempRange.endDate)||(this.tempRange.endDate=G(Date.now()));let n,i,a=!1,s=!1;if(this.start){let e=this.start;"number"==typeof this.start&&(e=Y(this.start,this.hideSecond)),[n,i]=e.split(" "),this.start&&!ee(this.start,this.tempRange.startDate)&&(a=!0,this.tempRange.startDate=n),this.start&&!ee(this.start,this.tempRange.endDate)&&(s=!0,this.tempRange.endDate=n)}let r,o,l=!1,c=!1;if(this.end){let e=this.end;"number"==typeof this.end&&(e=Y(this.end,this.hideSecond)),[r,o]=e.split(" "),this.end&&!ee(this.tempRange.startDate,this.end)&&(l=!0,this.tempRange.startDate=r),this.end&&!ee(this.tempRange.endDate,this.end)&&(c=!0,this.tempRange.endDate=r)}this.hasTime?(a?this.tempRange.startTime=i||X(this.hideSecond):l&&(this.tempRange.startTime=o||X(this.hideSecond)),this.tempRange.startTime||(this.tempRange.startTime=Z(Date.now(),this.hideSecond)),s?this.tempRange.endTime=i||X(this.hideSecond):c&&(this.tempRange.endTime=o||X(this.hideSecond)),this.tempRange.endTime||(this.tempRange.endTime=Z(Date.now(),this.hideSecond)),e=this.displayRangeValue.startDate=`${this.tempRange.startDate} ${this.tempRange.startTime}`,t=this.displayRangeValue.endDate=`${this.tempRange.endDate} ${this.tempRange.endTime}`):(e=this.displayRangeValue.startDate=this.tempRange.startDate,t=this.displayRangeValue.endDate=this.tempRange.endDate),ee(e,t)||([e,t]=[t,e]),this.displayRangeValue.startDate=e,this.displayRangeValue.endDate=t;const u=[e,t];this.setEmit(u),this.pickerVisible=!1},handleStartAndEnd(e,t,n=!1){if(!e)return;t||(t=e);const i=n?"tempRange":"range",a=ee(e,t);this[i].startDate=a?e:t,this[i].endDate=a?t:e},dateCompare:(e,t)=>(e=new Date(e.replace("-","/").replace("-","/")))<=(t=new Date(t.replace("-","/").replace("-","/"))),diffDate(e,t){e=new Date(e.replace("-","/").replace("-","/"));const n=((t=new Date(t.replace("-","/").replace("-","/")))-e)/864e5;return Math.abs(n)},clear(e=!0){this.isRange?(this.displayRangeValue.startDate="",this.displayRangeValue.endDate="",this.tempRange.startDate="",this.tempRange.startTime="",this.tempRange.endDate="",this.tempRange.endTime="",this.isPhone?this.$refs.mobile&&this.$refs.mobile.clearCalender():(this.$refs.left&&this.$refs.left.clearCalender(),this.$refs.right&&this.$refs.right.clearCalender(),this.$refs.right&&this.$refs.right.changeMonth("next")),e&&(this.$emit("change",[]),this.$emit("input",[]),this.$emit("update:modelValue",[]))):(this.displayValue="",this.inputDate="",this.pickerTime="",this.isPhone?this.$refs.mobile&&this.$refs.mobile.clearCalender():this.$refs.pcSingle&&this.$refs.pcSingle.clearCalender(),e&&(this.$emit("change",""),this.$emit("input",""),this.$emit("update:modelValue","")))},calendarClick(e){this.$emit("calendarClick",e)}}};const Ee=q(be,[["render",function(t,i,a,s,r,o){const l=n(e.resolveDynamicComponent("uni-icons"),W),c=e.resolveComponent("time-picker"),u=e.resolveComponent("Calendar");return e.openBlock(),e.createElementBlock("view",{class:"uni-date"},[e.createElementVNode("view",{class:"uni-date-editor",onClick:i[1]||(i[1]=(...e)=>o.show&&o.show(...e))},[e.renderSlot(t.$slots,"default",{},(()=>[e.createElementVNode("view",{class:e.normalizeClass(["uni-date-editor--x",{"uni-date-editor--x__disabled":a.disabled,"uni-date-x--border":a.border}])},[r.isRange?(e.openBlock(),e.createElementBlock("view",{key:1,class:"uni-date-x uni-date-range"},[e.createVNode(l,{class:"icon-calendar",type:"calendar",color:"#c0c4cc",size:"22"}),e.createElementVNode("view",{class:"uni-date__x-input text-center"},e.toDisplayString(r.displayRangeValue.startDate||o.startPlaceholderText),1),e.createElementVNode("view",{class:"range-separator"},e.toDisplayString(a.rangeSeparator),1),e.createElementVNode("view",{class:"uni-date__x-input text-center"},e.toDisplayString(r.displayRangeValue.endDate||o.endPlaceholderText),1)])):(e.openBlock(),e.createElementBlock("view",{key:0,class:"uni-date-x uni-date-single"},[e.createVNode(l,{class:"icon-calendar",type:"calendar",color:"#c0c4cc",size:"22"}),e.createElementVNode("view",{class:"uni-date__x-input"},e.toDisplayString(r.displayValue||o.singlePlaceholderText),1)])),o.showClearIcon?(e.openBlock(),e.createElementBlock("view",{key:2,class:"uni-date__icon-clear",onClick:i[0]||(i[0]=e.withModifiers(((...e)=>o.clear&&o.clear(...e)),["stop"]))},[e.createVNode(l,{type:"clear",color:"#c0c4cc",size:"22"})])):e.createCommentVNode("",!0)],2)]),!0)]),e.withDirectives(e.createElementVNode("view",{class:"uni-date-mask--pc",onClick:i[2]||(i[2]=(...e)=>o.close&&o.close(...e))},null,512),[[e.vShow,r.pickerVisible]]),r.isPhone?e.createCommentVNode("",!0):e.withDirectives((e.openBlock(),e.createElementBlock("view",{key:0,ref:"datePicker",class:"uni-date-picker__container"},[r.isRange?(e.openBlock(),e.createElementBlock("view",{key:1,class:"uni-date-range--x",style:e.normalizeStyle(r.pickerPositionStyle)},[e.createElementVNode("view",{class:"uni-popper__arrow"}),r.hasTime?(e.openBlock(),e.createElementBlock("view",{key:0,class:"popup-x-header uni-date-changed"},[e.createElementVNode("view",{class:"popup-x-header--datetime"},[e.withDirectives(e.createElementVNode("input",{class:"uni-date__input uni-date-range__input",type:"text","onUpdate:modelValue":i[7]||(i[7]=e=>r.tempRange.startDate=e),placeholder:o.startDateText},null,8,["placeholder"]),[[e.vModelText,r.tempRange.startDate]]),e.createVNode(c,{type:"time",modelValue:r.tempRange.startTime,"onUpdate:modelValue":i[9]||(i[9]=e=>r.tempRange.startTime=e),start:o.timepickerStartTime,border:!1,disabled:!r.tempRange.startDate,hideSecond:a.hideSecond},{default:e.withCtx((()=>[e.withDirectives(e.createElementVNode("input",{class:"uni-date__input uni-date-range__input",type:"text","onUpdate:modelValue":i[8]||(i[8]=e=>r.tempRange.startTime=e),placeholder:o.startTimeText,disabled:!r.tempRange.startDate},null,8,["placeholder","disabled"]),[[e.vModelText,r.tempRange.startTime]])])),_:1},8,["modelValue","start","disabled","hideSecond"])]),e.createVNode(l,{type:"arrowthinright",color:"#999",style:{"line-height":"40px"}}),e.createElementVNode("view",{class:"popup-x-header--datetime"},[e.withDirectives(e.createElementVNode("input",{class:"uni-date__input uni-date-range__input",type:"text","onUpdate:modelValue":i[10]||(i[10]=e=>r.tempRange.endDate=e),placeholder:o.endDateText},null,8,["placeholder"]),[[e.vModelText,r.tempRange.endDate]]),e.createVNode(c,{type:"time",modelValue:r.tempRange.endTime,"onUpdate:modelValue":i[12]||(i[12]=e=>r.tempRange.endTime=e),end:o.timepickerEndTime,border:!1,disabled:!r.tempRange.endDate,hideSecond:a.hideSecond},{default:e.withCtx((()=>[e.withDirectives(e.createElementVNode("input",{class:"uni-date__input uni-date-range__input",type:"text","onUpdate:modelValue":i[11]||(i[11]=e=>r.tempRange.endTime=e),placeholder:o.endTimeText,disabled:!r.tempRange.endDate},null,8,["placeholder","disabled"]),[[e.vModelText,r.tempRange.endTime]])])),_:1},8,["modelValue","end","disabled","hideSecond"])])])):e.createCommentVNode("",!0),e.createElementVNode("view",{class:"popup-x-body"},[e.createVNode(u,{ref:"left",showMonth:!1,"start-date":r.calendarRange.startDate,"end-date":r.calendarRange.endDate,range:!0,pleStatus:r.endMultipleStatus,onChange:o.leftChange,onFirstEnterCale:o.updateRightCale,style:{padding:"0 8px"}},null,8,["start-date","end-date","pleStatus","onChange","onFirstEnterCale"]),e.createVNode(u,{ref:"right",showMonth:!1,"start-date":r.calendarRange.startDate,"end-date":r.calendarRange.endDate,range:!0,onChange:o.rightChange,pleStatus:r.startMultipleStatus,onFirstEnterCale:o.updateLeftCale,style:{padding:"0 8px","border-left":"1px solid #F1F1F1"}},null,8,["start-date","end-date","onChange","pleStatus","onFirstEnterCale"])]),r.hasTime?(e.openBlock(),e.createElementBlock("view",{key:1,class:"popup-x-footer"},[e.createElementVNode("text",{onClick:i[13]||(i[13]=(...e)=>o.clear&&o.clear(...e))},e.toDisplayString(o.clearText),1),e.createElementVNode("text",{class:"confirm-text",onClick:i[14]||(i[14]=(...e)=>o.confirmRangeChange&&o.confirmRangeChange(...e))},e.toDisplayString(o.okText),1)])):e.createCommentVNode("",!0)],4)):(e.openBlock(),e.createElementBlock("view",{key:0,class:"uni-date-single--x",style:e.normalizeStyle(r.pickerPositionStyle)},[e.createElementVNode("view",{class:"uni-popper__arrow"}),r.hasTime?(e.openBlock(),e.createElementBlock("view",{key:0,class:"uni-date-changed popup-x-header"},[e.withDirectives(e.createElementVNode("input",{class:"uni-date__input text-center",type:"text","onUpdate:modelValue":i[3]||(i[3]=e=>r.inputDate=e),placeholder:o.selectDateText},null,8,["placeholder"]),[[e.vModelText,r.inputDate]]),e.createVNode(c,{type:"time",modelValue:r.pickerTime,"onUpdate:modelValue":i[5]||(i[5]=e=>r.pickerTime=e),border:!1,disabled:!r.inputDate,start:o.timepickerStartTime,end:o.timepickerEndTime,hideSecond:a.hideSecond,style:{width:"100%"}},{default:e.withCtx((()=>[e.withDirectives(e.createElementVNode("input",{class:"uni-date__input text-center",type:"text","onUpdate:modelValue":i[4]||(i[4]=e=>r.pickerTime=e),placeholder:o.selectTimeText,disabled:!r.inputDate},null,8,["placeholder","disabled"]),[[e.vModelText,r.pickerTime]])])),_:1},8,["modelValue","disabled","start","end","hideSecond"])])):e.createCommentVNode("",!0),e.createVNode(u,{ref:"pcSingle",showMonth:!1,"start-date":r.calendarRange.startDate,"end-date":r.calendarRange.endDate,date:r.calendarDate,onChange:o.singleChange,"default-value":a.defaultValue,style:{padding:"0 8px"}},null,8,["start-date","end-date","date","onChange","default-value"]),r.hasTime?(e.openBlock(),e.createElementBlock("view",{key:1,class:"popup-x-footer"},[e.createElementVNode("text",{class:"confirm-text",onClick:i[6]||(i[6]=(...e)=>o.confirmSingleChange&&o.confirmSingleChange(...e))},e.toDisplayString(o.okText),1)])):e.createCommentVNode("",!0)],4))],512)),[[e.vShow,r.pickerVisible]]),r.isPhone?(e.openBlock(),e.createBlock(u,{key:1,ref:"mobile",clearDate:!1,date:r.calendarDate,defTime:o.mobileCalendarTime,"start-date":r.calendarRange.startDate,"end-date":r.calendarRange.endDate,selectableTimes:o.mobSelectableTime,startPlaceholder:a.startPlaceholder,endPlaceholder:a.endPlaceholder,"default-value":a.defaultValue,pleStatus:r.endMultipleStatus,showMonth:!1,range:r.isRange,hasTime:r.hasTime,insert:!1,hideSecond:a.hideSecond,onConfirm:o.mobileChange,onMaskClose:o.close,onChange:o.calendarClick},null,8,["date","defTime","start-date","end-date","selectableTimes","startPlaceholder","endPlaceholder","default-value","pleStatus","range","hasTime","hideSecond","onConfirm","onMaskClose","onChange"])):e.createCommentVNode("",!0)])}],["__scopeId","data-v-17511ee3"]]),xe=q({__name:"customNav",setup(t){e.useCssVars((e=>({bc08538a:n})));const n=wx.getSystemInfoSync().statusBarHeight+44+"px";return(t,n)=>(e.openBlock(),e.createElementBlock("view",{class:""},[e.createElementVNode("view",{class:"nav"},[e.renderSlot(t.$slots,"default",{},void 0,!0)]),e.createElementVNode("view",{class:"place"})]))}},[["__scopeId","data-v-566e182b"]]),De="https://36.112.48.190/jeecg-boot/sys/common/static/",Te=(e,t,n)=>{uni.showToast({title:e,icon:t||"none",duration:n||2e3})},Ne=(e,n)=>{d({token:H().token,type:"mobile"}).then((t=>{var i;if(t.success){Ce((null==(i=t.result)?void 0:i.menu)||[]).some((t=>-1!==e.indexOf(t)))?n():Te("无查看权限!")}})).catch((e=>{t("log","at utils/index.js:35","err@",e)}))},Ce=(e,t=[])=>e.length?(e.forEach((e=>{e.children&&t.push(...Ce(e.children)),t.push(e.path)})),t):[];function Ve(e){t("log","at utils/index.js:78","url",e);var n=plus.downloader.createDownload(e,{filename:`_downloads/wgt-${Date.now()}.wgt`},(function(e,n){if(200==n){var i=plus.io.convertLocalFileSystemURL(e.filename);t("log","at utils/index.js:86","fileSaveUrl",i),a=i,plus.runtime.install(a,{force:!0},(()=>{uni.showModal({title:"更新",content:"更新成功,请点击确认后重启",showCancel:!1,success(e){e.confirm&&plus.runtime.restart()}})}),(()=>uni.showToast({title:"安装失败!",icon:"error"})))}else plus.downloader.clear(),uni.showToast({title:"App下载失败!",icon:"error"});var a}));let i=plus.nativeUI.showWaiting("正在下載");n.start(),n.addEventListener("statechanged",((e,t)=>{switch(e.state){case 1:i.setTitle("正在下载");break;case 2:i.setTitle("已连接到服务器");break;case 3:parseInt(parseFloat(e.downloadedSize)/parseFloat(e.totalSize)*100),i.setTitle(" 正在下载");break;case 4:plus.nativeUI.closeWaiting()}}))}const Ie=()=>{let e=new Date;return(new Date).getTime(),`${e.getFullYear()}-${(e.getMonth()+1).toString().padStart(2,0)}-${e.getDate().toString().padStart(2,0)}`},Be=()=>{const e=H();e.positionSwitch?(Te("定位刷新中"),uni.getLocation({type:"wgs84",success:function(n){uni.request({url:"http://api.tianditu.gov.cn/geocoder",method:"GET",data:{postStr:JSON.stringify({lon:n.longitude,lat:n.latitude,ver:1}),type:"geocode",tk:"30fe0f0c1b2320e112bde797f3ddaff4"},success:function(i){let a=i.data;if(0==a.status){const t=a.result.addressComponent;let i=t.city?t.city:t.province;uni.setStorageSync("position",i),e.setPosition(i),Ae(n.latitude,n.longitude)}else t("log","at utils/index.js:223",a.message)},fail:function(e){Te("获取定位失败")}})}})):(uni.setStorageSync("position","濮阳市"),e.setPosition("濮阳市"),Ae())},Ae=(e,t)=>{let n={};H().positionSwitch?(n.lat=e,n.lon=t,Me(n)):(n.q="濮阳市",Me(n))},Me=e=>{const t=H();uni.request({url:"https://api.openweathermap.org/data/2.5/weather",method:"GET",data:{...e,appid:"600a60694b0e453dfbaafa862f1d1482",lang:"zh_cn"},success:function(e){uni.setStorageSync("wendu",Math.round(e.data.main.temp-273.15)),uni.setStorageSync("wenduIcon",e.data.weather[0].icon),t.setWeather(Math.round(e.data.main.temp-273.15),e.data.weather[0].icon)},fail:function(e){Te("天气获取失败")}})},Pe=e=>{uni.downloadFile({url:De+e,success:function(e){var t=e.tempFilePath;uni.openDocument({filePath:t,showMenu:!0,fail:function(e){Te(e.errMsg)}})},fail:function(e){t("error","at utils/index.js:282","文件下载失败",e)}})},Re=e=>`https://36.112.48.190/jeecg-boot/sys/common/static//${e}`,Oe=q({__name:"index",setup(i){e.useCssVars((e=>({"5184fac6":f})));const a=H();r((()=>{o(),E(),T()}));const s=e.ref([]),o=()=>{var e;(e={zslb:6},u({url:"/CxcDaping/cxcDaping/list",method:"get",data:e})).then((e=>{if(e.success){let t=e.result.records[0].wenjian.split(",");s.value=t.map((e=>"https://36.112.48.190/jeecg-boot/sys/common/static/"+e))}}))},c=e.ref(0),d=e.ref(0),h=["公文","公告","制度","法规"],p=e=>{d.value=e,_=1,S.value=[],x()},f=wx.getSystemInfoSync().statusBarHeight+44+"px";e.ref(null);const k=(e,t,n,i)=>{if(!t||1!=t||"detail"!=i){if(t&&3==t&&n)return Pe(n.mingcheng);t&&2==t&&(e+=`&zhiduid=${d.value}`),Ne(e,(()=>{uni.navigateTo({url:e})}))}};let _=1;const S=e.ref([]),b=e.ref([]),E=()=>{var e;u({url:"/zhgl_zbgl/zhglZbglZbb/homepageList",method:"get",data:e}).then((e=>{e.success&&(b.value=e.result.records.slice(0,2))})).catch((e=>{t("log","at pages/tab/index.vue:299","err",e)}))},x=()=>{(0==d.value?w:y)({pageNo:_,pageSize:5}).then((e=>{if(e.success){let t=0==d.value?"zbbm_dictText":"sbbm";S.value=[...S.value,...D(e.result.records,"zdmc",t,null)]}})).catch((e=>{t("log","at pages/tab/index.vue:332","err",e)}))},D=(e,t,n,i)=>(e.map((e=>{e._title=e[t],e._time=e[n],e._depart=e[i]})),e);l((()=>{S.value=[],o(),E(),T(),uni.stopPullDownRefresh()}));const T=()=>{0==c.value?m({pageNo:_,pageSize:5}).then((e=>{e.success&&(S.value=[...S.value,...D(e.result.records,"fwbt","fwtime",null)])})).catch((e=>{t("log","at pages/tab/index.vue:273","err",e)})):1==c.value?g({pageNo:_,pageSize:5}).then((e=>{e.success&&(S.value=[...S.value,...D(e.result.records,"neirong","fbdw","createTime")])})).catch((e=>{t("log","at pages/tab/index.vue:288","err",e)})):2==c.value?x():3==c.value&&v({pageNo:_,pageSize:5}).then((e=>{e.success&&(S.value=[...S.value,...D(e.result.records,"flfgmc","ssbm",null)])})).catch((e=>{t("log","at pages/tab/index.vue:315","err",e)}))};return(t,i)=>{const r=n(e.resolveDynamicComponent("uni-datetime-picker"),Ee);return e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass(["content",{gray:1==e.unref(a).isgray}])},[e.createElementVNode("view",{class:"nav"},[e.createElementVNode("view",{class:"nav_box f-row aic jcb"},[e.createElementVNode("view",{class:"weather_calender f-row aic"},[e.createElementVNode("view",{class:"position f-row aic"},[e.createElementVNode("image",{src:"/static/index/position.png",mode:""}),e.createElementVNode("text",null,e.toDisplayString(e.unref(a).position?e.unref(a).position:"暂未定位"),1)]),e.createElementVNode("view",{class:"position f-row aic"},[e.createElementVNode("image",{style:{height:"80rpx",width:"80rpx"},src:`http://openweathermap.org/img/w/${e.unref(a).wenduIcon}.png`,mode:""},null,8,["src"]),e.createElementVNode("text",null,e.toDisplayString(e.unref(a).wendu)+"℃",1)]),e.createVNode(r,{type:"date"},{default:e.withCtx((()=>[e.createElementVNode("view",{class:"position f-row aic"},[e.createElementVNode("image",{src:"/static/index/calendar.png",mode:""}),e.createElementVNode("text",null,e.toDisplayString(e.unref(Ie)()),1)])])),_:1})])])]),e.createElementVNode("view",{class:"f-col aic"},[e.createElementVNode("swiper",{class:"swiper",autoplay:""},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value,((t,n)=>(e.openBlock(),e.createElementBlock("swiper-item",{key:n,class:"swiper-item"},[e.createElementVNode("image",{src:t,mode:"aspectFill"},null,8,["src"])])))),128))])]),e.createElementVNode("view",{class:"wrapper f-col aic"},[e.createElementVNode("view",{class:"onduty"},[e.createElementVNode("view",{class:"title f-row aic jcb"},[e.createTextVNode(" 值班信息 "),e.createElementVNode("view",{class:"more",onClick:i[0]||(i[0]=e=>k("/pages/zhiban/index"))},[e.createTextVNode(" 查看更多 "),e.createElementVNode("image",{src:"/static/index/back.png",mode:""})])]),e.createElementVNode("view",{class:"info"},[e.createElementVNode("view",{class:"info_title f-row aic"},[e.createElementVNode("view",{class:""}," 日期 "),e.createElementVNode("view",{class:""}," 带班领导 "),e.createElementVNode("view",{class:""}," 值班领导 "),e.createElementVNode("view",{class:""}," 值班干部 ")]),e.createElementVNode("view",{class:"data_box"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(b.value,((t,n)=>(e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass(["data"," f-row","aic",{first:0==n}])},[e.createElementVNode("view",{class:""},e.toDisplayString(t.date),1),e.createElementVNode("view",{class:""},e.toDisplayString(t.dbld_dictText),1),e.createElementVNode("view",{class:""},e.toDisplayString(t.zbld_dictText),1),e.createElementVNode("view",{class:""},e.toDisplayString(t.zbgbrealname),1)],2)))),256))])])]),e.createElementVNode("view",{class:"list_wrapper"},[e.createElementVNode("view",{class:""},[e.createElementVNode("view",{class:"list_title f-row aic jca"},[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(h,((t,n)=>e.createElementVNode("view",{class:e.normalizeClass({active:c.value==n}),onClick:e=>(e=>{c.value=e,_=1,S.value=[],T()})(n)},e.toDisplayString(t),11,["onClick"]))),64))]),2==c.value?(e.openBlock(),e.createElementBlock("view",{key:0,class:"f-row aic zhidu"},[e.createElementVNode("view",{class:e.normalizeClass({active:0==d.value}),onClick:i[1]||(i[1]=e=>p(0))}," 厂级制度 ",2),e.createElementVNode("view",{class:e.normalizeClass({active:1==d.value}),onClick:i[2]||(i[2]=e=>p(1))}," 上级制度 ",2)])):e.createCommentVNode("",!0)]),e.createElementVNode("view",{style:{"padding-top":"24rpx"},class:"more",onClick:i[3]||(i[3]=e=>k(`/pages/document/index?id=${c.value}`,c.value))},[e.createTextVNode(" 查看更多 "),e.createElementVNode("image",{src:"/static/index/back.png",mode:""})]),e.createElementVNode("view",{class:"list_box"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(S.value,((t,n)=>(e.openBlock(),e.createElementBlock("view",{class:"list",key:n,onClick:e=>k(`/pages/document/detail?data=${JSON.stringify(t)}&id=${c.value}`,c.value,t,"detail")},[e.createElementVNode("view",{class:"topic"},e.toDisplayString(t._title),1),t._time||t._depart?(e.openBlock(),e.createElementBlock("view",{key:0,class:"time_Box f-row aic"},[t._time?(e.openBlock(),e.createElementBlock("view",{key:0,class:"time"},e.toDisplayString(t._time),1)):e.createCommentVNode("",!0),t._depart?(e.openBlock(),e.createElementBlock("view",{key:1,class:"look f-row aic"},e.toDisplayString(t._depart),1)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)],8,["onClick"])))),128))])])])],2)}}},[["__scopeId","data-v-d6ec6b55"]]),Le=q({__name:"extendCom",props:{title:{type:String,default:""},img:{type:String,default:""},list:{type:Array,default:function(){return[]}},total:{type:Number,default:0},type:{type:String,default:""}},setup(t){e.useCssVars((e=>({"11d92706":a.value})));const n=t,i=e.ref(!1),a=e.ref(null),s=e.getCurrentInstance();e.watch((()=>n.list),(()=>{e.nextTick((()=>{uni.createSelectorQuery().in(s.proxy).select(".item_box").boundingClientRect((e=>{a.value=(null==e?void 0:e.height)+"px"})).exec()}))}),{immediate:!0});const r=e=>{let t=null;Ne("/pages/task/index",(()=>{if("0"==n.type&&(t=0),"1"==n.type&&(t=1),"2"==n.type)return uni.navigateTo({url:`/pages/task/self?title=${e}`});uni.navigateTo({url:`/pages/task/index?id=${t}&title=${e}`})}))};return(n,a)=>(e.openBlock(),e.createElementBlock("view",{class:"content"},[e.createElementVNode("view",{class:"todo f-col aic"},[e.createElementVNode("view",{class:"f-col aic"},[e.createElementVNode("view",{class:"title_box f-row aic jcb",onClick:a[0]||(a[0]=e=>r(""))},[e.createElementVNode("view",{class:"title f-row aic"},[e.createElementVNode("image",{src:`/static/my/${t.img}.png`,mode:""},null,8,["src"]),e.createTextVNode(" "+e.toDisplayString(t.title),1)]),e.createElementVNode("view",{class:"num"},e.toDisplayString(t.total),1)]),t.list.length?(e.openBlock(),e.createElementBlock("view",{key:0,class:"list"},[e.createElementVNode("view",{class:e.normalizeClass(["box",{close:t.list.length>5&&i.value}])},[e.createElementVNode("view",{class:"item_box"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.list,((t,n)=>(e.openBlock(),e.createElementBlock("view",{onClick:e=>r(t.title),class:"item f-row aic",key:n},[e.createElementVNode("view",{class:""},e.toDisplayString(t.title),1),e.createElementVNode("text",null,e.toDisplayString(t.num),1)],8,["onClick"])))),128))])],2),e.withDirectives(e.createElementVNode("view",{class:"more",onClick:a[1]||(a[1]=e=>i.value=!i.value)},e.toDisplayString(i.value?"收起":"显示更多"),513),[[e.vShow,t.list.length>5]])])):e.createCommentVNode("",!0)])])]))}},[["__scopeId","data-v-d5e6674e"]]),Fe=q({__name:"todotask",setup(n){e.useCssVars((e=>({"6ebd20b9":i})));const i=wx.getSystemInfoSync().statusBarHeight+44+"px",s=H();a((()=>{k(),c(),m(),y(),uni.removeTabBarBadge({index:"1"})}));const r=e.ref([]),o=e.ref(0),c=()=>{h({pageNo:1,pageSize:4,_t:(new Date).getTime()}).then((e=>{var n,i,a,s;(null==e?void 0:e.success)&&((null==(n=null==e?void 0:e.result)?void 0:n.total)>4?h({pageNo:1,pageSize:null==(i=null==e?void 0:e.result)?void 0:i.total,_t:(new Date).getTime()}).then((e=>{var n,i;t("log","at pages/task/todotask.vue:60","---",e),(null==e?void 0:e.success)&&(r.value=[...r.value,...w(null==(n=null==e?void 0:e.result)?void 0:n.records)],o.value=null==(i=null==e?void 0:e.result)?void 0:i.total)})).catch((e=>{t("log","at pages/task/todotask.vue:66","err",e)})):(r.value=[...r.value,...w(null==(a=null==e?void 0:e.result)?void 0:a.records)],o.value=null==(s=null==e?void 0:e.result)?void 0:s.total))})).catch((e=>{t("log","at pages/task/todotask.vue:75",e)}))},u=e.ref([]),d=e.ref(0),m=()=>{p().then((e=>{e.success&&(e.result.total>4?p({pageNo:1,pageSize:e.result.total,_t:(new Date).getTime()}).then((e=>{e.success&&(u.value=[...u.value,...w(e.result.records)],d.value=e.result.total)})).catch((e=>{t("log","at pages/task/todotask.vue:96",e)})):(u.value=[...u.value,...w(e.result.records)],d.value=e.result.total))})).catch((e=>{t("log","at pages/task/todotask.vue:105",e)}))},g=e.ref([]),v=e.ref(0),y=()=>{f().then((e=>{e.success&&(e.result.total>4?f({pageNo:1,pageSize:e.result.total,_t:(new Date).getTime()}).then((e=>{e.success&&(g.value=[...g.value,...w(e.result.records)],v.value=e.result.total)})).catch((e=>{t("log","at pages/task/todotask.vue:125",e)})):(g.value=[...g.value,...w(e.result.records)],v.value=e.result.total))})).catch((e=>{t("log","at pages/task/todotask.vue:135",e)}))},w=e=>{let t=(e.length?e.map((e=>e.processDefinitionName||e.prcocessDefinitionName)):[]).reduce(((e,t)=>(t in e?e[t]++:e[t]=1,e)),{});return Object.entries(t).map((([e,t])=>({title:e,num:t})))},k=()=>{r.value=[],g.value=[],u.value=[],o.value=0,d.value=0,v.value=0};return l((()=>{k(),c(),m(),y(),uni.stopPullDownRefresh()})),(t,n)=>(e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass([{gray:1==e.unref(s).isgray}])},[e.createElementVNode("view",{class:"nav"}),e.createElementVNode("view",{class:"placeholder"}),e.createElementVNode("view",{class:"content"},[e.createVNode(Le,{title:"我的任务",img:"process",list:r.value,total:o.value,type:"0"},null,8,["list","total"]),e.createVNode(Le,{title:"历史任务",img:"done",list:u.value,total:d.value,type:"1"},null,8,["list","total"]),e.createVNode(Le,{title:"本人发起",img:"self",list:g.value,total:v.value,type:"2"},null,8,["list","total"])])],2))}},[["__scopeId","data-v-df705bde"]]),je={__name:"office",setup(n){e.useCssVars((e=>({"00e5a4ad":a})));const i=H();new Array(7).fill(0).map(((e,t)=>t)),e.ref([]);const a=wx.getSystemInfoSync().statusBarHeight+44+"px";r((()=>{c()}));const s=e.ref([]),o=e.ref([]),l=e.ref([]),c=()=>{d({token:i.token,type:"mobile"}).then((e=>{var t,n,i;if(e.success){let a=e.result.menu;a.map((e=>e.children=null==e?void 0:e.children.filter((e=>{var t;return null==(t=null==e?void 0:e.meta)?void 0:t.icon})))),a=a.filter((e=>{var t;return null==(t=null==e?void 0:e.children)?void 0:t.length})),l.value=null==(n=null==(t=a[0])?void 0:t.meta)?void 0:n.title,s.value=a,o.value=null==(i=a.slice(0,1)[0])?void 0:i.children}})).catch((e=>{t("log","at pages/tab/office.vue:103",e)}))};return(t,n)=>{var a,r,l;return e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass({gray:1==e.unref(i).isgray})},[e.createElementVNode("view",{class:"nav"}),e.createElementVNode("view",{class:"placeholder"}),(null==(a=o.value)?void 0:a.length)||(null==(r=s.value)?void 0:r.length)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("view",{key:0,class:"title f-col aic",style:{"padding-top":"30rpx"}}," 暂无权限,请联系管理员! ")),e.createElementVNode("view",{class:"content"},[(null==(l=s.value)?void 0:l.length)?(e.openBlock(),e.createElementBlock("view",{key:0,class:"list"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value,((t,n)=>(e.openBlock(),e.createElementBlock("view",{class:"item",key:n},[e.createElementVNode("view",{class:"title"},e.toDisplayString(t.meta.title),1),e.createElementVNode("view",{class:"info_box f-row aic"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.children,((t,n)=>(e.openBlock(),e.createElementBlock("view",{class:"info f-col aic",onClick:e=>{return n=t.path,void Ne(n,(()=>{uni.navigateTo({url:n})}));var n},key:n},[e.createElementVNode("view",{class:"img f-row aic"},[e.createElementVNode("image",{src:`../../static/office/${t.meta.icon}.png`},null,8,["src"])]),e.createElementVNode("view",{class:"text"},e.toDisplayString(t.meta.title),1)],8,["onClick"])))),128))])])))),128))])):e.createCommentVNode("",!0)])],2)}}},Ue=q(je,[["__scopeId","data-v-a37e03c5"]]),$e=q({__name:"my",setup(t){const n=H(),i=e.ref(plus.runtime.version),a=e.ref([]),s=e.ref(!1),r=e.ref(n.positionSwitch),o=e=>{e&&Ne(e,(()=>{uni.navigateTo({url:e})}))},l=e=>{uni.navigateTo({url:e})},c=()=>{r.value=!r.value,uni.setStorageSync("positionSwitch",r.value),n.setPositionSwitch(r.value),r.value||Te("定位已关闭"),Be()},u=()=>{uni.scanCode({success:function(e){plus.runtime.openWeb(e.result)}})};return(t,d)=>(e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass({gray:1==e.unref(n).isgray})},[e.createElementVNode("view",{class:"nav"},[e.createElementVNode("view",{class:"user f-row aic"},[e.createElementVNode("view",{class:"avatar"},[e.createElementVNode("image",{onClick:d[0]||(d[0]=e=>l("/pages/useredit/useredit")),src:e.unref(Re)(e.unref(n).userinfo.avatar),mode:""},null,8,["src"])]),e.createElementVNode("view",{class:"f-row aic jcb right"},[e.createElementVNode("view",{class:"name_job",onClick:d[1]||(d[1]=e=>l("/pages/useredit/useredit"))},[e.createElementVNode("view",{class:"f-row aic"},[e.createElementVNode("view",{class:"name"},e.toDisplayString(e.unref(n).userinfo.realname),1)]),e.createElementVNode("view",{class:"job"},e.toDisplayString(e.unref(n).role),1)]),e.createElementVNode("view",{class:"shezhi"},[e.createElementVNode("image",{onClick:u,style:{width:"50rpx",height:"50rpx","margin-right":"20rpx"},src:"/static/tab/scan.png"})])])]),e.createElementVNode("view",{class:"f-col aic"},[e.createElementVNode("view",{class:"msg f-row aic jca"},[e.createElementVNode("view",{class:"box f-col aic"},[e.createElementVNode("view",{class:"num"},e.toDisplayString(0)),e.createElementVNode("text",null,"步数")]),e.createElementVNode("view",{class:"box f-col aic",onClick:d[2]||(d[2]=e=>o("/pages/useredit/addressbook"))},[e.createElementVNode("view",{class:"num"}," 0 "),e.createElementVNode("text",null,"通讯录")])])])]),e.createElementVNode("view",{class:"operate"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,((t,n)=>(e.openBlock(),e.createElementBlock("view",{class:"f-row aic jcb item",key:n,onClick:e=>o(t.path)},[e.createElementVNode("view",{class:"left f-row aic"},[e.createElementVNode("image",{src:t.img,mode:""},null,8,["src"]),e.createElementVNode("text",null,e.toDisplayString(t.text),1)]),e.createElementVNode("view",{class:"right f-row aic"},[e.withDirectives(e.createElementVNode("view",{class:"switch",onClick:d[3]||(d[3]=e=>s.value=!s.value)},[e.withDirectives(e.createElementVNode("image",{src:"/static/my/open.png",mode:""},null,512),[[e.vShow,s.value]]),e.withDirectives(e.createElementVNode("image",{src:"/static/my/close.png",mode:""},null,512),[[e.vShow,!s.value]])],512),[[e.vShow,0==n]]),e.withDirectives(e.createElementVNode("view",{class:"switch",onClick:c},[e.withDirectives(e.createElementVNode("image",{src:"/static/my/open.png",mode:""},null,512),[[e.vShow,r.value]]),e.withDirectives(e.createElementVNode("image",{src:"/static/my/close.png",mode:""},null,512),[[e.vShow,!r.value]])],512),[[e.vShow,2==n]]),e.withDirectives(e.createElementVNode("view",{class:"version"}," 当前版本v"+e.toDisplayString(i.value),513),[[e.vShow,3==n]])])],8,["onClick"])))),128))])],2))}},[["__scopeId","data-v-300a7325"]]),ze=q({__name:"tasklistCom",props:{taskArr:{type:Array,default:()=>[]},currentIndex:{type:Number,default:0}},emits:["jump"],setup(t,{emit:n}){const{proxy:i}=e.getCurrentInstance(),a=n,s=e=>{a("jump",e)},r=e=>{var t;(t={taskId:e},u({url:"/act/task/claim",method:"put",data:t})).then((e=>{e.success&&(uni.redirectTo({url:"./index?id=0"}),i.$toast(e.message))}))},o=e=>{var t;(t={processInstanceId:e},u({url:"/act/task/callBackProcess",method:"put",data:t})).then((e=>{e.success&&(uni.redirectTo({url:"./self"}),i.$toast(e.message))}))},l=e=>{var t;(t={processInstanceId:e},u({url:"/act/task/invalidProcess",method:"put",data:t})).then((e=>{e.success&&(uni.redirectTo({url:"./self"}),i.$toast(e.message))}))};return(n,i)=>(e.openBlock(),e.createElementBlock("view",{class:"list_box"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.taskArr,((n,i)=>(e.openBlock(),e.createElementBlock("view",{class:"list",key:i,onClick:e=>s(`/pages/task/handle?info=${JSON.stringify(n)}&type=${t.currentIndex}`)},[e.createElementVNode("view",{class:"title f-row aic jcb"},[e.createElementVNode("view",null,[e.createElementVNode("view",null,e.toDisplayString(n.bpmBizTitle),1)]),e.createElementVNode("text",null,e.toDisplayString(n.durationStr),1)]),e.createElementVNode("view",{class:"info"},[e.createElementVNode("view",null," 申请理由:"+e.toDisplayString(n.bpmBizTitle),1),2!=t.currentIndex?(e.openBlock(),e.createElementBlock("view",{key:0}," 当前环节:"+e.toDisplayString(n.taskName),1)):e.createCommentVNode("",!0),e.createElementVNode("view",null," 流程名称:"+e.toDisplayString(n.processDefinitionName),1),e.createElementVNode("view",null," 发起人:"+e.toDisplayString(n.processApplyUserName),1),e.createElementVNode("view",null," 开始时间:"+e.toDisplayString(n.taskBeginTime),1),n.taskEndTime?(e.openBlock(),e.createElementBlock("view",{key:1}," 结束时间:"+e.toDisplayString(n.taskEndTime),1)):e.createCommentVNode("",!0)]),0==t.currentIndex&&n.taskAssigneeName?(e.openBlock(),e.createElementBlock("view",{key:0,class:"btn f-row aic jcb"},[e.createElementVNode("view",{class:"entrust",onClick:e.withModifiers((e=>s(`/pages/userlist/index?isradio=1&id=${n.id}`)),["stop"])}," 委托 ",8,["onClick"]),e.createElementVNode("view",{class:"handle",onClick:e=>s(`/pages/task/handle?info=${JSON.stringify(n)}&type=${t.currentIndex}`)}," 办理 ",8,["onClick"])])):e.createCommentVNode("",!0),0!=t.currentIndex||n.taskAssigneeName?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("view",{key:1,class:"btn f-row aic jcb"},[e.createElementVNode("view"),e.createElementVNode("view",{class:"handle",onClick:e.withModifiers((e=>r(n.id)),["stop"])}," 签收 ",8,["onClick"])])),2!=t.currentIndex||n.endTime?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("view",{key:2,class:"btn f-row aic jcb"},[e.createElementVNode("view",{class:"entrust",onClick:e.withModifiers((e=>l(n.processInstanceId)),["stop"])}," 作废流程 ",8,["onClick"]),e.createElementVNode("view",{class:"handle",onClick:e.withModifiers((e=>o(n.processInstanceId)),["stop"])}," 取回流程 ",8,["onClick"])]))],8,["onClick"])))),128))]))}},[["__scopeId","data-v-3868ba91"]]),He=q({__name:"index",setup(n){const i=H();let s="";r((e=>{u.value=+e.id,s=e.title})),a((()=>{g.value=[],d=1,f=10,m=!1,v()}));const c=e.ref([{text:"我的任务",id:0},{text:"历史任务",id:1}]);e.ref("");const u=e.ref(0);let d=1,f=10,m=!1;const g=e.ref([]),v=()=>{m=!0,uni.showLoading({title:"加载中..."}),(0==u.value?h:p)({pageNo:d,pageSize:f,_t:(new Date).getTime(),processDefinitionName:s}).then((e=>{var t;if(e.success){if(!e.result.records.length)return Te("没有更多了~");g.value=[...g.value,...(null==(t=null==e?void 0:e.result)?void 0:t.records)||[]],m=!1}})).catch((e=>{t("log","at pages/task/index.vue:84",e)}))};o((()=>{m||(d++,v())})),l((()=>{d=1,f=10,m=!1,g.value=[],v(),uni.stopPullDownRefresh()}));const y=e=>{Ne(e,(()=>{uni.navigateTo({url:e})}))};return(t,n)=>(e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass({gray:1==e.unref(i).isgray})},[e.createElementVNode("view",{class:"nav"},[e.createElementVNode("view",{class:"tab_box f-row aic jca"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,((t,n)=>(e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass({active:n==u.value}),key:n,onClick:e=>(e=>{g.value=[],d=1,f=10,m=!1,u.value=e,v()})(n)},e.toDisplayString(t.text),11,["onClick"])))),128))])]),e.createElementVNode("view",{class:"tasklist"},[e.createVNode(ze,{onJump:y,taskArr:g.value,currentIndex:u.value},null,8,["taskArr","currentIndex"])])],2))}},[["__scopeId","data-v-965734c1"]]);class qe{constructor(e,t){this.options=e,this.animation=uni.createAnimation({...e}),this.currentStepAnimates={},this.next=0,this.$=t}_nvuePushAnimates(e,t){let n=this.currentStepAnimates[this.next],i={};if(i=n||{styles:{},config:{}},Ke.includes(e)){i.styles.transform||(i.styles.transform="");let n="";"rotate"===e&&(n="deg"),i.styles.transform+=`${e}(${t+n}) `}else i.styles[e]=`${t}`;this.currentStepAnimates[this.next]=i}_animateRun(e={},t={}){let n=this.$.$refs.ani.ref;if(n)return new Promise(((i,a)=>{nvueAnimation.transition(n,{styles:e,...t},(e=>{i()}))}))}_nvueNextAnimate(e,t=0,n){let i=e[t];if(i){let{styles:a,config:s}=i;this._animateRun(a,s).then((()=>{t+=1,this._nvueNextAnimate(e,t,n)}))}else this.currentStepAnimates={},"function"==typeof n&&n(),this.isEnd=!0}step(e={}){return this.animation.step(e),this}run(e){this.$.animationData=this.animation.export(),this.$.timer=setTimeout((()=>{"function"==typeof e&&e()}),this.$.durationTime)}}const Ke=["matrix","matrix3d","rotate","rotate3d","rotateX","rotateY","rotateZ","scale","scale3d","scaleX","scaleY","scaleZ","skew","skewX","skewY","translate","translate3d","translateX","translateY","translateZ"];function Je(e,t){if(t)return clearTimeout(t.timer),new qe(e,t)}Ke.concat(["opacity","backgroundColor"],["width","height","left","right","top","bottom"]).forEach((e=>{qe.prototype[e]=function(...t){return this.animation[e](...t),this}}));const We=q({name:"uniTransition",emits:["click","change"],props:{show:{type:Boolean,default:!1},modeClass:{type:[Array,String],default:()=>"fade"},duration:{type:Number,default:300},styles:{type:Object,default:()=>({})},customClass:{type:String,default:""},onceRender:{type:Boolean,default:!1}},data:()=>({isShow:!1,transform:"",opacity:1,animationData:{},durationTime:300,config:{}}),watch:{show:{handler(e){e?this.open():this.isShow&&this.close()},immediate:!0}},computed:{stylesObject(){let e={...this.styles,"transition-duration":this.duration/1e3+"s"},t="";for(let n in e){t+=this.toLine(n)+":"+e[n]+";"}return t},transformStyles(){return"transform:"+this.transform+";opacity:"+this.opacity+";"+this.stylesObject}},created(){this.config={duration:this.duration,timingFunction:"ease",transformOrigin:"50% 50%",delay:0},this.durationTime=this.duration},methods:{init(e={}){e.duration&&(this.durationTime=e.duration),this.animation=Je(Object.assign(this.config,e),this)},onClick(){this.$emit("click",{detail:this.isShow})},step(e,n={}){if(this.animation){for(let n in e)try{"object"==typeof e[n]?this.animation[n](...e[n]):this.animation[n](e[n])}catch(gn){t("error","at uni_modules/uni-transition/components/uni-transition/uni-transition.vue:148",`方法 ${n} 不存在`)}return this.animation.step(n),this}},run(e){this.animation&&this.animation.run(e)},open(){clearTimeout(this.timer),this.transform="",this.isShow=!0;let{opacity:e,transform:t}=this.styleInit(!1);void 0!==e&&(this.opacity=e),this.transform=t,this.$nextTick((()=>{this.timer=setTimeout((()=>{this.animation=Je(this.config,this),this.tranfromInit(!1).step(),this.animation.run(),this.$emit("change",{detail:this.isShow})}),20)}))},close(e){this.animation&&this.tranfromInit(!0).step().run((()=>{this.isShow=!1,this.animationData=null,this.animation=null;let{opacity:e,transform:t}=this.styleInit(!1);this.opacity=e||1,this.transform=t,this.$emit("change",{detail:this.isShow})}))},styleInit(e){let t={transform:""},n=(e,n)=>{"fade"===n?t.opacity=this.animationType(e)[n]:t.transform+=this.animationType(e)[n]+" "};return"string"==typeof this.modeClass?n(e,this.modeClass):this.modeClass.forEach((t=>{n(e,t)})),t},tranfromInit(e){let t=(e,t)=>{let n=null;"fade"===t?n=e?0:1:(n=e?"-100%":"0","zoom-in"===t&&(n=e?.8:1),"zoom-out"===t&&(n=e?1.2:1),"slide-right"===t&&(n=e?"100%":"0"),"slide-bottom"===t&&(n=e?"100%":"0")),this.animation[this.animationMode()[t]](n)};return"string"==typeof this.modeClass?t(e,this.modeClass):this.modeClass.forEach((n=>{t(e,n)})),this.animation},animationType:e=>({fade:e?0:1,"slide-top":`translateY(${e?"0":"-100%"})`,"slide-right":`translateX(${e?"0":"100%"})`,"slide-bottom":`translateY(${e?"0":"100%"})`,"slide-left":`translateX(${e?"0":"-100%"})`,"zoom-in":`scaleX(${e?1:.8}) scaleY(${e?1:.8})`,"zoom-out":`scaleX(${e?1:1.2}) scaleY(${e?1:1.2})`}),animationMode:()=>({fade:"opacity","slide-top":"translateY","slide-right":"translateX","slide-bottom":"translateY","slide-left":"translateX","zoom-in":"scale","zoom-out":"scale"}),toLine:e=>e.replace(/([A-Z])/g,"-$1").toLowerCase()}},[["render",function(t,n,i,a,s,r){return e.withDirectives((e.openBlock(),e.createElementBlock("view",{ref:"ani",animation:s.animationData,class:e.normalizeClass(i.customClass),style:e.normalizeStyle(r.transformStyles),onClick:n[0]||(n[0]=(...e)=>r.onClick&&r.onClick(...e))},[e.renderSlot(t.$slots,"default")],14,["animation"])),[[e.vShow,s.isShow]])}]]),Ye={name:"uniPopup",components:{},emits:["change","maskClick"],props:{animation:{type:Boolean,default:!0},type:{type:String,default:"center"},isMaskClick:{type:Boolean,default:null},maskClick:{type:Boolean,default:null},backgroundColor:{type:String,default:"none"},safeArea:{type:Boolean,default:!0},maskBackgroundColor:{type:String,default:"rgba(0, 0, 0, 0.4)"},borderRadius:{type:String}},watch:{type:{handler:function(e){this.config[e]&&this[this.config[e]](!0)},immediate:!0},isDesktop:{handler:function(e){this.config[e]&&this[this.config[this.type]](!0)},immediate:!0},maskClick:{handler:function(e){this.mkclick=e},immediate:!0},isMaskClick:{handler:function(e){this.mkclick=e},immediate:!0},showPopup(e){}},data(){return{duration:300,ani:[],showPopup:!1,showTrans:!1,popupWidth:0,popupHeight:0,config:{top:"top",bottom:"bottom",center:"center",left:"left",right:"right",message:"top",dialog:"center",share:"bottom"},maskClass:{position:"fixed",bottom:0,top:0,left:0,right:0,backgroundColor:"rgba(0, 0, 0, 0.4)"},transClass:{backgroundColor:"transparent",borderRadius:this.borderRadius||"0",position:"fixed",left:0,right:0},maskShow:!0,mkclick:!0,popupstyle:"top"}},computed:{getStyles(){let e={backgroundColor:this.bg};return this.borderRadius,e=Object.assign(e,{borderRadius:this.borderRadius}),e},isDesktop(){return this.popupWidth>=500&&this.popupHeight>=500},bg(){return""===this.backgroundColor||"none"===this.backgroundColor?"transparent":this.backgroundColor}},mounted(){(()=>{const{windowWidth:e,windowHeight:t,windowTop:n,safeArea:i,screenHeight:a,safeAreaInsets:s}=uni.getSystemInfoSync();this.popupWidth=e,this.popupHeight=t+(n||0),i&&this.safeArea?this.safeAreaInsets=s.bottom:this.safeAreaInsets=0})()},unmounted(){this.setH5Visible()},activated(){this.setH5Visible(!this.showPopup)},deactivated(){this.setH5Visible(!0)},created(){null===this.isMaskClick&&null===this.maskClick?this.mkclick=!0:this.mkclick=null!==this.isMaskClick?this.isMaskClick:this.maskClick,this.animation?this.duration=300:this.duration=0,this.messageChild=null,this.clearPropagation=!1,this.maskClass.backgroundColor=this.maskBackgroundColor},methods:{setH5Visible(e=!0){},closeMask(){this.maskShow=!1},disableMask(){this.mkclick=!1},clear(e){e.stopPropagation(),this.clearPropagation=!0},open(e){if(this.showPopup)return;e&&-1!==["top","center","bottom","left","right","message","dialog","share"].indexOf(e)||(e=this.type),this.config[e]?(this[this.config[e]](),this.$emit("change",{show:!0,type:e})):t("error","at uni_modules/uni-popup/components/uni-popup/uni-popup.vue:298","缺少类型:",e)},close(e){this.showTrans=!1,this.$emit("change",{show:!1,type:this.type}),clearTimeout(this.timer),this.timer=setTimeout((()=>{this.showPopup=!1}),300)},touchstart(){this.clearPropagation=!1},onTap(){this.clearPropagation?this.clearPropagation=!1:(this.$emit("maskClick"),this.mkclick&&this.close())},top(e){this.popupstyle=this.isDesktop?"fixforpc-top":"top",this.ani=["slide-top"],this.transClass={position:"fixed",left:0,right:0,backgroundColor:this.bg,borderRadius:this.borderRadius||"0"},e||(this.showPopup=!0,this.showTrans=!0,this.$nextTick((()=>{this.messageChild&&"message"===this.type&&this.messageChild.timerClose()})))},bottom(e){this.popupstyle="bottom",this.ani=["slide-bottom"],this.transClass={position:"fixed",left:0,right:0,bottom:0,paddingBottom:this.safeAreaInsets+"px",backgroundColor:this.bg,borderRadius:this.borderRadius||"0"},e||(this.showPopup=!0,this.showTrans=!0)},center(e){this.popupstyle="center",this.ani=["zoom-out","fade"],this.transClass={position:"fixed",display:"flex",flexDirection:"column",bottom:0,left:0,right:0,top:0,justifyContent:"center",alignItems:"center",borderRadius:this.borderRadius||"0"},e||(this.showPopup=!0,this.showTrans=!0)},left(e){this.popupstyle="left",this.ani=["slide-left"],this.transClass={position:"fixed",left:0,bottom:0,top:0,backgroundColor:this.bg,borderRadius:this.borderRadius||"0",display:"flex",flexDirection:"column"},e||(this.showPopup=!0,this.showTrans=!0)},right(e){this.popupstyle="right",this.ani=["slide-right"],this.transClass={position:"fixed",bottom:0,right:0,top:0,backgroundColor:this.bg,borderRadius:this.borderRadius||"0",display:"flex",flexDirection:"column"},e||(this.showPopup=!0,this.showTrans=!0)}}};const Ge=q(Ye,[["render",function(t,i,a,s,r,o){const l=n(e.resolveDynamicComponent("uni-transition"),We);return r.showPopup?(e.openBlock(),e.createElementBlock("view",{key:0,class:e.normalizeClass(["uni-popup",[r.popupstyle,o.isDesktop?"fixforpc-z-index":""]])},[e.createElementVNode("view",{onTouchstart:i[1]||(i[1]=(...e)=>o.touchstart&&o.touchstart(...e))},[r.maskShow?(e.openBlock(),e.createBlock(l,{key:"1",name:"mask","mode-class":"fade",styles:r.maskClass,duration:r.duration,show:r.showTrans,onClick:o.onTap},null,8,["styles","duration","show","onClick"])):e.createCommentVNode("",!0),e.createVNode(l,{key:"2","mode-class":r.ani,name:"content",styles:r.transClass,duration:r.duration,show:r.showTrans,onClick:o.onTap},{default:e.withCtx((()=>[e.createElementVNode("view",{class:e.normalizeClass(["uni-popup__wrapper",[r.popupstyle]]),style:e.normalizeStyle(o.getStyles),onClick:i[0]||(i[0]=(...e)=>o.clear&&o.clear(...e))},[e.renderSlot(t.$slots,"default",{},void 0,!0)],6)])),_:3},8,["mode-class","styles","duration","show","onClick"])],32)],2)):e.createCommentVNode("",!0)}],["__scopeId","data-v-9c09fb6f"]]),Ze={__name:"handle",setup(t){const i=H(),{proxy:a}=e.getCurrentInstance(),s=e.ref(null),o=e.ref(""),l=e.ref(null),c=e=>{l.value=e,s.value.open(),o.value=2==e?"同意":""},d=()=>{s.value.close()},h=e.ref(null),p=e.ref(""),f=e=>{var t;(t={taskId:e},u({url:"/process/extActProcessNode/getProcessNodeInfo",method:"get",data:t})).then((e=>{e.success&&(p.value=e.result.dataId,h.value=e.result.formUrlMobile)}))},m=()=>{uni.navigateBack()},g=e.ref(!1);let v=null;const y=()=>{let e={};if(1==l.value){if(null==_.value)return a.$toast("请选择驳回节点");e.processModel=3,e.rejectModelNode=k.value[_.value].TASK_DEF_KEY_,w(e)}else g.value?Ne("/pages/userlist/index",(()=>{d(),uni.navigateTo({url:`/pages/userlist/index?id=${D.value.id}&isradio=1&nextnode=${JSON.stringify(v)}&reason=${o.value}`})})):(e.processModel=1,w(e))},w=e=>{S({taskId:D.value.id,reason:o.value,...e}).then((e=>{e.success&&(a.$toast(e.message),setTimeout((()=>{uni.navigateBack()}),2e3))}))},k=e.ref([]),_=e.ref(null),b=e=>{_.value=e.detail.value},E=e=>{var t;(t={taskId:D.value.id},u({url:"/act/task/getProcessTaskTransInfo",method:"get",data:t})).then((e=>{e.success&&(k.value=e.result.histListNode,v=e.result.transitionList)}))},x=e=>{var t;(t={procInstId:e},u({url:"/process/extActProcessNode/getHisProcessNodeInfo",method:"get",data:t})).then((e=>{e.success&&(p.value=e.result.dataId,h.value=e.result.formUrlMobile)}))},D=e.ref(null);let T=null;return r((e=>{if(D.value=JSON.parse(e.info),T=e.type,1==T||2==T)return x(D.value.processInstanceId);f(D.value.id),E()})),(t,a)=>{const r=n(e.resolveDynamicComponent("uni-icons"),W),u=n(e.resolveDynamicComponent("uni-popup"),Ge);return e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass(["content",{gray:1==e.unref(i).isgray}])},[e.createVNode(xe,null,{default:e.withCtx((()=>[e.createElementVNode("view",{class:"f-row aic box"},[e.createElementVNode("view",{class:"back",onClick:m},[e.createVNode(r,{type:"left",size:"20",color:"#fff"})]),e.createElementVNode("view",{class:"avatar"},[e.createElementVNode("image",{src:e.unref(Re)(e.unref(i).userinfo.avatar),mode:""},null,8,["src"])]),e.createElementVNode("view",{class:"name"},e.toDisplayString(D.value.processApplyUserName)+"的"+e.toDisplayString(D.value.processDefinitionName),1),0==e.unref(T)?(e.openBlock(),e.createElementBlock("view",{key:0,class:"status"}," 待审批 ")):e.createCommentVNode("",!0),1==e.unref(T)?(e.openBlock(),e.createElementBlock("view",{key:1,class:"status",style:{"background-color":"#7AC756"}}," 已处理 ")):e.createCommentVNode("",!0)])])),_:1}),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(h.value),{dataId:p.value},null,8,["dataId"])),0==e.unref(T)?(e.openBlock(),e.createElementBlock("view",{key:0,class:"btn f-row aic jcb"},[e.createElementVNode("view",{class:"refuse",onClick:a[0]||(a[0]=e=>c(1))}," 拒绝 "),e.createElementVNode("view",{class:"agree",onClick:a[1]||(a[1]=e=>c(2))}," 同意 ")])):e.createCommentVNode("",!0),e.createVNode(u,{ref_key:"popup",ref:s,type:"center"},{default:e.withCtx((()=>[e.createElementVNode("view",{class:"popup"},[e.createElementVNode("view",{class:"title"}," 审批意见 "),e.createElementVNode("view",{class:"f-col aic"},[e.createElementVNode("view",{class:"input f-col"},[e.withDirectives(e.createElementVNode("textarea",{"onUpdate:modelValue":a[2]||(a[2]=e=>o.value=e),name:"",id:"",maxlength:"200",placeholder:"请输入"},null,512),[[e.vModelText,o.value]]),e.createElementVNode("view",{class:""},e.toDisplayString(o.value.length)+"/200 ",1)])]),2==l.value?(e.openBlock(),e.createElementBlock("view",{key:0,class:"agree_operate f-row aic",onClick:a[3]||(a[3]=e=>g.value=!g.value)},[g.value?(e.openBlock(),e.createElementBlock("image",{key:0,src:"/static/login/checked.png",mode:""})):(e.openBlock(),e.createElementBlock("image",{key:1,src:"/static/login/nocheck.png",mode:""})),e.createElementVNode("view",{class:""}," 指定下一步操作人 ")])):(e.openBlock(),e.createElementBlock("view",{key:1,class:""},[e.createElementVNode("picker",{value:_.value,range:k.value,"range-key":"NAME_",onChange:b},[e.createElementVNode("view",{class:"node"},e.toDisplayString(null!=_.value?k.value[_.value].NAME_:"请选择驳回节点"),1)],40,["value","range"])])),e.createElementVNode("view",{class:"popbtn f-row aic"},[e.createElementVNode("view",{class:"cancel",onClick:d}," 取消 "),e.createElementVNode("view",{class:"confirm",onClick:y}," 确定 ")])])])),_:1},512)],2)}}},Qe=q(Ze,[["__scopeId","data-v-12da9556"]]),Xe=q({__name:"message_list",setup(t){const n=H();return(t,i)=>(e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass({gray:1==e.unref(n).isgray})},[e.createElementVNode("view",{class:"list"},[e.createElementVNode("view",{class:"item f-row aic"},[e.createElementVNode("view",{class:"f-row aic"},[e.createElementVNode("image",{src:"/static/system.png",mode:""})]),e.createElementVNode("view",{class:"name_info"},[e.createElementVNode("view",{class:"name_time f-row aic jcb"},[e.createElementVNode("view",{class:"name"}," 系统通知 "),e.createElementVNode("view",{class:"time"}," 1分钟前 ")]),e.createElementVNode("view",{class:"info"}," 关于年假通知关于年假通知关于年假通知关于年假通知关于年假通知关于年假通知关于年假通知 ")])]),(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(5,((t,n)=>e.createElementVNode("view",{class:"item f-row aic",key:n,onClick:i[0]||(i[0]=e=>{var t;Ne(t="/pages/talk/conversation",(()=>{uni.navigateTo({url:t})}))})},[e.createElementVNode("view",{class:"f-row aic"},[e.createElementVNode("image",{src:"",mode:""})]),e.createElementVNode("view",{class:"name_info"},[e.createElementVNode("view",{class:"name_time f-row aic jcb"},[e.createElementVNode("view",{class:"name"}," 系统通知 "),e.createElementVNode("view",{class:"time"}," 1分钟前 ")]),e.createElementVNode("view",{class:"info"}," 关于年假通知 ")])]))),64))])],2))}},[["__scopeId","data-v-f59fee84"]]),et=q({__name:"conversation",setup(t){const n=H();return(t,i)=>(e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass(["content",{gray:1==e.unref(n).isgray}])},[e.createElementVNode("view",{class:"list"},[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(14,((t,n)=>e.createElementVNode("view",{class:"item",key:n},[e.withDirectives(e.createElementVNode("view",{class:"left f-row aic"},[e.createElementVNode("view",{class:"avatar f-row aic"},[e.createElementVNode("image",{src:"/static/system.png",mode:""})]),e.createElementVNode("view",{class:"content"}," 你今天在干嘛呢?为什么这么久不回我信息,真的生气了 ")],512),[[e.vShow,n%2==0]]),e.withDirectives(e.createElementVNode("view",{class:"right f-row aic"},[e.createElementVNode("view",{class:"content"}," 请问如何退款? "),e.createElementVNode("view",{class:"avatar f-row aic"},[e.createElementVNode("image",{src:"",mode:""})])],512),[[e.vShow,n%2!=0]])]))),64))]),e.createElementVNode("view",{class:"input_box f-row aic jce"},[e.createElementVNode("input",{type:"text",placeholder:"请输入内容......","placeholder-style":"font-size: 28rpx;color: #999999;"}),e.createElementVNode("view",{class:"send"}," 发送 ")])],2))}},[["__scopeId","data-v-00b966b0"]]),nt=q({__name:"system",setup(t){const n=H();return(t,i)=>(e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass(["content",{gray:1==e.unref(n).isgray}])},[e.createElementVNode("view",{class:"list"},[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(3,((t,n)=>e.createElementVNode("view",{class:"item",key:n},[e.createElementVNode("view",{class:"left f-row aic"},[e.createElementVNode("view",{class:"avatar f-row aic"},[e.createElementVNode("image",{src:"/static/system.png",mode:""})]),e.createElementVNode("view",{class:"content"}," 你今天在干嘛呢?为什么这么久不回我信息,真的生气了 ")])]))),64))])],2))}},[["__scopeId","data-v-2f0571e9"]]),it=q({__name:"index",setup(i){e.useCssVars((e=>({e9493420:e.cusnavbarheight})));const a=H(),s=e.ref(!0),c=e.ref(""),u=e.ref([]);let d=1,h=!1;const p=(e,t,n,i)=>(e.map((e=>{e._title=e[t],e._time=e[n],e._depart=e[i]})),e),f=()=>{if(c.value.trim())return"*"+c.value+"*"},k=()=>{d=1,h=!1,u.value=[],E()};e.watch(c,((e,t)=>{e.trim()||E()}));const _=()=>{uni.navigateBack()},S=e.ref(null);let b=null;r((e=>{S.value=e.id,b=e.zhiduid,E()}));const E=()=>{0==S.value?(h=!0,m({pageNo:d,pageSize:15,fwbt:f()}).then((e=>{e.success&&(u.value=[...u.value,...p(e.result.records,"fwbt","fwtime",null)]),h=!1})).catch((e=>{t("log","at pages/document/index.vue:89","err",e)}))):1==S.value?(h=!0,g({pageNo:d,pageSize:15,neirong:f()}).then((e=>{e.success&&(u.value=[...u.value,...p(e.result.records,"neirong","fbdw","createTime")]),h=!1})).catch((e=>{t("log","at pages/document/index.vue:142","err",e)}))):2==S.value?(h=!0,(0==b?w:y)({pageNo:d,pageSize:15,zdmc:f()}).then((e=>{if(e.success){let t=0==b?"zbbm_dictText":"sbbm";u.value=[...u.value,...p(e.result.records,"zdmc",t,null)]}h=!1})).catch((e=>{t("log","at pages/document/index.vue:108","err",e)}))):3==S.value&&(h=!0,v({pageNo:d,pageSize:15,flfgmc:f()}).then((e=>{e.success&&(u.value=[...u.value,...p(e.result.records,"flfgmc","ssbm",null)]),h=!1})).catch((e=>{t("log","at pages/document/index.vue:125","err",e)})))};return l((()=>{d=1,h=!1,u.value=[],E(),uni.stopPullDownRefresh()})),o((()=>{h||(d++,E())})),(t,i)=>{const r=n(e.resolveDynamicComponent("uni-icons"),W);return e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass(["content",{gray:1==e.unref(a).isgray}])},[e.createVNode(xe,null,{default:e.withCtx((()=>[e.createElementVNode("view",{class:"nav_box f-row aic jcb"},[e.createElementVNode("view",{class:"back f-row aic",onClick:_},[e.createVNode(r,{type:"left",size:"20",color:"#fff"})]),e.createElementVNode("view",{class:"search f-row aic"},[e.withDirectives(e.createElementVNode("input",{type:"text","onUpdate:modelValue":i[0]||(i[0]=e=>c.value=e),onConfirm:k,onBlur:i[1]||(i[1]=e=>s.value=!c.value),onFocus:i[2]||(i[2]=e=>s.value=!1)},null,544),[[e.vModelText,c.value]]),s.value?(e.openBlock(),e.createElementBlock("view",{key:0,class:"f-row aic"},[e.createElementVNode("image",{src:"/static/search.png",mode:""}),e.createElementVNode("text",null,"搜索")])):e.createCommentVNode("",!0)])])])),_:1}),e.createElementVNode("view",{class:"list"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u.value,((t,n)=>(e.openBlock(),e.createElementBlock("view",{class:"item",key:n,onClick:e=>((e,t)=>{if(3==S.value)return Pe(t.mingcheng);Ne(e,(()=>{uni.navigateTo({url:e})}))})(`/pages/document/detail?data=${JSON.stringify(t)}&id=${S.value}`,t)},[e.createElementVNode("view",{class:"title"},e.toDisplayString(t._title),1),e.createElementVNode("view",{class:"time_box f-row aic"},[e.createElementVNode("view",{class:"time"},e.toDisplayString(t._time),1),t._depart?(e.openBlock(),e.createElementBlock("view",{key:0,class:"look f-row aic"},e.toDisplayString(t._depart),1)):e.createCommentVNode("",!0)])],8,["onClick"])))),128))])],2)}}},[["__scopeId","data-v-18757efe"]]),at=q({__name:"detail",setup(t){const n=H(),i=e.ref({});return r((e=>{i.value=JSON.parse(e.data),0==e.id?i.value.pdf=i.value.wjbt:2==e.id?i.value.jdwj?i.value.pdf=i.value.jdwj+","+i.value.sszd:i.value.pdf=i.value.sszd:3==e.id&&(i.value.pdf=i.value.mingcheng)})),(t,a)=>{var s,r;return e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass(["content",{gray:1==e.unref(n).isgray}])},[e.createElementVNode("view",{class:"title_box"},[e.createElementVNode("view",{class:"title"},e.toDisplayString(i.value._title),1),e.createElementVNode("view",{class:"time"},e.toDisplayString(i.value._time),1)]),e.createElementVNode("view",{class:"document f-row"},[e.createElementVNode("text",{class:""}," 附件: "),e.createElementVNode("view",{class:"f-col"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(null==(r=null==(s=i.value)?void 0:s.pdf)?void 0:r.split(","),((t,n)=>(e.openBlock(),e.createElementBlock("view",{class:"",style:{padding:"5rpx 0"},onClick:n=>e.unref(Pe)(t)},e.toDisplayString(t),9,["onClick"])))),256))])])],2)}}},[["__scopeId","data-v-b79b801f"]]),st=q({__name:"index",setup(t){const i=H(),a=e.ref(!0),s=e.ref("");r((()=>{}));const o=()=>{uni.navigateBack()};return(t,r)=>{const l=n(e.resolveDynamicComponent("uni-icons"),W);return e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass({gray:1==e.unref(i).isgray})},[e.createVNode(xe,null,{default:e.withCtx((()=>[e.createElementVNode("view",{class:"nav_box f-row aic jcb"},[e.createElementVNode("view",{class:"back f-row aic",onClick:o},[e.createVNode(l,{type:"left",size:"20",color:"#fff"})]),e.createElementVNode("view",{class:"search f-row aic"},[e.withDirectives(e.createElementVNode("input",{type:"text","onUpdate:modelValue":r[0]||(r[0]=e=>s.value=e),onConfirm:r[1]||(r[1]=(...e)=>t.search&&t.search(...e)),onBlur:r[2]||(r[2]=e=>a.value=!s.value),onFocus:r[3]||(r[3]=e=>a.value=!1)},null,544),[[e.vModelText,s.value]]),a.value?(e.openBlock(),e.createElementBlock("view",{key:0,class:"f-row aic"},[e.createElementVNode("image",{src:"/static/search.png",mode:""}),e.createElementVNode("text",null,"搜索")])):e.createCommentVNode("",!0)])])])),_:1}),e.createElementVNode("view",{class:"list_box"},[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(3,((t,n)=>e.createElementVNode("view",{class:"list",key:n,onClick:r[4]||(r[4]=e=>{var t;Ne(t="/pages/meeting/detail?id=1",(()=>{uni.navigateTo({url:t})}))})},[e.createElementVNode("view",{class:"title f-row aic jcb"},[e.createElementVNode("view",{class:""}," 年度部门讨论会议 "),e.createElementVNode("text",null,"1分钟前")]),e.createElementVNode("view",{class:"info"},[e.createElementVNode("view",{class:"f-row aic jcb"},[e.createElementVNode("view",{class:""}," 发起人: "),e.createElementVNode("text",null,"周如意")]),e.createElementVNode("view",{class:"f-row aic jcb"},[e.createElementVNode("view",{class:""}," 会议日期: "),e.createElementVNode("text",null,"周如意")]),e.createElementVNode("view",{class:"f-row aic jcb"},[e.createElementVNode("view",{class:""}," 会议地点: "),e.createElementVNode("text",null,"周如意")]),e.createElementVNode("view",{class:"f-row aic jcb"},[e.createElementVNode("view",{class:""}," 会议内容: "),e.createElementVNode("text",null,"周如意")])]),e.createElementVNode("view",{class:"handled f-row"},[e.createElementVNode("view",{class:"refused"}," 已拒绝 ")])]))),64))])],2)}}},[["__scopeId","data-v-c839cafa"]]),rt=q({__name:"detail",setup(n){const i=H();r((()=>{a()}));const a=()=>{var e;(e={mainid:1},u({url:"/zhgl_hygl/zhglHyglHyyc/listbymainid",method:"get",data:e})).then((e=>{e.success})).catch((e=>{t("log","at pages/meeting/detail.vue:94",e)}))};return(t,n)=>(e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass(["content",{gray:1==e.unref(i).isgray}])},[e.createElementVNode("view",{class:"list_box"},[e.createElementVNode("view",{class:"list"},[e.createElementVNode("view",{class:"title f-row aic jcb"},[e.createElementVNode("view",{class:""}," 年度部门讨论会议 "),e.createElementVNode("text",null,"1分钟前")]),e.createElementVNode("view",{class:"info"},[e.createElementVNode("view",{class:"f-row aic jcb"},[e.createElementVNode("view",{class:""}," 会议状态: "),e.createElementVNode("text",null,"待开始/已开始/已结束")]),e.createElementVNode("view",{class:"f-row aic jcb"},[e.createElementVNode("view",{class:""}," 发起人: "),e.createElementVNode("text",null,"周如意")]),e.createElementVNode("view",{class:"f-row aic jcb"},[e.createElementVNode("view",{class:""}," 会议日期: "),e.createElementVNode("text",null,"周如意")]),e.createElementVNode("view",{class:"f-row aic jcb"},[e.createElementVNode("view",{class:""}," 会议地点: "),e.createElementVNode("text",null,"周如意")]),e.createElementVNode("view",{class:"f-row aic jcb"},[e.createElementVNode("view",{class:""}," 会议内容: "),e.createElementVNode("text",null,"周如意")]),e.createElementVNode("view",{class:""},[e.createElementVNode("view",{class:""}," 参与人员: "),e.createElementVNode("view",{class:"person f-row aic"},[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(7,((t,n)=>e.createElementVNode("view",{class:"item f-col aic",key:n},[e.createElementVNode("image",{src:"",mode:""}),e.createElementVNode("view",{class:"name"}," 周如意 ")]))),64))])])])])]),e.createElementVNode("view",{class:"btn f-row aic jcb"},[e.createElementVNode("view",{class:"refuse"}," 拒绝 "),e.createElementVNode("view",{class:"agree",onClick:n[0]||(n[0]=(...e)=>t.openpop&&t.openpop(...e))}," 同意 ")])],2))}},[["__scopeId","data-v-7441efc4"]]),ot={pages:[{path:"pages/login/login",style:{navigationStyle:"custom"}},{path:"pages/tab/index",style:{navigationStyle:"custom",enablePullDownRefresh:!0}},{path:"pages/task/todotask",style:{navigationStyle:"custom",enablePullDownRefresh:!0}},{path:"pages/tab/office",style:{navigationStyle:"custom"}},{path:"pages/tab/my",style:{navigationStyle:"custom"}},{path:"pages/task/index",style:{enablePullDownRefresh:!0,"app-plus":{titleNView:{titleText:"我的任务",titleColor:"#fff"}}}},{path:"pages/task/handle",style:{navigationStyle:"custom"}},{path:"pages/talk/message_list",style:{navigationBarTitleText:"消息",enablePullDownRefresh:!0,navigationBarTextStyle:"white"}},{path:"pages/talk/conversation",style:{navigationBarTitleText:"昵称",enablePullDownRefresh:!0,navigationBarTextStyle:"white"}},{path:"pages/talk/system",style:{navigationBarTitleText:"系统通知",enablePullDownRefresh:!0,navigationBarTextStyle:"white"}},{path:"pages/document/index",style:{navigationStyle:"custom",enablePullDownRefresh:!0}},{path:"pages/document/detail",style:{navigationBarTitleText:"详情",navigationBarTextStyle:"white"}},{path:"pages/meeting/index",style:{navigationStyle:"custom"}},{path:"pages/meeting/detail",style:{navigationBarTitleText:"详情",enablePullDownRefresh:!1,navigationBarTextStyle:"white"}},{path:"pages/leave/application",style:{navigationBarTitleText:"请假申请",enablePullDownRefresh:!1,navigationBarTextStyle:"white"}},{path:"pages/checkin/index",style:{navigationStyle:"custom"}},{path:"pages/useredit/useredit",style:{navigationBarTitleText:"资料编辑",navigationBarTextStyle:"white"}},{path:"pages/useredit/address",style:{navigationBarTitleText:"地址",enablePullDownRefresh:!1,navigationBarTextStyle:"white"}},{path:"pages/useredit/add_address",style:{navigationBarTitleText:"添加地址",enablePullDownRefresh:!1,navigationBarTextStyle:"white"}},{path:"pages/useredit/addressbook",style:{navigationBarTitleText:"通讯录",enablePullDownRefresh:!1,navigationBarTextStyle:"white"}},{path:"pages/safe/manage",style:{navigationStyle:"custom"}},{path:"pages/product/index",style:{navigationBarTitleText:"生产数据",enablePullDownRefresh:!1,navigationBarTextStyle:"white"}},{path:"pages/userlist/index",style:{navigationBarTitleText:"",navigationBarTextStyle:"white"}},{path:"pages/safe/detail",style:{navigationStyle:"custom"}},{path:"pages/zhiban/index",style:{navigationBarTitleText:"值班信息",navigationBarTextStyle:"white"}},{path:"pages/task/self",style:{navigationBarTitleText:"本人发起",navigationBarTextStyle:"white"}}],tabBar:{color:"#333333",selectedColor:"#01508B",borderStyle:"black",backgroundColor:"#FFFFFF",list:[{text:"首页",pagePath:"pages/tab/index",iconPath:"static/tab/index1.png",selectedIconPath:"static/tab/index2.png"},{text:"任务",pagePath:"pages/task/todotask",iconPath:"static/tab/office1.png",selectedIconPath:"static/tab/office2.png"},{text:"办公",pagePath:"pages/tab/office",iconPath:"static/tab/product1.png",selectedIconPath:"static/tab/product2.png"},{text:"我的",pagePath:"pages/tab/my",iconPath:"static/tab/user1.png",selectedIconPath:"static/tab/user2.png"}]},globalStyle:{"app-plus":{titleNView:{backgroundImage:"linear-gradient(to left , #256FBC, #044D87)"}}},uniIdRouter:{}};function lt(e,t,n){return e(n={path:t,exports:{},require:function(e,t){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==t&&n.path)}},n.exports),n.exports}var ct=lt((function(e,t){var n;e.exports=(n=n||function(e,t){var n=Object.create||function(){function e(){}return function(t){var n;return e.prototype=t,n=new e,e.prototype=null,n}}(),i={},a=i.lib={},s=a.Base={extend:function(e){var t=n(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}},r=a.WordArray=s.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=null!=t?t:4*e.length},toString:function(e){return(e||l).stringify(this)},concat:function(e){var t=this.words,n=e.words,i=this.sigBytes,a=e.sigBytes;if(this.clamp(),i%4)for(var s=0;s>>2]>>>24-s%4*8&255;t[i+s>>>2]|=r<<24-(i+s)%4*8}else for(s=0;s>>2]=n[s>>>2];return this.sigBytes+=a,this},clamp:function(){var t=this.words,n=this.sigBytes;t[n>>>2]&=4294967295<<32-n%4*8,t.length=e.ceil(n/4)},clone:function(){var e=s.clone.call(this);return e.words=this.words.slice(0),e},random:function(t){for(var n,i=[],a=function(t){var n=987654321,i=4294967295;return function(){var a=((n=36969*(65535&n)+(n>>16)&i)<<16)+(t=18e3*(65535&t)+(t>>16)&i)&i;return a/=4294967296,(a+=.5)*(e.random()>.5?1:-1)}},s=0;s>>2]>>>24-a%4*8&255;i.push((s>>>4).toString(16)),i.push((15&s).toString(16))}return i.join("")},parse:function(e){for(var t=e.length,n=[],i=0;i>>3]|=parseInt(e.substr(i,2),16)<<24-i%8*4;return new r.init(n,t/2)}},c=o.Latin1={stringify:function(e){for(var t=e.words,n=e.sigBytes,i=[],a=0;a>>2]>>>24-a%4*8&255;i.push(String.fromCharCode(s))}return i.join("")},parse:function(e){for(var t=e.length,n=[],i=0;i>>2]|=(255&e.charCodeAt(i))<<24-i%4*8;return new r.init(n,t)}},u=o.Utf8={stringify:function(e){try{return decodeURIComponent(escape(c.stringify(e)))}catch(t){throw new Error("Malformed UTF-8 data")}},parse:function(e){return c.parse(unescape(encodeURIComponent(e)))}},d=a.BufferedBlockAlgorithm=s.extend({reset:function(){this._data=new r.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=u.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var n=this._data,i=n.words,a=n.sigBytes,s=this.blockSize,o=a/(4*s),l=(o=t?e.ceil(o):e.max((0|o)-this._minBufferSize,0))*s,c=e.min(4*l,a);if(l){for(var u=0;u>>24)|4278255360&(a<<24|a>>>8)}var s=this._hash.words,r=e[t+0],l=e[t+1],p=e[t+2],f=e[t+3],m=e[t+4],g=e[t+5],v=e[t+6],y=e[t+7],w=e[t+8],k=e[t+9],_=e[t+10],S=e[t+11],b=e[t+12],E=e[t+13],x=e[t+14],D=e[t+15],T=s[0],N=s[1],C=s[2],V=s[3];T=c(T,N,C,V,r,7,o[0]),V=c(V,T,N,C,l,12,o[1]),C=c(C,V,T,N,p,17,o[2]),N=c(N,C,V,T,f,22,o[3]),T=c(T,N,C,V,m,7,o[4]),V=c(V,T,N,C,g,12,o[5]),C=c(C,V,T,N,v,17,o[6]),N=c(N,C,V,T,y,22,o[7]),T=c(T,N,C,V,w,7,o[8]),V=c(V,T,N,C,k,12,o[9]),C=c(C,V,T,N,_,17,o[10]),N=c(N,C,V,T,S,22,o[11]),T=c(T,N,C,V,b,7,o[12]),V=c(V,T,N,C,E,12,o[13]),C=c(C,V,T,N,x,17,o[14]),T=u(T,N=c(N,C,V,T,D,22,o[15]),C,V,l,5,o[16]),V=u(V,T,N,C,v,9,o[17]),C=u(C,V,T,N,S,14,o[18]),N=u(N,C,V,T,r,20,o[19]),T=u(T,N,C,V,g,5,o[20]),V=u(V,T,N,C,_,9,o[21]),C=u(C,V,T,N,D,14,o[22]),N=u(N,C,V,T,m,20,o[23]),T=u(T,N,C,V,k,5,o[24]),V=u(V,T,N,C,x,9,o[25]),C=u(C,V,T,N,f,14,o[26]),N=u(N,C,V,T,w,20,o[27]),T=u(T,N,C,V,E,5,o[28]),V=u(V,T,N,C,p,9,o[29]),C=u(C,V,T,N,y,14,o[30]),T=d(T,N=u(N,C,V,T,b,20,o[31]),C,V,g,4,o[32]),V=d(V,T,N,C,w,11,o[33]),C=d(C,V,T,N,S,16,o[34]),N=d(N,C,V,T,x,23,o[35]),T=d(T,N,C,V,l,4,o[36]),V=d(V,T,N,C,m,11,o[37]),C=d(C,V,T,N,y,16,o[38]),N=d(N,C,V,T,_,23,o[39]),T=d(T,N,C,V,E,4,o[40]),V=d(V,T,N,C,r,11,o[41]),C=d(C,V,T,N,f,16,o[42]),N=d(N,C,V,T,v,23,o[43]),T=d(T,N,C,V,k,4,o[44]),V=d(V,T,N,C,b,11,o[45]),C=d(C,V,T,N,D,16,o[46]),T=h(T,N=d(N,C,V,T,p,23,o[47]),C,V,r,6,o[48]),V=h(V,T,N,C,y,10,o[49]),C=h(C,V,T,N,x,15,o[50]),N=h(N,C,V,T,g,21,o[51]),T=h(T,N,C,V,b,6,o[52]),V=h(V,T,N,C,f,10,o[53]),C=h(C,V,T,N,_,15,o[54]),N=h(N,C,V,T,l,21,o[55]),T=h(T,N,C,V,w,6,o[56]),V=h(V,T,N,C,D,10,o[57]),C=h(C,V,T,N,v,15,o[58]),N=h(N,C,V,T,E,21,o[59]),T=h(T,N,C,V,m,6,o[60]),V=h(V,T,N,C,S,10,o[61]),C=h(C,V,T,N,p,15,o[62]),N=h(N,C,V,T,k,21,o[63]),s[0]=s[0]+T|0,s[1]=s[1]+N|0,s[2]=s[2]+C|0,s[3]=s[3]+V|0},_doFinalize:function(){var t=this._data,n=t.words,i=8*this._nDataBytes,a=8*t.sigBytes;n[a>>>5]|=128<<24-a%32;var s=e.floor(i/4294967296),r=i;n[15+(a+64>>>9<<4)]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),n[14+(a+64>>>9<<4)]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8),t.sigBytes=4*(n.length+1),this._process();for(var o=this._hash,l=o.words,c=0;c<4;c++){var u=l[c];l[c]=16711935&(u<<8|u>>>24)|4278255360&(u<<24|u>>>8)}return o},clone:function(){var e=s.clone.call(this);return e._hash=this._hash.clone(),e}});function c(e,t,n,i,a,s,r){var o=e+(t&n|~t&i)+a+r;return(o<>>32-s)+t}function u(e,t,n,i,a,s,r){var o=e+(t&i|n&~i)+a+r;return(o<>>32-s)+t}function d(e,t,n,i,a,s,r){var o=e+(t^n^i)+a+r;return(o<>>32-s)+t}function h(e,t,n,i,a,s,r){var o=e+(n^(t|~i))+a+r;return(o<>>32-s)+t}t.MD5=s._createHelper(l),t.HmacMD5=s._createHmacHelper(l)}(Math),n.MD5)})),lt((function(e,t){var n,i,a;e.exports=(i=(n=ut).lib.Base,a=n.enc.Utf8,void(n.algo.HMAC=i.extend({init:function(e,t){e=this._hasher=new e.init,"string"==typeof t&&(t=a.parse(t));var n=e.blockSize,i=4*n;t.sigBytes>i&&(t=e.finalize(t)),t.clamp();for(var s=this._oKey=t.clone(),r=this._iKey=t.clone(),o=s.words,l=r.words,c=0;c>>2]>>>24-s%4*8&255)<<16|(t[s+1>>>2]>>>24-(s+1)%4*8&255)<<8|t[s+2>>>2]>>>24-(s+2)%4*8&255,o=0;o<4&&s+.75*o>>6*(3-o)&63));var l=i.charAt(64);if(l)for(;a.length%4;)a.push(l);return a.join("")},parse:function(e){var t=e.length,n=this._map,i=this._reverseMap;if(!i){i=this._reverseMap=[];for(var s=0;s>>6-r%4*2;i[s>>>2]|=(o|l)<<24-s%4*8,s++}return a.create(i,s)}(e,t,i)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="},n.enc.Base64)}));const ft="FUNCTION",mt="pending",gt="rejected";function vt(e){return Object.prototype.toString.call(e).slice(8,-1).toLowerCase()}function yt(e){return"object"===vt(e)}function wt(e){return"function"==typeof e}function kt(e){return function(){try{return e.apply(e,arguments)}catch(t){console.error(t)}}}const _t="REJECTED",St="NOT_PENDING";class bt{constructor({createPromise:e,retryRule:t=_t}={}){this.createPromise=e,this.status=null,this.promise=null,this.retryRule=t}get needRetry(){if(!this.status)return!0;switch(this.retryRule){case _t:return this.status===gt;case St:return this.status!==mt}}exec(){return this.needRetry?(this.status=mt,this.promise=this.createPromise().then((e=>(this.status="fulfilled",Promise.resolve(e))),(e=>(this.status=gt,Promise.reject(e)))),this.promise):this.promise}}function Et(e){return e&&"string"==typeof e?JSON.parse(e):e}const xt=Et([]);Et("");const Dt=Et('[{"provider":"aliyun","spaceName":"szcx-app","spaceId":"mp-a5a4405f-df9a-4c27-b553-dca803accfbc","clientSecret":"vYZ7Nv/mnOB6vUulLJ4B7Q==","endpoint":"https://api.next.bspapp.com"}]')||[];let Tt="";try{Tt="__UNI__9F097F0"}catch(gn){}let Nt={};function Ct(e,t={}){var n,i;return n=Nt,i=e,Object.prototype.hasOwnProperty.call(n,i)||(Nt[e]=t),Nt[e]}Nt=uni._globalUniCloudObj?uni._globalUniCloudObj:uni._globalUniCloudObj={};const Vt=["invoke","success","fail","complete"],It=Ct("_globalUniCloudInterceptor");function Bt(e,t){It[e]||(It[e]={}),yt(t)&&Object.keys(t).forEach((n=>{Vt.indexOf(n)>-1&&function(e,t,n){let i=It[e][t];i||(i=It[e][t]=[]),-1===i.indexOf(n)&&wt(n)&&i.push(n)}(e,n,t[n])}))}function At(e,t){It[e]||(It[e]={}),yt(t)?Object.keys(t).forEach((n=>{Vt.indexOf(n)>-1&&function(e,t,n){const i=It[e][t];if(!i)return;const a=i.indexOf(n);a>-1&&i.splice(a,1)}(e,n,t[n])})):delete It[e]}function Mt(e,t){return e&&0!==e.length?e.reduce(((e,n)=>e.then((()=>n(t)))),Promise.resolve()):Promise.resolve()}function Pt(e,t){return It[e]&&It[e][t]||[]}function Rt(e){Bt("callObject",e)}const Ot=Ct("_globalUniCloudListener"),Lt="response",Ft="needLogin",jt="refreshToken",Ut="clientdb",$t="cloudfunction",zt="cloudobject";function Ht(e){return Ot[e]||(Ot[e]=[]),Ot[e]}function qt(e,t){const n=Ht(e);n.includes(t)||n.push(t)}function Kt(e,t){const n=Ht(e),i=n.indexOf(t);-1!==i&&n.splice(i,1)}function Jt(e,t){const n=Ht(e);for(let i=0;i{Yt&&e(),function t(){if("function"==typeof getCurrentPages){const t=getCurrentPages();t&&t[0]&&(Yt=!0,e())}Yt||setTimeout((()=>{t()}),30)}()})),Wt)}function Zt(e){const t={};for(const n in e){const i=e[n];wt(i)&&(t[n]=kt(i))}return t}class Qt extends Error{constructor(e){super(e.message),this.errMsg=e.message||e.errMsg||"unknown system error",this.code=this.errCode=e.code||e.errCode||"SYSTEM_ERROR",this.errSubject=this.subject=e.subject||e.errSubject,this.cause=e.cause,this.requestId=e.requestId}toJson(e=0){if(!(e>=10))return e++,{errCode:this.errCode,errMsg:this.errMsg,errSubject:this.errSubject,cause:this.cause&&this.cause.toJson?this.cause.toJson(e):this.cause}}}var Xt={request:e=>uni.request(e),uploadFile:e=>uni.uploadFile(e),setStorageSync:(e,t)=>uni.setStorageSync(e,t),getStorageSync:e=>uni.getStorageSync(e),removeStorageSync:e=>uni.removeStorageSync(e),clearStorageSync:()=>uni.clearStorageSync()};function en(e){return e&&en(e.__v_raw)||e}function tn(){return{token:Xt.getStorageSync("uni_id_token")||Xt.getStorageSync("uniIdToken"),tokenExpired:Xt.getStorageSync("uni_id_token_expired")}}function nn({token:e,tokenExpired:t}={}){e&&Xt.setStorageSync("uni_id_token",e),t&&Xt.setStorageSync("uni_id_token_expired",t)}let an,sn;function rn(){return an||(an=uni.getSystemInfoSync()),an}function on(){let e,t;try{if(uni.getLaunchOptionsSync){if(uni.getLaunchOptionsSync.toString().indexOf("not yet implemented")>-1)return;const{scene:n,channel:i}=uni.getLaunchOptionsSync();e=i,t=n}}catch(n){}return{channel:e,scene:t}}function ln(){const e=uni.getLocale&&uni.getLocale()||"en";if(sn)return{...sn,locale:e,LOCALE:e};const t=rn(),{deviceId:n,osName:i,uniPlatform:a,appId:s}=t,r=["pixelRatio","brand","model","system","language","version","platform","host","SDKVersion","swanNativeVersion","app","AppPlatform","fontSizeSetting"];for(let o=0;o{t(Object.assign(e,{complete(e){e||(e={});const t=e.data&&e.data.header&&e.data.header["x-serverless-request-id"]||e.header&&e.header["request-id"];if(!e.statusCode||e.statusCode>=400){const n=e.data&&e.data.error&&e.data.error.code||"SYS_ERR",a=e.data&&e.data.error&&e.data.error.message||e.errMsg||"request:fail";return i(new Qt({code:n,message:a,requestId:t}))}const a=e.data;if(a.error)return i(new Qt({code:a.error.code,message:a.error.message,requestId:t}));a.result=a.data,a.requestId=t,delete a.data,n(a)}}))}))},dn=function(e){return pt.stringify(ht.parse(e))},hn=class{constructor(e){["spaceId","clientSecret"].forEach((t=>{if(!Object.prototype.hasOwnProperty.call(e,t))throw new Error(`${t} required`)})),this.config=Object.assign({},{endpoint:0===e.spaceId.indexOf("mp-")?"https://api.next.bspapp.com":"https://api.bspapp.com"},e),this.config.provider="aliyun",this.config.requestUrl=this.config.endpoint+"/client",this.config.envType=this.config.envType||"public",this.config.accessTokenKey="access_token_"+this.config.spaceId,this.adapter=Xt,this._getAccessTokenPromiseHub=new bt({createPromise:()=>this.requestAuth(this.setupRequest({method:"serverless.auth.user.anonymousAuthorize",params:"{}"},"auth")).then((e=>{if(!e.result||!e.result.accessToken)throw new Qt({code:"AUTH_FAILED",message:"获取accessToken失败"});this.setAccessToken(e.result.accessToken)})),retryRule:St})}get hasAccessToken(){return!!this.accessToken}setAccessToken(e){this.accessToken=e}requestWrapped(e){return un(e,this.adapter.request)}requestAuth(e){return this.requestWrapped(e)}request(e,t){return Promise.resolve().then((()=>this.hasAccessToken?t?this.requestWrapped(e):this.requestWrapped(e).catch((t=>new Promise(((e,n)=>{!t||"GATEWAY_INVALID_TOKEN"!==t.code&&"InvalidParameter.InvalidToken"!==t.code?n(t):e()})).then((()=>this.getAccessToken())).then((()=>{const t=this.rebuildRequest(e);return this.request(t,!0)})))):this.getAccessToken().then((()=>{const t=this.rebuildRequest(e);return this.request(t,!0)}))))}rebuildRequest(e){const t=Object.assign({},e);return t.data.token=this.accessToken,t.header["x-basement-token"]=this.accessToken,t.header["x-serverless-sign"]=cn(t.data,this.config.clientSecret),t}setupRequest(e,t){const n=Object.assign({},e,{spaceId:this.config.spaceId,timestamp:Date.now()}),i={"Content-Type":"application/json"};return"auth"!==t&&(n.token=this.accessToken,i["x-basement-token"]=this.accessToken),i["x-serverless-sign"]=cn(n,this.config.clientSecret),{url:this.config.requestUrl,method:"POST",data:n,dataType:"json",header:i}}getAccessToken(){return this._getAccessTokenPromiseHub.exec()}async authorize(){await this.getAccessToken()}callFunction(e){const t={method:"serverless.function.runtime.invoke",params:JSON.stringify({functionTarget:e.name,functionArgs:e.data||{}})};return this.request(this.setupRequest(t))}getOSSUploadOptionsFromPath(e){const t={method:"serverless.file.resource.generateProximalSign",params:JSON.stringify(e)};return this.request(this.setupRequest(t))}uploadFileToOSS({url:e,formData:t,name:n,filePath:i,fileType:a,onUploadProgress:s}){return new Promise(((r,o)=>{const l=this.adapter.uploadFile({url:e,formData:t,name:n,filePath:i,fileType:a,header:{"X-OSS-server-side-encrpytion":"AES256"},success(e){e&&e.statusCode<400?r(e):o(new Qt({code:"UPLOAD_FAILED",message:"文件上传失败"}))},fail(e){o(new Qt({code:e.code||"UPLOAD_FAILED",message:e.message||e.errMsg||"文件上传失败"}))}});"function"==typeof s&&l&&"function"==typeof l.onProgressUpdate&&l.onProgressUpdate((e=>{s({loaded:e.totalBytesSent,total:e.totalBytesExpectedToSend})}))}))}reportOSSUpload(e){const t={method:"serverless.file.resource.report",params:JSON.stringify(e)};return this.request(this.setupRequest(t))}async uploadFile({filePath:e,cloudPath:t,fileType:n="image",cloudPathAsRealPath:i=!1,onUploadProgress:a,config:s}){if("string"!==vt(t))throw new Qt({code:"INVALID_PARAM",message:"cloudPath必须为字符串类型"});if(!(t=t.trim()))throw new Qt({code:"INVALID_PARAM",message:"cloudPath不可为空"});if(/:\/\//.test(t))throw new Qt({code:"INVALID_PARAM",message:"cloudPath不合法"});const r=s&&s.envType||this.config.envType;if(i&&("/"!==t[0]&&(t="/"+t),t.indexOf("\\")>-1))throw new Qt({code:"INVALID_PARAM",message:"使用cloudPath作为路径时,cloudPath不可包含“\\”"});const o=(await this.getOSSUploadOptionsFromPath({env:r,filename:i?t.split("/").pop():t,fileId:i?t:void 0})).result,l="https://"+o.cdnDomain+"/"+o.ossPath,{securityToken:c,accessKeyId:u,signature:d,host:h,ossPath:p,id:f,policy:m,ossCallbackUrl:g}=o,v={"Cache-Control":"max-age=2592000","Content-Disposition":"attachment",OSSAccessKeyId:u,Signature:d,host:h,id:f,key:p,policy:m,success_action_status:200};if(c&&(v["x-oss-security-token"]=c),g){const e=JSON.stringify({callbackUrl:g,callbackBody:JSON.stringify({fileId:f,spaceId:this.config.spaceId}),callbackBodyType:"application/json"});v.callback=dn(e)}const y={url:"https://"+o.host,formData:v,fileName:"file",name:"file",filePath:e,fileType:n};if(await this.uploadFileToOSS(Object.assign({},y,{onUploadProgress:a})),g)return{success:!0,filePath:e,fileID:l};if((await this.reportOSSUpload({id:f})).success)return{success:!0,filePath:e,fileID:l};throw new Qt({code:"UPLOAD_FAILED",message:"文件上传失败"})}getTempFileURL({fileList:e}={}){return new Promise(((t,n)=>{Array.isArray(e)&&0!==e.length||n(new Qt({code:"INVALID_PARAM",message:"fileList的元素必须是非空的字符串"})),t({fileList:e.map((e=>({fileID:e,tempFileURL:e})))})}))}async getFileInfo({fileList:e}={}){if(!Array.isArray(e)||0===e.length)throw new Qt({code:"INVALID_PARAM",message:"fileList的元素必须是非空的字符串"});const t={method:"serverless.file.resource.info",params:JSON.stringify({id:e.map((e=>e.split("?")[0])).join(",")})};return{fileList:(await this.request(this.setupRequest(t))).result}}},pn={init(e){const t=new hn(e),n={signInAnonymously:function(){return t.authorize()},getLoginState:function(){return Promise.resolve(!1)}};return t.auth=function(){return n},t.customAuth=t.auth,t}};const fn="undefined"!=typeof location&&"http:"===location.protocol?"http:":"https:";var mn,gn;(gn=mn||(mn={})).local="local",gn.none="none",gn.session="session";var vn=function(){},yn=lt((function(e,t){var n;e.exports=(n=ut,function(e){var t=n,i=t.lib,a=i.WordArray,s=i.Hasher,r=t.algo,o=[],l=[];!function(){function t(t){for(var n=e.sqrt(t),i=2;i<=n;i++)if(!(t%i))return!1;return!0}function n(e){return 4294967296*(e-(0|e))|0}for(var i=2,a=0;a<64;)t(i)&&(a<8&&(o[a]=n(e.pow(i,.5))),l[a]=n(e.pow(i,1/3)),a++),i++}();var c=[],u=r.SHA256=s.extend({_doReset:function(){this._hash=new a.init(o.slice(0))},_doProcessBlock:function(e,t){for(var n=this._hash.words,i=n[0],a=n[1],s=n[2],r=n[3],o=n[4],u=n[5],d=n[6],h=n[7],p=0;p<64;p++){if(p<16)c[p]=0|e[t+p];else{var f=c[p-15],m=(f<<25|f>>>7)^(f<<14|f>>>18)^f>>>3,g=c[p-2],v=(g<<15|g>>>17)^(g<<13|g>>>19)^g>>>10;c[p]=m+c[p-7]+v+c[p-16]}var y=i&a^i&s^a&s,w=(i<<30|i>>>2)^(i<<19|i>>>13)^(i<<10|i>>>22),k=h+((o<<26|o>>>6)^(o<<21|o>>>11)^(o<<7|o>>>25))+(o&u^~o&d)+l[p]+c[p];h=d,d=u,u=o,o=r+k|0,r=s,s=a,a=i,i=k+(w+y)|0}n[0]=n[0]+i|0,n[1]=n[1]+a|0,n[2]=n[2]+s|0,n[3]=n[3]+r|0,n[4]=n[4]+o|0,n[5]=n[5]+u|0,n[6]=n[6]+d|0,n[7]=n[7]+h|0},_doFinalize:function(){var t=this._data,n=t.words,i=8*this._nDataBytes,a=8*t.sigBytes;return n[a>>>5]|=128<<24-a%32,n[14+(a+64>>>9<<4)]=e.floor(i/4294967296),n[15+(a+64>>>9<<4)]=i,t.sigBytes=4*n.length,this._process(),this._hash},clone:function(){var e=s.clone.call(this);return e._hash=this._hash.clone(),e}});t.SHA256=s._createHelper(u),t.HmacSHA256=s._createHmacHelper(u)}(Math),n.SHA256)})),wn=yn,kn=lt((function(e,t){e.exports=ut.HmacSHA256}));const _n=()=>{let e;if(!Promise){e=()=>{},e.promise={};const t=()=>{throw new Qt({message:'Your Node runtime does support ES6 Promises. Set "global.Promise" to your preferred implementation of promises.'})};return Object.defineProperty(e.promise,"then",{get:t}),Object.defineProperty(e.promise,"catch",{get:t}),e}const t=new Promise(((t,n)=>{e=(e,i)=>e?n(e):t(i)}));return e.promise=t,e};function Sn(e){return void 0===e}function bn(e){return"[object Null]"===Object.prototype.toString.call(e)}var En;!function(e){e.WEB="web",e.WX_MP="wx_mp"}(En||(En={}));const xn={adapter:null,runtime:void 0},Dn=["anonymousUuidKey"];class Tn extends vn{constructor(){super(),xn.adapter.root.tcbObject||(xn.adapter.root.tcbObject={})}setItem(e,t){xn.adapter.root.tcbObject[e]=t}getItem(e){return xn.adapter.root.tcbObject[e]}removeItem(e){delete xn.adapter.root.tcbObject[e]}clear(){delete xn.adapter.root.tcbObject}}function Nn(e,t){switch(e){case"local":return t.localStorage||new Tn;case"none":return new Tn;default:return t.sessionStorage||new Tn}}class Cn{constructor(e){if(!this._storage){this._persistence=xn.adapter.primaryStorage||e.persistence,this._storage=Nn(this._persistence,xn.adapter);const t=`access_token_${e.env}`,n=`access_token_expire_${e.env}`,i=`refresh_token_${e.env}`,a=`anonymous_uuid_${e.env}`,s=`login_type_${e.env}`,r=`user_info_${e.env}`;this.keys={accessTokenKey:t,accessTokenExpireKey:n,refreshTokenKey:i,anonymousUuidKey:a,loginTypeKey:s,userInfoKey:r}}}updatePersistence(e){if(e===this._persistence)return;const t="local"===this._persistence;this._persistence=e;const n=Nn(e,xn.adapter);for(const i in this.keys){const e=this.keys[i];if(t&&Dn.includes(i))continue;const a=this._storage.getItem(e);Sn(a)||bn(a)||(n.setItem(e,a),this._storage.removeItem(e))}this._storage=n}setStore(e,t,n){if(!this._storage)return;const i={version:n||"localCachev1",content:t},a=JSON.stringify(i);try{this._storage.setItem(e,a)}catch(s){throw s}}getStore(e,t){try{if(!this._storage)return}catch(i){return""}t=t||"localCachev1";const n=this._storage.getItem(e);return n&&n.indexOf(t)>=0?JSON.parse(n).content:""}removeStore(e){this._storage.removeItem(e)}}const Vn={},In={};function Bn(e){return Vn[e]}class An{constructor(e,t){this.data=t||null,this.name=e}}class Mn extends An{constructor(e,t){super("error",{error:e,data:t}),this.error=e}}const Pn=new class{constructor(){this._listeners={}}on(e,t){return n=e,i=t,(a=this._listeners)[n]=a[n]||[],a[n].push(i),this;var n,i,a}off(e,t){return function(e,t,n){if(n&&n[e]){const i=n[e].indexOf(t);-1!==i&&n[e].splice(i,1)}}(e,t,this._listeners),this}fire(e,t){if(e instanceof Mn)return console.error(e.error),this;const n="string"==typeof e?new An(e,t||{}):e,i=n.name;if(this._listens(i)){n.target=this;const e=this._listeners[i]?[...this._listeners[i]]:[];for(const t of e)t.call(this,n)}return this}_listens(e){return this._listeners[e]&&this._listeners[e].length>0}};function Rn(e,t){Pn.on(e,t)}function On(e,t={}){Pn.fire(e,t)}function Ln(e,t){Pn.off(e,t)}const Fn="loginStateChanged",jn="loginStateExpire",Un="loginTypeChanged",$n="anonymousConverted",zn="refreshAccessToken";var Hn;!function(e){e.ANONYMOUS="ANONYMOUS",e.WECHAT="WECHAT",e.WECHAT_PUBLIC="WECHAT-PUBLIC",e.WECHAT_OPEN="WECHAT-OPEN",e.CUSTOM="CUSTOM",e.EMAIL="EMAIL",e.USERNAME="USERNAME",e.NULL="NULL"}(Hn||(Hn={}));const qn=["auth.getJwt","auth.logout","auth.signInWithTicket","auth.signInAnonymously","auth.signIn","auth.fetchAccessTokenWithRefreshToken","auth.signUpWithEmailAndPassword","auth.activateEndUserMail","auth.sendPasswordResetEmail","auth.resetPasswordWithToken","auth.isUsernameRegistered"],Kn={"X-SDK-Version":"1.3.5"};function Jn(e,t,n){const i=e[t];e[t]=function(t){const a={},s={};n.forEach((n=>{const{data:i,headers:r}=n.call(e,t);Object.assign(a,i),Object.assign(s,r)}));const r=t.data;return r&&(()=>{var e;if(e=r,"[object FormData]"!==Object.prototype.toString.call(e))t.data={...r,...a};else for(const t in a)r.append(t,a[t])})(),t.headers={...t.headers||{},...s},i.call(e,t)}}function Wn(){const e=Math.random().toString(16).slice(2);return{data:{seqId:e},headers:{...Kn,"x-seqid":e}}}class Yn{constructor(e={}){var t;this.config=e,this._reqClass=new xn.adapter.reqClass({timeout:this.config.timeout,timeoutMsg:`请求在${this.config.timeout/1e3}s内未完成,已中断`,restrictedMethods:["post"]}),this._cache=Bn(this.config.env),this._localCache=(t=this.config.env,In[t]),Jn(this._reqClass,"post",[Wn]),Jn(this._reqClass,"upload",[Wn]),Jn(this._reqClass,"download",[Wn])}async post(e){return await this._reqClass.post(e)}async upload(e){return await this._reqClass.upload(e)}async download(e){return await this._reqClass.download(e)}async refreshAccessToken(){let e,t;this._refreshAccessTokenPromise||(this._refreshAccessTokenPromise=this._refreshAccessToken());try{e=await this._refreshAccessTokenPromise}catch(n){t=n}if(this._refreshAccessTokenPromise=null,this._shouldRefreshAccessTokenHook=null,t)throw t;return e}async _refreshAccessToken(){const{accessTokenKey:e,accessTokenExpireKey:t,refreshTokenKey:n,loginTypeKey:i,anonymousUuidKey:a}=this._cache.keys;this._cache.removeStore(e),this._cache.removeStore(t);let s=this._cache.getStore(n);if(!s)throw new Qt({message:"未登录CloudBase"});const r={refresh_token:s},o=await this.request("auth.fetchAccessTokenWithRefreshToken",r);if(o.data.code){const{code:e}=o.data;if("SIGN_PARAM_INVALID"===e||"REFRESH_TOKEN_EXPIRED"===e||"INVALID_REFRESH_TOKEN"===e){if(this._cache.getStore(i)===Hn.ANONYMOUS&&"INVALID_REFRESH_TOKEN"===e){const e=this._cache.getStore(a),t=this._cache.getStore(n),i=await this.send("auth.signInAnonymously",{anonymous_uuid:e,refresh_token:t});return this.setRefreshToken(i.refresh_token),this._refreshAccessToken()}On(jn),this._cache.removeStore(n)}throw new Qt({code:o.data.code,message:`刷新access token失败:${o.data.code}`})}if(o.data.access_token)return On(zn),this._cache.setStore(e,o.data.access_token),this._cache.setStore(t,o.data.access_token_expire+Date.now()),{accessToken:o.data.access_token,accessTokenExpire:o.data.access_token_expire};o.data.refresh_token&&(this._cache.removeStore(n),this._cache.setStore(n,o.data.refresh_token),this._refreshAccessToken())}async getAccessToken(){const{accessTokenKey:e,accessTokenExpireKey:t,refreshTokenKey:n}=this._cache.keys;if(!this._cache.getStore(n))throw new Qt({message:"refresh token不存在,登录状态异常"});let i=this._cache.getStore(e),a=this._cache.getStore(t),s=!0;return this._shouldRefreshAccessTokenHook&&!(await this._shouldRefreshAccessTokenHook(i,a))&&(s=!1),(!i||!a||a{e.wxOpenId&&e.wxPublicId&&(t=!0)})),{users:n,hasPrimaryUid:t}}setPrimaryUid(e){return this._request.send("auth.setPrimaryUid",{uid:e})}unlink(e){return this._request.send("auth.unlink",{platform:e})}async update(e){const{nickName:t,gender:n,avatarUrl:i,province:a,country:s,city:r}=e,{data:o}=await this._request.send("auth.updateUserInfo",{nickName:t,gender:n,avatarUrl:i,province:a,country:s,city:r});this.setLocalUserInfo(o)}async refresh(){const{data:e}=await this._request.send("auth.getUserInfo",{});return this.setLocalUserInfo(e),e}setUserInfo(){const{userInfoKey:e}=this._cache.keys,t=this._cache.getStore(e);["uid","loginType","openid","wxOpenId","wxPublicId","unionId","qqMiniOpenId","email","hasPassword","customUserId","nickName","gender","avatarUrl"].forEach((e=>{this[e]=t[e]})),this.location={country:t.country,province:t.province,city:t.city}}setLocalUserInfo(e){const{userInfoKey:t}=this._cache.keys;this._cache.setStore(t,e),this.setUserInfo()}}class ei{constructor(e){if(!e)throw new Qt({code:"PARAM_ERROR",message:"envId is not defined"});this._cache=Bn(e);const{refreshTokenKey:t,accessTokenKey:n,accessTokenExpireKey:i}=this._cache.keys,a=this._cache.getStore(t),s=this._cache.getStore(n),r=this._cache.getStore(i);this.credential={refreshToken:a,accessToken:s,accessTokenExpire:r},this.user=new Xn(e)}get isAnonymousAuth(){return this.loginType===Hn.ANONYMOUS}get isCustomAuth(){return this.loginType===Hn.CUSTOM}get isWeixinAuth(){return this.loginType===Hn.WECHAT||this.loginType===Hn.WECHAT_OPEN||this.loginType===Hn.WECHAT_PUBLIC}get loginType(){return this._cache.getStore(this._cache.keys.loginTypeKey)}}let ti=class extends Qn{async signIn(){this._cache.updatePersistence("local");const{anonymousUuidKey:e,refreshTokenKey:t}=this._cache.keys,n=this._cache.getStore(e)||void 0,i=this._cache.getStore(t)||void 0,a=await this._request.send("auth.signInAnonymously",{anonymous_uuid:n,refresh_token:i});if(a.uuid&&a.refresh_token){this._setAnonymousUUID(a.uuid),this.setRefreshToken(a.refresh_token),await this._request.refreshAccessToken(),On(Fn),On(Un,{env:this.config.env,loginType:Hn.ANONYMOUS,persistence:"local"});const e=new ei(this.config.env);return await e.user.refresh(),e}throw new Qt({message:"匿名登录失败"})}async linkAndRetrieveDataWithTicket(e){const{anonymousUuidKey:t,refreshTokenKey:n}=this._cache.keys,i=this._cache.getStore(t),a=this._cache.getStore(n),s=await this._request.send("auth.linkAndRetrieveDataWithTicket",{anonymous_uuid:i,refresh_token:a,ticket:e});if(s.refresh_token)return this._clearAnonymousUUID(),this.setRefreshToken(s.refresh_token),await this._request.refreshAccessToken(),On($n,{env:this.config.env}),On(Un,{loginType:Hn.CUSTOM,persistence:"local"}),{credential:{refreshToken:s.refresh_token}};throw new Qt({message:"匿名转化失败"})}_setAnonymousUUID(e){const{anonymousUuidKey:t,loginTypeKey:n}=this._cache.keys;this._cache.removeStore(t),this._cache.setStore(t,e),this._cache.setStore(n,Hn.ANONYMOUS)}_clearAnonymousUUID(){this._cache.removeStore(this._cache.keys.anonymousUuidKey)}};class ni extends Qn{async signIn(e){if("string"!=typeof e)throw new Qt({code:"PARAM_ERROR",message:"ticket must be a string"});const{refreshTokenKey:t}=this._cache.keys,n=await this._request.send("auth.signInWithTicket",{ticket:e,refresh_token:this._cache.getStore(t)||""});if(n.refresh_token)return this.setRefreshToken(n.refresh_token),await this._request.refreshAccessToken(),On(Fn),On(Un,{env:this.config.env,loginType:Hn.CUSTOM,persistence:this.config.persistence}),await this.refreshUserInfo(),new ei(this.config.env);throw new Qt({message:"自定义登录失败"})}}class ii extends Qn{async signIn(e,t){if("string"!=typeof e)throw new Qt({code:"PARAM_ERROR",message:"email must be a string"});const{refreshTokenKey:n}=this._cache.keys,i=await this._request.send("auth.signIn",{loginType:"EMAIL",email:e,password:t,refresh_token:this._cache.getStore(n)||""}),{refresh_token:a,access_token:s,access_token_expire:r}=i;if(a)return this.setRefreshToken(a),s&&r?this.setAccessToken(s,r):await this._request.refreshAccessToken(),await this.refreshUserInfo(),On(Fn),On(Un,{env:this.config.env,loginType:Hn.EMAIL,persistence:this.config.persistence}),new ei(this.config.env);throw i.code?new Qt({code:i.code,message:`邮箱登录失败: ${i.message}`}):new Qt({message:"邮箱登录失败"})}async activate(e){return this._request.send("auth.activateEndUserMail",{token:e})}async resetPasswordWithToken(e,t){return this._request.send("auth.resetPasswordWithToken",{token:e,newPassword:t})}}class ai extends Qn{async signIn(e,t){if("string"!=typeof e)throw new Qt({code:"PARAM_ERROR",message:"username must be a string"});"string"!=typeof t&&(t="",console.warn("password is empty"));const{refreshTokenKey:n}=this._cache.keys,i=await this._request.send("auth.signIn",{loginType:Hn.USERNAME,username:e,password:t,refresh_token:this._cache.getStore(n)||""}),{refresh_token:a,access_token_expire:s,access_token:r}=i;if(a)return this.setRefreshToken(a),r&&s?this.setAccessToken(r,s):await this._request.refreshAccessToken(),await this.refreshUserInfo(),On(Fn),On(Un,{env:this.config.env,loginType:Hn.USERNAME,persistence:this.config.persistence}),new ei(this.config.env);throw i.code?new Qt({code:i.code,message:`用户名密码登录失败: ${i.message}`}):new Qt({message:"用户名密码登录失败"})}}class si{constructor(e){this.config=e,this._cache=Bn(e.env),this._request=Zn(e.env),this._onAnonymousConverted=this._onAnonymousConverted.bind(this),this._onLoginTypeChanged=this._onLoginTypeChanged.bind(this),Rn(Un,this._onLoginTypeChanged)}get currentUser(){const e=this.hasLoginState();return e&&e.user||null}get loginType(){return this._cache.getStore(this._cache.keys.loginTypeKey)}anonymousAuthProvider(){return new ti(this.config)}customAuthProvider(){return new ni(this.config)}emailAuthProvider(){return new ii(this.config)}usernameAuthProvider(){return new ai(this.config)}async signInAnonymously(){return new ti(this.config).signIn()}async signInWithEmailAndPassword(e,t){return new ii(this.config).signIn(e,t)}signInWithUsernameAndPassword(e,t){return new ai(this.config).signIn(e,t)}async linkAndRetrieveDataWithTicket(e){return this._anonymousAuthProvider||(this._anonymousAuthProvider=new ti(this.config)),Rn($n,this._onAnonymousConverted),await this._anonymousAuthProvider.linkAndRetrieveDataWithTicket(e)}async signOut(){if(this.loginType===Hn.ANONYMOUS)throw new Qt({message:"匿名用户不支持登出操作"});const{refreshTokenKey:e,accessTokenKey:t,accessTokenExpireKey:n}=this._cache.keys,i=this._cache.getStore(e);if(!i)return;const a=await this._request.send("auth.logout",{refresh_token:i});return this._cache.removeStore(e),this._cache.removeStore(t),this._cache.removeStore(n),On(Fn),On(Un,{env:this.config.env,loginType:Hn.NULL,persistence:this.config.persistence}),a}async signUpWithEmailAndPassword(e,t){return this._request.send("auth.signUpWithEmailAndPassword",{email:e,password:t})}async sendPasswordResetEmail(e){return this._request.send("auth.sendPasswordResetEmail",{email:e})}onLoginStateChanged(e){Rn(Fn,(()=>{const t=this.hasLoginState();e.call(this,t)}));const t=this.hasLoginState();e.call(this,t)}onLoginStateExpired(e){Rn(jn,e.bind(this))}onAccessTokenRefreshed(e){Rn(zn,e.bind(this))}onAnonymousConverted(e){Rn($n,e.bind(this))}onLoginTypeChanged(e){Rn(Un,(()=>{const t=this.hasLoginState();e.call(this,t)}))}async getAccessToken(){return{accessToken:(await this._request.getAccessToken()).accessToken,env:this.config.env}}hasLoginState(){const{refreshTokenKey:e}=this._cache.keys;return this._cache.getStore(e)?new ei(this.config.env):null}async isUsernameRegistered(e){if("string"!=typeof e)throw new Qt({code:"PARAM_ERROR",message:"username must be a string"});const{data:t}=await this._request.send("auth.isUsernameRegistered",{username:e});return t&&t.isRegistered}getLoginState(){return Promise.resolve(this.hasLoginState())}async signInWithTicket(e){return new ni(this.config).signIn(e)}shouldRefreshAccessToken(e){this._request._shouldRefreshAccessTokenHook=e.bind(this)}getUserInfo(){return this._request.send("auth.getUserInfo",{}).then((e=>e.code?e:{...e.data,requestId:e.seqId}))}getAuthHeader(){const{refreshTokenKey:e,accessTokenKey:t}=this._cache.keys,n=this._cache.getStore(e);return{"x-cloudbase-credentials":this._cache.getStore(t)+"/@@/"+n}}_onAnonymousConverted(e){const{env:t}=e.data;t===this.config.env&&this._cache.updatePersistence(this.config.persistence)}_onLoginTypeChanged(e){const{loginType:t,persistence:n,env:i}=e.data;i===this.config.env&&(this._cache.updatePersistence(n),this._cache.setStore(this._cache.keys.loginTypeKey,t))}}const ri=function(e,t){t=t||_n();const n=Zn(this.config.env),{cloudPath:i,filePath:a,onUploadProgress:s,fileType:r="image"}=e;return n.send("storage.getUploadMetadata",{path:i}).then((e=>{const{data:{url:o,authorization:l,token:c,fileId:u,cosFileId:d},requestId:h}=e,p={key:i,signature:l,"x-cos-meta-fileid":d,success_action_status:"201","x-cos-security-token":c};n.upload({url:o,data:p,file:a,name:i,fileType:r,onUploadProgress:s}).then((e=>{201===e.statusCode?t(null,{fileID:u,requestId:h}):t(new Qt({code:"STORAGE_REQUEST_FAIL",message:`STORAGE_REQUEST_FAIL: ${e.data}`}))})).catch((e=>{t(e)}))})).catch((e=>{t(e)})),t.promise},oi=function(e,t){t=t||_n();const n=Zn(this.config.env),{cloudPath:i}=e;return n.send("storage.getUploadMetadata",{path:i}).then((e=>{t(null,e)})).catch((e=>{t(e)})),t.promise},li=function({fileList:e},t){if(t=t||_n(),!e||!Array.isArray(e))return{code:"INVALID_PARAM",message:"fileList必须是非空的数组"};for(let i of e)if(!i||"string"!=typeof i)return{code:"INVALID_PARAM",message:"fileList的元素必须是非空的字符串"};const n={fileid_list:e};return Zn(this.config.env).send("storage.batchDeleteFile",n).then((e=>{e.code?t(null,e):t(null,{fileList:e.data.delete_list,requestId:e.requestId})})).catch((e=>{t(e)})),t.promise},ci=function({fileList:e},t){t=t||_n(),e&&Array.isArray(e)||t(null,{code:"INVALID_PARAM",message:"fileList必须是非空的数组"});let n=[];for(let a of e)"object"==typeof a?(a.hasOwnProperty("fileID")&&a.hasOwnProperty("maxAge")||t(null,{code:"INVALID_PARAM",message:"fileList的元素必须是包含fileID和maxAge的对象"}),n.push({fileid:a.fileID,max_age:a.maxAge})):"string"==typeof a?n.push({fileid:a}):t(null,{code:"INVALID_PARAM",message:"fileList的元素必须是字符串"});const i={file_list:n};return Zn(this.config.env).send("storage.batchGetDownloadUrl",i).then((e=>{e.code?t(null,e):t(null,{fileList:e.data.download_list,requestId:e.requestId})})).catch((e=>{t(e)})),t.promise},ui=async function({fileID:e},t){const n=(await ci.call(this,{fileList:[{fileID:e,maxAge:600}]})).fileList[0];if("SUCCESS"!==n.code)return t?t(n):new Promise((e=>{e(n)}));const i=Zn(this.config.env);let a=n.download_url;if(a=encodeURI(a),!t)return i.download({url:a});t(await i.download({url:a}))},di=function({name:e,data:t,query:n,parse:i,search:a},s){const r=s||_n();let o;try{o=t?JSON.stringify(t):""}catch(c){return Promise.reject(c)}if(!e)return Promise.reject(new Qt({code:"PARAM_ERROR",message:"函数名不能为空"}));const l={inQuery:n,parse:i,search:a,function_name:e,request_data:o};return Zn(this.config.env).send("functions.invokeFunction",l).then((e=>{if(e.code)r(null,e);else{let n=e.data.response_data;if(i)r(null,{result:n,requestId:e.requestId});else try{n=JSON.parse(e.data.response_data),r(null,{result:n,requestId:e.requestId})}catch(t){r(new Qt({message:"response data must be json"}))}}return r.promise})).catch((e=>{r(e)})),r.promise},hi={timeout:15e3,persistence:"session"},pi={};class fi{constructor(e){this.config=e||this.config,this.authObj=void 0}init(e){switch(xn.adapter||(this.requestClient=new xn.adapter.reqClass({timeout:e.timeout||5e3,timeoutMsg:`请求在${(e.timeout||5e3)/1e3}s内未完成,已中断`})),this.config={...hi,...e},!0){case this.config.timeout>6e5:console.warn("timeout大于可配置上限[10分钟],已重置为上限数值"),this.config.timeout=6e5;break;case this.config.timeout<100:console.warn("timeout小于可配置下限[100ms],已重置为下限数值"),this.config.timeout=100}return new fi(this.config)}auth({persistence:e}={}){if(this.authObj)return this.authObj;const t=e||xn.adapter.primaryStorage||hi.persistence;var n;return t!==this.config.persistence&&(this.config.persistence=t),function(e){const{env:t}=e;Vn[t]=new Cn(e),In[t]=new Cn({...e,persistence:"local"})}(this.config),n=this.config,Gn[n.env]=new Yn(n),this.authObj=new si(this.config),this.authObj}on(e,t){return Rn.apply(this,[e,t])}off(e,t){return Ln.apply(this,[e,t])}callFunction(e,t){return di.apply(this,[e,t])}deleteFile(e,t){return li.apply(this,[e,t])}getTempFileURL(e,t){return ci.apply(this,[e,t])}downloadFile(e,t){return ui.apply(this,[e,t])}uploadFile(e,t){return ri.apply(this,[e,t])}getUploadMetadata(e,t){return oi.apply(this,[e,t])}registerExtension(e){pi[e.name]=e}async invokeExtension(e,t){const n=pi[e];if(!n)throw new Qt({message:`扩展${e} 必须先注册`});return await n.invoke(t,this)}useAdapters(e){const{adapter:t,runtime:n}=function(e){const t=(n=e,"[object Array]"===Object.prototype.toString.call(n)?e:[e]);var n;for(const i of t){const{isMatch:e,genAdapter:t,runtime:n}=i;if(e())return{adapter:t(),runtime:n}}}(e)||{};t&&(xn.adapter=t),n&&(xn.runtime=n)}}var mi=new fi;function gi(e,t,n){void 0===n&&(n={});var i=/\?/.test(t),a="";for(var s in n)""===a?!i&&(t+="?"):a+="&",a+=s+"="+encodeURIComponent(n[s]);return/^http(s)?:\/\//.test(t+=a)?t:""+e+t}class vi{post(e){const{url:t,data:n,headers:i}=e;return new Promise(((e,a)=>{Xt.request({url:gi("https:",t),data:n,method:"POST",header:i,success(t){e(t)},fail(e){a(e)}})}))}upload(e){return new Promise(((t,n)=>{const{url:i,file:a,data:s,headers:r,fileType:o}=e,l=Xt.uploadFile({url:gi("https:",i),name:"file",formData:Object.assign({},s),filePath:a,fileType:o,header:r,success(e){const n={statusCode:e.statusCode,data:e.data||{}};200===e.statusCode&&s.success_action_status&&(n.statusCode=parseInt(s.success_action_status,10)),t(n)},fail(e){n(new Error(e.errMsg||"uploadFile:fail"))}});"function"==typeof e.onUploadProgress&&l&&"function"==typeof l.onProgressUpdate&&l.onProgressUpdate((t=>{e.onUploadProgress({loaded:t.totalBytesSent,total:t.totalBytesExpectedToSend})}))}))}}const yi={setItem(e,t){Xt.setStorageSync(e,t)},getItem:e=>Xt.getStorageSync(e),removeItem(e){Xt.removeStorageSync(e)},clear(){Xt.clearStorageSync()}};var wi={genAdapter:function(){return{root:{},reqClass:vi,localStorage:yi,primaryStorage:"local"}},isMatch:function(){return!0},runtime:"uni_app"};mi.useAdapters(wi);const ki=mi,_i=ki.init;ki.init=function(e){e.env=e.spaceId;const t=_i.call(this,e);t.config.provider="tencent",t.config.spaceId=e.spaceId;const n=t.auth;return t.auth=function(e){const t=n.call(this,e);return["linkAndRetrieveDataWithTicket","signInAnonymously","signOut","getAccessToken","getLoginState","signInWithTicket","getUserInfo"].forEach((e=>{var n;t[e]=(n=t[e],function(e){e=e||{};const{success:t,fail:i,complete:a}=Zt(e);if(!(t||i||a))return n.call(this,e);n.call(this,e).then((e=>{t&&t(e),a&&a(e)}),(e=>{i&&i(e),a&&a(e)}))}).bind(t)})),t},t.customAuth=t.auth,t};var Si=ki,bi=class extends hn{getAccessToken(){return new Promise(((e,t)=>{const n="Anonymous_Access_token";this.setAccessToken(n),e(n)}))}setupRequest(e,t){const n=Object.assign({},e,{spaceId:this.config.spaceId,timestamp:Date.now()}),i={"Content-Type":"application/json"};"auth"!==t&&(n.token=this.accessToken,i["x-basement-token"]=this.accessToken),i["x-serverless-sign"]=cn(n,this.config.clientSecret);const a=ln();i["x-client-info"]=encodeURIComponent(JSON.stringify(a));const{token:s}=tn();return i["x-client-token"]=s,{url:this.config.requestUrl,method:"POST",data:n,dataType:"json",header:JSON.parse(JSON.stringify(i))}}uploadFileToOSS({url:e,formData:t,name:n,filePath:i,fileType:a,onUploadProgress:s}){return new Promise(((r,o)=>{const l=this.adapter.uploadFile({url:e,formData:t,name:n,filePath:i,fileType:a,success(e){e&&e.statusCode<400?r(e):o(new Qt({code:"UPLOAD_FAILED",message:"文件上传失败"}))},fail(e){o(new Qt({code:e.code||"UPLOAD_FAILED",message:e.message||e.errMsg||"文件上传失败"}))}});"function"==typeof s&&l&&"function"==typeof l.onProgressUpdate&&l.onProgressUpdate((e=>{s({loaded:e.totalBytesSent,total:e.totalBytesExpectedToSend})}))}))}uploadFile({filePath:e,cloudPath:t,fileType:n="image",onUploadProgress:i}){if(!t)throw new Qt({code:"CLOUDPATH_REQUIRED",message:"cloudPath不可为空"});let a;return this.getOSSUploadOptionsFromPath({cloudPath:t}).then((t=>{const{url:s,formData:r,name:o}=t.result;a=t.result.fileUrl;const l={url:s,formData:r,name:o,filePath:e,fileType:n};return this.uploadFileToOSS(Object.assign({},l,{onUploadProgress:i}))})).then((()=>this.reportOSSUpload({cloudPath:t}))).then((t=>new Promise(((n,i)=>{t.success?n({success:!0,filePath:e,fileID:a}):i(new Qt({code:"UPLOAD_FAILED",message:"文件上传失败"}))}))))}deleteFile({fileList:e}){const t={method:"serverless.file.resource.delete",params:JSON.stringify({fileList:e})};return this.request(this.setupRequest(t)).then((e=>{if(e.success)return e.result;throw new Qt({code:"DELETE_FILE_FAILED",message:"删除文件失败"})}))}getTempFileURL({fileList:e,maxAge:t}={}){if(!Array.isArray(e)||0===e.length)throw new Qt({code:"INVALID_PARAM",message:"fileList的元素必须是非空的字符串"});const n={method:"serverless.file.resource.getTempFileURL",params:JSON.stringify({fileList:e,maxAge:t})};return this.request(this.setupRequest(n)).then((e=>{if(e.success)return{fileList:e.result.fileList.map((e=>({fileID:e.fileID,tempFileURL:e.tempFileURL})))};throw new Qt({code:"GET_TEMP_FILE_URL_FAILED",message:"获取临时文件链接失败"})}))}},Ei={init(e){const t=new bi(e),n={signInAnonymously:function(){return t.authorize()},getLoginState:function(){return Promise.resolve(!1)}};return t.auth=function(){return n},t.customAuth=t.auth,t}},xi=lt((function(e,t){e.exports=ut.enc.Hex}));function Di(e="",t={}){const{data:n,functionName:i,method:a,headers:s,signHeaderKeys:r=[],config:o}=t,l=Date.now(),c="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)})),u=Object.assign({},s,{"x-from-app-id":o.spaceAppId,"x-from-env-id":o.spaceId,"x-to-env-id":o.spaceId,"x-from-instance-id":l,"x-from-function-name":i,"x-client-timestamp":l,"x-alipay-source":"client","x-request-id":c,"x-alipay-callid":c,"x-trace-id":c}),d=["x-from-app-id","x-from-env-id","x-to-env-id","x-from-instance-id","x-from-function-name","x-client-timestamp"].concat(r),[h="",p=""]=e.split("?")||[],f=function(e){const t=e.signedHeaders.join(";"),n=e.signedHeaders.map((t=>`${t.toLowerCase()}:${e.headers[t]}\n`)).join(""),i=wn(e.body).toString(xi),a=`${e.method.toUpperCase()}\n${e.path}\n${e.query}\n${n}\n${t}\n${i}\n`,s=wn(a).toString(xi),r=`HMAC-SHA256\n${e.timestamp}\n${s}\n`,o=kn(r,e.secretKey).toString(xi);return`HMAC-SHA256 Credential=${e.secretId}, SignedHeaders=${t}, Signature=${o}`}({path:h,query:p,method:a,headers:u,timestamp:l,body:JSON.stringify(n),secretId:o.accessKey,secretKey:o.secretKey,signedHeaders:d.sort()});return{url:`${o.endpoint}${e}`,headers:Object.assign({},u,{Authorization:f})}}function Ti({url:e,data:t,method:n="POST",headers:i={}}){return new Promise(((a,s)=>{Xt.request({url:e,method:n,data:t,header:i,dataType:"json",complete:(e={})=>{const t=i["x-trace-id"]||"";if(!e.statusCode||e.statusCode>=400){const{message:n,errMsg:i,trace_id:a}=e.data||{};return s(new Qt({code:"SYS_ERR",message:n||i||"request:fail",requestId:a||t}))}a({status:e.statusCode,data:e.data,headers:e.header,requestId:t})}})}))}function Ni(e,t){const{path:n,data:i,method:a="GET"}=e,{url:s,headers:r}=Di(n,{functionName:"",data:i,method:a,headers:{"x-alipay-cloud-mode":"oss","x-data-api-type":"oss","x-expire-timestamp":Date.now()+6e4},signHeaderKeys:["x-data-api-type","x-expire-timestamp"],config:t});return Ti({url:s,data:i,method:a,headers:r}).then((e=>{const t=e.data||{};if(!t.success)throw new Qt({code:e.errCode,message:e.errMsg,requestId:e.requestId});return t.data||{}})).catch((e=>{throw new Qt({code:e.errCode,message:e.errMsg,requestId:e.requestId})}))}function Ci(e=""){const t=e.trim().replace(/^cloud:\/\//,""),n=t.indexOf("/");if(n<=0)throw new Qt({code:"INVALID_PARAM",message:"fileID不合法"});const i=t.substring(0,n),a=t.substring(n+1);return i!==this.config.spaceId&&console.warn("file ".concat(e," does not belong to env ").concat(this.config.spaceId)),a}function Vi(e=""){return"cloud://".concat(this.config.spaceId,"/").concat(e.replace(/^\/+/,""))}var Ii={init:e=>{e.provider="alipay";const t=new class{constructor(e){if(["spaceId","spaceAppId","accessKey","secretKey"].forEach((t=>{if(!Object.prototype.hasOwnProperty.call(e,t))throw new Error(`${t} required`)})),e.endpoint){if("string"!=typeof e.endpoint)throw new Error("endpoint must be string");if(!/^https:\/\//.test(e.endpoint))throw new Error("endpoint must start with https://");e.endpoint=e.endpoint.replace(/\/$/,"")}this.config=Object.assign({},e,{endpoint:e.endpoint||`https://${e.spaceId}.api-hz.cloudbasefunction.cn`})}callFunction(e){return function(e,t){const{name:n,data:i}=e,a="POST",{url:s,headers:r}=Di("/functions/invokeFunction",{functionName:n,data:i,method:a,headers:{"x-to-function-name":n},signHeaderKeys:["x-to-function-name"],config:t});return Ti({url:s,data:i,method:a,headers:r}).then((e=>({errCode:0,success:!0,requestId:e.requestId,result:e.data}))).catch((e=>{throw new Qt({code:e.errCode,message:e.errMsg,requestId:e.requestId})}))}(e,this.config)}uploadFileToOSS({url:e,filePath:t,fileType:n,formData:i,onUploadProgress:a}){return new Promise(((s,r)=>{const o=Xt.uploadFile({url:e,filePath:t,fileType:n,formData:i,name:"file",success(e){e&&e.statusCode<400?s(e):r(new Qt({code:"UPLOAD_FAILED",message:"文件上传失败"}))},fail(e){r(new Qt({code:e.code||"UPLOAD_FAILED",message:e.message||e.errMsg||"文件上传失败"}))}});"function"==typeof a&&o&&"function"==typeof o.onProgressUpdate&&o.onProgressUpdate((e=>{a({loaded:e.totalBytesSent,total:e.totalBytesExpectedToSend})}))}))}async uploadFile({filePath:e,cloudPath:t="",fileType:n="image",onUploadProgress:i}){if("string"!==vt(t))throw new Qt({code:"INVALID_PARAM",message:"cloudPath必须为字符串类型"});if(!(t=t.trim()))throw new Qt({code:"INVALID_PARAM",message:"cloudPath不可为空"});if(/:\/\//.test(t))throw new Qt({code:"INVALID_PARAM",message:"cloudPath不合法"});const a=await Ni({path:"/".concat(t.replace(/^\//,""),"?post_url")},this.config),{file_id:s,upload_url:r,form_data:o}=a,l=o&&o.reduce(((e,t)=>(e[t.key]=t.value,e)),{});return this.uploadFileToOSS({url:r,filePath:e,fileType:n,formData:l,onUploadProgress:i}).then((()=>({fileID:s})))}async getTempFileURL({fileList:e}){return new Promise(((t,n)=>{(!e||e.length<0)&&n(new Qt({errCode:"INVALID_PARAM",errMsg:"fileList不能为空数组"})),e.length>50&&n(new Qt({errCode:"INVALID_PARAM",errMsg:"fileList数组长度不能超过50"}));const i=[];for(const a of e){"string"!==vt(a)&&n(new Qt({errCode:"INVALID_PARAM",errMsg:"fileList的元素必须是非空的字符串"}));const e=Ci.call(this,a);i.push({file_id:e,expire:600})}Ni({path:"/?download_url",data:{file_list:i},method:"POST"},this.config).then((e=>{const{file_list:n=[]}=e;t({fileList:n.map((e=>({fileID:Vi.call(this,e.file_id),tempFileURL:e.download_url})))})})).catch((e=>n(e)))}))}}(e);return t.auth=function(){return{signInAnonymously:function(){return Promise.resolve()},getLoginState:function(){return Promise.resolve(!0)}}},t}};function Bi({data:e}){let t;t=ln();const n=JSON.parse(JSON.stringify(e||{}));if(Object.assign(n,{clientInfo:t}),!n.uniIdToken){const{token:e}=tn();e&&(n.uniIdToken=e)}return n}const Ai=[{rule:/fc_function_not_found|FUNCTION_NOT_FOUND/,content:",云函数[{functionName}]在云端不存在,请检查此云函数名称是否正确以及该云函数是否已上传到服务空间",mode:"append"}];var Mi=/[\\^$.*+?()[\]{}|]/g,Pi=RegExp(Mi.source);function Ri(e,t,n){return e.replace(new RegExp((i=t)&&Pi.test(i)?i.replace(Mi,"\\$&"):i,"g"),n);var i}const Oi=2e4,Li={code:20101,message:"Invalid client"};function Fi(e){const{errSubject:t,subject:n,errCode:i,errMsg:a,code:s,message:r,cause:o}=e||{};return new Qt({subject:t||n||"uni-secure-network",code:i||s||Oi,message:a||r,cause:o})}let ji;function Ui({secretType:e}={}){return"request"===e||"response"===e||"both"===e}function $i({name:e,data:t={}}={}){return"DCloud-clientDB"===e&&"encryption"===t.redirectTo&&"getAppClientKey"===t.action}function zi({functionName:e,result:t,logPvd:n}){}function Hi(e){const t=e.callFunction,n=function(n){const i=n.name;n.data=Bi.call(e,{data:n.data});const a={aliyun:"aliyun",tencent:"tcb",tcb:"tcb",alipay:"alipay"}[this.config.provider],s=Ui(n),r=$i(n),o=s||r;return t.call(this,n).then((e=>(e.errCode=0,!o&&zi.call(this,{functionName:i,result:e,logPvd:a}),Promise.resolve(e))),(e=>(!o&&zi.call(this,{functionName:i,result:e,logPvd:a}),e&&e.message&&(e.message=function({message:e="",extraInfo:t={},formatter:n=[]}={}){for(let i=0;in.provider===e&&n.spaceId===t));return i&&i.config}({provider:e,spaceId:t});if(!o||!o.accessControl||!o.accessControl.enable)return!1;const l=o.accessControl.function||{},c=Object.keys(l);if(0===c.length)return!0;const u=function(e,t){let n,i,a;for(let s=0;se.trim())).indexOf(t)>-1&&(i=r):a=r:n=r}return n||i||a}(c,n);if(!u)return!1;if((l[u]||[]).find(((e={})=>e.appId===i&&(e.platform||"").toLowerCase()===r.toLowerCase())))return!0;throw console.error(`此应用[appId: ${i}, platform: ${r}]不在云端配置的允许访问的应用列表内,参考:https://uniapp.dcloud.net.cn/uniCloud/secure-network.html#verify-client`),Fi(Li)}({provider:i,spaceId:a,functionName:s})?new ji({secretType:t.secretType,uniCloudIns:e}).wrapVerifyClientCallFunction(n.bind(e))(t):r(t),Object.defineProperty(o,"result",{get:()=>(console.warn("当前返回结果为Promise类型,不可直接访问其result属性,详情请参考:https://uniapp.dcloud.net.cn/uniCloud/faq?id=promise"),{})}),o.then((e=>("undefined"!=typeof UTSJSONObject&&(e.result=new UTSJSONObject(e.result)),e)))}}ji=class{constructor(){throw Fi({message:"Platform app is not enabled, please check whether secure network module is enabled in your manifest.json"})}};const qi=Symbol("CLIENT_DB_INTERNAL");function Ki(e,t){return e.then="DoNotReturnProxyWithAFunctionNamedThen",e._internalType=qi,e.inspect=null,e.__v_raw=void 0,new Proxy(e,{get(e,n,i){if("_uniClient"===n)return null;if("symbol"==typeof n)return e[n];if(n in e||"string"!=typeof n){const t=e[n];return"function"==typeof t?t.bind(e):t}return t.get(e,n,i)}})}function Ji(e){return{on:(t,n)=>{e[t]=e[t]||[],e[t].indexOf(n)>-1||e[t].push(n)},off:(t,n)=>{e[t]=e[t]||[];const i=e[t].indexOf(n);-1!==i&&e[t].splice(i,1)}}}const Wi=["db.Geo","db.command","command.aggregate"];function Yi(e,t){return Wi.indexOf(`${e}.${t}`)>-1}function Gi(e){switch(vt(e=en(e))){case"array":return e.map((e=>Gi(e)));case"object":return e._internalType===qi||Object.keys(e).forEach((t=>{e[t]=Gi(e[t])})),e;case"regexp":return{$regexp:{source:e.source,flags:e.flags}};case"date":return{$date:e.toISOString()};default:return e}}function Zi(e){return e&&e.content&&e.content.$method}class Qi{constructor(e,t,n){this.content=e,this.prevStage=t||null,this.udb=null,this._database=n}toJSON(){let e=this;const t=[e.content];for(;e.prevStage;)e=e.prevStage,t.push(e.content);return{$db:t.reverse().map((e=>({$method:e.$method,$param:Gi(e.$param)})))}}toString(){return JSON.stringify(this.toJSON())}getAction(){const e=this.toJSON().$db.find((e=>"action"===e.$method));return e&&e.$param&&e.$param[0]}getCommand(){return{$db:this.toJSON().$db.filter((e=>"action"!==e.$method))}}get isAggregate(){let e=this;for(;e;){const t=Zi(e),n=Zi(e.prevStage);if("aggregate"===t&&"collection"===n||"pipeline"===t)return!0;e=e.prevStage}return!1}get isCommand(){let e=this;for(;e;){if("command"===Zi(e))return!0;e=e.prevStage}return!1}get isAggregateCommand(){let e=this;for(;e;){const t=Zi(e),n=Zi(e.prevStage);if("aggregate"===t&&"command"===n)return!0;e=e.prevStage}return!1}getNextStageFn(e){const t=this;return function(){return Xi({$method:e,$param:Gi(Array.from(arguments))},t,t._database)}}get count(){return this.isAggregate?this.getNextStageFn("count"):function(){return this._send("count",Array.from(arguments))}}get remove(){return this.isCommand?this.getNextStageFn("remove"):function(){return this._send("remove",Array.from(arguments))}}get(){return this._send("get",Array.from(arguments))}get add(){return this.isCommand?this.getNextStageFn("add"):function(){return this._send("add",Array.from(arguments))}}update(){return this._send("update",Array.from(arguments))}end(){return this._send("end",Array.from(arguments))}get set(){return this.isCommand?this.getNextStageFn("set"):function(){throw new Error("JQL禁止使用set方法")}}_send(e,t){const n=this.getAction(),i=this.getCommand();return i.$db.push({$method:e,$param:Gi(t)}),this._database._callCloudFunction({action:n,command:i})}}function Xi(e,t,n){return Ki(new Qi(e,t,n),{get(e,t){let i="db";return e&&e.content&&(i=e.content.$method),Yi(i,t)?Xi({$method:t},e,n):function(){return Xi({$method:t,$param:Gi(Array.from(arguments))},e,n)}}})}function ea({path:e,method:t}){return class{constructor(){this.param=Array.from(arguments)}toJSON(){return{$newDb:[...e.map((e=>({$method:e}))),{$method:t,$param:this.param}]}}toString(){return JSON.stringify(this.toJSON())}}}function ta(e,t={}){return Ki(new e(t),{get:(e,t)=>Yi("db",t)?Xi({$method:t},null,e):function(){return Xi({$method:t,$param:Gi(Array.from(arguments))},null,e)}})}class na extends class{constructor({uniClient:e={},isJQL:t=!1}={}){this._uniClient=e,this._authCallBacks={},this._dbCallBacks={},e._isDefault&&(this._dbCallBacks=Ct("_globalUniCloudDatabaseCallback")),t||(this.auth=Ji(this._authCallBacks)),this._isJQL=t,Object.assign(this,Ji(this._dbCallBacks)),this.env=Ki({},{get:(e,t)=>({$env:t})}),this.Geo=Ki({},{get:(e,t)=>ea({path:["Geo"],method:t})}),this.serverDate=ea({path:[],method:"serverDate"}),this.RegExp=ea({path:[],method:"RegExp"})}getCloudEnv(e){if("string"!=typeof e||!e.trim())throw new Error("getCloudEnv参数错误");return{$env:e.replace("$cloudEnv_","")}}_callback(e,t){const n=this._dbCallBacks;n[e]&&n[e].forEach((e=>{e(...t)}))}_callbackAuth(e,t){const n=this._authCallBacks;n[e]&&n[e].forEach((e=>{e(...t)}))}multiSend(){const e=Array.from(arguments),t=e.map((e=>{const t=e.getAction(),n=e.getCommand();if("getTemp"!==n.$db[n.$db.length-1].$method)throw new Error("multiSend只支持子命令内使用getTemp");return{action:t,command:n}}));return this._callCloudFunction({multiCommand:t,queryList:e})}}{_parseResult(e){return this._isJQL?e.result:e}_callCloudFunction({action:e,command:t,multiCommand:n,queryList:i}){function a(e,t){if(n&&i)for(let n=0;nMt(Pt(r,"complete"),e))).then((()=>(a(null,e),Jt(Lt,{type:Ut,content:e}),Promise.reject(e))))}const l=Mt(Pt(r,"invoke")),c=this._uniClient;return l.then((()=>c.callFunction({name:"DCloud-clientDB",type:"CLIENT_DB",data:{action:e,command:t,multiCommand:n}}))).then((e=>{const{code:t,message:n,token:i,tokenExpired:l,systemInfo:c=[]}=e.result;if(c)for(let a=0;a(console.warn(n),i)})}}return d=e,Mt(Pt(r,"success"),d).then((()=>Mt(Pt(r,"complete"),d))).then((()=>{a(d,null);const e=s._parseResult(d);return Jt(Lt,{type:Ut,content:e}),Promise.resolve(e)}));var d}),(e=>(/fc_function_not_found|FUNCTION_NOT_FOUND/g.test(e.message)&&console.warn("clientDB未初始化,请在web控制台保存一次schema以开启clientDB"),o(new Qt({code:e.code||"SYSTEM_ERROR",message:e.message,requestId:e.requestId})))))}}const ia="token无效,跳转登录页面",aa="token过期,跳转登录页面",sa={TOKEN_INVALID_TOKEN_EXPIRED:aa,TOKEN_INVALID_INVALID_CLIENTID:ia,TOKEN_INVALID:ia,TOKEN_INVALID_WRONG_TOKEN:ia,TOKEN_INVALID_ANONYMOUS_USER:ia},ra={"uni-id-token-expired":aa,"uni-id-check-token-failed":ia,"uni-id-token-not-exist":ia,"uni-id-check-device-feature-failed":ia};function oa(e,t){let n="";return n=e?`${e}/${t}`:t,n.replace(/^\//,"")}function la(e=[],t=""){const n=[],i=[];return e.forEach((e=>{!0===e.needLogin?n.push(oa(t,e.path)):!1===e.needLogin&&i.push(oa(t,e.path))})),{needLoginPage:n,notNeedLoginPage:i}}function ca(e){return e.split("?")[0].replace(/^\//,"")}function ua(){return function(e){let t=e&&e.$page&&e.$page.fullPath||"";return t?("/"!==t.charAt(0)&&(t="/"+t),t):t}(function(){const e=getCurrentPages();return e[e.length-1]}())}function da(){return ca(ua())}function ha(e="",t={}){if(!e)return!1;if(!(t&&t.list&&t.list.length))return!1;const n=t.list,i=ca(e);return n.some((e=>e.pagePath===i))}const pa=!!ot.uniIdRouter,{loginPage:fa,routerNeedLogin:ma,resToLogin:ga,needLoginPage:va,notNeedLoginPage:ya,loginPageInTabBar:wa}=function({pages:e=[],subPackages:t=[],uniIdRouter:n={},tabBar:i={}}=ot){const{loginPage:a,needLogin:s=[],resToLogin:r=!0}=n,{needLoginPage:o,notNeedLoginPage:l}=la(e),{needLoginPage:c,notNeedLoginPage:u}=function(e=[]){const t=[],n=[];return e.forEach((e=>{const{root:i,pages:a=[]}=e,{needLoginPage:s,notNeedLoginPage:r}=la(a,i);t.push(...s),n.push(...r)})),{needLoginPage:t,notNeedLoginPage:n}}(t);return{loginPage:a,routerNeedLogin:s,resToLogin:r,needLoginPage:[...o,...c],notNeedLoginPage:[...l,...u],loginPageInTabBar:ha(a,i)}}();if(va.indexOf(fa)>-1)throw new Error(`Login page [${fa}] should not be "needLogin", please check your pages.json`);function ka(e){const t=da();if("/"===e.charAt(0))return e;const[n,i]=e.split("?"),a=n.replace(/^\//,"").split("/"),s=t.split("/");s.pop();for(let r=0;r-1?i+`&uniIdRedirectUrl=${encodeURIComponent(a)}`:i+`?uniIdRedirectUrl=${encodeURIComponent(a)}`:i);var i,a;wa?"navigateTo"!==e&&"redirectTo"!==e||(e="switchTab"):"switchTab"===e&&(e="navigateTo");const s={navigateTo:uni.navigateTo,redirectTo:uni.redirectTo,switchTab:uni.switchTab,reLaunch:uni.reLaunch};setTimeout((()=>{s[e]({url:n})}),0)}function ba({url:e}={}){const t={abortLoginPageJump:!1,autoToLoginPage:!1},n=function(){const{token:e,tokenExpired:t}=tn();let n;if(e){if(t-1)&&(va.indexOf(t)>-1||ma.some((t=>{return n=e,new RegExp(t).test(n);var n})))}(e)&&n){if(n.uniIdRedirectUrl=e,Ht(Ft).length>0)return setTimeout((()=>{Jt(Ft,n)}),0),t.abortLoginPageJump=!0,t;t.autoToLoginPage=!0}return t}function Ea(){!function(){const e=ua(),{abortLoginPageJump:t,autoToLoginPage:n}=ba({url:e});t||n&&Sa({api:"redirectTo",redirect:e})}();const e=["navigateTo","redirectTo","reLaunch","switchTab"];for(let t=0;t{const{type:t,content:n}=e;let i=!1;switch(t){case"cloudobject":i=function(e){if("object"!=typeof e)return!1;const{errCode:t}=e||{};return t in ra}(n);break;case"clientdb":i=function(e){if("object"!=typeof e)return!1;const{errCode:t}=e||{};return t in sa}(n)}i&&function(e={}){const t=Ht(Ft);Gt().then((()=>{const n=ua();if(n&&_a({redirect:n}))return t.length>0?Jt(Ft,Object.assign({uniIdRedirectUrl:n},e)):void(fa&&Sa({api:"navigateTo",redirect:n}))}))}(n)}))}function Da(e){var t;(t=e).onResponse=function(e){qt(Lt,e)},t.offResponse=function(e){Kt(Lt,e)},function(e){e.onNeedLogin=function(e){qt(Ft,e)},e.offNeedLogin=function(e){Kt(Ft,e)},pa&&(Ct("_globalUniCloudStatus").needLoginInit||(Ct("_globalUniCloudStatus").needLoginInit=!0,Gt().then((()=>{Ea.call(e)})),ga&&xa.call(e)))}(e),function(e){e.onRefreshToken=function(e){qt(jt,e)},e.offRefreshToken=function(e){Kt(jt,e)}}(e)}let Ta;const Na="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",Ca=/^(?:[A-Za-z\d+/]{4})*?(?:[A-Za-z\d+/]{2}(?:==)?|[A-Za-z\d+/]{3}=?)?$/;function Va(){const e=tn().token||"",t=e.split(".");if(!e||3!==t.length)return{uid:null,role:[],permission:[],tokenExpired:0};let n;try{n=JSON.parse((i=t[1],decodeURIComponent(Ta(i).split("").map((function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)})).join(""))))}catch(a){throw new Error("获取当前用户信息出错,详细错误信息为:"+a.message)}var i;return n.tokenExpired=1e3*n.exp,delete n.exp,delete n.iat,n}Ta="function"!=typeof atob?function(e){if(e=String(e).replace(/[\t\n\f\r ]+/g,""),!Ca.test(e))throw new Error("Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded.");var t;e+="==".slice(2-(3&e.length));for(var n,i,a="",s=0;s>16&255):64===i?String.fromCharCode(t>>16&255,t>>8&255):String.fromCharCode(t>>16&255,t>>8&255,255&t);return a}:atob;var Ia=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}(lt((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});const n="chooseAndUploadFile:ok",i="chooseAndUploadFile:fail";function a(e,t){return e.tempFiles.forEach(((e,n)=>{e.name||(e.name=e.path.substring(e.path.lastIndexOf("/")+1)),t&&(e.fileType=t),e.cloudPath=Date.now()+"_"+n+e.name.substring(e.name.lastIndexOf("."))})),e.tempFilePaths||(e.tempFilePaths=e.tempFiles.map((e=>e.path))),e}function s(e,t,{onChooseFile:i,onUploadProgress:a}){return t.then((e=>{if(i){const t=i(e);if(void 0!==t)return Promise.resolve(t).then((t=>void 0===t?e:t))}return e})).then((t=>!1===t?{errMsg:n,tempFilePaths:[],tempFiles:[]}:function(e,t,i=5,a){(t=Object.assign({},t)).errMsg=n;const s=t.tempFiles,r=s.length;let o=0;return new Promise((n=>{for(;o=r)return void(!s.find((e=>!e.url&&!e.errMsg))&&n(t));const c=s[i];e.uploadFile({provider:c.provider,filePath:c.path,cloudPath:c.cloudPath,fileType:c.fileType,cloudPathAsRealPath:c.cloudPathAsRealPath,onUploadProgress(e){e.index=i,e.tempFile=c,e.tempFilePath=c.path,a&&a(e)}}).then((e=>{c.url=e.fileID,i{c.errMsg=e.errMsg||e.message,i{uni.chooseImage({count:t,sizeType:n,sourceType:s,extension:r,success(t){e(a(t,"image"))},fail(e){o({errMsg:e.errMsg.replace("chooseImage:fail",i)})}})}))}(t),t):"video"===t.type?s(e,function(e){const{camera:t,compressed:n,maxDuration:s,sourceType:r=["album","camera"],extension:o}=e;return new Promise(((e,l)=>{uni.chooseVideo({camera:t,compressed:n,maxDuration:s,sourceType:r,extension:o,success(t){const{tempFilePath:n,duration:i,size:s,height:r,width:o}=t;e(a({errMsg:"chooseVideo:ok",tempFilePaths:[n],tempFiles:[{name:t.tempFile&&t.tempFile.name||"",path:n,size:s,type:t.tempFile&&t.tempFile.type||"",width:o,height:r,duration:i,fileType:"video",cloudPath:""}]},"video"))},fail(e){l({errMsg:e.errMsg.replace("chooseVideo:fail",i)})}})}))}(t),t):s(e,function(e){const{count:t,extension:n}=e;return new Promise(((e,s)=>{let r=uni.chooseFile;if("undefined"!=typeof wx&&"function"==typeof wx.chooseMessageFile&&(r=wx.chooseMessageFile),"function"!=typeof r)return s({errMsg:i+" 请指定 type 类型,该平台仅支持选择 image 或 video。"});r({type:"all",count:t,extension:n,success(t){e(a(t))},fail(e){s({errMsg:e.errMsg.replace("chooseFile:fail",i)})}})}))}(t),t)}}})));function Ba(e){return{props:{localdata:{type:Array,default:()=>[]},options:{type:[Object,Array],default:()=>({})},spaceInfo:{type:Object,default:()=>({})},collection:{type:[String,Array],default:""},action:{type:String,default:""},field:{type:String,default:""},orderby:{type:String,default:""},where:{type:[String,Object],default:""},pageData:{type:String,default:"add"},pageCurrent:{type:Number,default:1},pageSize:{type:Number,default:20},getcount:{type:[Boolean,String],default:!1},gettree:{type:[Boolean,String],default:!1},gettreepath:{type:[Boolean,String],default:!1},startwith:{type:String,default:""},limitlevel:{type:Number,default:10},groupby:{type:String,default:""},groupField:{type:String,default:""},distinct:{type:[Boolean,String],default:!1},foreignKey:{type:String,default:""},loadtime:{type:String,default:"auto"},manual:{type:Boolean,default:!1}},data:()=>({mixinDatacomLoading:!1,mixinDatacomHasMore:!1,mixinDatacomResData:[],mixinDatacomErrorMessage:"",mixinDatacomPage:{},mixinDatacomError:null}),created(){this.mixinDatacomPage={current:this.pageCurrent,size:this.pageSize,count:0},this.$watch((()=>{var e=[];return["pageCurrent","pageSize","localdata","collection","action","field","orderby","where","getont","getcount","gettree","groupby","groupField","distinct"].forEach((t=>{e.push(this[t])})),e}),((e,t)=>{if("manual"===this.loadtime)return;let n=!1;const i=[];for(let a=2;a{this.mixinDatacomLoading=!1;const{data:i,count:a}=n.result;this.getcount&&(this.mixinDatacomPage.count=a),this.mixinDatacomHasMore=i.length{this.mixinDatacomLoading=!1,this.mixinDatacomErrorMessage=e,this.mixinDatacomError=e,n&&n(e)})))},mixinDatacomGet(t={}){let n;t=t||{},n="undefined"!=typeof __uniX&&__uniX?e.databaseForJQL(this.spaceInfo):e.database(this.spaceInfo);const i=t.action||this.action;i&&(n=n.action(i));const a=t.collection||this.collection;n=Array.isArray(a)?n.collection(...a):n.collection(a);const s=t.where||this.where;s&&Object.keys(s).length&&(n=n.where(s));const r=t.field||this.field;r&&(n=n.field(r));const o=t.foreignKey||this.foreignKey;o&&(n=n.foreignKey(o));const l=t.groupby||this.groupby;l&&(n=n.groupBy(l));const c=t.groupField||this.groupField;c&&(n=n.groupField(c)),!0===(void 0!==t.distinct?t.distinct:this.distinct)&&(n=n.distinct());const u=t.orderby||this.orderby;u&&(n=n.orderBy(u));const d=void 0!==t.pageCurrent?t.pageCurrent:this.mixinDatacomPage.current,h=void 0!==t.pageSize?t.pageSize:this.mixinDatacomPage.size,p=void 0!==t.getcount?t.getcount:this.getcount,f=void 0!==t.gettree?t.gettree:this.gettree,m=void 0!==t.gettreepath?t.gettreepath:this.gettreepath,g={getCount:p},v={limitLevel:void 0!==t.limitlevel?t.limitlevel:this.limitlevel,startWith:void 0!==t.startwith?t.startwith:this.startwith};return f&&(g.getTree=v),m&&(g.getTreePath=v),n=n.skip(h*(d-1)).limit(h).get(g),n}}}}function Aa(e){return Ct("_globalUniCloudSecureNetworkCache__{spaceId}".replace("{spaceId}",e.config.spaceId))}async function Ma({openid:e,callLoginByWeixin:t=!1}={}){throw Aa(this),new Error("[SecureNetwork] API `initSecureNetworkByWeixin` is not supported on platform `app`")}async function Pa(e){const t=Aa(this);return t.initPromise||(t.initPromise=Ma.call(this,e).then((e=>e)).catch((e=>{throw delete t.initPromise,e}))),t.initPromise}function Ra(e){const t={getSystemInfo:uni.getSystemInfo,getPushClientId:uni.getPushClientId};return function(n){return new Promise(((i,a)=>{t[e]({...n,success(e){i(e)},fail(e){a(e)}})}))}}class Oa extends class{constructor(){this._callback={}}addListener(e,t){this._callback[e]||(this._callback[e]=[]),this._callback[e].push(t)}on(e,t){return this.addListener(e,t)}removeListener(e,t){if(!t)throw new Error('The "listener" argument must be of type function. Received undefined');const n=this._callback[e];if(!n)return;const i=function(e,t){for(let n=e.length-1;n>=0;n--)if(e[n]===t)return n;return-1}(n,t);n.splice(i,1)}off(e,t){return this.removeListener(e,t)}removeAllListener(e){delete this._callback[e]}emit(e,...t){const n=this._callback[e];if(n)for(let i=0;i{if(!e)throw new Error("Invalid appId, please check the manifest.json file");if(!t)throw new Error("Invalid push client id");this._appId=e,this._pushClientId=t,this._seqId=Date.now()+"-"+Math.floor(9e5*Math.random()+1e5),this.emit("open"),this._initMessageListener()}),(e=>{throw this.emit("error",e),this.close(),e}))}async open(){return this.init()}_isUniCloudSSE(e){if("receive"!==e.type)return!1;const t=e&&e.data&&e.data.payload;return!(!t||"UNI_CLOUD_SSE"!==t.channel||t.seqId!==this._seqId)}_receivePushMessage(e){if(!this._isUniCloudSSE(e))return;const t=e&&e.data&&e.data.payload,{action:n,messageId:i,message:a}=t;this._payloadQueue.push({action:n,messageId:i,message:a}),this._consumMessage()}_consumMessage(){for(;;){const e=this._payloadQueue.find((e=>e.messageId===this._currentMessageId+1));if(!e)break;this._currentMessageId++,this._parseMessagePayload(e)}}_parseMessagePayload(e){const{action:t,messageId:n,message:i}=e;"end"===t?this._end({messageId:n,message:i}):"message"===t&&this._appendMessage({messageId:n,message:i})}_appendMessage({messageId:e,message:t}={}){this.emit("message",t)}_end({messageId:e,message:t}={}){this.emit("end",t),this.close()}_initMessageListener(){uni.onPushMessage(this._uniPushMessageCallback)}_destroy(){uni.offPushMessage(this._uniPushMessageCallback)}toJSON(){return{appId:this._appId,pushClientId:this._pushClientId,seqId:this._seqId}}close(){this._destroy(),this.emit("close")}}const La={tcb:Si,tencent:Si,aliyun:pn,private:Ei,alipay:Ii};let Fa=new class{init(e){let t={};const n=La[e.provider];if(!n)throw new Error("未提供正确的provider参数");var i;return t=n.init(e),function(e){e._initPromiseHub||(e._initPromiseHub=new bt({createPromise:function(){let t=Promise.resolve();t=new Promise((e=>{setTimeout((()=>{e()}),1)}));const n=e.auth();return t.then((()=>n.getLoginState())).then((e=>e?Promise.resolve():n.signInAnonymously()))}}))}(t),Hi(t),function(e){const t=e.uploadFile;e.uploadFile=function(e){return t.call(this,e)}}(t),(i=t).database=function(e){if(e&&Object.keys(e).length>0)return i.init(e).database();if(this._database)return this._database;const t=ta(na,{uniClient:i});return this._database=t,t},i.databaseForJQL=function(e){if(e&&Object.keys(e).length>0)return i.init(e).databaseForJQL();if(this._databaseForJQL)return this._databaseForJQL;const t=ta(na,{uniClient:i,isJQL:!0});return this._databaseForJQL=t,t},function(e){e.getCurrentUserInfo=Va,e.chooseAndUploadFile=Ia.initChooseAndUploadFile(e),Object.assign(e,{get mixinDatacom(){return Ba(e)}}),e.SSEChannel=Oa,e.initSecureNetworkByWeixin=function(e){return function({openid:t,callLoginByWeixin:n=!1}={}){return Pa.call(e,{openid:t,callLoginByWeixin:n})}}(e),e.importObject=function(t){return function(n,i={}){i=function(e,t={}){return e.customUI=t.customUI||e.customUI,e.parseSystemError=t.parseSystemError||e.parseSystemError,Object.assign(e.loadingOptions,t.loadingOptions),Object.assign(e.errorOptions,t.errorOptions),"object"==typeof t.secretMethods&&(e.secretMethods=t.secretMethods),e}({customUI:!1,loadingOptions:{title:"加载中...",mask:!0},errorOptions:{type:"modal",retry:!1}},i);const{customUI:a,loadingOptions:s,errorOptions:r,parseSystemError:o}=i,l=!a;return new Proxy({},{get(a,c){switch(c){case"toString":return"[object UniCloudObject]";case"toJSON":return{}}return function({fn:e,interceptorName:t,getCallbackArgs:n}={}){return async function(...i){const a=n?n({params:i}):{};let s,r;try{return await Mt(Pt(t,"invoke"),{...a}),s=await e(...i),await Mt(Pt(t,"success"),{...a,result:s}),s}catch(o){throw r=o,await Mt(Pt(t,"fail"),{...a,error:r}),r}finally{await Mt(Pt(t,"complete"),r?{...a,error:r}:{...a,result:s})}}}({fn:async function a(...u){let d;l&&uni.showLoading({title:s.title,mask:s.mask});const h={name:n,type:"OBJECT",data:{method:c,params:u}};"object"==typeof i.secretMethods&&function(e,t){const n=t.data.method,i=e.secretMethods||{},a=i[n]||i["*"];a&&(t.secretType=a)}(i,h);let p=!1;try{d=await t.callFunction(h)}catch(e){p=!0,d={result:new Qt(e)}}const{errSubject:f,errCode:m,errMsg:g,newToken:v}=d.result||{};if(l&&uni.hideLoading(),v&&v.token&&v.tokenExpired&&(nn(v),Jt(jt,{...v})),m){let e=g;if(p&&o&&(e=(await o({objectName:n,methodName:c,params:u,errSubject:f,errCode:m,errMsg:g})).errMsg||g),l)if("toast"===r.type)uni.showToast({title:e,icon:"none"});else{if("modal"!==r.type)throw new Error(`Invalid errorOptions.type: ${r.type}`);{const{confirm:t}=await async function({title:e,content:t,showCancel:n,cancelText:i,confirmText:a}={}){return new Promise(((s,r)=>{uni.showModal({title:e,content:t,showCancel:n,cancelText:i,confirmText:a,success(e){s(e)},fail(){s({confirm:!1,cancel:!0})}})}))}({title:"提示",content:e,showCancel:r.retry,cancelText:"取消",confirmText:r.retry?"重试":"确定"});if(r.retry&&t)return a(...u)}}const t=new Qt({subject:f,code:m,message:g,requestId:d.requestId});throw t.detail=d.result,Jt(Lt,{type:zt,content:t}),t}return Jt(Lt,{type:zt,content:d.result}),d.result},interceptorName:"callObject",getCallbackArgs:function({params:e}={}){return{objectName:n,methodName:c,params:e}}})}})}}(e)}(t),["callFunction","uploadFile","deleteFile","getTempFileURL","downloadFile","chooseAndUploadFile"].forEach((e=>{if(!t[e])return;const n=t[e];t[e]=function(){return n.apply(t,Array.from(arguments))},t[e]=function(e,t){return function(n){let i=!1;if("callFunction"===t){const e=n&&n.type||ft;i=e!==ft}const a="callFunction"===t&&!i,s=this._initPromiseHub.exec();n=n||{};const{success:r,fail:o,complete:l}=Zt(n),c=s.then((()=>i?Promise.resolve():Mt(Pt(t,"invoke"),n))).then((()=>e.call(this,n))).then((e=>i?Promise.resolve(e):Mt(Pt(t,"success"),e).then((()=>Mt(Pt(t,"complete"),e))).then((()=>(a&&Jt(Lt,{type:$t,content:e}),Promise.resolve(e))))),(e=>i?Promise.reject(e):Mt(Pt(t,"fail"),e).then((()=>Mt(Pt(t,"complete"),e))).then((()=>(Jt(Lt,{type:$t,content:e}),Promise.reject(e))))));if(!(r||o||l))return c;c.then((e=>{r&&r(e),l&&l(e),a&&Jt(Lt,{type:$t,content:e})}),(e=>{o&&o(e),l&&l(e),a&&Jt(Lt,{type:$t,content:e})}))}}(t[e],e).bind(t)})),t.init=this.init,t}};(()=>{const e=Dt;let t={};if(e&&1===e.length)t=e[0],Fa=Fa.init(t),Fa._isDefault=!0;else{const t=["auth","callFunction","uploadFile","deleteFile","getTempFileURL","downloadFile","database","getCurrentUSerInfo","importObject"];let n;n=e&&e.length>0?"应用有多个服务空间,请通过uniCloud.init方法指定要使用的服务空间":"应用未关联服务空间,请在uniCloud目录右键关联服务空间",t.forEach((e=>{Fa[e]=function(){return console.error(n),Promise.reject(new Qt({code:"SYS_ERR",message:n}))}}))}Object.assign(Fa,{get mixinDatacom(){return Ba(Fa)}}),Da(Fa),Fa.addInterceptor=Bt,Fa.removeInterceptor=At,Fa.interceptObject=Rt})();var ja=Fa;const Ua="chooseAndUploadFile:fail";function $a(e,t){return e.tempFiles.forEach(((e,n)=>{e.name||(e.name=e.path.substring(e.path.lastIndexOf("/")+1)),t&&(e.fileType=t),e.cloudPath=Date.now()+"_"+n+e.name.substring(e.name.lastIndexOf("."))})),e.tempFilePaths||(e.tempFilePaths=e.tempFiles.map((e=>e.path))),e}function za(e,t=5,n){const i=(e=JSON.parse(JSON.stringify(e))).length;let a=0,s=this;return new Promise((r=>{for(;a=i)return void(!e.find((e=>!e.url&&!e.errMsg))&&r(e));const l=e[t],c=s.files.findIndex((e=>e.uuid===l.uuid));l.url="",delete l.errMsg,ja.uploadFile({filePath:l.path,cloudPath:l.cloudPath,fileType:l.fileType,onUploadProgress:e=>{e.index=c,n&&n(e)}}).then((e=>{l.url=e.fileID,l.index=c,t{l.errMsg=e.errMsg||e.message,l.index=c,t{if(t){const n=t(e);if(void 0!==n)return Promise.resolve(n).then((t=>void 0===t?e:t))}return e})).then((e=>!1===e?{errMsg:"chooseAndUploadFile:ok",tempFilePaths:[],tempFiles:[]}:e))}function qa(e={type:"all"}){return"image"===e.type?Ha(function(e){const{count:t,sizeType:n=["original","compressed"],sourceType:i,extension:a}=e;return new Promise(((e,s)=>{uni.chooseImage({count:t,sizeType:n,sourceType:i,extension:a,success(t){e($a(t,"image"))},fail(e){s({errMsg:e.errMsg.replace("chooseImage:fail",Ua)})}})}))}(e),e):"video"===e.type?Ha(function(e){const{count:t,camera:n,compressed:i,maxDuration:a,sourceType:s,extension:r}=e;return new Promise(((e,t)=>{uni.chooseVideo({camera:n,compressed:i,maxDuration:a,sourceType:s,extension:r,success(t){const{tempFilePath:n,duration:i,size:a,height:s,width:r}=t;e($a({errMsg:"chooseVideo:ok",tempFilePaths:[n],tempFiles:[{name:t.tempFile&&t.tempFile.name||"",path:n,size:a,type:t.tempFile&&t.tempFile.type||"",width:r,height:s,duration:i,fileType:"video",cloudPath:""}]},"video"))},fail(e){t({errMsg:e.errMsg.replace("chooseVideo:fail",Ua)})}})}))}(e),e):Ha(function(e){const{count:t,extension:n}=e;return new Promise(((e,i)=>{let a=uni.chooseFile;if("undefined"!=typeof wx&&"function"==typeof wx.chooseMessageFile&&(a=wx.chooseMessageFile),"function"!=typeof a)return i({errMsg:Ua+" 请指定 type 类型,该平台仅支持选择 image 或 video。"});a({type:"all",count:t,extension:n,success(t){e($a(t))},fail(e){i({errMsg:e.errMsg.replace("chooseFile:fail",Ua)})}})}))}(e),e)}const Ka=e=>{const t=e.lastIndexOf("."),n=e.length;return{name:e.substring(0,t),ext:e.substring(t+1,n)}},Ja=e=>{if(Array.isArray(e))return e;return e.replace(/(\[|\])/g,"").split(",")},Wa=async(e,t="image")=>{const n=Ka(e.name).ext.toLowerCase();let i={name:e.name,uuid:e.uuid,extname:n||"",cloudPath:e.cloudPath,fileType:e.fileType,thumbTempFilePath:e.thumbTempFilePath,url:e.path||e.path,size:e.size,image:{},path:e.path,video:{}};if("image"===t){const t=await(a=e.path,new Promise(((e,t)=>{uni.getImageInfo({src:a,success(t){e(t)},fail(e){t(e)}})})));delete i.video,i.image.width=t.width,i.image.height=t.height,i.image.location=t.path}else delete i.image;var a;return i};const Ya=q({name:"uniFilePicker",components:{uploadImage:q({name:"uploadImage",emits:["uploadFiles","choose","delFile"],props:{filesList:{type:Array,default:()=>[]},disabled:{type:Boolean,default:!1},disablePreview:{type:Boolean,default:!1},limit:{type:[Number,String],default:9},imageStyles:{type:Object,default:()=>({width:"auto",height:"auto",border:{}})},delIcon:{type:Boolean,default:!0},readonly:{type:Boolean,default:!1}},computed:{styles(){return Object.assign({width:"auto",height:"auto",border:{}},this.imageStyles)},boxStyle(){const{width:e="auto",height:t="auto"}=this.styles;let n={};"auto"===t?"auto"!==e?(n.height=this.value2px(e),n["padding-top"]=0):n.height=0:(n.height=this.value2px(t),n["padding-top"]=0),n.width="auto"===e?"auto"!==t?this.value2px(t):"33.3%":this.value2px(e);let i="";for(let a in n)i+=`${a}:${n[a]};`;return i},borderStyle(){let{border:e}=this.styles,t={};if("boolean"==typeof e)t.border=e?"1px #eee solid":"none";else{let n=e&&e.width||1;n=this.value2px(n);let i=e&&e.radius||3;i=this.value2px(i),t={"border-width":n,"border-style":e&&e.style||"solid","border-color":e&&e.color||"#eee","border-radius":i}}let n="";for(let i in t)n+=`${i}:${t[i]};`;return n}},methods:{uploadFiles(e,t){this.$emit("uploadFiles",e)},choose(){this.$emit("choose")},delFile(e){this.$emit("delFile",e)},prviewImage(e,t){let n=[];1===Number(this.limit)&&this.disablePreview&&!this.disabled&&this.$emit("choose"),this.disablePreview||(this.filesList.forEach((e=>{n.push(e.url)})),uni.previewImage({urls:n,current:t}))},value2px:e=>("number"==typeof e?e+="px":-1===e.indexOf("%")&&(e=-1!==e.indexOf("px")?e:e+"px"),e)}},[["render",function(t,n,i,a,s,r){return e.openBlock(),e.createElementBlock("view",{class:"uni-file-picker__container"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.filesList,((t,n)=>(e.openBlock(),e.createElementBlock("view",{class:"file-picker__box",key:n,style:e.normalizeStyle(r.boxStyle)},[e.createElementVNode("view",{class:"file-picker__box-content",style:e.normalizeStyle(r.borderStyle)},[e.createElementVNode("image",{class:"file-image",src:t.url,mode:"aspectFill",onClick:e.withModifiers((e=>r.prviewImage(t,n)),["stop"])},null,8,["src","onClick"]),i.delIcon&&!i.readonly?(e.openBlock(),e.createElementBlock("view",{key:0,class:"icon-del-box",onClick:e.withModifiers((e=>r.delFile(n)),["stop"])},[e.createElementVNode("view",{class:"icon-del"}),e.createElementVNode("view",{class:"icon-del rotate"})],8,["onClick"])):e.createCommentVNode("",!0),t.progress&&100!==t.progress||0===t.progress?(e.openBlock(),e.createElementBlock("view",{key:1,class:"file-picker__progress"},[e.createElementVNode("progress",{class:"file-picker__progress-item",percent:-1===t.progress?0:t.progress,"stroke-width":"4",backgroundColor:t.errMsg?"#ff5a5f":"#EBEBEB"},null,8,["percent","backgroundColor"])])):e.createCommentVNode("",!0),t.errMsg?(e.openBlock(),e.createElementBlock("view",{key:2,class:"file-picker__mask",onClick:e.withModifiers((e=>r.uploadFiles(t,n)),["stop"])}," 点击重试 ",8,["onClick"])):e.createCommentVNode("",!0)],4)],4)))),128)),i.filesList.lengthr.choose&&r.choose(...e))},[e.renderSlot(t.$slots,"default",{},(()=>[e.createElementVNode("view",{class:"icon-add"}),e.createElementVNode("view",{class:"icon-add rotate"})]),!0)],4)],4)):e.createCommentVNode("",!0)])}],["__scopeId","data-v-86b162f5"]]),uploadFile:q({name:"uploadFile",emits:["uploadFiles","choose","delFile"],props:{filesList:{type:Array,default:()=>[]},delIcon:{type:Boolean,default:!0},limit:{type:[Number,String],default:9},showType:{type:String,default:""},listStyles:{type:Object,default:()=>({border:!0,dividline:!0,borderStyle:{}})},readonly:{type:Boolean,default:!1}},computed:{list(){let e=[];return this.filesList.forEach((t=>{e.push(t)})),e},styles(){return Object.assign({border:!0,dividline:!0,"border-style":{}},this.listStyles)},borderStyle(){let{borderStyle:e,border:t}=this.styles,n={};if(t){let t=e&&e.width||1;t=this.value2px(t);let i=e&&e.radius||5;i=this.value2px(i),n={"border-width":t,"border-style":e&&e.style||"solid","border-color":e&&e.color||"#eee","border-radius":i}}else n.border="none";let i="";for(let a in n)i+=`${a}:${n[a]};`;return i},borderLineStyle(){let e={},{borderStyle:t}=this.styles;if(t&&t.color&&(e["border-color"]=t.color),t&&t.width){let n=t&&t.width||1,i=t&&t.style||0;"number"==typeof n?n+="px":n=n.indexOf("px")?n:n+"px",e["border-width"]=n,"number"==typeof i?i+="px":i=i.indexOf("px")?i:i+"px",e["border-top-style"]=i}let n="";for(let i in e)n+=`${i}:${e[i]};`;return n}},methods:{uploadFiles(e,t){this.$emit("uploadFiles",{item:e,index:t})},choose(){this.$emit("choose")},delFile(e){this.$emit("delFile",e)},value2px:e=>("number"==typeof e?e+="px":e=-1!==e.indexOf("px")?e:e+"px",e)}},[["render",function(t,n,i,a,s,r){return e.openBlock(),e.createElementBlock("view",{class:"uni-file-picker__files"},[i.readonly?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("view",{key:0,class:"files-button",onClick:n[0]||(n[0]=(...e)=>r.choose&&r.choose(...e))},[e.renderSlot(t.$slots,"default",{},void 0,!0)])),r.list.length>0?(e.openBlock(),e.createElementBlock("view",{key:1,class:"uni-file-picker__lists is-text-box",style:e.normalizeStyle(r.borderStyle)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.list,((t,n)=>(e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass(["uni-file-picker__lists-box",{"files-border":0!==n&&r.styles.dividline}]),key:n,style:e.normalizeStyle(0!==n&&r.styles.dividline&&r.borderLineStyle)},[e.createElementVNode("view",{class:"uni-file-picker__item"},[e.createElementVNode("view",{class:"files__name"},e.toDisplayString(t.name),1),i.delIcon&&!i.readonly?(e.openBlock(),e.createElementBlock("view",{key:0,class:"icon-del-box icon-files",onClick:e=>r.delFile(n)},[e.createElementVNode("view",{class:"icon-del icon-files"}),e.createElementVNode("view",{class:"icon-del rotate"})],8,["onClick"])):e.createCommentVNode("",!0)]),t.progress&&100!==t.progress||0===t.progress?(e.openBlock(),e.createElementBlock("view",{key:0,class:"file-picker__progress"},[e.createElementVNode("progress",{class:"file-picker__progress-item",percent:-1===t.progress?0:t.progress,"stroke-width":"4",backgroundColor:t.errMsg?"#ff5a5f":"#EBEBEB"},null,8,["percent","backgroundColor"])])):e.createCommentVNode("",!0),"error"===t.status?(e.openBlock(),e.createElementBlock("view",{key:1,class:"file-picker__mask",onClick:e.withModifiers((e=>r.uploadFiles(t,n)),["stop"])}," 点击重试 ",8,["onClick"])):e.createCommentVNode("",!0)],6)))),128))],4)):e.createCommentVNode("",!0)])}],["__scopeId","data-v-e61666c7"]])},options:{virtualHost:!0},emits:["select","success","fail","progress","delete","update:modelValue","input"],props:{modelValue:{type:[Array,Object],default:()=>[]},value:{type:[Array,Object],default:()=>[]},disabled:{type:Boolean,default:!1},disablePreview:{type:Boolean,default:!1},delIcon:{type:Boolean,default:!0},autoUpload:{type:Boolean,default:!0},limit:{type:[Number,String],default:9},mode:{type:String,default:"grid"},fileMediatype:{type:String,default:"image"},fileExtname:{type:[Array,String],default:()=>[]},title:{type:String,default:""},listStyles:{type:Object,default:()=>({border:!0,dividline:!0,borderStyle:{}})},imageStyles:{type:Object,default:()=>({width:"auto",height:"auto"})},readonly:{type:Boolean,default:!1},returnType:{type:String,default:"array"},sizeType:{type:Array,default:()=>["original","compressed"]},sourceType:{type:Array,default:()=>["album","camera"]},provider:{type:String,default:""}},data:()=>({files:[],localValue:[]}),watch:{value:{handler(e,t){this.setValue(e,t)},immediate:!0},modelValue:{handler(e,t){this.setValue(e,t)},immediate:!0}},computed:{filesList(){let e=[];return this.files.forEach((t=>{e.push(t)})),e},showType(){return"image"===this.fileMediatype?this.mode:"list"},limitLength(){return"object"===this.returnType?1:this.limit?this.limit>=9?9:this.limit:1}},created(){ja.config&&ja.config.provider||(this.noSpace=!0,ja.chooseAndUploadFile=qa),this.form=this.getForm("uniForms"),this.formItem=this.getForm("uniFormsItem"),this.form&&this.formItem&&this.formItem.name&&(this.rename=this.formItem.name,this.form.inputChildrens.push(this))},methods:{clearFiles(e){0===e||e?this.files.splice(e,1):(this.files=[],this.$nextTick((()=>{this.setEmit()}))),this.$nextTick((()=>{this.setEmit()}))},upload(){let e=[];return this.files.forEach(((t,n)=>{"ready"!==t.status&&"error"!==t.status||e.push(Object.assign({},t))})),this.uploadFiles(e)},async setValue(e,t){const n=async e=>{let t="";return t=e.fileID?e.fileID:e.url,/cloud:\/\/([\w.]+\/?)\S*/.test(t)&&(e.fileID=t,e.url=await this.getTempFileURL(t)),e.url&&(e.path=e.url),e};if("object"===this.returnType)e?await n(e):e={};else{e||(e=[]);for(let t=0;t0?e:[];this.files=[].concat(i)},choose(){this.disabled||(this.files.length>=Number(this.limitLength)&&"grid"!==this.showType&&"array"===this.returnType?uni.showToast({title:`您最多选择 ${this.limitLength} 个文件`,icon:"none"}):this.chooseFiles())},chooseFiles(){const e=Ja(this.fileExtname);ja.chooseAndUploadFile({type:this.fileMediatype,compressed:!1,sizeType:this.sizeType,sourceType:this.sourceType,extension:e.length>0?e:void 0,count:this.limitLength-this.files.length,onChooseFile:this.chooseFileCallback,onUploadProgress:e=>{this.setProgress(e,e.index)}}).then((e=>{this.setSuccessAndError(e.tempFiles)})).catch((e=>{t("log","at uni_modules/uni-file-picker/components/uni-file-picker/uni-file-picker.vue:364","选择失败",e)}))},async chooseFileCallback(e){const t=Ja(this.fileExtname);(1===Number(this.limitLength)&&this.disablePreview&&!this.disabled||"object"===this.returnType)&&(this.files=[]);let{filePaths:n,files:i}=((e,t)=>{let n=[],i=[];return t&&0!==t.length?(e.tempFiles.forEach((e=>{const a=Ka(e.name).ext.toLowerCase();-1!==t.indexOf(a)&&(i.push(e),n.push(e.path))})),i.length!==e.tempFiles.length&&uni.showToast({title:`当前选择了${e.tempFiles.length}个文件 ,${e.tempFiles.length-i.length} 个文件格式不正确`,icon:"none",duration:5e3}),{filePaths:n,files:i}):{filePaths:n,files:i}})(e,t);t&&t.length>0||(n=e.tempFilePaths,i=e.tempFiles);let a=[];for(let s=0;s{this.provider&&(e.provider=this.provider);const n=e.name.split("."),i=n.pop(),a=n.join(".").replace(/[\s\/\?<>\\:\*\|":]/g,"_");e.cloudPath=a+"_"+Date.now()+"_"+t+"."+i}))},uploadFiles(e){return e=[].concat(e),za.call(this,e,5,(e=>{this.setProgress(e,e.index,!0)})).then((e=>(this.setSuccessAndError(e),e))).catch((e=>{t("log","at uni_modules/uni-file-picker/components/uni-file-picker/uni-file-picker.vue:437",e)}))},async setSuccessAndError(e,t){let n=[],i=[],a=[],s=[];for(let r=0;re.uuid===t.uuid)):t.index;if(-1===o||!this.files)break;if("request:fail"===t.errMsg)this.files[o].url=t.path,this.files[o].status="error",this.files[o].errMsg=t.errMsg,i.push(this.files[o]),s.push(this.files[o].url);else{this.files[o].errMsg="",this.files[o].fileID=t.url;/cloud:\/\/([\w.]+\/?)\S*/.test(t.url)?this.files[o].url=await this.getTempFileURL(t.url):this.files[o].url=t.url,this.files[o].status="success",this.files[o].progress+=1,n.push(this.files[o]),a.push(this.files[o].fileID)}}n.length>0&&(this.setEmit(),this.$emit("success",{tempFiles:this.backObject(n),tempFilePaths:a})),i.length>0&&this.$emit("fail",{tempFiles:this.backObject(i),tempFilePaths:s})},setProgress(e,t,n){this.files.length;const i=Math.round(100*e.loaded/e.total);let a=t;n||(a=this.files.findIndex((t=>t.uuid===e.tempFile.uuid))),-1!==a&&this.files[a]&&(this.files[a].progress=i-1,this.$emit("progress",{index:a,progress:parseInt(i),tempFile:this.files[a]}))},delFile(e){this.$emit("delete",{index:e,tempFile:this.files[e],tempFilePath:this.files[e].url}),this.files.splice(e,1),this.$nextTick((()=>{this.setEmit()}))},getFileExt(e){const t=e.lastIndexOf("."),n=e.length;return{name:e.substring(0,t),ext:e.substring(t+1,n)}},setEmit(){let e=[];"object"===this.returnType?(e=this.backObject(this.files)[0],this.localValue=e||null):(e=this.backObject(this.files),this.localValue||(this.localValue=[]),this.localValue=[...e]),this.$emit("update:modelValue",this.localValue)},backObject(e){let t=[];return e.forEach((e=>{t.push({extname:e.extname,fileType:e.fileType,image:e.image,name:e.name,path:e.path,size:e.size,fileID:e.fileID,url:e.url,uuid:e.uuid,status:e.status,cloudPath:e.cloudPath})})),t},async getTempFileURL(e){e={fileList:[].concat(e)};return(await ja.getTempFileURL(e)).fileList[0].tempFileURL||""},getForm(e="uniForms"){let t=this.$parent,n=t.$options.name;for(;n!==e;){if(t=t.$parent,!t)return!1;n=t.$options.name}return t}}},[["render",function(t,n,i,a,s,r){const o=e.resolveComponent("upload-image"),l=e.resolveComponent("upload-file");return e.openBlock(),e.createElementBlock("view",{class:"uni-file-picker"},[i.title?(e.openBlock(),e.createElementBlock("view",{key:0,class:"uni-file-picker__header"},[e.createElementVNode("text",{class:"file-title"},e.toDisplayString(i.title),1),e.createElementVNode("text",{class:"file-count"},e.toDisplayString(r.filesList.length)+"/"+e.toDisplayString(r.limitLength),1)])):e.createCommentVNode("",!0),"image"===i.fileMediatype&&"grid"===r.showType?(e.openBlock(),e.createBlock(o,{key:1,readonly:i.readonly,"image-styles":i.imageStyles,"files-list":r.filesList,limit:r.limitLength,disablePreview:i.disablePreview,delIcon:i.delIcon,onUploadFiles:r.uploadFiles,onChoose:r.choose,onDelFile:r.delFile},{default:e.withCtx((()=>[e.renderSlot(t.$slots,"default",{},(()=>[e.createElementVNode("view",{class:"is-add"},[e.createElementVNode("view",{class:"icon-add"}),e.createElementVNode("view",{class:"icon-add rotate"})])]),!0)])),_:3},8,["readonly","image-styles","files-list","limit","disablePreview","delIcon","onUploadFiles","onChoose","onDelFile"])):e.createCommentVNode("",!0),"image"!==i.fileMediatype||"grid"!==r.showType?(e.openBlock(),e.createBlock(l,{key:2,readonly:i.readonly,"list-styles":i.listStyles,"files-list":r.filesList,showType:r.showType,delIcon:i.delIcon,onUploadFiles:r.uploadFiles,onChoose:r.choose,onDelFile:r.delFile},{default:e.withCtx((()=>[e.renderSlot(t.$slots,"default",{},(()=>[e.createElementVNode("button",{type:"primary",size:"mini"},"选择文件")]),!0)])),_:3},8,["readonly","list-styles","files-list","showType","delIcon","onUploadFiles","onChoose","onDelFile"])):e.createCommentVNode("",!0)])}],["__scopeId","data-v-086f9922"]]);function Ga(e){let t="";for(let n in e){t+=`${n}:${e[n]};`}return t}const Za=q({name:"uni-easyinput",emits:["click","iconClick","update:modelValue","input","focus","blur","confirm","clear","eyes","change","keyboardheightchange"],model:{prop:"modelValue",event:"update:modelValue"},options:{virtualHost:!0},inject:{form:{from:"uniForm",default:null},formItem:{from:"uniFormItem",default:null}},props:{name:String,value:[Number,String],modelValue:[Number,String],type:{type:String,default:"text"},clearable:{type:Boolean,default:!0},autoHeight:{type:Boolean,default:!1},placeholder:{type:String,default:" "},placeholderStyle:String,focus:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},maxlength:{type:[Number,String],default:140},confirmType:{type:String,default:"done"},clearSize:{type:[Number,String],default:24},inputBorder:{type:Boolean,default:!0},prefixIcon:{type:String,default:""},suffixIcon:{type:String,default:""},trim:{type:[Boolean,String],default:!1},cursorSpacing:{type:Number,default:0},passwordIcon:{type:Boolean,default:!0},adjustPosition:{type:Boolean,default:!0},primaryColor:{type:String,default:"#2979ff"},styles:{type:Object,default:()=>({color:"#333",backgroundColor:"#fff",disableColor:"#F7F6F6",borderColor:"#e5e5e5"})},errorMessage:{type:[String,Boolean],default:""}},data:()=>({focused:!1,val:"",showMsg:"",border:!1,isFirstBorder:!1,showClearIcon:!1,showPassword:!1,focusShow:!1,localMsg:"",isEnter:!1}),computed:{isVal(){const e=this.val;return!(!e&&0!==e)},msg(){return this.localMsg||this.errorMessage},inputMaxlength(){return Number(this.maxlength)},boxStyle(){return`color:${this.inputBorder&&this.msg?"#e43d33":this.styles.color};`},inputContentClass(){return function(e){let t="";for(let n in e)e[n]&&(t+=`${n} `);return t}({"is-input-border":this.inputBorder,"is-input-error-border":this.inputBorder&&this.msg,"is-textarea":"textarea"===this.type,"is-disabled":this.disabled,"is-focused":this.focusShow})},inputContentStyle(){const e=this.focusShow?this.primaryColor:this.styles.borderColor;return Ga({"border-color":(this.inputBorder&&this.msg?"#dd524d":e)||"#e5e5e5","background-color":this.disabled?this.styles.disableColor:this.styles.backgroundColor})},inputStyle(){return Ga({"padding-right":"password"===this.type||this.clearable||this.prefixIcon?"":"10px","padding-left":this.prefixIcon?"":"10px"})}},watch:{value(e){this.val=null!==e?e:""},modelValue(e){this.val=null!==e?e:""},focus(e){this.$nextTick((()=>{this.focused=this.focus,this.focusShow=this.focus}))}},created(){this.init(),this.form&&this.formItem&&this.$watch("formItem.errMsg",(e=>{this.localMsg=e}))},mounted(){this.$nextTick((()=>{this.focused=this.focus,this.focusShow=this.focus}))},methods:{init(){this.value||0===this.value?this.val=this.value:this.modelValue||0===this.modelValue||""===this.modelValue?this.val=this.modelValue:this.val=""},onClickIcon(e){this.$emit("iconClick",e)},onEyes(){this.showPassword=!this.showPassword,this.$emit("eyes",this.showPassword)},onInput(e){let t=e.detail.value;this.trim&&("boolean"==typeof this.trim&&this.trim&&(t=this.trimStr(t)),"string"==typeof this.trim&&(t=this.trimStr(t,this.trim))),this.errMsg&&(this.errMsg=""),this.val=t,this.$emit("input",t),this.$emit("update:modelValue",t)},onFocus(){this.$nextTick((()=>{this.focused=!0})),this.$emit("focus",null)},_Focus(e){this.focusShow=!0,this.$emit("focus",e)},onBlur(){this.focused=!1,this.$emit("blur",null)},_Blur(e){if(e.detail.value,this.focusShow=!1,this.$emit("blur",e),!1===this.isEnter&&this.$emit("change",this.val),this.form&&this.formItem){const{validateTrigger:e}=this.form;"blur"===e&&this.formItem.onFieldChange()}},onConfirm(e){this.$emit("confirm",this.val),this.isEnter=!0,this.$emit("change",this.val),this.$nextTick((()=>{this.isEnter=!1}))},onClear(e){this.val="",this.$emit("input",""),this.$emit("update:modelValue",""),this.$emit("clear")},onkeyboardheightchange(e){this.$emit("keyboardheightchange",e)},trimStr:(e,t="both")=>"both"===t?e.trim():"left"===t?e.trimLeft():"right"===t?e.trimRight():"start"===t?e.trimStart():"end"===t?e.trimEnd():"all"===t?e.replace(/\s+/g,""):e}},[["render",function(t,i,a,s,r,o){const l=n(e.resolveDynamicComponent("uni-icons"),W);return e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass(["uni-easyinput",{"uni-easyinput-error":o.msg}]),style:e.normalizeStyle(o.boxStyle)},[e.createElementVNode("view",{class:e.normalizeClass(["uni-easyinput__content",o.inputContentClass]),style:e.normalizeStyle(o.inputContentStyle)},[a.prefixIcon?(e.openBlock(),e.createBlock(l,{key:0,class:"content-clear-icon",type:a.prefixIcon,color:"#c0c4cc",onClick:i[0]||(i[0]=e=>o.onClickIcon("prefix")),size:"22"},null,8,["type"])):e.createCommentVNode("",!0),e.renderSlot(t.$slots,"left",{},void 0,!0),"textarea"===a.type?(e.openBlock(),e.createElementBlock("textarea",{key:1,class:e.normalizeClass(["uni-easyinput__content-textarea",{"input-padding":a.inputBorder}]),name:a.name,value:r.val,placeholder:a.placeholder,placeholderStyle:a.placeholderStyle,disabled:a.disabled,"placeholder-class":"uni-easyinput__placeholder-class",maxlength:o.inputMaxlength,focus:r.focused,autoHeight:a.autoHeight,"cursor-spacing":a.cursorSpacing,"adjust-position":a.adjustPosition,onInput:i[1]||(i[1]=(...e)=>o.onInput&&o.onInput(...e)),onBlur:i[2]||(i[2]=(...e)=>o._Blur&&o._Blur(...e)),onFocus:i[3]||(i[3]=(...e)=>o._Focus&&o._Focus(...e)),onConfirm:i[4]||(i[4]=(...e)=>o.onConfirm&&o.onConfirm(...e)),onKeyboardheightchange:i[5]||(i[5]=(...e)=>o.onkeyboardheightchange&&o.onkeyboardheightchange(...e))},null,42,["name","value","placeholder","placeholderStyle","disabled","maxlength","focus","autoHeight","cursor-spacing","adjust-position"])):(e.openBlock(),e.createElementBlock("input",{key:2,type:"password"===a.type?"text":a.type,class:"uni-easyinput__content-input",style:e.normalizeStyle(o.inputStyle),name:a.name,value:r.val,password:!r.showPassword&&"password"===a.type,placeholder:a.placeholder,placeholderStyle:a.placeholderStyle,"placeholder-class":"uni-easyinput__placeholder-class",disabled:a.disabled,maxlength:o.inputMaxlength,focus:r.focused,confirmType:a.confirmType,"cursor-spacing":a.cursorSpacing,"adjust-position":a.adjustPosition,onFocus:i[6]||(i[6]=(...e)=>o._Focus&&o._Focus(...e)),onBlur:i[7]||(i[7]=(...e)=>o._Blur&&o._Blur(...e)),onInput:i[8]||(i[8]=(...e)=>o.onInput&&o.onInput(...e)),onConfirm:i[9]||(i[9]=(...e)=>o.onConfirm&&o.onConfirm(...e)),onKeyboardheightchange:i[10]||(i[10]=(...e)=>o.onkeyboardheightchange&&o.onkeyboardheightchange(...e))},null,44,["type","name","value","password","placeholder","placeholderStyle","disabled","maxlength","focus","confirmType","cursor-spacing","adjust-position"])),"password"===a.type&&a.passwordIcon?(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[o.isVal?(e.openBlock(),e.createBlock(l,{key:0,class:e.normalizeClass(["content-clear-icon",{"is-textarea-icon":"textarea"===a.type}]),type:r.showPassword?"eye-slash-filled":"eye-filled",size:22,color:r.focusShow?a.primaryColor:"#c0c4cc",onClick:o.onEyes},null,8,["class","type","color","onClick"])):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),a.suffixIcon?(e.openBlock(),e.createElementBlock(e.Fragment,{key:4},[a.suffixIcon?(e.openBlock(),e.createBlock(l,{key:0,class:"content-clear-icon",type:a.suffixIcon,color:"#c0c4cc",onClick:i[11]||(i[11]=e=>o.onClickIcon("suffix")),size:"22"},null,8,["type"])):e.createCommentVNode("",!0)],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:5},[a.clearable&&o.isVal&&!a.disabled&&"textarea"!==a.type?(e.openBlock(),e.createBlock(l,{key:0,class:e.normalizeClass(["content-clear-icon",{"is-textarea-icon":"textarea"===a.type}]),type:"clear",size:a.clearSize,color:o.msg?"#dd524d":r.focusShow?a.primaryColor:"#c0c4cc",onClick:o.onClear},null,8,["class","size","color","onClick"])):e.createCommentVNode("",!0)],64)),e.renderSlot(t.$slots,"right",{},void 0,!0)],6)],6)}],["__scopeId","data-v-d17898f6"]]);function Qa(e){return"string"==typeof e}function Xa(e,t=50){if(!Array.isArray(e)||!e.length)return e;const n=[];return e.forEach(((e,i)=>{const a=Math.floor(i/t);n[a]||(n[a]=[]),n[a].push(e)})),n}const es=q(e.defineComponent({__name:"data-select-item",props:{node:{type:Object,default:()=>({})},choseParent:{type:Boolean,default:!0},dataLabel:{type:String,default:"name"},dataValue:{type:String,default:"value"},dataChildren:{type:String,default:"children"},border:{type:Boolean,default:!1},linkage:{type:Boolean,default:!1},lazyLoadChildren:{type:Boolean,default:!1},level:{type:Number,default:0},mutiple:{type:Boolean,default:!1}},setup(t){const{nodeClick:i,nameClick:a,loadNode:s,initData:r,addNode:o}=e.inject("nodeFn"),l=t,c=e.ref([]),u=e.ref([]),d=e.ref([]);return e.watchEffect((()=>{l.node.showChildren&&l.node[l.dataChildren]&&l.node[l.dataChildren].length&&(function(){const e=[...u.value];u.value=[],e.forEach((e=>e()))}(),function(e){const t=Xa(e);c.value=(null==t?void 0:t[0])||[],function(e,t){for(let n=t;n{c.value.push(...e[n])}),500*n),u.push((()=>clearTimeout(t)))}}(t,1)}(l.node[l.dataChildren]))})),(u,h)=>{const p=n(e.resolveDynamicComponent("uni-icons"),W);return e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass(["customthree-tree-select-content",{border:t.border&&t.node[t.dataChildren]&&t.node[t.dataChildren].length&&t.node.showChildren}]),style:e.normalizeStyle({marginLeft:(t.level?14:0)+"px"})},[t.node.visible?(e.openBlock(),e.createElementBlock("view",{key:0,class:"custom-tree-select-item"},[e.createElementVNode("view",{class:"item-content"},[e.createElementVNode("view",{class:"left",onClick:h[0]||(h[0]=e.withModifiers((e=>{var n,i;(n=t.node).visible&&(!(null==(i=n[l.dataChildren])?void 0:i.length)&&l.lazyLoadChildren?(d.value.push(n[l.dataValue].toString()),s(n).then((e=>{o(n,r(e,n.visible))})).finally((()=>{d.value=[]}))):a(n))}),["stop"]))},[e.createElementVNode("view",{class:"icon-group"},[t.node[t.dataChildren]&&t.node[t.dataChildren].length?(e.openBlock(),e.createElementBlock("view",{key:0,class:e.normalizeClass(["right-icon",{active:t.node.showChildren}])},[e.createVNode(p,{type:"right",size:"14",color:"#333"})],2)):(e.openBlock(),e.createElementBlock("view",{key:1,class:"smallcircle-filled"},[e.createVNode(p,{class:"smallcircle-filled-icon",type:"smallcircle-filled",size:"10",color:"#333"})]))]),d.value.includes(t.node[l.dataValue].toString())?(e.openBlock(),e.createElementBlock("view",{key:0,class:"loading-icon-box"},[e.createVNode(p,{class:"loading-icon",type:"spinner-cycle",size:"14",color:"#333"})])):e.createCommentVNode("",!0),e.createElementVNode("view",{class:"name",style:e.normalizeStyle(t.node.disabled?"color: #999":"")},[e.createElementVNode("text",null,e.toDisplayString(t.node[t.dataLabel]),1)],4)]),t.choseParent||!t.choseParent&&!t.node[t.dataChildren]||!t.choseParent&&t.node[t.dataChildren]&&!t.node[t.dataChildren].length?(e.openBlock(),e.createElementBlock("view",{key:0,class:e.normalizeClass(["check-box",{disabled:t.node.disabled}]),style:e.normalizeStyle({"border-radius":t.mutiple?"3px":"50%"}),onClick:h[1]||(h[1]=e.withModifiers((n=>!t.node.disabled&&e.unref(i)(t.node)),["stop"]))},[!t.node.checked&&t.node.partChecked&&t.linkage?(e.openBlock(),e.createElementBlock("view",{key:0,class:"part-checked"})):e.createCommentVNode("",!0),t.node.checked?(e.openBlock(),e.createBlock(p,{key:1,type:"checkmarkempty",size:"18",color:t.node.disabled?"#333":"#007aff"},null,8,["color"])):e.createCommentVNode("",!0)],6)):e.createCommentVNode("",!0)])])):e.createCommentVNode("",!0),t.node.showChildren&&t.node[t.dataChildren]&&t.node[t.dataChildren].length?(e.openBlock(),e.createElementBlock("view",{key:1},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,(n=>(e.openBlock(),e.createBlock(es,{key:n[t.dataValue],node:n,dataLabel:t.dataLabel,dataValue:t.dataValue,dataChildren:t.dataChildren,choseParent:t.choseParent,lazyLoadChildren:t.lazyLoadChildren,border:t.border,linkage:t.linkage,level:t.level+1},null,8,["node","dataLabel","dataValue","dataChildren","choseParent","lazyLoadChildren","border","linkage","level"])))),128))])):e.createCommentVNode("",!0)],6)}}}),[["__scopeId","data-v-50ed94e6"]]),ts=q(e.defineComponent({__name:"treeSelect",props:{canSelectAll:{type:Boolean,default:!1},safeArea:{type:Boolean,default:!0},search:{type:Boolean,default:!1},clearResetSearch:{type:Boolean,default:!1},animation:{type:Boolean,default:!0},"is-mask-click":{type:Boolean,default:!0},"mask-background-color":{type:String,default:"rgba(0,0,0,0.4)"},"background-color":{type:String,default:"none"},"safe-area":{type:Boolean,default:!0},choseParent:{type:Boolean,default:!1},placeholder:{type:String,default:"请选择"},confirmText:{type:String,default:"确认"},confirmTextColor:{type:String,default:"#007aff"},dataSource:{type:Array,default:()=>[]},dataLabel:{type:String,default:"name"},dataValue:{type:String,default:"id"},dataChildren:{type:String,default:"children"},linkage:{type:Boolean,default:!1},removeLinkage:{type:Boolean,default:!0},clearable:{type:Boolean,default:!1},mutiple:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},deleteSource:{type:Boolean,default:!1},showChildren:{type:Boolean,default:!1},border:{type:Boolean,default:!1},lazyLoadChildren:{type:Boolean,default:!1},load:{type:Function,default:function(){}},modelValue:{type:[Array,String],default:()=>[]}},emits:["update:modelValue","change","maskClick","select-change","removeSelect"],setup(t,{emit:i}){const a=t,s=i,r=e.ref("500px"),o=e.ref([]),l=e.ref([]),c=e.ref([]),u=e.ref([]),d=e.ref(!1),h=e.ref(!1),p=e.ref(0),f=e.ref(""),m=e.ref(null),g=new Set;e.provide("nodeFn",{nodeClick:I,nameClick:B,loadNode:a.load,initData:E,addNode:function(e,t){N(e,o.value)[a.dataChildren]=t,B(e)}});const v=e.computed((()=>{const e=null===a.modelValue?"":a.modelValue;return Qa(e)?e.length?e.split(","):[]:e.map((e=>e.toString()))}));function y(t=!1){x(),t?a.clearResetSearch&&D(o.value):D(w(f.value,o.value)),p.val=10,e.nextTick((()=>{p.value=0})),uni.hideKeyboard()}function w(e,t){const n=[];return t.forEach((t=>{var i,s;if(t.visible)if(t[a.dataLabel].toString().toLowerCase().indexOf(e.toLowerCase())>-1)n.push(t);else if(null==(i=t[a.dataChildren])?void 0:i.length){const i=w(e,t[a.dataChildren]);(null==i?void 0:i.length)&&(e&&!t.showChildren&&(null==(s=t[a.dataChildren])?void 0:s.length)&&(t.showChildren=!0),n.push({...t,[a.dataChildren]:i}))}})),n}async function k(){a.disabled||(d.value=!0,m.value.open(),D(o.value))}function _(){m.value.close()}function S(e){e.show||(x(),f.value="",d.value=!1),s("change",e)}function b(){s("maskClick")}function E(e,t){var n;if(!Array.isArray(e))return[];const i=[];for(let s=0;se()))}function D(e){const t=Xa(e);l.value=(null==t?void 0:t[0])||[],function(e,t){for(let n=t;n{l.value.push(...e[n])}),500*n),c.push((()=>clearTimeout(t)))}}(t,1)}function T(e,t,n=!1){var i;const r=[...e];let o=!0;for(n&&(u.value=[]);r.length;){const e=r.shift();t.includes(e[a.dataValue].toString())?(e.checked=!0,e.partChecked=!1,g.delete(e[a.dataValue]),n&&u.value.push(e)):(e.checked=!1,e.visible&&!e.disabled&&(o=!1),g.has(e[a.dataValue])?e.partChecked=!0:e.partChecked=!1),(null==(i=e[a.dataChildren])?void 0:i.length)&&r.push(...e[a.dataChildren])}h.value=o,n&&s("select-change",[...u.value])}function N(e,t){var n;const i=[...t];for(;i.length;){const t=i.shift();if(t[a.dataValue]===e[a.dataValue])return t;(null==(n=t[a.dataChildren])?void 0:n.length)&&i.push(...t[a.dataChildren])}return{}}function C(e){var t;if(!(null==(t=e[a.dataChildren])?void 0:t.length))return[];const n=e[a.dataChildren].reduce(((e,t)=>t.visible?[...e,t]:e),[]);for(let i=0;i!e.disabled));if(n.checked){if(e=Array.from(new Set([...e,n[a.dataValue].toString()])),i.length&&(e=Array.from(new Set([...e,...i.map((e=>e[a.dataValue].toString()))])),i.forEach((e=>{e.partChecked=!1,g.delete(e[a.dataValue])}))),t.length){let n=!1;for(;t.length;){const i=t.shift();if(!i.disabled)if(n)i.partChecked=!0,g.add(i[a.dataValue]);else{i[a.dataChildren].filter((e=>e.visible&&!e.disabled)).every((e=>e.checked))?(i.checked=!0,i.partChecked=!1,g.delete(i[a.dataValue]),e=Array.from(new Set([...e,i[a.dataValue].toString()]))):(i.partChecked=!0,g.add(i[a.dataValue]),n=!0)}}}}else e=e.filter((e=>e!==n[a.dataValue].toString())),i.length&&i.forEach((t=>{e=e.filter((e=>e!==t[a.dataValue].toString()))})),t.length&&t.forEach((t=>{e.includes(t[a.dataValue].toString())&&(t.checked=!1),e=e.filter((e=>e!==t[a.dataValue].toString()));const n=t[a.dataChildren].filter((e=>e.visible&&!e.disabled)).some((e=>e.checked||e.partChecked));t.partChecked=n,n?g.add(t[a.dataValue]):g.delete(t[a.dataValue])}));s("update:modelValue",Qa(a.modelValue)?e.join(","):e)}else{let e=null;e=n.checked?Array.from(new Set([...v.value,n[a.dataValue].toString()])):v.value.filter((e=>e!==n[a.dataValue].toString())),s("update:modelValue",Qa(a.modelValue)?e.join(","):e)}else{let e=[];n.checked&&(e=[n[a.dataValue].toString()]),s("update:modelValue",Qa(a.modelValue)?e.join(","):e)}}function B(e){const t=!e.showChildren;N(e,o.value).showChildren=t,N(e,l.value).showChildren=t}function A(){if(h.value=!h.value,h.value){if(!a.mutiple)return void uni.showToast({title:"单选模式下不能全选",icon:"none",duration:1e3});let e=[];o.value.forEach((t=>{var n;(t.visible||t.disabled&&t.checked)&&(e=Array.from(new Set([...e,t[a.dataValue].toString()])),(null==(n=t[a.dataChildren])?void 0:n.length)&&(e=Array.from(new Set([...e,...C(t).filter((e=>!e.disabled||e.disabled&&e.checked)).map((e=>e[a.dataValue].toString()))]))))})),s("update:modelValue",Qa(a.modelValue)?e.join(","):e)}else M()}function M(){if(a.disabled)return;g.clear();const e=[];u.value.forEach((t=>{t.visible&&t.checked&&t.disabled&&e.push(t[a.dataValue])})),s("update:modelValue",Qa(a.modelValue)?e.join(","):e)}return e.onMounted((()=>{!function({screenHeight:e}){r.value=`${Math.floor(.7*e)}px`}(uni.getSystemInfoSync())})),e.watch((()=>a.dataSource),(e=>{e&&(o.value=E(e),d.value&&(x(),D(o.value)))}),{immediate:!0,deep:!0}),e.watch((()=>a.modelValue),(e=>{const t=e?Array.isArray(e)?e:e.split(","):[];T(o.value,t,!0),l.value.length&&T(l.value,t)}),{immediate:!0}),(i,c)=>{const d=n(e.resolveDynamicComponent("uni-icons"),W),g=n(e.resolveDynamicComponent("uni-easyinput"),Za),w=n(e.resolveDynamicComponent("uni-popup"),Ge);return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("view",{class:e.normalizeClass(["select-list",{disabled:t.disabled},{active:v.value.length}]),onClick:k},[e.createElementVNode("view",{class:"left"},[v.value.length?(e.openBlock(),e.createElementBlock("view",{key:0,class:"select-items"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u.value,(n=>(e.openBlock(),e.createElementBlock("view",{class:"select-item",key:n[t.dataValue]},[e.createElementVNode("view",{class:"name"},[e.createElementVNode("text",null,e.toDisplayString(n[t.dataLabel]),1)]),t.disabled||n.disabled||!t.deleteSource?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("view",{key:0,class:"close",onClick:e.withModifiers((e=>function(e){if(h.value=!1,a.linkage)I(e,!1),s("removeSelect",e);else{const t=v.value.filter((t=>t!==e[a.dataValue].toString()));s("removeSelect",e),s("update:modelValue",Qa(a.modelValue)?t.join(","):t)}}(n)),["stop"])},[e.createVNode(d,{type:"closeempty",size:"16",color:"#999"})],8,["onClick"]))])))),128))])):(e.openBlock(),e.createElementBlock("view",{key:1,class:"no-data"},[e.createElementVNode("text",null,e.toDisplayString(t.placeholder),1)]))]),e.createElementVNode("view",null,[v.value.length&&t.clearable?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(d,{key:0,type:"bottom",color:"#333333"})),e.createElementVNode("view",{onClick:c[0]||(c[0]=e.withModifiers((()=>{}),["stop"]))},[v.value.length&&t.clearable?(e.openBlock(),e.createBlock(d,{key:0,type:"clear",size:"24",color:"#c0c4cc",onClick:M})):e.createCommentVNode("",!0)])])],2),e.createVNode(w,{ref_key:"popup",ref:m,animation:t.animation,"is-mask-click":i.isMaskClick,"mask-background-color":i.maskBackgroundColor,"background-color":i.backgroundColor,"safe-area":t.safeArea,type:"bottom",onChange:S,onMaskClick:b},{default:e.withCtx((()=>[e.createElementVNode("view",{class:"popup-content",style:e.normalizeStyle({height:r.value})},[e.createElementVNode("view",{class:"title"},[t.mutiple&&t.canSelectAll?(e.openBlock(),e.createElementBlock("view",{key:0,class:"left",onClick:A},[e.createElementVNode("text",null,e.toDisplayString(h.value?"取消全选":"全选"),1)])):e.createCommentVNode("",!0),e.createElementVNode("view",{class:"center"},[e.createElementVNode("text",null,e.toDisplayString(t.placeholder),1)]),e.createElementVNode("view",{class:"right",style:e.normalizeStyle({color:t.confirmTextColor}),onClick:_},[e.createElementVNode("text",null,e.toDisplayString(t.confirmText),1)],4)]),t.search?(e.openBlock(),e.createElementBlock("view",{key:0,class:"search-box"},[e.createVNode(g,{maxlength:-1,prefixIcon:"search",placeholder:"搜索",modelValue:f.value,"onUpdate:modelValue":c[1]||(c[1]=e=>f.value=e),"confirm-type":"search",onConfirm:c[2]||(c[2]=e=>y(!1)),onClear:c[3]||(c[3]=e=>y(!0))},null,8,["modelValue"]),e.createElementVNode("button",{type:"primary",size:"mini",class:"search-btn",onClick:c[4]||(c[4]=e=>y(!1))},"搜索")])):e.createCommentVNode("",!0),o.value.length?(e.openBlock(),e.createElementBlock("view",{key:1,class:"select-content"},[e.createElementVNode("scroll-view",{class:"scroll-view-box","scroll-top":p.value,"scroll-y":"true",onTouchmove:c[5]||(c[5]=e.withModifiers((()=>{}),["stop"]))},[l.value.length?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("view",{key:0,class:"no-data center"},[e.createElementVNode("text",null,"暂无数据")])),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.value,(n=>(e.openBlock(),e.createBlock(es,{key:n[t.dataValue],node:n,dataLabel:t.dataLabel,dataValue:t.dataValue,dataChildren:t.dataChildren,choseParent:t.choseParent,border:t.border,linkage:t.linkage,lazyLoadChildren:t.lazyLoadChildren},null,8,["node","dataLabel","dataValue","dataChildren","choseParent","border","linkage","lazyLoadChildren"])))),128)),e.createElementVNode("view",{class:"sentry"})],40,["scroll-top"])])):(e.openBlock(),e.createElementBlock("view",{key:2,class:"no-data center"},[e.createElementVNode("text",null,"暂无数据")]))],4)])),_:1},8,["animation","is-mask-click","mask-background-color","background-color","safe-area"])],64)}}}),[["__scopeId","data-v-0768d7c7"]]),ns={__name:"application",setup(i){const a=H(),{proxy:s}=e.getCurrentInstance(),o=e.ref(a.userinfo.realname),l=e.ref(""),c=e.ref(a.userinfo.phone),d=e.ref(""),h=e.ref([]),p=e.ref(""),f=e=>{p.value=e.detail.value},m=e.ref(""),g=e=>{m.value=e.detail.value},v=e.ref([]),y=e.ref(null),w=e.ref(!0),k=e.ref(""),_=e.ref(""),S=e.ref(""),b=e.ref([]),E={width:64,height:64,border:{color:"#dce7e1",width:2,style:"dashed",radius:"2px"}};r((()=>{N()}));const x=e=>{e.tempFilePaths;for(let t=0;t{b.value.push(JSON.parse(e.data).message)}})}},D=()=>{return c.value.trim()?d.value?p.value?m.value?w.value&&null==y.value?s.$toast("请选择审批领导"):_.value.trim()?S.value.trim()?void(e={username:a.userinfo.username,phone:c.value,type:d.value,begintime:p.value,endtime:m.value,examineleader:v.value[y.value].username,address:_.value,reason:S.value,zwmc:k.value,path:b.value.toString()},u({url:"/CxcQxj/cxcQxj/add",method:"post",data:e})).then((e=>{e.success?T(e.message):s.$toast(e.message)})):s.$toast("请输入请假事由"):s.$toast("请输入请假地点"):s.$toast("请选择结束时间"):s.$toast("请选择开始时间"):s.$toast("请选择请假类型"):s.$toast("请输入联系方式");var e},T=e=>{var n;(n={flowCode:"dev_cxc_qxj",id:e,formUrl:"modules/qxj/modules/CxcQxjBpmModel",formUrlMobile:"leaveApplication"},u({url:"/process/extActProcess/startMutilProcess",method:"post",data:n})).then((e=>{e.success&&(s.$toast(e.message),setTimeout((()=>{uni.navigateBack()}),2e3))})).catch((e=>{t("log","at pages/leave/application.vue:235",e)}))},N=()=>{var e,t,n;(e="1838487445813645313",u({url:"/sys/category/findtree",method:"get",data:{pid:e}})).then((e=>{e.success&&(h.value=e.result)})),(t=a.userinfo.orgCode,u({url:"/sys/sysDepart/queryDepNameByDepCode",method:"get",data:{code:t}})).then((e=>{e.success&&(l.value=e.result)})),(n=a.userinfo.username,u({url:"/CxcQxj/cxcQxj/queryZwmcByUsername",method:"get",data:{username:n}})).then((e=>{e.success?(v.value=e.result.list,k.value=e.result.zwmc,"单位专家"!=k.value&&"正职"!=k.value&&"高级主管"!=k.value||(w.value=!1)):s.$toast(e.message)}))},C=e=>{y.value=e.detail.value};return(t,i)=>{const s=n(e.resolveDynamicComponent("uni-icons"),W),r=n(e.resolveDynamicComponent("uni-file-picker"),Ya);return e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass({gray:1==e.unref(a).isgray})},[e.createElementVNode("view",{class:"form"},[e.createElementVNode("view",{class:"f-row aic jcb input_box"},[e.createElementVNode("view",{class:"title"}," 职工姓名: "),e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":i[0]||(i[0]=e=>o.value=e),disabled:""},null,512),[[e.vModelText,o.value]])]),e.createElementVNode("view",{class:"f-row aic jcb input_box"},[e.createElementVNode("view",{class:"title"}," 工作单位: "),e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":i[1]||(i[1]=e=>l.value=e),disabled:""},null,512),[[e.vModelText,l.value]])]),e.createElementVNode("view",{class:"f-row aic jcb input_box"},[e.createElementVNode("view",{class:"title"}," 联系方式: "),e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":i[2]||(i[2]=e=>c.value=e)},null,512),[[e.vModelText,c.value]])]),e.createElementVNode("view",{class:"f-row aic jcb input_box"},[e.createElementVNode("view",{class:"title"}," 请假类型: "),e.createVNode(ts,{dataSource:h.value,modelValue:d.value,"onUpdate:modelValue":i[3]||(i[3]=e=>d.value=e),dataValue:"name"},null,8,["dataSource","modelValue"])]),e.createElementVNode("picker",{mode:"date",fields:"day",onChange:f,value:p.value},[e.createElementVNode("view",{class:"f-row aic jcb box"},[e.createElementVNode("view",{class:"title"}," 开始时间: "),e.createElementVNode("view",{class:"f-row aic"},[e.createElementVNode("view",{class:e.normalizeClass([{choose:!p.value},{choosed:p.value}])},e.toDisplayString(p.value?p.value:"请选择"),3),e.createVNode(s,{type:"bottom",color:"#333333"})])])],40,["value"]),e.createElementVNode("picker",{mode:"date",fields:"day",onChange:g,value:m.value},[e.createElementVNode("view",{class:"f-row aic jcb box"},[e.createElementVNode("view",{class:"title"}," 截止时间: "),e.createElementVNode("view",{class:"f-row aic"},[e.createElementVNode("view",{class:e.normalizeClass([{choose:!m.value},{choosed:m.value}])},e.toDisplayString(m.value?m.value:"请选择"),3),e.createVNode(s,{type:"bottom",color:"#333333"})])])],40,["value"]),w.value?(e.openBlock(),e.createElementBlock("picker",{key:0,onChange:C,value:y.value,range:v.value,"range-key":"realname"},[e.createElementVNode("view",{class:"f-row aic jcb box"},[e.createElementVNode("view",{class:"title"}," 审批领导: "),e.createElementVNode("view",{class:"f-row aic"},[e.createElementVNode("view",{class:e.normalizeClass([{choose:null==y.value},{choosed:null!=y.value}])},e.toDisplayString(null!=y.value?v.value[y.value].realname:"请选择"),3),e.createVNode(s,{type:"bottom",color:"#333333"})])])],40,["value","range"])):e.createCommentVNode("",!0),e.createElementVNode("view",{class:"f-row aic jcb input_box"},[e.createElementVNode("view",{class:"title"}," 请假地点: "),e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":i[4]||(i[4]=e=>_.value=e),placeholder:"请输入","nplaceholder-style":"font-size: 28rpx;color: #999999;"},null,512),[[e.vModelText,_.value]])]),e.createElementVNode("view",{class:"f-row aic jcb input_box"},[e.createElementVNode("view",{class:"title"}," 请假事由: "),e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":i[5]||(i[5]=e=>S.value=e),placeholder:"请输入","placeholder-style":"font-size: 28rpx;color: #999999;"},null,512),[[e.vModelText,S.value]])]),e.createElementVNode("view",{class:"f-row aic jcb input_box"},[e.createElementVNode("view",{class:"title"}," 上传附件: "),e.createVNode(r,{onSelect:x,"image-styles":E})])]),e.createElementVNode("view",{class:"btn f-col aic"},[e.createElementVNode("view",{onClick:D}," 提交 ")])],2)}}},is=q(ns,[["__scopeId","data-v-6e3acbe9"]]),as=q({__name:"index",setup(t){const i=H(),a=()=>{uni.navigateBack()};return(t,s)=>{const r=n(e.resolveDynamicComponent("uni-icons"),W);return e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass(["content",{gray:1==e.unref(i).isgray}])},[e.createVNode(xe,null,{default:e.withCtx((()=>[e.createElementVNode("view",{class:"nav_box f-row aic"},[e.createElementVNode("view",{class:"back",onClick:a},[e.createVNode(r,{type:"left",size:"20",color:"#fff"})]),e.createElementVNode("view",{class:"avatar"},[e.createElementVNode("image",{src:e.unref(i).userinfo.avatar,mode:""},null,8,["src"])]),e.createElementVNode("view",{class:"f-col"},[e.createElementVNode("view",{class:"name"},e.toDisplayString(e.unref(i).userinfo.realname),1),e.createElementVNode("view",{class:"position"},e.toDisplayString(e.unref(i).role),1)])])])),_:1}),e.createElementVNode("view",{class:"time_box f-row aic jcb"},[e.createElementVNode("view",{class:"box"},[e.createElementVNode("view",{class:"time f-row aic"},[e.createElementVNode("view",{class:""}," 上班 9:30 "),e.createElementVNode("image",{src:"/static/checkin/chenggong.png",mode:""})]),e.createElementVNode("view",{class:"text"}," 重庆市渝北区上弯路 ")]),e.createElementVNode("view",{class:"box"},[e.createElementVNode("view",{class:"time f-row aic"},[e.createElementVNode("view",{class:""}," 下班 16:30 "),e.createElementVNode("image",{src:"/static/checkin/shibai.png",mode:""})]),e.createElementVNode("view",{class:"text"}," 打卡已超时 ")])]),e.createElementVNode("view",{class:"checkin"},[e.createElementVNode("view",{class:"f-col aic"},[e.createElementVNode("view",{class:"status f-col aic"},[e.createElementVNode("image",{src:"/static/checkin/position4.png",mode:""}),e.createElementVNode("text",null,"打卡失败")]),e.createElementVNode("view",{class:e.normalizeClass(["circle","f-col","aic","out","check","success","fail"])},[e.createElementVNode("view",{class:"title"}," 上班打卡 "),e.createElementVNode("view",{class:"time"}," 9:00 "),e.createElementVNode("view",{class:"ontime"}," 已超时 ")])])])],2)}}},[["__scopeId","data-v-f70ab478"]]),ss=q({__name:"useredit",setup(i){const a=H(),s=()=>{uni.chooseImage({count:1,success:e=>{const n=e.tempFilePaths,i="用户头像/"+a.userinfo.realname;uni.uploadFile({url:"https://36.112.48.190/jeecg-boot/sys/common/upload",filePath:n[0],name:"file",formData:{appPath:i},success:e=>{var n;uni.showLoading({title:"上传中..."}),o.avatar=JSON.parse(e.data).message,(n={avatar:o.avatar,id:a.userinfo.id},u({url:"/sys/user/editApp",method:"PUT",data:n})).then((e=>{e&&uni.showToast({title:e,icon:"success",duration:2e3})})).catch((e=>{t("log","at pages/useredit/useredit.vue:97",e)}))},fail(e){t("log","at pages/useredit/useredit.vue:101","图片上传出错",e)}})}})},o=e.reactive({avatar:"",realname:"",phone:""}),l=()=>{uni.showModal({title:"退出登录",content:"您确认要退出登录吗?",success(e){e.confirm&&(uni.removeStorageSync("token"),uni.removeStorageSync("user"),uni.removeStorageSync("role"),uni.removeStorageSync("logintime"),uni.reLaunch({url:"/pages/login/login"}))}})};return r((()=>{uni.setNavigationBarColor({frontColor:"#ffffff",backgroundColor:"#bebebe"})})),(t,i)=>{const r=n(e.resolveDynamicComponent("uni-icons"),W);return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("view",{class:e.normalizeClass(["content",{gray:1==e.unref(a).isgray}])},[e.createElementVNode("view",{class:"box"},[e.createElementVNode("view",null,"头像"),e.createElementVNode("view",{style:{display:"flex","align-items":"center"}},[e.createElementVNode("button",{class:"head-btn",onClick:s},[o.avatar?(e.openBlock(),e.createElementBlock("image",{key:1,class:"head-img",src:e.unref(Re)(o.avatar)},null,8,["src"])):(e.openBlock(),e.createElementBlock("image",{key:0,class:"head-img",src:e.unref(Re)(e.unref(a).userinfo.avatar),mode:""},null,8,["src"]))]),e.createVNode(r,{type:"right",size:"24"})])]),e.createElementVNode("view",{class:"box",style:{"padding-top":"30rpx","padding-bottom":"30rpx"}},[e.createElementVNode("view",null,"姓名"),e.withDirectives(e.createElementVNode("input",{disabled:"",style:{"text-align":"right"},type:"nickname","placeholder-style":"font-size: 32rpx;color: #999999;","onUpdate:modelValue":i[0]||(i[0]=t=>e.unref(a).userinfo.realname=t),placeholder:"请输入姓名"},null,512),[[e.vModelText,e.unref(a).userinfo.realname]])]),e.createElementVNode("view",{class:"box",style:{"padding-top":"30rpx","padding-bottom":"30rpx"}},[e.createElementVNode("view",null,"手机号"),e.withDirectives(e.createElementVNode("input",{disabled:"",style:{"text-align":"right"},type:"nickname","onUpdate:modelValue":i[1]||(i[1]=t=>e.unref(a).userinfo.phone=t),placeholder:"请输入手机号","placeholder-style":"font-size: 32rpx;color: #999999;"},null,512),[[e.vModelText,e.unref(a).userinfo.phone]])]),e.createElementVNode("view",{class:"box",style:{"padding-top":"30rpx","padding-bottom":"30rpx"}},[e.createElementVNode("view",null,"劳动合同号"),e.withDirectives(e.createElementVNode("input",{style:{"text-align":"right"},type:"nickname",disabled:"","onUpdate:modelValue":i[2]||(i[2]=t=>e.unref(a).userinfo.workNo=t),placeholder:"请输入劳动合同号","placeholder-style":"font-size: 32rpx;color: #999999;"},null,512),[[e.vModelText,e.unref(a).userinfo.workNo]])])],2),e.createElementVNode("view",{class:"line"}),e.createElementVNode("view",{class:"btn",onClick:l}," 退出登录 ")],64)}}},[["__scopeId","data-v-3dbb4317"]]),rs=q({__name:"address",setup(t){const n=H();return(t,i)=>(e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass(["content",{gray:1==e.unref(n).isgray}])},[e.createElementVNode("view",{class:"list"},[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(2,((t,n)=>e.createElementVNode("view",{class:"item",key:n},[e.createElementVNode("view",{class:"province f-row aic"},[e.createElementVNode("view",{class:""}," 浙江省,杭州市 "),e.createElementVNode("image",{src:"/static/my/default.png",mode:""})]),e.createElementVNode("view",{class:"address f-row jcb"},[e.createElementVNode("view",{class:""}," 重庆 重庆市 渝北区 龙溪街道花卉园东路黄金 宝高级住宅小区 "),e.createElementVNode("image",{src:"/static/my/edit.png",mode:""})]),e.createElementVNode("view",{class:"set f-row aic jcb"},[e.createElementVNode("view",{class:"f-row aic"},[e.createElementVNode("image",{src:"/static/login/nocheck.png",mode:""}),e.createTextVNode(" 设为默认地址 ")]),e.createElementVNode("view",{class:""}," 删除 ")])]))),64))]),e.createElementVNode("view",{class:"btn f-col aic"},[e.createElementVNode("view",{class:"",onClick:i[0]||(i[0]=e=>{var t;Ne(t="/pages/useredit/add_address",(()=>{uni.navigateTo({url:t})}))})}," +添加收货地址 ")])],2))}},[["__scopeId","data-v-837db36d"]]),os=q({__name:"add_address",setup(t){const n=H();return(t,i)=>(e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass(["content",{gray:1==e.unref(n).isgray}])},[e.createElementVNode("view",{class:"area f-row jcb"},[e.createElementVNode("view",{class:"title topic"}," 所在地区 "),e.createElementVNode("input",{type:"text",placeholder:"省、市、区、街道"})]),e.createElementVNode("view",{class:"area f-row jcb"},[e.createElementVNode("view",{class:"title topic"}," 详细地址 "),e.createElementVNode("textarea",{placeholder:"小区楼栋/乡村名称"})]),e.createElementVNode("view",{class:"area f-row jcb"},[e.createElementVNode("view",{class:"title"}," 设为默认地址 "),e.createElementVNode("image",{src:"/static/login/checked.png",mode:""})]),e.createElementVNode("view",{class:"btn f-col aic"},[e.createElementVNode("view",{class:""}," 保存 ")])],2))}},[["__scopeId","data-v-c71fcfcd"]]),ls=q({__name:"addressbook",setup(t){const n=H();return(t,i)=>(e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass({gray:1==e.unref(n).isgray})},[e.createElementVNode("view",{class:"list"},[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(4,((t,n)=>e.createElementVNode("view",{class:"item f-row aic jcb",key:n},[e.createElementVNode("view",{class:"user f-row aic"},[e.createElementVNode("image",{src:"",mode:""}),e.createElementVNode("view",{class:"name_job"},[e.createElementVNode("view",{class:"name"}," 我是晴天 "),e.createElementVNode("view",{class:"job"}," 销售部-销售总监 ")])]),e.createElementVNode("view",{class:"btn"}," 电话联系 ")]))),64))])],2))}},[["__scopeId","data-v-e9ce91fd"]]),cs=q({__name:"safeCom",setup:t=>(t,n)=>(e.openBlock(),e.createElementBlock("view",{class:"list f-row aic jcb"},[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(20,((t,i)=>e.createElementVNode("view",{class:"item",key:i,onClick:n[0]||(n[0]=e=>{var t;Ne(t="/pages/safe/detail",(()=>{uni.navigateTo({url:t})}))})},[e.createElementVNode("view",{class:""},[e.createElementVNode("image",{src:"",mode:""})]),e.createElementVNode("view",{class:"text"}," 五月天“突然好想你”线上演唱会精彩回放 ")]))),64))]))},[["__scopeId","data-v-bc41e6b3"]]),us=q({__name:"manage",setup(t){const i=H(),a=e.ref(!0),s=e.ref("");return(t,r)=>{const o=n(e.resolveDynamicComponent("uni-icons"),W);return e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass(["content",{gray:1==e.unref(i).isgray}])},[e.createVNode(xe,null,{default:e.withCtx((()=>[e.createElementVNode("view",{class:"nav_box f-row aic jcb"},[e.createElementVNode("view",{class:"back f-row aic",onClick:r[0]||(r[0]=(...e)=>t.back&&t.back(...e))},[e.createVNode(o,{type:"left",size:"20",color:"#fff"})]),e.createElementVNode("view",{class:"search f-row aic"},[e.withDirectives(e.createElementVNode("input",{type:"text","onUpdate:modelValue":r[1]||(r[1]=e=>s.value=e),onConfirm:r[2]||(r[2]=(...e)=>t.search&&t.search(...e)),onBlur:r[3]||(r[3]=e=>a.value=!s.value),onFocus:r[4]||(r[4]=e=>a.value=!1)},null,544),[[e.vModelText,s.value]]),a.value?(e.openBlock(),e.createElementBlock("view",{key:0,class:"f-row aic"},[e.createElementVNode("image",{src:"/static/search.png",mode:""}),e.createElementVNode("text",null,"搜索")])):e.createCommentVNode("",!0)])])])),_:1}),e.createElementVNode("view",{class:""},[e.createVNode(cs)])],2)}}},[["__scopeId","data-v-02e8f217"]]),ds=q({__name:"dataCom",props:{title:{type:String,default:""},list:{type:Array,default:function(){return[]}}},setup(t){e.useCssVars((e=>({"09ebbe2f":s.value})));const i=t,a=e.ref(!1),s=e.ref(null);return e.watch((()=>i.list),(()=>{e.nextTick((()=>{uni.createSelectorQuery().select(".data_box").boundingClientRect((e=>{s.value=((null==e?void 0:e.height)||0)+"px"})).exec()}))}),{immediate:!0}),(i,s)=>{const r=n(e.resolveDynamicComponent("uni-icons"),W);return e.openBlock(),e.createElementBlock("view",{class:""},[e.createElementVNode("view",{class:"info"},[e.createElementVNode("view",{class:"item_box"},[e.createElementVNode("view",{class:"item"},[e.createElementVNode("view",{class:"title_box f-row aic jcb"},[e.createElementVNode("view",{class:"title"},e.toDisplayString(t.title),1),t.list.length>6?(e.openBlock(),e.createElementBlock("view",{key:0,class:"f-row aic more",onClick:s[0]||(s[0]=e=>a.value=!a.value)},[e.createElementVNode("text",null,e.toDisplayString(a.value?"收起":"展开"),1),a.value?(e.openBlock(),e.createBlock(r,{key:1,type:"up",color:"#999999"})):(e.openBlock(),e.createBlock(r,{key:0,type:"down",color:"#999999"}))])):e.createCommentVNode("",!0)]),e.createElementVNode("view",{class:e.normalizeClass(["data_wrapper",{close:t.list.length>6&&a.value}])},[e.createElementVNode("view",{class:"data_box f-row aic"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.list,((t,n)=>(e.openBlock(),e.createElementBlock("view",{class:"data f-col aic"},[e.createElementVNode("view",{class:""},e.toDisplayString(null==t?void 0:t.dailyVolume),1),e.createElementVNode("text",null,e.toDisplayString(t.gas),1)])))),256))])],2)])])])])}}},[["__scopeId","data-v-40acdf41"]]),hs={__name:"index",setup(t){const n=H(),i=e.ref([]),a=e.ref([]);return r((e=>{i.value=JSON.parse(e.shishi),a.value=JSON.parse(e.product)})),(t,s)=>(e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass(["f-col","aic",{gray:1==e.unref(n).isgray}])},[e.createVNode(ds,{title:"实时输差",list:i.value},null,8,["list"]),e.createVNode(ds,{title:"偏远计量点",list:i.value},null,8,["list"]),e.createVNode(ds,{title:"生产实时数据",list:a.value},null,8,["list"])],2))}},ps={en:{"uni-load-more.contentdown":"Pull up to show more","uni-load-more.contentrefresh":"loading...","uni-load-more.contentnomore":"No more data"},"zh-Hans":{"uni-load-more.contentdown":"上拉显示更多","uni-load-more.contentrefresh":"正在加载...","uni-load-more.contentnomore":"没有更多数据了"},"zh-Hant":{"uni-load-more.contentdown":"上拉顯示更多","uni-load-more.contentrefresh":"正在加載...","uni-load-more.contentnomore":"沒有更多數據了"}};let fs;setTimeout((()=>{fs=uni.getSystemInfoSync().platform}),16);const{t:ms}=ge(ps);const gs=q({name:"UniLoadMore",emits:["clickLoadMore"],props:{status:{type:String,default:"more"},showIcon:{type:Boolean,default:!0},iconType:{type:String,default:"auto"},iconSize:{type:Number,default:24},color:{type:String,default:"#777777"},contentText:{type:Object,default:()=>({contentdown:"",contentrefresh:"",contentnomore:""})},showText:{type:Boolean,default:!0}},data:()=>({webviewHide:!1,platform:fs,imgBase64:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyJpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNiAoV2luZG93cykiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6QzlBMzU3OTlEOUM0MTFFOUI0NTZDNERBQURBQzI4RkUiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6QzlBMzU3OUFEOUM0MTFFOUI0NTZDNERBQURBQzI4RkUiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDpDOUEzNTc5N0Q5QzQxMUU5QjQ1NkM0REFBREFDMjhGRSIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDpDOUEzNTc5OEQ5QzQxMUU5QjQ1NkM0REFBREFDMjhGRSIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/Pt+ALSwAAA6CSURBVHja1FsLkFZVHb98LM+F5bHL8khA1iSeiyQBCRM+YGqKUnnJTDLGI0BGZlKDIU2MMglUiDApEZvSsZnQtBRJtKwQNKQMFYeRDR10WOLd8ljYXdh+v8v5fR3Od+797t1dnOnO/Ofce77z+J//+b/P+ZqtXbs2sJ9MJhNUV1cHJ06cCJo3bx7EPc2aNcvpy7pWrVoF+/fvDyoqKoI2bdoE9fX1F7TjN8a+EXBn/fkfvw942Tf+wYMHg9mzZwfjxo0LDhw4EPa1x2MbFw/fOGfPng1qa2tzcCkILsLDydq2bRsunpOTMM7TD/W/tZDZhPdeKD+yGxHhdu3aBV27dg3OnDlzMVANMheLAO3btw8KCwuDmpoaX5OxbgUIMEq7K8IcPnw4KCsrC/r37x8cP378/4cAXAB3vqSkJMuiDhTkw+XcuXNhOWbMmKBly5YhUT8xArhyFvP0BfwRsAuwxJZJsm/nzp2DTp06he/OU+cZ64K6o0ePBkOHDg2GDx8e6gEbJ5Q/NHNuAJQ1hgBeHUDlR7nVTkY8rQAvAi4z34vR/mPs1FoRsaCgIJThI0eOBC1atEiFGGV+5MiRoS45efJkqFjJFXV1dQuA012m2WcwTw98fy6CqBdsaiIO4CScrGPHjvk4odhavPquRtFWXEC25VgkREKOCh/qDSq+vn37htzD/mZTOmOc5U7zKzBPEedygWshcDyWvs30igAbU+6oyMgJBCFhwQE0fccxN60Ay9iebbjoDh06hMowjQxT4fXq1SskArmHZpkArvixp/kWzHdMeArExSJEaiXIjjRjRJ4DaAGWpibLzXN3Fm1vA5teBgh3j1Rv3bp1YgKwPdmf2p9zcyNYYgPKMfY0T5f5nNYdw158nJ8QawW4CLKwiOBSEgO/hok2eBydR+3dYH+PLxA5J8Vv0KBBwenTp0P2JWAx6+yFEBfs8lMY+y0SWMBNI9E4ThKi58VKTg3FQZS1RQF1cz27eC0QHMu+3E0SkUowjhVt5VdaWhp07949ZHv2Qd1EjDXM2cla1M0nl3GxAs3J9yREzyTdFVKVFOaE9qRA8GM0WebRuo9JGZKA7Mv2SeS/Z8+eoQ9BArMfFrLGo6jvxbhHbJZnKX2Rzz1O7QhJJ9Cs2ZMaWIyq/zhdeqPNfIoHd58clIQD+JSXl4dKlyIAuBdVXZwFVWKspSSoxE++h8x4k3uCnEhE4I5KwRiFWGOU0QWKiCYLbdoRMRKAu2kQ9vkfLU6dOhX06NEjlH+yMRZSinnuyWnYosVcji8CEA/6Cg2JF+IIUBqnGKUTCNwtwBN4f89RiK1R96DEgO2o0NDmtEdvVFdVVYV+P3UAPUEs6GFwV3PHmXkD4vh74iDFJysVI/MlaQhwKeBNTLYX5VuA8T4/gZxA4MRGFxDB6R7OmYPfyykGRJbyie+XnGYnQIC/coH9+vULiYrxrkL9ZA9+0ykaHIfEpM7ge8TiJ2CsHYwyMfafAF1yCGBHYIbCVDjDjKt7BeB51D+LgQa6OkG7IDYEEtvQ7lnXLKLtLdLuJBpE4gPUXcW2+PkZwOex+4cGDhwYDBkyRL7/HFcEwUGPo/8uWRUpYnfxGHco8HkewLHLyYmAawAPuIFZxhOpDfJQ8gbUv41yORAptMWBNr6oqMhWird5+u+iHmBb2nhjDV7HWBNQTgK8y11l5NetWzc5ULscAtSj7nbNI0skhWeUZCc0W4nyH/jO4Vz0u1IeYhbk4AiwM6tjxIWByHsoZ9qcIBPJd/y+DwPfBESOmCa/QF3WiZHucLlEDpNxcNhmheEOPgdQNx6/VZFQzFZ5TN08AHXQt2Ii3EdyFuUsPtTcGPhW5iMiCNELvz+Gdn9huG4HUJaW/w3g0wxV0XaG7arG2WeKiUWYM4Y7GO5ezshTARbbWGw/DvXkpp/ivVvE0JVoMxN4rpGzJMhE5Pl+xlATsDIqikP9F9D2z3h9nOksEUFhK+qO4rcPkoalMQ/HqJLIyb3F3JdjrCcw1yZ8joyJLR5gCo54etlag7qIoeNh1N1BRYj3DTFJ0elotxPlVzkGuYAmL0VSJVGAJA41c4Z6A3BzTLfn0HYwYKEI6CUAMzZEWvLsIcQOo1AmmyyM72nHJCfYsogflGV6jEk9vyQZXSuq6w4c16NsGcGZbwOPr+H1RkOk2LEzjNepxQkihHSCQ4ynAYNRx2zMKV92CQMWqj8J0BRE8EShxRFN6YrfCRhC0x3r/Zm4IbQCcmJoV0kMamllccR6FjHqUC5F2R/wS2dcymOlfAKOS4KmzQb5cpNC2MC7JhVn5wjXoJ44rYhLh8n0eXOCorJxa7POjbSlCGVczr34/RsAmrcvo9s+wGp3tzVhntxiXiJ4nvEYb4FJkf0O8HocAePmLvCxnL0AORraVekJk6TYjDabRVXfRE2lCN1h6ZQRN1+InUbsCpKwoBZHh0dODN9JBCUffItXxEavTQkUtnfTVAplCWL3JISz29h4NjotnuSsQKJCk8dF+kJR6RARjrqFVmfPnj3ZbK8cIJ0msd6jgHPGtfVTQ8VLmlvh4mct9sobRmPic0DyDQQnx/NlfYUgyz59+oScsH379pAwXABD32nTpoUHIToESeI5mnbE/UqDdyLcafEBf2MCqgC7NwxIbMREJQ0g4D4sfJwnD+AmRrII05cfMWJE+L1169bQr+fip06dGp4oJ83lmYd5wj/EmMa4TaHivo4EeCguYZBnkB5g2aWA69OIEnUHOaGysjIYMGBAMGnSpODYsWPZwCpFmm4lNq+4gSLQA7jcX8DwtjEyRC8wjabnXEx9kfWnTJkSJkAo90xpJVV+FmcVNeYAF5zWngS4C4O91MBxmAv8blLEpbjI5sz9MTdAhcgkCT1RO8mZkAjfiYpTEvStAS53Uw1vAiUGgZ3GpuQEYvoiBqlIan7kSDHnTwJQFNiPu0+5VxCVYhcZIjNrdXUDdp+Eq5AZ3Gkg8QAyVZRZIk4Tl4QAbF9cXJxNYZMAtAokgs4BrNxEpCtteXg7DDTMDKYNSuQdKsnJBek7HxewvxaosWxLYXtw+cJp18217wql4aKCfBNoEu0O5VU+PhctJ0YeXD4C6JQpyrlpSLTojpGGGN5YwNziChdIZLk4lvLcFJ9jMX3QdiImY9bmGQU+TRUL5CHITTRlgF8D9ouD1MfmLoEPl5xokIumZ2cfgMpHt47IW9N64Hsh7wQYYjyIugWuF5fCqYncXRd5vPMWyizzvhi/32+nvG0dZc9vR6fZOu0md5e+uC408FvKSIOZwXlGvxPv95izA2Vtvg1xKFWARI+vMX66HUhpQQb643uW1bSjuTWyw2SBvDrBvjFic1eGGlz5esq3ko9uSIlBRqPuFcCv8F4WIcN12nVaBd0SaYwI6PDDImR11JkqgHcPmQssjxIn6bUshygDFJUTxPMpHk+jfjPgupgdnYV2R/g7xSjtpah8RJBewhwf0gGK6XI92u4wXFEU40afJ4DN4h5LcAd+40HI3JgJecuT0c062W0i2hQJUTcxan3/CMW1PF2K6bbA+Daz4xRs1D3Br1Cm0OihKCqizW78/nXAF/G5TXrEcVzaNMH6CyMswqsAHqDyDLEyou8lwOXnKF8DjI6KjV3KzMBiXkDH8ij/H214J5A596ekrZ3F0zXlWeL7+P5eUrNo3/QwC15uxthuzidy7DzKRwEDaAViiDgKbTbz7CJnzo0bN7pIfIiid8SuPwn25o3QCmpnyjlZkyxPP8EomCJzrGb7GJMx7tNsq4MT2xMUYaiErZOluTzKsnz3gwCeCZyVRZJfYplNEokEjwrPtxlxjeYAk+F1F74VAzPxQRNYYdtpOUvWs8J1sGhBJMNsb7igN8plJs1eSmLIhLKE4rvaCX27gOhLpLOsIzJ7qn/i+wZzcvSOZ23/du8TZjwV8zHIXoP4R3ifBxiFz1dcVpa3aPntPE+c6TmIWE9EtcMmAcPdWAhYhAXxcLOQi9L1WhD1Sc8p1d2oL7XGiRKp8F4A2i8K/nfI+y/gsTDJ/YC/8+AD5Uh04KHiGl+cIFPnBDDrPMjwRGkLXyxO4VGbfQWnDH2v0bVWE3C9QOXlepbgjEfIJQI6XDG3z5ahD9cw2pS78ipB85wyScNTvsVzlzzhL8/jRrnmVjfFJK/m3m4nj9vbgQTguT8XZTjsm672R5uJKEaQmBI/c58gyus8ZDagLpEVSJBIyHp4jn++xqPV71OgQgJYEWOtZ/haxRtKmWOBu8xdBLftWltsY84zE6WIEy/eIOWL+BaayMx+KHtL7EAkqdNDLiEXmEMUHniedtJqg9HmZtfvt26vNi0BdG3Ft3g8ZOf7PAu59TxtzivLNIekyi+wD1i8CuUiD9FXAa8C+/xS3JPmZnomyc7H+fb4/Se0bk41Fel621r4cgVxbq91V4jVqwB7HTe2M7jgB+QWHavZkDRPmZcASoZEmBx6i75bGjPcMdL4/VKGFAGWZkGzPG0XAbdL9A81G5LOmUnC9hHKJeO7dcUMjblSl12867ElFTtaGl20xvvLGPdVz/8TVuU7y0x1PG7vtNg24oz9Uo/Z412++VFWI7Fcog9tu9Lm6gvRmIPv9x1xmQAu6RDkXtbOtlGEmpgD5Nvnyc0dcv0EE6cfdi1HmhMf9wDF3k3gtRvEedhxjpgfqPb9PU9iEJHnyOUA7bQUXh6kq/D7l2iTjWv7XOD530BDr8jIrus+srXjt4MzumJMHuTsBa63YKE1+RR5lBjEikCCnWKWiHdzOgKO+nRIBAF88za/IFmJ3eMZov4CYxGBabcpGL8EYx+SeMXJeRwHNsV/h+vdxeuhEpN3ZyNY78Gm2fknJxVGhyjixPiQvVkNzT1elD9Py/aTAL64Hb9vcYmC9zfdXdT/C1LeGbg4rnBaAihDFJH12W5ulfNCNe/xTsP3bp8ikzJs5BF+5PNfAQYAPaseTdsEcaYAAAAASUVORK5CYII="}),computed:{iconSnowWidth(){return 2*(Math.floor(this.iconSize/24)||1)},contentdownText(){return this.contentText.contentdown||ms("uni-load-more.contentdown")},contentrefreshText(){return this.contentText.contentrefresh||ms("uni-load-more.contentrefresh")},contentnomoreText(){return this.contentText.contentnomore||ms("uni-load-more.contentnomore")}},mounted(){var e=getCurrentPages(),t=e[e.length-1].$getAppWebview();t.addEventListener("hide",(()=>{this.webviewHide=!0})),t.addEventListener("show",(()=>{this.webviewHide=!1}))},methods:{onClick(){this.$emit("clickLoadMore",{detail:{status:this.status}})}}},[["render",function(t,n,i,a,s,r){return e.openBlock(),e.createElementBlock("view",{class:"uni-load-more",onClick:n[0]||(n[0]=(...e)=>r.onClick&&r.onClick(...e))},[!s.webviewHide&&("circle"===i.iconType||"auto"===i.iconType&&"android"===s.platform)&&"loading"===i.status&&i.showIcon?(e.openBlock(),e.createElementBlock("view",{key:0,style:e.normalizeStyle({width:i.iconSize+"px",height:i.iconSize+"px"}),class:"uni-load-more__img uni-load-more__img--android-MP"},[e.createElementVNode("view",{class:"uni-load-more__img-icon",style:e.normalizeStyle({borderTopColor:i.color,borderTopWidth:i.iconSize/12})},null,4),e.createElementVNode("view",{class:"uni-load-more__img-icon",style:e.normalizeStyle({borderTopColor:i.color,borderTopWidth:i.iconSize/12})},null,4),e.createElementVNode("view",{class:"uni-load-more__img-icon",style:e.normalizeStyle({borderTopColor:i.color,borderTopWidth:i.iconSize/12})},null,4)],4)):!s.webviewHide&&"loading"===i.status&&i.showIcon?(e.openBlock(),e.createElementBlock("view",{key:1,style:e.normalizeStyle({width:i.iconSize+"px",height:i.iconSize+"px"}),class:"uni-load-more__img uni-load-more__img--ios-H5"},[e.createElementVNode("image",{src:s.imgBase64,mode:"widthFix"},null,8,["src"])],4)):e.createCommentVNode("",!0),i.showText?(e.openBlock(),e.createElementBlock("text",{key:2,class:"uni-load-more__text",style:e.normalizeStyle({color:i.color})},e.toDisplayString("more"===i.status?r.contentdownText:"loading"===i.status?r.contentrefreshText:r.contentnomoreText),5)):e.createCommentVNode("",!0)])}],["__scopeId","data-v-a7e112cc"]]),vs={props:{localdata:{type:[Array,Object],default:()=>[]},spaceInfo:{type:Object,default:()=>({})},collection:{type:String,default:""},action:{type:String,default:""},field:{type:String,default:""},orderby:{type:String,default:""},where:{type:[String,Object],default:""},pageData:{type:String,default:"add"},pageCurrent:{type:Number,default:1},pageSize:{type:Number,default:500},getcount:{type:[Boolean,String],default:!1},getone:{type:[Boolean,String],default:!1},gettree:{type:[Boolean,String],default:!1},manual:{type:Boolean,default:!1},value:{type:[Array,String,Number],default:()=>[]},modelValue:{type:[Array,String,Number],default:()=>[]},preload:{type:Boolean,default:!1},stepSearh:{type:Boolean,default:!0},selfField:{type:String,default:""},parentField:{type:String,default:""},multiple:{type:Boolean,default:!1},map:{type:Object,default:()=>({text:"text",value:"value"})}},data(){return{loading:!1,errorMessage:"",loadMore:{contentdown:"",contentrefresh:"",contentnomore:""},dataList:[],selected:[],selectedIndex:0,page:{current:this.pageCurrent,size:this.pageSize,count:0}}},computed:{isLocalData(){return!this.collection.length},isCloudData(){return this.collection.length>0},isCloudDataList(){return this.isCloudData&&!this.parentField&&!this.selfField},isCloudDataTree(){return this.isCloudData&&this.parentField&&this.selfField},dataValue(){return(Array.isArray(this.modelValue)?this.modelValue.length>0:null!==this.modelValue||void 0!==this.modelValue)?this.modelValue:this.value},hasValue(){return"number"==typeof this.dataValue||null!=this.dataValue&&this.dataValue.length>0}},created(){this.$watch((()=>{var e=[];return["pageCurrent","pageSize","spaceInfo","value","modelValue","localdata","collection","action","field","orderby","where","getont","getcount","gettree"].forEach((t=>{e.push(this[t])})),e}),((e,t)=>{for(let n=2;n(this.selected=e.result.data,e.result.data)))},getCloudDataTreeValue(){return this.getCommand({field:this._cloudDataPostField(),getTreePath:{startWith:`${this.selfField}=='${this.dataValue}'`}}).then((e=>{let t=[];return this._extractTreePath(e.result.data,t),this.selected=t,t}))},getCommand(e={}){let t=ja.database(this.spaceInfo);const n=e.action||this.action;n&&(t=t.action(n));const i=e.collection||this.collection;t=t.collection(i);const a=e.where||this.where;a&&Object.keys(a).length&&(t=t.where(a));const s=e.field||this.field;s&&(t=t.field(s));const r=e.orderby||this.orderby;r&&(t=t.orderBy(r));const o=void 0!==e.pageCurrent?e.pageCurrent:this.page.current,l=void 0!==e.pageSize?e.pageSize:this.page.size,c={getCount:void 0!==e.getcount?e.getcount:this.getcount,getTree:void 0!==e.gettree?e.gettree:this.gettree};return e.getTreePath&&(c.getTreePath=e.getTreePath),t=t.skip(l*(o-1)).limit(l).get(c),t},_cloudDataPostField(){let e=[this.field];return this.parentField&&e.push(`${this.parentField} as parent_value`),e.join(",")},_cloudDataTreeWhere(){let e=[],t=this.selected,n=this.parentField;if(n&&e.push(`${n} == null || ${n} == ""`),t.length)for(var i=0;inull===e.parent_value||void 0===e.parent_value||""===e.parent_value)));for(let a=0;ae.parent_value===s));r.length?n.push(r):i=!1}return{dataList:n,hasNodes:i}},_extractTree(e,t,n){let i=this.map.value;for(let a=0;a{this.loadData()}))},methods:{onPropsChange(){this._treeData=[],this.selectedIndex=0,this.$nextTick((()=>{this.loadData()}))},handleSelect(e){this.selectedIndex=e},handleNodeClick(e,t,n){if(e.disable)return;const i=this.dataList[t][n],a=i[this.map.text],s=i[this.map.value];if(t{e.length?(this._treeData.push(...e),this._updateBindData(i)):i.isleaf=!0,this.onSelectedChange(i,i.isleaf)})))},updateData(e){this._treeData=e.treeData,this.selected=e.selected,this._treeData.length?this._updateBindData():this.loadData()},onDataChange(){this.$emit("datachange")},onSelectedChange(e,t){t&&this._dispatchEvent(),e&&this.$emit("nodeclick",e)},_dispatchEvent(){this.$emit("change",this.selected.slice(0))}}},[["render",function(t,i,a,s,r,o){const l=n(e.resolveDynamicComponent("uni-load-more"),gs);return e.openBlock(),e.createElementBlock("view",{class:"uni-data-pickerview"},[t.isCloudDataList?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("scroll-view",{key:0,class:"selected-area","scroll-x":"true"},[e.createElementVNode("view",{class:"selected-list"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.selected,((n,i)=>(e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass(["selected-item",{"selected-item-active":i==t.selectedIndex}]),key:i,onClick:e=>o.handleSelect(i)},[e.createElementVNode("text",null,e.toDisplayString(n.text||""),1)],10,["onClick"])))),128))])])),e.createElementVNode("view",{class:"tab-c"},[e.createElementVNode("scroll-view",{class:"list","scroll-y":!0},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.dataList[t.selectedIndex],((n,i)=>(e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass(["item",{"is-disabled":!!n.disable}]),key:i,onClick:e=>o.handleNodeClick(n,t.selectedIndex,i)},[e.createElementVNode("text",{class:"item-text"},e.toDisplayString(n[t.map.text]),1),t.selected.length>t.selectedIndex&&n[t.map.value]==t.selected[t.selectedIndex].value?(e.openBlock(),e.createElementBlock("view",{key:0,class:"check"})):e.createCommentVNode("",!0)],10,["onClick"])))),128))]),t.loading?(e.openBlock(),e.createElementBlock("view",{key:0,class:"loading-cover"},[e.createVNode(l,{class:"load-more",contentText:t.loadMore,status:"loading"},null,8,["contentText"])])):e.createCommentVNode("",!0),t.errorMessage?(e.openBlock(),e.createElementBlock("view",{key:1,class:"error-message"},[e.createElementVNode("text",{class:"error-text"},e.toDisplayString(t.errorMessage),1)])):e.createCommentVNode("",!0)])])}],["__scopeId","data-v-c0c521c5"]])},props:{options:{type:[Object,Array],default:()=>({})},popupTitle:{type:String,default:"请选择"},placeholder:{type:String,default:"请选择"},heightMobile:{type:String,default:""},readonly:{type:Boolean,default:!1},clearIcon:{type:Boolean,default:!0},border:{type:Boolean,default:!0},split:{type:String,default:"/"},ellipsis:{type:Boolean,default:!0}},data:()=>({isOpened:!1,inputSelected:[]}),created(){this.$nextTick((()=>{this.load()}))},watch:{localdata:{handler(){this.load()},deep:!0}},methods:{clear(){this._dispatchEvent([])},onPropsChange(){this._treeData=[],this.selectedIndex=0,this.load()},load(){this.readonly?this._processReadonly(this.localdata,this.dataValue):this.isLocalData?(this.loadData(),this.inputSelected=this.selected.slice(0)):(this.isCloudDataList||this.isCloudDataTree)&&(this.loading=!0,this.getCloudDataValue().then((e=>{this.loading=!1,this.inputSelected=e})).catch((e=>{this.loading=!1,this.errorMessage=e})))},show(){this.isOpened=!0,setTimeout((()=>{this.$refs.pickerView.updateData({treeData:this._treeData,selected:this.selected,selectedIndex:this.selectedIndex})}),200),this.$emit("popupopened")},hide(){this.isOpened=!1,this.$emit("popupclosed")},handleInput(){this.readonly?this.$emit("inputclick"):this.show()},handleClose(e){this.hide()},onnodeclick(e){this.$emit("nodeclick",e)},ondatachange(e){this._treeData=this.$refs.pickerView._treeData},onchange(e){this.hide(),this.$nextTick((()=>{this.inputSelected=e})),this._dispatchEvent(e)},_processReadonly(e,t){if(e.findIndex((e=>e.children))>-1){let e;return Array.isArray(t)?(e=t[t.length-1],"object"==typeof e&&e.value&&(e=e.value)):e=t,void(this.inputSelected=this._findNodePath(e,this.localdata))}if(!this.hasValue)return void(this.inputSelected=[]);let n=[];for(let s=0;se.value==i));a&&n.push(a)}n.length&&(this.inputSelected=n)},_filterForArray(e,t){var n=[];for(let s=0;se.value==i));a&&n.push(a)}return n},_dispatchEvent(e){let t={};if(e.length){for(var n=new Array(e.length),i=0;io.handleInput&&o.handleInput(...e))},[e.renderSlot(t.$slots,"default",{options:a.options,data:r.inputSelected,error:t.errorMessage},(()=>[e.createElementVNode("view",{class:e.normalizeClass(["input-value",{"input-value-border":a.border}])},[t.errorMessage?(e.openBlock(),e.createElementBlock("text",{key:0,class:"selected-area error-text"},e.toDisplayString(t.errorMessage),1)):t.loading&&!r.isOpened?(e.openBlock(),e.createElementBlock("view",{key:1,class:"selected-area"},[e.createVNode(l,{class:"load-more",contentText:t.loadMore,status:"loading"},null,8,["contentText"])])):r.inputSelected.length?(e.openBlock(),e.createElementBlock("scroll-view",{key:2,class:"selected-area","scroll-x":"true"},[e.createElementVNode("view",{class:"selected-list"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.inputSelected,((t,n)=>(e.openBlock(),e.createElementBlock("view",{class:"selected-item",key:n},[e.createElementVNode("text",{class:"text-color"},e.toDisplayString(t.text),1),no.clear&&o.clear(...e)),["stop"]))},[e.createVNode(c,{type:"clear",color:"#c0c4cc",size:"24"})])):e.createCommentVNode("",!0),a.clearIcon&&r.inputSelected.length||a.readonly?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("view",{key:5,class:"arrow-area"},[e.createElementVNode("view",{class:"input-arrow"})]))],2)]),!0)]),r.isOpened?(e.openBlock(),e.createElementBlock("view",{key:0,class:"uni-data-tree-cover",onClick:i[2]||(i[2]=(...e)=>o.handleClose&&o.handleClose(...e))})):e.createCommentVNode("",!0),r.isOpened?(e.openBlock(),e.createElementBlock("view",{key:1,class:"uni-data-tree-dialog"},[e.createElementVNode("view",{class:"uni-popper__arrow"}),e.createElementVNode("view",{class:"dialog-caption"},[e.createElementVNode("view",{class:"title-area"},[e.createElementVNode("text",{class:"dialog-title"},e.toDisplayString(a.popupTitle),1)]),e.createElementVNode("view",{class:"dialog-close",onClick:i[3]||(i[3]=(...e)=>o.handleClose&&o.handleClose(...e))},[e.createElementVNode("view",{class:"dialog-close-plus","data-id":"close"}),e.createElementVNode("view",{class:"dialog-close-plus dialog-close-rotate","data-id":"close"})])]),e.createVNode(u,{class:"picker-view",ref:"pickerView",modelValue:t.dataValue,"onUpdate:modelValue":i[4]||(i[4]=e=>t.dataValue=e),localdata:t.localdata,preload:t.preload,collection:t.collection,field:t.field,orderby:t.orderby,where:t.where,"step-searh":t.stepSearh,"self-field":t.selfField,"parent-field":t.parentField,"managed-mode":!0,map:t.map,ellipsis:a.ellipsis,onChange:o.onchange,onDatachange:o.ondatachange,onNodeclick:o.onnodeclick},null,8,["modelValue","localdata","preload","collection","field","orderby","where","step-searh","self-field","parent-field","map","ellipsis","onChange","onDatachange","onNodeclick"])])):e.createCommentVNode("",!0)])}],["__scopeId","data-v-0b9ed1e5"]]),ks={__name:"index",setup(i){const a=H(),{proxy:s}=e.getCurrentInstance(),o=e.ref([]),l=()=>{var e;u({url:"/sys/sysDepart/queryTreeList",method:"get",data:e}).then((e=>{o.value=e.result,h=e.result[0].id,d(e.result[0].id)})).catch((e=>{t("log","at pages/userlist/index.vue:98",e)}))},c=e.ref([]),d=(e,n,i)=>{var a;(a={id:e,username:n||"",realname:i||""},u({url:"/sys/user/queryUserByDepId",method:"get",data:a})).then((e=>{e.success&&(c.value=e.result)})).catch((e=>{t("log","at pages/userlist/index.vue:113",e)}))};let h=null,p=[];const f=e=>{d(e.id),h=e.id,-1!=p.indexOf(e.title)?p.splice(p.indexOf(e.title),1,e.title):p.push(e.title)},m=e.ref([]);let g=0,v=null,y=null,w=null;r((e=>{g=e.isradio,v=e.id,w=e.reason,e.nextnode&&(y=JSON.parse(e.nextnode)),l()}));const k=e.ref(""),_=e.ref(""),b=()=>{(k.value.trim()||_.value.trim())&&(c.value=[],d(h,k.value,_.value))},E=()=>{k.value="",_.value="",c.value=[],d(h,k.value,_.value)},x=()=>{if(!m.value.length)return s.$toast("请选择被委托人");var e;(e={taskAssignee:c.value.filter((e=>e.id==m.value[0]))[0].username,taskId:v},u({url:"/act/task/taskEntrust",method:"put",data:e})).then((e=>{e.success&&(s.$toast(e.message),setTimeout((()=>{uni.navigateBack()}),2e3))}))},D=()=>{y?T():x()},T=()=>{S({taskId:v,reason:w,processModel:1,nextnode:y[0].nextnode,nextUserName:c.value.filter((e=>e.id==m.value[0]))[0].realname,nextUserId:m.value[0]}).then((e=>{s.$toast(e.message),setTimeout((()=>{uni.navigateBack()}),2e3)}))};return(i,s)=>{const r=n(e.resolveDynamicComponent("uni-data-picker"),ws),l=n(e.resolveDynamicComponent("uni-icons"),W);return e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass(["content",{gray:1==e.unref(a).isgray}])},[e.createVNode(r,{onPopupclosed:s[0]||(s[0]=e=>(e=>{t("log","at pages/userlist/index.vue:129","qqq",e)})(e)),"step-searh":!1,map:{text:"departName",value:"id"},localdata:o.value,"popup-title":"请选择部门",placeholder:"请选择部门",onNodeclick:f},null,8,["localdata"]),e.createElementVNode("view",{class:"search_box"},[e.createElementVNode("view",{class:"username f-row aic"},[e.createTextVNode(" 用户姓名:"),e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":s[1]||(s[1]=e=>_.value=e),type:"text",placeholder:"请输入姓名","placeholder-style":"color: grey;font-size: 28rpx;"},null,512),[[e.vModelText,_.value]])]),e.createElementVNode("view",{class:"username f-row aic"},[e.createTextVNode(" 用户账号:"),e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":s[2]||(s[2]=e=>k.value=e),type:"text",placeholder:"请输入账号","placeholder-style":"color: grey;font-size: 28rpx;"},null,512),[[e.vModelText,k.value]])]),e.createElementVNode("view",{class:"btn f-row aic jca"},[e.createElementVNode("view",{class:"f-row aic",onClick:b},[e.createVNode(l,{type:"search",size:"15",color:"#fff"}),e.createTextVNode(" 查询 ")]),e.createElementVNode("view",{class:"f-row aic",onClick:E},[e.createVNode(l,{type:"refreshempty",size:"15",color:"#fff"}),e.createTextVNode(" 重置 ")])])]),e.createElementVNode("view",{class:"list"},[e.createElementVNode("view",{class:"title f-row aic box"},[e.createElementVNode("view",{class:""}),e.createElementVNode("view",{class:""}," 序号 "),e.createElementVNode("view",{class:"username"}," 用户账号 "),e.createElementVNode("view",{class:""}," 用户姓名 ")]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,((t,n)=>(e.openBlock(),e.createElementBlock("view",{class:"item f-row aic box",key:n},[e.createElementVNode("view",{class:"f-row aic img",onClick:e=>(e=>{if(g){if(-1!=m.value.indexOf(e))return;m.value.splice(m.value.indexOf(e),1,e)}else-1!=m.value.indexOf(e)?m.value.splice(m.value.indexOf(e),1):m.value.push(e)})(t.id)},[m.value.includes(t.id)?(e.openBlock(),e.createElementBlock("image",{key:0,src:"/static/login/checked.png",mode:""})):(e.openBlock(),e.createElementBlock("image",{key:1,src:"/static/login/nocheck.png",mode:""}))],8,["onClick"]),e.createElementVNode("view",{class:"order"},e.toDisplayString(n+1),1),e.createElementVNode("view",{class:"username f-col aic"},[e.createElementVNode("view",{class:""},e.toDisplayString(t.username),1)]),e.createElementVNode("view",{class:"realname"},[e.createElementVNode("view",{class:""},e.toDisplayString(t.realname),1)])])))),128))]),e.createElementVNode("view",{class:"confirm f-col aic"},[e.createElementVNode("view",{class:"",onClick:D}," 确认 ")])],2)}}},_s=q(ks,[["__scopeId","data-v-a805c56c"]]),Ss=q({__name:"detail",setup(t){const n=H();return(t,i)=>(e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass(["content",{gray:1==e.unref(n).isgray}])},[e.createElementVNode("view",{class:""},[e.createElementVNode("video",{src:""}),e.createElementVNode("view",{class:"title"}," 五月天“突然好想你”线上演唱会精彩回放,这里就是标题 ")]),e.createElementVNode("view",{class:"listcom"},[e.createVNode(cs)])],2))}},[["__scopeId","data-v-ab4e5d54"]]);var bs={exports:{}};!function(e,t){e.exports=function(){var e=1e3,t=6e4,n=36e5,i="millisecond",a="second",s="minute",r="hour",o="day",l="week",c="month",u="quarter",d="year",h="date",p="Invalid Date",f=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,m=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,g={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],n=e%100;return"["+e+(t[(n-20)%10]||t[n]||t[0])+"]"}},v=function(e,t,n){var i=String(e);return!i||i.length>=t?e:""+Array(t+1-i.length).join(n)+e},y={s:v,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),i=Math.floor(n/60),a=n%60;return(t<=0?"+":"-")+v(i,2,"0")+":"+v(a,2,"0")},m:function e(t,n){if(t.date()1)return e(r[0])}else{var o=t.name;k[o]=t,a=o}return!i&&a&&(w=a),a||!i&&w},E=function(e,t){if(S(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new D(n)},x=y;x.l=b,x.i=S,x.w=function(e,t){return E(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var D=function(){function g(e){this.$L=b(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[_]=!0}var v=g.prototype;return v.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(x.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var i=t.match(f);if(i){var a=i[2]-1||0,s=(i[7]||"0").substring(0,3);return n?new Date(Date.UTC(i[1],a,i[3]||1,i[4]||0,i[5]||0,i[6]||0,s)):new Date(i[1],a,i[3]||1,i[4]||0,i[5]||0,i[6]||0,s)}}return new Date(t)}(e),this.init()},v.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},v.$utils=function(){return x},v.isValid=function(){return!(this.$d.toString()===p)},v.isSame=function(e,t){var n=E(e);return this.startOf(t)<=n&&n<=this.endOf(t)},v.isAfter=function(e,t){return E(e){l()}));const s=e.ref(Es().format("YYYY-MM")),o=e=>{s.value=e.detail.value,l()},l=()=>{let[e,n]=s.value.split("-");var i;(i={year:e,month:n},u({url:"/zhgl_zbgl/zhglZbglZbb/list",method:"get",data:i})).then((e=>{a.value=e.result.records})).catch((e=>{t("log","at pages/zhiban/index.vue:73",e)}))};return(t,n)=>(e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass(["f-col","aic",{gray:1==e.unref(i).isgray}])},[e.createElementVNode("picker",{fields:"month",mode:"date",onChange:o,value:s.value},[e.createElementVNode("view",{class:"date"},e.toDisplayString(s.value)+" 点击选择月份",1)],40,["value"]),e.createElementVNode("view",{class:"info"},[e.createElementVNode("view",{class:"info_title f-row aic"},[e.createElementVNode("view",{class:""}," 日期 "),e.createElementVNode("view",{class:""}," 带班领导 "),e.createElementVNode("view",{class:""}," 值班领导 "),e.createElementVNode("view",{class:""}," 值班干部 ")]),e.createElementVNode("view",{class:"data_box"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,((t,n)=>(e.openBlock(),e.createElementBlock("view",{class:"data f-row aic"},[e.createElementVNode("view",{class:""},e.toDisplayString(t.date),1),e.createElementVNode("view",{class:""},e.toDisplayString(t.dbld_dictText),1),e.createElementVNode("view",{class:""},e.toDisplayString(t.zbld_dictText),1),e.createElementVNode("view",{class:""},e.toDisplayString(t.zbgbrealname),1)])))),256))])])],2))}},Ds=q(xs,[["__scopeId","data-v-54de2922"]]),Ts={__name:"self",setup(n){const i=H(),a=e.ref([]);let s="";r((e=>{s=e.title,u()}));let l=1,c=!1;const u=()=>{c=!0,uni.showLoading({title:"加载中..."}),f({pageNo:l,pageSize:10,_t:(new Date).getTime(),processName:s}).then((e=>{if(e.success){if(!e.result.records.length)return Te("没有更多了~");let t=e.result.records;t.map((e=>{e.processApplyUserName=e.startUserName,e.processDefinitionName=e.prcocessDefinitionName,e.taskBeginTime=e.startTime})),a.value=[...a.value,...t],c=!1}})).catch((e=>{t("log","at pages/task/self.vue:59",e)}))},d=e=>{Ne(e,(()=>{uni.navigateTo({url:e})}))};return o((()=>{c||(l++,u())})),(t,n)=>(e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass({gray:1==e.unref(i).isgray})},[e.createVNode(ze,{onJump:d,taskArr:a.value,currentIndex:2},null,8,["taskArr"])],2))}};__definePage("pages/login/login",K),__definePage("pages/tab/index",Oe),__definePage("pages/task/todotask",Fe),__definePage("pages/tab/office",Ue),__definePage("pages/tab/my",$e),__definePage("pages/task/index",He),__definePage("pages/task/handle",Qe),__definePage("pages/talk/message_list",Xe),__definePage("pages/talk/conversation",et),__definePage("pages/talk/system",nt),__definePage("pages/document/index",it),__definePage("pages/document/detail",at),__definePage("pages/meeting/index",st),__definePage("pages/meeting/detail",rt),__definePage("pages/leave/application",is),__definePage("pages/checkin/index",as),__definePage("pages/useredit/useredit",ss),__definePage("pages/useredit/address",rs),__definePage("pages/useredit/add_address",os),__definePage("pages/useredit/addressbook",ls),__definePage("pages/safe/manage",us),__definePage("pages/product/index",hs),__definePage("pages/userlist/index",_s),__definePage("pages/safe/detail",Ss),__definePage("pages/zhiban/index",Ds),__definePage("pages/task/self",Ts);var Ns=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,62,0,62,0,63,52,53,54,55,56,57,58,59,60,61,0,0,0,0,0,0,0,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,0,0,0,0,63,0,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];const Cs={getRandomValues(e){if(!(e instanceof Int8Array||e instanceof Uint8Array||e instanceof Int16Array||e instanceof Uint16Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Uint8ClampedArray))throw new Error("Expected an integer array");if(e.byteLength>65536)throw new Error("Can only request a maximum of 65536 bytes");var t;return function(e,t){for(var n,i=e.length,a="="===e[i-2]?2:"="===e[i-1]?1:0,s=0,r=i-a&4294967292,o=0;o>16&255,t[s++]=n>>8&255,t[s++]=255&n;1===a&&(n=Ns[e.charCodeAt(o)]<<10|Ns[e.charCodeAt(o+1)]<<4|Ns[e.charCodeAt(o+2)]>>2,t[s++]=n>>8&255,t[s++]=255&n),2===a&&(n=Ns[e.charCodeAt(o)]<<2|Ns[e.charCodeAt(o+1)]>>4,t[s++]=255&n)}((t="DCloud-Crypto",weex.requireModule(t)).getRandomValues(e.byteLength),new Uint8Array(e.buffer,e.byteOffset,e.byteLength)),e}};function Vs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Is={exports:{}}; +/*! For license information please see gtpush-min.js.LICENSE.txt */!function(e,t){var n;self,n=()=>(()=>{var e={4736:(e,t,n)=>{var i;e=n.nmd(e);var a=function(e){var t=1e7,n=9007199254740992,i=h(n),s="0123456789abcdefghijklmnopqrstuvwxyz",r="function"==typeof BigInt;function o(e,t,n,i){return void 0===e?o[0]:void 0===t||10==+t&&!n?Y(e):H(e,t,n,i)}function l(e,t){this.value=e,this.sign=t,this.isSmall=!1}function c(e){this.value=e,this.sign=e<0,this.isSmall=!0}function u(e){this.value=e}function d(e){return-n0?Math.floor(e):Math.ceil(e)}function v(e,n){var i,a,s=e.length,r=n.length,o=new Array(s),l=0,c=t;for(a=0;a=c?1:0,o[a]=i-l*c;for(;a0&&o.push(l),o}function y(e,t){return e.length>=t.length?v(e,t):v(t,e)}function w(e,n){var i,a,s=e.length,r=new Array(s),o=t;for(a=0;a0;)r[a++]=n%o,n=Math.floor(n/o);return r}function k(e,n){var i,a,s=e.length,r=n.length,o=new Array(s),l=0,c=t;for(i=0;i0;)r[a++]=l%o,l=Math.floor(l/o);return r}function E(e,t){for(var n=[];t-- >0;)n.push(0);return n.concat(e)}function x(e,t){var n=Math.max(e.length,t.length);if(n<=30)return S(e,t);n=Math.ceil(n/2);var i=e.slice(n),a=e.slice(0,n),s=t.slice(n),r=t.slice(0,n),o=x(a,r),l=x(i,s),c=x(y(a,i),y(r,s)),u=y(y(o,E(k(k(c,o),l),n)),E(l,2*n));return f(u),u}function D(e,n,i){return new l(e=0;--n)a=(s=1e7*a+e[n])-(i=g(s/t))*t,o[n]=0|i;return[o,0|a]}function C(e,n){var i,a=Y(n);if(r)return[new u(e.value/a.value),new u(e.value%a.value)];var s,d=e.value,v=a.value;if(0===v)throw new Error("Cannot divide by zero");if(e.isSmall)return a.isSmall?[new c(g(d/v)),new c(d%v)]:[o[0],e];if(a.isSmall){if(1===v)return[e,o[0]];if(-1==v)return[e.negate(),o[0]];var y=Math.abs(v);if(y=0;a--){for(i=h-1,y[a+d]!==g&&(i=Math.floor((y[a+d]*h+y[a+d-1])/g)),s=0,r=0,l=w.length,o=0;oc&&(s=(s+1)*h),i=Math.ceil(s/r);do{if(V(o=b(n,i),d)<=0)break;i--}while(i);u.push(i),d=k(d,o)}return u.reverse(),[p(u),p(d)]}(d,v),s=i[0];var S=e.sign!==a.sign,E=i[1],x=e.sign;return"number"==typeof s?(S&&(s=-s),s=new c(s)):s=new l(s,S),"number"==typeof E?(x&&(E=-E),E=new c(E)):E=new l(E,x),[s,E]}function V(e,t){if(e.length!==t.length)return e.length>t.length?1:-1;for(var n=e.length-1;n>=0;n--)if(e[n]!==t[n])return e[n]>t[n]?1:-1;return 0}function I(e){var t=e.abs();return!t.isUnit()&&(!!(t.equals(2)||t.equals(3)||t.equals(5))||!(t.isEven()||t.isDivisibleBy(3)||t.isDivisibleBy(5))&&(!!t.lesser(49)||void 0))}function B(e,t){for(var n,i,s,r=e.prev(),o=r,l=0;o.isEven();)o=o.divide(2),l++;e:for(i=0;i=0?i=k(e,t):(i=k(t,e),n=!n),"number"==typeof(i=p(i))?(n&&(i=-i),new c(i)):new l(i,n)}(n,i,this.sign)},l.prototype.minus=l.prototype.subtract,c.prototype.subtract=function(e){var t=Y(e),n=this.value;if(n<0!==t.sign)return this.add(t.negate());var i=t.value;return t.isSmall?new c(n-i):_(i,Math.abs(n),n>=0)},c.prototype.minus=c.prototype.subtract,u.prototype.subtract=function(e){return new u(this.value-Y(e).value)},u.prototype.minus=u.prototype.subtract,l.prototype.negate=function(){return new l(this.value,!this.sign)},c.prototype.negate=function(){var e=this.sign,t=new c(-this.value);return t.sign=!e,t},u.prototype.negate=function(){return new u(-this.value)},l.prototype.abs=function(){return new l(this.value,!1)},c.prototype.abs=function(){return new c(Math.abs(this.value))},u.prototype.abs=function(){return new u(this.value>=0?this.value:-this.value)},l.prototype.multiply=function(e){var n,i=Y(e),a=this.value,s=i.value,r=this.sign!==i.sign;if(i.isSmall){if(0===s)return o[0];if(1===s)return this;if(-1===s)return this.negate();if((n=Math.abs(s))0}(a.length,s.length)?new l(x(a,s),r):new l(S(a,s),r)},l.prototype.times=l.prototype.multiply,c.prototype._multiplyBySmall=function(e){return d(e.value*this.value)?new c(e.value*this.value):D(Math.abs(e.value),h(Math.abs(this.value)),this.sign!==e.sign)},l.prototype._multiplyBySmall=function(e){return 0===e.value?o[0]:1===e.value?this:-1===e.value?this.negate():D(Math.abs(e.value),this.value,this.sign!==e.sign)},c.prototype.multiply=function(e){return Y(e)._multiplyBySmall(this)},c.prototype.times=c.prototype.multiply,u.prototype.multiply=function(e){return new u(this.value*Y(e).value)},u.prototype.times=u.prototype.multiply,l.prototype.square=function(){return new l(T(this.value),!1)},c.prototype.square=function(){var e=this.value*this.value;return d(e)?new c(e):new l(T(h(Math.abs(this.value))),!1)},u.prototype.square=function(e){return new u(this.value*this.value)},l.prototype.divmod=function(e){var t=C(this,e);return{quotient:t[0],remainder:t[1]}},u.prototype.divmod=c.prototype.divmod=l.prototype.divmod,l.prototype.divide=function(e){return C(this,e)[0]},u.prototype.over=u.prototype.divide=function(e){return new u(this.value/Y(e).value)},c.prototype.over=c.prototype.divide=l.prototype.over=l.prototype.divide,l.prototype.mod=function(e){return C(this,e)[1]},u.prototype.mod=u.prototype.remainder=function(e){return new u(this.value%Y(e).value)},c.prototype.remainder=c.prototype.mod=l.prototype.remainder=l.prototype.mod,l.prototype.pow=function(e){var t,n,i,a=Y(e),s=this.value,r=a.value;if(0===r)return o[1];if(0===s)return o[0];if(1===s)return o[1];if(-1===s)return a.isEven()?o[1]:o[-1];if(a.sign)return o[0];if(!a.isSmall)throw new Error("The exponent "+a.toString()+" is too large.");if(this.isSmall&&d(t=Math.pow(s,r)))return new c(g(t));for(n=this,i=o[1];!0&r&&(i=i.times(n),--r),0!==r;)r/=2,n=n.square();return i},c.prototype.pow=l.prototype.pow,u.prototype.pow=function(e){var t=Y(e),n=this.value,i=t.value,a=BigInt(0),s=BigInt(1),r=BigInt(2);if(i===a)return o[1];if(n===a)return o[0];if(n===s)return o[1];if(n===BigInt(-1))return t.isEven()?o[1]:o[-1];if(t.isNegative())return new u(a);for(var l=this,c=o[1];(i&s)===s&&(c=c.times(l),--i),i!==a;)i/=r,l=l.square();return c},l.prototype.modPow=function(e,t){if(e=Y(e),(t=Y(t)).isZero())throw new Error("Cannot take modPow with modulus 0");var n=o[1],i=this.mod(t);for(e.isNegative()&&(e=e.multiply(o[-1]),i=i.modInv(t));e.isPositive();){if(i.isZero())return o[0];e.isOdd()&&(n=n.multiply(i).mod(t)),e=e.divide(2),i=i.square().mod(t)}return n},u.prototype.modPow=c.prototype.modPow=l.prototype.modPow,l.prototype.compareAbs=function(e){var t=Y(e),n=this.value,i=t.value;return t.isSmall?1:V(n,i)},c.prototype.compareAbs=function(e){var t=Y(e),n=Math.abs(this.value),i=t.value;return t.isSmall?n===(i=Math.abs(i))?0:n>i?1:-1:-1},u.prototype.compareAbs=function(e){var t=this.value,n=Y(e).value;return(t=t>=0?t:-t)===(n=n>=0?n:-n)?0:t>n?1:-1},l.prototype.compare=function(e){if(e===1/0)return-1;if(e===-1/0)return 1;var t=Y(e),n=this.value,i=t.value;return this.sign!==t.sign?t.sign?1:-1:t.isSmall?this.sign?-1:1:V(n,i)*(this.sign?-1:1)},l.prototype.compareTo=l.prototype.compare,c.prototype.compare=function(e){if(e===1/0)return-1;if(e===-1/0)return 1;var t=Y(e),n=this.value,i=t.value;return t.isSmall?n==i?0:n>i?1:-1:n<0!==t.sign?n<0?-1:1:n<0?1:-1},c.prototype.compareTo=c.prototype.compare,u.prototype.compare=function(e){if(e===1/0)return-1;if(e===-1/0)return 1;var t=this.value,n=Y(e).value;return t===n?0:t>n?1:-1},u.prototype.compareTo=u.prototype.compare,l.prototype.equals=function(e){return 0===this.compare(e)},u.prototype.eq=u.prototype.equals=c.prototype.eq=c.prototype.equals=l.prototype.eq=l.prototype.equals,l.prototype.notEquals=function(e){return 0!==this.compare(e)},u.prototype.neq=u.prototype.notEquals=c.prototype.neq=c.prototype.notEquals=l.prototype.neq=l.prototype.notEquals,l.prototype.greater=function(e){return this.compare(e)>0},u.prototype.gt=u.prototype.greater=c.prototype.gt=c.prototype.greater=l.prototype.gt=l.prototype.greater,l.prototype.lesser=function(e){return this.compare(e)<0},u.prototype.lt=u.prototype.lesser=c.prototype.lt=c.prototype.lesser=l.prototype.lt=l.prototype.lesser,l.prototype.greaterOrEquals=function(e){return this.compare(e)>=0},u.prototype.geq=u.prototype.greaterOrEquals=c.prototype.geq=c.prototype.greaterOrEquals=l.prototype.geq=l.prototype.greaterOrEquals,l.prototype.lesserOrEquals=function(e){return this.compare(e)<=0},u.prototype.leq=u.prototype.lesserOrEquals=c.prototype.leq=c.prototype.lesserOrEquals=l.prototype.leq=l.prototype.lesserOrEquals,l.prototype.isEven=function(){return 0==(1&this.value[0])},c.prototype.isEven=function(){return 0==(1&this.value)},u.prototype.isEven=function(){return(this.value&BigInt(1))===BigInt(0)},l.prototype.isOdd=function(){return 1==(1&this.value[0])},c.prototype.isOdd=function(){return 1==(1&this.value)},u.prototype.isOdd=function(){return(this.value&BigInt(1))===BigInt(1)},l.prototype.isPositive=function(){return!this.sign},c.prototype.isPositive=function(){return this.value>0},u.prototype.isPositive=c.prototype.isPositive,l.prototype.isNegative=function(){return this.sign},c.prototype.isNegative=function(){return this.value<0},u.prototype.isNegative=c.prototype.isNegative,l.prototype.isUnit=function(){return!1},c.prototype.isUnit=function(){return 1===Math.abs(this.value)},u.prototype.isUnit=function(){return this.abs().value===BigInt(1)},l.prototype.isZero=function(){return!1},c.prototype.isZero=function(){return 0===this.value},u.prototype.isZero=function(){return this.value===BigInt(0)},l.prototype.isDivisibleBy=function(e){var t=Y(e);return!t.isZero()&&(!!t.isUnit()||(0===t.compareAbs(2)?this.isEven():this.mod(t).isZero()))},u.prototype.isDivisibleBy=c.prototype.isDivisibleBy=l.prototype.isDivisibleBy,l.prototype.isPrime=function(t){var n=I(this);if(n!==e)return n;var i=this.abs(),s=i.bitLength();if(s<=64)return B(i,[2,3,5,7,11,13,17,19,23,29,31,37]);for(var r=Math.log(2)*s.toJSNumber(),o=Math.ceil(!0===t?2*Math.pow(r,2):r),l=[],c=0;c-n?new c(e-1):new l(i,!0)},u.prototype.prev=function(){return new u(this.value-BigInt(1))};for(var A=[1];2*A[A.length-1]<=t;)A.push(2*A[A.length-1]);var M=A.length,P=A[M-1];function R(e){return Math.abs(e)<=t}function O(e,t,n){t=Y(t);for(var i=e.isNegative(),s=t.isNegative(),r=i?e.not():e,o=s?t.not():t,l=0,c=0,u=null,d=null,h=[];!r.isZero()||!o.isZero();)l=(u=C(r,P))[1].toJSNumber(),i&&(l=P-1-l),c=(d=C(o,P))[1].toJSNumber(),s&&(c=P-1-c),r=u[0],o=d[0],h.push(n(l,c));for(var p=0!==n(i?1:0,s?1:0)?a(-1):a(0),f=h.length-1;f>=0;f-=1)p=p.multiply(P).add(a(h[f]));return p}l.prototype.shiftLeft=function(e){var t=Y(e).toJSNumber();if(!R(t))throw new Error(String(t)+" is too large for shifting.");if(t<0)return this.shiftRight(-t);var n=this;if(n.isZero())return n;for(;t>=M;)n=n.multiply(P),t-=M-1;return n.multiply(A[t])},u.prototype.shiftLeft=c.prototype.shiftLeft=l.prototype.shiftLeft,l.prototype.shiftRight=function(e){var t,n=Y(e).toJSNumber();if(!R(n))throw new Error(String(n)+" is too large for shifting.");if(n<0)return this.shiftLeft(-n);for(var i=this;n>=M;){if(i.isZero()||i.isNegative()&&i.isUnit())return i;i=(t=C(i,P))[1].isNegative()?t[0].prev():t[0],n-=M-1}return(t=C(i,A[n]))[1].isNegative()?t[0].prev():t[0]},u.prototype.shiftRight=c.prototype.shiftRight=l.prototype.shiftRight,l.prototype.not=function(){return this.negate().prev()},u.prototype.not=c.prototype.not=l.prototype.not,l.prototype.and=function(e){return O(this,e,(function(e,t){return e&t}))},u.prototype.and=c.prototype.and=l.prototype.and,l.prototype.or=function(e){return O(this,e,(function(e,t){return e|t}))},u.prototype.or=c.prototype.or=l.prototype.or,l.prototype.xor=function(e){return O(this,e,(function(e,t){return e^t}))},u.prototype.xor=c.prototype.xor=l.prototype.xor;var L=1<<30;function F(e){var n=e.value,i="number"==typeof n?n|L:"bigint"==typeof n?n|BigInt(L):n[0]+n[1]*t|1073758208;return i&-i}function j(e,t){if(t.compareTo(e)<=0){var n=j(e,t.square(t)),i=n.p,s=n.e,r=i.multiply(t);return r.compareTo(e)<=0?{p:r,e:2*s+1}:{p:i,e:2*s}}return{p:a(1),e:0}}function U(e,t){return e=Y(e),t=Y(t),e.greater(t)?e:t}function $(e,t){return e=Y(e),t=Y(t),e.lesser(t)?e:t}function z(e,t){if(e=Y(e).abs(),t=Y(t).abs(),e.equals(t))return e;if(e.isZero())return t;if(t.isZero())return e;for(var n,i,a=o[1];e.isEven()&&t.isEven();)n=$(F(e),F(t)),e=e.divide(n),t=t.divide(n),a=a.multiply(n);for(;e.isEven();)e=e.divide(F(e));do{for(;t.isEven();)t=t.divide(F(t));e.greater(t)&&(i=t,t=e,e=i),t=t.subtract(e)}while(!t.isZero());return a.isUnit()?e:e.multiply(a)}l.prototype.bitLength=function(){var e=this;return e.compareTo(a(0))<0&&(e=e.negate().subtract(a(1))),0===e.compareTo(a(0))?a(0):a(j(e,a(2)).e).add(a(1))},u.prototype.bitLength=c.prototype.bitLength=l.prototype.bitLength;var H=function(e,t,n,i){n=n||s,e=String(e),i||(e=e.toLowerCase(),n=n.toLowerCase());var a,r=e.length,o=Math.abs(t),l={};for(a=0;a=o){if("1"===d&&1===o)continue;throw new Error(d+" is not a valid digit in base "+t+".")}t=Y(t);var c=[],u="-"===e[0];for(a=u?1:0;a"!==e[a]&&a=0;i--)a=a.add(e[i].times(s)),s=s.times(t);return n?a.negate():a}function K(e,t){if((t=a(t)).isZero()){if(e.isZero())return{value:[0],isNegative:!1};throw new Error("Cannot convert nonzero numbers to base 0.")}if(t.equals(-1)){if(e.isZero())return{value:[0],isNegative:!1};if(e.isNegative())return{value:[].concat.apply([],Array.apply(null,Array(-e.toJSNumber())).map(Array.prototype.valueOf,[1,0])),isNegative:!1};var n=Array.apply(null,Array(e.toJSNumber()-1)).map(Array.prototype.valueOf,[0,1]);return n.unshift([1]),{value:[].concat.apply([],n),isNegative:!1}}var i=!1;if(e.isNegative()&&t.isPositive()&&(i=!0,e=e.abs()),t.isUnit())return e.isZero()?{value:[0],isNegative:!1}:{value:Array.apply(null,Array(e.toJSNumber())).map(Number.prototype.valueOf,1),isNegative:i};for(var s,r=[],o=e;o.isNegative()||o.compareAbs(t)>=0;){s=o.divmod(t),o=s.quotient;var l=s.remainder;l.isNegative()&&(l=t.minus(l).abs(),o=o.next()),r.push(l.toJSNumber())}return r.push(o.toJSNumber()),{value:r.reverse(),isNegative:i}}function J(e,t,n){var i=K(e,t);return(i.isNegative?"-":"")+i.value.map((function(e){return function(e,t){return e<(t=t||s).length?t[e]:"<"+e+">"}(e,n)})).join("")}function W(e){if(d(+e)){var t=+e;if(t===g(t))return r?new u(BigInt(t)):new c(t);throw new Error("Invalid integer: "+e)}var n="-"===e[0];n&&(e=e.slice(1));var i=e.split(/e/i);if(i.length>2)throw new Error("Invalid integer: "+i.join("e"));if(2===i.length){var a=i[1];if("+"===a[0]&&(a=a.slice(1)),(a=+a)!==g(a)||!d(a))throw new Error("Invalid integer: "+a+" is not a valid exponent.");var s=i[0],o=s.indexOf(".");if(o>=0&&(a-=s.length-o-1,s=s.slice(0,o)+s.slice(o+1)),a<0)throw new Error("Cannot include negative exponent part for integers");e=s+=new Array(a+1).join("0")}if(!/^([0-9][0-9]*)$/.test(e))throw new Error("Invalid integer: "+e);if(r)return new u(BigInt(n?"-"+e:e));for(var h=[],p=e.length,m=p-7;p>0;)h.push(+e.slice(m,p)),(m-=7)<0&&(m=0),p-=7;return f(h),new l(h,n)}function Y(e){return"number"==typeof e?function(e){if(r)return new u(BigInt(e));if(d(e)){if(e!==g(e))throw new Error(e+" is not an integer.");return new c(e)}return W(e.toString())}(e):"string"==typeof e?W(e):"bigint"==typeof e?new u(e):e}l.prototype.toArray=function(e){return K(this,e)},c.prototype.toArray=function(e){return K(this,e)},u.prototype.toArray=function(e){return K(this,e)},l.prototype.toString=function(t,n){if(t===e&&(t=10),10!==t)return J(this,t,n);for(var i,a=this.value,s=a.length,r=String(a[--s]);--s>=0;)i=String(a[s]),r+="0000000".slice(i.length)+i;return(this.sign?"-":"")+r},c.prototype.toString=function(t,n){return t===e&&(t=10),10!=t?J(this,t,n):String(this.value)},u.prototype.toString=c.prototype.toString,u.prototype.toJSON=l.prototype.toJSON=c.prototype.toJSON=function(){return this.toString()},l.prototype.valueOf=function(){return parseInt(this.toString(),10)},l.prototype.toJSNumber=l.prototype.valueOf,c.prototype.valueOf=function(){return this.value},c.prototype.toJSNumber=c.prototype.valueOf,u.prototype.valueOf=u.prototype.toJSNumber=function(){return parseInt(this.toString(),10)};for(var G=0;G<1e3;G++)o[G]=Y(G),G>0&&(o[-G]=Y(-G));return o.one=o[1],o.zero=o[0],o.minusOne=o[-1],o.max=U,o.min=$,o.gcd=z,o.lcm=function(e,t){return e=Y(e).abs(),t=Y(t).abs(),e.divide(z(e,t)).multiply(t)},o.isInstance=function(e){return e instanceof l||e instanceof c||e instanceof u},o.randBetween=function(e,n,i){e=Y(e),n=Y(n);var a=i||Math.random,s=$(e,n),r=U(e,n).subtract(s).add(1);if(r.isSmall)return s.add(Math.floor(a()*r));for(var l=K(r,t).value,c=[],u=!0,d=0;d>>8^255&f^99,a[n]=f,s[f]=n;var m=e[n],g=e[m],v=e[g],y=257*e[f]^16843008*f;r[n]=y<<24|y>>>8,o[n]=y<<16|y>>>16,l[n]=y<<8|y>>>24,c[n]=y,y=16843009*v^65537*g^257*m^16843008*n,u[f]=y<<24|y>>>8,d[f]=y<<16|y>>>16,h[f]=y<<8|y>>>24,p[f]=y,n?(n=m^e[e[e[v^m]]],i^=e[e[i]]):n=i=1}}();var f=[0,1,2,4,8,16,32,64,128,27,54],m=n.AES=t.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var e=this._keyPriorReset=this._key,t=e.words,n=e.sigBytes/4,i=4*((this._nRounds=n+6)+1),s=this._keySchedule=[],r=0;r6&&r%n==4&&(c=a[c>>>24]<<24|a[c>>>16&255]<<16|a[c>>>8&255]<<8|a[255&c]):(c=a[(c=c<<8|c>>>24)>>>24]<<24|a[c>>>16&255]<<16|a[c>>>8&255]<<8|a[255&c],c^=f[r/n|0]<<24),s[r]=s[r-n]^c);for(var o=this._invKeySchedule=[],l=0;l>>24]]^d[a[c>>>16&255]]^h[a[c>>>8&255]]^p[a[255&c]]}}},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._keySchedule,r,o,l,c,a)},decryptBlock:function(e,t){var n=e[t+1];e[t+1]=e[t+3],e[t+3]=n,this._doCryptBlock(e,t,this._invKeySchedule,u,d,h,p,s),n=e[t+1],e[t+1]=e[t+3],e[t+3]=n},_doCryptBlock:function(e,t,n,i,a,s,r,o){for(var l=this._nRounds,c=e[t]^n[0],u=e[t+1]^n[1],d=e[t+2]^n[2],h=e[t+3]^n[3],p=4,f=1;f>>24]^a[u>>>16&255]^s[d>>>8&255]^r[255&h]^n[p++],g=i[u>>>24]^a[d>>>16&255]^s[h>>>8&255]^r[255&c]^n[p++],v=i[d>>>24]^a[h>>>16&255]^s[c>>>8&255]^r[255&u]^n[p++],y=i[h>>>24]^a[c>>>16&255]^s[u>>>8&255]^r[255&d]^n[p++];c=m,u=g,d=v,h=y}m=(o[c>>>24]<<24|o[u>>>16&255]<<16|o[d>>>8&255]<<8|o[255&h])^n[p++],g=(o[u>>>24]<<24|o[d>>>16&255]<<16|o[h>>>8&255]<<8|o[255&c])^n[p++],v=(o[d>>>24]<<24|o[h>>>16&255]<<16|o[c>>>8&255]<<8|o[255&u])^n[p++],y=(o[h>>>24]<<24|o[c>>>16&255]<<16|o[u>>>8&255]<<8|o[255&d])^n[p++],e[t]=m,e[t+1]=g,e[t+2]=v,e[t+3]=y},keySize:8});e.AES=t._createHelper(m)}(),i.AES)},5109:function(e,t,n){var i;e.exports=(i=n(8249),n(888),void(i.lib.Cipher||function(e){var t=i,n=t.lib,a=n.Base,s=n.WordArray,r=n.BufferedBlockAlgorithm,o=t.enc;o.Utf8;var l=o.Base64,c=t.algo.EvpKDF,u=n.Cipher=r.extend({cfg:a.extend(),createEncryptor:function(e,t){return this.create(this._ENC_XFORM_MODE,e,t)},createDecryptor:function(e,t){return this.create(this._DEC_XFORM_MODE,e,t)},init:function(e,t,n){this.cfg=this.cfg.extend(n),this._xformMode=e,this._key=t,this.reset()},reset:function(){r.reset.call(this),this._doReset()},process:function(e){return this._append(e),this._process()},finalize:function(e){return e&&this._append(e),this._doFinalize()},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function e(e){return"string"==typeof e?w:v}return function(t){return{encrypt:function(n,i,a){return e(i).encrypt(t,n,i,a)},decrypt:function(n,i,a){return e(i).decrypt(t,n,i,a)}}}}()});n.StreamCipher=u.extend({_doFinalize:function(){return this._process(!0)},blockSize:1});var d=t.mode={},h=n.BlockCipherMode=a.extend({createEncryptor:function(e,t){return this.Encryptor.create(e,t)},createDecryptor:function(e,t){return this.Decryptor.create(e,t)},init:function(e,t){this._cipher=e,this._iv=t}}),p=d.CBC=function(){var t=h.extend();function n(t,n,i){var a,s=this._iv;s?(a=s,this._iv=e):a=this._prevBlock;for(var r=0;r>>2];e.sigBytes-=t}};n.BlockCipher=u.extend({cfg:u.cfg.extend({mode:p,padding:f}),reset:function(){var e;u.reset.call(this);var t=this.cfg,n=t.iv,i=t.mode;this._xformMode==this._ENC_XFORM_MODE?e=i.createEncryptor:(e=i.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==e?this._mode.init(this,n&&n.words):(this._mode=e.call(i,this,n&&n.words),this._mode.__creator=e)},_doProcessBlock:function(e,t){this._mode.processBlock(e,t)},_doFinalize:function(){var e,t=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(t.pad(this._data,this.blockSize),e=this._process(!0)):(e=this._process(!0),t.unpad(e)),e},blockSize:4});var m=n.CipherParams=a.extend({init:function(e){this.mixIn(e)},toString:function(e){return(e||this.formatter).stringify(this)}}),g=(t.format={}).OpenSSL={stringify:function(e){var t=e.ciphertext,n=e.salt;return(n?s.create([1398893684,1701076831]).concat(n).concat(t):t).toString(l)},parse:function(e){var t,n=l.parse(e),i=n.words;return 1398893684==i[0]&&1701076831==i[1]&&(t=s.create(i.slice(2,4)),i.splice(0,4),n.sigBytes-=16),m.create({ciphertext:n,salt:t})}},v=n.SerializableCipher=a.extend({cfg:a.extend({format:g}),encrypt:function(e,t,n,i){i=this.cfg.extend(i);var a=e.createEncryptor(n,i),s=a.finalize(t),r=a.cfg;return m.create({ciphertext:s,key:n,iv:r.iv,algorithm:e,mode:r.mode,padding:r.padding,blockSize:e.blockSize,formatter:i.format})},decrypt:function(e,t,n,i){return i=this.cfg.extend(i),t=this._parse(t,i.format),e.createDecryptor(n,i).finalize(t.ciphertext)},_parse:function(e,t){return"string"==typeof e?t.parse(e,this):e}}),y=(t.kdf={}).OpenSSL={execute:function(e,t,n,i){i||(i=s.random(8));var a=c.create({keySize:t+n}).compute(e,i),r=s.create(a.words.slice(t),4*n);return a.sigBytes=4*t,m.create({key:a,iv:r,salt:i})}},w=n.PasswordBasedCipher=v.extend({cfg:v.cfg.extend({kdf:y}),encrypt:function(e,t,n,i){var a=(i=this.cfg.extend(i)).kdf.execute(n,e.keySize,e.ivSize);i.iv=a.iv;var s=v.encrypt.call(this,e,t,a.key,i);return s.mixIn(a),s},decrypt:function(e,t,n,i){i=this.cfg.extend(i),t=this._parse(t,i.format);var a=i.kdf.execute(n,e.keySize,e.ivSize,t.salt);return i.iv=a.iv,v.decrypt.call(this,e,t,a.key,i)}})}()))},8249:function(e,t,n){var i;e.exports=(i=i||function(e,t){var i;if("undefined"!=typeof window&&Cs&&(i=Cs),"undefined"!=typeof self&&self.crypto&&(i=self.crypto),"undefined"!=typeof globalThis&&globalThis.crypto&&(i=globalThis.crypto),!i&&"undefined"!=typeof window&&window.msCrypto&&(i=window.msCrypto),!i&&void 0!==n.g&&n.g.crypto&&(i=n.g.crypto),!i)try{i=n(2480)}catch(g){}var a=function(){if(i){if("function"==typeof i.getRandomValues)try{return i.getRandomValues(new Uint32Array(1))[0]}catch(g){}if("function"==typeof i.randomBytes)try{return i.randomBytes(4).readInt32LE()}catch(g){}}throw new Error("Native crypto module could not be used to get secure random number.")},s=Object.create||function(){function e(){}return function(t){var n;return e.prototype=t,n=new e,e.prototype=null,n}}(),r={},o=r.lib={},l=o.Base=function(){return{extend:function(e){var t=s(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),c=o.WordArray=l.extend({init:function(e,n){e=this.words=e||[],this.sigBytes=n!=t?n:4*e.length},toString:function(e){return(e||d).stringify(this)},concat:function(e){var t=this.words,n=e.words,i=this.sigBytes,a=e.sigBytes;if(this.clamp(),i%4)for(var s=0;s>>2]>>>24-s%4*8&255;t[i+s>>>2]|=r<<24-(i+s)%4*8}else for(var o=0;o>>2]=n[o>>>2];return this.sigBytes+=a,this},clamp:function(){var t=this.words,n=this.sigBytes;t[n>>>2]&=4294967295<<32-n%4*8,t.length=e.ceil(n/4)},clone:function(){var e=l.clone.call(this);return e.words=this.words.slice(0),e},random:function(e){for(var t=[],n=0;n>>2]>>>24-a%4*8&255;i.push((s>>>4).toString(16)),i.push((15&s).toString(16))}return i.join("")},parse:function(e){for(var t=e.length,n=[],i=0;i>>3]|=parseInt(e.substr(i,2),16)<<24-i%8*4;return new c.init(n,t/2)}},h=u.Latin1={stringify:function(e){for(var t=e.words,n=e.sigBytes,i=[],a=0;a>>2]>>>24-a%4*8&255;i.push(String.fromCharCode(s))}return i.join("")},parse:function(e){for(var t=e.length,n=[],i=0;i>>2]|=(255&e.charCodeAt(i))<<24-i%4*8;return new c.init(n,t)}},p=u.Utf8={stringify:function(e){try{return decodeURIComponent(escape(h.stringify(e)))}catch(t){throw new Error("Malformed UTF-8 data")}},parse:function(e){return h.parse(unescape(encodeURIComponent(e)))}},f=o.BufferedBlockAlgorithm=l.extend({reset:function(){this._data=new c.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=p.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var n,i=this._data,a=i.words,s=i.sigBytes,r=this.blockSize,o=s/(4*r),l=(o=t?e.ceil(o):e.max((0|o)-this._minBufferSize,0))*r,u=e.min(4*l,s);if(l){for(var d=0;d>>6-r%4*2;a[s>>>2]|=o<<24-s%4*8,s++}return t.create(a,s)}e.enc.Base64={stringify:function(e){var t=e.words,n=e.sigBytes,i=this._map;e.clamp();for(var a=[],s=0;s>>2]>>>24-s%4*8&255)<<16|(t[s+1>>>2]>>>24-(s+1)%4*8&255)<<8|t[s+2>>>2]>>>24-(s+2)%4*8&255,o=0;o<4&&s+.75*o>>6*(3-o)&63));var l=i.charAt(64);if(l)for(;a.length%4;)a.push(l);return a.join("")},parse:function(e){var t=e.length,i=this._map,a=this._reverseMap;if(!a){a=this._reverseMap=[];for(var s=0;s>>6-r%4*2;a[s>>>2]|=o<<24-s%4*8,s++}return t.create(a,s)}e.enc.Base64url={stringify:function(e,t=!0){var n=e.words,i=e.sigBytes,a=t?this._safe_map:this._map;e.clamp();for(var s=[],r=0;r>>2]>>>24-r%4*8&255)<<16|(n[r+1>>>2]>>>24-(r+1)%4*8&255)<<8|n[r+2>>>2]>>>24-(r+2)%4*8&255,l=0;l<4&&r+.75*l>>6*(3-l)&63));var c=a.charAt(64);if(c)for(;s.length%4;)s.push(c);return s.join("")},parse:function(e,t=!0){var i=e.length,a=t?this._safe_map:this._map,s=this._reverseMap;if(!s){s=this._reverseMap=[];for(var r=0;r>>8&16711935}n.Utf16=n.Utf16BE={stringify:function(e){for(var t=e.words,n=e.sigBytes,i=[],a=0;a>>2]>>>16-a%4*8&65535;i.push(String.fromCharCode(s))}return i.join("")},parse:function(e){for(var n=e.length,i=[],a=0;a>>1]|=e.charCodeAt(a)<<16-a%2*16;return t.create(i,2*n)}},n.Utf16LE={stringify:function(e){for(var t=e.words,n=e.sigBytes,i=[],s=0;s>>2]>>>16-s%4*8&65535);i.push(String.fromCharCode(r))}return i.join("")},parse:function(e){for(var n=e.length,i=[],s=0;s>>1]|=a(e.charCodeAt(s)<<16-s%2*16);return t.create(i,2*n)}}}(),i.enc.Utf16)},888:function(e,t,n){var i,a,s,r,o,l,c,u;e.exports=(u=n(8249),n(2783),n(9824),a=(i=u).lib,s=a.Base,r=a.WordArray,o=i.algo,l=o.MD5,c=o.EvpKDF=s.extend({cfg:s.extend({keySize:4,hasher:l,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var n,i=this.cfg,a=i.hasher.create(),s=r.create(),o=s.words,l=i.keySize,c=i.iterations;o.lengthi&&(t=e.finalize(t)),t.clamp();for(var a=this._oKey=t.clone(),r=this._iKey=t.clone(),o=a.words,l=r.words,c=0;c>>2]|=e[a]<<24-a%4*8;t.call(this,i,n)}else t.apply(this,arguments)};n.prototype=e}}(),i.lib.WordArray)},8214:function(e,t,n){var i;e.exports=(i=n(8249),function(e){var t=i,n=t.lib,a=n.WordArray,s=n.Hasher,r=t.algo,o=[];!function(){for(var t=0;t<64;t++)o[t]=4294967296*e.abs(e.sin(t+1))|0}();var l=r.MD5=s.extend({_doReset:function(){this._hash=new a.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(e,t){for(var n=0;n<16;n++){var i=t+n,a=e[i];e[i]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8)}var s=this._hash.words,r=e[t+0],l=e[t+1],p=e[t+2],f=e[t+3],m=e[t+4],g=e[t+5],v=e[t+6],y=e[t+7],w=e[t+8],k=e[t+9],_=e[t+10],S=e[t+11],b=e[t+12],E=e[t+13],x=e[t+14],D=e[t+15],T=s[0],N=s[1],C=s[2],V=s[3];T=c(T,N,C,V,r,7,o[0]),V=c(V,T,N,C,l,12,o[1]),C=c(C,V,T,N,p,17,o[2]),N=c(N,C,V,T,f,22,o[3]),T=c(T,N,C,V,m,7,o[4]),V=c(V,T,N,C,g,12,o[5]),C=c(C,V,T,N,v,17,o[6]),N=c(N,C,V,T,y,22,o[7]),T=c(T,N,C,V,w,7,o[8]),V=c(V,T,N,C,k,12,o[9]),C=c(C,V,T,N,_,17,o[10]),N=c(N,C,V,T,S,22,o[11]),T=c(T,N,C,V,b,7,o[12]),V=c(V,T,N,C,E,12,o[13]),C=c(C,V,T,N,x,17,o[14]),T=u(T,N=c(N,C,V,T,D,22,o[15]),C,V,l,5,o[16]),V=u(V,T,N,C,v,9,o[17]),C=u(C,V,T,N,S,14,o[18]),N=u(N,C,V,T,r,20,o[19]),T=u(T,N,C,V,g,5,o[20]),V=u(V,T,N,C,_,9,o[21]),C=u(C,V,T,N,D,14,o[22]),N=u(N,C,V,T,m,20,o[23]),T=u(T,N,C,V,k,5,o[24]),V=u(V,T,N,C,x,9,o[25]),C=u(C,V,T,N,f,14,o[26]),N=u(N,C,V,T,w,20,o[27]),T=u(T,N,C,V,E,5,o[28]),V=u(V,T,N,C,p,9,o[29]),C=u(C,V,T,N,y,14,o[30]),T=d(T,N=u(N,C,V,T,b,20,o[31]),C,V,g,4,o[32]),V=d(V,T,N,C,w,11,o[33]),C=d(C,V,T,N,S,16,o[34]),N=d(N,C,V,T,x,23,o[35]),T=d(T,N,C,V,l,4,o[36]),V=d(V,T,N,C,m,11,o[37]),C=d(C,V,T,N,y,16,o[38]),N=d(N,C,V,T,_,23,o[39]),T=d(T,N,C,V,E,4,o[40]),V=d(V,T,N,C,r,11,o[41]),C=d(C,V,T,N,f,16,o[42]),N=d(N,C,V,T,v,23,o[43]),T=d(T,N,C,V,k,4,o[44]),V=d(V,T,N,C,b,11,o[45]),C=d(C,V,T,N,D,16,o[46]),T=h(T,N=d(N,C,V,T,p,23,o[47]),C,V,r,6,o[48]),V=h(V,T,N,C,y,10,o[49]),C=h(C,V,T,N,x,15,o[50]),N=h(N,C,V,T,g,21,o[51]),T=h(T,N,C,V,b,6,o[52]),V=h(V,T,N,C,f,10,o[53]),C=h(C,V,T,N,_,15,o[54]),N=h(N,C,V,T,l,21,o[55]),T=h(T,N,C,V,w,6,o[56]),V=h(V,T,N,C,D,10,o[57]),C=h(C,V,T,N,v,15,o[58]),N=h(N,C,V,T,E,21,o[59]),T=h(T,N,C,V,m,6,o[60]),V=h(V,T,N,C,S,10,o[61]),C=h(C,V,T,N,p,15,o[62]),N=h(N,C,V,T,k,21,o[63]),s[0]=s[0]+T|0,s[1]=s[1]+N|0,s[2]=s[2]+C|0,s[3]=s[3]+V|0},_doFinalize:function(){var t=this._data,n=t.words,i=8*this._nDataBytes,a=8*t.sigBytes;n[a>>>5]|=128<<24-a%32;var s=e.floor(i/4294967296),r=i;n[15+(a+64>>>9<<4)]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),n[14+(a+64>>>9<<4)]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8),t.sigBytes=4*(n.length+1),this._process();for(var o=this._hash,l=o.words,c=0;c<4;c++){var u=l[c];l[c]=16711935&(u<<8|u>>>24)|4278255360&(u<<24|u>>>8)}return o},clone:function(){var e=s.clone.call(this);return e._hash=this._hash.clone(),e}});function c(e,t,n,i,a,s,r){var o=e+(t&n|~t&i)+a+r;return(o<>>32-s)+t}function u(e,t,n,i,a,s,r){var o=e+(t&i|n&~i)+a+r;return(o<>>32-s)+t}function d(e,t,n,i,a,s,r){var o=e+(t^n^i)+a+r;return(o<>>32-s)+t}function h(e,t,n,i,a,s,r){var o=e+(n^(t|~i))+a+r;return(o<>>32-s)+t}t.MD5=s._createHelper(l),t.HmacMD5=s._createHmacHelper(l)}(Math),i.MD5)},8568:function(e,t,n){var i;e.exports=(i=n(8249),n(5109),i.mode.CFB=function(){var e=i.lib.BlockCipherMode.extend();function t(e,t,n,i){var a,s=this._iv;s?(a=s.slice(0),this._iv=void 0):a=this._prevBlock,i.encryptBlock(a,0);for(var r=0;r>24&255)){var t=e>>16&255,n=e>>8&255,i=255&e;255===t?(t=0,255===n?(n=0,255===i?i=0:++i):++n):++t,e=0,e+=t<<16,e+=n<<8,e+=i}else e+=1<<24;return e}function n(e){return 0===(e[0]=t(e[0]))&&(e[1]=t(e[1])),e}var a=e.Encryptor=e.extend({processBlock:function(e,t){var i=this._cipher,a=i.blockSize,s=this._iv,r=this._counter;s&&(r=this._counter=s.slice(0),this._iv=void 0),n(r);var o=r.slice(0);i.encryptBlock(o,0);for(var l=0;l>>2]|=a<<24-s%4*8,e.sigBytes+=a},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},i.pad.Ansix923)},2807:function(e,t,n){var i;e.exports=(i=n(8249),n(5109),i.pad.Iso10126={pad:function(e,t){var n=4*t,a=n-e.sigBytes%n;e.concat(i.lib.WordArray.random(a-1)).concat(i.lib.WordArray.create([a<<24],1))},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},i.pad.Iso10126)},1077:function(e,t,n){var i;e.exports=(i=n(8249),n(5109),i.pad.Iso97971={pad:function(e,t){e.concat(i.lib.WordArray.create([2147483648],1)),i.pad.ZeroPadding.pad(e,t)},unpad:function(e){i.pad.ZeroPadding.unpad(e),e.sigBytes--}},i.pad.Iso97971)},6991:function(e,t,n){var i;e.exports=(i=n(8249),n(5109),i.pad.NoPadding={pad:function(){},unpad:function(){}},i.pad.NoPadding)},6475:function(e,t,n){var i;e.exports=(i=n(8249),n(5109),i.pad.ZeroPadding={pad:function(e,t){var n=4*t;e.clamp(),e.sigBytes+=n-(e.sigBytes%n||n)},unpad:function(e){var t=e.words,n=e.sigBytes-1;for(n=e.sigBytes-1;n>=0;n--)if(t[n>>>2]>>>24-n%4*8&255){e.sigBytes=n+1;break}}},i.pad.ZeroPadding)},2112:function(e,t,n){var i,a,s,r,o,l,c,u,d;e.exports=(d=n(8249),n(2783),n(9824),a=(i=d).lib,s=a.Base,r=a.WordArray,o=i.algo,l=o.SHA1,c=o.HMAC,u=o.PBKDF2=s.extend({cfg:s.extend({keySize:4,hasher:l,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var n=this.cfg,i=c.create(n.hasher,e),a=r.create(),s=r.create([1]),o=a.words,l=s.words,u=n.keySize,d=n.iterations;o.length>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],i=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];this._b=0;for(var a=0;a<4;a++)l.call(this);for(a=0;a<8;a++)i[a]^=n[a+4&7];if(t){var s=t.words,r=s[0],o=s[1],c=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8),u=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),d=c>>>16|4294901760&u,h=u<<16|65535&c;for(i[0]^=c,i[1]^=d,i[2]^=u,i[3]^=h,i[4]^=c,i[5]^=d,i[6]^=u,i[7]^=h,a=0;a<4;a++)l.call(this)}},_doProcessBlock:function(e,t){var n=this._X;l.call(this),a[0]=n[0]^n[5]>>>16^n[3]<<16,a[1]=n[2]^n[7]>>>16^n[5]<<16,a[2]=n[4]^n[1]>>>16^n[7]<<16,a[3]=n[6]^n[3]>>>16^n[1]<<16;for(var i=0;i<4;i++)a[i]=16711935&(a[i]<<8|a[i]>>>24)|4278255360&(a[i]<<24|a[i]>>>8),e[t+i]^=a[i]},blockSize:4,ivSize:2});function l(){for(var e=this._X,t=this._C,n=0;n<8;n++)s[n]=t[n];for(t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0>>0?1:0)|0,this._b=t[7]>>>0>>0?1:0,n=0;n<8;n++){var i=e[n]+t[n],a=65535&i,o=i>>>16,l=((a*a>>>17)+a*o>>>15)+o*o,c=((4294901760&i)*i|0)+((65535&i)*i|0);r[n]=l^c}e[0]=r[0]+(r[7]<<16|r[7]>>>16)+(r[6]<<16|r[6]>>>16)|0,e[1]=r[1]+(r[0]<<8|r[0]>>>24)+r[7]|0,e[2]=r[2]+(r[1]<<16|r[1]>>>16)+(r[0]<<16|r[0]>>>16)|0,e[3]=r[3]+(r[2]<<8|r[2]>>>24)+r[1]|0,e[4]=r[4]+(r[3]<<16|r[3]>>>16)+(r[2]<<16|r[2]>>>16)|0,e[5]=r[5]+(r[4]<<8|r[4]>>>24)+r[3]|0,e[6]=r[6]+(r[5]<<16|r[5]>>>16)+(r[4]<<16|r[4]>>>16)|0,e[7]=r[7]+(r[6]<<8|r[6]>>>24)+r[5]|0}e.RabbitLegacy=t._createHelper(o)}(),i.RabbitLegacy)},4454:function(e,t,n){var i;e.exports=(i=n(8249),n(8269),n(8214),n(888),n(5109),function(){var e=i,t=e.lib.StreamCipher,n=e.algo,a=[],s=[],r=[],o=n.Rabbit=t.extend({_doReset:function(){for(var e=this._key.words,t=this.cfg.iv,n=0;n<4;n++)e[n]=16711935&(e[n]<<8|e[n]>>>24)|4278255360&(e[n]<<24|e[n]>>>8);var i=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],a=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];for(this._b=0,n=0;n<4;n++)l.call(this);for(n=0;n<8;n++)a[n]^=i[n+4&7];if(t){var s=t.words,r=s[0],o=s[1],c=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8),u=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),d=c>>>16|4294901760&u,h=u<<16|65535&c;for(a[0]^=c,a[1]^=d,a[2]^=u,a[3]^=h,a[4]^=c,a[5]^=d,a[6]^=u,a[7]^=h,n=0;n<4;n++)l.call(this)}},_doProcessBlock:function(e,t){var n=this._X;l.call(this),a[0]=n[0]^n[5]>>>16^n[3]<<16,a[1]=n[2]^n[7]>>>16^n[5]<<16,a[2]=n[4]^n[1]>>>16^n[7]<<16,a[3]=n[6]^n[3]>>>16^n[1]<<16;for(var i=0;i<4;i++)a[i]=16711935&(a[i]<<8|a[i]>>>24)|4278255360&(a[i]<<24|a[i]>>>8),e[t+i]^=a[i]},blockSize:4,ivSize:2});function l(){for(var e=this._X,t=this._C,n=0;n<8;n++)s[n]=t[n];for(t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0>>0?1:0)|0,this._b=t[7]>>>0>>0?1:0,n=0;n<8;n++){var i=e[n]+t[n],a=65535&i,o=i>>>16,l=((a*a>>>17)+a*o>>>15)+o*o,c=((4294901760&i)*i|0)+((65535&i)*i|0);r[n]=l^c}e[0]=r[0]+(r[7]<<16|r[7]>>>16)+(r[6]<<16|r[6]>>>16)|0,e[1]=r[1]+(r[0]<<8|r[0]>>>24)+r[7]|0,e[2]=r[2]+(r[1]<<16|r[1]>>>16)+(r[0]<<16|r[0]>>>16)|0,e[3]=r[3]+(r[2]<<8|r[2]>>>24)+r[1]|0,e[4]=r[4]+(r[3]<<16|r[3]>>>16)+(r[2]<<16|r[2]>>>16)|0,e[5]=r[5]+(r[4]<<8|r[4]>>>24)+r[3]|0,e[6]=r[6]+(r[5]<<16|r[5]>>>16)+(r[4]<<16|r[4]>>>16)|0,e[7]=r[7]+(r[6]<<8|r[6]>>>24)+r[5]|0}e.Rabbit=t._createHelper(o)}(),i.Rabbit)},1857:function(e,t,n){var i;e.exports=(i=n(8249),n(8269),n(8214),n(888),n(5109),function(){var e=i,t=e.lib.StreamCipher,n=e.algo,a=n.RC4=t.extend({_doReset:function(){for(var e=this._key,t=e.words,n=e.sigBytes,i=this._S=[],a=0;a<256;a++)i[a]=a;a=0;for(var s=0;a<256;a++){var r=a%n,o=t[r>>>2]>>>24-r%4*8&255;s=(s+i[a]+o)%256;var l=i[a];i[a]=i[s],i[s]=l}this._i=this._j=0},_doProcessBlock:function(e,t){e[t]^=s.call(this)},keySize:8,ivSize:0});function s(){for(var e=this._S,t=this._i,n=this._j,i=0,a=0;a<4;a++){n=(n+e[t=(t+1)%256])%256;var s=e[t];e[t]=e[n],e[n]=s,i|=e[(e[t]+e[n])%256]<<24-8*a}return this._i=t,this._j=n,i}e.RC4=t._createHelper(a);var r=n.RC4Drop=a.extend({cfg:a.cfg.extend({drop:192}),_doReset:function(){a._doReset.call(this);for(var e=this.cfg.drop;e>0;e--)s.call(this)}});e.RC4Drop=t._createHelper(r)}(),i.RC4)},706:function(e,t,n){var i;e.exports=(i=n(8249),function(e){var t=i,n=t.lib,a=n.WordArray,s=n.Hasher,r=t.algo,o=a.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),l=a.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),c=a.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),u=a.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),d=a.create([0,1518500249,1859775393,2400959708,2840853838]),h=a.create([1352829926,1548603684,1836072691,2053994217,0]),p=r.RIPEMD160=s.extend({_doReset:function(){this._hash=a.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var n=0;n<16;n++){var i=t+n,a=e[i];e[i]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8)}var s,r,p,k,_,S,b,E,x,D,T,N=this._hash.words,C=d.words,V=h.words,I=o.words,B=l.words,A=c.words,M=u.words;for(S=s=N[0],b=r=N[1],E=p=N[2],x=k=N[3],D=_=N[4],n=0;n<80;n+=1)T=s+e[t+I[n]]|0,T+=n<16?f(r,p,k)+C[0]:n<32?m(r,p,k)+C[1]:n<48?g(r,p,k)+C[2]:n<64?v(r,p,k)+C[3]:y(r,p,k)+C[4],T=(T=w(T|=0,A[n]))+_|0,s=_,_=k,k=w(p,10),p=r,r=T,T=S+e[t+B[n]]|0,T+=n<16?y(b,E,x)+V[0]:n<32?v(b,E,x)+V[1]:n<48?g(b,E,x)+V[2]:n<64?m(b,E,x)+V[3]:f(b,E,x)+V[4],T=(T=w(T|=0,M[n]))+D|0,S=D,D=x,x=w(E,10),E=b,b=T;T=N[1]+p+x|0,N[1]=N[2]+k+D|0,N[2]=N[3]+_+S|0,N[3]=N[4]+s+b|0,N[4]=N[0]+r+E|0,N[0]=T},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,i=8*e.sigBytes;t[i>>>5]|=128<<24-i%32,t[14+(i+64>>>9<<4)]=16711935&(n<<8|n>>>24)|4278255360&(n<<24|n>>>8),e.sigBytes=4*(t.length+1),this._process();for(var a=this._hash,s=a.words,r=0;r<5;r++){var o=s[r];s[r]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8)}return a},clone:function(){var e=s.clone.call(this);return e._hash=this._hash.clone(),e}});function f(e,t,n){return e^t^n}function m(e,t,n){return e&t|~e&n}function g(e,t,n){return(e|~t)^n}function v(e,t,n){return e&n|t&~n}function y(e,t,n){return e^(t|~n)}function w(e,t){return e<>>32-t}t.RIPEMD160=s._createHelper(p),t.HmacRIPEMD160=s._createHmacHelper(p)}(),i.RIPEMD160)},2783:function(e,t,n){var i,a,s,r,o,l,c,u;e.exports=(u=n(8249),a=(i=u).lib,s=a.WordArray,r=a.Hasher,o=i.algo,l=[],c=o.SHA1=r.extend({_doReset:function(){this._hash=new s.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var n=this._hash.words,i=n[0],a=n[1],s=n[2],r=n[3],o=n[4],c=0;c<80;c++){if(c<16)l[c]=0|e[t+c];else{var u=l[c-3]^l[c-8]^l[c-14]^l[c-16];l[c]=u<<1|u>>>31}var d=(i<<5|i>>>27)+o+l[c];d+=c<20?1518500249+(a&s|~a&r):c<40?1859775393+(a^s^r):c<60?(a&s|a&r|s&r)-1894007588:(a^s^r)-899497514,o=r,r=s,s=a<<30|a>>>2,a=i,i=d}n[0]=n[0]+i|0,n[1]=n[1]+a|0,n[2]=n[2]+s|0,n[3]=n[3]+r|0,n[4]=n[4]+o|0},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,i=8*e.sigBytes;return t[i>>>5]|=128<<24-i%32,t[14+(i+64>>>9<<4)]=Math.floor(n/4294967296),t[15+(i+64>>>9<<4)]=n,e.sigBytes=4*t.length,this._process(),this._hash},clone:function(){var e=r.clone.call(this);return e._hash=this._hash.clone(),e}}),i.SHA1=r._createHelper(c),i.HmacSHA1=r._createHmacHelper(c),u.SHA1)},7792:function(e,t,n){var i,a,s,r,o,l;e.exports=(l=n(8249),n(2153),a=(i=l).lib.WordArray,s=i.algo,r=s.SHA256,o=s.SHA224=r.extend({_doReset:function(){this._hash=new a.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var e=r._doFinalize.call(this);return e.sigBytes-=4,e}}),i.SHA224=r._createHelper(o),i.HmacSHA224=r._createHmacHelper(o),l.SHA224)},2153:function(e,t,n){var i;e.exports=(i=n(8249),function(e){var t=i,n=t.lib,a=n.WordArray,s=n.Hasher,r=t.algo,o=[],l=[];!function(){function t(t){for(var n=e.sqrt(t),i=2;i<=n;i++)if(!(t%i))return!1;return!0}function n(e){return 4294967296*(e-(0|e))|0}for(var i=2,a=0;a<64;)t(i)&&(a<8&&(o[a]=n(e.pow(i,.5))),l[a]=n(e.pow(i,1/3)),a++),i++}();var c=[],u=r.SHA256=s.extend({_doReset:function(){this._hash=new a.init(o.slice(0))},_doProcessBlock:function(e,t){for(var n=this._hash.words,i=n[0],a=n[1],s=n[2],r=n[3],o=n[4],u=n[5],d=n[6],h=n[7],p=0;p<64;p++){if(p<16)c[p]=0|e[t+p];else{var f=c[p-15],m=(f<<25|f>>>7)^(f<<14|f>>>18)^f>>>3,g=c[p-2],v=(g<<15|g>>>17)^(g<<13|g>>>19)^g>>>10;c[p]=m+c[p-7]+v+c[p-16]}var y=i&a^i&s^a&s,w=(i<<30|i>>>2)^(i<<19|i>>>13)^(i<<10|i>>>22),k=h+((o<<26|o>>>6)^(o<<21|o>>>11)^(o<<7|o>>>25))+(o&u^~o&d)+l[p]+c[p];h=d,d=u,u=o,o=r+k|0,r=s,s=a,a=i,i=k+(w+y)|0}n[0]=n[0]+i|0,n[1]=n[1]+a|0,n[2]=n[2]+s|0,n[3]=n[3]+r|0,n[4]=n[4]+o|0,n[5]=n[5]+u|0,n[6]=n[6]+d|0,n[7]=n[7]+h|0},_doFinalize:function(){var t=this._data,n=t.words,i=8*this._nDataBytes,a=8*t.sigBytes;return n[a>>>5]|=128<<24-a%32,n[14+(a+64>>>9<<4)]=e.floor(i/4294967296),n[15+(a+64>>>9<<4)]=i,t.sigBytes=4*n.length,this._process(),this._hash},clone:function(){var e=s.clone.call(this);return e._hash=this._hash.clone(),e}});t.SHA256=s._createHelper(u),t.HmacSHA256=s._createHmacHelper(u)}(Math),i.SHA256)},3327:function(e,t,n){var i;e.exports=(i=n(8249),n(4938),function(e){var t=i,n=t.lib,a=n.WordArray,s=n.Hasher,r=t.x64.Word,o=t.algo,l=[],c=[],u=[];!function(){for(var e=1,t=0,n=0;n<24;n++){l[e+5*t]=(n+1)*(n+2)/2%64;var i=(2*e+3*t)%5;e=t%5,t=i}for(e=0;e<5;e++)for(t=0;t<5;t++)c[e+5*t]=t+(2*e+3*t)%5*5;for(var a=1,s=0;s<24;s++){for(var o=0,d=0,h=0;h<7;h++){if(1&a){var p=(1<>>24)|4278255360&(s<<24|s>>>8),r=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8),(N=n[a]).high^=r,N.low^=s}for(var o=0;o<24;o++){for(var h=0;h<5;h++){for(var p=0,f=0,m=0;m<5;m++)p^=(N=n[h+5*m]).high,f^=N.low;var g=d[h];g.high=p,g.low=f}for(h=0;h<5;h++){var v=d[(h+4)%5],y=d[(h+1)%5],w=y.high,k=y.low;for(p=v.high^(w<<1|k>>>31),f=v.low^(k<<1|w>>>31),m=0;m<5;m++)(N=n[h+5*m]).high^=p,N.low^=f}for(var _=1;_<25;_++){var S=(N=n[_]).high,b=N.low,E=l[_];E<32?(p=S<>>32-E,f=b<>>32-E):(p=b<>>64-E,f=S<>>64-E);var x=d[c[_]];x.high=p,x.low=f}var D=d[0],T=n[0];for(D.high=T.high,D.low=T.low,h=0;h<5;h++)for(m=0;m<5;m++){var N=n[_=h+5*m],C=d[_],V=d[(h+1)%5+5*m],I=d[(h+2)%5+5*m];N.high=C.high^~V.high&I.high,N.low=C.low^~V.low&I.low}N=n[0];var B=u[o];N.high^=B.high,N.low^=B.low}},_doFinalize:function(){var t=this._data,n=t.words;this._nDataBytes;var i=8*t.sigBytes,s=32*this.blockSize;n[i>>>5]|=1<<24-i%32,n[(e.ceil((i+1)/s)*s>>>5)-1]|=128,t.sigBytes=4*n.length,this._process();for(var r=this._state,o=this.cfg.outputLength/8,l=o/8,c=[],u=0;u>>24)|4278255360&(h<<24|h>>>8),p=16711935&(p<<8|p>>>24)|4278255360&(p<<24|p>>>8),c.push(p),c.push(h)}return new a.init(c,o)},clone:function(){for(var e=s.clone.call(this),t=e._state=this._state.slice(0),n=0;n<25;n++)t[n]=t[n].clone();return e}});t.SHA3=s._createHelper(h),t.HmacSHA3=s._createHmacHelper(h)}(Math),i.SHA3)},7460:function(e,t,n){var i,a,s,r,o,l,c,u;e.exports=(u=n(8249),n(4938),n(34),a=(i=u).x64,s=a.Word,r=a.WordArray,o=i.algo,l=o.SHA512,c=o.SHA384=l.extend({_doReset:function(){this._hash=new r.init([new s.init(3418070365,3238371032),new s.init(1654270250,914150663),new s.init(2438529370,812702999),new s.init(355462360,4144912697),new s.init(1731405415,4290775857),new s.init(2394180231,1750603025),new s.init(3675008525,1694076839),new s.init(1203062813,3204075428)])},_doFinalize:function(){var e=l._doFinalize.call(this);return e.sigBytes-=16,e}}),i.SHA384=l._createHelper(c),i.HmacSHA384=l._createHmacHelper(c),u.SHA384)},34:function(e,t,n){var i;e.exports=(i=n(8249),n(4938),function(){var e=i,t=e.lib.Hasher,n=e.x64,a=n.Word,s=n.WordArray,r=e.algo;function o(){return a.create.apply(a,arguments)}var l=[o(1116352408,3609767458),o(1899447441,602891725),o(3049323471,3964484399),o(3921009573,2173295548),o(961987163,4081628472),o(1508970993,3053834265),o(2453635748,2937671579),o(2870763221,3664609560),o(3624381080,2734883394),o(310598401,1164996542),o(607225278,1323610764),o(1426881987,3590304994),o(1925078388,4068182383),o(2162078206,991336113),o(2614888103,633803317),o(3248222580,3479774868),o(3835390401,2666613458),o(4022224774,944711139),o(264347078,2341262773),o(604807628,2007800933),o(770255983,1495990901),o(1249150122,1856431235),o(1555081692,3175218132),o(1996064986,2198950837),o(2554220882,3999719339),o(2821834349,766784016),o(2952996808,2566594879),o(3210313671,3203337956),o(3336571891,1034457026),o(3584528711,2466948901),o(113926993,3758326383),o(338241895,168717936),o(666307205,1188179964),o(773529912,1546045734),o(1294757372,1522805485),o(1396182291,2643833823),o(1695183700,2343527390),o(1986661051,1014477480),o(2177026350,1206759142),o(2456956037,344077627),o(2730485921,1290863460),o(2820302411,3158454273),o(3259730800,3505952657),o(3345764771,106217008),o(3516065817,3606008344),o(3600352804,1432725776),o(4094571909,1467031594),o(275423344,851169720),o(430227734,3100823752),o(506948616,1363258195),o(659060556,3750685593),o(883997877,3785050280),o(958139571,3318307427),o(1322822218,3812723403),o(1537002063,2003034995),o(1747873779,3602036899),o(1955562222,1575990012),o(2024104815,1125592928),o(2227730452,2716904306),o(2361852424,442776044),o(2428436474,593698344),o(2756734187,3733110249),o(3204031479,2999351573),o(3329325298,3815920427),o(3391569614,3928383900),o(3515267271,566280711),o(3940187606,3454069534),o(4118630271,4000239992),o(116418474,1914138554),o(174292421,2731055270),o(289380356,3203993006),o(460393269,320620315),o(685471733,587496836),o(852142971,1086792851),o(1017036298,365543100),o(1126000580,2618297676),o(1288033470,3409855158),o(1501505948,4234509866),o(1607167915,987167468),o(1816402316,1246189591)],c=[];!function(){for(var e=0;e<80;e++)c[e]=o()}();var u=r.SHA512=t.extend({_doReset:function(){this._hash=new s.init([new a.init(1779033703,4089235720),new a.init(3144134277,2227873595),new a.init(1013904242,4271175723),new a.init(2773480762,1595750129),new a.init(1359893119,2917565137),new a.init(2600822924,725511199),new a.init(528734635,4215389547),new a.init(1541459225,327033209)])},_doProcessBlock:function(e,t){for(var n=this._hash.words,i=n[0],a=n[1],s=n[2],r=n[3],o=n[4],u=n[5],d=n[6],h=n[7],p=i.high,f=i.low,m=a.high,g=a.low,v=s.high,y=s.low,w=r.high,k=r.low,_=o.high,S=o.low,b=u.high,E=u.low,x=d.high,D=d.low,T=h.high,N=h.low,C=p,V=f,I=m,B=g,A=v,M=y,P=w,R=k,O=_,L=S,F=b,j=E,U=x,$=D,z=T,H=N,q=0;q<80;q++){var K,J,W=c[q];if(q<16)J=W.high=0|e[t+2*q],K=W.low=0|e[t+2*q+1];else{var Y=c[q-15],G=Y.high,Z=Y.low,Q=(G>>>1|Z<<31)^(G>>>8|Z<<24)^G>>>7,X=(Z>>>1|G<<31)^(Z>>>8|G<<24)^(Z>>>7|G<<25),ee=c[q-2],te=ee.high,ne=ee.low,ie=(te>>>19|ne<<13)^(te<<3|ne>>>29)^te>>>6,ae=(ne>>>19|te<<13)^(ne<<3|te>>>29)^(ne>>>6|te<<26),se=c[q-7],re=se.high,oe=se.low,le=c[q-16],ce=le.high,ue=le.low;J=(J=(J=Q+re+((K=X+oe)>>>0>>0?1:0))+ie+((K+=ae)>>>0>>0?1:0))+ce+((K+=ue)>>>0>>0?1:0),W.high=J,W.low=K}var de,he=O&F^~O&U,pe=L&j^~L&$,fe=C&I^C&A^I&A,me=V&B^V&M^B&M,ge=(C>>>28|V<<4)^(C<<30|V>>>2)^(C<<25|V>>>7),ve=(V>>>28|C<<4)^(V<<30|C>>>2)^(V<<25|C>>>7),ye=(O>>>14|L<<18)^(O>>>18|L<<14)^(O<<23|L>>>9),we=(L>>>14|O<<18)^(L>>>18|O<<14)^(L<<23|O>>>9),ke=l[q],_e=ke.high,Se=ke.low,be=z+ye+((de=H+we)>>>0>>0?1:0),Ee=ve+me;z=U,H=$,U=F,$=j,F=O,j=L,O=P+(be=(be=(be=be+he+((de+=pe)>>>0>>0?1:0))+_e+((de+=Se)>>>0>>0?1:0))+J+((de+=K)>>>0>>0?1:0))+((L=R+de|0)>>>0>>0?1:0)|0,P=A,R=M,A=I,M=B,I=C,B=V,C=be+(ge+fe+(Ee>>>0>>0?1:0))+((V=de+Ee|0)>>>0>>0?1:0)|0}f=i.low=f+V,i.high=p+C+(f>>>0>>0?1:0),g=a.low=g+B,a.high=m+I+(g>>>0>>0?1:0),y=s.low=y+M,s.high=v+A+(y>>>0>>0?1:0),k=r.low=k+R,r.high=w+P+(k>>>0>>0?1:0),S=o.low=S+L,o.high=_+O+(S>>>0>>0?1:0),E=u.low=E+j,u.high=b+F+(E>>>0>>0?1:0),D=d.low=D+$,d.high=x+U+(D>>>0<$>>>0?1:0),N=h.low=N+H,h.high=T+z+(N>>>0>>0?1:0)},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,i=8*e.sigBytes;return t[i>>>5]|=128<<24-i%32,t[30+(i+128>>>10<<5)]=Math.floor(n/4294967296),t[31+(i+128>>>10<<5)]=n,e.sigBytes=4*t.length,this._process(),this._hash.toX32()},clone:function(){var e=t.clone.call(this);return e._hash=this._hash.clone(),e},blockSize:32});e.SHA512=t._createHelper(u),e.HmacSHA512=t._createHmacHelper(u)}(),i.SHA512)},4253:function(e,t,n){var i;e.exports=(i=n(8249),n(8269),n(8214),n(888),n(5109),function(){var e=i,t=e.lib,n=t.WordArray,a=t.BlockCipher,s=e.algo,r=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],o=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],l=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],c=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],u=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],d=s.DES=a.extend({_doReset:function(){for(var e=this._key.words,t=[],n=0;n<56;n++){var i=r[n]-1;t[n]=e[i>>>5]>>>31-i%32&1}for(var a=this._subKeys=[],s=0;s<16;s++){var c=a[s]=[],u=l[s];for(n=0;n<24;n++)c[n/6|0]|=t[(o[n]-1+u)%28]<<31-n%6,c[4+(n/6|0)]|=t[28+(o[n+24]-1+u)%28]<<31-n%6;for(c[0]=c[0]<<1|c[0]>>>31,n=1;n<7;n++)c[n]=c[n]>>>4*(n-1)+3;c[7]=c[7]<<5|c[7]>>>27}var d=this._invSubKeys=[];for(n=0;n<16;n++)d[n]=a[15-n]},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._subKeys)},decryptBlock:function(e,t){this._doCryptBlock(e,t,this._invSubKeys)},_doCryptBlock:function(e,t,n){this._lBlock=e[t],this._rBlock=e[t+1],h.call(this,4,252645135),h.call(this,16,65535),p.call(this,2,858993459),p.call(this,8,16711935),h.call(this,1,1431655765);for(var i=0;i<16;i++){for(var a=n[i],s=this._lBlock,r=this._rBlock,o=0,l=0;l<8;l++)o|=c[l][((r^a[l])&u[l])>>>0];this._lBlock=r,this._rBlock=s^o}var d=this._lBlock;this._lBlock=this._rBlock,this._rBlock=d,h.call(this,1,1431655765),p.call(this,8,16711935),p.call(this,2,858993459),h.call(this,16,65535),h.call(this,4,252645135),e[t]=this._lBlock,e[t+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});function h(e,t){var n=(this._lBlock>>>e^this._rBlock)&t;this._rBlock^=n,this._lBlock^=n<>>e^this._lBlock)&t;this._lBlock^=n,this._rBlock^=n<192.");var t=e.slice(0,2),i=e.length<4?e.slice(0,2):e.slice(2,4),a=e.length<6?e.slice(0,2):e.slice(4,6);this._des1=d.createEncryptor(n.create(t)),this._des2=d.createEncryptor(n.create(i)),this._des3=d.createEncryptor(n.create(a))},encryptBlock:function(e,t){this._des1.encryptBlock(e,t),this._des2.decryptBlock(e,t),this._des3.encryptBlock(e,t)},decryptBlock:function(e,t){this._des3.decryptBlock(e,t),this._des2.encryptBlock(e,t),this._des1.decryptBlock(e,t)},keySize:6,ivSize:2,blockSize:2});e.TripleDES=a._createHelper(f)}(),i.TripleDES)},4938:function(e,t,n){var i,a,s,r,o,l,c;e.exports=(c=n(8249),s=(a=c).lib,r=s.Base,o=s.WordArray,(l=a.x64={}).Word=r.extend({init:function(e,t){this.high=e,this.low=t}}),l.WordArray=r.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=t!=i?t:8*e.length},toX32:function(){for(var e=this.words,t=e.length,n=[],i=0;i{var n;Object.defineProperty(t,"__esModule",{value:!0}),t.ErrorCode=void 0,(n=t.ErrorCode||(t.ErrorCode={}))[n.SUCCESS=0]="SUCCESS",n[n.CLIENT_ID_NOT_FOUND=1]="CLIENT_ID_NOT_FOUND",n[n.OPERATION_TOO_OFTEN=2]="OPERATION_TOO_OFTEN",n[n.REPEAT_MESSAGE=3]="REPEAT_MESSAGE",n[n.TIME_OUT=4]="TIME_OUT"},9021:function(e,t,n){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};const a=i(n(6893)),s=i(n(7555)),r=i(n(6379)),o=i(n(529));var l,c;(c=l||(l={})).setDebugMode=function(e){o.default.debugMode=e,o.default.info(`setDebugMode: ${e}`)},c.init=function(e){try{s.default.init(e)}catch(t){o.default.error("init error",t)}},c.setSocketServer=function(e){try{if(!e.url)throw new Error("invalid url");if(!e.key||!e.keyId)throw new Error("invalid key or keyId");r.default.socketUrl=e.url,r.default.publicKeyId=e.keyId,r.default.publicKey=e.key}catch(t){o.default.error("setSocketServer error",t)}},c.enableSocket=function(e){try{s.default.enableSocket(e)}catch(t){o.default.error("enableSocket error",t)}},c.getVersion=function(){return a.default.SDK_VERSION},e.exports=l},9478:function(e,t,n){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const a=i(n(529)),s=i(n(496)),r=i(n(3555)),o=i(n(1929)),l=i(n(4379)),c=i(n(6899)),u=i(n(776)),d=i(n(2002)),h=i(n(5807)),p=i(n(9704)),f=i(n(6545)),m=i(n(3680)),g=i(n(7706)),v=i(n(4486)),y=i(n(5867)),w=i(n(7006));var k;!function(e){let t,n,i;function k(){let e;try{"undefined"!=typeof uni?(t=new f.default,n=new m.default,i=new g.default):"undefined"!=typeof tt?(t=new d.default,n=new h.default,i=new p.default):"undefined"!=typeof my?(t=new s.default,n=new r.default,i=new o.default):"undefined"!=typeof wx?(t=new v.default,n=new y.default,i=new w.default):"undefined"!=typeof window&&(t=new l.default,n=new c.default,i=new u.default)}catch(k){a.default.error(`init am error: ${k}`),e=k}if(t&&n&&i||"undefined"!=typeof window&&(t=new l.default,n=new c.default,i=new u.default),!t||!n||!i)throw new Error(`init am error: no api impl found, ${e}`)}e.getDevice=function(){return t||k(),t},e.getStorage=function(){return n||k(),n},e.getWebSocket=function(){return i||k(),i}}(k||(k={})),t.default=k},4685:function(e,t,n){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const a=i(n(9478));var s,r;(r=s||(s={})).os=function(){return a.default.getDevice().os()},r.osVersion=function(){return a.default.getDevice().osVersion()},r.model=function(){return a.default.getDevice().model()},r.brand=function(){return a.default.getDevice().brand()},r.platform=function(){return a.default.getDevice().platform()},r.platformVersion=function(){return a.default.getDevice().platformVersion()},r.platformId=function(){return a.default.getDevice().platformId()},r.language=function(){return a.default.getDevice().language()},r.userAgent=function(){let e=a.default.getDevice().userAgent;return e?e():""},r.getNetworkType=function(e){a.default.getDevice().getNetworkType(e)},r.onNetworkStatusChange=function(e){a.default.getDevice().onNetworkStatusChange(e)},t.default=s},7002:function(e,t,n){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const a=i(n(6379)),s=i(n(1386)),r=i(n(4054)),o=n(2918),l=i(n(7167)),c=i(n(529)),u=i(n(9478)),d=i(n(8506));var h;!function(e){let t,n=!1,i=!1,h=!1,p=[],f=0;function m(){return n&&i}function g(t=0){e.allowReconnect&&w()&&setTimeout((function(){v()}),t)}function v(){if(e.allowReconnect=!0,!w())return;if(!function(){var e=p.length;let t=(new Date).getTime();if(e>0)for(var n=e-1;n>=0;n--)if(t-p[n]>5e3){p.splice(0,n+1);break}return e=p.length,p.push(t),!(e>=10)||(c.default.error("connect failed, connection limit reached"),!1)}())return;h=!0;let n=a.default.socketUrl;try{let e=d.default.getSync(d.default.KEY_REDIRECT_SERVER,"");if(e){let t=o.RedirectServerData.parse(e),i=t.addressList[0].split(","),a=i[0],s=Number(i[1]);(new Date).getTime()-t.time<1e3*s&&(n=a)}}catch(s){}t=u.default.getWebSocket().connect({url:n,success:function(){i=!0,y()},fail:function(){i=!1,_(),g(100)}}),t.onOpen(S),t.onClose(x),t.onError(E),t.onMessage(b)}function y(){i&&n&&(h=!1,s.default.create().send(),l.default.getInstance().start())}function w(){return a.default.networkConnected?h?(c.default.warn("connecting"),!1):!m()||(c.default.warn("already connected"),!1):(c.default.error("connect failed, network is not available"),!1)}function k(e=""){null==t||t.close({code:1e3,reason:e,success:function(e){},fail:function(e){}}),_()}function _(e){var t;i=!1,n=!1,h=!1,l.default.getInstance().cancel(),a.default.online&&(a.default.online=!1,null===(t=a.default.onlineState)||void 0===t||t.call(a.default.onlineState,{online:a.default.online}))}e.allowReconnect=!0,e.isAvailable=m,e.enableSocket=function(t){let n=(new Date).getTime();n-f<1e3?c.default.warn(`enableSocket ${t} fail: this function can only be called once a second`):(f=n,e.allowReconnect=t,t?e.reconnect(10):e.close(`enableSocket ${t}`))},e.reconnect=g,e.connect=v,e.close=k,e.send=function(e){if(!n||!n)throw new Error("socket not connect");null==t||t.send({data:e,success:function(e){},fail:function(e){}})};let S=function(e){n=!0,y()},b=function(e){try{e.data,l.default.getInstance().refresh(),r.default.receiveMessage(e.data)}catch(t){}},E=function(e){k("socket error")},x=function(e){_()}}(h||(h={})),t.default=h},8506:function(e,t,n){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const a=i(n(9478));var s,r;(r=s||(s={})).KEY_APPID="getui_appid",r.KEY_CID="getui_cid",r.KEY_SESSION="getui_session",r.KEY_REGID="getui_regid",r.KEY_SOCKET_URL="getui_socket_url",r.KEY_DEVICE_ID="getui_deviceid",r.KEY_ADD_PHONE_INFO_TIME="getui_api_time",r.KEY_BIND_ALIAS_TIME="getui_ba_time",r.KEY_SET_TAG_TIME="getui_st_time",r.KEY_REDIRECT_SERVER="getui_redirect_server",r.KEY_LAST_CONNECT_TIME="getui_last_connect_time",r.set=function(e){a.default.getStorage().set(e)},r.setSync=function(e,t){a.default.getStorage().setSync(e,t)},r.get=function(e){a.default.getStorage().get(e)},r.getSync=function(e,t){let n=a.default.getStorage().getSync(e);return n||t},t.default=s},496:function(e,t,n){const i=(this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(n(3854));e.exports=class{constructor(){this.systemInfo=my.getSystemInfoSync()}os(){return i.default.getStr(this.systemInfo,"platform")}osVersion(){return i.default.getStr(this.systemInfo,"system")}model(){return i.default.getStr(this.systemInfo,"model")}brand(){return i.default.getStr(this.systemInfo,"brand")}platform(){return"MP-ALIPAY"}platformVersion(){return i.default.getStr(this.systemInfo,"app")+" "+i.default.getStr(this.systemInfo,"version")}platformId(){return my.getAppIdSync()}language(){return i.default.getStr(this.systemInfo,"language")}getNetworkType(e){my.getNetworkType({success:t=>{var n;null===(n=e.success)||void 0===n||n.call(e.success,{networkType:t.networkType})},fail:()=>{var t;null===(t=e.fail)||void 0===t||t.call(e.fail,"")}})}onNetworkStatusChange(e){my.onNetworkStatusChange(e)}}},3555:e=>{e.exports=class{set(e){my.setStorage({key:e.key,data:e.data,success:e.success,fail:e.fail})}setSync(e,t){my.setStorageSync({key:e,data:t})}get(e){my.getStorage({key:e.key,success:e.success,fail:e.fail,complete:e.complete})}getSync(e){return my.getStorageSync({key:e}).data}}},1929:e=>{e.exports=class{connect(e){return my.connectSocket({url:e.url,header:e.header,method:e.method,success:e.success,fail:e.fail,complete:e.complete}),{onOpen:my.onSocketOpen,send:my.sendSocketMessage,onMessage:e=>{my.onSocketMessage.call(my.onSocketMessage,(t=>{e.call(e,{data:t?t.data:""})}))},onError:my.onSocketError,onClose:my.onSocketClose,close:my.closeSocket}}}},4379:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=class{os(){let e=window.navigator.userAgent.toLowerCase();return e.indexOf("android")>0||e.indexOf("adr")>0?"android":e.match(/\(i[^;]+;( u;)? cpu.+mac os x/)?"ios":e.indexOf("windows")>0||e.indexOf("win32")>0||e.indexOf("win64")>0?"windows":e.indexOf("macintosh")>0||e.indexOf("mac os")>0?"mac os":e.indexOf("linux")>0||e.indexOf("unix")>0?"linux":"other"}osVersion(){let e=window.navigator.userAgent.toLowerCase(),t=e.substring(e.indexOf(";")+1).trim();return t.indexOf(";")>0?t.substring(0,t.indexOf(";")).trim():t.substring(0,t.indexOf(")")).trim()}model(){return""}brand(){return""}platform(){return"H5"}platformVersion(){return""}platformId(){return""}language(){return window.navigator.language}userAgent(){return window.navigator.userAgent}getNetworkType(e){var t;null===(t=e.success)||void 0===t||t.call(e.success,{networkType:window.navigator.onLine?"unknown":"none"})}onNetworkStatusChange(e){}}},6899:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=class{set(e){var t;window.localStorage.setItem(e.key,e.data),null===(t=e.success)||void 0===t||t.call(e.success,"")}setSync(e,t){window.localStorage.setItem(e,t)}get(e){var t;let n=window.localStorage.getItem(e.key);null===(t=e.success)||void 0===t||t.call(e.success,n)}getSync(e){return window.localStorage.getItem(e)}}},776:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=class{connect(e){let t=new WebSocket(e.url);return{send:e=>{var n,i;try{t.send(e.data),null===(n=e.success)||void 0===n||n.call(e.success,{errMsg:""})}catch(a){null===(i=e.fail)||void 0===i||i.call(e.fail,{errMsg:a+""})}},close:e=>{var n,i;try{t.close(e.code,e.reason),null===(n=e.success)||void 0===n||n.call(e.success,{errMsg:""})}catch(a){null===(i=e.fail)||void 0===i||i.call(e.fail,{errMsg:a+""})}},onOpen:n=>{t.onopen=t=>{var i;null===(i=e.success)||void 0===i||i.call(e.success,""),n({header:""})}},onError:n=>{t.onerror=t=>{var i;null===(i=e.fail)||void 0===i||i.call(e.fail,""),n({errMsg:""})}},onMessage:e=>{t.onmessage=t=>{e({data:t.data})}},onClose:e=>{t.onclose=t=>{e(t)}}}}}},2002:function(e,t,n){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const a=i(n(3854));t.default=class{constructor(){this.systemInfo=tt.getSystemInfoSync()}os(){return a.default.getStr(this.systemInfo,"platform")}osVersion(){return a.default.getStr(this.systemInfo,"system")}model(){return a.default.getStr(this.systemInfo,"model")}brand(){return a.default.getStr(this.systemInfo,"brand")}platform(){return"MP-TOUTIAO"}platformVersion(){return a.default.getStr(this.systemInfo,"appName")+" "+a.default.getStr(this.systemInfo,"version")}language(){return""}platformId(){return""}getNetworkType(e){tt.getNetworkType(e)}onNetworkStatusChange(e){tt.onNetworkStatusChange(e)}}},5807:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=class{set(e){tt.setStorage(e)}setSync(e,t){tt.setStorageSync(e,t)}get(e){tt.getStorage(e)}getSync(e){return tt.getStorageSync(e)}}},9704:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=class{connect(e){let t=tt.connectSocket({url:e.url,header:e.header,protocols:e.protocols,success:e.success,fail:e.fail,complete:e.complete});return{onOpen:t.onOpen,send:t.send,onMessage:t.onMessage,onError:t.onError,onClose:t.onClose,close:t.close}}}},6545:function(e,t,n){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const a=i(n(3854));t.default=class{constructor(){try{this.systemInfo=uni.getSystemInfoSync(),this.accountInfo=uni.getAccountInfoSync()}catch(e){}}os(){return a.default.getStr(this.systemInfo,"platform")}model(){return a.default.getStr(this.systemInfo,"model")}brand(){return a.default.getStr(this.systemInfo,"brand")}osVersion(){return a.default.getStr(this.systemInfo,"system")}platform(){let e="";return e="APP-PLUS","APP-PLUS"}platformVersion(){return this.systemInfo?this.systemInfo.version:""}platformId(){return this.accountInfo?this.accountInfo.miniProgram.appId:""}language(){var e;return(null===(e=this.systemInfo)||void 0===e?void 0:e.language)?this.systemInfo.language:""}userAgent(){return window?window.navigator.userAgent:""}getNetworkType(e){uni.getNetworkType(e)}onNetworkStatusChange(e){uni.onNetworkStatusChange(e)}}},3680:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=class{set(e){uni.setStorage(e)}setSync(e,t){uni.setStorageSync(e,t)}get(e){uni.getStorage(e)}getSync(e){return uni.getStorageSync(e)}}},7706:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=class{connect(e){let t=uni.connectSocket(e);return{send:e=>{null==t||t.send(e)},close:e=>{null==t||t.close(e)},onOpen:e=>{null==t||t.onOpen(e)},onError:e=>{null==t||t.onError(e)},onMessage:e=>{null==t||t.onMessage(e)},onClose:e=>{null==t||t.onClose(e)}}}}},4486:function(e,t,n){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const a=i(n(3854));t.default=class{constructor(){this.systemInfo=wx.getSystemInfoSync()}os(){return a.default.getStr(this.systemInfo,"platform")}osVersion(){return a.default.getStr(this.systemInfo,"system")}model(){return a.default.getStr(this.systemInfo,"model")}brand(){return a.default.getStr(this.systemInfo,"brand")}platform(){return"MP-WEIXIN"}platformVersion(){return a.default.getStr(this.systemInfo,"version")}language(){return a.default.getStr(this.systemInfo,"language")}platformId(){return wx.canIUse("getAccountInfoSync")?wx.getAccountInfoSync().miniProgram.appId:""}getNetworkType(e){wx.getNetworkType({success:t=>{var n;null===(n=e.success)||void 0===n||n.call(e.success,{networkType:t.networkType})},fail:e.fail})}onNetworkStatusChange(e){wx.onNetworkStatusChange(e)}}},5867:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=class{set(e){wx.setStorage(e)}setSync(e,t){wx.setStorageSync(e,t)}get(e){wx.getStorage(e)}getSync(e){return wx.getStorageSync(e)}}},7006:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=class{connect(e){let t=wx.connectSocket({url:e.url,header:e.header,protocols:e.protocols,success:e.success,fail:e.fail,complete:e.complete});return{onOpen:t.onOpen,send:t.send,onMessage:t.onMessage,onError:t.onError,onClose:t.onClose,close:t.close}}}},6893:(e,t)=>{var n,i;Object.defineProperty(t,"__esModule",{value:!0}),(i=n||(n={})).SDK_VERSION="GTMP-2.0.4.dcloud",i.DEFAULT_SOCKET_URL="wss://wshzn.gepush.com:5223/nws",i.SOCKET_PROTOCOL_VERSION="1.0",i.SERVER_PUBLIC_KEY="MHwwDQYJKoZIhvcNAQEBBQADawAwaAJhAJp1rROuvBF7sBSnvLaesj2iFhMcY8aXyLvpnNLKs2wjL3JmEnyr++SlVa35liUlzi83tnAFkn3A9GB7pHBNzawyUkBh8WUhq5bnFIkk2RaDa6+5MpG84DEv52p7RR+aWwIDAQAB",i.SERVER_PUBLIC_KEY_ID="69d747c4b9f641baf4004be4297e9f3b",i.ID_U_2_G=!0,t.default=n},7555:function(e,t,n){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const a=i(n(7002)),s=i(n(529)),r=i(n(6379));class o{static init(e){var t;if(!this.inited)try{this.checkAppid(e.appid),this.inited=!0,s.default.info(`init: appid=${e.appid}`),r.default.init(e),a.default.connect()}catch(n){throw this.inited=!1,null===(t=e.onError)||void 0===t||t.call(e.onError,{error:n}),n}}static enableSocket(e){this.checkInit(),a.default.enableSocket(e)}static checkInit(){if(!this.inited)throw new Error("not init, please invoke init method firstly")}static checkAppid(e){if(null==e||null==e||""==e.trim())throw new Error(`invalid appid ${e}`)}}o.inited=!1,t.default=o},6379:function(e,t,n){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const a=i(n(6667)),s=i(n(8506)),r=i(n(6893)),o=i(n(7002)),l=i(n(529)),c=i(n(4685)),u=i(n(2323));class d{static init(e){var t;r.default.ID_U_2_G?this.appid=u.default.to_getui(e.appid):this.appid=e.appid,this.onError=e.onError,this.onClientId=e.onClientId,this.onlineState=e.onlineState,this.onPushMsg=e.onPushMsg,this.appid!=s.default.getSync(s.default.KEY_APPID,this.appid)&&(l.default.info("appid changed, clear session and cid"),s.default.setSync(s.default.KEY_CID,""),s.default.setSync(s.default.KEY_SESSION,"")),s.default.setSync(s.default.KEY_APPID,this.appid),this.cid=s.default.getSync(s.default.KEY_CID,this.cid),this.cid&&(null===(t=this.onClientId)||void 0===t||t.call(this.onClientId,{cid:d.cid})),this.session=s.default.getSync(s.default.KEY_SESSION,this.session),this.deviceId=s.default.getSync(s.default.KEY_DEVICE_ID,this.deviceId),this.regId=s.default.getSync(s.default.KEY_REGID,this.regId),this.regId||(this.regId=this.createRegId(),s.default.set({key:s.default.KEY_REGID,data:this.regId})),this.socketUrl=s.default.getSync(s.default.KEY_SOCKET_URL,this.socketUrl);let n=this;c.default.getNetworkType({success:e=>{n.networkType=e.networkType,n.networkConnected="none"!=n.networkType&&""!=n.networkType}}),c.default.onNetworkStatusChange((e=>{n.networkConnected=e.isConnected,n.networkType=e.networkType,n.networkConnected&&o.default.reconnect(100)}))}static createRegId(){return`M-V${a.default.md5Hex(this.getUuid())}-${(new Date).getTime()}`}static getUuid(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){let t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}))}}d.appid="",d.cid="",d.regId="",d.session="",d.deviceId="",d.packetId=1,d.online=!1,d.socketUrl=r.default.DEFAULT_SOCKET_URL,d.publicKeyId=r.default.SERVER_PUBLIC_KEY_ID,d.publicKey=r.default.SERVER_PUBLIC_KEY,d.lastAliasTime=0,d.networkConnected=!0,d.networkType="none",t.default=d},9586:function(e,t,n){var i,a,s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=s(n(661)),o=n(4198),l=s(n(6379));class c extends r.default{constructor(){super(...arguments),this.actionMsgData=new u}static initActionMsg(e,...t){return super.initMsg(e),e.command=r.default.Command.CLIENT_MSG,e.data=e.actionMsgData=u.create(),e}static parseActionMsg(e,t){return super.parseMsg(e,t),e.actionMsgData=u.parse(e.data),e}send(){setTimeout((()=>{var e;(c.waitingLoginMsgMap.has(this.actionMsgData.msgId)||c.waitingResponseMsgMap.has(this.actionMsgData.msgId))&&(c.waitingLoginMsgMap.delete(this.actionMsgData.msgId),c.waitingResponseMsgMap.delete(this.actionMsgData.msgId),null===(e=this.callback)||void 0===e||e.call(this.callback,{resultCode:o.ErrorCode.TIME_OUT,message:"waiting time out"}))}),1e4),l.default.online?(this.actionMsgData.msgAction!=c.ClientAction.RECEIVED&&c.waitingResponseMsgMap.set(this.actionMsgData.msgId,this),super.send()):c.waitingLoginMsgMap.set(this.actionMsgData.msgId,this)}receive(){}static sendWaitingMessages(){let e,t=this.waitingLoginMsgMap.keys();for(;e=t.next(),!e.done;){let t=this.waitingLoginMsgMap.get(e.value);this.waitingLoginMsgMap.delete(e.value),null==t||t.send()}}static getWaitingResponseMessage(e){return c.waitingResponseMsgMap.get(e)}static removeWaitingResponseMessage(e){let t=c.waitingResponseMsgMap.get(e);return t&&c.waitingResponseMsgMap.delete(e),t}}c.ServerAction=((i=class{}).PUSH_MESSAGE="pushmessage",i.REDIRECT_SERVER="redirect_server",i.ADD_PHONE_INFO_RESULT="addphoneinfo",i.SET_MODE_RESULT="set_mode_result",i.SET_TAG_RESULT="settag_result",i.BIND_ALIAS_RESULT="response_bind",i.UNBIND_ALIAS_RESULT="response_unbind",i.FEED_BACK_RESULT="pushmessage_feedback",i.RECEIVED="received",i),c.ClientAction=((a=class{}).ADD_PHONE_INFO="addphoneinfo",a.SET_MODE="set_mode",a.FEED_BACK="pushmessage_feedback",a.SET_TAGS="set_tag",a.BIND_ALIAS="bind_alias",a.UNBIND_ALIAS="unbind_alias",a.RECEIVED="received",a),c.waitingLoginMsgMap=new Map,c.waitingResponseMsgMap=new Map;class u{constructor(){this.appId="",this.cid="",this.msgId="",this.msgAction="",this.msgData="",this.msgExtraData=""}static create(){let e=new u;return e.appId=l.default.appid,e.cid=l.default.cid,e.msgId=(2147483647&(new Date).getTime()).toString(),e}static parse(e){let t=new u,n=JSON.parse(e);return t.appId=n.appId,t.cid=n.cid,t.msgId=n.msgId,t.msgAction=n.msgAction,t.msgData=n.msgData,t.msgExtraData=n.msgExtraData,t}}t.default=c},4516:function(e,t,n){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const a=i(n(4685)),s=i(n(8506)),r=i(n(6893)),o=n(4198),l=i(n(9586)),c=i(n(6379));class u extends l.default{constructor(){super(...arguments),this.addPhoneInfoData=new d}static create(){let e=new u;return super.initActionMsg(e),e.callback=t=>{t.resultCode!=o.ErrorCode.SUCCESS&&t.resultCode!=o.ErrorCode.REPEAT_MESSAGE?setTimeout((function(){e.send()}),3e4):s.default.set({key:s.default.KEY_ADD_PHONE_INFO_TIME,data:(new Date).getTime()})},e.actionMsgData.msgAction=l.default.ClientAction.ADD_PHONE_INFO,e.addPhoneInfoData=d.create(),e.actionMsgData.msgData=JSON.stringify(e.addPhoneInfoData),e}send(){(new Date).getTime()-s.default.getSync(s.default.KEY_ADD_PHONE_INFO_TIME,0)<864e5||super.send()}}class d{constructor(){this.model="",this.brand="",this.system_version="",this.version="",this.deviceid="",this.type=""}static create(){let e=new d;return e.model=a.default.model(),e.brand=a.default.brand(),e.system_version=a.default.osVersion(),e.version=r.default.SDK_VERSION,e.device_token="",e.imei="",e.oaid="",e.mac="",e.idfa="",e.type="MINIPROGRAM",e.deviceid=`${e.type}-${c.default.deviceId}`,e.extra={os:a.default.os(),platform:a.default.platform(),platformVersion:a.default.platformVersion(),platformId:a.default.platformId(),language:a.default.language(),userAgent:a.default.userAgent()},e}}t.default=u},8723:function(e,t,n){var i,a,s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=s(n(6379)),o=n(4198),l=s(n(9586));class c extends l.default{constructor(){super(...arguments),this.feedbackData=new u}static create(e,t){let n=new c;return super.initActionMsg(n),n.callback=e=>{e.resultCode!=o.ErrorCode.SUCCESS&&e.resultCode!=o.ErrorCode.REPEAT_MESSAGE&&setTimeout((function(){n.send()}),3e4)},n.feedbackData=u.create(e,t),n.actionMsgData.msgAction=l.default.ClientAction.FEED_BACK,n.actionMsgData.msgData=JSON.stringify(n.feedbackData),n}send(){super.send()}}c.ActionId=((i=class{}).RECEIVE="0",i.MP_RECEIVE="210000",i.WEB_RECEIVE="220000",i.BEGIN="1",i),c.RESULT=((a=class{}).OK="ok",a);class u{constructor(){this.messageid="",this.appkey="",this.appid="",this.taskid="",this.actionid="",this.result="",this.timestamp=""}static create(e,t){let n=new u;return n.messageid=e.pushMessageData.messageid,n.appkey=e.pushMessageData.appKey,n.appid=r.default.appid,n.taskid=e.pushMessageData.taskId,n.actionid=t,n.result=c.RESULT.OK,n.timestamp=(new Date).getTime().toString(),n}}t.default=c},6362:function(e,t,n){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const a=i(n(661));class s extends a.default{static create(){let e=new s;return super.initMsg(e),e.command=a.default.Command.HEART_BEAT,e}}t.default=s},1386:function(e,t,n){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const a=i(n(6667)),s=i(n(6379)),r=i(n(661));class o extends r.default{constructor(){super(...arguments),this.keyNegotiateData=new l}static create(){let e=new o;return super.initMsg(e),e.command=r.default.Command.KEY_NEGOTIATE,a.default.resetKey(),e.data=e.keyNegotiateData=l.create(),e}send(){super.send()}}class l{constructor(){this.appId="",this.rsaPublicKeyId="",this.algorithm="",this.secretKey="",this.iv=""}static create(){let e=new l;return e.appId=s.default.appid,e.rsaPublicKeyId=s.default.publicKeyId,e.algorithm="AES",e.secretKey=a.default.getEncryptedSecretKey(),e.iv=a.default.getEncryptedIV(),e}}t.default=o},1280:function(e,t,n){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const a=i(n(661)),s=i(n(6667)),r=i(n(8858)),o=i(n(529)),l=i(n(6379));class c extends a.default{constructor(){super(...arguments),this.keyNegotiateResultData=new u}static parse(e){let t=new c;return super.parseMsg(t,e),t.keyNegotiateResultData=u.parse(t.data),t}receive(){var e,t;if(0!=this.keyNegotiateResultData.errorCode)return o.default.error(`key negotiate fail: ${this.data}`),void(null===(e=l.default.onError)||void 0===e||e.call(l.default.onError,{error:`key negotiate fail: ${this.data}`}));let n=this.keyNegotiateResultData.encryptType.split("/");if(!s.default.algorithmMap.has(n[0].trim().toLowerCase())||!s.default.modeMap.has(n[1].trim().toLowerCase())||!s.default.paddingMap.has(n[2].trim().toLowerCase()))return o.default.error(`key negotiate fail: ${this.data}`),void(null===(t=l.default.onError)||void 0===t||t.call(l.default.onError,{error:`key negotiate fail: ${this.data}`}));s.default.setEncryptParams(n[0].trim().toLowerCase(),n[1].trim().toLowerCase(),n[2].trim().toLowerCase()),r.default.create().send()}}class u{constructor(){this.errorCode=-1,this.errorMsg="",this.encryptType=""}static parse(e){let t=new u,n=JSON.parse(e);return t.errorCode=n.errorCode,t.errorMsg=n.errorMsg,t.encryptType=n.encryptType,t}}t.default=c},8858:function(e,t,n){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const a=i(n(6379)),s=i(n(6667)),r=i(n(661)),o=i(n(4534));class l extends r.default{constructor(){super(...arguments),this.loginData=new c}static create(){let e=new l;return super.initMsg(e),e.command=r.default.Command.LOGIN,e.data=e.loginData=c.create(),e}send(){this.loginData.session&&a.default.cid==s.default.md5Hex(this.loginData.session)?super.send():o.default.create().send()}}class c{constructor(){this.appId="",this.session=""}static create(){let e=new c;return e.appId=a.default.appid,e.session=a.default.session,e}}t.default=l},1606:function(e,t,n){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const a=i(n(8506)),s=i(n(661)),r=i(n(6379)),o=i(n(9586)),l=i(n(4516)),c=i(n(8858));class u extends s.default{constructor(){super(...arguments),this.loginResultData=new d}static parse(e){let t=new u;return super.parseMsg(t,e),t.loginResultData=d.parse(t.data),t}receive(){var e;if(0!=this.loginResultData.errorCode)return this.data,r.default.session=r.default.cid="",a.default.setSync(a.default.KEY_CID,""),a.default.setSync(a.default.KEY_SESSION,""),void c.default.create().send();r.default.online||(r.default.online=!0,null===(e=r.default.onlineState)||void 0===e||e.call(r.default.onlineState,{online:r.default.online})),o.default.sendWaitingMessages(),l.default.create().send()}}class d{constructor(){this.errorCode=-1,this.errorMsg="",this.session=""}static parse(e){let t=new d,n=JSON.parse(e);return t.errorCode=n.errorCode,t.errorMsg=n.errorMsg,t.session=n.session,t}}t.default=u},661:function(e,t,n){var i,a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=a(n(9593)),r=a(n(7002)),o=a(n(6893)),l=a(n(6379));class c{constructor(){this.version="",this.command=0,this.packetId=0,this.timeStamp=0,this.data="",this.signature=""}static initMsg(e,...t){return e.version=o.default.SOCKET_PROTOCOL_VERSION,e.command=0,e.timeStamp=(new Date).getTime(),e}static parseMsg(e,t){let n=JSON.parse(t);return e.version=n.version,e.command=n.command,e.packetId=n.packetId,e.timeStamp=n.timeStamp,e.data=n.data,e.signature=n.signature,e}stringify(){return JSON.stringify(this,["version","command","packetId","timeStamp","data","signature"])}send(){r.default.isAvailable()&&(this.packetId=l.default.packetId++,this.temp?this.data=this.temp:this.temp=this.data,this.data=JSON.stringify(this.data),this.stringify(),this.command!=c.Command.HEART_BEAT&&(s.default.sign(this),this.data&&this.command!=c.Command.KEY_NEGOTIATE&&s.default.encrypt(this)),r.default.send(this.stringify()))}}c.Command=((i=class{}).HEART_BEAT=0,i.KEY_NEGOTIATE=1,i.KEY_NEGOTIATE_RESULT=16,i.REGISTER=2,i.REGISTER_RESULT=32,i.LOGIN=3,i.LOGIN_RESULT=48,i.LOGOUT=4,i.LOGOUT_RESULT=64,i.CLIENT_MSG=5,i.SERVER_MSG=80,i.SERVER_CLOSE=96,i.REDIRECT_SERVER=112,i),t.default=c},9593:function(e,t,n){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const a=i(n(6667));var s,r;(r=s||(s={})).encrypt=function(e){e.data=a.default.encrypt(e.data)},r.decrypt=function(e){e.data=a.default.decrypt(e.data)},r.sign=function(e){e.signature=a.default.sha256(`${e.timeStamp}${e.packetId}${e.command}${e.data}`)},r.verify=function(e){let t=a.default.sha256(`${e.timeStamp}${e.packetId}${e.command}${e.data}`);if(e.signature!=t)throw new Error("msg signature vierfy failed")},t.default=s},4054:function(e,t,n){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const a=i(n(1280)),s=i(n(1606)),r=i(n(661)),o=i(n(1277)),l=i(n(910)),c=i(n(9538)),u=i(n(9479)),d=i(n(6755)),h=i(n(2918)),p=i(n(9586)),f=i(n(9510)),m=i(n(4626)),g=i(n(7562)),v=i(n(9593)),y=i(n(9586)),w=i(n(9519)),k=i(n(8947));t.default=class{static receiveMessage(e){let t=r.default.parseMsg(new r.default,e);if(t.command!=r.default.Command.HEART_BEAT)switch(t.command!=r.default.Command.KEY_NEGOTIATE_RESULT&&t.command!=r.default.Command.SERVER_CLOSE&&t.command!=r.default.Command.REDIRECT_SERVER&&v.default.decrypt(t),t.command!=r.default.Command.SERVER_CLOSE&&t.command!=r.default.Command.REDIRECT_SERVER&&v.default.verify(t),t.command){case r.default.Command.KEY_NEGOTIATE_RESULT:a.default.parse(t.stringify()).receive();break;case r.default.Command.REGISTER_RESULT:o.default.parse(t.stringify()).receive();break;case r.default.Command.LOGIN_RESULT:s.default.parse(t.stringify()).receive();break;case r.default.Command.SERVER_MSG:this.receiveActionMsg(t.stringify());break;case r.default.Command.SERVER_CLOSE:k.default.parse(t.stringify()).receive();break;case r.default.Command.REDIRECT_SERVER:h.default.parse(t.stringify()).receive()}}static receiveActionMsg(e){let t=y.default.parseActionMsg(new y.default,e);if(t.actionMsgData.msgAction!=p.default.ServerAction.RECEIVED&&t.actionMsgData.msgAction!=p.default.ServerAction.REDIRECT_SERVER){let e=JSON.parse(t.actionMsgData.msgData);w.default.create(e.id).send()}switch(t.actionMsgData.msgAction){case p.default.ServerAction.PUSH_MESSAGE:d.default.parse(e).receive();break;case p.default.ServerAction.ADD_PHONE_INFO_RESULT:l.default.parse(e).receive();break;case p.default.ServerAction.SET_MODE_RESULT:f.default.parse(e).receive();break;case p.default.ServerAction.SET_TAG_RESULT:m.default.parse(e).receive();break;case p.default.ServerAction.BIND_ALIAS_RESULT:c.default.parse(e).receive();break;case p.default.ServerAction.UNBIND_ALIAS_RESULT:g.default.parse(e).receive();break;case p.default.ServerAction.FEED_BACK_RESULT:u.default.parse(e).receive();break;case p.default.ServerAction.RECEIVED:w.default.parse(e).receive()}}}},9519:function(e,t,n){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const a=n(4198),s=i(n(6379)),r=i(n(9586));class o extends r.default{constructor(){super(...arguments),this.receivedData=new l}static create(e){let t=new o;return super.initActionMsg(t),t.callback=e=>{e.resultCode!=a.ErrorCode.SUCCESS&&e.resultCode!=a.ErrorCode.REPEAT_MESSAGE&&setTimeout((function(){t.send()}),3e3)},t.actionMsgData.msgAction=r.default.ClientAction.RECEIVED,t.receivedData=l.create(e),t.actionMsgData.msgData=JSON.stringify(t.receivedData),t}static parse(e){let t=new o;return super.parseActionMsg(t,e),t.receivedData=l.parse(t.data),t}receive(){var e;let t=r.default.getWaitingResponseMessage(this.actionMsgData.msgId);(t&&t.actionMsgData.msgAction==r.default.ClientAction.ADD_PHONE_INFO||t&&t.actionMsgData.msgAction==r.default.ClientAction.FEED_BACK)&&(r.default.removeWaitingResponseMessage(t.actionMsgData.msgId),null===(e=t.callback)||void 0===e||e.call(t.callback,{resultCode:a.ErrorCode.SUCCESS,message:"received"}))}send(){super.send()}}class l{constructor(){this.msgId="",this.cid=""}static create(e){let t=new l;return t.cid=s.default.cid,t.msgId=e,t}static parse(e){let t=new l,n=JSON.parse(e);return t.cid=n.cid,t.msgId=n.msgId,t}}t.default=o},2918:function(e,t,n){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.RedirectServerData=void 0;const a=i(n(7002)),s=i(n(8506)),r=i(n(661));class o extends r.default{constructor(){super(...arguments),this.redirectServerData=new l}static parse(e){let t=new o;return super.parseMsg(t,e),t.redirectServerData=l.parse(t.data),t}receive(){this.redirectServerData,s.default.setSync(s.default.KEY_REDIRECT_SERVER,JSON.stringify(this.redirectServerData)),a.default.close("redirect server"),a.default.reconnect(this.redirectServerData.delay)}}class l{constructor(){this.addressList=[],this.delay=0,this.loc="",this.conf="",this.time=0}static parse(e){let t=new l,n=JSON.parse(e);return t.addressList=n.addressList,t.delay=n.delay,t.loc=n.loc,t.conf=n.conf,t.time=n.time?n.time:(new Date).getTime(),t}}t.RedirectServerData=l,t.default=o},4534:function(e,t,n){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const a=i(n(6379)),s=i(n(661));class r extends s.default{constructor(){super(...arguments),this.registerData=new o}static create(){let e=new r;return super.initMsg(e),e.command=s.default.Command.REGISTER,e.data=e.registerData=o.create(),e}send(){super.send()}}class o{constructor(){this.appId="",this.regId=""}static create(){let e=new o;return e.appId=a.default.appid,e.regId=a.default.regId,e}}t.default=r},1277:function(e,t,n){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const a=i(n(661)),s=i(n(8506)),r=i(n(6379)),o=i(n(8858)),l=i(n(529));class c extends a.default{constructor(){super(...arguments),this.registerResultData=new u}static parse(e){let t=new c;return super.parseMsg(t,e),t.registerResultData=u.parse(t.data),t}receive(){var e,t;if(0!=this.registerResultData.errorCode||!this.registerResultData.cid||!this.registerResultData.session)return l.default.error(`register fail: ${this.data}`),void(null===(e=r.default.onError)||void 0===e||e.call(r.default.onError,{error:`register fail: ${this.data}`}));r.default.cid!=this.registerResultData.cid&&s.default.setSync(s.default.KEY_ADD_PHONE_INFO_TIME,0),r.default.cid=this.registerResultData.cid,null===(t=r.default.onClientId)||void 0===t||t.call(r.default.onClientId,{cid:r.default.cid}),s.default.set({key:s.default.KEY_CID,data:r.default.cid}),r.default.session=this.registerResultData.session,s.default.set({key:s.default.KEY_SESSION,data:r.default.session}),r.default.deviceId=this.registerResultData.deviceId,s.default.set({key:s.default.KEY_DEVICE_ID,data:r.default.deviceId}),o.default.create().send()}}class u{constructor(){this.errorCode=-1,this.errorMsg="",this.cid="",this.session="",this.deviceId="",this.regId=""}static parse(e){let t=new u,n=JSON.parse(e);return t.errorCode=n.errorCode,t.errorMsg=n.errorMsg,t.cid=n.cid,t.session=n.session,t.deviceId=n.deviceId,t.regId=n.regId,t}}t.default=c},8947:function(e,t,n){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const a=i(n(7002)),s=i(n(529)),r=i(n(661));class o extends r.default{constructor(){super(...arguments),this.serverCloseData=new l}static parse(e){let t=new o;return super.parseMsg(t,e),t.serverCloseData=l.parse(t.data),t}receive(){JSON.stringify(this.serverCloseData);let e=`server close ${this.serverCloseData.code}`;20==this.serverCloseData.code||23==this.serverCloseData.code||24==this.serverCloseData.code?(a.default.allowReconnect=!1,a.default.close(e)):21==this.serverCloseData.code?this.safeClose21(e):(a.default.allowReconnect=!0,a.default.close(e),a.default.reconnect(10))}safeClose21(e){try{if("undefined"!=typeof document&&document.hasFocus()&&"visible"==document.visibilityState)return a.default.allowReconnect=!0,a.default.close(e),void a.default.reconnect(10);a.default.allowReconnect=!1,a.default.close(e)}catch(t){s.default.error("ServerClose t1",t),a.default.allowReconnect=!1,a.default.close(`${e} error`)}}}class l{constructor(){this.code=-1,this.msg=""}static parse(e){let t=new l,n=JSON.parse(e);return t.code=n.code,t.msg=n.msg,t}}t.default=o},910:function(e,t,n){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const a=i(n(8506)),s=i(n(9586));class r extends s.default{constructor(){super(...arguments),this.addPhoneInfoResultData=new o}static parse(e){let t=new r;return super.parseActionMsg(t,e),t.addPhoneInfoResultData=o.parse(t.actionMsgData.msgData),t}receive(){var e;this.addPhoneInfoResultData;let t=s.default.removeWaitingResponseMessage(this.actionMsgData.msgId);t&&(null===(e=t.callback)||void 0===e||e.call(t.callback,{resultCode:this.addPhoneInfoResultData.errorCode,message:this.addPhoneInfoResultData.errorMsg})),a.default.set({key:a.default.KEY_ADD_PHONE_INFO_TIME,data:(new Date).getTime()})}}class o{constructor(){this.errorCode=-1,this.errorMsg=""}static parse(e){let t=new o,n=JSON.parse(e);return t.errorCode=n.errorCode,t.errorMsg=n.errorMsg,t}}t.default=r},9538:function(e,t,n){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const a=i(n(8506)),s=i(n(529)),r=i(n(9586));class o extends r.default{constructor(){super(...arguments),this.bindAliasResultData=new l}static parse(e){let t=new o;return super.parseActionMsg(t,e),t.bindAliasResultData=l.parse(t.actionMsgData.msgData),t}receive(){var e;s.default.info("bind alias result",this.bindAliasResultData);let t=r.default.removeWaitingResponseMessage(this.actionMsgData.msgId);t&&(null===(e=t.callback)||void 0===e||e.call(t.callback,{resultCode:this.bindAliasResultData.errorCode,message:this.bindAliasResultData.errorMsg})),a.default.set({key:a.default.KEY_BIND_ALIAS_TIME,data:(new Date).getTime()})}}class l{constructor(){this.errorCode=-1,this.errorMsg=""}static parse(e){let t=new l,n=JSON.parse(e);return t.errorCode=n.errorCode,t.errorMsg=n.errorMsg,t}}t.default=o},9479:function(e,t,n){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const a=n(4198),s=i(n(9586));class r extends s.default{constructor(){super(...arguments),this.feedbackResultData=new o}static parse(e){let t=new r;return super.parseActionMsg(t,e),t.feedbackResultData=o.parse(t.actionMsgData.msgData),t}receive(){var e;this.feedbackResultData;let t=s.default.removeWaitingResponseMessage(this.actionMsgData.msgId);t&&(null===(e=t.callback)||void 0===e||e.call(t.callback,{resultCode:a.ErrorCode.SUCCESS,message:"received"}))}}class o{constructor(){this.actionId="",this.taskId="",this.result=""}static parse(e){let t=new o,n=JSON.parse(e);return t.actionId=n.actionId,t.taskId=n.taskId,t.result=n.result,t}}t.default=r},6755:function(e,t,n){var i,a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=a(n(6379)),r=a(n(9586)),o=a(n(8723));class l extends r.default{constructor(){super(...arguments),this.pushMessageData=new c}static parse(e){let t=new l;return super.parseActionMsg(t,e),t.pushMessageData=c.parse(t.actionMsgData.msgData),t}receive(){var e;this.pushMessageData,this.pushMessageData.appId==s.default.appid&&this.pushMessageData.messageid&&this.pushMessageData.taskId||this.stringify(),o.default.create(this,o.default.ActionId.RECEIVE).send(),o.default.create(this,o.default.ActionId.MP_RECEIVE).send(),this.actionMsgData.msgExtraData&&s.default.onPushMsg&&(null===(e=s.default.onPushMsg)||void 0===e||e.call(s.default.onPushMsg,{message:this.actionMsgData.msgExtraData}))}}class c{constructor(){this.id="",this.appKey="",this.appId="",this.messageid="",this.taskId="",this.actionChain=[],this.cdnType=""}static parse(e){let t=new c,n=JSON.parse(e);return t.id=n.id,t.appKey=n.appKey,t.appId=n.appId,t.messageid=n.messageid,t.taskId=n.taskId,t.actionChain=n.actionChain,t.cdnType=n.cdnType,t}}(i=class{}).GO_TO="goto",i.TRANSMIT="transmit",t.default=l},9510:function(e,t,n){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const a=i(n(9586));class s extends a.default{constructor(){super(...arguments),this.setModeResultData=new r}static parse(e){let t=new s;return super.parseActionMsg(t,e),t.setModeResultData=r.parse(t.actionMsgData.msgData),t}receive(){var e;this.setModeResultData;let t=a.default.removeWaitingResponseMessage(this.actionMsgData.msgId);t&&(null===(e=t.callback)||void 0===e||e.call(t.callback,{resultCode:this.setModeResultData.errorCode,message:this.setModeResultData.errorMsg}))}}class r{constructor(){this.errorCode=-1,this.errorMsg=""}static parse(e){let t=new r,n=JSON.parse(e);return t.errorCode=n.errorCode,t.errorMsg=n.errorMsg,t}}t.default=s},4626:function(e,t,n){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const a=i(n(8506)),s=i(n(529)),r=i(n(9586));class o extends r.default{constructor(){super(...arguments),this.setTagResultData=new l}static parse(e){let t=new o;return super.parseActionMsg(t,e),t.setTagResultData=l.parse(t.actionMsgData.msgData),t}receive(){var e;s.default.info("set tag result",this.setTagResultData);let t=r.default.removeWaitingResponseMessage(this.actionMsgData.msgId);t&&(null===(e=t.callback)||void 0===e||e.call(t.callback,{resultCode:this.setTagResultData.errorCode,message:this.setTagResultData.errorMsg})),a.default.set({key:a.default.KEY_SET_TAG_TIME,data:(new Date).getTime()})}}class l{constructor(){this.errorCode=0,this.errorMsg=""}static parse(e){let t=new l,n=JSON.parse(e);return t.errorCode=n.errorCode,t.errorMsg=n.errorMsg,t}}t.default=o},7562:function(e,t,n){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const a=i(n(8506)),s=i(n(529)),r=i(n(9586));class o extends r.default{constructor(){super(...arguments),this.unbindAliasResultData=new l}static parse(e){let t=new o;return super.parseActionMsg(t,e),t.unbindAliasResultData=l.parse(t.actionMsgData.msgData),t}receive(){var e;s.default.info("unbind alias result",this.unbindAliasResultData);let t=r.default.removeWaitingResponseMessage(this.actionMsgData.msgId);t&&(null===(e=t.callback)||void 0===e||e.call(t.callback,{resultCode:this.unbindAliasResultData.errorCode,message:this.unbindAliasResultData.errorMsg})),a.default.set({key:a.default.KEY_BIND_ALIAS_TIME,data:(new Date).getTime()})}}class l{constructor(){this.errorCode=-1,this.errorMsg=""}static parse(e){let t=new l,n=JSON.parse(e);return t.errorCode=n.errorCode,t.errorMsg=n.errorMsg,t}}t.default=o},8227:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=class{constructor(e){this.delay=10,this.delay=e}start(){this.cancel();let e=this;this.timer=setInterval((function(){e.run()}),this.delay)}cancel(){this.timer&&clearInterval(this.timer)}}},7167:function(e,t,n){var i,a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=a(n(6362)),r=a(n(8227));class o extends r.default{static getInstance(){return o.InstanceHolder.instance}run(){s.default.create().send()}refresh(){this.delay=6e4,this.start()}}o.INTERVAL=6e4,o.InstanceHolder=((i=class{}).instance=new o(o.INTERVAL),i),t.default=o},2323:function(e,t,n){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const a=i(n(4736)),s=i(n(6667));var r;!function(e){let t=(0,a.default)("9223372036854775808");function n(e){e>=t&&(e=t.multiply(2).minus(e));let n="";for(;e>(0,a.default)(0);e=e.divide(62))n+="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".charAt(Number(e.divmod(62).remainder));return n}e.to_getui=function(e){let t=function(e){let t=function(e){let t=e.length;if(t%2!=0)return[];let n=new Array;for(let i=0;i{Object.defineProperty(t,"__esModule",{value:!0});class n{static info(...e){this.debugMode&&console.info("[GtPush]",e)}static warn(...e){console.warn("[GtPush]",e)}static error(...e){console.error("[GtPush]",e)}}n.debugMode=!1,t.default=n},3854:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=class{static getStr(e,t){try{return e&&void 0!==e[t]?e[t]:""}catch(n){}return""}}},2620:(e,t,n)=>{function i(e){return"0123456789abcdefghijklmnopqrstuvwxyz".charAt(e)}function a(e,t){return e&t}function s(e,t){return e|t}function r(e,t){return e^t}function o(e,t){return e&~t}function l(e){if(0==e)return-1;var t=0;return 0==(65535&e)&&(e>>=16,t+=16),0==(255&e)&&(e>>=8,t+=8),0==(15&e)&&(e>>=4,t+=4),0==(3&e)&&(e>>=2,t+=2),0==(1&e)&&++t,t}function c(e){for(var t=0;0!=e;)e&=e-1,++t;return t}n.r(t),n.d(t,{JSEncrypt:()=>ee,default:()=>te});var u,d="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function h(e){var t,n,i="";for(t=0;t+3<=e.length;t+=3)n=parseInt(e.substring(t,t+3),16),i+=d.charAt(n>>6)+d.charAt(63&n);for(t+1==e.length?(n=parseInt(e.substring(t,t+1),16),i+=d.charAt(n<<2)):t+2==e.length&&(n=parseInt(e.substring(t,t+2),16),i+=d.charAt(n>>2)+d.charAt((3&n)<<4));(3&i.length)>0;)i+="=";return i}var p,f=function(e){var t;if(void 0===u){var n="0123456789ABCDEF",i=" \f\n\r\t \u2028\u2029";for(u={},t=0;t<16;++t)u[n.charAt(t)]=t;for(n=n.toLowerCase(),t=10;t<16;++t)u[n.charAt(t)]=t;for(t=0;t=2?(a[a.length]=s,s=0,r=0):s<<=4}}if(r)throw new Error("Hex encoding incomplete: 4 bits missing");return a},m={decode:function(e){var t;if(void 0===p){var n="= \f\n\r\t \u2028\u2029";for(p=Object.create(null),t=0;t<64;++t)p["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(t)]=t;for(p["-"]=62,p._=63,t=0;t=4?(i[i.length]=a>>16,i[i.length]=a>>8&255,i[i.length]=255&a,a=0,s=0):a<<=6}}switch(s){case 1:throw new Error("Base64 encoding incomplete: at least 2 bits missing");case 2:i[i.length]=a>>10;break;case 3:i[i.length]=a>>16,i[i.length]=a>>8&255}return i},re:/-----BEGIN [^-]+-----([A-Za-z0-9+\/=\s]+)-----END [^-]+-----|begin-base64[^\n]+\n([A-Za-z0-9+\/=\s]+)====/,unarmor:function(e){var t=m.re.exec(e);if(t)if(t[1])e=t[1];else{if(!t[2])throw new Error("RegExp out of sync");e=t[2]}return m.decode(e)}},g=1e13,v=function(){function e(e){this.buf=[+e||0]}return e.prototype.mulAdd=function(e,t){var n,i,a=this.buf,s=a.length;for(n=0;n0&&(a[n]=t)},e.prototype.sub=function(e){var t,n,i=this.buf,a=i.length;for(t=0;t=0;--i)n+=(g+t[i]).toString().substring(1);return n},e.prototype.valueOf=function(){for(var e=this.buf,t=0,n=e.length-1;n>=0;--n)t=t*g+e[n];return t},e.prototype.simplify=function(){var e=this.buf;return 1==e.length?e[0]:this},e}(),y=/^(\d\d)(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])([01]\d|2[0-3])(?:([0-5]\d)(?:([0-5]\d)(?:[.,](\d{1,3}))?)?)?(Z|[-+](?:[0]\d|1[0-2])([0-5]\d)?)?$/,w=/^(\d\d\d\d)(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])([01]\d|2[0-3])(?:([0-5]\d)(?:([0-5]\d)(?:[.,](\d{1,3}))?)?)?(Z|[-+](?:[0]\d|1[0-2])([0-5]\d)?)?$/;function k(e,t){return e.length>t&&(e=e.substring(0,t)+"…"),e}var _,S=function(){function e(t,n){this.hexDigits="0123456789ABCDEF",t instanceof e?(this.enc=t.enc,this.pos=t.pos):(this.enc=t,this.pos=n)}return e.prototype.get=function(e){if(void 0===e&&(e=this.pos++),e>=this.enc.length)throw new Error("Requesting byte offset "+e+" on a stream of length "+this.enc.length);return"string"==typeof this.enc?this.enc.charCodeAt(e):this.enc[e]},e.prototype.hexByte=function(e){return this.hexDigits.charAt(e>>4&15)+this.hexDigits.charAt(15&e)},e.prototype.hexDump=function(e,t,n){for(var i="",a=e;a176)return!1}return!0},e.prototype.parseStringISO=function(e,t){for(var n="",i=e;i191&&a<224?String.fromCharCode((31&a)<<6|63&this.get(i++)):String.fromCharCode((15&a)<<12|(63&this.get(i++))<<6|63&this.get(i++))}return n},e.prototype.parseStringBMP=function(e,t){for(var n,i,a="",s=e;s127,s=a?255:0,r="";i==s&&++e4){for(r=i,n<<=3;0==(128&(+r^s));)r=+r<<1,--n;r="("+n+" bit)\n"}a&&(i-=256);for(var o=new v(i),l=e+1;l=l;--c)s+=o>>c&1?"1":"0";if(s.length>n)return a+k(s,n)}return a+s},e.prototype.parseOctetString=function(e,t,n){if(this.isASCII(e,t))return k(this.parseStringISO(e,t),n);var i=t-e,a="("+i+" byte)\n";i>(n/=2)&&(t=e+n);for(var s=e;sn&&(a+="…"),a},e.prototype.parseOID=function(e,t,n){for(var i="",a=new v,s=0,r=e;rn)return k(i,n);a=new v,s=0}}return s>0&&(i+=".incomplete"),i},e}(),b=function(){function e(e,t,n,i,a){if(!(i instanceof E))throw new Error("Invalid tag value.");this.stream=e,this.header=t,this.length=n,this.tag=i,this.sub=a}return e.prototype.typeName=function(){switch(this.tag.tagClass){case 0:switch(this.tag.tagNumber){case 0:return"EOC";case 1:return"BOOLEAN";case 2:return"INTEGER";case 3:return"BIT_STRING";case 4:return"OCTET_STRING";case 5:return"NULL";case 6:return"OBJECT_IDENTIFIER";case 7:return"ObjectDescriptor";case 8:return"EXTERNAL";case 9:return"REAL";case 10:return"ENUMERATED";case 11:return"EMBEDDED_PDV";case 12:return"UTF8String";case 16:return"SEQUENCE";case 17:return"SET";case 18:return"NumericString";case 19:return"PrintableString";case 20:return"TeletexString";case 21:return"VideotexString";case 22:return"IA5String";case 23:return"UTCTime";case 24:return"GeneralizedTime";case 25:return"GraphicString";case 26:return"VisibleString";case 27:return"GeneralString";case 28:return"UniversalString";case 30:return"BMPString"}return"Universal_"+this.tag.tagNumber.toString();case 1:return"Application_"+this.tag.tagNumber.toString();case 2:return"["+this.tag.tagNumber.toString()+"]";case 3:return"Private_"+this.tag.tagNumber.toString()}},e.prototype.content=function(e){if(void 0===this.tag)return null;void 0===e&&(e=1/0);var t=this.posContent(),n=Math.abs(this.length);if(!this.tag.isUniversal())return null!==this.sub?"("+this.sub.length+" elem)":this.stream.parseOctetString(t,t+n,e);switch(this.tag.tagNumber){case 1:return 0===this.stream.get(t)?"false":"true";case 2:return this.stream.parseInteger(t,t+n);case 3:return this.sub?"("+this.sub.length+" elem)":this.stream.parseBitString(t,t+n,e);case 4:return this.sub?"("+this.sub.length+" elem)":this.stream.parseOctetString(t,t+n,e);case 6:return this.stream.parseOID(t,t+n,e);case 16:case 17:return null!==this.sub?"("+this.sub.length+" elem)":"(no elem)";case 12:return k(this.stream.parseStringUTF(t,t+n),e);case 18:case 19:case 20:case 21:case 22:case 26:return k(this.stream.parseStringISO(t,t+n),e);case 30:return k(this.stream.parseStringBMP(t,t+n),e);case 23:case 24:return this.stream.parseTime(t,t+n,23==this.tag.tagNumber)}return null},e.prototype.toString=function(){return this.typeName()+"@"+this.stream.pos+"[header:"+this.header+",length:"+this.length+",sub:"+(null===this.sub?"null":this.sub.length)+"]"},e.prototype.toPrettyString=function(e){void 0===e&&(e="");var t=e+this.typeName()+" @"+this.stream.pos;if(this.length>=0&&(t+="+"),t+=this.length,this.tag.tagConstructed?t+=" (constructed)":!this.tag.isUniversal()||3!=this.tag.tagNumber&&4!=this.tag.tagNumber||null===this.sub||(t+=" (encapsulates)"),t+="\n",null!==this.sub){e+=" ";for(var n=0,i=this.sub.length;n6)throw new Error("Length over 48 bits not supported at position "+(e.pos-1));if(0===n)return null;t=0;for(var i=0;i>6,this.tagConstructed=0!=(32&t),this.tagNumber=31&t,31==this.tagNumber){var n=new v;do{t=e.get(),n.mulAdd(128,127&t)}while(128&t);this.tagNumber=n.simplify()}}return e.prototype.isUniversal=function(){return 0===this.tagClass},e.prototype.isEOC=function(){return 0===this.tagClass&&0===this.tagNumber},e}(),x=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997],D=(1<<26)/x[x.length-1],T=function(){function e(e,t,n){null!=e&&("number"==typeof e?this.fromNumber(e,t,n):null==t&&"string"!=typeof e?this.fromString(e,256):this.fromString(e,t))}return e.prototype.toString=function(e){if(this.s<0)return"-"+this.negate().toString(e);var t;if(16==e)t=4;else if(8==e)t=3;else if(2==e)t=1;else if(32==e)t=5;else{if(4!=e)return this.toRadix(e);t=2}var n,a=(1<0)for(l>l)>0&&(s=!0,r=i(n));o>=0;)l>(l+=this.DB-t)):(n=this[o]>>(l-=t)&a,l<=0&&(l+=this.DB,--o)),n>0&&(s=!0),s&&(r+=i(n));return s?r:"0"},e.prototype.negate=function(){var t=B();return e.ZERO.subTo(this,t),t},e.prototype.abs=function(){return this.s<0?this.negate():this},e.prototype.compareTo=function(e){var t=this.s-e.s;if(0!=t)return t;var n=this.t;if(0!=(t=n-e.t))return this.s<0?-t:t;for(;--n>=0;)if(0!=(t=this[n]-e[n]))return t;return 0},e.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+j(this[this.t-1]^this.s&this.DM)},e.prototype.mod=function(t){var n=B();return this.abs().divRemTo(t,null,n),this.s<0&&n.compareTo(e.ZERO)>0&&t.subTo(n,n),n},e.prototype.modPowInt=function(e,t){var n;return n=e<256||t.isEven()?new C(t):new V(t),this.exp(e,n)},e.prototype.clone=function(){var e=B();return this.copyTo(e),e},e.prototype.intValue=function(){if(this.s<0){if(1==this.t)return this[0]-this.DV;if(0==this.t)return-1}else{if(1==this.t)return this[0];if(0==this.t)return 0}return(this[1]&(1<<32-this.DB)-1)<>24},e.prototype.shortValue=function(){return 0==this.t?this.s:this[0]<<16>>16},e.prototype.signum=function(){return this.s<0?-1:this.t<=0||1==this.t&&this[0]<=0?0:1},e.prototype.toByteArray=function(){var e=this.t,t=[];t[0]=this.s;var n,i=this.DB-e*this.DB%8,a=0;if(e-- >0)for(i>i)!=(this.s&this.DM)>>i&&(t[a++]=n|this.s<=0;)i<8?(n=(this[e]&(1<>(i+=this.DB-8)):(n=this[e]>>(i-=8)&255,i<=0&&(i+=this.DB,--e)),0!=(128&n)&&(n|=-256),0==a&&(128&this.s)!=(128&n)&&++a,(a>0||n!=this.s)&&(t[a++]=n);return t},e.prototype.equals=function(e){return 0==this.compareTo(e)},e.prototype.min=function(e){return this.compareTo(e)<0?this:e},e.prototype.max=function(e){return this.compareTo(e)>0?this:e},e.prototype.and=function(e){var t=B();return this.bitwiseTo(e,a,t),t},e.prototype.or=function(e){var t=B();return this.bitwiseTo(e,s,t),t},e.prototype.xor=function(e){var t=B();return this.bitwiseTo(e,r,t),t},e.prototype.andNot=function(e){var t=B();return this.bitwiseTo(e,o,t),t},e.prototype.not=function(){for(var e=B(),t=0;t=this.t?0!=this.s:0!=(this[t]&1<1){var u=B();for(i.sqrTo(r[1],u);o<=c;)r[o]=B(),i.mulTo(u,r[o-2],r[o]),o+=2}var d,h,p=e.t-1,f=!0,m=B();for(a=j(e[p])-1;p>=0;){for(a>=l?d=e[p]>>a-l&c:(d=(e[p]&(1<0&&(d|=e[p-1]>>this.DB+a-l)),o=n;0==(1&d);)d>>=1,--o;if((a-=o)<0&&(a+=this.DB,--p),f)r[d].copyTo(s),f=!1;else{for(;o>1;)i.sqrTo(s,m),i.sqrTo(m,s),o-=2;o>0?i.sqrTo(s,m):(h=s,s=m,m=h),i.mulTo(m,r[d],s)}for(;p>=0&&0==(e[p]&1<=0?(i.subTo(a,i),n&&s.subTo(o,s),r.subTo(l,r)):(a.subTo(i,a),n&&o.subTo(s,o),l.subTo(r,l))}return 0!=a.compareTo(e.ONE)?e.ZERO:l.compareTo(t)>=0?l.subtract(t):l.signum()<0?(l.addTo(t,l),l.signum()<0?l.add(t):l):l},e.prototype.pow=function(e){return this.exp(e,new N)},e.prototype.gcd=function(e){var t=this.s<0?this.negate():this.clone(),n=e.s<0?e.negate():e.clone();if(t.compareTo(n)<0){var i=t;t=n,n=i}var a=t.getLowestSetBit(),s=n.getLowestSetBit();if(s<0)return t;for(a0&&(t.rShiftTo(s,t),n.rShiftTo(s,n));t.signum()>0;)(a=t.getLowestSetBit())>0&&t.rShiftTo(a,t),(a=n.getLowestSetBit())>0&&n.rShiftTo(a,n),t.compareTo(n)>=0?(t.subTo(n,t),t.rShiftTo(1,t)):(n.subTo(t,n),n.rShiftTo(1,n));return s>0&&n.lShiftTo(s,n),n},e.prototype.isProbablePrime=function(e){var t,n=this.abs();if(1==n.t&&n[0]<=x[x.length-1]){for(t=0;t=0;--t)e[t]=this[t];e.t=this.t,e.s=this.s},e.prototype.fromInt=function(e){this.t=1,this.s=e<0?-1:0,e>0?this[0]=e:e<-1?this[0]=e+this.DV:this.t=0},e.prototype.fromString=function(t,n){var i;if(16==n)i=4;else if(8==n)i=3;else if(256==n)i=8;else if(2==n)i=1;else if(32==n)i=5;else{if(4!=n)return void this.fromRadix(t,n);i=2}this.t=0,this.s=0;for(var a=t.length,s=!1,r=0;--a>=0;){var o=8==i?255&+t[a]:L(t,a);o<0?"-"==t.charAt(a)&&(s=!0):(s=!1,0==r?this[this.t++]=o:r+i>this.DB?(this[this.t-1]|=(o&(1<>this.DB-r):this[this.t-1]|=o<=this.DB&&(r-=this.DB))}8==i&&0!=(128&+t[0])&&(this.s=-1,r>0&&(this[this.t-1]|=(1<0&&this[this.t-1]==e;)--this.t},e.prototype.dlShiftTo=function(e,t){var n;for(n=this.t-1;n>=0;--n)t[n+e]=this[n];for(n=e-1;n>=0;--n)t[n]=0;t.t=this.t+e,t.s=this.s},e.prototype.drShiftTo=function(e,t){for(var n=e;n=0;--o)t[o+s+1]=this[o]>>i|r,r=(this[o]&a)<=0;--o)t[o]=0;t[s]=r,t.t=this.t+s+1,t.s=this.s,t.clamp()},e.prototype.rShiftTo=function(e,t){t.s=this.s;var n=Math.floor(e/this.DB);if(n>=this.t)t.t=0;else{var i=e%this.DB,a=this.DB-i,s=(1<>i;for(var r=n+1;r>i;i>0&&(t[this.t-n-1]|=(this.s&s)<>=this.DB;if(e.t>=this.DB;i+=this.s}else{for(i+=this.s;n>=this.DB;i-=e.s}t.s=i<0?-1:0,i<-1?t[n++]=this.DV+i:i>0&&(t[n++]=i),t.t=n,t.clamp()},e.prototype.multiplyTo=function(t,n){var i=this.abs(),a=t.abs(),s=i.t;for(n.t=s+a.t;--s>=0;)n[s]=0;for(s=0;s=0;)e[n]=0;for(n=0;n=t.DV&&(e[n+t.t]-=t.DV,e[n+t.t+1]=1)}e.t>0&&(e[e.t-1]+=t.am(n,t[n],e,2*n,0,1)),e.s=0,e.clamp()},e.prototype.divRemTo=function(t,n,i){var a=t.abs();if(!(a.t<=0)){var s=this.abs();if(s.t0?(a.lShiftTo(c,r),s.lShiftTo(c,i)):(a.copyTo(r),s.copyTo(i));var u=r.t,d=r[u-1];if(0!=d){var h=d*(1<1?r[u-2]>>this.F2:0),p=this.FV/h,f=(1<=0&&(i[i.t++]=1,i.subTo(y,i)),e.ONE.dlShiftTo(u,y),y.subTo(r,r);r.t=0;){var w=i[--g]==d?this.DM:Math.floor(i[g]*p+(i[g-1]+m)*f);if((i[g]+=r.am(0,w,i,v,0,u))0&&i.rShiftTo(c,i),o<0&&e.ZERO.subTo(i,i)}}},e.prototype.invDigit=function(){if(this.t<1)return 0;var e=this[0];if(0==(1&e))return 0;var t=3&e;return(t=(t=(t=(t=t*(2-(15&e)*t)&15)*(2-(255&e)*t)&255)*(2-((65535&e)*t&65535))&65535)*(2-e*t%this.DV)%this.DV)>0?this.DV-t:-t},e.prototype.isEven=function(){return 0==(this.t>0?1&this[0]:this.s)},e.prototype.exp=function(t,n){if(t>4294967295||t<1)return e.ONE;var i=B(),a=B(),s=n.convert(this),r=j(t)-1;for(s.copyTo(i);--r>=0;)if(n.sqrTo(i,a),(t&1<0)n.mulTo(a,s,i);else{var o=i;i=a,a=o}return n.revert(i)},e.prototype.chunkSize=function(e){return Math.floor(Math.LN2*this.DB/Math.log(e))},e.prototype.toRadix=function(e){if(null==e&&(e=10),0==this.signum()||e<2||e>36)return"0";var t=this.chunkSize(e),n=Math.pow(e,t),i=F(n),a=B(),s=B(),r="";for(this.divRemTo(i,a,s);a.signum()>0;)r=(n+s.intValue()).toString(e).substr(1)+r,a.divRemTo(i,a,s);return s.intValue().toString(e)+r},e.prototype.fromRadix=function(t,n){this.fromInt(0),null==n&&(n=10);for(var i=this.chunkSize(n),a=Math.pow(n,i),s=!1,r=0,o=0,l=0;l=i&&(this.dMultiply(a),this.dAddOffset(o,0),r=0,o=0))}r>0&&(this.dMultiply(Math.pow(n,r)),this.dAddOffset(o,0)),s&&e.ZERO.subTo(this,this)},e.prototype.fromNumber=function(t,n,i){if("number"==typeof n)if(t<2)this.fromInt(1);else for(this.fromNumber(t,i),this.testBit(t-1)||this.bitwiseTo(e.ONE.shiftLeft(t-1),s,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(n);)this.dAddOffset(2,0),this.bitLength()>t&&this.subTo(e.ONE.shiftLeft(t-1),this);else{var a=[],r=7&t;a.length=1+(t>>3),n.nextBytes(a),r>0?a[0]&=(1<>=this.DB;if(e.t>=this.DB;i+=this.s}else{for(i+=this.s;n>=this.DB;i+=e.s}t.s=i<0?-1:0,i>0?t[n++]=i:i<-1&&(t[n++]=this.DV+i),t.t=n,t.clamp()},e.prototype.dMultiply=function(e){this[this.t]=this.am(0,e-1,this,0,0,this.t),++this.t,this.clamp()},e.prototype.dAddOffset=function(e,t){if(0!=e){for(;this.t<=t;)this[this.t++]=0;for(this[t]+=e;this[t]>=this.DV;)this[t]-=this.DV,++t>=this.t&&(this[this.t++]=0),++this[t]}},e.prototype.multiplyLowerTo=function(e,t,n){var i=Math.min(this.t+e.t,t);for(n.s=0,n.t=i;i>0;)n[--i]=0;for(var a=n.t-this.t;i=0;)n[i]=0;for(i=Math.max(t-this.t,0);i0)if(0==t)n=this[0]%e;else for(var i=this.t-1;i>=0;--i)n=(t*n+this[i])%e;return n},e.prototype.millerRabin=function(t){var n=this.subtract(e.ONE),i=n.getLowestSetBit();if(i<=0)return!1;var a=n.shiftRight(i);(t=t+1>>1)>x.length&&(t=x.length);for(var s=B(),r=0;r0&&(n.rShiftTo(r,n),i.rShiftTo(r,i));var o=function(){(s=n.getLowestSetBit())>0&&n.rShiftTo(s,n),(s=i.getLowestSetBit())>0&&i.rShiftTo(s,i),n.compareTo(i)>=0?(n.subTo(i,n),n.rShiftTo(1,n)):(i.subTo(n,i),i.rShiftTo(1,i)),n.signum()>0?setTimeout(o,0):(r>0&&i.lShiftTo(r,i),setTimeout((function(){t(i)}),0))};setTimeout(o,10)}},e.prototype.fromNumberAsync=function(t,n,i,a){if("number"==typeof n)if(t<2)this.fromInt(1);else{this.fromNumber(t,i),this.testBit(t-1)||this.bitwiseTo(e.ONE.shiftLeft(t-1),s,this),this.isEven()&&this.dAddOffset(1,0);var r=this,o=function(){r.dAddOffset(2,0),r.bitLength()>t&&r.subTo(e.ONE.shiftLeft(t-1),r),r.isProbablePrime(n)?setTimeout((function(){a()}),0):setTimeout(o,0)};setTimeout(o,0)}else{var l=[],c=7&t;l.length=1+(t>>3),n.nextBytes(l),c>0?l[0]&=(1<=0?e.mod(this.m):e},e.prototype.revert=function(e){return e},e.prototype.reduce=function(e){e.divRemTo(this.m,null,e)},e.prototype.mulTo=function(e,t,n){e.multiplyTo(t,n),this.reduce(n)},e.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)},e}(),V=function(){function e(e){this.m=e,this.mp=e.invDigit(),this.mpl=32767&this.mp,this.mph=this.mp>>15,this.um=(1<0&&this.m.subTo(t,t),t},e.prototype.revert=function(e){var t=B();return e.copyTo(t),this.reduce(t),t},e.prototype.reduce=function(e){for(;e.t<=this.mt2;)e[e.t++]=0;for(var t=0;t>15)*this.mpl&this.um)<<15)&e.DM;for(e[n=t+this.m.t]+=this.m.am(0,i,e,t,0,this.m.t);e[n]>=e.DV;)e[n]-=e.DV,e[++n]++}e.clamp(),e.drShiftTo(this.m.t,e),e.compareTo(this.m)>=0&&e.subTo(this.m,e)},e.prototype.mulTo=function(e,t,n){e.multiplyTo(t,n),this.reduce(n)},e.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)},e}(),I=function(){function e(e){this.m=e,this.r2=B(),this.q3=B(),T.ONE.dlShiftTo(2*e.t,this.r2),this.mu=this.r2.divide(e)}return e.prototype.convert=function(e){if(e.s<0||e.t>2*this.m.t)return e.mod(this.m);if(e.compareTo(this.m)<0)return e;var t=B();return e.copyTo(t),this.reduce(t),t},e.prototype.revert=function(e){return e},e.prototype.reduce=function(e){for(e.drShiftTo(this.m.t-1,this.r2),e.t>this.m.t+1&&(e.t=this.m.t+1,e.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);e.compareTo(this.r2)<0;)e.dAddOffset(1,this.m.t+1);for(e.subTo(this.r2,e);e.compareTo(this.m)>=0;)e.subTo(this.m,e)},e.prototype.mulTo=function(e,t,n){e.multiplyTo(t,n),this.reduce(n)},e.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)},e}();function B(){return new T(null)}function A(e,t){return new T(e,t)}var M="undefined"!=typeof navigator;M&&"Microsoft Internet Explorer"==navigator.appName?(T.prototype.am=function(e,t,n,i,a,s){for(var r=32767&t,o=t>>15;--s>=0;){var l=32767&this[e],c=this[e++]>>15,u=o*l+c*r;a=((l=r*l+((32767&u)<<15)+n[i]+(1073741823&a))>>>30)+(u>>>15)+o*c+(a>>>30),n[i++]=1073741823&l}return a},_=30):M&&"Netscape"!=navigator.appName?(T.prototype.am=function(e,t,n,i,a,s){for(;--s>=0;){var r=t*this[e++]+n[i]+a;a=Math.floor(r/67108864),n[i++]=67108863&r}return a},_=26):(T.prototype.am=function(e,t,n,i,a,s){for(var r=16383&t,o=t>>14;--s>=0;){var l=16383&this[e],c=this[e++]>>14,u=o*l+c*r;a=((l=r*l+((16383&u)<<14)+n[i]+a)>>28)+(u>>14)+o*c,n[i++]=268435455&l}return a},_=28),T.prototype.DB=_,T.prototype.DM=(1<<_)-1,T.prototype.DV=1<<_,T.prototype.FV=Math.pow(2,52),T.prototype.F1=52-_,T.prototype.F2=2*_-52;var P,R,O=[];for(P="0".charCodeAt(0),R=0;R<=9;++R)O[P++]=R;for(P="a".charCodeAt(0),R=10;R<36;++R)O[P++]=R;for(P="A".charCodeAt(0),R=10;R<36;++R)O[P++]=R;function L(e,t){var n=O[e.charCodeAt(t)];return null==n?-1:n}function F(e){var t=B();return t.fromInt(e),t}function j(e){var t,n=1;return 0!=(t=e>>>16)&&(e=t,n+=16),0!=(t=e>>8)&&(e=t,n+=8),0!=(t=e>>4)&&(e=t,n+=4),0!=(t=e>>2)&&(e=t,n+=2),0!=(t=e>>1)&&(e=t,n+=1),n}T.ZERO=F(0),T.ONE=F(1);var U,$,z=function(){function e(){this.i=0,this.j=0,this.S=[]}return e.prototype.init=function(e){var t,n,i;for(t=0;t<256;++t)this.S[t]=t;for(n=0,t=0;t<256;++t)n=n+this.S[t]+e[t%e.length]&255,i=this.S[t],this.S[t]=this.S[n],this.S[n]=i;this.i=0,this.j=0},e.prototype.next=function(){var e;return this.i=this.i+1&255,this.j=this.j+this.S[this.i]&255,e=this.S[this.i],this.S[this.i]=this.S[this.j],this.S[this.j]=e,this.S[e+this.S[this.i]&255]},e}(),H=null;function q(){if(null==U){for(U=new z;$<256;){var e=Math.floor(65536*Math.random());H[$++]=255&e}for(U.init(H),$=0;$0&&t.length>0?(this.n=A(e,16),this.e=parseInt(t,16)):console.error("Invalid RSA public key")},e.prototype.encrypt=function(e){var t=this.n.bitLength()+7>>3,n=function(e,t){if(t=0&&t>0;){var a=e.charCodeAt(i--);a<128?n[--t]=a:a>127&&a<2048?(n[--t]=63&a|128,n[--t]=a>>6|192):(n[--t]=63&a|128,n[--t]=a>>6&63|128,n[--t]=a>>12|224)}n[--t]=0;for(var s=new K,r=[];t>2;){for(r[0]=0;0==r[0];)s.nextBytes(r);n[--t]=r[0]}return n[--t]=2,n[--t]=0,new T(n)}(e,t);if(null==n)return null;var i=this.doPublic(n);if(null==i)return null;for(var a=i.toString(16),s=a.length,r=0;r<2*t-s;r++)a="0"+a;return a},e.prototype.setPrivate=function(e,t,n){null!=e&&null!=t&&e.length>0&&t.length>0?(this.n=A(e,16),this.e=parseInt(t,16),this.d=A(n,16)):console.error("Invalid RSA private key")},e.prototype.setPrivateEx=function(e,t,n,i,a,s,r,o){null!=e&&null!=t&&e.length>0&&t.length>0?(this.n=A(e,16),this.e=parseInt(t,16),this.d=A(n,16),this.p=A(i,16),this.q=A(a,16),this.dmp1=A(s,16),this.dmq1=A(r,16),this.coeff=A(o,16)):console.error("Invalid RSA private key")},e.prototype.generate=function(e,t){var n=new K,i=e>>1;this.e=parseInt(t,16);for(var a=new T(t,16);;){for(;this.p=new T(e-i,1,n),0!=this.p.subtract(T.ONE).gcd(a).compareTo(T.ONE)||!this.p.isProbablePrime(10););for(;this.q=new T(i,1,n),0!=this.q.subtract(T.ONE).gcd(a).compareTo(T.ONE)||!this.q.isProbablePrime(10););if(this.p.compareTo(this.q)<=0){var s=this.p;this.p=this.q,this.q=s}var r=this.p.subtract(T.ONE),o=this.q.subtract(T.ONE),l=r.multiply(o);if(0==l.gcd(a).compareTo(T.ONE)){this.n=this.p.multiply(this.q),this.d=a.modInverse(l),this.dmp1=this.d.mod(r),this.dmq1=this.d.mod(o),this.coeff=this.q.modInverse(this.p);break}}},e.prototype.decrypt=function(e){var t=A(e,16),n=this.doPrivate(t);return null==n?null:function(e,t){for(var n=e.toByteArray(),i=0;i=n.length)return null;for(var a="";++i191&&s<224?(a+=String.fromCharCode((31&s)<<6|63&n[i+1]),++i):(a+=String.fromCharCode((15&s)<<12|(63&n[i+1])<<6|63&n[i+2]),i+=2)}return a}(n,this.n.bitLength()+7>>3)},e.prototype.generateAsync=function(e,t,n){var i=new K,a=e>>1;this.e=parseInt(t,16);var s=new T(t,16),r=this,o=function(){var t=function(){if(r.p.compareTo(r.q)<=0){var e=r.p;r.p=r.q,r.q=e}var t=r.p.subtract(T.ONE),i=r.q.subtract(T.ONE),a=t.multiply(i);0==a.gcd(s).compareTo(T.ONE)?(r.n=r.p.multiply(r.q),r.d=s.modInverse(a),r.dmp1=r.d.mod(t),r.dmq1=r.d.mod(i),r.coeff=r.q.modInverse(r.p),setTimeout((function(){n()}),0)):setTimeout(o,0)},l=function(){r.q=B(),r.q.fromNumberAsync(a,1,i,(function(){r.q.subtract(T.ONE).gcda(s,(function(e){0==e.compareTo(T.ONE)&&r.q.isProbablePrime(10)?setTimeout(t,0):setTimeout(l,0)}))}))},c=function(){r.p=B(),r.p.fromNumberAsync(e-a,1,i,(function(){r.p.subtract(T.ONE).gcda(s,(function(e){0==e.compareTo(T.ONE)&&r.p.isProbablePrime(10)?setTimeout(l,0):setTimeout(c,0)}))}))};setTimeout(c,0)};setTimeout(o,0)},e.prototype.sign=function(e,t,n){var i=function(e){return W[e]||""}(n),a=function(e,t){if(t>3)-11;return this.setSplitChn(e,i).forEach((function(e){n+=t.encrypt(e)})),n},e.prototype.decryptLong=function(e){var t="",n=this.n.bitLength()+7>>3,i=2*n;if(e.length>i){for(var a=e.match(new RegExp(".{1,"+i+"}","g"))||[],s=[],r=0;r=a.length)return null;n=n.concat(a.slice(s+1))}for(var r=n,o=-1,l="";++o191&&c<224?(l+=String.fromCharCode((31&c)<<6|63&r[o+1]),++o):(l+=String.fromCharCode((15&c)<<12|(63&r[o+1])<<6|63&r[o+2]),o+=2)}return l}(s,n)}else t=this.decrypt(e);return t},e.prototype.setSplitChn=function(e,t,n){void 0===n&&(n=[]);for(var i=e.split(""),a=0,s=0;st){var o=e.substring(0,s);return n.push(o),this.setSplitChn(e.substring(s),t,n)}}return n.push(e),n},e}(),W={md2:"3020300c06082a864886f70d020205000410",md5:"3020300c06082a864886f70d020505000410",sha1:"3021300906052b0e03021a05000414",sha224:"302d300d06096086480165030402040500041c",sha256:"3031300d060960864801650304020105000420",sha384:"3041300d060960864801650304020205000430",sha512:"3051300d060960864801650304020305000440",ripemd160:"3021300906052b2403020105000414"},Y={};Y.lang={extend:function(e,t,n){if(!t||!e)throw new Error("YAHOO.lang.extend failed, please check that all dependencies are included.");var i=function(){};if(i.prototype=t.prototype,e.prototype=new i,e.prototype.constructor=e,e.superclass=t.prototype,t.prototype.constructor==Object.prototype.constructor&&(t.prototype.constructor=t),n){var a;for(a in n)e.prototype[a]=n[a];var s=function(){},r=["toString","valueOf"];try{/MSIE/.test(navigator.userAgent)&&(s=function(e,t){for(a=0;a15)throw"ASN.1 length too long to represent by 8x: n = "+e.toString(16);return(128+n).toString(16)+t},this.getEncodedHex=function(){return(null==this.hTLV||this.isModified)&&(this.hV=this.getFreshValueHex(),this.hL=this.getLengthHexFromValue(),this.hTLV=this.hT+this.hL+this.hV,this.isModified=!1),this.hTLV},this.getValueHex=function(){return this.getEncodedHex(),this.hV},this.getFreshValueHex=function(){return""}},G.asn1.DERAbstractString=function(e){G.asn1.DERAbstractString.superclass.constructor.call(this),this.getString=function(){return this.s},this.setString=function(e){this.hTLV=null,this.isModified=!0,this.s=e,this.hV=stohex(this.s)},this.setStringHex=function(e){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=e},this.getFreshValueHex=function(){return this.hV},void 0!==e&&("string"==typeof e?this.setString(e):void 0!==e.str?this.setString(e.str):void 0!==e.hex&&this.setStringHex(e.hex))},Y.lang.extend(G.asn1.DERAbstractString,G.asn1.ASN1Object),G.asn1.DERAbstractTime=function(e){G.asn1.DERAbstractTime.superclass.constructor.call(this),this.localDateToUTC=function(e){return utc=e.getTime()+6e4*e.getTimezoneOffset(),new Date(utc)},this.formatDate=function(e,t,n){var i=this.zeroPadding,a=this.localDateToUTC(e),s=String(a.getFullYear());"utc"==t&&(s=s.substr(2,2));var r=s+i(String(a.getMonth()+1),2)+i(String(a.getDate()),2)+i(String(a.getHours()),2)+i(String(a.getMinutes()),2)+i(String(a.getSeconds()),2);if(!0===n){var o=a.getMilliseconds();if(0!=o){var l=i(String(o),3);r=r+"."+(l=l.replace(/[0]+$/,""))}}return r+"Z"},this.zeroPadding=function(e,t){return e.length>=t?e:new Array(t-e.length+1).join("0")+e},this.getString=function(){return this.s},this.setString=function(e){this.hTLV=null,this.isModified=!0,this.s=e,this.hV=stohex(e)},this.setByDateValue=function(e,t,n,i,a,s){var r=new Date(Date.UTC(e,t-1,n,i,a,s,0));this.setByDate(r)},this.getFreshValueHex=function(){return this.hV}},Y.lang.extend(G.asn1.DERAbstractTime,G.asn1.ASN1Object),G.asn1.DERAbstractStructured=function(e){G.asn1.DERAbstractString.superclass.constructor.call(this),this.setByASN1ObjectArray=function(e){this.hTLV=null,this.isModified=!0,this.asn1Array=e},this.appendASN1Object=function(e){this.hTLV=null,this.isModified=!0,this.asn1Array.push(e)},this.asn1Array=new Array,void 0!==e&&void 0!==e.array&&(this.asn1Array=e.array)},Y.lang.extend(G.asn1.DERAbstractStructured,G.asn1.ASN1Object),G.asn1.DERBoolean=function(){G.asn1.DERBoolean.superclass.constructor.call(this),this.hT="01",this.hTLV="0101ff"},Y.lang.extend(G.asn1.DERBoolean,G.asn1.ASN1Object),G.asn1.DERInteger=function(e){G.asn1.DERInteger.superclass.constructor.call(this),this.hT="02",this.setByBigInteger=function(e){this.hTLV=null,this.isModified=!0,this.hV=G.asn1.ASN1Util.bigIntToMinTwosComplementsHex(e)},this.setByInteger=function(e){var t=new T(String(e),10);this.setByBigInteger(t)},this.setValueHex=function(e){this.hV=e},this.getFreshValueHex=function(){return this.hV},void 0!==e&&(void 0!==e.bigint?this.setByBigInteger(e.bigint):void 0!==e.int?this.setByInteger(e.int):"number"==typeof e?this.setByInteger(e):void 0!==e.hex&&this.setValueHex(e.hex))},Y.lang.extend(G.asn1.DERInteger,G.asn1.ASN1Object),G.asn1.DERBitString=function(e){if(void 0!==e&&void 0!==e.obj){var t=G.asn1.ASN1Util.newObject(e.obj);e.hex="00"+t.getEncodedHex()}G.asn1.DERBitString.superclass.constructor.call(this),this.hT="03",this.setHexValueIncludingUnusedBits=function(e){this.hTLV=null,this.isModified=!0,this.hV=e},this.setUnusedBitsAndHexValue=function(e,t){if(e<0||7>2),s=3&r,a=1):1==a?(n+=i(s<<2|r>>4),s=15&r,a=2):2==a?(n+=i(s),n+=i(r>>2),s=3&r,a=3):(n+=i(s<<2|r>>4),n+=i(15&r),a=0))}return 1==a&&(n+=i(s<<2)),n}(t),n)}catch(a){return!1}},e.prototype.getKey=function(e){if(!this.key){if(this.key=new Q,e&&"[object Function]"==={}.toString.call(e))return void this.key.generateAsync(this.default_key_size,this.default_public_exponent,e);this.key.generate(this.default_key_size,this.default_public_exponent)}return this.key},e.prototype.getPrivateKey=function(){return this.getKey().getPrivateKey()},e.prototype.getPrivateKeyB64=function(){return this.getKey().getPrivateBaseKeyB64()},e.prototype.getPublicKey=function(){return this.getKey().getPublicKey()},e.prototype.getPublicKeyB64=function(){return this.getKey().getPublicBaseKeyB64()},e.version=X,e}();const te=ee},2480:()=>{}},t={};function n(i){var a=t[i];if(void 0!==a)return a.exports;var s=t[i]={id:i,loaded:!1,exports:{}};return e[i].call(s.exports,s,s.exports,n),s.loaded=!0,s.exports}return n.d=(e,t)=>{for(var i in t)n.o(t,i)&&!n.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),n(9021)})(),e.exports=n()}(Is);var Bs=Vs(Is.exports);uni.invokePushCallback({type:"enabled"});"undefined"!=typeof plus&&plus.push&&plus.globalEvent.addEventListener("newPath",(({path:e})=>{if(!e)return;const t=getCurrentPages(),n=t[t.length-1];n&&n.$page&&n.$page.fullPath===e||uni.navigateTo({url:e,fail(t){t.errMsg.indexOf("tabbar")>-1?uni.switchTab({url:e,fail(e){console.error(e.errMsg)}}):console.error(t.errMsg)}})})),"function"==typeof uni.onAppShow&&uni.onAppShow((()=>{Bs.enableSocket(!0)})),Bs.init({appid:"__UNI__9F097F0",onError:e=>{console.error(e.error);const t={type:"clientId",cid:"",errMsg:e.error};uni.invokePushCallback(t)},onClientId:e=>{const t={type:"clientId",cid:e.cid};uni.invokePushCallback(t)},onlineState:e=>{const t={type:"lineState",online:e.online};uni.invokePushCallback(t)},onPushMsg:e=>{const t={type:"pushMsg",message:e.message};uni.invokePushCallback(t)}}),uni.onPushMessage((e=>{"receive"===e.type&&e.data&&e.data.force_notification&&(uni.createPushMessage(e.data),e.stopped=!0)}));const As="https://36.112.48.190/jeecg-boot/sys/common/static/",Ms=z("updateApp",(()=>{const t=e.reactive({force:!1,hasNew:!1,content:"",url:"",wgtUrl:""}),n=uni.getSystemInfoSync();return{checkAppUpdate:function(e=!1){try{u({url:"/sys/common/upDateApp",method:"get",data:i}).then((async e=>{let{result:i}=e;i.apkUrl=As+i.apkUrl,i.wgtUrl=As+i.wgtUrl,t.wgtUrl=i.wgtUrl,"android"===n.osName?(t.apkUrl=i.apkUrl,t.hasNew=await((e,t=!1)=>new Promise((n=>{const i=e=>e.replace(/\./g,"");if(t)plus.runtime.getProperty(plus.runtime.appid,(t=>{const a=t.version;n(+i(e)>+i(a))}));else{const t=plus.runtime.version;n(+i(e)>+i(t))}})))(i.versionCode,"wgt"==i.update)):t.url="itms-apps://itunes.apple.com/cn/app/id123456?mt=8",t.hasNew&&uni.showModal({title:"更新",content:"发现新版本,请更新",success(e){var t,n;e.confirm?(t=i.update,n=i,"wgt"!=t?plus.runtime.openURL(n.apkUrl):Ve(n.wgtUrl)):plus.runtime.quit()}})}))}catch(a){t.hasNew=!1}var i},...e.toRefs(t),systemInfo:n}})),Ps={__name:"App",setup(e){s((()=>{Ms().checkAppUpdate(),Be(),uni.onPushMessage((e=>{t("log","at App.vue:29","收到推送消息:",e)}))})),a((()=>{n(),uni.getPushClientId({success:e=>{t("log","at App.vue:39","客户端推送标识:",e.cid)},fail(e){t("log","at App.vue:42",e)}})}));const n=()=>{var e;(e={id:"1827997127165677570"},u({url:"/CxcJurisdiction/cxcJurisdiction/queryById",method:"get",data:e})).then((e=>{if(e.success){const t=H();uni.setStorageSync("isgray",e.result.value),t.setIsgray(e.result.value)}}))};return()=>{}}},Rs=q({__name:"index",props:{dataId:{type:String,default:""}},setup(t){const i=t,a=e.ref([]),s={width:64,height:64,border:{color:"#dce7e1",width:2,style:"dashed",radius:"2px"}},r=e.ref({}),o=()=>{var e;(e={id:i.dataId},u({url:"/CxcQxj/cxcQxj/queryById",method:"get",data:e})).then((e=>{e.success&&(r.value=e.result.records[0],a.value=r.value.path.split(",").map((e=>{const t=e.split("/").pop(),n=t.split(".").pop();return{name:t,extname:n,url:Re(e)}})))}))},l=e.ref([]),c=e=>{_({processInstanceId:e}).then((e=>{e.success&&(l.value=e.result.records)}))};return e.onMounted((()=>{o(),k({flowCode:"dev_cxc_qxj",dataId:i.dataId}).then((e=>{e.success&&c(e.result.processInstanceId)}))})),(t,i)=>{const o=n(e.resolveDynamicComponent("uni-file-picker"),Ya);return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("view",{class:"f-col aic"},[e.createElementVNode("view",{class:"info_box"},[e.createElementVNode("view",{class:"title"}," 申请信息 "),e.createElementVNode("view",{class:"info f-row aic jcb"},[e.createElementVNode("view",null," 请假职工: "),e.createElementVNode("text",null,e.toDisplayString(r.value.username_dictText),1)]),e.createElementVNode("view",{class:"info f-row aic jcb"},[e.createElementVNode("view",null," 所属单位: "),e.createElementVNode("text",null,e.toDisplayString(r.value.sysOrgCode_dictText),1)]),e.createElementVNode("view",{class:"info f-row aic jcb"},[e.createElementVNode("view",null," 联系方式: "),e.createElementVNode("text",null,e.toDisplayString(r.value.phone),1)]),e.createElementVNode("view",{class:"info f-row aic jcb"},[e.createElementVNode("view",null," 请假类型: "),e.createElementVNode("text",null,e.toDisplayString(r.value.type),1)]),e.createElementVNode("view",{class:"info f-row aic jcb"},[e.createElementVNode("view",null," 请假开始时间: "),e.createElementVNode("text",null,e.toDisplayString(r.value.begintime),1)]),e.createElementVNode("view",{class:"info f-row aic jcb"},[e.createElementVNode("view",null," 请假结束时间: "),e.createElementVNode("text",null,e.toDisplayString(r.value.endtime),1)]),e.createElementVNode("view",{class:"info f-row aic jcb"},[e.createElementVNode("view",null," 请假天数: "),e.createElementVNode("text",null,e.toDisplayString(r.value.days),1)]),e.createElementVNode("view",{class:"info f-row aic jcb"},[e.createElementVNode("view",null," 审批人: "),e.createElementVNode("text",null,e.toDisplayString(r.value.examineleader_dictText),1)]),e.createElementVNode("view",{class:"info f-row aic jcb"},[e.createElementVNode("view",null," 请假地点: "),e.createElementVNode("text",null,e.toDisplayString(r.value.address),1)]),e.createElementVNode("view",{class:"info f-row aic jcb"},[e.createElementVNode("view",null," 请假原因: "),e.createElementVNode("text",null,e.toDisplayString(r.value.reason),1)]),e.createElementVNode("view",{class:"info f-row aic jcb"},[e.createElementVNode("view",null," 附件: "),e.createVNode(o,{modelValue:a.value,"onUpdate:modelValue":i[0]||(i[0]=e=>a.value=e),"image-styles":s},null,8,["modelValue"])])])]),e.createElementVNode("view",{class:"f-col aic"},[e.createElementVNode("view",{class:"progress"},[e.createElementVNode("view",{class:"title"}," 审批流程 "),e.createElementVNode("view",{class:"progress_box"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.value,((t,n)=>(e.openBlock(),e.createElementBlock("view",{class:"box",key:n},[e.createElementVNode("view",{class:"topic f-row aic"},[e.createElementVNode("view",null,e.toDisplayString(t.name),1),e.createElementVNode("view",{class:e.normalizeClass(["status",{complete:"已完成"==t.deleteReason},{refuse:"已拒绝"==t.deleteReason}])},e.toDisplayString(t.deleteReason),3)]),e.createElementVNode("view",{class:"name_time"},e.toDisplayString(t.assigneeName)+" | "+e.toDisplayString(t.endTime),1)])))),128))])])])],64)}}},[["__scopeId","data-v-4dc4d50b"]]),Os=q({__name:"processCom",props:{info:{type:Array,default:()=>[]}},setup:t=>(n,i)=>(e.openBlock(),e.createElementBlock("view",{class:"f-col aic"},[e.createElementVNode("view",{class:"info_box"},[e.createElementVNode("view",{class:"title"}," 申请信息 "),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.info,((t,n)=>(e.openBlock(),e.createElementBlock("view",{class:"",key:n},[e.createElementVNode("view",{class:"info f-row aic jcb"},[e.createElementVNode("view",{class:""},e.toDisplayString(t.title)+": ",1),"事项内容"==t.title?(e.openBlock(),e.createElementBlock("rich-text",{key:0,nodes:t.data},null,8,["nodes"])):(e.openBlock(),e.createElementBlock("text",{key:1},e.toDisplayString(t.data),1))])])))),128))])]))},[["__scopeId","data-v-8f3f5a9f"]]),Ls=q({__name:"supervise",props:{dataId:{type:String,default:""}},setup(n){const i=n,a=[{title:"基本信息",id:1},{title:"事项详情",id:2},{title:"添加下级",id:3},{title:"节点顺序",id:4},{title:"运行计划",id:5}],s=e.ref(1),r=e.ref([]),o=()=>{var e;(e={id:i.dataId},u({url:"/cxcdbxt/dbSxxq/queryById",method:"get",data:e})).then((e=>{if(e.success&&(1==s.value&&l(e.result.jbxxid),2==s.value)){let t=e.result;r.value=[{title:"承办部门",data:t.zbdw},{title:"协办部门",data:t.xbdw},{title:"部门领导",data:t.fgld},{title:"办理人员",data:t.dbry},{title:"要求反馈时间",data:t.yqfksj},{title:"节点名称",data:""},{title:"预计完成时间",data:""},{title:"实际反馈时间",data:t.sjfksj},{title:"自评价",data:t.zpj},{title:"发起时间",data:t.fqsj},{title:"序号",data:""},{title:"概述",data:""},{title:"时间进度",data:""},{title:"事项内容",data:t.sxnr}]}}))},l=e=>{var t;(t={id:e},u({url:"/cxcdbxt/dbJbxx/queryById",method:"get",data:t})).then((e=>{if(e.success){let t=e.result;r.value=[{title:"督办分类",data:t.fl},{title:"协办部门",data:t.xbbm},{title:"督办部门",data:t.cbbm},{title:"督办人员",data:t.dbry},{title:"督办部门负责人",data:t.zrr},{title:"是否涉密",data:t.sfsm},{title:"计划完成时间",data:t.jhwcsj},{title:"实际完成时间",data:t.wcsj},{title:"完成状态",data:t.wczt},{title:"备注",data:t.bz},{title:"督办事项",data:t.dbsx},{title:"时间进度",data:t.sjjd}]}}))},c=e.ref([]),d=e=>{t("log","at bpm/supervise.vue:199","000",e),_({processInstanceId:e}).then((e=>{t("log","at bpm/supervise.vue:203","0088800",e),e.success&&(c.value=e.result.records)}))};return e.onMounted((()=>{o(),k({flowCode:"dev_db_sxxq_001",dataId:i.dataId}).then((e=>{e.success&&d(e.result.processInstanceId)}))})),(t,n)=>(e.openBlock(),e.createElementBlock("view",{class:""},[e.createElementVNode("view",{class:"tab f-row aic"},[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(a,((t,n)=>e.createElementVNode("view",{class:e.normalizeClass({active:s.value==t.id}),key:n,onClick:e=>{return n=t.id,s.value=n,void o();var n}},e.toDisplayString(t.title),11,["onClick"]))),64))]),e.createVNode(Os,{info:r.value},null,8,["info"]),e.createElementVNode("view",{class:"f-col aic"},[e.createElementVNode("view",{class:"progress"},[e.createElementVNode("view",{class:"title"}," 审批流程 "),e.createElementVNode("view",{class:"progress_box"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,((t,n)=>(e.openBlock(),e.createElementBlock("view",{class:"box",key:n},[e.createElementVNode("view",{class:"topic f-row aic"},[e.createElementVNode("view",{class:""},e.toDisplayString(t.name),1),e.createElementVNode("view",{class:e.normalizeClass(["status",{complete:"已完成"==t.deleteReason},{refuse:"已拒绝"==t.deleteReason}])},e.toDisplayString(t.deleteReason),3)]),e.createElementVNode("view",{class:"name_time"},e.toDisplayString(t.assigneeName)+" | "+e.toDisplayString(t.endTime),1)])))),128))])])])]))}},[["__scopeId","data-v-c842b888"]]),Fs=function(){const t=e.effectScope(!0),n=t.run((()=>e.ref({})));let i=[],a=[];const s=e.markRaw({install(e){V(s),s._a=e,e.provide(I,s),e.config.globalProperties.$pinia=s,a.forEach((e=>i.push(e))),a=[]},use(e){return this._a?i.push(e):a.push(e),this},_p:i,_a:null,_e:t,_s:new Map,state:n});return s}();const{app:js,Vuex:Us,Pinia:$s}=function(){const t=e.createVueApp(Ps);return t.use(Fs),t.component("leaveApplication",Rs),t.component("supervise",Ls),t.config.globalProperties.$toast=Te,{app:t}}();uni.Vuex=Us,uni.Pinia=$s,js.provide("__globalStyles",__uniConfig.styles),js._component.mpType="app",js._component.render=()=>{},js.mount("#app")}(Vue); diff --git a/unpackage/cache/wgt/__UNI__F0AFD30/app.css b/unpackage/cache/wgt/__UNI__9F097F0/app.css similarity index 100% rename from unpackage/cache/wgt/__UNI__F0AFD30/app.css rename to unpackage/cache/wgt/__UNI__9F097F0/app.css diff --git a/unpackage/cache/wgt/__UNI__F0AFD30/assets/uniicons.32e978a5.ttf b/unpackage/cache/wgt/__UNI__9F097F0/assets/uniicons.32e978a5.ttf similarity index 100% rename from unpackage/cache/wgt/__UNI__F0AFD30/assets/uniicons.32e978a5.ttf rename to unpackage/cache/wgt/__UNI__9F097F0/assets/uniicons.32e978a5.ttf diff --git a/unpackage/cache/wgt/__UNI__9F097F0/manifest.json b/unpackage/cache/wgt/__UNI__9F097F0/manifest.json new file mode 100644 index 0000000..65d82da --- /dev/null +++ b/unpackage/cache/wgt/__UNI__9F097F0/manifest.json @@ -0,0 +1 @@ +{"@platforms":["android","iPhone","iPad"],"id":"__UNI__9F097F0","name":"数智产销","version":{"name":"1.0.0","code":20241024},"description":"","developer":{"name":"","email":"","url":""},"permissions":{"Geolocation":{},"Fingerprint":{},"Camera":{},"Barcode":{},"Push":{},"UniNView":{"description":"UniNView原生渲染"}},"plus":{"useragent":{"value":"uni-app","concatenate":true},"splashscreen":{"autoclose":true,"delay":0,"target":"id:1","waiting":true},"popGesture":"close","launchwebview":{"id":"1","kernel":"WKWebview"},"usingComponents":true,"nvueStyleCompiler":"uni-app","compilerVersion":3,"distribute":{"icons":{"android":{"hdpi":"icon-android-hdpi.png","xhdpi":"icon-android-xhdpi.png","xxhdpi":"icon-android-xxhdpi.png","xxxhdpi":"icon-android-xxxhdpi.png"},"ios":{"appstore":"unpackage/res/icons/1024x1024.png","ipad":{"app":"unpackage/res/icons/76x76.png","app@2x":"unpackage/res/icons/152x152.png","notification":"unpackage/res/icons/20x20.png","notification@2x":"unpackage/res/icons/40x40.png","proapp@2x":"unpackage/res/icons/167x167.png","settings":"unpackage/res/icons/29x29.png","settings@2x":"unpackage/res/icons/58x58.png","spotlight":"unpackage/res/icons/40x40.png","spotlight@2x":"unpackage/res/icons/80x80.png"},"iphone":{"app@2x":"unpackage/res/icons/120x120.png","app@3x":"unpackage/res/icons/180x180.png","notification@2x":"unpackage/res/icons/40x40.png","notification@3x":"unpackage/res/icons/60x60.png","settings@2x":"unpackage/res/icons/58x58.png","settings@3x":"unpackage/res/icons/87x87.png","spotlight@2x":"unpackage/res/icons/80x80.png","spotlight@3x":"unpackage/res/icons/120x120.png"},"prerendered":"false"}},"google":{"permissions":["","","","","","","","","","","","","","",""],"packagename":"com.tianranqi.app","aliasname":"__uni__9f097f0","password":"5n1+d1pb3AgK1DiULL3vgA==","keystore":"google-keystore.keystore","custompermissions":true},"apple":{"dSYMs":false,"plistcmds":["Add :UIFileSharingEnabled bool true"],"devices":"universal"},"plugins":{"ad":{},"audio":{"mp3":{"description":"Android平台录音支持MP3格式文件"}},"geolocation":{"system":{"__platform__":["android"]}},"push":{"unipush":{"offline":false,"version":"2"},"description":"管理消息推送能力"}},"debug":true,"syncDebug":true,"orientation":"portrait-primary"},"statusbar":{"immersed":"supportedDevice","style":"dark","background":"#000000"},"uniStatistics":{"enable":false},"allowsInlineMediaPlayback":true,"safearea":{"background":"#FFFFFF","bottom":{"offset":"auto"}},"uni-app":{"control":"uni-v3","vueVersion":"3","compilerVersion":"4.15","nvueCompiler":"uni-app","renderer":"auto","nvue":{"flex-direction":"column"},"nvueLaunchMode":"normal","webView":{"minUserAgentVersion":"49.0"}},"tabBar":{"position":"bottom","color":"#333333","selectedColor":"#01508B","borderStyle":"rgba(0,0,0,0.4)","blurEffect":"none","fontSize":"10px","iconWidth":"24px","spacing":"3px","height":"50px","backgroundColor":"#FFFFFF","list":[{"text":"首页","pagePath":"pages/tab/index","iconPath":"/static/tab/index1.png","selectedIconPath":"/static/tab/index2.png"},{"text":"任务","pagePath":"pages/task/todotask","iconPath":"/static/tab/office1.png","selectedIconPath":"/static/tab/office2.png"},{"text":"办公","pagePath":"pages/tab/office","iconPath":"/static/tab/product1.png","selectedIconPath":"/static/tab/product2.png"},{"text":"我的","pagePath":"pages/tab/my","iconPath":"/static/tab/user1.png","selectedIconPath":"/static/tab/user2.png"}],"selectedIndex":0,"shown":true},"adid":"125020250703"},"launch_path":"__uniappview.html"} \ No newline at end of file diff --git a/unpackage/cache/wgt/__UNI__F0AFD30/pages/checkin/index.css b/unpackage/cache/wgt/__UNI__9F097F0/pages/checkin/index.css similarity index 100% rename from unpackage/cache/wgt/__UNI__F0AFD30/pages/checkin/index.css rename to unpackage/cache/wgt/__UNI__9F097F0/pages/checkin/index.css diff --git a/unpackage/cache/wgt/__UNI__F0AFD30/pages/document/detail.css b/unpackage/cache/wgt/__UNI__9F097F0/pages/document/detail.css similarity index 100% rename from unpackage/cache/wgt/__UNI__F0AFD30/pages/document/detail.css rename to unpackage/cache/wgt/__UNI__9F097F0/pages/document/detail.css diff --git a/unpackage/cache/wgt/__UNI__F0AFD30/pages/document/index.css b/unpackage/cache/wgt/__UNI__9F097F0/pages/document/index.css similarity index 100% rename from unpackage/cache/wgt/__UNI__F0AFD30/pages/document/index.css rename to unpackage/cache/wgt/__UNI__9F097F0/pages/document/index.css diff --git a/unpackage/cache/wgt/__UNI__F0AFD30/pages/leave/application.css b/unpackage/cache/wgt/__UNI__9F097F0/pages/leave/application.css similarity index 79% rename from unpackage/cache/wgt/__UNI__F0AFD30/pages/leave/application.css rename to unpackage/cache/wgt/__UNI__9F097F0/pages/leave/application.css index 3ae5daa..9ff455a 100644 --- a/unpackage/cache/wgt/__UNI__F0AFD30/pages/leave/application.css +++ b/unpackage/cache/wgt/__UNI__9F097F0/pages/leave/application.css @@ -1 +1 @@ -.uniui-cart-filled[data-v-5610c8db]:before{content:"\e6d0"}.uniui-gift-filled[data-v-5610c8db]:before{content:"\e6c4"}.uniui-color[data-v-5610c8db]:before{content:"\e6cf"}.uniui-wallet[data-v-5610c8db]:before{content:"\e6b1"}.uniui-settings-filled[data-v-5610c8db]:before{content:"\e6ce"}.uniui-auth-filled[data-v-5610c8db]:before{content:"\e6cc"}.uniui-shop-filled[data-v-5610c8db]:before{content:"\e6cd"}.uniui-staff-filled[data-v-5610c8db]:before{content:"\e6cb"}.uniui-vip-filled[data-v-5610c8db]:before{content:"\e6c6"}.uniui-plus-filled[data-v-5610c8db]:before{content:"\e6c7"}.uniui-folder-add-filled[data-v-5610c8db]:before{content:"\e6c8"}.uniui-color-filled[data-v-5610c8db]:before{content:"\e6c9"}.uniui-tune-filled[data-v-5610c8db]:before{content:"\e6ca"}.uniui-calendar-filled[data-v-5610c8db]:before{content:"\e6c0"}.uniui-notification-filled[data-v-5610c8db]:before{content:"\e6c1"}.uniui-wallet-filled[data-v-5610c8db]:before{content:"\e6c2"}.uniui-medal-filled[data-v-5610c8db]:before{content:"\e6c3"}.uniui-fire-filled[data-v-5610c8db]:before{content:"\e6c5"}.uniui-refreshempty[data-v-5610c8db]:before{content:"\e6bf"}.uniui-location-filled[data-v-5610c8db]:before{content:"\e6af"}.uniui-person-filled[data-v-5610c8db]:before{content:"\e69d"}.uniui-personadd-filled[data-v-5610c8db]:before{content:"\e698"}.uniui-arrowthinleft[data-v-5610c8db]:before{content:"\e6d2"}.uniui-arrowthinup[data-v-5610c8db]:before{content:"\e6d3"}.uniui-arrowthindown[data-v-5610c8db]:before{content:"\e6d4"}.uniui-back[data-v-5610c8db]:before{content:"\e6b9"}.uniui-forward[data-v-5610c8db]:before{content:"\e6ba"}.uniui-arrow-right[data-v-5610c8db]:before{content:"\e6bb"}.uniui-arrow-left[data-v-5610c8db]:before{content:"\e6bc"}.uniui-arrow-up[data-v-5610c8db]:before{content:"\e6bd"}.uniui-arrow-down[data-v-5610c8db]:before{content:"\e6be"}.uniui-arrowthinright[data-v-5610c8db]:before{content:"\e6d1"}.uniui-down[data-v-5610c8db]:before{content:"\e6b8"}.uniui-bottom[data-v-5610c8db]:before{content:"\e6b8"}.uniui-arrowright[data-v-5610c8db]:before{content:"\e6d5"}.uniui-right[data-v-5610c8db]:before{content:"\e6b5"}.uniui-up[data-v-5610c8db]:before{content:"\e6b6"}.uniui-top[data-v-5610c8db]:before{content:"\e6b6"}.uniui-left[data-v-5610c8db]:before{content:"\e6b7"}.uniui-arrowup[data-v-5610c8db]:before{content:"\e6d6"}.uniui-eye[data-v-5610c8db]:before{content:"\e651"}.uniui-eye-filled[data-v-5610c8db]:before{content:"\e66a"}.uniui-eye-slash[data-v-5610c8db]:before{content:"\e6b3"}.uniui-eye-slash-filled[data-v-5610c8db]:before{content:"\e6b4"}.uniui-info-filled[data-v-5610c8db]:before{content:"\e649"}.uniui-reload[data-v-5610c8db]:before{content:"\e6b2"}.uniui-micoff-filled[data-v-5610c8db]:before{content:"\e6b0"}.uniui-map-pin-ellipse[data-v-5610c8db]:before{content:"\e6ac"}.uniui-map-pin[data-v-5610c8db]:before{content:"\e6ad"}.uniui-location[data-v-5610c8db]:before{content:"\e6ae"}.uniui-starhalf[data-v-5610c8db]:before{content:"\e683"}.uniui-star[data-v-5610c8db]:before{content:"\e688"}.uniui-star-filled[data-v-5610c8db]:before{content:"\e68f"}.uniui-calendar[data-v-5610c8db]:before{content:"\e6a0"}.uniui-fire[data-v-5610c8db]:before{content:"\e6a1"}.uniui-medal[data-v-5610c8db]:before{content:"\e6a2"}.uniui-font[data-v-5610c8db]:before{content:"\e6a3"}.uniui-gift[data-v-5610c8db]:before{content:"\e6a4"}.uniui-link[data-v-5610c8db]:before{content:"\e6a5"}.uniui-notification[data-v-5610c8db]:before{content:"\e6a6"}.uniui-staff[data-v-5610c8db]:before{content:"\e6a7"}.uniui-vip[data-v-5610c8db]:before{content:"\e6a8"}.uniui-folder-add[data-v-5610c8db]:before{content:"\e6a9"}.uniui-tune[data-v-5610c8db]:before{content:"\e6aa"}.uniui-auth[data-v-5610c8db]:before{content:"\e6ab"}.uniui-person[data-v-5610c8db]:before{content:"\e699"}.uniui-email-filled[data-v-5610c8db]:before{content:"\e69a"}.uniui-phone-filled[data-v-5610c8db]:before{content:"\e69b"}.uniui-phone[data-v-5610c8db]:before{content:"\e69c"}.uniui-email[data-v-5610c8db]:before{content:"\e69e"}.uniui-personadd[data-v-5610c8db]:before{content:"\e69f"}.uniui-chatboxes-filled[data-v-5610c8db]:before{content:"\e692"}.uniui-contact[data-v-5610c8db]:before{content:"\e693"}.uniui-chatbubble-filled[data-v-5610c8db]:before{content:"\e694"}.uniui-contact-filled[data-v-5610c8db]:before{content:"\e695"}.uniui-chatboxes[data-v-5610c8db]:before{content:"\e696"}.uniui-chatbubble[data-v-5610c8db]:before{content:"\e697"}.uniui-upload-filled[data-v-5610c8db]:before{content:"\e68e"}.uniui-upload[data-v-5610c8db]:before{content:"\e690"}.uniui-weixin[data-v-5610c8db]:before{content:"\e691"}.uniui-compose[data-v-5610c8db]:before{content:"\e67f"}.uniui-qq[data-v-5610c8db]:before{content:"\e680"}.uniui-download-filled[data-v-5610c8db]:before{content:"\e681"}.uniui-pyq[data-v-5610c8db]:before{content:"\e682"}.uniui-sound[data-v-5610c8db]:before{content:"\e684"}.uniui-trash-filled[data-v-5610c8db]:before{content:"\e685"}.uniui-sound-filled[data-v-5610c8db]:before{content:"\e686"}.uniui-trash[data-v-5610c8db]:before{content:"\e687"}.uniui-videocam-filled[data-v-5610c8db]:before{content:"\e689"}.uniui-spinner-cycle[data-v-5610c8db]:before{content:"\e68a"}.uniui-weibo[data-v-5610c8db]:before{content:"\e68b"}.uniui-videocam[data-v-5610c8db]:before{content:"\e68c"}.uniui-download[data-v-5610c8db]:before{content:"\e68d"}.uniui-help[data-v-5610c8db]:before{content:"\e679"}.uniui-navigate-filled[data-v-5610c8db]:before{content:"\e67a"}.uniui-plusempty[data-v-5610c8db]:before{content:"\e67b"}.uniui-smallcircle[data-v-5610c8db]:before{content:"\e67c"}.uniui-minus-filled[data-v-5610c8db]:before{content:"\e67d"}.uniui-micoff[data-v-5610c8db]:before{content:"\e67e"}.uniui-closeempty[data-v-5610c8db]:before{content:"\e66c"}.uniui-clear[data-v-5610c8db]:before{content:"\e66d"}.uniui-navigate[data-v-5610c8db]:before{content:"\e66e"}.uniui-minus[data-v-5610c8db]:before{content:"\e66f"}.uniui-image[data-v-5610c8db]:before{content:"\e670"}.uniui-mic[data-v-5610c8db]:before{content:"\e671"}.uniui-paperplane[data-v-5610c8db]:before{content:"\e672"}.uniui-close[data-v-5610c8db]:before{content:"\e673"}.uniui-help-filled[data-v-5610c8db]:before{content:"\e674"}.uniui-paperplane-filled[data-v-5610c8db]:before{content:"\e675"}.uniui-plus[data-v-5610c8db]:before{content:"\e676"}.uniui-mic-filled[data-v-5610c8db]:before{content:"\e677"}.uniui-image-filled[data-v-5610c8db]:before{content:"\e678"}.uniui-locked-filled[data-v-5610c8db]:before{content:"\e668"}.uniui-info[data-v-5610c8db]:before{content:"\e669"}.uniui-locked[data-v-5610c8db]:before{content:"\e66b"}.uniui-camera-filled[data-v-5610c8db]:before{content:"\e658"}.uniui-chat-filled[data-v-5610c8db]:before{content:"\e659"}.uniui-camera[data-v-5610c8db]:before{content:"\e65a"}.uniui-circle[data-v-5610c8db]:before{content:"\e65b"}.uniui-checkmarkempty[data-v-5610c8db]:before{content:"\e65c"}.uniui-chat[data-v-5610c8db]:before{content:"\e65d"}.uniui-circle-filled[data-v-5610c8db]:before{content:"\e65e"}.uniui-flag[data-v-5610c8db]:before{content:"\e65f"}.uniui-flag-filled[data-v-5610c8db]:before{content:"\e660"}.uniui-gear-filled[data-v-5610c8db]:before{content:"\e661"}.uniui-home[data-v-5610c8db]:before{content:"\e662"}.uniui-home-filled[data-v-5610c8db]:before{content:"\e663"}.uniui-gear[data-v-5610c8db]:before{content:"\e664"}.uniui-smallcircle-filled[data-v-5610c8db]:before{content:"\e665"}.uniui-map-filled[data-v-5610c8db]:before{content:"\e666"}.uniui-map[data-v-5610c8db]:before{content:"\e667"}.uniui-refresh-filled[data-v-5610c8db]:before{content:"\e656"}.uniui-refresh[data-v-5610c8db]:before{content:"\e657"}.uniui-cloud-upload[data-v-5610c8db]:before{content:"\e645"}.uniui-cloud-download-filled[data-v-5610c8db]:before{content:"\e646"}.uniui-cloud-download[data-v-5610c8db]:before{content:"\e647"}.uniui-cloud-upload-filled[data-v-5610c8db]:before{content:"\e648"}.uniui-redo[data-v-5610c8db]:before{content:"\e64a"}.uniui-images-filled[data-v-5610c8db]:before{content:"\e64b"}.uniui-undo-filled[data-v-5610c8db]:before{content:"\e64c"}.uniui-more[data-v-5610c8db]:before{content:"\e64d"}.uniui-more-filled[data-v-5610c8db]:before{content:"\e64e"}.uniui-undo[data-v-5610c8db]:before{content:"\e64f"}.uniui-images[data-v-5610c8db]:before{content:"\e650"}.uniui-paperclip[data-v-5610c8db]:before{content:"\e652"}.uniui-settings[data-v-5610c8db]:before{content:"\e653"}.uniui-search[data-v-5610c8db]:before{content:"\e654"}.uniui-redo-filled[data-v-5610c8db]:before{content:"\e655"}.uniui-list[data-v-5610c8db]:before{content:"\e644"}.uniui-mail-open-filled[data-v-5610c8db]:before{content:"\e63a"}.uniui-hand-down-filled[data-v-5610c8db]:before{content:"\e63c"}.uniui-hand-down[data-v-5610c8db]:before{content:"\e63d"}.uniui-hand-up-filled[data-v-5610c8db]:before{content:"\e63e"}.uniui-hand-up[data-v-5610c8db]:before{content:"\e63f"}.uniui-heart-filled[data-v-5610c8db]:before{content:"\e641"}.uniui-mail-open[data-v-5610c8db]:before{content:"\e643"}.uniui-heart[data-v-5610c8db]:before{content:"\e639"}.uniui-loop[data-v-5610c8db]:before{content:"\e633"}.uniui-pulldown[data-v-5610c8db]:before{content:"\e632"}.uniui-scan[data-v-5610c8db]:before{content:"\e62a"}.uniui-bars[data-v-5610c8db]:before{content:"\e627"}.uniui-checkbox[data-v-5610c8db]:before{content:"\e62b"}.uniui-checkbox-filled[data-v-5610c8db]:before{content:"\e62c"}.uniui-shop[data-v-5610c8db]:before{content:"\e62f"}.uniui-headphones[data-v-5610c8db]:before{content:"\e630"}.uniui-cart[data-v-5610c8db]:before{content:"\e631"}@font-face{font-family:uniicons;src:url(../../assets/uniicons.32e978a5.ttf)}.uni-icons[data-v-5610c8db]{font-family:uniicons;text-decoration:none;text-align:center}.uni-file-picker__container[data-v-86b162f5]{display:flex;box-sizing:border-box;flex-wrap:wrap;margin:-5px}.file-picker__box[data-v-86b162f5]{position:relative;width:33.3%;height:0;padding-top:33.33%;box-sizing:border-box}.file-picker__box-content[data-v-86b162f5]{position:absolute;top:0;right:0;bottom:0;left:0;margin:5px;border:1px #eee solid;border-radius:5px;overflow:hidden}.file-picker__progress[data-v-86b162f5]{position:absolute;bottom:0;left:0;right:0;z-index:2}.file-picker__progress-item[data-v-86b162f5]{width:100%}.file-picker__mask[data-v-86b162f5]{display:flex;justify-content:center;align-items:center;position:absolute;right:0;top:0;bottom:0;left:0;color:#fff;font-size:12px;background-color:rgba(0,0,0,.4)}.file-image[data-v-86b162f5]{width:100%;height:100%}.is-add[data-v-86b162f5]{display:flex;align-items:center;justify-content:center}.icon-add[data-v-86b162f5]{width:50px;height:5px;background-color:#f1f1f1;border-radius:2px}.rotate[data-v-86b162f5]{position:absolute;transform:rotate(90deg)}.icon-del-box[data-v-86b162f5]{display:flex;align-items:center;justify-content:center;position:absolute;top:3px;right:3px;height:26px;width:26px;border-radius:50%;background-color:rgba(0,0,0,.5);z-index:2;transform:rotate(-45deg)}.icon-del[data-v-86b162f5]{width:15px;height:2px;background-color:#fff;border-radius:2px}.uni-file-picker__files[data-v-e61666c7]{display:flex;flex-direction:column;justify-content:flex-start}.uni-file-picker__lists[data-v-e61666c7]{position:relative;margin-top:5px;overflow:hidden}.file-picker__mask[data-v-e61666c7]{display:flex;justify-content:center;align-items:center;position:absolute;right:0;top:0;bottom:0;left:0;color:#fff;font-size:14px;background-color:rgba(0,0,0,.4)}.uni-file-picker__lists-box[data-v-e61666c7]{position:relative}.uni-file-picker__item[data-v-e61666c7]{display:flex;align-items:center;padding:8px 5px 8px 10px}.files-border[data-v-e61666c7]{border-top:1px #eee solid}.files__name[data-v-e61666c7]{flex:1;font-size:14px;color:#666;margin-right:25px;word-break:break-all;word-wrap:break-word}.icon-files[data-v-e61666c7]{position:static;background-color:initial}.is-list-card[data-v-e61666c7]{border:1px #eee solid;margin-bottom:5px;border-radius:5px;box-shadow:0 0 2px rgba(0,0,0,.1);padding:5px}.files__image[data-v-e61666c7]{width:40px;height:40px;margin-right:10px}.header-image[data-v-e61666c7]{width:100%;height:100%}.is-text-box[data-v-e61666c7]{border:1px #eee solid;border-radius:5px}.is-text-image[data-v-e61666c7]{width:25px;height:25px;margin-left:5px}.rotate[data-v-e61666c7]{position:absolute;transform:rotate(90deg)}.icon-del-box[data-v-e61666c7]{display:flex;margin:auto 0;align-items:center;justify-content:center;position:absolute;top:0;bottom:0;right:5px;height:26px;width:26px;z-index:2;transform:rotate(-45deg)}.icon-del[data-v-e61666c7]{width:15px;height:1px;background-color:#333}.uni-file-picker[data-v-086f9922]{box-sizing:border-box;overflow:hidden;width:100%;flex:1}.uni-file-picker__header[data-v-086f9922]{padding-top:5px;padding-bottom:10px;display:flex;justify-content:space-between}.file-title[data-v-086f9922]{font-size:14px;color:#333}.file-count[data-v-086f9922]{font-size:14px;color:#999}.is-add[data-v-086f9922]{display:flex;align-items:center;justify-content:center}.icon-add[data-v-086f9922]{width:50px;height:5px;background-color:#f1f1f1;border-radius:2px}.rotate[data-v-086f9922]{position:absolute;transform:rotate(90deg)}.uni-easyinput[data-v-d17898f6]{width:100%;flex:1;position:relative;text-align:left;color:#333;font-size:14px}.uni-easyinput__content[data-v-d17898f6]{flex:1;width:100%;display:flex;box-sizing:border-box;flex-direction:row;align-items:center;border-color:#fff;transition-property:border-color;transition-duration:.3s}.uni-easyinput__content-input[data-v-d17898f6]{width:auto;position:relative;overflow:hidden;flex:1;line-height:1;font-size:14px;height:35px}.uni-easyinput__content-input[data-v-d17898f6] ::-ms-reveal{display:none}.uni-easyinput__content-input[data-v-d17898f6] ::-ms-clear{display:none}.uni-easyinput__content-input[data-v-d17898f6] ::-o-clear{display:none}.uni-easyinput__placeholder-class[data-v-d17898f6]{color:#999;font-size:12px}.is-textarea[data-v-d17898f6]{align-items:flex-start}.is-textarea-icon[data-v-d17898f6]{margin-top:5px}.uni-easyinput__content-textarea[data-v-d17898f6]{position:relative;overflow:hidden;flex:1;line-height:1.5;font-size:14px;margin:6px 6px 6px 0;height:80px;min-height:80px;width:auto}.input-padding[data-v-d17898f6]{padding-left:10px}.content-clear-icon[data-v-d17898f6]{padding:0 5px}.label-icon[data-v-d17898f6]{margin-right:5px;margin-top:-1px}.is-input-border[data-v-d17898f6]{display:flex;box-sizing:border-box;flex-direction:row;align-items:center;border:1px solid #dcdfe6;border-radius:4px}.uni-error-message[data-v-d17898f6]{position:absolute;bottom:-17px;left:0;line-height:12px;color:#e43d33;font-size:12px;text-align:left}.uni-error-msg--boeder[data-v-d17898f6]{position:relative;bottom:0;line-height:22px}.is-input-error-border[data-v-d17898f6]{border-color:#e43d33}.is-input-error-border .uni-easyinput__placeholder-class[data-v-d17898f6]{color:#f29e99}.uni-easyinput--border[data-v-d17898f6]{margin-bottom:0;padding:10px 15px;border-top:1px #eee solid}.uni-easyinput-error[data-v-d17898f6]{padding-bottom:0}.is-first-border[data-v-d17898f6]{border:none}.is-disabled[data-v-d17898f6]{background-color:#f7f6f6;color:#d5d5d5}.is-disabled .uni-easyinput__placeholder-class[data-v-d17898f6]{color:#d5d5d5;font-size:12px}.uni-popup[data-v-9c09fb6f]{position:fixed;z-index:99}.uni-popup.top[data-v-9c09fb6f],.uni-popup.left[data-v-9c09fb6f],.uni-popup.right[data-v-9c09fb6f]{top:0}.uni-popup .uni-popup__wrapper[data-v-9c09fb6f]{display:block;position:relative}.uni-popup .uni-popup__wrapper.left[data-v-9c09fb6f],.uni-popup .uni-popup__wrapper.right[data-v-9c09fb6f]{padding-top:0;flex:1}.fixforpc-z-index[data-v-9c09fb6f]{z-index:999}.fixforpc-top[data-v-9c09fb6f]{top:0}.customthree-tree-select-content.border[data-v-b14c1821]{border-left:1px solid #c8c7cc}.customthree-tree-select-content[data-v-b14c1821] .uni-checkbox-input{margin:0!important}.customthree-tree-select-content .item-content[data-v-b14c1821]{margin:0 0 12px;display:flex;justify-content:space-between;align-items:center;position:relative}.customthree-tree-select-content .item-content[data-v-b14c1821]:after{content:"";position:absolute;top:0;left:0;bottom:0;width:3px;background-color:#fff;transform:translate(-2px);z-index:1}.customthree-tree-select-content .item-content .left[data-v-b14c1821]{flex:1;display:flex;align-items:center}.customthree-tree-select-content .item-content .left .right-icon[data-v-b14c1821]{transition:.15s ease}.customthree-tree-select-content .item-content .left .right-icon.active[data-v-b14c1821]{transform:rotate(90deg)}.customthree-tree-select-content .item-content .left .smallcircle-filled[data-v-b14c1821]{width:14px;height:13.6px;display:flex;align-items:center}.customthree-tree-select-content .item-content .left .smallcircle-filled .smallcircle-filled-icon[data-v-b14c1821]{transform-origin:center;transform:scale(.55)}.customthree-tree-select-content .item-content .left .loading-icon-box[data-v-b14c1821]{margin-right:5px;width:14px;height:100%;display:flex;justify-content:center;align-items:center}.customthree-tree-select-content .item-content .left .loading-icon-box .loading-icon[data-v-b14c1821]{transform-origin:center;animation:rotating-b14c1821 infinite .2s ease}.customthree-tree-select-content .item-content .left .name[data-v-b14c1821]{flex:1}.customthree-tree-select-content .check-box[data-v-b14c1821]{margin:0;padding:0;box-sizing:border-box;width:23.6px;height:23.6px;border:1px solid #c8c7cc;border-radius:3px;display:flex;justify-content:center;align-items:center}.customthree-tree-select-content .check-box.disabled[data-v-b14c1821]{background-color:#e1e1e1}.customthree-tree-select-content .check-box .part-checked[data-v-b14c1821]{width:60%;height:2px;background-color:#007aff}@keyframes rotating-b14c1821{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.select-list[data-v-0768d7c7]{padding-left:10px;min-height:35px;display:flex;justify-content:space-between;align-items:center}.select-list.active[data-v-0768d7c7]{padding:2px 0 2px 10px}.select-list .left[data-v-0768d7c7]{flex:1}.select-list .left .select-items[data-v-0768d7c7]{display:flex;flex-wrap:wrap}.select-list .left .select-item[data-v-0768d7c7]{max-width:auto;height:auto;display:flex;align-items:center}.select-list .left .select-item .name[data-v-0768d7c7]{flex:1;font-size:14px}.select-list .left .select-item .close[data-v-0768d7c7]{width:18px;height:18px;display:flex;justify-content:center;align-items:center;overflow:hidden}.select-list.disabled[data-v-0768d7c7]{background-color:#f5f7fa}.select-list.disabled .left .select-item .name[data-v-0768d7c7]{padding:0}.popup-content[data-v-0768d7c7]{flex:1;background-color:#fff;border-top-left-radius:20px;border-top-right-radius:20px;display:flex;flex-direction:column}.popup-content .title[data-v-0768d7c7]{padding:8px 3rem;border-bottom:1px solid #c8c7cc;font-size:14px;display:flex;justify-content:space-between;position:relative}.popup-content .title .left[data-v-0768d7c7]{position:absolute;left:10px}.popup-content .title .center[data-v-0768d7c7]{flex:1;text-align:center}.popup-content .title .right[data-v-0768d7c7]{position:absolute;right:10px}.popup-content .search-box[data-v-0768d7c7]{margin:8px 10px 0;background-color:#fff;display:flex;align-items:center}.popup-content .search-box .search-btn[data-v-0768d7c7]{margin-left:10px;height:35px;line-height:35px}.popup-content .select-content[data-v-0768d7c7]{margin:8px 10px;flex:1;overflow:hidden;position:relative}.popup-content .scroll-view-box[data-v-0768d7c7]{touch-action:none;flex:1;position:absolute;top:0;right:0;bottom:0;left:0}.popup-content .sentry[data-v-0768d7c7]{height:48px}.no-data[data-v-0768d7c7]{font-size:.875rem;color:#999}body{background-color:#fff}.btn[data-v-6e3acbe9]{border-top:1px solid #EFEFEF;height:3.75rem;justify-content:center;position:fixed;bottom:0;width:100vw}.btn uni-view[data-v-6e3acbe9]{width:21.5625rem;height:2.75rem;background:#01508b;border-radius:.5rem;font-size:.875rem;color:#fff;text-align:center;line-height:2.75rem}.input_box[data-v-6e3acbe9]{height:3.125rem}.input_box .title[data-v-6e3acbe9]{font-size:.875rem;color:#333}.input_box uni-input[data-v-6e3acbe9]{flex:1;height:100%;text-align:right;font-size:.875rem;color:#333}.form[data-v-6e3acbe9]{padding:0 .9375rem;background-color:#fff}.form .title[data-v-6e3acbe9]{font-size:.875rem;color:#333}.form .box[data-v-6e3acbe9]{height:3.125rem}.form .box[data-v-6e3acbe9]:not(:last-child){border-bottom:1px solid #EFEFEF}.form .choose[data-v-6e3acbe9]{font-size:.875rem;color:#999}.form .choosed[data-v-6e3acbe9]{font-size:.875rem;color:#333} +.uniui-cart-filled[data-v-5610c8db]:before{content:"\e6d0"}.uniui-gift-filled[data-v-5610c8db]:before{content:"\e6c4"}.uniui-color[data-v-5610c8db]:before{content:"\e6cf"}.uniui-wallet[data-v-5610c8db]:before{content:"\e6b1"}.uniui-settings-filled[data-v-5610c8db]:before{content:"\e6ce"}.uniui-auth-filled[data-v-5610c8db]:before{content:"\e6cc"}.uniui-shop-filled[data-v-5610c8db]:before{content:"\e6cd"}.uniui-staff-filled[data-v-5610c8db]:before{content:"\e6cb"}.uniui-vip-filled[data-v-5610c8db]:before{content:"\e6c6"}.uniui-plus-filled[data-v-5610c8db]:before{content:"\e6c7"}.uniui-folder-add-filled[data-v-5610c8db]:before{content:"\e6c8"}.uniui-color-filled[data-v-5610c8db]:before{content:"\e6c9"}.uniui-tune-filled[data-v-5610c8db]:before{content:"\e6ca"}.uniui-calendar-filled[data-v-5610c8db]:before{content:"\e6c0"}.uniui-notification-filled[data-v-5610c8db]:before{content:"\e6c1"}.uniui-wallet-filled[data-v-5610c8db]:before{content:"\e6c2"}.uniui-medal-filled[data-v-5610c8db]:before{content:"\e6c3"}.uniui-fire-filled[data-v-5610c8db]:before{content:"\e6c5"}.uniui-refreshempty[data-v-5610c8db]:before{content:"\e6bf"}.uniui-location-filled[data-v-5610c8db]:before{content:"\e6af"}.uniui-person-filled[data-v-5610c8db]:before{content:"\e69d"}.uniui-personadd-filled[data-v-5610c8db]:before{content:"\e698"}.uniui-arrowthinleft[data-v-5610c8db]:before{content:"\e6d2"}.uniui-arrowthinup[data-v-5610c8db]:before{content:"\e6d3"}.uniui-arrowthindown[data-v-5610c8db]:before{content:"\e6d4"}.uniui-back[data-v-5610c8db]:before{content:"\e6b9"}.uniui-forward[data-v-5610c8db]:before{content:"\e6ba"}.uniui-arrow-right[data-v-5610c8db]:before{content:"\e6bb"}.uniui-arrow-left[data-v-5610c8db]:before{content:"\e6bc"}.uniui-arrow-up[data-v-5610c8db]:before{content:"\e6bd"}.uniui-arrow-down[data-v-5610c8db]:before{content:"\e6be"}.uniui-arrowthinright[data-v-5610c8db]:before{content:"\e6d1"}.uniui-down[data-v-5610c8db]:before{content:"\e6b8"}.uniui-bottom[data-v-5610c8db]:before{content:"\e6b8"}.uniui-arrowright[data-v-5610c8db]:before{content:"\e6d5"}.uniui-right[data-v-5610c8db]:before{content:"\e6b5"}.uniui-up[data-v-5610c8db]:before{content:"\e6b6"}.uniui-top[data-v-5610c8db]:before{content:"\e6b6"}.uniui-left[data-v-5610c8db]:before{content:"\e6b7"}.uniui-arrowup[data-v-5610c8db]:before{content:"\e6d6"}.uniui-eye[data-v-5610c8db]:before{content:"\e651"}.uniui-eye-filled[data-v-5610c8db]:before{content:"\e66a"}.uniui-eye-slash[data-v-5610c8db]:before{content:"\e6b3"}.uniui-eye-slash-filled[data-v-5610c8db]:before{content:"\e6b4"}.uniui-info-filled[data-v-5610c8db]:before{content:"\e649"}.uniui-reload[data-v-5610c8db]:before{content:"\e6b2"}.uniui-micoff-filled[data-v-5610c8db]:before{content:"\e6b0"}.uniui-map-pin-ellipse[data-v-5610c8db]:before{content:"\e6ac"}.uniui-map-pin[data-v-5610c8db]:before{content:"\e6ad"}.uniui-location[data-v-5610c8db]:before{content:"\e6ae"}.uniui-starhalf[data-v-5610c8db]:before{content:"\e683"}.uniui-star[data-v-5610c8db]:before{content:"\e688"}.uniui-star-filled[data-v-5610c8db]:before{content:"\e68f"}.uniui-calendar[data-v-5610c8db]:before{content:"\e6a0"}.uniui-fire[data-v-5610c8db]:before{content:"\e6a1"}.uniui-medal[data-v-5610c8db]:before{content:"\e6a2"}.uniui-font[data-v-5610c8db]:before{content:"\e6a3"}.uniui-gift[data-v-5610c8db]:before{content:"\e6a4"}.uniui-link[data-v-5610c8db]:before{content:"\e6a5"}.uniui-notification[data-v-5610c8db]:before{content:"\e6a6"}.uniui-staff[data-v-5610c8db]:before{content:"\e6a7"}.uniui-vip[data-v-5610c8db]:before{content:"\e6a8"}.uniui-folder-add[data-v-5610c8db]:before{content:"\e6a9"}.uniui-tune[data-v-5610c8db]:before{content:"\e6aa"}.uniui-auth[data-v-5610c8db]:before{content:"\e6ab"}.uniui-person[data-v-5610c8db]:before{content:"\e699"}.uniui-email-filled[data-v-5610c8db]:before{content:"\e69a"}.uniui-phone-filled[data-v-5610c8db]:before{content:"\e69b"}.uniui-phone[data-v-5610c8db]:before{content:"\e69c"}.uniui-email[data-v-5610c8db]:before{content:"\e69e"}.uniui-personadd[data-v-5610c8db]:before{content:"\e69f"}.uniui-chatboxes-filled[data-v-5610c8db]:before{content:"\e692"}.uniui-contact[data-v-5610c8db]:before{content:"\e693"}.uniui-chatbubble-filled[data-v-5610c8db]:before{content:"\e694"}.uniui-contact-filled[data-v-5610c8db]:before{content:"\e695"}.uniui-chatboxes[data-v-5610c8db]:before{content:"\e696"}.uniui-chatbubble[data-v-5610c8db]:before{content:"\e697"}.uniui-upload-filled[data-v-5610c8db]:before{content:"\e68e"}.uniui-upload[data-v-5610c8db]:before{content:"\e690"}.uniui-weixin[data-v-5610c8db]:before{content:"\e691"}.uniui-compose[data-v-5610c8db]:before{content:"\e67f"}.uniui-qq[data-v-5610c8db]:before{content:"\e680"}.uniui-download-filled[data-v-5610c8db]:before{content:"\e681"}.uniui-pyq[data-v-5610c8db]:before{content:"\e682"}.uniui-sound[data-v-5610c8db]:before{content:"\e684"}.uniui-trash-filled[data-v-5610c8db]:before{content:"\e685"}.uniui-sound-filled[data-v-5610c8db]:before{content:"\e686"}.uniui-trash[data-v-5610c8db]:before{content:"\e687"}.uniui-videocam-filled[data-v-5610c8db]:before{content:"\e689"}.uniui-spinner-cycle[data-v-5610c8db]:before{content:"\e68a"}.uniui-weibo[data-v-5610c8db]:before{content:"\e68b"}.uniui-videocam[data-v-5610c8db]:before{content:"\e68c"}.uniui-download[data-v-5610c8db]:before{content:"\e68d"}.uniui-help[data-v-5610c8db]:before{content:"\e679"}.uniui-navigate-filled[data-v-5610c8db]:before{content:"\e67a"}.uniui-plusempty[data-v-5610c8db]:before{content:"\e67b"}.uniui-smallcircle[data-v-5610c8db]:before{content:"\e67c"}.uniui-minus-filled[data-v-5610c8db]:before{content:"\e67d"}.uniui-micoff[data-v-5610c8db]:before{content:"\e67e"}.uniui-closeempty[data-v-5610c8db]:before{content:"\e66c"}.uniui-clear[data-v-5610c8db]:before{content:"\e66d"}.uniui-navigate[data-v-5610c8db]:before{content:"\e66e"}.uniui-minus[data-v-5610c8db]:before{content:"\e66f"}.uniui-image[data-v-5610c8db]:before{content:"\e670"}.uniui-mic[data-v-5610c8db]:before{content:"\e671"}.uniui-paperplane[data-v-5610c8db]:before{content:"\e672"}.uniui-close[data-v-5610c8db]:before{content:"\e673"}.uniui-help-filled[data-v-5610c8db]:before{content:"\e674"}.uniui-paperplane-filled[data-v-5610c8db]:before{content:"\e675"}.uniui-plus[data-v-5610c8db]:before{content:"\e676"}.uniui-mic-filled[data-v-5610c8db]:before{content:"\e677"}.uniui-image-filled[data-v-5610c8db]:before{content:"\e678"}.uniui-locked-filled[data-v-5610c8db]:before{content:"\e668"}.uniui-info[data-v-5610c8db]:before{content:"\e669"}.uniui-locked[data-v-5610c8db]:before{content:"\e66b"}.uniui-camera-filled[data-v-5610c8db]:before{content:"\e658"}.uniui-chat-filled[data-v-5610c8db]:before{content:"\e659"}.uniui-camera[data-v-5610c8db]:before{content:"\e65a"}.uniui-circle[data-v-5610c8db]:before{content:"\e65b"}.uniui-checkmarkempty[data-v-5610c8db]:before{content:"\e65c"}.uniui-chat[data-v-5610c8db]:before{content:"\e65d"}.uniui-circle-filled[data-v-5610c8db]:before{content:"\e65e"}.uniui-flag[data-v-5610c8db]:before{content:"\e65f"}.uniui-flag-filled[data-v-5610c8db]:before{content:"\e660"}.uniui-gear-filled[data-v-5610c8db]:before{content:"\e661"}.uniui-home[data-v-5610c8db]:before{content:"\e662"}.uniui-home-filled[data-v-5610c8db]:before{content:"\e663"}.uniui-gear[data-v-5610c8db]:before{content:"\e664"}.uniui-smallcircle-filled[data-v-5610c8db]:before{content:"\e665"}.uniui-map-filled[data-v-5610c8db]:before{content:"\e666"}.uniui-map[data-v-5610c8db]:before{content:"\e667"}.uniui-refresh-filled[data-v-5610c8db]:before{content:"\e656"}.uniui-refresh[data-v-5610c8db]:before{content:"\e657"}.uniui-cloud-upload[data-v-5610c8db]:before{content:"\e645"}.uniui-cloud-download-filled[data-v-5610c8db]:before{content:"\e646"}.uniui-cloud-download[data-v-5610c8db]:before{content:"\e647"}.uniui-cloud-upload-filled[data-v-5610c8db]:before{content:"\e648"}.uniui-redo[data-v-5610c8db]:before{content:"\e64a"}.uniui-images-filled[data-v-5610c8db]:before{content:"\e64b"}.uniui-undo-filled[data-v-5610c8db]:before{content:"\e64c"}.uniui-more[data-v-5610c8db]:before{content:"\e64d"}.uniui-more-filled[data-v-5610c8db]:before{content:"\e64e"}.uniui-undo[data-v-5610c8db]:before{content:"\e64f"}.uniui-images[data-v-5610c8db]:before{content:"\e650"}.uniui-paperclip[data-v-5610c8db]:before{content:"\e652"}.uniui-settings[data-v-5610c8db]:before{content:"\e653"}.uniui-search[data-v-5610c8db]:before{content:"\e654"}.uniui-redo-filled[data-v-5610c8db]:before{content:"\e655"}.uniui-list[data-v-5610c8db]:before{content:"\e644"}.uniui-mail-open-filled[data-v-5610c8db]:before{content:"\e63a"}.uniui-hand-down-filled[data-v-5610c8db]:before{content:"\e63c"}.uniui-hand-down[data-v-5610c8db]:before{content:"\e63d"}.uniui-hand-up-filled[data-v-5610c8db]:before{content:"\e63e"}.uniui-hand-up[data-v-5610c8db]:before{content:"\e63f"}.uniui-heart-filled[data-v-5610c8db]:before{content:"\e641"}.uniui-mail-open[data-v-5610c8db]:before{content:"\e643"}.uniui-heart[data-v-5610c8db]:before{content:"\e639"}.uniui-loop[data-v-5610c8db]:before{content:"\e633"}.uniui-pulldown[data-v-5610c8db]:before{content:"\e632"}.uniui-scan[data-v-5610c8db]:before{content:"\e62a"}.uniui-bars[data-v-5610c8db]:before{content:"\e627"}.uniui-checkbox[data-v-5610c8db]:before{content:"\e62b"}.uniui-checkbox-filled[data-v-5610c8db]:before{content:"\e62c"}.uniui-shop[data-v-5610c8db]:before{content:"\e62f"}.uniui-headphones[data-v-5610c8db]:before{content:"\e630"}.uniui-cart[data-v-5610c8db]:before{content:"\e631"}@font-face{font-family:uniicons;src:url(../../assets/uniicons.32e978a5.ttf)}.uni-icons[data-v-5610c8db]{font-family:uniicons;text-decoration:none;text-align:center}.uni-file-picker__container[data-v-86b162f5]{display:flex;box-sizing:border-box;flex-wrap:wrap;margin:-5px}.file-picker__box[data-v-86b162f5]{position:relative;width:33.3%;height:0;padding-top:33.33%;box-sizing:border-box}.file-picker__box-content[data-v-86b162f5]{position:absolute;top:0;right:0;bottom:0;left:0;margin:5px;border:1px #eee solid;border-radius:5px;overflow:hidden}.file-picker__progress[data-v-86b162f5]{position:absolute;bottom:0;left:0;right:0;z-index:2}.file-picker__progress-item[data-v-86b162f5]{width:100%}.file-picker__mask[data-v-86b162f5]{display:flex;justify-content:center;align-items:center;position:absolute;right:0;top:0;bottom:0;left:0;color:#fff;font-size:12px;background-color:rgba(0,0,0,.4)}.file-image[data-v-86b162f5]{width:100%;height:100%}.is-add[data-v-86b162f5]{display:flex;align-items:center;justify-content:center}.icon-add[data-v-86b162f5]{width:50px;height:5px;background-color:#f1f1f1;border-radius:2px}.rotate[data-v-86b162f5]{position:absolute;transform:rotate(90deg)}.icon-del-box[data-v-86b162f5]{display:flex;align-items:center;justify-content:center;position:absolute;top:3px;right:3px;height:26px;width:26px;border-radius:50%;background-color:rgba(0,0,0,.5);z-index:2;transform:rotate(-45deg)}.icon-del[data-v-86b162f5]{width:15px;height:2px;background-color:#fff;border-radius:2px}.uni-file-picker__files[data-v-e61666c7]{display:flex;flex-direction:column;justify-content:flex-start}.uni-file-picker__lists[data-v-e61666c7]{position:relative;margin-top:5px;overflow:hidden}.file-picker__mask[data-v-e61666c7]{display:flex;justify-content:center;align-items:center;position:absolute;right:0;top:0;bottom:0;left:0;color:#fff;font-size:14px;background-color:rgba(0,0,0,.4)}.uni-file-picker__lists-box[data-v-e61666c7]{position:relative}.uni-file-picker__item[data-v-e61666c7]{display:flex;align-items:center;padding:8px 5px 8px 10px}.files-border[data-v-e61666c7]{border-top:1px #eee solid}.files__name[data-v-e61666c7]{flex:1;font-size:14px;color:#666;margin-right:25px;word-break:break-all;word-wrap:break-word}.icon-files[data-v-e61666c7]{position:static;background-color:initial}.is-list-card[data-v-e61666c7]{border:1px #eee solid;margin-bottom:5px;border-radius:5px;box-shadow:0 0 2px rgba(0,0,0,.1);padding:5px}.files__image[data-v-e61666c7]{width:40px;height:40px;margin-right:10px}.header-image[data-v-e61666c7]{width:100%;height:100%}.is-text-box[data-v-e61666c7]{border:1px #eee solid;border-radius:5px}.is-text-image[data-v-e61666c7]{width:25px;height:25px;margin-left:5px}.rotate[data-v-e61666c7]{position:absolute;transform:rotate(90deg)}.icon-del-box[data-v-e61666c7]{display:flex;margin:auto 0;align-items:center;justify-content:center;position:absolute;top:0;bottom:0;right:5px;height:26px;width:26px;z-index:2;transform:rotate(-45deg)}.icon-del[data-v-e61666c7]{width:15px;height:1px;background-color:#333}.uni-file-picker[data-v-086f9922]{box-sizing:border-box;overflow:hidden;width:100%;flex:1}.uni-file-picker__header[data-v-086f9922]{padding-top:5px;padding-bottom:10px;display:flex;justify-content:space-between}.file-title[data-v-086f9922]{font-size:14px;color:#333}.file-count[data-v-086f9922]{font-size:14px;color:#999}.is-add[data-v-086f9922]{display:flex;align-items:center;justify-content:center}.icon-add[data-v-086f9922]{width:50px;height:5px;background-color:#f1f1f1;border-radius:2px}.rotate[data-v-086f9922]{position:absolute;transform:rotate(90deg)}.uni-easyinput[data-v-d17898f6]{width:100%;flex:1;position:relative;text-align:left;color:#333;font-size:14px}.uni-easyinput__content[data-v-d17898f6]{flex:1;width:100%;display:flex;box-sizing:border-box;flex-direction:row;align-items:center;border-color:#fff;transition-property:border-color;transition-duration:.3s}.uni-easyinput__content-input[data-v-d17898f6]{width:auto;position:relative;overflow:hidden;flex:1;line-height:1;font-size:14px;height:35px}.uni-easyinput__content-input[data-v-d17898f6] ::-ms-reveal{display:none}.uni-easyinput__content-input[data-v-d17898f6] ::-ms-clear{display:none}.uni-easyinput__content-input[data-v-d17898f6] ::-o-clear{display:none}.uni-easyinput__placeholder-class[data-v-d17898f6]{color:#999;font-size:12px}.is-textarea[data-v-d17898f6]{align-items:flex-start}.is-textarea-icon[data-v-d17898f6]{margin-top:5px}.uni-easyinput__content-textarea[data-v-d17898f6]{position:relative;overflow:hidden;flex:1;line-height:1.5;font-size:14px;margin:6px 6px 6px 0;height:80px;min-height:80px;width:auto}.input-padding[data-v-d17898f6]{padding-left:10px}.content-clear-icon[data-v-d17898f6]{padding:0 5px}.label-icon[data-v-d17898f6]{margin-right:5px;margin-top:-1px}.is-input-border[data-v-d17898f6]{display:flex;box-sizing:border-box;flex-direction:row;align-items:center;border:1px solid #dcdfe6;border-radius:4px}.uni-error-message[data-v-d17898f6]{position:absolute;bottom:-17px;left:0;line-height:12px;color:#e43d33;font-size:12px;text-align:left}.uni-error-msg--boeder[data-v-d17898f6]{position:relative;bottom:0;line-height:22px}.is-input-error-border[data-v-d17898f6]{border-color:#e43d33}.is-input-error-border .uni-easyinput__placeholder-class[data-v-d17898f6]{color:#f29e99}.uni-easyinput--border[data-v-d17898f6]{margin-bottom:0;padding:10px 15px;border-top:1px #eee solid}.uni-easyinput-error[data-v-d17898f6]{padding-bottom:0}.is-first-border[data-v-d17898f6]{border:none}.is-disabled[data-v-d17898f6]{background-color:#f7f6f6;color:#d5d5d5}.is-disabled .uni-easyinput__placeholder-class[data-v-d17898f6]{color:#d5d5d5;font-size:12px}.uni-popup[data-v-9c09fb6f]{position:fixed;z-index:99}.uni-popup.top[data-v-9c09fb6f],.uni-popup.left[data-v-9c09fb6f],.uni-popup.right[data-v-9c09fb6f]{top:0}.uni-popup .uni-popup__wrapper[data-v-9c09fb6f]{display:block;position:relative}.uni-popup .uni-popup__wrapper.left[data-v-9c09fb6f],.uni-popup .uni-popup__wrapper.right[data-v-9c09fb6f]{padding-top:0;flex:1}.fixforpc-z-index[data-v-9c09fb6f]{z-index:999}.fixforpc-top[data-v-9c09fb6f]{top:0}.customthree-tree-select-content.border[data-v-50ed94e6]{border-left:1px solid #c8c7cc}.customthree-tree-select-content[data-v-50ed94e6] .uni-checkbox-input{margin:0!important}.customthree-tree-select-content .item-content[data-v-50ed94e6]{margin:0 0 12px;display:flex;justify-content:space-between;align-items:center;position:relative}.customthree-tree-select-content .item-content[data-v-50ed94e6]:after{content:"";position:absolute;top:0;left:0;bottom:0;width:3px;background-color:#fff;transform:translate(-2px);z-index:1}.customthree-tree-select-content .item-content .left[data-v-50ed94e6]{flex:1;display:flex;align-items:center}.customthree-tree-select-content .item-content .left .right-icon[data-v-50ed94e6]{transition:.15s ease}.customthree-tree-select-content .item-content .left .right-icon.active[data-v-50ed94e6]{transform:rotate(90deg)}.customthree-tree-select-content .item-content .left .smallcircle-filled[data-v-50ed94e6]{width:14px;height:13.6px;display:flex;align-items:center}.customthree-tree-select-content .item-content .left .smallcircle-filled .smallcircle-filled-icon[data-v-50ed94e6]{transform-origin:center;transform:scale(.55)}.customthree-tree-select-content .item-content .left .loading-icon-box[data-v-50ed94e6]{margin-right:5px;width:14px;height:100%;display:flex;justify-content:center;align-items:center}.customthree-tree-select-content .item-content .left .loading-icon-box .loading-icon[data-v-50ed94e6]{transform-origin:center;animation:rotating-50ed94e6 infinite .2s ease}.customthree-tree-select-content .item-content .left .name[data-v-50ed94e6]{flex:1}.customthree-tree-select-content .check-box[data-v-50ed94e6]{margin:0;padding:0;box-sizing:border-box;width:23.6px;height:23.6px;border:1px solid #c8c7cc;display:flex;justify-content:center;align-items:center}.customthree-tree-select-content .check-box.disabled[data-v-50ed94e6]{background-color:#e1e1e1}.customthree-tree-select-content .check-box .part-checked[data-v-50ed94e6]{width:60%;height:2px;background-color:#007aff}@keyframes rotating-50ed94e6{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.select-list[data-v-0768d7c7]{padding-left:10px;min-height:35px;display:flex;justify-content:space-between;align-items:center}.select-list.active[data-v-0768d7c7]{padding:2px 0 2px 10px}.select-list .left[data-v-0768d7c7]{flex:1}.select-list .left .select-items[data-v-0768d7c7]{display:flex;flex-wrap:wrap}.select-list .left .select-item[data-v-0768d7c7]{max-width:auto;height:auto;display:flex;align-items:center}.select-list .left .select-item .name[data-v-0768d7c7]{flex:1;font-size:14px}.select-list .left .select-item .close[data-v-0768d7c7]{width:18px;height:18px;display:flex;justify-content:center;align-items:center;overflow:hidden}.select-list.disabled[data-v-0768d7c7]{background-color:#f5f7fa}.select-list.disabled .left .select-item .name[data-v-0768d7c7]{padding:0}.popup-content[data-v-0768d7c7]{flex:1;background-color:#fff;border-top-left-radius:20px;border-top-right-radius:20px;display:flex;flex-direction:column}.popup-content .title[data-v-0768d7c7]{padding:8px 3rem;border-bottom:1px solid #c8c7cc;font-size:14px;display:flex;justify-content:space-between;position:relative}.popup-content .title .left[data-v-0768d7c7]{position:absolute;left:10px}.popup-content .title .center[data-v-0768d7c7]{flex:1;text-align:center}.popup-content .title .right[data-v-0768d7c7]{position:absolute;right:10px}.popup-content .search-box[data-v-0768d7c7]{margin:8px 10px 0;background-color:#fff;display:flex;align-items:center}.popup-content .search-box .search-btn[data-v-0768d7c7]{margin-left:10px;height:35px;line-height:35px}.popup-content .select-content[data-v-0768d7c7]{margin:8px 10px;flex:1;overflow:hidden;position:relative}.popup-content .scroll-view-box[data-v-0768d7c7]{touch-action:none;flex:1;position:absolute;top:0;right:0;bottom:0;left:0}.popup-content .sentry[data-v-0768d7c7]{height:48px}.no-data[data-v-0768d7c7]{font-size:.875rem;color:#999}body{background-color:#fff}.btn[data-v-6e3acbe9]{border-top:1px solid #EFEFEF;height:3.75rem;justify-content:center;position:fixed;bottom:0;width:100vw}.btn uni-view[data-v-6e3acbe9]{width:21.5625rem;height:2.75rem;background:#01508b;border-radius:.5rem;font-size:.875rem;color:#fff;text-align:center;line-height:2.75rem}.input_box[data-v-6e3acbe9]{height:3.125rem}.input_box .title[data-v-6e3acbe9]{font-size:.875rem;color:#333}.input_box uni-input[data-v-6e3acbe9]{flex:1;height:100%;text-align:right;font-size:.875rem;color:#333}.form[data-v-6e3acbe9]{padding:0 .9375rem;background-color:#fff}.form .title[data-v-6e3acbe9]{font-size:.875rem;color:#333}.form .box[data-v-6e3acbe9]{height:3.125rem}.form .box[data-v-6e3acbe9]:not(:last-child){border-bottom:1px solid #EFEFEF}.form .choose[data-v-6e3acbe9]{font-size:.875rem;color:#999}.form .choosed[data-v-6e3acbe9]{font-size:.875rem;color:#333} diff --git a/unpackage/cache/wgt/__UNI__F0AFD30/pages/login/login.css b/unpackage/cache/wgt/__UNI__9F097F0/pages/login/login.css similarity index 100% rename from unpackage/cache/wgt/__UNI__F0AFD30/pages/login/login.css rename to unpackage/cache/wgt/__UNI__9F097F0/pages/login/login.css diff --git a/unpackage/cache/wgt/__UNI__F0AFD30/pages/meeting/detail.css b/unpackage/cache/wgt/__UNI__9F097F0/pages/meeting/detail.css similarity index 100% rename from unpackage/cache/wgt/__UNI__F0AFD30/pages/meeting/detail.css rename to unpackage/cache/wgt/__UNI__9F097F0/pages/meeting/detail.css diff --git a/unpackage/cache/wgt/__UNI__F0AFD30/pages/meeting/index.css b/unpackage/cache/wgt/__UNI__9F097F0/pages/meeting/index.css similarity index 100% rename from unpackage/cache/wgt/__UNI__F0AFD30/pages/meeting/index.css rename to unpackage/cache/wgt/__UNI__9F097F0/pages/meeting/index.css diff --git a/unpackage/cache/wgt/__UNI__F0AFD30/pages/product/index.css b/unpackage/cache/wgt/__UNI__9F097F0/pages/product/index.css similarity index 100% rename from unpackage/cache/wgt/__UNI__F0AFD30/pages/product/index.css rename to unpackage/cache/wgt/__UNI__9F097F0/pages/product/index.css diff --git a/unpackage/cache/wgt/__UNI__F0AFD30/pages/safe/detail.css b/unpackage/cache/wgt/__UNI__9F097F0/pages/safe/detail.css similarity index 100% rename from unpackage/cache/wgt/__UNI__F0AFD30/pages/safe/detail.css rename to unpackage/cache/wgt/__UNI__9F097F0/pages/safe/detail.css diff --git a/unpackage/cache/wgt/__UNI__F0AFD30/pages/safe/manage.css b/unpackage/cache/wgt/__UNI__9F097F0/pages/safe/manage.css similarity index 100% rename from unpackage/cache/wgt/__UNI__F0AFD30/pages/safe/manage.css rename to unpackage/cache/wgt/__UNI__9F097F0/pages/safe/manage.css diff --git a/unpackage/cache/wgt/__UNI__F0AFD30/pages/tab/index.css b/unpackage/cache/wgt/__UNI__9F097F0/pages/tab/index.css similarity index 89% rename from unpackage/cache/wgt/__UNI__F0AFD30/pages/tab/index.css rename to unpackage/cache/wgt/__UNI__9F097F0/pages/tab/index.css index f8da515..5bf946a 100644 --- a/unpackage/cache/wgt/__UNI__F0AFD30/pages/tab/index.css +++ b/unpackage/cache/wgt/__UNI__9F097F0/pages/tab/index.css @@ -1 +1 @@ -.uniui-cart-filled[data-v-5610c8db]:before{content:"\e6d0"}.uniui-gift-filled[data-v-5610c8db]:before{content:"\e6c4"}.uniui-color[data-v-5610c8db]:before{content:"\e6cf"}.uniui-wallet[data-v-5610c8db]:before{content:"\e6b1"}.uniui-settings-filled[data-v-5610c8db]:before{content:"\e6ce"}.uniui-auth-filled[data-v-5610c8db]:before{content:"\e6cc"}.uniui-shop-filled[data-v-5610c8db]:before{content:"\e6cd"}.uniui-staff-filled[data-v-5610c8db]:before{content:"\e6cb"}.uniui-vip-filled[data-v-5610c8db]:before{content:"\e6c6"}.uniui-plus-filled[data-v-5610c8db]:before{content:"\e6c7"}.uniui-folder-add-filled[data-v-5610c8db]:before{content:"\e6c8"}.uniui-color-filled[data-v-5610c8db]:before{content:"\e6c9"}.uniui-tune-filled[data-v-5610c8db]:before{content:"\e6ca"}.uniui-calendar-filled[data-v-5610c8db]:before{content:"\e6c0"}.uniui-notification-filled[data-v-5610c8db]:before{content:"\e6c1"}.uniui-wallet-filled[data-v-5610c8db]:before{content:"\e6c2"}.uniui-medal-filled[data-v-5610c8db]:before{content:"\e6c3"}.uniui-fire-filled[data-v-5610c8db]:before{content:"\e6c5"}.uniui-refreshempty[data-v-5610c8db]:before{content:"\e6bf"}.uniui-location-filled[data-v-5610c8db]:before{content:"\e6af"}.uniui-person-filled[data-v-5610c8db]:before{content:"\e69d"}.uniui-personadd-filled[data-v-5610c8db]:before{content:"\e698"}.uniui-arrowthinleft[data-v-5610c8db]:before{content:"\e6d2"}.uniui-arrowthinup[data-v-5610c8db]:before{content:"\e6d3"}.uniui-arrowthindown[data-v-5610c8db]:before{content:"\e6d4"}.uniui-back[data-v-5610c8db]:before{content:"\e6b9"}.uniui-forward[data-v-5610c8db]:before{content:"\e6ba"}.uniui-arrow-right[data-v-5610c8db]:before{content:"\e6bb"}.uniui-arrow-left[data-v-5610c8db]:before{content:"\e6bc"}.uniui-arrow-up[data-v-5610c8db]:before{content:"\e6bd"}.uniui-arrow-down[data-v-5610c8db]:before{content:"\e6be"}.uniui-arrowthinright[data-v-5610c8db]:before{content:"\e6d1"}.uniui-down[data-v-5610c8db]:before{content:"\e6b8"}.uniui-bottom[data-v-5610c8db]:before{content:"\e6b8"}.uniui-arrowright[data-v-5610c8db]:before{content:"\e6d5"}.uniui-right[data-v-5610c8db]:before{content:"\e6b5"}.uniui-up[data-v-5610c8db]:before{content:"\e6b6"}.uniui-top[data-v-5610c8db]:before{content:"\e6b6"}.uniui-left[data-v-5610c8db]:before{content:"\e6b7"}.uniui-arrowup[data-v-5610c8db]:before{content:"\e6d6"}.uniui-eye[data-v-5610c8db]:before{content:"\e651"}.uniui-eye-filled[data-v-5610c8db]:before{content:"\e66a"}.uniui-eye-slash[data-v-5610c8db]:before{content:"\e6b3"}.uniui-eye-slash-filled[data-v-5610c8db]:before{content:"\e6b4"}.uniui-info-filled[data-v-5610c8db]:before{content:"\e649"}.uniui-reload[data-v-5610c8db]:before{content:"\e6b2"}.uniui-micoff-filled[data-v-5610c8db]:before{content:"\e6b0"}.uniui-map-pin-ellipse[data-v-5610c8db]:before{content:"\e6ac"}.uniui-map-pin[data-v-5610c8db]:before{content:"\e6ad"}.uniui-location[data-v-5610c8db]:before{content:"\e6ae"}.uniui-starhalf[data-v-5610c8db]:before{content:"\e683"}.uniui-star[data-v-5610c8db]:before{content:"\e688"}.uniui-star-filled[data-v-5610c8db]:before{content:"\e68f"}.uniui-calendar[data-v-5610c8db]:before{content:"\e6a0"}.uniui-fire[data-v-5610c8db]:before{content:"\e6a1"}.uniui-medal[data-v-5610c8db]:before{content:"\e6a2"}.uniui-font[data-v-5610c8db]:before{content:"\e6a3"}.uniui-gift[data-v-5610c8db]:before{content:"\e6a4"}.uniui-link[data-v-5610c8db]:before{content:"\e6a5"}.uniui-notification[data-v-5610c8db]:before{content:"\e6a6"}.uniui-staff[data-v-5610c8db]:before{content:"\e6a7"}.uniui-vip[data-v-5610c8db]:before{content:"\e6a8"}.uniui-folder-add[data-v-5610c8db]:before{content:"\e6a9"}.uniui-tune[data-v-5610c8db]:before{content:"\e6aa"}.uniui-auth[data-v-5610c8db]:before{content:"\e6ab"}.uniui-person[data-v-5610c8db]:before{content:"\e699"}.uniui-email-filled[data-v-5610c8db]:before{content:"\e69a"}.uniui-phone-filled[data-v-5610c8db]:before{content:"\e69b"}.uniui-phone[data-v-5610c8db]:before{content:"\e69c"}.uniui-email[data-v-5610c8db]:before{content:"\e69e"}.uniui-personadd[data-v-5610c8db]:before{content:"\e69f"}.uniui-chatboxes-filled[data-v-5610c8db]:before{content:"\e692"}.uniui-contact[data-v-5610c8db]:before{content:"\e693"}.uniui-chatbubble-filled[data-v-5610c8db]:before{content:"\e694"}.uniui-contact-filled[data-v-5610c8db]:before{content:"\e695"}.uniui-chatboxes[data-v-5610c8db]:before{content:"\e696"}.uniui-chatbubble[data-v-5610c8db]:before{content:"\e697"}.uniui-upload-filled[data-v-5610c8db]:before{content:"\e68e"}.uniui-upload[data-v-5610c8db]:before{content:"\e690"}.uniui-weixin[data-v-5610c8db]:before{content:"\e691"}.uniui-compose[data-v-5610c8db]:before{content:"\e67f"}.uniui-qq[data-v-5610c8db]:before{content:"\e680"}.uniui-download-filled[data-v-5610c8db]:before{content:"\e681"}.uniui-pyq[data-v-5610c8db]:before{content:"\e682"}.uniui-sound[data-v-5610c8db]:before{content:"\e684"}.uniui-trash-filled[data-v-5610c8db]:before{content:"\e685"}.uniui-sound-filled[data-v-5610c8db]:before{content:"\e686"}.uniui-trash[data-v-5610c8db]:before{content:"\e687"}.uniui-videocam-filled[data-v-5610c8db]:before{content:"\e689"}.uniui-spinner-cycle[data-v-5610c8db]:before{content:"\e68a"}.uniui-weibo[data-v-5610c8db]:before{content:"\e68b"}.uniui-videocam[data-v-5610c8db]:before{content:"\e68c"}.uniui-download[data-v-5610c8db]:before{content:"\e68d"}.uniui-help[data-v-5610c8db]:before{content:"\e679"}.uniui-navigate-filled[data-v-5610c8db]:before{content:"\e67a"}.uniui-plusempty[data-v-5610c8db]:before{content:"\e67b"}.uniui-smallcircle[data-v-5610c8db]:before{content:"\e67c"}.uniui-minus-filled[data-v-5610c8db]:before{content:"\e67d"}.uniui-micoff[data-v-5610c8db]:before{content:"\e67e"}.uniui-closeempty[data-v-5610c8db]:before{content:"\e66c"}.uniui-clear[data-v-5610c8db]:before{content:"\e66d"}.uniui-navigate[data-v-5610c8db]:before{content:"\e66e"}.uniui-minus[data-v-5610c8db]:before{content:"\e66f"}.uniui-image[data-v-5610c8db]:before{content:"\e670"}.uniui-mic[data-v-5610c8db]:before{content:"\e671"}.uniui-paperplane[data-v-5610c8db]:before{content:"\e672"}.uniui-close[data-v-5610c8db]:before{content:"\e673"}.uniui-help-filled[data-v-5610c8db]:before{content:"\e674"}.uniui-paperplane-filled[data-v-5610c8db]:before{content:"\e675"}.uniui-plus[data-v-5610c8db]:before{content:"\e676"}.uniui-mic-filled[data-v-5610c8db]:before{content:"\e677"}.uniui-image-filled[data-v-5610c8db]:before{content:"\e678"}.uniui-locked-filled[data-v-5610c8db]:before{content:"\e668"}.uniui-info[data-v-5610c8db]:before{content:"\e669"}.uniui-locked[data-v-5610c8db]:before{content:"\e66b"}.uniui-camera-filled[data-v-5610c8db]:before{content:"\e658"}.uniui-chat-filled[data-v-5610c8db]:before{content:"\e659"}.uniui-camera[data-v-5610c8db]:before{content:"\e65a"}.uniui-circle[data-v-5610c8db]:before{content:"\e65b"}.uniui-checkmarkempty[data-v-5610c8db]:before{content:"\e65c"}.uniui-chat[data-v-5610c8db]:before{content:"\e65d"}.uniui-circle-filled[data-v-5610c8db]:before{content:"\e65e"}.uniui-flag[data-v-5610c8db]:before{content:"\e65f"}.uniui-flag-filled[data-v-5610c8db]:before{content:"\e660"}.uniui-gear-filled[data-v-5610c8db]:before{content:"\e661"}.uniui-home[data-v-5610c8db]:before{content:"\e662"}.uniui-home-filled[data-v-5610c8db]:before{content:"\e663"}.uniui-gear[data-v-5610c8db]:before{content:"\e664"}.uniui-smallcircle-filled[data-v-5610c8db]:before{content:"\e665"}.uniui-map-filled[data-v-5610c8db]:before{content:"\e666"}.uniui-map[data-v-5610c8db]:before{content:"\e667"}.uniui-refresh-filled[data-v-5610c8db]:before{content:"\e656"}.uniui-refresh[data-v-5610c8db]:before{content:"\e657"}.uniui-cloud-upload[data-v-5610c8db]:before{content:"\e645"}.uniui-cloud-download-filled[data-v-5610c8db]:before{content:"\e646"}.uniui-cloud-download[data-v-5610c8db]:before{content:"\e647"}.uniui-cloud-upload-filled[data-v-5610c8db]:before{content:"\e648"}.uniui-redo[data-v-5610c8db]:before{content:"\e64a"}.uniui-images-filled[data-v-5610c8db]:before{content:"\e64b"}.uniui-undo-filled[data-v-5610c8db]:before{content:"\e64c"}.uniui-more[data-v-5610c8db]:before{content:"\e64d"}.uniui-more-filled[data-v-5610c8db]:before{content:"\e64e"}.uniui-undo[data-v-5610c8db]:before{content:"\e64f"}.uniui-images[data-v-5610c8db]:before{content:"\e650"}.uniui-paperclip[data-v-5610c8db]:before{content:"\e652"}.uniui-settings[data-v-5610c8db]:before{content:"\e653"}.uniui-search[data-v-5610c8db]:before{content:"\e654"}.uniui-redo-filled[data-v-5610c8db]:before{content:"\e655"}.uniui-list[data-v-5610c8db]:before{content:"\e644"}.uniui-mail-open-filled[data-v-5610c8db]:before{content:"\e63a"}.uniui-hand-down-filled[data-v-5610c8db]:before{content:"\e63c"}.uniui-hand-down[data-v-5610c8db]:before{content:"\e63d"}.uniui-hand-up-filled[data-v-5610c8db]:before{content:"\e63e"}.uniui-hand-up[data-v-5610c8db]:before{content:"\e63f"}.uniui-heart-filled[data-v-5610c8db]:before{content:"\e641"}.uniui-mail-open[data-v-5610c8db]:before{content:"\e643"}.uniui-heart[data-v-5610c8db]:before{content:"\e639"}.uniui-loop[data-v-5610c8db]:before{content:"\e633"}.uniui-pulldown[data-v-5610c8db]:before{content:"\e632"}.uniui-scan[data-v-5610c8db]:before{content:"\e62a"}.uniui-bars[data-v-5610c8db]:before{content:"\e627"}.uniui-checkbox[data-v-5610c8db]:before{content:"\e62b"}.uniui-checkbox-filled[data-v-5610c8db]:before{content:"\e62c"}.uniui-shop[data-v-5610c8db]:before{content:"\e62f"}.uniui-headphones[data-v-5610c8db]:before{content:"\e630"}.uniui-cart[data-v-5610c8db]:before{content:"\e631"}@font-face{font-family:uniicons;src:url(../../assets/uniicons.32e978a5.ttf)}.uni-icons[data-v-5610c8db]{font-family:uniicons;text-decoration:none;text-align:center}.uni-calendar-item__weeks-box[data-v-a5fd30c1]{flex:1;display:flex;flex-direction:column;justify-content:center;align-items:center;margin:1px 0;position:relative}.uni-calendar-item__weeks-box-text[data-v-a5fd30c1]{font-size:14px;font-weight:700;color:#001833}.uni-calendar-item__weeks-box-item[data-v-a5fd30c1]{position:relative;display:flex;flex-direction:column;justify-content:center;align-items:center;width:40px;height:40px}.uni-calendar-item__weeks-box-circle[data-v-a5fd30c1]{position:absolute;top:5px;right:5px;width:8px;height:8px;border-radius:8px;background-color:#dd524d}.uni-calendar-item__weeks-box .uni-calendar-item--disable[data-v-a5fd30c1]{cursor:default}.uni-calendar-item--disable .uni-calendar-item__weeks-box-text-disable[data-v-a5fd30c1]{color:#d1d1d1}.uni-calendar-item--today[data-v-a5fd30c1]{position:absolute;top:10px;right:17%;background-color:#dd524d;width:6px;height:6px;border-radius:50%}.uni-calendar-item--extra[data-v-a5fd30c1]{color:#dd524d;opacity:.8}.uni-calendar-item__weeks-box .uni-calendar-item--checked[data-v-a5fd30c1]{border-radius:50%;box-sizing:border-box;border:3px solid #fff}.uni-calendar-item--multiple .uni-calendar-item--checked-range-text[data-v-a5fd30c1]{color:#333}.uni-calendar-item--multiple[data-v-a5fd30c1]{background-color:#f6f7fc}.uni-calendar-item--multiple .uni-calendar-item--before-checked[data-v-a5fd30c1],.uni-calendar-item--multiple .uni-calendar-item--after-checked[data-v-a5fd30c1]{background-color:#007aff;border-radius:50%;box-sizing:border-box;border:3px solid #F6F7FC}.uni-calendar-item--before-checked .uni-calendar-item--checked-text[data-v-a5fd30c1],.uni-calendar-item--after-checked .uni-calendar-item--checked-text[data-v-a5fd30c1]{color:#fff}.uni-calendar-item--before-checked-x[data-v-a5fd30c1]{border-top-left-radius:50px;border-bottom-left-radius:50px;box-sizing:border-box;background-color:#f6f7fc}.uni-calendar-item--after-checked-x[data-v-a5fd30c1]{border-top-right-radius:50px;border-bottom-right-radius:50px;background-color:#f6f7fc}.uni-datetime-picker-view[data-v-8a3925ff]{height:130px;width:270px;cursor:pointer}.uni-datetime-picker-item[data-v-8a3925ff]{height:50px;line-height:50px;text-align:center;font-size:14px}.uni-datetime-picker-btn[data-v-8a3925ff]{margin-top:60px;display:flex;cursor:pointer;flex-direction:row;justify-content:space-between}.uni-datetime-picker-btn-text[data-v-8a3925ff]{font-size:14px;color:#007aff}.uni-datetime-picker-btn-group[data-v-8a3925ff]{display:flex;flex-direction:row}.uni-datetime-picker-cancel[data-v-8a3925ff]{margin-right:30px}.uni-datetime-picker-mask[data-v-8a3925ff]{position:fixed;bottom:0;top:0;left:0;right:0;background-color:rgba(0,0,0,.4);transition-duration:.3s;z-index:998}.uni-datetime-picker-popup[data-v-8a3925ff]{border-radius:8px;padding:30px;width:270px;background-color:#fff;position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);transition-duration:.3s;z-index:999}.uni-datetime-picker-time[data-v-8a3925ff]{color:gray}.uni-datetime-picker-column[data-v-8a3925ff]{height:50px}.uni-datetime-picker-timebox[data-v-8a3925ff]{border:1px solid #E5E5E5;border-radius:5px;padding:7px 10px;box-sizing:border-box;cursor:pointer}.uni-datetime-picker-timebox-pointer[data-v-8a3925ff]{cursor:pointer}.uni-datetime-picker-disabled[data-v-8a3925ff]{opacity:.4}.uni-datetime-picker-text[data-v-8a3925ff]{font-size:14px;line-height:50px}.uni-datetime-picker-sign[data-v-8a3925ff]{position:absolute;top:53px;color:#999}.sign-left[data-v-8a3925ff]{left:86px}.sign-right[data-v-8a3925ff]{right:86px}.sign-center[data-v-8a3925ff]{left:135px}.uni-datetime-picker__container-box[data-v-8a3925ff]{position:relative;display:flex;align-items:center;justify-content:center;margin-top:40px}.time-hide-second[data-v-8a3925ff]{width:180px}.uni-calendar[data-v-8dc4a3ee]{display:flex;flex-direction:column}.uni-calendar__mask[data-v-8dc4a3ee]{position:fixed;bottom:0;top:0;left:0;right:0;background-color:rgba(0,0,0,.4);transition-property:opacity;transition-duration:.3s;opacity:0;z-index:99}.uni-calendar--mask-show[data-v-8dc4a3ee]{opacity:1}.uni-calendar--fixed[data-v-8dc4a3ee]{position:fixed;bottom:calc(var(--window-bottom));left:0;right:0;transition-property:transform;transition-duration:.3s;transform:translateY(460px);z-index:99}.uni-calendar--ani-show[data-v-8dc4a3ee]{transform:translateY(0)}.uni-calendar__content[data-v-8dc4a3ee]{background-color:#fff}.uni-calendar__content-mobile[data-v-8dc4a3ee]{border-top-left-radius:10px;border-top-right-radius:10px;box-shadow:0 0 5px 3px rgba(0,0,0,.1)}.uni-calendar__header[data-v-8dc4a3ee]{position:relative;display:flex;flex-direction:row;justify-content:center;align-items:center;height:50px}.uni-calendar__header-mobile[data-v-8dc4a3ee]{padding:10px 10px 0}.uni-calendar--fixed-top[data-v-8dc4a3ee]{display:flex;flex-direction:row;justify-content:space-between;border-top-color:rgba(0,0,0,.4);border-top-style:solid;border-top-width:1px}.uni-calendar--fixed-width[data-v-8dc4a3ee]{width:50px}.uni-calendar__backtoday[data-v-8dc4a3ee]{position:absolute;right:0;top:.78125rem;padding:0 5px 0 10px;height:25px;line-height:25px;font-size:12px;border-top-left-radius:25px;border-bottom-left-radius:25px;color:#fff;background-color:#f1f1f1}.uni-calendar__header-text[data-v-8dc4a3ee]{text-align:center;width:100px;font-size:15px;color:#666}.uni-calendar__button-text[data-v-8dc4a3ee]{text-align:center;width:100px;font-size:14px;color:#007aff;letter-spacing:3px}.uni-calendar__header-btn-box[data-v-8dc4a3ee]{display:flex;flex-direction:row;align-items:center;justify-content:center;width:50px;height:50px}.uni-calendar__header-btn[data-v-8dc4a3ee]{width:9px;height:9px;border-left-color:gray;border-left-style:solid;border-left-width:1px;border-top-color:#555;border-top-style:solid;border-top-width:1px}.uni-calendar--left[data-v-8dc4a3ee]{transform:rotate(-45deg)}.uni-calendar--right[data-v-8dc4a3ee]{transform:rotate(135deg)}.uni-calendar__weeks[data-v-8dc4a3ee]{position:relative;display:flex;flex-direction:row}.uni-calendar__weeks-item[data-v-8dc4a3ee]{flex:1}.uni-calendar__weeks-day[data-v-8dc4a3ee]{flex:1;display:flex;flex-direction:column;justify-content:center;align-items:center;height:40px;border-bottom-color:#f5f5f5;border-bottom-style:solid;border-bottom-width:1px}.uni-calendar__weeks-day-text[data-v-8dc4a3ee]{font-size:12px;color:#b2b2b2}.uni-calendar__box[data-v-8dc4a3ee]{position:relative;padding-bottom:7px}.uni-calendar__box-bg[data-v-8dc4a3ee]{display:flex;justify-content:center;align-items:center;position:absolute;top:0;left:0;right:0;bottom:0}.uni-calendar__box-bg-text[data-v-8dc4a3ee]{font-size:200px;font-weight:700;color:#999;opacity:.1;text-align:center;line-height:1}.uni-date-changed[data-v-8dc4a3ee]{padding:0 10px;text-align:center;color:#333;border-top-color:#dcdcdc;border-top-style:solid;border-top-width:1px;flex:1}.uni-date-btn--ok[data-v-8dc4a3ee]{padding:20px 15px}.uni-date-changed--time-start[data-v-8dc4a3ee],.uni-date-changed--time-end[data-v-8dc4a3ee]{display:flex;align-items:center}.uni-date-changed--time-date[data-v-8dc4a3ee]{color:#999;line-height:50px;margin-right:5px}.time-picker-style[data-v-8dc4a3ee]{display:flex;justify-content:center;align-items:center}.mr-10[data-v-8dc4a3ee]{margin-right:10px}.dialog-close[data-v-8dc4a3ee]{position:absolute;top:0;right:0;bottom:0;display:flex;flex-direction:row;align-items:center;padding:0 25px;margin-top:10px}.dialog-close-plus[data-v-8dc4a3ee]{width:16px;height:2px;background-color:#737987;border-radius:2px;transform:rotate(45deg)}.dialog-close-rotate[data-v-8dc4a3ee]{position:absolute;transform:rotate(-45deg)}.uni-datetime-picker--btn[data-v-8dc4a3ee]{border-radius:100px;height:40px;line-height:40px;background-color:#007aff;color:#fff;font-size:16px;letter-spacing:2px}.uni-datetime-picker--btn[data-v-8dc4a3ee]:active{opacity:.7}.uni-date[data-v-17511ee3]{width:100%;flex:1}.uni-date-x[data-v-17511ee3]{display:flex;flex-direction:row;align-items:center;justify-content:center;border-radius:4px;background-color:#fff;color:#666;font-size:14px;flex:1}.uni-date-x .icon-calendar[data-v-17511ee3]{padding-left:3px}.uni-date-x .range-separator[data-v-17511ee3]{height:35px;padding:0 2px;line-height:35px}.uni-date-x--border[data-v-17511ee3]{box-sizing:border-box;border-radius:4px;border:1px solid #e5e5e5}.uni-date-editor--x[data-v-17511ee3]{display:flex;align-items:center;position:relative}.uni-date-editor--x .uni-date__icon-clear[data-v-17511ee3]{padding-right:3px;display:flex;align-items:center}.uni-date__x-input[data-v-17511ee3]{width:auto;height:35px;padding-left:5px;position:relative;flex:1;line-height:35px;font-size:14px;overflow:hidden}.text-center[data-v-17511ee3]{text-align:center}.uni-date__input[data-v-17511ee3]{height:40px;width:100%;line-height:40px;font-size:14px}.uni-date-range__input[data-v-17511ee3]{text-align:center;max-width:142px}.uni-date-picker__container[data-v-17511ee3]{position:relative}.uni-date-mask--pc[data-v-17511ee3]{position:fixed;bottom:0;top:0;left:0;right:0;background-color:rgba(0,0,0,0);transition-duration:.3s;z-index:996}.uni-date-single--x[data-v-17511ee3],.uni-date-range--x[data-v-17511ee3]{background-color:#fff;position:absolute;top:0;z-index:999;border:1px solid #EBEEF5;box-shadow:0 2px 12px rgba(0,0,0,.1);border-radius:4px}.uni-date-editor--x__disabled[data-v-17511ee3]{opacity:.4;cursor:default}.uni-date-editor--logo[data-v-17511ee3]{width:16px;height:16px;vertical-align:middle}.popup-x-header[data-v-17511ee3]{display:flex;flex-direction:row}.popup-x-header--datetime[data-v-17511ee3]{display:flex;flex-direction:row;flex:1}.popup-x-body[data-v-17511ee3]{display:flex}.popup-x-footer[data-v-17511ee3]{padding:0 15px;border-top-color:#f1f1f1;border-top-style:solid;border-top-width:1px;line-height:40px;text-align:right;color:#666}.popup-x-footer uni-text[data-v-17511ee3]:hover{color:#007aff;cursor:pointer;opacity:.8}.popup-x-footer .confirm-text[data-v-17511ee3]{margin-left:20px;color:#007aff}.uni-date-changed[data-v-17511ee3]{text-align:center;color:#333;border-bottom-color:#f1f1f1;border-bottom-style:solid;border-bottom-width:1px}.uni-date-changed--time uni-text[data-v-17511ee3]{height:50px;line-height:50px}.uni-date-changed .uni-date-changed--time[data-v-17511ee3]{flex:1}.uni-date-changed--time-date[data-v-17511ee3]{color:#333;opacity:.6}.mr-50[data-v-17511ee3]{margin-right:50px}.uni-popper__arrow[data-v-17511ee3],.uni-popper__arrow[data-v-17511ee3]:after{position:absolute;display:block;width:0;height:0;border:6px solid transparent;border-top-width:0}.uni-popper__arrow[data-v-17511ee3]{filter:drop-shadow(0 2px 12px rgba(0,0,0,.03));top:-6px;left:10%;margin-right:3px;border-bottom-color:#ebeef5}.uni-popper__arrow[data-v-17511ee3]:after{content:" ";top:1px;margin-left:-6px;border-bottom-color:#fff}.nav[data-v-566e182b]{width:calc(100% - 1.875rem);padding:0 .9375rem;height:var(--bc08538a);background:linear-gradient(270deg,#256fbc,#044d87);font-size:.75rem;color:#fff;position:fixed;top:0;left:0;z-index:99}.place[data-v-566e182b]{height:var(--bc08538a)}.content[data-v-9c94732a]{padding-top:var(--59a7e392)}[data-v-9c94732a] .uni-drawer{margin-top:var(--59a7e392)}.nav[data-v-9c94732a]{width:calc(100% - 1.875rem);padding:0 .9375rem;height:var(--59a7e392);font-size:.75rem;color:#333;position:fixed;top:0;left:0;z-index:99;background-image:url(../../static/my/navbg.png);background-repeat:no-repeat;background-size:23.4375rem 14.3125rem}.nav_box[data-v-9c94732a]{position:absolute;bottom:.8125rem;width:calc(100% - 1.875rem)}.weather_calender uni-image[data-v-9c94732a]{width:1.125rem;height:1.125rem;margin-right:.25rem}.weather_calender .position[data-v-9c94732a]:not(:last-child){position:relative;margin-right:1.875rem}.weather_calender .position[data-v-9c94732a]:not(:last-child):after{position:absolute;content:" ";width:.0625rem;height:.625rem;background:#efefef;right:-.9375rem;top:50%;transform:translateY(-50%)}.swiper[data-v-9c94732a]{width:100vw;height:12.5rem}.swiper .swiper-item uni-image[data-v-9c94732a]{width:100vw;height:12.5rem;background-color:#a8a8a8}.wrapper[data-v-9c94732a]{padding:0 .9375rem;transform:translateY(-1.5625rem)}.wrapper .onduty[data-v-9c94732a]{background:#fff;box-shadow:0 .0625rem .125rem rgba(0,0,0,.5);border-radius:.5rem;padding:.625rem .75rem .75rem}.wrapper .onduty .title[data-v-9c94732a]{font-size:1rem;color:#333;background-size:1.375rem .375rem;background-repeat:no-repeat;background-position:left bottom}.wrapper .onduty .info[data-v-9c94732a]{background:#f8f8f8;border-radius:.25rem;text-align:center;width:20.0625rem;margin-top:.71875rem}.wrapper .onduty .info .info_title[data-v-9c94732a]{font-size:.75rem;color:#333;padding:.75rem 0;border-bottom:1px solid #EFEFEF}.wrapper .onduty .info .info_title uni-view[data-v-9c94732a]{flex:1}.wrapper .onduty .info .data_box[data-v-9c94732a]{font-size:.75rem;padding-bottom:.75rem;color:#888}.wrapper .onduty .info .data_box .first[data-v-9c94732a]{font-weight:700;color:#333}.wrapper .onduty .info .data_box .data[data-v-9c94732a]{margin-top:.71875rem}.wrapper .onduty .info .data_box .data uni-view[data-v-9c94732a]{flex:1}.wrapper .more[data-v-9c94732a]{font-size:.75rem;color:#999;text-align:right}.wrapper .more uni-image[data-v-9c94732a]{width:.3125rem;height:.5625rem}.wrapper .list_wrapper[data-v-9c94732a]{background:#fff;box-shadow:0 .0625rem .125rem rgba(0,0,0,.5);border-radius:.5rem;padding:.8125rem .75rem .75rem;position:relative;margin-top:.9375rem;width:20.0625rem}.wrapper .list_wrapper[data-v-9c94732a]:after{position:absolute;top:3.125rem;left:0;content:" ";width:100%;height:1px;background-color:#efefef}.wrapper .list_wrapper .zhidu[data-v-9c94732a]{font-size:.75rem;color:#666;justify-content:flex-end;padding-top:1.25rem}.wrapper .list_wrapper .zhidu uni-view[data-v-9c94732a]{width:3.75rem;height:1.875rem;line-height:1.875rem;text-align:center}.wrapper .list_wrapper .zhidu uni-view[data-v-9c94732a]:first-child{margin-right:1.25rem}.wrapper .list_wrapper .zhidu .active[data-v-9c94732a]{position:relative;color:#3179d6}.wrapper .list_wrapper .zhidu .active[data-v-9c94732a]:after{content:" ";width:3.75rem;height:1.875rem;border-radius:1.875rem;left:50%;top:50%;transform:translate(-50%,-50%);position:absolute;background-color:rgba(49,121,214,.1)}.wrapper .list_wrapper .list_title[data-v-9c94732a]{text-align:center;padding-bottom:.90625rem;font-size:1rem;color:#666}.wrapper .list_wrapper .list_title .active[data-v-9c94732a]{position:relative;color:#3179d6}.wrapper .list_wrapper .list_title .active[data-v-9c94732a]:after{content:" ";width:3.75rem;height:2.1875rem;border-radius:2.1875rem;left:50%;top:50%;transform:translate(-50%,-50%);position:absolute;background-color:rgba(49,121,214,.1)}.wrapper .list_wrapper .list_box[data-v-9c94732a]{margin-top:.75rem}.wrapper .list_wrapper .list_box .list[data-v-9c94732a]{margin-bottom:.75rem;padding:.9375rem .9375rem 1.09375rem;background:#f8f8f8;border-radius:.25rem}.wrapper .list_wrapper .list_box .list .topic[data-v-9c94732a]{font-size:.875rem;color:#333}.wrapper .list_wrapper .list_box .list .time_Box[data-v-9c94732a]{font-size:.75rem;color:#888;margin-top:.625rem}.wrapper .list_wrapper .list_box .list .time_Box .time[data-v-9c94732a]{margin-right:1.9375rem}.wrapper .list_wrapper .list_box .list .time_Box .look[data-v-9c94732a]{position:relative}.wrapper .list_wrapper .list_box .list .time_Box .look[data-v-9c94732a]:before{position:absolute;left:-.9375rem;top:50%;transform:translateY(-50%);content:" ";width:.0625rem;height:.625rem;background:#999}.wrapper .list_wrapper .list_box .list .time_Box uni-image[data-v-9c94732a]{width:.875rem;height:.6875rem;margin-right:.25rem} +.uniui-cart-filled[data-v-5610c8db]:before{content:"\e6d0"}.uniui-gift-filled[data-v-5610c8db]:before{content:"\e6c4"}.uniui-color[data-v-5610c8db]:before{content:"\e6cf"}.uniui-wallet[data-v-5610c8db]:before{content:"\e6b1"}.uniui-settings-filled[data-v-5610c8db]:before{content:"\e6ce"}.uniui-auth-filled[data-v-5610c8db]:before{content:"\e6cc"}.uniui-shop-filled[data-v-5610c8db]:before{content:"\e6cd"}.uniui-staff-filled[data-v-5610c8db]:before{content:"\e6cb"}.uniui-vip-filled[data-v-5610c8db]:before{content:"\e6c6"}.uniui-plus-filled[data-v-5610c8db]:before{content:"\e6c7"}.uniui-folder-add-filled[data-v-5610c8db]:before{content:"\e6c8"}.uniui-color-filled[data-v-5610c8db]:before{content:"\e6c9"}.uniui-tune-filled[data-v-5610c8db]:before{content:"\e6ca"}.uniui-calendar-filled[data-v-5610c8db]:before{content:"\e6c0"}.uniui-notification-filled[data-v-5610c8db]:before{content:"\e6c1"}.uniui-wallet-filled[data-v-5610c8db]:before{content:"\e6c2"}.uniui-medal-filled[data-v-5610c8db]:before{content:"\e6c3"}.uniui-fire-filled[data-v-5610c8db]:before{content:"\e6c5"}.uniui-refreshempty[data-v-5610c8db]:before{content:"\e6bf"}.uniui-location-filled[data-v-5610c8db]:before{content:"\e6af"}.uniui-person-filled[data-v-5610c8db]:before{content:"\e69d"}.uniui-personadd-filled[data-v-5610c8db]:before{content:"\e698"}.uniui-arrowthinleft[data-v-5610c8db]:before{content:"\e6d2"}.uniui-arrowthinup[data-v-5610c8db]:before{content:"\e6d3"}.uniui-arrowthindown[data-v-5610c8db]:before{content:"\e6d4"}.uniui-back[data-v-5610c8db]:before{content:"\e6b9"}.uniui-forward[data-v-5610c8db]:before{content:"\e6ba"}.uniui-arrow-right[data-v-5610c8db]:before{content:"\e6bb"}.uniui-arrow-left[data-v-5610c8db]:before{content:"\e6bc"}.uniui-arrow-up[data-v-5610c8db]:before{content:"\e6bd"}.uniui-arrow-down[data-v-5610c8db]:before{content:"\e6be"}.uniui-arrowthinright[data-v-5610c8db]:before{content:"\e6d1"}.uniui-down[data-v-5610c8db]:before{content:"\e6b8"}.uniui-bottom[data-v-5610c8db]:before{content:"\e6b8"}.uniui-arrowright[data-v-5610c8db]:before{content:"\e6d5"}.uniui-right[data-v-5610c8db]:before{content:"\e6b5"}.uniui-up[data-v-5610c8db]:before{content:"\e6b6"}.uniui-top[data-v-5610c8db]:before{content:"\e6b6"}.uniui-left[data-v-5610c8db]:before{content:"\e6b7"}.uniui-arrowup[data-v-5610c8db]:before{content:"\e6d6"}.uniui-eye[data-v-5610c8db]:before{content:"\e651"}.uniui-eye-filled[data-v-5610c8db]:before{content:"\e66a"}.uniui-eye-slash[data-v-5610c8db]:before{content:"\e6b3"}.uniui-eye-slash-filled[data-v-5610c8db]:before{content:"\e6b4"}.uniui-info-filled[data-v-5610c8db]:before{content:"\e649"}.uniui-reload[data-v-5610c8db]:before{content:"\e6b2"}.uniui-micoff-filled[data-v-5610c8db]:before{content:"\e6b0"}.uniui-map-pin-ellipse[data-v-5610c8db]:before{content:"\e6ac"}.uniui-map-pin[data-v-5610c8db]:before{content:"\e6ad"}.uniui-location[data-v-5610c8db]:before{content:"\e6ae"}.uniui-starhalf[data-v-5610c8db]:before{content:"\e683"}.uniui-star[data-v-5610c8db]:before{content:"\e688"}.uniui-star-filled[data-v-5610c8db]:before{content:"\e68f"}.uniui-calendar[data-v-5610c8db]:before{content:"\e6a0"}.uniui-fire[data-v-5610c8db]:before{content:"\e6a1"}.uniui-medal[data-v-5610c8db]:before{content:"\e6a2"}.uniui-font[data-v-5610c8db]:before{content:"\e6a3"}.uniui-gift[data-v-5610c8db]:before{content:"\e6a4"}.uniui-link[data-v-5610c8db]:before{content:"\e6a5"}.uniui-notification[data-v-5610c8db]:before{content:"\e6a6"}.uniui-staff[data-v-5610c8db]:before{content:"\e6a7"}.uniui-vip[data-v-5610c8db]:before{content:"\e6a8"}.uniui-folder-add[data-v-5610c8db]:before{content:"\e6a9"}.uniui-tune[data-v-5610c8db]:before{content:"\e6aa"}.uniui-auth[data-v-5610c8db]:before{content:"\e6ab"}.uniui-person[data-v-5610c8db]:before{content:"\e699"}.uniui-email-filled[data-v-5610c8db]:before{content:"\e69a"}.uniui-phone-filled[data-v-5610c8db]:before{content:"\e69b"}.uniui-phone[data-v-5610c8db]:before{content:"\e69c"}.uniui-email[data-v-5610c8db]:before{content:"\e69e"}.uniui-personadd[data-v-5610c8db]:before{content:"\e69f"}.uniui-chatboxes-filled[data-v-5610c8db]:before{content:"\e692"}.uniui-contact[data-v-5610c8db]:before{content:"\e693"}.uniui-chatbubble-filled[data-v-5610c8db]:before{content:"\e694"}.uniui-contact-filled[data-v-5610c8db]:before{content:"\e695"}.uniui-chatboxes[data-v-5610c8db]:before{content:"\e696"}.uniui-chatbubble[data-v-5610c8db]:before{content:"\e697"}.uniui-upload-filled[data-v-5610c8db]:before{content:"\e68e"}.uniui-upload[data-v-5610c8db]:before{content:"\e690"}.uniui-weixin[data-v-5610c8db]:before{content:"\e691"}.uniui-compose[data-v-5610c8db]:before{content:"\e67f"}.uniui-qq[data-v-5610c8db]:before{content:"\e680"}.uniui-download-filled[data-v-5610c8db]:before{content:"\e681"}.uniui-pyq[data-v-5610c8db]:before{content:"\e682"}.uniui-sound[data-v-5610c8db]:before{content:"\e684"}.uniui-trash-filled[data-v-5610c8db]:before{content:"\e685"}.uniui-sound-filled[data-v-5610c8db]:before{content:"\e686"}.uniui-trash[data-v-5610c8db]:before{content:"\e687"}.uniui-videocam-filled[data-v-5610c8db]:before{content:"\e689"}.uniui-spinner-cycle[data-v-5610c8db]:before{content:"\e68a"}.uniui-weibo[data-v-5610c8db]:before{content:"\e68b"}.uniui-videocam[data-v-5610c8db]:before{content:"\e68c"}.uniui-download[data-v-5610c8db]:before{content:"\e68d"}.uniui-help[data-v-5610c8db]:before{content:"\e679"}.uniui-navigate-filled[data-v-5610c8db]:before{content:"\e67a"}.uniui-plusempty[data-v-5610c8db]:before{content:"\e67b"}.uniui-smallcircle[data-v-5610c8db]:before{content:"\e67c"}.uniui-minus-filled[data-v-5610c8db]:before{content:"\e67d"}.uniui-micoff[data-v-5610c8db]:before{content:"\e67e"}.uniui-closeempty[data-v-5610c8db]:before{content:"\e66c"}.uniui-clear[data-v-5610c8db]:before{content:"\e66d"}.uniui-navigate[data-v-5610c8db]:before{content:"\e66e"}.uniui-minus[data-v-5610c8db]:before{content:"\e66f"}.uniui-image[data-v-5610c8db]:before{content:"\e670"}.uniui-mic[data-v-5610c8db]:before{content:"\e671"}.uniui-paperplane[data-v-5610c8db]:before{content:"\e672"}.uniui-close[data-v-5610c8db]:before{content:"\e673"}.uniui-help-filled[data-v-5610c8db]:before{content:"\e674"}.uniui-paperplane-filled[data-v-5610c8db]:before{content:"\e675"}.uniui-plus[data-v-5610c8db]:before{content:"\e676"}.uniui-mic-filled[data-v-5610c8db]:before{content:"\e677"}.uniui-image-filled[data-v-5610c8db]:before{content:"\e678"}.uniui-locked-filled[data-v-5610c8db]:before{content:"\e668"}.uniui-info[data-v-5610c8db]:before{content:"\e669"}.uniui-locked[data-v-5610c8db]:before{content:"\e66b"}.uniui-camera-filled[data-v-5610c8db]:before{content:"\e658"}.uniui-chat-filled[data-v-5610c8db]:before{content:"\e659"}.uniui-camera[data-v-5610c8db]:before{content:"\e65a"}.uniui-circle[data-v-5610c8db]:before{content:"\e65b"}.uniui-checkmarkempty[data-v-5610c8db]:before{content:"\e65c"}.uniui-chat[data-v-5610c8db]:before{content:"\e65d"}.uniui-circle-filled[data-v-5610c8db]:before{content:"\e65e"}.uniui-flag[data-v-5610c8db]:before{content:"\e65f"}.uniui-flag-filled[data-v-5610c8db]:before{content:"\e660"}.uniui-gear-filled[data-v-5610c8db]:before{content:"\e661"}.uniui-home[data-v-5610c8db]:before{content:"\e662"}.uniui-home-filled[data-v-5610c8db]:before{content:"\e663"}.uniui-gear[data-v-5610c8db]:before{content:"\e664"}.uniui-smallcircle-filled[data-v-5610c8db]:before{content:"\e665"}.uniui-map-filled[data-v-5610c8db]:before{content:"\e666"}.uniui-map[data-v-5610c8db]:before{content:"\e667"}.uniui-refresh-filled[data-v-5610c8db]:before{content:"\e656"}.uniui-refresh[data-v-5610c8db]:before{content:"\e657"}.uniui-cloud-upload[data-v-5610c8db]:before{content:"\e645"}.uniui-cloud-download-filled[data-v-5610c8db]:before{content:"\e646"}.uniui-cloud-download[data-v-5610c8db]:before{content:"\e647"}.uniui-cloud-upload-filled[data-v-5610c8db]:before{content:"\e648"}.uniui-redo[data-v-5610c8db]:before{content:"\e64a"}.uniui-images-filled[data-v-5610c8db]:before{content:"\e64b"}.uniui-undo-filled[data-v-5610c8db]:before{content:"\e64c"}.uniui-more[data-v-5610c8db]:before{content:"\e64d"}.uniui-more-filled[data-v-5610c8db]:before{content:"\e64e"}.uniui-undo[data-v-5610c8db]:before{content:"\e64f"}.uniui-images[data-v-5610c8db]:before{content:"\e650"}.uniui-paperclip[data-v-5610c8db]:before{content:"\e652"}.uniui-settings[data-v-5610c8db]:before{content:"\e653"}.uniui-search[data-v-5610c8db]:before{content:"\e654"}.uniui-redo-filled[data-v-5610c8db]:before{content:"\e655"}.uniui-list[data-v-5610c8db]:before{content:"\e644"}.uniui-mail-open-filled[data-v-5610c8db]:before{content:"\e63a"}.uniui-hand-down-filled[data-v-5610c8db]:before{content:"\e63c"}.uniui-hand-down[data-v-5610c8db]:before{content:"\e63d"}.uniui-hand-up-filled[data-v-5610c8db]:before{content:"\e63e"}.uniui-hand-up[data-v-5610c8db]:before{content:"\e63f"}.uniui-heart-filled[data-v-5610c8db]:before{content:"\e641"}.uniui-mail-open[data-v-5610c8db]:before{content:"\e643"}.uniui-heart[data-v-5610c8db]:before{content:"\e639"}.uniui-loop[data-v-5610c8db]:before{content:"\e633"}.uniui-pulldown[data-v-5610c8db]:before{content:"\e632"}.uniui-scan[data-v-5610c8db]:before{content:"\e62a"}.uniui-bars[data-v-5610c8db]:before{content:"\e627"}.uniui-checkbox[data-v-5610c8db]:before{content:"\e62b"}.uniui-checkbox-filled[data-v-5610c8db]:before{content:"\e62c"}.uniui-shop[data-v-5610c8db]:before{content:"\e62f"}.uniui-headphones[data-v-5610c8db]:before{content:"\e630"}.uniui-cart[data-v-5610c8db]:before{content:"\e631"}@font-face{font-family:uniicons;src:url(../../assets/uniicons.32e978a5.ttf)}.uni-icons[data-v-5610c8db]{font-family:uniicons;text-decoration:none;text-align:center}.uni-calendar-item__weeks-box[data-v-a5fd30c1]{flex:1;display:flex;flex-direction:column;justify-content:center;align-items:center;margin:1px 0;position:relative}.uni-calendar-item__weeks-box-text[data-v-a5fd30c1]{font-size:14px;font-weight:700;color:#001833}.uni-calendar-item__weeks-box-item[data-v-a5fd30c1]{position:relative;display:flex;flex-direction:column;justify-content:center;align-items:center;width:40px;height:40px}.uni-calendar-item__weeks-box-circle[data-v-a5fd30c1]{position:absolute;top:5px;right:5px;width:8px;height:8px;border-radius:8px;background-color:#dd524d}.uni-calendar-item__weeks-box .uni-calendar-item--disable[data-v-a5fd30c1]{cursor:default}.uni-calendar-item--disable .uni-calendar-item__weeks-box-text-disable[data-v-a5fd30c1]{color:#d1d1d1}.uni-calendar-item--today[data-v-a5fd30c1]{position:absolute;top:10px;right:17%;background-color:#dd524d;width:6px;height:6px;border-radius:50%}.uni-calendar-item--extra[data-v-a5fd30c1]{color:#dd524d;opacity:.8}.uni-calendar-item__weeks-box .uni-calendar-item--checked[data-v-a5fd30c1]{border-radius:50%;box-sizing:border-box;border:3px solid #fff}.uni-calendar-item--multiple .uni-calendar-item--checked-range-text[data-v-a5fd30c1]{color:#333}.uni-calendar-item--multiple[data-v-a5fd30c1]{background-color:#f6f7fc}.uni-calendar-item--multiple .uni-calendar-item--before-checked[data-v-a5fd30c1],.uni-calendar-item--multiple .uni-calendar-item--after-checked[data-v-a5fd30c1]{background-color:#007aff;border-radius:50%;box-sizing:border-box;border:3px solid #F6F7FC}.uni-calendar-item--before-checked .uni-calendar-item--checked-text[data-v-a5fd30c1],.uni-calendar-item--after-checked .uni-calendar-item--checked-text[data-v-a5fd30c1]{color:#fff}.uni-calendar-item--before-checked-x[data-v-a5fd30c1]{border-top-left-radius:50px;border-bottom-left-radius:50px;box-sizing:border-box;background-color:#f6f7fc}.uni-calendar-item--after-checked-x[data-v-a5fd30c1]{border-top-right-radius:50px;border-bottom-right-radius:50px;background-color:#f6f7fc}.uni-datetime-picker-view[data-v-8a3925ff]{height:130px;width:270px;cursor:pointer}.uni-datetime-picker-item[data-v-8a3925ff]{height:50px;line-height:50px;text-align:center;font-size:14px}.uni-datetime-picker-btn[data-v-8a3925ff]{margin-top:60px;display:flex;cursor:pointer;flex-direction:row;justify-content:space-between}.uni-datetime-picker-btn-text[data-v-8a3925ff]{font-size:14px;color:#007aff}.uni-datetime-picker-btn-group[data-v-8a3925ff]{display:flex;flex-direction:row}.uni-datetime-picker-cancel[data-v-8a3925ff]{margin-right:30px}.uni-datetime-picker-mask[data-v-8a3925ff]{position:fixed;bottom:0;top:0;left:0;right:0;background-color:rgba(0,0,0,.4);transition-duration:.3s;z-index:998}.uni-datetime-picker-popup[data-v-8a3925ff]{border-radius:8px;padding:30px;width:270px;background-color:#fff;position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);transition-duration:.3s;z-index:999}.uni-datetime-picker-time[data-v-8a3925ff]{color:gray}.uni-datetime-picker-column[data-v-8a3925ff]{height:50px}.uni-datetime-picker-timebox[data-v-8a3925ff]{border:1px solid #E5E5E5;border-radius:5px;padding:7px 10px;box-sizing:border-box;cursor:pointer}.uni-datetime-picker-timebox-pointer[data-v-8a3925ff]{cursor:pointer}.uni-datetime-picker-disabled[data-v-8a3925ff]{opacity:.4}.uni-datetime-picker-text[data-v-8a3925ff]{font-size:14px;line-height:50px}.uni-datetime-picker-sign[data-v-8a3925ff]{position:absolute;top:53px;color:#999}.sign-left[data-v-8a3925ff]{left:86px}.sign-right[data-v-8a3925ff]{right:86px}.sign-center[data-v-8a3925ff]{left:135px}.uni-datetime-picker__container-box[data-v-8a3925ff]{position:relative;display:flex;align-items:center;justify-content:center;margin-top:40px}.time-hide-second[data-v-8a3925ff]{width:180px}.uni-calendar[data-v-8dc4a3ee]{display:flex;flex-direction:column}.uni-calendar__mask[data-v-8dc4a3ee]{position:fixed;bottom:0;top:0;left:0;right:0;background-color:rgba(0,0,0,.4);transition-property:opacity;transition-duration:.3s;opacity:0;z-index:99}.uni-calendar--mask-show[data-v-8dc4a3ee]{opacity:1}.uni-calendar--fixed[data-v-8dc4a3ee]{position:fixed;bottom:calc(var(--window-bottom));left:0;right:0;transition-property:transform;transition-duration:.3s;transform:translateY(460px);z-index:99}.uni-calendar--ani-show[data-v-8dc4a3ee]{transform:translateY(0)}.uni-calendar__content[data-v-8dc4a3ee]{background-color:#fff}.uni-calendar__content-mobile[data-v-8dc4a3ee]{border-top-left-radius:10px;border-top-right-radius:10px;box-shadow:0 0 5px 3px rgba(0,0,0,.1)}.uni-calendar__header[data-v-8dc4a3ee]{position:relative;display:flex;flex-direction:row;justify-content:center;align-items:center;height:50px}.uni-calendar__header-mobile[data-v-8dc4a3ee]{padding:10px 10px 0}.uni-calendar--fixed-top[data-v-8dc4a3ee]{display:flex;flex-direction:row;justify-content:space-between;border-top-color:rgba(0,0,0,.4);border-top-style:solid;border-top-width:1px}.uni-calendar--fixed-width[data-v-8dc4a3ee]{width:50px}.uni-calendar__backtoday[data-v-8dc4a3ee]{position:absolute;right:0;top:.78125rem;padding:0 5px 0 10px;height:25px;line-height:25px;font-size:12px;border-top-left-radius:25px;border-bottom-left-radius:25px;color:#fff;background-color:#f1f1f1}.uni-calendar__header-text[data-v-8dc4a3ee]{text-align:center;width:100px;font-size:15px;color:#666}.uni-calendar__button-text[data-v-8dc4a3ee]{text-align:center;width:100px;font-size:14px;color:#007aff;letter-spacing:3px}.uni-calendar__header-btn-box[data-v-8dc4a3ee]{display:flex;flex-direction:row;align-items:center;justify-content:center;width:50px;height:50px}.uni-calendar__header-btn[data-v-8dc4a3ee]{width:9px;height:9px;border-left-color:gray;border-left-style:solid;border-left-width:1px;border-top-color:#555;border-top-style:solid;border-top-width:1px}.uni-calendar--left[data-v-8dc4a3ee]{transform:rotate(-45deg)}.uni-calendar--right[data-v-8dc4a3ee]{transform:rotate(135deg)}.uni-calendar__weeks[data-v-8dc4a3ee]{position:relative;display:flex;flex-direction:row}.uni-calendar__weeks-item[data-v-8dc4a3ee]{flex:1}.uni-calendar__weeks-day[data-v-8dc4a3ee]{flex:1;display:flex;flex-direction:column;justify-content:center;align-items:center;height:40px;border-bottom-color:#f5f5f5;border-bottom-style:solid;border-bottom-width:1px}.uni-calendar__weeks-day-text[data-v-8dc4a3ee]{font-size:12px;color:#b2b2b2}.uni-calendar__box[data-v-8dc4a3ee]{position:relative;padding-bottom:7px}.uni-calendar__box-bg[data-v-8dc4a3ee]{display:flex;justify-content:center;align-items:center;position:absolute;top:0;left:0;right:0;bottom:0}.uni-calendar__box-bg-text[data-v-8dc4a3ee]{font-size:200px;font-weight:700;color:#999;opacity:.1;text-align:center;line-height:1}.uni-date-changed[data-v-8dc4a3ee]{padding:0 10px;text-align:center;color:#333;border-top-color:#dcdcdc;border-top-style:solid;border-top-width:1px;flex:1}.uni-date-btn--ok[data-v-8dc4a3ee]{padding:20px 15px}.uni-date-changed--time-start[data-v-8dc4a3ee],.uni-date-changed--time-end[data-v-8dc4a3ee]{display:flex;align-items:center}.uni-date-changed--time-date[data-v-8dc4a3ee]{color:#999;line-height:50px;margin-right:5px}.time-picker-style[data-v-8dc4a3ee]{display:flex;justify-content:center;align-items:center}.mr-10[data-v-8dc4a3ee]{margin-right:10px}.dialog-close[data-v-8dc4a3ee]{position:absolute;top:0;right:0;bottom:0;display:flex;flex-direction:row;align-items:center;padding:0 25px;margin-top:10px}.dialog-close-plus[data-v-8dc4a3ee]{width:16px;height:2px;background-color:#737987;border-radius:2px;transform:rotate(45deg)}.dialog-close-rotate[data-v-8dc4a3ee]{position:absolute;transform:rotate(-45deg)}.uni-datetime-picker--btn[data-v-8dc4a3ee]{border-radius:100px;height:40px;line-height:40px;background-color:#007aff;color:#fff;font-size:16px;letter-spacing:2px}.uni-datetime-picker--btn[data-v-8dc4a3ee]:active{opacity:.7}.uni-date[data-v-17511ee3]{width:100%;flex:1}.uni-date-x[data-v-17511ee3]{display:flex;flex-direction:row;align-items:center;justify-content:center;border-radius:4px;background-color:#fff;color:#666;font-size:14px;flex:1}.uni-date-x .icon-calendar[data-v-17511ee3]{padding-left:3px}.uni-date-x .range-separator[data-v-17511ee3]{height:35px;padding:0 2px;line-height:35px}.uni-date-x--border[data-v-17511ee3]{box-sizing:border-box;border-radius:4px;border:1px solid #e5e5e5}.uni-date-editor--x[data-v-17511ee3]{display:flex;align-items:center;position:relative}.uni-date-editor--x .uni-date__icon-clear[data-v-17511ee3]{padding-right:3px;display:flex;align-items:center}.uni-date__x-input[data-v-17511ee3]{width:auto;height:35px;padding-left:5px;position:relative;flex:1;line-height:35px;font-size:14px;overflow:hidden}.text-center[data-v-17511ee3]{text-align:center}.uni-date__input[data-v-17511ee3]{height:40px;width:100%;line-height:40px;font-size:14px}.uni-date-range__input[data-v-17511ee3]{text-align:center;max-width:142px}.uni-date-picker__container[data-v-17511ee3]{position:relative}.uni-date-mask--pc[data-v-17511ee3]{position:fixed;bottom:0;top:0;left:0;right:0;background-color:rgba(0,0,0,0);transition-duration:.3s;z-index:996}.uni-date-single--x[data-v-17511ee3],.uni-date-range--x[data-v-17511ee3]{background-color:#fff;position:absolute;top:0;z-index:999;border:1px solid #EBEEF5;box-shadow:0 2px 12px rgba(0,0,0,.1);border-radius:4px}.uni-date-editor--x__disabled[data-v-17511ee3]{opacity:.4;cursor:default}.uni-date-editor--logo[data-v-17511ee3]{width:16px;height:16px;vertical-align:middle}.popup-x-header[data-v-17511ee3]{display:flex;flex-direction:row}.popup-x-header--datetime[data-v-17511ee3]{display:flex;flex-direction:row;flex:1}.popup-x-body[data-v-17511ee3]{display:flex}.popup-x-footer[data-v-17511ee3]{padding:0 15px;border-top-color:#f1f1f1;border-top-style:solid;border-top-width:1px;line-height:40px;text-align:right;color:#666}.popup-x-footer uni-text[data-v-17511ee3]:hover{color:#007aff;cursor:pointer;opacity:.8}.popup-x-footer .confirm-text[data-v-17511ee3]{margin-left:20px;color:#007aff}.uni-date-changed[data-v-17511ee3]{text-align:center;color:#333;border-bottom-color:#f1f1f1;border-bottom-style:solid;border-bottom-width:1px}.uni-date-changed--time uni-text[data-v-17511ee3]{height:50px;line-height:50px}.uni-date-changed .uni-date-changed--time[data-v-17511ee3]{flex:1}.uni-date-changed--time-date[data-v-17511ee3]{color:#333;opacity:.6}.mr-50[data-v-17511ee3]{margin-right:50px}.uni-popper__arrow[data-v-17511ee3],.uni-popper__arrow[data-v-17511ee3]:after{position:absolute;display:block;width:0;height:0;border:6px solid transparent;border-top-width:0}.uni-popper__arrow[data-v-17511ee3]{filter:drop-shadow(0 2px 12px rgba(0,0,0,.03));top:-6px;left:10%;margin-right:3px;border-bottom-color:#ebeef5}.uni-popper__arrow[data-v-17511ee3]:after{content:" ";top:1px;margin-left:-6px;border-bottom-color:#fff}.nav[data-v-566e182b]{width:calc(100% - 1.875rem);padding:0 .9375rem;height:var(--bc08538a);background:linear-gradient(270deg,#256fbc,#044d87);font-size:.75rem;color:#fff;position:fixed;top:0;left:0;z-index:99}.place[data-v-566e182b]{height:var(--bc08538a)}.content[data-v-d6ec6b55]{padding-top:var(--5184fac6)}[data-v-d6ec6b55] .uni-drawer{margin-top:var(--5184fac6)}.nav[data-v-d6ec6b55]{width:calc(100% - 1.875rem);padding:0 .9375rem;height:var(--5184fac6);font-size:.75rem;color:#333;position:fixed;top:0;left:0;z-index:99;background-image:url(../../static/my/navbg.png);background-repeat:no-repeat;background-size:23.4375rem 14.3125rem}.nav_box[data-v-d6ec6b55]{position:absolute;bottom:.8125rem;width:calc(100% - 1.875rem)}.weather_calender uni-image[data-v-d6ec6b55]{width:1.125rem;height:1.125rem;margin-right:.25rem}.weather_calender .position[data-v-d6ec6b55]:not(:last-child){position:relative;margin-right:1.875rem}.weather_calender .position[data-v-d6ec6b55]:not(:last-child):after{position:absolute;content:" ";width:.0625rem;height:.625rem;background:#efefef;right:-.9375rem;top:50%;transform:translateY(-50%)}.swiper[data-v-d6ec6b55]{width:100vw;height:12.5rem}.swiper .swiper-item uni-image[data-v-d6ec6b55]{width:100vw;height:12.5rem;background-color:#a8a8a8}.wrapper[data-v-d6ec6b55]{padding:0 .9375rem;transform:translateY(-1.5625rem)}.wrapper .onduty[data-v-d6ec6b55]{background:#fff;box-shadow:0 .0625rem .125rem rgba(0,0,0,.5);border-radius:.5rem;padding:.625rem .75rem .75rem}.wrapper .onduty .title[data-v-d6ec6b55]{font-size:1rem;color:#333;background-size:1.375rem .375rem;background-repeat:no-repeat;background-position:left bottom}.wrapper .onduty .info[data-v-d6ec6b55]{background:#f8f8f8;border-radius:.25rem;text-align:center;width:20.0625rem;margin-top:.71875rem}.wrapper .onduty .info .info_title[data-v-d6ec6b55]{font-size:.75rem;color:#333;padding:.75rem 0;border-bottom:1px solid #EFEFEF}.wrapper .onduty .info .info_title uni-view[data-v-d6ec6b55]{flex:1}.wrapper .onduty .info .data_box[data-v-d6ec6b55]{font-size:.75rem;padding-bottom:.75rem;color:#888}.wrapper .onduty .info .data_box .first[data-v-d6ec6b55]{font-weight:700;color:#333}.wrapper .onduty .info .data_box .data[data-v-d6ec6b55]{margin-top:.71875rem}.wrapper .onduty .info .data_box .data uni-view[data-v-d6ec6b55]{flex:1}.wrapper .more[data-v-d6ec6b55]{font-size:.75rem;color:#999;text-align:right}.wrapper .more uni-image[data-v-d6ec6b55]{width:.3125rem;height:.5625rem}.wrapper .list_wrapper[data-v-d6ec6b55]{background:#fff;box-shadow:0 .0625rem .125rem rgba(0,0,0,.5);border-radius:.5rem;padding:.8125rem .75rem .75rem;position:relative;margin-top:.9375rem;width:20.0625rem}.wrapper .list_wrapper[data-v-d6ec6b55]:after{position:absolute;top:3.125rem;left:0;content:" ";width:100%;height:1px;background-color:#efefef}.wrapper .list_wrapper .zhidu[data-v-d6ec6b55]{font-size:.75rem;color:#666;justify-content:flex-end;padding-top:1.25rem}.wrapper .list_wrapper .zhidu uni-view[data-v-d6ec6b55]{width:3.75rem;height:1.875rem;line-height:1.875rem;text-align:center}.wrapper .list_wrapper .zhidu uni-view[data-v-d6ec6b55]:first-child{margin-right:1.25rem}.wrapper .list_wrapper .zhidu .active[data-v-d6ec6b55]{position:relative;color:#3179d6}.wrapper .list_wrapper .zhidu .active[data-v-d6ec6b55]:after{content:" ";width:3.75rem;height:1.875rem;border-radius:1.875rem;left:50%;top:50%;transform:translate(-50%,-50%);position:absolute;background-color:rgba(49,121,214,.1)}.wrapper .list_wrapper .list_title[data-v-d6ec6b55]{text-align:center;padding-bottom:.90625rem;font-size:1rem;color:#666}.wrapper .list_wrapper .list_title .active[data-v-d6ec6b55]{position:relative;color:#3179d6}.wrapper .list_wrapper .list_title .active[data-v-d6ec6b55]:after{content:" ";width:3.75rem;height:2.1875rem;border-radius:2.1875rem;left:50%;top:50%;transform:translate(-50%,-50%);position:absolute;background-color:rgba(49,121,214,.1)}.wrapper .list_wrapper .list_box[data-v-d6ec6b55]{margin-top:.75rem}.wrapper .list_wrapper .list_box .list[data-v-d6ec6b55]{margin-bottom:.75rem;padding:.9375rem .9375rem 1.09375rem;background:#f8f8f8;border-radius:.25rem}.wrapper .list_wrapper .list_box .list .topic[data-v-d6ec6b55]{font-size:.875rem;color:#333}.wrapper .list_wrapper .list_box .list .time_Box[data-v-d6ec6b55]{font-size:.75rem;color:#888;margin-top:.625rem}.wrapper .list_wrapper .list_box .list .time_Box .time[data-v-d6ec6b55]{margin-right:1.9375rem}.wrapper .list_wrapper .list_box .list .time_Box .look[data-v-d6ec6b55]{position:relative}.wrapper .list_wrapper .list_box .list .time_Box .look[data-v-d6ec6b55]:before{position:absolute;left:-.9375rem;top:50%;transform:translateY(-50%);content:" ";width:.0625rem;height:.625rem;background:#999}.wrapper .list_wrapper .list_box .list .time_Box uni-image[data-v-d6ec6b55]{width:.875rem;height:.6875rem;margin-right:.25rem} diff --git a/unpackage/cache/wgt/__UNI__F0AFD30/pages/tab/my.css b/unpackage/cache/wgt/__UNI__9F097F0/pages/tab/my.css similarity index 100% rename from unpackage/cache/wgt/__UNI__F0AFD30/pages/tab/my.css rename to unpackage/cache/wgt/__UNI__9F097F0/pages/tab/my.css diff --git a/unpackage/cache/wgt/__UNI__F0AFD30/pages/tab/office.css b/unpackage/cache/wgt/__UNI__9F097F0/pages/tab/office.css similarity index 100% rename from unpackage/cache/wgt/__UNI__F0AFD30/pages/tab/office.css rename to unpackage/cache/wgt/__UNI__9F097F0/pages/tab/office.css diff --git a/unpackage/cache/wgt/__UNI__F0AFD30/pages/talk/conversation.css b/unpackage/cache/wgt/__UNI__9F097F0/pages/talk/conversation.css similarity index 100% rename from unpackage/cache/wgt/__UNI__F0AFD30/pages/talk/conversation.css rename to unpackage/cache/wgt/__UNI__9F097F0/pages/talk/conversation.css diff --git a/unpackage/cache/wgt/__UNI__F0AFD30/pages/talk/message_list.css b/unpackage/cache/wgt/__UNI__9F097F0/pages/talk/message_list.css similarity index 100% rename from unpackage/cache/wgt/__UNI__F0AFD30/pages/talk/message_list.css rename to unpackage/cache/wgt/__UNI__9F097F0/pages/talk/message_list.css diff --git a/unpackage/cache/wgt/__UNI__F0AFD30/pages/talk/system.css b/unpackage/cache/wgt/__UNI__9F097F0/pages/talk/system.css similarity index 100% rename from unpackage/cache/wgt/__UNI__F0AFD30/pages/talk/system.css rename to unpackage/cache/wgt/__UNI__9F097F0/pages/talk/system.css diff --git a/unpackage/cache/wgt/__UNI__F0AFD30/pages/task/handle.css b/unpackage/cache/wgt/__UNI__9F097F0/pages/task/handle.css similarity index 100% rename from unpackage/cache/wgt/__UNI__F0AFD30/pages/task/handle.css rename to unpackage/cache/wgt/__UNI__9F097F0/pages/task/handle.css diff --git a/unpackage/cache/wgt/__UNI__F0AFD30/pages/task/index.css b/unpackage/cache/wgt/__UNI__9F097F0/pages/task/index.css similarity index 100% rename from unpackage/cache/wgt/__UNI__F0AFD30/pages/task/index.css rename to unpackage/cache/wgt/__UNI__9F097F0/pages/task/index.css diff --git a/unpackage/cache/wgt/__UNI__F0AFD30/pages/task/self.css b/unpackage/cache/wgt/__UNI__9F097F0/pages/task/self.css similarity index 100% rename from unpackage/cache/wgt/__UNI__F0AFD30/pages/task/self.css rename to unpackage/cache/wgt/__UNI__9F097F0/pages/task/self.css diff --git a/unpackage/cache/wgt/__UNI__F0AFD30/pages/task/todotask.css b/unpackage/cache/wgt/__UNI__9F097F0/pages/task/todotask.css similarity index 100% rename from unpackage/cache/wgt/__UNI__F0AFD30/pages/task/todotask.css rename to unpackage/cache/wgt/__UNI__9F097F0/pages/task/todotask.css diff --git a/unpackage/cache/wgt/__UNI__F0AFD30/pages/useredit/add_address.css b/unpackage/cache/wgt/__UNI__9F097F0/pages/useredit/add_address.css similarity index 100% rename from unpackage/cache/wgt/__UNI__F0AFD30/pages/useredit/add_address.css rename to unpackage/cache/wgt/__UNI__9F097F0/pages/useredit/add_address.css diff --git a/unpackage/cache/wgt/__UNI__F0AFD30/pages/useredit/address.css b/unpackage/cache/wgt/__UNI__9F097F0/pages/useredit/address.css similarity index 100% rename from unpackage/cache/wgt/__UNI__F0AFD30/pages/useredit/address.css rename to unpackage/cache/wgt/__UNI__9F097F0/pages/useredit/address.css diff --git a/unpackage/cache/wgt/__UNI__F0AFD30/pages/useredit/addressbook.css b/unpackage/cache/wgt/__UNI__9F097F0/pages/useredit/addressbook.css similarity index 100% rename from unpackage/cache/wgt/__UNI__F0AFD30/pages/useredit/addressbook.css rename to unpackage/cache/wgt/__UNI__9F097F0/pages/useredit/addressbook.css diff --git a/unpackage/cache/wgt/__UNI__F0AFD30/pages/useredit/useredit.css b/unpackage/cache/wgt/__UNI__9F097F0/pages/useredit/useredit.css similarity index 100% rename from unpackage/cache/wgt/__UNI__F0AFD30/pages/useredit/useredit.css rename to unpackage/cache/wgt/__UNI__9F097F0/pages/useredit/useredit.css diff --git a/unpackage/cache/wgt/__UNI__F0AFD30/pages/userlist/index.css b/unpackage/cache/wgt/__UNI__9F097F0/pages/userlist/index.css similarity index 100% rename from unpackage/cache/wgt/__UNI__F0AFD30/pages/userlist/index.css rename to unpackage/cache/wgt/__UNI__9F097F0/pages/userlist/index.css diff --git a/unpackage/cache/wgt/__UNI__F0AFD30/pages/zhiban/index.css b/unpackage/cache/wgt/__UNI__9F097F0/pages/zhiban/index.css similarity index 100% rename from unpackage/cache/wgt/__UNI__F0AFD30/pages/zhiban/index.css rename to unpackage/cache/wgt/__UNI__9F097F0/pages/zhiban/index.css diff --git a/unpackage/cache/wgt/__UNI__F0AFD30/static/checkin/chenggong.png b/unpackage/cache/wgt/__UNI__9F097F0/static/checkin/chenggong.png similarity index 100% rename from unpackage/cache/wgt/__UNI__F0AFD30/static/checkin/chenggong.png rename to unpackage/cache/wgt/__UNI__9F097F0/static/checkin/chenggong.png diff --git a/unpackage/cache/wgt/__UNI__F0AFD30/static/checkin/circle1.png b/unpackage/cache/wgt/__UNI__9F097F0/static/checkin/circle1.png similarity index 100% rename from unpackage/cache/wgt/__UNI__F0AFD30/static/checkin/circle1.png rename to unpackage/cache/wgt/__UNI__9F097F0/static/checkin/circle1.png diff --git a/unpackage/cache/wgt/__UNI__F0AFD30/static/checkin/circle2.png b/unpackage/cache/wgt/__UNI__9F097F0/static/checkin/circle2.png similarity index 100% rename from unpackage/cache/wgt/__UNI__F0AFD30/static/checkin/circle2.png rename to unpackage/cache/wgt/__UNI__9F097F0/static/checkin/circle2.png diff --git a/unpackage/cache/wgt/__UNI__F0AFD30/static/checkin/circle3.png b/unpackage/cache/wgt/__UNI__9F097F0/static/checkin/circle3.png similarity index 100% rename from unpackage/cache/wgt/__UNI__F0AFD30/static/checkin/circle3.png rename to unpackage/cache/wgt/__UNI__9F097F0/static/checkin/circle3.png diff --git a/unpackage/cache/wgt/__UNI__F0AFD30/static/checkin/circle4.png b/unpackage/cache/wgt/__UNI__9F097F0/static/checkin/circle4.png similarity index 100% rename from unpackage/cache/wgt/__UNI__F0AFD30/static/checkin/circle4.png rename to unpackage/cache/wgt/__UNI__9F097F0/static/checkin/circle4.png diff --git a/unpackage/cache/wgt/__UNI__F0AFD30/static/checkin/position1.png b/unpackage/cache/wgt/__UNI__9F097F0/static/checkin/position1.png similarity index 100% rename from unpackage/cache/wgt/__UNI__F0AFD30/static/checkin/position1.png rename to unpackage/cache/wgt/__UNI__9F097F0/static/checkin/position1.png diff --git a/unpackage/cache/wgt/__UNI__F0AFD30/static/checkin/position2.png b/unpackage/cache/wgt/__UNI__9F097F0/static/checkin/position2.png similarity index 100% rename from unpackage/cache/wgt/__UNI__F0AFD30/static/checkin/position2.png rename to unpackage/cache/wgt/__UNI__9F097F0/static/checkin/position2.png diff --git a/unpackage/cache/wgt/__UNI__F0AFD30/static/checkin/position3.png b/unpackage/cache/wgt/__UNI__9F097F0/static/checkin/position3.png similarity index 100% rename from unpackage/cache/wgt/__UNI__F0AFD30/static/checkin/position3.png rename to unpackage/cache/wgt/__UNI__9F097F0/static/checkin/position3.png diff --git a/unpackage/cache/wgt/__UNI__F0AFD30/static/checkin/position4.png b/unpackage/cache/wgt/__UNI__9F097F0/static/checkin/position4.png similarity index 100% rename from unpackage/cache/wgt/__UNI__F0AFD30/static/checkin/position4.png rename to unpackage/cache/wgt/__UNI__9F097F0/static/checkin/position4.png diff --git a/unpackage/cache/wgt/__UNI__F0AFD30/static/checkin/shibai.png b/unpackage/cache/wgt/__UNI__9F097F0/static/checkin/shibai.png similarity index 100% rename from unpackage/cache/wgt/__UNI__F0AFD30/static/checkin/shibai.png rename to unpackage/cache/wgt/__UNI__9F097F0/static/checkin/shibai.png diff --git a/unpackage/cache/wgt/__UNI__F0AFD30/static/index/back.png b/unpackage/cache/wgt/__UNI__9F097F0/static/index/back.png similarity index 100% rename from unpackage/cache/wgt/__UNI__F0AFD30/static/index/back.png rename to unpackage/cache/wgt/__UNI__9F097F0/static/index/back.png diff --git a/unpackage/cache/wgt/__UNI__F0AFD30/static/index/calendar.png b/unpackage/cache/wgt/__UNI__9F097F0/static/index/calendar.png similarity index 100% rename from unpackage/cache/wgt/__UNI__F0AFD30/static/index/calendar.png rename to unpackage/cache/wgt/__UNI__9F097F0/static/index/calendar.png diff --git a/unpackage/cache/wgt/__UNI__F0AFD30/static/index/eye.png b/unpackage/cache/wgt/__UNI__9F097F0/static/index/eye.png similarity index 100% rename from unpackage/cache/wgt/__UNI__F0AFD30/static/index/eye.png rename to unpackage/cache/wgt/__UNI__9F097F0/static/index/eye.png diff --git a/unpackage/cache/wgt/__UNI__F0AFD30/static/index/line.png b/unpackage/cache/wgt/__UNI__9F097F0/static/index/line.png similarity index 100% rename from unpackage/cache/wgt/__UNI__F0AFD30/static/index/line.png rename to unpackage/cache/wgt/__UNI__9F097F0/static/index/line.png diff --git a/unpackage/cache/wgt/__UNI__F0AFD30/static/index/menu.png b/unpackage/cache/wgt/__UNI__9F097F0/static/index/menu.png similarity index 100% rename from unpackage/cache/wgt/__UNI__F0AFD30/static/index/menu.png rename to unpackage/cache/wgt/__UNI__9F097F0/static/index/menu.png diff --git a/unpackage/cache/wgt/__UNI__F0AFD30/static/index/position.png b/unpackage/cache/wgt/__UNI__9F097F0/static/index/position.png similarity index 100% rename from unpackage/cache/wgt/__UNI__F0AFD30/static/index/position.png rename to unpackage/cache/wgt/__UNI__9F097F0/static/index/position.png diff --git a/unpackage/cache/wgt/__UNI__F0AFD30/static/index/rili.png b/unpackage/cache/wgt/__UNI__9F097F0/static/index/rili.png similarity index 100% rename from unpackage/cache/wgt/__UNI__F0AFD30/static/index/rili.png rename to unpackage/cache/wgt/__UNI__9F097F0/static/index/rili.png diff --git a/unpackage/cache/wgt/__UNI__F0AFD30/static/line.png b/unpackage/cache/wgt/__UNI__9F097F0/static/line.png similarity index 100% rename from unpackage/cache/wgt/__UNI__F0AFD30/static/line.png rename to unpackage/cache/wgt/__UNI__9F097F0/static/line.png diff --git a/unpackage/cache/wgt/__UNI__F0AFD30/static/login/checked.png b/unpackage/cache/wgt/__UNI__9F097F0/static/login/checked.png similarity index 100% rename from unpackage/cache/wgt/__UNI__F0AFD30/static/login/checked.png rename to unpackage/cache/wgt/__UNI__9F097F0/static/login/checked.png diff --git a/unpackage/cache/wgt/__UNI__F0AFD30/static/login/eye-off.png b/unpackage/cache/wgt/__UNI__9F097F0/static/login/eye-off.png similarity index 100% rename from unpackage/cache/wgt/__UNI__F0AFD30/static/login/eye-off.png rename to unpackage/cache/wgt/__UNI__9F097F0/static/login/eye-off.png diff --git a/unpackage/cache/wgt/__UNI__F0AFD30/static/login/eye.png b/unpackage/cache/wgt/__UNI__9F097F0/static/login/eye.png similarity index 100% rename from unpackage/cache/wgt/__UNI__F0AFD30/static/login/eye.png rename to unpackage/cache/wgt/__UNI__9F097F0/static/login/eye.png diff --git a/unpackage/cache/wgt/__UNI__F0AFD30/static/login/logo.png b/unpackage/cache/wgt/__UNI__9F097F0/static/login/logo.png similarity index 100% rename from unpackage/cache/wgt/__UNI__F0AFD30/static/login/logo.png rename to unpackage/cache/wgt/__UNI__9F097F0/static/login/logo.png diff --git a/unpackage/cache/wgt/__UNI__F0AFD30/static/login/nocheck.png b/unpackage/cache/wgt/__UNI__9F097F0/static/login/nocheck.png similarity index 100% rename from unpackage/cache/wgt/__UNI__F0AFD30/static/login/nocheck.png rename to unpackage/cache/wgt/__UNI__9F097F0/static/login/nocheck.png diff --git a/unpackage/cache/wgt/__UNI__F0AFD30/static/login/phone.png b/unpackage/cache/wgt/__UNI__9F097F0/static/login/phone.png similarity index 100% rename from unpackage/cache/wgt/__UNI__F0AFD30/static/login/phone.png rename to unpackage/cache/wgt/__UNI__9F097F0/static/login/phone.png diff --git a/unpackage/cache/wgt/__UNI__F0AFD30/static/login/pwd.png b/unpackage/cache/wgt/__UNI__9F097F0/static/login/pwd.png similarity index 100% rename from unpackage/cache/wgt/__UNI__F0AFD30/static/login/pwd.png rename to unpackage/cache/wgt/__UNI__9F097F0/static/login/pwd.png diff --git a/unpackage/cache/wgt/__UNI__F0AFD30/static/my/bg1.png b/unpackage/cache/wgt/__UNI__9F097F0/static/my/bg1.png similarity index 100% rename from unpackage/cache/wgt/__UNI__F0AFD30/static/my/bg1.png rename to unpackage/cache/wgt/__UNI__9F097F0/static/my/bg1.png diff --git a/unpackage/cache/wgt/__UNI__F0AFD30/static/my/biao.png b/unpackage/cache/wgt/__UNI__9F097F0/static/my/biao.png similarity index 100% rename from unpackage/cache/wgt/__UNI__F0AFD30/static/my/biao.png rename to unpackage/cache/wgt/__UNI__9F097F0/static/my/biao.png diff --git a/unpackage/cache/wgt/__UNI__F0AFD30/static/my/close.png b/unpackage/cache/wgt/__UNI__9F097F0/static/my/close.png similarity index 100% rename from unpackage/cache/wgt/__UNI__F0AFD30/static/my/close.png rename to unpackage/cache/wgt/__UNI__9F097F0/static/my/close.png diff --git a/unpackage/cache/wgt/__UNI__F0AFD30/static/my/default.png b/unpackage/cache/wgt/__UNI__9F097F0/static/my/default.png similarity index 100% rename from unpackage/cache/wgt/__UNI__F0AFD30/static/my/default.png rename to unpackage/cache/wgt/__UNI__9F097F0/static/my/default.png diff --git a/unpackage/cache/wgt/__UNI__F0AFD30/static/my/dingwei.png b/unpackage/cache/wgt/__UNI__9F097F0/static/my/dingwei.png similarity index 100% rename from unpackage/cache/wgt/__UNI__F0AFD30/static/my/dingwei.png rename to unpackage/cache/wgt/__UNI__9F097F0/static/my/dingwei.png diff --git a/unpackage/cache/wgt/__UNI__F0AFD30/static/my/done.png b/unpackage/cache/wgt/__UNI__9F097F0/static/my/done.png similarity index 100% rename from unpackage/cache/wgt/__UNI__F0AFD30/static/my/done.png rename to unpackage/cache/wgt/__UNI__9F097F0/static/my/done.png diff --git a/unpackage/cache/wgt/__UNI__F0AFD30/static/my/edit.png b/unpackage/cache/wgt/__UNI__9F097F0/static/my/edit.png similarity index 100% rename from unpackage/cache/wgt/__UNI__F0AFD30/static/my/edit.png rename to unpackage/cache/wgt/__UNI__9F097F0/static/my/edit.png diff --git a/unpackage/cache/wgt/__UNI__F0AFD30/static/my/navbg.png b/unpackage/cache/wgt/__UNI__9F097F0/static/my/navbg.png similarity index 100% rename from unpackage/cache/wgt/__UNI__F0AFD30/static/my/navbg.png rename to unpackage/cache/wgt/__UNI__9F097F0/static/my/navbg.png diff --git a/unpackage/cache/wgt/__UNI__F0AFD30/static/my/num.png b/unpackage/cache/wgt/__UNI__9F097F0/static/my/num.png similarity index 100% rename from unpackage/cache/wgt/__UNI__F0AFD30/static/my/num.png rename to unpackage/cache/wgt/__UNI__9F097F0/static/my/num.png diff --git a/unpackage/cache/wgt/__UNI__F0AFD30/static/my/open.png b/unpackage/cache/wgt/__UNI__9F097F0/static/my/open.png similarity index 100% rename from unpackage/cache/wgt/__UNI__F0AFD30/static/my/open.png rename to unpackage/cache/wgt/__UNI__9F097F0/static/my/open.png diff --git a/unpackage/cache/wgt/__UNI__F0AFD30/static/my/process.png b/unpackage/cache/wgt/__UNI__9F097F0/static/my/process.png similarity index 100% rename from unpackage/cache/wgt/__UNI__F0AFD30/static/my/process.png rename to unpackage/cache/wgt/__UNI__9F097F0/static/my/process.png diff --git a/unpackage/cache/wgt/__UNI__F0AFD30/static/my/self.png b/unpackage/cache/wgt/__UNI__9F097F0/static/my/self.png similarity index 100% rename from unpackage/cache/wgt/__UNI__F0AFD30/static/my/self.png rename to unpackage/cache/wgt/__UNI__9F097F0/static/my/self.png diff --git a/unpackage/cache/wgt/__UNI__F0AFD30/static/my/shengji.png b/unpackage/cache/wgt/__UNI__9F097F0/static/my/shengji.png similarity index 100% rename from unpackage/cache/wgt/__UNI__F0AFD30/static/my/shengji.png rename to unpackage/cache/wgt/__UNI__9F097F0/static/my/shengji.png diff --git a/unpackage/cache/wgt/__UNI__F0AFD30/static/my/shezhi.png b/unpackage/cache/wgt/__UNI__9F097F0/static/my/shezhi.png similarity index 100% rename from unpackage/cache/wgt/__UNI__F0AFD30/static/my/shezhi.png rename to unpackage/cache/wgt/__UNI__9F097F0/static/my/shezhi.png diff --git a/unpackage/cache/wgt/__UNI__F0AFD30/static/my/xiaoxi.png b/unpackage/cache/wgt/__UNI__9F097F0/static/my/xiaoxi.png similarity index 100% rename from unpackage/cache/wgt/__UNI__F0AFD30/static/my/xiaoxi.png rename to unpackage/cache/wgt/__UNI__9F097F0/static/my/xiaoxi.png diff --git a/unpackage/cache/wgt/__UNI__F0AFD30/static/office/absence.png b/unpackage/cache/wgt/__UNI__9F097F0/static/office/absence.png similarity index 100% rename from unpackage/cache/wgt/__UNI__F0AFD30/static/office/absence.png rename to unpackage/cache/wgt/__UNI__9F097F0/static/office/absence.png diff --git a/unpackage/cache/wgt/__UNI__F0AFD30/static/office/baoxiao.png b/unpackage/cache/wgt/__UNI__9F097F0/static/office/baoxiao.png similarity index 100% rename from unpackage/cache/wgt/__UNI__F0AFD30/static/office/baoxiao.png rename to unpackage/cache/wgt/__UNI__9F097F0/static/office/baoxiao.png diff --git a/unpackage/cache/wgt/__UNI__F0AFD30/static/office/daka.png b/unpackage/cache/wgt/__UNI__9F097F0/static/office/daka.png similarity index 100% rename from unpackage/cache/wgt/__UNI__F0AFD30/static/office/daka.png rename to unpackage/cache/wgt/__UNI__9F097F0/static/office/daka.png diff --git a/unpackage/cache/wgt/__UNI__F0AFD30/static/office/duty.png b/unpackage/cache/wgt/__UNI__9F097F0/static/office/duty.png similarity index 100% rename from unpackage/cache/wgt/__UNI__F0AFD30/static/office/duty.png rename to unpackage/cache/wgt/__UNI__9F097F0/static/office/duty.png diff --git a/unpackage/cache/wgt/__UNI__F0AFD30/static/office/feiyong.png b/unpackage/cache/wgt/__UNI__9F097F0/static/office/feiyong.png similarity index 100% rename from unpackage/cache/wgt/__UNI__F0AFD30/static/office/feiyong.png rename to unpackage/cache/wgt/__UNI__9F097F0/static/office/feiyong.png diff --git a/unpackage/cache/wgt/__UNI__F0AFD30/static/office/gonggao.png b/unpackage/cache/wgt/__UNI__9F097F0/static/office/gonggao.png similarity index 100% rename from unpackage/cache/wgt/__UNI__F0AFD30/static/office/gonggao.png rename to unpackage/cache/wgt/__UNI__9F097F0/static/office/gonggao.png diff --git a/unpackage/cache/wgt/__UNI__F0AFD30/static/office/gongtuan.png b/unpackage/cache/wgt/__UNI__9F097F0/static/office/gongtuan.png similarity index 100% rename from unpackage/cache/wgt/__UNI__F0AFD30/static/office/gongtuan.png rename to unpackage/cache/wgt/__UNI__9F097F0/static/office/gongtuan.png diff --git a/unpackage/cache/wgt/__UNI__F0AFD30/static/office/gongwen.png b/unpackage/cache/wgt/__UNI__9F097F0/static/office/gongwen.png similarity index 100% rename from unpackage/cache/wgt/__UNI__F0AFD30/static/office/gongwen.png rename to unpackage/cache/wgt/__UNI__9F097F0/static/office/gongwen.png diff --git a/unpackage/cache/wgt/__UNI__F0AFD30/static/office/huiyi.png b/unpackage/cache/wgt/__UNI__9F097F0/static/office/huiyi.png similarity index 100% rename from unpackage/cache/wgt/__UNI__F0AFD30/static/office/huiyi.png rename to unpackage/cache/wgt/__UNI__9F097F0/static/office/huiyi.png diff --git a/unpackage/cache/wgt/__UNI__F0AFD30/static/office/jiankang.png b/unpackage/cache/wgt/__UNI__9F097F0/static/office/jiankang.png similarity index 100% rename from unpackage/cache/wgt/__UNI__F0AFD30/static/office/jiankang.png rename to unpackage/cache/wgt/__UNI__9F097F0/static/office/jiankang.png diff --git a/unpackage/cache/wgt/__UNI__F0AFD30/static/office/jiedai.png b/unpackage/cache/wgt/__UNI__9F097F0/static/office/jiedai.png similarity index 100% rename from unpackage/cache/wgt/__UNI__F0AFD30/static/office/jiedai.png rename to unpackage/cache/wgt/__UNI__9F097F0/static/office/jiedai.png diff --git a/unpackage/cache/wgt/__UNI__F0AFD30/static/office/process.png b/unpackage/cache/wgt/__UNI__9F097F0/static/office/process.png similarity index 100% rename from unpackage/cache/wgt/__UNI__F0AFD30/static/office/process.png rename to unpackage/cache/wgt/__UNI__9F097F0/static/office/process.png diff --git a/unpackage/cache/wgt/__UNI__F0AFD30/static/office/task.png b/unpackage/cache/wgt/__UNI__9F097F0/static/office/task.png similarity index 100% rename from unpackage/cache/wgt/__UNI__F0AFD30/static/office/task.png rename to unpackage/cache/wgt/__UNI__9F097F0/static/office/task.png diff --git a/unpackage/cache/wgt/__UNI__F0AFD30/static/office/tongxun.png b/unpackage/cache/wgt/__UNI__9F097F0/static/office/tongxun.png similarity index 100% rename from unpackage/cache/wgt/__UNI__F0AFD30/static/office/tongxun.png rename to unpackage/cache/wgt/__UNI__9F097F0/static/office/tongxun.png diff --git a/unpackage/cache/wgt/__UNI__F0AFD30/static/search.png b/unpackage/cache/wgt/__UNI__9F097F0/static/search.png similarity index 100% rename from unpackage/cache/wgt/__UNI__F0AFD30/static/search.png rename to unpackage/cache/wgt/__UNI__9F097F0/static/search.png diff --git a/unpackage/cache/wgt/__UNI__F0AFD30/static/system.png b/unpackage/cache/wgt/__UNI__9F097F0/static/system.png similarity index 100% rename from unpackage/cache/wgt/__UNI__F0AFD30/static/system.png rename to unpackage/cache/wgt/__UNI__9F097F0/static/system.png diff --git a/unpackage/cache/wgt/__UNI__F0AFD30/static/tab/anquan.png b/unpackage/cache/wgt/__UNI__9F097F0/static/tab/anquan.png similarity index 100% rename from unpackage/cache/wgt/__UNI__F0AFD30/static/tab/anquan.png rename to unpackage/cache/wgt/__UNI__9F097F0/static/tab/anquan.png diff --git a/unpackage/cache/wgt/__UNI__F0AFD30/static/tab/cheliang.png b/unpackage/cache/wgt/__UNI__9F097F0/static/tab/cheliang.png similarity index 100% rename from unpackage/cache/wgt/__UNI__F0AFD30/static/tab/cheliang.png rename to unpackage/cache/wgt/__UNI__9F097F0/static/tab/cheliang.png diff --git a/unpackage/cache/wgt/__UNI__F0AFD30/static/tab/index1.png b/unpackage/cache/wgt/__UNI__9F097F0/static/tab/index1.png similarity index 100% rename from unpackage/cache/wgt/__UNI__F0AFD30/static/tab/index1.png rename to unpackage/cache/wgt/__UNI__9F097F0/static/tab/index1.png diff --git a/unpackage/cache/wgt/__UNI__F0AFD30/static/tab/index2.png b/unpackage/cache/wgt/__UNI__9F097F0/static/tab/index2.png similarity index 100% rename from unpackage/cache/wgt/__UNI__F0AFD30/static/tab/index2.png rename to unpackage/cache/wgt/__UNI__9F097F0/static/tab/index2.png diff --git a/unpackage/cache/wgt/__UNI__F0AFD30/static/tab/office1.png b/unpackage/cache/wgt/__UNI__9F097F0/static/tab/office1.png similarity index 100% rename from unpackage/cache/wgt/__UNI__F0AFD30/static/tab/office1.png rename to unpackage/cache/wgt/__UNI__9F097F0/static/tab/office1.png diff --git a/unpackage/cache/wgt/__UNI__F0AFD30/static/tab/office2.png b/unpackage/cache/wgt/__UNI__9F097F0/static/tab/office2.png similarity index 100% rename from unpackage/cache/wgt/__UNI__F0AFD30/static/tab/office2.png rename to unpackage/cache/wgt/__UNI__9F097F0/static/tab/office2.png diff --git a/unpackage/cache/wgt/__UNI__F0AFD30/static/tab/product.png b/unpackage/cache/wgt/__UNI__9F097F0/static/tab/product.png similarity index 100% rename from unpackage/cache/wgt/__UNI__F0AFD30/static/tab/product.png rename to unpackage/cache/wgt/__UNI__9F097F0/static/tab/product.png diff --git a/unpackage/cache/wgt/__UNI__F0AFD30/static/tab/product1.png b/unpackage/cache/wgt/__UNI__9F097F0/static/tab/product1.png similarity index 100% rename from unpackage/cache/wgt/__UNI__F0AFD30/static/tab/product1.png rename to unpackage/cache/wgt/__UNI__9F097F0/static/tab/product1.png diff --git a/unpackage/cache/wgt/__UNI__F0AFD30/static/tab/product2.png b/unpackage/cache/wgt/__UNI__9F097F0/static/tab/product2.png similarity index 100% rename from unpackage/cache/wgt/__UNI__F0AFD30/static/tab/product2.png rename to unpackage/cache/wgt/__UNI__9F097F0/static/tab/product2.png diff --git a/unpackage/cache/wgt/__UNI__F0AFD30/static/tab/scan.png b/unpackage/cache/wgt/__UNI__9F097F0/static/tab/scan.png similarity index 100% rename from unpackage/cache/wgt/__UNI__F0AFD30/static/tab/scan.png rename to unpackage/cache/wgt/__UNI__9F097F0/static/tab/scan.png diff --git a/unpackage/cache/wgt/__UNI__F0AFD30/static/tab/shenpi.png b/unpackage/cache/wgt/__UNI__9F097F0/static/tab/shenpi.png similarity index 100% rename from unpackage/cache/wgt/__UNI__F0AFD30/static/tab/shenpi.png rename to unpackage/cache/wgt/__UNI__9F097F0/static/tab/shenpi.png diff --git a/unpackage/cache/wgt/__UNI__F0AFD30/static/tab/taizhang.png b/unpackage/cache/wgt/__UNI__9F097F0/static/tab/taizhang.png similarity index 100% rename from unpackage/cache/wgt/__UNI__F0AFD30/static/tab/taizhang.png rename to unpackage/cache/wgt/__UNI__9F097F0/static/tab/taizhang.png diff --git a/unpackage/cache/wgt/__UNI__F0AFD30/static/tab/todo.png b/unpackage/cache/wgt/__UNI__9F097F0/static/tab/todo.png similarity index 100% rename from unpackage/cache/wgt/__UNI__F0AFD30/static/tab/todo.png rename to unpackage/cache/wgt/__UNI__9F097F0/static/tab/todo.png diff --git a/unpackage/cache/wgt/__UNI__F0AFD30/static/tab/user1.png b/unpackage/cache/wgt/__UNI__9F097F0/static/tab/user1.png similarity index 100% rename from unpackage/cache/wgt/__UNI__F0AFD30/static/tab/user1.png rename to unpackage/cache/wgt/__UNI__9F097F0/static/tab/user1.png diff --git a/unpackage/cache/wgt/__UNI__F0AFD30/static/tab/user2.png b/unpackage/cache/wgt/__UNI__9F097F0/static/tab/user2.png similarity index 100% rename from unpackage/cache/wgt/__UNI__F0AFD30/static/tab/user2.png rename to unpackage/cache/wgt/__UNI__9F097F0/static/tab/user2.png diff --git a/unpackage/cache/wgt/__UNI__F0AFD30/static/tab/yunshu.png b/unpackage/cache/wgt/__UNI__9F097F0/static/tab/yunshu.png similarity index 100% rename from unpackage/cache/wgt/__UNI__F0AFD30/static/tab/yunshu.png rename to unpackage/cache/wgt/__UNI__9F097F0/static/tab/yunshu.png diff --git a/unpackage/cache/wgt/__UNI__F0AFD30/uni-app-view.umd.js b/unpackage/cache/wgt/__UNI__9F097F0/uni-app-view.umd.js similarity index 100% rename from unpackage/cache/wgt/__UNI__F0AFD30/uni-app-view.umd.js rename to unpackage/cache/wgt/__UNI__9F097F0/uni-app-view.umd.js diff --git a/unpackage/cache/wgt/__UNI__F0AFD30/.manifest/google-keystore.keystore b/unpackage/cache/wgt/__UNI__F0AFD30/.manifest/google-keystore.keystore deleted file mode 100644 index 450d265..0000000 Binary files a/unpackage/cache/wgt/__UNI__F0AFD30/.manifest/google-keystore.keystore and /dev/null differ diff --git a/unpackage/cache/wgt/__UNI__F0AFD30/app-service.js b/unpackage/cache/wgt/__UNI__F0AFD30/app-service.js deleted file mode 100644 index 9240099..0000000 --- a/unpackage/cache/wgt/__UNI__F0AFD30/app-service.js +++ /dev/null @@ -1,8 +0,0 @@ -if("undefined"==typeof Promise||Promise.prototype.finally||(Promise.prototype.finally=function(e){const t=this.constructor;return this.then((a=>t.resolve(e()).then((()=>a))),(a=>t.resolve(e()).then((()=>{throw a}))))}),"undefined"!=typeof uni&&uni&&uni.requireGlobal){const e=uni.requireGlobal();ArrayBuffer=e.ArrayBuffer,Int8Array=e.Int8Array,Uint8Array=e.Uint8Array,Uint8ClampedArray=e.Uint8ClampedArray,Int16Array=e.Int16Array,Uint16Array=e.Uint16Array,Int32Array=e.Int32Array,Uint32Array=e.Uint32Array,Float32Array=e.Float32Array,Float64Array=e.Float64Array,BigInt64Array=e.BigInt64Array,BigUint64Array=e.BigUint64Array}uni.restoreGlobal&&uni.restoreGlobal(Vue,weex,plus,setTimeout,clearTimeout,setInterval,clearInterval),function(e){"use strict";function t(e,t,...a){uni.__log__?uni.__log__(e,t,...a):console[e].apply(console,[...a,t])}function a(e,t){return"string"==typeof e?t:e}const n=t=>(a,n=e.getCurrentInstance())=>{!e.isInSSRComponentSetup&&e.injectHook(t,a,n)},i=n("onShow"),s=n("onLaunch"),o=n("onLoad"),r=n("onReachBottom"),l=n("onPullDownRefresh");let c=!1;function d(e){if(c)return;if(uni.getStorageSync("logintime")&&uni.getStorageSync("logintime")+36e5<=Date.now())return c=!0,t("log","at utils/http.js:11","token超时"),uni.removeStorageSync("logintime"),uni.navigateTo({url:"/pages/login/login"}),void(c=!1);e.url="https://36.112.48.190/jeecg-boot"+e.url;let a=uni.getStorageSync("token")||"";return e.header={"content-type":"application/json;charset=utf-8","X-Access-Token":a},new Promise((function(t,a){uni.request(e).then((e=>{if(wx.hideLoading(),e[0])uni.showToast({title:"数据获取失败",icon:"none",duration:1500}),t(!1);else{let a=e.data;if(t(a),c)return;500==a.code&&uni.showToast({title:a.message,icon:"none",duration:1500}),510==a.code&&(c=!0,uni.showToast({title:a.message,icon:"none",duration:1500}),uni.removeStorageSync("token"),uni.removeStorageSync("user"),uni.removeStorageSync("role"),uni.navigateTo({url:"/pages/login/login"}),uni.removeStorageSync("logintime"),c=!1)}})).catch((e=>{uni.hideLoading(),a(e)}))}))}function u(e){return d({url:"/sys/permission/getUserPermissionByToken",method:"get",data:e})}function h(e){return d({url:"/act/task/list",method:"get",data:e})}function m(e){return d({url:"/act/task/taskHistoryList",method:"get",data:e})}function p(e){return d({url:"/act/task/myApplyProcessList",method:"get",data:e})}function f(e){return d({url:"/cxcoagwfb/cxcOaGwfb/bpmlist",method:"get",data:e})}function g(e){return d({url:"/cxctz/cxcTz/list",method:"get",data:e})}function y(e){return d({url:"/cxcoaflgf/cxcOaFlgf/zslist",method:"get",data:e})}function v(e){return d({url:"/cxcjyglsjzdgl/cxcJyglSjzdgl/zslist",method:"get",data:e})}function w(e){return d({url:"/cxczd/cxcZdgl/list",method:"get",data:e})}function k(e){return d({url:"/process/extActFlowData/getProcessInfo",method:"get",data:e})}function b(e){return d({url:"/act/task/processHistoryList",method:"get",data:e})}function _(e){return d({url:"/act/task/processComplete",method:"post",data:e})}var E="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function S(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var x,N,V={exports:{}}; -/*! https://mths.be/base64 v1.0.0 by @mathias | MIT license */x=V,N=V.exports,function(e){var t=N,a=x&&x.exports==t&&x,n="object"==typeof E&&E;n.global!==n&&n.window!==n||(e=n);var i=function(e){this.message=e};(i.prototype=new Error).name="InvalidCharacterError";var s=function(e){throw new i(e)},o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r=/[\t\n\f\r ]/g,l={encode:function(e){e=String(e),/[^\0-\xFF]/.test(e)&&s("The string to be encoded contains characters outside of the Latin1 range.");for(var t,a,n,i,r=e.length%3,l="",c=-1,d=e.length-r;++c>18&63)+o.charAt(i>>12&63)+o.charAt(i>>6&63)+o.charAt(63&i);return 2==r?(t=e.charCodeAt(c)<<8,a=e.charCodeAt(++c),l+=o.charAt((i=t+a)>>10)+o.charAt(i>>4&63)+o.charAt(i<<2&63)+"="):1==r&&(i=e.charCodeAt(c),l+=o.charAt(i>>2)+o.charAt(i<<4&63)+"=="),l},decode:function(e){var t=(e=String(e).replace(r,"")).length;t%4==0&&(t=(e=e.replace(/==?$/,"")).length),(t%4==1||/[^+a-zA-Z0-9/]/.test(e))&&s("Invalid character: the string to be decoded is not correctly encoded.");for(var a,n,i=0,l="",c=-1;++c>(-2*i&6)));return l},version:"1.0.0"};if(t&&!t.nodeType)if(a)a.exports=l;else for(var c in l)l.hasOwnProperty(c)&&(t[c]=l[c]);else e.base64=l}(E);const C=S(V.exports); -/*! - * pinia v2.1.7 - * (c) 2023 Eduardo San Martin Morote - * @license MIT - */ -let T;const D=e=>T=e,B=Symbol();function I(e){return e&&"object"==typeof e&&"[object Object]"===Object.prototype.toString.call(e)&&"function"!=typeof e.toJSON}var P,A;(A=P||(P={})).direct="direct",A.patchObject="patch object",A.patchFunction="patch function";const M=()=>{};function R(t,a,n,i=M){t.push(a);const s=()=>{const e=t.indexOf(a);e>-1&&(t.splice(e,1),i())};return!n&&e.getCurrentScope()&&e.onScopeDispose(s),s}function L(e,...t){e.slice().forEach((e=>{e(...t)}))}const O=e=>e();function F(t,a){t instanceof Map&&a instanceof Map&&a.forEach(((e,a)=>t.set(a,e))),t instanceof Set&&a instanceof Set&&a.forEach(t.add,t);for(const n in a){if(!a.hasOwnProperty(n))continue;const i=a[n],s=t[n];I(s)&&I(i)&&t.hasOwnProperty(n)&&!e.isRef(i)&&!e.isReactive(i)?t[n]=F(s,i):t[n]=i}return t}const $=Symbol();const{assign:j}=Object;function U(t,a,n={},i,s,o){let r;const l=j({actions:{}},n),c={deep:!0};let d,u,h,m=[],p=[];const f=i.state.value[t];let g;function y(a){let n;d=u=!1,"function"==typeof a?(a(i.state.value[t]),n={type:P.patchFunction,storeId:t,events:h}):(F(i.state.value[t],a),n={type:P.patchObject,payload:a,storeId:t,events:h});const s=g=Symbol();e.nextTick().then((()=>{g===s&&(d=!0)})),u=!0,L(m,n,i.state.value[t])}o||f||(i.state.value[t]={}),e.ref({});const v=o?function(){const{state:e}=n,t=e?e():{};this.$patch((e=>{j(e,t)}))}:M;function w(e,a){return function(){D(i);const n=Array.from(arguments),s=[],o=[];function r(e){s.push(e)}function l(e){o.push(e)}let c;L(p,{args:n,name:e,store:b,after:r,onError:l});try{c=a.apply(this&&this.$id===t?this:b,n)}catch(d){throw L(o,d),d}return c instanceof Promise?c.then((e=>(L(s,e),e))).catch((e=>(L(o,e),Promise.reject(e)))):(L(s,c),c)}}const k={_p:i,$id:t,$onAction:R.bind(null,p),$patch:y,$reset:v,$subscribe(a,n={}){const s=R(m,a,n.detached,(()=>o())),o=r.run((()=>e.watch((()=>i.state.value[t]),(e=>{("sync"===n.flush?u:d)&&a({storeId:t,type:P.direct,events:h},e)}),j({},c,n))));return s},$dispose:function(){r.stop(),m=[],p=[],i._s.delete(t)}},b=e.reactive(k);i._s.set(t,b);const _=(i._a&&i._a.runWithContext||O)((()=>i._e.run((()=>(r=e.effectScope()).run(a)))));for(const x in _){const a=_[x];if(e.isRef(a)&&(S=a,!e.isRef(S)||!S.effect)||e.isReactive(a))o||(!f||I(E=a)&&E.hasOwnProperty($)||(e.isRef(a)?a.value=f[x]:F(a,f[x])),i.state.value[t][x]=a);else if("function"==typeof a){const e=w(x,a);_[x]=e,l.actions[x]=a}}var E,S;return j(b,_),j(e.toRaw(b),_),Object.defineProperty(b,"$state",{get:()=>i.state.value[t],set:e=>{y((t=>{j(t,e)}))}}),i._p.forEach((e=>{j(b,r.run((()=>e({store:b,app:i._a,pinia:i,options:l}))))})),f&&o&&n.hydrate&&n.hydrate(b.$state,f),d=!0,u=!0,b}function z(t,a,n){let i,s;const o="function"==typeof a;function r(t,n){const r=e.hasInjectionContext();(t=t||(r?e.inject(B,null):null))&&D(t),(t=T)._s.has(i)||(o?U(i,a,s,t):function(t,a,n,i){const{state:s,actions:o,getters:r}=a,l=n.state.value[t];let c;c=U(t,(function(){l||(n.state.value[t]=s?s():{});const a=e.toRefs(n.state.value[t]);return j(a,o,Object.keys(r||{}).reduce(((a,i)=>(a[i]=e.markRaw(e.computed((()=>{D(n);const e=n._s.get(t);return r[i].call(e,e)}))),a)),{}))}),a,n,0,!0)}(i,s,t));return t._s.get(i)}return"string"==typeof t?(i=t,s=o?n:a):(s=t,i=t.id),r.$id=i,r}const H=z("user",{state:()=>({userinfo:uni.getStorageSync("user")&&JSON.parse(uni.getStorageSync("user"))||{},token:uni.getStorageSync("token")||null,role:uni.getStorageSync("role")||null,allowPage:uni.getStorageSync("allowPage")||null,position:uni.getStorageSync("position")||null,positionSwitch:uni.getStorageSync("positionSwitch")||null,wendu:uni.getStorageSync("wendu")||null,wenduIcon:uni.getStorageSync("wenduIcon")||null,isgray:uni.getStorageSync("isgray")||0}),getters:{},actions:{setUserInfo(e){this.userinfo=e},setToken(e){this.token=e},setRole(e){this.role=e},setPosition(e){this.position=e},setPositionSwitch(e){this.positionSwitch=e},setWeather(e,t){this.wendu=e,this.wenduIcon=t},setAllowPage(e){this.allowPage=e},setIsgray(e){this.isgray=e}}}),q=(e,t)=>{const a=e.__vccOpts||e;for(const[n,i]of t)a[n]=i;return a},J=q({__name:"login",setup(a){const n=H(),{proxy:i}=e.getCurrentInstance(),s=e.ref(!1),r=e.ref(!0),l=e.ref(""),c=e.ref(""),u=()=>{if(!l.value.trim())return i.$toast("请输入账号");if(!c.value.trim())return i.$toast("请输入密码");let e=C.encode(encodeURIComponent(l.value)),a=C.encode(encodeURIComponent(c.value));var s;uni.showLoading({title:"登录中..."}),(s={username:e,password:a,ip:p()},d({url:"/sys/sinopecLogin",method:"post",data:s})).then((e=>{e.success&&(uni.setStorageSync("token",e.result.token),n.setToken(e.result.token),(()=>{let e={un:l.value};r.value&&(e.pw=c.value),uni.setStorageSync("accountObj",JSON.stringify(e))})(),function(e){return d({url:"/appConnet/app/queryRoleByRoleIds",method:"get",data:e})}({roles:e.result.userInfo.roles}).then((t=>{uni.setStorageSync("logintime",Date.now()),uni.setStorageSync("role",t),n.setRole(t),uni.setStorageSync("user",JSON.stringify(e.result.userInfo)),n.setUserInfo(e.result.userInfo),m(),uni.switchTab({url:"/pages/tab/index"})})))})).catch((e=>{t("log","at pages/login/login.vue:136",e)}))};e.ref([]),o((()=>{if(uni.getStorageSync("accountObj")){let e=JSON.parse(uni.getStorageSync("accountObj"));l.value=e.un?e.un:"",c.value=e.pw?e.pw:""}}));const m=()=>{h().then((e=>{e.success&&(e.result.total>0?uni.setTabBarBadge({index:"1",text:e.result.total}):uni.removeTabBarBadge({index:"1"}))}))};function p(){let e;if("Android"==plus.os.name){let s=plus.android.importClass("android.content.Context"),o=plus.android.runtimeMainActivity().getSystemService(s.CONNECTIVITY_SERVICE);plus.android.importClass(o);let r=o.getLinkProperties(o.getActiveNetwork()),l=plus.android.invoke(r,"getLinkAddresses");plus.android.importClass(l);for(var t=0;t>8&255)+"."+(i>>16&255)+"."+(i>>24&255))}}return e}return(t,a)=>(e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass({gray:1==e.unref(n).isgray})},[e.createElementVNode("view",{class:"logo f-col aic"},[e.createElementVNode("image",{src:"/static/login/logo.png"})]),e.createElementVNode("view",{class:"form f-col aic"},[e.createElementVNode("view",{class:"box f-row aic"},[e.createElementVNode("image",{src:"/static/login/phone.png"}),e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":a[0]||(a[0]=e=>l.value=e),type:"text",placeholder:"请输入统一身份认证","placeholder-style":"font-size: 28rpx;color: #999999;"},null,512),[[e.vModelText,l.value]])]),e.createElementVNode("view",{class:"box f-row aic"},[e.createElementVNode("image",{src:"/static/login/pwd.png"}),e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":a[1]||(a[1]=e=>c.value=e),type:s.value?"text":"password",placeholder:"请输入密码","placeholder-style":"font-size: 28rpx;color: #999999;"},null,8,["type"]),[[e.vModelDynamic,c.value]]),s.value?(e.openBlock(),e.createElementBlock("image",{key:0,src:"/static/login/eye.png",onClick:a[2]||(a[2]=e=>s.value=!s.value)})):(e.openBlock(),e.createElementBlock("image",{key:1,src:"/static/login/eye-off.png",onClick:a[3]||(a[3]=e=>s.value=!s.value)}))])]),e.createElementVNode("view",{class:"pwd f-row aic"},[e.createElementVNode("view",{style:{display:"inline-block"},onClick:a[4]||(a[4]=e=>r.value=!r.value)},[e.createElementVNode("view",{class:"f-row aic"},[r.value?(e.openBlock(),e.createElementBlock("image",{key:1,src:"/static/login/checked.png"})):(e.openBlock(),e.createElementBlock("image",{key:0,src:"/static/login/nocheck.png"})),e.createElementVNode("text",null,"记住密码")])])]),e.createElementVNode("view",{class:"login f-col aic"},[e.createElementVNode("view",{onClick:u}," 登录 ")])],2))}},[["__scopeId","data-v-6ad77018"]]),W=[{font_class:"arrow-down",unicode:""},{font_class:"arrow-left",unicode:""},{font_class:"arrow-right",unicode:""},{font_class:"arrow-up",unicode:""},{font_class:"auth",unicode:""},{font_class:"auth-filled",unicode:""},{font_class:"back",unicode:""},{font_class:"bars",unicode:""},{font_class:"calendar",unicode:""},{font_class:"calendar-filled",unicode:""},{font_class:"camera",unicode:""},{font_class:"camera-filled",unicode:""},{font_class:"cart",unicode:""},{font_class:"cart-filled",unicode:""},{font_class:"chat",unicode:""},{font_class:"chat-filled",unicode:""},{font_class:"chatboxes",unicode:""},{font_class:"chatboxes-filled",unicode:""},{font_class:"chatbubble",unicode:""},{font_class:"chatbubble-filled",unicode:""},{font_class:"checkbox",unicode:""},{font_class:"checkbox-filled",unicode:""},{font_class:"checkmarkempty",unicode:""},{font_class:"circle",unicode:""},{font_class:"circle-filled",unicode:""},{font_class:"clear",unicode:""},{font_class:"close",unicode:""},{font_class:"closeempty",unicode:""},{font_class:"cloud-download",unicode:""},{font_class:"cloud-download-filled",unicode:""},{font_class:"cloud-upload",unicode:""},{font_class:"cloud-upload-filled",unicode:""},{font_class:"color",unicode:""},{font_class:"color-filled",unicode:""},{font_class:"compose",unicode:""},{font_class:"contact",unicode:""},{font_class:"contact-filled",unicode:""},{font_class:"down",unicode:""},{font_class:"bottom",unicode:""},{font_class:"download",unicode:""},{font_class:"download-filled",unicode:""},{font_class:"email",unicode:""},{font_class:"email-filled",unicode:""},{font_class:"eye",unicode:""},{font_class:"eye-filled",unicode:""},{font_class:"eye-slash",unicode:""},{font_class:"eye-slash-filled",unicode:""},{font_class:"fire",unicode:""},{font_class:"fire-filled",unicode:""},{font_class:"flag",unicode:""},{font_class:"flag-filled",unicode:""},{font_class:"folder-add",unicode:""},{font_class:"folder-add-filled",unicode:""},{font_class:"font",unicode:""},{font_class:"forward",unicode:""},{font_class:"gear",unicode:""},{font_class:"gear-filled",unicode:""},{font_class:"gift",unicode:""},{font_class:"gift-filled",unicode:""},{font_class:"hand-down",unicode:""},{font_class:"hand-down-filled",unicode:""},{font_class:"hand-up",unicode:""},{font_class:"hand-up-filled",unicode:""},{font_class:"headphones",unicode:""},{font_class:"heart",unicode:""},{font_class:"heart-filled",unicode:""},{font_class:"help",unicode:""},{font_class:"help-filled",unicode:""},{font_class:"home",unicode:""},{font_class:"home-filled",unicode:""},{font_class:"image",unicode:""},{font_class:"image-filled",unicode:""},{font_class:"images",unicode:""},{font_class:"images-filled",unicode:""},{font_class:"info",unicode:""},{font_class:"info-filled",unicode:""},{font_class:"left",unicode:""},{font_class:"link",unicode:""},{font_class:"list",unicode:""},{font_class:"location",unicode:""},{font_class:"location-filled",unicode:""},{font_class:"locked",unicode:""},{font_class:"locked-filled",unicode:""},{font_class:"loop",unicode:""},{font_class:"mail-open",unicode:""},{font_class:"mail-open-filled",unicode:""},{font_class:"map",unicode:""},{font_class:"map-filled",unicode:""},{font_class:"map-pin",unicode:""},{font_class:"map-pin-ellipse",unicode:""},{font_class:"medal",unicode:""},{font_class:"medal-filled",unicode:""},{font_class:"mic",unicode:""},{font_class:"mic-filled",unicode:""},{font_class:"micoff",unicode:""},{font_class:"micoff-filled",unicode:""},{font_class:"minus",unicode:""},{font_class:"minus-filled",unicode:""},{font_class:"more",unicode:""},{font_class:"more-filled",unicode:""},{font_class:"navigate",unicode:""},{font_class:"navigate-filled",unicode:""},{font_class:"notification",unicode:""},{font_class:"notification-filled",unicode:""},{font_class:"paperclip",unicode:""},{font_class:"paperplane",unicode:""},{font_class:"paperplane-filled",unicode:""},{font_class:"person",unicode:""},{font_class:"person-filled",unicode:""},{font_class:"personadd",unicode:""},{font_class:"personadd-filled",unicode:""},{font_class:"personadd-filled-copy",unicode:""},{font_class:"phone",unicode:""},{font_class:"phone-filled",unicode:""},{font_class:"plus",unicode:""},{font_class:"plus-filled",unicode:""},{font_class:"plusempty",unicode:""},{font_class:"pulldown",unicode:""},{font_class:"pyq",unicode:""},{font_class:"qq",unicode:""},{font_class:"redo",unicode:""},{font_class:"redo-filled",unicode:""},{font_class:"refresh",unicode:""},{font_class:"refresh-filled",unicode:""},{font_class:"refreshempty",unicode:""},{font_class:"reload",unicode:""},{font_class:"right",unicode:""},{font_class:"scan",unicode:""},{font_class:"search",unicode:""},{font_class:"settings",unicode:""},{font_class:"settings-filled",unicode:""},{font_class:"shop",unicode:""},{font_class:"shop-filled",unicode:""},{font_class:"smallcircle",unicode:""},{font_class:"smallcircle-filled",unicode:""},{font_class:"sound",unicode:""},{font_class:"sound-filled",unicode:""},{font_class:"spinner-cycle",unicode:""},{font_class:"staff",unicode:""},{font_class:"staff-filled",unicode:""},{font_class:"star",unicode:""},{font_class:"star-filled",unicode:""},{font_class:"starhalf",unicode:""},{font_class:"trash",unicode:""},{font_class:"trash-filled",unicode:""},{font_class:"tune",unicode:""},{font_class:"tune-filled",unicode:""},{font_class:"undo",unicode:""},{font_class:"undo-filled",unicode:""},{font_class:"up",unicode:""},{font_class:"top",unicode:""},{font_class:"upload",unicode:""},{font_class:"upload-filled",unicode:""},{font_class:"videocam",unicode:""},{font_class:"videocam-filled",unicode:""},{font_class:"vip",unicode:""},{font_class:"vip-filled",unicode:""},{font_class:"wallet",unicode:""},{font_class:"wallet-filled",unicode:""},{font_class:"weibo",unicode:""},{font_class:"weixin",unicode:""}];const Y=q({name:"UniIcons",emits:["click"],props:{type:{type:String,default:""},color:{type:String,default:"#333333"},size:{type:[Number,String],default:16},customPrefix:{type:String,default:""},fontFamily:{type:String,default:""}},data:()=>({icons:W}),computed:{unicode(){let e=this.icons.find((e=>e.font_class===this.type));return e?e.unicode:""},iconSize(){return"number"==typeof(e=this.size)||/^[0-9]*$/g.test(e)?e+"px":e;var e},styleObj(){return""!==this.fontFamily?`color: ${this.color}; font-size: ${this.iconSize}; font-family: ${this.fontFamily};`:`color: ${this.color}; font-size: ${this.iconSize};`}},methods:{_onClick(){this.$emit("click")}}},[["render",function(t,a,n,i,s,o){return e.openBlock(),e.createElementBlock("text",{style:e.normalizeStyle(o.styleObj),class:e.normalizeClass(["uni-icons",["uniui-"+n.type,n.customPrefix,n.customPrefix?n.type:""]]),onClick:a[0]||(a[0]=(...e)=>o._onClick&&o._onClick(...e))},[e.renderSlot(t.$slots,"default",{},void 0,!0)],6)}],["__scopeId","data-v-5610c8db"]]);function K(e,t){return`${G(e)} ${Q(e,t)}`}function G(e){e=ne(e);const t=(e=new Date(e)).getFullYear(),a=e.getMonth()+1,n=e.getDate();return`${t}-${Z(a)}-${Z(n)}`}function Q(e,t){e=ne(e);const a=(e=new Date(e)).getHours(),n=e.getMinutes(),i=e.getSeconds();return t?`${Z(a)}:${Z(n)}`:`${Z(a)}:${Z(n)}:${Z(i)}`}function Z(e){return e<10&&(e=`0${e}`),e}function X(e){return e?"00:00":"00:00:00"}function ee(e,t){return(e=new Date(ne(e)))<=(t=new Date(ne(t)))}function te(e){return e.match(/((19|20)\d{2})(-|\/)\d{1,2}(-|\/)\d{1,2}/g)}const ae=/^\d{4}-(0?[1-9]|1[012])-(0?[1-9]|[12][0-9]|3[01])( [0-5]?[0-9]:[0-5]?[0-9](:[0-5]?[0-9])?)?$/;function ne(e){return"string"==typeof e&&ae.test(e)&&(e=e.replace(/-/g,"/")),e}const ie=q({props:{weeks:{type:Object,default:()=>({})},calendar:{type:Object,default:()=>({})},selected:{type:Array,default:()=>[]},checkHover:{type:Boolean,default:!1}},methods:{choiceDate(e){this.$emit("change",e)},handleMousemove(e){this.$emit("handleMouse",e)}}},[["render",function(t,a,n,i,s,o){return e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass(["uni-calendar-item__weeks-box",{"uni-calendar-item--disable":n.weeks.disable,"uni-calendar-item--before-checked-x":n.weeks.beforeMultiple,"uni-calendar-item--multiple":n.weeks.multiple,"uni-calendar-item--after-checked-x":n.weeks.afterMultiple}]),onClick:a[0]||(a[0]=e=>o.choiceDate(n.weeks)),onMouseenter:a[1]||(a[1]=e=>o.handleMousemove(n.weeks))},[e.createElementVNode("view",{class:e.normalizeClass(["uni-calendar-item__weeks-box-item",{"uni-calendar-item--checked":n.calendar.fullDate===n.weeks.fullDate&&(n.calendar.userChecked||!n.checkHover),"uni-calendar-item--checked-range-text":n.checkHover,"uni-calendar-item--before-checked":n.weeks.beforeMultiple,"uni-calendar-item--multiple":n.weeks.multiple,"uni-calendar-item--after-checked":n.weeks.afterMultiple,"uni-calendar-item--disable":n.weeks.disable}])},[n.selected&&n.weeks.extraInfo?(e.openBlock(),e.createElementBlock("text",{key:0,class:"uni-calendar-item__weeks-box-circle"})):e.createCommentVNode("",!0),e.createElementVNode("text",{class:"uni-calendar-item__weeks-box-text uni-calendar-item__weeks-box-text-disable uni-calendar-item--checked-text"},e.toDisplayString(n.weeks.date),1)],2),e.createElementVNode("view",{class:e.normalizeClass({"uni-calendar-item--today":n.weeks.isToday})},null,2)],34)}],["__scopeId","data-v-a5fd30c1"]]),se=["{","}"];const oe=/^(?:\d)+/,re=/^(?:\w)+/;const le="zh-Hans",ce="zh-Hant",de="en",ue=Object.prototype.hasOwnProperty,he=(e,t)=>ue.call(e,t),me=new class{constructor(){this._caches=Object.create(null)}interpolate(e,t,a=se){if(!t)return[e];let n=this._caches[e];return n||(n=function(e,[t,a]){const n=[];let i=0,s="";for(;i-1?le:e.indexOf("-hant")>-1?ce:(a=e,["-tw","-hk","-mo","-cht"].find((e=>-1!==a.indexOf(e)))?ce:le);var a;let n=[de,"fr","es"];t&&Object.keys(t).length>0&&(n=Object.keys(t));const i=function(e,t){return t.find((t=>0===e.indexOf(t)))}(e,n);return i||void 0}class fe{constructor({locale:e,fallbackLocale:t,messages:a,watcher:n,formater:i}){this.locale=de,this.fallbackLocale=de,this.message={},this.messages={},this.watchers=[],t&&(this.fallbackLocale=t),this.formater=i||me,this.messages=a||{},this.setLocale(e||de),n&&this.watchLocale(n)}setLocale(e){const t=this.locale;this.locale=pe(e,this.messages)||this.fallbackLocale,this.messages[this.locale]||(this.messages[this.locale]={}),this.message=this.messages[this.locale],t!==this.locale&&this.watchers.forEach((e=>{e(this.locale,t)}))}getLocale(){return this.locale}watchLocale(e){const t=this.watchers.push(e)-1;return()=>{this.watchers.splice(t,1)}}add(e,t,a=!0){const n=this.messages[e];n?a?Object.assign(n,t):Object.keys(t).forEach((e=>{he(n,e)||(n[e]=t[e])})):this.messages[e]=t}f(e,t,a){return this.formater.interpolate(e,t,a).join("")}t(e,t,a){let n=this.message;return"string"==typeof t?(t=pe(t,this.messages))&&(n=this.messages[t]):a=t,he(n,e)?this.formater.interpolate(n[e],a).join(""):(console.warn(`Cannot translate the value of keypath ${e}. Use the value of keypath as default.`),e)}}function ge(e,t={},a,n){"string"!=typeof e&&([e,t]=[t,e]),"string"!=typeof e&&(e="undefined"!=typeof uni&&uni.getLocale?uni.getLocale():"undefined"!=typeof global&&global.getLocale?global.getLocale():de),"string"!=typeof a&&(a="undefined"!=typeof __uniConfig&&__uniConfig.fallbackLocale||de);const i=new fe({locale:e,fallbackLocale:a,messages:t,watcher:n});let s=(e,t)=>{if("function"!=typeof getApp)s=function(e,t){return i.t(e,t)};else{let e=!1;s=function(t,a){const n=getApp().$vm;return n&&(n.$locale,e||(e=!0,function(e,t){e.$watchLocale?e.$watchLocale((e=>{t.setLocale(e)})):e.$watch((()=>e.$locale),(e=>{t.setLocale(e)}))}(n,i))),i.t(t,a)}}return s(e,t)};return{i18n:i,f:(e,t,a)=>i.f(e,t,a),t:(e,t)=>s(e,t),add:(e,t,a=!0)=>i.add(e,t,a),watch:e=>i.watchLocale(e),getLocale:()=>i.getLocale(),setLocale:e=>i.setLocale(e)}}const ye={en:{"uni-datetime-picker.selectDate":"select date","uni-datetime-picker.selectTime":"select time","uni-datetime-picker.selectDateTime":"select date and time","uni-datetime-picker.startDate":"start date","uni-datetime-picker.endDate":"end date","uni-datetime-picker.startTime":"start time","uni-datetime-picker.endTime":"end time","uni-datetime-picker.ok":"ok","uni-datetime-picker.clear":"clear","uni-datetime-picker.cancel":"cancel","uni-datetime-picker.year":"-","uni-datetime-picker.month":"","uni-calender.MON":"MON","uni-calender.TUE":"TUE","uni-calender.WED":"WED","uni-calender.THU":"THU","uni-calender.FRI":"FRI","uni-calender.SAT":"SAT","uni-calender.SUN":"SUN","uni-calender.confirm":"confirm"},"zh-Hans":{"uni-datetime-picker.selectDate":"选择日期","uni-datetime-picker.selectTime":"选择时间","uni-datetime-picker.selectDateTime":"选择日期时间","uni-datetime-picker.startDate":"开始日期","uni-datetime-picker.endDate":"结束日期","uni-datetime-picker.startTime":"开始时间","uni-datetime-picker.endTime":"结束时间","uni-datetime-picker.ok":"确定","uni-datetime-picker.clear":"清除","uni-datetime-picker.cancel":"取消","uni-datetime-picker.year":"年","uni-datetime-picker.month":"月","uni-calender.SUN":"日","uni-calender.MON":"一","uni-calender.TUE":"二","uni-calender.WED":"三","uni-calender.THU":"四","uni-calender.FRI":"五","uni-calender.SAT":"六","uni-calender.confirm":"确认"},"zh-Hant":{"uni-datetime-picker.selectDate":"選擇日期","uni-datetime-picker.selectTime":"選擇時間","uni-datetime-picker.selectDateTime":"選擇日期時間","uni-datetime-picker.startDate":"開始日期","uni-datetime-picker.endDate":"結束日期","uni-datetime-picker.startTime":"開始时间","uni-datetime-picker.endTime":"結束时间","uni-datetime-picker.ok":"確定","uni-datetime-picker.clear":"清除","uni-datetime-picker.cancel":"取消","uni-datetime-picker.year":"年","uni-datetime-picker.month":"月","uni-calender.SUN":"日","uni-calender.MON":"一","uni-calender.TUE":"二","uni-calender.WED":"三","uni-calender.THU":"四","uni-calender.FRI":"五","uni-calender.SAT":"六","uni-calender.confirm":"確認"}},{t:ve}=ge(ye),we={name:"UniDatetimePicker",data:()=>({indicatorStyle:"height: 50px;",visible:!1,fixNvueBug:{},dateShow:!0,timeShow:!0,title:"日期和时间",time:"",year:1920,month:0,day:0,hour:0,minute:0,second:0,startYear:1920,startMonth:1,startDay:1,startHour:0,startMinute:0,startSecond:0,endYear:2120,endMonth:12,endDay:31,endHour:23,endMinute:59,endSecond:59}),options:{virtualHost:!0},props:{type:{type:String,default:"datetime"},value:{type:[String,Number],default:""},modelValue:{type:[String,Number],default:""},start:{type:[Number,String],default:""},end:{type:[Number,String],default:""},returnType:{type:String,default:"string"},disabled:{type:[Boolean,String],default:!1},border:{type:[Boolean,String],default:!0},hideSecond:{type:[Boolean,String],default:!1}},watch:{modelValue:{handler(e){e?(this.parseValue(ne(e)),this.initTime(!1)):(this.time="",this.parseValue(Date.now()))},immediate:!0},type:{handler(e){"date"===e?(this.dateShow=!0,this.timeShow=!1,this.title="日期"):"time"===e?(this.dateShow=!1,this.timeShow=!0,this.title="时间"):(this.dateShow=!0,this.timeShow=!0,this.title="日期和时间")},immediate:!0},start:{handler(e){this.parseDatetimeRange(ne(e),"start")},immediate:!0},end:{handler(e){this.parseDatetimeRange(ne(e),"end")},immediate:!0},months(e){this.checkValue("month",this.month,e)},days(e){this.checkValue("day",this.day,e)},hours(e){this.checkValue("hour",this.hour,e)},minutes(e){this.checkValue("minute",this.minute,e)},seconds(e){this.checkValue("second",this.second,e)}},computed:{years(){return this.getCurrentRange("year")},months(){return this.getCurrentRange("month")},days(){return this.getCurrentRange("day")},hours(){return this.getCurrentRange("hour")},minutes(){return this.getCurrentRange("minute")},seconds(){return this.getCurrentRange("second")},ymd(){return[this.year-this.minYear,this.month-this.minMonth,this.day-this.minDay]},hms(){return[this.hour-this.minHour,this.minute-this.minMinute,this.second-this.minSecond]},currentDateIsStart(){return this.year===this.startYear&&this.month===this.startMonth&&this.day===this.startDay},currentDateIsEnd(){return this.year===this.endYear&&this.month===this.endMonth&&this.day===this.endDay},minYear(){return this.startYear},maxYear(){return this.endYear},minMonth(){return this.year===this.startYear?this.startMonth:1},maxMonth(){return this.year===this.endYear?this.endMonth:12},minDay(){return this.year===this.startYear&&this.month===this.startMonth?this.startDay:1},maxDay(){return this.year===this.endYear&&this.month===this.endMonth?this.endDay:this.daysInMonth(this.year,this.month)},minHour(){return"datetime"===this.type?this.currentDateIsStart?this.startHour:0:"time"===this.type?this.startHour:void 0},maxHour(){return"datetime"===this.type?this.currentDateIsEnd?this.endHour:23:"time"===this.type?this.endHour:void 0},minMinute(){return"datetime"===this.type?this.currentDateIsStart&&this.hour===this.startHour?this.startMinute:0:"time"===this.type?this.hour===this.startHour?this.startMinute:0:void 0},maxMinute(){return"datetime"===this.type?this.currentDateIsEnd&&this.hour===this.endHour?this.endMinute:59:"time"===this.type?this.hour===this.endHour?this.endMinute:59:void 0},minSecond(){return"datetime"===this.type?this.currentDateIsStart&&this.hour===this.startHour&&this.minute===this.startMinute?this.startSecond:0:"time"===this.type?this.hour===this.startHour&&this.minute===this.startMinute?this.startSecond:0:void 0},maxSecond(){return"datetime"===this.type?this.currentDateIsEnd&&this.hour===this.endHour&&this.minute===this.endMinute?this.endSecond:59:"time"===this.type?this.hour===this.endHour&&this.minute===this.endMinute?this.endSecond:59:void 0},selectTimeText:()=>ve("uni-datetime-picker.selectTime"),okText:()=>ve("uni-datetime-picker.ok"),clearText:()=>ve("uni-datetime-picker.clear"),cancelText:()=>ve("uni-datetime-picker.cancel")},mounted(){},methods:{lessThanTen:e=>e<10?"0"+e:e,parseTimeType(e){if(e){let t=e.split(":");this.hour=Number(t[0]),this.minute=Number(t[1]),this.second=Number(t[2])}},initPickerValue(e){let t=null;e?t=this.compareValueWithStartAndEnd(e,this.start,this.end):(t=Date.now(),t=this.compareValueWithStartAndEnd(t,this.start,this.end)),this.parseValue(t)},compareValueWithStartAndEnd(e,t,a){let n=null;return e=this.superTimeStamp(e),t=this.superTimeStamp(t),a=this.superTimeStamp(a),n=t&&a?ea?new Date(a):new Date(e):t&&!a?t<=e?new Date(e):new Date(t):!t&&a?e<=a?new Date(e):new Date(a):new Date(e),n},superTimeStamp(e){let t="";if("time"===this.type&&e&&"string"==typeof e){const e=new Date;t=e.getFullYear()+"/"+(e.getMonth()+1)+"/"+e.getDate()+" "}return Number(e)&&(e=parseInt(e),t=0),this.createTimeStamp(t+e)},parseValue(e){if(e){if("time"===this.type&&"string"==typeof e)this.parseTimeType(e);else{let t=null;t=new Date(e),"time"!==this.type&&(this.year=t.getFullYear(),this.month=t.getMonth()+1,this.day=t.getDate()),"date"!==this.type&&(this.hour=t.getHours(),this.minute=t.getMinutes(),this.second=t.getSeconds())}this.hideSecond&&(this.second=0)}},parseDatetimeRange(e,t){if(!e)return"start"===t&&(this.startYear=1920,this.startMonth=1,this.startDay=1,this.startHour=0,this.startMinute=0,this.startSecond=0),void("end"===t&&(this.endYear=2120,this.endMonth=12,this.endDay=31,this.endHour=23,this.endMinute=59,this.endSecond=59));if("time"===this.type){const a=e.split(":");this[t+"Hour"]=Number(a[0]),this[t+"Minute"]=Number(a[1]),this[t+"Second"]=Number(a[2])}else{if(!e)return void("start"===t?this.startYear=this.year-60:this.endYear=this.year+60);Number(e)&&(e=parseInt(e));const a=/[0-9]:[0-9]/;"datetime"!==this.type||"end"!==t||"string"!=typeof e||a.test(e)||(e+=" 23:59:59");const n=new Date(e);this[t+"Year"]=n.getFullYear(),this[t+"Month"]=n.getMonth()+1,this[t+"Day"]=n.getDate(),"datetime"===this.type&&(this[t+"Hour"]=n.getHours(),this[t+"Minute"]=n.getMinutes(),this[t+"Second"]=n.getSeconds())}},getCurrentRange(e){const t=[];for(let a=this["min"+this.capitalize(e)];a<=this["max"+this.capitalize(e)];a++)t.push(a);return t},capitalize:e=>e.charAt(0).toUpperCase()+e.slice(1),checkValue(e,t,a){-1===a.indexOf(t)&&(this[e]=a[0])},daysInMonth:(e,t)=>new Date(e,t,0).getDate(),createTimeStamp(e){if(e)return"number"==typeof e?e:(e=e.replace(/-/g,"/"),"date"===this.type&&(e+=" 00:00:00"),Date.parse(e))},createDomSting(){const e=this.year+"-"+this.lessThanTen(this.month)+"-"+this.lessThanTen(this.day);let t=this.lessThanTen(this.hour)+":"+this.lessThanTen(this.minute);return this.hideSecond||(t=t+":"+this.lessThanTen(this.second)),"date"===this.type?e:"time"===this.type?t:e+" "+t},initTime(e=!0){this.time=this.createDomSting(),e&&("timestamp"===this.returnType&&"time"!==this.type?(this.$emit("change",this.createTimeStamp(this.time)),this.$emit("input",this.createTimeStamp(this.time)),this.$emit("update:modelValue",this.createTimeStamp(this.time))):(this.$emit("change",this.time),this.$emit("input",this.time),this.$emit("update:modelValue",this.time)))},bindDateChange(e){const t=e.detail.value;this.year=this.years[t[0]],this.month=this.months[t[1]],this.day=this.days[t[2]]},bindTimeChange(e){const t=e.detail.value;this.hour=this.hours[t[0]],this.minute=this.minutes[t[1]],this.second=this.seconds[t[2]]},initTimePicker(){if(this.disabled)return;const e=ne(this.time);this.initPickerValue(e),this.visible=!this.visible},tiggerTimePicker(e){this.visible=!this.visible},clearTime(){this.time="",this.$emit("change",this.time),this.$emit("input",this.time),this.$emit("update:modelValue",this.time),this.tiggerTimePicker()},setTime(){this.initTime(),this.tiggerTimePicker()}}};const ke=q(we,[["render",function(t,a,n,i,s,o){return e.openBlock(),e.createElementBlock("view",{class:"uni-datetime-picker"},[e.createElementVNode("view",{onClick:a[0]||(a[0]=(...e)=>o.initTimePicker&&o.initTimePicker(...e))},[e.renderSlot(t.$slots,"default",{},(()=>[e.createElementVNode("view",{class:e.normalizeClass(["uni-datetime-picker-timebox-pointer",{"uni-datetime-picker-disabled":n.disabled,"uni-datetime-picker-timebox":n.border}])},[e.createElementVNode("text",{class:"uni-datetime-picker-text"},e.toDisplayString(s.time),1),s.time?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("view",{key:0,class:"uni-datetime-picker-time"},[e.createElementVNode("text",{class:"uni-datetime-picker-text"},e.toDisplayString(o.selectTimeText),1)]))],2)]),!0)]),s.visible?(e.openBlock(),e.createElementBlock("view",{key:0,id:"mask",class:"uni-datetime-picker-mask",onClick:a[1]||(a[1]=(...e)=>o.tiggerTimePicker&&o.tiggerTimePicker(...e))})):e.createCommentVNode("",!0),s.visible?(e.openBlock(),e.createElementBlock("view",{key:1,class:e.normalizeClass(["uni-datetime-picker-popup",[s.dateShow&&s.timeShow?"":"fix-nvue-height"]]),style:e.normalizeStyle(s.fixNvueBug)},[e.createElementVNode("view",{class:"uni-title"},[e.createElementVNode("text",{class:"uni-datetime-picker-text"},e.toDisplayString(o.selectTimeText),1)]),s.dateShow?(e.openBlock(),e.createElementBlock("view",{key:0,class:"uni-datetime-picker__container-box"},[e.createElementVNode("picker-view",{class:"uni-datetime-picker-view","indicator-style":s.indicatorStyle,value:o.ymd,onChange:a[2]||(a[2]=(...e)=>o.bindDateChange&&o.bindDateChange(...e))},[e.createElementVNode("picker-view-column",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.years,((t,a)=>(e.openBlock(),e.createElementBlock("view",{class:"uni-datetime-picker-item",key:a},[e.createElementVNode("text",{class:"uni-datetime-picker-item"},e.toDisplayString(o.lessThanTen(t)),1)])))),128))]),e.createElementVNode("picker-view-column",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.months,((t,a)=>(e.openBlock(),e.createElementBlock("view",{class:"uni-datetime-picker-item",key:a},[e.createElementVNode("text",{class:"uni-datetime-picker-item"},e.toDisplayString(o.lessThanTen(t)),1)])))),128))]),e.createElementVNode("picker-view-column",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.days,((t,a)=>(e.openBlock(),e.createElementBlock("view",{class:"uni-datetime-picker-item",key:a},[e.createElementVNode("text",{class:"uni-datetime-picker-item"},e.toDisplayString(o.lessThanTen(t)),1)])))),128))])],40,["indicator-style","value"]),e.createElementVNode("text",{class:"uni-datetime-picker-sign sign-left"},"-"),e.createElementVNode("text",{class:"uni-datetime-picker-sign sign-right"},"-")])):e.createCommentVNode("",!0),s.timeShow?(e.openBlock(),e.createElementBlock("view",{key:1,class:"uni-datetime-picker__container-box"},[e.createElementVNode("picker-view",{class:e.normalizeClass(["uni-datetime-picker-view",[n.hideSecond?"time-hide-second":""]]),"indicator-style":s.indicatorStyle,value:o.hms,onChange:a[3]||(a[3]=(...e)=>o.bindTimeChange&&o.bindTimeChange(...e))},[e.createElementVNode("picker-view-column",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.hours,((t,a)=>(e.openBlock(),e.createElementBlock("view",{class:"uni-datetime-picker-item",key:a},[e.createElementVNode("text",{class:"uni-datetime-picker-item"},e.toDisplayString(o.lessThanTen(t)),1)])))),128))]),e.createElementVNode("picker-view-column",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.minutes,((t,a)=>(e.openBlock(),e.createElementBlock("view",{class:"uni-datetime-picker-item",key:a},[e.createElementVNode("text",{class:"uni-datetime-picker-item"},e.toDisplayString(o.lessThanTen(t)),1)])))),128))]),n.hideSecond?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("picker-view-column",{key:0},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.seconds,((t,a)=>(e.openBlock(),e.createElementBlock("view",{class:"uni-datetime-picker-item",key:a},[e.createElementVNode("text",{class:"uni-datetime-picker-item"},e.toDisplayString(o.lessThanTen(t)),1)])))),128))]))],42,["indicator-style","value"]),e.createElementVNode("text",{class:e.normalizeClass(["uni-datetime-picker-sign",[n.hideSecond?"sign-center":"sign-left"]])},":",2),n.hideSecond?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("text",{key:0,class:"uni-datetime-picker-sign sign-right"},":"))])):e.createCommentVNode("",!0),e.createElementVNode("view",{class:"uni-datetime-picker-btn"},[e.createElementVNode("view",{onClick:a[4]||(a[4]=(...e)=>o.clearTime&&o.clearTime(...e))},[e.createElementVNode("text",{class:"uni-datetime-picker-btn-text"},e.toDisplayString(o.clearText),1)]),e.createElementVNode("view",{class:"uni-datetime-picker-btn-group"},[e.createElementVNode("view",{class:"uni-datetime-picker-cancel",onClick:a[5]||(a[5]=(...e)=>o.tiggerTimePicker&&o.tiggerTimePicker(...e))},[e.createElementVNode("text",{class:"uni-datetime-picker-btn-text"},e.toDisplayString(o.cancelText),1)]),e.createElementVNode("view",{onClick:a[6]||(a[6]=(...e)=>o.setTime&&o.setTime(...e))},[e.createElementVNode("text",{class:"uni-datetime-picker-btn-text"},e.toDisplayString(o.okText),1)])])])],6)):e.createCommentVNode("",!0)])}],["__scopeId","data-v-8a3925ff"]]),{t:be}=ge(ye),_e={components:{calendarItem:ie,timePicker:ke},options:{virtualHost:!0},props:{date:{type:String,default:""},defTime:{type:[String,Object],default:""},selectableTimes:{type:[Object],default:()=>({})},selected:{type:Array,default:()=>[]},startDate:{type:String,default:""},endDate:{type:String,default:""},startPlaceholder:{type:String,default:""},endPlaceholder:{type:String,default:""},range:{type:Boolean,default:!1},hasTime:{type:Boolean,default:!1},insert:{type:Boolean,default:!0},showMonth:{type:Boolean,default:!0},clearDate:{type:Boolean,default:!0},checkHover:{type:Boolean,default:!0},hideSecond:{type:[Boolean],default:!1},pleStatus:{type:Object,default:()=>({before:"",after:"",data:[],fulldate:""})},defaultValue:{type:[String,Object,Array],default:""}},data:()=>({show:!1,weeks:[],calendar:{},nowDate:{},aniMaskShow:!1,firstEnter:!0,time:"",timeRange:{startTime:"",endTime:""},tempSingleDate:"",tempRange:{before:"",after:""}}),watch:{date:{immediate:!0,handler(e){this.range||(this.tempSingleDate=e,setTimeout((()=>{this.init(e)}),100))}},defTime:{immediate:!0,handler(e){this.range?(this.timeRange.startTime=e.start,this.timeRange.endTime=e.end):this.time=e}},startDate(e){this.cale&&(this.cale.setStartDate(e),this.cale.setDate(this.nowDate.fullDate),this.weeks=this.cale.weeks)},endDate(e){this.cale&&(this.cale.setEndDate(e),this.cale.setDate(this.nowDate.fullDate),this.weeks=this.cale.weeks)},selected(e){this.cale&&(this.cale.setSelectInfo(this.nowDate.fullDate,e),this.weeks=this.cale.weeks)},pleStatus:{immediate:!0,handler(e){const{before:t,after:a,fulldate:n,which:i}=e;this.tempRange.before=t,this.tempRange.after=a,setTimeout((()=>{if(n)if(this.cale.setHoverMultiple(n),t&&a){if(this.cale.lastHover=!0,this.rangeWithinMonth(a,t))return;this.setDate(t)}else this.cale.setMultiple(n),this.setDate(this.nowDate.fullDate),this.calendar.fullDate="",this.cale.lastHover=!1;else{if(!this.cale)return;this.cale.setDefaultMultiple(t,a),"left"===i&&t?(this.setDate(t),this.weeks=this.cale.weeks):a&&(this.setDate(a),this.weeks=this.cale.weeks),this.cale.lastHover=!0}}),16)}}},computed:{timepickerStartTime(){return(this.range?this.tempRange.before:this.calendar.fullDate)===this.startDate?this.selectableTimes.start:""},timepickerEndTime(){return(this.range?this.tempRange.after:this.calendar.fullDate)===this.endDate?this.selectableTimes.end:""},selectDateText:()=>be("uni-datetime-picker.selectDate"),startDateText(){return this.startPlaceholder||be("uni-datetime-picker.startDate")},endDateText(){return this.endPlaceholder||be("uni-datetime-picker.endDate")},okText:()=>be("uni-datetime-picker.ok"),yearText:()=>be("uni-datetime-picker.year"),monthText:()=>be("uni-datetime-picker.month"),MONText:()=>be("uni-calender.MON"),TUEText:()=>be("uni-calender.TUE"),WEDText:()=>be("uni-calender.WED"),THUText:()=>be("uni-calender.THU"),FRIText:()=>be("uni-calender.FRI"),SATText:()=>be("uni-calender.SAT"),SUNText:()=>be("uni-calender.SUN"),confirmText:()=>be("uni-calender.confirm")},created(){this.cale=new class{constructor({selected:e,startDate:t,endDate:a,range:n}={}){this.date=this.getDateObj(new Date),this.selected=e||[],this.startDate=t,this.endDate=a,this.range=n,this.cleanMultipleStatus(),this.weeks={},this.lastHover=!1}setDate(e){const t=this.getDateObj(e);this.getWeeks(t.fullDate)}cleanMultipleStatus(){this.multipleStatus={before:"",after:"",data:[]}}setStartDate(e){this.startDate=e}setEndDate(e){this.endDate=e}getPreMonthObj(e){e=ne(e);const t=(e=new Date(e)).getMonth();e.setMonth(t-1);const a=e.getMonth();return 0!==t&&a-t==0&&e.setMonth(a-1),this.getDateObj(e)}getNextMonthObj(e){e=ne(e);const t=(e=new Date(e)).getMonth();e.setMonth(t+1);const a=e.getMonth();return a-t>1&&e.setMonth(a-1),this.getDateObj(e)}getDateObj(e){return e=ne(e),{fullDate:G(e=new Date(e)),year:e.getFullYear(),month:Z(e.getMonth()+1),date:Z(e.getDate()),day:e.getDay()}}getPreMonthDays(e,t){const a=[];for(let n=e-1;n>=0;n--){const e=t.month-1;a.push({date:new Date(t.year,e,-n).getDate(),month:e,disable:!0})}return a}getCurrentMonthDays(e,t){const a=[],n=this.date.fullDate;for(let i=1;i<=e;i++){const e=`${t.year}-${t.month}-${Z(i)}`,s=n===e,o=this.selected&&this.selected.find((t=>{if(this.dateEqual(e,t.date))return t}));this.startDate&&ee(this.startDate,e),this.endDate&&ee(e,this.endDate);let r=this.multipleStatus.data,l=-1;this.range&&r&&(l=r.findIndex((t=>this.dateEqual(t,e))));const c=-1!==l;a.push({fullDate:e,year:t.year,date:i,multiple:!!this.range&&c,beforeMultiple:this.isLogicBefore(e,this.multipleStatus.before,this.multipleStatus.after),afterMultiple:this.isLogicAfter(e,this.multipleStatus.before,this.multipleStatus.after),month:t.month,disable:this.startDate&&!ee(this.startDate,e)||this.endDate&&!ee(e,this.endDate),isToday:s,userChecked:!1,extraInfo:o})}return a}_getNextMonthDays(e,t){const a=[],n=t.month+1;for(let i=1;i<=e;i++)a.push({date:i,month:n,disable:!0});return a}getInfo(e){return e||(e=new Date),this.calendar.find((t=>t.fullDate===this.getDateObj(e).fullDate))}dateEqual(e,t){return e=new Date(ne(e)),t=new Date(ne(t)),e.valueOf()===t.valueOf()}isLogicBefore(e,t,a){let n=t;return t&&a&&(n=ee(t,a)?t:a),this.dateEqual(n,e)}isLogicAfter(e,t,a){let n=a;return t&&a&&(n=ee(t,a)?a:t),this.dateEqual(n,e)}geDateAll(e,t){var a=[],n=e.split("-"),i=t.split("-"),s=new Date;s.setFullYear(n[0],n[1]-1,n[2]);var o=new Date;o.setFullYear(i[0],i[1]-1,i[2]);for(var r=s.getTime()-864e5,l=o.getTime()-864e5,c=r;c<=l;)c+=864e5,a.push(this.getDateObj(new Date(parseInt(c))).fullDate);return a}setMultiple(e){if(!this.range)return;let{before:t,after:a}=this.multipleStatus;if(t&&a){if(!this.lastHover)return void(this.lastHover=!0);this.multipleStatus.before=e,this.multipleStatus.after="",this.multipleStatus.data=[],this.multipleStatus.fulldate="",this.lastHover=!1}else t?(this.multipleStatus.after=e,ee(this.multipleStatus.before,this.multipleStatus.after)?this.multipleStatus.data=this.geDateAll(this.multipleStatus.before,this.multipleStatus.after):this.multipleStatus.data=this.geDateAll(this.multipleStatus.after,this.multipleStatus.before),this.lastHover=!0):(this.multipleStatus.before=e,this.multipleStatus.after=void 0,this.lastHover=!1);this.getWeeks(e)}setHoverMultiple(e){if(!this.range||this.lastHover)return;const{before:t}=this.multipleStatus;t?(this.multipleStatus.after=e,ee(this.multipleStatus.before,this.multipleStatus.after)?this.multipleStatus.data=this.geDateAll(this.multipleStatus.before,this.multipleStatus.after):this.multipleStatus.data=this.geDateAll(this.multipleStatus.after,this.multipleStatus.before)):this.multipleStatus.before=e,this.getWeeks(e)}setDefaultMultiple(e,t){this.multipleStatus.before=e,this.multipleStatus.after=t,e&&t&&(ee(e,t)?(this.multipleStatus.data=this.geDateAll(e,t),this.getWeeks(t)):(this.multipleStatus.data=this.geDateAll(t,e),this.getWeeks(e)))}getWeeks(e){const{year:t,month:a}=this.getDateObj(e),n=new Date(t,a-1,1).getDay(),i=this.getPreMonthDays(n,this.getDateObj(e)),s=new Date(t,a,0).getDate(),o=42-n-s,r=[...i,...this.getCurrentMonthDays(s,this.getDateObj(e)),...this._getNextMonthDays(o,this.getDateObj(e))],l=new Array(6);for(let c=0;c{setTimeout((()=>{this.aniMaskShow=!0}),50)}))},close(){this.aniMaskShow=!1,this.$nextTick((()=>{setTimeout((()=>{this.show=!1,this.$emit("close")}),300)}))},confirm(){this.setEmit("confirm"),this.close()},change(e){(this.insert||e)&&this.setEmit("change")},monthSwitch(){let{year:e,month:t}=this.nowDate;this.$emit("monthSwitch",{year:e,month:Number(t)})},setEmit(e){this.range||(this.calendar.fullDate||(this.calendar=this.cale.getInfo(new Date),this.tempSingleDate=this.calendar.fullDate),this.hasTime&&!this.time&&(this.time=Q(new Date,this.hideSecond)));let{year:t,month:a,date:n,fullDate:i,extraInfo:s}=this.calendar;this.$emit(e,{range:this.cale.multipleStatus,year:t,month:a,date:n,time:this.time,timeRange:this.timeRange,fulldate:i,extraInfo:s||{}})},choiceDate(e){if(e.disable)return;this.calendar=e,this.calendar.userChecked=!0,this.cale.setMultiple(this.calendar.fullDate,!0),this.weeks=this.cale.weeks,this.tempSingleDate=this.calendar.fullDate;const t=new Date(this.cale.multipleStatus.before).getTime(),a=new Date(this.cale.multipleStatus.after).getTime();t>a&&a?(this.tempRange.before=this.cale.multipleStatus.after,this.tempRange.after=this.cale.multipleStatus.before):(this.tempRange.before=this.cale.multipleStatus.before,this.tempRange.after=this.cale.multipleStatus.after),this.change(!0)},changeMonth(e){let t;"pre"===e?t=this.cale.getPreMonthObj(this.nowDate.fullDate).fullDate:"next"===e&&(t=this.cale.getNextMonthObj(this.nowDate.fullDate).fullDate),this.setDate(t),this.monthSwitch()},setDate(e){this.cale.setDate(e),this.weeks=this.cale.weeks,this.nowDate=this.cale.getInfo(e)}}};const Ee={name:"UniDatetimePicker",options:{virtualHost:!0},components:{Calendar:q(_e,[["render",function(t,n,i,s,o,r){const l=e.resolveComponent("calendar-item"),c=e.resolveComponent("time-picker"),d=a(e.resolveDynamicComponent("uni-icons"),Y);return e.openBlock(),e.createElementBlock("view",{class:"uni-calendar",onMouseleave:n[8]||(n[8]=(...e)=>r.leaveCale&&r.leaveCale(...e))},[!i.insert&&o.show?(e.openBlock(),e.createElementBlock("view",{key:0,class:e.normalizeClass(["uni-calendar__mask",{"uni-calendar--mask-show":o.aniMaskShow}]),onClick:n[0]||(n[0]=(...e)=>r.maskClick&&r.maskClick(...e))},null,2)):e.createCommentVNode("",!0),i.insert||o.show?(e.openBlock(),e.createElementBlock("view",{key:1,class:e.normalizeClass(["uni-calendar__content",{"uni-calendar--fixed":!i.insert,"uni-calendar--ani-show":o.aniMaskShow,"uni-calendar__content-mobile":o.aniMaskShow}])},[e.createElementVNode("view",{class:e.normalizeClass(["uni-calendar__header",{"uni-calendar__header-mobile":!i.insert}])},[e.createElementVNode("view",{class:"uni-calendar__header-btn-box",onClick:n[1]||(n[1]=e.withModifiers((e=>r.changeMonth("pre")),["stop"]))},[e.createElementVNode("view",{class:"uni-calendar__header-btn uni-calendar--left"})]),e.createElementVNode("picker",{mode:"date",value:i.date,fields:"month",onChange:n[2]||(n[2]=(...e)=>r.bindDateChange&&r.bindDateChange(...e))},[e.createElementVNode("text",{class:"uni-calendar__header-text"},e.toDisplayString((o.nowDate.year||"")+r.yearText+(o.nowDate.month||"")+r.monthText),1)],40,["value"]),e.createElementVNode("view",{class:"uni-calendar__header-btn-box",onClick:n[3]||(n[3]=e.withModifiers((e=>r.changeMonth("next")),["stop"]))},[e.createElementVNode("view",{class:"uni-calendar__header-btn uni-calendar--right"})]),i.insert?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("view",{key:0,class:"dialog-close",onClick:n[4]||(n[4]=(...e)=>r.maskClick&&r.maskClick(...e))},[e.createElementVNode("view",{class:"dialog-close-plus","data-id":"close"}),e.createElementVNode("view",{class:"dialog-close-plus dialog-close-rotate","data-id":"close"})]))],2),e.createElementVNode("view",{class:"uni-calendar__box"},[i.showMonth?(e.openBlock(),e.createElementBlock("view",{key:0,class:"uni-calendar__box-bg"},[e.createElementVNode("text",{class:"uni-calendar__box-bg-text"},e.toDisplayString(o.nowDate.month),1)])):e.createCommentVNode("",!0),e.createElementVNode("view",{class:"uni-calendar__weeks",style:{"padding-bottom":"7px"}},[e.createElementVNode("view",{class:"uni-calendar__weeks-day"},[e.createElementVNode("text",{class:"uni-calendar__weeks-day-text"},e.toDisplayString(r.SUNText),1)]),e.createElementVNode("view",{class:"uni-calendar__weeks-day"},[e.createElementVNode("text",{class:"uni-calendar__weeks-day-text"},e.toDisplayString(r.MONText),1)]),e.createElementVNode("view",{class:"uni-calendar__weeks-day"},[e.createElementVNode("text",{class:"uni-calendar__weeks-day-text"},e.toDisplayString(r.TUEText),1)]),e.createElementVNode("view",{class:"uni-calendar__weeks-day"},[e.createElementVNode("text",{class:"uni-calendar__weeks-day-text"},e.toDisplayString(r.WEDText),1)]),e.createElementVNode("view",{class:"uni-calendar__weeks-day"},[e.createElementVNode("text",{class:"uni-calendar__weeks-day-text"},e.toDisplayString(r.THUText),1)]),e.createElementVNode("view",{class:"uni-calendar__weeks-day"},[e.createElementVNode("text",{class:"uni-calendar__weeks-day-text"},e.toDisplayString(r.FRIText),1)]),e.createElementVNode("view",{class:"uni-calendar__weeks-day"},[e.createElementVNode("text",{class:"uni-calendar__weeks-day-text"},e.toDisplayString(r.SATText),1)])]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.weeks,((t,a)=>(e.openBlock(),e.createElementBlock("view",{class:"uni-calendar__weeks",key:a},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t,((t,a)=>(e.openBlock(),e.createElementBlock("view",{class:"uni-calendar__weeks-item",key:a},[e.createVNode(l,{class:"uni-calendar-item--hook",weeks:t,calendar:o.calendar,selected:i.selected,checkHover:i.range,onChange:r.choiceDate,onHandleMouse:r.handleMouse},null,8,["weeks","calendar","selected","checkHover","onChange","onHandleMouse"])])))),128))])))),128))]),i.insert||i.range||!i.hasTime?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("view",{key:0,class:"uni-date-changed uni-calendar--fixed-top",style:{padding:"0 80px"}},[e.createElementVNode("view",{class:"uni-date-changed--time-date"},e.toDisplayString(o.tempSingleDate?o.tempSingleDate:r.selectDateText),1),e.createVNode(c,{type:"time",start:r.timepickerStartTime,end:r.timepickerEndTime,modelValue:o.time,"onUpdate:modelValue":n[5]||(n[5]=e=>o.time=e),disabled:!o.tempSingleDate,border:!1,"hide-second":i.hideSecond,class:"time-picker-style"},null,8,["start","end","modelValue","disabled","hide-second"])])),!i.insert&&i.range&&i.hasTime?(e.openBlock(),e.createElementBlock("view",{key:1,class:"uni-date-changed uni-calendar--fixed-top"},[e.createElementVNode("view",{class:"uni-date-changed--time-start"},[e.createElementVNode("view",{class:"uni-date-changed--time-date"},e.toDisplayString(o.tempRange.before?o.tempRange.before:r.startDateText),1),e.createVNode(c,{type:"time",start:r.timepickerStartTime,modelValue:o.timeRange.startTime,"onUpdate:modelValue":n[6]||(n[6]=e=>o.timeRange.startTime=e),border:!1,"hide-second":i.hideSecond,disabled:!o.tempRange.before,class:"time-picker-style"},null,8,["start","modelValue","hide-second","disabled"])]),e.createElementVNode("view",{style:{"line-height":"50px"}},[e.createVNode(d,{type:"arrowthinright",color:"#999"})]),e.createElementVNode("view",{class:"uni-date-changed--time-end"},[e.createElementVNode("view",{class:"uni-date-changed--time-date"},e.toDisplayString(o.tempRange.after?o.tempRange.after:r.endDateText),1),e.createVNode(c,{type:"time",end:r.timepickerEndTime,modelValue:o.timeRange.endTime,"onUpdate:modelValue":n[7]||(n[7]=e=>o.timeRange.endTime=e),border:!1,"hide-second":i.hideSecond,disabled:!o.tempRange.after,class:"time-picker-style"},null,8,["end","modelValue","hide-second","disabled"])])])):e.createCommentVNode("",!0),i.insert?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("view",{key:2,class:"uni-date-changed uni-date-btn--ok"}))],2)):e.createCommentVNode("",!0)],32)}],["__scopeId","data-v-8dc4a3ee"]]),TimePicker:ke},data:()=>({isRange:!1,hasTime:!1,displayValue:"",inputDate:"",calendarDate:"",pickerTime:"",calendarRange:{startDate:"",startTime:"",endDate:"",endTime:""},displayRangeValue:{startDate:"",endDate:""},tempRange:{startDate:"",startTime:"",endDate:"",endTime:""},startMultipleStatus:{before:"",after:"",data:[],fulldate:""},endMultipleStatus:{before:"",after:"",data:[],fulldate:""},pickerVisible:!1,pickerPositionStyle:null,isEmitValue:!1,isPhone:!1,isFirstShow:!0,i18nT:()=>{}}),props:{type:{type:String,default:"datetime"},value:{type:[String,Number,Array,Date],default:""},modelValue:{type:[String,Number,Array,Date],default:""},start:{type:[Number,String],default:""},end:{type:[Number,String],default:""},returnType:{type:String,default:"string"},placeholder:{type:String,default:""},startPlaceholder:{type:String,default:""},endPlaceholder:{type:String,default:""},rangeSeparator:{type:String,default:"-"},border:{type:[Boolean],default:!0},disabled:{type:[Boolean],default:!1},clearIcon:{type:[Boolean],default:!0},hideSecond:{type:[Boolean],default:!1},defaultValue:{type:[String,Object,Array],default:""}},watch:{type:{immediate:!0,handler(e){this.hasTime=-1!==e.indexOf("time"),this.isRange=-1!==e.indexOf("range")}},modelValue:{immediate:!0,handler(e){this.isEmitValue?this.isEmitValue=!1:this.initPicker(e)}},start:{immediate:!0,handler(e){e&&(this.calendarRange.startDate=G(e),this.hasTime&&(this.calendarRange.startTime=Q(e)))}},end:{immediate:!0,handler(e){e&&(this.calendarRange.endDate=G(e),this.hasTime&&(this.calendarRange.endTime=Q(e,this.hideSecond)))}}},computed:{timepickerStartTime(){return(this.isRange?this.tempRange.startDate:this.inputDate)===this.calendarRange.startDate?this.calendarRange.startTime:""},timepickerEndTime(){return(this.isRange?this.tempRange.endDate:this.inputDate)===this.calendarRange.endDate?this.calendarRange.endTime:""},mobileCalendarTime(){const e={start:this.tempRange.startTime,end:this.tempRange.endTime};return this.isRange?e:this.pickerTime},mobSelectableTime(){return{start:this.calendarRange.startTime,end:this.calendarRange.endTime}},datePopupWidth(){return this.isRange?653:301},singlePlaceholderText(){return this.placeholder||("date"===this.type?this.selectDateText:this.selectDateTimeText)},startPlaceholderText(){return this.startPlaceholder||this.startDateText},endPlaceholderText(){return this.endPlaceholder||this.endDateText},selectDateText(){return this.i18nT("uni-datetime-picker.selectDate")},selectDateTimeText(){return this.i18nT("uni-datetime-picker.selectDateTime")},selectTimeText(){return this.i18nT("uni-datetime-picker.selectTime")},startDateText(){return this.startPlaceholder||this.i18nT("uni-datetime-picker.startDate")},startTimeText(){return this.i18nT("uni-datetime-picker.startTime")},endDateText(){return this.endPlaceholder||this.i18nT("uni-datetime-picker.endDate")},endTimeText(){return this.i18nT("uni-datetime-picker.endTime")},okText(){return this.i18nT("uni-datetime-picker.ok")},clearText(){return this.i18nT("uni-datetime-picker.clear")},showClearIcon(){return this.clearIcon&&!this.disabled&&(this.displayValue||this.displayRangeValue.startDate&&this.displayRangeValue.endDate)}},created(){this.initI18nT(),this.platform()},methods:{initI18nT(){const e=ge(ye);this.i18nT=e.t},initPicker(e){if(!e&&!this.defaultValue||Array.isArray(e)&&!e.length)this.$nextTick((()=>{this.clear(!1)}));else if(Array.isArray(e)||this.isRange){const[t,a]=e;if(!t&&!a)return;const n=G(t),i=Q(t,this.hideSecond),s=G(a),o=Q(a,this.hideSecond),r=n,l=s;this.displayRangeValue.startDate=this.tempRange.startDate=r,this.displayRangeValue.endDate=this.tempRange.endDate=l,this.hasTime&&(this.displayRangeValue.startDate=`${n} ${i}`,this.displayRangeValue.endDate=`${s} ${o}`,this.tempRange.startTime=i,this.tempRange.endTime=o);const c={before:n,after:s};this.startMultipleStatus=Object.assign({},this.startMultipleStatus,c,{which:"right"}),this.endMultipleStatus=Object.assign({},this.endMultipleStatus,c,{which:"left"})}else e?(this.displayValue=this.inputDate=this.calendarDate=G(e),this.hasTime&&(this.pickerTime=Q(e,this.hideSecond),this.displayValue=`${this.displayValue} ${this.pickerTime}`)):this.defaultValue&&(this.inputDate=this.calendarDate=G(this.defaultValue),this.hasTime&&(this.pickerTime=Q(this.defaultValue,this.hideSecond)))},updateLeftCale(e){const t=this.$refs.left;t.cale.setHoverMultiple(e.after),t.setDate(this.$refs.left.nowDate.fullDate)},updateRightCale(e){const t=this.$refs.right;t.cale.setHoverMultiple(e.after),t.setDate(this.$refs.right.nowDate.fullDate)},platform(){if("undefined"!=typeof navigator)return void(this.isPhone=-1!==navigator.userAgent.toLowerCase().indexOf("mobile"));const{windowWidth:e}=uni.getSystemInfoSync();this.isPhone=e<=500,this.windowWidth=e},show(){if(this.$emit("show"),this.disabled)return;if(this.platform(),this.isPhone)return void setTimeout((()=>{this.$refs.mobile.open()}),0);this.pickerPositionStyle={top:"10px"};uni.createSelectorQuery().in(this).select(".uni-date-editor").boundingClientRect((e=>{this.windowWidth-e.left{if(this.pickerVisible=!this.pickerVisible,!this.isPhone&&this.isRange&&this.isFirstShow){this.isFirstShow=!1;const{startDate:e,endDate:t}=this.calendarRange;e&&t?this.diffDate(e,t)<30&&this.$refs.right.changeMonth("pre"):this.isPhone&&(this.$refs.right.cale.lastHover=!1)}}),50)},close(){setTimeout((()=>{this.pickerVisible=!1,this.$emit("maskClick",this.value),this.$refs.mobile&&this.$refs.mobile.close()}),20)},setEmit(e){"timestamp"!==this.returnType&&"date"!==this.returnType||(Array.isArray(e)?(this.hasTime||(e[0]=e[0]+" 00:00:00",e[1]=e[1]+" 00:00:00"),e[0]=this.createTimestamp(e[0]),e[1]=this.createTimestamp(e[1]),"date"===this.returnType&&(e[0]=new Date(e[0]),e[1]=new Date(e[1]))):(this.hasTime||(e+=" 00:00:00"),e=this.createTimestamp(e),"date"===this.returnType&&(e=new Date(e)))),this.$emit("update:modelValue",e),this.$emit("input",e),this.$emit("change",e),this.isEmitValue=!0},createTimestamp:e=>(e=ne(e),Date.parse(new Date(e))),singleChange(e){this.calendarDate=this.inputDate=e.fulldate,this.hasTime||this.confirmSingleChange()},confirmSingleChange(){if(!te(this.inputDate)){const e=new Date;this.calendarDate=this.inputDate=G(e),this.pickerTime=Q(e,this.hideSecond)}let e,t,a=!1;if(this.start){let n=this.start;"number"==typeof this.start&&(n=K(this.start,this.hideSecond)),[e,t]=n.split(" "),this.start&&!ee(e,this.inputDate)&&(a=!0,this.inputDate=e)}let n,i,s=!1;if(this.end){let e=this.end;"number"==typeof this.end&&(e=K(this.end,this.hideSecond)),[n,i]=e.split(" "),this.end&&!ee(this.inputDate,n)&&(s=!0,this.inputDate=n)}this.hasTime?(a&&(this.pickerTime=t||X(this.hideSecond)),s&&(this.pickerTime=i||X(this.hideSecond)),this.pickerTime||(this.pickerTime=Q(Date.now(),this.hideSecond)),this.displayValue=`${this.inputDate} ${this.pickerTime}`):this.displayValue=this.inputDate,this.setEmit(this.displayValue),this.pickerVisible=!1},leftChange(e){const{before:t,after:a}=e.range;this.rangeChange(t,a);const n={before:e.range.before,after:e.range.after,data:e.range.data,fulldate:e.fulldate};this.startMultipleStatus=Object.assign({},this.startMultipleStatus,n),this.$emit("calendarClick",e)},rightChange(e){const{before:t,after:a}=e.range;this.rangeChange(t,a);const n={before:e.range.before,after:e.range.after,data:e.range.data,fulldate:e.fulldate};this.endMultipleStatus=Object.assign({},this.endMultipleStatus,n),this.$emit("calendarClick",e)},mobileChange(e){if(this.isRange){const{before:t,after:a}=e.range;if(!t)return;if(this.handleStartAndEnd(t,a,!0),this.hasTime){const{startTime:t,endTime:a}=e.timeRange;this.tempRange.startTime=t,this.tempRange.endTime=a}this.confirmRangeChange()}else this.hasTime?this.displayValue=e.fulldate+" "+e.time:this.displayValue=e.fulldate,this.setEmit(this.displayValue);this.$refs.mobile.close()},rangeChange(e,t){e&&t&&(this.handleStartAndEnd(e,t,!0),this.hasTime||this.confirmRangeChange())},confirmRangeChange(){if(!this.tempRange.startDate||!this.tempRange.endDate)return void(this.pickerVisible=!1);let e,t;te(this.tempRange.startDate)||(this.tempRange.startDate=G(Date.now())),te(this.tempRange.endDate)||(this.tempRange.endDate=G(Date.now()));let a,n,i=!1,s=!1;if(this.start){let e=this.start;"number"==typeof this.start&&(e=K(this.start,this.hideSecond)),[a,n]=e.split(" "),this.start&&!ee(this.start,this.tempRange.startDate)&&(i=!0,this.tempRange.startDate=a),this.start&&!ee(this.start,this.tempRange.endDate)&&(s=!0,this.tempRange.endDate=a)}let o,r,l=!1,c=!1;if(this.end){let e=this.end;"number"==typeof this.end&&(e=K(this.end,this.hideSecond)),[o,r]=e.split(" "),this.end&&!ee(this.tempRange.startDate,this.end)&&(l=!0,this.tempRange.startDate=o),this.end&&!ee(this.tempRange.endDate,this.end)&&(c=!0,this.tempRange.endDate=o)}this.hasTime?(i?this.tempRange.startTime=n||X(this.hideSecond):l&&(this.tempRange.startTime=r||X(this.hideSecond)),this.tempRange.startTime||(this.tempRange.startTime=Q(Date.now(),this.hideSecond)),s?this.tempRange.endTime=n||X(this.hideSecond):c&&(this.tempRange.endTime=r||X(this.hideSecond)),this.tempRange.endTime||(this.tempRange.endTime=Q(Date.now(),this.hideSecond)),e=this.displayRangeValue.startDate=`${this.tempRange.startDate} ${this.tempRange.startTime}`,t=this.displayRangeValue.endDate=`${this.tempRange.endDate} ${this.tempRange.endTime}`):(e=this.displayRangeValue.startDate=this.tempRange.startDate,t=this.displayRangeValue.endDate=this.tempRange.endDate),ee(e,t)||([e,t]=[t,e]),this.displayRangeValue.startDate=e,this.displayRangeValue.endDate=t;const d=[e,t];this.setEmit(d),this.pickerVisible=!1},handleStartAndEnd(e,t,a=!1){if(!e)return;t||(t=e);const n=a?"tempRange":"range",i=ee(e,t);this[n].startDate=i?e:t,this[n].endDate=i?t:e},dateCompare:(e,t)=>(e=new Date(e.replace("-","/").replace("-","/")))<=(t=new Date(t.replace("-","/").replace("-","/"))),diffDate(e,t){e=new Date(e.replace("-","/").replace("-","/"));const a=((t=new Date(t.replace("-","/").replace("-","/")))-e)/864e5;return Math.abs(a)},clear(e=!0){this.isRange?(this.displayRangeValue.startDate="",this.displayRangeValue.endDate="",this.tempRange.startDate="",this.tempRange.startTime="",this.tempRange.endDate="",this.tempRange.endTime="",this.isPhone?this.$refs.mobile&&this.$refs.mobile.clearCalender():(this.$refs.left&&this.$refs.left.clearCalender(),this.$refs.right&&this.$refs.right.clearCalender(),this.$refs.right&&this.$refs.right.changeMonth("next")),e&&(this.$emit("change",[]),this.$emit("input",[]),this.$emit("update:modelValue",[]))):(this.displayValue="",this.inputDate="",this.pickerTime="",this.isPhone?this.$refs.mobile&&this.$refs.mobile.clearCalender():this.$refs.pcSingle&&this.$refs.pcSingle.clearCalender(),e&&(this.$emit("change",""),this.$emit("input",""),this.$emit("update:modelValue","")))},calendarClick(e){this.$emit("calendarClick",e)}}};const Se=q(Ee,[["render",function(t,n,i,s,o,r){const l=a(e.resolveDynamicComponent("uni-icons"),Y),c=e.resolveComponent("time-picker"),d=e.resolveComponent("Calendar");return e.openBlock(),e.createElementBlock("view",{class:"uni-date"},[e.createElementVNode("view",{class:"uni-date-editor",onClick:n[1]||(n[1]=(...e)=>r.show&&r.show(...e))},[e.renderSlot(t.$slots,"default",{},(()=>[e.createElementVNode("view",{class:e.normalizeClass(["uni-date-editor--x",{"uni-date-editor--x__disabled":i.disabled,"uni-date-x--border":i.border}])},[o.isRange?(e.openBlock(),e.createElementBlock("view",{key:1,class:"uni-date-x uni-date-range"},[e.createVNode(l,{class:"icon-calendar",type:"calendar",color:"#c0c4cc",size:"22"}),e.createElementVNode("view",{class:"uni-date__x-input text-center"},e.toDisplayString(o.displayRangeValue.startDate||r.startPlaceholderText),1),e.createElementVNode("view",{class:"range-separator"},e.toDisplayString(i.rangeSeparator),1),e.createElementVNode("view",{class:"uni-date__x-input text-center"},e.toDisplayString(o.displayRangeValue.endDate||r.endPlaceholderText),1)])):(e.openBlock(),e.createElementBlock("view",{key:0,class:"uni-date-x uni-date-single"},[e.createVNode(l,{class:"icon-calendar",type:"calendar",color:"#c0c4cc",size:"22"}),e.createElementVNode("view",{class:"uni-date__x-input"},e.toDisplayString(o.displayValue||r.singlePlaceholderText),1)])),r.showClearIcon?(e.openBlock(),e.createElementBlock("view",{key:2,class:"uni-date__icon-clear",onClick:n[0]||(n[0]=e.withModifiers(((...e)=>r.clear&&r.clear(...e)),["stop"]))},[e.createVNode(l,{type:"clear",color:"#c0c4cc",size:"22"})])):e.createCommentVNode("",!0)],2)]),!0)]),e.withDirectives(e.createElementVNode("view",{class:"uni-date-mask--pc",onClick:n[2]||(n[2]=(...e)=>r.close&&r.close(...e))},null,512),[[e.vShow,o.pickerVisible]]),o.isPhone?e.createCommentVNode("",!0):e.withDirectives((e.openBlock(),e.createElementBlock("view",{key:0,ref:"datePicker",class:"uni-date-picker__container"},[o.isRange?(e.openBlock(),e.createElementBlock("view",{key:1,class:"uni-date-range--x",style:e.normalizeStyle(o.pickerPositionStyle)},[e.createElementVNode("view",{class:"uni-popper__arrow"}),o.hasTime?(e.openBlock(),e.createElementBlock("view",{key:0,class:"popup-x-header uni-date-changed"},[e.createElementVNode("view",{class:"popup-x-header--datetime"},[e.withDirectives(e.createElementVNode("input",{class:"uni-date__input uni-date-range__input",type:"text","onUpdate:modelValue":n[7]||(n[7]=e=>o.tempRange.startDate=e),placeholder:r.startDateText},null,8,["placeholder"]),[[e.vModelText,o.tempRange.startDate]]),e.createVNode(c,{type:"time",modelValue:o.tempRange.startTime,"onUpdate:modelValue":n[9]||(n[9]=e=>o.tempRange.startTime=e),start:r.timepickerStartTime,border:!1,disabled:!o.tempRange.startDate,hideSecond:i.hideSecond},{default:e.withCtx((()=>[e.withDirectives(e.createElementVNode("input",{class:"uni-date__input uni-date-range__input",type:"text","onUpdate:modelValue":n[8]||(n[8]=e=>o.tempRange.startTime=e),placeholder:r.startTimeText,disabled:!o.tempRange.startDate},null,8,["placeholder","disabled"]),[[e.vModelText,o.tempRange.startTime]])])),_:1},8,["modelValue","start","disabled","hideSecond"])]),e.createVNode(l,{type:"arrowthinright",color:"#999",style:{"line-height":"40px"}}),e.createElementVNode("view",{class:"popup-x-header--datetime"},[e.withDirectives(e.createElementVNode("input",{class:"uni-date__input uni-date-range__input",type:"text","onUpdate:modelValue":n[10]||(n[10]=e=>o.tempRange.endDate=e),placeholder:r.endDateText},null,8,["placeholder"]),[[e.vModelText,o.tempRange.endDate]]),e.createVNode(c,{type:"time",modelValue:o.tempRange.endTime,"onUpdate:modelValue":n[12]||(n[12]=e=>o.tempRange.endTime=e),end:r.timepickerEndTime,border:!1,disabled:!o.tempRange.endDate,hideSecond:i.hideSecond},{default:e.withCtx((()=>[e.withDirectives(e.createElementVNode("input",{class:"uni-date__input uni-date-range__input",type:"text","onUpdate:modelValue":n[11]||(n[11]=e=>o.tempRange.endTime=e),placeholder:r.endTimeText,disabled:!o.tempRange.endDate},null,8,["placeholder","disabled"]),[[e.vModelText,o.tempRange.endTime]])])),_:1},8,["modelValue","end","disabled","hideSecond"])])])):e.createCommentVNode("",!0),e.createElementVNode("view",{class:"popup-x-body"},[e.createVNode(d,{ref:"left",showMonth:!1,"start-date":o.calendarRange.startDate,"end-date":o.calendarRange.endDate,range:!0,pleStatus:o.endMultipleStatus,onChange:r.leftChange,onFirstEnterCale:r.updateRightCale,style:{padding:"0 8px"}},null,8,["start-date","end-date","pleStatus","onChange","onFirstEnterCale"]),e.createVNode(d,{ref:"right",showMonth:!1,"start-date":o.calendarRange.startDate,"end-date":o.calendarRange.endDate,range:!0,onChange:r.rightChange,pleStatus:o.startMultipleStatus,onFirstEnterCale:r.updateLeftCale,style:{padding:"0 8px","border-left":"1px solid #F1F1F1"}},null,8,["start-date","end-date","onChange","pleStatus","onFirstEnterCale"])]),o.hasTime?(e.openBlock(),e.createElementBlock("view",{key:1,class:"popup-x-footer"},[e.createElementVNode("text",{onClick:n[13]||(n[13]=(...e)=>r.clear&&r.clear(...e))},e.toDisplayString(r.clearText),1),e.createElementVNode("text",{class:"confirm-text",onClick:n[14]||(n[14]=(...e)=>r.confirmRangeChange&&r.confirmRangeChange(...e))},e.toDisplayString(r.okText),1)])):e.createCommentVNode("",!0)],4)):(e.openBlock(),e.createElementBlock("view",{key:0,class:"uni-date-single--x",style:e.normalizeStyle(o.pickerPositionStyle)},[e.createElementVNode("view",{class:"uni-popper__arrow"}),o.hasTime?(e.openBlock(),e.createElementBlock("view",{key:0,class:"uni-date-changed popup-x-header"},[e.withDirectives(e.createElementVNode("input",{class:"uni-date__input text-center",type:"text","onUpdate:modelValue":n[3]||(n[3]=e=>o.inputDate=e),placeholder:r.selectDateText},null,8,["placeholder"]),[[e.vModelText,o.inputDate]]),e.createVNode(c,{type:"time",modelValue:o.pickerTime,"onUpdate:modelValue":n[5]||(n[5]=e=>o.pickerTime=e),border:!1,disabled:!o.inputDate,start:r.timepickerStartTime,end:r.timepickerEndTime,hideSecond:i.hideSecond,style:{width:"100%"}},{default:e.withCtx((()=>[e.withDirectives(e.createElementVNode("input",{class:"uni-date__input text-center",type:"text","onUpdate:modelValue":n[4]||(n[4]=e=>o.pickerTime=e),placeholder:r.selectTimeText,disabled:!o.inputDate},null,8,["placeholder","disabled"]),[[e.vModelText,o.pickerTime]])])),_:1},8,["modelValue","disabled","start","end","hideSecond"])])):e.createCommentVNode("",!0),e.createVNode(d,{ref:"pcSingle",showMonth:!1,"start-date":o.calendarRange.startDate,"end-date":o.calendarRange.endDate,date:o.calendarDate,onChange:r.singleChange,"default-value":i.defaultValue,style:{padding:"0 8px"}},null,8,["start-date","end-date","date","onChange","default-value"]),o.hasTime?(e.openBlock(),e.createElementBlock("view",{key:1,class:"popup-x-footer"},[e.createElementVNode("text",{class:"confirm-text",onClick:n[6]||(n[6]=(...e)=>r.confirmSingleChange&&r.confirmSingleChange(...e))},e.toDisplayString(r.okText),1)])):e.createCommentVNode("",!0)],4))],512)),[[e.vShow,o.pickerVisible]]),o.isPhone?(e.openBlock(),e.createBlock(d,{key:1,ref:"mobile",clearDate:!1,date:o.calendarDate,defTime:r.mobileCalendarTime,"start-date":o.calendarRange.startDate,"end-date":o.calendarRange.endDate,selectableTimes:r.mobSelectableTime,startPlaceholder:i.startPlaceholder,endPlaceholder:i.endPlaceholder,"default-value":i.defaultValue,pleStatus:o.endMultipleStatus,showMonth:!1,range:o.isRange,hasTime:o.hasTime,insert:!1,hideSecond:i.hideSecond,onConfirm:r.mobileChange,onMaskClose:r.close,onChange:r.calendarClick},null,8,["date","defTime","start-date","end-date","selectableTimes","startPlaceholder","endPlaceholder","default-value","pleStatus","range","hasTime","hideSecond","onConfirm","onMaskClose","onChange"])):e.createCommentVNode("",!0)])}],["__scopeId","data-v-17511ee3"]]),xe=q({__name:"customNav",setup(t){e.useCssVars((e=>({bc08538a:a})));const a=wx.getSystemInfoSync().statusBarHeight+44+"px";return(t,a)=>(e.openBlock(),e.createElementBlock("view",{class:""},[e.createElementVNode("view",{class:"nav"},[e.renderSlot(t.$slots,"default",{},void 0,!0)]),e.createElementVNode("view",{class:"place"})]))}},[["__scopeId","data-v-566e182b"]]),Ne="https://36.112.48.190/jeecg-boot/sys/common/static/",Ve=(e,t,a)=>{uni.showToast({title:e,icon:t||"none",duration:a||2e3})},Ce=(e,a)=>{u({token:H().token,type:"mobile"}).then((t=>{var n;if(t.success){Te((null==(n=t.result)?void 0:n.menu)||[]).some((t=>-1!==e.indexOf(t)))?a():Ve("无查看权限!")}})).catch((e=>{t("log","at utils/index.js:35","err@",e)}))},Te=(e,t=[])=>e.length?(e.forEach((e=>{e.children&&t.push(...Te(e.children)),t.push(e.path)})),t):[];function De(e){t("log","at utils/index.js:78","url",e);var a=plus.downloader.createDownload(e,{filename:`_downloads/wgt-${Date.now()}.wgt`},(function(e,a){if(200==a){var n=plus.io.convertLocalFileSystemURL(e.filename);t("log","at utils/index.js:86","fileSaveUrl",n),i=n,plus.runtime.install(i,{force:!0},(()=>{uni.showModal({title:"更新",content:"更新成功,请点击确认后重启",showCancel:!1,success(e){e.confirm&&plus.runtime.restart()}})}),(()=>uni.showToast({title:"安装失败!",icon:"error"})))}else plus.downloader.clear(),uni.showToast({title:"App下载失败!",icon:"error"});var i}));let n=plus.nativeUI.showWaiting("正在下載");a.start(),a.addEventListener("statechanged",((e,t)=>{switch(e.state){case 1:n.setTitle("正在下载");break;case 2:n.setTitle("已连接到服务器");break;case 3:parseInt(parseFloat(e.downloadedSize)/parseFloat(e.totalSize)*100),n.setTitle(" 正在下载");break;case 4:plus.nativeUI.closeWaiting()}}))}const Be=()=>{let e=new Date;return(new Date).getTime(),`${e.getFullYear()}-${(e.getMonth()+1).toString().padStart(2,0)}-${e.getDate().toString().padStart(2,0)}`},Ie=()=>{const e=H();e.positionSwitch?(Ve("定位刷新中"),uni.getLocation({type:"wgs84",success:function(a){uni.request({url:"http://api.tianditu.gov.cn/geocoder",method:"GET",data:{postStr:JSON.stringify({lon:a.longitude,lat:a.latitude,ver:1}),type:"geocode",tk:"30fe0f0c1b2320e112bde797f3ddaff4"},success:function(n){let i=n.data;if(0==i.status){const t=i.result.addressComponent;let n=t.city?t.city:t.province;uni.setStorageSync("position",n),e.setPosition(n),Pe(a.latitude,a.longitude)}else t("log","at utils/index.js:223",i.message)},fail:function(e){Ve("获取定位失败")}})}})):(uni.setStorageSync("position","濮阳市"),e.setPosition("濮阳市"),Pe())},Pe=(e,t)=>{let a={};H().positionSwitch?(a.lat=e,a.lon=t,Ae(a)):(a.q="濮阳市",Ae(a))},Ae=e=>{const t=H();uni.request({url:"https://api.openweathermap.org/data/2.5/weather",method:"GET",data:{...e,appid:"600a60694b0e453dfbaafa862f1d1482",lang:"zh_cn"},success:function(e){uni.setStorageSync("wendu",Math.round(e.data.main.temp-273.15)),uni.setStorageSync("wenduIcon",e.data.weather[0].icon),t.setWeather(Math.round(e.data.main.temp-273.15),e.data.weather[0].icon)},fail:function(e){Ve("天气获取失败")}})},Me=e=>{uni.downloadFile({url:Ne+e,success:function(e){var t=e.tempFilePath;uni.openDocument({filePath:t,showMenu:!0,fail:function(e){Ve(e.errMsg)}})},fail:function(e){t("error","at utils/index.js:282","文件下载失败",e)}})},Re=e=>`https://36.112.48.190/jeecg-boot/sys/common/static//${e}`,Le=q({__name:"index",setup(n){e.useCssVars((e=>({"59a7e392":p})));const s=H();i((()=>{r(),S(),V()}));const o=e.ref([]),r=()=>{var e;(e={zslb:6},d({url:"/CxcDaping/cxcDaping/list",method:"get",data:e})).then((e=>{if(e.success){let t=e.result.records[0].wenjian.split(",");o.value=t.map((e=>"https://36.112.48.190/jeecg-boot/sys/common/static/"+e))}}))},c=e.ref(0),u=e.ref(0),h=["公文","公告","制度","法规"],m=e=>{u.value=e,b=1,_.value=[],x()},p=wx.getSystemInfoSync().statusBarHeight+44+"px";e.ref(null);const k=(e,t,a,n)=>{if(!t||1!=t||"detail"!=n){if(t&&3==t&&a)return Me(a.mingcheng);t&&2==t&&(e+=`&zhiduid=${u.value}`),Ce(e,(()=>{uni.navigateTo({url:e})}))}};let b=1;const _=e.ref([]),E=e.ref([]),S=()=>{var e;d({url:"/zhgl_zbgl/zhglZbglZbb/homepageList",method:"get",data:e}).then((e=>{e.success&&(E.value=e.result.records.slice(0,2))})).catch((e=>{t("log","at pages/tab/index.vue:299","err",e)}))},x=()=>{(0==u.value?w:v)({pageNo:b,pageSize:5}).then((e=>{if(e.success){let t=0==u.value?"zbbm_dictText":"sbbm";_.value=[..._.value,...N(e.result.records,"zdmc",t,null)]}})).catch((e=>{t("log","at pages/tab/index.vue:332","err",e)}))},N=(e,t,a,n)=>(e.map((e=>{e._title=e[t],e._time=e[a],e._depart=e[n]})),e);l((()=>{_.value=[],r(),S(),V(),uni.stopPullDownRefresh()}));const V=()=>{0==c.value?f({pageNo:b,pageSize:5}).then((e=>{e.success&&(_.value=[..._.value,...N(e.result.records,"fwbt","fwtime",null)])})).catch((e=>{t("log","at pages/tab/index.vue:273","err",e)})):1==c.value?g({pageNo:b,pageSize:5}).then((e=>{e.success&&(_.value=[..._.value,...N(e.result.records,"neirong","fbdw","createTime")])})).catch((e=>{t("log","at pages/tab/index.vue:288","err",e)})):2==c.value?x():3==c.value&&y({pageNo:b,pageSize:5}).then((e=>{e.success&&(_.value=[..._.value,...N(e.result.records,"flfgmc","ssbm",null)])})).catch((e=>{t("log","at pages/tab/index.vue:315","err",e)}))};return(t,n)=>{const i=a(e.resolveDynamicComponent("uni-datetime-picker"),Se);return e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass(["content",{gray:1==e.unref(s).isgray}])},[e.createElementVNode("view",{class:"nav"},[e.createElementVNode("view",{class:"nav_box f-row aic jcb"},[e.createElementVNode("view",{class:"weather_calender f-row aic"},[e.createElementVNode("view",{class:"position f-row aic"},[e.createElementVNode("image",{src:"/static/index/position.png",mode:""}),e.createElementVNode("text",null,e.toDisplayString(e.unref(s).position?e.unref(s).position:"暂未定位"),1)]),e.createElementVNode("view",{class:"position f-row aic"},[e.createElementVNode("image",{style:{height:"80rpx",width:"80rpx"},src:`http://openweathermap.org/img/w/${e.unref(s).wenduIcon}.png`,mode:""},null,8,["src"]),e.createElementVNode("text",null,e.toDisplayString(e.unref(s).wendu)+"℃",1)]),e.createVNode(i,{type:"date"},{default:e.withCtx((()=>[e.createElementVNode("view",{class:"position f-row aic"},[e.createElementVNode("image",{src:"/static/index/calendar.png",mode:""}),e.createElementVNode("text",null,e.toDisplayString(e.unref(Be)()),1)])])),_:1})])])]),e.createElementVNode("view",{class:"f-col aic"},[e.createElementVNode("swiper",{class:"swiper",autoplay:""},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.value,((t,a)=>(e.openBlock(),e.createElementBlock("swiper-item",{key:a,class:"swiper-item"},[e.createElementVNode("image",{src:t,mode:"aspectFill"},null,8,["src"])])))),128))])]),e.createElementVNode("view",{class:"wrapper f-col aic"},[e.createElementVNode("view",{class:"onduty"},[e.createElementVNode("view",{class:"title f-row aic jcb"},[e.createTextVNode(" 值班信息 "),e.createElementVNode("view",{class:"more",onClick:n[0]||(n[0]=e=>k("/pages/zhiban/index"))},[e.createTextVNode(" 查看更多 "),e.createElementVNode("image",{src:"/static/index/back.png",mode:""})])]),e.createElementVNode("view",{class:"info"},[e.createElementVNode("view",{class:"info_title f-row aic"},[e.createElementVNode("view",{class:""}," 日期 "),e.createElementVNode("view",{class:""}," 带班领导 "),e.createElementVNode("view",{class:""}," 值班领导 "),e.createElementVNode("view",{class:""}," 值班干部 ")]),e.createElementVNode("view",{class:"data_box"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(E.value,((t,a)=>(e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass(["data"," f-row","aic",{first:0==a}])},[e.createElementVNode("view",{class:""},e.toDisplayString(t.date),1),e.createElementVNode("view",{class:""},e.toDisplayString(t.dbld_dictText),1),e.createElementVNode("view",{class:""},e.toDisplayString(t.zbld_dictText),1),e.createElementVNode("view",{class:""},e.toDisplayString(t.zbgbrealname),1)],2)))),256))])])]),e.createElementVNode("view",{class:"list_wrapper"},[e.createElementVNode("view",{class:""},[e.createElementVNode("view",{class:"list_title f-row aic jca"},[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(h,((t,a)=>e.createElementVNode("view",{class:e.normalizeClass({active:c.value==a}),onClick:e=>(e=>{c.value=e,b=1,_.value=[],V()})(a)},e.toDisplayString(t),11,["onClick"]))),64))]),2==c.value?(e.openBlock(),e.createElementBlock("view",{key:0,class:"f-row aic zhidu"},[e.createElementVNode("view",{class:e.normalizeClass({active:0==u.value}),onClick:n[1]||(n[1]=e=>m(0))}," 厂级制度 ",2),e.createElementVNode("view",{class:e.normalizeClass({active:1==u.value}),onClick:n[2]||(n[2]=e=>m(1))}," 上级制度 ",2)])):e.createCommentVNode("",!0)]),e.createElementVNode("view",{style:{"padding-top":"24rpx"},class:"more",onClick:n[3]||(n[3]=e=>k(`/pages/document/index?id=${c.value}`,c.value))},[e.createTextVNode(" 查看更多 "),e.createElementVNode("image",{src:"/static/index/back.png",mode:""})]),e.createElementVNode("view",{class:"list_box"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(_.value,((t,a)=>(e.openBlock(),e.createElementBlock("view",{class:"list",key:a,onClick:e=>k(`/pages/document/detail?data=${JSON.stringify(t)}&id=${c.value}`,c.value,t,"detail")},[e.createElementVNode("view",{class:"topic"},e.toDisplayString(t._title),1),t._time||t._depart?(e.openBlock(),e.createElementBlock("view",{key:0,class:"time_Box f-row aic"},[t._time?(e.openBlock(),e.createElementBlock("view",{key:0,class:"time"},e.toDisplayString(t._time),1)):e.createCommentVNode("",!0),t._depart?(e.openBlock(),e.createElementBlock("view",{key:1,class:"look f-row aic"},e.toDisplayString(t._depart),1)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)],8,["onClick"])))),128))])])])],2)}}},[["__scopeId","data-v-9c94732a"]]),Oe=q({__name:"extendCom",props:{title:{type:String,default:""},img:{type:String,default:""},list:{type:Array,default:function(){return[]}},total:{type:Number,default:0},type:{type:String,default:""}},setup(t){e.useCssVars((e=>({"11d92706":i.value})));const a=t,n=e.ref(!1),i=e.ref(null),s=e.getCurrentInstance();e.watch((()=>a.list),(()=>{e.nextTick((()=>{uni.createSelectorQuery().in(s.proxy).select(".item_box").boundingClientRect((e=>{i.value=(null==e?void 0:e.height)+"px"})).exec()}))}),{immediate:!0});const o=e=>{let t=null;Ce("/pages/task/index",(()=>{if("0"==a.type&&(t=0),"1"==a.type&&(t=1),"2"==a.type)return uni.navigateTo({url:`/pages/task/self?title=${e}`});uni.navigateTo({url:`/pages/task/index?id=${t}&title=${e}`})}))};return(a,i)=>(e.openBlock(),e.createElementBlock("view",{class:"content"},[e.createElementVNode("view",{class:"todo f-col aic"},[e.createElementVNode("view",{class:"f-col aic"},[e.createElementVNode("view",{class:"title_box f-row aic jcb",onClick:i[0]||(i[0]=e=>o(""))},[e.createElementVNode("view",{class:"title f-row aic"},[e.createElementVNode("image",{src:`/static/my/${t.img}.png`,mode:""},null,8,["src"]),e.createTextVNode(" "+e.toDisplayString(t.title),1)]),e.createElementVNode("view",{class:"num"},e.toDisplayString(t.total),1)]),t.list.length?(e.openBlock(),e.createElementBlock("view",{key:0,class:"list"},[e.createElementVNode("view",{class:e.normalizeClass(["box",{close:t.list.length>5&&n.value}])},[e.createElementVNode("view",{class:"item_box"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.list,((t,a)=>(e.openBlock(),e.createElementBlock("view",{onClick:e=>o(t.title),class:"item f-row aic",key:a},[e.createElementVNode("view",{class:""},e.toDisplayString(t.title),1),e.createElementVNode("text",null,e.toDisplayString(t.num),1)],8,["onClick"])))),128))])],2),e.withDirectives(e.createElementVNode("view",{class:"more",onClick:i[1]||(i[1]=e=>n.value=!n.value)},e.toDisplayString(n.value?"收起":"显示更多"),513),[[e.vShow,t.list.length>5]])])):e.createCommentVNode("",!0)])])]))}},[["__scopeId","data-v-d5e6674e"]]),Fe=q({__name:"todotask",setup(a){e.useCssVars((e=>({"6ebd20b9":n})));const n=wx.getSystemInfoSync().statusBarHeight+44+"px",s=H();i((()=>{k(),c(),f(),v(),uni.removeTabBarBadge({index:"1"})}));const o=e.ref([]),r=e.ref(0),c=()=>{h({pageNo:1,pageSize:4,_t:(new Date).getTime()}).then((e=>{var a,n,i,s;(null==e?void 0:e.success)&&((null==(a=null==e?void 0:e.result)?void 0:a.total)>4?h({pageNo:1,pageSize:null==(n=null==e?void 0:e.result)?void 0:n.total,_t:(new Date).getTime()}).then((e=>{var a,n;t("log","at pages/task/todotask.vue:60","---",e),(null==e?void 0:e.success)&&(o.value=[...o.value,...w(null==(a=null==e?void 0:e.result)?void 0:a.records)],r.value=null==(n=null==e?void 0:e.result)?void 0:n.total)})).catch((e=>{t("log","at pages/task/todotask.vue:66","err",e)})):(o.value=[...o.value,...w(null==(i=null==e?void 0:e.result)?void 0:i.records)],r.value=null==(s=null==e?void 0:e.result)?void 0:s.total))})).catch((e=>{t("log","at pages/task/todotask.vue:75",e)}))},d=e.ref([]),u=e.ref(0),f=()=>{m().then((e=>{e.success&&(e.result.total>4?m({pageNo:1,pageSize:e.result.total,_t:(new Date).getTime()}).then((e=>{e.success&&(d.value=[...d.value,...w(e.result.records)],u.value=e.result.total)})).catch((e=>{t("log","at pages/task/todotask.vue:96",e)})):(d.value=[...d.value,...w(e.result.records)],u.value=e.result.total))})).catch((e=>{t("log","at pages/task/todotask.vue:105",e)}))},g=e.ref([]),y=e.ref(0),v=()=>{p().then((e=>{e.success&&(e.result.total>4?p({pageNo:1,pageSize:e.result.total,_t:(new Date).getTime()}).then((e=>{e.success&&(g.value=[...g.value,...w(e.result.records)],y.value=e.result.total)})).catch((e=>{t("log","at pages/task/todotask.vue:125",e)})):(g.value=[...g.value,...w(e.result.records)],y.value=e.result.total))})).catch((e=>{t("log","at pages/task/todotask.vue:135",e)}))},w=e=>{let t=(e.length?e.map((e=>e.processDefinitionName||e.prcocessDefinitionName)):[]).reduce(((e,t)=>(t in e?e[t]++:e[t]=1,e)),{});return Object.entries(t).map((([e,t])=>({title:e,num:t})))},k=()=>{o.value=[],g.value=[],d.value=[],r.value=0,u.value=0,y.value=0};return l((()=>{k(),c(),f(),v(),uni.stopPullDownRefresh()})),(t,a)=>(e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass([{gray:1==e.unref(s).isgray}])},[e.createElementVNode("view",{class:"nav"}),e.createElementVNode("view",{class:"placeholder"}),e.createElementVNode("view",{class:"content"},[e.createVNode(Oe,{title:"我的任务",img:"process",list:o.value,total:r.value,type:"0"},null,8,["list","total"]),e.createVNode(Oe,{title:"历史任务",img:"done",list:d.value,total:u.value,type:"1"},null,8,["list","total"]),e.createVNode(Oe,{title:"本人发起",img:"self",list:g.value,total:y.value,type:"2"},null,8,["list","total"])])],2))}},[["__scopeId","data-v-df705bde"]]),$e={__name:"office",setup(a){e.useCssVars((e=>({"00e5a4ad":i})));const n=H();new Array(7).fill(0).map(((e,t)=>t)),e.ref([]);const i=wx.getSystemInfoSync().statusBarHeight+44+"px";o((()=>{c()}));const s=e.ref([]),r=e.ref([]),l=e.ref([]),c=()=>{u({token:n.token,type:"mobile"}).then((e=>{var t,a,n;if(e.success){let i=e.result.menu;i.map((e=>e.children=null==e?void 0:e.children.filter((e=>{var t;return null==(t=null==e?void 0:e.meta)?void 0:t.icon})))),i=i.filter((e=>{var t;return null==(t=null==e?void 0:e.children)?void 0:t.length})),l.value=null==(a=null==(t=i[0])?void 0:t.meta)?void 0:a.title,s.value=i,r.value=null==(n=i.slice(0,1)[0])?void 0:n.children}})).catch((e=>{t("log","at pages/tab/office.vue:103",e)}))};return(t,a)=>{var i,o,l;return e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass({gray:1==e.unref(n).isgray})},[e.createElementVNode("view",{class:"nav"}),e.createElementVNode("view",{class:"placeholder"}),(null==(i=r.value)?void 0:i.length)||(null==(o=s.value)?void 0:o.length)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("view",{key:0,class:"title f-col aic",style:{"padding-top":"30rpx"}}," 暂无权限,请联系管理员! ")),e.createElementVNode("view",{class:"content"},[(null==(l=s.value)?void 0:l.length)?(e.openBlock(),e.createElementBlock("view",{key:0,class:"list"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value,((t,a)=>(e.openBlock(),e.createElementBlock("view",{class:"item",key:a},[e.createElementVNode("view",{class:"title"},e.toDisplayString(t.meta.title),1),e.createElementVNode("view",{class:"info_box f-row aic"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.children,((t,a)=>(e.openBlock(),e.createElementBlock("view",{class:"info f-col aic",onClick:e=>{return a=t.path,void Ce(a,(()=>{uni.navigateTo({url:a})}));var a},key:a},[e.createElementVNode("view",{class:"img f-row aic"},[e.createElementVNode("image",{src:`../../static/office/${t.meta.icon}.png`},null,8,["src"])]),e.createElementVNode("view",{class:"text"},e.toDisplayString(t.meta.title),1)],8,["onClick"])))),128))])])))),128))])):e.createCommentVNode("",!0)])],2)}}},je=q($e,[["__scopeId","data-v-a37e03c5"]]),Ue=q({__name:"my",setup(t){const a=H(),n=e.ref(plus.runtime.version),i=e.ref([]),s=e.ref(!1),o=e.ref(a.positionSwitch),r=e=>{e&&Ce(e,(()=>{uni.navigateTo({url:e})}))},l=e=>{uni.navigateTo({url:e})},c=()=>{o.value=!o.value,uni.setStorageSync("positionSwitch",o.value),a.setPositionSwitch(o.value),o.value||Ve("定位已关闭"),Ie()},d=()=>{uni.scanCode({success:function(e){plus.runtime.openWeb(e.result)}})};return(t,u)=>(e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass({gray:1==e.unref(a).isgray})},[e.createElementVNode("view",{class:"nav"},[e.createElementVNode("view",{class:"user f-row aic"},[e.createElementVNode("view",{class:"avatar"},[e.createElementVNode("image",{onClick:u[0]||(u[0]=e=>l("/pages/useredit/useredit")),src:e.unref(Re)(e.unref(a).userinfo.avatar),mode:""},null,8,["src"])]),e.createElementVNode("view",{class:"f-row aic jcb right"},[e.createElementVNode("view",{class:"name_job",onClick:u[1]||(u[1]=e=>l("/pages/useredit/useredit"))},[e.createElementVNode("view",{class:"f-row aic"},[e.createElementVNode("view",{class:"name"},e.toDisplayString(e.unref(a).userinfo.realname),1)]),e.createElementVNode("view",{class:"job"},e.toDisplayString(e.unref(a).role),1)]),e.createElementVNode("view",{class:"shezhi"},[e.createElementVNode("image",{onClick:d,style:{width:"50rpx",height:"50rpx","margin-right":"20rpx"},src:"/static/tab/scan.png"})])])]),e.createElementVNode("view",{class:"f-col aic"},[e.createElementVNode("view",{class:"msg f-row aic jca"},[e.createElementVNode("view",{class:"box f-col aic"},[e.createElementVNode("view",{class:"num"},e.toDisplayString(0)),e.createElementVNode("text",null,"步数")]),e.createElementVNode("view",{class:"box f-col aic",onClick:u[2]||(u[2]=e=>r("/pages/useredit/addressbook"))},[e.createElementVNode("view",{class:"num"}," 0 "),e.createElementVNode("text",null,"通讯录")])])])]),e.createElementVNode("view",{class:"operate"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value,((t,a)=>(e.openBlock(),e.createElementBlock("view",{class:"f-row aic jcb item",key:a,onClick:e=>r(t.path)},[e.createElementVNode("view",{class:"left f-row aic"},[e.createElementVNode("image",{src:t.img,mode:""},null,8,["src"]),e.createElementVNode("text",null,e.toDisplayString(t.text),1)]),e.createElementVNode("view",{class:"right f-row aic"},[e.withDirectives(e.createElementVNode("view",{class:"switch",onClick:u[3]||(u[3]=e=>s.value=!s.value)},[e.withDirectives(e.createElementVNode("image",{src:"/static/my/open.png",mode:""},null,512),[[e.vShow,s.value]]),e.withDirectives(e.createElementVNode("image",{src:"/static/my/close.png",mode:""},null,512),[[e.vShow,!s.value]])],512),[[e.vShow,0==a]]),e.withDirectives(e.createElementVNode("view",{class:"switch",onClick:c},[e.withDirectives(e.createElementVNode("image",{src:"/static/my/open.png",mode:""},null,512),[[e.vShow,o.value]]),e.withDirectives(e.createElementVNode("image",{src:"/static/my/close.png",mode:""},null,512),[[e.vShow,!o.value]])],512),[[e.vShow,2==a]]),e.withDirectives(e.createElementVNode("view",{class:"version"}," 当前版本v"+e.toDisplayString(n.value),513),[[e.vShow,3==a]])])],8,["onClick"])))),128))])],2))}},[["__scopeId","data-v-300a7325"]]),ze=q({__name:"tasklistCom",props:{taskArr:{type:Array,default:()=>[]},currentIndex:{type:Number,default:0}},emits:["jump"],setup(t,{emit:a}){const{proxy:n}=e.getCurrentInstance(),i=a,s=e=>{i("jump",e)},o=e=>{var t;(t={taskId:e},d({url:"/act/task/claim",method:"put",data:t})).then((e=>{e.success&&(uni.redirectTo({url:"./index?id=0"}),n.$toast(e.message))}))},r=e=>{var t;(t={processInstanceId:e},d({url:"/act/task/callBackProcess",method:"put",data:t})).then((e=>{e.success&&(uni.redirectTo({url:"./self"}),n.$toast(e.message))}))},l=e=>{var t;(t={processInstanceId:e},d({url:"/act/task/invalidProcess",method:"put",data:t})).then((e=>{e.success&&(uni.redirectTo({url:"./self"}),n.$toast(e.message))}))};return(a,n)=>(e.openBlock(),e.createElementBlock("view",{class:"list_box"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.taskArr,((a,n)=>(e.openBlock(),e.createElementBlock("view",{class:"list",key:n,onClick:e=>s(`/pages/task/handle?info=${JSON.stringify(a)}&type=${t.currentIndex}`)},[e.createElementVNode("view",{class:"title f-row aic jcb"},[e.createElementVNode("view",null,[e.createElementVNode("view",null,e.toDisplayString(a.bpmBizTitle),1)]),e.createElementVNode("text",null,e.toDisplayString(a.durationStr),1)]),e.createElementVNode("view",{class:"info"},[e.createElementVNode("view",null," 申请理由:"+e.toDisplayString(a.bpmBizTitle),1),2!=t.currentIndex?(e.openBlock(),e.createElementBlock("view",{key:0}," 当前环节:"+e.toDisplayString(a.taskName),1)):e.createCommentVNode("",!0),e.createElementVNode("view",null," 流程名称:"+e.toDisplayString(a.processDefinitionName),1),e.createElementVNode("view",null," 发起人:"+e.toDisplayString(a.processApplyUserName),1),e.createElementVNode("view",null," 开始时间:"+e.toDisplayString(a.taskBeginTime),1),a.taskEndTime?(e.openBlock(),e.createElementBlock("view",{key:1}," 结束时间:"+e.toDisplayString(a.taskEndTime),1)):e.createCommentVNode("",!0)]),0==t.currentIndex&&a.taskAssigneeName?(e.openBlock(),e.createElementBlock("view",{key:0,class:"btn f-row aic jcb"},[e.createElementVNode("view",{class:"entrust",onClick:e.withModifiers((e=>s(`/pages/userlist/index?isradio=1&id=${a.id}`)),["stop"])}," 委托 ",8,["onClick"]),e.createElementVNode("view",{class:"handle",onClick:e=>s(`/pages/task/handle?info=${JSON.stringify(a)}&type=${t.currentIndex}`)}," 办理 ",8,["onClick"])])):e.createCommentVNode("",!0),0!=t.currentIndex||a.taskAssigneeName?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("view",{key:1,class:"btn f-row aic jcb"},[e.createElementVNode("view"),e.createElementVNode("view",{class:"handle",onClick:e.withModifiers((e=>o(a.id)),["stop"])}," 签收 ",8,["onClick"])])),2!=t.currentIndex||a.endTime?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("view",{key:2,class:"btn f-row aic jcb"},[e.createElementVNode("view",{class:"entrust",onClick:e.withModifiers((e=>l(a.processInstanceId)),["stop"])}," 作废流程 ",8,["onClick"]),e.createElementVNode("view",{class:"handle",onClick:e.withModifiers((e=>r(a.processInstanceId)),["stop"])}," 取回流程 ",8,["onClick"])]))],8,["onClick"])))),128))]))}},[["__scopeId","data-v-3868ba91"]]),He=q({__name:"index",setup(a){const n=H();let s="";o((e=>{d.value=+e.id,s=e.title})),i((()=>{g.value=[],u=1,p=10,f=!1,y()}));const c=e.ref([{text:"我的任务",id:0},{text:"历史任务",id:1}]);e.ref("");const d=e.ref(0);let u=1,p=10,f=!1;const g=e.ref([]),y=()=>{f=!0,uni.showLoading({title:"加载中..."}),(0==d.value?h:m)({pageNo:u,pageSize:p,_t:(new Date).getTime(),processDefinitionName:s}).then((e=>{var t;if(e.success){if(!e.result.records.length)return Ve("没有更多了~");g.value=[...g.value,...(null==(t=null==e?void 0:e.result)?void 0:t.records)||[]],f=!1}})).catch((e=>{t("log","at pages/task/index.vue:84",e)}))};r((()=>{f||(u++,y())})),l((()=>{u=1,p=10,f=!1,g.value=[],y(),uni.stopPullDownRefresh()}));const v=e=>{Ce(e,(()=>{uni.navigateTo({url:e})}))};return(t,a)=>(e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass({gray:1==e.unref(n).isgray})},[e.createElementVNode("view",{class:"nav"},[e.createElementVNode("view",{class:"tab_box f-row aic jca"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,((t,a)=>(e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass({active:a==d.value}),key:a,onClick:e=>(e=>{g.value=[],u=1,p=10,f=!1,d.value=e,y()})(a)},e.toDisplayString(t.text),11,["onClick"])))),128))])]),e.createElementVNode("view",{class:"tasklist"},[e.createVNode(ze,{onJump:v,taskArr:g.value,currentIndex:d.value},null,8,["taskArr","currentIndex"])])],2))}},[["__scopeId","data-v-965734c1"]]);class qe{constructor(e,t){this.options=e,this.animation=uni.createAnimation({...e}),this.currentStepAnimates={},this.next=0,this.$=t}_nvuePushAnimates(e,t){let a=this.currentStepAnimates[this.next],n={};if(n=a||{styles:{},config:{}},Je.includes(e)){n.styles.transform||(n.styles.transform="");let a="";"rotate"===e&&(a="deg"),n.styles.transform+=`${e}(${t+a}) `}else n.styles[e]=`${t}`;this.currentStepAnimates[this.next]=n}_animateRun(e={},t={}){let a=this.$.$refs.ani.ref;if(a)return new Promise(((n,i)=>{nvueAnimation.transition(a,{styles:e,...t},(e=>{n()}))}))}_nvueNextAnimate(e,t=0,a){let n=e[t];if(n){let{styles:i,config:s}=n;this._animateRun(i,s).then((()=>{t+=1,this._nvueNextAnimate(e,t,a)}))}else this.currentStepAnimates={},"function"==typeof a&&a(),this.isEnd=!0}step(e={}){return this.animation.step(e),this}run(e){this.$.animationData=this.animation.export(),this.$.timer=setTimeout((()=>{"function"==typeof e&&e()}),this.$.durationTime)}}const Je=["matrix","matrix3d","rotate","rotate3d","rotateX","rotateY","rotateZ","scale","scale3d","scaleX","scaleY","scaleZ","skew","skewX","skewY","translate","translate3d","translateX","translateY","translateZ"];function We(e,t){if(t)return clearTimeout(t.timer),new qe(e,t)}Je.concat(["opacity","backgroundColor"],["width","height","left","right","top","bottom"]).forEach((e=>{qe.prototype[e]=function(...t){return this.animation[e](...t),this}}));const Ye=q({name:"uniTransition",emits:["click","change"],props:{show:{type:Boolean,default:!1},modeClass:{type:[Array,String],default:()=>"fade"},duration:{type:Number,default:300},styles:{type:Object,default:()=>({})},customClass:{type:String,default:""},onceRender:{type:Boolean,default:!1}},data:()=>({isShow:!1,transform:"",opacity:1,animationData:{},durationTime:300,config:{}}),watch:{show:{handler(e){e?this.open():this.isShow&&this.close()},immediate:!0}},computed:{stylesObject(){let e={...this.styles,"transition-duration":this.duration/1e3+"s"},t="";for(let a in e){t+=this.toLine(a)+":"+e[a]+";"}return t},transformStyles(){return"transform:"+this.transform+";opacity:"+this.opacity+";"+this.stylesObject}},created(){this.config={duration:this.duration,timingFunction:"ease",transformOrigin:"50% 50%",delay:0},this.durationTime=this.duration},methods:{init(e={}){e.duration&&(this.durationTime=e.duration),this.animation=We(Object.assign(this.config,e),this)},onClick(){this.$emit("click",{detail:this.isShow})},step(e,a={}){if(this.animation){for(let a in e)try{"object"==typeof e[a]?this.animation[a](...e[a]):this.animation[a](e[a])}catch(pa){t("error","at uni_modules/uni-transition/components/uni-transition/uni-transition.vue:148",`方法 ${a} 不存在`)}return this.animation.step(a),this}},run(e){this.animation&&this.animation.run(e)},open(){clearTimeout(this.timer),this.transform="",this.isShow=!0;let{opacity:e,transform:t}=this.styleInit(!1);void 0!==e&&(this.opacity=e),this.transform=t,this.$nextTick((()=>{this.timer=setTimeout((()=>{this.animation=We(this.config,this),this.tranfromInit(!1).step(),this.animation.run(),this.$emit("change",{detail:this.isShow})}),20)}))},close(e){this.animation&&this.tranfromInit(!0).step().run((()=>{this.isShow=!1,this.animationData=null,this.animation=null;let{opacity:e,transform:t}=this.styleInit(!1);this.opacity=e||1,this.transform=t,this.$emit("change",{detail:this.isShow})}))},styleInit(e){let t={transform:""},a=(e,a)=>{"fade"===a?t.opacity=this.animationType(e)[a]:t.transform+=this.animationType(e)[a]+" "};return"string"==typeof this.modeClass?a(e,this.modeClass):this.modeClass.forEach((t=>{a(e,t)})),t},tranfromInit(e){let t=(e,t)=>{let a=null;"fade"===t?a=e?0:1:(a=e?"-100%":"0","zoom-in"===t&&(a=e?.8:1),"zoom-out"===t&&(a=e?1.2:1),"slide-right"===t&&(a=e?"100%":"0"),"slide-bottom"===t&&(a=e?"100%":"0")),this.animation[this.animationMode()[t]](a)};return"string"==typeof this.modeClass?t(e,this.modeClass):this.modeClass.forEach((a=>{t(e,a)})),this.animation},animationType:e=>({fade:e?0:1,"slide-top":`translateY(${e?"0":"-100%"})`,"slide-right":`translateX(${e?"0":"100%"})`,"slide-bottom":`translateY(${e?"0":"100%"})`,"slide-left":`translateX(${e?"0":"-100%"})`,"zoom-in":`scaleX(${e?1:.8}) scaleY(${e?1:.8})`,"zoom-out":`scaleX(${e?1:1.2}) scaleY(${e?1:1.2})`}),animationMode:()=>({fade:"opacity","slide-top":"translateY","slide-right":"translateX","slide-bottom":"translateY","slide-left":"translateX","zoom-in":"scale","zoom-out":"scale"}),toLine:e=>e.replace(/([A-Z])/g,"-$1").toLowerCase()}},[["render",function(t,a,n,i,s,o){return e.withDirectives((e.openBlock(),e.createElementBlock("view",{ref:"ani",animation:s.animationData,class:e.normalizeClass(n.customClass),style:e.normalizeStyle(o.transformStyles),onClick:a[0]||(a[0]=(...e)=>o.onClick&&o.onClick(...e))},[e.renderSlot(t.$slots,"default")],14,["animation"])),[[e.vShow,s.isShow]])}]]),Ke={name:"uniPopup",components:{},emits:["change","maskClick"],props:{animation:{type:Boolean,default:!0},type:{type:String,default:"center"},isMaskClick:{type:Boolean,default:null},maskClick:{type:Boolean,default:null},backgroundColor:{type:String,default:"none"},safeArea:{type:Boolean,default:!0},maskBackgroundColor:{type:String,default:"rgba(0, 0, 0, 0.4)"},borderRadius:{type:String}},watch:{type:{handler:function(e){this.config[e]&&this[this.config[e]](!0)},immediate:!0},isDesktop:{handler:function(e){this.config[e]&&this[this.config[this.type]](!0)},immediate:!0},maskClick:{handler:function(e){this.mkclick=e},immediate:!0},isMaskClick:{handler:function(e){this.mkclick=e},immediate:!0},showPopup(e){}},data(){return{duration:300,ani:[],showPopup:!1,showTrans:!1,popupWidth:0,popupHeight:0,config:{top:"top",bottom:"bottom",center:"center",left:"left",right:"right",message:"top",dialog:"center",share:"bottom"},maskClass:{position:"fixed",bottom:0,top:0,left:0,right:0,backgroundColor:"rgba(0, 0, 0, 0.4)"},transClass:{backgroundColor:"transparent",borderRadius:this.borderRadius||"0",position:"fixed",left:0,right:0},maskShow:!0,mkclick:!0,popupstyle:"top"}},computed:{getStyles(){let e={backgroundColor:this.bg};return this.borderRadius,e=Object.assign(e,{borderRadius:this.borderRadius}),e},isDesktop(){return this.popupWidth>=500&&this.popupHeight>=500},bg(){return""===this.backgroundColor||"none"===this.backgroundColor?"transparent":this.backgroundColor}},mounted(){(()=>{const{windowWidth:e,windowHeight:t,windowTop:a,safeArea:n,screenHeight:i,safeAreaInsets:s}=uni.getSystemInfoSync();this.popupWidth=e,this.popupHeight=t+(a||0),n&&this.safeArea?this.safeAreaInsets=s.bottom:this.safeAreaInsets=0})()},unmounted(){this.setH5Visible()},activated(){this.setH5Visible(!this.showPopup)},deactivated(){this.setH5Visible(!0)},created(){null===this.isMaskClick&&null===this.maskClick?this.mkclick=!0:this.mkclick=null!==this.isMaskClick?this.isMaskClick:this.maskClick,this.animation?this.duration=300:this.duration=0,this.messageChild=null,this.clearPropagation=!1,this.maskClass.backgroundColor=this.maskBackgroundColor},methods:{setH5Visible(e=!0){},closeMask(){this.maskShow=!1},disableMask(){this.mkclick=!1},clear(e){e.stopPropagation(),this.clearPropagation=!0},open(e){if(this.showPopup)return;e&&-1!==["top","center","bottom","left","right","message","dialog","share"].indexOf(e)||(e=this.type),this.config[e]?(this[this.config[e]](),this.$emit("change",{show:!0,type:e})):t("error","at uni_modules/uni-popup/components/uni-popup/uni-popup.vue:298","缺少类型:",e)},close(e){this.showTrans=!1,this.$emit("change",{show:!1,type:this.type}),clearTimeout(this.timer),this.timer=setTimeout((()=>{this.showPopup=!1}),300)},touchstart(){this.clearPropagation=!1},onTap(){this.clearPropagation?this.clearPropagation=!1:(this.$emit("maskClick"),this.mkclick&&this.close())},top(e){this.popupstyle=this.isDesktop?"fixforpc-top":"top",this.ani=["slide-top"],this.transClass={position:"fixed",left:0,right:0,backgroundColor:this.bg,borderRadius:this.borderRadius||"0"},e||(this.showPopup=!0,this.showTrans=!0,this.$nextTick((()=>{this.messageChild&&"message"===this.type&&this.messageChild.timerClose()})))},bottom(e){this.popupstyle="bottom",this.ani=["slide-bottom"],this.transClass={position:"fixed",left:0,right:0,bottom:0,paddingBottom:this.safeAreaInsets+"px",backgroundColor:this.bg,borderRadius:this.borderRadius||"0"},e||(this.showPopup=!0,this.showTrans=!0)},center(e){this.popupstyle="center",this.ani=["zoom-out","fade"],this.transClass={position:"fixed",display:"flex",flexDirection:"column",bottom:0,left:0,right:0,top:0,justifyContent:"center",alignItems:"center",borderRadius:this.borderRadius||"0"},e||(this.showPopup=!0,this.showTrans=!0)},left(e){this.popupstyle="left",this.ani=["slide-left"],this.transClass={position:"fixed",left:0,bottom:0,top:0,backgroundColor:this.bg,borderRadius:this.borderRadius||"0",display:"flex",flexDirection:"column"},e||(this.showPopup=!0,this.showTrans=!0)},right(e){this.popupstyle="right",this.ani=["slide-right"],this.transClass={position:"fixed",bottom:0,right:0,top:0,backgroundColor:this.bg,borderRadius:this.borderRadius||"0",display:"flex",flexDirection:"column"},e||(this.showPopup=!0,this.showTrans=!0)}}};const Ge=q(Ke,[["render",function(t,n,i,s,o,r){const l=a(e.resolveDynamicComponent("uni-transition"),Ye);return o.showPopup?(e.openBlock(),e.createElementBlock("view",{key:0,class:e.normalizeClass(["uni-popup",[o.popupstyle,r.isDesktop?"fixforpc-z-index":""]])},[e.createElementVNode("view",{onTouchstart:n[1]||(n[1]=(...e)=>r.touchstart&&r.touchstart(...e))},[o.maskShow?(e.openBlock(),e.createBlock(l,{key:"1",name:"mask","mode-class":"fade",styles:o.maskClass,duration:o.duration,show:o.showTrans,onClick:r.onTap},null,8,["styles","duration","show","onClick"])):e.createCommentVNode("",!0),e.createVNode(l,{key:"2","mode-class":o.ani,name:"content",styles:o.transClass,duration:o.duration,show:o.showTrans,onClick:r.onTap},{default:e.withCtx((()=>[e.createElementVNode("view",{class:e.normalizeClass(["uni-popup__wrapper",[o.popupstyle]]),style:e.normalizeStyle(r.getStyles),onClick:n[0]||(n[0]=(...e)=>r.clear&&r.clear(...e))},[e.renderSlot(t.$slots,"default",{},void 0,!0)],6)])),_:3},8,["mode-class","styles","duration","show","onClick"])],32)],2)):e.createCommentVNode("",!0)}],["__scopeId","data-v-9c09fb6f"]]),Qe={__name:"handle",setup(t){const n=H(),{proxy:i}=e.getCurrentInstance(),s=e.ref(null),r=e.ref(""),l=e.ref(null),c=e=>{l.value=e,s.value.open(),r.value=2==e?"同意":""},u=()=>{s.value.close()},h=e.ref(null),m=e.ref(""),p=e=>{var t;(t={taskId:e},d({url:"/process/extActProcessNode/getProcessNodeInfo",method:"get",data:t})).then((e=>{e.success&&(m.value=e.result.dataId,h.value=e.result.formUrlMobile)}))},f=()=>{uni.navigateBack()},g=e.ref(!1);let y=null;const v=()=>{let e={};if(1==l.value){if(null==b.value)return i.$toast("请选择驳回节点");e.processModel=3,e.rejectModelNode=k.value[b.value].TASK_DEF_KEY_,w(e)}else g.value?Ce("/pages/userlist/index",(()=>{u(),uni.navigateTo({url:`/pages/userlist/index?id=${N.value.id}&isradio=1&nextnode=${JSON.stringify(y)}&reason=${r.value}`})})):(e.processModel=1,w(e))},w=e=>{_({taskId:N.value.id,reason:r.value,...e}).then((e=>{e.success&&(i.$toast(e.message),setTimeout((()=>{uni.navigateBack()}),2e3))}))},k=e.ref([]),b=e.ref(null),E=e=>{b.value=e.detail.value},S=e=>{var t;(t={taskId:N.value.id},d({url:"/act/task/getProcessTaskTransInfo",method:"get",data:t})).then((e=>{e.success&&(k.value=e.result.histListNode,y=e.result.transitionList)}))},x=e=>{var t;(t={procInstId:e},d({url:"/process/extActProcessNode/getHisProcessNodeInfo",method:"get",data:t})).then((e=>{e.success&&(m.value=e.result.dataId,h.value=e.result.formUrlMobile)}))},N=e.ref(null);let V=null;return o((e=>{if(N.value=JSON.parse(e.info),V=e.type,1==V||2==V)return x(N.value.processInstanceId);p(N.value.id),S()})),(t,i)=>{const o=a(e.resolveDynamicComponent("uni-icons"),Y),d=a(e.resolveDynamicComponent("uni-popup"),Ge);return e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass(["content",{gray:1==e.unref(n).isgray}])},[e.createVNode(xe,null,{default:e.withCtx((()=>[e.createElementVNode("view",{class:"f-row aic box"},[e.createElementVNode("view",{class:"back",onClick:f},[e.createVNode(o,{type:"left",size:"20",color:"#fff"})]),e.createElementVNode("view",{class:"avatar"},[e.createElementVNode("image",{src:e.unref(Re)(e.unref(n).userinfo.avatar),mode:""},null,8,["src"])]),e.createElementVNode("view",{class:"name"},e.toDisplayString(N.value.processApplyUserName)+"的"+e.toDisplayString(N.value.processDefinitionName),1),0==e.unref(V)?(e.openBlock(),e.createElementBlock("view",{key:0,class:"status"}," 待审批 ")):e.createCommentVNode("",!0),1==e.unref(V)?(e.openBlock(),e.createElementBlock("view",{key:1,class:"status",style:{"background-color":"#7AC756"}}," 已处理 ")):e.createCommentVNode("",!0)])])),_:1}),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(h.value),{dataId:m.value},null,8,["dataId"])),0==e.unref(V)?(e.openBlock(),e.createElementBlock("view",{key:0,class:"btn f-row aic jcb"},[e.createElementVNode("view",{class:"refuse",onClick:i[0]||(i[0]=e=>c(1))}," 拒绝 "),e.createElementVNode("view",{class:"agree",onClick:i[1]||(i[1]=e=>c(2))}," 同意 ")])):e.createCommentVNode("",!0),e.createVNode(d,{ref_key:"popup",ref:s,type:"center"},{default:e.withCtx((()=>[e.createElementVNode("view",{class:"popup"},[e.createElementVNode("view",{class:"title"}," 审批意见 "),e.createElementVNode("view",{class:"f-col aic"},[e.createElementVNode("view",{class:"input f-col"},[e.withDirectives(e.createElementVNode("textarea",{"onUpdate:modelValue":i[2]||(i[2]=e=>r.value=e),name:"",id:"",maxlength:"200",placeholder:"请输入"},null,512),[[e.vModelText,r.value]]),e.createElementVNode("view",{class:""},e.toDisplayString(r.value.length)+"/200 ",1)])]),2==l.value?(e.openBlock(),e.createElementBlock("view",{key:0,class:"agree_operate f-row aic",onClick:i[3]||(i[3]=e=>g.value=!g.value)},[g.value?(e.openBlock(),e.createElementBlock("image",{key:0,src:"/static/login/checked.png",mode:""})):(e.openBlock(),e.createElementBlock("image",{key:1,src:"/static/login/nocheck.png",mode:""})),e.createElementVNode("view",{class:""}," 指定下一步操作人 ")])):(e.openBlock(),e.createElementBlock("view",{key:1,class:""},[e.createElementVNode("picker",{value:b.value,range:k.value,"range-key":"NAME_",onChange:E},[e.createElementVNode("view",{class:"node"},e.toDisplayString(null!=b.value?k.value[b.value].NAME_:"请选择驳回节点"),1)],40,["value","range"])])),e.createElementVNode("view",{class:"popbtn f-row aic"},[e.createElementVNode("view",{class:"cancel",onClick:u}," 取消 "),e.createElementVNode("view",{class:"confirm",onClick:v}," 确定 ")])])])),_:1},512)],2)}}},Ze=q(Qe,[["__scopeId","data-v-12da9556"]]),Xe=q({__name:"message_list",setup(t){const a=H();return(t,n)=>(e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass({gray:1==e.unref(a).isgray})},[e.createElementVNode("view",{class:"list"},[e.createElementVNode("view",{class:"item f-row aic"},[e.createElementVNode("view",{class:"f-row aic"},[e.createElementVNode("image",{src:"/static/system.png",mode:""})]),e.createElementVNode("view",{class:"name_info"},[e.createElementVNode("view",{class:"name_time f-row aic jcb"},[e.createElementVNode("view",{class:"name"}," 系统通知 "),e.createElementVNode("view",{class:"time"}," 1分钟前 ")]),e.createElementVNode("view",{class:"info"}," 关于年假通知关于年假通知关于年假通知关于年假通知关于年假通知关于年假通知关于年假通知 ")])]),(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(5,((t,a)=>e.createElementVNode("view",{class:"item f-row aic",key:a,onClick:n[0]||(n[0]=e=>{var t;Ce(t="/pages/talk/conversation",(()=>{uni.navigateTo({url:t})}))})},[e.createElementVNode("view",{class:"f-row aic"},[e.createElementVNode("image",{src:"",mode:""})]),e.createElementVNode("view",{class:"name_info"},[e.createElementVNode("view",{class:"name_time f-row aic jcb"},[e.createElementVNode("view",{class:"name"}," 系统通知 "),e.createElementVNode("view",{class:"time"}," 1分钟前 ")]),e.createElementVNode("view",{class:"info"}," 关于年假通知 ")])]))),64))])],2))}},[["__scopeId","data-v-f59fee84"]]),et=q({__name:"conversation",setup(t){const a=H();return(t,n)=>(e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass(["content",{gray:1==e.unref(a).isgray}])},[e.createElementVNode("view",{class:"list"},[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(14,((t,a)=>e.createElementVNode("view",{class:"item",key:a},[e.withDirectives(e.createElementVNode("view",{class:"left f-row aic"},[e.createElementVNode("view",{class:"avatar f-row aic"},[e.createElementVNode("image",{src:"/static/system.png",mode:""})]),e.createElementVNode("view",{class:"content"}," 你今天在干嘛呢?为什么这么久不回我信息,真的生气了 ")],512),[[e.vShow,a%2==0]]),e.withDirectives(e.createElementVNode("view",{class:"right f-row aic"},[e.createElementVNode("view",{class:"content"}," 请问如何退款? "),e.createElementVNode("view",{class:"avatar f-row aic"},[e.createElementVNode("image",{src:"",mode:""})])],512),[[e.vShow,a%2!=0]])]))),64))]),e.createElementVNode("view",{class:"input_box f-row aic jce"},[e.createElementVNode("input",{type:"text",placeholder:"请输入内容......","placeholder-style":"font-size: 28rpx;color: #999999;"}),e.createElementVNode("view",{class:"send"}," 发送 ")])],2))}},[["__scopeId","data-v-00b966b0"]]),tt=q({__name:"system",setup(t){const a=H();return(t,n)=>(e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass(["content",{gray:1==e.unref(a).isgray}])},[e.createElementVNode("view",{class:"list"},[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(3,((t,a)=>e.createElementVNode("view",{class:"item",key:a},[e.createElementVNode("view",{class:"left f-row aic"},[e.createElementVNode("view",{class:"avatar f-row aic"},[e.createElementVNode("image",{src:"/static/system.png",mode:""})]),e.createElementVNode("view",{class:"content"}," 你今天在干嘛呢?为什么这么久不回我信息,真的生气了 ")])]))),64))])],2))}},[["__scopeId","data-v-2f0571e9"]]),at=q({__name:"index",setup(n){e.useCssVars((e=>({e9493420:e.cusnavbarheight})));const i=H(),s=e.ref(!0),c=e.ref(""),d=e.ref([]);let u=1,h=!1;const m=(e,t,a,n)=>(e.map((e=>{e._title=e[t],e._time=e[a],e._depart=e[n]})),e),p=()=>{if(c.value.trim())return"*"+c.value+"*"},k=()=>{u=1,h=!1,d.value=[],S()};e.watch(c,((e,t)=>{e.trim()||S()}));const b=()=>{uni.navigateBack()},_=e.ref(null);let E=null;o((e=>{_.value=e.id,E=e.zhiduid,S()}));const S=()=>{0==_.value?(h=!0,f({pageNo:u,pageSize:15,fwbt:p()}).then((e=>{e.success&&(d.value=[...d.value,...m(e.result.records,"fwbt","fwtime",null)]),h=!1})).catch((e=>{t("log","at pages/document/index.vue:89","err",e)}))):1==_.value?(h=!0,g({pageNo:u,pageSize:15,neirong:p()}).then((e=>{e.success&&(d.value=[...d.value,...m(e.result.records,"neirong","fbdw","createTime")]),h=!1})).catch((e=>{t("log","at pages/document/index.vue:142","err",e)}))):2==_.value?(h=!0,(0==E?w:v)({pageNo:u,pageSize:15,zdmc:p()}).then((e=>{if(e.success){let t=0==E?"zbbm_dictText":"sbbm";d.value=[...d.value,...m(e.result.records,"zdmc",t,null)]}h=!1})).catch((e=>{t("log","at pages/document/index.vue:108","err",e)}))):3==_.value&&(h=!0,y({pageNo:u,pageSize:15,flfgmc:p()}).then((e=>{e.success&&(d.value=[...d.value,...m(e.result.records,"flfgmc","ssbm",null)]),h=!1})).catch((e=>{t("log","at pages/document/index.vue:125","err",e)})))};return l((()=>{u=1,h=!1,d.value=[],S(),uni.stopPullDownRefresh()})),r((()=>{h||(u++,S())})),(t,n)=>{const o=a(e.resolveDynamicComponent("uni-icons"),Y);return e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass(["content",{gray:1==e.unref(i).isgray}])},[e.createVNode(xe,null,{default:e.withCtx((()=>[e.createElementVNode("view",{class:"nav_box f-row aic jcb"},[e.createElementVNode("view",{class:"back f-row aic",onClick:b},[e.createVNode(o,{type:"left",size:"20",color:"#fff"})]),e.createElementVNode("view",{class:"search f-row aic"},[e.withDirectives(e.createElementVNode("input",{type:"text","onUpdate:modelValue":n[0]||(n[0]=e=>c.value=e),onConfirm:k,onBlur:n[1]||(n[1]=e=>s.value=!c.value),onFocus:n[2]||(n[2]=e=>s.value=!1)},null,544),[[e.vModelText,c.value]]),s.value?(e.openBlock(),e.createElementBlock("view",{key:0,class:"f-row aic"},[e.createElementVNode("image",{src:"/static/search.png",mode:""}),e.createElementVNode("text",null,"搜索")])):e.createCommentVNode("",!0)])])])),_:1}),e.createElementVNode("view",{class:"list"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value,((t,a)=>(e.openBlock(),e.createElementBlock("view",{class:"item",key:a,onClick:e=>((e,t)=>{if(3==_.value)return Me(t.mingcheng);Ce(e,(()=>{uni.navigateTo({url:e})}))})(`/pages/document/detail?data=${JSON.stringify(t)}&id=${_.value}`,t)},[e.createElementVNode("view",{class:"title"},e.toDisplayString(t._title),1),e.createElementVNode("view",{class:"time_box f-row aic"},[e.createElementVNode("view",{class:"time"},e.toDisplayString(t._time),1),t._depart?(e.openBlock(),e.createElementBlock("view",{key:0,class:"look f-row aic"},e.toDisplayString(t._depart),1)):e.createCommentVNode("",!0)])],8,["onClick"])))),128))])],2)}}},[["__scopeId","data-v-18757efe"]]),nt=q({__name:"detail",setup(t){const a=H(),n=e.ref({});return o((e=>{n.value=JSON.parse(e.data),0==e.id?n.value.pdf=n.value.wjbt:2==e.id?n.value.jdwj?n.value.pdf=n.value.jdwj+","+n.value.sszd:n.value.pdf=n.value.sszd:3==e.id&&(n.value.pdf=n.value.mingcheng)})),(t,i)=>{var s,o;return e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass(["content",{gray:1==e.unref(a).isgray}])},[e.createElementVNode("view",{class:"title_box"},[e.createElementVNode("view",{class:"title"},e.toDisplayString(n.value._title),1),e.createElementVNode("view",{class:"time"},e.toDisplayString(n.value._time),1)]),e.createElementVNode("view",{class:"document f-row"},[e.createElementVNode("text",{class:""}," 附件: "),e.createElementVNode("view",{class:"f-col"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(null==(o=null==(s=n.value)?void 0:s.pdf)?void 0:o.split(","),((t,a)=>(e.openBlock(),e.createElementBlock("view",{class:"",style:{padding:"5rpx 0"},onClick:a=>e.unref(Me)(t)},e.toDisplayString(t),9,["onClick"])))),256))])])],2)}}},[["__scopeId","data-v-b79b801f"]]),it=q({__name:"index",setup(t){const n=H(),i=e.ref(!0),s=e.ref("");o((()=>{}));const r=()=>{uni.navigateBack()};return(t,o)=>{const l=a(e.resolveDynamicComponent("uni-icons"),Y);return e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass({gray:1==e.unref(n).isgray})},[e.createVNode(xe,null,{default:e.withCtx((()=>[e.createElementVNode("view",{class:"nav_box f-row aic jcb"},[e.createElementVNode("view",{class:"back f-row aic",onClick:r},[e.createVNode(l,{type:"left",size:"20",color:"#fff"})]),e.createElementVNode("view",{class:"search f-row aic"},[e.withDirectives(e.createElementVNode("input",{type:"text","onUpdate:modelValue":o[0]||(o[0]=e=>s.value=e),onConfirm:o[1]||(o[1]=(...e)=>t.search&&t.search(...e)),onBlur:o[2]||(o[2]=e=>i.value=!s.value),onFocus:o[3]||(o[3]=e=>i.value=!1)},null,544),[[e.vModelText,s.value]]),i.value?(e.openBlock(),e.createElementBlock("view",{key:0,class:"f-row aic"},[e.createElementVNode("image",{src:"/static/search.png",mode:""}),e.createElementVNode("text",null,"搜索")])):e.createCommentVNode("",!0)])])])),_:1}),e.createElementVNode("view",{class:"list_box"},[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(3,((t,a)=>e.createElementVNode("view",{class:"list",key:a,onClick:o[4]||(o[4]=e=>{var t;Ce(t="/pages/meeting/detail?id=1",(()=>{uni.navigateTo({url:t})}))})},[e.createElementVNode("view",{class:"title f-row aic jcb"},[e.createElementVNode("view",{class:""}," 年度部门讨论会议 "),e.createElementVNode("text",null,"1分钟前")]),e.createElementVNode("view",{class:"info"},[e.createElementVNode("view",{class:"f-row aic jcb"},[e.createElementVNode("view",{class:""}," 发起人: "),e.createElementVNode("text",null,"周如意")]),e.createElementVNode("view",{class:"f-row aic jcb"},[e.createElementVNode("view",{class:""}," 会议日期: "),e.createElementVNode("text",null,"周如意")]),e.createElementVNode("view",{class:"f-row aic jcb"},[e.createElementVNode("view",{class:""}," 会议地点: "),e.createElementVNode("text",null,"周如意")]),e.createElementVNode("view",{class:"f-row aic jcb"},[e.createElementVNode("view",{class:""}," 会议内容: "),e.createElementVNode("text",null,"周如意")])]),e.createElementVNode("view",{class:"handled f-row"},[e.createElementVNode("view",{class:"refused"}," 已拒绝 ")])]))),64))])],2)}}},[["__scopeId","data-v-c839cafa"]]),st=q({__name:"detail",setup(a){const n=H();o((()=>{i()}));const i=()=>{var e;(e={mainid:1},d({url:"/zhgl_hygl/zhglHyglHyyc/listbymainid",method:"get",data:e})).then((e=>{e.success})).catch((e=>{t("log","at pages/meeting/detail.vue:94",e)}))};return(t,a)=>(e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass(["content",{gray:1==e.unref(n).isgray}])},[e.createElementVNode("view",{class:"list_box"},[e.createElementVNode("view",{class:"list"},[e.createElementVNode("view",{class:"title f-row aic jcb"},[e.createElementVNode("view",{class:""}," 年度部门讨论会议 "),e.createElementVNode("text",null,"1分钟前")]),e.createElementVNode("view",{class:"info"},[e.createElementVNode("view",{class:"f-row aic jcb"},[e.createElementVNode("view",{class:""}," 会议状态: "),e.createElementVNode("text",null,"待开始/已开始/已结束")]),e.createElementVNode("view",{class:"f-row aic jcb"},[e.createElementVNode("view",{class:""}," 发起人: "),e.createElementVNode("text",null,"周如意")]),e.createElementVNode("view",{class:"f-row aic jcb"},[e.createElementVNode("view",{class:""}," 会议日期: "),e.createElementVNode("text",null,"周如意")]),e.createElementVNode("view",{class:"f-row aic jcb"},[e.createElementVNode("view",{class:""}," 会议地点: "),e.createElementVNode("text",null,"周如意")]),e.createElementVNode("view",{class:"f-row aic jcb"},[e.createElementVNode("view",{class:""}," 会议内容: "),e.createElementVNode("text",null,"周如意")]),e.createElementVNode("view",{class:""},[e.createElementVNode("view",{class:""}," 参与人员: "),e.createElementVNode("view",{class:"person f-row aic"},[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(7,((t,a)=>e.createElementVNode("view",{class:"item f-col aic",key:a},[e.createElementVNode("image",{src:"",mode:""}),e.createElementVNode("view",{class:"name"}," 周如意 ")]))),64))])])])])]),e.createElementVNode("view",{class:"btn f-row aic jcb"},[e.createElementVNode("view",{class:"refuse"}," 拒绝 "),e.createElementVNode("view",{class:"agree",onClick:a[0]||(a[0]=(...e)=>t.openpop&&t.openpop(...e))}," 同意 ")])],2))}},[["__scopeId","data-v-7441efc4"]]),ot={pages:[{path:"pages/login/login",style:{navigationStyle:"custom"}},{path:"pages/tab/index",style:{navigationStyle:"custom",enablePullDownRefresh:!0}},{path:"pages/task/todotask",style:{navigationStyle:"custom",enablePullDownRefresh:!0}},{path:"pages/tab/office",style:{navigationStyle:"custom"}},{path:"pages/tab/my",style:{navigationStyle:"custom"}},{path:"pages/task/index",style:{enablePullDownRefresh:!0,"app-plus":{titleNView:{titleText:"我的任务",titleColor:"#fff"}}}},{path:"pages/task/handle",style:{navigationStyle:"custom"}},{path:"pages/talk/message_list",style:{navigationBarTitleText:"消息",enablePullDownRefresh:!0,navigationBarTextStyle:"white"}},{path:"pages/talk/conversation",style:{navigationBarTitleText:"昵称",enablePullDownRefresh:!0,navigationBarTextStyle:"white"}},{path:"pages/talk/system",style:{navigationBarTitleText:"系统通知",enablePullDownRefresh:!0,navigationBarTextStyle:"white"}},{path:"pages/document/index",style:{navigationStyle:"custom",enablePullDownRefresh:!0}},{path:"pages/document/detail",style:{navigationBarTitleText:"详情",navigationBarTextStyle:"white"}},{path:"pages/meeting/index",style:{navigationStyle:"custom"}},{path:"pages/meeting/detail",style:{navigationBarTitleText:"详情",enablePullDownRefresh:!1,navigationBarTextStyle:"white"}},{path:"pages/leave/application",style:{navigationBarTitleText:"请假申请",enablePullDownRefresh:!1,navigationBarTextStyle:"white"}},{path:"pages/checkin/index",style:{navigationStyle:"custom"}},{path:"pages/useredit/useredit",style:{navigationBarTitleText:"资料编辑",navigationBarTextStyle:"white"}},{path:"pages/useredit/address",style:{navigationBarTitleText:"地址",enablePullDownRefresh:!1,navigationBarTextStyle:"white"}},{path:"pages/useredit/add_address",style:{navigationBarTitleText:"添加地址",enablePullDownRefresh:!1,navigationBarTextStyle:"white"}},{path:"pages/useredit/addressbook",style:{navigationBarTitleText:"通讯录",enablePullDownRefresh:!1,navigationBarTextStyle:"white"}},{path:"pages/safe/manage",style:{navigationStyle:"custom"}},{path:"pages/product/index",style:{navigationBarTitleText:"生产数据",enablePullDownRefresh:!1,navigationBarTextStyle:"white"}},{path:"pages/userlist/index",style:{navigationBarTitleText:"",navigationBarTextStyle:"white"}},{path:"pages/safe/detail",style:{navigationStyle:"custom"}},{path:"pages/zhiban/index",style:{navigationBarTitleText:"值班信息",navigationBarTextStyle:"white"}},{path:"pages/task/self",style:{navigationBarTitleText:"本人发起",navigationBarTextStyle:"white"}}],tabBar:{color:"#333333",selectedColor:"#01508B",borderStyle:"black",backgroundColor:"#FFFFFF",list:[{text:"首页",pagePath:"pages/tab/index",iconPath:"static/tab/index1.png",selectedIconPath:"static/tab/index2.png"},{text:"任务",pagePath:"pages/task/todotask",iconPath:"static/tab/office1.png",selectedIconPath:"static/tab/office2.png"},{text:"办公",pagePath:"pages/tab/office",iconPath:"static/tab/product1.png",selectedIconPath:"static/tab/product2.png"},{text:"我的",pagePath:"pages/tab/my",iconPath:"static/tab/user1.png",selectedIconPath:"static/tab/user2.png"}]},globalStyle:{"app-plus":{titleNView:{backgroundImage:"linear-gradient(to left , #256FBC, #044D87)"}}},uniIdRouter:{}};function rt(e,t,a){return e(a={path:t,exports:{},require:function(e,t){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==t&&a.path)}},a.exports),a.exports}var lt=rt((function(e,t){var a;e.exports=(a=a||function(e,t){var a=Object.create||function(){function e(){}return function(t){var a;return e.prototype=t,a=new e,e.prototype=null,a}}(),n={},i=n.lib={},s=i.Base={extend:function(e){var t=a(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}},o=i.WordArray=s.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=null!=t?t:4*e.length},toString:function(e){return(e||l).stringify(this)},concat:function(e){var t=this.words,a=e.words,n=this.sigBytes,i=e.sigBytes;if(this.clamp(),n%4)for(var s=0;s>>2]>>>24-s%4*8&255;t[n+s>>>2]|=o<<24-(n+s)%4*8}else for(s=0;s>>2]=a[s>>>2];return this.sigBytes+=i,this},clamp:function(){var t=this.words,a=this.sigBytes;t[a>>>2]&=4294967295<<32-a%4*8,t.length=e.ceil(a/4)},clone:function(){var e=s.clone.call(this);return e.words=this.words.slice(0),e},random:function(t){for(var a,n=[],i=function(t){var a=987654321,n=4294967295;return function(){var i=((a=36969*(65535&a)+(a>>16)&n)<<16)+(t=18e3*(65535&t)+(t>>16)&n)&n;return i/=4294967296,(i+=.5)*(e.random()>.5?1:-1)}},s=0;s>>2]>>>24-i%4*8&255;n.push((s>>>4).toString(16)),n.push((15&s).toString(16))}return n.join("")},parse:function(e){for(var t=e.length,a=[],n=0;n>>3]|=parseInt(e.substr(n,2),16)<<24-n%8*4;return new o.init(a,t/2)}},c=r.Latin1={stringify:function(e){for(var t=e.words,a=e.sigBytes,n=[],i=0;i>>2]>>>24-i%4*8&255;n.push(String.fromCharCode(s))}return n.join("")},parse:function(e){for(var t=e.length,a=[],n=0;n>>2]|=(255&e.charCodeAt(n))<<24-n%4*8;return new o.init(a,t)}},d=r.Utf8={stringify:function(e){try{return decodeURIComponent(escape(c.stringify(e)))}catch(t){throw new Error("Malformed UTF-8 data")}},parse:function(e){return c.parse(unescape(encodeURIComponent(e)))}},u=i.BufferedBlockAlgorithm=s.extend({reset:function(){this._data=new o.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=d.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var a=this._data,n=a.words,i=a.sigBytes,s=this.blockSize,r=i/(4*s),l=(r=t?e.ceil(r):e.max((0|r)-this._minBufferSize,0))*s,c=e.min(4*l,i);if(l){for(var d=0;d>>24)|4278255360&(i<<24|i>>>8)}var s=this._hash.words,o=e[t+0],l=e[t+1],m=e[t+2],p=e[t+3],f=e[t+4],g=e[t+5],y=e[t+6],v=e[t+7],w=e[t+8],k=e[t+9],b=e[t+10],_=e[t+11],E=e[t+12],S=e[t+13],x=e[t+14],N=e[t+15],V=s[0],C=s[1],T=s[2],D=s[3];V=c(V,C,T,D,o,7,r[0]),D=c(D,V,C,T,l,12,r[1]),T=c(T,D,V,C,m,17,r[2]),C=c(C,T,D,V,p,22,r[3]),V=c(V,C,T,D,f,7,r[4]),D=c(D,V,C,T,g,12,r[5]),T=c(T,D,V,C,y,17,r[6]),C=c(C,T,D,V,v,22,r[7]),V=c(V,C,T,D,w,7,r[8]),D=c(D,V,C,T,k,12,r[9]),T=c(T,D,V,C,b,17,r[10]),C=c(C,T,D,V,_,22,r[11]),V=c(V,C,T,D,E,7,r[12]),D=c(D,V,C,T,S,12,r[13]),T=c(T,D,V,C,x,17,r[14]),V=d(V,C=c(C,T,D,V,N,22,r[15]),T,D,l,5,r[16]),D=d(D,V,C,T,y,9,r[17]),T=d(T,D,V,C,_,14,r[18]),C=d(C,T,D,V,o,20,r[19]),V=d(V,C,T,D,g,5,r[20]),D=d(D,V,C,T,b,9,r[21]),T=d(T,D,V,C,N,14,r[22]),C=d(C,T,D,V,f,20,r[23]),V=d(V,C,T,D,k,5,r[24]),D=d(D,V,C,T,x,9,r[25]),T=d(T,D,V,C,p,14,r[26]),C=d(C,T,D,V,w,20,r[27]),V=d(V,C,T,D,S,5,r[28]),D=d(D,V,C,T,m,9,r[29]),T=d(T,D,V,C,v,14,r[30]),V=u(V,C=d(C,T,D,V,E,20,r[31]),T,D,g,4,r[32]),D=u(D,V,C,T,w,11,r[33]),T=u(T,D,V,C,_,16,r[34]),C=u(C,T,D,V,x,23,r[35]),V=u(V,C,T,D,l,4,r[36]),D=u(D,V,C,T,f,11,r[37]),T=u(T,D,V,C,v,16,r[38]),C=u(C,T,D,V,b,23,r[39]),V=u(V,C,T,D,S,4,r[40]),D=u(D,V,C,T,o,11,r[41]),T=u(T,D,V,C,p,16,r[42]),C=u(C,T,D,V,y,23,r[43]),V=u(V,C,T,D,k,4,r[44]),D=u(D,V,C,T,E,11,r[45]),T=u(T,D,V,C,N,16,r[46]),V=h(V,C=u(C,T,D,V,m,23,r[47]),T,D,o,6,r[48]),D=h(D,V,C,T,v,10,r[49]),T=h(T,D,V,C,x,15,r[50]),C=h(C,T,D,V,g,21,r[51]),V=h(V,C,T,D,E,6,r[52]),D=h(D,V,C,T,p,10,r[53]),T=h(T,D,V,C,b,15,r[54]),C=h(C,T,D,V,l,21,r[55]),V=h(V,C,T,D,w,6,r[56]),D=h(D,V,C,T,N,10,r[57]),T=h(T,D,V,C,y,15,r[58]),C=h(C,T,D,V,S,21,r[59]),V=h(V,C,T,D,f,6,r[60]),D=h(D,V,C,T,_,10,r[61]),T=h(T,D,V,C,m,15,r[62]),C=h(C,T,D,V,k,21,r[63]),s[0]=s[0]+V|0,s[1]=s[1]+C|0,s[2]=s[2]+T|0,s[3]=s[3]+D|0},_doFinalize:function(){var t=this._data,a=t.words,n=8*this._nDataBytes,i=8*t.sigBytes;a[i>>>5]|=128<<24-i%32;var s=e.floor(n/4294967296),o=n;a[15+(i+64>>>9<<4)]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),a[14+(i+64>>>9<<4)]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),t.sigBytes=4*(a.length+1),this._process();for(var r=this._hash,l=r.words,c=0;c<4;c++){var d=l[c];l[c]=16711935&(d<<8|d>>>24)|4278255360&(d<<24|d>>>8)}return r},clone:function(){var e=s.clone.call(this);return e._hash=this._hash.clone(),e}});function c(e,t,a,n,i,s,o){var r=e+(t&a|~t&n)+i+o;return(r<>>32-s)+t}function d(e,t,a,n,i,s,o){var r=e+(t&n|a&~n)+i+o;return(r<>>32-s)+t}function u(e,t,a,n,i,s,o){var r=e+(t^a^n)+i+o;return(r<>>32-s)+t}function h(e,t,a,n,i,s,o){var r=e+(a^(t|~n))+i+o;return(r<>>32-s)+t}t.MD5=s._createHelper(l),t.HmacMD5=s._createHmacHelper(l)}(Math),a.MD5)})),rt((function(e,t){var a,n,i;e.exports=(n=(a=ct).lib.Base,i=a.enc.Utf8,void(a.algo.HMAC=n.extend({init:function(e,t){e=this._hasher=new e.init,"string"==typeof t&&(t=i.parse(t));var a=e.blockSize,n=4*a;t.sigBytes>n&&(t=e.finalize(t)),t.clamp();for(var s=this._oKey=t.clone(),o=this._iKey=t.clone(),r=s.words,l=o.words,c=0;c>>2]>>>24-s%4*8&255)<<16|(t[s+1>>>2]>>>24-(s+1)%4*8&255)<<8|t[s+2>>>2]>>>24-(s+2)%4*8&255,r=0;r<4&&s+.75*r>>6*(3-r)&63));var l=n.charAt(64);if(l)for(;i.length%4;)i.push(l);return i.join("")},parse:function(e){var t=e.length,a=this._map,n=this._reverseMap;if(!n){n=this._reverseMap=[];for(var s=0;s>>6-o%4*2;n[s>>>2]|=(r|l)<<24-s%4*8,s++}return i.create(n,s)}(e,t,n)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="},a.enc.Base64)}));const mt="FUNCTION",pt="pending",ft="rejected";function gt(e){return Object.prototype.toString.call(e).slice(8,-1).toLowerCase()}function yt(e){return"object"===gt(e)}function vt(e){return"function"==typeof e}function wt(e){return function(){try{return e.apply(e,arguments)}catch(t){console.error(t)}}}const kt="REJECTED",bt="NOT_PENDING";class _t{constructor({createPromise:e,retryRule:t=kt}={}){this.createPromise=e,this.status=null,this.promise=null,this.retryRule=t}get needRetry(){if(!this.status)return!0;switch(this.retryRule){case kt:return this.status===ft;case bt:return this.status!==pt}}exec(){return this.needRetry?(this.status=pt,this.promise=this.createPromise().then((e=>(this.status="fulfilled",Promise.resolve(e))),(e=>(this.status=ft,Promise.reject(e)))),this.promise):this.promise}}function Et(e){return e&&"string"==typeof e?JSON.parse(e):e}const St=Et([]);Et("");const xt=Et("[]")||[];let Nt="";try{Nt="__UNI__F0AFD30"}catch(pa){}let Vt={};function Ct(e,t={}){var a,n;return a=Vt,n=e,Object.prototype.hasOwnProperty.call(a,n)||(Vt[e]=t),Vt[e]}Vt=uni._globalUniCloudObj?uni._globalUniCloudObj:uni._globalUniCloudObj={};const Tt=["invoke","success","fail","complete"],Dt=Ct("_globalUniCloudInterceptor");function Bt(e,t){Dt[e]||(Dt[e]={}),yt(t)&&Object.keys(t).forEach((a=>{Tt.indexOf(a)>-1&&function(e,t,a){let n=Dt[e][t];n||(n=Dt[e][t]=[]),-1===n.indexOf(a)&&vt(a)&&n.push(a)}(e,a,t[a])}))}function It(e,t){Dt[e]||(Dt[e]={}),yt(t)?Object.keys(t).forEach((a=>{Tt.indexOf(a)>-1&&function(e,t,a){const n=Dt[e][t];if(!n)return;const i=n.indexOf(a);i>-1&&n.splice(i,1)}(e,a,t[a])})):delete Dt[e]}function Pt(e,t){return e&&0!==e.length?e.reduce(((e,a)=>e.then((()=>a(t)))),Promise.resolve()):Promise.resolve()}function At(e,t){return Dt[e]&&Dt[e][t]||[]}function Mt(e){Bt("callObject",e)}const Rt=Ct("_globalUniCloudListener"),Lt="response",Ot="needLogin",Ft="refreshToken",$t="clientdb",jt="cloudfunction",Ut="cloudobject";function zt(e){return Rt[e]||(Rt[e]=[]),Rt[e]}function Ht(e,t){const a=zt(e);a.includes(t)||a.push(t)}function qt(e,t){const a=zt(e),n=a.indexOf(t);-1!==n&&a.splice(n,1)}function Jt(e,t){const a=zt(e);for(let n=0;n{Yt&&e(),function t(){if("function"==typeof getCurrentPages){const t=getCurrentPages();t&&t[0]&&(Yt=!0,e())}Yt||setTimeout((()=>{t()}),30)}()})),Wt)}function Gt(e){const t={};for(const a in e){const n=e[a];vt(n)&&(t[a]=wt(n))}return t}class Qt extends Error{constructor(e){super(e.message),this.errMsg=e.message||e.errMsg||"unknown system error",this.code=this.errCode=e.code||e.errCode||"SYSTEM_ERROR",this.errSubject=this.subject=e.subject||e.errSubject,this.cause=e.cause,this.requestId=e.requestId}toJson(e=0){if(!(e>=10))return e++,{errCode:this.errCode,errMsg:this.errMsg,errSubject:this.errSubject,cause:this.cause&&this.cause.toJson?this.cause.toJson(e):this.cause}}}var Zt={request:e=>uni.request(e),uploadFile:e=>uni.uploadFile(e),setStorageSync:(e,t)=>uni.setStorageSync(e,t),getStorageSync:e=>uni.getStorageSync(e),removeStorageSync:e=>uni.removeStorageSync(e),clearStorageSync:()=>uni.clearStorageSync()};function Xt(e){return e&&Xt(e.__v_raw)||e}function ea(){return{token:Zt.getStorageSync("uni_id_token")||Zt.getStorageSync("uniIdToken"),tokenExpired:Zt.getStorageSync("uni_id_token_expired")}}function ta({token:e,tokenExpired:t}={}){e&&Zt.setStorageSync("uni_id_token",e),t&&Zt.setStorageSync("uni_id_token_expired",t)}let aa,na;function ia(){return aa||(aa=uni.getSystemInfoSync()),aa}function sa(){let e,t;try{if(uni.getLaunchOptionsSync){if(uni.getLaunchOptionsSync.toString().indexOf("not yet implemented")>-1)return;const{scene:a,channel:n}=uni.getLaunchOptionsSync();e=n,t=a}}catch(a){}return{channel:e,scene:t}}function oa(){const e=uni.getLocale&&uni.getLocale()||"en";if(na)return{...na,locale:e,LOCALE:e};const t=ia(),{deviceId:a,osName:n,uniPlatform:i,appId:s}=t,o=["pixelRatio","brand","model","system","language","version","platform","host","SDKVersion","swanNativeVersion","app","AppPlatform","fontSizeSetting"];for(let r=0;r{t(Object.assign(e,{complete(e){e||(e={});const t=e.data&&e.data.header&&e.data.header["x-serverless-request-id"]||e.header&&e.header["request-id"];if(!e.statusCode||e.statusCode>=400){const a=e.data&&e.data.error&&e.data.error.code||"SYS_ERR",i=e.data&&e.data.error&&e.data.error.message||e.errMsg||"request:fail";return n(new Qt({code:a,message:i,requestId:t}))}const i=e.data;if(i.error)return n(new Qt({code:i.error.code,message:i.error.message,requestId:t}));i.result=i.data,i.requestId=t,delete i.data,a(i)}}))}))},ca=function(e){return ht.stringify(ut.parse(e))},da=class{constructor(e){["spaceId","clientSecret"].forEach((t=>{if(!Object.prototype.hasOwnProperty.call(e,t))throw new Error(`${t} required`)})),this.config=Object.assign({},{endpoint:0===e.spaceId.indexOf("mp-")?"https://api.next.bspapp.com":"https://api.bspapp.com"},e),this.config.provider="aliyun",this.config.requestUrl=this.config.endpoint+"/client",this.config.envType=this.config.envType||"public",this.config.accessTokenKey="access_token_"+this.config.spaceId,this.adapter=Zt,this._getAccessTokenPromiseHub=new _t({createPromise:()=>this.requestAuth(this.setupRequest({method:"serverless.auth.user.anonymousAuthorize",params:"{}"},"auth")).then((e=>{if(!e.result||!e.result.accessToken)throw new Qt({code:"AUTH_FAILED",message:"获取accessToken失败"});this.setAccessToken(e.result.accessToken)})),retryRule:bt})}get hasAccessToken(){return!!this.accessToken}setAccessToken(e){this.accessToken=e}requestWrapped(e){return la(e,this.adapter.request)}requestAuth(e){return this.requestWrapped(e)}request(e,t){return Promise.resolve().then((()=>this.hasAccessToken?t?this.requestWrapped(e):this.requestWrapped(e).catch((t=>new Promise(((e,a)=>{!t||"GATEWAY_INVALID_TOKEN"!==t.code&&"InvalidParameter.InvalidToken"!==t.code?a(t):e()})).then((()=>this.getAccessToken())).then((()=>{const t=this.rebuildRequest(e);return this.request(t,!0)})))):this.getAccessToken().then((()=>{const t=this.rebuildRequest(e);return this.request(t,!0)}))))}rebuildRequest(e){const t=Object.assign({},e);return t.data.token=this.accessToken,t.header["x-basement-token"]=this.accessToken,t.header["x-serverless-sign"]=ra(t.data,this.config.clientSecret),t}setupRequest(e,t){const a=Object.assign({},e,{spaceId:this.config.spaceId,timestamp:Date.now()}),n={"Content-Type":"application/json"};return"auth"!==t&&(a.token=this.accessToken,n["x-basement-token"]=this.accessToken),n["x-serverless-sign"]=ra(a,this.config.clientSecret),{url:this.config.requestUrl,method:"POST",data:a,dataType:"json",header:n}}getAccessToken(){return this._getAccessTokenPromiseHub.exec()}async authorize(){await this.getAccessToken()}callFunction(e){const t={method:"serverless.function.runtime.invoke",params:JSON.stringify({functionTarget:e.name,functionArgs:e.data||{}})};return this.request(this.setupRequest(t))}getOSSUploadOptionsFromPath(e){const t={method:"serverless.file.resource.generateProximalSign",params:JSON.stringify(e)};return this.request(this.setupRequest(t))}uploadFileToOSS({url:e,formData:t,name:a,filePath:n,fileType:i,onUploadProgress:s}){return new Promise(((o,r)=>{const l=this.adapter.uploadFile({url:e,formData:t,name:a,filePath:n,fileType:i,header:{"X-OSS-server-side-encrpytion":"AES256"},success(e){e&&e.statusCode<400?o(e):r(new Qt({code:"UPLOAD_FAILED",message:"文件上传失败"}))},fail(e){r(new Qt({code:e.code||"UPLOAD_FAILED",message:e.message||e.errMsg||"文件上传失败"}))}});"function"==typeof s&&l&&"function"==typeof l.onProgressUpdate&&l.onProgressUpdate((e=>{s({loaded:e.totalBytesSent,total:e.totalBytesExpectedToSend})}))}))}reportOSSUpload(e){const t={method:"serverless.file.resource.report",params:JSON.stringify(e)};return this.request(this.setupRequest(t))}async uploadFile({filePath:e,cloudPath:t,fileType:a="image",cloudPathAsRealPath:n=!1,onUploadProgress:i,config:s}){if("string"!==gt(t))throw new Qt({code:"INVALID_PARAM",message:"cloudPath必须为字符串类型"});if(!(t=t.trim()))throw new Qt({code:"INVALID_PARAM",message:"cloudPath不可为空"});if(/:\/\//.test(t))throw new Qt({code:"INVALID_PARAM",message:"cloudPath不合法"});const o=s&&s.envType||this.config.envType;if(n&&("/"!==t[0]&&(t="/"+t),t.indexOf("\\")>-1))throw new Qt({code:"INVALID_PARAM",message:"使用cloudPath作为路径时,cloudPath不可包含“\\”"});const r=(await this.getOSSUploadOptionsFromPath({env:o,filename:n?t.split("/").pop():t,fileId:n?t:void 0})).result,l="https://"+r.cdnDomain+"/"+r.ossPath,{securityToken:c,accessKeyId:d,signature:u,host:h,ossPath:m,id:p,policy:f,ossCallbackUrl:g}=r,y={"Cache-Control":"max-age=2592000","Content-Disposition":"attachment",OSSAccessKeyId:d,Signature:u,host:h,id:p,key:m,policy:f,success_action_status:200};if(c&&(y["x-oss-security-token"]=c),g){const e=JSON.stringify({callbackUrl:g,callbackBody:JSON.stringify({fileId:p,spaceId:this.config.spaceId}),callbackBodyType:"application/json"});y.callback=ca(e)}const v={url:"https://"+r.host,formData:y,fileName:"file",name:"file",filePath:e,fileType:a};if(await this.uploadFileToOSS(Object.assign({},v,{onUploadProgress:i})),g)return{success:!0,filePath:e,fileID:l};if((await this.reportOSSUpload({id:p})).success)return{success:!0,filePath:e,fileID:l};throw new Qt({code:"UPLOAD_FAILED",message:"文件上传失败"})}getTempFileURL({fileList:e}={}){return new Promise(((t,a)=>{Array.isArray(e)&&0!==e.length||a(new Qt({code:"INVALID_PARAM",message:"fileList的元素必须是非空的字符串"})),t({fileList:e.map((e=>({fileID:e,tempFileURL:e})))})}))}async getFileInfo({fileList:e}={}){if(!Array.isArray(e)||0===e.length)throw new Qt({code:"INVALID_PARAM",message:"fileList的元素必须是非空的字符串"});const t={method:"serverless.file.resource.info",params:JSON.stringify({id:e.map((e=>e.split("?")[0])).join(",")})};return{fileList:(await this.request(this.setupRequest(t))).result}}},ua={init(e){const t=new da(e),a={signInAnonymously:function(){return t.authorize()},getLoginState:function(){return Promise.resolve(!1)}};return t.auth=function(){return a},t.customAuth=t.auth,t}};const ha="undefined"!=typeof location&&"http:"===location.protocol?"http:":"https:";var ma,pa;(pa=ma||(ma={})).local="local",pa.none="none",pa.session="session";var fa=function(){},ga=rt((function(e,t){var a;e.exports=(a=ct,function(e){var t=a,n=t.lib,i=n.WordArray,s=n.Hasher,o=t.algo,r=[],l=[];!function(){function t(t){for(var a=e.sqrt(t),n=2;n<=a;n++)if(!(t%n))return!1;return!0}function a(e){return 4294967296*(e-(0|e))|0}for(var n=2,i=0;i<64;)t(n)&&(i<8&&(r[i]=a(e.pow(n,.5))),l[i]=a(e.pow(n,1/3)),i++),n++}();var c=[],d=o.SHA256=s.extend({_doReset:function(){this._hash=new i.init(r.slice(0))},_doProcessBlock:function(e,t){for(var a=this._hash.words,n=a[0],i=a[1],s=a[2],o=a[3],r=a[4],d=a[5],u=a[6],h=a[7],m=0;m<64;m++){if(m<16)c[m]=0|e[t+m];else{var p=c[m-15],f=(p<<25|p>>>7)^(p<<14|p>>>18)^p>>>3,g=c[m-2],y=(g<<15|g>>>17)^(g<<13|g>>>19)^g>>>10;c[m]=f+c[m-7]+y+c[m-16]}var v=n&i^n&s^i&s,w=(n<<30|n>>>2)^(n<<19|n>>>13)^(n<<10|n>>>22),k=h+((r<<26|r>>>6)^(r<<21|r>>>11)^(r<<7|r>>>25))+(r&d^~r&u)+l[m]+c[m];h=u,u=d,d=r,r=o+k|0,o=s,s=i,i=n,n=k+(w+v)|0}a[0]=a[0]+n|0,a[1]=a[1]+i|0,a[2]=a[2]+s|0,a[3]=a[3]+o|0,a[4]=a[4]+r|0,a[5]=a[5]+d|0,a[6]=a[6]+u|0,a[7]=a[7]+h|0},_doFinalize:function(){var t=this._data,a=t.words,n=8*this._nDataBytes,i=8*t.sigBytes;return a[i>>>5]|=128<<24-i%32,a[14+(i+64>>>9<<4)]=e.floor(n/4294967296),a[15+(i+64>>>9<<4)]=n,t.sigBytes=4*a.length,this._process(),this._hash},clone:function(){var e=s.clone.call(this);return e._hash=this._hash.clone(),e}});t.SHA256=s._createHelper(d),t.HmacSHA256=s._createHmacHelper(d)}(Math),a.SHA256)})),ya=ga,va=rt((function(e,t){e.exports=ct.HmacSHA256}));const wa=()=>{let e;if(!Promise){e=()=>{},e.promise={};const t=()=>{throw new Qt({message:'Your Node runtime does support ES6 Promises. Set "global.Promise" to your preferred implementation of promises.'})};return Object.defineProperty(e.promise,"then",{get:t}),Object.defineProperty(e.promise,"catch",{get:t}),e}const t=new Promise(((t,a)=>{e=(e,n)=>e?a(e):t(n)}));return e.promise=t,e};function ka(e){return void 0===e}function ba(e){return"[object Null]"===Object.prototype.toString.call(e)}var _a;!function(e){e.WEB="web",e.WX_MP="wx_mp"}(_a||(_a={}));const Ea={adapter:null,runtime:void 0},Sa=["anonymousUuidKey"];class xa extends fa{constructor(){super(),Ea.adapter.root.tcbObject||(Ea.adapter.root.tcbObject={})}setItem(e,t){Ea.adapter.root.tcbObject[e]=t}getItem(e){return Ea.adapter.root.tcbObject[e]}removeItem(e){delete Ea.adapter.root.tcbObject[e]}clear(){delete Ea.adapter.root.tcbObject}}function Na(e,t){switch(e){case"local":return t.localStorage||new xa;case"none":return new xa;default:return t.sessionStorage||new xa}}class Va{constructor(e){if(!this._storage){this._persistence=Ea.adapter.primaryStorage||e.persistence,this._storage=Na(this._persistence,Ea.adapter);const t=`access_token_${e.env}`,a=`access_token_expire_${e.env}`,n=`refresh_token_${e.env}`,i=`anonymous_uuid_${e.env}`,s=`login_type_${e.env}`,o=`user_info_${e.env}`;this.keys={accessTokenKey:t,accessTokenExpireKey:a,refreshTokenKey:n,anonymousUuidKey:i,loginTypeKey:s,userInfoKey:o}}}updatePersistence(e){if(e===this._persistence)return;const t="local"===this._persistence;this._persistence=e;const a=Na(e,Ea.adapter);for(const n in this.keys){const e=this.keys[n];if(t&&Sa.includes(n))continue;const i=this._storage.getItem(e);ka(i)||ba(i)||(a.setItem(e,i),this._storage.removeItem(e))}this._storage=a}setStore(e,t,a){if(!this._storage)return;const n={version:a||"localCachev1",content:t},i=JSON.stringify(n);try{this._storage.setItem(e,i)}catch(s){throw s}}getStore(e,t){try{if(!this._storage)return}catch(n){return""}t=t||"localCachev1";const a=this._storage.getItem(e);return a&&a.indexOf(t)>=0?JSON.parse(a).content:""}removeStore(e){this._storage.removeItem(e)}}const Ca={},Ta={};function Da(e){return Ca[e]}class Ba{constructor(e,t){this.data=t||null,this.name=e}}class Ia extends Ba{constructor(e,t){super("error",{error:e,data:t}),this.error=e}}const Pa=new class{constructor(){this._listeners={}}on(e,t){return a=e,n=t,(i=this._listeners)[a]=i[a]||[],i[a].push(n),this;var a,n,i}off(e,t){return function(e,t,a){if(a&&a[e]){const n=a[e].indexOf(t);-1!==n&&a[e].splice(n,1)}}(e,t,this._listeners),this}fire(e,t){if(e instanceof Ia)return console.error(e.error),this;const a="string"==typeof e?new Ba(e,t||{}):e,n=a.name;if(this._listens(n)){a.target=this;const e=this._listeners[n]?[...this._listeners[n]]:[];for(const t of e)t.call(this,a)}return this}_listens(e){return this._listeners[e]&&this._listeners[e].length>0}};function Aa(e,t){Pa.on(e,t)}function Ma(e,t={}){Pa.fire(e,t)}function Ra(e,t){Pa.off(e,t)}const La="loginStateChanged",Oa="loginStateExpire",Fa="loginTypeChanged",$a="anonymousConverted",ja="refreshAccessToken";var Ua;!function(e){e.ANONYMOUS="ANONYMOUS",e.WECHAT="WECHAT",e.WECHAT_PUBLIC="WECHAT-PUBLIC",e.WECHAT_OPEN="WECHAT-OPEN",e.CUSTOM="CUSTOM",e.EMAIL="EMAIL",e.USERNAME="USERNAME",e.NULL="NULL"}(Ua||(Ua={}));const za=["auth.getJwt","auth.logout","auth.signInWithTicket","auth.signInAnonymously","auth.signIn","auth.fetchAccessTokenWithRefreshToken","auth.signUpWithEmailAndPassword","auth.activateEndUserMail","auth.sendPasswordResetEmail","auth.resetPasswordWithToken","auth.isUsernameRegistered"],Ha={"X-SDK-Version":"1.3.5"};function qa(e,t,a){const n=e[t];e[t]=function(t){const i={},s={};a.forEach((a=>{const{data:n,headers:o}=a.call(e,t);Object.assign(i,n),Object.assign(s,o)}));const o=t.data;return o&&(()=>{var e;if(e=o,"[object FormData]"!==Object.prototype.toString.call(e))t.data={...o,...i};else for(const t in i)o.append(t,i[t])})(),t.headers={...t.headers||{},...s},n.call(e,t)}}function Ja(){const e=Math.random().toString(16).slice(2);return{data:{seqId:e},headers:{...Ha,"x-seqid":e}}}class Wa{constructor(e={}){var t;this.config=e,this._reqClass=new Ea.adapter.reqClass({timeout:this.config.timeout,timeoutMsg:`请求在${this.config.timeout/1e3}s内未完成,已中断`,restrictedMethods:["post"]}),this._cache=Da(this.config.env),this._localCache=(t=this.config.env,Ta[t]),qa(this._reqClass,"post",[Ja]),qa(this._reqClass,"upload",[Ja]),qa(this._reqClass,"download",[Ja])}async post(e){return await this._reqClass.post(e)}async upload(e){return await this._reqClass.upload(e)}async download(e){return await this._reqClass.download(e)}async refreshAccessToken(){let e,t;this._refreshAccessTokenPromise||(this._refreshAccessTokenPromise=this._refreshAccessToken());try{e=await this._refreshAccessTokenPromise}catch(a){t=a}if(this._refreshAccessTokenPromise=null,this._shouldRefreshAccessTokenHook=null,t)throw t;return e}async _refreshAccessToken(){const{accessTokenKey:e,accessTokenExpireKey:t,refreshTokenKey:a,loginTypeKey:n,anonymousUuidKey:i}=this._cache.keys;this._cache.removeStore(e),this._cache.removeStore(t);let s=this._cache.getStore(a);if(!s)throw new Qt({message:"未登录CloudBase"});const o={refresh_token:s},r=await this.request("auth.fetchAccessTokenWithRefreshToken",o);if(r.data.code){const{code:e}=r.data;if("SIGN_PARAM_INVALID"===e||"REFRESH_TOKEN_EXPIRED"===e||"INVALID_REFRESH_TOKEN"===e){if(this._cache.getStore(n)===Ua.ANONYMOUS&&"INVALID_REFRESH_TOKEN"===e){const e=this._cache.getStore(i),t=this._cache.getStore(a),n=await this.send("auth.signInAnonymously",{anonymous_uuid:e,refresh_token:t});return this.setRefreshToken(n.refresh_token),this._refreshAccessToken()}Ma(Oa),this._cache.removeStore(a)}throw new Qt({code:r.data.code,message:`刷新access token失败:${r.data.code}`})}if(r.data.access_token)return Ma(ja),this._cache.setStore(e,r.data.access_token),this._cache.setStore(t,r.data.access_token_expire+Date.now()),{accessToken:r.data.access_token,accessTokenExpire:r.data.access_token_expire};r.data.refresh_token&&(this._cache.removeStore(a),this._cache.setStore(a,r.data.refresh_token),this._refreshAccessToken())}async getAccessToken(){const{accessTokenKey:e,accessTokenExpireKey:t,refreshTokenKey:a}=this._cache.keys;if(!this._cache.getStore(a))throw new Qt({message:"refresh token不存在,登录状态异常"});let n=this._cache.getStore(e),i=this._cache.getStore(t),s=!0;return this._shouldRefreshAccessTokenHook&&!(await this._shouldRefreshAccessTokenHook(n,i))&&(s=!1),(!n||!i||i{e.wxOpenId&&e.wxPublicId&&(t=!0)})),{users:a,hasPrimaryUid:t}}setPrimaryUid(e){return this._request.send("auth.setPrimaryUid",{uid:e})}unlink(e){return this._request.send("auth.unlink",{platform:e})}async update(e){const{nickName:t,gender:a,avatarUrl:n,province:i,country:s,city:o}=e,{data:r}=await this._request.send("auth.updateUserInfo",{nickName:t,gender:a,avatarUrl:n,province:i,country:s,city:o});this.setLocalUserInfo(r)}async refresh(){const{data:e}=await this._request.send("auth.getUserInfo",{});return this.setLocalUserInfo(e),e}setUserInfo(){const{userInfoKey:e}=this._cache.keys,t=this._cache.getStore(e);["uid","loginType","openid","wxOpenId","wxPublicId","unionId","qqMiniOpenId","email","hasPassword","customUserId","nickName","gender","avatarUrl"].forEach((e=>{this[e]=t[e]})),this.location={country:t.country,province:t.province,city:t.city}}setLocalUserInfo(e){const{userInfoKey:t}=this._cache.keys;this._cache.setStore(t,e),this.setUserInfo()}}class Za{constructor(e){if(!e)throw new Qt({code:"PARAM_ERROR",message:"envId is not defined"});this._cache=Da(e);const{refreshTokenKey:t,accessTokenKey:a,accessTokenExpireKey:n}=this._cache.keys,i=this._cache.getStore(t),s=this._cache.getStore(a),o=this._cache.getStore(n);this.credential={refreshToken:i,accessToken:s,accessTokenExpire:o},this.user=new Qa(e)}get isAnonymousAuth(){return this.loginType===Ua.ANONYMOUS}get isCustomAuth(){return this.loginType===Ua.CUSTOM}get isWeixinAuth(){return this.loginType===Ua.WECHAT||this.loginType===Ua.WECHAT_OPEN||this.loginType===Ua.WECHAT_PUBLIC}get loginType(){return this._cache.getStore(this._cache.keys.loginTypeKey)}}class Xa extends Ga{async signIn(){this._cache.updatePersistence("local");const{anonymousUuidKey:e,refreshTokenKey:t}=this._cache.keys,a=this._cache.getStore(e)||void 0,n=this._cache.getStore(t)||void 0,i=await this._request.send("auth.signInAnonymously",{anonymous_uuid:a,refresh_token:n});if(i.uuid&&i.refresh_token){this._setAnonymousUUID(i.uuid),this.setRefreshToken(i.refresh_token),await this._request.refreshAccessToken(),Ma(La),Ma(Fa,{env:this.config.env,loginType:Ua.ANONYMOUS,persistence:"local"});const e=new Za(this.config.env);return await e.user.refresh(),e}throw new Qt({message:"匿名登录失败"})}async linkAndRetrieveDataWithTicket(e){const{anonymousUuidKey:t,refreshTokenKey:a}=this._cache.keys,n=this._cache.getStore(t),i=this._cache.getStore(a),s=await this._request.send("auth.linkAndRetrieveDataWithTicket",{anonymous_uuid:n,refresh_token:i,ticket:e});if(s.refresh_token)return this._clearAnonymousUUID(),this.setRefreshToken(s.refresh_token),await this._request.refreshAccessToken(),Ma($a,{env:this.config.env}),Ma(Fa,{loginType:Ua.CUSTOM,persistence:"local"}),{credential:{refreshToken:s.refresh_token}};throw new Qt({message:"匿名转化失败"})}_setAnonymousUUID(e){const{anonymousUuidKey:t,loginTypeKey:a}=this._cache.keys;this._cache.removeStore(t),this._cache.setStore(t,e),this._cache.setStore(a,Ua.ANONYMOUS)}_clearAnonymousUUID(){this._cache.removeStore(this._cache.keys.anonymousUuidKey)}}class en extends Ga{async signIn(e){if("string"!=typeof e)throw new Qt({code:"PARAM_ERROR",message:"ticket must be a string"});const{refreshTokenKey:t}=this._cache.keys,a=await this._request.send("auth.signInWithTicket",{ticket:e,refresh_token:this._cache.getStore(t)||""});if(a.refresh_token)return this.setRefreshToken(a.refresh_token),await this._request.refreshAccessToken(),Ma(La),Ma(Fa,{env:this.config.env,loginType:Ua.CUSTOM,persistence:this.config.persistence}),await this.refreshUserInfo(),new Za(this.config.env);throw new Qt({message:"自定义登录失败"})}}class tn extends Ga{async signIn(e,t){if("string"!=typeof e)throw new Qt({code:"PARAM_ERROR",message:"email must be a string"});const{refreshTokenKey:a}=this._cache.keys,n=await this._request.send("auth.signIn",{loginType:"EMAIL",email:e,password:t,refresh_token:this._cache.getStore(a)||""}),{refresh_token:i,access_token:s,access_token_expire:o}=n;if(i)return this.setRefreshToken(i),s&&o?this.setAccessToken(s,o):await this._request.refreshAccessToken(),await this.refreshUserInfo(),Ma(La),Ma(Fa,{env:this.config.env,loginType:Ua.EMAIL,persistence:this.config.persistence}),new Za(this.config.env);throw n.code?new Qt({code:n.code,message:`邮箱登录失败: ${n.message}`}):new Qt({message:"邮箱登录失败"})}async activate(e){return this._request.send("auth.activateEndUserMail",{token:e})}async resetPasswordWithToken(e,t){return this._request.send("auth.resetPasswordWithToken",{token:e,newPassword:t})}}class an extends Ga{async signIn(e,t){if("string"!=typeof e)throw new Qt({code:"PARAM_ERROR",message:"username must be a string"});"string"!=typeof t&&(t="",console.warn("password is empty"));const{refreshTokenKey:a}=this._cache.keys,n=await this._request.send("auth.signIn",{loginType:Ua.USERNAME,username:e,password:t,refresh_token:this._cache.getStore(a)||""}),{refresh_token:i,access_token_expire:s,access_token:o}=n;if(i)return this.setRefreshToken(i),o&&s?this.setAccessToken(o,s):await this._request.refreshAccessToken(),await this.refreshUserInfo(),Ma(La),Ma(Fa,{env:this.config.env,loginType:Ua.USERNAME,persistence:this.config.persistence}),new Za(this.config.env);throw n.code?new Qt({code:n.code,message:`用户名密码登录失败: ${n.message}`}):new Qt({message:"用户名密码登录失败"})}}class nn{constructor(e){this.config=e,this._cache=Da(e.env),this._request=Ka(e.env),this._onAnonymousConverted=this._onAnonymousConverted.bind(this),this._onLoginTypeChanged=this._onLoginTypeChanged.bind(this),Aa(Fa,this._onLoginTypeChanged)}get currentUser(){const e=this.hasLoginState();return e&&e.user||null}get loginType(){return this._cache.getStore(this._cache.keys.loginTypeKey)}anonymousAuthProvider(){return new Xa(this.config)}customAuthProvider(){return new en(this.config)}emailAuthProvider(){return new tn(this.config)}usernameAuthProvider(){return new an(this.config)}async signInAnonymously(){return new Xa(this.config).signIn()}async signInWithEmailAndPassword(e,t){return new tn(this.config).signIn(e,t)}signInWithUsernameAndPassword(e,t){return new an(this.config).signIn(e,t)}async linkAndRetrieveDataWithTicket(e){return this._anonymousAuthProvider||(this._anonymousAuthProvider=new Xa(this.config)),Aa($a,this._onAnonymousConverted),await this._anonymousAuthProvider.linkAndRetrieveDataWithTicket(e)}async signOut(){if(this.loginType===Ua.ANONYMOUS)throw new Qt({message:"匿名用户不支持登出操作"});const{refreshTokenKey:e,accessTokenKey:t,accessTokenExpireKey:a}=this._cache.keys,n=this._cache.getStore(e);if(!n)return;const i=await this._request.send("auth.logout",{refresh_token:n});return this._cache.removeStore(e),this._cache.removeStore(t),this._cache.removeStore(a),Ma(La),Ma(Fa,{env:this.config.env,loginType:Ua.NULL,persistence:this.config.persistence}),i}async signUpWithEmailAndPassword(e,t){return this._request.send("auth.signUpWithEmailAndPassword",{email:e,password:t})}async sendPasswordResetEmail(e){return this._request.send("auth.sendPasswordResetEmail",{email:e})}onLoginStateChanged(e){Aa(La,(()=>{const t=this.hasLoginState();e.call(this,t)}));const t=this.hasLoginState();e.call(this,t)}onLoginStateExpired(e){Aa(Oa,e.bind(this))}onAccessTokenRefreshed(e){Aa(ja,e.bind(this))}onAnonymousConverted(e){Aa($a,e.bind(this))}onLoginTypeChanged(e){Aa(Fa,(()=>{const t=this.hasLoginState();e.call(this,t)}))}async getAccessToken(){return{accessToken:(await this._request.getAccessToken()).accessToken,env:this.config.env}}hasLoginState(){const{refreshTokenKey:e}=this._cache.keys;return this._cache.getStore(e)?new Za(this.config.env):null}async isUsernameRegistered(e){if("string"!=typeof e)throw new Qt({code:"PARAM_ERROR",message:"username must be a string"});const{data:t}=await this._request.send("auth.isUsernameRegistered",{username:e});return t&&t.isRegistered}getLoginState(){return Promise.resolve(this.hasLoginState())}async signInWithTicket(e){return new en(this.config).signIn(e)}shouldRefreshAccessToken(e){this._request._shouldRefreshAccessTokenHook=e.bind(this)}getUserInfo(){return this._request.send("auth.getUserInfo",{}).then((e=>e.code?e:{...e.data,requestId:e.seqId}))}getAuthHeader(){const{refreshTokenKey:e,accessTokenKey:t}=this._cache.keys,a=this._cache.getStore(e);return{"x-cloudbase-credentials":this._cache.getStore(t)+"/@@/"+a}}_onAnonymousConverted(e){const{env:t}=e.data;t===this.config.env&&this._cache.updatePersistence(this.config.persistence)}_onLoginTypeChanged(e){const{loginType:t,persistence:a,env:n}=e.data;n===this.config.env&&(this._cache.updatePersistence(a),this._cache.setStore(this._cache.keys.loginTypeKey,t))}}const sn=function(e,t){t=t||wa();const a=Ka(this.config.env),{cloudPath:n,filePath:i,onUploadProgress:s,fileType:o="image"}=e;return a.send("storage.getUploadMetadata",{path:n}).then((e=>{const{data:{url:r,authorization:l,token:c,fileId:d,cosFileId:u},requestId:h}=e,m={key:n,signature:l,"x-cos-meta-fileid":u,success_action_status:"201","x-cos-security-token":c};a.upload({url:r,data:m,file:i,name:n,fileType:o,onUploadProgress:s}).then((e=>{201===e.statusCode?t(null,{fileID:d,requestId:h}):t(new Qt({code:"STORAGE_REQUEST_FAIL",message:`STORAGE_REQUEST_FAIL: ${e.data}`}))})).catch((e=>{t(e)}))})).catch((e=>{t(e)})),t.promise},on=function(e,t){t=t||wa();const a=Ka(this.config.env),{cloudPath:n}=e;return a.send("storage.getUploadMetadata",{path:n}).then((e=>{t(null,e)})).catch((e=>{t(e)})),t.promise},rn=function({fileList:e},t){if(t=t||wa(),!e||!Array.isArray(e))return{code:"INVALID_PARAM",message:"fileList必须是非空的数组"};for(let n of e)if(!n||"string"!=typeof n)return{code:"INVALID_PARAM",message:"fileList的元素必须是非空的字符串"};const a={fileid_list:e};return Ka(this.config.env).send("storage.batchDeleteFile",a).then((e=>{e.code?t(null,e):t(null,{fileList:e.data.delete_list,requestId:e.requestId})})).catch((e=>{t(e)})),t.promise},ln=function({fileList:e},t){t=t||wa(),e&&Array.isArray(e)||t(null,{code:"INVALID_PARAM",message:"fileList必须是非空的数组"});let a=[];for(let i of e)"object"==typeof i?(i.hasOwnProperty("fileID")&&i.hasOwnProperty("maxAge")||t(null,{code:"INVALID_PARAM",message:"fileList的元素必须是包含fileID和maxAge的对象"}),a.push({fileid:i.fileID,max_age:i.maxAge})):"string"==typeof i?a.push({fileid:i}):t(null,{code:"INVALID_PARAM",message:"fileList的元素必须是字符串"});const n={file_list:a};return Ka(this.config.env).send("storage.batchGetDownloadUrl",n).then((e=>{e.code?t(null,e):t(null,{fileList:e.data.download_list,requestId:e.requestId})})).catch((e=>{t(e)})),t.promise},cn=async function({fileID:e},t){const a=(await ln.call(this,{fileList:[{fileID:e,maxAge:600}]})).fileList[0];if("SUCCESS"!==a.code)return t?t(a):new Promise((e=>{e(a)}));const n=Ka(this.config.env);let i=a.download_url;if(i=encodeURI(i),!t)return n.download({url:i});t(await n.download({url:i}))},dn=function({name:e,data:t,query:a,parse:n,search:i},s){const o=s||wa();let r;try{r=t?JSON.stringify(t):""}catch(c){return Promise.reject(c)}if(!e)return Promise.reject(new Qt({code:"PARAM_ERROR",message:"函数名不能为空"}));const l={inQuery:a,parse:n,search:i,function_name:e,request_data:r};return Ka(this.config.env).send("functions.invokeFunction",l).then((e=>{if(e.code)o(null,e);else{let a=e.data.response_data;if(n)o(null,{result:a,requestId:e.requestId});else try{a=JSON.parse(e.data.response_data),o(null,{result:a,requestId:e.requestId})}catch(t){o(new Qt({message:"response data must be json"}))}}return o.promise})).catch((e=>{o(e)})),o.promise},un={timeout:15e3,persistence:"session"},hn={};class mn{constructor(e){this.config=e||this.config,this.authObj=void 0}init(e){switch(Ea.adapter||(this.requestClient=new Ea.adapter.reqClass({timeout:e.timeout||5e3,timeoutMsg:`请求在${(e.timeout||5e3)/1e3}s内未完成,已中断`})),this.config={...un,...e},!0){case this.config.timeout>6e5:console.warn("timeout大于可配置上限[10分钟],已重置为上限数值"),this.config.timeout=6e5;break;case this.config.timeout<100:console.warn("timeout小于可配置下限[100ms],已重置为下限数值"),this.config.timeout=100}return new mn(this.config)}auth({persistence:e}={}){if(this.authObj)return this.authObj;const t=e||Ea.adapter.primaryStorage||un.persistence;var a;return t!==this.config.persistence&&(this.config.persistence=t),function(e){const{env:t}=e;Ca[t]=new Va(e),Ta[t]=new Va({...e,persistence:"local"})}(this.config),a=this.config,Ya[a.env]=new Wa(a),this.authObj=new nn(this.config),this.authObj}on(e,t){return Aa.apply(this,[e,t])}off(e,t){return Ra.apply(this,[e,t])}callFunction(e,t){return dn.apply(this,[e,t])}deleteFile(e,t){return rn.apply(this,[e,t])}getTempFileURL(e,t){return ln.apply(this,[e,t])}downloadFile(e,t){return cn.apply(this,[e,t])}uploadFile(e,t){return sn.apply(this,[e,t])}getUploadMetadata(e,t){return on.apply(this,[e,t])}registerExtension(e){hn[e.name]=e}async invokeExtension(e,t){const a=hn[e];if(!a)throw new Qt({message:`扩展${e} 必须先注册`});return await a.invoke(t,this)}useAdapters(e){const{adapter:t,runtime:a}=function(e){const t=(a=e,"[object Array]"===Object.prototype.toString.call(a)?e:[e]);var a;for(const n of t){const{isMatch:e,genAdapter:t,runtime:a}=n;if(e())return{adapter:t(),runtime:a}}}(e)||{};t&&(Ea.adapter=t),a&&(Ea.runtime=a)}}var pn=new mn;function fn(e,t,a){void 0===a&&(a={});var n=/\?/.test(t),i="";for(var s in a)""===i?!n&&(t+="?"):i+="&",i+=s+"="+encodeURIComponent(a[s]);return/^http(s)?:\/\//.test(t+=i)?t:""+e+t}class gn{post(e){const{url:t,data:a,headers:n}=e;return new Promise(((e,i)=>{Zt.request({url:fn("https:",t),data:a,method:"POST",header:n,success(t){e(t)},fail(e){i(e)}})}))}upload(e){return new Promise(((t,a)=>{const{url:n,file:i,data:s,headers:o,fileType:r}=e,l=Zt.uploadFile({url:fn("https:",n),name:"file",formData:Object.assign({},s),filePath:i,fileType:r,header:o,success(e){const a={statusCode:e.statusCode,data:e.data||{}};200===e.statusCode&&s.success_action_status&&(a.statusCode=parseInt(s.success_action_status,10)),t(a)},fail(e){a(new Error(e.errMsg||"uploadFile:fail"))}});"function"==typeof e.onUploadProgress&&l&&"function"==typeof l.onProgressUpdate&&l.onProgressUpdate((t=>{e.onUploadProgress({loaded:t.totalBytesSent,total:t.totalBytesExpectedToSend})}))}))}}const yn={setItem(e,t){Zt.setStorageSync(e,t)},getItem:e=>Zt.getStorageSync(e),removeItem(e){Zt.removeStorageSync(e)},clear(){Zt.clearStorageSync()}};var vn={genAdapter:function(){return{root:{},reqClass:gn,localStorage:yn,primaryStorage:"local"}},isMatch:function(){return!0},runtime:"uni_app"};pn.useAdapters(vn);const wn=pn,kn=wn.init;wn.init=function(e){e.env=e.spaceId;const t=kn.call(this,e);t.config.provider="tencent",t.config.spaceId=e.spaceId;const a=t.auth;return t.auth=function(e){const t=a.call(this,e);return["linkAndRetrieveDataWithTicket","signInAnonymously","signOut","getAccessToken","getLoginState","signInWithTicket","getUserInfo"].forEach((e=>{var a;t[e]=(a=t[e],function(e){e=e||{};const{success:t,fail:n,complete:i}=Gt(e);if(!(t||n||i))return a.call(this,e);a.call(this,e).then((e=>{t&&t(e),i&&i(e)}),(e=>{n&&n(e),i&&i(e)}))}).bind(t)})),t},t.customAuth=t.auth,t};var bn=wn,_n=class extends da{getAccessToken(){return new Promise(((e,t)=>{const a="Anonymous_Access_token";this.setAccessToken(a),e(a)}))}setupRequest(e,t){const a=Object.assign({},e,{spaceId:this.config.spaceId,timestamp:Date.now()}),n={"Content-Type":"application/json"};"auth"!==t&&(a.token=this.accessToken,n["x-basement-token"]=this.accessToken),n["x-serverless-sign"]=ra(a,this.config.clientSecret);const i=oa();n["x-client-info"]=encodeURIComponent(JSON.stringify(i));const{token:s}=ea();return n["x-client-token"]=s,{url:this.config.requestUrl,method:"POST",data:a,dataType:"json",header:JSON.parse(JSON.stringify(n))}}uploadFileToOSS({url:e,formData:t,name:a,filePath:n,fileType:i,onUploadProgress:s}){return new Promise(((o,r)=>{const l=this.adapter.uploadFile({url:e,formData:t,name:a,filePath:n,fileType:i,success(e){e&&e.statusCode<400?o(e):r(new Qt({code:"UPLOAD_FAILED",message:"文件上传失败"}))},fail(e){r(new Qt({code:e.code||"UPLOAD_FAILED",message:e.message||e.errMsg||"文件上传失败"}))}});"function"==typeof s&&l&&"function"==typeof l.onProgressUpdate&&l.onProgressUpdate((e=>{s({loaded:e.totalBytesSent,total:e.totalBytesExpectedToSend})}))}))}uploadFile({filePath:e,cloudPath:t,fileType:a="image",onUploadProgress:n}){if(!t)throw new Qt({code:"CLOUDPATH_REQUIRED",message:"cloudPath不可为空"});let i;return this.getOSSUploadOptionsFromPath({cloudPath:t}).then((t=>{const{url:s,formData:o,name:r}=t.result;i=t.result.fileUrl;const l={url:s,formData:o,name:r,filePath:e,fileType:a};return this.uploadFileToOSS(Object.assign({},l,{onUploadProgress:n}))})).then((()=>this.reportOSSUpload({cloudPath:t}))).then((t=>new Promise(((a,n)=>{t.success?a({success:!0,filePath:e,fileID:i}):n(new Qt({code:"UPLOAD_FAILED",message:"文件上传失败"}))}))))}deleteFile({fileList:e}){const t={method:"serverless.file.resource.delete",params:JSON.stringify({fileList:e})};return this.request(this.setupRequest(t)).then((e=>{if(e.success)return e.result;throw new Qt({code:"DELETE_FILE_FAILED",message:"删除文件失败"})}))}getTempFileURL({fileList:e,maxAge:t}={}){if(!Array.isArray(e)||0===e.length)throw new Qt({code:"INVALID_PARAM",message:"fileList的元素必须是非空的字符串"});const a={method:"serverless.file.resource.getTempFileURL",params:JSON.stringify({fileList:e,maxAge:t})};return this.request(this.setupRequest(a)).then((e=>{if(e.success)return{fileList:e.result.fileList.map((e=>({fileID:e.fileID,tempFileURL:e.tempFileURL})))};throw new Qt({code:"GET_TEMP_FILE_URL_FAILED",message:"获取临时文件链接失败"})}))}},En={init(e){const t=new _n(e),a={signInAnonymously:function(){return t.authorize()},getLoginState:function(){return Promise.resolve(!1)}};return t.auth=function(){return a},t.customAuth=t.auth,t}},Sn=rt((function(e,t){e.exports=ct.enc.Hex}));function xn(e="",t={}){const{data:a,functionName:n,method:i,headers:s,signHeaderKeys:o=[],config:r}=t,l=Date.now(),c="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)})),d=Object.assign({},s,{"x-from-app-id":r.spaceAppId,"x-from-env-id":r.spaceId,"x-to-env-id":r.spaceId,"x-from-instance-id":l,"x-from-function-name":n,"x-client-timestamp":l,"x-alipay-source":"client","x-request-id":c,"x-alipay-callid":c,"x-trace-id":c}),u=["x-from-app-id","x-from-env-id","x-to-env-id","x-from-instance-id","x-from-function-name","x-client-timestamp"].concat(o),[h="",m=""]=e.split("?")||[],p=function(e){const t=e.signedHeaders.join(";"),a=e.signedHeaders.map((t=>`${t.toLowerCase()}:${e.headers[t]}\n`)).join(""),n=ya(e.body).toString(Sn),i=`${e.method.toUpperCase()}\n${e.path}\n${e.query}\n${a}\n${t}\n${n}\n`,s=ya(i).toString(Sn),o=`HMAC-SHA256\n${e.timestamp}\n${s}\n`,r=va(o,e.secretKey).toString(Sn);return`HMAC-SHA256 Credential=${e.secretId}, SignedHeaders=${t}, Signature=${r}`}({path:h,query:m,method:i,headers:d,timestamp:l,body:JSON.stringify(a),secretId:r.accessKey,secretKey:r.secretKey,signedHeaders:u.sort()});return{url:`${r.endpoint}${e}`,headers:Object.assign({},d,{Authorization:p})}}function Nn({url:e,data:t,method:a="POST",headers:n={}}){return new Promise(((i,s)=>{Zt.request({url:e,method:a,data:t,header:n,dataType:"json",complete:(e={})=>{const t=n["x-trace-id"]||"";if(!e.statusCode||e.statusCode>=400){const{message:a,errMsg:n,trace_id:i}=e.data||{};return s(new Qt({code:"SYS_ERR",message:a||n||"request:fail",requestId:i||t}))}i({status:e.statusCode,data:e.data,headers:e.header,requestId:t})}})}))}function Vn(e,t){const{path:a,data:n,method:i="GET"}=e,{url:s,headers:o}=xn(a,{functionName:"",data:n,method:i,headers:{"x-alipay-cloud-mode":"oss","x-data-api-type":"oss","x-expire-timestamp":Date.now()+6e4},signHeaderKeys:["x-data-api-type","x-expire-timestamp"],config:t});return Nn({url:s,data:n,method:i,headers:o}).then((e=>{const t=e.data||{};if(!t.success)throw new Qt({code:e.errCode,message:e.errMsg,requestId:e.requestId});return t.data||{}})).catch((e=>{throw new Qt({code:e.errCode,message:e.errMsg,requestId:e.requestId})}))}function Cn(e=""){const t=e.trim().replace(/^cloud:\/\//,""),a=t.indexOf("/");if(a<=0)throw new Qt({code:"INVALID_PARAM",message:"fileID不合法"});const n=t.substring(0,a),i=t.substring(a+1);return n!==this.config.spaceId&&console.warn("file ".concat(e," does not belong to env ").concat(this.config.spaceId)),i}function Tn(e=""){return"cloud://".concat(this.config.spaceId,"/").concat(e.replace(/^\/+/,""))}var Dn={init:e=>{e.provider="alipay";const t=new class{constructor(e){if(["spaceId","spaceAppId","accessKey","secretKey"].forEach((t=>{if(!Object.prototype.hasOwnProperty.call(e,t))throw new Error(`${t} required`)})),e.endpoint){if("string"!=typeof e.endpoint)throw new Error("endpoint must be string");if(!/^https:\/\//.test(e.endpoint))throw new Error("endpoint must start with https://");e.endpoint=e.endpoint.replace(/\/$/,"")}this.config=Object.assign({},e,{endpoint:e.endpoint||`https://${e.spaceId}.api-hz.cloudbasefunction.cn`})}callFunction(e){return function(e,t){const{name:a,data:n}=e,i="POST",{url:s,headers:o}=xn("/functions/invokeFunction",{functionName:a,data:n,method:i,headers:{"x-to-function-name":a},signHeaderKeys:["x-to-function-name"],config:t});return Nn({url:s,data:n,method:i,headers:o}).then((e=>({errCode:0,success:!0,requestId:e.requestId,result:e.data}))).catch((e=>{throw new Qt({code:e.errCode,message:e.errMsg,requestId:e.requestId})}))}(e,this.config)}uploadFileToOSS({url:e,filePath:t,fileType:a,formData:n,onUploadProgress:i}){return new Promise(((s,o)=>{const r=Zt.uploadFile({url:e,filePath:t,fileType:a,formData:n,name:"file",success(e){e&&e.statusCode<400?s(e):o(new Qt({code:"UPLOAD_FAILED",message:"文件上传失败"}))},fail(e){o(new Qt({code:e.code||"UPLOAD_FAILED",message:e.message||e.errMsg||"文件上传失败"}))}});"function"==typeof i&&r&&"function"==typeof r.onProgressUpdate&&r.onProgressUpdate((e=>{i({loaded:e.totalBytesSent,total:e.totalBytesExpectedToSend})}))}))}async uploadFile({filePath:e,cloudPath:t="",fileType:a="image",onUploadProgress:n}){if("string"!==gt(t))throw new Qt({code:"INVALID_PARAM",message:"cloudPath必须为字符串类型"});if(!(t=t.trim()))throw new Qt({code:"INVALID_PARAM",message:"cloudPath不可为空"});if(/:\/\//.test(t))throw new Qt({code:"INVALID_PARAM",message:"cloudPath不合法"});const i=await Vn({path:"/".concat(t.replace(/^\//,""),"?post_url")},this.config),{file_id:s,upload_url:o,form_data:r}=i,l=r&&r.reduce(((e,t)=>(e[t.key]=t.value,e)),{});return this.uploadFileToOSS({url:o,filePath:e,fileType:a,formData:l,onUploadProgress:n}).then((()=>({fileID:s})))}async getTempFileURL({fileList:e}){return new Promise(((t,a)=>{(!e||e.length<0)&&a(new Qt({errCode:"INVALID_PARAM",errMsg:"fileList不能为空数组"})),e.length>50&&a(new Qt({errCode:"INVALID_PARAM",errMsg:"fileList数组长度不能超过50"}));const n=[];for(const i of e){"string"!==gt(i)&&a(new Qt({errCode:"INVALID_PARAM",errMsg:"fileList的元素必须是非空的字符串"}));const e=Cn.call(this,i);n.push({file_id:e,expire:600})}Vn({path:"/?download_url",data:{file_list:n},method:"POST"},this.config).then((e=>{const{file_list:a=[]}=e;t({fileList:a.map((e=>({fileID:Tn.call(this,e.file_id),tempFileURL:e.download_url})))})})).catch((e=>a(e)))}))}}(e);return t.auth=function(){return{signInAnonymously:function(){return Promise.resolve()},getLoginState:function(){return Promise.resolve(!0)}}},t}};function Bn({data:e}){let t;t=oa();const a=JSON.parse(JSON.stringify(e||{}));if(Object.assign(a,{clientInfo:t}),!a.uniIdToken){const{token:e}=ea();e&&(a.uniIdToken=e)}return a}const In=[{rule:/fc_function_not_found|FUNCTION_NOT_FOUND/,content:",云函数[{functionName}]在云端不存在,请检查此云函数名称是否正确以及该云函数是否已上传到服务空间",mode:"append"}];var Pn=/[\\^$.*+?()[\]{}|]/g,An=RegExp(Pn.source);function Mn(e,t,a){return e.replace(new RegExp((n=t)&&An.test(n)?n.replace(Pn,"\\$&"):n,"g"),a);var n}const Rn=2e4,Ln={code:20101,message:"Invalid client"};function On(e){const{errSubject:t,subject:a,errCode:n,errMsg:i,code:s,message:o,cause:r}=e||{};return new Qt({subject:t||a||"uni-secure-network",code:n||s||Rn,message:i||o,cause:r})}let Fn;function $n({secretType:e}={}){return"request"===e||"response"===e||"both"===e}function jn({name:e,data:t={}}={}){return"DCloud-clientDB"===e&&"encryption"===t.redirectTo&&"getAppClientKey"===t.action}function Un({functionName:e,result:t,logPvd:a}){}function zn(e){const t=e.callFunction,a=function(a){const n=a.name;a.data=Bn.call(e,{data:a.data});const i={aliyun:"aliyun",tencent:"tcb",tcb:"tcb",alipay:"alipay"}[this.config.provider],s=$n(a),o=jn(a),r=s||o;return t.call(this,a).then((e=>(e.errCode=0,!r&&Un.call(this,{functionName:n,result:e,logPvd:i}),Promise.resolve(e))),(e=>(!r&&Un.call(this,{functionName:n,result:e,logPvd:i}),e&&e.message&&(e.message=function({message:e="",extraInfo:t={},formatter:a=[]}={}){for(let n=0;na.provider===e&&a.spaceId===t));return n&&n.config}({provider:e,spaceId:t});if(!r||!r.accessControl||!r.accessControl.enable)return!1;const l=r.accessControl.function||{},c=Object.keys(l);if(0===c.length)return!0;const d=function(e,t){let a,n,i;for(let s=0;se.trim())).indexOf(t)>-1&&(n=o):i=o:a=o}return a||n||i}(c,a);if(!d)return!1;if((l[d]||[]).find(((e={})=>e.appId===n&&(e.platform||"").toLowerCase()===o.toLowerCase())))return!0;throw console.error(`此应用[appId: ${n}, platform: ${o}]不在云端配置的允许访问的应用列表内,参考:https://uniapp.dcloud.net.cn/uniCloud/secure-network.html#verify-client`),On(Ln)}({provider:n,spaceId:i,functionName:s})?new Fn({secretType:t.secretType,uniCloudIns:e}).wrapVerifyClientCallFunction(a.bind(e))(t):o(t),Object.defineProperty(r,"result",{get:()=>(console.warn("当前返回结果为Promise类型,不可直接访问其result属性,详情请参考:https://uniapp.dcloud.net.cn/uniCloud/faq?id=promise"),{})}),r.then((e=>("undefined"!=typeof UTSJSONObject&&(e.result=new UTSJSONObject(e.result)),e)))}}Fn=class{constructor(){throw On({message:"Platform app is not enabled, please check whether secure network module is enabled in your manifest.json"})}};const Hn=Symbol("CLIENT_DB_INTERNAL");function qn(e,t){return e.then="DoNotReturnProxyWithAFunctionNamedThen",e._internalType=Hn,e.inspect=null,e.__v_raw=void 0,new Proxy(e,{get(e,a,n){if("_uniClient"===a)return null;if("symbol"==typeof a)return e[a];if(a in e||"string"!=typeof a){const t=e[a];return"function"==typeof t?t.bind(e):t}return t.get(e,a,n)}})}function Jn(e){return{on:(t,a)=>{e[t]=e[t]||[],e[t].indexOf(a)>-1||e[t].push(a)},off:(t,a)=>{e[t]=e[t]||[];const n=e[t].indexOf(a);-1!==n&&e[t].splice(n,1)}}}const Wn=["db.Geo","db.command","command.aggregate"];function Yn(e,t){return Wn.indexOf(`${e}.${t}`)>-1}function Kn(e){switch(gt(e=Xt(e))){case"array":return e.map((e=>Kn(e)));case"object":return e._internalType===Hn||Object.keys(e).forEach((t=>{e[t]=Kn(e[t])})),e;case"regexp":return{$regexp:{source:e.source,flags:e.flags}};case"date":return{$date:e.toISOString()};default:return e}}function Gn(e){return e&&e.content&&e.content.$method}class Qn{constructor(e,t,a){this.content=e,this.prevStage=t||null,this.udb=null,this._database=a}toJSON(){let e=this;const t=[e.content];for(;e.prevStage;)e=e.prevStage,t.push(e.content);return{$db:t.reverse().map((e=>({$method:e.$method,$param:Kn(e.$param)})))}}toString(){return JSON.stringify(this.toJSON())}getAction(){const e=this.toJSON().$db.find((e=>"action"===e.$method));return e&&e.$param&&e.$param[0]}getCommand(){return{$db:this.toJSON().$db.filter((e=>"action"!==e.$method))}}get isAggregate(){let e=this;for(;e;){const t=Gn(e),a=Gn(e.prevStage);if("aggregate"===t&&"collection"===a||"pipeline"===t)return!0;e=e.prevStage}return!1}get isCommand(){let e=this;for(;e;){if("command"===Gn(e))return!0;e=e.prevStage}return!1}get isAggregateCommand(){let e=this;for(;e;){const t=Gn(e),a=Gn(e.prevStage);if("aggregate"===t&&"command"===a)return!0;e=e.prevStage}return!1}getNextStageFn(e){const t=this;return function(){return Zn({$method:e,$param:Kn(Array.from(arguments))},t,t._database)}}get count(){return this.isAggregate?this.getNextStageFn("count"):function(){return this._send("count",Array.from(arguments))}}get remove(){return this.isCommand?this.getNextStageFn("remove"):function(){return this._send("remove",Array.from(arguments))}}get(){return this._send("get",Array.from(arguments))}get add(){return this.isCommand?this.getNextStageFn("add"):function(){return this._send("add",Array.from(arguments))}}update(){return this._send("update",Array.from(arguments))}end(){return this._send("end",Array.from(arguments))}get set(){return this.isCommand?this.getNextStageFn("set"):function(){throw new Error("JQL禁止使用set方法")}}_send(e,t){const a=this.getAction(),n=this.getCommand();return n.$db.push({$method:e,$param:Kn(t)}),this._database._callCloudFunction({action:a,command:n})}}function Zn(e,t,a){return qn(new Qn(e,t,a),{get(e,t){let n="db";return e&&e.content&&(n=e.content.$method),Yn(n,t)?Zn({$method:t},e,a):function(){return Zn({$method:t,$param:Kn(Array.from(arguments))},e,a)}}})}function Xn({path:e,method:t}){return class{constructor(){this.param=Array.from(arguments)}toJSON(){return{$newDb:[...e.map((e=>({$method:e}))),{$method:t,$param:this.param}]}}toString(){return JSON.stringify(this.toJSON())}}}function ei(e,t={}){return qn(new e(t),{get:(e,t)=>Yn("db",t)?Zn({$method:t},null,e):function(){return Zn({$method:t,$param:Kn(Array.from(arguments))},null,e)}})}class ti extends class{constructor({uniClient:e={},isJQL:t=!1}={}){this._uniClient=e,this._authCallBacks={},this._dbCallBacks={},e._isDefault&&(this._dbCallBacks=Ct("_globalUniCloudDatabaseCallback")),t||(this.auth=Jn(this._authCallBacks)),this._isJQL=t,Object.assign(this,Jn(this._dbCallBacks)),this.env=qn({},{get:(e,t)=>({$env:t})}),this.Geo=qn({},{get:(e,t)=>Xn({path:["Geo"],method:t})}),this.serverDate=Xn({path:[],method:"serverDate"}),this.RegExp=Xn({path:[],method:"RegExp"})}getCloudEnv(e){if("string"!=typeof e||!e.trim())throw new Error("getCloudEnv参数错误");return{$env:e.replace("$cloudEnv_","")}}_callback(e,t){const a=this._dbCallBacks;a[e]&&a[e].forEach((e=>{e(...t)}))}_callbackAuth(e,t){const a=this._authCallBacks;a[e]&&a[e].forEach((e=>{e(...t)}))}multiSend(){const e=Array.from(arguments),t=e.map((e=>{const t=e.getAction(),a=e.getCommand();if("getTemp"!==a.$db[a.$db.length-1].$method)throw new Error("multiSend只支持子命令内使用getTemp");return{action:t,command:a}}));return this._callCloudFunction({multiCommand:t,queryList:e})}}{_parseResult(e){return this._isJQL?e.result:e}_callCloudFunction({action:e,command:t,multiCommand:a,queryList:n}){function i(e,t){if(a&&n)for(let a=0;aPt(At(o,"complete"),e))).then((()=>(i(null,e),Jt(Lt,{type:$t,content:e}),Promise.reject(e))))}const l=Pt(At(o,"invoke")),c=this._uniClient;return l.then((()=>c.callFunction({name:"DCloud-clientDB",type:"CLIENT_DB",data:{action:e,command:t,multiCommand:a}}))).then((e=>{const{code:t,message:a,token:n,tokenExpired:l,systemInfo:c=[]}=e.result;if(c)for(let i=0;i(console.warn(a),n)})}}return u=e,Pt(At(o,"success"),u).then((()=>Pt(At(o,"complete"),u))).then((()=>{i(u,null);const e=s._parseResult(u);return Jt(Lt,{type:$t,content:e}),Promise.resolve(e)}));var u}),(e=>(/fc_function_not_found|FUNCTION_NOT_FOUND/g.test(e.message)&&console.warn("clientDB未初始化,请在web控制台保存一次schema以开启clientDB"),r(new Qt({code:e.code||"SYSTEM_ERROR",message:e.message,requestId:e.requestId})))))}}const ai="token无效,跳转登录页面",ni="token过期,跳转登录页面",ii={TOKEN_INVALID_TOKEN_EXPIRED:ni,TOKEN_INVALID_INVALID_CLIENTID:ai,TOKEN_INVALID:ai,TOKEN_INVALID_WRONG_TOKEN:ai,TOKEN_INVALID_ANONYMOUS_USER:ai},si={"uni-id-token-expired":ni,"uni-id-check-token-failed":ai,"uni-id-token-not-exist":ai,"uni-id-check-device-feature-failed":ai};function oi(e,t){let a="";return a=e?`${e}/${t}`:t,a.replace(/^\//,"")}function ri(e=[],t=""){const a=[],n=[];return e.forEach((e=>{!0===e.needLogin?a.push(oi(t,e.path)):!1===e.needLogin&&n.push(oi(t,e.path))})),{needLoginPage:a,notNeedLoginPage:n}}function li(e){return e.split("?")[0].replace(/^\//,"")}function ci(){return function(e){let t=e&&e.$page&&e.$page.fullPath||"";return t?("/"!==t.charAt(0)&&(t="/"+t),t):t}(function(){const e=getCurrentPages();return e[e.length-1]}())}function di(){return li(ci())}function ui(e="",t={}){if(!e)return!1;if(!(t&&t.list&&t.list.length))return!1;const a=t.list,n=li(e);return a.some((e=>e.pagePath===n))}const hi=!!ot.uniIdRouter,{loginPage:mi,routerNeedLogin:pi,resToLogin:fi,needLoginPage:gi,notNeedLoginPage:yi,loginPageInTabBar:vi}=function({pages:e=[],subPackages:t=[],uniIdRouter:a={},tabBar:n={}}=ot){const{loginPage:i,needLogin:s=[],resToLogin:o=!0}=a,{needLoginPage:r,notNeedLoginPage:l}=ri(e),{needLoginPage:c,notNeedLoginPage:d}=function(e=[]){const t=[],a=[];return e.forEach((e=>{const{root:n,pages:i=[]}=e,{needLoginPage:s,notNeedLoginPage:o}=ri(i,n);t.push(...s),a.push(...o)})),{needLoginPage:t,notNeedLoginPage:a}}(t);return{loginPage:i,routerNeedLogin:s,resToLogin:o,needLoginPage:[...r,...c],notNeedLoginPage:[...l,...d],loginPageInTabBar:ui(i,n)}}();if(gi.indexOf(mi)>-1)throw new Error(`Login page [${mi}] should not be "needLogin", please check your pages.json`);function wi(e){const t=di();if("/"===e.charAt(0))return e;const[a,n]=e.split("?"),i=a.replace(/^\//,"").split("/"),s=t.split("/");s.pop();for(let o=0;o-1?n+`&uniIdRedirectUrl=${encodeURIComponent(i)}`:n+`?uniIdRedirectUrl=${encodeURIComponent(i)}`:n);var n,i;vi?"navigateTo"!==e&&"redirectTo"!==e||(e="switchTab"):"switchTab"===e&&(e="navigateTo");const s={navigateTo:uni.navigateTo,redirectTo:uni.redirectTo,switchTab:uni.switchTab,reLaunch:uni.reLaunch};setTimeout((()=>{s[e]({url:a})}),0)}function _i({url:e}={}){const t={abortLoginPageJump:!1,autoToLoginPage:!1},a=function(){const{token:e,tokenExpired:t}=ea();let a;if(e){if(t-1)&&(gi.indexOf(t)>-1||pi.some((t=>{return a=e,new RegExp(t).test(a);var a})))}(e)&&a){if(a.uniIdRedirectUrl=e,zt(Ot).length>0)return setTimeout((()=>{Jt(Ot,a)}),0),t.abortLoginPageJump=!0,t;t.autoToLoginPage=!0}return t}function Ei(){!function(){const e=ci(),{abortLoginPageJump:t,autoToLoginPage:a}=_i({url:e});t||a&&bi({api:"redirectTo",redirect:e})}();const e=["navigateTo","redirectTo","reLaunch","switchTab"];for(let t=0;t{const{type:t,content:a}=e;let n=!1;switch(t){case"cloudobject":n=function(e){if("object"!=typeof e)return!1;const{errCode:t}=e||{};return t in si}(a);break;case"clientdb":n=function(e){if("object"!=typeof e)return!1;const{errCode:t}=e||{};return t in ii}(a)}n&&function(e={}){const t=zt(Ot);Kt().then((()=>{const a=ci();if(a&&ki({redirect:a}))return t.length>0?Jt(Ot,Object.assign({uniIdRedirectUrl:a},e)):void(mi&&bi({api:"navigateTo",redirect:a}))}))}(a)}))}function xi(e){var t;(t=e).onResponse=function(e){Ht(Lt,e)},t.offResponse=function(e){qt(Lt,e)},function(e){e.onNeedLogin=function(e){Ht(Ot,e)},e.offNeedLogin=function(e){qt(Ot,e)},hi&&(Ct("_globalUniCloudStatus").needLoginInit||(Ct("_globalUniCloudStatus").needLoginInit=!0,Kt().then((()=>{Ei.call(e)})),fi&&Si.call(e)))}(e),function(e){e.onRefreshToken=function(e){Ht(Ft,e)},e.offRefreshToken=function(e){qt(Ft,e)}}(e)}let Ni;const Vi="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",Ci=/^(?:[A-Za-z\d+/]{4})*?(?:[A-Za-z\d+/]{2}(?:==)?|[A-Za-z\d+/]{3}=?)?$/;function Ti(){const e=ea().token||"",t=e.split(".");if(!e||3!==t.length)return{uid:null,role:[],permission:[],tokenExpired:0};let a;try{a=JSON.parse((n=t[1],decodeURIComponent(Ni(n).split("").map((function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)})).join(""))))}catch(i){throw new Error("获取当前用户信息出错,详细错误信息为:"+i.message)}var n;return a.tokenExpired=1e3*a.exp,delete a.exp,delete a.iat,a}Ni="function"!=typeof atob?function(e){if(e=String(e).replace(/[\t\n\f\r ]+/g,""),!Ci.test(e))throw new Error("Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded.");var t;e+="==".slice(2-(3&e.length));for(var a,n,i="",s=0;s>16&255):64===n?String.fromCharCode(t>>16&255,t>>8&255):String.fromCharCode(t>>16&255,t>>8&255,255&t);return i}:atob;var Di=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}(rt((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});const a="chooseAndUploadFile:ok",n="chooseAndUploadFile:fail";function i(e,t){return e.tempFiles.forEach(((e,a)=>{e.name||(e.name=e.path.substring(e.path.lastIndexOf("/")+1)),t&&(e.fileType=t),e.cloudPath=Date.now()+"_"+a+e.name.substring(e.name.lastIndexOf("."))})),e.tempFilePaths||(e.tempFilePaths=e.tempFiles.map((e=>e.path))),e}function s(e,t,{onChooseFile:n,onUploadProgress:i}){return t.then((e=>{if(n){const t=n(e);if(void 0!==t)return Promise.resolve(t).then((t=>void 0===t?e:t))}return e})).then((t=>!1===t?{errMsg:a,tempFilePaths:[],tempFiles:[]}:function(e,t,n=5,i){(t=Object.assign({},t)).errMsg=a;const s=t.tempFiles,o=s.length;let r=0;return new Promise((a=>{for(;r=o)return void(!s.find((e=>!e.url&&!e.errMsg))&&a(t));const c=s[n];e.uploadFile({provider:c.provider,filePath:c.path,cloudPath:c.cloudPath,fileType:c.fileType,cloudPathAsRealPath:c.cloudPathAsRealPath,onUploadProgress(e){e.index=n,e.tempFile=c,e.tempFilePath=c.path,i&&i(e)}}).then((e=>{c.url=e.fileID,n{c.errMsg=e.errMsg||e.message,n{uni.chooseImage({count:t,sizeType:a,sourceType:s,extension:o,success(t){e(i(t,"image"))},fail(e){r({errMsg:e.errMsg.replace("chooseImage:fail",n)})}})}))}(t),t):"video"===t.type?s(e,function(e){const{camera:t,compressed:a,maxDuration:s,sourceType:o=["album","camera"],extension:r}=e;return new Promise(((e,l)=>{uni.chooseVideo({camera:t,compressed:a,maxDuration:s,sourceType:o,extension:r,success(t){const{tempFilePath:a,duration:n,size:s,height:o,width:r}=t;e(i({errMsg:"chooseVideo:ok",tempFilePaths:[a],tempFiles:[{name:t.tempFile&&t.tempFile.name||"",path:a,size:s,type:t.tempFile&&t.tempFile.type||"",width:r,height:o,duration:n,fileType:"video",cloudPath:""}]},"video"))},fail(e){l({errMsg:e.errMsg.replace("chooseVideo:fail",n)})}})}))}(t),t):s(e,function(e){const{count:t,extension:a}=e;return new Promise(((e,s)=>{let o=uni.chooseFile;if("undefined"!=typeof wx&&"function"==typeof wx.chooseMessageFile&&(o=wx.chooseMessageFile),"function"!=typeof o)return s({errMsg:n+" 请指定 type 类型,该平台仅支持选择 image 或 video。"});o({type:"all",count:t,extension:a,success(t){e(i(t))},fail(e){s({errMsg:e.errMsg.replace("chooseFile:fail",n)})}})}))}(t),t)}}})));function Bi(e){return{props:{localdata:{type:Array,default:()=>[]},options:{type:[Object,Array],default:()=>({})},spaceInfo:{type:Object,default:()=>({})},collection:{type:[String,Array],default:""},action:{type:String,default:""},field:{type:String,default:""},orderby:{type:String,default:""},where:{type:[String,Object],default:""},pageData:{type:String,default:"add"},pageCurrent:{type:Number,default:1},pageSize:{type:Number,default:20},getcount:{type:[Boolean,String],default:!1},gettree:{type:[Boolean,String],default:!1},gettreepath:{type:[Boolean,String],default:!1},startwith:{type:String,default:""},limitlevel:{type:Number,default:10},groupby:{type:String,default:""},groupField:{type:String,default:""},distinct:{type:[Boolean,String],default:!1},foreignKey:{type:String,default:""},loadtime:{type:String,default:"auto"},manual:{type:Boolean,default:!1}},data:()=>({mixinDatacomLoading:!1,mixinDatacomHasMore:!1,mixinDatacomResData:[],mixinDatacomErrorMessage:"",mixinDatacomPage:{},mixinDatacomError:null}),created(){this.mixinDatacomPage={current:this.pageCurrent,size:this.pageSize,count:0},this.$watch((()=>{var e=[];return["pageCurrent","pageSize","localdata","collection","action","field","orderby","where","getont","getcount","gettree","groupby","groupField","distinct"].forEach((t=>{e.push(this[t])})),e}),((e,t)=>{if("manual"===this.loadtime)return;let a=!1;const n=[];for(let i=2;i{this.mixinDatacomLoading=!1;const{data:n,count:i}=a.result;this.getcount&&(this.mixinDatacomPage.count=i),this.mixinDatacomHasMore=n.length{this.mixinDatacomLoading=!1,this.mixinDatacomErrorMessage=e,this.mixinDatacomError=e,a&&a(e)})))},mixinDatacomGet(t={}){let a;t=t||{},a="undefined"!=typeof __uniX&&__uniX?e.databaseForJQL(this.spaceInfo):e.database(this.spaceInfo);const n=t.action||this.action;n&&(a=a.action(n));const i=t.collection||this.collection;a=Array.isArray(i)?a.collection(...i):a.collection(i);const s=t.where||this.where;s&&Object.keys(s).length&&(a=a.where(s));const o=t.field||this.field;o&&(a=a.field(o));const r=t.foreignKey||this.foreignKey;r&&(a=a.foreignKey(r));const l=t.groupby||this.groupby;l&&(a=a.groupBy(l));const c=t.groupField||this.groupField;c&&(a=a.groupField(c)),!0===(void 0!==t.distinct?t.distinct:this.distinct)&&(a=a.distinct());const d=t.orderby||this.orderby;d&&(a=a.orderBy(d));const u=void 0!==t.pageCurrent?t.pageCurrent:this.mixinDatacomPage.current,h=void 0!==t.pageSize?t.pageSize:this.mixinDatacomPage.size,m=void 0!==t.getcount?t.getcount:this.getcount,p=void 0!==t.gettree?t.gettree:this.gettree,f=void 0!==t.gettreepath?t.gettreepath:this.gettreepath,g={getCount:m},y={limitLevel:void 0!==t.limitlevel?t.limitlevel:this.limitlevel,startWith:void 0!==t.startwith?t.startwith:this.startwith};return p&&(g.getTree=y),f&&(g.getTreePath=y),a=a.skip(h*(u-1)).limit(h).get(g),a}}}}function Ii(e){return Ct("_globalUniCloudSecureNetworkCache__{spaceId}".replace("{spaceId}",e.config.spaceId))}async function Pi({openid:e,callLoginByWeixin:t=!1}={}){throw Ii(this),new Error("[SecureNetwork] API `initSecureNetworkByWeixin` is not supported on platform `app`")}async function Ai(e){const t=Ii(this);return t.initPromise||(t.initPromise=Pi.call(this,e).then((e=>e)).catch((e=>{throw delete t.initPromise,e}))),t.initPromise}function Mi(e){const t={getSystemInfo:uni.getSystemInfo,getPushClientId:uni.getPushClientId};return function(a){return new Promise(((n,i)=>{t[e]({...a,success(e){n(e)},fail(e){i(e)}})}))}}class Ri extends class{constructor(){this._callback={}}addListener(e,t){this._callback[e]||(this._callback[e]=[]),this._callback[e].push(t)}on(e,t){return this.addListener(e,t)}removeListener(e,t){if(!t)throw new Error('The "listener" argument must be of type function. Received undefined');const a=this._callback[e];if(!a)return;const n=function(e,t){for(let a=e.length-1;a>=0;a--)if(e[a]===t)return a;return-1}(a,t);a.splice(n,1)}off(e,t){return this.removeListener(e,t)}removeAllListener(e){delete this._callback[e]}emit(e,...t){const a=this._callback[e];if(a)for(let n=0;n{if(!e)throw new Error("Invalid appId, please check the manifest.json file");if(!t)throw new Error("Invalid push client id");this._appId=e,this._pushClientId=t,this._seqId=Date.now()+"-"+Math.floor(9e5*Math.random()+1e5),this.emit("open"),this._initMessageListener()}),(e=>{throw this.emit("error",e),this.close(),e}))}async open(){return this.init()}_isUniCloudSSE(e){if("receive"!==e.type)return!1;const t=e&&e.data&&e.data.payload;return!(!t||"UNI_CLOUD_SSE"!==t.channel||t.seqId!==this._seqId)}_receivePushMessage(e){if(!this._isUniCloudSSE(e))return;const t=e&&e.data&&e.data.payload,{action:a,messageId:n,message:i}=t;this._payloadQueue.push({action:a,messageId:n,message:i}),this._consumMessage()}_consumMessage(){for(;;){const e=this._payloadQueue.find((e=>e.messageId===this._currentMessageId+1));if(!e)break;this._currentMessageId++,this._parseMessagePayload(e)}}_parseMessagePayload(e){const{action:t,messageId:a,message:n}=e;"end"===t?this._end({messageId:a,message:n}):"message"===t&&this._appendMessage({messageId:a,message:n})}_appendMessage({messageId:e,message:t}={}){this.emit("message",t)}_end({messageId:e,message:t}={}){this.emit("end",t),this.close()}_initMessageListener(){uni.onPushMessage(this._uniPushMessageCallback)}_destroy(){uni.offPushMessage(this._uniPushMessageCallback)}toJSON(){return{appId:this._appId,pushClientId:this._pushClientId,seqId:this._seqId}}close(){this._destroy(),this.emit("close")}}const Li={tcb:bn,tencent:bn,aliyun:ua,private:En,alipay:Dn};let Oi=new class{init(e){let t={};const a=Li[e.provider];if(!a)throw new Error("未提供正确的provider参数");var n;return t=a.init(e),function(e){e._initPromiseHub||(e._initPromiseHub=new _t({createPromise:function(){let t=Promise.resolve();t=new Promise((e=>{setTimeout((()=>{e()}),1)}));const a=e.auth();return t.then((()=>a.getLoginState())).then((e=>e?Promise.resolve():a.signInAnonymously()))}}))}(t),zn(t),function(e){const t=e.uploadFile;e.uploadFile=function(e){return t.call(this,e)}}(t),(n=t).database=function(e){if(e&&Object.keys(e).length>0)return n.init(e).database();if(this._database)return this._database;const t=ei(ti,{uniClient:n});return this._database=t,t},n.databaseForJQL=function(e){if(e&&Object.keys(e).length>0)return n.init(e).databaseForJQL();if(this._databaseForJQL)return this._databaseForJQL;const t=ei(ti,{uniClient:n,isJQL:!0});return this._databaseForJQL=t,t},function(e){e.getCurrentUserInfo=Ti,e.chooseAndUploadFile=Di.initChooseAndUploadFile(e),Object.assign(e,{get mixinDatacom(){return Bi(e)}}),e.SSEChannel=Ri,e.initSecureNetworkByWeixin=function(e){return function({openid:t,callLoginByWeixin:a=!1}={}){return Ai.call(e,{openid:t,callLoginByWeixin:a})}}(e),e.importObject=function(t){return function(a,n={}){n=function(e,t={}){return e.customUI=t.customUI||e.customUI,e.parseSystemError=t.parseSystemError||e.parseSystemError,Object.assign(e.loadingOptions,t.loadingOptions),Object.assign(e.errorOptions,t.errorOptions),"object"==typeof t.secretMethods&&(e.secretMethods=t.secretMethods),e}({customUI:!1,loadingOptions:{title:"加载中...",mask:!0},errorOptions:{type:"modal",retry:!1}},n);const{customUI:i,loadingOptions:s,errorOptions:o,parseSystemError:r}=n,l=!i;return new Proxy({},{get(i,c){switch(c){case"toString":return"[object UniCloudObject]";case"toJSON":return{}}return function({fn:e,interceptorName:t,getCallbackArgs:a}={}){return async function(...n){const i=a?a({params:n}):{};let s,o;try{return await Pt(At(t,"invoke"),{...i}),s=await e(...n),await Pt(At(t,"success"),{...i,result:s}),s}catch(r){throw o=r,await Pt(At(t,"fail"),{...i,error:o}),o}finally{await Pt(At(t,"complete"),o?{...i,error:o}:{...i,result:s})}}}({fn:async function i(...d){let u;l&&uni.showLoading({title:s.title,mask:s.mask});const h={name:a,type:"OBJECT",data:{method:c,params:d}};"object"==typeof n.secretMethods&&function(e,t){const a=t.data.method,n=e.secretMethods||{},i=n[a]||n["*"];i&&(t.secretType=i)}(n,h);let m=!1;try{u=await t.callFunction(h)}catch(e){m=!0,u={result:new Qt(e)}}const{errSubject:p,errCode:f,errMsg:g,newToken:y}=u.result||{};if(l&&uni.hideLoading(),y&&y.token&&y.tokenExpired&&(ta(y),Jt(Ft,{...y})),f){let e=g;if(m&&r&&(e=(await r({objectName:a,methodName:c,params:d,errSubject:p,errCode:f,errMsg:g})).errMsg||g),l)if("toast"===o.type)uni.showToast({title:e,icon:"none"});else{if("modal"!==o.type)throw new Error(`Invalid errorOptions.type: ${o.type}`);{const{confirm:t}=await async function({title:e,content:t,showCancel:a,cancelText:n,confirmText:i}={}){return new Promise(((s,o)=>{uni.showModal({title:e,content:t,showCancel:a,cancelText:n,confirmText:i,success(e){s(e)},fail(){s({confirm:!1,cancel:!0})}})}))}({title:"提示",content:e,showCancel:o.retry,cancelText:"取消",confirmText:o.retry?"重试":"确定"});if(o.retry&&t)return i(...d)}}const t=new Qt({subject:p,code:f,message:g,requestId:u.requestId});throw t.detail=u.result,Jt(Lt,{type:Ut,content:t}),t}return Jt(Lt,{type:Ut,content:u.result}),u.result},interceptorName:"callObject",getCallbackArgs:function({params:e}={}){return{objectName:a,methodName:c,params:e}}})}})}}(e)}(t),["callFunction","uploadFile","deleteFile","getTempFileURL","downloadFile","chooseAndUploadFile"].forEach((e=>{if(!t[e])return;const a=t[e];t[e]=function(){return a.apply(t,Array.from(arguments))},t[e]=function(e,t){return function(a){let n=!1;if("callFunction"===t){const e=a&&a.type||mt;n=e!==mt}const i="callFunction"===t&&!n,s=this._initPromiseHub.exec();a=a||{};const{success:o,fail:r,complete:l}=Gt(a),c=s.then((()=>n?Promise.resolve():Pt(At(t,"invoke"),a))).then((()=>e.call(this,a))).then((e=>n?Promise.resolve(e):Pt(At(t,"success"),e).then((()=>Pt(At(t,"complete"),e))).then((()=>(i&&Jt(Lt,{type:jt,content:e}),Promise.resolve(e))))),(e=>n?Promise.reject(e):Pt(At(t,"fail"),e).then((()=>Pt(At(t,"complete"),e))).then((()=>(Jt(Lt,{type:jt,content:e}),Promise.reject(e))))));if(!(o||r||l))return c;c.then((e=>{o&&o(e),l&&l(e),i&&Jt(Lt,{type:jt,content:e})}),(e=>{r&&r(e),l&&l(e),i&&Jt(Lt,{type:jt,content:e})}))}}(t[e],e).bind(t)})),t.init=this.init,t}};(()=>{const e=xt;let t={};if(e&&1===e.length)t=e[0],Oi=Oi.init(t),Oi._isDefault=!0;else{const t=["auth","callFunction","uploadFile","deleteFile","getTempFileURL","downloadFile","database","getCurrentUSerInfo","importObject"];let a;a=e&&e.length>0?"应用有多个服务空间,请通过uniCloud.init方法指定要使用的服务空间":"应用未关联服务空间,请在uniCloud目录右键关联服务空间",t.forEach((e=>{Oi[e]=function(){return console.error(a),Promise.reject(new Qt({code:"SYS_ERR",message:a}))}}))}Object.assign(Oi,{get mixinDatacom(){return Bi(Oi)}}),xi(Oi),Oi.addInterceptor=Bt,Oi.removeInterceptor=It,Oi.interceptObject=Mt})();var Fi=Oi;const $i="chooseAndUploadFile:fail";function ji(e,t){return e.tempFiles.forEach(((e,a)=>{e.name||(e.name=e.path.substring(e.path.lastIndexOf("/")+1)),t&&(e.fileType=t),e.cloudPath=Date.now()+"_"+a+e.name.substring(e.name.lastIndexOf("."))})),e.tempFilePaths||(e.tempFilePaths=e.tempFiles.map((e=>e.path))),e}function Ui(e,t=5,a){const n=(e=JSON.parse(JSON.stringify(e))).length;let i=0,s=this;return new Promise((o=>{for(;i=n)return void(!e.find((e=>!e.url&&!e.errMsg))&&o(e));const l=e[t],c=s.files.findIndex((e=>e.uuid===l.uuid));l.url="",delete l.errMsg,Fi.uploadFile({filePath:l.path,cloudPath:l.cloudPath,fileType:l.fileType,onUploadProgress:e=>{e.index=c,a&&a(e)}}).then((e=>{l.url=e.fileID,l.index=c,t{l.errMsg=e.errMsg||e.message,l.index=c,t{if(t){const a=t(e);if(void 0!==a)return Promise.resolve(a).then((t=>void 0===t?e:t))}return e})).then((e=>!1===e?{errMsg:"chooseAndUploadFile:ok",tempFilePaths:[],tempFiles:[]}:e))}function Hi(e={type:"all"}){return"image"===e.type?zi(function(e){const{count:t,sizeType:a=["original","compressed"],sourceType:n,extension:i}=e;return new Promise(((e,s)=>{uni.chooseImage({count:t,sizeType:a,sourceType:n,extension:i,success(t){e(ji(t,"image"))},fail(e){s({errMsg:e.errMsg.replace("chooseImage:fail",$i)})}})}))}(e),e):"video"===e.type?zi(function(e){const{count:t,camera:a,compressed:n,maxDuration:i,sourceType:s,extension:o}=e;return new Promise(((e,t)=>{uni.chooseVideo({camera:a,compressed:n,maxDuration:i,sourceType:s,extension:o,success(t){const{tempFilePath:a,duration:n,size:i,height:s,width:o}=t;e(ji({errMsg:"chooseVideo:ok",tempFilePaths:[a],tempFiles:[{name:t.tempFile&&t.tempFile.name||"",path:a,size:i,type:t.tempFile&&t.tempFile.type||"",width:o,height:s,duration:n,fileType:"video",cloudPath:""}]},"video"))},fail(e){t({errMsg:e.errMsg.replace("chooseVideo:fail",$i)})}})}))}(e),e):zi(function(e){const{count:t,extension:a}=e;return new Promise(((e,n)=>{let i=uni.chooseFile;if("undefined"!=typeof wx&&"function"==typeof wx.chooseMessageFile&&(i=wx.chooseMessageFile),"function"!=typeof i)return n({errMsg:$i+" 请指定 type 类型,该平台仅支持选择 image 或 video。"});i({type:"all",count:t,extension:a,success(t){e(ji(t))},fail(e){n({errMsg:e.errMsg.replace("chooseFile:fail",$i)})}})}))}(e),e)}const qi=e=>{const t=e.lastIndexOf("."),a=e.length;return{name:e.substring(0,t),ext:e.substring(t+1,a)}},Ji=e=>{if(Array.isArray(e))return e;return e.replace(/(\[|\])/g,"").split(",")},Wi=async(e,t="image")=>{const a=qi(e.name).ext.toLowerCase();let n={name:e.name,uuid:e.uuid,extname:a||"",cloudPath:e.cloudPath,fileType:e.fileType,thumbTempFilePath:e.thumbTempFilePath,url:e.path||e.path,size:e.size,image:{},path:e.path,video:{}};if("image"===t){const t=await(i=e.path,new Promise(((e,t)=>{uni.getImageInfo({src:i,success(t){e(t)},fail(e){t(e)}})})));delete n.video,n.image.width=t.width,n.image.height=t.height,n.image.location=t.path}else delete n.image;var i;return n};const Yi=q({name:"uniFilePicker",components:{uploadImage:q({name:"uploadImage",emits:["uploadFiles","choose","delFile"],props:{filesList:{type:Array,default:()=>[]},disabled:{type:Boolean,default:!1},disablePreview:{type:Boolean,default:!1},limit:{type:[Number,String],default:9},imageStyles:{type:Object,default:()=>({width:"auto",height:"auto",border:{}})},delIcon:{type:Boolean,default:!0},readonly:{type:Boolean,default:!1}},computed:{styles(){return Object.assign({width:"auto",height:"auto",border:{}},this.imageStyles)},boxStyle(){const{width:e="auto",height:t="auto"}=this.styles;let a={};"auto"===t?"auto"!==e?(a.height=this.value2px(e),a["padding-top"]=0):a.height=0:(a.height=this.value2px(t),a["padding-top"]=0),a.width="auto"===e?"auto"!==t?this.value2px(t):"33.3%":this.value2px(e);let n="";for(let i in a)n+=`${i}:${a[i]};`;return n},borderStyle(){let{border:e}=this.styles,t={};if("boolean"==typeof e)t.border=e?"1px #eee solid":"none";else{let a=e&&e.width||1;a=this.value2px(a);let n=e&&e.radius||3;n=this.value2px(n),t={"border-width":a,"border-style":e&&e.style||"solid","border-color":e&&e.color||"#eee","border-radius":n}}let a="";for(let n in t)a+=`${n}:${t[n]};`;return a}},methods:{uploadFiles(e,t){this.$emit("uploadFiles",e)},choose(){this.$emit("choose")},delFile(e){this.$emit("delFile",e)},prviewImage(e,t){let a=[];1===Number(this.limit)&&this.disablePreview&&!this.disabled&&this.$emit("choose"),this.disablePreview||(this.filesList.forEach((e=>{a.push(e.url)})),uni.previewImage({urls:a,current:t}))},value2px:e=>("number"==typeof e?e+="px":-1===e.indexOf("%")&&(e=-1!==e.indexOf("px")?e:e+"px"),e)}},[["render",function(t,a,n,i,s,o){return e.openBlock(),e.createElementBlock("view",{class:"uni-file-picker__container"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.filesList,((t,a)=>(e.openBlock(),e.createElementBlock("view",{class:"file-picker__box",key:a,style:e.normalizeStyle(o.boxStyle)},[e.createElementVNode("view",{class:"file-picker__box-content",style:e.normalizeStyle(o.borderStyle)},[e.createElementVNode("image",{class:"file-image",src:t.url,mode:"aspectFill",onClick:e.withModifiers((e=>o.prviewImage(t,a)),["stop"])},null,8,["src","onClick"]),n.delIcon&&!n.readonly?(e.openBlock(),e.createElementBlock("view",{key:0,class:"icon-del-box",onClick:e.withModifiers((e=>o.delFile(a)),["stop"])},[e.createElementVNode("view",{class:"icon-del"}),e.createElementVNode("view",{class:"icon-del rotate"})],8,["onClick"])):e.createCommentVNode("",!0),t.progress&&100!==t.progress||0===t.progress?(e.openBlock(),e.createElementBlock("view",{key:1,class:"file-picker__progress"},[e.createElementVNode("progress",{class:"file-picker__progress-item",percent:-1===t.progress?0:t.progress,"stroke-width":"4",backgroundColor:t.errMsg?"#ff5a5f":"#EBEBEB"},null,8,["percent","backgroundColor"])])):e.createCommentVNode("",!0),t.errMsg?(e.openBlock(),e.createElementBlock("view",{key:2,class:"file-picker__mask",onClick:e.withModifiers((e=>o.uploadFiles(t,a)),["stop"])}," 点击重试 ",8,["onClick"])):e.createCommentVNode("",!0)],4)],4)))),128)),n.filesList.lengtho.choose&&o.choose(...e))},[e.renderSlot(t.$slots,"default",{},(()=>[e.createElementVNode("view",{class:"icon-add"}),e.createElementVNode("view",{class:"icon-add rotate"})]),!0)],4)],4)):e.createCommentVNode("",!0)])}],["__scopeId","data-v-86b162f5"]]),uploadFile:q({name:"uploadFile",emits:["uploadFiles","choose","delFile"],props:{filesList:{type:Array,default:()=>[]},delIcon:{type:Boolean,default:!0},limit:{type:[Number,String],default:9},showType:{type:String,default:""},listStyles:{type:Object,default:()=>({border:!0,dividline:!0,borderStyle:{}})},readonly:{type:Boolean,default:!1}},computed:{list(){let e=[];return this.filesList.forEach((t=>{e.push(t)})),e},styles(){return Object.assign({border:!0,dividline:!0,"border-style":{}},this.listStyles)},borderStyle(){let{borderStyle:e,border:t}=this.styles,a={};if(t){let t=e&&e.width||1;t=this.value2px(t);let n=e&&e.radius||5;n=this.value2px(n),a={"border-width":t,"border-style":e&&e.style||"solid","border-color":e&&e.color||"#eee","border-radius":n}}else a.border="none";let n="";for(let i in a)n+=`${i}:${a[i]};`;return n},borderLineStyle(){let e={},{borderStyle:t}=this.styles;if(t&&t.color&&(e["border-color"]=t.color),t&&t.width){let a=t&&t.width||1,n=t&&t.style||0;"number"==typeof a?a+="px":a=a.indexOf("px")?a:a+"px",e["border-width"]=a,"number"==typeof n?n+="px":n=n.indexOf("px")?n:n+"px",e["border-top-style"]=n}let a="";for(let n in e)a+=`${n}:${e[n]};`;return a}},methods:{uploadFiles(e,t){this.$emit("uploadFiles",{item:e,index:t})},choose(){this.$emit("choose")},delFile(e){this.$emit("delFile",e)},value2px:e=>("number"==typeof e?e+="px":e=-1!==e.indexOf("px")?e:e+"px",e)}},[["render",function(t,a,n,i,s,o){return e.openBlock(),e.createElementBlock("view",{class:"uni-file-picker__files"},[n.readonly?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("view",{key:0,class:"files-button",onClick:a[0]||(a[0]=(...e)=>o.choose&&o.choose(...e))},[e.renderSlot(t.$slots,"default",{},void 0,!0)])),o.list.length>0?(e.openBlock(),e.createElementBlock("view",{key:1,class:"uni-file-picker__lists is-text-box",style:e.normalizeStyle(o.borderStyle)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.list,((t,a)=>(e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass(["uni-file-picker__lists-box",{"files-border":0!==a&&o.styles.dividline}]),key:a,style:e.normalizeStyle(0!==a&&o.styles.dividline&&o.borderLineStyle)},[e.createElementVNode("view",{class:"uni-file-picker__item"},[e.createElementVNode("view",{class:"files__name"},e.toDisplayString(t.name),1),n.delIcon&&!n.readonly?(e.openBlock(),e.createElementBlock("view",{key:0,class:"icon-del-box icon-files",onClick:e=>o.delFile(a)},[e.createElementVNode("view",{class:"icon-del icon-files"}),e.createElementVNode("view",{class:"icon-del rotate"})],8,["onClick"])):e.createCommentVNode("",!0)]),t.progress&&100!==t.progress||0===t.progress?(e.openBlock(),e.createElementBlock("view",{key:0,class:"file-picker__progress"},[e.createElementVNode("progress",{class:"file-picker__progress-item",percent:-1===t.progress?0:t.progress,"stroke-width":"4",backgroundColor:t.errMsg?"#ff5a5f":"#EBEBEB"},null,8,["percent","backgroundColor"])])):e.createCommentVNode("",!0),"error"===t.status?(e.openBlock(),e.createElementBlock("view",{key:1,class:"file-picker__mask",onClick:e.withModifiers((e=>o.uploadFiles(t,a)),["stop"])}," 点击重试 ",8,["onClick"])):e.createCommentVNode("",!0)],6)))),128))],4)):e.createCommentVNode("",!0)])}],["__scopeId","data-v-e61666c7"]])},options:{virtualHost:!0},emits:["select","success","fail","progress","delete","update:modelValue","input"],props:{modelValue:{type:[Array,Object],default:()=>[]},value:{type:[Array,Object],default:()=>[]},disabled:{type:Boolean,default:!1},disablePreview:{type:Boolean,default:!1},delIcon:{type:Boolean,default:!0},autoUpload:{type:Boolean,default:!0},limit:{type:[Number,String],default:9},mode:{type:String,default:"grid"},fileMediatype:{type:String,default:"image"},fileExtname:{type:[Array,String],default:()=>[]},title:{type:String,default:""},listStyles:{type:Object,default:()=>({border:!0,dividline:!0,borderStyle:{}})},imageStyles:{type:Object,default:()=>({width:"auto",height:"auto"})},readonly:{type:Boolean,default:!1},returnType:{type:String,default:"array"},sizeType:{type:Array,default:()=>["original","compressed"]},sourceType:{type:Array,default:()=>["album","camera"]},provider:{type:String,default:""}},data:()=>({files:[],localValue:[]}),watch:{value:{handler(e,t){this.setValue(e,t)},immediate:!0},modelValue:{handler(e,t){this.setValue(e,t)},immediate:!0}},computed:{filesList(){let e=[];return this.files.forEach((t=>{e.push(t)})),e},showType(){return"image"===this.fileMediatype?this.mode:"list"},limitLength(){return"object"===this.returnType?1:this.limit?this.limit>=9?9:this.limit:1}},created(){Fi.config&&Fi.config.provider||(this.noSpace=!0,Fi.chooseAndUploadFile=Hi),this.form=this.getForm("uniForms"),this.formItem=this.getForm("uniFormsItem"),this.form&&this.formItem&&this.formItem.name&&(this.rename=this.formItem.name,this.form.inputChildrens.push(this))},methods:{clearFiles(e){0===e||e?this.files.splice(e,1):(this.files=[],this.$nextTick((()=>{this.setEmit()}))),this.$nextTick((()=>{this.setEmit()}))},upload(){let e=[];return this.files.forEach(((t,a)=>{"ready"!==t.status&&"error"!==t.status||e.push(Object.assign({},t))})),this.uploadFiles(e)},async setValue(e,t){const a=async e=>{let t="";return t=e.fileID?e.fileID:e.url,/cloud:\/\/([\w.]+\/?)\S*/.test(t)&&(e.fileID=t,e.url=await this.getTempFileURL(t)),e.url&&(e.path=e.url),e};if("object"===this.returnType)e?await a(e):e={};else{e||(e=[]);for(let t=0;t0?e:[];this.files=[].concat(n)},choose(){this.disabled||(this.files.length>=Number(this.limitLength)&&"grid"!==this.showType&&"array"===this.returnType?uni.showToast({title:`您最多选择 ${this.limitLength} 个文件`,icon:"none"}):this.chooseFiles())},chooseFiles(){const e=Ji(this.fileExtname);Fi.chooseAndUploadFile({type:this.fileMediatype,compressed:!1,sizeType:this.sizeType,sourceType:this.sourceType,extension:e.length>0?e:void 0,count:this.limitLength-this.files.length,onChooseFile:this.chooseFileCallback,onUploadProgress:e=>{this.setProgress(e,e.index)}}).then((e=>{this.setSuccessAndError(e.tempFiles)})).catch((e=>{t("log","at uni_modules/uni-file-picker/components/uni-file-picker/uni-file-picker.vue:364","选择失败",e)}))},async chooseFileCallback(e){const t=Ji(this.fileExtname);(1===Number(this.limitLength)&&this.disablePreview&&!this.disabled||"object"===this.returnType)&&(this.files=[]);let{filePaths:a,files:n}=((e,t)=>{let a=[],n=[];return t&&0!==t.length?(e.tempFiles.forEach((e=>{const i=qi(e.name).ext.toLowerCase();-1!==t.indexOf(i)&&(n.push(e),a.push(e.path))})),n.length!==e.tempFiles.length&&uni.showToast({title:`当前选择了${e.tempFiles.length}个文件 ,${e.tempFiles.length-n.length} 个文件格式不正确`,icon:"none",duration:5e3}),{filePaths:a,files:n}):{filePaths:a,files:n}})(e,t);t&&t.length>0||(a=e.tempFilePaths,n=e.tempFiles);let i=[];for(let s=0;s{this.provider&&(e.provider=this.provider);const a=e.name.split("."),n=a.pop(),i=a.join(".").replace(/[\s\/\?<>\\:\*\|":]/g,"_");e.cloudPath=i+"_"+Date.now()+"_"+t+"."+n}))},uploadFiles(e){return e=[].concat(e),Ui.call(this,e,5,(e=>{this.setProgress(e,e.index,!0)})).then((e=>(this.setSuccessAndError(e),e))).catch((e=>{t("log","at uni_modules/uni-file-picker/components/uni-file-picker/uni-file-picker.vue:437",e)}))},async setSuccessAndError(e,t){let a=[],n=[],i=[],s=[];for(let o=0;oe.uuid===t.uuid)):t.index;if(-1===r||!this.files)break;if("request:fail"===t.errMsg)this.files[r].url=t.path,this.files[r].status="error",this.files[r].errMsg=t.errMsg,n.push(this.files[r]),s.push(this.files[r].url);else{this.files[r].errMsg="",this.files[r].fileID=t.url;/cloud:\/\/([\w.]+\/?)\S*/.test(t.url)?this.files[r].url=await this.getTempFileURL(t.url):this.files[r].url=t.url,this.files[r].status="success",this.files[r].progress+=1,a.push(this.files[r]),i.push(this.files[r].fileID)}}a.length>0&&(this.setEmit(),this.$emit("success",{tempFiles:this.backObject(a),tempFilePaths:i})),n.length>0&&this.$emit("fail",{tempFiles:this.backObject(n),tempFilePaths:s})},setProgress(e,t,a){this.files.length;const n=Math.round(100*e.loaded/e.total);let i=t;a||(i=this.files.findIndex((t=>t.uuid===e.tempFile.uuid))),-1!==i&&this.files[i]&&(this.files[i].progress=n-1,this.$emit("progress",{index:i,progress:parseInt(n),tempFile:this.files[i]}))},delFile(e){this.$emit("delete",{index:e,tempFile:this.files[e],tempFilePath:this.files[e].url}),this.files.splice(e,1),this.$nextTick((()=>{this.setEmit()}))},getFileExt(e){const t=e.lastIndexOf("."),a=e.length;return{name:e.substring(0,t),ext:e.substring(t+1,a)}},setEmit(){let e=[];"object"===this.returnType?(e=this.backObject(this.files)[0],this.localValue=e||null):(e=this.backObject(this.files),this.localValue||(this.localValue=[]),this.localValue=[...e]),this.$emit("update:modelValue",this.localValue)},backObject(e){let t=[];return e.forEach((e=>{t.push({extname:e.extname,fileType:e.fileType,image:e.image,name:e.name,path:e.path,size:e.size,fileID:e.fileID,url:e.url,uuid:e.uuid,status:e.status,cloudPath:e.cloudPath})})),t},async getTempFileURL(e){e={fileList:[].concat(e)};return(await Fi.getTempFileURL(e)).fileList[0].tempFileURL||""},getForm(e="uniForms"){let t=this.$parent,a=t.$options.name;for(;a!==e;){if(t=t.$parent,!t)return!1;a=t.$options.name}return t}}},[["render",function(t,a,n,i,s,o){const r=e.resolveComponent("upload-image"),l=e.resolveComponent("upload-file");return e.openBlock(),e.createElementBlock("view",{class:"uni-file-picker"},[n.title?(e.openBlock(),e.createElementBlock("view",{key:0,class:"uni-file-picker__header"},[e.createElementVNode("text",{class:"file-title"},e.toDisplayString(n.title),1),e.createElementVNode("text",{class:"file-count"},e.toDisplayString(o.filesList.length)+"/"+e.toDisplayString(o.limitLength),1)])):e.createCommentVNode("",!0),"image"===n.fileMediatype&&"grid"===o.showType?(e.openBlock(),e.createBlock(r,{key:1,readonly:n.readonly,"image-styles":n.imageStyles,"files-list":o.filesList,limit:o.limitLength,disablePreview:n.disablePreview,delIcon:n.delIcon,onUploadFiles:o.uploadFiles,onChoose:o.choose,onDelFile:o.delFile},{default:e.withCtx((()=>[e.renderSlot(t.$slots,"default",{},(()=>[e.createElementVNode("view",{class:"is-add"},[e.createElementVNode("view",{class:"icon-add"}),e.createElementVNode("view",{class:"icon-add rotate"})])]),!0)])),_:3},8,["readonly","image-styles","files-list","limit","disablePreview","delIcon","onUploadFiles","onChoose","onDelFile"])):e.createCommentVNode("",!0),"image"!==n.fileMediatype||"grid"!==o.showType?(e.openBlock(),e.createBlock(l,{key:2,readonly:n.readonly,"list-styles":n.listStyles,"files-list":o.filesList,showType:o.showType,delIcon:n.delIcon,onUploadFiles:o.uploadFiles,onChoose:o.choose,onDelFile:o.delFile},{default:e.withCtx((()=>[e.renderSlot(t.$slots,"default",{},(()=>[e.createElementVNode("button",{type:"primary",size:"mini"},"选择文件")]),!0)])),_:3},8,["readonly","list-styles","files-list","showType","delIcon","onUploadFiles","onChoose","onDelFile"])):e.createCommentVNode("",!0)])}],["__scopeId","data-v-086f9922"]]);function Ki(e){let t="";for(let a in e){t+=`${a}:${e[a]};`}return t}const Gi=q({name:"uni-easyinput",emits:["click","iconClick","update:modelValue","input","focus","blur","confirm","clear","eyes","change","keyboardheightchange"],model:{prop:"modelValue",event:"update:modelValue"},options:{virtualHost:!0},inject:{form:{from:"uniForm",default:null},formItem:{from:"uniFormItem",default:null}},props:{name:String,value:[Number,String],modelValue:[Number,String],type:{type:String,default:"text"},clearable:{type:Boolean,default:!0},autoHeight:{type:Boolean,default:!1},placeholder:{type:String,default:" "},placeholderStyle:String,focus:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},maxlength:{type:[Number,String],default:140},confirmType:{type:String,default:"done"},clearSize:{type:[Number,String],default:24},inputBorder:{type:Boolean,default:!0},prefixIcon:{type:String,default:""},suffixIcon:{type:String,default:""},trim:{type:[Boolean,String],default:!1},cursorSpacing:{type:Number,default:0},passwordIcon:{type:Boolean,default:!0},adjustPosition:{type:Boolean,default:!0},primaryColor:{type:String,default:"#2979ff"},styles:{type:Object,default:()=>({color:"#333",backgroundColor:"#fff",disableColor:"#F7F6F6",borderColor:"#e5e5e5"})},errorMessage:{type:[String,Boolean],default:""}},data:()=>({focused:!1,val:"",showMsg:"",border:!1,isFirstBorder:!1,showClearIcon:!1,showPassword:!1,focusShow:!1,localMsg:"",isEnter:!1}),computed:{isVal(){const e=this.val;return!(!e&&0!==e)},msg(){return this.localMsg||this.errorMessage},inputMaxlength(){return Number(this.maxlength)},boxStyle(){return`color:${this.inputBorder&&this.msg?"#e43d33":this.styles.color};`},inputContentClass(){return function(e){let t="";for(let a in e)e[a]&&(t+=`${a} `);return t}({"is-input-border":this.inputBorder,"is-input-error-border":this.inputBorder&&this.msg,"is-textarea":"textarea"===this.type,"is-disabled":this.disabled,"is-focused":this.focusShow})},inputContentStyle(){const e=this.focusShow?this.primaryColor:this.styles.borderColor;return Ki({"border-color":(this.inputBorder&&this.msg?"#dd524d":e)||"#e5e5e5","background-color":this.disabled?this.styles.disableColor:this.styles.backgroundColor})},inputStyle(){return Ki({"padding-right":"password"===this.type||this.clearable||this.prefixIcon?"":"10px","padding-left":this.prefixIcon?"":"10px"})}},watch:{value(e){this.val=null!==e?e:""},modelValue(e){this.val=null!==e?e:""},focus(e){this.$nextTick((()=>{this.focused=this.focus,this.focusShow=this.focus}))}},created(){this.init(),this.form&&this.formItem&&this.$watch("formItem.errMsg",(e=>{this.localMsg=e}))},mounted(){this.$nextTick((()=>{this.focused=this.focus,this.focusShow=this.focus}))},methods:{init(){this.value||0===this.value?this.val=this.value:this.modelValue||0===this.modelValue||""===this.modelValue?this.val=this.modelValue:this.val=""},onClickIcon(e){this.$emit("iconClick",e)},onEyes(){this.showPassword=!this.showPassword,this.$emit("eyes",this.showPassword)},onInput(e){let t=e.detail.value;this.trim&&("boolean"==typeof this.trim&&this.trim&&(t=this.trimStr(t)),"string"==typeof this.trim&&(t=this.trimStr(t,this.trim))),this.errMsg&&(this.errMsg=""),this.val=t,this.$emit("input",t),this.$emit("update:modelValue",t)},onFocus(){this.$nextTick((()=>{this.focused=!0})),this.$emit("focus",null)},_Focus(e){this.focusShow=!0,this.$emit("focus",e)},onBlur(){this.focused=!1,this.$emit("blur",null)},_Blur(e){if(e.detail.value,this.focusShow=!1,this.$emit("blur",e),!1===this.isEnter&&this.$emit("change",this.val),this.form&&this.formItem){const{validateTrigger:e}=this.form;"blur"===e&&this.formItem.onFieldChange()}},onConfirm(e){this.$emit("confirm",this.val),this.isEnter=!0,this.$emit("change",this.val),this.$nextTick((()=>{this.isEnter=!1}))},onClear(e){this.val="",this.$emit("input",""),this.$emit("update:modelValue",""),this.$emit("clear")},onkeyboardheightchange(e){this.$emit("keyboardheightchange",e)},trimStr:(e,t="both")=>"both"===t?e.trim():"left"===t?e.trimLeft():"right"===t?e.trimRight():"start"===t?e.trimStart():"end"===t?e.trimEnd():"all"===t?e.replace(/\s+/g,""):e}},[["render",function(t,n,i,s,o,r){const l=a(e.resolveDynamicComponent("uni-icons"),Y);return e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass(["uni-easyinput",{"uni-easyinput-error":r.msg}]),style:e.normalizeStyle(r.boxStyle)},[e.createElementVNode("view",{class:e.normalizeClass(["uni-easyinput__content",r.inputContentClass]),style:e.normalizeStyle(r.inputContentStyle)},[i.prefixIcon?(e.openBlock(),e.createBlock(l,{key:0,class:"content-clear-icon",type:i.prefixIcon,color:"#c0c4cc",onClick:n[0]||(n[0]=e=>r.onClickIcon("prefix")),size:"22"},null,8,["type"])):e.createCommentVNode("",!0),e.renderSlot(t.$slots,"left",{},void 0,!0),"textarea"===i.type?(e.openBlock(),e.createElementBlock("textarea",{key:1,class:e.normalizeClass(["uni-easyinput__content-textarea",{"input-padding":i.inputBorder}]),name:i.name,value:o.val,placeholder:i.placeholder,placeholderStyle:i.placeholderStyle,disabled:i.disabled,"placeholder-class":"uni-easyinput__placeholder-class",maxlength:r.inputMaxlength,focus:o.focused,autoHeight:i.autoHeight,"cursor-spacing":i.cursorSpacing,"adjust-position":i.adjustPosition,onInput:n[1]||(n[1]=(...e)=>r.onInput&&r.onInput(...e)),onBlur:n[2]||(n[2]=(...e)=>r._Blur&&r._Blur(...e)),onFocus:n[3]||(n[3]=(...e)=>r._Focus&&r._Focus(...e)),onConfirm:n[4]||(n[4]=(...e)=>r.onConfirm&&r.onConfirm(...e)),onKeyboardheightchange:n[5]||(n[5]=(...e)=>r.onkeyboardheightchange&&r.onkeyboardheightchange(...e))},null,42,["name","value","placeholder","placeholderStyle","disabled","maxlength","focus","autoHeight","cursor-spacing","adjust-position"])):(e.openBlock(),e.createElementBlock("input",{key:2,type:"password"===i.type?"text":i.type,class:"uni-easyinput__content-input",style:e.normalizeStyle(r.inputStyle),name:i.name,value:o.val,password:!o.showPassword&&"password"===i.type,placeholder:i.placeholder,placeholderStyle:i.placeholderStyle,"placeholder-class":"uni-easyinput__placeholder-class",disabled:i.disabled,maxlength:r.inputMaxlength,focus:o.focused,confirmType:i.confirmType,"cursor-spacing":i.cursorSpacing,"adjust-position":i.adjustPosition,onFocus:n[6]||(n[6]=(...e)=>r._Focus&&r._Focus(...e)),onBlur:n[7]||(n[7]=(...e)=>r._Blur&&r._Blur(...e)),onInput:n[8]||(n[8]=(...e)=>r.onInput&&r.onInput(...e)),onConfirm:n[9]||(n[9]=(...e)=>r.onConfirm&&r.onConfirm(...e)),onKeyboardheightchange:n[10]||(n[10]=(...e)=>r.onkeyboardheightchange&&r.onkeyboardheightchange(...e))},null,44,["type","name","value","password","placeholder","placeholderStyle","disabled","maxlength","focus","confirmType","cursor-spacing","adjust-position"])),"password"===i.type&&i.passwordIcon?(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[r.isVal?(e.openBlock(),e.createBlock(l,{key:0,class:e.normalizeClass(["content-clear-icon",{"is-textarea-icon":"textarea"===i.type}]),type:o.showPassword?"eye-slash-filled":"eye-filled",size:22,color:o.focusShow?i.primaryColor:"#c0c4cc",onClick:r.onEyes},null,8,["class","type","color","onClick"])):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),i.suffixIcon?(e.openBlock(),e.createElementBlock(e.Fragment,{key:4},[i.suffixIcon?(e.openBlock(),e.createBlock(l,{key:0,class:"content-clear-icon",type:i.suffixIcon,color:"#c0c4cc",onClick:n[11]||(n[11]=e=>r.onClickIcon("suffix")),size:"22"},null,8,["type"])):e.createCommentVNode("",!0)],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:5},[i.clearable&&r.isVal&&!i.disabled&&"textarea"!==i.type?(e.openBlock(),e.createBlock(l,{key:0,class:e.normalizeClass(["content-clear-icon",{"is-textarea-icon":"textarea"===i.type}]),type:"clear",size:i.clearSize,color:r.msg?"#dd524d":o.focusShow?i.primaryColor:"#c0c4cc",onClick:r.onClear},null,8,["class","size","color","onClick"])):e.createCommentVNode("",!0)],64)),e.renderSlot(t.$slots,"right",{},void 0,!0)],6)],6)}],["__scopeId","data-v-d17898f6"]]);function Qi(e){return"string"==typeof e}function Zi(e,t=50){if(!Array.isArray(e)||!e.length)return e;const a=[];return e.forEach(((e,n)=>{const i=Math.floor(n/t);a[i]||(a[i]=[]),a[i].push(e)})),a}const Xi=q(e.defineComponent({__name:"data-select-item",props:{node:{type:Object,default:()=>({})},choseParent:{type:Boolean,default:!0},dataLabel:{type:String,default:"name"},dataValue:{type:String,default:"value"},dataChildren:{type:String,default:"children"},border:{type:Boolean,default:!1},linkage:{type:Boolean,default:!1},lazyLoadChildren:{type:Boolean,default:!1},level:{type:Number,default:0}},setup(t){const{nodeClick:n,nameClick:i,loadNode:s,initData:o,addNode:r}=e.inject("nodeFn"),l=t,c=e.ref([]),d=e.ref([]),u=e.ref([]);return e.watchEffect((()=>{l.node.showChildren&&l.node[l.dataChildren]&&l.node[l.dataChildren].length&&(function(){const e=[...d.value];d.value=[],e.forEach((e=>e()))}(),function(e){const t=Zi(e);c.value=(null==t?void 0:t[0])||[],function(e,t){for(let a=t;a{c.value.push(...e[a])}),500*a),d.push((()=>clearTimeout(t)))}}(t,1)}(l.node[l.dataChildren]))})),(d,h)=>{const m=a(e.resolveDynamicComponent("uni-icons"),Y);return e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass(["customthree-tree-select-content",{border:t.border&&t.node[t.dataChildren]&&t.node[t.dataChildren].length&&t.node.showChildren}]),style:e.normalizeStyle({marginLeft:(t.level?14:0)+"px"})},[t.node.visible?(e.openBlock(),e.createElementBlock("view",{key:0,class:"custom-tree-select-item"},[e.createElementVNode("view",{class:"item-content"},[e.createElementVNode("view",{class:"left",onClick:h[0]||(h[0]=e.withModifiers((e=>{var a,n;(a=t.node).visible&&(!(null==(n=a[l.dataChildren])?void 0:n.length)&&l.lazyLoadChildren?(u.value.push(a[l.dataValue].toString()),s(a).then((e=>{r(a,o(e,a.visible))})).finally((()=>{u.value=[]}))):i(a))}),["stop"]))},[e.createElementVNode("view",{class:"icon-group"},[t.node[t.dataChildren]&&t.node[t.dataChildren].length?(e.openBlock(),e.createElementBlock("view",{key:0,class:e.normalizeClass(["right-icon",{active:t.node.showChildren}])},[e.createVNode(m,{type:"right",size:"14",color:"#333"})],2)):(e.openBlock(),e.createElementBlock("view",{key:1,class:"smallcircle-filled"},[e.createVNode(m,{class:"smallcircle-filled-icon",type:"smallcircle-filled",size:"10",color:"#333"})]))]),u.value.includes(t.node[l.dataValue].toString())?(e.openBlock(),e.createElementBlock("view",{key:0,class:"loading-icon-box"},[e.createVNode(m,{class:"loading-icon",type:"spinner-cycle",size:"14",color:"#333"})])):e.createCommentVNode("",!0),e.createElementVNode("view",{class:"name",style:e.normalizeStyle(t.node.disabled?"color: #999":"")},[e.createElementVNode("text",null,e.toDisplayString(t.node[t.dataLabel]),1)],4)]),t.choseParent||!t.choseParent&&!t.node[t.dataChildren]||!t.choseParent&&t.node[t.dataChildren]&&!t.node[t.dataChildren].length?(e.openBlock(),e.createElementBlock("view",{key:0,class:e.normalizeClass(["check-box",{disabled:t.node.disabled}]),onClick:h[1]||(h[1]=e.withModifiers((a=>!t.node.disabled&&e.unref(n)(t.node)),["stop"]))},[!t.node.checked&&t.node.partChecked&&t.linkage?(e.openBlock(),e.createElementBlock("view",{key:0,class:"part-checked"})):e.createCommentVNode("",!0),t.node.checked?(e.openBlock(),e.createBlock(m,{key:1,type:"checkmarkempty",size:"18",color:t.node.disabled?"#333":"#007aff"},null,8,["color"])):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0)])])):e.createCommentVNode("",!0),t.node.showChildren&&t.node[t.dataChildren]&&t.node[t.dataChildren].length?(e.openBlock(),e.createElementBlock("view",{key:1},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,(a=>(e.openBlock(),e.createBlock(Xi,{key:a[t.dataValue],node:a,dataLabel:t.dataLabel,dataValue:t.dataValue,dataChildren:t.dataChildren,choseParent:t.choseParent,lazyLoadChildren:t.lazyLoadChildren,border:t.border,linkage:t.linkage,level:t.level+1},null,8,["node","dataLabel","dataValue","dataChildren","choseParent","lazyLoadChildren","border","linkage","level"])))),128))])):e.createCommentVNode("",!0)],6)}}}),[["__scopeId","data-v-b14c1821"]]),es=q(e.defineComponent({__name:"treeSelect",props:{canSelectAll:{type:Boolean,default:!1},safeArea:{type:Boolean,default:!0},search:{type:Boolean,default:!1},clearResetSearch:{type:Boolean,default:!1},animation:{type:Boolean,default:!0},"is-mask-click":{type:Boolean,default:!0},"mask-background-color":{type:String,default:"rgba(0,0,0,0.4)"},"background-color":{type:String,default:"none"},"safe-area":{type:Boolean,default:!0},choseParent:{type:Boolean,default:!1},placeholder:{type:String,default:"请选择"},confirmText:{type:String,default:"确认"},confirmTextColor:{type:String,default:"#007aff"},dataSource:{type:Array,default:()=>[]},dataLabel:{type:String,default:"name"},dataValue:{type:String,default:"id"},dataChildren:{type:String,default:"children"},linkage:{type:Boolean,default:!1},removeLinkage:{type:Boolean,default:!0},clearable:{type:Boolean,default:!1},mutiple:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},deleteSource:{type:Boolean,default:!1},showChildren:{type:Boolean,default:!1},border:{type:Boolean,default:!1},lazyLoadChildren:{type:Boolean,default:!1},load:{type:Function,default:function(){}},modelValue:{type:[Array,String],default:()=>[]}},emits:["update:modelValue","change","maskClick","select-change","removeSelect"],setup(t,{emit:n}){const i=t,s=n,o=e.ref("500px"),r=e.ref([]),l=e.ref([]),c=e.ref([]),d=e.ref([]),u=e.ref(!1),h=e.ref(!1),m=e.ref(0),p=e.ref(""),f=e.ref(null),g=new Set;e.provide("nodeFn",{nodeClick:B,nameClick:I,loadNode:i.load,initData:S,addNode:function(e,t){C(e,r.value)[i.dataChildren]=t,I(e)}});const y=e.computed((()=>{const e=null===i.modelValue?"":i.modelValue;return Qi(e)?e.length?e.split(","):[]:e.map((e=>e.toString()))}));function v(t=!1){x(),t?i.clearResetSearch&&N(r.value):N(w(p.value,r.value)),m.val=10,e.nextTick((()=>{m.value=0})),uni.hideKeyboard()}function w(e,t){const a=[];return t.forEach((t=>{var n,s;if(t.visible)if(t[i.dataLabel].toString().toLowerCase().indexOf(e.toLowerCase())>-1)a.push(t);else if(null==(n=t[i.dataChildren])?void 0:n.length){const n=w(e,t[i.dataChildren]);(null==n?void 0:n.length)&&(e&&!t.showChildren&&(null==(s=t[i.dataChildren])?void 0:s.length)&&(t.showChildren=!0),a.push({...t,[i.dataChildren]:n}))}})),a}async function k(){i.disabled||(u.value=!0,f.value.open(),N(r.value))}function b(){f.value.close()}function _(e){e.show||(x(),p.value="",u.value=!1),s("change",e)}function E(){s("maskClick")}function S(e,t){var a;if(!Array.isArray(e))return[];const n=[];for(let s=0;se()))}function N(e){const t=Zi(e);l.value=(null==t?void 0:t[0])||[],function(e,t){for(let a=t;a{l.value.push(...e[a])}),500*a),c.push((()=>clearTimeout(t)))}}(t,1)}function V(e,t,a=!1){var n;const o=[...e];let r=!0;for(a&&(d.value=[]);o.length;){const e=o.shift();t.includes(e[i.dataValue].toString())?(e.checked=!0,e.partChecked=!1,g.delete(e[i.dataValue]),a&&d.value.push(e)):(e.checked=!1,e.visible&&!e.disabled&&(r=!1),g.has(e[i.dataValue])?e.partChecked=!0:e.partChecked=!1),(null==(n=e[i.dataChildren])?void 0:n.length)&&o.push(...e[i.dataChildren])}h.value=r,a&&s("select-change",[...d.value])}function C(e,t){var a;const n=[...t];for(;n.length;){const t=n.shift();if(t[i.dataValue]===e[i.dataValue])return t;(null==(a=t[i.dataChildren])?void 0:a.length)&&n.push(...t[i.dataChildren])}return{}}function T(e){var t;if(!(null==(t=e[i.dataChildren])?void 0:t.length))return[];const a=e[i.dataChildren].reduce(((e,t)=>t.visible?[...e,t]:e),[]);for(let n=0;n!e.disabled));if(a.checked){if(e=Array.from(new Set([...e,a[i.dataValue].toString()])),n.length&&(e=Array.from(new Set([...e,...n.map((e=>e[i.dataValue].toString()))])),n.forEach((e=>{e.partChecked=!1,g.delete(e[i.dataValue])}))),t.length){let a=!1;for(;t.length;){const n=t.shift();if(!n.disabled)if(a)n.partChecked=!0,g.add(n[i.dataValue]);else{n[i.dataChildren].filter((e=>e.visible&&!e.disabled)).every((e=>e.checked))?(n.checked=!0,n.partChecked=!1,g.delete(n[i.dataValue]),e=Array.from(new Set([...e,n[i.dataValue].toString()]))):(n.partChecked=!0,g.add(n[i.dataValue]),a=!0)}}}}else e=e.filter((e=>e!==a[i.dataValue].toString())),n.length&&n.forEach((t=>{e=e.filter((e=>e!==t[i.dataValue].toString()))})),t.length&&t.forEach((t=>{e.includes(t[i.dataValue].toString())&&(t.checked=!1),e=e.filter((e=>e!==t[i.dataValue].toString()));const a=t[i.dataChildren].filter((e=>e.visible&&!e.disabled)).some((e=>e.checked||e.partChecked));t.partChecked=a,a?g.add(t[i.dataValue]):g.delete(t[i.dataValue])}));s("update:modelValue",Qi(i.modelValue)?e.join(","):e)}else{let e=null;e=a.checked?Array.from(new Set([...y.value,a[i.dataValue].toString()])):y.value.filter((e=>e!==a[i.dataValue].toString())),s("update:modelValue",Qi(i.modelValue)?e.join(","):e)}else{let e=[];a.checked&&(e=[a[i.dataValue].toString()]),s("update:modelValue",Qi(i.modelValue)?e.join(","):e)}}function I(e){const t=!e.showChildren;C(e,r.value).showChildren=t,C(e,l.value).showChildren=t}function P(){if(h.value=!h.value,h.value){if(!i.mutiple)return void uni.showToast({title:"单选模式下不能全选",icon:"none",duration:1e3});let e=[];r.value.forEach((t=>{var a;(t.visible||t.disabled&&t.checked)&&(e=Array.from(new Set([...e,t[i.dataValue].toString()])),(null==(a=t[i.dataChildren])?void 0:a.length)&&(e=Array.from(new Set([...e,...T(t).filter((e=>!e.disabled||e.disabled&&e.checked)).map((e=>e[i.dataValue].toString()))]))))})),s("update:modelValue",Qi(i.modelValue)?e.join(","):e)}else A()}function A(){if(i.disabled)return;g.clear();const e=[];d.value.forEach((t=>{t.visible&&t.checked&&t.disabled&&e.push(t[i.dataValue])})),s("update:modelValue",Qi(i.modelValue)?e.join(","):e)}return e.onMounted((()=>{!function({screenHeight:e}){o.value=`${Math.floor(.7*e)}px`}(uni.getSystemInfoSync())})),e.watch((()=>i.dataSource),(e=>{e&&(r.value=S(e),u.value&&(x(),N(r.value)))}),{immediate:!0,deep:!0}),e.watch((()=>i.modelValue),(e=>{const t=e?Array.isArray(e)?e:e.split(","):[];V(r.value,t,!0),l.value.length&&V(l.value,t)}),{immediate:!0}),(n,c)=>{const u=a(e.resolveDynamicComponent("uni-icons"),Y),g=a(e.resolveDynamicComponent("uni-easyinput"),Gi),w=a(e.resolveDynamicComponent("uni-popup"),Ge);return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("view",{class:e.normalizeClass(["select-list",{disabled:t.disabled},{active:y.value.length}]),onClick:k},[e.createElementVNode("view",{class:"left"},[y.value.length?(e.openBlock(),e.createElementBlock("view",{key:0,class:"select-items"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value,(a=>(e.openBlock(),e.createElementBlock("view",{class:"select-item",key:a[t.dataValue]},[e.createElementVNode("view",{class:"name"},[e.createElementVNode("text",null,e.toDisplayString(a[t.dataLabel]),1)]),t.disabled||a.disabled||!t.deleteSource?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("view",{key:0,class:"close",onClick:e.withModifiers((e=>function(e){if(h.value=!1,i.linkage)B(e,!1),s("removeSelect",e);else{const t=y.value.filter((t=>t!==e[i.dataValue].toString()));s("removeSelect",e),s("update:modelValue",Qi(i.modelValue)?t.join(","):t)}}(a)),["stop"])},[e.createVNode(u,{type:"closeempty",size:"16",color:"#999"})],8,["onClick"]))])))),128))])):(e.openBlock(),e.createElementBlock("view",{key:1,class:"no-data"},[e.createElementVNode("text",null,e.toDisplayString(t.placeholder),1)]))]),e.createElementVNode("view",null,[y.value.length&&t.clearable?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(u,{key:0,type:"bottom",color:"#333333"})),e.createElementVNode("view",{onClick:c[0]||(c[0]=e.withModifiers((()=>{}),["stop"]))},[y.value.length&&t.clearable?(e.openBlock(),e.createBlock(u,{key:0,type:"clear",size:"24",color:"#c0c4cc",onClick:A})):e.createCommentVNode("",!0)])])],2),e.createVNode(w,{ref_key:"popup",ref:f,animation:t.animation,"is-mask-click":n.isMaskClick,"mask-background-color":n.maskBackgroundColor,"background-color":n.backgroundColor,"safe-area":t.safeArea,type:"bottom",onChange:_,onMaskClick:E},{default:e.withCtx((()=>[e.createElementVNode("view",{class:"popup-content",style:e.normalizeStyle({height:o.value})},[e.createElementVNode("view",{class:"title"},[t.mutiple&&t.canSelectAll?(e.openBlock(),e.createElementBlock("view",{key:0,class:"left",onClick:P},[e.createElementVNode("text",null,e.toDisplayString(h.value?"取消全选":"全选"),1)])):e.createCommentVNode("",!0),e.createElementVNode("view",{class:"center"},[e.createElementVNode("text",null,e.toDisplayString(t.placeholder),1)]),e.createElementVNode("view",{class:"right",style:e.normalizeStyle({color:t.confirmTextColor}),onClick:b},[e.createElementVNode("text",null,e.toDisplayString(t.confirmText),1)],4)]),t.search?(e.openBlock(),e.createElementBlock("view",{key:0,class:"search-box"},[e.createVNode(g,{maxlength:-1,prefixIcon:"search",placeholder:"搜索",modelValue:p.value,"onUpdate:modelValue":c[1]||(c[1]=e=>p.value=e),"confirm-type":"search",onConfirm:c[2]||(c[2]=e=>v(!1)),onClear:c[3]||(c[3]=e=>v(!0))},null,8,["modelValue"]),e.createElementVNode("button",{type:"primary",size:"mini",class:"search-btn",onClick:c[4]||(c[4]=e=>v(!1))},"搜索")])):e.createCommentVNode("",!0),r.value.length?(e.openBlock(),e.createElementBlock("view",{key:1,class:"select-content"},[e.createElementVNode("scroll-view",{class:"scroll-view-box","scroll-top":m.value,"scroll-y":"true",onTouchmove:c[5]||(c[5]=e.withModifiers((()=>{}),["stop"]))},[l.value.length?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("view",{key:0,class:"no-data center"},[e.createElementVNode("text",null,"暂无数据")])),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.value,(a=>(e.openBlock(),e.createBlock(Xi,{key:a[t.dataValue],node:a,dataLabel:t.dataLabel,dataValue:t.dataValue,dataChildren:t.dataChildren,choseParent:t.choseParent,border:t.border,linkage:t.linkage,lazyLoadChildren:t.lazyLoadChildren},null,8,["node","dataLabel","dataValue","dataChildren","choseParent","border","linkage","lazyLoadChildren"])))),128)),e.createElementVNode("view",{class:"sentry"})],40,["scroll-top"])])):(e.openBlock(),e.createElementBlock("view",{key:2,class:"no-data center"},[e.createElementVNode("text",null,"暂无数据")]))],4)])),_:1},8,["animation","is-mask-click","mask-background-color","background-color","safe-area"])],64)}}}),[["__scopeId","data-v-0768d7c7"]]),ts={__name:"application",setup(n){const i=H(),{proxy:s}=e.getCurrentInstance(),r=e.ref(i.userinfo.realname),l=e.ref(""),c=e.ref(i.userinfo.phone),u=e.ref(""),h=e.ref([]),m=e.ref(""),p=e=>{m.value=e.detail.value},f=e.ref(""),g=e=>{f.value=e.detail.value},y=e.ref([]),v=e.ref(null),w=e.ref(!0),k=e.ref(""),b=e.ref(""),_=e.ref(""),E=e.ref([]),S={width:64,height:64,border:{color:"#dce7e1",width:2,style:"dashed",radius:"2px"}};o((()=>{C()}));const x=e=>{e.tempFilePaths;for(let t=0;t{E.value.push(JSON.parse(e.data).message)}})}},N=()=>{return c.value.trim()?u.value?m.value?f.value?w.value&&null==v.value?s.$toast("请选择审批领导"):b.value.trim()?_.value.trim()?void(e={username:i.userinfo.username,phone:c.value,type:u.value,begintime:m.value,endtime:f.value,examineleader:y.value[v.value].username,address:b.value,reason:_.value,zwmc:k.value,path:E.value.toString()},d({url:"/CxcQxj/cxcQxj/add",method:"post",data:e})).then((e=>{e.success?V(e.message):s.$toast(e.message)})):s.$toast("请输入请假事由"):s.$toast("请输入请假地点"):s.$toast("请选择结束时间"):s.$toast("请选择开始时间"):s.$toast("请选择请假类型"):s.$toast("请输入联系方式");var e},V=e=>{var a;(a={flowCode:"dev_cxc_qxj",id:e,formUrl:"modules/qxj/modules/CxcQxjBpmModel",formUrlMobile:"leaveApplication"},d({url:"/process/extActProcess/startMutilProcess",method:"post",data:a})).then((e=>{e.success&&(s.$toast(e.message),setTimeout((()=>{uni.navigateBack()}),2e3))})).catch((e=>{t("log","at pages/leave/application.vue:235",e)}))},C=()=>{var e,t,a;(e="1838487445813645313",d({url:"/sys/category/findtree",method:"get",data:{pid:e}})).then((e=>{e.success&&(h.value=e.result)})),(t=i.userinfo.orgCode,d({url:"/sys/sysDepart/queryDepNameByDepCode",method:"get",data:{code:t}})).then((e=>{e.success&&(l.value=e.result)})),(a=i.userinfo.username,d({url:"/CxcQxj/cxcQxj/queryZwmcByUsername",method:"get",data:{username:a}})).then((e=>{e.success?(y.value=e.result.list,k.value=e.result.zwmc,"单位专家"!=k.value&&"正职"!=k.value&&"高级主管"!=k.value||(w.value=!1)):s.$toast(e.message)}))},T=e=>{v.value=e.detail.value};return(t,n)=>{const s=a(e.resolveDynamicComponent("uni-icons"),Y),o=a(e.resolveDynamicComponent("uni-file-picker"),Yi);return e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass({gray:1==e.unref(i).isgray})},[e.createElementVNode("view",{class:"form"},[e.createElementVNode("view",{class:"f-row aic jcb input_box"},[e.createElementVNode("view",{class:"title"}," 职工姓名: "),e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":n[0]||(n[0]=e=>r.value=e),disabled:""},null,512),[[e.vModelText,r.value]])]),e.createElementVNode("view",{class:"f-row aic jcb input_box"},[e.createElementVNode("view",{class:"title"}," 工作单位: "),e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":n[1]||(n[1]=e=>l.value=e),disabled:""},null,512),[[e.vModelText,l.value]])]),e.createElementVNode("view",{class:"f-row aic jcb input_box"},[e.createElementVNode("view",{class:"title"}," 联系方式: "),e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":n[2]||(n[2]=e=>c.value=e)},null,512),[[e.vModelText,c.value]])]),e.createElementVNode("view",{class:"f-row aic jcb input_box"},[e.createElementVNode("view",{class:"title"}," 请假类型: "),e.createVNode(es,{dataSource:h.value,modelValue:u.value,"onUpdate:modelValue":n[3]||(n[3]=e=>u.value=e),dataValue:"name"},null,8,["dataSource","modelValue"])]),e.createElementVNode("picker",{mode:"date",fields:"day",onChange:p,value:m.value},[e.createElementVNode("view",{class:"f-row aic jcb box"},[e.createElementVNode("view",{class:"title"}," 开始时间: "),e.createElementVNode("view",{class:"f-row aic"},[e.createElementVNode("view",{class:e.normalizeClass([{choose:!m.value},{choosed:m.value}])},e.toDisplayString(m.value?m.value:"请选择"),3),e.createVNode(s,{type:"bottom",color:"#333333"})])])],40,["value"]),e.createElementVNode("picker",{mode:"date",fields:"day",onChange:g,value:f.value},[e.createElementVNode("view",{class:"f-row aic jcb box"},[e.createElementVNode("view",{class:"title"}," 截止时间: "),e.createElementVNode("view",{class:"f-row aic"},[e.createElementVNode("view",{class:e.normalizeClass([{choose:!f.value},{choosed:f.value}])},e.toDisplayString(f.value?f.value:"请选择"),3),e.createVNode(s,{type:"bottom",color:"#333333"})])])],40,["value"]),w.value?(e.openBlock(),e.createElementBlock("picker",{key:0,onChange:T,value:v.value,range:y.value,"range-key":"realname"},[e.createElementVNode("view",{class:"f-row aic jcb box"},[e.createElementVNode("view",{class:"title"}," 审批领导: "),e.createElementVNode("view",{class:"f-row aic"},[e.createElementVNode("view",{class:e.normalizeClass([{choose:null==v.value},{choosed:null!=v.value}])},e.toDisplayString(null!=v.value?y.value[v.value].realname:"请选择"),3),e.createVNode(s,{type:"bottom",color:"#333333"})])])],40,["value","range"])):e.createCommentVNode("",!0),e.createElementVNode("view",{class:"f-row aic jcb input_box"},[e.createElementVNode("view",{class:"title"}," 请假地点: "),e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":n[4]||(n[4]=e=>b.value=e),placeholder:"请输入","nplaceholder-style":"font-size: 28rpx;color: #999999;"},null,512),[[e.vModelText,b.value]])]),e.createElementVNode("view",{class:"f-row aic jcb input_box"},[e.createElementVNode("view",{class:"title"}," 请假事由: "),e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":n[5]||(n[5]=e=>_.value=e),placeholder:"请输入","placeholder-style":"font-size: 28rpx;color: #999999;"},null,512),[[e.vModelText,_.value]])]),e.createElementVNode("view",{class:"f-row aic jcb input_box"},[e.createElementVNode("view",{class:"title"}," 上传附件: "),e.createVNode(o,{onSelect:x,"image-styles":S})])]),e.createElementVNode("view",{class:"btn f-col aic"},[e.createElementVNode("view",{onClick:N}," 提交 ")])],2)}}},as=q(ts,[["__scopeId","data-v-6e3acbe9"]]),ns=q({__name:"index",setup(t){const n=H(),i=()=>{uni.navigateBack()};return(t,s)=>{const o=a(e.resolveDynamicComponent("uni-icons"),Y);return e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass(["content",{gray:1==e.unref(n).isgray}])},[e.createVNode(xe,null,{default:e.withCtx((()=>[e.createElementVNode("view",{class:"nav_box f-row aic"},[e.createElementVNode("view",{class:"back",onClick:i},[e.createVNode(o,{type:"left",size:"20",color:"#fff"})]),e.createElementVNode("view",{class:"avatar"},[e.createElementVNode("image",{src:e.unref(n).userinfo.avatar,mode:""},null,8,["src"])]),e.createElementVNode("view",{class:"f-col"},[e.createElementVNode("view",{class:"name"},e.toDisplayString(e.unref(n).userinfo.realname),1),e.createElementVNode("view",{class:"position"},e.toDisplayString(e.unref(n).role),1)])])])),_:1}),e.createElementVNode("view",{class:"time_box f-row aic jcb"},[e.createElementVNode("view",{class:"box"},[e.createElementVNode("view",{class:"time f-row aic"},[e.createElementVNode("view",{class:""}," 上班 9:30 "),e.createElementVNode("image",{src:"/static/checkin/chenggong.png",mode:""})]),e.createElementVNode("view",{class:"text"}," 重庆市渝北区上弯路 ")]),e.createElementVNode("view",{class:"box"},[e.createElementVNode("view",{class:"time f-row aic"},[e.createElementVNode("view",{class:""}," 下班 16:30 "),e.createElementVNode("image",{src:"/static/checkin/shibai.png",mode:""})]),e.createElementVNode("view",{class:"text"}," 打卡已超时 ")])]),e.createElementVNode("view",{class:"checkin"},[e.createElementVNode("view",{class:"f-col aic"},[e.createElementVNode("view",{class:"status f-col aic"},[e.createElementVNode("image",{src:"/static/checkin/position4.png",mode:""}),e.createElementVNode("text",null,"打卡失败")]),e.createElementVNode("view",{class:e.normalizeClass(["circle","f-col","aic","out","check","success","fail"])},[e.createElementVNode("view",{class:"title"}," 上班打卡 "),e.createElementVNode("view",{class:"time"}," 9:00 "),e.createElementVNode("view",{class:"ontime"}," 已超时 ")])])])],2)}}},[["__scopeId","data-v-f70ab478"]]),is=q({__name:"useredit",setup(n){const i=H(),s=()=>{uni.chooseImage({count:1,success:e=>{const a=e.tempFilePaths,n="用户头像/"+i.userinfo.realname;uni.uploadFile({url:"https://36.112.48.190/jeecg-boot/sys/common/upload",filePath:a[0],name:"file",formData:{appPath:n},success:e=>{var a;uni.showLoading({title:"上传中..."}),r.avatar=JSON.parse(e.data).message,(a={avatar:r.avatar,id:i.userinfo.id},d({url:"/sys/user/editApp",method:"PUT",data:a})).then((e=>{e&&uni.showToast({title:e,icon:"success",duration:2e3})})).catch((e=>{t("log","at pages/useredit/useredit.vue:97",e)}))},fail(e){t("log","at pages/useredit/useredit.vue:101","图片上传出错",e)}})}})},r=e.reactive({avatar:"",realname:"",phone:""}),l=()=>{uni.showModal({title:"退出登录",content:"您确认要退出登录吗?",success(e){e.confirm&&(uni.removeStorageSync("token"),uni.removeStorageSync("user"),uni.removeStorageSync("role"),uni.removeStorageSync("logintime"),uni.reLaunch({url:"/pages/login/login"}))}})};return o((()=>{uni.setNavigationBarColor({frontColor:"#ffffff",backgroundColor:"#bebebe"})})),(t,n)=>{const o=a(e.resolveDynamicComponent("uni-icons"),Y);return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("view",{class:e.normalizeClass(["content",{gray:1==e.unref(i).isgray}])},[e.createElementVNode("view",{class:"box"},[e.createElementVNode("view",null,"头像"),e.createElementVNode("view",{style:{display:"flex","align-items":"center"}},[e.createElementVNode("button",{class:"head-btn",onClick:s},[r.avatar?(e.openBlock(),e.createElementBlock("image",{key:1,class:"head-img",src:e.unref(Re)(r.avatar)},null,8,["src"])):(e.openBlock(),e.createElementBlock("image",{key:0,class:"head-img",src:e.unref(Re)(e.unref(i).userinfo.avatar),mode:""},null,8,["src"]))]),e.createVNode(o,{type:"right",size:"24"})])]),e.createElementVNode("view",{class:"box",style:{"padding-top":"30rpx","padding-bottom":"30rpx"}},[e.createElementVNode("view",null,"姓名"),e.withDirectives(e.createElementVNode("input",{disabled:"",style:{"text-align":"right"},type:"nickname","placeholder-style":"font-size: 32rpx;color: #999999;","onUpdate:modelValue":n[0]||(n[0]=t=>e.unref(i).userinfo.realname=t),placeholder:"请输入姓名"},null,512),[[e.vModelText,e.unref(i).userinfo.realname]])]),e.createElementVNode("view",{class:"box",style:{"padding-top":"30rpx","padding-bottom":"30rpx"}},[e.createElementVNode("view",null,"手机号"),e.withDirectives(e.createElementVNode("input",{disabled:"",style:{"text-align":"right"},type:"nickname","onUpdate:modelValue":n[1]||(n[1]=t=>e.unref(i).userinfo.phone=t),placeholder:"请输入手机号","placeholder-style":"font-size: 32rpx;color: #999999;"},null,512),[[e.vModelText,e.unref(i).userinfo.phone]])]),e.createElementVNode("view",{class:"box",style:{"padding-top":"30rpx","padding-bottom":"30rpx"}},[e.createElementVNode("view",null,"劳动合同号"),e.withDirectives(e.createElementVNode("input",{style:{"text-align":"right"},type:"nickname",disabled:"","onUpdate:modelValue":n[2]||(n[2]=t=>e.unref(i).userinfo.workNo=t),placeholder:"请输入劳动合同号","placeholder-style":"font-size: 32rpx;color: #999999;"},null,512),[[e.vModelText,e.unref(i).userinfo.workNo]])])],2),e.createElementVNode("view",{class:"line"}),e.createElementVNode("view",{class:"btn",onClick:l}," 退出登录 ")],64)}}},[["__scopeId","data-v-3dbb4317"]]),ss=q({__name:"address",setup(t){const a=H();return(t,n)=>(e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass(["content",{gray:1==e.unref(a).isgray}])},[e.createElementVNode("view",{class:"list"},[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(2,((t,a)=>e.createElementVNode("view",{class:"item",key:a},[e.createElementVNode("view",{class:"province f-row aic"},[e.createElementVNode("view",{class:""}," 浙江省,杭州市 "),e.createElementVNode("image",{src:"/static/my/default.png",mode:""})]),e.createElementVNode("view",{class:"address f-row jcb"},[e.createElementVNode("view",{class:""}," 重庆 重庆市 渝北区 龙溪街道花卉园东路黄金 宝高级住宅小区 "),e.createElementVNode("image",{src:"/static/my/edit.png",mode:""})]),e.createElementVNode("view",{class:"set f-row aic jcb"},[e.createElementVNode("view",{class:"f-row aic"},[e.createElementVNode("image",{src:"/static/login/nocheck.png",mode:""}),e.createTextVNode(" 设为默认地址 ")]),e.createElementVNode("view",{class:""}," 删除 ")])]))),64))]),e.createElementVNode("view",{class:"btn f-col aic"},[e.createElementVNode("view",{class:"",onClick:n[0]||(n[0]=e=>{var t;Ce(t="/pages/useredit/add_address",(()=>{uni.navigateTo({url:t})}))})}," +添加收货地址 ")])],2))}},[["__scopeId","data-v-837db36d"]]),os=q({__name:"add_address",setup(t){const a=H();return(t,n)=>(e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass(["content",{gray:1==e.unref(a).isgray}])},[e.createElementVNode("view",{class:"area f-row jcb"},[e.createElementVNode("view",{class:"title topic"}," 所在地区 "),e.createElementVNode("input",{type:"text",placeholder:"省、市、区、街道"})]),e.createElementVNode("view",{class:"area f-row jcb"},[e.createElementVNode("view",{class:"title topic"}," 详细地址 "),e.createElementVNode("textarea",{placeholder:"小区楼栋/乡村名称"})]),e.createElementVNode("view",{class:"area f-row jcb"},[e.createElementVNode("view",{class:"title"}," 设为默认地址 "),e.createElementVNode("image",{src:"/static/login/checked.png",mode:""})]),e.createElementVNode("view",{class:"btn f-col aic"},[e.createElementVNode("view",{class:""}," 保存 ")])],2))}},[["__scopeId","data-v-c71fcfcd"]]),rs=q({__name:"addressbook",setup(t){const a=H();return(t,n)=>(e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass({gray:1==e.unref(a).isgray})},[e.createElementVNode("view",{class:"list"},[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(4,((t,a)=>e.createElementVNode("view",{class:"item f-row aic jcb",key:a},[e.createElementVNode("view",{class:"user f-row aic"},[e.createElementVNode("image",{src:"",mode:""}),e.createElementVNode("view",{class:"name_job"},[e.createElementVNode("view",{class:"name"}," 我是晴天 "),e.createElementVNode("view",{class:"job"}," 销售部-销售总监 ")])]),e.createElementVNode("view",{class:"btn"}," 电话联系 ")]))),64))])],2))}},[["__scopeId","data-v-e9ce91fd"]]),ls=q({__name:"safeCom",setup:t=>(t,a)=>(e.openBlock(),e.createElementBlock("view",{class:"list f-row aic jcb"},[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(20,((t,n)=>e.createElementVNode("view",{class:"item",key:n,onClick:a[0]||(a[0]=e=>{var t;Ce(t="/pages/safe/detail",(()=>{uni.navigateTo({url:t})}))})},[e.createElementVNode("view",{class:""},[e.createElementVNode("image",{src:"",mode:""})]),e.createElementVNode("view",{class:"text"}," 五月天“突然好想你”线上演唱会精彩回放 ")]))),64))]))},[["__scopeId","data-v-bc41e6b3"]]),cs=q({__name:"manage",setup(t){const n=H(),i=e.ref(!0),s=e.ref("");return(t,o)=>{const r=a(e.resolveDynamicComponent("uni-icons"),Y);return e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass(["content",{gray:1==e.unref(n).isgray}])},[e.createVNode(xe,null,{default:e.withCtx((()=>[e.createElementVNode("view",{class:"nav_box f-row aic jcb"},[e.createElementVNode("view",{class:"back f-row aic",onClick:o[0]||(o[0]=(...e)=>t.back&&t.back(...e))},[e.createVNode(r,{type:"left",size:"20",color:"#fff"})]),e.createElementVNode("view",{class:"search f-row aic"},[e.withDirectives(e.createElementVNode("input",{type:"text","onUpdate:modelValue":o[1]||(o[1]=e=>s.value=e),onConfirm:o[2]||(o[2]=(...e)=>t.search&&t.search(...e)),onBlur:o[3]||(o[3]=e=>i.value=!s.value),onFocus:o[4]||(o[4]=e=>i.value=!1)},null,544),[[e.vModelText,s.value]]),i.value?(e.openBlock(),e.createElementBlock("view",{key:0,class:"f-row aic"},[e.createElementVNode("image",{src:"/static/search.png",mode:""}),e.createElementVNode("text",null,"搜索")])):e.createCommentVNode("",!0)])])])),_:1}),e.createElementVNode("view",{class:""},[e.createVNode(ls)])],2)}}},[["__scopeId","data-v-02e8f217"]]),ds=q({__name:"dataCom",props:{title:{type:String,default:""},list:{type:Array,default:function(){return[]}}},setup(t){e.useCssVars((e=>({"09ebbe2f":s.value})));const n=t,i=e.ref(!1),s=e.ref(null);return e.watch((()=>n.list),(()=>{e.nextTick((()=>{uni.createSelectorQuery().select(".data_box").boundingClientRect((e=>{s.value=((null==e?void 0:e.height)||0)+"px"})).exec()}))}),{immediate:!0}),(n,s)=>{const o=a(e.resolveDynamicComponent("uni-icons"),Y);return e.openBlock(),e.createElementBlock("view",{class:""},[e.createElementVNode("view",{class:"info"},[e.createElementVNode("view",{class:"item_box"},[e.createElementVNode("view",{class:"item"},[e.createElementVNode("view",{class:"title_box f-row aic jcb"},[e.createElementVNode("view",{class:"title"},e.toDisplayString(t.title),1),t.list.length>6?(e.openBlock(),e.createElementBlock("view",{key:0,class:"f-row aic more",onClick:s[0]||(s[0]=e=>i.value=!i.value)},[e.createElementVNode("text",null,e.toDisplayString(i.value?"收起":"展开"),1),i.value?(e.openBlock(),e.createBlock(o,{key:1,type:"up",color:"#999999"})):(e.openBlock(),e.createBlock(o,{key:0,type:"down",color:"#999999"}))])):e.createCommentVNode("",!0)]),e.createElementVNode("view",{class:e.normalizeClass(["data_wrapper",{close:t.list.length>6&&i.value}])},[e.createElementVNode("view",{class:"data_box f-row aic"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.list,((t,a)=>(e.openBlock(),e.createElementBlock("view",{class:"data f-col aic"},[e.createElementVNode("view",{class:""},e.toDisplayString(null==t?void 0:t.dailyVolume),1),e.createElementVNode("text",null,e.toDisplayString(t.gas),1)])))),256))])],2)])])])])}}},[["__scopeId","data-v-40acdf41"]]),us={__name:"index",setup(t){const a=H(),n=e.ref([]),i=e.ref([]);return o((e=>{n.value=JSON.parse(e.shishi),i.value=JSON.parse(e.product)})),(t,s)=>(e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass(["f-col","aic",{gray:1==e.unref(a).isgray}])},[e.createVNode(ds,{title:"实时输差",list:n.value},null,8,["list"]),e.createVNode(ds,{title:"偏远计量点",list:n.value},null,8,["list"]),e.createVNode(ds,{title:"生产实时数据",list:i.value},null,8,["list"])],2))}},hs={en:{"uni-load-more.contentdown":"Pull up to show more","uni-load-more.contentrefresh":"loading...","uni-load-more.contentnomore":"No more data"},"zh-Hans":{"uni-load-more.contentdown":"上拉显示更多","uni-load-more.contentrefresh":"正在加载...","uni-load-more.contentnomore":"没有更多数据了"},"zh-Hant":{"uni-load-more.contentdown":"上拉顯示更多","uni-load-more.contentrefresh":"正在加載...","uni-load-more.contentnomore":"沒有更多數據了"}};let ms;setTimeout((()=>{ms=uni.getSystemInfoSync().platform}),16);const{t:ps}=ge(hs);const fs=q({name:"UniLoadMore",emits:["clickLoadMore"],props:{status:{type:String,default:"more"},showIcon:{type:Boolean,default:!0},iconType:{type:String,default:"auto"},iconSize:{type:Number,default:24},color:{type:String,default:"#777777"},contentText:{type:Object,default:()=>({contentdown:"",contentrefresh:"",contentnomore:""})},showText:{type:Boolean,default:!0}},data:()=>({webviewHide:!1,platform:ms,imgBase64:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyJpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNiAoV2luZG93cykiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6QzlBMzU3OTlEOUM0MTFFOUI0NTZDNERBQURBQzI4RkUiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6QzlBMzU3OUFEOUM0MTFFOUI0NTZDNERBQURBQzI4RkUiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDpDOUEzNTc5N0Q5QzQxMUU5QjQ1NkM0REFBREFDMjhGRSIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDpDOUEzNTc5OEQ5QzQxMUU5QjQ1NkM0REFBREFDMjhGRSIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/Pt+ALSwAAA6CSURBVHja1FsLkFZVHb98LM+F5bHL8khA1iSeiyQBCRM+YGqKUnnJTDLGI0BGZlKDIU2MMglUiDApEZvSsZnQtBRJtKwQNKQMFYeRDR10WOLd8ljYXdh+v8v5fR3Od+797t1dnOnO/Ofce77z+J//+b/P+ZqtXbs2sJ9MJhNUV1cHJ06cCJo3bx7EPc2aNcvpy7pWrVoF+/fvDyoqKoI2bdoE9fX1F7TjN8a+EXBn/fkfvw942Tf+wYMHg9mzZwfjxo0LDhw4EPa1x2MbFw/fOGfPng1qa2tzcCkILsLDydq2bRsunpOTMM7TD/W/tZDZhPdeKD+yGxHhdu3aBV27dg3OnDlzMVANMheLAO3btw8KCwuDmpoaX5OxbgUIMEq7K8IcPnw4KCsrC/r37x8cP378/4cAXAB3vqSkJMuiDhTkw+XcuXNhOWbMmKBly5YhUT8xArhyFvP0BfwRsAuwxJZJsm/nzp2DTp06he/OU+cZ64K6o0ePBkOHDg2GDx8e6gEbJ5Q/NHNuAJQ1hgBeHUDlR7nVTkY8rQAvAi4z34vR/mPs1FoRsaCgIJThI0eOBC1atEiFGGV+5MiRoS45efJkqFjJFXV1dQuA012m2WcwTw98fy6CqBdsaiIO4CScrGPHjvk4odhavPquRtFWXEC25VgkREKOCh/qDSq+vn37htzD/mZTOmOc5U7zKzBPEedygWshcDyWvs30igAbU+6oyMgJBCFhwQE0fccxN60Ay9iebbjoDh06hMowjQxT4fXq1SskArmHZpkArvixp/kWzHdMeArExSJEaiXIjjRjRJ4DaAGWpibLzXN3Fm1vA5teBgh3j1Rv3bp1YgKwPdmf2p9zcyNYYgPKMfY0T5f5nNYdw158nJ8QawW4CLKwiOBSEgO/hok2eBydR+3dYH+PLxA5J8Vv0KBBwenTp0P2JWAx6+yFEBfs8lMY+y0SWMBNI9E4ThKi58VKTg3FQZS1RQF1cz27eC0QHMu+3E0SkUowjhVt5VdaWhp07949ZHv2Qd1EjDXM2cla1M0nl3GxAs3J9yREzyTdFVKVFOaE9qRA8GM0WebRuo9JGZKA7Mv2SeS/Z8+eoQ9BArMfFrLGo6jvxbhHbJZnKX2Rzz1O7QhJJ9Cs2ZMaWIyq/zhdeqPNfIoHd58clIQD+JSXl4dKlyIAuBdVXZwFVWKspSSoxE++h8x4k3uCnEhE4I5KwRiFWGOU0QWKiCYLbdoRMRKAu2kQ9vkfLU6dOhX06NEjlH+yMRZSinnuyWnYosVcji8CEA/6Cg2JF+IIUBqnGKUTCNwtwBN4f89RiK1R96DEgO2o0NDmtEdvVFdVVYV+P3UAPUEs6GFwV3PHmXkD4vh74iDFJysVI/MlaQhwKeBNTLYX5VuA8T4/gZxA4MRGFxDB6R7OmYPfyykGRJbyie+XnGYnQIC/coH9+vULiYrxrkL9ZA9+0ykaHIfEpM7ge8TiJ2CsHYwyMfafAF1yCGBHYIbCVDjDjKt7BeB51D+LgQa6OkG7IDYEEtvQ7lnXLKLtLdLuJBpE4gPUXcW2+PkZwOex+4cGDhwYDBkyRL7/HFcEwUGPo/8uWRUpYnfxGHco8HkewLHLyYmAawAPuIFZxhOpDfJQ8gbUv41yORAptMWBNr6oqMhWird5+u+iHmBb2nhjDV7HWBNQTgK8y11l5NetWzc5ULscAtSj7nbNI0skhWeUZCc0W4nyH/jO4Vz0u1IeYhbk4AiwM6tjxIWByHsoZ9qcIBPJd/y+DwPfBESOmCa/QF3WiZHucLlEDpNxcNhmheEOPgdQNx6/VZFQzFZ5TN08AHXQt2Ii3EdyFuUsPtTcGPhW5iMiCNELvz+Gdn9huG4HUJaW/w3g0wxV0XaG7arG2WeKiUWYM4Y7GO5ezshTARbbWGw/DvXkpp/ivVvE0JVoMxN4rpGzJMhE5Pl+xlATsDIqikP9F9D2z3h9nOksEUFhK+qO4rcPkoalMQ/HqJLIyb3F3JdjrCcw1yZ8joyJLR5gCo54etlag7qIoeNh1N1BRYj3DTFJ0elotxPlVzkGuYAmL0VSJVGAJA41c4Z6A3BzTLfn0HYwYKEI6CUAMzZEWvLsIcQOo1AmmyyM72nHJCfYsogflGV6jEk9vyQZXSuq6w4c16NsGcGZbwOPr+H1RkOk2LEzjNepxQkihHSCQ4ynAYNRx2zMKV92CQMWqj8J0BRE8EShxRFN6YrfCRhC0x3r/Zm4IbQCcmJoV0kMamllccR6FjHqUC5F2R/wS2dcymOlfAKOS4KmzQb5cpNC2MC7JhVn5wjXoJ44rYhLh8n0eXOCorJxa7POjbSlCGVczr34/RsAmrcvo9s+wGp3tzVhntxiXiJ4nvEYb4FJkf0O8HocAePmLvCxnL0AORraVekJk6TYjDabRVXfRE2lCN1h6ZQRN1+InUbsCpKwoBZHh0dODN9JBCUffItXxEavTQkUtnfTVAplCWL3JISz29h4NjotnuSsQKJCk8dF+kJR6RARjrqFVmfPnj3ZbK8cIJ0msd6jgHPGtfVTQ8VLmlvh4mct9sobRmPic0DyDQQnx/NlfYUgyz59+oScsH379pAwXABD32nTpoUHIToESeI5mnbE/UqDdyLcafEBf2MCqgC7NwxIbMREJQ0g4D4sfJwnD+AmRrII05cfMWJE+L1169bQr+fip06dGp4oJ83lmYd5wj/EmMa4TaHivo4EeCguYZBnkB5g2aWA69OIEnUHOaGysjIYMGBAMGnSpODYsWPZwCpFmm4lNq+4gSLQA7jcX8DwtjEyRC8wjabnXEx9kfWnTJkSJkAo90xpJVV+FmcVNeYAF5zWngS4C4O91MBxmAv8blLEpbjI5sz9MTdAhcgkCT1RO8mZkAjfiYpTEvStAS53Uw1vAiUGgZ3GpuQEYvoiBqlIan7kSDHnTwJQFNiPu0+5VxCVYhcZIjNrdXUDdp+Eq5AZ3Gkg8QAyVZRZIk4Tl4QAbF9cXJxNYZMAtAokgs4BrNxEpCtteXg7DDTMDKYNSuQdKsnJBek7HxewvxaosWxLYXtw+cJp18217wql4aKCfBNoEu0O5VU+PhctJ0YeXD4C6JQpyrlpSLTojpGGGN5YwNziChdIZLk4lvLcFJ9jMX3QdiImY9bmGQU+TRUL5CHITTRlgF8D9ouD1MfmLoEPl5xokIumZ2cfgMpHt47IW9N64Hsh7wQYYjyIugWuF5fCqYncXRd5vPMWyizzvhi/32+nvG0dZc9vR6fZOu0md5e+uC408FvKSIOZwXlGvxPv95izA2Vtvg1xKFWARI+vMX66HUhpQQb643uW1bSjuTWyw2SBvDrBvjFic1eGGlz5esq3ko9uSIlBRqPuFcCv8F4WIcN12nVaBd0SaYwI6PDDImR11JkqgHcPmQssjxIn6bUshygDFJUTxPMpHk+jfjPgupgdnYV2R/g7xSjtpah8RJBewhwf0gGK6XI92u4wXFEU40afJ4DN4h5LcAd+40HI3JgJecuT0c062W0i2hQJUTcxan3/CMW1PF2K6bbA+Daz4xRs1D3Br1Cm0OihKCqizW78/nXAF/G5TXrEcVzaNMH6CyMswqsAHqDyDLEyou8lwOXnKF8DjI6KjV3KzMBiXkDH8ij/H214J5A596ekrZ3F0zXlWeL7+P5eUrNo3/QwC15uxthuzidy7DzKRwEDaAViiDgKbTbz7CJnzo0bN7pIfIiid8SuPwn25o3QCmpnyjlZkyxPP8EomCJzrGb7GJMx7tNsq4MT2xMUYaiErZOluTzKsnz3gwCeCZyVRZJfYplNEokEjwrPtxlxjeYAk+F1F74VAzPxQRNYYdtpOUvWs8J1sGhBJMNsb7igN8plJs1eSmLIhLKE4rvaCX27gOhLpLOsIzJ7qn/i+wZzcvSOZ23/du8TZjwV8zHIXoP4R3ifBxiFz1dcVpa3aPntPE+c6TmIWE9EtcMmAcPdWAhYhAXxcLOQi9L1WhD1Sc8p1d2oL7XGiRKp8F4A2i8K/nfI+y/gsTDJ/YC/8+AD5Uh04KHiGl+cIFPnBDDrPMjwRGkLXyxO4VGbfQWnDH2v0bVWE3C9QOXlepbgjEfIJQI6XDG3z5ahD9cw2pS78ipB85wyScNTvsVzlzzhL8/jRrnmVjfFJK/m3m4nj9vbgQTguT8XZTjsm672R5uJKEaQmBI/c58gyus8ZDagLpEVSJBIyHp4jn++xqPV71OgQgJYEWOtZ/haxRtKmWOBu8xdBLftWltsY84zE6WIEy/eIOWL+BaayMx+KHtL7EAkqdNDLiEXmEMUHniedtJqg9HmZtfvt26vNi0BdG3Ft3g8ZOf7PAu59TxtzivLNIekyi+wD1i8CuUiD9FXAa8C+/xS3JPmZnomyc7H+fb4/Se0bk41Fel621r4cgVxbq91V4jVqwB7HTe2M7jgB+QWHavZkDRPmZcASoZEmBx6i75bGjPcMdL4/VKGFAGWZkGzPG0XAbdL9A81G5LOmUnC9hHKJeO7dcUMjblSl12867ElFTtaGl20xvvLGPdVz/8TVuU7y0x1PG7vtNg24oz9Uo/Z412++VFWI7Fcog9tu9Lm6gvRmIPv9x1xmQAu6RDkXtbOtlGEmpgD5Nvnyc0dcv0EE6cfdi1HmhMf9wDF3k3gtRvEedhxjpgfqPb9PU9iEJHnyOUA7bQUXh6kq/D7l2iTjWv7XOD530BDr8jIrus+srXjt4MzumJMHuTsBa63YKE1+RR5lBjEikCCnWKWiHdzOgKO+nRIBAF88za/IFmJ3eMZov4CYxGBabcpGL8EYx+SeMXJeRwHNsV/h+vdxeuhEpN3ZyNY78Gm2fknJxVGhyjixPiQvVkNzT1elD9Py/aTAL64Hb9vcYmC9zfdXdT/C1LeGbg4rnBaAihDFJH12W5ulfNCNe/xTsP3bp8ikzJs5BF+5PNfAQYAPaseTdsEcaYAAAAASUVORK5CYII="}),computed:{iconSnowWidth(){return 2*(Math.floor(this.iconSize/24)||1)},contentdownText(){return this.contentText.contentdown||ps("uni-load-more.contentdown")},contentrefreshText(){return this.contentText.contentrefresh||ps("uni-load-more.contentrefresh")},contentnomoreText(){return this.contentText.contentnomore||ps("uni-load-more.contentnomore")}},mounted(){var e=getCurrentPages(),t=e[e.length-1].$getAppWebview();t.addEventListener("hide",(()=>{this.webviewHide=!0})),t.addEventListener("show",(()=>{this.webviewHide=!1}))},methods:{onClick(){this.$emit("clickLoadMore",{detail:{status:this.status}})}}},[["render",function(t,a,n,i,s,o){return e.openBlock(),e.createElementBlock("view",{class:"uni-load-more",onClick:a[0]||(a[0]=(...e)=>o.onClick&&o.onClick(...e))},[!s.webviewHide&&("circle"===n.iconType||"auto"===n.iconType&&"android"===s.platform)&&"loading"===n.status&&n.showIcon?(e.openBlock(),e.createElementBlock("view",{key:0,style:e.normalizeStyle({width:n.iconSize+"px",height:n.iconSize+"px"}),class:"uni-load-more__img uni-load-more__img--android-MP"},[e.createElementVNode("view",{class:"uni-load-more__img-icon",style:e.normalizeStyle({borderTopColor:n.color,borderTopWidth:n.iconSize/12})},null,4),e.createElementVNode("view",{class:"uni-load-more__img-icon",style:e.normalizeStyle({borderTopColor:n.color,borderTopWidth:n.iconSize/12})},null,4),e.createElementVNode("view",{class:"uni-load-more__img-icon",style:e.normalizeStyle({borderTopColor:n.color,borderTopWidth:n.iconSize/12})},null,4)],4)):!s.webviewHide&&"loading"===n.status&&n.showIcon?(e.openBlock(),e.createElementBlock("view",{key:1,style:e.normalizeStyle({width:n.iconSize+"px",height:n.iconSize+"px"}),class:"uni-load-more__img uni-load-more__img--ios-H5"},[e.createElementVNode("image",{src:s.imgBase64,mode:"widthFix"},null,8,["src"])],4)):e.createCommentVNode("",!0),n.showText?(e.openBlock(),e.createElementBlock("text",{key:2,class:"uni-load-more__text",style:e.normalizeStyle({color:n.color})},e.toDisplayString("more"===n.status?o.contentdownText:"loading"===n.status?o.contentrefreshText:o.contentnomoreText),5)):e.createCommentVNode("",!0)])}],["__scopeId","data-v-a7e112cc"]]),gs={props:{localdata:{type:[Array,Object],default:()=>[]},spaceInfo:{type:Object,default:()=>({})},collection:{type:String,default:""},action:{type:String,default:""},field:{type:String,default:""},orderby:{type:String,default:""},where:{type:[String,Object],default:""},pageData:{type:String,default:"add"},pageCurrent:{type:Number,default:1},pageSize:{type:Number,default:500},getcount:{type:[Boolean,String],default:!1},getone:{type:[Boolean,String],default:!1},gettree:{type:[Boolean,String],default:!1},manual:{type:Boolean,default:!1},value:{type:[Array,String,Number],default:()=>[]},modelValue:{type:[Array,String,Number],default:()=>[]},preload:{type:Boolean,default:!1},stepSearh:{type:Boolean,default:!0},selfField:{type:String,default:""},parentField:{type:String,default:""},multiple:{type:Boolean,default:!1},map:{type:Object,default:()=>({text:"text",value:"value"})}},data(){return{loading:!1,errorMessage:"",loadMore:{contentdown:"",contentrefresh:"",contentnomore:""},dataList:[],selected:[],selectedIndex:0,page:{current:this.pageCurrent,size:this.pageSize,count:0}}},computed:{isLocalData(){return!this.collection.length},isCloudData(){return this.collection.length>0},isCloudDataList(){return this.isCloudData&&!this.parentField&&!this.selfField},isCloudDataTree(){return this.isCloudData&&this.parentField&&this.selfField},dataValue(){return(Array.isArray(this.modelValue)?this.modelValue.length>0:null!==this.modelValue||void 0!==this.modelValue)?this.modelValue:this.value},hasValue(){return"number"==typeof this.dataValue||null!=this.dataValue&&this.dataValue.length>0}},created(){this.$watch((()=>{var e=[];return["pageCurrent","pageSize","spaceInfo","value","modelValue","localdata","collection","action","field","orderby","where","getont","getcount","gettree"].forEach((t=>{e.push(this[t])})),e}),((e,t)=>{for(let a=2;a(this.selected=e.result.data,e.result.data)))},getCloudDataTreeValue(){return this.getCommand({field:this._cloudDataPostField(),getTreePath:{startWith:`${this.selfField}=='${this.dataValue}'`}}).then((e=>{let t=[];return this._extractTreePath(e.result.data,t),this.selected=t,t}))},getCommand(e={}){let t=Fi.database(this.spaceInfo);const a=e.action||this.action;a&&(t=t.action(a));const n=e.collection||this.collection;t=t.collection(n);const i=e.where||this.where;i&&Object.keys(i).length&&(t=t.where(i));const s=e.field||this.field;s&&(t=t.field(s));const o=e.orderby||this.orderby;o&&(t=t.orderBy(o));const r=void 0!==e.pageCurrent?e.pageCurrent:this.page.current,l=void 0!==e.pageSize?e.pageSize:this.page.size,c={getCount:void 0!==e.getcount?e.getcount:this.getcount,getTree:void 0!==e.gettree?e.gettree:this.gettree};return e.getTreePath&&(c.getTreePath=e.getTreePath),t=t.skip(l*(r-1)).limit(l).get(c),t},_cloudDataPostField(){let e=[this.field];return this.parentField&&e.push(`${this.parentField} as parent_value`),e.join(",")},_cloudDataTreeWhere(){let e=[],t=this.selected,a=this.parentField;if(a&&e.push(`${a} == null || ${a} == ""`),t.length)for(var n=0;nnull===e.parent_value||void 0===e.parent_value||""===e.parent_value)));for(let i=0;ie.parent_value===s));o.length?a.push(o):n=!1}return{dataList:a,hasNodes:n}},_extractTree(e,t,a){let n=this.map.value;for(let i=0;i{this.loadData()}))},methods:{onPropsChange(){this._treeData=[],this.selectedIndex=0,this.$nextTick((()=>{this.loadData()}))},handleSelect(e){this.selectedIndex=e},handleNodeClick(e,t,a){if(e.disable)return;const n=this.dataList[t][a],i=n[this.map.text],s=n[this.map.value];if(t{e.length?(this._treeData.push(...e),this._updateBindData(n)):n.isleaf=!0,this.onSelectedChange(n,n.isleaf)})))},updateData(e){this._treeData=e.treeData,this.selected=e.selected,this._treeData.length?this._updateBindData():this.loadData()},onDataChange(){this.$emit("datachange")},onSelectedChange(e,t){t&&this._dispatchEvent(),e&&this.$emit("nodeclick",e)},_dispatchEvent(){this.$emit("change",this.selected.slice(0))}}},[["render",function(t,n,i,s,o,r){const l=a(e.resolveDynamicComponent("uni-load-more"),fs);return e.openBlock(),e.createElementBlock("view",{class:"uni-data-pickerview"},[t.isCloudDataList?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("scroll-view",{key:0,class:"selected-area","scroll-x":"true"},[e.createElementVNode("view",{class:"selected-list"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.selected,((a,n)=>(e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass(["selected-item",{"selected-item-active":n==t.selectedIndex}]),key:n,onClick:e=>r.handleSelect(n)},[e.createElementVNode("text",null,e.toDisplayString(a.text||""),1)],10,["onClick"])))),128))])])),e.createElementVNode("view",{class:"tab-c"},[e.createElementVNode("scroll-view",{class:"list","scroll-y":!0},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.dataList[t.selectedIndex],((a,n)=>(e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass(["item",{"is-disabled":!!a.disable}]),key:n,onClick:e=>r.handleNodeClick(a,t.selectedIndex,n)},[e.createElementVNode("text",{class:"item-text"},e.toDisplayString(a[t.map.text]),1),t.selected.length>t.selectedIndex&&a[t.map.value]==t.selected[t.selectedIndex].value?(e.openBlock(),e.createElementBlock("view",{key:0,class:"check"})):e.createCommentVNode("",!0)],10,["onClick"])))),128))]),t.loading?(e.openBlock(),e.createElementBlock("view",{key:0,class:"loading-cover"},[e.createVNode(l,{class:"load-more",contentText:t.loadMore,status:"loading"},null,8,["contentText"])])):e.createCommentVNode("",!0),t.errorMessage?(e.openBlock(),e.createElementBlock("view",{key:1,class:"error-message"},[e.createElementVNode("text",{class:"error-text"},e.toDisplayString(t.errorMessage),1)])):e.createCommentVNode("",!0)])])}],["__scopeId","data-v-c0c521c5"]])},props:{options:{type:[Object,Array],default:()=>({})},popupTitle:{type:String,default:"请选择"},placeholder:{type:String,default:"请选择"},heightMobile:{type:String,default:""},readonly:{type:Boolean,default:!1},clearIcon:{type:Boolean,default:!0},border:{type:Boolean,default:!0},split:{type:String,default:"/"},ellipsis:{type:Boolean,default:!0}},data:()=>({isOpened:!1,inputSelected:[]}),created(){this.$nextTick((()=>{this.load()}))},watch:{localdata:{handler(){this.load()},deep:!0}},methods:{clear(){this._dispatchEvent([])},onPropsChange(){this._treeData=[],this.selectedIndex=0,this.load()},load(){this.readonly?this._processReadonly(this.localdata,this.dataValue):this.isLocalData?(this.loadData(),this.inputSelected=this.selected.slice(0)):(this.isCloudDataList||this.isCloudDataTree)&&(this.loading=!0,this.getCloudDataValue().then((e=>{this.loading=!1,this.inputSelected=e})).catch((e=>{this.loading=!1,this.errorMessage=e})))},show(){this.isOpened=!0,setTimeout((()=>{this.$refs.pickerView.updateData({treeData:this._treeData,selected:this.selected,selectedIndex:this.selectedIndex})}),200),this.$emit("popupopened")},hide(){this.isOpened=!1,this.$emit("popupclosed")},handleInput(){this.readonly?this.$emit("inputclick"):this.show()},handleClose(e){this.hide()},onnodeclick(e){this.$emit("nodeclick",e)},ondatachange(e){this._treeData=this.$refs.pickerView._treeData},onchange(e){this.hide(),this.$nextTick((()=>{this.inputSelected=e})),this._dispatchEvent(e)},_processReadonly(e,t){if(e.findIndex((e=>e.children))>-1){let e;return Array.isArray(t)?(e=t[t.length-1],"object"==typeof e&&e.value&&(e=e.value)):e=t,void(this.inputSelected=this._findNodePath(e,this.localdata))}if(!this.hasValue)return void(this.inputSelected=[]);let a=[];for(let s=0;se.value==n));i&&a.push(i)}a.length&&(this.inputSelected=a)},_filterForArray(e,t){var a=[];for(let s=0;se.value==n));i&&a.push(i)}return a},_dispatchEvent(e){let t={};if(e.length){for(var a=new Array(e.length),n=0;nr.handleInput&&r.handleInput(...e))},[e.renderSlot(t.$slots,"default",{options:i.options,data:o.inputSelected,error:t.errorMessage},(()=>[e.createElementVNode("view",{class:e.normalizeClass(["input-value",{"input-value-border":i.border}])},[t.errorMessage?(e.openBlock(),e.createElementBlock("text",{key:0,class:"selected-area error-text"},e.toDisplayString(t.errorMessage),1)):t.loading&&!o.isOpened?(e.openBlock(),e.createElementBlock("view",{key:1,class:"selected-area"},[e.createVNode(l,{class:"load-more",contentText:t.loadMore,status:"loading"},null,8,["contentText"])])):o.inputSelected.length?(e.openBlock(),e.createElementBlock("scroll-view",{key:2,class:"selected-area","scroll-x":"true"},[e.createElementVNode("view",{class:"selected-list"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.inputSelected,((t,a)=>(e.openBlock(),e.createElementBlock("view",{class:"selected-item",key:a},[e.createElementVNode("text",{class:"text-color"},e.toDisplayString(t.text),1),ar.clear&&r.clear(...e)),["stop"]))},[e.createVNode(c,{type:"clear",color:"#c0c4cc",size:"24"})])):e.createCommentVNode("",!0),i.clearIcon&&o.inputSelected.length||i.readonly?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("view",{key:5,class:"arrow-area"},[e.createElementVNode("view",{class:"input-arrow"})]))],2)]),!0)]),o.isOpened?(e.openBlock(),e.createElementBlock("view",{key:0,class:"uni-data-tree-cover",onClick:n[2]||(n[2]=(...e)=>r.handleClose&&r.handleClose(...e))})):e.createCommentVNode("",!0),o.isOpened?(e.openBlock(),e.createElementBlock("view",{key:1,class:"uni-data-tree-dialog"},[e.createElementVNode("view",{class:"uni-popper__arrow"}),e.createElementVNode("view",{class:"dialog-caption"},[e.createElementVNode("view",{class:"title-area"},[e.createElementVNode("text",{class:"dialog-title"},e.toDisplayString(i.popupTitle),1)]),e.createElementVNode("view",{class:"dialog-close",onClick:n[3]||(n[3]=(...e)=>r.handleClose&&r.handleClose(...e))},[e.createElementVNode("view",{class:"dialog-close-plus","data-id":"close"}),e.createElementVNode("view",{class:"dialog-close-plus dialog-close-rotate","data-id":"close"})])]),e.createVNode(d,{class:"picker-view",ref:"pickerView",modelValue:t.dataValue,"onUpdate:modelValue":n[4]||(n[4]=e=>t.dataValue=e),localdata:t.localdata,preload:t.preload,collection:t.collection,field:t.field,orderby:t.orderby,where:t.where,"step-searh":t.stepSearh,"self-field":t.selfField,"parent-field":t.parentField,"managed-mode":!0,map:t.map,ellipsis:i.ellipsis,onChange:r.onchange,onDatachange:r.ondatachange,onNodeclick:r.onnodeclick},null,8,["modelValue","localdata","preload","collection","field","orderby","where","step-searh","self-field","parent-field","map","ellipsis","onChange","onDatachange","onNodeclick"])])):e.createCommentVNode("",!0)])}],["__scopeId","data-v-0b9ed1e5"]]),ws={__name:"index",setup(n){const i=H(),{proxy:s}=e.getCurrentInstance(),r=e.ref([]),l=()=>{var e;d({url:"/sys/sysDepart/queryTreeList",method:"get",data:e}).then((e=>{r.value=e.result,h=e.result[0].id,u(e.result[0].id)})).catch((e=>{t("log","at pages/userlist/index.vue:98",e)}))},c=e.ref([]),u=(e,a,n)=>{var i;(i={id:e,username:a||"",realname:n||""},d({url:"/sys/user/queryUserByDepId",method:"get",data:i})).then((e=>{e.success&&(c.value=e.result)})).catch((e=>{t("log","at pages/userlist/index.vue:113",e)}))};let h=null,m=[];const p=e=>{u(e.id),h=e.id,-1!=m.indexOf(e.title)?m.splice(m.indexOf(e.title),1,e.title):m.push(e.title)},f=e.ref([]);let g=0,y=null,v=null,w=null;o((e=>{g=e.isradio,y=e.id,w=e.reason,e.nextnode&&(v=JSON.parse(e.nextnode)),l()}));const k=e.ref(""),b=e.ref(""),E=()=>{(k.value.trim()||b.value.trim())&&(c.value=[],u(h,k.value,b.value))},S=()=>{k.value="",b.value="",c.value=[],u(h,k.value,b.value)},x=()=>{if(!f.value.length)return s.$toast("请选择被委托人");var e;(e={taskAssignee:c.value.filter((e=>e.id==f.value[0]))[0].username,taskId:y},d({url:"/act/task/taskEntrust",method:"put",data:e})).then((e=>{e.success&&(s.$toast(e.message),setTimeout((()=>{uni.navigateBack()}),2e3))}))},N=()=>{v?V():x()},V=()=>{_({taskId:y,reason:w,processModel:1,nextnode:v[0].nextnode,nextUserName:c.value.filter((e=>e.id==f.value[0]))[0].realname,nextUserId:f.value[0]}).then((e=>{s.$toast(e.message),setTimeout((()=>{uni.navigateBack()}),2e3)}))};return(n,s)=>{const o=a(e.resolveDynamicComponent("uni-data-picker"),vs),l=a(e.resolveDynamicComponent("uni-icons"),Y);return e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass(["content",{gray:1==e.unref(i).isgray}])},[e.createVNode(o,{onPopupclosed:s[0]||(s[0]=e=>(e=>{t("log","at pages/userlist/index.vue:129","qqq",e)})(e)),"step-searh":!1,map:{text:"departName",value:"id"},localdata:r.value,"popup-title":"请选择部门",placeholder:"请选择部门",onNodeclick:p},null,8,["localdata"]),e.createElementVNode("view",{class:"search_box"},[e.createElementVNode("view",{class:"username f-row aic"},[e.createTextVNode(" 用户姓名:"),e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":s[1]||(s[1]=e=>b.value=e),type:"text",placeholder:"请输入姓名","placeholder-style":"color: grey;font-size: 28rpx;"},null,512),[[e.vModelText,b.value]])]),e.createElementVNode("view",{class:"username f-row aic"},[e.createTextVNode(" 用户账号:"),e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":s[2]||(s[2]=e=>k.value=e),type:"text",placeholder:"请输入账号","placeholder-style":"color: grey;font-size: 28rpx;"},null,512),[[e.vModelText,k.value]])]),e.createElementVNode("view",{class:"btn f-row aic jca"},[e.createElementVNode("view",{class:"f-row aic",onClick:E},[e.createVNode(l,{type:"search",size:"15",color:"#fff"}),e.createTextVNode(" 查询 ")]),e.createElementVNode("view",{class:"f-row aic",onClick:S},[e.createVNode(l,{type:"refreshempty",size:"15",color:"#fff"}),e.createTextVNode(" 重置 ")])])]),e.createElementVNode("view",{class:"list"},[e.createElementVNode("view",{class:"title f-row aic box"},[e.createElementVNode("view",{class:""}),e.createElementVNode("view",{class:""}," 序号 "),e.createElementVNode("view",{class:"username"}," 用户账号 "),e.createElementVNode("view",{class:""}," 用户姓名 ")]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,((t,a)=>(e.openBlock(),e.createElementBlock("view",{class:"item f-row aic box",key:a},[e.createElementVNode("view",{class:"f-row aic img",onClick:e=>(e=>{if(g){if(-1!=f.value.indexOf(e))return;f.value.splice(f.value.indexOf(e),1,e)}else-1!=f.value.indexOf(e)?f.value.splice(f.value.indexOf(e),1):f.value.push(e)})(t.id)},[f.value.includes(t.id)?(e.openBlock(),e.createElementBlock("image",{key:0,src:"/static/login/checked.png",mode:""})):(e.openBlock(),e.createElementBlock("image",{key:1,src:"/static/login/nocheck.png",mode:""}))],8,["onClick"]),e.createElementVNode("view",{class:"order"},e.toDisplayString(a+1),1),e.createElementVNode("view",{class:"username f-col aic"},[e.createElementVNode("view",{class:""},e.toDisplayString(t.username),1)]),e.createElementVNode("view",{class:"realname"},[e.createElementVNode("view",{class:""},e.toDisplayString(t.realname),1)])])))),128))]),e.createElementVNode("view",{class:"confirm f-col aic"},[e.createElementVNode("view",{class:"",onClick:N}," 确认 ")])],2)}}},ks=q(ws,[["__scopeId","data-v-a805c56c"]]),bs=q({__name:"detail",setup(t){const a=H();return(t,n)=>(e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass(["content",{gray:1==e.unref(a).isgray}])},[e.createElementVNode("view",{class:""},[e.createElementVNode("video",{src:""}),e.createElementVNode("view",{class:"title"}," 五月天“突然好想你”线上演唱会精彩回放,这里就是标题 ")]),e.createElementVNode("view",{class:"listcom"},[e.createVNode(ls)])],2))}},[["__scopeId","data-v-ab4e5d54"]]);var _s={exports:{}};!function(e,t){e.exports=function(){var e=1e3,t=6e4,a=36e5,n="millisecond",i="second",s="minute",o="hour",r="day",l="week",c="month",d="quarter",u="year",h="date",m="Invalid Date",p=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,f=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,g={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],a=e%100;return"["+e+(t[(a-20)%10]||t[a]||t[0])+"]"}},y=function(e,t,a){var n=String(e);return!n||n.length>=t?e:""+Array(t+1-n.length).join(a)+e},v={s:y,z:function(e){var t=-e.utcOffset(),a=Math.abs(t),n=Math.floor(a/60),i=a%60;return(t<=0?"+":"-")+y(n,2,"0")+":"+y(i,2,"0")},m:function e(t,a){if(t.date()1)return e(o[0])}else{var r=t.name;k[r]=t,i=r}return!n&&i&&(w=i),i||!n&&w},S=function(e,t){if(_(e))return e.clone();var a="object"==typeof t?t:{};return a.date=e,a.args=arguments,new N(a)},x=v;x.l=E,x.i=_,x.w=function(e,t){return S(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var N=function(){function g(e){this.$L=E(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[b]=!0}var y=g.prototype;return y.parse=function(e){this.$d=function(e){var t=e.date,a=e.utc;if(null===t)return new Date(NaN);if(x.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var n=t.match(p);if(n){var i=n[2]-1||0,s=(n[7]||"0").substring(0,3);return a?new Date(Date.UTC(n[1],i,n[3]||1,n[4]||0,n[5]||0,n[6]||0,s)):new Date(n[1],i,n[3]||1,n[4]||0,n[5]||0,n[6]||0,s)}}return new Date(t)}(e),this.init()},y.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},y.$utils=function(){return x},y.isValid=function(){return!(this.$d.toString()===m)},y.isSame=function(e,t){var a=S(e);return this.startOf(t)<=a&&a<=this.endOf(t)},y.isAfter=function(e,t){return S(e){l()}));const s=e.ref(Es().format("YYYY-MM")),r=e=>{s.value=e.detail.value,l()},l=()=>{let[e,a]=s.value.split("-");var n;(n={year:e,month:a},d({url:"/zhgl_zbgl/zhglZbglZbb/list",method:"get",data:n})).then((e=>{i.value=e.result.records})).catch((e=>{t("log","at pages/zhiban/index.vue:73",e)}))};return(t,a)=>(e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass(["f-col","aic",{gray:1==e.unref(n).isgray}])},[e.createElementVNode("picker",{fields:"month",mode:"date",onChange:r,value:s.value},[e.createElementVNode("view",{class:"date"},e.toDisplayString(s.value)+" 点击选择月份",1)],40,["value"]),e.createElementVNode("view",{class:"info"},[e.createElementVNode("view",{class:"info_title f-row aic"},[e.createElementVNode("view",{class:""}," 日期 "),e.createElementVNode("view",{class:""}," 带班领导 "),e.createElementVNode("view",{class:""}," 值班领导 "),e.createElementVNode("view",{class:""}," 值班干部 ")]),e.createElementVNode("view",{class:"data_box"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value,((t,a)=>(e.openBlock(),e.createElementBlock("view",{class:"data f-row aic"},[e.createElementVNode("view",{class:""},e.toDisplayString(t.date),1),e.createElementVNode("view",{class:""},e.toDisplayString(t.dbld_dictText),1),e.createElementVNode("view",{class:""},e.toDisplayString(t.zbld_dictText),1),e.createElementVNode("view",{class:""},e.toDisplayString(t.zbgbrealname),1)])))),256))])])],2))}},xs=q(Ss,[["__scopeId","data-v-54de2922"]]),Ns={__name:"self",setup(a){const n=H(),i=e.ref([]);let s="";o((e=>{s=e.title,d()}));let l=1,c=!1;const d=()=>{c=!0,uni.showLoading({title:"加载中..."}),p({pageNo:l,pageSize:10,_t:(new Date).getTime(),processName:s}).then((e=>{if(e.success){if(!e.result.records.length)return Ve("没有更多了~");let t=e.result.records;t.map((e=>{e.processApplyUserName=e.startUserName,e.processDefinitionName=e.prcocessDefinitionName,e.taskBeginTime=e.startTime})),i.value=[...i.value,...t],c=!1}})).catch((e=>{t("log","at pages/task/self.vue:59",e)}))},u=e=>{Ce(e,(()=>{uni.navigateTo({url:e})}))};return r((()=>{c||(l++,d())})),(t,a)=>(e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass({gray:1==e.unref(n).isgray})},[e.createVNode(ze,{onJump:u,taskArr:i.value,currentIndex:2},null,8,["taskArr"])],2))}};__definePage("pages/login/login",J),__definePage("pages/tab/index",Le),__definePage("pages/task/todotask",Fe),__definePage("pages/tab/office",je),__definePage("pages/tab/my",Ue),__definePage("pages/task/index",He),__definePage("pages/task/handle",Ze),__definePage("pages/talk/message_list",Xe),__definePage("pages/talk/conversation",et),__definePage("pages/talk/system",tt),__definePage("pages/document/index",at),__definePage("pages/document/detail",nt),__definePage("pages/meeting/index",it),__definePage("pages/meeting/detail",st),__definePage("pages/leave/application",as),__definePage("pages/checkin/index",ns),__definePage("pages/useredit/useredit",is),__definePage("pages/useredit/address",ss),__definePage("pages/useredit/add_address",os),__definePage("pages/useredit/addressbook",rs),__definePage("pages/safe/manage",cs),__definePage("pages/product/index",us),__definePage("pages/userlist/index",ks),__definePage("pages/safe/detail",bs),__definePage("pages/zhiban/index",xs),__definePage("pages/task/self",Ns);const Vs="https://36.112.48.190/jeecg-boot/sys/common/static/",Cs=z("updateApp",(()=>{const t=e.reactive({force:!1,hasNew:!1,content:"",url:"",wgtUrl:""}),a=uni.getSystemInfoSync();return{checkAppUpdate:function(e=!1){try{d({url:"/sys/common/upDateApp",method:"get",data:n}).then((async e=>{let{result:n}=e;n.apkUrl=Vs+n.apkUrl,n.wgtUrl=Vs+n.wgtUrl,t.wgtUrl=n.wgtUrl,"android"===a.osName?(t.apkUrl=n.apkUrl,t.hasNew=await((e,t=!1)=>new Promise((a=>{const n=e=>e.replace(/\./g,"");if(t)plus.runtime.getProperty(plus.runtime.appid,(t=>{const i=t.version;a(+n(e)>+n(i))}));else{const t=plus.runtime.version;a(+n(e)>+n(t))}})))(n.versionCode,"wgt"==n.update)):t.url="itms-apps://itunes.apple.com/cn/app/id123456?mt=8",t.hasNew&&uni.showModal({title:"更新",content:"发现新版本,请更新",success(e){var t,a;e.confirm?(t=n.update,a=n,"wgt"!=t?plus.runtime.openURL(a.apkUrl):De(a.wgtUrl)):plus.runtime.quit()}})}))}catch(i){t.hasNew=!1}var n},...e.toRefs(t),systemInfo:a}})),Ts={__name:"App",setup(e){s((()=>{Cs().checkAppUpdate(),Ie()})),i((()=>{t()}));const t=()=>{var e;(e={id:"1827997127165677570"},d({url:"/CxcJurisdiction/cxcJurisdiction/queryById",method:"get",data:e})).then((e=>{if(e.success){const t=H();uni.setStorageSync("isgray",e.result.value),t.setIsgray(e.result.value)}}))};return()=>{}}},Ds=q({__name:"index",props:{dataId:{type:String,default:""}},setup(t){const n=t,i=e.ref([]),s={width:64,height:64,border:{color:"#dce7e1",width:2,style:"dashed",radius:"2px"}},o=e.ref({}),r=()=>{var e;(e={id:n.dataId},d({url:"/CxcQxj/cxcQxj/queryById",method:"get",data:e})).then((e=>{e.success&&(o.value=e.result.records[0],i.value=o.value.path.split(",").map((e=>{const t=e.split("/").pop(),a=t.split(".").pop();return{name:t,extname:a,url:Re(e)}})))}))},l=e.ref([]),c=e=>{b({processInstanceId:e}).then((e=>{e.success&&(l.value=e.result.records)}))};return e.onMounted((()=>{r(),k({flowCode:"dev_cxc_qxj",dataId:n.dataId}).then((e=>{e.success&&c(e.result.processInstanceId)}))})),(t,n)=>{const r=a(e.resolveDynamicComponent("uni-file-picker"),Yi);return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("view",{class:"f-col aic"},[e.createElementVNode("view",{class:"info_box"},[e.createElementVNode("view",{class:"title"}," 申请信息 "),e.createElementVNode("view",{class:"info f-row aic jcb"},[e.createElementVNode("view",null," 请假职工: "),e.createElementVNode("text",null,e.toDisplayString(o.value.username_dictText),1)]),e.createElementVNode("view",{class:"info f-row aic jcb"},[e.createElementVNode("view",null," 所属单位: "),e.createElementVNode("text",null,e.toDisplayString(o.value.sysOrgCode_dictText),1)]),e.createElementVNode("view",{class:"info f-row aic jcb"},[e.createElementVNode("view",null," 联系方式: "),e.createElementVNode("text",null,e.toDisplayString(o.value.phone),1)]),e.createElementVNode("view",{class:"info f-row aic jcb"},[e.createElementVNode("view",null," 请假类型: "),e.createElementVNode("text",null,e.toDisplayString(o.value.type),1)]),e.createElementVNode("view",{class:"info f-row aic jcb"},[e.createElementVNode("view",null," 请假开始时间: "),e.createElementVNode("text",null,e.toDisplayString(o.value.begintime),1)]),e.createElementVNode("view",{class:"info f-row aic jcb"},[e.createElementVNode("view",null," 请假结束时间: "),e.createElementVNode("text",null,e.toDisplayString(o.value.endtime),1)]),e.createElementVNode("view",{class:"info f-row aic jcb"},[e.createElementVNode("view",null," 请假天数: "),e.createElementVNode("text",null,e.toDisplayString(o.value.days),1)]),e.createElementVNode("view",{class:"info f-row aic jcb"},[e.createElementVNode("view",null," 审批人: "),e.createElementVNode("text",null,e.toDisplayString(o.value.examineleader_dictText),1)]),e.createElementVNode("view",{class:"info f-row aic jcb"},[e.createElementVNode("view",null," 请假地点: "),e.createElementVNode("text",null,e.toDisplayString(o.value.address),1)]),e.createElementVNode("view",{class:"info f-row aic jcb"},[e.createElementVNode("view",null," 请假原因: "),e.createElementVNode("text",null,e.toDisplayString(o.value.reason),1)]),e.createElementVNode("view",{class:"info f-row aic jcb"},[e.createElementVNode("view",null," 附件: "),e.createVNode(r,{modelValue:i.value,"onUpdate:modelValue":n[0]||(n[0]=e=>i.value=e),"image-styles":s},null,8,["modelValue"])])])]),e.createElementVNode("view",{class:"f-col aic"},[e.createElementVNode("view",{class:"progress"},[e.createElementVNode("view",{class:"title"}," 审批流程 "),e.createElementVNode("view",{class:"progress_box"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.value,((t,a)=>(e.openBlock(),e.createElementBlock("view",{class:"box",key:a},[e.createElementVNode("view",{class:"topic f-row aic"},[e.createElementVNode("view",null,e.toDisplayString(t.name),1),e.createElementVNode("view",{class:e.normalizeClass(["status",{complete:"已完成"==t.deleteReason},{refuse:"已拒绝"==t.deleteReason}])},e.toDisplayString(t.deleteReason),3)]),e.createElementVNode("view",{class:"name_time"},e.toDisplayString(t.assigneeName)+" | "+e.toDisplayString(t.endTime),1)])))),128))])])])],64)}}},[["__scopeId","data-v-4dc4d50b"]]),Bs=q({__name:"processCom",props:{info:{type:Array,default:()=>[]}},setup:t=>(a,n)=>(e.openBlock(),e.createElementBlock("view",{class:"f-col aic"},[e.createElementVNode("view",{class:"info_box"},[e.createElementVNode("view",{class:"title"}," 申请信息 "),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.info,((t,a)=>(e.openBlock(),e.createElementBlock("view",{class:"",key:a},[e.createElementVNode("view",{class:"info f-row aic jcb"},[e.createElementVNode("view",{class:""},e.toDisplayString(t.title)+": ",1),"事项内容"==t.title?(e.openBlock(),e.createElementBlock("rich-text",{key:0,nodes:t.data},null,8,["nodes"])):(e.openBlock(),e.createElementBlock("text",{key:1},e.toDisplayString(t.data),1))])])))),128))])]))},[["__scopeId","data-v-8f3f5a9f"]]),Is=q({__name:"supervise",props:{dataId:{type:String,default:""}},setup(a){const n=a,i=[{title:"基本信息",id:1},{title:"事项详情",id:2},{title:"添加下级",id:3},{title:"节点顺序",id:4},{title:"运行计划",id:5}],s=e.ref(1),o=e.ref([]),r=()=>{var e;(e={id:n.dataId},d({url:"/cxcdbxt/dbSxxq/queryById",method:"get",data:e})).then((e=>{if(e.success&&(1==s.value&&l(e.result.jbxxid),2==s.value)){let t=e.result;o.value=[{title:"承办部门",data:t.zbdw},{title:"协办部门",data:t.xbdw},{title:"部门领导",data:t.fgld},{title:"办理人员",data:t.dbry},{title:"要求反馈时间",data:t.yqfksj},{title:"节点名称",data:""},{title:"预计完成时间",data:""},{title:"实际反馈时间",data:t.sjfksj},{title:"自评价",data:t.zpj},{title:"发起时间",data:t.fqsj},{title:"序号",data:""},{title:"概述",data:""},{title:"时间进度",data:""},{title:"事项内容",data:t.sxnr}]}}))},l=e=>{var t;(t={id:e},d({url:"/cxcdbxt/dbJbxx/queryById",method:"get",data:t})).then((e=>{if(e.success){let t=e.result;o.value=[{title:"督办分类",data:t.fl},{title:"协办部门",data:t.xbbm},{title:"督办部门",data:t.cbbm},{title:"督办人员",data:t.dbry},{title:"督办部门负责人",data:t.zrr},{title:"是否涉密",data:t.sfsm},{title:"计划完成时间",data:t.jhwcsj},{title:"实际完成时间",data:t.wcsj},{title:"完成状态",data:t.wczt},{title:"备注",data:t.bz},{title:"督办事项",data:t.dbsx},{title:"时间进度",data:t.sjjd}]}}))},c=e.ref([]),u=e=>{t("log","at bpm/supervise.vue:199","000",e),b({processInstanceId:e}).then((e=>{t("log","at bpm/supervise.vue:203","0088800",e),e.success&&(c.value=e.result.records)}))};return e.onMounted((()=>{r(),k({flowCode:"dev_db_sxxq_001",dataId:n.dataId}).then((e=>{e.success&&u(e.result.processInstanceId)}))})),(t,a)=>(e.openBlock(),e.createElementBlock("view",{class:""},[e.createElementVNode("view",{class:"tab f-row aic"},[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(i,((t,a)=>e.createElementVNode("view",{class:e.normalizeClass({active:s.value==t.id}),key:a,onClick:e=>{return a=t.id,s.value=a,void r();var a}},e.toDisplayString(t.title),11,["onClick"]))),64))]),e.createVNode(Bs,{info:o.value},null,8,["info"]),e.createElementVNode("view",{class:"f-col aic"},[e.createElementVNode("view",{class:"progress"},[e.createElementVNode("view",{class:"title"}," 审批流程 "),e.createElementVNode("view",{class:"progress_box"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,((t,a)=>(e.openBlock(),e.createElementBlock("view",{class:"box",key:a},[e.createElementVNode("view",{class:"topic f-row aic"},[e.createElementVNode("view",{class:""},e.toDisplayString(t.name),1),e.createElementVNode("view",{class:e.normalizeClass(["status",{complete:"已完成"==t.deleteReason},{refuse:"已拒绝"==t.deleteReason}])},e.toDisplayString(t.deleteReason),3)]),e.createElementVNode("view",{class:"name_time"},e.toDisplayString(t.assigneeName)+" | "+e.toDisplayString(t.endTime),1)])))),128))])])])]))}},[["__scopeId","data-v-c842b888"]]),Ps=function(){const t=e.effectScope(!0),a=t.run((()=>e.ref({})));let n=[],i=[];const s=e.markRaw({install(e){D(s),s._a=e,e.provide(B,s),e.config.globalProperties.$pinia=s,i.forEach((e=>n.push(e))),i=[]},use(e){return this._a?n.push(e):i.push(e),this},_p:n,_a:null,_e:t,_s:new Map,state:a});return s}();const{app:As,Vuex:Ms,Pinia:Rs}=function(){const t=e.createVueApp(Ts);return t.use(Ps),t.component("leaveApplication",Ds),t.component("supervise",Is),t.config.globalProperties.$toast=Ve,{app:t}}();uni.Vuex=Ms,uni.Pinia=Rs,As.provide("__globalStyles",__uniConfig.styles),As._component.mpType="app",As._component.render=()=>{},As.mount("#app")}(Vue); diff --git a/unpackage/cache/wgt/__UNI__F0AFD30/manifest.json b/unpackage/cache/wgt/__UNI__F0AFD30/manifest.json deleted file mode 100644 index 85e07f3..0000000 --- a/unpackage/cache/wgt/__UNI__F0AFD30/manifest.json +++ /dev/null @@ -1 +0,0 @@ -{"@platforms":["android","iPhone","iPad"],"id":"__UNI__F0AFD30","name":"数智产销","version":{"name":"1.0.0","code":20241024},"description":"","developer":{"name":"","email":"","url":""},"permissions":{"Geolocation":{},"Fingerprint":{},"Camera":{},"Barcode":{},"UniNView":{"description":"UniNView原生渲染"}},"plus":{"useragent":{"value":"uni-app","concatenate":true},"splashscreen":{"autoclose":true,"delay":0,"target":"id:1","waiting":true},"popGesture":"close","launchwebview":{"id":"1","kernel":"WKWebview"},"usingComponents":true,"nvueStyleCompiler":"uni-app","compilerVersion":3,"distribute":{"icons":{"android":{"hdpi":"icon-android-hdpi.png","xhdpi":"icon-android-xhdpi.png","xxhdpi":"icon-android-xxhdpi.png","xxxhdpi":"icon-android-xxxhdpi.png"},"ios":{"appstore":"unpackage/res/icons/1024x1024.png","ipad":{"app":"unpackage/res/icons/76x76.png","app@2x":"unpackage/res/icons/152x152.png","notification":"unpackage/res/icons/20x20.png","notification@2x":"unpackage/res/icons/40x40.png","proapp@2x":"unpackage/res/icons/167x167.png","settings":"unpackage/res/icons/29x29.png","settings@2x":"unpackage/res/icons/58x58.png","spotlight":"unpackage/res/icons/40x40.png","spotlight@2x":"unpackage/res/icons/80x80.png"},"iphone":{"app@2x":"unpackage/res/icons/120x120.png","app@3x":"unpackage/res/icons/180x180.png","notification@2x":"unpackage/res/icons/40x40.png","notification@3x":"unpackage/res/icons/60x60.png","settings@2x":"unpackage/res/icons/58x58.png","settings@3x":"unpackage/res/icons/87x87.png","spotlight@2x":"unpackage/res/icons/80x80.png","spotlight@3x":"unpackage/res/icons/120x120.png"},"prerendered":"false"}},"google":{"permissions":["","","","","","","","","","","","","","",""],"packagename":"uni.UNIF0AFD30","aliasname":"__uni__f0afd30","password":"4Z2SSz2hk5AO56cxUDfY3A==","keystore":"google-keystore.keystore","custompermissions":true},"apple":{"dSYMs":false,"devices":"universal"},"plugins":{"ad":{},"audio":{"mp3":{"description":"Android平台录音支持MP3格式文件"}},"geolocation":{"system":{"__platform__":["android"]}}},"orientation":"portrait-primary"},"statusbar":{"immersed":"supportedDevice","style":"dark","background":"#000000"},"uniStatistics":{"enable":false},"allowsInlineMediaPlayback":true,"safearea":{"background":"#FFFFFF","bottom":{"offset":"auto"}},"uni-app":{"control":"uni-v3","vueVersion":"3","compilerVersion":"4.15","nvueCompiler":"uni-app","renderer":"auto","nvue":{"flex-direction":"column"},"nvueLaunchMode":"normal","webView":{"minUserAgentVersion":"49.0"}},"tabBar":{"position":"bottom","color":"#333333","selectedColor":"#01508B","borderStyle":"rgba(0,0,0,0.4)","blurEffect":"none","fontSize":"10px","iconWidth":"24px","spacing":"3px","height":"50px","backgroundColor":"#FFFFFF","list":[{"text":"首页","pagePath":"pages/tab/index","iconPath":"/static/tab/index1.png","selectedIconPath":"/static/tab/index2.png"},{"text":"任务","pagePath":"pages/task/todotask","iconPath":"/static/tab/office1.png","selectedIconPath":"/static/tab/office2.png"},{"text":"办公","pagePath":"pages/tab/office","iconPath":"/static/tab/product1.png","selectedIconPath":"/static/tab/product2.png"},{"text":"我的","pagePath":"pages/tab/my","iconPath":"/static/tab/user1.png","selectedIconPath":"/static/tab/user2.png"}],"selectedIndex":0,"shown":true},"adid":"120390270110"},"launch_path":"__uniappview.html"} \ No newline at end of file diff --git a/unpackage/debug/.roid.ins b/unpackage/debug/.roid.ins new file mode 100644 index 0000000..3b526db --- /dev/null +++ b/unpackage/debug/.roid.ins @@ -0,0 +1 @@ +forceInstall \ No newline at end of file diff --git a/unpackage/debug/android_debug.apk b/unpackage/debug/android_debug.apk new file mode 100644 index 0000000..a76cad0 Binary files /dev/null and b/unpackage/debug/android_debug.apk differ diff --git a/unpackage/dist/build/app-plus/app-service.js b/unpackage/dist/build/app-plus/app-service.js index 9240099..3a77d7b 100644 --- a/unpackage/dist/build/app-plus/app-service.js +++ b/unpackage/dist/build/app-plus/app-service.js @@ -1,8 +1,9 @@ -if("undefined"==typeof Promise||Promise.prototype.finally||(Promise.prototype.finally=function(e){const t=this.constructor;return this.then((a=>t.resolve(e()).then((()=>a))),(a=>t.resolve(e()).then((()=>{throw a}))))}),"undefined"!=typeof uni&&uni&&uni.requireGlobal){const e=uni.requireGlobal();ArrayBuffer=e.ArrayBuffer,Int8Array=e.Int8Array,Uint8Array=e.Uint8Array,Uint8ClampedArray=e.Uint8ClampedArray,Int16Array=e.Int16Array,Uint16Array=e.Uint16Array,Int32Array=e.Int32Array,Uint32Array=e.Uint32Array,Float32Array=e.Float32Array,Float64Array=e.Float64Array,BigInt64Array=e.BigInt64Array,BigUint64Array=e.BigUint64Array}uni.restoreGlobal&&uni.restoreGlobal(Vue,weex,plus,setTimeout,clearTimeout,setInterval,clearInterval),function(e){"use strict";function t(e,t,...a){uni.__log__?uni.__log__(e,t,...a):console[e].apply(console,[...a,t])}function a(e,t){return"string"==typeof e?t:e}const n=t=>(a,n=e.getCurrentInstance())=>{!e.isInSSRComponentSetup&&e.injectHook(t,a,n)},i=n("onShow"),s=n("onLaunch"),o=n("onLoad"),r=n("onReachBottom"),l=n("onPullDownRefresh");let c=!1;function d(e){if(c)return;if(uni.getStorageSync("logintime")&&uni.getStorageSync("logintime")+36e5<=Date.now())return c=!0,t("log","at utils/http.js:11","token超时"),uni.removeStorageSync("logintime"),uni.navigateTo({url:"/pages/login/login"}),void(c=!1);e.url="https://36.112.48.190/jeecg-boot"+e.url;let a=uni.getStorageSync("token")||"";return e.header={"content-type":"application/json;charset=utf-8","X-Access-Token":a},new Promise((function(t,a){uni.request(e).then((e=>{if(wx.hideLoading(),e[0])uni.showToast({title:"数据获取失败",icon:"none",duration:1500}),t(!1);else{let a=e.data;if(t(a),c)return;500==a.code&&uni.showToast({title:a.message,icon:"none",duration:1500}),510==a.code&&(c=!0,uni.showToast({title:a.message,icon:"none",duration:1500}),uni.removeStorageSync("token"),uni.removeStorageSync("user"),uni.removeStorageSync("role"),uni.navigateTo({url:"/pages/login/login"}),uni.removeStorageSync("logintime"),c=!1)}})).catch((e=>{uni.hideLoading(),a(e)}))}))}function u(e){return d({url:"/sys/permission/getUserPermissionByToken",method:"get",data:e})}function h(e){return d({url:"/act/task/list",method:"get",data:e})}function m(e){return d({url:"/act/task/taskHistoryList",method:"get",data:e})}function p(e){return d({url:"/act/task/myApplyProcessList",method:"get",data:e})}function f(e){return d({url:"/cxcoagwfb/cxcOaGwfb/bpmlist",method:"get",data:e})}function g(e){return d({url:"/cxctz/cxcTz/list",method:"get",data:e})}function y(e){return d({url:"/cxcoaflgf/cxcOaFlgf/zslist",method:"get",data:e})}function v(e){return d({url:"/cxcjyglsjzdgl/cxcJyglSjzdgl/zslist",method:"get",data:e})}function w(e){return d({url:"/cxczd/cxcZdgl/list",method:"get",data:e})}function k(e){return d({url:"/process/extActFlowData/getProcessInfo",method:"get",data:e})}function b(e){return d({url:"/act/task/processHistoryList",method:"get",data:e})}function _(e){return d({url:"/act/task/processComplete",method:"post",data:e})}var E="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function S(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var x,N,V={exports:{}}; -/*! https://mths.be/base64 v1.0.0 by @mathias | MIT license */x=V,N=V.exports,function(e){var t=N,a=x&&x.exports==t&&x,n="object"==typeof E&&E;n.global!==n&&n.window!==n||(e=n);var i=function(e){this.message=e};(i.prototype=new Error).name="InvalidCharacterError";var s=function(e){throw new i(e)},o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r=/[\t\n\f\r ]/g,l={encode:function(e){e=String(e),/[^\0-\xFF]/.test(e)&&s("The string to be encoded contains characters outside of the Latin1 range.");for(var t,a,n,i,r=e.length%3,l="",c=-1,d=e.length-r;++c>18&63)+o.charAt(i>>12&63)+o.charAt(i>>6&63)+o.charAt(63&i);return 2==r?(t=e.charCodeAt(c)<<8,a=e.charCodeAt(++c),l+=o.charAt((i=t+a)>>10)+o.charAt(i>>4&63)+o.charAt(i<<2&63)+"="):1==r&&(i=e.charCodeAt(c),l+=o.charAt(i>>2)+o.charAt(i<<4&63)+"=="),l},decode:function(e){var t=(e=String(e).replace(r,"")).length;t%4==0&&(t=(e=e.replace(/==?$/,"")).length),(t%4==1||/[^+a-zA-Z0-9/]/.test(e))&&s("Invalid character: the string to be decoded is not correctly encoded.");for(var a,n,i=0,l="",c=-1;++c>(-2*i&6)));return l},version:"1.0.0"};if(t&&!t.nodeType)if(a)a.exports=l;else for(var c in l)l.hasOwnProperty(c)&&(t[c]=l[c]);else e.base64=l}(E);const C=S(V.exports); +if("undefined"==typeof Promise||Promise.prototype.finally||(Promise.prototype.finally=function(e){const t=this.constructor;return this.then((n=>t.resolve(e()).then((()=>n))),(n=>t.resolve(e()).then((()=>{throw n}))))}),"undefined"!=typeof uni&&uni&&uni.requireGlobal){const e=uni.requireGlobal();ArrayBuffer=e.ArrayBuffer,Int8Array=e.Int8Array,Uint8Array=e.Uint8Array,Uint8ClampedArray=e.Uint8ClampedArray,Int16Array=e.Int16Array,Uint16Array=e.Uint16Array,Int32Array=e.Int32Array,Uint32Array=e.Uint32Array,Float32Array=e.Float32Array,Float64Array=e.Float64Array,BigInt64Array=e.BigInt64Array,BigUint64Array=e.BigUint64Array}uni.restoreGlobal&&uni.restoreGlobal(Vue,weex,plus,setTimeout,clearTimeout,setInterval,clearInterval),function(e){"use strict";function t(e,t,...n){uni.__log__?uni.__log__(e,t,...n):console[e].apply(console,[...n,t])}function n(e,t){return"string"==typeof e?t:e}const i=t=>(n,i=e.getCurrentInstance())=>{!e.isInSSRComponentSetup&&e.injectHook(t,n,i)},a=i("onShow"),s=i("onLaunch"),r=i("onLoad"),o=i("onReachBottom"),l=i("onPullDownRefresh");let c=!1;function u(e){if(c)return;if(uni.getStorageSync("logintime")&&uni.getStorageSync("logintime")+36e5<=Date.now())return c=!0,t("log","at utils/http.js:11","token超时"),uni.removeStorageSync("logintime"),uni.navigateTo({url:"/pages/login/login"}),void(c=!1);e.url="https://36.112.48.190/jeecg-boot"+e.url;let n=uni.getStorageSync("token")||"";return e.header={"content-type":"application/json;charset=utf-8","X-Access-Token":n},new Promise((function(t,n){uni.request(e).then((e=>{if(wx.hideLoading(),e[0])uni.showToast({title:"数据获取失败",icon:"none",duration:1500}),t(!1);else{let n=e.data;if(t(n),c)return;500==n.code&&uni.showToast({title:n.message,icon:"none",duration:1500}),510==n.code&&(c=!0,uni.showToast({title:n.message,icon:"none",duration:1500}),uni.removeStorageSync("token"),uni.removeStorageSync("user"),uni.removeStorageSync("role"),uni.navigateTo({url:"/pages/login/login"}),uni.removeStorageSync("logintime"),c=!1)}})).catch((e=>{uni.hideLoading(),n(e)}))}))}function d(e){return u({url:"/sys/permission/getUserPermissionByToken",method:"get",data:e})}function h(e){return u({url:"/act/task/list",method:"get",data:e})}function p(e){return u({url:"/act/task/taskHistoryList",method:"get",data:e})}function f(e){return u({url:"/act/task/myApplyProcessList",method:"get",data:e})}function m(e){return u({url:"/cxcoagwfb/cxcOaGwfb/bpmlist",method:"get",data:e})}function g(e){return u({url:"/cxctz/cxcTz/list",method:"get",data:e})}function v(e){return u({url:"/cxcoaflgf/cxcOaFlgf/zslist",method:"get",data:e})}function y(e){return u({url:"/cxcjyglsjzdgl/cxcJyglSjzdgl/zslist",method:"get",data:e})}function w(e){return u({url:"/cxczd/cxcZdgl/list",method:"get",data:e})}function k(e){return u({url:"/process/extActFlowData/getProcessInfo",method:"get",data:e})}function _(e){return u({url:"/act/task/processHistoryList",method:"get",data:e})}function S(e){return u({url:"/act/task/processComplete",method:"post",data:e})}var b="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function E(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var x,D,T={exports:{}}; +/*! https://mths.be/base64 v1.0.0 by @mathias | MIT license */x=T,D=T.exports,function(e){var t=D,n=x&&x.exports==t&&x,i="object"==typeof b&&b;i.global!==i&&i.window!==i||(e=i);var a=function(e){this.message=e};(a.prototype=new Error).name="InvalidCharacterError";var s=function(e){throw new a(e)},r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=/[\t\n\f\r ]/g,l={encode:function(e){e=String(e),/[^\0-\xFF]/.test(e)&&s("The string to be encoded contains characters outside of the Latin1 range.");for(var t,n,i,a,o=e.length%3,l="",c=-1,u=e.length-o;++c>18&63)+r.charAt(a>>12&63)+r.charAt(a>>6&63)+r.charAt(63&a);return 2==o?(t=e.charCodeAt(c)<<8,n=e.charCodeAt(++c),l+=r.charAt((a=t+n)>>10)+r.charAt(a>>4&63)+r.charAt(a<<2&63)+"="):1==o&&(a=e.charCodeAt(c),l+=r.charAt(a>>2)+r.charAt(a<<4&63)+"=="),l},decode:function(e){var t=(e=String(e).replace(o,"")).length;t%4==0&&(t=(e=e.replace(/==?$/,"")).length),(t%4==1||/[^+a-zA-Z0-9/]/.test(e))&&s("Invalid character: the string to be decoded is not correctly encoded.");for(var n,i,a=0,l="",c=-1;++c>(-2*a&6)));return l},version:"1.0.0"};if(t&&!t.nodeType)if(n)n.exports=l;else for(var c in l)l.hasOwnProperty(c)&&(t[c]=l[c]);else e.base64=l}(b);const N=E(T.exports); /*! * pinia v2.1.7 * (c) 2023 Eduardo San Martin Morote * @license MIT */ -let T;const D=e=>T=e,B=Symbol();function I(e){return e&&"object"==typeof e&&"[object Object]"===Object.prototype.toString.call(e)&&"function"!=typeof e.toJSON}var P,A;(A=P||(P={})).direct="direct",A.patchObject="patch object",A.patchFunction="patch function";const M=()=>{};function R(t,a,n,i=M){t.push(a);const s=()=>{const e=t.indexOf(a);e>-1&&(t.splice(e,1),i())};return!n&&e.getCurrentScope()&&e.onScopeDispose(s),s}function L(e,...t){e.slice().forEach((e=>{e(...t)}))}const O=e=>e();function F(t,a){t instanceof Map&&a instanceof Map&&a.forEach(((e,a)=>t.set(a,e))),t instanceof Set&&a instanceof Set&&a.forEach(t.add,t);for(const n in a){if(!a.hasOwnProperty(n))continue;const i=a[n],s=t[n];I(s)&&I(i)&&t.hasOwnProperty(n)&&!e.isRef(i)&&!e.isReactive(i)?t[n]=F(s,i):t[n]=i}return t}const $=Symbol();const{assign:j}=Object;function U(t,a,n={},i,s,o){let r;const l=j({actions:{}},n),c={deep:!0};let d,u,h,m=[],p=[];const f=i.state.value[t];let g;function y(a){let n;d=u=!1,"function"==typeof a?(a(i.state.value[t]),n={type:P.patchFunction,storeId:t,events:h}):(F(i.state.value[t],a),n={type:P.patchObject,payload:a,storeId:t,events:h});const s=g=Symbol();e.nextTick().then((()=>{g===s&&(d=!0)})),u=!0,L(m,n,i.state.value[t])}o||f||(i.state.value[t]={}),e.ref({});const v=o?function(){const{state:e}=n,t=e?e():{};this.$patch((e=>{j(e,t)}))}:M;function w(e,a){return function(){D(i);const n=Array.from(arguments),s=[],o=[];function r(e){s.push(e)}function l(e){o.push(e)}let c;L(p,{args:n,name:e,store:b,after:r,onError:l});try{c=a.apply(this&&this.$id===t?this:b,n)}catch(d){throw L(o,d),d}return c instanceof Promise?c.then((e=>(L(s,e),e))).catch((e=>(L(o,e),Promise.reject(e)))):(L(s,c),c)}}const k={_p:i,$id:t,$onAction:R.bind(null,p),$patch:y,$reset:v,$subscribe(a,n={}){const s=R(m,a,n.detached,(()=>o())),o=r.run((()=>e.watch((()=>i.state.value[t]),(e=>{("sync"===n.flush?u:d)&&a({storeId:t,type:P.direct,events:h},e)}),j({},c,n))));return s},$dispose:function(){r.stop(),m=[],p=[],i._s.delete(t)}},b=e.reactive(k);i._s.set(t,b);const _=(i._a&&i._a.runWithContext||O)((()=>i._e.run((()=>(r=e.effectScope()).run(a)))));for(const x in _){const a=_[x];if(e.isRef(a)&&(S=a,!e.isRef(S)||!S.effect)||e.isReactive(a))o||(!f||I(E=a)&&E.hasOwnProperty($)||(e.isRef(a)?a.value=f[x]:F(a,f[x])),i.state.value[t][x]=a);else if("function"==typeof a){const e=w(x,a);_[x]=e,l.actions[x]=a}}var E,S;return j(b,_),j(e.toRaw(b),_),Object.defineProperty(b,"$state",{get:()=>i.state.value[t],set:e=>{y((t=>{j(t,e)}))}}),i._p.forEach((e=>{j(b,r.run((()=>e({store:b,app:i._a,pinia:i,options:l}))))})),f&&o&&n.hydrate&&n.hydrate(b.$state,f),d=!0,u=!0,b}function z(t,a,n){let i,s;const o="function"==typeof a;function r(t,n){const r=e.hasInjectionContext();(t=t||(r?e.inject(B,null):null))&&D(t),(t=T)._s.has(i)||(o?U(i,a,s,t):function(t,a,n,i){const{state:s,actions:o,getters:r}=a,l=n.state.value[t];let c;c=U(t,(function(){l||(n.state.value[t]=s?s():{});const a=e.toRefs(n.state.value[t]);return j(a,o,Object.keys(r||{}).reduce(((a,i)=>(a[i]=e.markRaw(e.computed((()=>{D(n);const e=n._s.get(t);return r[i].call(e,e)}))),a)),{}))}),a,n,0,!0)}(i,s,t));return t._s.get(i)}return"string"==typeof t?(i=t,s=o?n:a):(s=t,i=t.id),r.$id=i,r}const H=z("user",{state:()=>({userinfo:uni.getStorageSync("user")&&JSON.parse(uni.getStorageSync("user"))||{},token:uni.getStorageSync("token")||null,role:uni.getStorageSync("role")||null,allowPage:uni.getStorageSync("allowPage")||null,position:uni.getStorageSync("position")||null,positionSwitch:uni.getStorageSync("positionSwitch")||null,wendu:uni.getStorageSync("wendu")||null,wenduIcon:uni.getStorageSync("wenduIcon")||null,isgray:uni.getStorageSync("isgray")||0}),getters:{},actions:{setUserInfo(e){this.userinfo=e},setToken(e){this.token=e},setRole(e){this.role=e},setPosition(e){this.position=e},setPositionSwitch(e){this.positionSwitch=e},setWeather(e,t){this.wendu=e,this.wenduIcon=t},setAllowPage(e){this.allowPage=e},setIsgray(e){this.isgray=e}}}),q=(e,t)=>{const a=e.__vccOpts||e;for(const[n,i]of t)a[n]=i;return a},J=q({__name:"login",setup(a){const n=H(),{proxy:i}=e.getCurrentInstance(),s=e.ref(!1),r=e.ref(!0),l=e.ref(""),c=e.ref(""),u=()=>{if(!l.value.trim())return i.$toast("请输入账号");if(!c.value.trim())return i.$toast("请输入密码");let e=C.encode(encodeURIComponent(l.value)),a=C.encode(encodeURIComponent(c.value));var s;uni.showLoading({title:"登录中..."}),(s={username:e,password:a,ip:p()},d({url:"/sys/sinopecLogin",method:"post",data:s})).then((e=>{e.success&&(uni.setStorageSync("token",e.result.token),n.setToken(e.result.token),(()=>{let e={un:l.value};r.value&&(e.pw=c.value),uni.setStorageSync("accountObj",JSON.stringify(e))})(),function(e){return d({url:"/appConnet/app/queryRoleByRoleIds",method:"get",data:e})}({roles:e.result.userInfo.roles}).then((t=>{uni.setStorageSync("logintime",Date.now()),uni.setStorageSync("role",t),n.setRole(t),uni.setStorageSync("user",JSON.stringify(e.result.userInfo)),n.setUserInfo(e.result.userInfo),m(),uni.switchTab({url:"/pages/tab/index"})})))})).catch((e=>{t("log","at pages/login/login.vue:136",e)}))};e.ref([]),o((()=>{if(uni.getStorageSync("accountObj")){let e=JSON.parse(uni.getStorageSync("accountObj"));l.value=e.un?e.un:"",c.value=e.pw?e.pw:""}}));const m=()=>{h().then((e=>{e.success&&(e.result.total>0?uni.setTabBarBadge({index:"1",text:e.result.total}):uni.removeTabBarBadge({index:"1"}))}))};function p(){let e;if("Android"==plus.os.name){let s=plus.android.importClass("android.content.Context"),o=plus.android.runtimeMainActivity().getSystemService(s.CONNECTIVITY_SERVICE);plus.android.importClass(o);let r=o.getLinkProperties(o.getActiveNetwork()),l=plus.android.invoke(r,"getLinkAddresses");plus.android.importClass(l);for(var t=0;t>8&255)+"."+(i>>16&255)+"."+(i>>24&255))}}return e}return(t,a)=>(e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass({gray:1==e.unref(n).isgray})},[e.createElementVNode("view",{class:"logo f-col aic"},[e.createElementVNode("image",{src:"/static/login/logo.png"})]),e.createElementVNode("view",{class:"form f-col aic"},[e.createElementVNode("view",{class:"box f-row aic"},[e.createElementVNode("image",{src:"/static/login/phone.png"}),e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":a[0]||(a[0]=e=>l.value=e),type:"text",placeholder:"请输入统一身份认证","placeholder-style":"font-size: 28rpx;color: #999999;"},null,512),[[e.vModelText,l.value]])]),e.createElementVNode("view",{class:"box f-row aic"},[e.createElementVNode("image",{src:"/static/login/pwd.png"}),e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":a[1]||(a[1]=e=>c.value=e),type:s.value?"text":"password",placeholder:"请输入密码","placeholder-style":"font-size: 28rpx;color: #999999;"},null,8,["type"]),[[e.vModelDynamic,c.value]]),s.value?(e.openBlock(),e.createElementBlock("image",{key:0,src:"/static/login/eye.png",onClick:a[2]||(a[2]=e=>s.value=!s.value)})):(e.openBlock(),e.createElementBlock("image",{key:1,src:"/static/login/eye-off.png",onClick:a[3]||(a[3]=e=>s.value=!s.value)}))])]),e.createElementVNode("view",{class:"pwd f-row aic"},[e.createElementVNode("view",{style:{display:"inline-block"},onClick:a[4]||(a[4]=e=>r.value=!r.value)},[e.createElementVNode("view",{class:"f-row aic"},[r.value?(e.openBlock(),e.createElementBlock("image",{key:1,src:"/static/login/checked.png"})):(e.openBlock(),e.createElementBlock("image",{key:0,src:"/static/login/nocheck.png"})),e.createElementVNode("text",null,"记住密码")])])]),e.createElementVNode("view",{class:"login f-col aic"},[e.createElementVNode("view",{onClick:u}," 登录 ")])],2))}},[["__scopeId","data-v-6ad77018"]]),W=[{font_class:"arrow-down",unicode:""},{font_class:"arrow-left",unicode:""},{font_class:"arrow-right",unicode:""},{font_class:"arrow-up",unicode:""},{font_class:"auth",unicode:""},{font_class:"auth-filled",unicode:""},{font_class:"back",unicode:""},{font_class:"bars",unicode:""},{font_class:"calendar",unicode:""},{font_class:"calendar-filled",unicode:""},{font_class:"camera",unicode:""},{font_class:"camera-filled",unicode:""},{font_class:"cart",unicode:""},{font_class:"cart-filled",unicode:""},{font_class:"chat",unicode:""},{font_class:"chat-filled",unicode:""},{font_class:"chatboxes",unicode:""},{font_class:"chatboxes-filled",unicode:""},{font_class:"chatbubble",unicode:""},{font_class:"chatbubble-filled",unicode:""},{font_class:"checkbox",unicode:""},{font_class:"checkbox-filled",unicode:""},{font_class:"checkmarkempty",unicode:""},{font_class:"circle",unicode:""},{font_class:"circle-filled",unicode:""},{font_class:"clear",unicode:""},{font_class:"close",unicode:""},{font_class:"closeempty",unicode:""},{font_class:"cloud-download",unicode:""},{font_class:"cloud-download-filled",unicode:""},{font_class:"cloud-upload",unicode:""},{font_class:"cloud-upload-filled",unicode:""},{font_class:"color",unicode:""},{font_class:"color-filled",unicode:""},{font_class:"compose",unicode:""},{font_class:"contact",unicode:""},{font_class:"contact-filled",unicode:""},{font_class:"down",unicode:""},{font_class:"bottom",unicode:""},{font_class:"download",unicode:""},{font_class:"download-filled",unicode:""},{font_class:"email",unicode:""},{font_class:"email-filled",unicode:""},{font_class:"eye",unicode:""},{font_class:"eye-filled",unicode:""},{font_class:"eye-slash",unicode:""},{font_class:"eye-slash-filled",unicode:""},{font_class:"fire",unicode:""},{font_class:"fire-filled",unicode:""},{font_class:"flag",unicode:""},{font_class:"flag-filled",unicode:""},{font_class:"folder-add",unicode:""},{font_class:"folder-add-filled",unicode:""},{font_class:"font",unicode:""},{font_class:"forward",unicode:""},{font_class:"gear",unicode:""},{font_class:"gear-filled",unicode:""},{font_class:"gift",unicode:""},{font_class:"gift-filled",unicode:""},{font_class:"hand-down",unicode:""},{font_class:"hand-down-filled",unicode:""},{font_class:"hand-up",unicode:""},{font_class:"hand-up-filled",unicode:""},{font_class:"headphones",unicode:""},{font_class:"heart",unicode:""},{font_class:"heart-filled",unicode:""},{font_class:"help",unicode:""},{font_class:"help-filled",unicode:""},{font_class:"home",unicode:""},{font_class:"home-filled",unicode:""},{font_class:"image",unicode:""},{font_class:"image-filled",unicode:""},{font_class:"images",unicode:""},{font_class:"images-filled",unicode:""},{font_class:"info",unicode:""},{font_class:"info-filled",unicode:""},{font_class:"left",unicode:""},{font_class:"link",unicode:""},{font_class:"list",unicode:""},{font_class:"location",unicode:""},{font_class:"location-filled",unicode:""},{font_class:"locked",unicode:""},{font_class:"locked-filled",unicode:""},{font_class:"loop",unicode:""},{font_class:"mail-open",unicode:""},{font_class:"mail-open-filled",unicode:""},{font_class:"map",unicode:""},{font_class:"map-filled",unicode:""},{font_class:"map-pin",unicode:""},{font_class:"map-pin-ellipse",unicode:""},{font_class:"medal",unicode:""},{font_class:"medal-filled",unicode:""},{font_class:"mic",unicode:""},{font_class:"mic-filled",unicode:""},{font_class:"micoff",unicode:""},{font_class:"micoff-filled",unicode:""},{font_class:"minus",unicode:""},{font_class:"minus-filled",unicode:""},{font_class:"more",unicode:""},{font_class:"more-filled",unicode:""},{font_class:"navigate",unicode:""},{font_class:"navigate-filled",unicode:""},{font_class:"notification",unicode:""},{font_class:"notification-filled",unicode:""},{font_class:"paperclip",unicode:""},{font_class:"paperplane",unicode:""},{font_class:"paperplane-filled",unicode:""},{font_class:"person",unicode:""},{font_class:"person-filled",unicode:""},{font_class:"personadd",unicode:""},{font_class:"personadd-filled",unicode:""},{font_class:"personadd-filled-copy",unicode:""},{font_class:"phone",unicode:""},{font_class:"phone-filled",unicode:""},{font_class:"plus",unicode:""},{font_class:"plus-filled",unicode:""},{font_class:"plusempty",unicode:""},{font_class:"pulldown",unicode:""},{font_class:"pyq",unicode:""},{font_class:"qq",unicode:""},{font_class:"redo",unicode:""},{font_class:"redo-filled",unicode:""},{font_class:"refresh",unicode:""},{font_class:"refresh-filled",unicode:""},{font_class:"refreshempty",unicode:""},{font_class:"reload",unicode:""},{font_class:"right",unicode:""},{font_class:"scan",unicode:""},{font_class:"search",unicode:""},{font_class:"settings",unicode:""},{font_class:"settings-filled",unicode:""},{font_class:"shop",unicode:""},{font_class:"shop-filled",unicode:""},{font_class:"smallcircle",unicode:""},{font_class:"smallcircle-filled",unicode:""},{font_class:"sound",unicode:""},{font_class:"sound-filled",unicode:""},{font_class:"spinner-cycle",unicode:""},{font_class:"staff",unicode:""},{font_class:"staff-filled",unicode:""},{font_class:"star",unicode:""},{font_class:"star-filled",unicode:""},{font_class:"starhalf",unicode:""},{font_class:"trash",unicode:""},{font_class:"trash-filled",unicode:""},{font_class:"tune",unicode:""},{font_class:"tune-filled",unicode:""},{font_class:"undo",unicode:""},{font_class:"undo-filled",unicode:""},{font_class:"up",unicode:""},{font_class:"top",unicode:""},{font_class:"upload",unicode:""},{font_class:"upload-filled",unicode:""},{font_class:"videocam",unicode:""},{font_class:"videocam-filled",unicode:""},{font_class:"vip",unicode:""},{font_class:"vip-filled",unicode:""},{font_class:"wallet",unicode:""},{font_class:"wallet-filled",unicode:""},{font_class:"weibo",unicode:""},{font_class:"weixin",unicode:""}];const Y=q({name:"UniIcons",emits:["click"],props:{type:{type:String,default:""},color:{type:String,default:"#333333"},size:{type:[Number,String],default:16},customPrefix:{type:String,default:""},fontFamily:{type:String,default:""}},data:()=>({icons:W}),computed:{unicode(){let e=this.icons.find((e=>e.font_class===this.type));return e?e.unicode:""},iconSize(){return"number"==typeof(e=this.size)||/^[0-9]*$/g.test(e)?e+"px":e;var e},styleObj(){return""!==this.fontFamily?`color: ${this.color}; font-size: ${this.iconSize}; font-family: ${this.fontFamily};`:`color: ${this.color}; font-size: ${this.iconSize};`}},methods:{_onClick(){this.$emit("click")}}},[["render",function(t,a,n,i,s,o){return e.openBlock(),e.createElementBlock("text",{style:e.normalizeStyle(o.styleObj),class:e.normalizeClass(["uni-icons",["uniui-"+n.type,n.customPrefix,n.customPrefix?n.type:""]]),onClick:a[0]||(a[0]=(...e)=>o._onClick&&o._onClick(...e))},[e.renderSlot(t.$slots,"default",{},void 0,!0)],6)}],["__scopeId","data-v-5610c8db"]]);function K(e,t){return`${G(e)} ${Q(e,t)}`}function G(e){e=ne(e);const t=(e=new Date(e)).getFullYear(),a=e.getMonth()+1,n=e.getDate();return`${t}-${Z(a)}-${Z(n)}`}function Q(e,t){e=ne(e);const a=(e=new Date(e)).getHours(),n=e.getMinutes(),i=e.getSeconds();return t?`${Z(a)}:${Z(n)}`:`${Z(a)}:${Z(n)}:${Z(i)}`}function Z(e){return e<10&&(e=`0${e}`),e}function X(e){return e?"00:00":"00:00:00"}function ee(e,t){return(e=new Date(ne(e)))<=(t=new Date(ne(t)))}function te(e){return e.match(/((19|20)\d{2})(-|\/)\d{1,2}(-|\/)\d{1,2}/g)}const ae=/^\d{4}-(0?[1-9]|1[012])-(0?[1-9]|[12][0-9]|3[01])( [0-5]?[0-9]:[0-5]?[0-9](:[0-5]?[0-9])?)?$/;function ne(e){return"string"==typeof e&&ae.test(e)&&(e=e.replace(/-/g,"/")),e}const ie=q({props:{weeks:{type:Object,default:()=>({})},calendar:{type:Object,default:()=>({})},selected:{type:Array,default:()=>[]},checkHover:{type:Boolean,default:!1}},methods:{choiceDate(e){this.$emit("change",e)},handleMousemove(e){this.$emit("handleMouse",e)}}},[["render",function(t,a,n,i,s,o){return e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass(["uni-calendar-item__weeks-box",{"uni-calendar-item--disable":n.weeks.disable,"uni-calendar-item--before-checked-x":n.weeks.beforeMultiple,"uni-calendar-item--multiple":n.weeks.multiple,"uni-calendar-item--after-checked-x":n.weeks.afterMultiple}]),onClick:a[0]||(a[0]=e=>o.choiceDate(n.weeks)),onMouseenter:a[1]||(a[1]=e=>o.handleMousemove(n.weeks))},[e.createElementVNode("view",{class:e.normalizeClass(["uni-calendar-item__weeks-box-item",{"uni-calendar-item--checked":n.calendar.fullDate===n.weeks.fullDate&&(n.calendar.userChecked||!n.checkHover),"uni-calendar-item--checked-range-text":n.checkHover,"uni-calendar-item--before-checked":n.weeks.beforeMultiple,"uni-calendar-item--multiple":n.weeks.multiple,"uni-calendar-item--after-checked":n.weeks.afterMultiple,"uni-calendar-item--disable":n.weeks.disable}])},[n.selected&&n.weeks.extraInfo?(e.openBlock(),e.createElementBlock("text",{key:0,class:"uni-calendar-item__weeks-box-circle"})):e.createCommentVNode("",!0),e.createElementVNode("text",{class:"uni-calendar-item__weeks-box-text uni-calendar-item__weeks-box-text-disable uni-calendar-item--checked-text"},e.toDisplayString(n.weeks.date),1)],2),e.createElementVNode("view",{class:e.normalizeClass({"uni-calendar-item--today":n.weeks.isToday})},null,2)],34)}],["__scopeId","data-v-a5fd30c1"]]),se=["{","}"];const oe=/^(?:\d)+/,re=/^(?:\w)+/;const le="zh-Hans",ce="zh-Hant",de="en",ue=Object.prototype.hasOwnProperty,he=(e,t)=>ue.call(e,t),me=new class{constructor(){this._caches=Object.create(null)}interpolate(e,t,a=se){if(!t)return[e];let n=this._caches[e];return n||(n=function(e,[t,a]){const n=[];let i=0,s="";for(;i-1?le:e.indexOf("-hant")>-1?ce:(a=e,["-tw","-hk","-mo","-cht"].find((e=>-1!==a.indexOf(e)))?ce:le);var a;let n=[de,"fr","es"];t&&Object.keys(t).length>0&&(n=Object.keys(t));const i=function(e,t){return t.find((t=>0===e.indexOf(t)))}(e,n);return i||void 0}class fe{constructor({locale:e,fallbackLocale:t,messages:a,watcher:n,formater:i}){this.locale=de,this.fallbackLocale=de,this.message={},this.messages={},this.watchers=[],t&&(this.fallbackLocale=t),this.formater=i||me,this.messages=a||{},this.setLocale(e||de),n&&this.watchLocale(n)}setLocale(e){const t=this.locale;this.locale=pe(e,this.messages)||this.fallbackLocale,this.messages[this.locale]||(this.messages[this.locale]={}),this.message=this.messages[this.locale],t!==this.locale&&this.watchers.forEach((e=>{e(this.locale,t)}))}getLocale(){return this.locale}watchLocale(e){const t=this.watchers.push(e)-1;return()=>{this.watchers.splice(t,1)}}add(e,t,a=!0){const n=this.messages[e];n?a?Object.assign(n,t):Object.keys(t).forEach((e=>{he(n,e)||(n[e]=t[e])})):this.messages[e]=t}f(e,t,a){return this.formater.interpolate(e,t,a).join("")}t(e,t,a){let n=this.message;return"string"==typeof t?(t=pe(t,this.messages))&&(n=this.messages[t]):a=t,he(n,e)?this.formater.interpolate(n[e],a).join(""):(console.warn(`Cannot translate the value of keypath ${e}. Use the value of keypath as default.`),e)}}function ge(e,t={},a,n){"string"!=typeof e&&([e,t]=[t,e]),"string"!=typeof e&&(e="undefined"!=typeof uni&&uni.getLocale?uni.getLocale():"undefined"!=typeof global&&global.getLocale?global.getLocale():de),"string"!=typeof a&&(a="undefined"!=typeof __uniConfig&&__uniConfig.fallbackLocale||de);const i=new fe({locale:e,fallbackLocale:a,messages:t,watcher:n});let s=(e,t)=>{if("function"!=typeof getApp)s=function(e,t){return i.t(e,t)};else{let e=!1;s=function(t,a){const n=getApp().$vm;return n&&(n.$locale,e||(e=!0,function(e,t){e.$watchLocale?e.$watchLocale((e=>{t.setLocale(e)})):e.$watch((()=>e.$locale),(e=>{t.setLocale(e)}))}(n,i))),i.t(t,a)}}return s(e,t)};return{i18n:i,f:(e,t,a)=>i.f(e,t,a),t:(e,t)=>s(e,t),add:(e,t,a=!0)=>i.add(e,t,a),watch:e=>i.watchLocale(e),getLocale:()=>i.getLocale(),setLocale:e=>i.setLocale(e)}}const ye={en:{"uni-datetime-picker.selectDate":"select date","uni-datetime-picker.selectTime":"select time","uni-datetime-picker.selectDateTime":"select date and time","uni-datetime-picker.startDate":"start date","uni-datetime-picker.endDate":"end date","uni-datetime-picker.startTime":"start time","uni-datetime-picker.endTime":"end time","uni-datetime-picker.ok":"ok","uni-datetime-picker.clear":"clear","uni-datetime-picker.cancel":"cancel","uni-datetime-picker.year":"-","uni-datetime-picker.month":"","uni-calender.MON":"MON","uni-calender.TUE":"TUE","uni-calender.WED":"WED","uni-calender.THU":"THU","uni-calender.FRI":"FRI","uni-calender.SAT":"SAT","uni-calender.SUN":"SUN","uni-calender.confirm":"confirm"},"zh-Hans":{"uni-datetime-picker.selectDate":"选择日期","uni-datetime-picker.selectTime":"选择时间","uni-datetime-picker.selectDateTime":"选择日期时间","uni-datetime-picker.startDate":"开始日期","uni-datetime-picker.endDate":"结束日期","uni-datetime-picker.startTime":"开始时间","uni-datetime-picker.endTime":"结束时间","uni-datetime-picker.ok":"确定","uni-datetime-picker.clear":"清除","uni-datetime-picker.cancel":"取消","uni-datetime-picker.year":"年","uni-datetime-picker.month":"月","uni-calender.SUN":"日","uni-calender.MON":"一","uni-calender.TUE":"二","uni-calender.WED":"三","uni-calender.THU":"四","uni-calender.FRI":"五","uni-calender.SAT":"六","uni-calender.confirm":"确认"},"zh-Hant":{"uni-datetime-picker.selectDate":"選擇日期","uni-datetime-picker.selectTime":"選擇時間","uni-datetime-picker.selectDateTime":"選擇日期時間","uni-datetime-picker.startDate":"開始日期","uni-datetime-picker.endDate":"結束日期","uni-datetime-picker.startTime":"開始时间","uni-datetime-picker.endTime":"結束时间","uni-datetime-picker.ok":"確定","uni-datetime-picker.clear":"清除","uni-datetime-picker.cancel":"取消","uni-datetime-picker.year":"年","uni-datetime-picker.month":"月","uni-calender.SUN":"日","uni-calender.MON":"一","uni-calender.TUE":"二","uni-calender.WED":"三","uni-calender.THU":"四","uni-calender.FRI":"五","uni-calender.SAT":"六","uni-calender.confirm":"確認"}},{t:ve}=ge(ye),we={name:"UniDatetimePicker",data:()=>({indicatorStyle:"height: 50px;",visible:!1,fixNvueBug:{},dateShow:!0,timeShow:!0,title:"日期和时间",time:"",year:1920,month:0,day:0,hour:0,minute:0,second:0,startYear:1920,startMonth:1,startDay:1,startHour:0,startMinute:0,startSecond:0,endYear:2120,endMonth:12,endDay:31,endHour:23,endMinute:59,endSecond:59}),options:{virtualHost:!0},props:{type:{type:String,default:"datetime"},value:{type:[String,Number],default:""},modelValue:{type:[String,Number],default:""},start:{type:[Number,String],default:""},end:{type:[Number,String],default:""},returnType:{type:String,default:"string"},disabled:{type:[Boolean,String],default:!1},border:{type:[Boolean,String],default:!0},hideSecond:{type:[Boolean,String],default:!1}},watch:{modelValue:{handler(e){e?(this.parseValue(ne(e)),this.initTime(!1)):(this.time="",this.parseValue(Date.now()))},immediate:!0},type:{handler(e){"date"===e?(this.dateShow=!0,this.timeShow=!1,this.title="日期"):"time"===e?(this.dateShow=!1,this.timeShow=!0,this.title="时间"):(this.dateShow=!0,this.timeShow=!0,this.title="日期和时间")},immediate:!0},start:{handler(e){this.parseDatetimeRange(ne(e),"start")},immediate:!0},end:{handler(e){this.parseDatetimeRange(ne(e),"end")},immediate:!0},months(e){this.checkValue("month",this.month,e)},days(e){this.checkValue("day",this.day,e)},hours(e){this.checkValue("hour",this.hour,e)},minutes(e){this.checkValue("minute",this.minute,e)},seconds(e){this.checkValue("second",this.second,e)}},computed:{years(){return this.getCurrentRange("year")},months(){return this.getCurrentRange("month")},days(){return this.getCurrentRange("day")},hours(){return this.getCurrentRange("hour")},minutes(){return this.getCurrentRange("minute")},seconds(){return this.getCurrentRange("second")},ymd(){return[this.year-this.minYear,this.month-this.minMonth,this.day-this.minDay]},hms(){return[this.hour-this.minHour,this.minute-this.minMinute,this.second-this.minSecond]},currentDateIsStart(){return this.year===this.startYear&&this.month===this.startMonth&&this.day===this.startDay},currentDateIsEnd(){return this.year===this.endYear&&this.month===this.endMonth&&this.day===this.endDay},minYear(){return this.startYear},maxYear(){return this.endYear},minMonth(){return this.year===this.startYear?this.startMonth:1},maxMonth(){return this.year===this.endYear?this.endMonth:12},minDay(){return this.year===this.startYear&&this.month===this.startMonth?this.startDay:1},maxDay(){return this.year===this.endYear&&this.month===this.endMonth?this.endDay:this.daysInMonth(this.year,this.month)},minHour(){return"datetime"===this.type?this.currentDateIsStart?this.startHour:0:"time"===this.type?this.startHour:void 0},maxHour(){return"datetime"===this.type?this.currentDateIsEnd?this.endHour:23:"time"===this.type?this.endHour:void 0},minMinute(){return"datetime"===this.type?this.currentDateIsStart&&this.hour===this.startHour?this.startMinute:0:"time"===this.type?this.hour===this.startHour?this.startMinute:0:void 0},maxMinute(){return"datetime"===this.type?this.currentDateIsEnd&&this.hour===this.endHour?this.endMinute:59:"time"===this.type?this.hour===this.endHour?this.endMinute:59:void 0},minSecond(){return"datetime"===this.type?this.currentDateIsStart&&this.hour===this.startHour&&this.minute===this.startMinute?this.startSecond:0:"time"===this.type?this.hour===this.startHour&&this.minute===this.startMinute?this.startSecond:0:void 0},maxSecond(){return"datetime"===this.type?this.currentDateIsEnd&&this.hour===this.endHour&&this.minute===this.endMinute?this.endSecond:59:"time"===this.type?this.hour===this.endHour&&this.minute===this.endMinute?this.endSecond:59:void 0},selectTimeText:()=>ve("uni-datetime-picker.selectTime"),okText:()=>ve("uni-datetime-picker.ok"),clearText:()=>ve("uni-datetime-picker.clear"),cancelText:()=>ve("uni-datetime-picker.cancel")},mounted(){},methods:{lessThanTen:e=>e<10?"0"+e:e,parseTimeType(e){if(e){let t=e.split(":");this.hour=Number(t[0]),this.minute=Number(t[1]),this.second=Number(t[2])}},initPickerValue(e){let t=null;e?t=this.compareValueWithStartAndEnd(e,this.start,this.end):(t=Date.now(),t=this.compareValueWithStartAndEnd(t,this.start,this.end)),this.parseValue(t)},compareValueWithStartAndEnd(e,t,a){let n=null;return e=this.superTimeStamp(e),t=this.superTimeStamp(t),a=this.superTimeStamp(a),n=t&&a?ea?new Date(a):new Date(e):t&&!a?t<=e?new Date(e):new Date(t):!t&&a?e<=a?new Date(e):new Date(a):new Date(e),n},superTimeStamp(e){let t="";if("time"===this.type&&e&&"string"==typeof e){const e=new Date;t=e.getFullYear()+"/"+(e.getMonth()+1)+"/"+e.getDate()+" "}return Number(e)&&(e=parseInt(e),t=0),this.createTimeStamp(t+e)},parseValue(e){if(e){if("time"===this.type&&"string"==typeof e)this.parseTimeType(e);else{let t=null;t=new Date(e),"time"!==this.type&&(this.year=t.getFullYear(),this.month=t.getMonth()+1,this.day=t.getDate()),"date"!==this.type&&(this.hour=t.getHours(),this.minute=t.getMinutes(),this.second=t.getSeconds())}this.hideSecond&&(this.second=0)}},parseDatetimeRange(e,t){if(!e)return"start"===t&&(this.startYear=1920,this.startMonth=1,this.startDay=1,this.startHour=0,this.startMinute=0,this.startSecond=0),void("end"===t&&(this.endYear=2120,this.endMonth=12,this.endDay=31,this.endHour=23,this.endMinute=59,this.endSecond=59));if("time"===this.type){const a=e.split(":");this[t+"Hour"]=Number(a[0]),this[t+"Minute"]=Number(a[1]),this[t+"Second"]=Number(a[2])}else{if(!e)return void("start"===t?this.startYear=this.year-60:this.endYear=this.year+60);Number(e)&&(e=parseInt(e));const a=/[0-9]:[0-9]/;"datetime"!==this.type||"end"!==t||"string"!=typeof e||a.test(e)||(e+=" 23:59:59");const n=new Date(e);this[t+"Year"]=n.getFullYear(),this[t+"Month"]=n.getMonth()+1,this[t+"Day"]=n.getDate(),"datetime"===this.type&&(this[t+"Hour"]=n.getHours(),this[t+"Minute"]=n.getMinutes(),this[t+"Second"]=n.getSeconds())}},getCurrentRange(e){const t=[];for(let a=this["min"+this.capitalize(e)];a<=this["max"+this.capitalize(e)];a++)t.push(a);return t},capitalize:e=>e.charAt(0).toUpperCase()+e.slice(1),checkValue(e,t,a){-1===a.indexOf(t)&&(this[e]=a[0])},daysInMonth:(e,t)=>new Date(e,t,0).getDate(),createTimeStamp(e){if(e)return"number"==typeof e?e:(e=e.replace(/-/g,"/"),"date"===this.type&&(e+=" 00:00:00"),Date.parse(e))},createDomSting(){const e=this.year+"-"+this.lessThanTen(this.month)+"-"+this.lessThanTen(this.day);let t=this.lessThanTen(this.hour)+":"+this.lessThanTen(this.minute);return this.hideSecond||(t=t+":"+this.lessThanTen(this.second)),"date"===this.type?e:"time"===this.type?t:e+" "+t},initTime(e=!0){this.time=this.createDomSting(),e&&("timestamp"===this.returnType&&"time"!==this.type?(this.$emit("change",this.createTimeStamp(this.time)),this.$emit("input",this.createTimeStamp(this.time)),this.$emit("update:modelValue",this.createTimeStamp(this.time))):(this.$emit("change",this.time),this.$emit("input",this.time),this.$emit("update:modelValue",this.time)))},bindDateChange(e){const t=e.detail.value;this.year=this.years[t[0]],this.month=this.months[t[1]],this.day=this.days[t[2]]},bindTimeChange(e){const t=e.detail.value;this.hour=this.hours[t[0]],this.minute=this.minutes[t[1]],this.second=this.seconds[t[2]]},initTimePicker(){if(this.disabled)return;const e=ne(this.time);this.initPickerValue(e),this.visible=!this.visible},tiggerTimePicker(e){this.visible=!this.visible},clearTime(){this.time="",this.$emit("change",this.time),this.$emit("input",this.time),this.$emit("update:modelValue",this.time),this.tiggerTimePicker()},setTime(){this.initTime(),this.tiggerTimePicker()}}};const ke=q(we,[["render",function(t,a,n,i,s,o){return e.openBlock(),e.createElementBlock("view",{class:"uni-datetime-picker"},[e.createElementVNode("view",{onClick:a[0]||(a[0]=(...e)=>o.initTimePicker&&o.initTimePicker(...e))},[e.renderSlot(t.$slots,"default",{},(()=>[e.createElementVNode("view",{class:e.normalizeClass(["uni-datetime-picker-timebox-pointer",{"uni-datetime-picker-disabled":n.disabled,"uni-datetime-picker-timebox":n.border}])},[e.createElementVNode("text",{class:"uni-datetime-picker-text"},e.toDisplayString(s.time),1),s.time?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("view",{key:0,class:"uni-datetime-picker-time"},[e.createElementVNode("text",{class:"uni-datetime-picker-text"},e.toDisplayString(o.selectTimeText),1)]))],2)]),!0)]),s.visible?(e.openBlock(),e.createElementBlock("view",{key:0,id:"mask",class:"uni-datetime-picker-mask",onClick:a[1]||(a[1]=(...e)=>o.tiggerTimePicker&&o.tiggerTimePicker(...e))})):e.createCommentVNode("",!0),s.visible?(e.openBlock(),e.createElementBlock("view",{key:1,class:e.normalizeClass(["uni-datetime-picker-popup",[s.dateShow&&s.timeShow?"":"fix-nvue-height"]]),style:e.normalizeStyle(s.fixNvueBug)},[e.createElementVNode("view",{class:"uni-title"},[e.createElementVNode("text",{class:"uni-datetime-picker-text"},e.toDisplayString(o.selectTimeText),1)]),s.dateShow?(e.openBlock(),e.createElementBlock("view",{key:0,class:"uni-datetime-picker__container-box"},[e.createElementVNode("picker-view",{class:"uni-datetime-picker-view","indicator-style":s.indicatorStyle,value:o.ymd,onChange:a[2]||(a[2]=(...e)=>o.bindDateChange&&o.bindDateChange(...e))},[e.createElementVNode("picker-view-column",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.years,((t,a)=>(e.openBlock(),e.createElementBlock("view",{class:"uni-datetime-picker-item",key:a},[e.createElementVNode("text",{class:"uni-datetime-picker-item"},e.toDisplayString(o.lessThanTen(t)),1)])))),128))]),e.createElementVNode("picker-view-column",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.months,((t,a)=>(e.openBlock(),e.createElementBlock("view",{class:"uni-datetime-picker-item",key:a},[e.createElementVNode("text",{class:"uni-datetime-picker-item"},e.toDisplayString(o.lessThanTen(t)),1)])))),128))]),e.createElementVNode("picker-view-column",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.days,((t,a)=>(e.openBlock(),e.createElementBlock("view",{class:"uni-datetime-picker-item",key:a},[e.createElementVNode("text",{class:"uni-datetime-picker-item"},e.toDisplayString(o.lessThanTen(t)),1)])))),128))])],40,["indicator-style","value"]),e.createElementVNode("text",{class:"uni-datetime-picker-sign sign-left"},"-"),e.createElementVNode("text",{class:"uni-datetime-picker-sign sign-right"},"-")])):e.createCommentVNode("",!0),s.timeShow?(e.openBlock(),e.createElementBlock("view",{key:1,class:"uni-datetime-picker__container-box"},[e.createElementVNode("picker-view",{class:e.normalizeClass(["uni-datetime-picker-view",[n.hideSecond?"time-hide-second":""]]),"indicator-style":s.indicatorStyle,value:o.hms,onChange:a[3]||(a[3]=(...e)=>o.bindTimeChange&&o.bindTimeChange(...e))},[e.createElementVNode("picker-view-column",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.hours,((t,a)=>(e.openBlock(),e.createElementBlock("view",{class:"uni-datetime-picker-item",key:a},[e.createElementVNode("text",{class:"uni-datetime-picker-item"},e.toDisplayString(o.lessThanTen(t)),1)])))),128))]),e.createElementVNode("picker-view-column",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.minutes,((t,a)=>(e.openBlock(),e.createElementBlock("view",{class:"uni-datetime-picker-item",key:a},[e.createElementVNode("text",{class:"uni-datetime-picker-item"},e.toDisplayString(o.lessThanTen(t)),1)])))),128))]),n.hideSecond?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("picker-view-column",{key:0},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.seconds,((t,a)=>(e.openBlock(),e.createElementBlock("view",{class:"uni-datetime-picker-item",key:a},[e.createElementVNode("text",{class:"uni-datetime-picker-item"},e.toDisplayString(o.lessThanTen(t)),1)])))),128))]))],42,["indicator-style","value"]),e.createElementVNode("text",{class:e.normalizeClass(["uni-datetime-picker-sign",[n.hideSecond?"sign-center":"sign-left"]])},":",2),n.hideSecond?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("text",{key:0,class:"uni-datetime-picker-sign sign-right"},":"))])):e.createCommentVNode("",!0),e.createElementVNode("view",{class:"uni-datetime-picker-btn"},[e.createElementVNode("view",{onClick:a[4]||(a[4]=(...e)=>o.clearTime&&o.clearTime(...e))},[e.createElementVNode("text",{class:"uni-datetime-picker-btn-text"},e.toDisplayString(o.clearText),1)]),e.createElementVNode("view",{class:"uni-datetime-picker-btn-group"},[e.createElementVNode("view",{class:"uni-datetime-picker-cancel",onClick:a[5]||(a[5]=(...e)=>o.tiggerTimePicker&&o.tiggerTimePicker(...e))},[e.createElementVNode("text",{class:"uni-datetime-picker-btn-text"},e.toDisplayString(o.cancelText),1)]),e.createElementVNode("view",{onClick:a[6]||(a[6]=(...e)=>o.setTime&&o.setTime(...e))},[e.createElementVNode("text",{class:"uni-datetime-picker-btn-text"},e.toDisplayString(o.okText),1)])])])],6)):e.createCommentVNode("",!0)])}],["__scopeId","data-v-8a3925ff"]]),{t:be}=ge(ye),_e={components:{calendarItem:ie,timePicker:ke},options:{virtualHost:!0},props:{date:{type:String,default:""},defTime:{type:[String,Object],default:""},selectableTimes:{type:[Object],default:()=>({})},selected:{type:Array,default:()=>[]},startDate:{type:String,default:""},endDate:{type:String,default:""},startPlaceholder:{type:String,default:""},endPlaceholder:{type:String,default:""},range:{type:Boolean,default:!1},hasTime:{type:Boolean,default:!1},insert:{type:Boolean,default:!0},showMonth:{type:Boolean,default:!0},clearDate:{type:Boolean,default:!0},checkHover:{type:Boolean,default:!0},hideSecond:{type:[Boolean],default:!1},pleStatus:{type:Object,default:()=>({before:"",after:"",data:[],fulldate:""})},defaultValue:{type:[String,Object,Array],default:""}},data:()=>({show:!1,weeks:[],calendar:{},nowDate:{},aniMaskShow:!1,firstEnter:!0,time:"",timeRange:{startTime:"",endTime:""},tempSingleDate:"",tempRange:{before:"",after:""}}),watch:{date:{immediate:!0,handler(e){this.range||(this.tempSingleDate=e,setTimeout((()=>{this.init(e)}),100))}},defTime:{immediate:!0,handler(e){this.range?(this.timeRange.startTime=e.start,this.timeRange.endTime=e.end):this.time=e}},startDate(e){this.cale&&(this.cale.setStartDate(e),this.cale.setDate(this.nowDate.fullDate),this.weeks=this.cale.weeks)},endDate(e){this.cale&&(this.cale.setEndDate(e),this.cale.setDate(this.nowDate.fullDate),this.weeks=this.cale.weeks)},selected(e){this.cale&&(this.cale.setSelectInfo(this.nowDate.fullDate,e),this.weeks=this.cale.weeks)},pleStatus:{immediate:!0,handler(e){const{before:t,after:a,fulldate:n,which:i}=e;this.tempRange.before=t,this.tempRange.after=a,setTimeout((()=>{if(n)if(this.cale.setHoverMultiple(n),t&&a){if(this.cale.lastHover=!0,this.rangeWithinMonth(a,t))return;this.setDate(t)}else this.cale.setMultiple(n),this.setDate(this.nowDate.fullDate),this.calendar.fullDate="",this.cale.lastHover=!1;else{if(!this.cale)return;this.cale.setDefaultMultiple(t,a),"left"===i&&t?(this.setDate(t),this.weeks=this.cale.weeks):a&&(this.setDate(a),this.weeks=this.cale.weeks),this.cale.lastHover=!0}}),16)}}},computed:{timepickerStartTime(){return(this.range?this.tempRange.before:this.calendar.fullDate)===this.startDate?this.selectableTimes.start:""},timepickerEndTime(){return(this.range?this.tempRange.after:this.calendar.fullDate)===this.endDate?this.selectableTimes.end:""},selectDateText:()=>be("uni-datetime-picker.selectDate"),startDateText(){return this.startPlaceholder||be("uni-datetime-picker.startDate")},endDateText(){return this.endPlaceholder||be("uni-datetime-picker.endDate")},okText:()=>be("uni-datetime-picker.ok"),yearText:()=>be("uni-datetime-picker.year"),monthText:()=>be("uni-datetime-picker.month"),MONText:()=>be("uni-calender.MON"),TUEText:()=>be("uni-calender.TUE"),WEDText:()=>be("uni-calender.WED"),THUText:()=>be("uni-calender.THU"),FRIText:()=>be("uni-calender.FRI"),SATText:()=>be("uni-calender.SAT"),SUNText:()=>be("uni-calender.SUN"),confirmText:()=>be("uni-calender.confirm")},created(){this.cale=new class{constructor({selected:e,startDate:t,endDate:a,range:n}={}){this.date=this.getDateObj(new Date),this.selected=e||[],this.startDate=t,this.endDate=a,this.range=n,this.cleanMultipleStatus(),this.weeks={},this.lastHover=!1}setDate(e){const t=this.getDateObj(e);this.getWeeks(t.fullDate)}cleanMultipleStatus(){this.multipleStatus={before:"",after:"",data:[]}}setStartDate(e){this.startDate=e}setEndDate(e){this.endDate=e}getPreMonthObj(e){e=ne(e);const t=(e=new Date(e)).getMonth();e.setMonth(t-1);const a=e.getMonth();return 0!==t&&a-t==0&&e.setMonth(a-1),this.getDateObj(e)}getNextMonthObj(e){e=ne(e);const t=(e=new Date(e)).getMonth();e.setMonth(t+1);const a=e.getMonth();return a-t>1&&e.setMonth(a-1),this.getDateObj(e)}getDateObj(e){return e=ne(e),{fullDate:G(e=new Date(e)),year:e.getFullYear(),month:Z(e.getMonth()+1),date:Z(e.getDate()),day:e.getDay()}}getPreMonthDays(e,t){const a=[];for(let n=e-1;n>=0;n--){const e=t.month-1;a.push({date:new Date(t.year,e,-n).getDate(),month:e,disable:!0})}return a}getCurrentMonthDays(e,t){const a=[],n=this.date.fullDate;for(let i=1;i<=e;i++){const e=`${t.year}-${t.month}-${Z(i)}`,s=n===e,o=this.selected&&this.selected.find((t=>{if(this.dateEqual(e,t.date))return t}));this.startDate&&ee(this.startDate,e),this.endDate&&ee(e,this.endDate);let r=this.multipleStatus.data,l=-1;this.range&&r&&(l=r.findIndex((t=>this.dateEqual(t,e))));const c=-1!==l;a.push({fullDate:e,year:t.year,date:i,multiple:!!this.range&&c,beforeMultiple:this.isLogicBefore(e,this.multipleStatus.before,this.multipleStatus.after),afterMultiple:this.isLogicAfter(e,this.multipleStatus.before,this.multipleStatus.after),month:t.month,disable:this.startDate&&!ee(this.startDate,e)||this.endDate&&!ee(e,this.endDate),isToday:s,userChecked:!1,extraInfo:o})}return a}_getNextMonthDays(e,t){const a=[],n=t.month+1;for(let i=1;i<=e;i++)a.push({date:i,month:n,disable:!0});return a}getInfo(e){return e||(e=new Date),this.calendar.find((t=>t.fullDate===this.getDateObj(e).fullDate))}dateEqual(e,t){return e=new Date(ne(e)),t=new Date(ne(t)),e.valueOf()===t.valueOf()}isLogicBefore(e,t,a){let n=t;return t&&a&&(n=ee(t,a)?t:a),this.dateEqual(n,e)}isLogicAfter(e,t,a){let n=a;return t&&a&&(n=ee(t,a)?a:t),this.dateEqual(n,e)}geDateAll(e,t){var a=[],n=e.split("-"),i=t.split("-"),s=new Date;s.setFullYear(n[0],n[1]-1,n[2]);var o=new Date;o.setFullYear(i[0],i[1]-1,i[2]);for(var r=s.getTime()-864e5,l=o.getTime()-864e5,c=r;c<=l;)c+=864e5,a.push(this.getDateObj(new Date(parseInt(c))).fullDate);return a}setMultiple(e){if(!this.range)return;let{before:t,after:a}=this.multipleStatus;if(t&&a){if(!this.lastHover)return void(this.lastHover=!0);this.multipleStatus.before=e,this.multipleStatus.after="",this.multipleStatus.data=[],this.multipleStatus.fulldate="",this.lastHover=!1}else t?(this.multipleStatus.after=e,ee(this.multipleStatus.before,this.multipleStatus.after)?this.multipleStatus.data=this.geDateAll(this.multipleStatus.before,this.multipleStatus.after):this.multipleStatus.data=this.geDateAll(this.multipleStatus.after,this.multipleStatus.before),this.lastHover=!0):(this.multipleStatus.before=e,this.multipleStatus.after=void 0,this.lastHover=!1);this.getWeeks(e)}setHoverMultiple(e){if(!this.range||this.lastHover)return;const{before:t}=this.multipleStatus;t?(this.multipleStatus.after=e,ee(this.multipleStatus.before,this.multipleStatus.after)?this.multipleStatus.data=this.geDateAll(this.multipleStatus.before,this.multipleStatus.after):this.multipleStatus.data=this.geDateAll(this.multipleStatus.after,this.multipleStatus.before)):this.multipleStatus.before=e,this.getWeeks(e)}setDefaultMultiple(e,t){this.multipleStatus.before=e,this.multipleStatus.after=t,e&&t&&(ee(e,t)?(this.multipleStatus.data=this.geDateAll(e,t),this.getWeeks(t)):(this.multipleStatus.data=this.geDateAll(t,e),this.getWeeks(e)))}getWeeks(e){const{year:t,month:a}=this.getDateObj(e),n=new Date(t,a-1,1).getDay(),i=this.getPreMonthDays(n,this.getDateObj(e)),s=new Date(t,a,0).getDate(),o=42-n-s,r=[...i,...this.getCurrentMonthDays(s,this.getDateObj(e)),...this._getNextMonthDays(o,this.getDateObj(e))],l=new Array(6);for(let c=0;c{setTimeout((()=>{this.aniMaskShow=!0}),50)}))},close(){this.aniMaskShow=!1,this.$nextTick((()=>{setTimeout((()=>{this.show=!1,this.$emit("close")}),300)}))},confirm(){this.setEmit("confirm"),this.close()},change(e){(this.insert||e)&&this.setEmit("change")},monthSwitch(){let{year:e,month:t}=this.nowDate;this.$emit("monthSwitch",{year:e,month:Number(t)})},setEmit(e){this.range||(this.calendar.fullDate||(this.calendar=this.cale.getInfo(new Date),this.tempSingleDate=this.calendar.fullDate),this.hasTime&&!this.time&&(this.time=Q(new Date,this.hideSecond)));let{year:t,month:a,date:n,fullDate:i,extraInfo:s}=this.calendar;this.$emit(e,{range:this.cale.multipleStatus,year:t,month:a,date:n,time:this.time,timeRange:this.timeRange,fulldate:i,extraInfo:s||{}})},choiceDate(e){if(e.disable)return;this.calendar=e,this.calendar.userChecked=!0,this.cale.setMultiple(this.calendar.fullDate,!0),this.weeks=this.cale.weeks,this.tempSingleDate=this.calendar.fullDate;const t=new Date(this.cale.multipleStatus.before).getTime(),a=new Date(this.cale.multipleStatus.after).getTime();t>a&&a?(this.tempRange.before=this.cale.multipleStatus.after,this.tempRange.after=this.cale.multipleStatus.before):(this.tempRange.before=this.cale.multipleStatus.before,this.tempRange.after=this.cale.multipleStatus.after),this.change(!0)},changeMonth(e){let t;"pre"===e?t=this.cale.getPreMonthObj(this.nowDate.fullDate).fullDate:"next"===e&&(t=this.cale.getNextMonthObj(this.nowDate.fullDate).fullDate),this.setDate(t),this.monthSwitch()},setDate(e){this.cale.setDate(e),this.weeks=this.cale.weeks,this.nowDate=this.cale.getInfo(e)}}};const Ee={name:"UniDatetimePicker",options:{virtualHost:!0},components:{Calendar:q(_e,[["render",function(t,n,i,s,o,r){const l=e.resolveComponent("calendar-item"),c=e.resolveComponent("time-picker"),d=a(e.resolveDynamicComponent("uni-icons"),Y);return e.openBlock(),e.createElementBlock("view",{class:"uni-calendar",onMouseleave:n[8]||(n[8]=(...e)=>r.leaveCale&&r.leaveCale(...e))},[!i.insert&&o.show?(e.openBlock(),e.createElementBlock("view",{key:0,class:e.normalizeClass(["uni-calendar__mask",{"uni-calendar--mask-show":o.aniMaskShow}]),onClick:n[0]||(n[0]=(...e)=>r.maskClick&&r.maskClick(...e))},null,2)):e.createCommentVNode("",!0),i.insert||o.show?(e.openBlock(),e.createElementBlock("view",{key:1,class:e.normalizeClass(["uni-calendar__content",{"uni-calendar--fixed":!i.insert,"uni-calendar--ani-show":o.aniMaskShow,"uni-calendar__content-mobile":o.aniMaskShow}])},[e.createElementVNode("view",{class:e.normalizeClass(["uni-calendar__header",{"uni-calendar__header-mobile":!i.insert}])},[e.createElementVNode("view",{class:"uni-calendar__header-btn-box",onClick:n[1]||(n[1]=e.withModifiers((e=>r.changeMonth("pre")),["stop"]))},[e.createElementVNode("view",{class:"uni-calendar__header-btn uni-calendar--left"})]),e.createElementVNode("picker",{mode:"date",value:i.date,fields:"month",onChange:n[2]||(n[2]=(...e)=>r.bindDateChange&&r.bindDateChange(...e))},[e.createElementVNode("text",{class:"uni-calendar__header-text"},e.toDisplayString((o.nowDate.year||"")+r.yearText+(o.nowDate.month||"")+r.monthText),1)],40,["value"]),e.createElementVNode("view",{class:"uni-calendar__header-btn-box",onClick:n[3]||(n[3]=e.withModifiers((e=>r.changeMonth("next")),["stop"]))},[e.createElementVNode("view",{class:"uni-calendar__header-btn uni-calendar--right"})]),i.insert?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("view",{key:0,class:"dialog-close",onClick:n[4]||(n[4]=(...e)=>r.maskClick&&r.maskClick(...e))},[e.createElementVNode("view",{class:"dialog-close-plus","data-id":"close"}),e.createElementVNode("view",{class:"dialog-close-plus dialog-close-rotate","data-id":"close"})]))],2),e.createElementVNode("view",{class:"uni-calendar__box"},[i.showMonth?(e.openBlock(),e.createElementBlock("view",{key:0,class:"uni-calendar__box-bg"},[e.createElementVNode("text",{class:"uni-calendar__box-bg-text"},e.toDisplayString(o.nowDate.month),1)])):e.createCommentVNode("",!0),e.createElementVNode("view",{class:"uni-calendar__weeks",style:{"padding-bottom":"7px"}},[e.createElementVNode("view",{class:"uni-calendar__weeks-day"},[e.createElementVNode("text",{class:"uni-calendar__weeks-day-text"},e.toDisplayString(r.SUNText),1)]),e.createElementVNode("view",{class:"uni-calendar__weeks-day"},[e.createElementVNode("text",{class:"uni-calendar__weeks-day-text"},e.toDisplayString(r.MONText),1)]),e.createElementVNode("view",{class:"uni-calendar__weeks-day"},[e.createElementVNode("text",{class:"uni-calendar__weeks-day-text"},e.toDisplayString(r.TUEText),1)]),e.createElementVNode("view",{class:"uni-calendar__weeks-day"},[e.createElementVNode("text",{class:"uni-calendar__weeks-day-text"},e.toDisplayString(r.WEDText),1)]),e.createElementVNode("view",{class:"uni-calendar__weeks-day"},[e.createElementVNode("text",{class:"uni-calendar__weeks-day-text"},e.toDisplayString(r.THUText),1)]),e.createElementVNode("view",{class:"uni-calendar__weeks-day"},[e.createElementVNode("text",{class:"uni-calendar__weeks-day-text"},e.toDisplayString(r.FRIText),1)]),e.createElementVNode("view",{class:"uni-calendar__weeks-day"},[e.createElementVNode("text",{class:"uni-calendar__weeks-day-text"},e.toDisplayString(r.SATText),1)])]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.weeks,((t,a)=>(e.openBlock(),e.createElementBlock("view",{class:"uni-calendar__weeks",key:a},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t,((t,a)=>(e.openBlock(),e.createElementBlock("view",{class:"uni-calendar__weeks-item",key:a},[e.createVNode(l,{class:"uni-calendar-item--hook",weeks:t,calendar:o.calendar,selected:i.selected,checkHover:i.range,onChange:r.choiceDate,onHandleMouse:r.handleMouse},null,8,["weeks","calendar","selected","checkHover","onChange","onHandleMouse"])])))),128))])))),128))]),i.insert||i.range||!i.hasTime?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("view",{key:0,class:"uni-date-changed uni-calendar--fixed-top",style:{padding:"0 80px"}},[e.createElementVNode("view",{class:"uni-date-changed--time-date"},e.toDisplayString(o.tempSingleDate?o.tempSingleDate:r.selectDateText),1),e.createVNode(c,{type:"time",start:r.timepickerStartTime,end:r.timepickerEndTime,modelValue:o.time,"onUpdate:modelValue":n[5]||(n[5]=e=>o.time=e),disabled:!o.tempSingleDate,border:!1,"hide-second":i.hideSecond,class:"time-picker-style"},null,8,["start","end","modelValue","disabled","hide-second"])])),!i.insert&&i.range&&i.hasTime?(e.openBlock(),e.createElementBlock("view",{key:1,class:"uni-date-changed uni-calendar--fixed-top"},[e.createElementVNode("view",{class:"uni-date-changed--time-start"},[e.createElementVNode("view",{class:"uni-date-changed--time-date"},e.toDisplayString(o.tempRange.before?o.tempRange.before:r.startDateText),1),e.createVNode(c,{type:"time",start:r.timepickerStartTime,modelValue:o.timeRange.startTime,"onUpdate:modelValue":n[6]||(n[6]=e=>o.timeRange.startTime=e),border:!1,"hide-second":i.hideSecond,disabled:!o.tempRange.before,class:"time-picker-style"},null,8,["start","modelValue","hide-second","disabled"])]),e.createElementVNode("view",{style:{"line-height":"50px"}},[e.createVNode(d,{type:"arrowthinright",color:"#999"})]),e.createElementVNode("view",{class:"uni-date-changed--time-end"},[e.createElementVNode("view",{class:"uni-date-changed--time-date"},e.toDisplayString(o.tempRange.after?o.tempRange.after:r.endDateText),1),e.createVNode(c,{type:"time",end:r.timepickerEndTime,modelValue:o.timeRange.endTime,"onUpdate:modelValue":n[7]||(n[7]=e=>o.timeRange.endTime=e),border:!1,"hide-second":i.hideSecond,disabled:!o.tempRange.after,class:"time-picker-style"},null,8,["end","modelValue","hide-second","disabled"])])])):e.createCommentVNode("",!0),i.insert?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("view",{key:2,class:"uni-date-changed uni-date-btn--ok"}))],2)):e.createCommentVNode("",!0)],32)}],["__scopeId","data-v-8dc4a3ee"]]),TimePicker:ke},data:()=>({isRange:!1,hasTime:!1,displayValue:"",inputDate:"",calendarDate:"",pickerTime:"",calendarRange:{startDate:"",startTime:"",endDate:"",endTime:""},displayRangeValue:{startDate:"",endDate:""},tempRange:{startDate:"",startTime:"",endDate:"",endTime:""},startMultipleStatus:{before:"",after:"",data:[],fulldate:""},endMultipleStatus:{before:"",after:"",data:[],fulldate:""},pickerVisible:!1,pickerPositionStyle:null,isEmitValue:!1,isPhone:!1,isFirstShow:!0,i18nT:()=>{}}),props:{type:{type:String,default:"datetime"},value:{type:[String,Number,Array,Date],default:""},modelValue:{type:[String,Number,Array,Date],default:""},start:{type:[Number,String],default:""},end:{type:[Number,String],default:""},returnType:{type:String,default:"string"},placeholder:{type:String,default:""},startPlaceholder:{type:String,default:""},endPlaceholder:{type:String,default:""},rangeSeparator:{type:String,default:"-"},border:{type:[Boolean],default:!0},disabled:{type:[Boolean],default:!1},clearIcon:{type:[Boolean],default:!0},hideSecond:{type:[Boolean],default:!1},defaultValue:{type:[String,Object,Array],default:""}},watch:{type:{immediate:!0,handler(e){this.hasTime=-1!==e.indexOf("time"),this.isRange=-1!==e.indexOf("range")}},modelValue:{immediate:!0,handler(e){this.isEmitValue?this.isEmitValue=!1:this.initPicker(e)}},start:{immediate:!0,handler(e){e&&(this.calendarRange.startDate=G(e),this.hasTime&&(this.calendarRange.startTime=Q(e)))}},end:{immediate:!0,handler(e){e&&(this.calendarRange.endDate=G(e),this.hasTime&&(this.calendarRange.endTime=Q(e,this.hideSecond)))}}},computed:{timepickerStartTime(){return(this.isRange?this.tempRange.startDate:this.inputDate)===this.calendarRange.startDate?this.calendarRange.startTime:""},timepickerEndTime(){return(this.isRange?this.tempRange.endDate:this.inputDate)===this.calendarRange.endDate?this.calendarRange.endTime:""},mobileCalendarTime(){const e={start:this.tempRange.startTime,end:this.tempRange.endTime};return this.isRange?e:this.pickerTime},mobSelectableTime(){return{start:this.calendarRange.startTime,end:this.calendarRange.endTime}},datePopupWidth(){return this.isRange?653:301},singlePlaceholderText(){return this.placeholder||("date"===this.type?this.selectDateText:this.selectDateTimeText)},startPlaceholderText(){return this.startPlaceholder||this.startDateText},endPlaceholderText(){return this.endPlaceholder||this.endDateText},selectDateText(){return this.i18nT("uni-datetime-picker.selectDate")},selectDateTimeText(){return this.i18nT("uni-datetime-picker.selectDateTime")},selectTimeText(){return this.i18nT("uni-datetime-picker.selectTime")},startDateText(){return this.startPlaceholder||this.i18nT("uni-datetime-picker.startDate")},startTimeText(){return this.i18nT("uni-datetime-picker.startTime")},endDateText(){return this.endPlaceholder||this.i18nT("uni-datetime-picker.endDate")},endTimeText(){return this.i18nT("uni-datetime-picker.endTime")},okText(){return this.i18nT("uni-datetime-picker.ok")},clearText(){return this.i18nT("uni-datetime-picker.clear")},showClearIcon(){return this.clearIcon&&!this.disabled&&(this.displayValue||this.displayRangeValue.startDate&&this.displayRangeValue.endDate)}},created(){this.initI18nT(),this.platform()},methods:{initI18nT(){const e=ge(ye);this.i18nT=e.t},initPicker(e){if(!e&&!this.defaultValue||Array.isArray(e)&&!e.length)this.$nextTick((()=>{this.clear(!1)}));else if(Array.isArray(e)||this.isRange){const[t,a]=e;if(!t&&!a)return;const n=G(t),i=Q(t,this.hideSecond),s=G(a),o=Q(a,this.hideSecond),r=n,l=s;this.displayRangeValue.startDate=this.tempRange.startDate=r,this.displayRangeValue.endDate=this.tempRange.endDate=l,this.hasTime&&(this.displayRangeValue.startDate=`${n} ${i}`,this.displayRangeValue.endDate=`${s} ${o}`,this.tempRange.startTime=i,this.tempRange.endTime=o);const c={before:n,after:s};this.startMultipleStatus=Object.assign({},this.startMultipleStatus,c,{which:"right"}),this.endMultipleStatus=Object.assign({},this.endMultipleStatus,c,{which:"left"})}else e?(this.displayValue=this.inputDate=this.calendarDate=G(e),this.hasTime&&(this.pickerTime=Q(e,this.hideSecond),this.displayValue=`${this.displayValue} ${this.pickerTime}`)):this.defaultValue&&(this.inputDate=this.calendarDate=G(this.defaultValue),this.hasTime&&(this.pickerTime=Q(this.defaultValue,this.hideSecond)))},updateLeftCale(e){const t=this.$refs.left;t.cale.setHoverMultiple(e.after),t.setDate(this.$refs.left.nowDate.fullDate)},updateRightCale(e){const t=this.$refs.right;t.cale.setHoverMultiple(e.after),t.setDate(this.$refs.right.nowDate.fullDate)},platform(){if("undefined"!=typeof navigator)return void(this.isPhone=-1!==navigator.userAgent.toLowerCase().indexOf("mobile"));const{windowWidth:e}=uni.getSystemInfoSync();this.isPhone=e<=500,this.windowWidth=e},show(){if(this.$emit("show"),this.disabled)return;if(this.platform(),this.isPhone)return void setTimeout((()=>{this.$refs.mobile.open()}),0);this.pickerPositionStyle={top:"10px"};uni.createSelectorQuery().in(this).select(".uni-date-editor").boundingClientRect((e=>{this.windowWidth-e.left{if(this.pickerVisible=!this.pickerVisible,!this.isPhone&&this.isRange&&this.isFirstShow){this.isFirstShow=!1;const{startDate:e,endDate:t}=this.calendarRange;e&&t?this.diffDate(e,t)<30&&this.$refs.right.changeMonth("pre"):this.isPhone&&(this.$refs.right.cale.lastHover=!1)}}),50)},close(){setTimeout((()=>{this.pickerVisible=!1,this.$emit("maskClick",this.value),this.$refs.mobile&&this.$refs.mobile.close()}),20)},setEmit(e){"timestamp"!==this.returnType&&"date"!==this.returnType||(Array.isArray(e)?(this.hasTime||(e[0]=e[0]+" 00:00:00",e[1]=e[1]+" 00:00:00"),e[0]=this.createTimestamp(e[0]),e[1]=this.createTimestamp(e[1]),"date"===this.returnType&&(e[0]=new Date(e[0]),e[1]=new Date(e[1]))):(this.hasTime||(e+=" 00:00:00"),e=this.createTimestamp(e),"date"===this.returnType&&(e=new Date(e)))),this.$emit("update:modelValue",e),this.$emit("input",e),this.$emit("change",e),this.isEmitValue=!0},createTimestamp:e=>(e=ne(e),Date.parse(new Date(e))),singleChange(e){this.calendarDate=this.inputDate=e.fulldate,this.hasTime||this.confirmSingleChange()},confirmSingleChange(){if(!te(this.inputDate)){const e=new Date;this.calendarDate=this.inputDate=G(e),this.pickerTime=Q(e,this.hideSecond)}let e,t,a=!1;if(this.start){let n=this.start;"number"==typeof this.start&&(n=K(this.start,this.hideSecond)),[e,t]=n.split(" "),this.start&&!ee(e,this.inputDate)&&(a=!0,this.inputDate=e)}let n,i,s=!1;if(this.end){let e=this.end;"number"==typeof this.end&&(e=K(this.end,this.hideSecond)),[n,i]=e.split(" "),this.end&&!ee(this.inputDate,n)&&(s=!0,this.inputDate=n)}this.hasTime?(a&&(this.pickerTime=t||X(this.hideSecond)),s&&(this.pickerTime=i||X(this.hideSecond)),this.pickerTime||(this.pickerTime=Q(Date.now(),this.hideSecond)),this.displayValue=`${this.inputDate} ${this.pickerTime}`):this.displayValue=this.inputDate,this.setEmit(this.displayValue),this.pickerVisible=!1},leftChange(e){const{before:t,after:a}=e.range;this.rangeChange(t,a);const n={before:e.range.before,after:e.range.after,data:e.range.data,fulldate:e.fulldate};this.startMultipleStatus=Object.assign({},this.startMultipleStatus,n),this.$emit("calendarClick",e)},rightChange(e){const{before:t,after:a}=e.range;this.rangeChange(t,a);const n={before:e.range.before,after:e.range.after,data:e.range.data,fulldate:e.fulldate};this.endMultipleStatus=Object.assign({},this.endMultipleStatus,n),this.$emit("calendarClick",e)},mobileChange(e){if(this.isRange){const{before:t,after:a}=e.range;if(!t)return;if(this.handleStartAndEnd(t,a,!0),this.hasTime){const{startTime:t,endTime:a}=e.timeRange;this.tempRange.startTime=t,this.tempRange.endTime=a}this.confirmRangeChange()}else this.hasTime?this.displayValue=e.fulldate+" "+e.time:this.displayValue=e.fulldate,this.setEmit(this.displayValue);this.$refs.mobile.close()},rangeChange(e,t){e&&t&&(this.handleStartAndEnd(e,t,!0),this.hasTime||this.confirmRangeChange())},confirmRangeChange(){if(!this.tempRange.startDate||!this.tempRange.endDate)return void(this.pickerVisible=!1);let e,t;te(this.tempRange.startDate)||(this.tempRange.startDate=G(Date.now())),te(this.tempRange.endDate)||(this.tempRange.endDate=G(Date.now()));let a,n,i=!1,s=!1;if(this.start){let e=this.start;"number"==typeof this.start&&(e=K(this.start,this.hideSecond)),[a,n]=e.split(" "),this.start&&!ee(this.start,this.tempRange.startDate)&&(i=!0,this.tempRange.startDate=a),this.start&&!ee(this.start,this.tempRange.endDate)&&(s=!0,this.tempRange.endDate=a)}let o,r,l=!1,c=!1;if(this.end){let e=this.end;"number"==typeof this.end&&(e=K(this.end,this.hideSecond)),[o,r]=e.split(" "),this.end&&!ee(this.tempRange.startDate,this.end)&&(l=!0,this.tempRange.startDate=o),this.end&&!ee(this.tempRange.endDate,this.end)&&(c=!0,this.tempRange.endDate=o)}this.hasTime?(i?this.tempRange.startTime=n||X(this.hideSecond):l&&(this.tempRange.startTime=r||X(this.hideSecond)),this.tempRange.startTime||(this.tempRange.startTime=Q(Date.now(),this.hideSecond)),s?this.tempRange.endTime=n||X(this.hideSecond):c&&(this.tempRange.endTime=r||X(this.hideSecond)),this.tempRange.endTime||(this.tempRange.endTime=Q(Date.now(),this.hideSecond)),e=this.displayRangeValue.startDate=`${this.tempRange.startDate} ${this.tempRange.startTime}`,t=this.displayRangeValue.endDate=`${this.tempRange.endDate} ${this.tempRange.endTime}`):(e=this.displayRangeValue.startDate=this.tempRange.startDate,t=this.displayRangeValue.endDate=this.tempRange.endDate),ee(e,t)||([e,t]=[t,e]),this.displayRangeValue.startDate=e,this.displayRangeValue.endDate=t;const d=[e,t];this.setEmit(d),this.pickerVisible=!1},handleStartAndEnd(e,t,a=!1){if(!e)return;t||(t=e);const n=a?"tempRange":"range",i=ee(e,t);this[n].startDate=i?e:t,this[n].endDate=i?t:e},dateCompare:(e,t)=>(e=new Date(e.replace("-","/").replace("-","/")))<=(t=new Date(t.replace("-","/").replace("-","/"))),diffDate(e,t){e=new Date(e.replace("-","/").replace("-","/"));const a=((t=new Date(t.replace("-","/").replace("-","/")))-e)/864e5;return Math.abs(a)},clear(e=!0){this.isRange?(this.displayRangeValue.startDate="",this.displayRangeValue.endDate="",this.tempRange.startDate="",this.tempRange.startTime="",this.tempRange.endDate="",this.tempRange.endTime="",this.isPhone?this.$refs.mobile&&this.$refs.mobile.clearCalender():(this.$refs.left&&this.$refs.left.clearCalender(),this.$refs.right&&this.$refs.right.clearCalender(),this.$refs.right&&this.$refs.right.changeMonth("next")),e&&(this.$emit("change",[]),this.$emit("input",[]),this.$emit("update:modelValue",[]))):(this.displayValue="",this.inputDate="",this.pickerTime="",this.isPhone?this.$refs.mobile&&this.$refs.mobile.clearCalender():this.$refs.pcSingle&&this.$refs.pcSingle.clearCalender(),e&&(this.$emit("change",""),this.$emit("input",""),this.$emit("update:modelValue","")))},calendarClick(e){this.$emit("calendarClick",e)}}};const Se=q(Ee,[["render",function(t,n,i,s,o,r){const l=a(e.resolveDynamicComponent("uni-icons"),Y),c=e.resolveComponent("time-picker"),d=e.resolveComponent("Calendar");return e.openBlock(),e.createElementBlock("view",{class:"uni-date"},[e.createElementVNode("view",{class:"uni-date-editor",onClick:n[1]||(n[1]=(...e)=>r.show&&r.show(...e))},[e.renderSlot(t.$slots,"default",{},(()=>[e.createElementVNode("view",{class:e.normalizeClass(["uni-date-editor--x",{"uni-date-editor--x__disabled":i.disabled,"uni-date-x--border":i.border}])},[o.isRange?(e.openBlock(),e.createElementBlock("view",{key:1,class:"uni-date-x uni-date-range"},[e.createVNode(l,{class:"icon-calendar",type:"calendar",color:"#c0c4cc",size:"22"}),e.createElementVNode("view",{class:"uni-date__x-input text-center"},e.toDisplayString(o.displayRangeValue.startDate||r.startPlaceholderText),1),e.createElementVNode("view",{class:"range-separator"},e.toDisplayString(i.rangeSeparator),1),e.createElementVNode("view",{class:"uni-date__x-input text-center"},e.toDisplayString(o.displayRangeValue.endDate||r.endPlaceholderText),1)])):(e.openBlock(),e.createElementBlock("view",{key:0,class:"uni-date-x uni-date-single"},[e.createVNode(l,{class:"icon-calendar",type:"calendar",color:"#c0c4cc",size:"22"}),e.createElementVNode("view",{class:"uni-date__x-input"},e.toDisplayString(o.displayValue||r.singlePlaceholderText),1)])),r.showClearIcon?(e.openBlock(),e.createElementBlock("view",{key:2,class:"uni-date__icon-clear",onClick:n[0]||(n[0]=e.withModifiers(((...e)=>r.clear&&r.clear(...e)),["stop"]))},[e.createVNode(l,{type:"clear",color:"#c0c4cc",size:"22"})])):e.createCommentVNode("",!0)],2)]),!0)]),e.withDirectives(e.createElementVNode("view",{class:"uni-date-mask--pc",onClick:n[2]||(n[2]=(...e)=>r.close&&r.close(...e))},null,512),[[e.vShow,o.pickerVisible]]),o.isPhone?e.createCommentVNode("",!0):e.withDirectives((e.openBlock(),e.createElementBlock("view",{key:0,ref:"datePicker",class:"uni-date-picker__container"},[o.isRange?(e.openBlock(),e.createElementBlock("view",{key:1,class:"uni-date-range--x",style:e.normalizeStyle(o.pickerPositionStyle)},[e.createElementVNode("view",{class:"uni-popper__arrow"}),o.hasTime?(e.openBlock(),e.createElementBlock("view",{key:0,class:"popup-x-header uni-date-changed"},[e.createElementVNode("view",{class:"popup-x-header--datetime"},[e.withDirectives(e.createElementVNode("input",{class:"uni-date__input uni-date-range__input",type:"text","onUpdate:modelValue":n[7]||(n[7]=e=>o.tempRange.startDate=e),placeholder:r.startDateText},null,8,["placeholder"]),[[e.vModelText,o.tempRange.startDate]]),e.createVNode(c,{type:"time",modelValue:o.tempRange.startTime,"onUpdate:modelValue":n[9]||(n[9]=e=>o.tempRange.startTime=e),start:r.timepickerStartTime,border:!1,disabled:!o.tempRange.startDate,hideSecond:i.hideSecond},{default:e.withCtx((()=>[e.withDirectives(e.createElementVNode("input",{class:"uni-date__input uni-date-range__input",type:"text","onUpdate:modelValue":n[8]||(n[8]=e=>o.tempRange.startTime=e),placeholder:r.startTimeText,disabled:!o.tempRange.startDate},null,8,["placeholder","disabled"]),[[e.vModelText,o.tempRange.startTime]])])),_:1},8,["modelValue","start","disabled","hideSecond"])]),e.createVNode(l,{type:"arrowthinright",color:"#999",style:{"line-height":"40px"}}),e.createElementVNode("view",{class:"popup-x-header--datetime"},[e.withDirectives(e.createElementVNode("input",{class:"uni-date__input uni-date-range__input",type:"text","onUpdate:modelValue":n[10]||(n[10]=e=>o.tempRange.endDate=e),placeholder:r.endDateText},null,8,["placeholder"]),[[e.vModelText,o.tempRange.endDate]]),e.createVNode(c,{type:"time",modelValue:o.tempRange.endTime,"onUpdate:modelValue":n[12]||(n[12]=e=>o.tempRange.endTime=e),end:r.timepickerEndTime,border:!1,disabled:!o.tempRange.endDate,hideSecond:i.hideSecond},{default:e.withCtx((()=>[e.withDirectives(e.createElementVNode("input",{class:"uni-date__input uni-date-range__input",type:"text","onUpdate:modelValue":n[11]||(n[11]=e=>o.tempRange.endTime=e),placeholder:r.endTimeText,disabled:!o.tempRange.endDate},null,8,["placeholder","disabled"]),[[e.vModelText,o.tempRange.endTime]])])),_:1},8,["modelValue","end","disabled","hideSecond"])])])):e.createCommentVNode("",!0),e.createElementVNode("view",{class:"popup-x-body"},[e.createVNode(d,{ref:"left",showMonth:!1,"start-date":o.calendarRange.startDate,"end-date":o.calendarRange.endDate,range:!0,pleStatus:o.endMultipleStatus,onChange:r.leftChange,onFirstEnterCale:r.updateRightCale,style:{padding:"0 8px"}},null,8,["start-date","end-date","pleStatus","onChange","onFirstEnterCale"]),e.createVNode(d,{ref:"right",showMonth:!1,"start-date":o.calendarRange.startDate,"end-date":o.calendarRange.endDate,range:!0,onChange:r.rightChange,pleStatus:o.startMultipleStatus,onFirstEnterCale:r.updateLeftCale,style:{padding:"0 8px","border-left":"1px solid #F1F1F1"}},null,8,["start-date","end-date","onChange","pleStatus","onFirstEnterCale"])]),o.hasTime?(e.openBlock(),e.createElementBlock("view",{key:1,class:"popup-x-footer"},[e.createElementVNode("text",{onClick:n[13]||(n[13]=(...e)=>r.clear&&r.clear(...e))},e.toDisplayString(r.clearText),1),e.createElementVNode("text",{class:"confirm-text",onClick:n[14]||(n[14]=(...e)=>r.confirmRangeChange&&r.confirmRangeChange(...e))},e.toDisplayString(r.okText),1)])):e.createCommentVNode("",!0)],4)):(e.openBlock(),e.createElementBlock("view",{key:0,class:"uni-date-single--x",style:e.normalizeStyle(o.pickerPositionStyle)},[e.createElementVNode("view",{class:"uni-popper__arrow"}),o.hasTime?(e.openBlock(),e.createElementBlock("view",{key:0,class:"uni-date-changed popup-x-header"},[e.withDirectives(e.createElementVNode("input",{class:"uni-date__input text-center",type:"text","onUpdate:modelValue":n[3]||(n[3]=e=>o.inputDate=e),placeholder:r.selectDateText},null,8,["placeholder"]),[[e.vModelText,o.inputDate]]),e.createVNode(c,{type:"time",modelValue:o.pickerTime,"onUpdate:modelValue":n[5]||(n[5]=e=>o.pickerTime=e),border:!1,disabled:!o.inputDate,start:r.timepickerStartTime,end:r.timepickerEndTime,hideSecond:i.hideSecond,style:{width:"100%"}},{default:e.withCtx((()=>[e.withDirectives(e.createElementVNode("input",{class:"uni-date__input text-center",type:"text","onUpdate:modelValue":n[4]||(n[4]=e=>o.pickerTime=e),placeholder:r.selectTimeText,disabled:!o.inputDate},null,8,["placeholder","disabled"]),[[e.vModelText,o.pickerTime]])])),_:1},8,["modelValue","disabled","start","end","hideSecond"])])):e.createCommentVNode("",!0),e.createVNode(d,{ref:"pcSingle",showMonth:!1,"start-date":o.calendarRange.startDate,"end-date":o.calendarRange.endDate,date:o.calendarDate,onChange:r.singleChange,"default-value":i.defaultValue,style:{padding:"0 8px"}},null,8,["start-date","end-date","date","onChange","default-value"]),o.hasTime?(e.openBlock(),e.createElementBlock("view",{key:1,class:"popup-x-footer"},[e.createElementVNode("text",{class:"confirm-text",onClick:n[6]||(n[6]=(...e)=>r.confirmSingleChange&&r.confirmSingleChange(...e))},e.toDisplayString(r.okText),1)])):e.createCommentVNode("",!0)],4))],512)),[[e.vShow,o.pickerVisible]]),o.isPhone?(e.openBlock(),e.createBlock(d,{key:1,ref:"mobile",clearDate:!1,date:o.calendarDate,defTime:r.mobileCalendarTime,"start-date":o.calendarRange.startDate,"end-date":o.calendarRange.endDate,selectableTimes:r.mobSelectableTime,startPlaceholder:i.startPlaceholder,endPlaceholder:i.endPlaceholder,"default-value":i.defaultValue,pleStatus:o.endMultipleStatus,showMonth:!1,range:o.isRange,hasTime:o.hasTime,insert:!1,hideSecond:i.hideSecond,onConfirm:r.mobileChange,onMaskClose:r.close,onChange:r.calendarClick},null,8,["date","defTime","start-date","end-date","selectableTimes","startPlaceholder","endPlaceholder","default-value","pleStatus","range","hasTime","hideSecond","onConfirm","onMaskClose","onChange"])):e.createCommentVNode("",!0)])}],["__scopeId","data-v-17511ee3"]]),xe=q({__name:"customNav",setup(t){e.useCssVars((e=>({bc08538a:a})));const a=wx.getSystemInfoSync().statusBarHeight+44+"px";return(t,a)=>(e.openBlock(),e.createElementBlock("view",{class:""},[e.createElementVNode("view",{class:"nav"},[e.renderSlot(t.$slots,"default",{},void 0,!0)]),e.createElementVNode("view",{class:"place"})]))}},[["__scopeId","data-v-566e182b"]]),Ne="https://36.112.48.190/jeecg-boot/sys/common/static/",Ve=(e,t,a)=>{uni.showToast({title:e,icon:t||"none",duration:a||2e3})},Ce=(e,a)=>{u({token:H().token,type:"mobile"}).then((t=>{var n;if(t.success){Te((null==(n=t.result)?void 0:n.menu)||[]).some((t=>-1!==e.indexOf(t)))?a():Ve("无查看权限!")}})).catch((e=>{t("log","at utils/index.js:35","err@",e)}))},Te=(e,t=[])=>e.length?(e.forEach((e=>{e.children&&t.push(...Te(e.children)),t.push(e.path)})),t):[];function De(e){t("log","at utils/index.js:78","url",e);var a=plus.downloader.createDownload(e,{filename:`_downloads/wgt-${Date.now()}.wgt`},(function(e,a){if(200==a){var n=plus.io.convertLocalFileSystemURL(e.filename);t("log","at utils/index.js:86","fileSaveUrl",n),i=n,plus.runtime.install(i,{force:!0},(()=>{uni.showModal({title:"更新",content:"更新成功,请点击确认后重启",showCancel:!1,success(e){e.confirm&&plus.runtime.restart()}})}),(()=>uni.showToast({title:"安装失败!",icon:"error"})))}else plus.downloader.clear(),uni.showToast({title:"App下载失败!",icon:"error"});var i}));let n=plus.nativeUI.showWaiting("正在下載");a.start(),a.addEventListener("statechanged",((e,t)=>{switch(e.state){case 1:n.setTitle("正在下载");break;case 2:n.setTitle("已连接到服务器");break;case 3:parseInt(parseFloat(e.downloadedSize)/parseFloat(e.totalSize)*100),n.setTitle(" 正在下载");break;case 4:plus.nativeUI.closeWaiting()}}))}const Be=()=>{let e=new Date;return(new Date).getTime(),`${e.getFullYear()}-${(e.getMonth()+1).toString().padStart(2,0)}-${e.getDate().toString().padStart(2,0)}`},Ie=()=>{const e=H();e.positionSwitch?(Ve("定位刷新中"),uni.getLocation({type:"wgs84",success:function(a){uni.request({url:"http://api.tianditu.gov.cn/geocoder",method:"GET",data:{postStr:JSON.stringify({lon:a.longitude,lat:a.latitude,ver:1}),type:"geocode",tk:"30fe0f0c1b2320e112bde797f3ddaff4"},success:function(n){let i=n.data;if(0==i.status){const t=i.result.addressComponent;let n=t.city?t.city:t.province;uni.setStorageSync("position",n),e.setPosition(n),Pe(a.latitude,a.longitude)}else t("log","at utils/index.js:223",i.message)},fail:function(e){Ve("获取定位失败")}})}})):(uni.setStorageSync("position","濮阳市"),e.setPosition("濮阳市"),Pe())},Pe=(e,t)=>{let a={};H().positionSwitch?(a.lat=e,a.lon=t,Ae(a)):(a.q="濮阳市",Ae(a))},Ae=e=>{const t=H();uni.request({url:"https://api.openweathermap.org/data/2.5/weather",method:"GET",data:{...e,appid:"600a60694b0e453dfbaafa862f1d1482",lang:"zh_cn"},success:function(e){uni.setStorageSync("wendu",Math.round(e.data.main.temp-273.15)),uni.setStorageSync("wenduIcon",e.data.weather[0].icon),t.setWeather(Math.round(e.data.main.temp-273.15),e.data.weather[0].icon)},fail:function(e){Ve("天气获取失败")}})},Me=e=>{uni.downloadFile({url:Ne+e,success:function(e){var t=e.tempFilePath;uni.openDocument({filePath:t,showMenu:!0,fail:function(e){Ve(e.errMsg)}})},fail:function(e){t("error","at utils/index.js:282","文件下载失败",e)}})},Re=e=>`https://36.112.48.190/jeecg-boot/sys/common/static//${e}`,Le=q({__name:"index",setup(n){e.useCssVars((e=>({"59a7e392":p})));const s=H();i((()=>{r(),S(),V()}));const o=e.ref([]),r=()=>{var e;(e={zslb:6},d({url:"/CxcDaping/cxcDaping/list",method:"get",data:e})).then((e=>{if(e.success){let t=e.result.records[0].wenjian.split(",");o.value=t.map((e=>"https://36.112.48.190/jeecg-boot/sys/common/static/"+e))}}))},c=e.ref(0),u=e.ref(0),h=["公文","公告","制度","法规"],m=e=>{u.value=e,b=1,_.value=[],x()},p=wx.getSystemInfoSync().statusBarHeight+44+"px";e.ref(null);const k=(e,t,a,n)=>{if(!t||1!=t||"detail"!=n){if(t&&3==t&&a)return Me(a.mingcheng);t&&2==t&&(e+=`&zhiduid=${u.value}`),Ce(e,(()=>{uni.navigateTo({url:e})}))}};let b=1;const _=e.ref([]),E=e.ref([]),S=()=>{var e;d({url:"/zhgl_zbgl/zhglZbglZbb/homepageList",method:"get",data:e}).then((e=>{e.success&&(E.value=e.result.records.slice(0,2))})).catch((e=>{t("log","at pages/tab/index.vue:299","err",e)}))},x=()=>{(0==u.value?w:v)({pageNo:b,pageSize:5}).then((e=>{if(e.success){let t=0==u.value?"zbbm_dictText":"sbbm";_.value=[..._.value,...N(e.result.records,"zdmc",t,null)]}})).catch((e=>{t("log","at pages/tab/index.vue:332","err",e)}))},N=(e,t,a,n)=>(e.map((e=>{e._title=e[t],e._time=e[a],e._depart=e[n]})),e);l((()=>{_.value=[],r(),S(),V(),uni.stopPullDownRefresh()}));const V=()=>{0==c.value?f({pageNo:b,pageSize:5}).then((e=>{e.success&&(_.value=[..._.value,...N(e.result.records,"fwbt","fwtime",null)])})).catch((e=>{t("log","at pages/tab/index.vue:273","err",e)})):1==c.value?g({pageNo:b,pageSize:5}).then((e=>{e.success&&(_.value=[..._.value,...N(e.result.records,"neirong","fbdw","createTime")])})).catch((e=>{t("log","at pages/tab/index.vue:288","err",e)})):2==c.value?x():3==c.value&&y({pageNo:b,pageSize:5}).then((e=>{e.success&&(_.value=[..._.value,...N(e.result.records,"flfgmc","ssbm",null)])})).catch((e=>{t("log","at pages/tab/index.vue:315","err",e)}))};return(t,n)=>{const i=a(e.resolveDynamicComponent("uni-datetime-picker"),Se);return e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass(["content",{gray:1==e.unref(s).isgray}])},[e.createElementVNode("view",{class:"nav"},[e.createElementVNode("view",{class:"nav_box f-row aic jcb"},[e.createElementVNode("view",{class:"weather_calender f-row aic"},[e.createElementVNode("view",{class:"position f-row aic"},[e.createElementVNode("image",{src:"/static/index/position.png",mode:""}),e.createElementVNode("text",null,e.toDisplayString(e.unref(s).position?e.unref(s).position:"暂未定位"),1)]),e.createElementVNode("view",{class:"position f-row aic"},[e.createElementVNode("image",{style:{height:"80rpx",width:"80rpx"},src:`http://openweathermap.org/img/w/${e.unref(s).wenduIcon}.png`,mode:""},null,8,["src"]),e.createElementVNode("text",null,e.toDisplayString(e.unref(s).wendu)+"℃",1)]),e.createVNode(i,{type:"date"},{default:e.withCtx((()=>[e.createElementVNode("view",{class:"position f-row aic"},[e.createElementVNode("image",{src:"/static/index/calendar.png",mode:""}),e.createElementVNode("text",null,e.toDisplayString(e.unref(Be)()),1)])])),_:1})])])]),e.createElementVNode("view",{class:"f-col aic"},[e.createElementVNode("swiper",{class:"swiper",autoplay:""},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.value,((t,a)=>(e.openBlock(),e.createElementBlock("swiper-item",{key:a,class:"swiper-item"},[e.createElementVNode("image",{src:t,mode:"aspectFill"},null,8,["src"])])))),128))])]),e.createElementVNode("view",{class:"wrapper f-col aic"},[e.createElementVNode("view",{class:"onduty"},[e.createElementVNode("view",{class:"title f-row aic jcb"},[e.createTextVNode(" 值班信息 "),e.createElementVNode("view",{class:"more",onClick:n[0]||(n[0]=e=>k("/pages/zhiban/index"))},[e.createTextVNode(" 查看更多 "),e.createElementVNode("image",{src:"/static/index/back.png",mode:""})])]),e.createElementVNode("view",{class:"info"},[e.createElementVNode("view",{class:"info_title f-row aic"},[e.createElementVNode("view",{class:""}," 日期 "),e.createElementVNode("view",{class:""}," 带班领导 "),e.createElementVNode("view",{class:""}," 值班领导 "),e.createElementVNode("view",{class:""}," 值班干部 ")]),e.createElementVNode("view",{class:"data_box"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(E.value,((t,a)=>(e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass(["data"," f-row","aic",{first:0==a}])},[e.createElementVNode("view",{class:""},e.toDisplayString(t.date),1),e.createElementVNode("view",{class:""},e.toDisplayString(t.dbld_dictText),1),e.createElementVNode("view",{class:""},e.toDisplayString(t.zbld_dictText),1),e.createElementVNode("view",{class:""},e.toDisplayString(t.zbgbrealname),1)],2)))),256))])])]),e.createElementVNode("view",{class:"list_wrapper"},[e.createElementVNode("view",{class:""},[e.createElementVNode("view",{class:"list_title f-row aic jca"},[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(h,((t,a)=>e.createElementVNode("view",{class:e.normalizeClass({active:c.value==a}),onClick:e=>(e=>{c.value=e,b=1,_.value=[],V()})(a)},e.toDisplayString(t),11,["onClick"]))),64))]),2==c.value?(e.openBlock(),e.createElementBlock("view",{key:0,class:"f-row aic zhidu"},[e.createElementVNode("view",{class:e.normalizeClass({active:0==u.value}),onClick:n[1]||(n[1]=e=>m(0))}," 厂级制度 ",2),e.createElementVNode("view",{class:e.normalizeClass({active:1==u.value}),onClick:n[2]||(n[2]=e=>m(1))}," 上级制度 ",2)])):e.createCommentVNode("",!0)]),e.createElementVNode("view",{style:{"padding-top":"24rpx"},class:"more",onClick:n[3]||(n[3]=e=>k(`/pages/document/index?id=${c.value}`,c.value))},[e.createTextVNode(" 查看更多 "),e.createElementVNode("image",{src:"/static/index/back.png",mode:""})]),e.createElementVNode("view",{class:"list_box"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(_.value,((t,a)=>(e.openBlock(),e.createElementBlock("view",{class:"list",key:a,onClick:e=>k(`/pages/document/detail?data=${JSON.stringify(t)}&id=${c.value}`,c.value,t,"detail")},[e.createElementVNode("view",{class:"topic"},e.toDisplayString(t._title),1),t._time||t._depart?(e.openBlock(),e.createElementBlock("view",{key:0,class:"time_Box f-row aic"},[t._time?(e.openBlock(),e.createElementBlock("view",{key:0,class:"time"},e.toDisplayString(t._time),1)):e.createCommentVNode("",!0),t._depart?(e.openBlock(),e.createElementBlock("view",{key:1,class:"look f-row aic"},e.toDisplayString(t._depart),1)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)],8,["onClick"])))),128))])])])],2)}}},[["__scopeId","data-v-9c94732a"]]),Oe=q({__name:"extendCom",props:{title:{type:String,default:""},img:{type:String,default:""},list:{type:Array,default:function(){return[]}},total:{type:Number,default:0},type:{type:String,default:""}},setup(t){e.useCssVars((e=>({"11d92706":i.value})));const a=t,n=e.ref(!1),i=e.ref(null),s=e.getCurrentInstance();e.watch((()=>a.list),(()=>{e.nextTick((()=>{uni.createSelectorQuery().in(s.proxy).select(".item_box").boundingClientRect((e=>{i.value=(null==e?void 0:e.height)+"px"})).exec()}))}),{immediate:!0});const o=e=>{let t=null;Ce("/pages/task/index",(()=>{if("0"==a.type&&(t=0),"1"==a.type&&(t=1),"2"==a.type)return uni.navigateTo({url:`/pages/task/self?title=${e}`});uni.navigateTo({url:`/pages/task/index?id=${t}&title=${e}`})}))};return(a,i)=>(e.openBlock(),e.createElementBlock("view",{class:"content"},[e.createElementVNode("view",{class:"todo f-col aic"},[e.createElementVNode("view",{class:"f-col aic"},[e.createElementVNode("view",{class:"title_box f-row aic jcb",onClick:i[0]||(i[0]=e=>o(""))},[e.createElementVNode("view",{class:"title f-row aic"},[e.createElementVNode("image",{src:`/static/my/${t.img}.png`,mode:""},null,8,["src"]),e.createTextVNode(" "+e.toDisplayString(t.title),1)]),e.createElementVNode("view",{class:"num"},e.toDisplayString(t.total),1)]),t.list.length?(e.openBlock(),e.createElementBlock("view",{key:0,class:"list"},[e.createElementVNode("view",{class:e.normalizeClass(["box",{close:t.list.length>5&&n.value}])},[e.createElementVNode("view",{class:"item_box"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.list,((t,a)=>(e.openBlock(),e.createElementBlock("view",{onClick:e=>o(t.title),class:"item f-row aic",key:a},[e.createElementVNode("view",{class:""},e.toDisplayString(t.title),1),e.createElementVNode("text",null,e.toDisplayString(t.num),1)],8,["onClick"])))),128))])],2),e.withDirectives(e.createElementVNode("view",{class:"more",onClick:i[1]||(i[1]=e=>n.value=!n.value)},e.toDisplayString(n.value?"收起":"显示更多"),513),[[e.vShow,t.list.length>5]])])):e.createCommentVNode("",!0)])])]))}},[["__scopeId","data-v-d5e6674e"]]),Fe=q({__name:"todotask",setup(a){e.useCssVars((e=>({"6ebd20b9":n})));const n=wx.getSystemInfoSync().statusBarHeight+44+"px",s=H();i((()=>{k(),c(),f(),v(),uni.removeTabBarBadge({index:"1"})}));const o=e.ref([]),r=e.ref(0),c=()=>{h({pageNo:1,pageSize:4,_t:(new Date).getTime()}).then((e=>{var a,n,i,s;(null==e?void 0:e.success)&&((null==(a=null==e?void 0:e.result)?void 0:a.total)>4?h({pageNo:1,pageSize:null==(n=null==e?void 0:e.result)?void 0:n.total,_t:(new Date).getTime()}).then((e=>{var a,n;t("log","at pages/task/todotask.vue:60","---",e),(null==e?void 0:e.success)&&(o.value=[...o.value,...w(null==(a=null==e?void 0:e.result)?void 0:a.records)],r.value=null==(n=null==e?void 0:e.result)?void 0:n.total)})).catch((e=>{t("log","at pages/task/todotask.vue:66","err",e)})):(o.value=[...o.value,...w(null==(i=null==e?void 0:e.result)?void 0:i.records)],r.value=null==(s=null==e?void 0:e.result)?void 0:s.total))})).catch((e=>{t("log","at pages/task/todotask.vue:75",e)}))},d=e.ref([]),u=e.ref(0),f=()=>{m().then((e=>{e.success&&(e.result.total>4?m({pageNo:1,pageSize:e.result.total,_t:(new Date).getTime()}).then((e=>{e.success&&(d.value=[...d.value,...w(e.result.records)],u.value=e.result.total)})).catch((e=>{t("log","at pages/task/todotask.vue:96",e)})):(d.value=[...d.value,...w(e.result.records)],u.value=e.result.total))})).catch((e=>{t("log","at pages/task/todotask.vue:105",e)}))},g=e.ref([]),y=e.ref(0),v=()=>{p().then((e=>{e.success&&(e.result.total>4?p({pageNo:1,pageSize:e.result.total,_t:(new Date).getTime()}).then((e=>{e.success&&(g.value=[...g.value,...w(e.result.records)],y.value=e.result.total)})).catch((e=>{t("log","at pages/task/todotask.vue:125",e)})):(g.value=[...g.value,...w(e.result.records)],y.value=e.result.total))})).catch((e=>{t("log","at pages/task/todotask.vue:135",e)}))},w=e=>{let t=(e.length?e.map((e=>e.processDefinitionName||e.prcocessDefinitionName)):[]).reduce(((e,t)=>(t in e?e[t]++:e[t]=1,e)),{});return Object.entries(t).map((([e,t])=>({title:e,num:t})))},k=()=>{o.value=[],g.value=[],d.value=[],r.value=0,u.value=0,y.value=0};return l((()=>{k(),c(),f(),v(),uni.stopPullDownRefresh()})),(t,a)=>(e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass([{gray:1==e.unref(s).isgray}])},[e.createElementVNode("view",{class:"nav"}),e.createElementVNode("view",{class:"placeholder"}),e.createElementVNode("view",{class:"content"},[e.createVNode(Oe,{title:"我的任务",img:"process",list:o.value,total:r.value,type:"0"},null,8,["list","total"]),e.createVNode(Oe,{title:"历史任务",img:"done",list:d.value,total:u.value,type:"1"},null,8,["list","total"]),e.createVNode(Oe,{title:"本人发起",img:"self",list:g.value,total:y.value,type:"2"},null,8,["list","total"])])],2))}},[["__scopeId","data-v-df705bde"]]),$e={__name:"office",setup(a){e.useCssVars((e=>({"00e5a4ad":i})));const n=H();new Array(7).fill(0).map(((e,t)=>t)),e.ref([]);const i=wx.getSystemInfoSync().statusBarHeight+44+"px";o((()=>{c()}));const s=e.ref([]),r=e.ref([]),l=e.ref([]),c=()=>{u({token:n.token,type:"mobile"}).then((e=>{var t,a,n;if(e.success){let i=e.result.menu;i.map((e=>e.children=null==e?void 0:e.children.filter((e=>{var t;return null==(t=null==e?void 0:e.meta)?void 0:t.icon})))),i=i.filter((e=>{var t;return null==(t=null==e?void 0:e.children)?void 0:t.length})),l.value=null==(a=null==(t=i[0])?void 0:t.meta)?void 0:a.title,s.value=i,r.value=null==(n=i.slice(0,1)[0])?void 0:n.children}})).catch((e=>{t("log","at pages/tab/office.vue:103",e)}))};return(t,a)=>{var i,o,l;return e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass({gray:1==e.unref(n).isgray})},[e.createElementVNode("view",{class:"nav"}),e.createElementVNode("view",{class:"placeholder"}),(null==(i=r.value)?void 0:i.length)||(null==(o=s.value)?void 0:o.length)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("view",{key:0,class:"title f-col aic",style:{"padding-top":"30rpx"}}," 暂无权限,请联系管理员! ")),e.createElementVNode("view",{class:"content"},[(null==(l=s.value)?void 0:l.length)?(e.openBlock(),e.createElementBlock("view",{key:0,class:"list"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value,((t,a)=>(e.openBlock(),e.createElementBlock("view",{class:"item",key:a},[e.createElementVNode("view",{class:"title"},e.toDisplayString(t.meta.title),1),e.createElementVNode("view",{class:"info_box f-row aic"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.children,((t,a)=>(e.openBlock(),e.createElementBlock("view",{class:"info f-col aic",onClick:e=>{return a=t.path,void Ce(a,(()=>{uni.navigateTo({url:a})}));var a},key:a},[e.createElementVNode("view",{class:"img f-row aic"},[e.createElementVNode("image",{src:`../../static/office/${t.meta.icon}.png`},null,8,["src"])]),e.createElementVNode("view",{class:"text"},e.toDisplayString(t.meta.title),1)],8,["onClick"])))),128))])])))),128))])):e.createCommentVNode("",!0)])],2)}}},je=q($e,[["__scopeId","data-v-a37e03c5"]]),Ue=q({__name:"my",setup(t){const a=H(),n=e.ref(plus.runtime.version),i=e.ref([]),s=e.ref(!1),o=e.ref(a.positionSwitch),r=e=>{e&&Ce(e,(()=>{uni.navigateTo({url:e})}))},l=e=>{uni.navigateTo({url:e})},c=()=>{o.value=!o.value,uni.setStorageSync("positionSwitch",o.value),a.setPositionSwitch(o.value),o.value||Ve("定位已关闭"),Ie()},d=()=>{uni.scanCode({success:function(e){plus.runtime.openWeb(e.result)}})};return(t,u)=>(e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass({gray:1==e.unref(a).isgray})},[e.createElementVNode("view",{class:"nav"},[e.createElementVNode("view",{class:"user f-row aic"},[e.createElementVNode("view",{class:"avatar"},[e.createElementVNode("image",{onClick:u[0]||(u[0]=e=>l("/pages/useredit/useredit")),src:e.unref(Re)(e.unref(a).userinfo.avatar),mode:""},null,8,["src"])]),e.createElementVNode("view",{class:"f-row aic jcb right"},[e.createElementVNode("view",{class:"name_job",onClick:u[1]||(u[1]=e=>l("/pages/useredit/useredit"))},[e.createElementVNode("view",{class:"f-row aic"},[e.createElementVNode("view",{class:"name"},e.toDisplayString(e.unref(a).userinfo.realname),1)]),e.createElementVNode("view",{class:"job"},e.toDisplayString(e.unref(a).role),1)]),e.createElementVNode("view",{class:"shezhi"},[e.createElementVNode("image",{onClick:d,style:{width:"50rpx",height:"50rpx","margin-right":"20rpx"},src:"/static/tab/scan.png"})])])]),e.createElementVNode("view",{class:"f-col aic"},[e.createElementVNode("view",{class:"msg f-row aic jca"},[e.createElementVNode("view",{class:"box f-col aic"},[e.createElementVNode("view",{class:"num"},e.toDisplayString(0)),e.createElementVNode("text",null,"步数")]),e.createElementVNode("view",{class:"box f-col aic",onClick:u[2]||(u[2]=e=>r("/pages/useredit/addressbook"))},[e.createElementVNode("view",{class:"num"}," 0 "),e.createElementVNode("text",null,"通讯录")])])])]),e.createElementVNode("view",{class:"operate"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value,((t,a)=>(e.openBlock(),e.createElementBlock("view",{class:"f-row aic jcb item",key:a,onClick:e=>r(t.path)},[e.createElementVNode("view",{class:"left f-row aic"},[e.createElementVNode("image",{src:t.img,mode:""},null,8,["src"]),e.createElementVNode("text",null,e.toDisplayString(t.text),1)]),e.createElementVNode("view",{class:"right f-row aic"},[e.withDirectives(e.createElementVNode("view",{class:"switch",onClick:u[3]||(u[3]=e=>s.value=!s.value)},[e.withDirectives(e.createElementVNode("image",{src:"/static/my/open.png",mode:""},null,512),[[e.vShow,s.value]]),e.withDirectives(e.createElementVNode("image",{src:"/static/my/close.png",mode:""},null,512),[[e.vShow,!s.value]])],512),[[e.vShow,0==a]]),e.withDirectives(e.createElementVNode("view",{class:"switch",onClick:c},[e.withDirectives(e.createElementVNode("image",{src:"/static/my/open.png",mode:""},null,512),[[e.vShow,o.value]]),e.withDirectives(e.createElementVNode("image",{src:"/static/my/close.png",mode:""},null,512),[[e.vShow,!o.value]])],512),[[e.vShow,2==a]]),e.withDirectives(e.createElementVNode("view",{class:"version"}," 当前版本v"+e.toDisplayString(n.value),513),[[e.vShow,3==a]])])],8,["onClick"])))),128))])],2))}},[["__scopeId","data-v-300a7325"]]),ze=q({__name:"tasklistCom",props:{taskArr:{type:Array,default:()=>[]},currentIndex:{type:Number,default:0}},emits:["jump"],setup(t,{emit:a}){const{proxy:n}=e.getCurrentInstance(),i=a,s=e=>{i("jump",e)},o=e=>{var t;(t={taskId:e},d({url:"/act/task/claim",method:"put",data:t})).then((e=>{e.success&&(uni.redirectTo({url:"./index?id=0"}),n.$toast(e.message))}))},r=e=>{var t;(t={processInstanceId:e},d({url:"/act/task/callBackProcess",method:"put",data:t})).then((e=>{e.success&&(uni.redirectTo({url:"./self"}),n.$toast(e.message))}))},l=e=>{var t;(t={processInstanceId:e},d({url:"/act/task/invalidProcess",method:"put",data:t})).then((e=>{e.success&&(uni.redirectTo({url:"./self"}),n.$toast(e.message))}))};return(a,n)=>(e.openBlock(),e.createElementBlock("view",{class:"list_box"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.taskArr,((a,n)=>(e.openBlock(),e.createElementBlock("view",{class:"list",key:n,onClick:e=>s(`/pages/task/handle?info=${JSON.stringify(a)}&type=${t.currentIndex}`)},[e.createElementVNode("view",{class:"title f-row aic jcb"},[e.createElementVNode("view",null,[e.createElementVNode("view",null,e.toDisplayString(a.bpmBizTitle),1)]),e.createElementVNode("text",null,e.toDisplayString(a.durationStr),1)]),e.createElementVNode("view",{class:"info"},[e.createElementVNode("view",null," 申请理由:"+e.toDisplayString(a.bpmBizTitle),1),2!=t.currentIndex?(e.openBlock(),e.createElementBlock("view",{key:0}," 当前环节:"+e.toDisplayString(a.taskName),1)):e.createCommentVNode("",!0),e.createElementVNode("view",null," 流程名称:"+e.toDisplayString(a.processDefinitionName),1),e.createElementVNode("view",null," 发起人:"+e.toDisplayString(a.processApplyUserName),1),e.createElementVNode("view",null," 开始时间:"+e.toDisplayString(a.taskBeginTime),1),a.taskEndTime?(e.openBlock(),e.createElementBlock("view",{key:1}," 结束时间:"+e.toDisplayString(a.taskEndTime),1)):e.createCommentVNode("",!0)]),0==t.currentIndex&&a.taskAssigneeName?(e.openBlock(),e.createElementBlock("view",{key:0,class:"btn f-row aic jcb"},[e.createElementVNode("view",{class:"entrust",onClick:e.withModifiers((e=>s(`/pages/userlist/index?isradio=1&id=${a.id}`)),["stop"])}," 委托 ",8,["onClick"]),e.createElementVNode("view",{class:"handle",onClick:e=>s(`/pages/task/handle?info=${JSON.stringify(a)}&type=${t.currentIndex}`)}," 办理 ",8,["onClick"])])):e.createCommentVNode("",!0),0!=t.currentIndex||a.taskAssigneeName?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("view",{key:1,class:"btn f-row aic jcb"},[e.createElementVNode("view"),e.createElementVNode("view",{class:"handle",onClick:e.withModifiers((e=>o(a.id)),["stop"])}," 签收 ",8,["onClick"])])),2!=t.currentIndex||a.endTime?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("view",{key:2,class:"btn f-row aic jcb"},[e.createElementVNode("view",{class:"entrust",onClick:e.withModifiers((e=>l(a.processInstanceId)),["stop"])}," 作废流程 ",8,["onClick"]),e.createElementVNode("view",{class:"handle",onClick:e.withModifiers((e=>r(a.processInstanceId)),["stop"])}," 取回流程 ",8,["onClick"])]))],8,["onClick"])))),128))]))}},[["__scopeId","data-v-3868ba91"]]),He=q({__name:"index",setup(a){const n=H();let s="";o((e=>{d.value=+e.id,s=e.title})),i((()=>{g.value=[],u=1,p=10,f=!1,y()}));const c=e.ref([{text:"我的任务",id:0},{text:"历史任务",id:1}]);e.ref("");const d=e.ref(0);let u=1,p=10,f=!1;const g=e.ref([]),y=()=>{f=!0,uni.showLoading({title:"加载中..."}),(0==d.value?h:m)({pageNo:u,pageSize:p,_t:(new Date).getTime(),processDefinitionName:s}).then((e=>{var t;if(e.success){if(!e.result.records.length)return Ve("没有更多了~");g.value=[...g.value,...(null==(t=null==e?void 0:e.result)?void 0:t.records)||[]],f=!1}})).catch((e=>{t("log","at pages/task/index.vue:84",e)}))};r((()=>{f||(u++,y())})),l((()=>{u=1,p=10,f=!1,g.value=[],y(),uni.stopPullDownRefresh()}));const v=e=>{Ce(e,(()=>{uni.navigateTo({url:e})}))};return(t,a)=>(e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass({gray:1==e.unref(n).isgray})},[e.createElementVNode("view",{class:"nav"},[e.createElementVNode("view",{class:"tab_box f-row aic jca"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,((t,a)=>(e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass({active:a==d.value}),key:a,onClick:e=>(e=>{g.value=[],u=1,p=10,f=!1,d.value=e,y()})(a)},e.toDisplayString(t.text),11,["onClick"])))),128))])]),e.createElementVNode("view",{class:"tasklist"},[e.createVNode(ze,{onJump:v,taskArr:g.value,currentIndex:d.value},null,8,["taskArr","currentIndex"])])],2))}},[["__scopeId","data-v-965734c1"]]);class qe{constructor(e,t){this.options=e,this.animation=uni.createAnimation({...e}),this.currentStepAnimates={},this.next=0,this.$=t}_nvuePushAnimates(e,t){let a=this.currentStepAnimates[this.next],n={};if(n=a||{styles:{},config:{}},Je.includes(e)){n.styles.transform||(n.styles.transform="");let a="";"rotate"===e&&(a="deg"),n.styles.transform+=`${e}(${t+a}) `}else n.styles[e]=`${t}`;this.currentStepAnimates[this.next]=n}_animateRun(e={},t={}){let a=this.$.$refs.ani.ref;if(a)return new Promise(((n,i)=>{nvueAnimation.transition(a,{styles:e,...t},(e=>{n()}))}))}_nvueNextAnimate(e,t=0,a){let n=e[t];if(n){let{styles:i,config:s}=n;this._animateRun(i,s).then((()=>{t+=1,this._nvueNextAnimate(e,t,a)}))}else this.currentStepAnimates={},"function"==typeof a&&a(),this.isEnd=!0}step(e={}){return this.animation.step(e),this}run(e){this.$.animationData=this.animation.export(),this.$.timer=setTimeout((()=>{"function"==typeof e&&e()}),this.$.durationTime)}}const Je=["matrix","matrix3d","rotate","rotate3d","rotateX","rotateY","rotateZ","scale","scale3d","scaleX","scaleY","scaleZ","skew","skewX","skewY","translate","translate3d","translateX","translateY","translateZ"];function We(e,t){if(t)return clearTimeout(t.timer),new qe(e,t)}Je.concat(["opacity","backgroundColor"],["width","height","left","right","top","bottom"]).forEach((e=>{qe.prototype[e]=function(...t){return this.animation[e](...t),this}}));const Ye=q({name:"uniTransition",emits:["click","change"],props:{show:{type:Boolean,default:!1},modeClass:{type:[Array,String],default:()=>"fade"},duration:{type:Number,default:300},styles:{type:Object,default:()=>({})},customClass:{type:String,default:""},onceRender:{type:Boolean,default:!1}},data:()=>({isShow:!1,transform:"",opacity:1,animationData:{},durationTime:300,config:{}}),watch:{show:{handler(e){e?this.open():this.isShow&&this.close()},immediate:!0}},computed:{stylesObject(){let e={...this.styles,"transition-duration":this.duration/1e3+"s"},t="";for(let a in e){t+=this.toLine(a)+":"+e[a]+";"}return t},transformStyles(){return"transform:"+this.transform+";opacity:"+this.opacity+";"+this.stylesObject}},created(){this.config={duration:this.duration,timingFunction:"ease",transformOrigin:"50% 50%",delay:0},this.durationTime=this.duration},methods:{init(e={}){e.duration&&(this.durationTime=e.duration),this.animation=We(Object.assign(this.config,e),this)},onClick(){this.$emit("click",{detail:this.isShow})},step(e,a={}){if(this.animation){for(let a in e)try{"object"==typeof e[a]?this.animation[a](...e[a]):this.animation[a](e[a])}catch(pa){t("error","at uni_modules/uni-transition/components/uni-transition/uni-transition.vue:148",`方法 ${a} 不存在`)}return this.animation.step(a),this}},run(e){this.animation&&this.animation.run(e)},open(){clearTimeout(this.timer),this.transform="",this.isShow=!0;let{opacity:e,transform:t}=this.styleInit(!1);void 0!==e&&(this.opacity=e),this.transform=t,this.$nextTick((()=>{this.timer=setTimeout((()=>{this.animation=We(this.config,this),this.tranfromInit(!1).step(),this.animation.run(),this.$emit("change",{detail:this.isShow})}),20)}))},close(e){this.animation&&this.tranfromInit(!0).step().run((()=>{this.isShow=!1,this.animationData=null,this.animation=null;let{opacity:e,transform:t}=this.styleInit(!1);this.opacity=e||1,this.transform=t,this.$emit("change",{detail:this.isShow})}))},styleInit(e){let t={transform:""},a=(e,a)=>{"fade"===a?t.opacity=this.animationType(e)[a]:t.transform+=this.animationType(e)[a]+" "};return"string"==typeof this.modeClass?a(e,this.modeClass):this.modeClass.forEach((t=>{a(e,t)})),t},tranfromInit(e){let t=(e,t)=>{let a=null;"fade"===t?a=e?0:1:(a=e?"-100%":"0","zoom-in"===t&&(a=e?.8:1),"zoom-out"===t&&(a=e?1.2:1),"slide-right"===t&&(a=e?"100%":"0"),"slide-bottom"===t&&(a=e?"100%":"0")),this.animation[this.animationMode()[t]](a)};return"string"==typeof this.modeClass?t(e,this.modeClass):this.modeClass.forEach((a=>{t(e,a)})),this.animation},animationType:e=>({fade:e?0:1,"slide-top":`translateY(${e?"0":"-100%"})`,"slide-right":`translateX(${e?"0":"100%"})`,"slide-bottom":`translateY(${e?"0":"100%"})`,"slide-left":`translateX(${e?"0":"-100%"})`,"zoom-in":`scaleX(${e?1:.8}) scaleY(${e?1:.8})`,"zoom-out":`scaleX(${e?1:1.2}) scaleY(${e?1:1.2})`}),animationMode:()=>({fade:"opacity","slide-top":"translateY","slide-right":"translateX","slide-bottom":"translateY","slide-left":"translateX","zoom-in":"scale","zoom-out":"scale"}),toLine:e=>e.replace(/([A-Z])/g,"-$1").toLowerCase()}},[["render",function(t,a,n,i,s,o){return e.withDirectives((e.openBlock(),e.createElementBlock("view",{ref:"ani",animation:s.animationData,class:e.normalizeClass(n.customClass),style:e.normalizeStyle(o.transformStyles),onClick:a[0]||(a[0]=(...e)=>o.onClick&&o.onClick(...e))},[e.renderSlot(t.$slots,"default")],14,["animation"])),[[e.vShow,s.isShow]])}]]),Ke={name:"uniPopup",components:{},emits:["change","maskClick"],props:{animation:{type:Boolean,default:!0},type:{type:String,default:"center"},isMaskClick:{type:Boolean,default:null},maskClick:{type:Boolean,default:null},backgroundColor:{type:String,default:"none"},safeArea:{type:Boolean,default:!0},maskBackgroundColor:{type:String,default:"rgba(0, 0, 0, 0.4)"},borderRadius:{type:String}},watch:{type:{handler:function(e){this.config[e]&&this[this.config[e]](!0)},immediate:!0},isDesktop:{handler:function(e){this.config[e]&&this[this.config[this.type]](!0)},immediate:!0},maskClick:{handler:function(e){this.mkclick=e},immediate:!0},isMaskClick:{handler:function(e){this.mkclick=e},immediate:!0},showPopup(e){}},data(){return{duration:300,ani:[],showPopup:!1,showTrans:!1,popupWidth:0,popupHeight:0,config:{top:"top",bottom:"bottom",center:"center",left:"left",right:"right",message:"top",dialog:"center",share:"bottom"},maskClass:{position:"fixed",bottom:0,top:0,left:0,right:0,backgroundColor:"rgba(0, 0, 0, 0.4)"},transClass:{backgroundColor:"transparent",borderRadius:this.borderRadius||"0",position:"fixed",left:0,right:0},maskShow:!0,mkclick:!0,popupstyle:"top"}},computed:{getStyles(){let e={backgroundColor:this.bg};return this.borderRadius,e=Object.assign(e,{borderRadius:this.borderRadius}),e},isDesktop(){return this.popupWidth>=500&&this.popupHeight>=500},bg(){return""===this.backgroundColor||"none"===this.backgroundColor?"transparent":this.backgroundColor}},mounted(){(()=>{const{windowWidth:e,windowHeight:t,windowTop:a,safeArea:n,screenHeight:i,safeAreaInsets:s}=uni.getSystemInfoSync();this.popupWidth=e,this.popupHeight=t+(a||0),n&&this.safeArea?this.safeAreaInsets=s.bottom:this.safeAreaInsets=0})()},unmounted(){this.setH5Visible()},activated(){this.setH5Visible(!this.showPopup)},deactivated(){this.setH5Visible(!0)},created(){null===this.isMaskClick&&null===this.maskClick?this.mkclick=!0:this.mkclick=null!==this.isMaskClick?this.isMaskClick:this.maskClick,this.animation?this.duration=300:this.duration=0,this.messageChild=null,this.clearPropagation=!1,this.maskClass.backgroundColor=this.maskBackgroundColor},methods:{setH5Visible(e=!0){},closeMask(){this.maskShow=!1},disableMask(){this.mkclick=!1},clear(e){e.stopPropagation(),this.clearPropagation=!0},open(e){if(this.showPopup)return;e&&-1!==["top","center","bottom","left","right","message","dialog","share"].indexOf(e)||(e=this.type),this.config[e]?(this[this.config[e]](),this.$emit("change",{show:!0,type:e})):t("error","at uni_modules/uni-popup/components/uni-popup/uni-popup.vue:298","缺少类型:",e)},close(e){this.showTrans=!1,this.$emit("change",{show:!1,type:this.type}),clearTimeout(this.timer),this.timer=setTimeout((()=>{this.showPopup=!1}),300)},touchstart(){this.clearPropagation=!1},onTap(){this.clearPropagation?this.clearPropagation=!1:(this.$emit("maskClick"),this.mkclick&&this.close())},top(e){this.popupstyle=this.isDesktop?"fixforpc-top":"top",this.ani=["slide-top"],this.transClass={position:"fixed",left:0,right:0,backgroundColor:this.bg,borderRadius:this.borderRadius||"0"},e||(this.showPopup=!0,this.showTrans=!0,this.$nextTick((()=>{this.messageChild&&"message"===this.type&&this.messageChild.timerClose()})))},bottom(e){this.popupstyle="bottom",this.ani=["slide-bottom"],this.transClass={position:"fixed",left:0,right:0,bottom:0,paddingBottom:this.safeAreaInsets+"px",backgroundColor:this.bg,borderRadius:this.borderRadius||"0"},e||(this.showPopup=!0,this.showTrans=!0)},center(e){this.popupstyle="center",this.ani=["zoom-out","fade"],this.transClass={position:"fixed",display:"flex",flexDirection:"column",bottom:0,left:0,right:0,top:0,justifyContent:"center",alignItems:"center",borderRadius:this.borderRadius||"0"},e||(this.showPopup=!0,this.showTrans=!0)},left(e){this.popupstyle="left",this.ani=["slide-left"],this.transClass={position:"fixed",left:0,bottom:0,top:0,backgroundColor:this.bg,borderRadius:this.borderRadius||"0",display:"flex",flexDirection:"column"},e||(this.showPopup=!0,this.showTrans=!0)},right(e){this.popupstyle="right",this.ani=["slide-right"],this.transClass={position:"fixed",bottom:0,right:0,top:0,backgroundColor:this.bg,borderRadius:this.borderRadius||"0",display:"flex",flexDirection:"column"},e||(this.showPopup=!0,this.showTrans=!0)}}};const Ge=q(Ke,[["render",function(t,n,i,s,o,r){const l=a(e.resolveDynamicComponent("uni-transition"),Ye);return o.showPopup?(e.openBlock(),e.createElementBlock("view",{key:0,class:e.normalizeClass(["uni-popup",[o.popupstyle,r.isDesktop?"fixforpc-z-index":""]])},[e.createElementVNode("view",{onTouchstart:n[1]||(n[1]=(...e)=>r.touchstart&&r.touchstart(...e))},[o.maskShow?(e.openBlock(),e.createBlock(l,{key:"1",name:"mask","mode-class":"fade",styles:o.maskClass,duration:o.duration,show:o.showTrans,onClick:r.onTap},null,8,["styles","duration","show","onClick"])):e.createCommentVNode("",!0),e.createVNode(l,{key:"2","mode-class":o.ani,name:"content",styles:o.transClass,duration:o.duration,show:o.showTrans,onClick:r.onTap},{default:e.withCtx((()=>[e.createElementVNode("view",{class:e.normalizeClass(["uni-popup__wrapper",[o.popupstyle]]),style:e.normalizeStyle(r.getStyles),onClick:n[0]||(n[0]=(...e)=>r.clear&&r.clear(...e))},[e.renderSlot(t.$slots,"default",{},void 0,!0)],6)])),_:3},8,["mode-class","styles","duration","show","onClick"])],32)],2)):e.createCommentVNode("",!0)}],["__scopeId","data-v-9c09fb6f"]]),Qe={__name:"handle",setup(t){const n=H(),{proxy:i}=e.getCurrentInstance(),s=e.ref(null),r=e.ref(""),l=e.ref(null),c=e=>{l.value=e,s.value.open(),r.value=2==e?"同意":""},u=()=>{s.value.close()},h=e.ref(null),m=e.ref(""),p=e=>{var t;(t={taskId:e},d({url:"/process/extActProcessNode/getProcessNodeInfo",method:"get",data:t})).then((e=>{e.success&&(m.value=e.result.dataId,h.value=e.result.formUrlMobile)}))},f=()=>{uni.navigateBack()},g=e.ref(!1);let y=null;const v=()=>{let e={};if(1==l.value){if(null==b.value)return i.$toast("请选择驳回节点");e.processModel=3,e.rejectModelNode=k.value[b.value].TASK_DEF_KEY_,w(e)}else g.value?Ce("/pages/userlist/index",(()=>{u(),uni.navigateTo({url:`/pages/userlist/index?id=${N.value.id}&isradio=1&nextnode=${JSON.stringify(y)}&reason=${r.value}`})})):(e.processModel=1,w(e))},w=e=>{_({taskId:N.value.id,reason:r.value,...e}).then((e=>{e.success&&(i.$toast(e.message),setTimeout((()=>{uni.navigateBack()}),2e3))}))},k=e.ref([]),b=e.ref(null),E=e=>{b.value=e.detail.value},S=e=>{var t;(t={taskId:N.value.id},d({url:"/act/task/getProcessTaskTransInfo",method:"get",data:t})).then((e=>{e.success&&(k.value=e.result.histListNode,y=e.result.transitionList)}))},x=e=>{var t;(t={procInstId:e},d({url:"/process/extActProcessNode/getHisProcessNodeInfo",method:"get",data:t})).then((e=>{e.success&&(m.value=e.result.dataId,h.value=e.result.formUrlMobile)}))},N=e.ref(null);let V=null;return o((e=>{if(N.value=JSON.parse(e.info),V=e.type,1==V||2==V)return x(N.value.processInstanceId);p(N.value.id),S()})),(t,i)=>{const o=a(e.resolveDynamicComponent("uni-icons"),Y),d=a(e.resolveDynamicComponent("uni-popup"),Ge);return e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass(["content",{gray:1==e.unref(n).isgray}])},[e.createVNode(xe,null,{default:e.withCtx((()=>[e.createElementVNode("view",{class:"f-row aic box"},[e.createElementVNode("view",{class:"back",onClick:f},[e.createVNode(o,{type:"left",size:"20",color:"#fff"})]),e.createElementVNode("view",{class:"avatar"},[e.createElementVNode("image",{src:e.unref(Re)(e.unref(n).userinfo.avatar),mode:""},null,8,["src"])]),e.createElementVNode("view",{class:"name"},e.toDisplayString(N.value.processApplyUserName)+"的"+e.toDisplayString(N.value.processDefinitionName),1),0==e.unref(V)?(e.openBlock(),e.createElementBlock("view",{key:0,class:"status"}," 待审批 ")):e.createCommentVNode("",!0),1==e.unref(V)?(e.openBlock(),e.createElementBlock("view",{key:1,class:"status",style:{"background-color":"#7AC756"}}," 已处理 ")):e.createCommentVNode("",!0)])])),_:1}),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(h.value),{dataId:m.value},null,8,["dataId"])),0==e.unref(V)?(e.openBlock(),e.createElementBlock("view",{key:0,class:"btn f-row aic jcb"},[e.createElementVNode("view",{class:"refuse",onClick:i[0]||(i[0]=e=>c(1))}," 拒绝 "),e.createElementVNode("view",{class:"agree",onClick:i[1]||(i[1]=e=>c(2))}," 同意 ")])):e.createCommentVNode("",!0),e.createVNode(d,{ref_key:"popup",ref:s,type:"center"},{default:e.withCtx((()=>[e.createElementVNode("view",{class:"popup"},[e.createElementVNode("view",{class:"title"}," 审批意见 "),e.createElementVNode("view",{class:"f-col aic"},[e.createElementVNode("view",{class:"input f-col"},[e.withDirectives(e.createElementVNode("textarea",{"onUpdate:modelValue":i[2]||(i[2]=e=>r.value=e),name:"",id:"",maxlength:"200",placeholder:"请输入"},null,512),[[e.vModelText,r.value]]),e.createElementVNode("view",{class:""},e.toDisplayString(r.value.length)+"/200 ",1)])]),2==l.value?(e.openBlock(),e.createElementBlock("view",{key:0,class:"agree_operate f-row aic",onClick:i[3]||(i[3]=e=>g.value=!g.value)},[g.value?(e.openBlock(),e.createElementBlock("image",{key:0,src:"/static/login/checked.png",mode:""})):(e.openBlock(),e.createElementBlock("image",{key:1,src:"/static/login/nocheck.png",mode:""})),e.createElementVNode("view",{class:""}," 指定下一步操作人 ")])):(e.openBlock(),e.createElementBlock("view",{key:1,class:""},[e.createElementVNode("picker",{value:b.value,range:k.value,"range-key":"NAME_",onChange:E},[e.createElementVNode("view",{class:"node"},e.toDisplayString(null!=b.value?k.value[b.value].NAME_:"请选择驳回节点"),1)],40,["value","range"])])),e.createElementVNode("view",{class:"popbtn f-row aic"},[e.createElementVNode("view",{class:"cancel",onClick:u}," 取消 "),e.createElementVNode("view",{class:"confirm",onClick:v}," 确定 ")])])])),_:1},512)],2)}}},Ze=q(Qe,[["__scopeId","data-v-12da9556"]]),Xe=q({__name:"message_list",setup(t){const a=H();return(t,n)=>(e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass({gray:1==e.unref(a).isgray})},[e.createElementVNode("view",{class:"list"},[e.createElementVNode("view",{class:"item f-row aic"},[e.createElementVNode("view",{class:"f-row aic"},[e.createElementVNode("image",{src:"/static/system.png",mode:""})]),e.createElementVNode("view",{class:"name_info"},[e.createElementVNode("view",{class:"name_time f-row aic jcb"},[e.createElementVNode("view",{class:"name"}," 系统通知 "),e.createElementVNode("view",{class:"time"}," 1分钟前 ")]),e.createElementVNode("view",{class:"info"}," 关于年假通知关于年假通知关于年假通知关于年假通知关于年假通知关于年假通知关于年假通知 ")])]),(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(5,((t,a)=>e.createElementVNode("view",{class:"item f-row aic",key:a,onClick:n[0]||(n[0]=e=>{var t;Ce(t="/pages/talk/conversation",(()=>{uni.navigateTo({url:t})}))})},[e.createElementVNode("view",{class:"f-row aic"},[e.createElementVNode("image",{src:"",mode:""})]),e.createElementVNode("view",{class:"name_info"},[e.createElementVNode("view",{class:"name_time f-row aic jcb"},[e.createElementVNode("view",{class:"name"}," 系统通知 "),e.createElementVNode("view",{class:"time"}," 1分钟前 ")]),e.createElementVNode("view",{class:"info"}," 关于年假通知 ")])]))),64))])],2))}},[["__scopeId","data-v-f59fee84"]]),et=q({__name:"conversation",setup(t){const a=H();return(t,n)=>(e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass(["content",{gray:1==e.unref(a).isgray}])},[e.createElementVNode("view",{class:"list"},[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(14,((t,a)=>e.createElementVNode("view",{class:"item",key:a},[e.withDirectives(e.createElementVNode("view",{class:"left f-row aic"},[e.createElementVNode("view",{class:"avatar f-row aic"},[e.createElementVNode("image",{src:"/static/system.png",mode:""})]),e.createElementVNode("view",{class:"content"}," 你今天在干嘛呢?为什么这么久不回我信息,真的生气了 ")],512),[[e.vShow,a%2==0]]),e.withDirectives(e.createElementVNode("view",{class:"right f-row aic"},[e.createElementVNode("view",{class:"content"}," 请问如何退款? "),e.createElementVNode("view",{class:"avatar f-row aic"},[e.createElementVNode("image",{src:"",mode:""})])],512),[[e.vShow,a%2!=0]])]))),64))]),e.createElementVNode("view",{class:"input_box f-row aic jce"},[e.createElementVNode("input",{type:"text",placeholder:"请输入内容......","placeholder-style":"font-size: 28rpx;color: #999999;"}),e.createElementVNode("view",{class:"send"}," 发送 ")])],2))}},[["__scopeId","data-v-00b966b0"]]),tt=q({__name:"system",setup(t){const a=H();return(t,n)=>(e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass(["content",{gray:1==e.unref(a).isgray}])},[e.createElementVNode("view",{class:"list"},[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(3,((t,a)=>e.createElementVNode("view",{class:"item",key:a},[e.createElementVNode("view",{class:"left f-row aic"},[e.createElementVNode("view",{class:"avatar f-row aic"},[e.createElementVNode("image",{src:"/static/system.png",mode:""})]),e.createElementVNode("view",{class:"content"}," 你今天在干嘛呢?为什么这么久不回我信息,真的生气了 ")])]))),64))])],2))}},[["__scopeId","data-v-2f0571e9"]]),at=q({__name:"index",setup(n){e.useCssVars((e=>({e9493420:e.cusnavbarheight})));const i=H(),s=e.ref(!0),c=e.ref(""),d=e.ref([]);let u=1,h=!1;const m=(e,t,a,n)=>(e.map((e=>{e._title=e[t],e._time=e[a],e._depart=e[n]})),e),p=()=>{if(c.value.trim())return"*"+c.value+"*"},k=()=>{u=1,h=!1,d.value=[],S()};e.watch(c,((e,t)=>{e.trim()||S()}));const b=()=>{uni.navigateBack()},_=e.ref(null);let E=null;o((e=>{_.value=e.id,E=e.zhiduid,S()}));const S=()=>{0==_.value?(h=!0,f({pageNo:u,pageSize:15,fwbt:p()}).then((e=>{e.success&&(d.value=[...d.value,...m(e.result.records,"fwbt","fwtime",null)]),h=!1})).catch((e=>{t("log","at pages/document/index.vue:89","err",e)}))):1==_.value?(h=!0,g({pageNo:u,pageSize:15,neirong:p()}).then((e=>{e.success&&(d.value=[...d.value,...m(e.result.records,"neirong","fbdw","createTime")]),h=!1})).catch((e=>{t("log","at pages/document/index.vue:142","err",e)}))):2==_.value?(h=!0,(0==E?w:v)({pageNo:u,pageSize:15,zdmc:p()}).then((e=>{if(e.success){let t=0==E?"zbbm_dictText":"sbbm";d.value=[...d.value,...m(e.result.records,"zdmc",t,null)]}h=!1})).catch((e=>{t("log","at pages/document/index.vue:108","err",e)}))):3==_.value&&(h=!0,y({pageNo:u,pageSize:15,flfgmc:p()}).then((e=>{e.success&&(d.value=[...d.value,...m(e.result.records,"flfgmc","ssbm",null)]),h=!1})).catch((e=>{t("log","at pages/document/index.vue:125","err",e)})))};return l((()=>{u=1,h=!1,d.value=[],S(),uni.stopPullDownRefresh()})),r((()=>{h||(u++,S())})),(t,n)=>{const o=a(e.resolveDynamicComponent("uni-icons"),Y);return e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass(["content",{gray:1==e.unref(i).isgray}])},[e.createVNode(xe,null,{default:e.withCtx((()=>[e.createElementVNode("view",{class:"nav_box f-row aic jcb"},[e.createElementVNode("view",{class:"back f-row aic",onClick:b},[e.createVNode(o,{type:"left",size:"20",color:"#fff"})]),e.createElementVNode("view",{class:"search f-row aic"},[e.withDirectives(e.createElementVNode("input",{type:"text","onUpdate:modelValue":n[0]||(n[0]=e=>c.value=e),onConfirm:k,onBlur:n[1]||(n[1]=e=>s.value=!c.value),onFocus:n[2]||(n[2]=e=>s.value=!1)},null,544),[[e.vModelText,c.value]]),s.value?(e.openBlock(),e.createElementBlock("view",{key:0,class:"f-row aic"},[e.createElementVNode("image",{src:"/static/search.png",mode:""}),e.createElementVNode("text",null,"搜索")])):e.createCommentVNode("",!0)])])])),_:1}),e.createElementVNode("view",{class:"list"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value,((t,a)=>(e.openBlock(),e.createElementBlock("view",{class:"item",key:a,onClick:e=>((e,t)=>{if(3==_.value)return Me(t.mingcheng);Ce(e,(()=>{uni.navigateTo({url:e})}))})(`/pages/document/detail?data=${JSON.stringify(t)}&id=${_.value}`,t)},[e.createElementVNode("view",{class:"title"},e.toDisplayString(t._title),1),e.createElementVNode("view",{class:"time_box f-row aic"},[e.createElementVNode("view",{class:"time"},e.toDisplayString(t._time),1),t._depart?(e.openBlock(),e.createElementBlock("view",{key:0,class:"look f-row aic"},e.toDisplayString(t._depart),1)):e.createCommentVNode("",!0)])],8,["onClick"])))),128))])],2)}}},[["__scopeId","data-v-18757efe"]]),nt=q({__name:"detail",setup(t){const a=H(),n=e.ref({});return o((e=>{n.value=JSON.parse(e.data),0==e.id?n.value.pdf=n.value.wjbt:2==e.id?n.value.jdwj?n.value.pdf=n.value.jdwj+","+n.value.sszd:n.value.pdf=n.value.sszd:3==e.id&&(n.value.pdf=n.value.mingcheng)})),(t,i)=>{var s,o;return e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass(["content",{gray:1==e.unref(a).isgray}])},[e.createElementVNode("view",{class:"title_box"},[e.createElementVNode("view",{class:"title"},e.toDisplayString(n.value._title),1),e.createElementVNode("view",{class:"time"},e.toDisplayString(n.value._time),1)]),e.createElementVNode("view",{class:"document f-row"},[e.createElementVNode("text",{class:""}," 附件: "),e.createElementVNode("view",{class:"f-col"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(null==(o=null==(s=n.value)?void 0:s.pdf)?void 0:o.split(","),((t,a)=>(e.openBlock(),e.createElementBlock("view",{class:"",style:{padding:"5rpx 0"},onClick:a=>e.unref(Me)(t)},e.toDisplayString(t),9,["onClick"])))),256))])])],2)}}},[["__scopeId","data-v-b79b801f"]]),it=q({__name:"index",setup(t){const n=H(),i=e.ref(!0),s=e.ref("");o((()=>{}));const r=()=>{uni.navigateBack()};return(t,o)=>{const l=a(e.resolveDynamicComponent("uni-icons"),Y);return e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass({gray:1==e.unref(n).isgray})},[e.createVNode(xe,null,{default:e.withCtx((()=>[e.createElementVNode("view",{class:"nav_box f-row aic jcb"},[e.createElementVNode("view",{class:"back f-row aic",onClick:r},[e.createVNode(l,{type:"left",size:"20",color:"#fff"})]),e.createElementVNode("view",{class:"search f-row aic"},[e.withDirectives(e.createElementVNode("input",{type:"text","onUpdate:modelValue":o[0]||(o[0]=e=>s.value=e),onConfirm:o[1]||(o[1]=(...e)=>t.search&&t.search(...e)),onBlur:o[2]||(o[2]=e=>i.value=!s.value),onFocus:o[3]||(o[3]=e=>i.value=!1)},null,544),[[e.vModelText,s.value]]),i.value?(e.openBlock(),e.createElementBlock("view",{key:0,class:"f-row aic"},[e.createElementVNode("image",{src:"/static/search.png",mode:""}),e.createElementVNode("text",null,"搜索")])):e.createCommentVNode("",!0)])])])),_:1}),e.createElementVNode("view",{class:"list_box"},[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(3,((t,a)=>e.createElementVNode("view",{class:"list",key:a,onClick:o[4]||(o[4]=e=>{var t;Ce(t="/pages/meeting/detail?id=1",(()=>{uni.navigateTo({url:t})}))})},[e.createElementVNode("view",{class:"title f-row aic jcb"},[e.createElementVNode("view",{class:""}," 年度部门讨论会议 "),e.createElementVNode("text",null,"1分钟前")]),e.createElementVNode("view",{class:"info"},[e.createElementVNode("view",{class:"f-row aic jcb"},[e.createElementVNode("view",{class:""}," 发起人: "),e.createElementVNode("text",null,"周如意")]),e.createElementVNode("view",{class:"f-row aic jcb"},[e.createElementVNode("view",{class:""}," 会议日期: "),e.createElementVNode("text",null,"周如意")]),e.createElementVNode("view",{class:"f-row aic jcb"},[e.createElementVNode("view",{class:""}," 会议地点: "),e.createElementVNode("text",null,"周如意")]),e.createElementVNode("view",{class:"f-row aic jcb"},[e.createElementVNode("view",{class:""}," 会议内容: "),e.createElementVNode("text",null,"周如意")])]),e.createElementVNode("view",{class:"handled f-row"},[e.createElementVNode("view",{class:"refused"}," 已拒绝 ")])]))),64))])],2)}}},[["__scopeId","data-v-c839cafa"]]),st=q({__name:"detail",setup(a){const n=H();o((()=>{i()}));const i=()=>{var e;(e={mainid:1},d({url:"/zhgl_hygl/zhglHyglHyyc/listbymainid",method:"get",data:e})).then((e=>{e.success})).catch((e=>{t("log","at pages/meeting/detail.vue:94",e)}))};return(t,a)=>(e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass(["content",{gray:1==e.unref(n).isgray}])},[e.createElementVNode("view",{class:"list_box"},[e.createElementVNode("view",{class:"list"},[e.createElementVNode("view",{class:"title f-row aic jcb"},[e.createElementVNode("view",{class:""}," 年度部门讨论会议 "),e.createElementVNode("text",null,"1分钟前")]),e.createElementVNode("view",{class:"info"},[e.createElementVNode("view",{class:"f-row aic jcb"},[e.createElementVNode("view",{class:""}," 会议状态: "),e.createElementVNode("text",null,"待开始/已开始/已结束")]),e.createElementVNode("view",{class:"f-row aic jcb"},[e.createElementVNode("view",{class:""}," 发起人: "),e.createElementVNode("text",null,"周如意")]),e.createElementVNode("view",{class:"f-row aic jcb"},[e.createElementVNode("view",{class:""}," 会议日期: "),e.createElementVNode("text",null,"周如意")]),e.createElementVNode("view",{class:"f-row aic jcb"},[e.createElementVNode("view",{class:""}," 会议地点: "),e.createElementVNode("text",null,"周如意")]),e.createElementVNode("view",{class:"f-row aic jcb"},[e.createElementVNode("view",{class:""}," 会议内容: "),e.createElementVNode("text",null,"周如意")]),e.createElementVNode("view",{class:""},[e.createElementVNode("view",{class:""}," 参与人员: "),e.createElementVNode("view",{class:"person f-row aic"},[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(7,((t,a)=>e.createElementVNode("view",{class:"item f-col aic",key:a},[e.createElementVNode("image",{src:"",mode:""}),e.createElementVNode("view",{class:"name"}," 周如意 ")]))),64))])])])])]),e.createElementVNode("view",{class:"btn f-row aic jcb"},[e.createElementVNode("view",{class:"refuse"}," 拒绝 "),e.createElementVNode("view",{class:"agree",onClick:a[0]||(a[0]=(...e)=>t.openpop&&t.openpop(...e))}," 同意 ")])],2))}},[["__scopeId","data-v-7441efc4"]]),ot={pages:[{path:"pages/login/login",style:{navigationStyle:"custom"}},{path:"pages/tab/index",style:{navigationStyle:"custom",enablePullDownRefresh:!0}},{path:"pages/task/todotask",style:{navigationStyle:"custom",enablePullDownRefresh:!0}},{path:"pages/tab/office",style:{navigationStyle:"custom"}},{path:"pages/tab/my",style:{navigationStyle:"custom"}},{path:"pages/task/index",style:{enablePullDownRefresh:!0,"app-plus":{titleNView:{titleText:"我的任务",titleColor:"#fff"}}}},{path:"pages/task/handle",style:{navigationStyle:"custom"}},{path:"pages/talk/message_list",style:{navigationBarTitleText:"消息",enablePullDownRefresh:!0,navigationBarTextStyle:"white"}},{path:"pages/talk/conversation",style:{navigationBarTitleText:"昵称",enablePullDownRefresh:!0,navigationBarTextStyle:"white"}},{path:"pages/talk/system",style:{navigationBarTitleText:"系统通知",enablePullDownRefresh:!0,navigationBarTextStyle:"white"}},{path:"pages/document/index",style:{navigationStyle:"custom",enablePullDownRefresh:!0}},{path:"pages/document/detail",style:{navigationBarTitleText:"详情",navigationBarTextStyle:"white"}},{path:"pages/meeting/index",style:{navigationStyle:"custom"}},{path:"pages/meeting/detail",style:{navigationBarTitleText:"详情",enablePullDownRefresh:!1,navigationBarTextStyle:"white"}},{path:"pages/leave/application",style:{navigationBarTitleText:"请假申请",enablePullDownRefresh:!1,navigationBarTextStyle:"white"}},{path:"pages/checkin/index",style:{navigationStyle:"custom"}},{path:"pages/useredit/useredit",style:{navigationBarTitleText:"资料编辑",navigationBarTextStyle:"white"}},{path:"pages/useredit/address",style:{navigationBarTitleText:"地址",enablePullDownRefresh:!1,navigationBarTextStyle:"white"}},{path:"pages/useredit/add_address",style:{navigationBarTitleText:"添加地址",enablePullDownRefresh:!1,navigationBarTextStyle:"white"}},{path:"pages/useredit/addressbook",style:{navigationBarTitleText:"通讯录",enablePullDownRefresh:!1,navigationBarTextStyle:"white"}},{path:"pages/safe/manage",style:{navigationStyle:"custom"}},{path:"pages/product/index",style:{navigationBarTitleText:"生产数据",enablePullDownRefresh:!1,navigationBarTextStyle:"white"}},{path:"pages/userlist/index",style:{navigationBarTitleText:"",navigationBarTextStyle:"white"}},{path:"pages/safe/detail",style:{navigationStyle:"custom"}},{path:"pages/zhiban/index",style:{navigationBarTitleText:"值班信息",navigationBarTextStyle:"white"}},{path:"pages/task/self",style:{navigationBarTitleText:"本人发起",navigationBarTextStyle:"white"}}],tabBar:{color:"#333333",selectedColor:"#01508B",borderStyle:"black",backgroundColor:"#FFFFFF",list:[{text:"首页",pagePath:"pages/tab/index",iconPath:"static/tab/index1.png",selectedIconPath:"static/tab/index2.png"},{text:"任务",pagePath:"pages/task/todotask",iconPath:"static/tab/office1.png",selectedIconPath:"static/tab/office2.png"},{text:"办公",pagePath:"pages/tab/office",iconPath:"static/tab/product1.png",selectedIconPath:"static/tab/product2.png"},{text:"我的",pagePath:"pages/tab/my",iconPath:"static/tab/user1.png",selectedIconPath:"static/tab/user2.png"}]},globalStyle:{"app-plus":{titleNView:{backgroundImage:"linear-gradient(to left , #256FBC, #044D87)"}}},uniIdRouter:{}};function rt(e,t,a){return e(a={path:t,exports:{},require:function(e,t){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==t&&a.path)}},a.exports),a.exports}var lt=rt((function(e,t){var a;e.exports=(a=a||function(e,t){var a=Object.create||function(){function e(){}return function(t){var a;return e.prototype=t,a=new e,e.prototype=null,a}}(),n={},i=n.lib={},s=i.Base={extend:function(e){var t=a(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}},o=i.WordArray=s.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=null!=t?t:4*e.length},toString:function(e){return(e||l).stringify(this)},concat:function(e){var t=this.words,a=e.words,n=this.sigBytes,i=e.sigBytes;if(this.clamp(),n%4)for(var s=0;s>>2]>>>24-s%4*8&255;t[n+s>>>2]|=o<<24-(n+s)%4*8}else for(s=0;s>>2]=a[s>>>2];return this.sigBytes+=i,this},clamp:function(){var t=this.words,a=this.sigBytes;t[a>>>2]&=4294967295<<32-a%4*8,t.length=e.ceil(a/4)},clone:function(){var e=s.clone.call(this);return e.words=this.words.slice(0),e},random:function(t){for(var a,n=[],i=function(t){var a=987654321,n=4294967295;return function(){var i=((a=36969*(65535&a)+(a>>16)&n)<<16)+(t=18e3*(65535&t)+(t>>16)&n)&n;return i/=4294967296,(i+=.5)*(e.random()>.5?1:-1)}},s=0;s>>2]>>>24-i%4*8&255;n.push((s>>>4).toString(16)),n.push((15&s).toString(16))}return n.join("")},parse:function(e){for(var t=e.length,a=[],n=0;n>>3]|=parseInt(e.substr(n,2),16)<<24-n%8*4;return new o.init(a,t/2)}},c=r.Latin1={stringify:function(e){for(var t=e.words,a=e.sigBytes,n=[],i=0;i>>2]>>>24-i%4*8&255;n.push(String.fromCharCode(s))}return n.join("")},parse:function(e){for(var t=e.length,a=[],n=0;n>>2]|=(255&e.charCodeAt(n))<<24-n%4*8;return new o.init(a,t)}},d=r.Utf8={stringify:function(e){try{return decodeURIComponent(escape(c.stringify(e)))}catch(t){throw new Error("Malformed UTF-8 data")}},parse:function(e){return c.parse(unescape(encodeURIComponent(e)))}},u=i.BufferedBlockAlgorithm=s.extend({reset:function(){this._data=new o.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=d.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var a=this._data,n=a.words,i=a.sigBytes,s=this.blockSize,r=i/(4*s),l=(r=t?e.ceil(r):e.max((0|r)-this._minBufferSize,0))*s,c=e.min(4*l,i);if(l){for(var d=0;d>>24)|4278255360&(i<<24|i>>>8)}var s=this._hash.words,o=e[t+0],l=e[t+1],m=e[t+2],p=e[t+3],f=e[t+4],g=e[t+5],y=e[t+6],v=e[t+7],w=e[t+8],k=e[t+9],b=e[t+10],_=e[t+11],E=e[t+12],S=e[t+13],x=e[t+14],N=e[t+15],V=s[0],C=s[1],T=s[2],D=s[3];V=c(V,C,T,D,o,7,r[0]),D=c(D,V,C,T,l,12,r[1]),T=c(T,D,V,C,m,17,r[2]),C=c(C,T,D,V,p,22,r[3]),V=c(V,C,T,D,f,7,r[4]),D=c(D,V,C,T,g,12,r[5]),T=c(T,D,V,C,y,17,r[6]),C=c(C,T,D,V,v,22,r[7]),V=c(V,C,T,D,w,7,r[8]),D=c(D,V,C,T,k,12,r[9]),T=c(T,D,V,C,b,17,r[10]),C=c(C,T,D,V,_,22,r[11]),V=c(V,C,T,D,E,7,r[12]),D=c(D,V,C,T,S,12,r[13]),T=c(T,D,V,C,x,17,r[14]),V=d(V,C=c(C,T,D,V,N,22,r[15]),T,D,l,5,r[16]),D=d(D,V,C,T,y,9,r[17]),T=d(T,D,V,C,_,14,r[18]),C=d(C,T,D,V,o,20,r[19]),V=d(V,C,T,D,g,5,r[20]),D=d(D,V,C,T,b,9,r[21]),T=d(T,D,V,C,N,14,r[22]),C=d(C,T,D,V,f,20,r[23]),V=d(V,C,T,D,k,5,r[24]),D=d(D,V,C,T,x,9,r[25]),T=d(T,D,V,C,p,14,r[26]),C=d(C,T,D,V,w,20,r[27]),V=d(V,C,T,D,S,5,r[28]),D=d(D,V,C,T,m,9,r[29]),T=d(T,D,V,C,v,14,r[30]),V=u(V,C=d(C,T,D,V,E,20,r[31]),T,D,g,4,r[32]),D=u(D,V,C,T,w,11,r[33]),T=u(T,D,V,C,_,16,r[34]),C=u(C,T,D,V,x,23,r[35]),V=u(V,C,T,D,l,4,r[36]),D=u(D,V,C,T,f,11,r[37]),T=u(T,D,V,C,v,16,r[38]),C=u(C,T,D,V,b,23,r[39]),V=u(V,C,T,D,S,4,r[40]),D=u(D,V,C,T,o,11,r[41]),T=u(T,D,V,C,p,16,r[42]),C=u(C,T,D,V,y,23,r[43]),V=u(V,C,T,D,k,4,r[44]),D=u(D,V,C,T,E,11,r[45]),T=u(T,D,V,C,N,16,r[46]),V=h(V,C=u(C,T,D,V,m,23,r[47]),T,D,o,6,r[48]),D=h(D,V,C,T,v,10,r[49]),T=h(T,D,V,C,x,15,r[50]),C=h(C,T,D,V,g,21,r[51]),V=h(V,C,T,D,E,6,r[52]),D=h(D,V,C,T,p,10,r[53]),T=h(T,D,V,C,b,15,r[54]),C=h(C,T,D,V,l,21,r[55]),V=h(V,C,T,D,w,6,r[56]),D=h(D,V,C,T,N,10,r[57]),T=h(T,D,V,C,y,15,r[58]),C=h(C,T,D,V,S,21,r[59]),V=h(V,C,T,D,f,6,r[60]),D=h(D,V,C,T,_,10,r[61]),T=h(T,D,V,C,m,15,r[62]),C=h(C,T,D,V,k,21,r[63]),s[0]=s[0]+V|0,s[1]=s[1]+C|0,s[2]=s[2]+T|0,s[3]=s[3]+D|0},_doFinalize:function(){var t=this._data,a=t.words,n=8*this._nDataBytes,i=8*t.sigBytes;a[i>>>5]|=128<<24-i%32;var s=e.floor(n/4294967296),o=n;a[15+(i+64>>>9<<4)]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),a[14+(i+64>>>9<<4)]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),t.sigBytes=4*(a.length+1),this._process();for(var r=this._hash,l=r.words,c=0;c<4;c++){var d=l[c];l[c]=16711935&(d<<8|d>>>24)|4278255360&(d<<24|d>>>8)}return r},clone:function(){var e=s.clone.call(this);return e._hash=this._hash.clone(),e}});function c(e,t,a,n,i,s,o){var r=e+(t&a|~t&n)+i+o;return(r<>>32-s)+t}function d(e,t,a,n,i,s,o){var r=e+(t&n|a&~n)+i+o;return(r<>>32-s)+t}function u(e,t,a,n,i,s,o){var r=e+(t^a^n)+i+o;return(r<>>32-s)+t}function h(e,t,a,n,i,s,o){var r=e+(a^(t|~n))+i+o;return(r<>>32-s)+t}t.MD5=s._createHelper(l),t.HmacMD5=s._createHmacHelper(l)}(Math),a.MD5)})),rt((function(e,t){var a,n,i;e.exports=(n=(a=ct).lib.Base,i=a.enc.Utf8,void(a.algo.HMAC=n.extend({init:function(e,t){e=this._hasher=new e.init,"string"==typeof t&&(t=i.parse(t));var a=e.blockSize,n=4*a;t.sigBytes>n&&(t=e.finalize(t)),t.clamp();for(var s=this._oKey=t.clone(),o=this._iKey=t.clone(),r=s.words,l=o.words,c=0;c>>2]>>>24-s%4*8&255)<<16|(t[s+1>>>2]>>>24-(s+1)%4*8&255)<<8|t[s+2>>>2]>>>24-(s+2)%4*8&255,r=0;r<4&&s+.75*r>>6*(3-r)&63));var l=n.charAt(64);if(l)for(;i.length%4;)i.push(l);return i.join("")},parse:function(e){var t=e.length,a=this._map,n=this._reverseMap;if(!n){n=this._reverseMap=[];for(var s=0;s>>6-o%4*2;n[s>>>2]|=(r|l)<<24-s%4*8,s++}return i.create(n,s)}(e,t,n)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="},a.enc.Base64)}));const mt="FUNCTION",pt="pending",ft="rejected";function gt(e){return Object.prototype.toString.call(e).slice(8,-1).toLowerCase()}function yt(e){return"object"===gt(e)}function vt(e){return"function"==typeof e}function wt(e){return function(){try{return e.apply(e,arguments)}catch(t){console.error(t)}}}const kt="REJECTED",bt="NOT_PENDING";class _t{constructor({createPromise:e,retryRule:t=kt}={}){this.createPromise=e,this.status=null,this.promise=null,this.retryRule=t}get needRetry(){if(!this.status)return!0;switch(this.retryRule){case kt:return this.status===ft;case bt:return this.status!==pt}}exec(){return this.needRetry?(this.status=pt,this.promise=this.createPromise().then((e=>(this.status="fulfilled",Promise.resolve(e))),(e=>(this.status=ft,Promise.reject(e)))),this.promise):this.promise}}function Et(e){return e&&"string"==typeof e?JSON.parse(e):e}const St=Et([]);Et("");const xt=Et("[]")||[];let Nt="";try{Nt="__UNI__F0AFD30"}catch(pa){}let Vt={};function Ct(e,t={}){var a,n;return a=Vt,n=e,Object.prototype.hasOwnProperty.call(a,n)||(Vt[e]=t),Vt[e]}Vt=uni._globalUniCloudObj?uni._globalUniCloudObj:uni._globalUniCloudObj={};const Tt=["invoke","success","fail","complete"],Dt=Ct("_globalUniCloudInterceptor");function Bt(e,t){Dt[e]||(Dt[e]={}),yt(t)&&Object.keys(t).forEach((a=>{Tt.indexOf(a)>-1&&function(e,t,a){let n=Dt[e][t];n||(n=Dt[e][t]=[]),-1===n.indexOf(a)&&vt(a)&&n.push(a)}(e,a,t[a])}))}function It(e,t){Dt[e]||(Dt[e]={}),yt(t)?Object.keys(t).forEach((a=>{Tt.indexOf(a)>-1&&function(e,t,a){const n=Dt[e][t];if(!n)return;const i=n.indexOf(a);i>-1&&n.splice(i,1)}(e,a,t[a])})):delete Dt[e]}function Pt(e,t){return e&&0!==e.length?e.reduce(((e,a)=>e.then((()=>a(t)))),Promise.resolve()):Promise.resolve()}function At(e,t){return Dt[e]&&Dt[e][t]||[]}function Mt(e){Bt("callObject",e)}const Rt=Ct("_globalUniCloudListener"),Lt="response",Ot="needLogin",Ft="refreshToken",$t="clientdb",jt="cloudfunction",Ut="cloudobject";function zt(e){return Rt[e]||(Rt[e]=[]),Rt[e]}function Ht(e,t){const a=zt(e);a.includes(t)||a.push(t)}function qt(e,t){const a=zt(e),n=a.indexOf(t);-1!==n&&a.splice(n,1)}function Jt(e,t){const a=zt(e);for(let n=0;n{Yt&&e(),function t(){if("function"==typeof getCurrentPages){const t=getCurrentPages();t&&t[0]&&(Yt=!0,e())}Yt||setTimeout((()=>{t()}),30)}()})),Wt)}function Gt(e){const t={};for(const a in e){const n=e[a];vt(n)&&(t[a]=wt(n))}return t}class Qt extends Error{constructor(e){super(e.message),this.errMsg=e.message||e.errMsg||"unknown system error",this.code=this.errCode=e.code||e.errCode||"SYSTEM_ERROR",this.errSubject=this.subject=e.subject||e.errSubject,this.cause=e.cause,this.requestId=e.requestId}toJson(e=0){if(!(e>=10))return e++,{errCode:this.errCode,errMsg:this.errMsg,errSubject:this.errSubject,cause:this.cause&&this.cause.toJson?this.cause.toJson(e):this.cause}}}var Zt={request:e=>uni.request(e),uploadFile:e=>uni.uploadFile(e),setStorageSync:(e,t)=>uni.setStorageSync(e,t),getStorageSync:e=>uni.getStorageSync(e),removeStorageSync:e=>uni.removeStorageSync(e),clearStorageSync:()=>uni.clearStorageSync()};function Xt(e){return e&&Xt(e.__v_raw)||e}function ea(){return{token:Zt.getStorageSync("uni_id_token")||Zt.getStorageSync("uniIdToken"),tokenExpired:Zt.getStorageSync("uni_id_token_expired")}}function ta({token:e,tokenExpired:t}={}){e&&Zt.setStorageSync("uni_id_token",e),t&&Zt.setStorageSync("uni_id_token_expired",t)}let aa,na;function ia(){return aa||(aa=uni.getSystemInfoSync()),aa}function sa(){let e,t;try{if(uni.getLaunchOptionsSync){if(uni.getLaunchOptionsSync.toString().indexOf("not yet implemented")>-1)return;const{scene:a,channel:n}=uni.getLaunchOptionsSync();e=n,t=a}}catch(a){}return{channel:e,scene:t}}function oa(){const e=uni.getLocale&&uni.getLocale()||"en";if(na)return{...na,locale:e,LOCALE:e};const t=ia(),{deviceId:a,osName:n,uniPlatform:i,appId:s}=t,o=["pixelRatio","brand","model","system","language","version","platform","host","SDKVersion","swanNativeVersion","app","AppPlatform","fontSizeSetting"];for(let r=0;r{t(Object.assign(e,{complete(e){e||(e={});const t=e.data&&e.data.header&&e.data.header["x-serverless-request-id"]||e.header&&e.header["request-id"];if(!e.statusCode||e.statusCode>=400){const a=e.data&&e.data.error&&e.data.error.code||"SYS_ERR",i=e.data&&e.data.error&&e.data.error.message||e.errMsg||"request:fail";return n(new Qt({code:a,message:i,requestId:t}))}const i=e.data;if(i.error)return n(new Qt({code:i.error.code,message:i.error.message,requestId:t}));i.result=i.data,i.requestId=t,delete i.data,a(i)}}))}))},ca=function(e){return ht.stringify(ut.parse(e))},da=class{constructor(e){["spaceId","clientSecret"].forEach((t=>{if(!Object.prototype.hasOwnProperty.call(e,t))throw new Error(`${t} required`)})),this.config=Object.assign({},{endpoint:0===e.spaceId.indexOf("mp-")?"https://api.next.bspapp.com":"https://api.bspapp.com"},e),this.config.provider="aliyun",this.config.requestUrl=this.config.endpoint+"/client",this.config.envType=this.config.envType||"public",this.config.accessTokenKey="access_token_"+this.config.spaceId,this.adapter=Zt,this._getAccessTokenPromiseHub=new _t({createPromise:()=>this.requestAuth(this.setupRequest({method:"serverless.auth.user.anonymousAuthorize",params:"{}"},"auth")).then((e=>{if(!e.result||!e.result.accessToken)throw new Qt({code:"AUTH_FAILED",message:"获取accessToken失败"});this.setAccessToken(e.result.accessToken)})),retryRule:bt})}get hasAccessToken(){return!!this.accessToken}setAccessToken(e){this.accessToken=e}requestWrapped(e){return la(e,this.adapter.request)}requestAuth(e){return this.requestWrapped(e)}request(e,t){return Promise.resolve().then((()=>this.hasAccessToken?t?this.requestWrapped(e):this.requestWrapped(e).catch((t=>new Promise(((e,a)=>{!t||"GATEWAY_INVALID_TOKEN"!==t.code&&"InvalidParameter.InvalidToken"!==t.code?a(t):e()})).then((()=>this.getAccessToken())).then((()=>{const t=this.rebuildRequest(e);return this.request(t,!0)})))):this.getAccessToken().then((()=>{const t=this.rebuildRequest(e);return this.request(t,!0)}))))}rebuildRequest(e){const t=Object.assign({},e);return t.data.token=this.accessToken,t.header["x-basement-token"]=this.accessToken,t.header["x-serverless-sign"]=ra(t.data,this.config.clientSecret),t}setupRequest(e,t){const a=Object.assign({},e,{spaceId:this.config.spaceId,timestamp:Date.now()}),n={"Content-Type":"application/json"};return"auth"!==t&&(a.token=this.accessToken,n["x-basement-token"]=this.accessToken),n["x-serverless-sign"]=ra(a,this.config.clientSecret),{url:this.config.requestUrl,method:"POST",data:a,dataType:"json",header:n}}getAccessToken(){return this._getAccessTokenPromiseHub.exec()}async authorize(){await this.getAccessToken()}callFunction(e){const t={method:"serverless.function.runtime.invoke",params:JSON.stringify({functionTarget:e.name,functionArgs:e.data||{}})};return this.request(this.setupRequest(t))}getOSSUploadOptionsFromPath(e){const t={method:"serverless.file.resource.generateProximalSign",params:JSON.stringify(e)};return this.request(this.setupRequest(t))}uploadFileToOSS({url:e,formData:t,name:a,filePath:n,fileType:i,onUploadProgress:s}){return new Promise(((o,r)=>{const l=this.adapter.uploadFile({url:e,formData:t,name:a,filePath:n,fileType:i,header:{"X-OSS-server-side-encrpytion":"AES256"},success(e){e&&e.statusCode<400?o(e):r(new Qt({code:"UPLOAD_FAILED",message:"文件上传失败"}))},fail(e){r(new Qt({code:e.code||"UPLOAD_FAILED",message:e.message||e.errMsg||"文件上传失败"}))}});"function"==typeof s&&l&&"function"==typeof l.onProgressUpdate&&l.onProgressUpdate((e=>{s({loaded:e.totalBytesSent,total:e.totalBytesExpectedToSend})}))}))}reportOSSUpload(e){const t={method:"serverless.file.resource.report",params:JSON.stringify(e)};return this.request(this.setupRequest(t))}async uploadFile({filePath:e,cloudPath:t,fileType:a="image",cloudPathAsRealPath:n=!1,onUploadProgress:i,config:s}){if("string"!==gt(t))throw new Qt({code:"INVALID_PARAM",message:"cloudPath必须为字符串类型"});if(!(t=t.trim()))throw new Qt({code:"INVALID_PARAM",message:"cloudPath不可为空"});if(/:\/\//.test(t))throw new Qt({code:"INVALID_PARAM",message:"cloudPath不合法"});const o=s&&s.envType||this.config.envType;if(n&&("/"!==t[0]&&(t="/"+t),t.indexOf("\\")>-1))throw new Qt({code:"INVALID_PARAM",message:"使用cloudPath作为路径时,cloudPath不可包含“\\”"});const r=(await this.getOSSUploadOptionsFromPath({env:o,filename:n?t.split("/").pop():t,fileId:n?t:void 0})).result,l="https://"+r.cdnDomain+"/"+r.ossPath,{securityToken:c,accessKeyId:d,signature:u,host:h,ossPath:m,id:p,policy:f,ossCallbackUrl:g}=r,y={"Cache-Control":"max-age=2592000","Content-Disposition":"attachment",OSSAccessKeyId:d,Signature:u,host:h,id:p,key:m,policy:f,success_action_status:200};if(c&&(y["x-oss-security-token"]=c),g){const e=JSON.stringify({callbackUrl:g,callbackBody:JSON.stringify({fileId:p,spaceId:this.config.spaceId}),callbackBodyType:"application/json"});y.callback=ca(e)}const v={url:"https://"+r.host,formData:y,fileName:"file",name:"file",filePath:e,fileType:a};if(await this.uploadFileToOSS(Object.assign({},v,{onUploadProgress:i})),g)return{success:!0,filePath:e,fileID:l};if((await this.reportOSSUpload({id:p})).success)return{success:!0,filePath:e,fileID:l};throw new Qt({code:"UPLOAD_FAILED",message:"文件上传失败"})}getTempFileURL({fileList:e}={}){return new Promise(((t,a)=>{Array.isArray(e)&&0!==e.length||a(new Qt({code:"INVALID_PARAM",message:"fileList的元素必须是非空的字符串"})),t({fileList:e.map((e=>({fileID:e,tempFileURL:e})))})}))}async getFileInfo({fileList:e}={}){if(!Array.isArray(e)||0===e.length)throw new Qt({code:"INVALID_PARAM",message:"fileList的元素必须是非空的字符串"});const t={method:"serverless.file.resource.info",params:JSON.stringify({id:e.map((e=>e.split("?")[0])).join(",")})};return{fileList:(await this.request(this.setupRequest(t))).result}}},ua={init(e){const t=new da(e),a={signInAnonymously:function(){return t.authorize()},getLoginState:function(){return Promise.resolve(!1)}};return t.auth=function(){return a},t.customAuth=t.auth,t}};const ha="undefined"!=typeof location&&"http:"===location.protocol?"http:":"https:";var ma,pa;(pa=ma||(ma={})).local="local",pa.none="none",pa.session="session";var fa=function(){},ga=rt((function(e,t){var a;e.exports=(a=ct,function(e){var t=a,n=t.lib,i=n.WordArray,s=n.Hasher,o=t.algo,r=[],l=[];!function(){function t(t){for(var a=e.sqrt(t),n=2;n<=a;n++)if(!(t%n))return!1;return!0}function a(e){return 4294967296*(e-(0|e))|0}for(var n=2,i=0;i<64;)t(n)&&(i<8&&(r[i]=a(e.pow(n,.5))),l[i]=a(e.pow(n,1/3)),i++),n++}();var c=[],d=o.SHA256=s.extend({_doReset:function(){this._hash=new i.init(r.slice(0))},_doProcessBlock:function(e,t){for(var a=this._hash.words,n=a[0],i=a[1],s=a[2],o=a[3],r=a[4],d=a[5],u=a[6],h=a[7],m=0;m<64;m++){if(m<16)c[m]=0|e[t+m];else{var p=c[m-15],f=(p<<25|p>>>7)^(p<<14|p>>>18)^p>>>3,g=c[m-2],y=(g<<15|g>>>17)^(g<<13|g>>>19)^g>>>10;c[m]=f+c[m-7]+y+c[m-16]}var v=n&i^n&s^i&s,w=(n<<30|n>>>2)^(n<<19|n>>>13)^(n<<10|n>>>22),k=h+((r<<26|r>>>6)^(r<<21|r>>>11)^(r<<7|r>>>25))+(r&d^~r&u)+l[m]+c[m];h=u,u=d,d=r,r=o+k|0,o=s,s=i,i=n,n=k+(w+v)|0}a[0]=a[0]+n|0,a[1]=a[1]+i|0,a[2]=a[2]+s|0,a[3]=a[3]+o|0,a[4]=a[4]+r|0,a[5]=a[5]+d|0,a[6]=a[6]+u|0,a[7]=a[7]+h|0},_doFinalize:function(){var t=this._data,a=t.words,n=8*this._nDataBytes,i=8*t.sigBytes;return a[i>>>5]|=128<<24-i%32,a[14+(i+64>>>9<<4)]=e.floor(n/4294967296),a[15+(i+64>>>9<<4)]=n,t.sigBytes=4*a.length,this._process(),this._hash},clone:function(){var e=s.clone.call(this);return e._hash=this._hash.clone(),e}});t.SHA256=s._createHelper(d),t.HmacSHA256=s._createHmacHelper(d)}(Math),a.SHA256)})),ya=ga,va=rt((function(e,t){e.exports=ct.HmacSHA256}));const wa=()=>{let e;if(!Promise){e=()=>{},e.promise={};const t=()=>{throw new Qt({message:'Your Node runtime does support ES6 Promises. Set "global.Promise" to your preferred implementation of promises.'})};return Object.defineProperty(e.promise,"then",{get:t}),Object.defineProperty(e.promise,"catch",{get:t}),e}const t=new Promise(((t,a)=>{e=(e,n)=>e?a(e):t(n)}));return e.promise=t,e};function ka(e){return void 0===e}function ba(e){return"[object Null]"===Object.prototype.toString.call(e)}var _a;!function(e){e.WEB="web",e.WX_MP="wx_mp"}(_a||(_a={}));const Ea={adapter:null,runtime:void 0},Sa=["anonymousUuidKey"];class xa extends fa{constructor(){super(),Ea.adapter.root.tcbObject||(Ea.adapter.root.tcbObject={})}setItem(e,t){Ea.adapter.root.tcbObject[e]=t}getItem(e){return Ea.adapter.root.tcbObject[e]}removeItem(e){delete Ea.adapter.root.tcbObject[e]}clear(){delete Ea.adapter.root.tcbObject}}function Na(e,t){switch(e){case"local":return t.localStorage||new xa;case"none":return new xa;default:return t.sessionStorage||new xa}}class Va{constructor(e){if(!this._storage){this._persistence=Ea.adapter.primaryStorage||e.persistence,this._storage=Na(this._persistence,Ea.adapter);const t=`access_token_${e.env}`,a=`access_token_expire_${e.env}`,n=`refresh_token_${e.env}`,i=`anonymous_uuid_${e.env}`,s=`login_type_${e.env}`,o=`user_info_${e.env}`;this.keys={accessTokenKey:t,accessTokenExpireKey:a,refreshTokenKey:n,anonymousUuidKey:i,loginTypeKey:s,userInfoKey:o}}}updatePersistence(e){if(e===this._persistence)return;const t="local"===this._persistence;this._persistence=e;const a=Na(e,Ea.adapter);for(const n in this.keys){const e=this.keys[n];if(t&&Sa.includes(n))continue;const i=this._storage.getItem(e);ka(i)||ba(i)||(a.setItem(e,i),this._storage.removeItem(e))}this._storage=a}setStore(e,t,a){if(!this._storage)return;const n={version:a||"localCachev1",content:t},i=JSON.stringify(n);try{this._storage.setItem(e,i)}catch(s){throw s}}getStore(e,t){try{if(!this._storage)return}catch(n){return""}t=t||"localCachev1";const a=this._storage.getItem(e);return a&&a.indexOf(t)>=0?JSON.parse(a).content:""}removeStore(e){this._storage.removeItem(e)}}const Ca={},Ta={};function Da(e){return Ca[e]}class Ba{constructor(e,t){this.data=t||null,this.name=e}}class Ia extends Ba{constructor(e,t){super("error",{error:e,data:t}),this.error=e}}const Pa=new class{constructor(){this._listeners={}}on(e,t){return a=e,n=t,(i=this._listeners)[a]=i[a]||[],i[a].push(n),this;var a,n,i}off(e,t){return function(e,t,a){if(a&&a[e]){const n=a[e].indexOf(t);-1!==n&&a[e].splice(n,1)}}(e,t,this._listeners),this}fire(e,t){if(e instanceof Ia)return console.error(e.error),this;const a="string"==typeof e?new Ba(e,t||{}):e,n=a.name;if(this._listens(n)){a.target=this;const e=this._listeners[n]?[...this._listeners[n]]:[];for(const t of e)t.call(this,a)}return this}_listens(e){return this._listeners[e]&&this._listeners[e].length>0}};function Aa(e,t){Pa.on(e,t)}function Ma(e,t={}){Pa.fire(e,t)}function Ra(e,t){Pa.off(e,t)}const La="loginStateChanged",Oa="loginStateExpire",Fa="loginTypeChanged",$a="anonymousConverted",ja="refreshAccessToken";var Ua;!function(e){e.ANONYMOUS="ANONYMOUS",e.WECHAT="WECHAT",e.WECHAT_PUBLIC="WECHAT-PUBLIC",e.WECHAT_OPEN="WECHAT-OPEN",e.CUSTOM="CUSTOM",e.EMAIL="EMAIL",e.USERNAME="USERNAME",e.NULL="NULL"}(Ua||(Ua={}));const za=["auth.getJwt","auth.logout","auth.signInWithTicket","auth.signInAnonymously","auth.signIn","auth.fetchAccessTokenWithRefreshToken","auth.signUpWithEmailAndPassword","auth.activateEndUserMail","auth.sendPasswordResetEmail","auth.resetPasswordWithToken","auth.isUsernameRegistered"],Ha={"X-SDK-Version":"1.3.5"};function qa(e,t,a){const n=e[t];e[t]=function(t){const i={},s={};a.forEach((a=>{const{data:n,headers:o}=a.call(e,t);Object.assign(i,n),Object.assign(s,o)}));const o=t.data;return o&&(()=>{var e;if(e=o,"[object FormData]"!==Object.prototype.toString.call(e))t.data={...o,...i};else for(const t in i)o.append(t,i[t])})(),t.headers={...t.headers||{},...s},n.call(e,t)}}function Ja(){const e=Math.random().toString(16).slice(2);return{data:{seqId:e},headers:{...Ha,"x-seqid":e}}}class Wa{constructor(e={}){var t;this.config=e,this._reqClass=new Ea.adapter.reqClass({timeout:this.config.timeout,timeoutMsg:`请求在${this.config.timeout/1e3}s内未完成,已中断`,restrictedMethods:["post"]}),this._cache=Da(this.config.env),this._localCache=(t=this.config.env,Ta[t]),qa(this._reqClass,"post",[Ja]),qa(this._reqClass,"upload",[Ja]),qa(this._reqClass,"download",[Ja])}async post(e){return await this._reqClass.post(e)}async upload(e){return await this._reqClass.upload(e)}async download(e){return await this._reqClass.download(e)}async refreshAccessToken(){let e,t;this._refreshAccessTokenPromise||(this._refreshAccessTokenPromise=this._refreshAccessToken());try{e=await this._refreshAccessTokenPromise}catch(a){t=a}if(this._refreshAccessTokenPromise=null,this._shouldRefreshAccessTokenHook=null,t)throw t;return e}async _refreshAccessToken(){const{accessTokenKey:e,accessTokenExpireKey:t,refreshTokenKey:a,loginTypeKey:n,anonymousUuidKey:i}=this._cache.keys;this._cache.removeStore(e),this._cache.removeStore(t);let s=this._cache.getStore(a);if(!s)throw new Qt({message:"未登录CloudBase"});const o={refresh_token:s},r=await this.request("auth.fetchAccessTokenWithRefreshToken",o);if(r.data.code){const{code:e}=r.data;if("SIGN_PARAM_INVALID"===e||"REFRESH_TOKEN_EXPIRED"===e||"INVALID_REFRESH_TOKEN"===e){if(this._cache.getStore(n)===Ua.ANONYMOUS&&"INVALID_REFRESH_TOKEN"===e){const e=this._cache.getStore(i),t=this._cache.getStore(a),n=await this.send("auth.signInAnonymously",{anonymous_uuid:e,refresh_token:t});return this.setRefreshToken(n.refresh_token),this._refreshAccessToken()}Ma(Oa),this._cache.removeStore(a)}throw new Qt({code:r.data.code,message:`刷新access token失败:${r.data.code}`})}if(r.data.access_token)return Ma(ja),this._cache.setStore(e,r.data.access_token),this._cache.setStore(t,r.data.access_token_expire+Date.now()),{accessToken:r.data.access_token,accessTokenExpire:r.data.access_token_expire};r.data.refresh_token&&(this._cache.removeStore(a),this._cache.setStore(a,r.data.refresh_token),this._refreshAccessToken())}async getAccessToken(){const{accessTokenKey:e,accessTokenExpireKey:t,refreshTokenKey:a}=this._cache.keys;if(!this._cache.getStore(a))throw new Qt({message:"refresh token不存在,登录状态异常"});let n=this._cache.getStore(e),i=this._cache.getStore(t),s=!0;return this._shouldRefreshAccessTokenHook&&!(await this._shouldRefreshAccessTokenHook(n,i))&&(s=!1),(!n||!i||i{e.wxOpenId&&e.wxPublicId&&(t=!0)})),{users:a,hasPrimaryUid:t}}setPrimaryUid(e){return this._request.send("auth.setPrimaryUid",{uid:e})}unlink(e){return this._request.send("auth.unlink",{platform:e})}async update(e){const{nickName:t,gender:a,avatarUrl:n,province:i,country:s,city:o}=e,{data:r}=await this._request.send("auth.updateUserInfo",{nickName:t,gender:a,avatarUrl:n,province:i,country:s,city:o});this.setLocalUserInfo(r)}async refresh(){const{data:e}=await this._request.send("auth.getUserInfo",{});return this.setLocalUserInfo(e),e}setUserInfo(){const{userInfoKey:e}=this._cache.keys,t=this._cache.getStore(e);["uid","loginType","openid","wxOpenId","wxPublicId","unionId","qqMiniOpenId","email","hasPassword","customUserId","nickName","gender","avatarUrl"].forEach((e=>{this[e]=t[e]})),this.location={country:t.country,province:t.province,city:t.city}}setLocalUserInfo(e){const{userInfoKey:t}=this._cache.keys;this._cache.setStore(t,e),this.setUserInfo()}}class Za{constructor(e){if(!e)throw new Qt({code:"PARAM_ERROR",message:"envId is not defined"});this._cache=Da(e);const{refreshTokenKey:t,accessTokenKey:a,accessTokenExpireKey:n}=this._cache.keys,i=this._cache.getStore(t),s=this._cache.getStore(a),o=this._cache.getStore(n);this.credential={refreshToken:i,accessToken:s,accessTokenExpire:o},this.user=new Qa(e)}get isAnonymousAuth(){return this.loginType===Ua.ANONYMOUS}get isCustomAuth(){return this.loginType===Ua.CUSTOM}get isWeixinAuth(){return this.loginType===Ua.WECHAT||this.loginType===Ua.WECHAT_OPEN||this.loginType===Ua.WECHAT_PUBLIC}get loginType(){return this._cache.getStore(this._cache.keys.loginTypeKey)}}class Xa extends Ga{async signIn(){this._cache.updatePersistence("local");const{anonymousUuidKey:e,refreshTokenKey:t}=this._cache.keys,a=this._cache.getStore(e)||void 0,n=this._cache.getStore(t)||void 0,i=await this._request.send("auth.signInAnonymously",{anonymous_uuid:a,refresh_token:n});if(i.uuid&&i.refresh_token){this._setAnonymousUUID(i.uuid),this.setRefreshToken(i.refresh_token),await this._request.refreshAccessToken(),Ma(La),Ma(Fa,{env:this.config.env,loginType:Ua.ANONYMOUS,persistence:"local"});const e=new Za(this.config.env);return await e.user.refresh(),e}throw new Qt({message:"匿名登录失败"})}async linkAndRetrieveDataWithTicket(e){const{anonymousUuidKey:t,refreshTokenKey:a}=this._cache.keys,n=this._cache.getStore(t),i=this._cache.getStore(a),s=await this._request.send("auth.linkAndRetrieveDataWithTicket",{anonymous_uuid:n,refresh_token:i,ticket:e});if(s.refresh_token)return this._clearAnonymousUUID(),this.setRefreshToken(s.refresh_token),await this._request.refreshAccessToken(),Ma($a,{env:this.config.env}),Ma(Fa,{loginType:Ua.CUSTOM,persistence:"local"}),{credential:{refreshToken:s.refresh_token}};throw new Qt({message:"匿名转化失败"})}_setAnonymousUUID(e){const{anonymousUuidKey:t,loginTypeKey:a}=this._cache.keys;this._cache.removeStore(t),this._cache.setStore(t,e),this._cache.setStore(a,Ua.ANONYMOUS)}_clearAnonymousUUID(){this._cache.removeStore(this._cache.keys.anonymousUuidKey)}}class en extends Ga{async signIn(e){if("string"!=typeof e)throw new Qt({code:"PARAM_ERROR",message:"ticket must be a string"});const{refreshTokenKey:t}=this._cache.keys,a=await this._request.send("auth.signInWithTicket",{ticket:e,refresh_token:this._cache.getStore(t)||""});if(a.refresh_token)return this.setRefreshToken(a.refresh_token),await this._request.refreshAccessToken(),Ma(La),Ma(Fa,{env:this.config.env,loginType:Ua.CUSTOM,persistence:this.config.persistence}),await this.refreshUserInfo(),new Za(this.config.env);throw new Qt({message:"自定义登录失败"})}}class tn extends Ga{async signIn(e,t){if("string"!=typeof e)throw new Qt({code:"PARAM_ERROR",message:"email must be a string"});const{refreshTokenKey:a}=this._cache.keys,n=await this._request.send("auth.signIn",{loginType:"EMAIL",email:e,password:t,refresh_token:this._cache.getStore(a)||""}),{refresh_token:i,access_token:s,access_token_expire:o}=n;if(i)return this.setRefreshToken(i),s&&o?this.setAccessToken(s,o):await this._request.refreshAccessToken(),await this.refreshUserInfo(),Ma(La),Ma(Fa,{env:this.config.env,loginType:Ua.EMAIL,persistence:this.config.persistence}),new Za(this.config.env);throw n.code?new Qt({code:n.code,message:`邮箱登录失败: ${n.message}`}):new Qt({message:"邮箱登录失败"})}async activate(e){return this._request.send("auth.activateEndUserMail",{token:e})}async resetPasswordWithToken(e,t){return this._request.send("auth.resetPasswordWithToken",{token:e,newPassword:t})}}class an extends Ga{async signIn(e,t){if("string"!=typeof e)throw new Qt({code:"PARAM_ERROR",message:"username must be a string"});"string"!=typeof t&&(t="",console.warn("password is empty"));const{refreshTokenKey:a}=this._cache.keys,n=await this._request.send("auth.signIn",{loginType:Ua.USERNAME,username:e,password:t,refresh_token:this._cache.getStore(a)||""}),{refresh_token:i,access_token_expire:s,access_token:o}=n;if(i)return this.setRefreshToken(i),o&&s?this.setAccessToken(o,s):await this._request.refreshAccessToken(),await this.refreshUserInfo(),Ma(La),Ma(Fa,{env:this.config.env,loginType:Ua.USERNAME,persistence:this.config.persistence}),new Za(this.config.env);throw n.code?new Qt({code:n.code,message:`用户名密码登录失败: ${n.message}`}):new Qt({message:"用户名密码登录失败"})}}class nn{constructor(e){this.config=e,this._cache=Da(e.env),this._request=Ka(e.env),this._onAnonymousConverted=this._onAnonymousConverted.bind(this),this._onLoginTypeChanged=this._onLoginTypeChanged.bind(this),Aa(Fa,this._onLoginTypeChanged)}get currentUser(){const e=this.hasLoginState();return e&&e.user||null}get loginType(){return this._cache.getStore(this._cache.keys.loginTypeKey)}anonymousAuthProvider(){return new Xa(this.config)}customAuthProvider(){return new en(this.config)}emailAuthProvider(){return new tn(this.config)}usernameAuthProvider(){return new an(this.config)}async signInAnonymously(){return new Xa(this.config).signIn()}async signInWithEmailAndPassword(e,t){return new tn(this.config).signIn(e,t)}signInWithUsernameAndPassword(e,t){return new an(this.config).signIn(e,t)}async linkAndRetrieveDataWithTicket(e){return this._anonymousAuthProvider||(this._anonymousAuthProvider=new Xa(this.config)),Aa($a,this._onAnonymousConverted),await this._anonymousAuthProvider.linkAndRetrieveDataWithTicket(e)}async signOut(){if(this.loginType===Ua.ANONYMOUS)throw new Qt({message:"匿名用户不支持登出操作"});const{refreshTokenKey:e,accessTokenKey:t,accessTokenExpireKey:a}=this._cache.keys,n=this._cache.getStore(e);if(!n)return;const i=await this._request.send("auth.logout",{refresh_token:n});return this._cache.removeStore(e),this._cache.removeStore(t),this._cache.removeStore(a),Ma(La),Ma(Fa,{env:this.config.env,loginType:Ua.NULL,persistence:this.config.persistence}),i}async signUpWithEmailAndPassword(e,t){return this._request.send("auth.signUpWithEmailAndPassword",{email:e,password:t})}async sendPasswordResetEmail(e){return this._request.send("auth.sendPasswordResetEmail",{email:e})}onLoginStateChanged(e){Aa(La,(()=>{const t=this.hasLoginState();e.call(this,t)}));const t=this.hasLoginState();e.call(this,t)}onLoginStateExpired(e){Aa(Oa,e.bind(this))}onAccessTokenRefreshed(e){Aa(ja,e.bind(this))}onAnonymousConverted(e){Aa($a,e.bind(this))}onLoginTypeChanged(e){Aa(Fa,(()=>{const t=this.hasLoginState();e.call(this,t)}))}async getAccessToken(){return{accessToken:(await this._request.getAccessToken()).accessToken,env:this.config.env}}hasLoginState(){const{refreshTokenKey:e}=this._cache.keys;return this._cache.getStore(e)?new Za(this.config.env):null}async isUsernameRegistered(e){if("string"!=typeof e)throw new Qt({code:"PARAM_ERROR",message:"username must be a string"});const{data:t}=await this._request.send("auth.isUsernameRegistered",{username:e});return t&&t.isRegistered}getLoginState(){return Promise.resolve(this.hasLoginState())}async signInWithTicket(e){return new en(this.config).signIn(e)}shouldRefreshAccessToken(e){this._request._shouldRefreshAccessTokenHook=e.bind(this)}getUserInfo(){return this._request.send("auth.getUserInfo",{}).then((e=>e.code?e:{...e.data,requestId:e.seqId}))}getAuthHeader(){const{refreshTokenKey:e,accessTokenKey:t}=this._cache.keys,a=this._cache.getStore(e);return{"x-cloudbase-credentials":this._cache.getStore(t)+"/@@/"+a}}_onAnonymousConverted(e){const{env:t}=e.data;t===this.config.env&&this._cache.updatePersistence(this.config.persistence)}_onLoginTypeChanged(e){const{loginType:t,persistence:a,env:n}=e.data;n===this.config.env&&(this._cache.updatePersistence(a),this._cache.setStore(this._cache.keys.loginTypeKey,t))}}const sn=function(e,t){t=t||wa();const a=Ka(this.config.env),{cloudPath:n,filePath:i,onUploadProgress:s,fileType:o="image"}=e;return a.send("storage.getUploadMetadata",{path:n}).then((e=>{const{data:{url:r,authorization:l,token:c,fileId:d,cosFileId:u},requestId:h}=e,m={key:n,signature:l,"x-cos-meta-fileid":u,success_action_status:"201","x-cos-security-token":c};a.upload({url:r,data:m,file:i,name:n,fileType:o,onUploadProgress:s}).then((e=>{201===e.statusCode?t(null,{fileID:d,requestId:h}):t(new Qt({code:"STORAGE_REQUEST_FAIL",message:`STORAGE_REQUEST_FAIL: ${e.data}`}))})).catch((e=>{t(e)}))})).catch((e=>{t(e)})),t.promise},on=function(e,t){t=t||wa();const a=Ka(this.config.env),{cloudPath:n}=e;return a.send("storage.getUploadMetadata",{path:n}).then((e=>{t(null,e)})).catch((e=>{t(e)})),t.promise},rn=function({fileList:e},t){if(t=t||wa(),!e||!Array.isArray(e))return{code:"INVALID_PARAM",message:"fileList必须是非空的数组"};for(let n of e)if(!n||"string"!=typeof n)return{code:"INVALID_PARAM",message:"fileList的元素必须是非空的字符串"};const a={fileid_list:e};return Ka(this.config.env).send("storage.batchDeleteFile",a).then((e=>{e.code?t(null,e):t(null,{fileList:e.data.delete_list,requestId:e.requestId})})).catch((e=>{t(e)})),t.promise},ln=function({fileList:e},t){t=t||wa(),e&&Array.isArray(e)||t(null,{code:"INVALID_PARAM",message:"fileList必须是非空的数组"});let a=[];for(let i of e)"object"==typeof i?(i.hasOwnProperty("fileID")&&i.hasOwnProperty("maxAge")||t(null,{code:"INVALID_PARAM",message:"fileList的元素必须是包含fileID和maxAge的对象"}),a.push({fileid:i.fileID,max_age:i.maxAge})):"string"==typeof i?a.push({fileid:i}):t(null,{code:"INVALID_PARAM",message:"fileList的元素必须是字符串"});const n={file_list:a};return Ka(this.config.env).send("storage.batchGetDownloadUrl",n).then((e=>{e.code?t(null,e):t(null,{fileList:e.data.download_list,requestId:e.requestId})})).catch((e=>{t(e)})),t.promise},cn=async function({fileID:e},t){const a=(await ln.call(this,{fileList:[{fileID:e,maxAge:600}]})).fileList[0];if("SUCCESS"!==a.code)return t?t(a):new Promise((e=>{e(a)}));const n=Ka(this.config.env);let i=a.download_url;if(i=encodeURI(i),!t)return n.download({url:i});t(await n.download({url:i}))},dn=function({name:e,data:t,query:a,parse:n,search:i},s){const o=s||wa();let r;try{r=t?JSON.stringify(t):""}catch(c){return Promise.reject(c)}if(!e)return Promise.reject(new Qt({code:"PARAM_ERROR",message:"函数名不能为空"}));const l={inQuery:a,parse:n,search:i,function_name:e,request_data:r};return Ka(this.config.env).send("functions.invokeFunction",l).then((e=>{if(e.code)o(null,e);else{let a=e.data.response_data;if(n)o(null,{result:a,requestId:e.requestId});else try{a=JSON.parse(e.data.response_data),o(null,{result:a,requestId:e.requestId})}catch(t){o(new Qt({message:"response data must be json"}))}}return o.promise})).catch((e=>{o(e)})),o.promise},un={timeout:15e3,persistence:"session"},hn={};class mn{constructor(e){this.config=e||this.config,this.authObj=void 0}init(e){switch(Ea.adapter||(this.requestClient=new Ea.adapter.reqClass({timeout:e.timeout||5e3,timeoutMsg:`请求在${(e.timeout||5e3)/1e3}s内未完成,已中断`})),this.config={...un,...e},!0){case this.config.timeout>6e5:console.warn("timeout大于可配置上限[10分钟],已重置为上限数值"),this.config.timeout=6e5;break;case this.config.timeout<100:console.warn("timeout小于可配置下限[100ms],已重置为下限数值"),this.config.timeout=100}return new mn(this.config)}auth({persistence:e}={}){if(this.authObj)return this.authObj;const t=e||Ea.adapter.primaryStorage||un.persistence;var a;return t!==this.config.persistence&&(this.config.persistence=t),function(e){const{env:t}=e;Ca[t]=new Va(e),Ta[t]=new Va({...e,persistence:"local"})}(this.config),a=this.config,Ya[a.env]=new Wa(a),this.authObj=new nn(this.config),this.authObj}on(e,t){return Aa.apply(this,[e,t])}off(e,t){return Ra.apply(this,[e,t])}callFunction(e,t){return dn.apply(this,[e,t])}deleteFile(e,t){return rn.apply(this,[e,t])}getTempFileURL(e,t){return ln.apply(this,[e,t])}downloadFile(e,t){return cn.apply(this,[e,t])}uploadFile(e,t){return sn.apply(this,[e,t])}getUploadMetadata(e,t){return on.apply(this,[e,t])}registerExtension(e){hn[e.name]=e}async invokeExtension(e,t){const a=hn[e];if(!a)throw new Qt({message:`扩展${e} 必须先注册`});return await a.invoke(t,this)}useAdapters(e){const{adapter:t,runtime:a}=function(e){const t=(a=e,"[object Array]"===Object.prototype.toString.call(a)?e:[e]);var a;for(const n of t){const{isMatch:e,genAdapter:t,runtime:a}=n;if(e())return{adapter:t(),runtime:a}}}(e)||{};t&&(Ea.adapter=t),a&&(Ea.runtime=a)}}var pn=new mn;function fn(e,t,a){void 0===a&&(a={});var n=/\?/.test(t),i="";for(var s in a)""===i?!n&&(t+="?"):i+="&",i+=s+"="+encodeURIComponent(a[s]);return/^http(s)?:\/\//.test(t+=i)?t:""+e+t}class gn{post(e){const{url:t,data:a,headers:n}=e;return new Promise(((e,i)=>{Zt.request({url:fn("https:",t),data:a,method:"POST",header:n,success(t){e(t)},fail(e){i(e)}})}))}upload(e){return new Promise(((t,a)=>{const{url:n,file:i,data:s,headers:o,fileType:r}=e,l=Zt.uploadFile({url:fn("https:",n),name:"file",formData:Object.assign({},s),filePath:i,fileType:r,header:o,success(e){const a={statusCode:e.statusCode,data:e.data||{}};200===e.statusCode&&s.success_action_status&&(a.statusCode=parseInt(s.success_action_status,10)),t(a)},fail(e){a(new Error(e.errMsg||"uploadFile:fail"))}});"function"==typeof e.onUploadProgress&&l&&"function"==typeof l.onProgressUpdate&&l.onProgressUpdate((t=>{e.onUploadProgress({loaded:t.totalBytesSent,total:t.totalBytesExpectedToSend})}))}))}}const yn={setItem(e,t){Zt.setStorageSync(e,t)},getItem:e=>Zt.getStorageSync(e),removeItem(e){Zt.removeStorageSync(e)},clear(){Zt.clearStorageSync()}};var vn={genAdapter:function(){return{root:{},reqClass:gn,localStorage:yn,primaryStorage:"local"}},isMatch:function(){return!0},runtime:"uni_app"};pn.useAdapters(vn);const wn=pn,kn=wn.init;wn.init=function(e){e.env=e.spaceId;const t=kn.call(this,e);t.config.provider="tencent",t.config.spaceId=e.spaceId;const a=t.auth;return t.auth=function(e){const t=a.call(this,e);return["linkAndRetrieveDataWithTicket","signInAnonymously","signOut","getAccessToken","getLoginState","signInWithTicket","getUserInfo"].forEach((e=>{var a;t[e]=(a=t[e],function(e){e=e||{};const{success:t,fail:n,complete:i}=Gt(e);if(!(t||n||i))return a.call(this,e);a.call(this,e).then((e=>{t&&t(e),i&&i(e)}),(e=>{n&&n(e),i&&i(e)}))}).bind(t)})),t},t.customAuth=t.auth,t};var bn=wn,_n=class extends da{getAccessToken(){return new Promise(((e,t)=>{const a="Anonymous_Access_token";this.setAccessToken(a),e(a)}))}setupRequest(e,t){const a=Object.assign({},e,{spaceId:this.config.spaceId,timestamp:Date.now()}),n={"Content-Type":"application/json"};"auth"!==t&&(a.token=this.accessToken,n["x-basement-token"]=this.accessToken),n["x-serverless-sign"]=ra(a,this.config.clientSecret);const i=oa();n["x-client-info"]=encodeURIComponent(JSON.stringify(i));const{token:s}=ea();return n["x-client-token"]=s,{url:this.config.requestUrl,method:"POST",data:a,dataType:"json",header:JSON.parse(JSON.stringify(n))}}uploadFileToOSS({url:e,formData:t,name:a,filePath:n,fileType:i,onUploadProgress:s}){return new Promise(((o,r)=>{const l=this.adapter.uploadFile({url:e,formData:t,name:a,filePath:n,fileType:i,success(e){e&&e.statusCode<400?o(e):r(new Qt({code:"UPLOAD_FAILED",message:"文件上传失败"}))},fail(e){r(new Qt({code:e.code||"UPLOAD_FAILED",message:e.message||e.errMsg||"文件上传失败"}))}});"function"==typeof s&&l&&"function"==typeof l.onProgressUpdate&&l.onProgressUpdate((e=>{s({loaded:e.totalBytesSent,total:e.totalBytesExpectedToSend})}))}))}uploadFile({filePath:e,cloudPath:t,fileType:a="image",onUploadProgress:n}){if(!t)throw new Qt({code:"CLOUDPATH_REQUIRED",message:"cloudPath不可为空"});let i;return this.getOSSUploadOptionsFromPath({cloudPath:t}).then((t=>{const{url:s,formData:o,name:r}=t.result;i=t.result.fileUrl;const l={url:s,formData:o,name:r,filePath:e,fileType:a};return this.uploadFileToOSS(Object.assign({},l,{onUploadProgress:n}))})).then((()=>this.reportOSSUpload({cloudPath:t}))).then((t=>new Promise(((a,n)=>{t.success?a({success:!0,filePath:e,fileID:i}):n(new Qt({code:"UPLOAD_FAILED",message:"文件上传失败"}))}))))}deleteFile({fileList:e}){const t={method:"serverless.file.resource.delete",params:JSON.stringify({fileList:e})};return this.request(this.setupRequest(t)).then((e=>{if(e.success)return e.result;throw new Qt({code:"DELETE_FILE_FAILED",message:"删除文件失败"})}))}getTempFileURL({fileList:e,maxAge:t}={}){if(!Array.isArray(e)||0===e.length)throw new Qt({code:"INVALID_PARAM",message:"fileList的元素必须是非空的字符串"});const a={method:"serverless.file.resource.getTempFileURL",params:JSON.stringify({fileList:e,maxAge:t})};return this.request(this.setupRequest(a)).then((e=>{if(e.success)return{fileList:e.result.fileList.map((e=>({fileID:e.fileID,tempFileURL:e.tempFileURL})))};throw new Qt({code:"GET_TEMP_FILE_URL_FAILED",message:"获取临时文件链接失败"})}))}},En={init(e){const t=new _n(e),a={signInAnonymously:function(){return t.authorize()},getLoginState:function(){return Promise.resolve(!1)}};return t.auth=function(){return a},t.customAuth=t.auth,t}},Sn=rt((function(e,t){e.exports=ct.enc.Hex}));function xn(e="",t={}){const{data:a,functionName:n,method:i,headers:s,signHeaderKeys:o=[],config:r}=t,l=Date.now(),c="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)})),d=Object.assign({},s,{"x-from-app-id":r.spaceAppId,"x-from-env-id":r.spaceId,"x-to-env-id":r.spaceId,"x-from-instance-id":l,"x-from-function-name":n,"x-client-timestamp":l,"x-alipay-source":"client","x-request-id":c,"x-alipay-callid":c,"x-trace-id":c}),u=["x-from-app-id","x-from-env-id","x-to-env-id","x-from-instance-id","x-from-function-name","x-client-timestamp"].concat(o),[h="",m=""]=e.split("?")||[],p=function(e){const t=e.signedHeaders.join(";"),a=e.signedHeaders.map((t=>`${t.toLowerCase()}:${e.headers[t]}\n`)).join(""),n=ya(e.body).toString(Sn),i=`${e.method.toUpperCase()}\n${e.path}\n${e.query}\n${a}\n${t}\n${n}\n`,s=ya(i).toString(Sn),o=`HMAC-SHA256\n${e.timestamp}\n${s}\n`,r=va(o,e.secretKey).toString(Sn);return`HMAC-SHA256 Credential=${e.secretId}, SignedHeaders=${t}, Signature=${r}`}({path:h,query:m,method:i,headers:d,timestamp:l,body:JSON.stringify(a),secretId:r.accessKey,secretKey:r.secretKey,signedHeaders:u.sort()});return{url:`${r.endpoint}${e}`,headers:Object.assign({},d,{Authorization:p})}}function Nn({url:e,data:t,method:a="POST",headers:n={}}){return new Promise(((i,s)=>{Zt.request({url:e,method:a,data:t,header:n,dataType:"json",complete:(e={})=>{const t=n["x-trace-id"]||"";if(!e.statusCode||e.statusCode>=400){const{message:a,errMsg:n,trace_id:i}=e.data||{};return s(new Qt({code:"SYS_ERR",message:a||n||"request:fail",requestId:i||t}))}i({status:e.statusCode,data:e.data,headers:e.header,requestId:t})}})}))}function Vn(e,t){const{path:a,data:n,method:i="GET"}=e,{url:s,headers:o}=xn(a,{functionName:"",data:n,method:i,headers:{"x-alipay-cloud-mode":"oss","x-data-api-type":"oss","x-expire-timestamp":Date.now()+6e4},signHeaderKeys:["x-data-api-type","x-expire-timestamp"],config:t});return Nn({url:s,data:n,method:i,headers:o}).then((e=>{const t=e.data||{};if(!t.success)throw new Qt({code:e.errCode,message:e.errMsg,requestId:e.requestId});return t.data||{}})).catch((e=>{throw new Qt({code:e.errCode,message:e.errMsg,requestId:e.requestId})}))}function Cn(e=""){const t=e.trim().replace(/^cloud:\/\//,""),a=t.indexOf("/");if(a<=0)throw new Qt({code:"INVALID_PARAM",message:"fileID不合法"});const n=t.substring(0,a),i=t.substring(a+1);return n!==this.config.spaceId&&console.warn("file ".concat(e," does not belong to env ").concat(this.config.spaceId)),i}function Tn(e=""){return"cloud://".concat(this.config.spaceId,"/").concat(e.replace(/^\/+/,""))}var Dn={init:e=>{e.provider="alipay";const t=new class{constructor(e){if(["spaceId","spaceAppId","accessKey","secretKey"].forEach((t=>{if(!Object.prototype.hasOwnProperty.call(e,t))throw new Error(`${t} required`)})),e.endpoint){if("string"!=typeof e.endpoint)throw new Error("endpoint must be string");if(!/^https:\/\//.test(e.endpoint))throw new Error("endpoint must start with https://");e.endpoint=e.endpoint.replace(/\/$/,"")}this.config=Object.assign({},e,{endpoint:e.endpoint||`https://${e.spaceId}.api-hz.cloudbasefunction.cn`})}callFunction(e){return function(e,t){const{name:a,data:n}=e,i="POST",{url:s,headers:o}=xn("/functions/invokeFunction",{functionName:a,data:n,method:i,headers:{"x-to-function-name":a},signHeaderKeys:["x-to-function-name"],config:t});return Nn({url:s,data:n,method:i,headers:o}).then((e=>({errCode:0,success:!0,requestId:e.requestId,result:e.data}))).catch((e=>{throw new Qt({code:e.errCode,message:e.errMsg,requestId:e.requestId})}))}(e,this.config)}uploadFileToOSS({url:e,filePath:t,fileType:a,formData:n,onUploadProgress:i}){return new Promise(((s,o)=>{const r=Zt.uploadFile({url:e,filePath:t,fileType:a,formData:n,name:"file",success(e){e&&e.statusCode<400?s(e):o(new Qt({code:"UPLOAD_FAILED",message:"文件上传失败"}))},fail(e){o(new Qt({code:e.code||"UPLOAD_FAILED",message:e.message||e.errMsg||"文件上传失败"}))}});"function"==typeof i&&r&&"function"==typeof r.onProgressUpdate&&r.onProgressUpdate((e=>{i({loaded:e.totalBytesSent,total:e.totalBytesExpectedToSend})}))}))}async uploadFile({filePath:e,cloudPath:t="",fileType:a="image",onUploadProgress:n}){if("string"!==gt(t))throw new Qt({code:"INVALID_PARAM",message:"cloudPath必须为字符串类型"});if(!(t=t.trim()))throw new Qt({code:"INVALID_PARAM",message:"cloudPath不可为空"});if(/:\/\//.test(t))throw new Qt({code:"INVALID_PARAM",message:"cloudPath不合法"});const i=await Vn({path:"/".concat(t.replace(/^\//,""),"?post_url")},this.config),{file_id:s,upload_url:o,form_data:r}=i,l=r&&r.reduce(((e,t)=>(e[t.key]=t.value,e)),{});return this.uploadFileToOSS({url:o,filePath:e,fileType:a,formData:l,onUploadProgress:n}).then((()=>({fileID:s})))}async getTempFileURL({fileList:e}){return new Promise(((t,a)=>{(!e||e.length<0)&&a(new Qt({errCode:"INVALID_PARAM",errMsg:"fileList不能为空数组"})),e.length>50&&a(new Qt({errCode:"INVALID_PARAM",errMsg:"fileList数组长度不能超过50"}));const n=[];for(const i of e){"string"!==gt(i)&&a(new Qt({errCode:"INVALID_PARAM",errMsg:"fileList的元素必须是非空的字符串"}));const e=Cn.call(this,i);n.push({file_id:e,expire:600})}Vn({path:"/?download_url",data:{file_list:n},method:"POST"},this.config).then((e=>{const{file_list:a=[]}=e;t({fileList:a.map((e=>({fileID:Tn.call(this,e.file_id),tempFileURL:e.download_url})))})})).catch((e=>a(e)))}))}}(e);return t.auth=function(){return{signInAnonymously:function(){return Promise.resolve()},getLoginState:function(){return Promise.resolve(!0)}}},t}};function Bn({data:e}){let t;t=oa();const a=JSON.parse(JSON.stringify(e||{}));if(Object.assign(a,{clientInfo:t}),!a.uniIdToken){const{token:e}=ea();e&&(a.uniIdToken=e)}return a}const In=[{rule:/fc_function_not_found|FUNCTION_NOT_FOUND/,content:",云函数[{functionName}]在云端不存在,请检查此云函数名称是否正确以及该云函数是否已上传到服务空间",mode:"append"}];var Pn=/[\\^$.*+?()[\]{}|]/g,An=RegExp(Pn.source);function Mn(e,t,a){return e.replace(new RegExp((n=t)&&An.test(n)?n.replace(Pn,"\\$&"):n,"g"),a);var n}const Rn=2e4,Ln={code:20101,message:"Invalid client"};function On(e){const{errSubject:t,subject:a,errCode:n,errMsg:i,code:s,message:o,cause:r}=e||{};return new Qt({subject:t||a||"uni-secure-network",code:n||s||Rn,message:i||o,cause:r})}let Fn;function $n({secretType:e}={}){return"request"===e||"response"===e||"both"===e}function jn({name:e,data:t={}}={}){return"DCloud-clientDB"===e&&"encryption"===t.redirectTo&&"getAppClientKey"===t.action}function Un({functionName:e,result:t,logPvd:a}){}function zn(e){const t=e.callFunction,a=function(a){const n=a.name;a.data=Bn.call(e,{data:a.data});const i={aliyun:"aliyun",tencent:"tcb",tcb:"tcb",alipay:"alipay"}[this.config.provider],s=$n(a),o=jn(a),r=s||o;return t.call(this,a).then((e=>(e.errCode=0,!r&&Un.call(this,{functionName:n,result:e,logPvd:i}),Promise.resolve(e))),(e=>(!r&&Un.call(this,{functionName:n,result:e,logPvd:i}),e&&e.message&&(e.message=function({message:e="",extraInfo:t={},formatter:a=[]}={}){for(let n=0;na.provider===e&&a.spaceId===t));return n&&n.config}({provider:e,spaceId:t});if(!r||!r.accessControl||!r.accessControl.enable)return!1;const l=r.accessControl.function||{},c=Object.keys(l);if(0===c.length)return!0;const d=function(e,t){let a,n,i;for(let s=0;se.trim())).indexOf(t)>-1&&(n=o):i=o:a=o}return a||n||i}(c,a);if(!d)return!1;if((l[d]||[]).find(((e={})=>e.appId===n&&(e.platform||"").toLowerCase()===o.toLowerCase())))return!0;throw console.error(`此应用[appId: ${n}, platform: ${o}]不在云端配置的允许访问的应用列表内,参考:https://uniapp.dcloud.net.cn/uniCloud/secure-network.html#verify-client`),On(Ln)}({provider:n,spaceId:i,functionName:s})?new Fn({secretType:t.secretType,uniCloudIns:e}).wrapVerifyClientCallFunction(a.bind(e))(t):o(t),Object.defineProperty(r,"result",{get:()=>(console.warn("当前返回结果为Promise类型,不可直接访问其result属性,详情请参考:https://uniapp.dcloud.net.cn/uniCloud/faq?id=promise"),{})}),r.then((e=>("undefined"!=typeof UTSJSONObject&&(e.result=new UTSJSONObject(e.result)),e)))}}Fn=class{constructor(){throw On({message:"Platform app is not enabled, please check whether secure network module is enabled in your manifest.json"})}};const Hn=Symbol("CLIENT_DB_INTERNAL");function qn(e,t){return e.then="DoNotReturnProxyWithAFunctionNamedThen",e._internalType=Hn,e.inspect=null,e.__v_raw=void 0,new Proxy(e,{get(e,a,n){if("_uniClient"===a)return null;if("symbol"==typeof a)return e[a];if(a in e||"string"!=typeof a){const t=e[a];return"function"==typeof t?t.bind(e):t}return t.get(e,a,n)}})}function Jn(e){return{on:(t,a)=>{e[t]=e[t]||[],e[t].indexOf(a)>-1||e[t].push(a)},off:(t,a)=>{e[t]=e[t]||[];const n=e[t].indexOf(a);-1!==n&&e[t].splice(n,1)}}}const Wn=["db.Geo","db.command","command.aggregate"];function Yn(e,t){return Wn.indexOf(`${e}.${t}`)>-1}function Kn(e){switch(gt(e=Xt(e))){case"array":return e.map((e=>Kn(e)));case"object":return e._internalType===Hn||Object.keys(e).forEach((t=>{e[t]=Kn(e[t])})),e;case"regexp":return{$regexp:{source:e.source,flags:e.flags}};case"date":return{$date:e.toISOString()};default:return e}}function Gn(e){return e&&e.content&&e.content.$method}class Qn{constructor(e,t,a){this.content=e,this.prevStage=t||null,this.udb=null,this._database=a}toJSON(){let e=this;const t=[e.content];for(;e.prevStage;)e=e.prevStage,t.push(e.content);return{$db:t.reverse().map((e=>({$method:e.$method,$param:Kn(e.$param)})))}}toString(){return JSON.stringify(this.toJSON())}getAction(){const e=this.toJSON().$db.find((e=>"action"===e.$method));return e&&e.$param&&e.$param[0]}getCommand(){return{$db:this.toJSON().$db.filter((e=>"action"!==e.$method))}}get isAggregate(){let e=this;for(;e;){const t=Gn(e),a=Gn(e.prevStage);if("aggregate"===t&&"collection"===a||"pipeline"===t)return!0;e=e.prevStage}return!1}get isCommand(){let e=this;for(;e;){if("command"===Gn(e))return!0;e=e.prevStage}return!1}get isAggregateCommand(){let e=this;for(;e;){const t=Gn(e),a=Gn(e.prevStage);if("aggregate"===t&&"command"===a)return!0;e=e.prevStage}return!1}getNextStageFn(e){const t=this;return function(){return Zn({$method:e,$param:Kn(Array.from(arguments))},t,t._database)}}get count(){return this.isAggregate?this.getNextStageFn("count"):function(){return this._send("count",Array.from(arguments))}}get remove(){return this.isCommand?this.getNextStageFn("remove"):function(){return this._send("remove",Array.from(arguments))}}get(){return this._send("get",Array.from(arguments))}get add(){return this.isCommand?this.getNextStageFn("add"):function(){return this._send("add",Array.from(arguments))}}update(){return this._send("update",Array.from(arguments))}end(){return this._send("end",Array.from(arguments))}get set(){return this.isCommand?this.getNextStageFn("set"):function(){throw new Error("JQL禁止使用set方法")}}_send(e,t){const a=this.getAction(),n=this.getCommand();return n.$db.push({$method:e,$param:Kn(t)}),this._database._callCloudFunction({action:a,command:n})}}function Zn(e,t,a){return qn(new Qn(e,t,a),{get(e,t){let n="db";return e&&e.content&&(n=e.content.$method),Yn(n,t)?Zn({$method:t},e,a):function(){return Zn({$method:t,$param:Kn(Array.from(arguments))},e,a)}}})}function Xn({path:e,method:t}){return class{constructor(){this.param=Array.from(arguments)}toJSON(){return{$newDb:[...e.map((e=>({$method:e}))),{$method:t,$param:this.param}]}}toString(){return JSON.stringify(this.toJSON())}}}function ei(e,t={}){return qn(new e(t),{get:(e,t)=>Yn("db",t)?Zn({$method:t},null,e):function(){return Zn({$method:t,$param:Kn(Array.from(arguments))},null,e)}})}class ti extends class{constructor({uniClient:e={},isJQL:t=!1}={}){this._uniClient=e,this._authCallBacks={},this._dbCallBacks={},e._isDefault&&(this._dbCallBacks=Ct("_globalUniCloudDatabaseCallback")),t||(this.auth=Jn(this._authCallBacks)),this._isJQL=t,Object.assign(this,Jn(this._dbCallBacks)),this.env=qn({},{get:(e,t)=>({$env:t})}),this.Geo=qn({},{get:(e,t)=>Xn({path:["Geo"],method:t})}),this.serverDate=Xn({path:[],method:"serverDate"}),this.RegExp=Xn({path:[],method:"RegExp"})}getCloudEnv(e){if("string"!=typeof e||!e.trim())throw new Error("getCloudEnv参数错误");return{$env:e.replace("$cloudEnv_","")}}_callback(e,t){const a=this._dbCallBacks;a[e]&&a[e].forEach((e=>{e(...t)}))}_callbackAuth(e,t){const a=this._authCallBacks;a[e]&&a[e].forEach((e=>{e(...t)}))}multiSend(){const e=Array.from(arguments),t=e.map((e=>{const t=e.getAction(),a=e.getCommand();if("getTemp"!==a.$db[a.$db.length-1].$method)throw new Error("multiSend只支持子命令内使用getTemp");return{action:t,command:a}}));return this._callCloudFunction({multiCommand:t,queryList:e})}}{_parseResult(e){return this._isJQL?e.result:e}_callCloudFunction({action:e,command:t,multiCommand:a,queryList:n}){function i(e,t){if(a&&n)for(let a=0;aPt(At(o,"complete"),e))).then((()=>(i(null,e),Jt(Lt,{type:$t,content:e}),Promise.reject(e))))}const l=Pt(At(o,"invoke")),c=this._uniClient;return l.then((()=>c.callFunction({name:"DCloud-clientDB",type:"CLIENT_DB",data:{action:e,command:t,multiCommand:a}}))).then((e=>{const{code:t,message:a,token:n,tokenExpired:l,systemInfo:c=[]}=e.result;if(c)for(let i=0;i(console.warn(a),n)})}}return u=e,Pt(At(o,"success"),u).then((()=>Pt(At(o,"complete"),u))).then((()=>{i(u,null);const e=s._parseResult(u);return Jt(Lt,{type:$t,content:e}),Promise.resolve(e)}));var u}),(e=>(/fc_function_not_found|FUNCTION_NOT_FOUND/g.test(e.message)&&console.warn("clientDB未初始化,请在web控制台保存一次schema以开启clientDB"),r(new Qt({code:e.code||"SYSTEM_ERROR",message:e.message,requestId:e.requestId})))))}}const ai="token无效,跳转登录页面",ni="token过期,跳转登录页面",ii={TOKEN_INVALID_TOKEN_EXPIRED:ni,TOKEN_INVALID_INVALID_CLIENTID:ai,TOKEN_INVALID:ai,TOKEN_INVALID_WRONG_TOKEN:ai,TOKEN_INVALID_ANONYMOUS_USER:ai},si={"uni-id-token-expired":ni,"uni-id-check-token-failed":ai,"uni-id-token-not-exist":ai,"uni-id-check-device-feature-failed":ai};function oi(e,t){let a="";return a=e?`${e}/${t}`:t,a.replace(/^\//,"")}function ri(e=[],t=""){const a=[],n=[];return e.forEach((e=>{!0===e.needLogin?a.push(oi(t,e.path)):!1===e.needLogin&&n.push(oi(t,e.path))})),{needLoginPage:a,notNeedLoginPage:n}}function li(e){return e.split("?")[0].replace(/^\//,"")}function ci(){return function(e){let t=e&&e.$page&&e.$page.fullPath||"";return t?("/"!==t.charAt(0)&&(t="/"+t),t):t}(function(){const e=getCurrentPages();return e[e.length-1]}())}function di(){return li(ci())}function ui(e="",t={}){if(!e)return!1;if(!(t&&t.list&&t.list.length))return!1;const a=t.list,n=li(e);return a.some((e=>e.pagePath===n))}const hi=!!ot.uniIdRouter,{loginPage:mi,routerNeedLogin:pi,resToLogin:fi,needLoginPage:gi,notNeedLoginPage:yi,loginPageInTabBar:vi}=function({pages:e=[],subPackages:t=[],uniIdRouter:a={},tabBar:n={}}=ot){const{loginPage:i,needLogin:s=[],resToLogin:o=!0}=a,{needLoginPage:r,notNeedLoginPage:l}=ri(e),{needLoginPage:c,notNeedLoginPage:d}=function(e=[]){const t=[],a=[];return e.forEach((e=>{const{root:n,pages:i=[]}=e,{needLoginPage:s,notNeedLoginPage:o}=ri(i,n);t.push(...s),a.push(...o)})),{needLoginPage:t,notNeedLoginPage:a}}(t);return{loginPage:i,routerNeedLogin:s,resToLogin:o,needLoginPage:[...r,...c],notNeedLoginPage:[...l,...d],loginPageInTabBar:ui(i,n)}}();if(gi.indexOf(mi)>-1)throw new Error(`Login page [${mi}] should not be "needLogin", please check your pages.json`);function wi(e){const t=di();if("/"===e.charAt(0))return e;const[a,n]=e.split("?"),i=a.replace(/^\//,"").split("/"),s=t.split("/");s.pop();for(let o=0;o-1?n+`&uniIdRedirectUrl=${encodeURIComponent(i)}`:n+`?uniIdRedirectUrl=${encodeURIComponent(i)}`:n);var n,i;vi?"navigateTo"!==e&&"redirectTo"!==e||(e="switchTab"):"switchTab"===e&&(e="navigateTo");const s={navigateTo:uni.navigateTo,redirectTo:uni.redirectTo,switchTab:uni.switchTab,reLaunch:uni.reLaunch};setTimeout((()=>{s[e]({url:a})}),0)}function _i({url:e}={}){const t={abortLoginPageJump:!1,autoToLoginPage:!1},a=function(){const{token:e,tokenExpired:t}=ea();let a;if(e){if(t-1)&&(gi.indexOf(t)>-1||pi.some((t=>{return a=e,new RegExp(t).test(a);var a})))}(e)&&a){if(a.uniIdRedirectUrl=e,zt(Ot).length>0)return setTimeout((()=>{Jt(Ot,a)}),0),t.abortLoginPageJump=!0,t;t.autoToLoginPage=!0}return t}function Ei(){!function(){const e=ci(),{abortLoginPageJump:t,autoToLoginPage:a}=_i({url:e});t||a&&bi({api:"redirectTo",redirect:e})}();const e=["navigateTo","redirectTo","reLaunch","switchTab"];for(let t=0;t{const{type:t,content:a}=e;let n=!1;switch(t){case"cloudobject":n=function(e){if("object"!=typeof e)return!1;const{errCode:t}=e||{};return t in si}(a);break;case"clientdb":n=function(e){if("object"!=typeof e)return!1;const{errCode:t}=e||{};return t in ii}(a)}n&&function(e={}){const t=zt(Ot);Kt().then((()=>{const a=ci();if(a&&ki({redirect:a}))return t.length>0?Jt(Ot,Object.assign({uniIdRedirectUrl:a},e)):void(mi&&bi({api:"navigateTo",redirect:a}))}))}(a)}))}function xi(e){var t;(t=e).onResponse=function(e){Ht(Lt,e)},t.offResponse=function(e){qt(Lt,e)},function(e){e.onNeedLogin=function(e){Ht(Ot,e)},e.offNeedLogin=function(e){qt(Ot,e)},hi&&(Ct("_globalUniCloudStatus").needLoginInit||(Ct("_globalUniCloudStatus").needLoginInit=!0,Kt().then((()=>{Ei.call(e)})),fi&&Si.call(e)))}(e),function(e){e.onRefreshToken=function(e){Ht(Ft,e)},e.offRefreshToken=function(e){qt(Ft,e)}}(e)}let Ni;const Vi="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",Ci=/^(?:[A-Za-z\d+/]{4})*?(?:[A-Za-z\d+/]{2}(?:==)?|[A-Za-z\d+/]{3}=?)?$/;function Ti(){const e=ea().token||"",t=e.split(".");if(!e||3!==t.length)return{uid:null,role:[],permission:[],tokenExpired:0};let a;try{a=JSON.parse((n=t[1],decodeURIComponent(Ni(n).split("").map((function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)})).join(""))))}catch(i){throw new Error("获取当前用户信息出错,详细错误信息为:"+i.message)}var n;return a.tokenExpired=1e3*a.exp,delete a.exp,delete a.iat,a}Ni="function"!=typeof atob?function(e){if(e=String(e).replace(/[\t\n\f\r ]+/g,""),!Ci.test(e))throw new Error("Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded.");var t;e+="==".slice(2-(3&e.length));for(var a,n,i="",s=0;s>16&255):64===n?String.fromCharCode(t>>16&255,t>>8&255):String.fromCharCode(t>>16&255,t>>8&255,255&t);return i}:atob;var Di=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}(rt((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});const a="chooseAndUploadFile:ok",n="chooseAndUploadFile:fail";function i(e,t){return e.tempFiles.forEach(((e,a)=>{e.name||(e.name=e.path.substring(e.path.lastIndexOf("/")+1)),t&&(e.fileType=t),e.cloudPath=Date.now()+"_"+a+e.name.substring(e.name.lastIndexOf("."))})),e.tempFilePaths||(e.tempFilePaths=e.tempFiles.map((e=>e.path))),e}function s(e,t,{onChooseFile:n,onUploadProgress:i}){return t.then((e=>{if(n){const t=n(e);if(void 0!==t)return Promise.resolve(t).then((t=>void 0===t?e:t))}return e})).then((t=>!1===t?{errMsg:a,tempFilePaths:[],tempFiles:[]}:function(e,t,n=5,i){(t=Object.assign({},t)).errMsg=a;const s=t.tempFiles,o=s.length;let r=0;return new Promise((a=>{for(;r=o)return void(!s.find((e=>!e.url&&!e.errMsg))&&a(t));const c=s[n];e.uploadFile({provider:c.provider,filePath:c.path,cloudPath:c.cloudPath,fileType:c.fileType,cloudPathAsRealPath:c.cloudPathAsRealPath,onUploadProgress(e){e.index=n,e.tempFile=c,e.tempFilePath=c.path,i&&i(e)}}).then((e=>{c.url=e.fileID,n{c.errMsg=e.errMsg||e.message,n{uni.chooseImage({count:t,sizeType:a,sourceType:s,extension:o,success(t){e(i(t,"image"))},fail(e){r({errMsg:e.errMsg.replace("chooseImage:fail",n)})}})}))}(t),t):"video"===t.type?s(e,function(e){const{camera:t,compressed:a,maxDuration:s,sourceType:o=["album","camera"],extension:r}=e;return new Promise(((e,l)=>{uni.chooseVideo({camera:t,compressed:a,maxDuration:s,sourceType:o,extension:r,success(t){const{tempFilePath:a,duration:n,size:s,height:o,width:r}=t;e(i({errMsg:"chooseVideo:ok",tempFilePaths:[a],tempFiles:[{name:t.tempFile&&t.tempFile.name||"",path:a,size:s,type:t.tempFile&&t.tempFile.type||"",width:r,height:o,duration:n,fileType:"video",cloudPath:""}]},"video"))},fail(e){l({errMsg:e.errMsg.replace("chooseVideo:fail",n)})}})}))}(t),t):s(e,function(e){const{count:t,extension:a}=e;return new Promise(((e,s)=>{let o=uni.chooseFile;if("undefined"!=typeof wx&&"function"==typeof wx.chooseMessageFile&&(o=wx.chooseMessageFile),"function"!=typeof o)return s({errMsg:n+" 请指定 type 类型,该平台仅支持选择 image 或 video。"});o({type:"all",count:t,extension:a,success(t){e(i(t))},fail(e){s({errMsg:e.errMsg.replace("chooseFile:fail",n)})}})}))}(t),t)}}})));function Bi(e){return{props:{localdata:{type:Array,default:()=>[]},options:{type:[Object,Array],default:()=>({})},spaceInfo:{type:Object,default:()=>({})},collection:{type:[String,Array],default:""},action:{type:String,default:""},field:{type:String,default:""},orderby:{type:String,default:""},where:{type:[String,Object],default:""},pageData:{type:String,default:"add"},pageCurrent:{type:Number,default:1},pageSize:{type:Number,default:20},getcount:{type:[Boolean,String],default:!1},gettree:{type:[Boolean,String],default:!1},gettreepath:{type:[Boolean,String],default:!1},startwith:{type:String,default:""},limitlevel:{type:Number,default:10},groupby:{type:String,default:""},groupField:{type:String,default:""},distinct:{type:[Boolean,String],default:!1},foreignKey:{type:String,default:""},loadtime:{type:String,default:"auto"},manual:{type:Boolean,default:!1}},data:()=>({mixinDatacomLoading:!1,mixinDatacomHasMore:!1,mixinDatacomResData:[],mixinDatacomErrorMessage:"",mixinDatacomPage:{},mixinDatacomError:null}),created(){this.mixinDatacomPage={current:this.pageCurrent,size:this.pageSize,count:0},this.$watch((()=>{var e=[];return["pageCurrent","pageSize","localdata","collection","action","field","orderby","where","getont","getcount","gettree","groupby","groupField","distinct"].forEach((t=>{e.push(this[t])})),e}),((e,t)=>{if("manual"===this.loadtime)return;let a=!1;const n=[];for(let i=2;i{this.mixinDatacomLoading=!1;const{data:n,count:i}=a.result;this.getcount&&(this.mixinDatacomPage.count=i),this.mixinDatacomHasMore=n.length{this.mixinDatacomLoading=!1,this.mixinDatacomErrorMessage=e,this.mixinDatacomError=e,a&&a(e)})))},mixinDatacomGet(t={}){let a;t=t||{},a="undefined"!=typeof __uniX&&__uniX?e.databaseForJQL(this.spaceInfo):e.database(this.spaceInfo);const n=t.action||this.action;n&&(a=a.action(n));const i=t.collection||this.collection;a=Array.isArray(i)?a.collection(...i):a.collection(i);const s=t.where||this.where;s&&Object.keys(s).length&&(a=a.where(s));const o=t.field||this.field;o&&(a=a.field(o));const r=t.foreignKey||this.foreignKey;r&&(a=a.foreignKey(r));const l=t.groupby||this.groupby;l&&(a=a.groupBy(l));const c=t.groupField||this.groupField;c&&(a=a.groupField(c)),!0===(void 0!==t.distinct?t.distinct:this.distinct)&&(a=a.distinct());const d=t.orderby||this.orderby;d&&(a=a.orderBy(d));const u=void 0!==t.pageCurrent?t.pageCurrent:this.mixinDatacomPage.current,h=void 0!==t.pageSize?t.pageSize:this.mixinDatacomPage.size,m=void 0!==t.getcount?t.getcount:this.getcount,p=void 0!==t.gettree?t.gettree:this.gettree,f=void 0!==t.gettreepath?t.gettreepath:this.gettreepath,g={getCount:m},y={limitLevel:void 0!==t.limitlevel?t.limitlevel:this.limitlevel,startWith:void 0!==t.startwith?t.startwith:this.startwith};return p&&(g.getTree=y),f&&(g.getTreePath=y),a=a.skip(h*(u-1)).limit(h).get(g),a}}}}function Ii(e){return Ct("_globalUniCloudSecureNetworkCache__{spaceId}".replace("{spaceId}",e.config.spaceId))}async function Pi({openid:e,callLoginByWeixin:t=!1}={}){throw Ii(this),new Error("[SecureNetwork] API `initSecureNetworkByWeixin` is not supported on platform `app`")}async function Ai(e){const t=Ii(this);return t.initPromise||(t.initPromise=Pi.call(this,e).then((e=>e)).catch((e=>{throw delete t.initPromise,e}))),t.initPromise}function Mi(e){const t={getSystemInfo:uni.getSystemInfo,getPushClientId:uni.getPushClientId};return function(a){return new Promise(((n,i)=>{t[e]({...a,success(e){n(e)},fail(e){i(e)}})}))}}class Ri extends class{constructor(){this._callback={}}addListener(e,t){this._callback[e]||(this._callback[e]=[]),this._callback[e].push(t)}on(e,t){return this.addListener(e,t)}removeListener(e,t){if(!t)throw new Error('The "listener" argument must be of type function. Received undefined');const a=this._callback[e];if(!a)return;const n=function(e,t){for(let a=e.length-1;a>=0;a--)if(e[a]===t)return a;return-1}(a,t);a.splice(n,1)}off(e,t){return this.removeListener(e,t)}removeAllListener(e){delete this._callback[e]}emit(e,...t){const a=this._callback[e];if(a)for(let n=0;n{if(!e)throw new Error("Invalid appId, please check the manifest.json file");if(!t)throw new Error("Invalid push client id");this._appId=e,this._pushClientId=t,this._seqId=Date.now()+"-"+Math.floor(9e5*Math.random()+1e5),this.emit("open"),this._initMessageListener()}),(e=>{throw this.emit("error",e),this.close(),e}))}async open(){return this.init()}_isUniCloudSSE(e){if("receive"!==e.type)return!1;const t=e&&e.data&&e.data.payload;return!(!t||"UNI_CLOUD_SSE"!==t.channel||t.seqId!==this._seqId)}_receivePushMessage(e){if(!this._isUniCloudSSE(e))return;const t=e&&e.data&&e.data.payload,{action:a,messageId:n,message:i}=t;this._payloadQueue.push({action:a,messageId:n,message:i}),this._consumMessage()}_consumMessage(){for(;;){const e=this._payloadQueue.find((e=>e.messageId===this._currentMessageId+1));if(!e)break;this._currentMessageId++,this._parseMessagePayload(e)}}_parseMessagePayload(e){const{action:t,messageId:a,message:n}=e;"end"===t?this._end({messageId:a,message:n}):"message"===t&&this._appendMessage({messageId:a,message:n})}_appendMessage({messageId:e,message:t}={}){this.emit("message",t)}_end({messageId:e,message:t}={}){this.emit("end",t),this.close()}_initMessageListener(){uni.onPushMessage(this._uniPushMessageCallback)}_destroy(){uni.offPushMessage(this._uniPushMessageCallback)}toJSON(){return{appId:this._appId,pushClientId:this._pushClientId,seqId:this._seqId}}close(){this._destroy(),this.emit("close")}}const Li={tcb:bn,tencent:bn,aliyun:ua,private:En,alipay:Dn};let Oi=new class{init(e){let t={};const a=Li[e.provider];if(!a)throw new Error("未提供正确的provider参数");var n;return t=a.init(e),function(e){e._initPromiseHub||(e._initPromiseHub=new _t({createPromise:function(){let t=Promise.resolve();t=new Promise((e=>{setTimeout((()=>{e()}),1)}));const a=e.auth();return t.then((()=>a.getLoginState())).then((e=>e?Promise.resolve():a.signInAnonymously()))}}))}(t),zn(t),function(e){const t=e.uploadFile;e.uploadFile=function(e){return t.call(this,e)}}(t),(n=t).database=function(e){if(e&&Object.keys(e).length>0)return n.init(e).database();if(this._database)return this._database;const t=ei(ti,{uniClient:n});return this._database=t,t},n.databaseForJQL=function(e){if(e&&Object.keys(e).length>0)return n.init(e).databaseForJQL();if(this._databaseForJQL)return this._databaseForJQL;const t=ei(ti,{uniClient:n,isJQL:!0});return this._databaseForJQL=t,t},function(e){e.getCurrentUserInfo=Ti,e.chooseAndUploadFile=Di.initChooseAndUploadFile(e),Object.assign(e,{get mixinDatacom(){return Bi(e)}}),e.SSEChannel=Ri,e.initSecureNetworkByWeixin=function(e){return function({openid:t,callLoginByWeixin:a=!1}={}){return Ai.call(e,{openid:t,callLoginByWeixin:a})}}(e),e.importObject=function(t){return function(a,n={}){n=function(e,t={}){return e.customUI=t.customUI||e.customUI,e.parseSystemError=t.parseSystemError||e.parseSystemError,Object.assign(e.loadingOptions,t.loadingOptions),Object.assign(e.errorOptions,t.errorOptions),"object"==typeof t.secretMethods&&(e.secretMethods=t.secretMethods),e}({customUI:!1,loadingOptions:{title:"加载中...",mask:!0},errorOptions:{type:"modal",retry:!1}},n);const{customUI:i,loadingOptions:s,errorOptions:o,parseSystemError:r}=n,l=!i;return new Proxy({},{get(i,c){switch(c){case"toString":return"[object UniCloudObject]";case"toJSON":return{}}return function({fn:e,interceptorName:t,getCallbackArgs:a}={}){return async function(...n){const i=a?a({params:n}):{};let s,o;try{return await Pt(At(t,"invoke"),{...i}),s=await e(...n),await Pt(At(t,"success"),{...i,result:s}),s}catch(r){throw o=r,await Pt(At(t,"fail"),{...i,error:o}),o}finally{await Pt(At(t,"complete"),o?{...i,error:o}:{...i,result:s})}}}({fn:async function i(...d){let u;l&&uni.showLoading({title:s.title,mask:s.mask});const h={name:a,type:"OBJECT",data:{method:c,params:d}};"object"==typeof n.secretMethods&&function(e,t){const a=t.data.method,n=e.secretMethods||{},i=n[a]||n["*"];i&&(t.secretType=i)}(n,h);let m=!1;try{u=await t.callFunction(h)}catch(e){m=!0,u={result:new Qt(e)}}const{errSubject:p,errCode:f,errMsg:g,newToken:y}=u.result||{};if(l&&uni.hideLoading(),y&&y.token&&y.tokenExpired&&(ta(y),Jt(Ft,{...y})),f){let e=g;if(m&&r&&(e=(await r({objectName:a,methodName:c,params:d,errSubject:p,errCode:f,errMsg:g})).errMsg||g),l)if("toast"===o.type)uni.showToast({title:e,icon:"none"});else{if("modal"!==o.type)throw new Error(`Invalid errorOptions.type: ${o.type}`);{const{confirm:t}=await async function({title:e,content:t,showCancel:a,cancelText:n,confirmText:i}={}){return new Promise(((s,o)=>{uni.showModal({title:e,content:t,showCancel:a,cancelText:n,confirmText:i,success(e){s(e)},fail(){s({confirm:!1,cancel:!0})}})}))}({title:"提示",content:e,showCancel:o.retry,cancelText:"取消",confirmText:o.retry?"重试":"确定"});if(o.retry&&t)return i(...d)}}const t=new Qt({subject:p,code:f,message:g,requestId:u.requestId});throw t.detail=u.result,Jt(Lt,{type:Ut,content:t}),t}return Jt(Lt,{type:Ut,content:u.result}),u.result},interceptorName:"callObject",getCallbackArgs:function({params:e}={}){return{objectName:a,methodName:c,params:e}}})}})}}(e)}(t),["callFunction","uploadFile","deleteFile","getTempFileURL","downloadFile","chooseAndUploadFile"].forEach((e=>{if(!t[e])return;const a=t[e];t[e]=function(){return a.apply(t,Array.from(arguments))},t[e]=function(e,t){return function(a){let n=!1;if("callFunction"===t){const e=a&&a.type||mt;n=e!==mt}const i="callFunction"===t&&!n,s=this._initPromiseHub.exec();a=a||{};const{success:o,fail:r,complete:l}=Gt(a),c=s.then((()=>n?Promise.resolve():Pt(At(t,"invoke"),a))).then((()=>e.call(this,a))).then((e=>n?Promise.resolve(e):Pt(At(t,"success"),e).then((()=>Pt(At(t,"complete"),e))).then((()=>(i&&Jt(Lt,{type:jt,content:e}),Promise.resolve(e))))),(e=>n?Promise.reject(e):Pt(At(t,"fail"),e).then((()=>Pt(At(t,"complete"),e))).then((()=>(Jt(Lt,{type:jt,content:e}),Promise.reject(e))))));if(!(o||r||l))return c;c.then((e=>{o&&o(e),l&&l(e),i&&Jt(Lt,{type:jt,content:e})}),(e=>{r&&r(e),l&&l(e),i&&Jt(Lt,{type:jt,content:e})}))}}(t[e],e).bind(t)})),t.init=this.init,t}};(()=>{const e=xt;let t={};if(e&&1===e.length)t=e[0],Oi=Oi.init(t),Oi._isDefault=!0;else{const t=["auth","callFunction","uploadFile","deleteFile","getTempFileURL","downloadFile","database","getCurrentUSerInfo","importObject"];let a;a=e&&e.length>0?"应用有多个服务空间,请通过uniCloud.init方法指定要使用的服务空间":"应用未关联服务空间,请在uniCloud目录右键关联服务空间",t.forEach((e=>{Oi[e]=function(){return console.error(a),Promise.reject(new Qt({code:"SYS_ERR",message:a}))}}))}Object.assign(Oi,{get mixinDatacom(){return Bi(Oi)}}),xi(Oi),Oi.addInterceptor=Bt,Oi.removeInterceptor=It,Oi.interceptObject=Mt})();var Fi=Oi;const $i="chooseAndUploadFile:fail";function ji(e,t){return e.tempFiles.forEach(((e,a)=>{e.name||(e.name=e.path.substring(e.path.lastIndexOf("/")+1)),t&&(e.fileType=t),e.cloudPath=Date.now()+"_"+a+e.name.substring(e.name.lastIndexOf("."))})),e.tempFilePaths||(e.tempFilePaths=e.tempFiles.map((e=>e.path))),e}function Ui(e,t=5,a){const n=(e=JSON.parse(JSON.stringify(e))).length;let i=0,s=this;return new Promise((o=>{for(;i=n)return void(!e.find((e=>!e.url&&!e.errMsg))&&o(e));const l=e[t],c=s.files.findIndex((e=>e.uuid===l.uuid));l.url="",delete l.errMsg,Fi.uploadFile({filePath:l.path,cloudPath:l.cloudPath,fileType:l.fileType,onUploadProgress:e=>{e.index=c,a&&a(e)}}).then((e=>{l.url=e.fileID,l.index=c,t{l.errMsg=e.errMsg||e.message,l.index=c,t{if(t){const a=t(e);if(void 0!==a)return Promise.resolve(a).then((t=>void 0===t?e:t))}return e})).then((e=>!1===e?{errMsg:"chooseAndUploadFile:ok",tempFilePaths:[],tempFiles:[]}:e))}function Hi(e={type:"all"}){return"image"===e.type?zi(function(e){const{count:t,sizeType:a=["original","compressed"],sourceType:n,extension:i}=e;return new Promise(((e,s)=>{uni.chooseImage({count:t,sizeType:a,sourceType:n,extension:i,success(t){e(ji(t,"image"))},fail(e){s({errMsg:e.errMsg.replace("chooseImage:fail",$i)})}})}))}(e),e):"video"===e.type?zi(function(e){const{count:t,camera:a,compressed:n,maxDuration:i,sourceType:s,extension:o}=e;return new Promise(((e,t)=>{uni.chooseVideo({camera:a,compressed:n,maxDuration:i,sourceType:s,extension:o,success(t){const{tempFilePath:a,duration:n,size:i,height:s,width:o}=t;e(ji({errMsg:"chooseVideo:ok",tempFilePaths:[a],tempFiles:[{name:t.tempFile&&t.tempFile.name||"",path:a,size:i,type:t.tempFile&&t.tempFile.type||"",width:o,height:s,duration:n,fileType:"video",cloudPath:""}]},"video"))},fail(e){t({errMsg:e.errMsg.replace("chooseVideo:fail",$i)})}})}))}(e),e):zi(function(e){const{count:t,extension:a}=e;return new Promise(((e,n)=>{let i=uni.chooseFile;if("undefined"!=typeof wx&&"function"==typeof wx.chooseMessageFile&&(i=wx.chooseMessageFile),"function"!=typeof i)return n({errMsg:$i+" 请指定 type 类型,该平台仅支持选择 image 或 video。"});i({type:"all",count:t,extension:a,success(t){e(ji(t))},fail(e){n({errMsg:e.errMsg.replace("chooseFile:fail",$i)})}})}))}(e),e)}const qi=e=>{const t=e.lastIndexOf("."),a=e.length;return{name:e.substring(0,t),ext:e.substring(t+1,a)}},Ji=e=>{if(Array.isArray(e))return e;return e.replace(/(\[|\])/g,"").split(",")},Wi=async(e,t="image")=>{const a=qi(e.name).ext.toLowerCase();let n={name:e.name,uuid:e.uuid,extname:a||"",cloudPath:e.cloudPath,fileType:e.fileType,thumbTempFilePath:e.thumbTempFilePath,url:e.path||e.path,size:e.size,image:{},path:e.path,video:{}};if("image"===t){const t=await(i=e.path,new Promise(((e,t)=>{uni.getImageInfo({src:i,success(t){e(t)},fail(e){t(e)}})})));delete n.video,n.image.width=t.width,n.image.height=t.height,n.image.location=t.path}else delete n.image;var i;return n};const Yi=q({name:"uniFilePicker",components:{uploadImage:q({name:"uploadImage",emits:["uploadFiles","choose","delFile"],props:{filesList:{type:Array,default:()=>[]},disabled:{type:Boolean,default:!1},disablePreview:{type:Boolean,default:!1},limit:{type:[Number,String],default:9},imageStyles:{type:Object,default:()=>({width:"auto",height:"auto",border:{}})},delIcon:{type:Boolean,default:!0},readonly:{type:Boolean,default:!1}},computed:{styles(){return Object.assign({width:"auto",height:"auto",border:{}},this.imageStyles)},boxStyle(){const{width:e="auto",height:t="auto"}=this.styles;let a={};"auto"===t?"auto"!==e?(a.height=this.value2px(e),a["padding-top"]=0):a.height=0:(a.height=this.value2px(t),a["padding-top"]=0),a.width="auto"===e?"auto"!==t?this.value2px(t):"33.3%":this.value2px(e);let n="";for(let i in a)n+=`${i}:${a[i]};`;return n},borderStyle(){let{border:e}=this.styles,t={};if("boolean"==typeof e)t.border=e?"1px #eee solid":"none";else{let a=e&&e.width||1;a=this.value2px(a);let n=e&&e.radius||3;n=this.value2px(n),t={"border-width":a,"border-style":e&&e.style||"solid","border-color":e&&e.color||"#eee","border-radius":n}}let a="";for(let n in t)a+=`${n}:${t[n]};`;return a}},methods:{uploadFiles(e,t){this.$emit("uploadFiles",e)},choose(){this.$emit("choose")},delFile(e){this.$emit("delFile",e)},prviewImage(e,t){let a=[];1===Number(this.limit)&&this.disablePreview&&!this.disabled&&this.$emit("choose"),this.disablePreview||(this.filesList.forEach((e=>{a.push(e.url)})),uni.previewImage({urls:a,current:t}))},value2px:e=>("number"==typeof e?e+="px":-1===e.indexOf("%")&&(e=-1!==e.indexOf("px")?e:e+"px"),e)}},[["render",function(t,a,n,i,s,o){return e.openBlock(),e.createElementBlock("view",{class:"uni-file-picker__container"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.filesList,((t,a)=>(e.openBlock(),e.createElementBlock("view",{class:"file-picker__box",key:a,style:e.normalizeStyle(o.boxStyle)},[e.createElementVNode("view",{class:"file-picker__box-content",style:e.normalizeStyle(o.borderStyle)},[e.createElementVNode("image",{class:"file-image",src:t.url,mode:"aspectFill",onClick:e.withModifiers((e=>o.prviewImage(t,a)),["stop"])},null,8,["src","onClick"]),n.delIcon&&!n.readonly?(e.openBlock(),e.createElementBlock("view",{key:0,class:"icon-del-box",onClick:e.withModifiers((e=>o.delFile(a)),["stop"])},[e.createElementVNode("view",{class:"icon-del"}),e.createElementVNode("view",{class:"icon-del rotate"})],8,["onClick"])):e.createCommentVNode("",!0),t.progress&&100!==t.progress||0===t.progress?(e.openBlock(),e.createElementBlock("view",{key:1,class:"file-picker__progress"},[e.createElementVNode("progress",{class:"file-picker__progress-item",percent:-1===t.progress?0:t.progress,"stroke-width":"4",backgroundColor:t.errMsg?"#ff5a5f":"#EBEBEB"},null,8,["percent","backgroundColor"])])):e.createCommentVNode("",!0),t.errMsg?(e.openBlock(),e.createElementBlock("view",{key:2,class:"file-picker__mask",onClick:e.withModifiers((e=>o.uploadFiles(t,a)),["stop"])}," 点击重试 ",8,["onClick"])):e.createCommentVNode("",!0)],4)],4)))),128)),n.filesList.lengtho.choose&&o.choose(...e))},[e.renderSlot(t.$slots,"default",{},(()=>[e.createElementVNode("view",{class:"icon-add"}),e.createElementVNode("view",{class:"icon-add rotate"})]),!0)],4)],4)):e.createCommentVNode("",!0)])}],["__scopeId","data-v-86b162f5"]]),uploadFile:q({name:"uploadFile",emits:["uploadFiles","choose","delFile"],props:{filesList:{type:Array,default:()=>[]},delIcon:{type:Boolean,default:!0},limit:{type:[Number,String],default:9},showType:{type:String,default:""},listStyles:{type:Object,default:()=>({border:!0,dividline:!0,borderStyle:{}})},readonly:{type:Boolean,default:!1}},computed:{list(){let e=[];return this.filesList.forEach((t=>{e.push(t)})),e},styles(){return Object.assign({border:!0,dividline:!0,"border-style":{}},this.listStyles)},borderStyle(){let{borderStyle:e,border:t}=this.styles,a={};if(t){let t=e&&e.width||1;t=this.value2px(t);let n=e&&e.radius||5;n=this.value2px(n),a={"border-width":t,"border-style":e&&e.style||"solid","border-color":e&&e.color||"#eee","border-radius":n}}else a.border="none";let n="";for(let i in a)n+=`${i}:${a[i]};`;return n},borderLineStyle(){let e={},{borderStyle:t}=this.styles;if(t&&t.color&&(e["border-color"]=t.color),t&&t.width){let a=t&&t.width||1,n=t&&t.style||0;"number"==typeof a?a+="px":a=a.indexOf("px")?a:a+"px",e["border-width"]=a,"number"==typeof n?n+="px":n=n.indexOf("px")?n:n+"px",e["border-top-style"]=n}let a="";for(let n in e)a+=`${n}:${e[n]};`;return a}},methods:{uploadFiles(e,t){this.$emit("uploadFiles",{item:e,index:t})},choose(){this.$emit("choose")},delFile(e){this.$emit("delFile",e)},value2px:e=>("number"==typeof e?e+="px":e=-1!==e.indexOf("px")?e:e+"px",e)}},[["render",function(t,a,n,i,s,o){return e.openBlock(),e.createElementBlock("view",{class:"uni-file-picker__files"},[n.readonly?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("view",{key:0,class:"files-button",onClick:a[0]||(a[0]=(...e)=>o.choose&&o.choose(...e))},[e.renderSlot(t.$slots,"default",{},void 0,!0)])),o.list.length>0?(e.openBlock(),e.createElementBlock("view",{key:1,class:"uni-file-picker__lists is-text-box",style:e.normalizeStyle(o.borderStyle)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.list,((t,a)=>(e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass(["uni-file-picker__lists-box",{"files-border":0!==a&&o.styles.dividline}]),key:a,style:e.normalizeStyle(0!==a&&o.styles.dividline&&o.borderLineStyle)},[e.createElementVNode("view",{class:"uni-file-picker__item"},[e.createElementVNode("view",{class:"files__name"},e.toDisplayString(t.name),1),n.delIcon&&!n.readonly?(e.openBlock(),e.createElementBlock("view",{key:0,class:"icon-del-box icon-files",onClick:e=>o.delFile(a)},[e.createElementVNode("view",{class:"icon-del icon-files"}),e.createElementVNode("view",{class:"icon-del rotate"})],8,["onClick"])):e.createCommentVNode("",!0)]),t.progress&&100!==t.progress||0===t.progress?(e.openBlock(),e.createElementBlock("view",{key:0,class:"file-picker__progress"},[e.createElementVNode("progress",{class:"file-picker__progress-item",percent:-1===t.progress?0:t.progress,"stroke-width":"4",backgroundColor:t.errMsg?"#ff5a5f":"#EBEBEB"},null,8,["percent","backgroundColor"])])):e.createCommentVNode("",!0),"error"===t.status?(e.openBlock(),e.createElementBlock("view",{key:1,class:"file-picker__mask",onClick:e.withModifiers((e=>o.uploadFiles(t,a)),["stop"])}," 点击重试 ",8,["onClick"])):e.createCommentVNode("",!0)],6)))),128))],4)):e.createCommentVNode("",!0)])}],["__scopeId","data-v-e61666c7"]])},options:{virtualHost:!0},emits:["select","success","fail","progress","delete","update:modelValue","input"],props:{modelValue:{type:[Array,Object],default:()=>[]},value:{type:[Array,Object],default:()=>[]},disabled:{type:Boolean,default:!1},disablePreview:{type:Boolean,default:!1},delIcon:{type:Boolean,default:!0},autoUpload:{type:Boolean,default:!0},limit:{type:[Number,String],default:9},mode:{type:String,default:"grid"},fileMediatype:{type:String,default:"image"},fileExtname:{type:[Array,String],default:()=>[]},title:{type:String,default:""},listStyles:{type:Object,default:()=>({border:!0,dividline:!0,borderStyle:{}})},imageStyles:{type:Object,default:()=>({width:"auto",height:"auto"})},readonly:{type:Boolean,default:!1},returnType:{type:String,default:"array"},sizeType:{type:Array,default:()=>["original","compressed"]},sourceType:{type:Array,default:()=>["album","camera"]},provider:{type:String,default:""}},data:()=>({files:[],localValue:[]}),watch:{value:{handler(e,t){this.setValue(e,t)},immediate:!0},modelValue:{handler(e,t){this.setValue(e,t)},immediate:!0}},computed:{filesList(){let e=[];return this.files.forEach((t=>{e.push(t)})),e},showType(){return"image"===this.fileMediatype?this.mode:"list"},limitLength(){return"object"===this.returnType?1:this.limit?this.limit>=9?9:this.limit:1}},created(){Fi.config&&Fi.config.provider||(this.noSpace=!0,Fi.chooseAndUploadFile=Hi),this.form=this.getForm("uniForms"),this.formItem=this.getForm("uniFormsItem"),this.form&&this.formItem&&this.formItem.name&&(this.rename=this.formItem.name,this.form.inputChildrens.push(this))},methods:{clearFiles(e){0===e||e?this.files.splice(e,1):(this.files=[],this.$nextTick((()=>{this.setEmit()}))),this.$nextTick((()=>{this.setEmit()}))},upload(){let e=[];return this.files.forEach(((t,a)=>{"ready"!==t.status&&"error"!==t.status||e.push(Object.assign({},t))})),this.uploadFiles(e)},async setValue(e,t){const a=async e=>{let t="";return t=e.fileID?e.fileID:e.url,/cloud:\/\/([\w.]+\/?)\S*/.test(t)&&(e.fileID=t,e.url=await this.getTempFileURL(t)),e.url&&(e.path=e.url),e};if("object"===this.returnType)e?await a(e):e={};else{e||(e=[]);for(let t=0;t0?e:[];this.files=[].concat(n)},choose(){this.disabled||(this.files.length>=Number(this.limitLength)&&"grid"!==this.showType&&"array"===this.returnType?uni.showToast({title:`您最多选择 ${this.limitLength} 个文件`,icon:"none"}):this.chooseFiles())},chooseFiles(){const e=Ji(this.fileExtname);Fi.chooseAndUploadFile({type:this.fileMediatype,compressed:!1,sizeType:this.sizeType,sourceType:this.sourceType,extension:e.length>0?e:void 0,count:this.limitLength-this.files.length,onChooseFile:this.chooseFileCallback,onUploadProgress:e=>{this.setProgress(e,e.index)}}).then((e=>{this.setSuccessAndError(e.tempFiles)})).catch((e=>{t("log","at uni_modules/uni-file-picker/components/uni-file-picker/uni-file-picker.vue:364","选择失败",e)}))},async chooseFileCallback(e){const t=Ji(this.fileExtname);(1===Number(this.limitLength)&&this.disablePreview&&!this.disabled||"object"===this.returnType)&&(this.files=[]);let{filePaths:a,files:n}=((e,t)=>{let a=[],n=[];return t&&0!==t.length?(e.tempFiles.forEach((e=>{const i=qi(e.name).ext.toLowerCase();-1!==t.indexOf(i)&&(n.push(e),a.push(e.path))})),n.length!==e.tempFiles.length&&uni.showToast({title:`当前选择了${e.tempFiles.length}个文件 ,${e.tempFiles.length-n.length} 个文件格式不正确`,icon:"none",duration:5e3}),{filePaths:a,files:n}):{filePaths:a,files:n}})(e,t);t&&t.length>0||(a=e.tempFilePaths,n=e.tempFiles);let i=[];for(let s=0;s{this.provider&&(e.provider=this.provider);const a=e.name.split("."),n=a.pop(),i=a.join(".").replace(/[\s\/\?<>\\:\*\|":]/g,"_");e.cloudPath=i+"_"+Date.now()+"_"+t+"."+n}))},uploadFiles(e){return e=[].concat(e),Ui.call(this,e,5,(e=>{this.setProgress(e,e.index,!0)})).then((e=>(this.setSuccessAndError(e),e))).catch((e=>{t("log","at uni_modules/uni-file-picker/components/uni-file-picker/uni-file-picker.vue:437",e)}))},async setSuccessAndError(e,t){let a=[],n=[],i=[],s=[];for(let o=0;oe.uuid===t.uuid)):t.index;if(-1===r||!this.files)break;if("request:fail"===t.errMsg)this.files[r].url=t.path,this.files[r].status="error",this.files[r].errMsg=t.errMsg,n.push(this.files[r]),s.push(this.files[r].url);else{this.files[r].errMsg="",this.files[r].fileID=t.url;/cloud:\/\/([\w.]+\/?)\S*/.test(t.url)?this.files[r].url=await this.getTempFileURL(t.url):this.files[r].url=t.url,this.files[r].status="success",this.files[r].progress+=1,a.push(this.files[r]),i.push(this.files[r].fileID)}}a.length>0&&(this.setEmit(),this.$emit("success",{tempFiles:this.backObject(a),tempFilePaths:i})),n.length>0&&this.$emit("fail",{tempFiles:this.backObject(n),tempFilePaths:s})},setProgress(e,t,a){this.files.length;const n=Math.round(100*e.loaded/e.total);let i=t;a||(i=this.files.findIndex((t=>t.uuid===e.tempFile.uuid))),-1!==i&&this.files[i]&&(this.files[i].progress=n-1,this.$emit("progress",{index:i,progress:parseInt(n),tempFile:this.files[i]}))},delFile(e){this.$emit("delete",{index:e,tempFile:this.files[e],tempFilePath:this.files[e].url}),this.files.splice(e,1),this.$nextTick((()=>{this.setEmit()}))},getFileExt(e){const t=e.lastIndexOf("."),a=e.length;return{name:e.substring(0,t),ext:e.substring(t+1,a)}},setEmit(){let e=[];"object"===this.returnType?(e=this.backObject(this.files)[0],this.localValue=e||null):(e=this.backObject(this.files),this.localValue||(this.localValue=[]),this.localValue=[...e]),this.$emit("update:modelValue",this.localValue)},backObject(e){let t=[];return e.forEach((e=>{t.push({extname:e.extname,fileType:e.fileType,image:e.image,name:e.name,path:e.path,size:e.size,fileID:e.fileID,url:e.url,uuid:e.uuid,status:e.status,cloudPath:e.cloudPath})})),t},async getTempFileURL(e){e={fileList:[].concat(e)};return(await Fi.getTempFileURL(e)).fileList[0].tempFileURL||""},getForm(e="uniForms"){let t=this.$parent,a=t.$options.name;for(;a!==e;){if(t=t.$parent,!t)return!1;a=t.$options.name}return t}}},[["render",function(t,a,n,i,s,o){const r=e.resolveComponent("upload-image"),l=e.resolveComponent("upload-file");return e.openBlock(),e.createElementBlock("view",{class:"uni-file-picker"},[n.title?(e.openBlock(),e.createElementBlock("view",{key:0,class:"uni-file-picker__header"},[e.createElementVNode("text",{class:"file-title"},e.toDisplayString(n.title),1),e.createElementVNode("text",{class:"file-count"},e.toDisplayString(o.filesList.length)+"/"+e.toDisplayString(o.limitLength),1)])):e.createCommentVNode("",!0),"image"===n.fileMediatype&&"grid"===o.showType?(e.openBlock(),e.createBlock(r,{key:1,readonly:n.readonly,"image-styles":n.imageStyles,"files-list":o.filesList,limit:o.limitLength,disablePreview:n.disablePreview,delIcon:n.delIcon,onUploadFiles:o.uploadFiles,onChoose:o.choose,onDelFile:o.delFile},{default:e.withCtx((()=>[e.renderSlot(t.$slots,"default",{},(()=>[e.createElementVNode("view",{class:"is-add"},[e.createElementVNode("view",{class:"icon-add"}),e.createElementVNode("view",{class:"icon-add rotate"})])]),!0)])),_:3},8,["readonly","image-styles","files-list","limit","disablePreview","delIcon","onUploadFiles","onChoose","onDelFile"])):e.createCommentVNode("",!0),"image"!==n.fileMediatype||"grid"!==o.showType?(e.openBlock(),e.createBlock(l,{key:2,readonly:n.readonly,"list-styles":n.listStyles,"files-list":o.filesList,showType:o.showType,delIcon:n.delIcon,onUploadFiles:o.uploadFiles,onChoose:o.choose,onDelFile:o.delFile},{default:e.withCtx((()=>[e.renderSlot(t.$slots,"default",{},(()=>[e.createElementVNode("button",{type:"primary",size:"mini"},"选择文件")]),!0)])),_:3},8,["readonly","list-styles","files-list","showType","delIcon","onUploadFiles","onChoose","onDelFile"])):e.createCommentVNode("",!0)])}],["__scopeId","data-v-086f9922"]]);function Ki(e){let t="";for(let a in e){t+=`${a}:${e[a]};`}return t}const Gi=q({name:"uni-easyinput",emits:["click","iconClick","update:modelValue","input","focus","blur","confirm","clear","eyes","change","keyboardheightchange"],model:{prop:"modelValue",event:"update:modelValue"},options:{virtualHost:!0},inject:{form:{from:"uniForm",default:null},formItem:{from:"uniFormItem",default:null}},props:{name:String,value:[Number,String],modelValue:[Number,String],type:{type:String,default:"text"},clearable:{type:Boolean,default:!0},autoHeight:{type:Boolean,default:!1},placeholder:{type:String,default:" "},placeholderStyle:String,focus:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},maxlength:{type:[Number,String],default:140},confirmType:{type:String,default:"done"},clearSize:{type:[Number,String],default:24},inputBorder:{type:Boolean,default:!0},prefixIcon:{type:String,default:""},suffixIcon:{type:String,default:""},trim:{type:[Boolean,String],default:!1},cursorSpacing:{type:Number,default:0},passwordIcon:{type:Boolean,default:!0},adjustPosition:{type:Boolean,default:!0},primaryColor:{type:String,default:"#2979ff"},styles:{type:Object,default:()=>({color:"#333",backgroundColor:"#fff",disableColor:"#F7F6F6",borderColor:"#e5e5e5"})},errorMessage:{type:[String,Boolean],default:""}},data:()=>({focused:!1,val:"",showMsg:"",border:!1,isFirstBorder:!1,showClearIcon:!1,showPassword:!1,focusShow:!1,localMsg:"",isEnter:!1}),computed:{isVal(){const e=this.val;return!(!e&&0!==e)},msg(){return this.localMsg||this.errorMessage},inputMaxlength(){return Number(this.maxlength)},boxStyle(){return`color:${this.inputBorder&&this.msg?"#e43d33":this.styles.color};`},inputContentClass(){return function(e){let t="";for(let a in e)e[a]&&(t+=`${a} `);return t}({"is-input-border":this.inputBorder,"is-input-error-border":this.inputBorder&&this.msg,"is-textarea":"textarea"===this.type,"is-disabled":this.disabled,"is-focused":this.focusShow})},inputContentStyle(){const e=this.focusShow?this.primaryColor:this.styles.borderColor;return Ki({"border-color":(this.inputBorder&&this.msg?"#dd524d":e)||"#e5e5e5","background-color":this.disabled?this.styles.disableColor:this.styles.backgroundColor})},inputStyle(){return Ki({"padding-right":"password"===this.type||this.clearable||this.prefixIcon?"":"10px","padding-left":this.prefixIcon?"":"10px"})}},watch:{value(e){this.val=null!==e?e:""},modelValue(e){this.val=null!==e?e:""},focus(e){this.$nextTick((()=>{this.focused=this.focus,this.focusShow=this.focus}))}},created(){this.init(),this.form&&this.formItem&&this.$watch("formItem.errMsg",(e=>{this.localMsg=e}))},mounted(){this.$nextTick((()=>{this.focused=this.focus,this.focusShow=this.focus}))},methods:{init(){this.value||0===this.value?this.val=this.value:this.modelValue||0===this.modelValue||""===this.modelValue?this.val=this.modelValue:this.val=""},onClickIcon(e){this.$emit("iconClick",e)},onEyes(){this.showPassword=!this.showPassword,this.$emit("eyes",this.showPassword)},onInput(e){let t=e.detail.value;this.trim&&("boolean"==typeof this.trim&&this.trim&&(t=this.trimStr(t)),"string"==typeof this.trim&&(t=this.trimStr(t,this.trim))),this.errMsg&&(this.errMsg=""),this.val=t,this.$emit("input",t),this.$emit("update:modelValue",t)},onFocus(){this.$nextTick((()=>{this.focused=!0})),this.$emit("focus",null)},_Focus(e){this.focusShow=!0,this.$emit("focus",e)},onBlur(){this.focused=!1,this.$emit("blur",null)},_Blur(e){if(e.detail.value,this.focusShow=!1,this.$emit("blur",e),!1===this.isEnter&&this.$emit("change",this.val),this.form&&this.formItem){const{validateTrigger:e}=this.form;"blur"===e&&this.formItem.onFieldChange()}},onConfirm(e){this.$emit("confirm",this.val),this.isEnter=!0,this.$emit("change",this.val),this.$nextTick((()=>{this.isEnter=!1}))},onClear(e){this.val="",this.$emit("input",""),this.$emit("update:modelValue",""),this.$emit("clear")},onkeyboardheightchange(e){this.$emit("keyboardheightchange",e)},trimStr:(e,t="both")=>"both"===t?e.trim():"left"===t?e.trimLeft():"right"===t?e.trimRight():"start"===t?e.trimStart():"end"===t?e.trimEnd():"all"===t?e.replace(/\s+/g,""):e}},[["render",function(t,n,i,s,o,r){const l=a(e.resolveDynamicComponent("uni-icons"),Y);return e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass(["uni-easyinput",{"uni-easyinput-error":r.msg}]),style:e.normalizeStyle(r.boxStyle)},[e.createElementVNode("view",{class:e.normalizeClass(["uni-easyinput__content",r.inputContentClass]),style:e.normalizeStyle(r.inputContentStyle)},[i.prefixIcon?(e.openBlock(),e.createBlock(l,{key:0,class:"content-clear-icon",type:i.prefixIcon,color:"#c0c4cc",onClick:n[0]||(n[0]=e=>r.onClickIcon("prefix")),size:"22"},null,8,["type"])):e.createCommentVNode("",!0),e.renderSlot(t.$slots,"left",{},void 0,!0),"textarea"===i.type?(e.openBlock(),e.createElementBlock("textarea",{key:1,class:e.normalizeClass(["uni-easyinput__content-textarea",{"input-padding":i.inputBorder}]),name:i.name,value:o.val,placeholder:i.placeholder,placeholderStyle:i.placeholderStyle,disabled:i.disabled,"placeholder-class":"uni-easyinput__placeholder-class",maxlength:r.inputMaxlength,focus:o.focused,autoHeight:i.autoHeight,"cursor-spacing":i.cursorSpacing,"adjust-position":i.adjustPosition,onInput:n[1]||(n[1]=(...e)=>r.onInput&&r.onInput(...e)),onBlur:n[2]||(n[2]=(...e)=>r._Blur&&r._Blur(...e)),onFocus:n[3]||(n[3]=(...e)=>r._Focus&&r._Focus(...e)),onConfirm:n[4]||(n[4]=(...e)=>r.onConfirm&&r.onConfirm(...e)),onKeyboardheightchange:n[5]||(n[5]=(...e)=>r.onkeyboardheightchange&&r.onkeyboardheightchange(...e))},null,42,["name","value","placeholder","placeholderStyle","disabled","maxlength","focus","autoHeight","cursor-spacing","adjust-position"])):(e.openBlock(),e.createElementBlock("input",{key:2,type:"password"===i.type?"text":i.type,class:"uni-easyinput__content-input",style:e.normalizeStyle(r.inputStyle),name:i.name,value:o.val,password:!o.showPassword&&"password"===i.type,placeholder:i.placeholder,placeholderStyle:i.placeholderStyle,"placeholder-class":"uni-easyinput__placeholder-class",disabled:i.disabled,maxlength:r.inputMaxlength,focus:o.focused,confirmType:i.confirmType,"cursor-spacing":i.cursorSpacing,"adjust-position":i.adjustPosition,onFocus:n[6]||(n[6]=(...e)=>r._Focus&&r._Focus(...e)),onBlur:n[7]||(n[7]=(...e)=>r._Blur&&r._Blur(...e)),onInput:n[8]||(n[8]=(...e)=>r.onInput&&r.onInput(...e)),onConfirm:n[9]||(n[9]=(...e)=>r.onConfirm&&r.onConfirm(...e)),onKeyboardheightchange:n[10]||(n[10]=(...e)=>r.onkeyboardheightchange&&r.onkeyboardheightchange(...e))},null,44,["type","name","value","password","placeholder","placeholderStyle","disabled","maxlength","focus","confirmType","cursor-spacing","adjust-position"])),"password"===i.type&&i.passwordIcon?(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[r.isVal?(e.openBlock(),e.createBlock(l,{key:0,class:e.normalizeClass(["content-clear-icon",{"is-textarea-icon":"textarea"===i.type}]),type:o.showPassword?"eye-slash-filled":"eye-filled",size:22,color:o.focusShow?i.primaryColor:"#c0c4cc",onClick:r.onEyes},null,8,["class","type","color","onClick"])):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),i.suffixIcon?(e.openBlock(),e.createElementBlock(e.Fragment,{key:4},[i.suffixIcon?(e.openBlock(),e.createBlock(l,{key:0,class:"content-clear-icon",type:i.suffixIcon,color:"#c0c4cc",onClick:n[11]||(n[11]=e=>r.onClickIcon("suffix")),size:"22"},null,8,["type"])):e.createCommentVNode("",!0)],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:5},[i.clearable&&r.isVal&&!i.disabled&&"textarea"!==i.type?(e.openBlock(),e.createBlock(l,{key:0,class:e.normalizeClass(["content-clear-icon",{"is-textarea-icon":"textarea"===i.type}]),type:"clear",size:i.clearSize,color:r.msg?"#dd524d":o.focusShow?i.primaryColor:"#c0c4cc",onClick:r.onClear},null,8,["class","size","color","onClick"])):e.createCommentVNode("",!0)],64)),e.renderSlot(t.$slots,"right",{},void 0,!0)],6)],6)}],["__scopeId","data-v-d17898f6"]]);function Qi(e){return"string"==typeof e}function Zi(e,t=50){if(!Array.isArray(e)||!e.length)return e;const a=[];return e.forEach(((e,n)=>{const i=Math.floor(n/t);a[i]||(a[i]=[]),a[i].push(e)})),a}const Xi=q(e.defineComponent({__name:"data-select-item",props:{node:{type:Object,default:()=>({})},choseParent:{type:Boolean,default:!0},dataLabel:{type:String,default:"name"},dataValue:{type:String,default:"value"},dataChildren:{type:String,default:"children"},border:{type:Boolean,default:!1},linkage:{type:Boolean,default:!1},lazyLoadChildren:{type:Boolean,default:!1},level:{type:Number,default:0}},setup(t){const{nodeClick:n,nameClick:i,loadNode:s,initData:o,addNode:r}=e.inject("nodeFn"),l=t,c=e.ref([]),d=e.ref([]),u=e.ref([]);return e.watchEffect((()=>{l.node.showChildren&&l.node[l.dataChildren]&&l.node[l.dataChildren].length&&(function(){const e=[...d.value];d.value=[],e.forEach((e=>e()))}(),function(e){const t=Zi(e);c.value=(null==t?void 0:t[0])||[],function(e,t){for(let a=t;a{c.value.push(...e[a])}),500*a),d.push((()=>clearTimeout(t)))}}(t,1)}(l.node[l.dataChildren]))})),(d,h)=>{const m=a(e.resolveDynamicComponent("uni-icons"),Y);return e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass(["customthree-tree-select-content",{border:t.border&&t.node[t.dataChildren]&&t.node[t.dataChildren].length&&t.node.showChildren}]),style:e.normalizeStyle({marginLeft:(t.level?14:0)+"px"})},[t.node.visible?(e.openBlock(),e.createElementBlock("view",{key:0,class:"custom-tree-select-item"},[e.createElementVNode("view",{class:"item-content"},[e.createElementVNode("view",{class:"left",onClick:h[0]||(h[0]=e.withModifiers((e=>{var a,n;(a=t.node).visible&&(!(null==(n=a[l.dataChildren])?void 0:n.length)&&l.lazyLoadChildren?(u.value.push(a[l.dataValue].toString()),s(a).then((e=>{r(a,o(e,a.visible))})).finally((()=>{u.value=[]}))):i(a))}),["stop"]))},[e.createElementVNode("view",{class:"icon-group"},[t.node[t.dataChildren]&&t.node[t.dataChildren].length?(e.openBlock(),e.createElementBlock("view",{key:0,class:e.normalizeClass(["right-icon",{active:t.node.showChildren}])},[e.createVNode(m,{type:"right",size:"14",color:"#333"})],2)):(e.openBlock(),e.createElementBlock("view",{key:1,class:"smallcircle-filled"},[e.createVNode(m,{class:"smallcircle-filled-icon",type:"smallcircle-filled",size:"10",color:"#333"})]))]),u.value.includes(t.node[l.dataValue].toString())?(e.openBlock(),e.createElementBlock("view",{key:0,class:"loading-icon-box"},[e.createVNode(m,{class:"loading-icon",type:"spinner-cycle",size:"14",color:"#333"})])):e.createCommentVNode("",!0),e.createElementVNode("view",{class:"name",style:e.normalizeStyle(t.node.disabled?"color: #999":"")},[e.createElementVNode("text",null,e.toDisplayString(t.node[t.dataLabel]),1)],4)]),t.choseParent||!t.choseParent&&!t.node[t.dataChildren]||!t.choseParent&&t.node[t.dataChildren]&&!t.node[t.dataChildren].length?(e.openBlock(),e.createElementBlock("view",{key:0,class:e.normalizeClass(["check-box",{disabled:t.node.disabled}]),onClick:h[1]||(h[1]=e.withModifiers((a=>!t.node.disabled&&e.unref(n)(t.node)),["stop"]))},[!t.node.checked&&t.node.partChecked&&t.linkage?(e.openBlock(),e.createElementBlock("view",{key:0,class:"part-checked"})):e.createCommentVNode("",!0),t.node.checked?(e.openBlock(),e.createBlock(m,{key:1,type:"checkmarkempty",size:"18",color:t.node.disabled?"#333":"#007aff"},null,8,["color"])):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0)])])):e.createCommentVNode("",!0),t.node.showChildren&&t.node[t.dataChildren]&&t.node[t.dataChildren].length?(e.openBlock(),e.createElementBlock("view",{key:1},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,(a=>(e.openBlock(),e.createBlock(Xi,{key:a[t.dataValue],node:a,dataLabel:t.dataLabel,dataValue:t.dataValue,dataChildren:t.dataChildren,choseParent:t.choseParent,lazyLoadChildren:t.lazyLoadChildren,border:t.border,linkage:t.linkage,level:t.level+1},null,8,["node","dataLabel","dataValue","dataChildren","choseParent","lazyLoadChildren","border","linkage","level"])))),128))])):e.createCommentVNode("",!0)],6)}}}),[["__scopeId","data-v-b14c1821"]]),es=q(e.defineComponent({__name:"treeSelect",props:{canSelectAll:{type:Boolean,default:!1},safeArea:{type:Boolean,default:!0},search:{type:Boolean,default:!1},clearResetSearch:{type:Boolean,default:!1},animation:{type:Boolean,default:!0},"is-mask-click":{type:Boolean,default:!0},"mask-background-color":{type:String,default:"rgba(0,0,0,0.4)"},"background-color":{type:String,default:"none"},"safe-area":{type:Boolean,default:!0},choseParent:{type:Boolean,default:!1},placeholder:{type:String,default:"请选择"},confirmText:{type:String,default:"确认"},confirmTextColor:{type:String,default:"#007aff"},dataSource:{type:Array,default:()=>[]},dataLabel:{type:String,default:"name"},dataValue:{type:String,default:"id"},dataChildren:{type:String,default:"children"},linkage:{type:Boolean,default:!1},removeLinkage:{type:Boolean,default:!0},clearable:{type:Boolean,default:!1},mutiple:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},deleteSource:{type:Boolean,default:!1},showChildren:{type:Boolean,default:!1},border:{type:Boolean,default:!1},lazyLoadChildren:{type:Boolean,default:!1},load:{type:Function,default:function(){}},modelValue:{type:[Array,String],default:()=>[]}},emits:["update:modelValue","change","maskClick","select-change","removeSelect"],setup(t,{emit:n}){const i=t,s=n,o=e.ref("500px"),r=e.ref([]),l=e.ref([]),c=e.ref([]),d=e.ref([]),u=e.ref(!1),h=e.ref(!1),m=e.ref(0),p=e.ref(""),f=e.ref(null),g=new Set;e.provide("nodeFn",{nodeClick:B,nameClick:I,loadNode:i.load,initData:S,addNode:function(e,t){C(e,r.value)[i.dataChildren]=t,I(e)}});const y=e.computed((()=>{const e=null===i.modelValue?"":i.modelValue;return Qi(e)?e.length?e.split(","):[]:e.map((e=>e.toString()))}));function v(t=!1){x(),t?i.clearResetSearch&&N(r.value):N(w(p.value,r.value)),m.val=10,e.nextTick((()=>{m.value=0})),uni.hideKeyboard()}function w(e,t){const a=[];return t.forEach((t=>{var n,s;if(t.visible)if(t[i.dataLabel].toString().toLowerCase().indexOf(e.toLowerCase())>-1)a.push(t);else if(null==(n=t[i.dataChildren])?void 0:n.length){const n=w(e,t[i.dataChildren]);(null==n?void 0:n.length)&&(e&&!t.showChildren&&(null==(s=t[i.dataChildren])?void 0:s.length)&&(t.showChildren=!0),a.push({...t,[i.dataChildren]:n}))}})),a}async function k(){i.disabled||(u.value=!0,f.value.open(),N(r.value))}function b(){f.value.close()}function _(e){e.show||(x(),p.value="",u.value=!1),s("change",e)}function E(){s("maskClick")}function S(e,t){var a;if(!Array.isArray(e))return[];const n=[];for(let s=0;se()))}function N(e){const t=Zi(e);l.value=(null==t?void 0:t[0])||[],function(e,t){for(let a=t;a{l.value.push(...e[a])}),500*a),c.push((()=>clearTimeout(t)))}}(t,1)}function V(e,t,a=!1){var n;const o=[...e];let r=!0;for(a&&(d.value=[]);o.length;){const e=o.shift();t.includes(e[i.dataValue].toString())?(e.checked=!0,e.partChecked=!1,g.delete(e[i.dataValue]),a&&d.value.push(e)):(e.checked=!1,e.visible&&!e.disabled&&(r=!1),g.has(e[i.dataValue])?e.partChecked=!0:e.partChecked=!1),(null==(n=e[i.dataChildren])?void 0:n.length)&&o.push(...e[i.dataChildren])}h.value=r,a&&s("select-change",[...d.value])}function C(e,t){var a;const n=[...t];for(;n.length;){const t=n.shift();if(t[i.dataValue]===e[i.dataValue])return t;(null==(a=t[i.dataChildren])?void 0:a.length)&&n.push(...t[i.dataChildren])}return{}}function T(e){var t;if(!(null==(t=e[i.dataChildren])?void 0:t.length))return[];const a=e[i.dataChildren].reduce(((e,t)=>t.visible?[...e,t]:e),[]);for(let n=0;n!e.disabled));if(a.checked){if(e=Array.from(new Set([...e,a[i.dataValue].toString()])),n.length&&(e=Array.from(new Set([...e,...n.map((e=>e[i.dataValue].toString()))])),n.forEach((e=>{e.partChecked=!1,g.delete(e[i.dataValue])}))),t.length){let a=!1;for(;t.length;){const n=t.shift();if(!n.disabled)if(a)n.partChecked=!0,g.add(n[i.dataValue]);else{n[i.dataChildren].filter((e=>e.visible&&!e.disabled)).every((e=>e.checked))?(n.checked=!0,n.partChecked=!1,g.delete(n[i.dataValue]),e=Array.from(new Set([...e,n[i.dataValue].toString()]))):(n.partChecked=!0,g.add(n[i.dataValue]),a=!0)}}}}else e=e.filter((e=>e!==a[i.dataValue].toString())),n.length&&n.forEach((t=>{e=e.filter((e=>e!==t[i.dataValue].toString()))})),t.length&&t.forEach((t=>{e.includes(t[i.dataValue].toString())&&(t.checked=!1),e=e.filter((e=>e!==t[i.dataValue].toString()));const a=t[i.dataChildren].filter((e=>e.visible&&!e.disabled)).some((e=>e.checked||e.partChecked));t.partChecked=a,a?g.add(t[i.dataValue]):g.delete(t[i.dataValue])}));s("update:modelValue",Qi(i.modelValue)?e.join(","):e)}else{let e=null;e=a.checked?Array.from(new Set([...y.value,a[i.dataValue].toString()])):y.value.filter((e=>e!==a[i.dataValue].toString())),s("update:modelValue",Qi(i.modelValue)?e.join(","):e)}else{let e=[];a.checked&&(e=[a[i.dataValue].toString()]),s("update:modelValue",Qi(i.modelValue)?e.join(","):e)}}function I(e){const t=!e.showChildren;C(e,r.value).showChildren=t,C(e,l.value).showChildren=t}function P(){if(h.value=!h.value,h.value){if(!i.mutiple)return void uni.showToast({title:"单选模式下不能全选",icon:"none",duration:1e3});let e=[];r.value.forEach((t=>{var a;(t.visible||t.disabled&&t.checked)&&(e=Array.from(new Set([...e,t[i.dataValue].toString()])),(null==(a=t[i.dataChildren])?void 0:a.length)&&(e=Array.from(new Set([...e,...T(t).filter((e=>!e.disabled||e.disabled&&e.checked)).map((e=>e[i.dataValue].toString()))]))))})),s("update:modelValue",Qi(i.modelValue)?e.join(","):e)}else A()}function A(){if(i.disabled)return;g.clear();const e=[];d.value.forEach((t=>{t.visible&&t.checked&&t.disabled&&e.push(t[i.dataValue])})),s("update:modelValue",Qi(i.modelValue)?e.join(","):e)}return e.onMounted((()=>{!function({screenHeight:e}){o.value=`${Math.floor(.7*e)}px`}(uni.getSystemInfoSync())})),e.watch((()=>i.dataSource),(e=>{e&&(r.value=S(e),u.value&&(x(),N(r.value)))}),{immediate:!0,deep:!0}),e.watch((()=>i.modelValue),(e=>{const t=e?Array.isArray(e)?e:e.split(","):[];V(r.value,t,!0),l.value.length&&V(l.value,t)}),{immediate:!0}),(n,c)=>{const u=a(e.resolveDynamicComponent("uni-icons"),Y),g=a(e.resolveDynamicComponent("uni-easyinput"),Gi),w=a(e.resolveDynamicComponent("uni-popup"),Ge);return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("view",{class:e.normalizeClass(["select-list",{disabled:t.disabled},{active:y.value.length}]),onClick:k},[e.createElementVNode("view",{class:"left"},[y.value.length?(e.openBlock(),e.createElementBlock("view",{key:0,class:"select-items"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value,(a=>(e.openBlock(),e.createElementBlock("view",{class:"select-item",key:a[t.dataValue]},[e.createElementVNode("view",{class:"name"},[e.createElementVNode("text",null,e.toDisplayString(a[t.dataLabel]),1)]),t.disabled||a.disabled||!t.deleteSource?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("view",{key:0,class:"close",onClick:e.withModifiers((e=>function(e){if(h.value=!1,i.linkage)B(e,!1),s("removeSelect",e);else{const t=y.value.filter((t=>t!==e[i.dataValue].toString()));s("removeSelect",e),s("update:modelValue",Qi(i.modelValue)?t.join(","):t)}}(a)),["stop"])},[e.createVNode(u,{type:"closeempty",size:"16",color:"#999"})],8,["onClick"]))])))),128))])):(e.openBlock(),e.createElementBlock("view",{key:1,class:"no-data"},[e.createElementVNode("text",null,e.toDisplayString(t.placeholder),1)]))]),e.createElementVNode("view",null,[y.value.length&&t.clearable?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(u,{key:0,type:"bottom",color:"#333333"})),e.createElementVNode("view",{onClick:c[0]||(c[0]=e.withModifiers((()=>{}),["stop"]))},[y.value.length&&t.clearable?(e.openBlock(),e.createBlock(u,{key:0,type:"clear",size:"24",color:"#c0c4cc",onClick:A})):e.createCommentVNode("",!0)])])],2),e.createVNode(w,{ref_key:"popup",ref:f,animation:t.animation,"is-mask-click":n.isMaskClick,"mask-background-color":n.maskBackgroundColor,"background-color":n.backgroundColor,"safe-area":t.safeArea,type:"bottom",onChange:_,onMaskClick:E},{default:e.withCtx((()=>[e.createElementVNode("view",{class:"popup-content",style:e.normalizeStyle({height:o.value})},[e.createElementVNode("view",{class:"title"},[t.mutiple&&t.canSelectAll?(e.openBlock(),e.createElementBlock("view",{key:0,class:"left",onClick:P},[e.createElementVNode("text",null,e.toDisplayString(h.value?"取消全选":"全选"),1)])):e.createCommentVNode("",!0),e.createElementVNode("view",{class:"center"},[e.createElementVNode("text",null,e.toDisplayString(t.placeholder),1)]),e.createElementVNode("view",{class:"right",style:e.normalizeStyle({color:t.confirmTextColor}),onClick:b},[e.createElementVNode("text",null,e.toDisplayString(t.confirmText),1)],4)]),t.search?(e.openBlock(),e.createElementBlock("view",{key:0,class:"search-box"},[e.createVNode(g,{maxlength:-1,prefixIcon:"search",placeholder:"搜索",modelValue:p.value,"onUpdate:modelValue":c[1]||(c[1]=e=>p.value=e),"confirm-type":"search",onConfirm:c[2]||(c[2]=e=>v(!1)),onClear:c[3]||(c[3]=e=>v(!0))},null,8,["modelValue"]),e.createElementVNode("button",{type:"primary",size:"mini",class:"search-btn",onClick:c[4]||(c[4]=e=>v(!1))},"搜索")])):e.createCommentVNode("",!0),r.value.length?(e.openBlock(),e.createElementBlock("view",{key:1,class:"select-content"},[e.createElementVNode("scroll-view",{class:"scroll-view-box","scroll-top":m.value,"scroll-y":"true",onTouchmove:c[5]||(c[5]=e.withModifiers((()=>{}),["stop"]))},[l.value.length?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("view",{key:0,class:"no-data center"},[e.createElementVNode("text",null,"暂无数据")])),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.value,(a=>(e.openBlock(),e.createBlock(Xi,{key:a[t.dataValue],node:a,dataLabel:t.dataLabel,dataValue:t.dataValue,dataChildren:t.dataChildren,choseParent:t.choseParent,border:t.border,linkage:t.linkage,lazyLoadChildren:t.lazyLoadChildren},null,8,["node","dataLabel","dataValue","dataChildren","choseParent","border","linkage","lazyLoadChildren"])))),128)),e.createElementVNode("view",{class:"sentry"})],40,["scroll-top"])])):(e.openBlock(),e.createElementBlock("view",{key:2,class:"no-data center"},[e.createElementVNode("text",null,"暂无数据")]))],4)])),_:1},8,["animation","is-mask-click","mask-background-color","background-color","safe-area"])],64)}}}),[["__scopeId","data-v-0768d7c7"]]),ts={__name:"application",setup(n){const i=H(),{proxy:s}=e.getCurrentInstance(),r=e.ref(i.userinfo.realname),l=e.ref(""),c=e.ref(i.userinfo.phone),u=e.ref(""),h=e.ref([]),m=e.ref(""),p=e=>{m.value=e.detail.value},f=e.ref(""),g=e=>{f.value=e.detail.value},y=e.ref([]),v=e.ref(null),w=e.ref(!0),k=e.ref(""),b=e.ref(""),_=e.ref(""),E=e.ref([]),S={width:64,height:64,border:{color:"#dce7e1",width:2,style:"dashed",radius:"2px"}};o((()=>{C()}));const x=e=>{e.tempFilePaths;for(let t=0;t{E.value.push(JSON.parse(e.data).message)}})}},N=()=>{return c.value.trim()?u.value?m.value?f.value?w.value&&null==v.value?s.$toast("请选择审批领导"):b.value.trim()?_.value.trim()?void(e={username:i.userinfo.username,phone:c.value,type:u.value,begintime:m.value,endtime:f.value,examineleader:y.value[v.value].username,address:b.value,reason:_.value,zwmc:k.value,path:E.value.toString()},d({url:"/CxcQxj/cxcQxj/add",method:"post",data:e})).then((e=>{e.success?V(e.message):s.$toast(e.message)})):s.$toast("请输入请假事由"):s.$toast("请输入请假地点"):s.$toast("请选择结束时间"):s.$toast("请选择开始时间"):s.$toast("请选择请假类型"):s.$toast("请输入联系方式");var e},V=e=>{var a;(a={flowCode:"dev_cxc_qxj",id:e,formUrl:"modules/qxj/modules/CxcQxjBpmModel",formUrlMobile:"leaveApplication"},d({url:"/process/extActProcess/startMutilProcess",method:"post",data:a})).then((e=>{e.success&&(s.$toast(e.message),setTimeout((()=>{uni.navigateBack()}),2e3))})).catch((e=>{t("log","at pages/leave/application.vue:235",e)}))},C=()=>{var e,t,a;(e="1838487445813645313",d({url:"/sys/category/findtree",method:"get",data:{pid:e}})).then((e=>{e.success&&(h.value=e.result)})),(t=i.userinfo.orgCode,d({url:"/sys/sysDepart/queryDepNameByDepCode",method:"get",data:{code:t}})).then((e=>{e.success&&(l.value=e.result)})),(a=i.userinfo.username,d({url:"/CxcQxj/cxcQxj/queryZwmcByUsername",method:"get",data:{username:a}})).then((e=>{e.success?(y.value=e.result.list,k.value=e.result.zwmc,"单位专家"!=k.value&&"正职"!=k.value&&"高级主管"!=k.value||(w.value=!1)):s.$toast(e.message)}))},T=e=>{v.value=e.detail.value};return(t,n)=>{const s=a(e.resolveDynamicComponent("uni-icons"),Y),o=a(e.resolveDynamicComponent("uni-file-picker"),Yi);return e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass({gray:1==e.unref(i).isgray})},[e.createElementVNode("view",{class:"form"},[e.createElementVNode("view",{class:"f-row aic jcb input_box"},[e.createElementVNode("view",{class:"title"}," 职工姓名: "),e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":n[0]||(n[0]=e=>r.value=e),disabled:""},null,512),[[e.vModelText,r.value]])]),e.createElementVNode("view",{class:"f-row aic jcb input_box"},[e.createElementVNode("view",{class:"title"}," 工作单位: "),e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":n[1]||(n[1]=e=>l.value=e),disabled:""},null,512),[[e.vModelText,l.value]])]),e.createElementVNode("view",{class:"f-row aic jcb input_box"},[e.createElementVNode("view",{class:"title"}," 联系方式: "),e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":n[2]||(n[2]=e=>c.value=e)},null,512),[[e.vModelText,c.value]])]),e.createElementVNode("view",{class:"f-row aic jcb input_box"},[e.createElementVNode("view",{class:"title"}," 请假类型: "),e.createVNode(es,{dataSource:h.value,modelValue:u.value,"onUpdate:modelValue":n[3]||(n[3]=e=>u.value=e),dataValue:"name"},null,8,["dataSource","modelValue"])]),e.createElementVNode("picker",{mode:"date",fields:"day",onChange:p,value:m.value},[e.createElementVNode("view",{class:"f-row aic jcb box"},[e.createElementVNode("view",{class:"title"}," 开始时间: "),e.createElementVNode("view",{class:"f-row aic"},[e.createElementVNode("view",{class:e.normalizeClass([{choose:!m.value},{choosed:m.value}])},e.toDisplayString(m.value?m.value:"请选择"),3),e.createVNode(s,{type:"bottom",color:"#333333"})])])],40,["value"]),e.createElementVNode("picker",{mode:"date",fields:"day",onChange:g,value:f.value},[e.createElementVNode("view",{class:"f-row aic jcb box"},[e.createElementVNode("view",{class:"title"}," 截止时间: "),e.createElementVNode("view",{class:"f-row aic"},[e.createElementVNode("view",{class:e.normalizeClass([{choose:!f.value},{choosed:f.value}])},e.toDisplayString(f.value?f.value:"请选择"),3),e.createVNode(s,{type:"bottom",color:"#333333"})])])],40,["value"]),w.value?(e.openBlock(),e.createElementBlock("picker",{key:0,onChange:T,value:v.value,range:y.value,"range-key":"realname"},[e.createElementVNode("view",{class:"f-row aic jcb box"},[e.createElementVNode("view",{class:"title"}," 审批领导: "),e.createElementVNode("view",{class:"f-row aic"},[e.createElementVNode("view",{class:e.normalizeClass([{choose:null==v.value},{choosed:null!=v.value}])},e.toDisplayString(null!=v.value?y.value[v.value].realname:"请选择"),3),e.createVNode(s,{type:"bottom",color:"#333333"})])])],40,["value","range"])):e.createCommentVNode("",!0),e.createElementVNode("view",{class:"f-row aic jcb input_box"},[e.createElementVNode("view",{class:"title"}," 请假地点: "),e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":n[4]||(n[4]=e=>b.value=e),placeholder:"请输入","nplaceholder-style":"font-size: 28rpx;color: #999999;"},null,512),[[e.vModelText,b.value]])]),e.createElementVNode("view",{class:"f-row aic jcb input_box"},[e.createElementVNode("view",{class:"title"}," 请假事由: "),e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":n[5]||(n[5]=e=>_.value=e),placeholder:"请输入","placeholder-style":"font-size: 28rpx;color: #999999;"},null,512),[[e.vModelText,_.value]])]),e.createElementVNode("view",{class:"f-row aic jcb input_box"},[e.createElementVNode("view",{class:"title"}," 上传附件: "),e.createVNode(o,{onSelect:x,"image-styles":S})])]),e.createElementVNode("view",{class:"btn f-col aic"},[e.createElementVNode("view",{onClick:N}," 提交 ")])],2)}}},as=q(ts,[["__scopeId","data-v-6e3acbe9"]]),ns=q({__name:"index",setup(t){const n=H(),i=()=>{uni.navigateBack()};return(t,s)=>{const o=a(e.resolveDynamicComponent("uni-icons"),Y);return e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass(["content",{gray:1==e.unref(n).isgray}])},[e.createVNode(xe,null,{default:e.withCtx((()=>[e.createElementVNode("view",{class:"nav_box f-row aic"},[e.createElementVNode("view",{class:"back",onClick:i},[e.createVNode(o,{type:"left",size:"20",color:"#fff"})]),e.createElementVNode("view",{class:"avatar"},[e.createElementVNode("image",{src:e.unref(n).userinfo.avatar,mode:""},null,8,["src"])]),e.createElementVNode("view",{class:"f-col"},[e.createElementVNode("view",{class:"name"},e.toDisplayString(e.unref(n).userinfo.realname),1),e.createElementVNode("view",{class:"position"},e.toDisplayString(e.unref(n).role),1)])])])),_:1}),e.createElementVNode("view",{class:"time_box f-row aic jcb"},[e.createElementVNode("view",{class:"box"},[e.createElementVNode("view",{class:"time f-row aic"},[e.createElementVNode("view",{class:""}," 上班 9:30 "),e.createElementVNode("image",{src:"/static/checkin/chenggong.png",mode:""})]),e.createElementVNode("view",{class:"text"}," 重庆市渝北区上弯路 ")]),e.createElementVNode("view",{class:"box"},[e.createElementVNode("view",{class:"time f-row aic"},[e.createElementVNode("view",{class:""}," 下班 16:30 "),e.createElementVNode("image",{src:"/static/checkin/shibai.png",mode:""})]),e.createElementVNode("view",{class:"text"}," 打卡已超时 ")])]),e.createElementVNode("view",{class:"checkin"},[e.createElementVNode("view",{class:"f-col aic"},[e.createElementVNode("view",{class:"status f-col aic"},[e.createElementVNode("image",{src:"/static/checkin/position4.png",mode:""}),e.createElementVNode("text",null,"打卡失败")]),e.createElementVNode("view",{class:e.normalizeClass(["circle","f-col","aic","out","check","success","fail"])},[e.createElementVNode("view",{class:"title"}," 上班打卡 "),e.createElementVNode("view",{class:"time"}," 9:00 "),e.createElementVNode("view",{class:"ontime"}," 已超时 ")])])])],2)}}},[["__scopeId","data-v-f70ab478"]]),is=q({__name:"useredit",setup(n){const i=H(),s=()=>{uni.chooseImage({count:1,success:e=>{const a=e.tempFilePaths,n="用户头像/"+i.userinfo.realname;uni.uploadFile({url:"https://36.112.48.190/jeecg-boot/sys/common/upload",filePath:a[0],name:"file",formData:{appPath:n},success:e=>{var a;uni.showLoading({title:"上传中..."}),r.avatar=JSON.parse(e.data).message,(a={avatar:r.avatar,id:i.userinfo.id},d({url:"/sys/user/editApp",method:"PUT",data:a})).then((e=>{e&&uni.showToast({title:e,icon:"success",duration:2e3})})).catch((e=>{t("log","at pages/useredit/useredit.vue:97",e)}))},fail(e){t("log","at pages/useredit/useredit.vue:101","图片上传出错",e)}})}})},r=e.reactive({avatar:"",realname:"",phone:""}),l=()=>{uni.showModal({title:"退出登录",content:"您确认要退出登录吗?",success(e){e.confirm&&(uni.removeStorageSync("token"),uni.removeStorageSync("user"),uni.removeStorageSync("role"),uni.removeStorageSync("logintime"),uni.reLaunch({url:"/pages/login/login"}))}})};return o((()=>{uni.setNavigationBarColor({frontColor:"#ffffff",backgroundColor:"#bebebe"})})),(t,n)=>{const o=a(e.resolveDynamicComponent("uni-icons"),Y);return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("view",{class:e.normalizeClass(["content",{gray:1==e.unref(i).isgray}])},[e.createElementVNode("view",{class:"box"},[e.createElementVNode("view",null,"头像"),e.createElementVNode("view",{style:{display:"flex","align-items":"center"}},[e.createElementVNode("button",{class:"head-btn",onClick:s},[r.avatar?(e.openBlock(),e.createElementBlock("image",{key:1,class:"head-img",src:e.unref(Re)(r.avatar)},null,8,["src"])):(e.openBlock(),e.createElementBlock("image",{key:0,class:"head-img",src:e.unref(Re)(e.unref(i).userinfo.avatar),mode:""},null,8,["src"]))]),e.createVNode(o,{type:"right",size:"24"})])]),e.createElementVNode("view",{class:"box",style:{"padding-top":"30rpx","padding-bottom":"30rpx"}},[e.createElementVNode("view",null,"姓名"),e.withDirectives(e.createElementVNode("input",{disabled:"",style:{"text-align":"right"},type:"nickname","placeholder-style":"font-size: 32rpx;color: #999999;","onUpdate:modelValue":n[0]||(n[0]=t=>e.unref(i).userinfo.realname=t),placeholder:"请输入姓名"},null,512),[[e.vModelText,e.unref(i).userinfo.realname]])]),e.createElementVNode("view",{class:"box",style:{"padding-top":"30rpx","padding-bottom":"30rpx"}},[e.createElementVNode("view",null,"手机号"),e.withDirectives(e.createElementVNode("input",{disabled:"",style:{"text-align":"right"},type:"nickname","onUpdate:modelValue":n[1]||(n[1]=t=>e.unref(i).userinfo.phone=t),placeholder:"请输入手机号","placeholder-style":"font-size: 32rpx;color: #999999;"},null,512),[[e.vModelText,e.unref(i).userinfo.phone]])]),e.createElementVNode("view",{class:"box",style:{"padding-top":"30rpx","padding-bottom":"30rpx"}},[e.createElementVNode("view",null,"劳动合同号"),e.withDirectives(e.createElementVNode("input",{style:{"text-align":"right"},type:"nickname",disabled:"","onUpdate:modelValue":n[2]||(n[2]=t=>e.unref(i).userinfo.workNo=t),placeholder:"请输入劳动合同号","placeholder-style":"font-size: 32rpx;color: #999999;"},null,512),[[e.vModelText,e.unref(i).userinfo.workNo]])])],2),e.createElementVNode("view",{class:"line"}),e.createElementVNode("view",{class:"btn",onClick:l}," 退出登录 ")],64)}}},[["__scopeId","data-v-3dbb4317"]]),ss=q({__name:"address",setup(t){const a=H();return(t,n)=>(e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass(["content",{gray:1==e.unref(a).isgray}])},[e.createElementVNode("view",{class:"list"},[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(2,((t,a)=>e.createElementVNode("view",{class:"item",key:a},[e.createElementVNode("view",{class:"province f-row aic"},[e.createElementVNode("view",{class:""}," 浙江省,杭州市 "),e.createElementVNode("image",{src:"/static/my/default.png",mode:""})]),e.createElementVNode("view",{class:"address f-row jcb"},[e.createElementVNode("view",{class:""}," 重庆 重庆市 渝北区 龙溪街道花卉园东路黄金 宝高级住宅小区 "),e.createElementVNode("image",{src:"/static/my/edit.png",mode:""})]),e.createElementVNode("view",{class:"set f-row aic jcb"},[e.createElementVNode("view",{class:"f-row aic"},[e.createElementVNode("image",{src:"/static/login/nocheck.png",mode:""}),e.createTextVNode(" 设为默认地址 ")]),e.createElementVNode("view",{class:""}," 删除 ")])]))),64))]),e.createElementVNode("view",{class:"btn f-col aic"},[e.createElementVNode("view",{class:"",onClick:n[0]||(n[0]=e=>{var t;Ce(t="/pages/useredit/add_address",(()=>{uni.navigateTo({url:t})}))})}," +添加收货地址 ")])],2))}},[["__scopeId","data-v-837db36d"]]),os=q({__name:"add_address",setup(t){const a=H();return(t,n)=>(e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass(["content",{gray:1==e.unref(a).isgray}])},[e.createElementVNode("view",{class:"area f-row jcb"},[e.createElementVNode("view",{class:"title topic"}," 所在地区 "),e.createElementVNode("input",{type:"text",placeholder:"省、市、区、街道"})]),e.createElementVNode("view",{class:"area f-row jcb"},[e.createElementVNode("view",{class:"title topic"}," 详细地址 "),e.createElementVNode("textarea",{placeholder:"小区楼栋/乡村名称"})]),e.createElementVNode("view",{class:"area f-row jcb"},[e.createElementVNode("view",{class:"title"}," 设为默认地址 "),e.createElementVNode("image",{src:"/static/login/checked.png",mode:""})]),e.createElementVNode("view",{class:"btn f-col aic"},[e.createElementVNode("view",{class:""}," 保存 ")])],2))}},[["__scopeId","data-v-c71fcfcd"]]),rs=q({__name:"addressbook",setup(t){const a=H();return(t,n)=>(e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass({gray:1==e.unref(a).isgray})},[e.createElementVNode("view",{class:"list"},[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(4,((t,a)=>e.createElementVNode("view",{class:"item f-row aic jcb",key:a},[e.createElementVNode("view",{class:"user f-row aic"},[e.createElementVNode("image",{src:"",mode:""}),e.createElementVNode("view",{class:"name_job"},[e.createElementVNode("view",{class:"name"}," 我是晴天 "),e.createElementVNode("view",{class:"job"}," 销售部-销售总监 ")])]),e.createElementVNode("view",{class:"btn"}," 电话联系 ")]))),64))])],2))}},[["__scopeId","data-v-e9ce91fd"]]),ls=q({__name:"safeCom",setup:t=>(t,a)=>(e.openBlock(),e.createElementBlock("view",{class:"list f-row aic jcb"},[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(20,((t,n)=>e.createElementVNode("view",{class:"item",key:n,onClick:a[0]||(a[0]=e=>{var t;Ce(t="/pages/safe/detail",(()=>{uni.navigateTo({url:t})}))})},[e.createElementVNode("view",{class:""},[e.createElementVNode("image",{src:"",mode:""})]),e.createElementVNode("view",{class:"text"}," 五月天“突然好想你”线上演唱会精彩回放 ")]))),64))]))},[["__scopeId","data-v-bc41e6b3"]]),cs=q({__name:"manage",setup(t){const n=H(),i=e.ref(!0),s=e.ref("");return(t,o)=>{const r=a(e.resolveDynamicComponent("uni-icons"),Y);return e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass(["content",{gray:1==e.unref(n).isgray}])},[e.createVNode(xe,null,{default:e.withCtx((()=>[e.createElementVNode("view",{class:"nav_box f-row aic jcb"},[e.createElementVNode("view",{class:"back f-row aic",onClick:o[0]||(o[0]=(...e)=>t.back&&t.back(...e))},[e.createVNode(r,{type:"left",size:"20",color:"#fff"})]),e.createElementVNode("view",{class:"search f-row aic"},[e.withDirectives(e.createElementVNode("input",{type:"text","onUpdate:modelValue":o[1]||(o[1]=e=>s.value=e),onConfirm:o[2]||(o[2]=(...e)=>t.search&&t.search(...e)),onBlur:o[3]||(o[3]=e=>i.value=!s.value),onFocus:o[4]||(o[4]=e=>i.value=!1)},null,544),[[e.vModelText,s.value]]),i.value?(e.openBlock(),e.createElementBlock("view",{key:0,class:"f-row aic"},[e.createElementVNode("image",{src:"/static/search.png",mode:""}),e.createElementVNode("text",null,"搜索")])):e.createCommentVNode("",!0)])])])),_:1}),e.createElementVNode("view",{class:""},[e.createVNode(ls)])],2)}}},[["__scopeId","data-v-02e8f217"]]),ds=q({__name:"dataCom",props:{title:{type:String,default:""},list:{type:Array,default:function(){return[]}}},setup(t){e.useCssVars((e=>({"09ebbe2f":s.value})));const n=t,i=e.ref(!1),s=e.ref(null);return e.watch((()=>n.list),(()=>{e.nextTick((()=>{uni.createSelectorQuery().select(".data_box").boundingClientRect((e=>{s.value=((null==e?void 0:e.height)||0)+"px"})).exec()}))}),{immediate:!0}),(n,s)=>{const o=a(e.resolveDynamicComponent("uni-icons"),Y);return e.openBlock(),e.createElementBlock("view",{class:""},[e.createElementVNode("view",{class:"info"},[e.createElementVNode("view",{class:"item_box"},[e.createElementVNode("view",{class:"item"},[e.createElementVNode("view",{class:"title_box f-row aic jcb"},[e.createElementVNode("view",{class:"title"},e.toDisplayString(t.title),1),t.list.length>6?(e.openBlock(),e.createElementBlock("view",{key:0,class:"f-row aic more",onClick:s[0]||(s[0]=e=>i.value=!i.value)},[e.createElementVNode("text",null,e.toDisplayString(i.value?"收起":"展开"),1),i.value?(e.openBlock(),e.createBlock(o,{key:1,type:"up",color:"#999999"})):(e.openBlock(),e.createBlock(o,{key:0,type:"down",color:"#999999"}))])):e.createCommentVNode("",!0)]),e.createElementVNode("view",{class:e.normalizeClass(["data_wrapper",{close:t.list.length>6&&i.value}])},[e.createElementVNode("view",{class:"data_box f-row aic"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.list,((t,a)=>(e.openBlock(),e.createElementBlock("view",{class:"data f-col aic"},[e.createElementVNode("view",{class:""},e.toDisplayString(null==t?void 0:t.dailyVolume),1),e.createElementVNode("text",null,e.toDisplayString(t.gas),1)])))),256))])],2)])])])])}}},[["__scopeId","data-v-40acdf41"]]),us={__name:"index",setup(t){const a=H(),n=e.ref([]),i=e.ref([]);return o((e=>{n.value=JSON.parse(e.shishi),i.value=JSON.parse(e.product)})),(t,s)=>(e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass(["f-col","aic",{gray:1==e.unref(a).isgray}])},[e.createVNode(ds,{title:"实时输差",list:n.value},null,8,["list"]),e.createVNode(ds,{title:"偏远计量点",list:n.value},null,8,["list"]),e.createVNode(ds,{title:"生产实时数据",list:i.value},null,8,["list"])],2))}},hs={en:{"uni-load-more.contentdown":"Pull up to show more","uni-load-more.contentrefresh":"loading...","uni-load-more.contentnomore":"No more data"},"zh-Hans":{"uni-load-more.contentdown":"上拉显示更多","uni-load-more.contentrefresh":"正在加载...","uni-load-more.contentnomore":"没有更多数据了"},"zh-Hant":{"uni-load-more.contentdown":"上拉顯示更多","uni-load-more.contentrefresh":"正在加載...","uni-load-more.contentnomore":"沒有更多數據了"}};let ms;setTimeout((()=>{ms=uni.getSystemInfoSync().platform}),16);const{t:ps}=ge(hs);const fs=q({name:"UniLoadMore",emits:["clickLoadMore"],props:{status:{type:String,default:"more"},showIcon:{type:Boolean,default:!0},iconType:{type:String,default:"auto"},iconSize:{type:Number,default:24},color:{type:String,default:"#777777"},contentText:{type:Object,default:()=>({contentdown:"",contentrefresh:"",contentnomore:""})},showText:{type:Boolean,default:!0}},data:()=>({webviewHide:!1,platform:ms,imgBase64:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyJpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNiAoV2luZG93cykiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6QzlBMzU3OTlEOUM0MTFFOUI0NTZDNERBQURBQzI4RkUiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6QzlBMzU3OUFEOUM0MTFFOUI0NTZDNERBQURBQzI4RkUiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDpDOUEzNTc5N0Q5QzQxMUU5QjQ1NkM0REFBREFDMjhGRSIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDpDOUEzNTc5OEQ5QzQxMUU5QjQ1NkM0REFBREFDMjhGRSIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/Pt+ALSwAAA6CSURBVHja1FsLkFZVHb98LM+F5bHL8khA1iSeiyQBCRM+YGqKUnnJTDLGI0BGZlKDIU2MMglUiDApEZvSsZnQtBRJtKwQNKQMFYeRDR10WOLd8ljYXdh+v8v5fR3Od+797t1dnOnO/Ofce77z+J//+b/P+ZqtXbs2sJ9MJhNUV1cHJ06cCJo3bx7EPc2aNcvpy7pWrVoF+/fvDyoqKoI2bdoE9fX1F7TjN8a+EXBn/fkfvw942Tf+wYMHg9mzZwfjxo0LDhw4EPa1x2MbFw/fOGfPng1qa2tzcCkILsLDydq2bRsunpOTMM7TD/W/tZDZhPdeKD+yGxHhdu3aBV27dg3OnDlzMVANMheLAO3btw8KCwuDmpoaX5OxbgUIMEq7K8IcPnw4KCsrC/r37x8cP378/4cAXAB3vqSkJMuiDhTkw+XcuXNhOWbMmKBly5YhUT8xArhyFvP0BfwRsAuwxJZJsm/nzp2DTp06he/OU+cZ64K6o0ePBkOHDg2GDx8e6gEbJ5Q/NHNuAJQ1hgBeHUDlR7nVTkY8rQAvAi4z34vR/mPs1FoRsaCgIJThI0eOBC1atEiFGGV+5MiRoS45efJkqFjJFXV1dQuA012m2WcwTw98fy6CqBdsaiIO4CScrGPHjvk4odhavPquRtFWXEC25VgkREKOCh/qDSq+vn37htzD/mZTOmOc5U7zKzBPEedygWshcDyWvs30igAbU+6oyMgJBCFhwQE0fccxN60Ay9iebbjoDh06hMowjQxT4fXq1SskArmHZpkArvixp/kWzHdMeArExSJEaiXIjjRjRJ4DaAGWpibLzXN3Fm1vA5teBgh3j1Rv3bp1YgKwPdmf2p9zcyNYYgPKMfY0T5f5nNYdw158nJ8QawW4CLKwiOBSEgO/hok2eBydR+3dYH+PLxA5J8Vv0KBBwenTp0P2JWAx6+yFEBfs8lMY+y0SWMBNI9E4ThKi58VKTg3FQZS1RQF1cz27eC0QHMu+3E0SkUowjhVt5VdaWhp07949ZHv2Qd1EjDXM2cla1M0nl3GxAs3J9yREzyTdFVKVFOaE9qRA8GM0WebRuo9JGZKA7Mv2SeS/Z8+eoQ9BArMfFrLGo6jvxbhHbJZnKX2Rzz1O7QhJJ9Cs2ZMaWIyq/zhdeqPNfIoHd58clIQD+JSXl4dKlyIAuBdVXZwFVWKspSSoxE++h8x4k3uCnEhE4I5KwRiFWGOU0QWKiCYLbdoRMRKAu2kQ9vkfLU6dOhX06NEjlH+yMRZSinnuyWnYosVcji8CEA/6Cg2JF+IIUBqnGKUTCNwtwBN4f89RiK1R96DEgO2o0NDmtEdvVFdVVYV+P3UAPUEs6GFwV3PHmXkD4vh74iDFJysVI/MlaQhwKeBNTLYX5VuA8T4/gZxA4MRGFxDB6R7OmYPfyykGRJbyie+XnGYnQIC/coH9+vULiYrxrkL9ZA9+0ykaHIfEpM7ge8TiJ2CsHYwyMfafAF1yCGBHYIbCVDjDjKt7BeB51D+LgQa6OkG7IDYEEtvQ7lnXLKLtLdLuJBpE4gPUXcW2+PkZwOex+4cGDhwYDBkyRL7/HFcEwUGPo/8uWRUpYnfxGHco8HkewLHLyYmAawAPuIFZxhOpDfJQ8gbUv41yORAptMWBNr6oqMhWird5+u+iHmBb2nhjDV7HWBNQTgK8y11l5NetWzc5ULscAtSj7nbNI0skhWeUZCc0W4nyH/jO4Vz0u1IeYhbk4AiwM6tjxIWByHsoZ9qcIBPJd/y+DwPfBESOmCa/QF3WiZHucLlEDpNxcNhmheEOPgdQNx6/VZFQzFZ5TN08AHXQt2Ii3EdyFuUsPtTcGPhW5iMiCNELvz+Gdn9huG4HUJaW/w3g0wxV0XaG7arG2WeKiUWYM4Y7GO5ezshTARbbWGw/DvXkpp/ivVvE0JVoMxN4rpGzJMhE5Pl+xlATsDIqikP9F9D2z3h9nOksEUFhK+qO4rcPkoalMQ/HqJLIyb3F3JdjrCcw1yZ8joyJLR5gCo54etlag7qIoeNh1N1BRYj3DTFJ0elotxPlVzkGuYAmL0VSJVGAJA41c4Z6A3BzTLfn0HYwYKEI6CUAMzZEWvLsIcQOo1AmmyyM72nHJCfYsogflGV6jEk9vyQZXSuq6w4c16NsGcGZbwOPr+H1RkOk2LEzjNepxQkihHSCQ4ynAYNRx2zMKV92CQMWqj8J0BRE8EShxRFN6YrfCRhC0x3r/Zm4IbQCcmJoV0kMamllccR6FjHqUC5F2R/wS2dcymOlfAKOS4KmzQb5cpNC2MC7JhVn5wjXoJ44rYhLh8n0eXOCorJxa7POjbSlCGVczr34/RsAmrcvo9s+wGp3tzVhntxiXiJ4nvEYb4FJkf0O8HocAePmLvCxnL0AORraVekJk6TYjDabRVXfRE2lCN1h6ZQRN1+InUbsCpKwoBZHh0dODN9JBCUffItXxEavTQkUtnfTVAplCWL3JISz29h4NjotnuSsQKJCk8dF+kJR6RARjrqFVmfPnj3ZbK8cIJ0msd6jgHPGtfVTQ8VLmlvh4mct9sobRmPic0DyDQQnx/NlfYUgyz59+oScsH379pAwXABD32nTpoUHIToESeI5mnbE/UqDdyLcafEBf2MCqgC7NwxIbMREJQ0g4D4sfJwnD+AmRrII05cfMWJE+L1169bQr+fip06dGp4oJ83lmYd5wj/EmMa4TaHivo4EeCguYZBnkB5g2aWA69OIEnUHOaGysjIYMGBAMGnSpODYsWPZwCpFmm4lNq+4gSLQA7jcX8DwtjEyRC8wjabnXEx9kfWnTJkSJkAo90xpJVV+FmcVNeYAF5zWngS4C4O91MBxmAv8blLEpbjI5sz9MTdAhcgkCT1RO8mZkAjfiYpTEvStAS53Uw1vAiUGgZ3GpuQEYvoiBqlIan7kSDHnTwJQFNiPu0+5VxCVYhcZIjNrdXUDdp+Eq5AZ3Gkg8QAyVZRZIk4Tl4QAbF9cXJxNYZMAtAokgs4BrNxEpCtteXg7DDTMDKYNSuQdKsnJBek7HxewvxaosWxLYXtw+cJp18217wql4aKCfBNoEu0O5VU+PhctJ0YeXD4C6JQpyrlpSLTojpGGGN5YwNziChdIZLk4lvLcFJ9jMX3QdiImY9bmGQU+TRUL5CHITTRlgF8D9ouD1MfmLoEPl5xokIumZ2cfgMpHt47IW9N64Hsh7wQYYjyIugWuF5fCqYncXRd5vPMWyizzvhi/32+nvG0dZc9vR6fZOu0md5e+uC408FvKSIOZwXlGvxPv95izA2Vtvg1xKFWARI+vMX66HUhpQQb643uW1bSjuTWyw2SBvDrBvjFic1eGGlz5esq3ko9uSIlBRqPuFcCv8F4WIcN12nVaBd0SaYwI6PDDImR11JkqgHcPmQssjxIn6bUshygDFJUTxPMpHk+jfjPgupgdnYV2R/g7xSjtpah8RJBewhwf0gGK6XI92u4wXFEU40afJ4DN4h5LcAd+40HI3JgJecuT0c062W0i2hQJUTcxan3/CMW1PF2K6bbA+Daz4xRs1D3Br1Cm0OihKCqizW78/nXAF/G5TXrEcVzaNMH6CyMswqsAHqDyDLEyou8lwOXnKF8DjI6KjV3KzMBiXkDH8ij/H214J5A596ekrZ3F0zXlWeL7+P5eUrNo3/QwC15uxthuzidy7DzKRwEDaAViiDgKbTbz7CJnzo0bN7pIfIiid8SuPwn25o3QCmpnyjlZkyxPP8EomCJzrGb7GJMx7tNsq4MT2xMUYaiErZOluTzKsnz3gwCeCZyVRZJfYplNEokEjwrPtxlxjeYAk+F1F74VAzPxQRNYYdtpOUvWs8J1sGhBJMNsb7igN8plJs1eSmLIhLKE4rvaCX27gOhLpLOsIzJ7qn/i+wZzcvSOZ23/du8TZjwV8zHIXoP4R3ifBxiFz1dcVpa3aPntPE+c6TmIWE9EtcMmAcPdWAhYhAXxcLOQi9L1WhD1Sc8p1d2oL7XGiRKp8F4A2i8K/nfI+y/gsTDJ/YC/8+AD5Uh04KHiGl+cIFPnBDDrPMjwRGkLXyxO4VGbfQWnDH2v0bVWE3C9QOXlepbgjEfIJQI6XDG3z5ahD9cw2pS78ipB85wyScNTvsVzlzzhL8/jRrnmVjfFJK/m3m4nj9vbgQTguT8XZTjsm672R5uJKEaQmBI/c58gyus8ZDagLpEVSJBIyHp4jn++xqPV71OgQgJYEWOtZ/haxRtKmWOBu8xdBLftWltsY84zE6WIEy/eIOWL+BaayMx+KHtL7EAkqdNDLiEXmEMUHniedtJqg9HmZtfvt26vNi0BdG3Ft3g8ZOf7PAu59TxtzivLNIekyi+wD1i8CuUiD9FXAa8C+/xS3JPmZnomyc7H+fb4/Se0bk41Fel621r4cgVxbq91V4jVqwB7HTe2M7jgB+QWHavZkDRPmZcASoZEmBx6i75bGjPcMdL4/VKGFAGWZkGzPG0XAbdL9A81G5LOmUnC9hHKJeO7dcUMjblSl12867ElFTtaGl20xvvLGPdVz/8TVuU7y0x1PG7vtNg24oz9Uo/Z412++VFWI7Fcog9tu9Lm6gvRmIPv9x1xmQAu6RDkXtbOtlGEmpgD5Nvnyc0dcv0EE6cfdi1HmhMf9wDF3k3gtRvEedhxjpgfqPb9PU9iEJHnyOUA7bQUXh6kq/D7l2iTjWv7XOD530BDr8jIrus+srXjt4MzumJMHuTsBa63YKE1+RR5lBjEikCCnWKWiHdzOgKO+nRIBAF88za/IFmJ3eMZov4CYxGBabcpGL8EYx+SeMXJeRwHNsV/h+vdxeuhEpN3ZyNY78Gm2fknJxVGhyjixPiQvVkNzT1elD9Py/aTAL64Hb9vcYmC9zfdXdT/C1LeGbg4rnBaAihDFJH12W5ulfNCNe/xTsP3bp8ikzJs5BF+5PNfAQYAPaseTdsEcaYAAAAASUVORK5CYII="}),computed:{iconSnowWidth(){return 2*(Math.floor(this.iconSize/24)||1)},contentdownText(){return this.contentText.contentdown||ps("uni-load-more.contentdown")},contentrefreshText(){return this.contentText.contentrefresh||ps("uni-load-more.contentrefresh")},contentnomoreText(){return this.contentText.contentnomore||ps("uni-load-more.contentnomore")}},mounted(){var e=getCurrentPages(),t=e[e.length-1].$getAppWebview();t.addEventListener("hide",(()=>{this.webviewHide=!0})),t.addEventListener("show",(()=>{this.webviewHide=!1}))},methods:{onClick(){this.$emit("clickLoadMore",{detail:{status:this.status}})}}},[["render",function(t,a,n,i,s,o){return e.openBlock(),e.createElementBlock("view",{class:"uni-load-more",onClick:a[0]||(a[0]=(...e)=>o.onClick&&o.onClick(...e))},[!s.webviewHide&&("circle"===n.iconType||"auto"===n.iconType&&"android"===s.platform)&&"loading"===n.status&&n.showIcon?(e.openBlock(),e.createElementBlock("view",{key:0,style:e.normalizeStyle({width:n.iconSize+"px",height:n.iconSize+"px"}),class:"uni-load-more__img uni-load-more__img--android-MP"},[e.createElementVNode("view",{class:"uni-load-more__img-icon",style:e.normalizeStyle({borderTopColor:n.color,borderTopWidth:n.iconSize/12})},null,4),e.createElementVNode("view",{class:"uni-load-more__img-icon",style:e.normalizeStyle({borderTopColor:n.color,borderTopWidth:n.iconSize/12})},null,4),e.createElementVNode("view",{class:"uni-load-more__img-icon",style:e.normalizeStyle({borderTopColor:n.color,borderTopWidth:n.iconSize/12})},null,4)],4)):!s.webviewHide&&"loading"===n.status&&n.showIcon?(e.openBlock(),e.createElementBlock("view",{key:1,style:e.normalizeStyle({width:n.iconSize+"px",height:n.iconSize+"px"}),class:"uni-load-more__img uni-load-more__img--ios-H5"},[e.createElementVNode("image",{src:s.imgBase64,mode:"widthFix"},null,8,["src"])],4)):e.createCommentVNode("",!0),n.showText?(e.openBlock(),e.createElementBlock("text",{key:2,class:"uni-load-more__text",style:e.normalizeStyle({color:n.color})},e.toDisplayString("more"===n.status?o.contentdownText:"loading"===n.status?o.contentrefreshText:o.contentnomoreText),5)):e.createCommentVNode("",!0)])}],["__scopeId","data-v-a7e112cc"]]),gs={props:{localdata:{type:[Array,Object],default:()=>[]},spaceInfo:{type:Object,default:()=>({})},collection:{type:String,default:""},action:{type:String,default:""},field:{type:String,default:""},orderby:{type:String,default:""},where:{type:[String,Object],default:""},pageData:{type:String,default:"add"},pageCurrent:{type:Number,default:1},pageSize:{type:Number,default:500},getcount:{type:[Boolean,String],default:!1},getone:{type:[Boolean,String],default:!1},gettree:{type:[Boolean,String],default:!1},manual:{type:Boolean,default:!1},value:{type:[Array,String,Number],default:()=>[]},modelValue:{type:[Array,String,Number],default:()=>[]},preload:{type:Boolean,default:!1},stepSearh:{type:Boolean,default:!0},selfField:{type:String,default:""},parentField:{type:String,default:""},multiple:{type:Boolean,default:!1},map:{type:Object,default:()=>({text:"text",value:"value"})}},data(){return{loading:!1,errorMessage:"",loadMore:{contentdown:"",contentrefresh:"",contentnomore:""},dataList:[],selected:[],selectedIndex:0,page:{current:this.pageCurrent,size:this.pageSize,count:0}}},computed:{isLocalData(){return!this.collection.length},isCloudData(){return this.collection.length>0},isCloudDataList(){return this.isCloudData&&!this.parentField&&!this.selfField},isCloudDataTree(){return this.isCloudData&&this.parentField&&this.selfField},dataValue(){return(Array.isArray(this.modelValue)?this.modelValue.length>0:null!==this.modelValue||void 0!==this.modelValue)?this.modelValue:this.value},hasValue(){return"number"==typeof this.dataValue||null!=this.dataValue&&this.dataValue.length>0}},created(){this.$watch((()=>{var e=[];return["pageCurrent","pageSize","spaceInfo","value","modelValue","localdata","collection","action","field","orderby","where","getont","getcount","gettree"].forEach((t=>{e.push(this[t])})),e}),((e,t)=>{for(let a=2;a(this.selected=e.result.data,e.result.data)))},getCloudDataTreeValue(){return this.getCommand({field:this._cloudDataPostField(),getTreePath:{startWith:`${this.selfField}=='${this.dataValue}'`}}).then((e=>{let t=[];return this._extractTreePath(e.result.data,t),this.selected=t,t}))},getCommand(e={}){let t=Fi.database(this.spaceInfo);const a=e.action||this.action;a&&(t=t.action(a));const n=e.collection||this.collection;t=t.collection(n);const i=e.where||this.where;i&&Object.keys(i).length&&(t=t.where(i));const s=e.field||this.field;s&&(t=t.field(s));const o=e.orderby||this.orderby;o&&(t=t.orderBy(o));const r=void 0!==e.pageCurrent?e.pageCurrent:this.page.current,l=void 0!==e.pageSize?e.pageSize:this.page.size,c={getCount:void 0!==e.getcount?e.getcount:this.getcount,getTree:void 0!==e.gettree?e.gettree:this.gettree};return e.getTreePath&&(c.getTreePath=e.getTreePath),t=t.skip(l*(r-1)).limit(l).get(c),t},_cloudDataPostField(){let e=[this.field];return this.parentField&&e.push(`${this.parentField} as parent_value`),e.join(",")},_cloudDataTreeWhere(){let e=[],t=this.selected,a=this.parentField;if(a&&e.push(`${a} == null || ${a} == ""`),t.length)for(var n=0;nnull===e.parent_value||void 0===e.parent_value||""===e.parent_value)));for(let i=0;ie.parent_value===s));o.length?a.push(o):n=!1}return{dataList:a,hasNodes:n}},_extractTree(e,t,a){let n=this.map.value;for(let i=0;i{this.loadData()}))},methods:{onPropsChange(){this._treeData=[],this.selectedIndex=0,this.$nextTick((()=>{this.loadData()}))},handleSelect(e){this.selectedIndex=e},handleNodeClick(e,t,a){if(e.disable)return;const n=this.dataList[t][a],i=n[this.map.text],s=n[this.map.value];if(t{e.length?(this._treeData.push(...e),this._updateBindData(n)):n.isleaf=!0,this.onSelectedChange(n,n.isleaf)})))},updateData(e){this._treeData=e.treeData,this.selected=e.selected,this._treeData.length?this._updateBindData():this.loadData()},onDataChange(){this.$emit("datachange")},onSelectedChange(e,t){t&&this._dispatchEvent(),e&&this.$emit("nodeclick",e)},_dispatchEvent(){this.$emit("change",this.selected.slice(0))}}},[["render",function(t,n,i,s,o,r){const l=a(e.resolveDynamicComponent("uni-load-more"),fs);return e.openBlock(),e.createElementBlock("view",{class:"uni-data-pickerview"},[t.isCloudDataList?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("scroll-view",{key:0,class:"selected-area","scroll-x":"true"},[e.createElementVNode("view",{class:"selected-list"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.selected,((a,n)=>(e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass(["selected-item",{"selected-item-active":n==t.selectedIndex}]),key:n,onClick:e=>r.handleSelect(n)},[e.createElementVNode("text",null,e.toDisplayString(a.text||""),1)],10,["onClick"])))),128))])])),e.createElementVNode("view",{class:"tab-c"},[e.createElementVNode("scroll-view",{class:"list","scroll-y":!0},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.dataList[t.selectedIndex],((a,n)=>(e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass(["item",{"is-disabled":!!a.disable}]),key:n,onClick:e=>r.handleNodeClick(a,t.selectedIndex,n)},[e.createElementVNode("text",{class:"item-text"},e.toDisplayString(a[t.map.text]),1),t.selected.length>t.selectedIndex&&a[t.map.value]==t.selected[t.selectedIndex].value?(e.openBlock(),e.createElementBlock("view",{key:0,class:"check"})):e.createCommentVNode("",!0)],10,["onClick"])))),128))]),t.loading?(e.openBlock(),e.createElementBlock("view",{key:0,class:"loading-cover"},[e.createVNode(l,{class:"load-more",contentText:t.loadMore,status:"loading"},null,8,["contentText"])])):e.createCommentVNode("",!0),t.errorMessage?(e.openBlock(),e.createElementBlock("view",{key:1,class:"error-message"},[e.createElementVNode("text",{class:"error-text"},e.toDisplayString(t.errorMessage),1)])):e.createCommentVNode("",!0)])])}],["__scopeId","data-v-c0c521c5"]])},props:{options:{type:[Object,Array],default:()=>({})},popupTitle:{type:String,default:"请选择"},placeholder:{type:String,default:"请选择"},heightMobile:{type:String,default:""},readonly:{type:Boolean,default:!1},clearIcon:{type:Boolean,default:!0},border:{type:Boolean,default:!0},split:{type:String,default:"/"},ellipsis:{type:Boolean,default:!0}},data:()=>({isOpened:!1,inputSelected:[]}),created(){this.$nextTick((()=>{this.load()}))},watch:{localdata:{handler(){this.load()},deep:!0}},methods:{clear(){this._dispatchEvent([])},onPropsChange(){this._treeData=[],this.selectedIndex=0,this.load()},load(){this.readonly?this._processReadonly(this.localdata,this.dataValue):this.isLocalData?(this.loadData(),this.inputSelected=this.selected.slice(0)):(this.isCloudDataList||this.isCloudDataTree)&&(this.loading=!0,this.getCloudDataValue().then((e=>{this.loading=!1,this.inputSelected=e})).catch((e=>{this.loading=!1,this.errorMessage=e})))},show(){this.isOpened=!0,setTimeout((()=>{this.$refs.pickerView.updateData({treeData:this._treeData,selected:this.selected,selectedIndex:this.selectedIndex})}),200),this.$emit("popupopened")},hide(){this.isOpened=!1,this.$emit("popupclosed")},handleInput(){this.readonly?this.$emit("inputclick"):this.show()},handleClose(e){this.hide()},onnodeclick(e){this.$emit("nodeclick",e)},ondatachange(e){this._treeData=this.$refs.pickerView._treeData},onchange(e){this.hide(),this.$nextTick((()=>{this.inputSelected=e})),this._dispatchEvent(e)},_processReadonly(e,t){if(e.findIndex((e=>e.children))>-1){let e;return Array.isArray(t)?(e=t[t.length-1],"object"==typeof e&&e.value&&(e=e.value)):e=t,void(this.inputSelected=this._findNodePath(e,this.localdata))}if(!this.hasValue)return void(this.inputSelected=[]);let a=[];for(let s=0;se.value==n));i&&a.push(i)}a.length&&(this.inputSelected=a)},_filterForArray(e,t){var a=[];for(let s=0;se.value==n));i&&a.push(i)}return a},_dispatchEvent(e){let t={};if(e.length){for(var a=new Array(e.length),n=0;nr.handleInput&&r.handleInput(...e))},[e.renderSlot(t.$slots,"default",{options:i.options,data:o.inputSelected,error:t.errorMessage},(()=>[e.createElementVNode("view",{class:e.normalizeClass(["input-value",{"input-value-border":i.border}])},[t.errorMessage?(e.openBlock(),e.createElementBlock("text",{key:0,class:"selected-area error-text"},e.toDisplayString(t.errorMessage),1)):t.loading&&!o.isOpened?(e.openBlock(),e.createElementBlock("view",{key:1,class:"selected-area"},[e.createVNode(l,{class:"load-more",contentText:t.loadMore,status:"loading"},null,8,["contentText"])])):o.inputSelected.length?(e.openBlock(),e.createElementBlock("scroll-view",{key:2,class:"selected-area","scroll-x":"true"},[e.createElementVNode("view",{class:"selected-list"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.inputSelected,((t,a)=>(e.openBlock(),e.createElementBlock("view",{class:"selected-item",key:a},[e.createElementVNode("text",{class:"text-color"},e.toDisplayString(t.text),1),ar.clear&&r.clear(...e)),["stop"]))},[e.createVNode(c,{type:"clear",color:"#c0c4cc",size:"24"})])):e.createCommentVNode("",!0),i.clearIcon&&o.inputSelected.length||i.readonly?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("view",{key:5,class:"arrow-area"},[e.createElementVNode("view",{class:"input-arrow"})]))],2)]),!0)]),o.isOpened?(e.openBlock(),e.createElementBlock("view",{key:0,class:"uni-data-tree-cover",onClick:n[2]||(n[2]=(...e)=>r.handleClose&&r.handleClose(...e))})):e.createCommentVNode("",!0),o.isOpened?(e.openBlock(),e.createElementBlock("view",{key:1,class:"uni-data-tree-dialog"},[e.createElementVNode("view",{class:"uni-popper__arrow"}),e.createElementVNode("view",{class:"dialog-caption"},[e.createElementVNode("view",{class:"title-area"},[e.createElementVNode("text",{class:"dialog-title"},e.toDisplayString(i.popupTitle),1)]),e.createElementVNode("view",{class:"dialog-close",onClick:n[3]||(n[3]=(...e)=>r.handleClose&&r.handleClose(...e))},[e.createElementVNode("view",{class:"dialog-close-plus","data-id":"close"}),e.createElementVNode("view",{class:"dialog-close-plus dialog-close-rotate","data-id":"close"})])]),e.createVNode(d,{class:"picker-view",ref:"pickerView",modelValue:t.dataValue,"onUpdate:modelValue":n[4]||(n[4]=e=>t.dataValue=e),localdata:t.localdata,preload:t.preload,collection:t.collection,field:t.field,orderby:t.orderby,where:t.where,"step-searh":t.stepSearh,"self-field":t.selfField,"parent-field":t.parentField,"managed-mode":!0,map:t.map,ellipsis:i.ellipsis,onChange:r.onchange,onDatachange:r.ondatachange,onNodeclick:r.onnodeclick},null,8,["modelValue","localdata","preload","collection","field","orderby","where","step-searh","self-field","parent-field","map","ellipsis","onChange","onDatachange","onNodeclick"])])):e.createCommentVNode("",!0)])}],["__scopeId","data-v-0b9ed1e5"]]),ws={__name:"index",setup(n){const i=H(),{proxy:s}=e.getCurrentInstance(),r=e.ref([]),l=()=>{var e;d({url:"/sys/sysDepart/queryTreeList",method:"get",data:e}).then((e=>{r.value=e.result,h=e.result[0].id,u(e.result[0].id)})).catch((e=>{t("log","at pages/userlist/index.vue:98",e)}))},c=e.ref([]),u=(e,a,n)=>{var i;(i={id:e,username:a||"",realname:n||""},d({url:"/sys/user/queryUserByDepId",method:"get",data:i})).then((e=>{e.success&&(c.value=e.result)})).catch((e=>{t("log","at pages/userlist/index.vue:113",e)}))};let h=null,m=[];const p=e=>{u(e.id),h=e.id,-1!=m.indexOf(e.title)?m.splice(m.indexOf(e.title),1,e.title):m.push(e.title)},f=e.ref([]);let g=0,y=null,v=null,w=null;o((e=>{g=e.isradio,y=e.id,w=e.reason,e.nextnode&&(v=JSON.parse(e.nextnode)),l()}));const k=e.ref(""),b=e.ref(""),E=()=>{(k.value.trim()||b.value.trim())&&(c.value=[],u(h,k.value,b.value))},S=()=>{k.value="",b.value="",c.value=[],u(h,k.value,b.value)},x=()=>{if(!f.value.length)return s.$toast("请选择被委托人");var e;(e={taskAssignee:c.value.filter((e=>e.id==f.value[0]))[0].username,taskId:y},d({url:"/act/task/taskEntrust",method:"put",data:e})).then((e=>{e.success&&(s.$toast(e.message),setTimeout((()=>{uni.navigateBack()}),2e3))}))},N=()=>{v?V():x()},V=()=>{_({taskId:y,reason:w,processModel:1,nextnode:v[0].nextnode,nextUserName:c.value.filter((e=>e.id==f.value[0]))[0].realname,nextUserId:f.value[0]}).then((e=>{s.$toast(e.message),setTimeout((()=>{uni.navigateBack()}),2e3)}))};return(n,s)=>{const o=a(e.resolveDynamicComponent("uni-data-picker"),vs),l=a(e.resolveDynamicComponent("uni-icons"),Y);return e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass(["content",{gray:1==e.unref(i).isgray}])},[e.createVNode(o,{onPopupclosed:s[0]||(s[0]=e=>(e=>{t("log","at pages/userlist/index.vue:129","qqq",e)})(e)),"step-searh":!1,map:{text:"departName",value:"id"},localdata:r.value,"popup-title":"请选择部门",placeholder:"请选择部门",onNodeclick:p},null,8,["localdata"]),e.createElementVNode("view",{class:"search_box"},[e.createElementVNode("view",{class:"username f-row aic"},[e.createTextVNode(" 用户姓名:"),e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":s[1]||(s[1]=e=>b.value=e),type:"text",placeholder:"请输入姓名","placeholder-style":"color: grey;font-size: 28rpx;"},null,512),[[e.vModelText,b.value]])]),e.createElementVNode("view",{class:"username f-row aic"},[e.createTextVNode(" 用户账号:"),e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":s[2]||(s[2]=e=>k.value=e),type:"text",placeholder:"请输入账号","placeholder-style":"color: grey;font-size: 28rpx;"},null,512),[[e.vModelText,k.value]])]),e.createElementVNode("view",{class:"btn f-row aic jca"},[e.createElementVNode("view",{class:"f-row aic",onClick:E},[e.createVNode(l,{type:"search",size:"15",color:"#fff"}),e.createTextVNode(" 查询 ")]),e.createElementVNode("view",{class:"f-row aic",onClick:S},[e.createVNode(l,{type:"refreshempty",size:"15",color:"#fff"}),e.createTextVNode(" 重置 ")])])]),e.createElementVNode("view",{class:"list"},[e.createElementVNode("view",{class:"title f-row aic box"},[e.createElementVNode("view",{class:""}),e.createElementVNode("view",{class:""}," 序号 "),e.createElementVNode("view",{class:"username"}," 用户账号 "),e.createElementVNode("view",{class:""}," 用户姓名 ")]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,((t,a)=>(e.openBlock(),e.createElementBlock("view",{class:"item f-row aic box",key:a},[e.createElementVNode("view",{class:"f-row aic img",onClick:e=>(e=>{if(g){if(-1!=f.value.indexOf(e))return;f.value.splice(f.value.indexOf(e),1,e)}else-1!=f.value.indexOf(e)?f.value.splice(f.value.indexOf(e),1):f.value.push(e)})(t.id)},[f.value.includes(t.id)?(e.openBlock(),e.createElementBlock("image",{key:0,src:"/static/login/checked.png",mode:""})):(e.openBlock(),e.createElementBlock("image",{key:1,src:"/static/login/nocheck.png",mode:""}))],8,["onClick"]),e.createElementVNode("view",{class:"order"},e.toDisplayString(a+1),1),e.createElementVNode("view",{class:"username f-col aic"},[e.createElementVNode("view",{class:""},e.toDisplayString(t.username),1)]),e.createElementVNode("view",{class:"realname"},[e.createElementVNode("view",{class:""},e.toDisplayString(t.realname),1)])])))),128))]),e.createElementVNode("view",{class:"confirm f-col aic"},[e.createElementVNode("view",{class:"",onClick:N}," 确认 ")])],2)}}},ks=q(ws,[["__scopeId","data-v-a805c56c"]]),bs=q({__name:"detail",setup(t){const a=H();return(t,n)=>(e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass(["content",{gray:1==e.unref(a).isgray}])},[e.createElementVNode("view",{class:""},[e.createElementVNode("video",{src:""}),e.createElementVNode("view",{class:"title"}," 五月天“突然好想你”线上演唱会精彩回放,这里就是标题 ")]),e.createElementVNode("view",{class:"listcom"},[e.createVNode(ls)])],2))}},[["__scopeId","data-v-ab4e5d54"]]);var _s={exports:{}};!function(e,t){e.exports=function(){var e=1e3,t=6e4,a=36e5,n="millisecond",i="second",s="minute",o="hour",r="day",l="week",c="month",d="quarter",u="year",h="date",m="Invalid Date",p=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,f=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,g={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],a=e%100;return"["+e+(t[(a-20)%10]||t[a]||t[0])+"]"}},y=function(e,t,a){var n=String(e);return!n||n.length>=t?e:""+Array(t+1-n.length).join(a)+e},v={s:y,z:function(e){var t=-e.utcOffset(),a=Math.abs(t),n=Math.floor(a/60),i=a%60;return(t<=0?"+":"-")+y(n,2,"0")+":"+y(i,2,"0")},m:function e(t,a){if(t.date()1)return e(o[0])}else{var r=t.name;k[r]=t,i=r}return!n&&i&&(w=i),i||!n&&w},S=function(e,t){if(_(e))return e.clone();var a="object"==typeof t?t:{};return a.date=e,a.args=arguments,new N(a)},x=v;x.l=E,x.i=_,x.w=function(e,t){return S(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var N=function(){function g(e){this.$L=E(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[b]=!0}var y=g.prototype;return y.parse=function(e){this.$d=function(e){var t=e.date,a=e.utc;if(null===t)return new Date(NaN);if(x.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var n=t.match(p);if(n){var i=n[2]-1||0,s=(n[7]||"0").substring(0,3);return a?new Date(Date.UTC(n[1],i,n[3]||1,n[4]||0,n[5]||0,n[6]||0,s)):new Date(n[1],i,n[3]||1,n[4]||0,n[5]||0,n[6]||0,s)}}return new Date(t)}(e),this.init()},y.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},y.$utils=function(){return x},y.isValid=function(){return!(this.$d.toString()===m)},y.isSame=function(e,t){var a=S(e);return this.startOf(t)<=a&&a<=this.endOf(t)},y.isAfter=function(e,t){return S(e){l()}));const s=e.ref(Es().format("YYYY-MM")),r=e=>{s.value=e.detail.value,l()},l=()=>{let[e,a]=s.value.split("-");var n;(n={year:e,month:a},d({url:"/zhgl_zbgl/zhglZbglZbb/list",method:"get",data:n})).then((e=>{i.value=e.result.records})).catch((e=>{t("log","at pages/zhiban/index.vue:73",e)}))};return(t,a)=>(e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass(["f-col","aic",{gray:1==e.unref(n).isgray}])},[e.createElementVNode("picker",{fields:"month",mode:"date",onChange:r,value:s.value},[e.createElementVNode("view",{class:"date"},e.toDisplayString(s.value)+" 点击选择月份",1)],40,["value"]),e.createElementVNode("view",{class:"info"},[e.createElementVNode("view",{class:"info_title f-row aic"},[e.createElementVNode("view",{class:""}," 日期 "),e.createElementVNode("view",{class:""}," 带班领导 "),e.createElementVNode("view",{class:""}," 值班领导 "),e.createElementVNode("view",{class:""}," 值班干部 ")]),e.createElementVNode("view",{class:"data_box"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value,((t,a)=>(e.openBlock(),e.createElementBlock("view",{class:"data f-row aic"},[e.createElementVNode("view",{class:""},e.toDisplayString(t.date),1),e.createElementVNode("view",{class:""},e.toDisplayString(t.dbld_dictText),1),e.createElementVNode("view",{class:""},e.toDisplayString(t.zbld_dictText),1),e.createElementVNode("view",{class:""},e.toDisplayString(t.zbgbrealname),1)])))),256))])])],2))}},xs=q(Ss,[["__scopeId","data-v-54de2922"]]),Ns={__name:"self",setup(a){const n=H(),i=e.ref([]);let s="";o((e=>{s=e.title,d()}));let l=1,c=!1;const d=()=>{c=!0,uni.showLoading({title:"加载中..."}),p({pageNo:l,pageSize:10,_t:(new Date).getTime(),processName:s}).then((e=>{if(e.success){if(!e.result.records.length)return Ve("没有更多了~");let t=e.result.records;t.map((e=>{e.processApplyUserName=e.startUserName,e.processDefinitionName=e.prcocessDefinitionName,e.taskBeginTime=e.startTime})),i.value=[...i.value,...t],c=!1}})).catch((e=>{t("log","at pages/task/self.vue:59",e)}))},u=e=>{Ce(e,(()=>{uni.navigateTo({url:e})}))};return r((()=>{c||(l++,d())})),(t,a)=>(e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass({gray:1==e.unref(n).isgray})},[e.createVNode(ze,{onJump:u,taskArr:i.value,currentIndex:2},null,8,["taskArr"])],2))}};__definePage("pages/login/login",J),__definePage("pages/tab/index",Le),__definePage("pages/task/todotask",Fe),__definePage("pages/tab/office",je),__definePage("pages/tab/my",Ue),__definePage("pages/task/index",He),__definePage("pages/task/handle",Ze),__definePage("pages/talk/message_list",Xe),__definePage("pages/talk/conversation",et),__definePage("pages/talk/system",tt),__definePage("pages/document/index",at),__definePage("pages/document/detail",nt),__definePage("pages/meeting/index",it),__definePage("pages/meeting/detail",st),__definePage("pages/leave/application",as),__definePage("pages/checkin/index",ns),__definePage("pages/useredit/useredit",is),__definePage("pages/useredit/address",ss),__definePage("pages/useredit/add_address",os),__definePage("pages/useredit/addressbook",rs),__definePage("pages/safe/manage",cs),__definePage("pages/product/index",us),__definePage("pages/userlist/index",ks),__definePage("pages/safe/detail",bs),__definePage("pages/zhiban/index",xs),__definePage("pages/task/self",Ns);const Vs="https://36.112.48.190/jeecg-boot/sys/common/static/",Cs=z("updateApp",(()=>{const t=e.reactive({force:!1,hasNew:!1,content:"",url:"",wgtUrl:""}),a=uni.getSystemInfoSync();return{checkAppUpdate:function(e=!1){try{d({url:"/sys/common/upDateApp",method:"get",data:n}).then((async e=>{let{result:n}=e;n.apkUrl=Vs+n.apkUrl,n.wgtUrl=Vs+n.wgtUrl,t.wgtUrl=n.wgtUrl,"android"===a.osName?(t.apkUrl=n.apkUrl,t.hasNew=await((e,t=!1)=>new Promise((a=>{const n=e=>e.replace(/\./g,"");if(t)plus.runtime.getProperty(plus.runtime.appid,(t=>{const i=t.version;a(+n(e)>+n(i))}));else{const t=plus.runtime.version;a(+n(e)>+n(t))}})))(n.versionCode,"wgt"==n.update)):t.url="itms-apps://itunes.apple.com/cn/app/id123456?mt=8",t.hasNew&&uni.showModal({title:"更新",content:"发现新版本,请更新",success(e){var t,a;e.confirm?(t=n.update,a=n,"wgt"!=t?plus.runtime.openURL(a.apkUrl):De(a.wgtUrl)):plus.runtime.quit()}})}))}catch(i){t.hasNew=!1}var n},...e.toRefs(t),systemInfo:a}})),Ts={__name:"App",setup(e){s((()=>{Cs().checkAppUpdate(),Ie()})),i((()=>{t()}));const t=()=>{var e;(e={id:"1827997127165677570"},d({url:"/CxcJurisdiction/cxcJurisdiction/queryById",method:"get",data:e})).then((e=>{if(e.success){const t=H();uni.setStorageSync("isgray",e.result.value),t.setIsgray(e.result.value)}}))};return()=>{}}},Ds=q({__name:"index",props:{dataId:{type:String,default:""}},setup(t){const n=t,i=e.ref([]),s={width:64,height:64,border:{color:"#dce7e1",width:2,style:"dashed",radius:"2px"}},o=e.ref({}),r=()=>{var e;(e={id:n.dataId},d({url:"/CxcQxj/cxcQxj/queryById",method:"get",data:e})).then((e=>{e.success&&(o.value=e.result.records[0],i.value=o.value.path.split(",").map((e=>{const t=e.split("/").pop(),a=t.split(".").pop();return{name:t,extname:a,url:Re(e)}})))}))},l=e.ref([]),c=e=>{b({processInstanceId:e}).then((e=>{e.success&&(l.value=e.result.records)}))};return e.onMounted((()=>{r(),k({flowCode:"dev_cxc_qxj",dataId:n.dataId}).then((e=>{e.success&&c(e.result.processInstanceId)}))})),(t,n)=>{const r=a(e.resolveDynamicComponent("uni-file-picker"),Yi);return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("view",{class:"f-col aic"},[e.createElementVNode("view",{class:"info_box"},[e.createElementVNode("view",{class:"title"}," 申请信息 "),e.createElementVNode("view",{class:"info f-row aic jcb"},[e.createElementVNode("view",null," 请假职工: "),e.createElementVNode("text",null,e.toDisplayString(o.value.username_dictText),1)]),e.createElementVNode("view",{class:"info f-row aic jcb"},[e.createElementVNode("view",null," 所属单位: "),e.createElementVNode("text",null,e.toDisplayString(o.value.sysOrgCode_dictText),1)]),e.createElementVNode("view",{class:"info f-row aic jcb"},[e.createElementVNode("view",null," 联系方式: "),e.createElementVNode("text",null,e.toDisplayString(o.value.phone),1)]),e.createElementVNode("view",{class:"info f-row aic jcb"},[e.createElementVNode("view",null," 请假类型: "),e.createElementVNode("text",null,e.toDisplayString(o.value.type),1)]),e.createElementVNode("view",{class:"info f-row aic jcb"},[e.createElementVNode("view",null," 请假开始时间: "),e.createElementVNode("text",null,e.toDisplayString(o.value.begintime),1)]),e.createElementVNode("view",{class:"info f-row aic jcb"},[e.createElementVNode("view",null," 请假结束时间: "),e.createElementVNode("text",null,e.toDisplayString(o.value.endtime),1)]),e.createElementVNode("view",{class:"info f-row aic jcb"},[e.createElementVNode("view",null," 请假天数: "),e.createElementVNode("text",null,e.toDisplayString(o.value.days),1)]),e.createElementVNode("view",{class:"info f-row aic jcb"},[e.createElementVNode("view",null," 审批人: "),e.createElementVNode("text",null,e.toDisplayString(o.value.examineleader_dictText),1)]),e.createElementVNode("view",{class:"info f-row aic jcb"},[e.createElementVNode("view",null," 请假地点: "),e.createElementVNode("text",null,e.toDisplayString(o.value.address),1)]),e.createElementVNode("view",{class:"info f-row aic jcb"},[e.createElementVNode("view",null," 请假原因: "),e.createElementVNode("text",null,e.toDisplayString(o.value.reason),1)]),e.createElementVNode("view",{class:"info f-row aic jcb"},[e.createElementVNode("view",null," 附件: "),e.createVNode(r,{modelValue:i.value,"onUpdate:modelValue":n[0]||(n[0]=e=>i.value=e),"image-styles":s},null,8,["modelValue"])])])]),e.createElementVNode("view",{class:"f-col aic"},[e.createElementVNode("view",{class:"progress"},[e.createElementVNode("view",{class:"title"}," 审批流程 "),e.createElementVNode("view",{class:"progress_box"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.value,((t,a)=>(e.openBlock(),e.createElementBlock("view",{class:"box",key:a},[e.createElementVNode("view",{class:"topic f-row aic"},[e.createElementVNode("view",null,e.toDisplayString(t.name),1),e.createElementVNode("view",{class:e.normalizeClass(["status",{complete:"已完成"==t.deleteReason},{refuse:"已拒绝"==t.deleteReason}])},e.toDisplayString(t.deleteReason),3)]),e.createElementVNode("view",{class:"name_time"},e.toDisplayString(t.assigneeName)+" | "+e.toDisplayString(t.endTime),1)])))),128))])])])],64)}}},[["__scopeId","data-v-4dc4d50b"]]),Bs=q({__name:"processCom",props:{info:{type:Array,default:()=>[]}},setup:t=>(a,n)=>(e.openBlock(),e.createElementBlock("view",{class:"f-col aic"},[e.createElementVNode("view",{class:"info_box"},[e.createElementVNode("view",{class:"title"}," 申请信息 "),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.info,((t,a)=>(e.openBlock(),e.createElementBlock("view",{class:"",key:a},[e.createElementVNode("view",{class:"info f-row aic jcb"},[e.createElementVNode("view",{class:""},e.toDisplayString(t.title)+": ",1),"事项内容"==t.title?(e.openBlock(),e.createElementBlock("rich-text",{key:0,nodes:t.data},null,8,["nodes"])):(e.openBlock(),e.createElementBlock("text",{key:1},e.toDisplayString(t.data),1))])])))),128))])]))},[["__scopeId","data-v-8f3f5a9f"]]),Is=q({__name:"supervise",props:{dataId:{type:String,default:""}},setup(a){const n=a,i=[{title:"基本信息",id:1},{title:"事项详情",id:2},{title:"添加下级",id:3},{title:"节点顺序",id:4},{title:"运行计划",id:5}],s=e.ref(1),o=e.ref([]),r=()=>{var e;(e={id:n.dataId},d({url:"/cxcdbxt/dbSxxq/queryById",method:"get",data:e})).then((e=>{if(e.success&&(1==s.value&&l(e.result.jbxxid),2==s.value)){let t=e.result;o.value=[{title:"承办部门",data:t.zbdw},{title:"协办部门",data:t.xbdw},{title:"部门领导",data:t.fgld},{title:"办理人员",data:t.dbry},{title:"要求反馈时间",data:t.yqfksj},{title:"节点名称",data:""},{title:"预计完成时间",data:""},{title:"实际反馈时间",data:t.sjfksj},{title:"自评价",data:t.zpj},{title:"发起时间",data:t.fqsj},{title:"序号",data:""},{title:"概述",data:""},{title:"时间进度",data:""},{title:"事项内容",data:t.sxnr}]}}))},l=e=>{var t;(t={id:e},d({url:"/cxcdbxt/dbJbxx/queryById",method:"get",data:t})).then((e=>{if(e.success){let t=e.result;o.value=[{title:"督办分类",data:t.fl},{title:"协办部门",data:t.xbbm},{title:"督办部门",data:t.cbbm},{title:"督办人员",data:t.dbry},{title:"督办部门负责人",data:t.zrr},{title:"是否涉密",data:t.sfsm},{title:"计划完成时间",data:t.jhwcsj},{title:"实际完成时间",data:t.wcsj},{title:"完成状态",data:t.wczt},{title:"备注",data:t.bz},{title:"督办事项",data:t.dbsx},{title:"时间进度",data:t.sjjd}]}}))},c=e.ref([]),u=e=>{t("log","at bpm/supervise.vue:199","000",e),b({processInstanceId:e}).then((e=>{t("log","at bpm/supervise.vue:203","0088800",e),e.success&&(c.value=e.result.records)}))};return e.onMounted((()=>{r(),k({flowCode:"dev_db_sxxq_001",dataId:n.dataId}).then((e=>{e.success&&u(e.result.processInstanceId)}))})),(t,a)=>(e.openBlock(),e.createElementBlock("view",{class:""},[e.createElementVNode("view",{class:"tab f-row aic"},[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(i,((t,a)=>e.createElementVNode("view",{class:e.normalizeClass({active:s.value==t.id}),key:a,onClick:e=>{return a=t.id,s.value=a,void r();var a}},e.toDisplayString(t.title),11,["onClick"]))),64))]),e.createVNode(Bs,{info:o.value},null,8,["info"]),e.createElementVNode("view",{class:"f-col aic"},[e.createElementVNode("view",{class:"progress"},[e.createElementVNode("view",{class:"title"}," 审批流程 "),e.createElementVNode("view",{class:"progress_box"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,((t,a)=>(e.openBlock(),e.createElementBlock("view",{class:"box",key:a},[e.createElementVNode("view",{class:"topic f-row aic"},[e.createElementVNode("view",{class:""},e.toDisplayString(t.name),1),e.createElementVNode("view",{class:e.normalizeClass(["status",{complete:"已完成"==t.deleteReason},{refuse:"已拒绝"==t.deleteReason}])},e.toDisplayString(t.deleteReason),3)]),e.createElementVNode("view",{class:"name_time"},e.toDisplayString(t.assigneeName)+" | "+e.toDisplayString(t.endTime),1)])))),128))])])])]))}},[["__scopeId","data-v-c842b888"]]),Ps=function(){const t=e.effectScope(!0),a=t.run((()=>e.ref({})));let n=[],i=[];const s=e.markRaw({install(e){D(s),s._a=e,e.provide(B,s),e.config.globalProperties.$pinia=s,i.forEach((e=>n.push(e))),i=[]},use(e){return this._a?n.push(e):i.push(e),this},_p:n,_a:null,_e:t,_s:new Map,state:a});return s}();const{app:As,Vuex:Ms,Pinia:Rs}=function(){const t=e.createVueApp(Ts);return t.use(Ps),t.component("leaveApplication",Ds),t.component("supervise",Is),t.config.globalProperties.$toast=Ve,{app:t}}();uni.Vuex=Ms,uni.Pinia=Rs,As.provide("__globalStyles",__uniConfig.styles),As._component.mpType="app",As._component.render=()=>{},As.mount("#app")}(Vue); +let C;const V=e=>C=e,I=Symbol();function B(e){return e&&"object"==typeof e&&"[object Object]"===Object.prototype.toString.call(e)&&"function"!=typeof e.toJSON}var A,M;(M=A||(A={})).direct="direct",M.patchObject="patch object",M.patchFunction="patch function";const P=()=>{};function R(t,n,i,a=P){t.push(n);const s=()=>{const e=t.indexOf(n);e>-1&&(t.splice(e,1),a())};return!i&&e.getCurrentScope()&&e.onScopeDispose(s),s}function O(e,...t){e.slice().forEach((e=>{e(...t)}))}const L=e=>e();function F(t,n){t instanceof Map&&n instanceof Map&&n.forEach(((e,n)=>t.set(n,e))),t instanceof Set&&n instanceof Set&&n.forEach(t.add,t);for(const i in n){if(!n.hasOwnProperty(i))continue;const a=n[i],s=t[i];B(s)&&B(a)&&t.hasOwnProperty(i)&&!e.isRef(a)&&!e.isReactive(a)?t[i]=F(s,a):t[i]=a}return t}const j=Symbol();const{assign:U}=Object;function $(t,n,i={},a,s,r){let o;const l=U({actions:{}},i),c={deep:!0};let u,d,h,p=[],f=[];const m=a.state.value[t];let g;function v(n){let i;u=d=!1,"function"==typeof n?(n(a.state.value[t]),i={type:A.patchFunction,storeId:t,events:h}):(F(a.state.value[t],n),i={type:A.patchObject,payload:n,storeId:t,events:h});const s=g=Symbol();e.nextTick().then((()=>{g===s&&(u=!0)})),d=!0,O(p,i,a.state.value[t])}r||m||(a.state.value[t]={}),e.ref({});const y=r?function(){const{state:e}=i,t=e?e():{};this.$patch((e=>{U(e,t)}))}:P;function w(e,n){return function(){V(a);const i=Array.from(arguments),s=[],r=[];function o(e){s.push(e)}function l(e){r.push(e)}let c;O(f,{args:i,name:e,store:_,after:o,onError:l});try{c=n.apply(this&&this.$id===t?this:_,i)}catch(u){throw O(r,u),u}return c instanceof Promise?c.then((e=>(O(s,e),e))).catch((e=>(O(r,e),Promise.reject(e)))):(O(s,c),c)}}const k={_p:a,$id:t,$onAction:R.bind(null,f),$patch:v,$reset:y,$subscribe(n,i={}){const s=R(p,n,i.detached,(()=>r())),r=o.run((()=>e.watch((()=>a.state.value[t]),(e=>{("sync"===i.flush?d:u)&&n({storeId:t,type:A.direct,events:h},e)}),U({},c,i))));return s},$dispose:function(){o.stop(),p=[],f=[],a._s.delete(t)}},_=e.reactive(k);a._s.set(t,_);const S=(a._a&&a._a.runWithContext||L)((()=>a._e.run((()=>(o=e.effectScope()).run(n)))));for(const x in S){const n=S[x];if(e.isRef(n)&&(E=n,!e.isRef(E)||!E.effect)||e.isReactive(n))r||(!m||B(b=n)&&b.hasOwnProperty(j)||(e.isRef(n)?n.value=m[x]:F(n,m[x])),a.state.value[t][x]=n);else if("function"==typeof n){const e=w(x,n);S[x]=e,l.actions[x]=n}}var b,E;return U(_,S),U(e.toRaw(_),S),Object.defineProperty(_,"$state",{get:()=>a.state.value[t],set:e=>{v((t=>{U(t,e)}))}}),a._p.forEach((e=>{U(_,o.run((()=>e({store:_,app:a._a,pinia:a,options:l}))))})),m&&r&&i.hydrate&&i.hydrate(_.$state,m),u=!0,d=!0,_}function z(t,n,i){let a,s;const r="function"==typeof n;function o(t,i){const o=e.hasInjectionContext();(t=t||(o?e.inject(I,null):null))&&V(t),(t=C)._s.has(a)||(r?$(a,n,s,t):function(t,n,i,a){const{state:s,actions:r,getters:o}=n,l=i.state.value[t];let c;c=$(t,(function(){l||(i.state.value[t]=s?s():{});const n=e.toRefs(i.state.value[t]);return U(n,r,Object.keys(o||{}).reduce(((n,a)=>(n[a]=e.markRaw(e.computed((()=>{V(i);const e=i._s.get(t);return o[a].call(e,e)}))),n)),{}))}),n,i,0,!0)}(a,s,t));return t._s.get(a)}return"string"==typeof t?(a=t,s=r?i:n):(s=t,a=t.id),o.$id=a,o}const H=z("user",{state:()=>({userinfo:uni.getStorageSync("user")&&JSON.parse(uni.getStorageSync("user"))||{},token:uni.getStorageSync("token")||null,role:uni.getStorageSync("role")||null,allowPage:uni.getStorageSync("allowPage")||null,position:uni.getStorageSync("position")||null,positionSwitch:uni.getStorageSync("positionSwitch")||null,wendu:uni.getStorageSync("wendu")||null,wenduIcon:uni.getStorageSync("wenduIcon")||null,isgray:uni.getStorageSync("isgray")||0}),getters:{},actions:{setUserInfo(e){this.userinfo=e},setToken(e){this.token=e},setRole(e){this.role=e},setPosition(e){this.position=e},setPositionSwitch(e){this.positionSwitch=e},setWeather(e,t){this.wendu=e,this.wenduIcon=t},setAllowPage(e){this.allowPage=e},setIsgray(e){this.isgray=e}}}),q=(e,t)=>{const n=e.__vccOpts||e;for(const[i,a]of t)n[i]=a;return n},K=q({__name:"login",setup(n){const i=H(),{proxy:a}=e.getCurrentInstance(),s=e.ref(!1),o=e.ref(!0),l=e.ref(""),c=e.ref(""),d=()=>{if(!l.value.trim())return a.$toast("请输入账号");if(!c.value.trim())return a.$toast("请输入密码");let e=N.encode(encodeURIComponent(l.value)),n=N.encode(encodeURIComponent(c.value));var s;uni.showLoading({title:"登录中..."}),(s={username:e,password:n,ip:f()},u({url:"/sys/sinopecLogin",method:"post",data:s})).then((e=>{e.success&&(uni.setStorageSync("token",e.result.token),i.setToken(e.result.token),(()=>{let e={un:l.value};o.value&&(e.pw=c.value),uni.setStorageSync("accountObj",JSON.stringify(e))})(),function(e){return u({url:"/appConnet/app/queryRoleByRoleIds",method:"get",data:e})}({roles:e.result.userInfo.roles}).then((t=>{uni.setStorageSync("logintime",Date.now()),uni.setStorageSync("role",t),i.setRole(t),uni.setStorageSync("user",JSON.stringify(e.result.userInfo)),i.setUserInfo(e.result.userInfo),p(),uni.switchTab({url:"/pages/tab/index"})})))})).catch((e=>{t("log","at pages/login/login.vue:136",e)}))};e.ref([]),r((()=>{if(uni.getStorageSync("accountObj")){let e=JSON.parse(uni.getStorageSync("accountObj"));l.value=e.un?e.un:"",c.value=e.pw?e.pw:""}}));const p=()=>{h().then((e=>{e.success&&(e.result.total>0?uni.setTabBarBadge({index:"1",text:e.result.total}):uni.removeTabBarBadge({index:"1"}))}))};function f(){let e;if("Android"==plus.os.name){let s=plus.android.importClass("android.content.Context"),r=plus.android.runtimeMainActivity().getSystemService(s.CONNECTIVITY_SERVICE);plus.android.importClass(r);let o=r.getLinkProperties(r.getActiveNetwork()),l=plus.android.invoke(o,"getLinkAddresses");plus.android.importClass(l);for(var t=0;t>8&255)+"."+(a>>16&255)+"."+(a>>24&255))}}return e}return(t,n)=>(e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass({gray:1==e.unref(i).isgray})},[e.createElementVNode("view",{class:"logo f-col aic"},[e.createElementVNode("image",{src:"/static/login/logo.png"})]),e.createElementVNode("view",{class:"form f-col aic"},[e.createElementVNode("view",{class:"box f-row aic"},[e.createElementVNode("image",{src:"/static/login/phone.png"}),e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":n[0]||(n[0]=e=>l.value=e),type:"text",placeholder:"请输入统一身份认证","placeholder-style":"font-size: 28rpx;color: #999999;"},null,512),[[e.vModelText,l.value]])]),e.createElementVNode("view",{class:"box f-row aic"},[e.createElementVNode("image",{src:"/static/login/pwd.png"}),e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":n[1]||(n[1]=e=>c.value=e),type:s.value?"text":"password",placeholder:"请输入密码","placeholder-style":"font-size: 28rpx;color: #999999;"},null,8,["type"]),[[e.vModelDynamic,c.value]]),s.value?(e.openBlock(),e.createElementBlock("image",{key:0,src:"/static/login/eye.png",onClick:n[2]||(n[2]=e=>s.value=!s.value)})):(e.openBlock(),e.createElementBlock("image",{key:1,src:"/static/login/eye-off.png",onClick:n[3]||(n[3]=e=>s.value=!s.value)}))])]),e.createElementVNode("view",{class:"pwd f-row aic"},[e.createElementVNode("view",{style:{display:"inline-block"},onClick:n[4]||(n[4]=e=>o.value=!o.value)},[e.createElementVNode("view",{class:"f-row aic"},[o.value?(e.openBlock(),e.createElementBlock("image",{key:1,src:"/static/login/checked.png"})):(e.openBlock(),e.createElementBlock("image",{key:0,src:"/static/login/nocheck.png"})),e.createElementVNode("text",null,"记住密码")])])]),e.createElementVNode("view",{class:"login f-col aic"},[e.createElementVNode("view",{onClick:d}," 登录 ")])],2))}},[["__scopeId","data-v-6ad77018"]]),J=[{font_class:"arrow-down",unicode:""},{font_class:"arrow-left",unicode:""},{font_class:"arrow-right",unicode:""},{font_class:"arrow-up",unicode:""},{font_class:"auth",unicode:""},{font_class:"auth-filled",unicode:""},{font_class:"back",unicode:""},{font_class:"bars",unicode:""},{font_class:"calendar",unicode:""},{font_class:"calendar-filled",unicode:""},{font_class:"camera",unicode:""},{font_class:"camera-filled",unicode:""},{font_class:"cart",unicode:""},{font_class:"cart-filled",unicode:""},{font_class:"chat",unicode:""},{font_class:"chat-filled",unicode:""},{font_class:"chatboxes",unicode:""},{font_class:"chatboxes-filled",unicode:""},{font_class:"chatbubble",unicode:""},{font_class:"chatbubble-filled",unicode:""},{font_class:"checkbox",unicode:""},{font_class:"checkbox-filled",unicode:""},{font_class:"checkmarkempty",unicode:""},{font_class:"circle",unicode:""},{font_class:"circle-filled",unicode:""},{font_class:"clear",unicode:""},{font_class:"close",unicode:""},{font_class:"closeempty",unicode:""},{font_class:"cloud-download",unicode:""},{font_class:"cloud-download-filled",unicode:""},{font_class:"cloud-upload",unicode:""},{font_class:"cloud-upload-filled",unicode:""},{font_class:"color",unicode:""},{font_class:"color-filled",unicode:""},{font_class:"compose",unicode:""},{font_class:"contact",unicode:""},{font_class:"contact-filled",unicode:""},{font_class:"down",unicode:""},{font_class:"bottom",unicode:""},{font_class:"download",unicode:""},{font_class:"download-filled",unicode:""},{font_class:"email",unicode:""},{font_class:"email-filled",unicode:""},{font_class:"eye",unicode:""},{font_class:"eye-filled",unicode:""},{font_class:"eye-slash",unicode:""},{font_class:"eye-slash-filled",unicode:""},{font_class:"fire",unicode:""},{font_class:"fire-filled",unicode:""},{font_class:"flag",unicode:""},{font_class:"flag-filled",unicode:""},{font_class:"folder-add",unicode:""},{font_class:"folder-add-filled",unicode:""},{font_class:"font",unicode:""},{font_class:"forward",unicode:""},{font_class:"gear",unicode:""},{font_class:"gear-filled",unicode:""},{font_class:"gift",unicode:""},{font_class:"gift-filled",unicode:""},{font_class:"hand-down",unicode:""},{font_class:"hand-down-filled",unicode:""},{font_class:"hand-up",unicode:""},{font_class:"hand-up-filled",unicode:""},{font_class:"headphones",unicode:""},{font_class:"heart",unicode:""},{font_class:"heart-filled",unicode:""},{font_class:"help",unicode:""},{font_class:"help-filled",unicode:""},{font_class:"home",unicode:""},{font_class:"home-filled",unicode:""},{font_class:"image",unicode:""},{font_class:"image-filled",unicode:""},{font_class:"images",unicode:""},{font_class:"images-filled",unicode:""},{font_class:"info",unicode:""},{font_class:"info-filled",unicode:""},{font_class:"left",unicode:""},{font_class:"link",unicode:""},{font_class:"list",unicode:""},{font_class:"location",unicode:""},{font_class:"location-filled",unicode:""},{font_class:"locked",unicode:""},{font_class:"locked-filled",unicode:""},{font_class:"loop",unicode:""},{font_class:"mail-open",unicode:""},{font_class:"mail-open-filled",unicode:""},{font_class:"map",unicode:""},{font_class:"map-filled",unicode:""},{font_class:"map-pin",unicode:""},{font_class:"map-pin-ellipse",unicode:""},{font_class:"medal",unicode:""},{font_class:"medal-filled",unicode:""},{font_class:"mic",unicode:""},{font_class:"mic-filled",unicode:""},{font_class:"micoff",unicode:""},{font_class:"micoff-filled",unicode:""},{font_class:"minus",unicode:""},{font_class:"minus-filled",unicode:""},{font_class:"more",unicode:""},{font_class:"more-filled",unicode:""},{font_class:"navigate",unicode:""},{font_class:"navigate-filled",unicode:""},{font_class:"notification",unicode:""},{font_class:"notification-filled",unicode:""},{font_class:"paperclip",unicode:""},{font_class:"paperplane",unicode:""},{font_class:"paperplane-filled",unicode:""},{font_class:"person",unicode:""},{font_class:"person-filled",unicode:""},{font_class:"personadd",unicode:""},{font_class:"personadd-filled",unicode:""},{font_class:"personadd-filled-copy",unicode:""},{font_class:"phone",unicode:""},{font_class:"phone-filled",unicode:""},{font_class:"plus",unicode:""},{font_class:"plus-filled",unicode:""},{font_class:"plusempty",unicode:""},{font_class:"pulldown",unicode:""},{font_class:"pyq",unicode:""},{font_class:"qq",unicode:""},{font_class:"redo",unicode:""},{font_class:"redo-filled",unicode:""},{font_class:"refresh",unicode:""},{font_class:"refresh-filled",unicode:""},{font_class:"refreshempty",unicode:""},{font_class:"reload",unicode:""},{font_class:"right",unicode:""},{font_class:"scan",unicode:""},{font_class:"search",unicode:""},{font_class:"settings",unicode:""},{font_class:"settings-filled",unicode:""},{font_class:"shop",unicode:""},{font_class:"shop-filled",unicode:""},{font_class:"smallcircle",unicode:""},{font_class:"smallcircle-filled",unicode:""},{font_class:"sound",unicode:""},{font_class:"sound-filled",unicode:""},{font_class:"spinner-cycle",unicode:""},{font_class:"staff",unicode:""},{font_class:"staff-filled",unicode:""},{font_class:"star",unicode:""},{font_class:"star-filled",unicode:""},{font_class:"starhalf",unicode:""},{font_class:"trash",unicode:""},{font_class:"trash-filled",unicode:""},{font_class:"tune",unicode:""},{font_class:"tune-filled",unicode:""},{font_class:"undo",unicode:""},{font_class:"undo-filled",unicode:""},{font_class:"up",unicode:""},{font_class:"top",unicode:""},{font_class:"upload",unicode:""},{font_class:"upload-filled",unicode:""},{font_class:"videocam",unicode:""},{font_class:"videocam-filled",unicode:""},{font_class:"vip",unicode:""},{font_class:"vip-filled",unicode:""},{font_class:"wallet",unicode:""},{font_class:"wallet-filled",unicode:""},{font_class:"weibo",unicode:""},{font_class:"weixin",unicode:""}];const W=q({name:"UniIcons",emits:["click"],props:{type:{type:String,default:""},color:{type:String,default:"#333333"},size:{type:[Number,String],default:16},customPrefix:{type:String,default:""},fontFamily:{type:String,default:""}},data:()=>({icons:J}),computed:{unicode(){let e=this.icons.find((e=>e.font_class===this.type));return e?e.unicode:""},iconSize(){return"number"==typeof(e=this.size)||/^[0-9]*$/g.test(e)?e+"px":e;var e},styleObj(){return""!==this.fontFamily?`color: ${this.color}; font-size: ${this.iconSize}; font-family: ${this.fontFamily};`:`color: ${this.color}; font-size: ${this.iconSize};`}},methods:{_onClick(){this.$emit("click")}}},[["render",function(t,n,i,a,s,r){return e.openBlock(),e.createElementBlock("text",{style:e.normalizeStyle(r.styleObj),class:e.normalizeClass(["uni-icons",["uniui-"+i.type,i.customPrefix,i.customPrefix?i.type:""]]),onClick:n[0]||(n[0]=(...e)=>r._onClick&&r._onClick(...e))},[e.renderSlot(t.$slots,"default",{},void 0,!0)],6)}],["__scopeId","data-v-5610c8db"]]);function Y(e,t){return`${G(e)} ${Z(e,t)}`}function G(e){e=ie(e);const t=(e=new Date(e)).getFullYear(),n=e.getMonth()+1,i=e.getDate();return`${t}-${Q(n)}-${Q(i)}`}function Z(e,t){e=ie(e);const n=(e=new Date(e)).getHours(),i=e.getMinutes(),a=e.getSeconds();return t?`${Q(n)}:${Q(i)}`:`${Q(n)}:${Q(i)}:${Q(a)}`}function Q(e){return e<10&&(e=`0${e}`),e}function X(e){return e?"00:00":"00:00:00"}function ee(e,t){return(e=new Date(ie(e)))<=(t=new Date(ie(t)))}function te(e){return e.match(/((19|20)\d{2})(-|\/)\d{1,2}(-|\/)\d{1,2}/g)}const ne=/^\d{4}-(0?[1-9]|1[012])-(0?[1-9]|[12][0-9]|3[01])( [0-5]?[0-9]:[0-5]?[0-9](:[0-5]?[0-9])?)?$/;function ie(e){return"string"==typeof e&&ne.test(e)&&(e=e.replace(/-/g,"/")),e}const ae=q({props:{weeks:{type:Object,default:()=>({})},calendar:{type:Object,default:()=>({})},selected:{type:Array,default:()=>[]},checkHover:{type:Boolean,default:!1}},methods:{choiceDate(e){this.$emit("change",e)},handleMousemove(e){this.$emit("handleMouse",e)}}},[["render",function(t,n,i,a,s,r){return e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass(["uni-calendar-item__weeks-box",{"uni-calendar-item--disable":i.weeks.disable,"uni-calendar-item--before-checked-x":i.weeks.beforeMultiple,"uni-calendar-item--multiple":i.weeks.multiple,"uni-calendar-item--after-checked-x":i.weeks.afterMultiple}]),onClick:n[0]||(n[0]=e=>r.choiceDate(i.weeks)),onMouseenter:n[1]||(n[1]=e=>r.handleMousemove(i.weeks))},[e.createElementVNode("view",{class:e.normalizeClass(["uni-calendar-item__weeks-box-item",{"uni-calendar-item--checked":i.calendar.fullDate===i.weeks.fullDate&&(i.calendar.userChecked||!i.checkHover),"uni-calendar-item--checked-range-text":i.checkHover,"uni-calendar-item--before-checked":i.weeks.beforeMultiple,"uni-calendar-item--multiple":i.weeks.multiple,"uni-calendar-item--after-checked":i.weeks.afterMultiple,"uni-calendar-item--disable":i.weeks.disable}])},[i.selected&&i.weeks.extraInfo?(e.openBlock(),e.createElementBlock("text",{key:0,class:"uni-calendar-item__weeks-box-circle"})):e.createCommentVNode("",!0),e.createElementVNode("text",{class:"uni-calendar-item__weeks-box-text uni-calendar-item__weeks-box-text-disable uni-calendar-item--checked-text"},e.toDisplayString(i.weeks.date),1)],2),e.createElementVNode("view",{class:e.normalizeClass({"uni-calendar-item--today":i.weeks.isToday})},null,2)],34)}],["__scopeId","data-v-a5fd30c1"]]),se=["{","}"];const re=/^(?:\d)+/,oe=/^(?:\w)+/;const le="zh-Hans",ce="zh-Hant",ue="en",de=Object.prototype.hasOwnProperty,he=(e,t)=>de.call(e,t),pe=new class{constructor(){this._caches=Object.create(null)}interpolate(e,t,n=se){if(!t)return[e];let i=this._caches[e];return i||(i=function(e,[t,n]){const i=[];let a=0,s="";for(;a-1?le:e.indexOf("-hant")>-1?ce:(n=e,["-tw","-hk","-mo","-cht"].find((e=>-1!==n.indexOf(e)))?ce:le);var n;let i=[ue,"fr","es"];t&&Object.keys(t).length>0&&(i=Object.keys(t));const a=function(e,t){return t.find((t=>0===e.indexOf(t)))}(e,i);return a||void 0}class me{constructor({locale:e,fallbackLocale:t,messages:n,watcher:i,formater:a}){this.locale=ue,this.fallbackLocale=ue,this.message={},this.messages={},this.watchers=[],t&&(this.fallbackLocale=t),this.formater=a||pe,this.messages=n||{},this.setLocale(e||ue),i&&this.watchLocale(i)}setLocale(e){const t=this.locale;this.locale=fe(e,this.messages)||this.fallbackLocale,this.messages[this.locale]||(this.messages[this.locale]={}),this.message=this.messages[this.locale],t!==this.locale&&this.watchers.forEach((e=>{e(this.locale,t)}))}getLocale(){return this.locale}watchLocale(e){const t=this.watchers.push(e)-1;return()=>{this.watchers.splice(t,1)}}add(e,t,n=!0){const i=this.messages[e];i?n?Object.assign(i,t):Object.keys(t).forEach((e=>{he(i,e)||(i[e]=t[e])})):this.messages[e]=t}f(e,t,n){return this.formater.interpolate(e,t,n).join("")}t(e,t,n){let i=this.message;return"string"==typeof t?(t=fe(t,this.messages))&&(i=this.messages[t]):n=t,he(i,e)?this.formater.interpolate(i[e],n).join(""):(console.warn(`Cannot translate the value of keypath ${e}. Use the value of keypath as default.`),e)}}function ge(e,t={},n,i){"string"!=typeof e&&([e,t]=[t,e]),"string"!=typeof e&&(e="undefined"!=typeof uni&&uni.getLocale?uni.getLocale():"undefined"!=typeof global&&global.getLocale?global.getLocale():ue),"string"!=typeof n&&(n="undefined"!=typeof __uniConfig&&__uniConfig.fallbackLocale||ue);const a=new me({locale:e,fallbackLocale:n,messages:t,watcher:i});let s=(e,t)=>{if("function"!=typeof getApp)s=function(e,t){return a.t(e,t)};else{let e=!1;s=function(t,n){const i=getApp().$vm;return i&&(i.$locale,e||(e=!0,function(e,t){e.$watchLocale?e.$watchLocale((e=>{t.setLocale(e)})):e.$watch((()=>e.$locale),(e=>{t.setLocale(e)}))}(i,a))),a.t(t,n)}}return s(e,t)};return{i18n:a,f:(e,t,n)=>a.f(e,t,n),t:(e,t)=>s(e,t),add:(e,t,n=!0)=>a.add(e,t,n),watch:e=>a.watchLocale(e),getLocale:()=>a.getLocale(),setLocale:e=>a.setLocale(e)}}const ve={en:{"uni-datetime-picker.selectDate":"select date","uni-datetime-picker.selectTime":"select time","uni-datetime-picker.selectDateTime":"select date and time","uni-datetime-picker.startDate":"start date","uni-datetime-picker.endDate":"end date","uni-datetime-picker.startTime":"start time","uni-datetime-picker.endTime":"end time","uni-datetime-picker.ok":"ok","uni-datetime-picker.clear":"clear","uni-datetime-picker.cancel":"cancel","uni-datetime-picker.year":"-","uni-datetime-picker.month":"","uni-calender.MON":"MON","uni-calender.TUE":"TUE","uni-calender.WED":"WED","uni-calender.THU":"THU","uni-calender.FRI":"FRI","uni-calender.SAT":"SAT","uni-calender.SUN":"SUN","uni-calender.confirm":"confirm"},"zh-Hans":{"uni-datetime-picker.selectDate":"选择日期","uni-datetime-picker.selectTime":"选择时间","uni-datetime-picker.selectDateTime":"选择日期时间","uni-datetime-picker.startDate":"开始日期","uni-datetime-picker.endDate":"结束日期","uni-datetime-picker.startTime":"开始时间","uni-datetime-picker.endTime":"结束时间","uni-datetime-picker.ok":"确定","uni-datetime-picker.clear":"清除","uni-datetime-picker.cancel":"取消","uni-datetime-picker.year":"年","uni-datetime-picker.month":"月","uni-calender.SUN":"日","uni-calender.MON":"一","uni-calender.TUE":"二","uni-calender.WED":"三","uni-calender.THU":"四","uni-calender.FRI":"五","uni-calender.SAT":"六","uni-calender.confirm":"确认"},"zh-Hant":{"uni-datetime-picker.selectDate":"選擇日期","uni-datetime-picker.selectTime":"選擇時間","uni-datetime-picker.selectDateTime":"選擇日期時間","uni-datetime-picker.startDate":"開始日期","uni-datetime-picker.endDate":"結束日期","uni-datetime-picker.startTime":"開始时间","uni-datetime-picker.endTime":"結束时间","uni-datetime-picker.ok":"確定","uni-datetime-picker.clear":"清除","uni-datetime-picker.cancel":"取消","uni-datetime-picker.year":"年","uni-datetime-picker.month":"月","uni-calender.SUN":"日","uni-calender.MON":"一","uni-calender.TUE":"二","uni-calender.WED":"三","uni-calender.THU":"四","uni-calender.FRI":"五","uni-calender.SAT":"六","uni-calender.confirm":"確認"}},{t:ye}=ge(ve),we={name:"UniDatetimePicker",data:()=>({indicatorStyle:"height: 50px;",visible:!1,fixNvueBug:{},dateShow:!0,timeShow:!0,title:"日期和时间",time:"",year:1920,month:0,day:0,hour:0,minute:0,second:0,startYear:1920,startMonth:1,startDay:1,startHour:0,startMinute:0,startSecond:0,endYear:2120,endMonth:12,endDay:31,endHour:23,endMinute:59,endSecond:59}),options:{virtualHost:!0},props:{type:{type:String,default:"datetime"},value:{type:[String,Number],default:""},modelValue:{type:[String,Number],default:""},start:{type:[Number,String],default:""},end:{type:[Number,String],default:""},returnType:{type:String,default:"string"},disabled:{type:[Boolean,String],default:!1},border:{type:[Boolean,String],default:!0},hideSecond:{type:[Boolean,String],default:!1}},watch:{modelValue:{handler(e){e?(this.parseValue(ie(e)),this.initTime(!1)):(this.time="",this.parseValue(Date.now()))},immediate:!0},type:{handler(e){"date"===e?(this.dateShow=!0,this.timeShow=!1,this.title="日期"):"time"===e?(this.dateShow=!1,this.timeShow=!0,this.title="时间"):(this.dateShow=!0,this.timeShow=!0,this.title="日期和时间")},immediate:!0},start:{handler(e){this.parseDatetimeRange(ie(e),"start")},immediate:!0},end:{handler(e){this.parseDatetimeRange(ie(e),"end")},immediate:!0},months(e){this.checkValue("month",this.month,e)},days(e){this.checkValue("day",this.day,e)},hours(e){this.checkValue("hour",this.hour,e)},minutes(e){this.checkValue("minute",this.minute,e)},seconds(e){this.checkValue("second",this.second,e)}},computed:{years(){return this.getCurrentRange("year")},months(){return this.getCurrentRange("month")},days(){return this.getCurrentRange("day")},hours(){return this.getCurrentRange("hour")},minutes(){return this.getCurrentRange("minute")},seconds(){return this.getCurrentRange("second")},ymd(){return[this.year-this.minYear,this.month-this.minMonth,this.day-this.minDay]},hms(){return[this.hour-this.minHour,this.minute-this.minMinute,this.second-this.minSecond]},currentDateIsStart(){return this.year===this.startYear&&this.month===this.startMonth&&this.day===this.startDay},currentDateIsEnd(){return this.year===this.endYear&&this.month===this.endMonth&&this.day===this.endDay},minYear(){return this.startYear},maxYear(){return this.endYear},minMonth(){return this.year===this.startYear?this.startMonth:1},maxMonth(){return this.year===this.endYear?this.endMonth:12},minDay(){return this.year===this.startYear&&this.month===this.startMonth?this.startDay:1},maxDay(){return this.year===this.endYear&&this.month===this.endMonth?this.endDay:this.daysInMonth(this.year,this.month)},minHour(){return"datetime"===this.type?this.currentDateIsStart?this.startHour:0:"time"===this.type?this.startHour:void 0},maxHour(){return"datetime"===this.type?this.currentDateIsEnd?this.endHour:23:"time"===this.type?this.endHour:void 0},minMinute(){return"datetime"===this.type?this.currentDateIsStart&&this.hour===this.startHour?this.startMinute:0:"time"===this.type?this.hour===this.startHour?this.startMinute:0:void 0},maxMinute(){return"datetime"===this.type?this.currentDateIsEnd&&this.hour===this.endHour?this.endMinute:59:"time"===this.type?this.hour===this.endHour?this.endMinute:59:void 0},minSecond(){return"datetime"===this.type?this.currentDateIsStart&&this.hour===this.startHour&&this.minute===this.startMinute?this.startSecond:0:"time"===this.type?this.hour===this.startHour&&this.minute===this.startMinute?this.startSecond:0:void 0},maxSecond(){return"datetime"===this.type?this.currentDateIsEnd&&this.hour===this.endHour&&this.minute===this.endMinute?this.endSecond:59:"time"===this.type?this.hour===this.endHour&&this.minute===this.endMinute?this.endSecond:59:void 0},selectTimeText:()=>ye("uni-datetime-picker.selectTime"),okText:()=>ye("uni-datetime-picker.ok"),clearText:()=>ye("uni-datetime-picker.clear"),cancelText:()=>ye("uni-datetime-picker.cancel")},mounted(){},methods:{lessThanTen:e=>e<10?"0"+e:e,parseTimeType(e){if(e){let t=e.split(":");this.hour=Number(t[0]),this.minute=Number(t[1]),this.second=Number(t[2])}},initPickerValue(e){let t=null;e?t=this.compareValueWithStartAndEnd(e,this.start,this.end):(t=Date.now(),t=this.compareValueWithStartAndEnd(t,this.start,this.end)),this.parseValue(t)},compareValueWithStartAndEnd(e,t,n){let i=null;return e=this.superTimeStamp(e),t=this.superTimeStamp(t),n=this.superTimeStamp(n),i=t&&n?en?new Date(n):new Date(e):t&&!n?t<=e?new Date(e):new Date(t):!t&&n?e<=n?new Date(e):new Date(n):new Date(e),i},superTimeStamp(e){let t="";if("time"===this.type&&e&&"string"==typeof e){const e=new Date;t=e.getFullYear()+"/"+(e.getMonth()+1)+"/"+e.getDate()+" "}return Number(e)&&(e=parseInt(e),t=0),this.createTimeStamp(t+e)},parseValue(e){if(e){if("time"===this.type&&"string"==typeof e)this.parseTimeType(e);else{let t=null;t=new Date(e),"time"!==this.type&&(this.year=t.getFullYear(),this.month=t.getMonth()+1,this.day=t.getDate()),"date"!==this.type&&(this.hour=t.getHours(),this.minute=t.getMinutes(),this.second=t.getSeconds())}this.hideSecond&&(this.second=0)}},parseDatetimeRange(e,t){if(!e)return"start"===t&&(this.startYear=1920,this.startMonth=1,this.startDay=1,this.startHour=0,this.startMinute=0,this.startSecond=0),void("end"===t&&(this.endYear=2120,this.endMonth=12,this.endDay=31,this.endHour=23,this.endMinute=59,this.endSecond=59));if("time"===this.type){const n=e.split(":");this[t+"Hour"]=Number(n[0]),this[t+"Minute"]=Number(n[1]),this[t+"Second"]=Number(n[2])}else{if(!e)return void("start"===t?this.startYear=this.year-60:this.endYear=this.year+60);Number(e)&&(e=parseInt(e));const n=/[0-9]:[0-9]/;"datetime"!==this.type||"end"!==t||"string"!=typeof e||n.test(e)||(e+=" 23:59:59");const i=new Date(e);this[t+"Year"]=i.getFullYear(),this[t+"Month"]=i.getMonth()+1,this[t+"Day"]=i.getDate(),"datetime"===this.type&&(this[t+"Hour"]=i.getHours(),this[t+"Minute"]=i.getMinutes(),this[t+"Second"]=i.getSeconds())}},getCurrentRange(e){const t=[];for(let n=this["min"+this.capitalize(e)];n<=this["max"+this.capitalize(e)];n++)t.push(n);return t},capitalize:e=>e.charAt(0).toUpperCase()+e.slice(1),checkValue(e,t,n){-1===n.indexOf(t)&&(this[e]=n[0])},daysInMonth:(e,t)=>new Date(e,t,0).getDate(),createTimeStamp(e){if(e)return"number"==typeof e?e:(e=e.replace(/-/g,"/"),"date"===this.type&&(e+=" 00:00:00"),Date.parse(e))},createDomSting(){const e=this.year+"-"+this.lessThanTen(this.month)+"-"+this.lessThanTen(this.day);let t=this.lessThanTen(this.hour)+":"+this.lessThanTen(this.minute);return this.hideSecond||(t=t+":"+this.lessThanTen(this.second)),"date"===this.type?e:"time"===this.type?t:e+" "+t},initTime(e=!0){this.time=this.createDomSting(),e&&("timestamp"===this.returnType&&"time"!==this.type?(this.$emit("change",this.createTimeStamp(this.time)),this.$emit("input",this.createTimeStamp(this.time)),this.$emit("update:modelValue",this.createTimeStamp(this.time))):(this.$emit("change",this.time),this.$emit("input",this.time),this.$emit("update:modelValue",this.time)))},bindDateChange(e){const t=e.detail.value;this.year=this.years[t[0]],this.month=this.months[t[1]],this.day=this.days[t[2]]},bindTimeChange(e){const t=e.detail.value;this.hour=this.hours[t[0]],this.minute=this.minutes[t[1]],this.second=this.seconds[t[2]]},initTimePicker(){if(this.disabled)return;const e=ie(this.time);this.initPickerValue(e),this.visible=!this.visible},tiggerTimePicker(e){this.visible=!this.visible},clearTime(){this.time="",this.$emit("change",this.time),this.$emit("input",this.time),this.$emit("update:modelValue",this.time),this.tiggerTimePicker()},setTime(){this.initTime(),this.tiggerTimePicker()}}};const ke=q(we,[["render",function(t,n,i,a,s,r){return e.openBlock(),e.createElementBlock("view",{class:"uni-datetime-picker"},[e.createElementVNode("view",{onClick:n[0]||(n[0]=(...e)=>r.initTimePicker&&r.initTimePicker(...e))},[e.renderSlot(t.$slots,"default",{},(()=>[e.createElementVNode("view",{class:e.normalizeClass(["uni-datetime-picker-timebox-pointer",{"uni-datetime-picker-disabled":i.disabled,"uni-datetime-picker-timebox":i.border}])},[e.createElementVNode("text",{class:"uni-datetime-picker-text"},e.toDisplayString(s.time),1),s.time?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("view",{key:0,class:"uni-datetime-picker-time"},[e.createElementVNode("text",{class:"uni-datetime-picker-text"},e.toDisplayString(r.selectTimeText),1)]))],2)]),!0)]),s.visible?(e.openBlock(),e.createElementBlock("view",{key:0,id:"mask",class:"uni-datetime-picker-mask",onClick:n[1]||(n[1]=(...e)=>r.tiggerTimePicker&&r.tiggerTimePicker(...e))})):e.createCommentVNode("",!0),s.visible?(e.openBlock(),e.createElementBlock("view",{key:1,class:e.normalizeClass(["uni-datetime-picker-popup",[s.dateShow&&s.timeShow?"":"fix-nvue-height"]]),style:e.normalizeStyle(s.fixNvueBug)},[e.createElementVNode("view",{class:"uni-title"},[e.createElementVNode("text",{class:"uni-datetime-picker-text"},e.toDisplayString(r.selectTimeText),1)]),s.dateShow?(e.openBlock(),e.createElementBlock("view",{key:0,class:"uni-datetime-picker__container-box"},[e.createElementVNode("picker-view",{class:"uni-datetime-picker-view","indicator-style":s.indicatorStyle,value:r.ymd,onChange:n[2]||(n[2]=(...e)=>r.bindDateChange&&r.bindDateChange(...e))},[e.createElementVNode("picker-view-column",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.years,((t,n)=>(e.openBlock(),e.createElementBlock("view",{class:"uni-datetime-picker-item",key:n},[e.createElementVNode("text",{class:"uni-datetime-picker-item"},e.toDisplayString(r.lessThanTen(t)),1)])))),128))]),e.createElementVNode("picker-view-column",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.months,((t,n)=>(e.openBlock(),e.createElementBlock("view",{class:"uni-datetime-picker-item",key:n},[e.createElementVNode("text",{class:"uni-datetime-picker-item"},e.toDisplayString(r.lessThanTen(t)),1)])))),128))]),e.createElementVNode("picker-view-column",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.days,((t,n)=>(e.openBlock(),e.createElementBlock("view",{class:"uni-datetime-picker-item",key:n},[e.createElementVNode("text",{class:"uni-datetime-picker-item"},e.toDisplayString(r.lessThanTen(t)),1)])))),128))])],40,["indicator-style","value"]),e.createElementVNode("text",{class:"uni-datetime-picker-sign sign-left"},"-"),e.createElementVNode("text",{class:"uni-datetime-picker-sign sign-right"},"-")])):e.createCommentVNode("",!0),s.timeShow?(e.openBlock(),e.createElementBlock("view",{key:1,class:"uni-datetime-picker__container-box"},[e.createElementVNode("picker-view",{class:e.normalizeClass(["uni-datetime-picker-view",[i.hideSecond?"time-hide-second":""]]),"indicator-style":s.indicatorStyle,value:r.hms,onChange:n[3]||(n[3]=(...e)=>r.bindTimeChange&&r.bindTimeChange(...e))},[e.createElementVNode("picker-view-column",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.hours,((t,n)=>(e.openBlock(),e.createElementBlock("view",{class:"uni-datetime-picker-item",key:n},[e.createElementVNode("text",{class:"uni-datetime-picker-item"},e.toDisplayString(r.lessThanTen(t)),1)])))),128))]),e.createElementVNode("picker-view-column",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.minutes,((t,n)=>(e.openBlock(),e.createElementBlock("view",{class:"uni-datetime-picker-item",key:n},[e.createElementVNode("text",{class:"uni-datetime-picker-item"},e.toDisplayString(r.lessThanTen(t)),1)])))),128))]),i.hideSecond?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("picker-view-column",{key:0},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.seconds,((t,n)=>(e.openBlock(),e.createElementBlock("view",{class:"uni-datetime-picker-item",key:n},[e.createElementVNode("text",{class:"uni-datetime-picker-item"},e.toDisplayString(r.lessThanTen(t)),1)])))),128))]))],42,["indicator-style","value"]),e.createElementVNode("text",{class:e.normalizeClass(["uni-datetime-picker-sign",[i.hideSecond?"sign-center":"sign-left"]])},":",2),i.hideSecond?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("text",{key:0,class:"uni-datetime-picker-sign sign-right"},":"))])):e.createCommentVNode("",!0),e.createElementVNode("view",{class:"uni-datetime-picker-btn"},[e.createElementVNode("view",{onClick:n[4]||(n[4]=(...e)=>r.clearTime&&r.clearTime(...e))},[e.createElementVNode("text",{class:"uni-datetime-picker-btn-text"},e.toDisplayString(r.clearText),1)]),e.createElementVNode("view",{class:"uni-datetime-picker-btn-group"},[e.createElementVNode("view",{class:"uni-datetime-picker-cancel",onClick:n[5]||(n[5]=(...e)=>r.tiggerTimePicker&&r.tiggerTimePicker(...e))},[e.createElementVNode("text",{class:"uni-datetime-picker-btn-text"},e.toDisplayString(r.cancelText),1)]),e.createElementVNode("view",{onClick:n[6]||(n[6]=(...e)=>r.setTime&&r.setTime(...e))},[e.createElementVNode("text",{class:"uni-datetime-picker-btn-text"},e.toDisplayString(r.okText),1)])])])],6)):e.createCommentVNode("",!0)])}],["__scopeId","data-v-8a3925ff"]]),{t:_e}=ge(ve),Se={components:{calendarItem:ae,timePicker:ke},options:{virtualHost:!0},props:{date:{type:String,default:""},defTime:{type:[String,Object],default:""},selectableTimes:{type:[Object],default:()=>({})},selected:{type:Array,default:()=>[]},startDate:{type:String,default:""},endDate:{type:String,default:""},startPlaceholder:{type:String,default:""},endPlaceholder:{type:String,default:""},range:{type:Boolean,default:!1},hasTime:{type:Boolean,default:!1},insert:{type:Boolean,default:!0},showMonth:{type:Boolean,default:!0},clearDate:{type:Boolean,default:!0},checkHover:{type:Boolean,default:!0},hideSecond:{type:[Boolean],default:!1},pleStatus:{type:Object,default:()=>({before:"",after:"",data:[],fulldate:""})},defaultValue:{type:[String,Object,Array],default:""}},data:()=>({show:!1,weeks:[],calendar:{},nowDate:{},aniMaskShow:!1,firstEnter:!0,time:"",timeRange:{startTime:"",endTime:""},tempSingleDate:"",tempRange:{before:"",after:""}}),watch:{date:{immediate:!0,handler(e){this.range||(this.tempSingleDate=e,setTimeout((()=>{this.init(e)}),100))}},defTime:{immediate:!0,handler(e){this.range?(this.timeRange.startTime=e.start,this.timeRange.endTime=e.end):this.time=e}},startDate(e){this.cale&&(this.cale.setStartDate(e),this.cale.setDate(this.nowDate.fullDate),this.weeks=this.cale.weeks)},endDate(e){this.cale&&(this.cale.setEndDate(e),this.cale.setDate(this.nowDate.fullDate),this.weeks=this.cale.weeks)},selected(e){this.cale&&(this.cale.setSelectInfo(this.nowDate.fullDate,e),this.weeks=this.cale.weeks)},pleStatus:{immediate:!0,handler(e){const{before:t,after:n,fulldate:i,which:a}=e;this.tempRange.before=t,this.tempRange.after=n,setTimeout((()=>{if(i)if(this.cale.setHoverMultiple(i),t&&n){if(this.cale.lastHover=!0,this.rangeWithinMonth(n,t))return;this.setDate(t)}else this.cale.setMultiple(i),this.setDate(this.nowDate.fullDate),this.calendar.fullDate="",this.cale.lastHover=!1;else{if(!this.cale)return;this.cale.setDefaultMultiple(t,n),"left"===a&&t?(this.setDate(t),this.weeks=this.cale.weeks):n&&(this.setDate(n),this.weeks=this.cale.weeks),this.cale.lastHover=!0}}),16)}}},computed:{timepickerStartTime(){return(this.range?this.tempRange.before:this.calendar.fullDate)===this.startDate?this.selectableTimes.start:""},timepickerEndTime(){return(this.range?this.tempRange.after:this.calendar.fullDate)===this.endDate?this.selectableTimes.end:""},selectDateText:()=>_e("uni-datetime-picker.selectDate"),startDateText(){return this.startPlaceholder||_e("uni-datetime-picker.startDate")},endDateText(){return this.endPlaceholder||_e("uni-datetime-picker.endDate")},okText:()=>_e("uni-datetime-picker.ok"),yearText:()=>_e("uni-datetime-picker.year"),monthText:()=>_e("uni-datetime-picker.month"),MONText:()=>_e("uni-calender.MON"),TUEText:()=>_e("uni-calender.TUE"),WEDText:()=>_e("uni-calender.WED"),THUText:()=>_e("uni-calender.THU"),FRIText:()=>_e("uni-calender.FRI"),SATText:()=>_e("uni-calender.SAT"),SUNText:()=>_e("uni-calender.SUN"),confirmText:()=>_e("uni-calender.confirm")},created(){this.cale=new class{constructor({selected:e,startDate:t,endDate:n,range:i}={}){this.date=this.getDateObj(new Date),this.selected=e||[],this.startDate=t,this.endDate=n,this.range=i,this.cleanMultipleStatus(),this.weeks={},this.lastHover=!1}setDate(e){const t=this.getDateObj(e);this.getWeeks(t.fullDate)}cleanMultipleStatus(){this.multipleStatus={before:"",after:"",data:[]}}setStartDate(e){this.startDate=e}setEndDate(e){this.endDate=e}getPreMonthObj(e){e=ie(e);const t=(e=new Date(e)).getMonth();e.setMonth(t-1);const n=e.getMonth();return 0!==t&&n-t==0&&e.setMonth(n-1),this.getDateObj(e)}getNextMonthObj(e){e=ie(e);const t=(e=new Date(e)).getMonth();e.setMonth(t+1);const n=e.getMonth();return n-t>1&&e.setMonth(n-1),this.getDateObj(e)}getDateObj(e){return e=ie(e),{fullDate:G(e=new Date(e)),year:e.getFullYear(),month:Q(e.getMonth()+1),date:Q(e.getDate()),day:e.getDay()}}getPreMonthDays(e,t){const n=[];for(let i=e-1;i>=0;i--){const e=t.month-1;n.push({date:new Date(t.year,e,-i).getDate(),month:e,disable:!0})}return n}getCurrentMonthDays(e,t){const n=[],i=this.date.fullDate;for(let a=1;a<=e;a++){const e=`${t.year}-${t.month}-${Q(a)}`,s=i===e,r=this.selected&&this.selected.find((t=>{if(this.dateEqual(e,t.date))return t}));this.startDate&&ee(this.startDate,e),this.endDate&&ee(e,this.endDate);let o=this.multipleStatus.data,l=-1;this.range&&o&&(l=o.findIndex((t=>this.dateEqual(t,e))));const c=-1!==l;n.push({fullDate:e,year:t.year,date:a,multiple:!!this.range&&c,beforeMultiple:this.isLogicBefore(e,this.multipleStatus.before,this.multipleStatus.after),afterMultiple:this.isLogicAfter(e,this.multipleStatus.before,this.multipleStatus.after),month:t.month,disable:this.startDate&&!ee(this.startDate,e)||this.endDate&&!ee(e,this.endDate),isToday:s,userChecked:!1,extraInfo:r})}return n}_getNextMonthDays(e,t){const n=[],i=t.month+1;for(let a=1;a<=e;a++)n.push({date:a,month:i,disable:!0});return n}getInfo(e){return e||(e=new Date),this.calendar.find((t=>t.fullDate===this.getDateObj(e).fullDate))}dateEqual(e,t){return e=new Date(ie(e)),t=new Date(ie(t)),e.valueOf()===t.valueOf()}isLogicBefore(e,t,n){let i=t;return t&&n&&(i=ee(t,n)?t:n),this.dateEqual(i,e)}isLogicAfter(e,t,n){let i=n;return t&&n&&(i=ee(t,n)?n:t),this.dateEqual(i,e)}geDateAll(e,t){var n=[],i=e.split("-"),a=t.split("-"),s=new Date;s.setFullYear(i[0],i[1]-1,i[2]);var r=new Date;r.setFullYear(a[0],a[1]-1,a[2]);for(var o=s.getTime()-864e5,l=r.getTime()-864e5,c=o;c<=l;)c+=864e5,n.push(this.getDateObj(new Date(parseInt(c))).fullDate);return n}setMultiple(e){if(!this.range)return;let{before:t,after:n}=this.multipleStatus;if(t&&n){if(!this.lastHover)return void(this.lastHover=!0);this.multipleStatus.before=e,this.multipleStatus.after="",this.multipleStatus.data=[],this.multipleStatus.fulldate="",this.lastHover=!1}else t?(this.multipleStatus.after=e,ee(this.multipleStatus.before,this.multipleStatus.after)?this.multipleStatus.data=this.geDateAll(this.multipleStatus.before,this.multipleStatus.after):this.multipleStatus.data=this.geDateAll(this.multipleStatus.after,this.multipleStatus.before),this.lastHover=!0):(this.multipleStatus.before=e,this.multipleStatus.after=void 0,this.lastHover=!1);this.getWeeks(e)}setHoverMultiple(e){if(!this.range||this.lastHover)return;const{before:t}=this.multipleStatus;t?(this.multipleStatus.after=e,ee(this.multipleStatus.before,this.multipleStatus.after)?this.multipleStatus.data=this.geDateAll(this.multipleStatus.before,this.multipleStatus.after):this.multipleStatus.data=this.geDateAll(this.multipleStatus.after,this.multipleStatus.before)):this.multipleStatus.before=e,this.getWeeks(e)}setDefaultMultiple(e,t){this.multipleStatus.before=e,this.multipleStatus.after=t,e&&t&&(ee(e,t)?(this.multipleStatus.data=this.geDateAll(e,t),this.getWeeks(t)):(this.multipleStatus.data=this.geDateAll(t,e),this.getWeeks(e)))}getWeeks(e){const{year:t,month:n}=this.getDateObj(e),i=new Date(t,n-1,1).getDay(),a=this.getPreMonthDays(i,this.getDateObj(e)),s=new Date(t,n,0).getDate(),r=42-i-s,o=[...a,...this.getCurrentMonthDays(s,this.getDateObj(e)),...this._getNextMonthDays(r,this.getDateObj(e))],l=new Array(6);for(let c=0;c{setTimeout((()=>{this.aniMaskShow=!0}),50)}))},close(){this.aniMaskShow=!1,this.$nextTick((()=>{setTimeout((()=>{this.show=!1,this.$emit("close")}),300)}))},confirm(){this.setEmit("confirm"),this.close()},change(e){(this.insert||e)&&this.setEmit("change")},monthSwitch(){let{year:e,month:t}=this.nowDate;this.$emit("monthSwitch",{year:e,month:Number(t)})},setEmit(e){this.range||(this.calendar.fullDate||(this.calendar=this.cale.getInfo(new Date),this.tempSingleDate=this.calendar.fullDate),this.hasTime&&!this.time&&(this.time=Z(new Date,this.hideSecond)));let{year:t,month:n,date:i,fullDate:a,extraInfo:s}=this.calendar;this.$emit(e,{range:this.cale.multipleStatus,year:t,month:n,date:i,time:this.time,timeRange:this.timeRange,fulldate:a,extraInfo:s||{}})},choiceDate(e){if(e.disable)return;this.calendar=e,this.calendar.userChecked=!0,this.cale.setMultiple(this.calendar.fullDate,!0),this.weeks=this.cale.weeks,this.tempSingleDate=this.calendar.fullDate;const t=new Date(this.cale.multipleStatus.before).getTime(),n=new Date(this.cale.multipleStatus.after).getTime();t>n&&n?(this.tempRange.before=this.cale.multipleStatus.after,this.tempRange.after=this.cale.multipleStatus.before):(this.tempRange.before=this.cale.multipleStatus.before,this.tempRange.after=this.cale.multipleStatus.after),this.change(!0)},changeMonth(e){let t;"pre"===e?t=this.cale.getPreMonthObj(this.nowDate.fullDate).fullDate:"next"===e&&(t=this.cale.getNextMonthObj(this.nowDate.fullDate).fullDate),this.setDate(t),this.monthSwitch()},setDate(e){this.cale.setDate(e),this.weeks=this.cale.weeks,this.nowDate=this.cale.getInfo(e)}}};const be={name:"UniDatetimePicker",options:{virtualHost:!0},components:{Calendar:q(Se,[["render",function(t,i,a,s,r,o){const l=e.resolveComponent("calendar-item"),c=e.resolveComponent("time-picker"),u=n(e.resolveDynamicComponent("uni-icons"),W);return e.openBlock(),e.createElementBlock("view",{class:"uni-calendar",onMouseleave:i[8]||(i[8]=(...e)=>o.leaveCale&&o.leaveCale(...e))},[!a.insert&&r.show?(e.openBlock(),e.createElementBlock("view",{key:0,class:e.normalizeClass(["uni-calendar__mask",{"uni-calendar--mask-show":r.aniMaskShow}]),onClick:i[0]||(i[0]=(...e)=>o.maskClick&&o.maskClick(...e))},null,2)):e.createCommentVNode("",!0),a.insert||r.show?(e.openBlock(),e.createElementBlock("view",{key:1,class:e.normalizeClass(["uni-calendar__content",{"uni-calendar--fixed":!a.insert,"uni-calendar--ani-show":r.aniMaskShow,"uni-calendar__content-mobile":r.aniMaskShow}])},[e.createElementVNode("view",{class:e.normalizeClass(["uni-calendar__header",{"uni-calendar__header-mobile":!a.insert}])},[e.createElementVNode("view",{class:"uni-calendar__header-btn-box",onClick:i[1]||(i[1]=e.withModifiers((e=>o.changeMonth("pre")),["stop"]))},[e.createElementVNode("view",{class:"uni-calendar__header-btn uni-calendar--left"})]),e.createElementVNode("picker",{mode:"date",value:a.date,fields:"month",onChange:i[2]||(i[2]=(...e)=>o.bindDateChange&&o.bindDateChange(...e))},[e.createElementVNode("text",{class:"uni-calendar__header-text"},e.toDisplayString((r.nowDate.year||"")+o.yearText+(r.nowDate.month||"")+o.monthText),1)],40,["value"]),e.createElementVNode("view",{class:"uni-calendar__header-btn-box",onClick:i[3]||(i[3]=e.withModifiers((e=>o.changeMonth("next")),["stop"]))},[e.createElementVNode("view",{class:"uni-calendar__header-btn uni-calendar--right"})]),a.insert?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("view",{key:0,class:"dialog-close",onClick:i[4]||(i[4]=(...e)=>o.maskClick&&o.maskClick(...e))},[e.createElementVNode("view",{class:"dialog-close-plus","data-id":"close"}),e.createElementVNode("view",{class:"dialog-close-plus dialog-close-rotate","data-id":"close"})]))],2),e.createElementVNode("view",{class:"uni-calendar__box"},[a.showMonth?(e.openBlock(),e.createElementBlock("view",{key:0,class:"uni-calendar__box-bg"},[e.createElementVNode("text",{class:"uni-calendar__box-bg-text"},e.toDisplayString(r.nowDate.month),1)])):e.createCommentVNode("",!0),e.createElementVNode("view",{class:"uni-calendar__weeks",style:{"padding-bottom":"7px"}},[e.createElementVNode("view",{class:"uni-calendar__weeks-day"},[e.createElementVNode("text",{class:"uni-calendar__weeks-day-text"},e.toDisplayString(o.SUNText),1)]),e.createElementVNode("view",{class:"uni-calendar__weeks-day"},[e.createElementVNode("text",{class:"uni-calendar__weeks-day-text"},e.toDisplayString(o.MONText),1)]),e.createElementVNode("view",{class:"uni-calendar__weeks-day"},[e.createElementVNode("text",{class:"uni-calendar__weeks-day-text"},e.toDisplayString(o.TUEText),1)]),e.createElementVNode("view",{class:"uni-calendar__weeks-day"},[e.createElementVNode("text",{class:"uni-calendar__weeks-day-text"},e.toDisplayString(o.WEDText),1)]),e.createElementVNode("view",{class:"uni-calendar__weeks-day"},[e.createElementVNode("text",{class:"uni-calendar__weeks-day-text"},e.toDisplayString(o.THUText),1)]),e.createElementVNode("view",{class:"uni-calendar__weeks-day"},[e.createElementVNode("text",{class:"uni-calendar__weeks-day-text"},e.toDisplayString(o.FRIText),1)]),e.createElementVNode("view",{class:"uni-calendar__weeks-day"},[e.createElementVNode("text",{class:"uni-calendar__weeks-day-text"},e.toDisplayString(o.SATText),1)])]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.weeks,((t,n)=>(e.openBlock(),e.createElementBlock("view",{class:"uni-calendar__weeks",key:n},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t,((t,n)=>(e.openBlock(),e.createElementBlock("view",{class:"uni-calendar__weeks-item",key:n},[e.createVNode(l,{class:"uni-calendar-item--hook",weeks:t,calendar:r.calendar,selected:a.selected,checkHover:a.range,onChange:o.choiceDate,onHandleMouse:o.handleMouse},null,8,["weeks","calendar","selected","checkHover","onChange","onHandleMouse"])])))),128))])))),128))]),a.insert||a.range||!a.hasTime?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("view",{key:0,class:"uni-date-changed uni-calendar--fixed-top",style:{padding:"0 80px"}},[e.createElementVNode("view",{class:"uni-date-changed--time-date"},e.toDisplayString(r.tempSingleDate?r.tempSingleDate:o.selectDateText),1),e.createVNode(c,{type:"time",start:o.timepickerStartTime,end:o.timepickerEndTime,modelValue:r.time,"onUpdate:modelValue":i[5]||(i[5]=e=>r.time=e),disabled:!r.tempSingleDate,border:!1,"hide-second":a.hideSecond,class:"time-picker-style"},null,8,["start","end","modelValue","disabled","hide-second"])])),!a.insert&&a.range&&a.hasTime?(e.openBlock(),e.createElementBlock("view",{key:1,class:"uni-date-changed uni-calendar--fixed-top"},[e.createElementVNode("view",{class:"uni-date-changed--time-start"},[e.createElementVNode("view",{class:"uni-date-changed--time-date"},e.toDisplayString(r.tempRange.before?r.tempRange.before:o.startDateText),1),e.createVNode(c,{type:"time",start:o.timepickerStartTime,modelValue:r.timeRange.startTime,"onUpdate:modelValue":i[6]||(i[6]=e=>r.timeRange.startTime=e),border:!1,"hide-second":a.hideSecond,disabled:!r.tempRange.before,class:"time-picker-style"},null,8,["start","modelValue","hide-second","disabled"])]),e.createElementVNode("view",{style:{"line-height":"50px"}},[e.createVNode(u,{type:"arrowthinright",color:"#999"})]),e.createElementVNode("view",{class:"uni-date-changed--time-end"},[e.createElementVNode("view",{class:"uni-date-changed--time-date"},e.toDisplayString(r.tempRange.after?r.tempRange.after:o.endDateText),1),e.createVNode(c,{type:"time",end:o.timepickerEndTime,modelValue:r.timeRange.endTime,"onUpdate:modelValue":i[7]||(i[7]=e=>r.timeRange.endTime=e),border:!1,"hide-second":a.hideSecond,disabled:!r.tempRange.after,class:"time-picker-style"},null,8,["end","modelValue","hide-second","disabled"])])])):e.createCommentVNode("",!0),a.insert?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("view",{key:2,class:"uni-date-changed uni-date-btn--ok"}))],2)):e.createCommentVNode("",!0)],32)}],["__scopeId","data-v-8dc4a3ee"]]),TimePicker:ke},data:()=>({isRange:!1,hasTime:!1,displayValue:"",inputDate:"",calendarDate:"",pickerTime:"",calendarRange:{startDate:"",startTime:"",endDate:"",endTime:""},displayRangeValue:{startDate:"",endDate:""},tempRange:{startDate:"",startTime:"",endDate:"",endTime:""},startMultipleStatus:{before:"",after:"",data:[],fulldate:""},endMultipleStatus:{before:"",after:"",data:[],fulldate:""},pickerVisible:!1,pickerPositionStyle:null,isEmitValue:!1,isPhone:!1,isFirstShow:!0,i18nT:()=>{}}),props:{type:{type:String,default:"datetime"},value:{type:[String,Number,Array,Date],default:""},modelValue:{type:[String,Number,Array,Date],default:""},start:{type:[Number,String],default:""},end:{type:[Number,String],default:""},returnType:{type:String,default:"string"},placeholder:{type:String,default:""},startPlaceholder:{type:String,default:""},endPlaceholder:{type:String,default:""},rangeSeparator:{type:String,default:"-"},border:{type:[Boolean],default:!0},disabled:{type:[Boolean],default:!1},clearIcon:{type:[Boolean],default:!0},hideSecond:{type:[Boolean],default:!1},defaultValue:{type:[String,Object,Array],default:""}},watch:{type:{immediate:!0,handler(e){this.hasTime=-1!==e.indexOf("time"),this.isRange=-1!==e.indexOf("range")}},modelValue:{immediate:!0,handler(e){this.isEmitValue?this.isEmitValue=!1:this.initPicker(e)}},start:{immediate:!0,handler(e){e&&(this.calendarRange.startDate=G(e),this.hasTime&&(this.calendarRange.startTime=Z(e)))}},end:{immediate:!0,handler(e){e&&(this.calendarRange.endDate=G(e),this.hasTime&&(this.calendarRange.endTime=Z(e,this.hideSecond)))}}},computed:{timepickerStartTime(){return(this.isRange?this.tempRange.startDate:this.inputDate)===this.calendarRange.startDate?this.calendarRange.startTime:""},timepickerEndTime(){return(this.isRange?this.tempRange.endDate:this.inputDate)===this.calendarRange.endDate?this.calendarRange.endTime:""},mobileCalendarTime(){const e={start:this.tempRange.startTime,end:this.tempRange.endTime};return this.isRange?e:this.pickerTime},mobSelectableTime(){return{start:this.calendarRange.startTime,end:this.calendarRange.endTime}},datePopupWidth(){return this.isRange?653:301},singlePlaceholderText(){return this.placeholder||("date"===this.type?this.selectDateText:this.selectDateTimeText)},startPlaceholderText(){return this.startPlaceholder||this.startDateText},endPlaceholderText(){return this.endPlaceholder||this.endDateText},selectDateText(){return this.i18nT("uni-datetime-picker.selectDate")},selectDateTimeText(){return this.i18nT("uni-datetime-picker.selectDateTime")},selectTimeText(){return this.i18nT("uni-datetime-picker.selectTime")},startDateText(){return this.startPlaceholder||this.i18nT("uni-datetime-picker.startDate")},startTimeText(){return this.i18nT("uni-datetime-picker.startTime")},endDateText(){return this.endPlaceholder||this.i18nT("uni-datetime-picker.endDate")},endTimeText(){return this.i18nT("uni-datetime-picker.endTime")},okText(){return this.i18nT("uni-datetime-picker.ok")},clearText(){return this.i18nT("uni-datetime-picker.clear")},showClearIcon(){return this.clearIcon&&!this.disabled&&(this.displayValue||this.displayRangeValue.startDate&&this.displayRangeValue.endDate)}},created(){this.initI18nT(),this.platform()},methods:{initI18nT(){const e=ge(ve);this.i18nT=e.t},initPicker(e){if(!e&&!this.defaultValue||Array.isArray(e)&&!e.length)this.$nextTick((()=>{this.clear(!1)}));else if(Array.isArray(e)||this.isRange){const[t,n]=e;if(!t&&!n)return;const i=G(t),a=Z(t,this.hideSecond),s=G(n),r=Z(n,this.hideSecond),o=i,l=s;this.displayRangeValue.startDate=this.tempRange.startDate=o,this.displayRangeValue.endDate=this.tempRange.endDate=l,this.hasTime&&(this.displayRangeValue.startDate=`${i} ${a}`,this.displayRangeValue.endDate=`${s} ${r}`,this.tempRange.startTime=a,this.tempRange.endTime=r);const c={before:i,after:s};this.startMultipleStatus=Object.assign({},this.startMultipleStatus,c,{which:"right"}),this.endMultipleStatus=Object.assign({},this.endMultipleStatus,c,{which:"left"})}else e?(this.displayValue=this.inputDate=this.calendarDate=G(e),this.hasTime&&(this.pickerTime=Z(e,this.hideSecond),this.displayValue=`${this.displayValue} ${this.pickerTime}`)):this.defaultValue&&(this.inputDate=this.calendarDate=G(this.defaultValue),this.hasTime&&(this.pickerTime=Z(this.defaultValue,this.hideSecond)))},updateLeftCale(e){const t=this.$refs.left;t.cale.setHoverMultiple(e.after),t.setDate(this.$refs.left.nowDate.fullDate)},updateRightCale(e){const t=this.$refs.right;t.cale.setHoverMultiple(e.after),t.setDate(this.$refs.right.nowDate.fullDate)},platform(){if("undefined"!=typeof navigator)return void(this.isPhone=-1!==navigator.userAgent.toLowerCase().indexOf("mobile"));const{windowWidth:e}=uni.getSystemInfoSync();this.isPhone=e<=500,this.windowWidth=e},show(){if(this.$emit("show"),this.disabled)return;if(this.platform(),this.isPhone)return void setTimeout((()=>{this.$refs.mobile.open()}),0);this.pickerPositionStyle={top:"10px"};uni.createSelectorQuery().in(this).select(".uni-date-editor").boundingClientRect((e=>{this.windowWidth-e.left{if(this.pickerVisible=!this.pickerVisible,!this.isPhone&&this.isRange&&this.isFirstShow){this.isFirstShow=!1;const{startDate:e,endDate:t}=this.calendarRange;e&&t?this.diffDate(e,t)<30&&this.$refs.right.changeMonth("pre"):this.isPhone&&(this.$refs.right.cale.lastHover=!1)}}),50)},close(){setTimeout((()=>{this.pickerVisible=!1,this.$emit("maskClick",this.value),this.$refs.mobile&&this.$refs.mobile.close()}),20)},setEmit(e){"timestamp"!==this.returnType&&"date"!==this.returnType||(Array.isArray(e)?(this.hasTime||(e[0]=e[0]+" 00:00:00",e[1]=e[1]+" 00:00:00"),e[0]=this.createTimestamp(e[0]),e[1]=this.createTimestamp(e[1]),"date"===this.returnType&&(e[0]=new Date(e[0]),e[1]=new Date(e[1]))):(this.hasTime||(e+=" 00:00:00"),e=this.createTimestamp(e),"date"===this.returnType&&(e=new Date(e)))),this.$emit("update:modelValue",e),this.$emit("input",e),this.$emit("change",e),this.isEmitValue=!0},createTimestamp:e=>(e=ie(e),Date.parse(new Date(e))),singleChange(e){this.calendarDate=this.inputDate=e.fulldate,this.hasTime||this.confirmSingleChange()},confirmSingleChange(){if(!te(this.inputDate)){const e=new Date;this.calendarDate=this.inputDate=G(e),this.pickerTime=Z(e,this.hideSecond)}let e,t,n=!1;if(this.start){let i=this.start;"number"==typeof this.start&&(i=Y(this.start,this.hideSecond)),[e,t]=i.split(" "),this.start&&!ee(e,this.inputDate)&&(n=!0,this.inputDate=e)}let i,a,s=!1;if(this.end){let e=this.end;"number"==typeof this.end&&(e=Y(this.end,this.hideSecond)),[i,a]=e.split(" "),this.end&&!ee(this.inputDate,i)&&(s=!0,this.inputDate=i)}this.hasTime?(n&&(this.pickerTime=t||X(this.hideSecond)),s&&(this.pickerTime=a||X(this.hideSecond)),this.pickerTime||(this.pickerTime=Z(Date.now(),this.hideSecond)),this.displayValue=`${this.inputDate} ${this.pickerTime}`):this.displayValue=this.inputDate,this.setEmit(this.displayValue),this.pickerVisible=!1},leftChange(e){const{before:t,after:n}=e.range;this.rangeChange(t,n);const i={before:e.range.before,after:e.range.after,data:e.range.data,fulldate:e.fulldate};this.startMultipleStatus=Object.assign({},this.startMultipleStatus,i),this.$emit("calendarClick",e)},rightChange(e){const{before:t,after:n}=e.range;this.rangeChange(t,n);const i={before:e.range.before,after:e.range.after,data:e.range.data,fulldate:e.fulldate};this.endMultipleStatus=Object.assign({},this.endMultipleStatus,i),this.$emit("calendarClick",e)},mobileChange(e){if(this.isRange){const{before:t,after:n}=e.range;if(!t)return;if(this.handleStartAndEnd(t,n,!0),this.hasTime){const{startTime:t,endTime:n}=e.timeRange;this.tempRange.startTime=t,this.tempRange.endTime=n}this.confirmRangeChange()}else this.hasTime?this.displayValue=e.fulldate+" "+e.time:this.displayValue=e.fulldate,this.setEmit(this.displayValue);this.$refs.mobile.close()},rangeChange(e,t){e&&t&&(this.handleStartAndEnd(e,t,!0),this.hasTime||this.confirmRangeChange())},confirmRangeChange(){if(!this.tempRange.startDate||!this.tempRange.endDate)return void(this.pickerVisible=!1);let e,t;te(this.tempRange.startDate)||(this.tempRange.startDate=G(Date.now())),te(this.tempRange.endDate)||(this.tempRange.endDate=G(Date.now()));let n,i,a=!1,s=!1;if(this.start){let e=this.start;"number"==typeof this.start&&(e=Y(this.start,this.hideSecond)),[n,i]=e.split(" "),this.start&&!ee(this.start,this.tempRange.startDate)&&(a=!0,this.tempRange.startDate=n),this.start&&!ee(this.start,this.tempRange.endDate)&&(s=!0,this.tempRange.endDate=n)}let r,o,l=!1,c=!1;if(this.end){let e=this.end;"number"==typeof this.end&&(e=Y(this.end,this.hideSecond)),[r,o]=e.split(" "),this.end&&!ee(this.tempRange.startDate,this.end)&&(l=!0,this.tempRange.startDate=r),this.end&&!ee(this.tempRange.endDate,this.end)&&(c=!0,this.tempRange.endDate=r)}this.hasTime?(a?this.tempRange.startTime=i||X(this.hideSecond):l&&(this.tempRange.startTime=o||X(this.hideSecond)),this.tempRange.startTime||(this.tempRange.startTime=Z(Date.now(),this.hideSecond)),s?this.tempRange.endTime=i||X(this.hideSecond):c&&(this.tempRange.endTime=o||X(this.hideSecond)),this.tempRange.endTime||(this.tempRange.endTime=Z(Date.now(),this.hideSecond)),e=this.displayRangeValue.startDate=`${this.tempRange.startDate} ${this.tempRange.startTime}`,t=this.displayRangeValue.endDate=`${this.tempRange.endDate} ${this.tempRange.endTime}`):(e=this.displayRangeValue.startDate=this.tempRange.startDate,t=this.displayRangeValue.endDate=this.tempRange.endDate),ee(e,t)||([e,t]=[t,e]),this.displayRangeValue.startDate=e,this.displayRangeValue.endDate=t;const u=[e,t];this.setEmit(u),this.pickerVisible=!1},handleStartAndEnd(e,t,n=!1){if(!e)return;t||(t=e);const i=n?"tempRange":"range",a=ee(e,t);this[i].startDate=a?e:t,this[i].endDate=a?t:e},dateCompare:(e,t)=>(e=new Date(e.replace("-","/").replace("-","/")))<=(t=new Date(t.replace("-","/").replace("-","/"))),diffDate(e,t){e=new Date(e.replace("-","/").replace("-","/"));const n=((t=new Date(t.replace("-","/").replace("-","/")))-e)/864e5;return Math.abs(n)},clear(e=!0){this.isRange?(this.displayRangeValue.startDate="",this.displayRangeValue.endDate="",this.tempRange.startDate="",this.tempRange.startTime="",this.tempRange.endDate="",this.tempRange.endTime="",this.isPhone?this.$refs.mobile&&this.$refs.mobile.clearCalender():(this.$refs.left&&this.$refs.left.clearCalender(),this.$refs.right&&this.$refs.right.clearCalender(),this.$refs.right&&this.$refs.right.changeMonth("next")),e&&(this.$emit("change",[]),this.$emit("input",[]),this.$emit("update:modelValue",[]))):(this.displayValue="",this.inputDate="",this.pickerTime="",this.isPhone?this.$refs.mobile&&this.$refs.mobile.clearCalender():this.$refs.pcSingle&&this.$refs.pcSingle.clearCalender(),e&&(this.$emit("change",""),this.$emit("input",""),this.$emit("update:modelValue","")))},calendarClick(e){this.$emit("calendarClick",e)}}};const Ee=q(be,[["render",function(t,i,a,s,r,o){const l=n(e.resolveDynamicComponent("uni-icons"),W),c=e.resolveComponent("time-picker"),u=e.resolveComponent("Calendar");return e.openBlock(),e.createElementBlock("view",{class:"uni-date"},[e.createElementVNode("view",{class:"uni-date-editor",onClick:i[1]||(i[1]=(...e)=>o.show&&o.show(...e))},[e.renderSlot(t.$slots,"default",{},(()=>[e.createElementVNode("view",{class:e.normalizeClass(["uni-date-editor--x",{"uni-date-editor--x__disabled":a.disabled,"uni-date-x--border":a.border}])},[r.isRange?(e.openBlock(),e.createElementBlock("view",{key:1,class:"uni-date-x uni-date-range"},[e.createVNode(l,{class:"icon-calendar",type:"calendar",color:"#c0c4cc",size:"22"}),e.createElementVNode("view",{class:"uni-date__x-input text-center"},e.toDisplayString(r.displayRangeValue.startDate||o.startPlaceholderText),1),e.createElementVNode("view",{class:"range-separator"},e.toDisplayString(a.rangeSeparator),1),e.createElementVNode("view",{class:"uni-date__x-input text-center"},e.toDisplayString(r.displayRangeValue.endDate||o.endPlaceholderText),1)])):(e.openBlock(),e.createElementBlock("view",{key:0,class:"uni-date-x uni-date-single"},[e.createVNode(l,{class:"icon-calendar",type:"calendar",color:"#c0c4cc",size:"22"}),e.createElementVNode("view",{class:"uni-date__x-input"},e.toDisplayString(r.displayValue||o.singlePlaceholderText),1)])),o.showClearIcon?(e.openBlock(),e.createElementBlock("view",{key:2,class:"uni-date__icon-clear",onClick:i[0]||(i[0]=e.withModifiers(((...e)=>o.clear&&o.clear(...e)),["stop"]))},[e.createVNode(l,{type:"clear",color:"#c0c4cc",size:"22"})])):e.createCommentVNode("",!0)],2)]),!0)]),e.withDirectives(e.createElementVNode("view",{class:"uni-date-mask--pc",onClick:i[2]||(i[2]=(...e)=>o.close&&o.close(...e))},null,512),[[e.vShow,r.pickerVisible]]),r.isPhone?e.createCommentVNode("",!0):e.withDirectives((e.openBlock(),e.createElementBlock("view",{key:0,ref:"datePicker",class:"uni-date-picker__container"},[r.isRange?(e.openBlock(),e.createElementBlock("view",{key:1,class:"uni-date-range--x",style:e.normalizeStyle(r.pickerPositionStyle)},[e.createElementVNode("view",{class:"uni-popper__arrow"}),r.hasTime?(e.openBlock(),e.createElementBlock("view",{key:0,class:"popup-x-header uni-date-changed"},[e.createElementVNode("view",{class:"popup-x-header--datetime"},[e.withDirectives(e.createElementVNode("input",{class:"uni-date__input uni-date-range__input",type:"text","onUpdate:modelValue":i[7]||(i[7]=e=>r.tempRange.startDate=e),placeholder:o.startDateText},null,8,["placeholder"]),[[e.vModelText,r.tempRange.startDate]]),e.createVNode(c,{type:"time",modelValue:r.tempRange.startTime,"onUpdate:modelValue":i[9]||(i[9]=e=>r.tempRange.startTime=e),start:o.timepickerStartTime,border:!1,disabled:!r.tempRange.startDate,hideSecond:a.hideSecond},{default:e.withCtx((()=>[e.withDirectives(e.createElementVNode("input",{class:"uni-date__input uni-date-range__input",type:"text","onUpdate:modelValue":i[8]||(i[8]=e=>r.tempRange.startTime=e),placeholder:o.startTimeText,disabled:!r.tempRange.startDate},null,8,["placeholder","disabled"]),[[e.vModelText,r.tempRange.startTime]])])),_:1},8,["modelValue","start","disabled","hideSecond"])]),e.createVNode(l,{type:"arrowthinright",color:"#999",style:{"line-height":"40px"}}),e.createElementVNode("view",{class:"popup-x-header--datetime"},[e.withDirectives(e.createElementVNode("input",{class:"uni-date__input uni-date-range__input",type:"text","onUpdate:modelValue":i[10]||(i[10]=e=>r.tempRange.endDate=e),placeholder:o.endDateText},null,8,["placeholder"]),[[e.vModelText,r.tempRange.endDate]]),e.createVNode(c,{type:"time",modelValue:r.tempRange.endTime,"onUpdate:modelValue":i[12]||(i[12]=e=>r.tempRange.endTime=e),end:o.timepickerEndTime,border:!1,disabled:!r.tempRange.endDate,hideSecond:a.hideSecond},{default:e.withCtx((()=>[e.withDirectives(e.createElementVNode("input",{class:"uni-date__input uni-date-range__input",type:"text","onUpdate:modelValue":i[11]||(i[11]=e=>r.tempRange.endTime=e),placeholder:o.endTimeText,disabled:!r.tempRange.endDate},null,8,["placeholder","disabled"]),[[e.vModelText,r.tempRange.endTime]])])),_:1},8,["modelValue","end","disabled","hideSecond"])])])):e.createCommentVNode("",!0),e.createElementVNode("view",{class:"popup-x-body"},[e.createVNode(u,{ref:"left",showMonth:!1,"start-date":r.calendarRange.startDate,"end-date":r.calendarRange.endDate,range:!0,pleStatus:r.endMultipleStatus,onChange:o.leftChange,onFirstEnterCale:o.updateRightCale,style:{padding:"0 8px"}},null,8,["start-date","end-date","pleStatus","onChange","onFirstEnterCale"]),e.createVNode(u,{ref:"right",showMonth:!1,"start-date":r.calendarRange.startDate,"end-date":r.calendarRange.endDate,range:!0,onChange:o.rightChange,pleStatus:r.startMultipleStatus,onFirstEnterCale:o.updateLeftCale,style:{padding:"0 8px","border-left":"1px solid #F1F1F1"}},null,8,["start-date","end-date","onChange","pleStatus","onFirstEnterCale"])]),r.hasTime?(e.openBlock(),e.createElementBlock("view",{key:1,class:"popup-x-footer"},[e.createElementVNode("text",{onClick:i[13]||(i[13]=(...e)=>o.clear&&o.clear(...e))},e.toDisplayString(o.clearText),1),e.createElementVNode("text",{class:"confirm-text",onClick:i[14]||(i[14]=(...e)=>o.confirmRangeChange&&o.confirmRangeChange(...e))},e.toDisplayString(o.okText),1)])):e.createCommentVNode("",!0)],4)):(e.openBlock(),e.createElementBlock("view",{key:0,class:"uni-date-single--x",style:e.normalizeStyle(r.pickerPositionStyle)},[e.createElementVNode("view",{class:"uni-popper__arrow"}),r.hasTime?(e.openBlock(),e.createElementBlock("view",{key:0,class:"uni-date-changed popup-x-header"},[e.withDirectives(e.createElementVNode("input",{class:"uni-date__input text-center",type:"text","onUpdate:modelValue":i[3]||(i[3]=e=>r.inputDate=e),placeholder:o.selectDateText},null,8,["placeholder"]),[[e.vModelText,r.inputDate]]),e.createVNode(c,{type:"time",modelValue:r.pickerTime,"onUpdate:modelValue":i[5]||(i[5]=e=>r.pickerTime=e),border:!1,disabled:!r.inputDate,start:o.timepickerStartTime,end:o.timepickerEndTime,hideSecond:a.hideSecond,style:{width:"100%"}},{default:e.withCtx((()=>[e.withDirectives(e.createElementVNode("input",{class:"uni-date__input text-center",type:"text","onUpdate:modelValue":i[4]||(i[4]=e=>r.pickerTime=e),placeholder:o.selectTimeText,disabled:!r.inputDate},null,8,["placeholder","disabled"]),[[e.vModelText,r.pickerTime]])])),_:1},8,["modelValue","disabled","start","end","hideSecond"])])):e.createCommentVNode("",!0),e.createVNode(u,{ref:"pcSingle",showMonth:!1,"start-date":r.calendarRange.startDate,"end-date":r.calendarRange.endDate,date:r.calendarDate,onChange:o.singleChange,"default-value":a.defaultValue,style:{padding:"0 8px"}},null,8,["start-date","end-date","date","onChange","default-value"]),r.hasTime?(e.openBlock(),e.createElementBlock("view",{key:1,class:"popup-x-footer"},[e.createElementVNode("text",{class:"confirm-text",onClick:i[6]||(i[6]=(...e)=>o.confirmSingleChange&&o.confirmSingleChange(...e))},e.toDisplayString(o.okText),1)])):e.createCommentVNode("",!0)],4))],512)),[[e.vShow,r.pickerVisible]]),r.isPhone?(e.openBlock(),e.createBlock(u,{key:1,ref:"mobile",clearDate:!1,date:r.calendarDate,defTime:o.mobileCalendarTime,"start-date":r.calendarRange.startDate,"end-date":r.calendarRange.endDate,selectableTimes:o.mobSelectableTime,startPlaceholder:a.startPlaceholder,endPlaceholder:a.endPlaceholder,"default-value":a.defaultValue,pleStatus:r.endMultipleStatus,showMonth:!1,range:r.isRange,hasTime:r.hasTime,insert:!1,hideSecond:a.hideSecond,onConfirm:o.mobileChange,onMaskClose:o.close,onChange:o.calendarClick},null,8,["date","defTime","start-date","end-date","selectableTimes","startPlaceholder","endPlaceholder","default-value","pleStatus","range","hasTime","hideSecond","onConfirm","onMaskClose","onChange"])):e.createCommentVNode("",!0)])}],["__scopeId","data-v-17511ee3"]]),xe=q({__name:"customNav",setup(t){e.useCssVars((e=>({bc08538a:n})));const n=wx.getSystemInfoSync().statusBarHeight+44+"px";return(t,n)=>(e.openBlock(),e.createElementBlock("view",{class:""},[e.createElementVNode("view",{class:"nav"},[e.renderSlot(t.$slots,"default",{},void 0,!0)]),e.createElementVNode("view",{class:"place"})]))}},[["__scopeId","data-v-566e182b"]]),De="https://36.112.48.190/jeecg-boot/sys/common/static/",Te=(e,t,n)=>{uni.showToast({title:e,icon:t||"none",duration:n||2e3})},Ne=(e,n)=>{d({token:H().token,type:"mobile"}).then((t=>{var i;if(t.success){Ce((null==(i=t.result)?void 0:i.menu)||[]).some((t=>-1!==e.indexOf(t)))?n():Te("无查看权限!")}})).catch((e=>{t("log","at utils/index.js:35","err@",e)}))},Ce=(e,t=[])=>e.length?(e.forEach((e=>{e.children&&t.push(...Ce(e.children)),t.push(e.path)})),t):[];function Ve(e){t("log","at utils/index.js:78","url",e);var n=plus.downloader.createDownload(e,{filename:`_downloads/wgt-${Date.now()}.wgt`},(function(e,n){if(200==n){var i=plus.io.convertLocalFileSystemURL(e.filename);t("log","at utils/index.js:86","fileSaveUrl",i),a=i,plus.runtime.install(a,{force:!0},(()=>{uni.showModal({title:"更新",content:"更新成功,请点击确认后重启",showCancel:!1,success(e){e.confirm&&plus.runtime.restart()}})}),(()=>uni.showToast({title:"安装失败!",icon:"error"})))}else plus.downloader.clear(),uni.showToast({title:"App下载失败!",icon:"error"});var a}));let i=plus.nativeUI.showWaiting("正在下載");n.start(),n.addEventListener("statechanged",((e,t)=>{switch(e.state){case 1:i.setTitle("正在下载");break;case 2:i.setTitle("已连接到服务器");break;case 3:parseInt(parseFloat(e.downloadedSize)/parseFloat(e.totalSize)*100),i.setTitle(" 正在下载");break;case 4:plus.nativeUI.closeWaiting()}}))}const Ie=()=>{let e=new Date;return(new Date).getTime(),`${e.getFullYear()}-${(e.getMonth()+1).toString().padStart(2,0)}-${e.getDate().toString().padStart(2,0)}`},Be=()=>{const e=H();e.positionSwitch?(Te("定位刷新中"),uni.getLocation({type:"wgs84",success:function(n){uni.request({url:"http://api.tianditu.gov.cn/geocoder",method:"GET",data:{postStr:JSON.stringify({lon:n.longitude,lat:n.latitude,ver:1}),type:"geocode",tk:"30fe0f0c1b2320e112bde797f3ddaff4"},success:function(i){let a=i.data;if(0==a.status){const t=a.result.addressComponent;let i=t.city?t.city:t.province;uni.setStorageSync("position",i),e.setPosition(i),Ae(n.latitude,n.longitude)}else t("log","at utils/index.js:223",a.message)},fail:function(e){Te("获取定位失败")}})}})):(uni.setStorageSync("position","濮阳市"),e.setPosition("濮阳市"),Ae())},Ae=(e,t)=>{let n={};H().positionSwitch?(n.lat=e,n.lon=t,Me(n)):(n.q="濮阳市",Me(n))},Me=e=>{const t=H();uni.request({url:"https://api.openweathermap.org/data/2.5/weather",method:"GET",data:{...e,appid:"600a60694b0e453dfbaafa862f1d1482",lang:"zh_cn"},success:function(e){uni.setStorageSync("wendu",Math.round(e.data.main.temp-273.15)),uni.setStorageSync("wenduIcon",e.data.weather[0].icon),t.setWeather(Math.round(e.data.main.temp-273.15),e.data.weather[0].icon)},fail:function(e){Te("天气获取失败")}})},Pe=e=>{uni.downloadFile({url:De+e,success:function(e){var t=e.tempFilePath;uni.openDocument({filePath:t,showMenu:!0,fail:function(e){Te(e.errMsg)}})},fail:function(e){t("error","at utils/index.js:282","文件下载失败",e)}})},Re=e=>`https://36.112.48.190/jeecg-boot/sys/common/static//${e}`,Oe=q({__name:"index",setup(i){e.useCssVars((e=>({"5184fac6":f})));const a=H();r((()=>{o(),E(),T()}));const s=e.ref([]),o=()=>{var e;(e={zslb:6},u({url:"/CxcDaping/cxcDaping/list",method:"get",data:e})).then((e=>{if(e.success){let t=e.result.records[0].wenjian.split(",");s.value=t.map((e=>"https://36.112.48.190/jeecg-boot/sys/common/static/"+e))}}))},c=e.ref(0),d=e.ref(0),h=["公文","公告","制度","法规"],p=e=>{d.value=e,_=1,S.value=[],x()},f=wx.getSystemInfoSync().statusBarHeight+44+"px";e.ref(null);const k=(e,t,n,i)=>{if(!t||1!=t||"detail"!=i){if(t&&3==t&&n)return Pe(n.mingcheng);t&&2==t&&(e+=`&zhiduid=${d.value}`),Ne(e,(()=>{uni.navigateTo({url:e})}))}};let _=1;const S=e.ref([]),b=e.ref([]),E=()=>{var e;u({url:"/zhgl_zbgl/zhglZbglZbb/homepageList",method:"get",data:e}).then((e=>{e.success&&(b.value=e.result.records.slice(0,2))})).catch((e=>{t("log","at pages/tab/index.vue:299","err",e)}))},x=()=>{(0==d.value?w:y)({pageNo:_,pageSize:5}).then((e=>{if(e.success){let t=0==d.value?"zbbm_dictText":"sbbm";S.value=[...S.value,...D(e.result.records,"zdmc",t,null)]}})).catch((e=>{t("log","at pages/tab/index.vue:332","err",e)}))},D=(e,t,n,i)=>(e.map((e=>{e._title=e[t],e._time=e[n],e._depart=e[i]})),e);l((()=>{S.value=[],o(),E(),T(),uni.stopPullDownRefresh()}));const T=()=>{0==c.value?m({pageNo:_,pageSize:5}).then((e=>{e.success&&(S.value=[...S.value,...D(e.result.records,"fwbt","fwtime",null)])})).catch((e=>{t("log","at pages/tab/index.vue:273","err",e)})):1==c.value?g({pageNo:_,pageSize:5}).then((e=>{e.success&&(S.value=[...S.value,...D(e.result.records,"neirong","fbdw","createTime")])})).catch((e=>{t("log","at pages/tab/index.vue:288","err",e)})):2==c.value?x():3==c.value&&v({pageNo:_,pageSize:5}).then((e=>{e.success&&(S.value=[...S.value,...D(e.result.records,"flfgmc","ssbm",null)])})).catch((e=>{t("log","at pages/tab/index.vue:315","err",e)}))};return(t,i)=>{const r=n(e.resolveDynamicComponent("uni-datetime-picker"),Ee);return e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass(["content",{gray:1==e.unref(a).isgray}])},[e.createElementVNode("view",{class:"nav"},[e.createElementVNode("view",{class:"nav_box f-row aic jcb"},[e.createElementVNode("view",{class:"weather_calender f-row aic"},[e.createElementVNode("view",{class:"position f-row aic"},[e.createElementVNode("image",{src:"/static/index/position.png",mode:""}),e.createElementVNode("text",null,e.toDisplayString(e.unref(a).position?e.unref(a).position:"暂未定位"),1)]),e.createElementVNode("view",{class:"position f-row aic"},[e.createElementVNode("image",{style:{height:"80rpx",width:"80rpx"},src:`http://openweathermap.org/img/w/${e.unref(a).wenduIcon}.png`,mode:""},null,8,["src"]),e.createElementVNode("text",null,e.toDisplayString(e.unref(a).wendu)+"℃",1)]),e.createVNode(r,{type:"date"},{default:e.withCtx((()=>[e.createElementVNode("view",{class:"position f-row aic"},[e.createElementVNode("image",{src:"/static/index/calendar.png",mode:""}),e.createElementVNode("text",null,e.toDisplayString(e.unref(Ie)()),1)])])),_:1})])])]),e.createElementVNode("view",{class:"f-col aic"},[e.createElementVNode("swiper",{class:"swiper",autoplay:""},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value,((t,n)=>(e.openBlock(),e.createElementBlock("swiper-item",{key:n,class:"swiper-item"},[e.createElementVNode("image",{src:t,mode:"aspectFill"},null,8,["src"])])))),128))])]),e.createElementVNode("view",{class:"wrapper f-col aic"},[e.createElementVNode("view",{class:"onduty"},[e.createElementVNode("view",{class:"title f-row aic jcb"},[e.createTextVNode(" 值班信息 "),e.createElementVNode("view",{class:"more",onClick:i[0]||(i[0]=e=>k("/pages/zhiban/index"))},[e.createTextVNode(" 查看更多 "),e.createElementVNode("image",{src:"/static/index/back.png",mode:""})])]),e.createElementVNode("view",{class:"info"},[e.createElementVNode("view",{class:"info_title f-row aic"},[e.createElementVNode("view",{class:""}," 日期 "),e.createElementVNode("view",{class:""}," 带班领导 "),e.createElementVNode("view",{class:""}," 值班领导 "),e.createElementVNode("view",{class:""}," 值班干部 ")]),e.createElementVNode("view",{class:"data_box"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(b.value,((t,n)=>(e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass(["data"," f-row","aic",{first:0==n}])},[e.createElementVNode("view",{class:""},e.toDisplayString(t.date),1),e.createElementVNode("view",{class:""},e.toDisplayString(t.dbld_dictText),1),e.createElementVNode("view",{class:""},e.toDisplayString(t.zbld_dictText),1),e.createElementVNode("view",{class:""},e.toDisplayString(t.zbgbrealname),1)],2)))),256))])])]),e.createElementVNode("view",{class:"list_wrapper"},[e.createElementVNode("view",{class:""},[e.createElementVNode("view",{class:"list_title f-row aic jca"},[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(h,((t,n)=>e.createElementVNode("view",{class:e.normalizeClass({active:c.value==n}),onClick:e=>(e=>{c.value=e,_=1,S.value=[],T()})(n)},e.toDisplayString(t),11,["onClick"]))),64))]),2==c.value?(e.openBlock(),e.createElementBlock("view",{key:0,class:"f-row aic zhidu"},[e.createElementVNode("view",{class:e.normalizeClass({active:0==d.value}),onClick:i[1]||(i[1]=e=>p(0))}," 厂级制度 ",2),e.createElementVNode("view",{class:e.normalizeClass({active:1==d.value}),onClick:i[2]||(i[2]=e=>p(1))}," 上级制度 ",2)])):e.createCommentVNode("",!0)]),e.createElementVNode("view",{style:{"padding-top":"24rpx"},class:"more",onClick:i[3]||(i[3]=e=>k(`/pages/document/index?id=${c.value}`,c.value))},[e.createTextVNode(" 查看更多 "),e.createElementVNode("image",{src:"/static/index/back.png",mode:""})]),e.createElementVNode("view",{class:"list_box"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(S.value,((t,n)=>(e.openBlock(),e.createElementBlock("view",{class:"list",key:n,onClick:e=>k(`/pages/document/detail?data=${JSON.stringify(t)}&id=${c.value}`,c.value,t,"detail")},[e.createElementVNode("view",{class:"topic"},e.toDisplayString(t._title),1),t._time||t._depart?(e.openBlock(),e.createElementBlock("view",{key:0,class:"time_Box f-row aic"},[t._time?(e.openBlock(),e.createElementBlock("view",{key:0,class:"time"},e.toDisplayString(t._time),1)):e.createCommentVNode("",!0),t._depart?(e.openBlock(),e.createElementBlock("view",{key:1,class:"look f-row aic"},e.toDisplayString(t._depart),1)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)],8,["onClick"])))),128))])])])],2)}}},[["__scopeId","data-v-d6ec6b55"]]),Le=q({__name:"extendCom",props:{title:{type:String,default:""},img:{type:String,default:""},list:{type:Array,default:function(){return[]}},total:{type:Number,default:0},type:{type:String,default:""}},setup(t){e.useCssVars((e=>({"11d92706":a.value})));const n=t,i=e.ref(!1),a=e.ref(null),s=e.getCurrentInstance();e.watch((()=>n.list),(()=>{e.nextTick((()=>{uni.createSelectorQuery().in(s.proxy).select(".item_box").boundingClientRect((e=>{a.value=(null==e?void 0:e.height)+"px"})).exec()}))}),{immediate:!0});const r=e=>{let t=null;Ne("/pages/task/index",(()=>{if("0"==n.type&&(t=0),"1"==n.type&&(t=1),"2"==n.type)return uni.navigateTo({url:`/pages/task/self?title=${e}`});uni.navigateTo({url:`/pages/task/index?id=${t}&title=${e}`})}))};return(n,a)=>(e.openBlock(),e.createElementBlock("view",{class:"content"},[e.createElementVNode("view",{class:"todo f-col aic"},[e.createElementVNode("view",{class:"f-col aic"},[e.createElementVNode("view",{class:"title_box f-row aic jcb",onClick:a[0]||(a[0]=e=>r(""))},[e.createElementVNode("view",{class:"title f-row aic"},[e.createElementVNode("image",{src:`/static/my/${t.img}.png`,mode:""},null,8,["src"]),e.createTextVNode(" "+e.toDisplayString(t.title),1)]),e.createElementVNode("view",{class:"num"},e.toDisplayString(t.total),1)]),t.list.length?(e.openBlock(),e.createElementBlock("view",{key:0,class:"list"},[e.createElementVNode("view",{class:e.normalizeClass(["box",{close:t.list.length>5&&i.value}])},[e.createElementVNode("view",{class:"item_box"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.list,((t,n)=>(e.openBlock(),e.createElementBlock("view",{onClick:e=>r(t.title),class:"item f-row aic",key:n},[e.createElementVNode("view",{class:""},e.toDisplayString(t.title),1),e.createElementVNode("text",null,e.toDisplayString(t.num),1)],8,["onClick"])))),128))])],2),e.withDirectives(e.createElementVNode("view",{class:"more",onClick:a[1]||(a[1]=e=>i.value=!i.value)},e.toDisplayString(i.value?"收起":"显示更多"),513),[[e.vShow,t.list.length>5]])])):e.createCommentVNode("",!0)])])]))}},[["__scopeId","data-v-d5e6674e"]]),Fe=q({__name:"todotask",setup(n){e.useCssVars((e=>({"6ebd20b9":i})));const i=wx.getSystemInfoSync().statusBarHeight+44+"px",s=H();a((()=>{k(),c(),m(),y(),uni.removeTabBarBadge({index:"1"})}));const r=e.ref([]),o=e.ref(0),c=()=>{h({pageNo:1,pageSize:4,_t:(new Date).getTime()}).then((e=>{var n,i,a,s;(null==e?void 0:e.success)&&((null==(n=null==e?void 0:e.result)?void 0:n.total)>4?h({pageNo:1,pageSize:null==(i=null==e?void 0:e.result)?void 0:i.total,_t:(new Date).getTime()}).then((e=>{var n,i;t("log","at pages/task/todotask.vue:60","---",e),(null==e?void 0:e.success)&&(r.value=[...r.value,...w(null==(n=null==e?void 0:e.result)?void 0:n.records)],o.value=null==(i=null==e?void 0:e.result)?void 0:i.total)})).catch((e=>{t("log","at pages/task/todotask.vue:66","err",e)})):(r.value=[...r.value,...w(null==(a=null==e?void 0:e.result)?void 0:a.records)],o.value=null==(s=null==e?void 0:e.result)?void 0:s.total))})).catch((e=>{t("log","at pages/task/todotask.vue:75",e)}))},u=e.ref([]),d=e.ref(0),m=()=>{p().then((e=>{e.success&&(e.result.total>4?p({pageNo:1,pageSize:e.result.total,_t:(new Date).getTime()}).then((e=>{e.success&&(u.value=[...u.value,...w(e.result.records)],d.value=e.result.total)})).catch((e=>{t("log","at pages/task/todotask.vue:96",e)})):(u.value=[...u.value,...w(e.result.records)],d.value=e.result.total))})).catch((e=>{t("log","at pages/task/todotask.vue:105",e)}))},g=e.ref([]),v=e.ref(0),y=()=>{f().then((e=>{e.success&&(e.result.total>4?f({pageNo:1,pageSize:e.result.total,_t:(new Date).getTime()}).then((e=>{e.success&&(g.value=[...g.value,...w(e.result.records)],v.value=e.result.total)})).catch((e=>{t("log","at pages/task/todotask.vue:125",e)})):(g.value=[...g.value,...w(e.result.records)],v.value=e.result.total))})).catch((e=>{t("log","at pages/task/todotask.vue:135",e)}))},w=e=>{let t=(e.length?e.map((e=>e.processDefinitionName||e.prcocessDefinitionName)):[]).reduce(((e,t)=>(t in e?e[t]++:e[t]=1,e)),{});return Object.entries(t).map((([e,t])=>({title:e,num:t})))},k=()=>{r.value=[],g.value=[],u.value=[],o.value=0,d.value=0,v.value=0};return l((()=>{k(),c(),m(),y(),uni.stopPullDownRefresh()})),(t,n)=>(e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass([{gray:1==e.unref(s).isgray}])},[e.createElementVNode("view",{class:"nav"}),e.createElementVNode("view",{class:"placeholder"}),e.createElementVNode("view",{class:"content"},[e.createVNode(Le,{title:"我的任务",img:"process",list:r.value,total:o.value,type:"0"},null,8,["list","total"]),e.createVNode(Le,{title:"历史任务",img:"done",list:u.value,total:d.value,type:"1"},null,8,["list","total"]),e.createVNode(Le,{title:"本人发起",img:"self",list:g.value,total:v.value,type:"2"},null,8,["list","total"])])],2))}},[["__scopeId","data-v-df705bde"]]),je={__name:"office",setup(n){e.useCssVars((e=>({"00e5a4ad":a})));const i=H();new Array(7).fill(0).map(((e,t)=>t)),e.ref([]);const a=wx.getSystemInfoSync().statusBarHeight+44+"px";r((()=>{c()}));const s=e.ref([]),o=e.ref([]),l=e.ref([]),c=()=>{d({token:i.token,type:"mobile"}).then((e=>{var t,n,i;if(e.success){let a=e.result.menu;a.map((e=>e.children=null==e?void 0:e.children.filter((e=>{var t;return null==(t=null==e?void 0:e.meta)?void 0:t.icon})))),a=a.filter((e=>{var t;return null==(t=null==e?void 0:e.children)?void 0:t.length})),l.value=null==(n=null==(t=a[0])?void 0:t.meta)?void 0:n.title,s.value=a,o.value=null==(i=a.slice(0,1)[0])?void 0:i.children}})).catch((e=>{t("log","at pages/tab/office.vue:103",e)}))};return(t,n)=>{var a,r,l;return e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass({gray:1==e.unref(i).isgray})},[e.createElementVNode("view",{class:"nav"}),e.createElementVNode("view",{class:"placeholder"}),(null==(a=o.value)?void 0:a.length)||(null==(r=s.value)?void 0:r.length)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("view",{key:0,class:"title f-col aic",style:{"padding-top":"30rpx"}}," 暂无权限,请联系管理员! ")),e.createElementVNode("view",{class:"content"},[(null==(l=s.value)?void 0:l.length)?(e.openBlock(),e.createElementBlock("view",{key:0,class:"list"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value,((t,n)=>(e.openBlock(),e.createElementBlock("view",{class:"item",key:n},[e.createElementVNode("view",{class:"title"},e.toDisplayString(t.meta.title),1),e.createElementVNode("view",{class:"info_box f-row aic"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.children,((t,n)=>(e.openBlock(),e.createElementBlock("view",{class:"info f-col aic",onClick:e=>{return n=t.path,void Ne(n,(()=>{uni.navigateTo({url:n})}));var n},key:n},[e.createElementVNode("view",{class:"img f-row aic"},[e.createElementVNode("image",{src:`../../static/office/${t.meta.icon}.png`},null,8,["src"])]),e.createElementVNode("view",{class:"text"},e.toDisplayString(t.meta.title),1)],8,["onClick"])))),128))])])))),128))])):e.createCommentVNode("",!0)])],2)}}},Ue=q(je,[["__scopeId","data-v-a37e03c5"]]),$e=q({__name:"my",setup(t){const n=H(),i=e.ref(plus.runtime.version),a=e.ref([]),s=e.ref(!1),r=e.ref(n.positionSwitch),o=e=>{e&&Ne(e,(()=>{uni.navigateTo({url:e})}))},l=e=>{uni.navigateTo({url:e})},c=()=>{r.value=!r.value,uni.setStorageSync("positionSwitch",r.value),n.setPositionSwitch(r.value),r.value||Te("定位已关闭"),Be()},u=()=>{uni.scanCode({success:function(e){plus.runtime.openWeb(e.result)}})};return(t,d)=>(e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass({gray:1==e.unref(n).isgray})},[e.createElementVNode("view",{class:"nav"},[e.createElementVNode("view",{class:"user f-row aic"},[e.createElementVNode("view",{class:"avatar"},[e.createElementVNode("image",{onClick:d[0]||(d[0]=e=>l("/pages/useredit/useredit")),src:e.unref(Re)(e.unref(n).userinfo.avatar),mode:""},null,8,["src"])]),e.createElementVNode("view",{class:"f-row aic jcb right"},[e.createElementVNode("view",{class:"name_job",onClick:d[1]||(d[1]=e=>l("/pages/useredit/useredit"))},[e.createElementVNode("view",{class:"f-row aic"},[e.createElementVNode("view",{class:"name"},e.toDisplayString(e.unref(n).userinfo.realname),1)]),e.createElementVNode("view",{class:"job"},e.toDisplayString(e.unref(n).role),1)]),e.createElementVNode("view",{class:"shezhi"},[e.createElementVNode("image",{onClick:u,style:{width:"50rpx",height:"50rpx","margin-right":"20rpx"},src:"/static/tab/scan.png"})])])]),e.createElementVNode("view",{class:"f-col aic"},[e.createElementVNode("view",{class:"msg f-row aic jca"},[e.createElementVNode("view",{class:"box f-col aic"},[e.createElementVNode("view",{class:"num"},e.toDisplayString(0)),e.createElementVNode("text",null,"步数")]),e.createElementVNode("view",{class:"box f-col aic",onClick:d[2]||(d[2]=e=>o("/pages/useredit/addressbook"))},[e.createElementVNode("view",{class:"num"}," 0 "),e.createElementVNode("text",null,"通讯录")])])])]),e.createElementVNode("view",{class:"operate"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,((t,n)=>(e.openBlock(),e.createElementBlock("view",{class:"f-row aic jcb item",key:n,onClick:e=>o(t.path)},[e.createElementVNode("view",{class:"left f-row aic"},[e.createElementVNode("image",{src:t.img,mode:""},null,8,["src"]),e.createElementVNode("text",null,e.toDisplayString(t.text),1)]),e.createElementVNode("view",{class:"right f-row aic"},[e.withDirectives(e.createElementVNode("view",{class:"switch",onClick:d[3]||(d[3]=e=>s.value=!s.value)},[e.withDirectives(e.createElementVNode("image",{src:"/static/my/open.png",mode:""},null,512),[[e.vShow,s.value]]),e.withDirectives(e.createElementVNode("image",{src:"/static/my/close.png",mode:""},null,512),[[e.vShow,!s.value]])],512),[[e.vShow,0==n]]),e.withDirectives(e.createElementVNode("view",{class:"switch",onClick:c},[e.withDirectives(e.createElementVNode("image",{src:"/static/my/open.png",mode:""},null,512),[[e.vShow,r.value]]),e.withDirectives(e.createElementVNode("image",{src:"/static/my/close.png",mode:""},null,512),[[e.vShow,!r.value]])],512),[[e.vShow,2==n]]),e.withDirectives(e.createElementVNode("view",{class:"version"}," 当前版本v"+e.toDisplayString(i.value),513),[[e.vShow,3==n]])])],8,["onClick"])))),128))])],2))}},[["__scopeId","data-v-300a7325"]]),ze=q({__name:"tasklistCom",props:{taskArr:{type:Array,default:()=>[]},currentIndex:{type:Number,default:0}},emits:["jump"],setup(t,{emit:n}){const{proxy:i}=e.getCurrentInstance(),a=n,s=e=>{a("jump",e)},r=e=>{var t;(t={taskId:e},u({url:"/act/task/claim",method:"put",data:t})).then((e=>{e.success&&(uni.redirectTo({url:"./index?id=0"}),i.$toast(e.message))}))},o=e=>{var t;(t={processInstanceId:e},u({url:"/act/task/callBackProcess",method:"put",data:t})).then((e=>{e.success&&(uni.redirectTo({url:"./self"}),i.$toast(e.message))}))},l=e=>{var t;(t={processInstanceId:e},u({url:"/act/task/invalidProcess",method:"put",data:t})).then((e=>{e.success&&(uni.redirectTo({url:"./self"}),i.$toast(e.message))}))};return(n,i)=>(e.openBlock(),e.createElementBlock("view",{class:"list_box"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.taskArr,((n,i)=>(e.openBlock(),e.createElementBlock("view",{class:"list",key:i,onClick:e=>s(`/pages/task/handle?info=${JSON.stringify(n)}&type=${t.currentIndex}`)},[e.createElementVNode("view",{class:"title f-row aic jcb"},[e.createElementVNode("view",null,[e.createElementVNode("view",null,e.toDisplayString(n.bpmBizTitle),1)]),e.createElementVNode("text",null,e.toDisplayString(n.durationStr),1)]),e.createElementVNode("view",{class:"info"},[e.createElementVNode("view",null," 申请理由:"+e.toDisplayString(n.bpmBizTitle),1),2!=t.currentIndex?(e.openBlock(),e.createElementBlock("view",{key:0}," 当前环节:"+e.toDisplayString(n.taskName),1)):e.createCommentVNode("",!0),e.createElementVNode("view",null," 流程名称:"+e.toDisplayString(n.processDefinitionName),1),e.createElementVNode("view",null," 发起人:"+e.toDisplayString(n.processApplyUserName),1),e.createElementVNode("view",null," 开始时间:"+e.toDisplayString(n.taskBeginTime),1),n.taskEndTime?(e.openBlock(),e.createElementBlock("view",{key:1}," 结束时间:"+e.toDisplayString(n.taskEndTime),1)):e.createCommentVNode("",!0)]),0==t.currentIndex&&n.taskAssigneeName?(e.openBlock(),e.createElementBlock("view",{key:0,class:"btn f-row aic jcb"},[e.createElementVNode("view",{class:"entrust",onClick:e.withModifiers((e=>s(`/pages/userlist/index?isradio=1&id=${n.id}`)),["stop"])}," 委托 ",8,["onClick"]),e.createElementVNode("view",{class:"handle",onClick:e=>s(`/pages/task/handle?info=${JSON.stringify(n)}&type=${t.currentIndex}`)}," 办理 ",8,["onClick"])])):e.createCommentVNode("",!0),0!=t.currentIndex||n.taskAssigneeName?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("view",{key:1,class:"btn f-row aic jcb"},[e.createElementVNode("view"),e.createElementVNode("view",{class:"handle",onClick:e.withModifiers((e=>r(n.id)),["stop"])}," 签收 ",8,["onClick"])])),2!=t.currentIndex||n.endTime?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("view",{key:2,class:"btn f-row aic jcb"},[e.createElementVNode("view",{class:"entrust",onClick:e.withModifiers((e=>l(n.processInstanceId)),["stop"])}," 作废流程 ",8,["onClick"]),e.createElementVNode("view",{class:"handle",onClick:e.withModifiers((e=>o(n.processInstanceId)),["stop"])}," 取回流程 ",8,["onClick"])]))],8,["onClick"])))),128))]))}},[["__scopeId","data-v-3868ba91"]]),He=q({__name:"index",setup(n){const i=H();let s="";r((e=>{u.value=+e.id,s=e.title})),a((()=>{g.value=[],d=1,f=10,m=!1,v()}));const c=e.ref([{text:"我的任务",id:0},{text:"历史任务",id:1}]);e.ref("");const u=e.ref(0);let d=1,f=10,m=!1;const g=e.ref([]),v=()=>{m=!0,uni.showLoading({title:"加载中..."}),(0==u.value?h:p)({pageNo:d,pageSize:f,_t:(new Date).getTime(),processDefinitionName:s}).then((e=>{var t;if(e.success){if(!e.result.records.length)return Te("没有更多了~");g.value=[...g.value,...(null==(t=null==e?void 0:e.result)?void 0:t.records)||[]],m=!1}})).catch((e=>{t("log","at pages/task/index.vue:84",e)}))};o((()=>{m||(d++,v())})),l((()=>{d=1,f=10,m=!1,g.value=[],v(),uni.stopPullDownRefresh()}));const y=e=>{Ne(e,(()=>{uni.navigateTo({url:e})}))};return(t,n)=>(e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass({gray:1==e.unref(i).isgray})},[e.createElementVNode("view",{class:"nav"},[e.createElementVNode("view",{class:"tab_box f-row aic jca"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,((t,n)=>(e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass({active:n==u.value}),key:n,onClick:e=>(e=>{g.value=[],d=1,f=10,m=!1,u.value=e,v()})(n)},e.toDisplayString(t.text),11,["onClick"])))),128))])]),e.createElementVNode("view",{class:"tasklist"},[e.createVNode(ze,{onJump:y,taskArr:g.value,currentIndex:u.value},null,8,["taskArr","currentIndex"])])],2))}},[["__scopeId","data-v-965734c1"]]);class qe{constructor(e,t){this.options=e,this.animation=uni.createAnimation({...e}),this.currentStepAnimates={},this.next=0,this.$=t}_nvuePushAnimates(e,t){let n=this.currentStepAnimates[this.next],i={};if(i=n||{styles:{},config:{}},Ke.includes(e)){i.styles.transform||(i.styles.transform="");let n="";"rotate"===e&&(n="deg"),i.styles.transform+=`${e}(${t+n}) `}else i.styles[e]=`${t}`;this.currentStepAnimates[this.next]=i}_animateRun(e={},t={}){let n=this.$.$refs.ani.ref;if(n)return new Promise(((i,a)=>{nvueAnimation.transition(n,{styles:e,...t},(e=>{i()}))}))}_nvueNextAnimate(e,t=0,n){let i=e[t];if(i){let{styles:a,config:s}=i;this._animateRun(a,s).then((()=>{t+=1,this._nvueNextAnimate(e,t,n)}))}else this.currentStepAnimates={},"function"==typeof n&&n(),this.isEnd=!0}step(e={}){return this.animation.step(e),this}run(e){this.$.animationData=this.animation.export(),this.$.timer=setTimeout((()=>{"function"==typeof e&&e()}),this.$.durationTime)}}const Ke=["matrix","matrix3d","rotate","rotate3d","rotateX","rotateY","rotateZ","scale","scale3d","scaleX","scaleY","scaleZ","skew","skewX","skewY","translate","translate3d","translateX","translateY","translateZ"];function Je(e,t){if(t)return clearTimeout(t.timer),new qe(e,t)}Ke.concat(["opacity","backgroundColor"],["width","height","left","right","top","bottom"]).forEach((e=>{qe.prototype[e]=function(...t){return this.animation[e](...t),this}}));const We=q({name:"uniTransition",emits:["click","change"],props:{show:{type:Boolean,default:!1},modeClass:{type:[Array,String],default:()=>"fade"},duration:{type:Number,default:300},styles:{type:Object,default:()=>({})},customClass:{type:String,default:""},onceRender:{type:Boolean,default:!1}},data:()=>({isShow:!1,transform:"",opacity:1,animationData:{},durationTime:300,config:{}}),watch:{show:{handler(e){e?this.open():this.isShow&&this.close()},immediate:!0}},computed:{stylesObject(){let e={...this.styles,"transition-duration":this.duration/1e3+"s"},t="";for(let n in e){t+=this.toLine(n)+":"+e[n]+";"}return t},transformStyles(){return"transform:"+this.transform+";opacity:"+this.opacity+";"+this.stylesObject}},created(){this.config={duration:this.duration,timingFunction:"ease",transformOrigin:"50% 50%",delay:0},this.durationTime=this.duration},methods:{init(e={}){e.duration&&(this.durationTime=e.duration),this.animation=Je(Object.assign(this.config,e),this)},onClick(){this.$emit("click",{detail:this.isShow})},step(e,n={}){if(this.animation){for(let n in e)try{"object"==typeof e[n]?this.animation[n](...e[n]):this.animation[n](e[n])}catch(gn){t("error","at uni_modules/uni-transition/components/uni-transition/uni-transition.vue:148",`方法 ${n} 不存在`)}return this.animation.step(n),this}},run(e){this.animation&&this.animation.run(e)},open(){clearTimeout(this.timer),this.transform="",this.isShow=!0;let{opacity:e,transform:t}=this.styleInit(!1);void 0!==e&&(this.opacity=e),this.transform=t,this.$nextTick((()=>{this.timer=setTimeout((()=>{this.animation=Je(this.config,this),this.tranfromInit(!1).step(),this.animation.run(),this.$emit("change",{detail:this.isShow})}),20)}))},close(e){this.animation&&this.tranfromInit(!0).step().run((()=>{this.isShow=!1,this.animationData=null,this.animation=null;let{opacity:e,transform:t}=this.styleInit(!1);this.opacity=e||1,this.transform=t,this.$emit("change",{detail:this.isShow})}))},styleInit(e){let t={transform:""},n=(e,n)=>{"fade"===n?t.opacity=this.animationType(e)[n]:t.transform+=this.animationType(e)[n]+" "};return"string"==typeof this.modeClass?n(e,this.modeClass):this.modeClass.forEach((t=>{n(e,t)})),t},tranfromInit(e){let t=(e,t)=>{let n=null;"fade"===t?n=e?0:1:(n=e?"-100%":"0","zoom-in"===t&&(n=e?.8:1),"zoom-out"===t&&(n=e?1.2:1),"slide-right"===t&&(n=e?"100%":"0"),"slide-bottom"===t&&(n=e?"100%":"0")),this.animation[this.animationMode()[t]](n)};return"string"==typeof this.modeClass?t(e,this.modeClass):this.modeClass.forEach((n=>{t(e,n)})),this.animation},animationType:e=>({fade:e?0:1,"slide-top":`translateY(${e?"0":"-100%"})`,"slide-right":`translateX(${e?"0":"100%"})`,"slide-bottom":`translateY(${e?"0":"100%"})`,"slide-left":`translateX(${e?"0":"-100%"})`,"zoom-in":`scaleX(${e?1:.8}) scaleY(${e?1:.8})`,"zoom-out":`scaleX(${e?1:1.2}) scaleY(${e?1:1.2})`}),animationMode:()=>({fade:"opacity","slide-top":"translateY","slide-right":"translateX","slide-bottom":"translateY","slide-left":"translateX","zoom-in":"scale","zoom-out":"scale"}),toLine:e=>e.replace(/([A-Z])/g,"-$1").toLowerCase()}},[["render",function(t,n,i,a,s,r){return e.withDirectives((e.openBlock(),e.createElementBlock("view",{ref:"ani",animation:s.animationData,class:e.normalizeClass(i.customClass),style:e.normalizeStyle(r.transformStyles),onClick:n[0]||(n[0]=(...e)=>r.onClick&&r.onClick(...e))},[e.renderSlot(t.$slots,"default")],14,["animation"])),[[e.vShow,s.isShow]])}]]),Ye={name:"uniPopup",components:{},emits:["change","maskClick"],props:{animation:{type:Boolean,default:!0},type:{type:String,default:"center"},isMaskClick:{type:Boolean,default:null},maskClick:{type:Boolean,default:null},backgroundColor:{type:String,default:"none"},safeArea:{type:Boolean,default:!0},maskBackgroundColor:{type:String,default:"rgba(0, 0, 0, 0.4)"},borderRadius:{type:String}},watch:{type:{handler:function(e){this.config[e]&&this[this.config[e]](!0)},immediate:!0},isDesktop:{handler:function(e){this.config[e]&&this[this.config[this.type]](!0)},immediate:!0},maskClick:{handler:function(e){this.mkclick=e},immediate:!0},isMaskClick:{handler:function(e){this.mkclick=e},immediate:!0},showPopup(e){}},data(){return{duration:300,ani:[],showPopup:!1,showTrans:!1,popupWidth:0,popupHeight:0,config:{top:"top",bottom:"bottom",center:"center",left:"left",right:"right",message:"top",dialog:"center",share:"bottom"},maskClass:{position:"fixed",bottom:0,top:0,left:0,right:0,backgroundColor:"rgba(0, 0, 0, 0.4)"},transClass:{backgroundColor:"transparent",borderRadius:this.borderRadius||"0",position:"fixed",left:0,right:0},maskShow:!0,mkclick:!0,popupstyle:"top"}},computed:{getStyles(){let e={backgroundColor:this.bg};return this.borderRadius,e=Object.assign(e,{borderRadius:this.borderRadius}),e},isDesktop(){return this.popupWidth>=500&&this.popupHeight>=500},bg(){return""===this.backgroundColor||"none"===this.backgroundColor?"transparent":this.backgroundColor}},mounted(){(()=>{const{windowWidth:e,windowHeight:t,windowTop:n,safeArea:i,screenHeight:a,safeAreaInsets:s}=uni.getSystemInfoSync();this.popupWidth=e,this.popupHeight=t+(n||0),i&&this.safeArea?this.safeAreaInsets=s.bottom:this.safeAreaInsets=0})()},unmounted(){this.setH5Visible()},activated(){this.setH5Visible(!this.showPopup)},deactivated(){this.setH5Visible(!0)},created(){null===this.isMaskClick&&null===this.maskClick?this.mkclick=!0:this.mkclick=null!==this.isMaskClick?this.isMaskClick:this.maskClick,this.animation?this.duration=300:this.duration=0,this.messageChild=null,this.clearPropagation=!1,this.maskClass.backgroundColor=this.maskBackgroundColor},methods:{setH5Visible(e=!0){},closeMask(){this.maskShow=!1},disableMask(){this.mkclick=!1},clear(e){e.stopPropagation(),this.clearPropagation=!0},open(e){if(this.showPopup)return;e&&-1!==["top","center","bottom","left","right","message","dialog","share"].indexOf(e)||(e=this.type),this.config[e]?(this[this.config[e]](),this.$emit("change",{show:!0,type:e})):t("error","at uni_modules/uni-popup/components/uni-popup/uni-popup.vue:298","缺少类型:",e)},close(e){this.showTrans=!1,this.$emit("change",{show:!1,type:this.type}),clearTimeout(this.timer),this.timer=setTimeout((()=>{this.showPopup=!1}),300)},touchstart(){this.clearPropagation=!1},onTap(){this.clearPropagation?this.clearPropagation=!1:(this.$emit("maskClick"),this.mkclick&&this.close())},top(e){this.popupstyle=this.isDesktop?"fixforpc-top":"top",this.ani=["slide-top"],this.transClass={position:"fixed",left:0,right:0,backgroundColor:this.bg,borderRadius:this.borderRadius||"0"},e||(this.showPopup=!0,this.showTrans=!0,this.$nextTick((()=>{this.messageChild&&"message"===this.type&&this.messageChild.timerClose()})))},bottom(e){this.popupstyle="bottom",this.ani=["slide-bottom"],this.transClass={position:"fixed",left:0,right:0,bottom:0,paddingBottom:this.safeAreaInsets+"px",backgroundColor:this.bg,borderRadius:this.borderRadius||"0"},e||(this.showPopup=!0,this.showTrans=!0)},center(e){this.popupstyle="center",this.ani=["zoom-out","fade"],this.transClass={position:"fixed",display:"flex",flexDirection:"column",bottom:0,left:0,right:0,top:0,justifyContent:"center",alignItems:"center",borderRadius:this.borderRadius||"0"},e||(this.showPopup=!0,this.showTrans=!0)},left(e){this.popupstyle="left",this.ani=["slide-left"],this.transClass={position:"fixed",left:0,bottom:0,top:0,backgroundColor:this.bg,borderRadius:this.borderRadius||"0",display:"flex",flexDirection:"column"},e||(this.showPopup=!0,this.showTrans=!0)},right(e){this.popupstyle="right",this.ani=["slide-right"],this.transClass={position:"fixed",bottom:0,right:0,top:0,backgroundColor:this.bg,borderRadius:this.borderRadius||"0",display:"flex",flexDirection:"column"},e||(this.showPopup=!0,this.showTrans=!0)}}};const Ge=q(Ye,[["render",function(t,i,a,s,r,o){const l=n(e.resolveDynamicComponent("uni-transition"),We);return r.showPopup?(e.openBlock(),e.createElementBlock("view",{key:0,class:e.normalizeClass(["uni-popup",[r.popupstyle,o.isDesktop?"fixforpc-z-index":""]])},[e.createElementVNode("view",{onTouchstart:i[1]||(i[1]=(...e)=>o.touchstart&&o.touchstart(...e))},[r.maskShow?(e.openBlock(),e.createBlock(l,{key:"1",name:"mask","mode-class":"fade",styles:r.maskClass,duration:r.duration,show:r.showTrans,onClick:o.onTap},null,8,["styles","duration","show","onClick"])):e.createCommentVNode("",!0),e.createVNode(l,{key:"2","mode-class":r.ani,name:"content",styles:r.transClass,duration:r.duration,show:r.showTrans,onClick:o.onTap},{default:e.withCtx((()=>[e.createElementVNode("view",{class:e.normalizeClass(["uni-popup__wrapper",[r.popupstyle]]),style:e.normalizeStyle(o.getStyles),onClick:i[0]||(i[0]=(...e)=>o.clear&&o.clear(...e))},[e.renderSlot(t.$slots,"default",{},void 0,!0)],6)])),_:3},8,["mode-class","styles","duration","show","onClick"])],32)],2)):e.createCommentVNode("",!0)}],["__scopeId","data-v-9c09fb6f"]]),Ze={__name:"handle",setup(t){const i=H(),{proxy:a}=e.getCurrentInstance(),s=e.ref(null),o=e.ref(""),l=e.ref(null),c=e=>{l.value=e,s.value.open(),o.value=2==e?"同意":""},d=()=>{s.value.close()},h=e.ref(null),p=e.ref(""),f=e=>{var t;(t={taskId:e},u({url:"/process/extActProcessNode/getProcessNodeInfo",method:"get",data:t})).then((e=>{e.success&&(p.value=e.result.dataId,h.value=e.result.formUrlMobile)}))},m=()=>{uni.navigateBack()},g=e.ref(!1);let v=null;const y=()=>{let e={};if(1==l.value){if(null==_.value)return a.$toast("请选择驳回节点");e.processModel=3,e.rejectModelNode=k.value[_.value].TASK_DEF_KEY_,w(e)}else g.value?Ne("/pages/userlist/index",(()=>{d(),uni.navigateTo({url:`/pages/userlist/index?id=${D.value.id}&isradio=1&nextnode=${JSON.stringify(v)}&reason=${o.value}`})})):(e.processModel=1,w(e))},w=e=>{S({taskId:D.value.id,reason:o.value,...e}).then((e=>{e.success&&(a.$toast(e.message),setTimeout((()=>{uni.navigateBack()}),2e3))}))},k=e.ref([]),_=e.ref(null),b=e=>{_.value=e.detail.value},E=e=>{var t;(t={taskId:D.value.id},u({url:"/act/task/getProcessTaskTransInfo",method:"get",data:t})).then((e=>{e.success&&(k.value=e.result.histListNode,v=e.result.transitionList)}))},x=e=>{var t;(t={procInstId:e},u({url:"/process/extActProcessNode/getHisProcessNodeInfo",method:"get",data:t})).then((e=>{e.success&&(p.value=e.result.dataId,h.value=e.result.formUrlMobile)}))},D=e.ref(null);let T=null;return r((e=>{if(D.value=JSON.parse(e.info),T=e.type,1==T||2==T)return x(D.value.processInstanceId);f(D.value.id),E()})),(t,a)=>{const r=n(e.resolveDynamicComponent("uni-icons"),W),u=n(e.resolveDynamicComponent("uni-popup"),Ge);return e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass(["content",{gray:1==e.unref(i).isgray}])},[e.createVNode(xe,null,{default:e.withCtx((()=>[e.createElementVNode("view",{class:"f-row aic box"},[e.createElementVNode("view",{class:"back",onClick:m},[e.createVNode(r,{type:"left",size:"20",color:"#fff"})]),e.createElementVNode("view",{class:"avatar"},[e.createElementVNode("image",{src:e.unref(Re)(e.unref(i).userinfo.avatar),mode:""},null,8,["src"])]),e.createElementVNode("view",{class:"name"},e.toDisplayString(D.value.processApplyUserName)+"的"+e.toDisplayString(D.value.processDefinitionName),1),0==e.unref(T)?(e.openBlock(),e.createElementBlock("view",{key:0,class:"status"}," 待审批 ")):e.createCommentVNode("",!0),1==e.unref(T)?(e.openBlock(),e.createElementBlock("view",{key:1,class:"status",style:{"background-color":"#7AC756"}}," 已处理 ")):e.createCommentVNode("",!0)])])),_:1}),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(h.value),{dataId:p.value},null,8,["dataId"])),0==e.unref(T)?(e.openBlock(),e.createElementBlock("view",{key:0,class:"btn f-row aic jcb"},[e.createElementVNode("view",{class:"refuse",onClick:a[0]||(a[0]=e=>c(1))}," 拒绝 "),e.createElementVNode("view",{class:"agree",onClick:a[1]||(a[1]=e=>c(2))}," 同意 ")])):e.createCommentVNode("",!0),e.createVNode(u,{ref_key:"popup",ref:s,type:"center"},{default:e.withCtx((()=>[e.createElementVNode("view",{class:"popup"},[e.createElementVNode("view",{class:"title"}," 审批意见 "),e.createElementVNode("view",{class:"f-col aic"},[e.createElementVNode("view",{class:"input f-col"},[e.withDirectives(e.createElementVNode("textarea",{"onUpdate:modelValue":a[2]||(a[2]=e=>o.value=e),name:"",id:"",maxlength:"200",placeholder:"请输入"},null,512),[[e.vModelText,o.value]]),e.createElementVNode("view",{class:""},e.toDisplayString(o.value.length)+"/200 ",1)])]),2==l.value?(e.openBlock(),e.createElementBlock("view",{key:0,class:"agree_operate f-row aic",onClick:a[3]||(a[3]=e=>g.value=!g.value)},[g.value?(e.openBlock(),e.createElementBlock("image",{key:0,src:"/static/login/checked.png",mode:""})):(e.openBlock(),e.createElementBlock("image",{key:1,src:"/static/login/nocheck.png",mode:""})),e.createElementVNode("view",{class:""}," 指定下一步操作人 ")])):(e.openBlock(),e.createElementBlock("view",{key:1,class:""},[e.createElementVNode("picker",{value:_.value,range:k.value,"range-key":"NAME_",onChange:b},[e.createElementVNode("view",{class:"node"},e.toDisplayString(null!=_.value?k.value[_.value].NAME_:"请选择驳回节点"),1)],40,["value","range"])])),e.createElementVNode("view",{class:"popbtn f-row aic"},[e.createElementVNode("view",{class:"cancel",onClick:d}," 取消 "),e.createElementVNode("view",{class:"confirm",onClick:y}," 确定 ")])])])),_:1},512)],2)}}},Qe=q(Ze,[["__scopeId","data-v-12da9556"]]),Xe=q({__name:"message_list",setup(t){const n=H();return(t,i)=>(e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass({gray:1==e.unref(n).isgray})},[e.createElementVNode("view",{class:"list"},[e.createElementVNode("view",{class:"item f-row aic"},[e.createElementVNode("view",{class:"f-row aic"},[e.createElementVNode("image",{src:"/static/system.png",mode:""})]),e.createElementVNode("view",{class:"name_info"},[e.createElementVNode("view",{class:"name_time f-row aic jcb"},[e.createElementVNode("view",{class:"name"}," 系统通知 "),e.createElementVNode("view",{class:"time"}," 1分钟前 ")]),e.createElementVNode("view",{class:"info"}," 关于年假通知关于年假通知关于年假通知关于年假通知关于年假通知关于年假通知关于年假通知 ")])]),(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(5,((t,n)=>e.createElementVNode("view",{class:"item f-row aic",key:n,onClick:i[0]||(i[0]=e=>{var t;Ne(t="/pages/talk/conversation",(()=>{uni.navigateTo({url:t})}))})},[e.createElementVNode("view",{class:"f-row aic"},[e.createElementVNode("image",{src:"",mode:""})]),e.createElementVNode("view",{class:"name_info"},[e.createElementVNode("view",{class:"name_time f-row aic jcb"},[e.createElementVNode("view",{class:"name"}," 系统通知 "),e.createElementVNode("view",{class:"time"}," 1分钟前 ")]),e.createElementVNode("view",{class:"info"}," 关于年假通知 ")])]))),64))])],2))}},[["__scopeId","data-v-f59fee84"]]),et=q({__name:"conversation",setup(t){const n=H();return(t,i)=>(e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass(["content",{gray:1==e.unref(n).isgray}])},[e.createElementVNode("view",{class:"list"},[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(14,((t,n)=>e.createElementVNode("view",{class:"item",key:n},[e.withDirectives(e.createElementVNode("view",{class:"left f-row aic"},[e.createElementVNode("view",{class:"avatar f-row aic"},[e.createElementVNode("image",{src:"/static/system.png",mode:""})]),e.createElementVNode("view",{class:"content"}," 你今天在干嘛呢?为什么这么久不回我信息,真的生气了 ")],512),[[e.vShow,n%2==0]]),e.withDirectives(e.createElementVNode("view",{class:"right f-row aic"},[e.createElementVNode("view",{class:"content"}," 请问如何退款? "),e.createElementVNode("view",{class:"avatar f-row aic"},[e.createElementVNode("image",{src:"",mode:""})])],512),[[e.vShow,n%2!=0]])]))),64))]),e.createElementVNode("view",{class:"input_box f-row aic jce"},[e.createElementVNode("input",{type:"text",placeholder:"请输入内容......","placeholder-style":"font-size: 28rpx;color: #999999;"}),e.createElementVNode("view",{class:"send"}," 发送 ")])],2))}},[["__scopeId","data-v-00b966b0"]]),nt=q({__name:"system",setup(t){const n=H();return(t,i)=>(e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass(["content",{gray:1==e.unref(n).isgray}])},[e.createElementVNode("view",{class:"list"},[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(3,((t,n)=>e.createElementVNode("view",{class:"item",key:n},[e.createElementVNode("view",{class:"left f-row aic"},[e.createElementVNode("view",{class:"avatar f-row aic"},[e.createElementVNode("image",{src:"/static/system.png",mode:""})]),e.createElementVNode("view",{class:"content"}," 你今天在干嘛呢?为什么这么久不回我信息,真的生气了 ")])]))),64))])],2))}},[["__scopeId","data-v-2f0571e9"]]),it=q({__name:"index",setup(i){e.useCssVars((e=>({e9493420:e.cusnavbarheight})));const a=H(),s=e.ref(!0),c=e.ref(""),u=e.ref([]);let d=1,h=!1;const p=(e,t,n,i)=>(e.map((e=>{e._title=e[t],e._time=e[n],e._depart=e[i]})),e),f=()=>{if(c.value.trim())return"*"+c.value+"*"},k=()=>{d=1,h=!1,u.value=[],E()};e.watch(c,((e,t)=>{e.trim()||E()}));const _=()=>{uni.navigateBack()},S=e.ref(null);let b=null;r((e=>{S.value=e.id,b=e.zhiduid,E()}));const E=()=>{0==S.value?(h=!0,m({pageNo:d,pageSize:15,fwbt:f()}).then((e=>{e.success&&(u.value=[...u.value,...p(e.result.records,"fwbt","fwtime",null)]),h=!1})).catch((e=>{t("log","at pages/document/index.vue:89","err",e)}))):1==S.value?(h=!0,g({pageNo:d,pageSize:15,neirong:f()}).then((e=>{e.success&&(u.value=[...u.value,...p(e.result.records,"neirong","fbdw","createTime")]),h=!1})).catch((e=>{t("log","at pages/document/index.vue:142","err",e)}))):2==S.value?(h=!0,(0==b?w:y)({pageNo:d,pageSize:15,zdmc:f()}).then((e=>{if(e.success){let t=0==b?"zbbm_dictText":"sbbm";u.value=[...u.value,...p(e.result.records,"zdmc",t,null)]}h=!1})).catch((e=>{t("log","at pages/document/index.vue:108","err",e)}))):3==S.value&&(h=!0,v({pageNo:d,pageSize:15,flfgmc:f()}).then((e=>{e.success&&(u.value=[...u.value,...p(e.result.records,"flfgmc","ssbm",null)]),h=!1})).catch((e=>{t("log","at pages/document/index.vue:125","err",e)})))};return l((()=>{d=1,h=!1,u.value=[],E(),uni.stopPullDownRefresh()})),o((()=>{h||(d++,E())})),(t,i)=>{const r=n(e.resolveDynamicComponent("uni-icons"),W);return e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass(["content",{gray:1==e.unref(a).isgray}])},[e.createVNode(xe,null,{default:e.withCtx((()=>[e.createElementVNode("view",{class:"nav_box f-row aic jcb"},[e.createElementVNode("view",{class:"back f-row aic",onClick:_},[e.createVNode(r,{type:"left",size:"20",color:"#fff"})]),e.createElementVNode("view",{class:"search f-row aic"},[e.withDirectives(e.createElementVNode("input",{type:"text","onUpdate:modelValue":i[0]||(i[0]=e=>c.value=e),onConfirm:k,onBlur:i[1]||(i[1]=e=>s.value=!c.value),onFocus:i[2]||(i[2]=e=>s.value=!1)},null,544),[[e.vModelText,c.value]]),s.value?(e.openBlock(),e.createElementBlock("view",{key:0,class:"f-row aic"},[e.createElementVNode("image",{src:"/static/search.png",mode:""}),e.createElementVNode("text",null,"搜索")])):e.createCommentVNode("",!0)])])])),_:1}),e.createElementVNode("view",{class:"list"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u.value,((t,n)=>(e.openBlock(),e.createElementBlock("view",{class:"item",key:n,onClick:e=>((e,t)=>{if(3==S.value)return Pe(t.mingcheng);Ne(e,(()=>{uni.navigateTo({url:e})}))})(`/pages/document/detail?data=${JSON.stringify(t)}&id=${S.value}`,t)},[e.createElementVNode("view",{class:"title"},e.toDisplayString(t._title),1),e.createElementVNode("view",{class:"time_box f-row aic"},[e.createElementVNode("view",{class:"time"},e.toDisplayString(t._time),1),t._depart?(e.openBlock(),e.createElementBlock("view",{key:0,class:"look f-row aic"},e.toDisplayString(t._depart),1)):e.createCommentVNode("",!0)])],8,["onClick"])))),128))])],2)}}},[["__scopeId","data-v-18757efe"]]),at=q({__name:"detail",setup(t){const n=H(),i=e.ref({});return r((e=>{i.value=JSON.parse(e.data),0==e.id?i.value.pdf=i.value.wjbt:2==e.id?i.value.jdwj?i.value.pdf=i.value.jdwj+","+i.value.sszd:i.value.pdf=i.value.sszd:3==e.id&&(i.value.pdf=i.value.mingcheng)})),(t,a)=>{var s,r;return e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass(["content",{gray:1==e.unref(n).isgray}])},[e.createElementVNode("view",{class:"title_box"},[e.createElementVNode("view",{class:"title"},e.toDisplayString(i.value._title),1),e.createElementVNode("view",{class:"time"},e.toDisplayString(i.value._time),1)]),e.createElementVNode("view",{class:"document f-row"},[e.createElementVNode("text",{class:""}," 附件: "),e.createElementVNode("view",{class:"f-col"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(null==(r=null==(s=i.value)?void 0:s.pdf)?void 0:r.split(","),((t,n)=>(e.openBlock(),e.createElementBlock("view",{class:"",style:{padding:"5rpx 0"},onClick:n=>e.unref(Pe)(t)},e.toDisplayString(t),9,["onClick"])))),256))])])],2)}}},[["__scopeId","data-v-b79b801f"]]),st=q({__name:"index",setup(t){const i=H(),a=e.ref(!0),s=e.ref("");r((()=>{}));const o=()=>{uni.navigateBack()};return(t,r)=>{const l=n(e.resolveDynamicComponent("uni-icons"),W);return e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass({gray:1==e.unref(i).isgray})},[e.createVNode(xe,null,{default:e.withCtx((()=>[e.createElementVNode("view",{class:"nav_box f-row aic jcb"},[e.createElementVNode("view",{class:"back f-row aic",onClick:o},[e.createVNode(l,{type:"left",size:"20",color:"#fff"})]),e.createElementVNode("view",{class:"search f-row aic"},[e.withDirectives(e.createElementVNode("input",{type:"text","onUpdate:modelValue":r[0]||(r[0]=e=>s.value=e),onConfirm:r[1]||(r[1]=(...e)=>t.search&&t.search(...e)),onBlur:r[2]||(r[2]=e=>a.value=!s.value),onFocus:r[3]||(r[3]=e=>a.value=!1)},null,544),[[e.vModelText,s.value]]),a.value?(e.openBlock(),e.createElementBlock("view",{key:0,class:"f-row aic"},[e.createElementVNode("image",{src:"/static/search.png",mode:""}),e.createElementVNode("text",null,"搜索")])):e.createCommentVNode("",!0)])])])),_:1}),e.createElementVNode("view",{class:"list_box"},[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(3,((t,n)=>e.createElementVNode("view",{class:"list",key:n,onClick:r[4]||(r[4]=e=>{var t;Ne(t="/pages/meeting/detail?id=1",(()=>{uni.navigateTo({url:t})}))})},[e.createElementVNode("view",{class:"title f-row aic jcb"},[e.createElementVNode("view",{class:""}," 年度部门讨论会议 "),e.createElementVNode("text",null,"1分钟前")]),e.createElementVNode("view",{class:"info"},[e.createElementVNode("view",{class:"f-row aic jcb"},[e.createElementVNode("view",{class:""}," 发起人: "),e.createElementVNode("text",null,"周如意")]),e.createElementVNode("view",{class:"f-row aic jcb"},[e.createElementVNode("view",{class:""}," 会议日期: "),e.createElementVNode("text",null,"周如意")]),e.createElementVNode("view",{class:"f-row aic jcb"},[e.createElementVNode("view",{class:""}," 会议地点: "),e.createElementVNode("text",null,"周如意")]),e.createElementVNode("view",{class:"f-row aic jcb"},[e.createElementVNode("view",{class:""}," 会议内容: "),e.createElementVNode("text",null,"周如意")])]),e.createElementVNode("view",{class:"handled f-row"},[e.createElementVNode("view",{class:"refused"}," 已拒绝 ")])]))),64))])],2)}}},[["__scopeId","data-v-c839cafa"]]),rt=q({__name:"detail",setup(n){const i=H();r((()=>{a()}));const a=()=>{var e;(e={mainid:1},u({url:"/zhgl_hygl/zhglHyglHyyc/listbymainid",method:"get",data:e})).then((e=>{e.success})).catch((e=>{t("log","at pages/meeting/detail.vue:94",e)}))};return(t,n)=>(e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass(["content",{gray:1==e.unref(i).isgray}])},[e.createElementVNode("view",{class:"list_box"},[e.createElementVNode("view",{class:"list"},[e.createElementVNode("view",{class:"title f-row aic jcb"},[e.createElementVNode("view",{class:""}," 年度部门讨论会议 "),e.createElementVNode("text",null,"1分钟前")]),e.createElementVNode("view",{class:"info"},[e.createElementVNode("view",{class:"f-row aic jcb"},[e.createElementVNode("view",{class:""}," 会议状态: "),e.createElementVNode("text",null,"待开始/已开始/已结束")]),e.createElementVNode("view",{class:"f-row aic jcb"},[e.createElementVNode("view",{class:""}," 发起人: "),e.createElementVNode("text",null,"周如意")]),e.createElementVNode("view",{class:"f-row aic jcb"},[e.createElementVNode("view",{class:""}," 会议日期: "),e.createElementVNode("text",null,"周如意")]),e.createElementVNode("view",{class:"f-row aic jcb"},[e.createElementVNode("view",{class:""}," 会议地点: "),e.createElementVNode("text",null,"周如意")]),e.createElementVNode("view",{class:"f-row aic jcb"},[e.createElementVNode("view",{class:""}," 会议内容: "),e.createElementVNode("text",null,"周如意")]),e.createElementVNode("view",{class:""},[e.createElementVNode("view",{class:""}," 参与人员: "),e.createElementVNode("view",{class:"person f-row aic"},[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(7,((t,n)=>e.createElementVNode("view",{class:"item f-col aic",key:n},[e.createElementVNode("image",{src:"",mode:""}),e.createElementVNode("view",{class:"name"}," 周如意 ")]))),64))])])])])]),e.createElementVNode("view",{class:"btn f-row aic jcb"},[e.createElementVNode("view",{class:"refuse"}," 拒绝 "),e.createElementVNode("view",{class:"agree",onClick:n[0]||(n[0]=(...e)=>t.openpop&&t.openpop(...e))}," 同意 ")])],2))}},[["__scopeId","data-v-7441efc4"]]),ot={pages:[{path:"pages/login/login",style:{navigationStyle:"custom"}},{path:"pages/tab/index",style:{navigationStyle:"custom",enablePullDownRefresh:!0}},{path:"pages/task/todotask",style:{navigationStyle:"custom",enablePullDownRefresh:!0}},{path:"pages/tab/office",style:{navigationStyle:"custom"}},{path:"pages/tab/my",style:{navigationStyle:"custom"}},{path:"pages/task/index",style:{enablePullDownRefresh:!0,"app-plus":{titleNView:{titleText:"我的任务",titleColor:"#fff"}}}},{path:"pages/task/handle",style:{navigationStyle:"custom"}},{path:"pages/talk/message_list",style:{navigationBarTitleText:"消息",enablePullDownRefresh:!0,navigationBarTextStyle:"white"}},{path:"pages/talk/conversation",style:{navigationBarTitleText:"昵称",enablePullDownRefresh:!0,navigationBarTextStyle:"white"}},{path:"pages/talk/system",style:{navigationBarTitleText:"系统通知",enablePullDownRefresh:!0,navigationBarTextStyle:"white"}},{path:"pages/document/index",style:{navigationStyle:"custom",enablePullDownRefresh:!0}},{path:"pages/document/detail",style:{navigationBarTitleText:"详情",navigationBarTextStyle:"white"}},{path:"pages/meeting/index",style:{navigationStyle:"custom"}},{path:"pages/meeting/detail",style:{navigationBarTitleText:"详情",enablePullDownRefresh:!1,navigationBarTextStyle:"white"}},{path:"pages/leave/application",style:{navigationBarTitleText:"请假申请",enablePullDownRefresh:!1,navigationBarTextStyle:"white"}},{path:"pages/checkin/index",style:{navigationStyle:"custom"}},{path:"pages/useredit/useredit",style:{navigationBarTitleText:"资料编辑",navigationBarTextStyle:"white"}},{path:"pages/useredit/address",style:{navigationBarTitleText:"地址",enablePullDownRefresh:!1,navigationBarTextStyle:"white"}},{path:"pages/useredit/add_address",style:{navigationBarTitleText:"添加地址",enablePullDownRefresh:!1,navigationBarTextStyle:"white"}},{path:"pages/useredit/addressbook",style:{navigationBarTitleText:"通讯录",enablePullDownRefresh:!1,navigationBarTextStyle:"white"}},{path:"pages/safe/manage",style:{navigationStyle:"custom"}},{path:"pages/product/index",style:{navigationBarTitleText:"生产数据",enablePullDownRefresh:!1,navigationBarTextStyle:"white"}},{path:"pages/userlist/index",style:{navigationBarTitleText:"",navigationBarTextStyle:"white"}},{path:"pages/safe/detail",style:{navigationStyle:"custom"}},{path:"pages/zhiban/index",style:{navigationBarTitleText:"值班信息",navigationBarTextStyle:"white"}},{path:"pages/task/self",style:{navigationBarTitleText:"本人发起",navigationBarTextStyle:"white"}}],tabBar:{color:"#333333",selectedColor:"#01508B",borderStyle:"black",backgroundColor:"#FFFFFF",list:[{text:"首页",pagePath:"pages/tab/index",iconPath:"static/tab/index1.png",selectedIconPath:"static/tab/index2.png"},{text:"任务",pagePath:"pages/task/todotask",iconPath:"static/tab/office1.png",selectedIconPath:"static/tab/office2.png"},{text:"办公",pagePath:"pages/tab/office",iconPath:"static/tab/product1.png",selectedIconPath:"static/tab/product2.png"},{text:"我的",pagePath:"pages/tab/my",iconPath:"static/tab/user1.png",selectedIconPath:"static/tab/user2.png"}]},globalStyle:{"app-plus":{titleNView:{backgroundImage:"linear-gradient(to left , #256FBC, #044D87)"}}},uniIdRouter:{}};function lt(e,t,n){return e(n={path:t,exports:{},require:function(e,t){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==t&&n.path)}},n.exports),n.exports}var ct=lt((function(e,t){var n;e.exports=(n=n||function(e,t){var n=Object.create||function(){function e(){}return function(t){var n;return e.prototype=t,n=new e,e.prototype=null,n}}(),i={},a=i.lib={},s=a.Base={extend:function(e){var t=n(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}},r=a.WordArray=s.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=null!=t?t:4*e.length},toString:function(e){return(e||l).stringify(this)},concat:function(e){var t=this.words,n=e.words,i=this.sigBytes,a=e.sigBytes;if(this.clamp(),i%4)for(var s=0;s>>2]>>>24-s%4*8&255;t[i+s>>>2]|=r<<24-(i+s)%4*8}else for(s=0;s>>2]=n[s>>>2];return this.sigBytes+=a,this},clamp:function(){var t=this.words,n=this.sigBytes;t[n>>>2]&=4294967295<<32-n%4*8,t.length=e.ceil(n/4)},clone:function(){var e=s.clone.call(this);return e.words=this.words.slice(0),e},random:function(t){for(var n,i=[],a=function(t){var n=987654321,i=4294967295;return function(){var a=((n=36969*(65535&n)+(n>>16)&i)<<16)+(t=18e3*(65535&t)+(t>>16)&i)&i;return a/=4294967296,(a+=.5)*(e.random()>.5?1:-1)}},s=0;s>>2]>>>24-a%4*8&255;i.push((s>>>4).toString(16)),i.push((15&s).toString(16))}return i.join("")},parse:function(e){for(var t=e.length,n=[],i=0;i>>3]|=parseInt(e.substr(i,2),16)<<24-i%8*4;return new r.init(n,t/2)}},c=o.Latin1={stringify:function(e){for(var t=e.words,n=e.sigBytes,i=[],a=0;a>>2]>>>24-a%4*8&255;i.push(String.fromCharCode(s))}return i.join("")},parse:function(e){for(var t=e.length,n=[],i=0;i>>2]|=(255&e.charCodeAt(i))<<24-i%4*8;return new r.init(n,t)}},u=o.Utf8={stringify:function(e){try{return decodeURIComponent(escape(c.stringify(e)))}catch(t){throw new Error("Malformed UTF-8 data")}},parse:function(e){return c.parse(unescape(encodeURIComponent(e)))}},d=a.BufferedBlockAlgorithm=s.extend({reset:function(){this._data=new r.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=u.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var n=this._data,i=n.words,a=n.sigBytes,s=this.blockSize,o=a/(4*s),l=(o=t?e.ceil(o):e.max((0|o)-this._minBufferSize,0))*s,c=e.min(4*l,a);if(l){for(var u=0;u>>24)|4278255360&(a<<24|a>>>8)}var s=this._hash.words,r=e[t+0],l=e[t+1],p=e[t+2],f=e[t+3],m=e[t+4],g=e[t+5],v=e[t+6],y=e[t+7],w=e[t+8],k=e[t+9],_=e[t+10],S=e[t+11],b=e[t+12],E=e[t+13],x=e[t+14],D=e[t+15],T=s[0],N=s[1],C=s[2],V=s[3];T=c(T,N,C,V,r,7,o[0]),V=c(V,T,N,C,l,12,o[1]),C=c(C,V,T,N,p,17,o[2]),N=c(N,C,V,T,f,22,o[3]),T=c(T,N,C,V,m,7,o[4]),V=c(V,T,N,C,g,12,o[5]),C=c(C,V,T,N,v,17,o[6]),N=c(N,C,V,T,y,22,o[7]),T=c(T,N,C,V,w,7,o[8]),V=c(V,T,N,C,k,12,o[9]),C=c(C,V,T,N,_,17,o[10]),N=c(N,C,V,T,S,22,o[11]),T=c(T,N,C,V,b,7,o[12]),V=c(V,T,N,C,E,12,o[13]),C=c(C,V,T,N,x,17,o[14]),T=u(T,N=c(N,C,V,T,D,22,o[15]),C,V,l,5,o[16]),V=u(V,T,N,C,v,9,o[17]),C=u(C,V,T,N,S,14,o[18]),N=u(N,C,V,T,r,20,o[19]),T=u(T,N,C,V,g,5,o[20]),V=u(V,T,N,C,_,9,o[21]),C=u(C,V,T,N,D,14,o[22]),N=u(N,C,V,T,m,20,o[23]),T=u(T,N,C,V,k,5,o[24]),V=u(V,T,N,C,x,9,o[25]),C=u(C,V,T,N,f,14,o[26]),N=u(N,C,V,T,w,20,o[27]),T=u(T,N,C,V,E,5,o[28]),V=u(V,T,N,C,p,9,o[29]),C=u(C,V,T,N,y,14,o[30]),T=d(T,N=u(N,C,V,T,b,20,o[31]),C,V,g,4,o[32]),V=d(V,T,N,C,w,11,o[33]),C=d(C,V,T,N,S,16,o[34]),N=d(N,C,V,T,x,23,o[35]),T=d(T,N,C,V,l,4,o[36]),V=d(V,T,N,C,m,11,o[37]),C=d(C,V,T,N,y,16,o[38]),N=d(N,C,V,T,_,23,o[39]),T=d(T,N,C,V,E,4,o[40]),V=d(V,T,N,C,r,11,o[41]),C=d(C,V,T,N,f,16,o[42]),N=d(N,C,V,T,v,23,o[43]),T=d(T,N,C,V,k,4,o[44]),V=d(V,T,N,C,b,11,o[45]),C=d(C,V,T,N,D,16,o[46]),T=h(T,N=d(N,C,V,T,p,23,o[47]),C,V,r,6,o[48]),V=h(V,T,N,C,y,10,o[49]),C=h(C,V,T,N,x,15,o[50]),N=h(N,C,V,T,g,21,o[51]),T=h(T,N,C,V,b,6,o[52]),V=h(V,T,N,C,f,10,o[53]),C=h(C,V,T,N,_,15,o[54]),N=h(N,C,V,T,l,21,o[55]),T=h(T,N,C,V,w,6,o[56]),V=h(V,T,N,C,D,10,o[57]),C=h(C,V,T,N,v,15,o[58]),N=h(N,C,V,T,E,21,o[59]),T=h(T,N,C,V,m,6,o[60]),V=h(V,T,N,C,S,10,o[61]),C=h(C,V,T,N,p,15,o[62]),N=h(N,C,V,T,k,21,o[63]),s[0]=s[0]+T|0,s[1]=s[1]+N|0,s[2]=s[2]+C|0,s[3]=s[3]+V|0},_doFinalize:function(){var t=this._data,n=t.words,i=8*this._nDataBytes,a=8*t.sigBytes;n[a>>>5]|=128<<24-a%32;var s=e.floor(i/4294967296),r=i;n[15+(a+64>>>9<<4)]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),n[14+(a+64>>>9<<4)]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8),t.sigBytes=4*(n.length+1),this._process();for(var o=this._hash,l=o.words,c=0;c<4;c++){var u=l[c];l[c]=16711935&(u<<8|u>>>24)|4278255360&(u<<24|u>>>8)}return o},clone:function(){var e=s.clone.call(this);return e._hash=this._hash.clone(),e}});function c(e,t,n,i,a,s,r){var o=e+(t&n|~t&i)+a+r;return(o<>>32-s)+t}function u(e,t,n,i,a,s,r){var o=e+(t&i|n&~i)+a+r;return(o<>>32-s)+t}function d(e,t,n,i,a,s,r){var o=e+(t^n^i)+a+r;return(o<>>32-s)+t}function h(e,t,n,i,a,s,r){var o=e+(n^(t|~i))+a+r;return(o<>>32-s)+t}t.MD5=s._createHelper(l),t.HmacMD5=s._createHmacHelper(l)}(Math),n.MD5)})),lt((function(e,t){var n,i,a;e.exports=(i=(n=ut).lib.Base,a=n.enc.Utf8,void(n.algo.HMAC=i.extend({init:function(e,t){e=this._hasher=new e.init,"string"==typeof t&&(t=a.parse(t));var n=e.blockSize,i=4*n;t.sigBytes>i&&(t=e.finalize(t)),t.clamp();for(var s=this._oKey=t.clone(),r=this._iKey=t.clone(),o=s.words,l=r.words,c=0;c>>2]>>>24-s%4*8&255)<<16|(t[s+1>>>2]>>>24-(s+1)%4*8&255)<<8|t[s+2>>>2]>>>24-(s+2)%4*8&255,o=0;o<4&&s+.75*o>>6*(3-o)&63));var l=i.charAt(64);if(l)for(;a.length%4;)a.push(l);return a.join("")},parse:function(e){var t=e.length,n=this._map,i=this._reverseMap;if(!i){i=this._reverseMap=[];for(var s=0;s>>6-r%4*2;i[s>>>2]|=(o|l)<<24-s%4*8,s++}return a.create(i,s)}(e,t,i)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="},n.enc.Base64)}));const ft="FUNCTION",mt="pending",gt="rejected";function vt(e){return Object.prototype.toString.call(e).slice(8,-1).toLowerCase()}function yt(e){return"object"===vt(e)}function wt(e){return"function"==typeof e}function kt(e){return function(){try{return e.apply(e,arguments)}catch(t){console.error(t)}}}const _t="REJECTED",St="NOT_PENDING";class bt{constructor({createPromise:e,retryRule:t=_t}={}){this.createPromise=e,this.status=null,this.promise=null,this.retryRule=t}get needRetry(){if(!this.status)return!0;switch(this.retryRule){case _t:return this.status===gt;case St:return this.status!==mt}}exec(){return this.needRetry?(this.status=mt,this.promise=this.createPromise().then((e=>(this.status="fulfilled",Promise.resolve(e))),(e=>(this.status=gt,Promise.reject(e)))),this.promise):this.promise}}function Et(e){return e&&"string"==typeof e?JSON.parse(e):e}const xt=Et([]);Et("");const Dt=Et('[{"provider":"aliyun","spaceName":"szcx-app","spaceId":"mp-a5a4405f-df9a-4c27-b553-dca803accfbc","clientSecret":"vYZ7Nv/mnOB6vUulLJ4B7Q==","endpoint":"https://api.next.bspapp.com"}]')||[];let Tt="";try{Tt="__UNI__9F097F0"}catch(gn){}let Nt={};function Ct(e,t={}){var n,i;return n=Nt,i=e,Object.prototype.hasOwnProperty.call(n,i)||(Nt[e]=t),Nt[e]}Nt=uni._globalUniCloudObj?uni._globalUniCloudObj:uni._globalUniCloudObj={};const Vt=["invoke","success","fail","complete"],It=Ct("_globalUniCloudInterceptor");function Bt(e,t){It[e]||(It[e]={}),yt(t)&&Object.keys(t).forEach((n=>{Vt.indexOf(n)>-1&&function(e,t,n){let i=It[e][t];i||(i=It[e][t]=[]),-1===i.indexOf(n)&&wt(n)&&i.push(n)}(e,n,t[n])}))}function At(e,t){It[e]||(It[e]={}),yt(t)?Object.keys(t).forEach((n=>{Vt.indexOf(n)>-1&&function(e,t,n){const i=It[e][t];if(!i)return;const a=i.indexOf(n);a>-1&&i.splice(a,1)}(e,n,t[n])})):delete It[e]}function Mt(e,t){return e&&0!==e.length?e.reduce(((e,n)=>e.then((()=>n(t)))),Promise.resolve()):Promise.resolve()}function Pt(e,t){return It[e]&&It[e][t]||[]}function Rt(e){Bt("callObject",e)}const Ot=Ct("_globalUniCloudListener"),Lt="response",Ft="needLogin",jt="refreshToken",Ut="clientdb",$t="cloudfunction",zt="cloudobject";function Ht(e){return Ot[e]||(Ot[e]=[]),Ot[e]}function qt(e,t){const n=Ht(e);n.includes(t)||n.push(t)}function Kt(e,t){const n=Ht(e),i=n.indexOf(t);-1!==i&&n.splice(i,1)}function Jt(e,t){const n=Ht(e);for(let i=0;i{Yt&&e(),function t(){if("function"==typeof getCurrentPages){const t=getCurrentPages();t&&t[0]&&(Yt=!0,e())}Yt||setTimeout((()=>{t()}),30)}()})),Wt)}function Zt(e){const t={};for(const n in e){const i=e[n];wt(i)&&(t[n]=kt(i))}return t}class Qt extends Error{constructor(e){super(e.message),this.errMsg=e.message||e.errMsg||"unknown system error",this.code=this.errCode=e.code||e.errCode||"SYSTEM_ERROR",this.errSubject=this.subject=e.subject||e.errSubject,this.cause=e.cause,this.requestId=e.requestId}toJson(e=0){if(!(e>=10))return e++,{errCode:this.errCode,errMsg:this.errMsg,errSubject:this.errSubject,cause:this.cause&&this.cause.toJson?this.cause.toJson(e):this.cause}}}var Xt={request:e=>uni.request(e),uploadFile:e=>uni.uploadFile(e),setStorageSync:(e,t)=>uni.setStorageSync(e,t),getStorageSync:e=>uni.getStorageSync(e),removeStorageSync:e=>uni.removeStorageSync(e),clearStorageSync:()=>uni.clearStorageSync()};function en(e){return e&&en(e.__v_raw)||e}function tn(){return{token:Xt.getStorageSync("uni_id_token")||Xt.getStorageSync("uniIdToken"),tokenExpired:Xt.getStorageSync("uni_id_token_expired")}}function nn({token:e,tokenExpired:t}={}){e&&Xt.setStorageSync("uni_id_token",e),t&&Xt.setStorageSync("uni_id_token_expired",t)}let an,sn;function rn(){return an||(an=uni.getSystemInfoSync()),an}function on(){let e,t;try{if(uni.getLaunchOptionsSync){if(uni.getLaunchOptionsSync.toString().indexOf("not yet implemented")>-1)return;const{scene:n,channel:i}=uni.getLaunchOptionsSync();e=i,t=n}}catch(n){}return{channel:e,scene:t}}function ln(){const e=uni.getLocale&&uni.getLocale()||"en";if(sn)return{...sn,locale:e,LOCALE:e};const t=rn(),{deviceId:n,osName:i,uniPlatform:a,appId:s}=t,r=["pixelRatio","brand","model","system","language","version","platform","host","SDKVersion","swanNativeVersion","app","AppPlatform","fontSizeSetting"];for(let o=0;o{t(Object.assign(e,{complete(e){e||(e={});const t=e.data&&e.data.header&&e.data.header["x-serverless-request-id"]||e.header&&e.header["request-id"];if(!e.statusCode||e.statusCode>=400){const n=e.data&&e.data.error&&e.data.error.code||"SYS_ERR",a=e.data&&e.data.error&&e.data.error.message||e.errMsg||"request:fail";return i(new Qt({code:n,message:a,requestId:t}))}const a=e.data;if(a.error)return i(new Qt({code:a.error.code,message:a.error.message,requestId:t}));a.result=a.data,a.requestId=t,delete a.data,n(a)}}))}))},dn=function(e){return pt.stringify(ht.parse(e))},hn=class{constructor(e){["spaceId","clientSecret"].forEach((t=>{if(!Object.prototype.hasOwnProperty.call(e,t))throw new Error(`${t} required`)})),this.config=Object.assign({},{endpoint:0===e.spaceId.indexOf("mp-")?"https://api.next.bspapp.com":"https://api.bspapp.com"},e),this.config.provider="aliyun",this.config.requestUrl=this.config.endpoint+"/client",this.config.envType=this.config.envType||"public",this.config.accessTokenKey="access_token_"+this.config.spaceId,this.adapter=Xt,this._getAccessTokenPromiseHub=new bt({createPromise:()=>this.requestAuth(this.setupRequest({method:"serverless.auth.user.anonymousAuthorize",params:"{}"},"auth")).then((e=>{if(!e.result||!e.result.accessToken)throw new Qt({code:"AUTH_FAILED",message:"获取accessToken失败"});this.setAccessToken(e.result.accessToken)})),retryRule:St})}get hasAccessToken(){return!!this.accessToken}setAccessToken(e){this.accessToken=e}requestWrapped(e){return un(e,this.adapter.request)}requestAuth(e){return this.requestWrapped(e)}request(e,t){return Promise.resolve().then((()=>this.hasAccessToken?t?this.requestWrapped(e):this.requestWrapped(e).catch((t=>new Promise(((e,n)=>{!t||"GATEWAY_INVALID_TOKEN"!==t.code&&"InvalidParameter.InvalidToken"!==t.code?n(t):e()})).then((()=>this.getAccessToken())).then((()=>{const t=this.rebuildRequest(e);return this.request(t,!0)})))):this.getAccessToken().then((()=>{const t=this.rebuildRequest(e);return this.request(t,!0)}))))}rebuildRequest(e){const t=Object.assign({},e);return t.data.token=this.accessToken,t.header["x-basement-token"]=this.accessToken,t.header["x-serverless-sign"]=cn(t.data,this.config.clientSecret),t}setupRequest(e,t){const n=Object.assign({},e,{spaceId:this.config.spaceId,timestamp:Date.now()}),i={"Content-Type":"application/json"};return"auth"!==t&&(n.token=this.accessToken,i["x-basement-token"]=this.accessToken),i["x-serverless-sign"]=cn(n,this.config.clientSecret),{url:this.config.requestUrl,method:"POST",data:n,dataType:"json",header:i}}getAccessToken(){return this._getAccessTokenPromiseHub.exec()}async authorize(){await this.getAccessToken()}callFunction(e){const t={method:"serverless.function.runtime.invoke",params:JSON.stringify({functionTarget:e.name,functionArgs:e.data||{}})};return this.request(this.setupRequest(t))}getOSSUploadOptionsFromPath(e){const t={method:"serverless.file.resource.generateProximalSign",params:JSON.stringify(e)};return this.request(this.setupRequest(t))}uploadFileToOSS({url:e,formData:t,name:n,filePath:i,fileType:a,onUploadProgress:s}){return new Promise(((r,o)=>{const l=this.adapter.uploadFile({url:e,formData:t,name:n,filePath:i,fileType:a,header:{"X-OSS-server-side-encrpytion":"AES256"},success(e){e&&e.statusCode<400?r(e):o(new Qt({code:"UPLOAD_FAILED",message:"文件上传失败"}))},fail(e){o(new Qt({code:e.code||"UPLOAD_FAILED",message:e.message||e.errMsg||"文件上传失败"}))}});"function"==typeof s&&l&&"function"==typeof l.onProgressUpdate&&l.onProgressUpdate((e=>{s({loaded:e.totalBytesSent,total:e.totalBytesExpectedToSend})}))}))}reportOSSUpload(e){const t={method:"serverless.file.resource.report",params:JSON.stringify(e)};return this.request(this.setupRequest(t))}async uploadFile({filePath:e,cloudPath:t,fileType:n="image",cloudPathAsRealPath:i=!1,onUploadProgress:a,config:s}){if("string"!==vt(t))throw new Qt({code:"INVALID_PARAM",message:"cloudPath必须为字符串类型"});if(!(t=t.trim()))throw new Qt({code:"INVALID_PARAM",message:"cloudPath不可为空"});if(/:\/\//.test(t))throw new Qt({code:"INVALID_PARAM",message:"cloudPath不合法"});const r=s&&s.envType||this.config.envType;if(i&&("/"!==t[0]&&(t="/"+t),t.indexOf("\\")>-1))throw new Qt({code:"INVALID_PARAM",message:"使用cloudPath作为路径时,cloudPath不可包含“\\”"});const o=(await this.getOSSUploadOptionsFromPath({env:r,filename:i?t.split("/").pop():t,fileId:i?t:void 0})).result,l="https://"+o.cdnDomain+"/"+o.ossPath,{securityToken:c,accessKeyId:u,signature:d,host:h,ossPath:p,id:f,policy:m,ossCallbackUrl:g}=o,v={"Cache-Control":"max-age=2592000","Content-Disposition":"attachment",OSSAccessKeyId:u,Signature:d,host:h,id:f,key:p,policy:m,success_action_status:200};if(c&&(v["x-oss-security-token"]=c),g){const e=JSON.stringify({callbackUrl:g,callbackBody:JSON.stringify({fileId:f,spaceId:this.config.spaceId}),callbackBodyType:"application/json"});v.callback=dn(e)}const y={url:"https://"+o.host,formData:v,fileName:"file",name:"file",filePath:e,fileType:n};if(await this.uploadFileToOSS(Object.assign({},y,{onUploadProgress:a})),g)return{success:!0,filePath:e,fileID:l};if((await this.reportOSSUpload({id:f})).success)return{success:!0,filePath:e,fileID:l};throw new Qt({code:"UPLOAD_FAILED",message:"文件上传失败"})}getTempFileURL({fileList:e}={}){return new Promise(((t,n)=>{Array.isArray(e)&&0!==e.length||n(new Qt({code:"INVALID_PARAM",message:"fileList的元素必须是非空的字符串"})),t({fileList:e.map((e=>({fileID:e,tempFileURL:e})))})}))}async getFileInfo({fileList:e}={}){if(!Array.isArray(e)||0===e.length)throw new Qt({code:"INVALID_PARAM",message:"fileList的元素必须是非空的字符串"});const t={method:"serverless.file.resource.info",params:JSON.stringify({id:e.map((e=>e.split("?")[0])).join(",")})};return{fileList:(await this.request(this.setupRequest(t))).result}}},pn={init(e){const t=new hn(e),n={signInAnonymously:function(){return t.authorize()},getLoginState:function(){return Promise.resolve(!1)}};return t.auth=function(){return n},t.customAuth=t.auth,t}};const fn="undefined"!=typeof location&&"http:"===location.protocol?"http:":"https:";var mn,gn;(gn=mn||(mn={})).local="local",gn.none="none",gn.session="session";var vn=function(){},yn=lt((function(e,t){var n;e.exports=(n=ut,function(e){var t=n,i=t.lib,a=i.WordArray,s=i.Hasher,r=t.algo,o=[],l=[];!function(){function t(t){for(var n=e.sqrt(t),i=2;i<=n;i++)if(!(t%i))return!1;return!0}function n(e){return 4294967296*(e-(0|e))|0}for(var i=2,a=0;a<64;)t(i)&&(a<8&&(o[a]=n(e.pow(i,.5))),l[a]=n(e.pow(i,1/3)),a++),i++}();var c=[],u=r.SHA256=s.extend({_doReset:function(){this._hash=new a.init(o.slice(0))},_doProcessBlock:function(e,t){for(var n=this._hash.words,i=n[0],a=n[1],s=n[2],r=n[3],o=n[4],u=n[5],d=n[6],h=n[7],p=0;p<64;p++){if(p<16)c[p]=0|e[t+p];else{var f=c[p-15],m=(f<<25|f>>>7)^(f<<14|f>>>18)^f>>>3,g=c[p-2],v=(g<<15|g>>>17)^(g<<13|g>>>19)^g>>>10;c[p]=m+c[p-7]+v+c[p-16]}var y=i&a^i&s^a&s,w=(i<<30|i>>>2)^(i<<19|i>>>13)^(i<<10|i>>>22),k=h+((o<<26|o>>>6)^(o<<21|o>>>11)^(o<<7|o>>>25))+(o&u^~o&d)+l[p]+c[p];h=d,d=u,u=o,o=r+k|0,r=s,s=a,a=i,i=k+(w+y)|0}n[0]=n[0]+i|0,n[1]=n[1]+a|0,n[2]=n[2]+s|0,n[3]=n[3]+r|0,n[4]=n[4]+o|0,n[5]=n[5]+u|0,n[6]=n[6]+d|0,n[7]=n[7]+h|0},_doFinalize:function(){var t=this._data,n=t.words,i=8*this._nDataBytes,a=8*t.sigBytes;return n[a>>>5]|=128<<24-a%32,n[14+(a+64>>>9<<4)]=e.floor(i/4294967296),n[15+(a+64>>>9<<4)]=i,t.sigBytes=4*n.length,this._process(),this._hash},clone:function(){var e=s.clone.call(this);return e._hash=this._hash.clone(),e}});t.SHA256=s._createHelper(u),t.HmacSHA256=s._createHmacHelper(u)}(Math),n.SHA256)})),wn=yn,kn=lt((function(e,t){e.exports=ut.HmacSHA256}));const _n=()=>{let e;if(!Promise){e=()=>{},e.promise={};const t=()=>{throw new Qt({message:'Your Node runtime does support ES6 Promises. Set "global.Promise" to your preferred implementation of promises.'})};return Object.defineProperty(e.promise,"then",{get:t}),Object.defineProperty(e.promise,"catch",{get:t}),e}const t=new Promise(((t,n)=>{e=(e,i)=>e?n(e):t(i)}));return e.promise=t,e};function Sn(e){return void 0===e}function bn(e){return"[object Null]"===Object.prototype.toString.call(e)}var En;!function(e){e.WEB="web",e.WX_MP="wx_mp"}(En||(En={}));const xn={adapter:null,runtime:void 0},Dn=["anonymousUuidKey"];class Tn extends vn{constructor(){super(),xn.adapter.root.tcbObject||(xn.adapter.root.tcbObject={})}setItem(e,t){xn.adapter.root.tcbObject[e]=t}getItem(e){return xn.adapter.root.tcbObject[e]}removeItem(e){delete xn.adapter.root.tcbObject[e]}clear(){delete xn.adapter.root.tcbObject}}function Nn(e,t){switch(e){case"local":return t.localStorage||new Tn;case"none":return new Tn;default:return t.sessionStorage||new Tn}}class Cn{constructor(e){if(!this._storage){this._persistence=xn.adapter.primaryStorage||e.persistence,this._storage=Nn(this._persistence,xn.adapter);const t=`access_token_${e.env}`,n=`access_token_expire_${e.env}`,i=`refresh_token_${e.env}`,a=`anonymous_uuid_${e.env}`,s=`login_type_${e.env}`,r=`user_info_${e.env}`;this.keys={accessTokenKey:t,accessTokenExpireKey:n,refreshTokenKey:i,anonymousUuidKey:a,loginTypeKey:s,userInfoKey:r}}}updatePersistence(e){if(e===this._persistence)return;const t="local"===this._persistence;this._persistence=e;const n=Nn(e,xn.adapter);for(const i in this.keys){const e=this.keys[i];if(t&&Dn.includes(i))continue;const a=this._storage.getItem(e);Sn(a)||bn(a)||(n.setItem(e,a),this._storage.removeItem(e))}this._storage=n}setStore(e,t,n){if(!this._storage)return;const i={version:n||"localCachev1",content:t},a=JSON.stringify(i);try{this._storage.setItem(e,a)}catch(s){throw s}}getStore(e,t){try{if(!this._storage)return}catch(i){return""}t=t||"localCachev1";const n=this._storage.getItem(e);return n&&n.indexOf(t)>=0?JSON.parse(n).content:""}removeStore(e){this._storage.removeItem(e)}}const Vn={},In={};function Bn(e){return Vn[e]}class An{constructor(e,t){this.data=t||null,this.name=e}}class Mn extends An{constructor(e,t){super("error",{error:e,data:t}),this.error=e}}const Pn=new class{constructor(){this._listeners={}}on(e,t){return n=e,i=t,(a=this._listeners)[n]=a[n]||[],a[n].push(i),this;var n,i,a}off(e,t){return function(e,t,n){if(n&&n[e]){const i=n[e].indexOf(t);-1!==i&&n[e].splice(i,1)}}(e,t,this._listeners),this}fire(e,t){if(e instanceof Mn)return console.error(e.error),this;const n="string"==typeof e?new An(e,t||{}):e,i=n.name;if(this._listens(i)){n.target=this;const e=this._listeners[i]?[...this._listeners[i]]:[];for(const t of e)t.call(this,n)}return this}_listens(e){return this._listeners[e]&&this._listeners[e].length>0}};function Rn(e,t){Pn.on(e,t)}function On(e,t={}){Pn.fire(e,t)}function Ln(e,t){Pn.off(e,t)}const Fn="loginStateChanged",jn="loginStateExpire",Un="loginTypeChanged",$n="anonymousConverted",zn="refreshAccessToken";var Hn;!function(e){e.ANONYMOUS="ANONYMOUS",e.WECHAT="WECHAT",e.WECHAT_PUBLIC="WECHAT-PUBLIC",e.WECHAT_OPEN="WECHAT-OPEN",e.CUSTOM="CUSTOM",e.EMAIL="EMAIL",e.USERNAME="USERNAME",e.NULL="NULL"}(Hn||(Hn={}));const qn=["auth.getJwt","auth.logout","auth.signInWithTicket","auth.signInAnonymously","auth.signIn","auth.fetchAccessTokenWithRefreshToken","auth.signUpWithEmailAndPassword","auth.activateEndUserMail","auth.sendPasswordResetEmail","auth.resetPasswordWithToken","auth.isUsernameRegistered"],Kn={"X-SDK-Version":"1.3.5"};function Jn(e,t,n){const i=e[t];e[t]=function(t){const a={},s={};n.forEach((n=>{const{data:i,headers:r}=n.call(e,t);Object.assign(a,i),Object.assign(s,r)}));const r=t.data;return r&&(()=>{var e;if(e=r,"[object FormData]"!==Object.prototype.toString.call(e))t.data={...r,...a};else for(const t in a)r.append(t,a[t])})(),t.headers={...t.headers||{},...s},i.call(e,t)}}function Wn(){const e=Math.random().toString(16).slice(2);return{data:{seqId:e},headers:{...Kn,"x-seqid":e}}}class Yn{constructor(e={}){var t;this.config=e,this._reqClass=new xn.adapter.reqClass({timeout:this.config.timeout,timeoutMsg:`请求在${this.config.timeout/1e3}s内未完成,已中断`,restrictedMethods:["post"]}),this._cache=Bn(this.config.env),this._localCache=(t=this.config.env,In[t]),Jn(this._reqClass,"post",[Wn]),Jn(this._reqClass,"upload",[Wn]),Jn(this._reqClass,"download",[Wn])}async post(e){return await this._reqClass.post(e)}async upload(e){return await this._reqClass.upload(e)}async download(e){return await this._reqClass.download(e)}async refreshAccessToken(){let e,t;this._refreshAccessTokenPromise||(this._refreshAccessTokenPromise=this._refreshAccessToken());try{e=await this._refreshAccessTokenPromise}catch(n){t=n}if(this._refreshAccessTokenPromise=null,this._shouldRefreshAccessTokenHook=null,t)throw t;return e}async _refreshAccessToken(){const{accessTokenKey:e,accessTokenExpireKey:t,refreshTokenKey:n,loginTypeKey:i,anonymousUuidKey:a}=this._cache.keys;this._cache.removeStore(e),this._cache.removeStore(t);let s=this._cache.getStore(n);if(!s)throw new Qt({message:"未登录CloudBase"});const r={refresh_token:s},o=await this.request("auth.fetchAccessTokenWithRefreshToken",r);if(o.data.code){const{code:e}=o.data;if("SIGN_PARAM_INVALID"===e||"REFRESH_TOKEN_EXPIRED"===e||"INVALID_REFRESH_TOKEN"===e){if(this._cache.getStore(i)===Hn.ANONYMOUS&&"INVALID_REFRESH_TOKEN"===e){const e=this._cache.getStore(a),t=this._cache.getStore(n),i=await this.send("auth.signInAnonymously",{anonymous_uuid:e,refresh_token:t});return this.setRefreshToken(i.refresh_token),this._refreshAccessToken()}On(jn),this._cache.removeStore(n)}throw new Qt({code:o.data.code,message:`刷新access token失败:${o.data.code}`})}if(o.data.access_token)return On(zn),this._cache.setStore(e,o.data.access_token),this._cache.setStore(t,o.data.access_token_expire+Date.now()),{accessToken:o.data.access_token,accessTokenExpire:o.data.access_token_expire};o.data.refresh_token&&(this._cache.removeStore(n),this._cache.setStore(n,o.data.refresh_token),this._refreshAccessToken())}async getAccessToken(){const{accessTokenKey:e,accessTokenExpireKey:t,refreshTokenKey:n}=this._cache.keys;if(!this._cache.getStore(n))throw new Qt({message:"refresh token不存在,登录状态异常"});let i=this._cache.getStore(e),a=this._cache.getStore(t),s=!0;return this._shouldRefreshAccessTokenHook&&!(await this._shouldRefreshAccessTokenHook(i,a))&&(s=!1),(!i||!a||a{e.wxOpenId&&e.wxPublicId&&(t=!0)})),{users:n,hasPrimaryUid:t}}setPrimaryUid(e){return this._request.send("auth.setPrimaryUid",{uid:e})}unlink(e){return this._request.send("auth.unlink",{platform:e})}async update(e){const{nickName:t,gender:n,avatarUrl:i,province:a,country:s,city:r}=e,{data:o}=await this._request.send("auth.updateUserInfo",{nickName:t,gender:n,avatarUrl:i,province:a,country:s,city:r});this.setLocalUserInfo(o)}async refresh(){const{data:e}=await this._request.send("auth.getUserInfo",{});return this.setLocalUserInfo(e),e}setUserInfo(){const{userInfoKey:e}=this._cache.keys,t=this._cache.getStore(e);["uid","loginType","openid","wxOpenId","wxPublicId","unionId","qqMiniOpenId","email","hasPassword","customUserId","nickName","gender","avatarUrl"].forEach((e=>{this[e]=t[e]})),this.location={country:t.country,province:t.province,city:t.city}}setLocalUserInfo(e){const{userInfoKey:t}=this._cache.keys;this._cache.setStore(t,e),this.setUserInfo()}}class ei{constructor(e){if(!e)throw new Qt({code:"PARAM_ERROR",message:"envId is not defined"});this._cache=Bn(e);const{refreshTokenKey:t,accessTokenKey:n,accessTokenExpireKey:i}=this._cache.keys,a=this._cache.getStore(t),s=this._cache.getStore(n),r=this._cache.getStore(i);this.credential={refreshToken:a,accessToken:s,accessTokenExpire:r},this.user=new Xn(e)}get isAnonymousAuth(){return this.loginType===Hn.ANONYMOUS}get isCustomAuth(){return this.loginType===Hn.CUSTOM}get isWeixinAuth(){return this.loginType===Hn.WECHAT||this.loginType===Hn.WECHAT_OPEN||this.loginType===Hn.WECHAT_PUBLIC}get loginType(){return this._cache.getStore(this._cache.keys.loginTypeKey)}}let ti=class extends Qn{async signIn(){this._cache.updatePersistence("local");const{anonymousUuidKey:e,refreshTokenKey:t}=this._cache.keys,n=this._cache.getStore(e)||void 0,i=this._cache.getStore(t)||void 0,a=await this._request.send("auth.signInAnonymously",{anonymous_uuid:n,refresh_token:i});if(a.uuid&&a.refresh_token){this._setAnonymousUUID(a.uuid),this.setRefreshToken(a.refresh_token),await this._request.refreshAccessToken(),On(Fn),On(Un,{env:this.config.env,loginType:Hn.ANONYMOUS,persistence:"local"});const e=new ei(this.config.env);return await e.user.refresh(),e}throw new Qt({message:"匿名登录失败"})}async linkAndRetrieveDataWithTicket(e){const{anonymousUuidKey:t,refreshTokenKey:n}=this._cache.keys,i=this._cache.getStore(t),a=this._cache.getStore(n),s=await this._request.send("auth.linkAndRetrieveDataWithTicket",{anonymous_uuid:i,refresh_token:a,ticket:e});if(s.refresh_token)return this._clearAnonymousUUID(),this.setRefreshToken(s.refresh_token),await this._request.refreshAccessToken(),On($n,{env:this.config.env}),On(Un,{loginType:Hn.CUSTOM,persistence:"local"}),{credential:{refreshToken:s.refresh_token}};throw new Qt({message:"匿名转化失败"})}_setAnonymousUUID(e){const{anonymousUuidKey:t,loginTypeKey:n}=this._cache.keys;this._cache.removeStore(t),this._cache.setStore(t,e),this._cache.setStore(n,Hn.ANONYMOUS)}_clearAnonymousUUID(){this._cache.removeStore(this._cache.keys.anonymousUuidKey)}};class ni extends Qn{async signIn(e){if("string"!=typeof e)throw new Qt({code:"PARAM_ERROR",message:"ticket must be a string"});const{refreshTokenKey:t}=this._cache.keys,n=await this._request.send("auth.signInWithTicket",{ticket:e,refresh_token:this._cache.getStore(t)||""});if(n.refresh_token)return this.setRefreshToken(n.refresh_token),await this._request.refreshAccessToken(),On(Fn),On(Un,{env:this.config.env,loginType:Hn.CUSTOM,persistence:this.config.persistence}),await this.refreshUserInfo(),new ei(this.config.env);throw new Qt({message:"自定义登录失败"})}}class ii extends Qn{async signIn(e,t){if("string"!=typeof e)throw new Qt({code:"PARAM_ERROR",message:"email must be a string"});const{refreshTokenKey:n}=this._cache.keys,i=await this._request.send("auth.signIn",{loginType:"EMAIL",email:e,password:t,refresh_token:this._cache.getStore(n)||""}),{refresh_token:a,access_token:s,access_token_expire:r}=i;if(a)return this.setRefreshToken(a),s&&r?this.setAccessToken(s,r):await this._request.refreshAccessToken(),await this.refreshUserInfo(),On(Fn),On(Un,{env:this.config.env,loginType:Hn.EMAIL,persistence:this.config.persistence}),new ei(this.config.env);throw i.code?new Qt({code:i.code,message:`邮箱登录失败: ${i.message}`}):new Qt({message:"邮箱登录失败"})}async activate(e){return this._request.send("auth.activateEndUserMail",{token:e})}async resetPasswordWithToken(e,t){return this._request.send("auth.resetPasswordWithToken",{token:e,newPassword:t})}}class ai extends Qn{async signIn(e,t){if("string"!=typeof e)throw new Qt({code:"PARAM_ERROR",message:"username must be a string"});"string"!=typeof t&&(t="",console.warn("password is empty"));const{refreshTokenKey:n}=this._cache.keys,i=await this._request.send("auth.signIn",{loginType:Hn.USERNAME,username:e,password:t,refresh_token:this._cache.getStore(n)||""}),{refresh_token:a,access_token_expire:s,access_token:r}=i;if(a)return this.setRefreshToken(a),r&&s?this.setAccessToken(r,s):await this._request.refreshAccessToken(),await this.refreshUserInfo(),On(Fn),On(Un,{env:this.config.env,loginType:Hn.USERNAME,persistence:this.config.persistence}),new ei(this.config.env);throw i.code?new Qt({code:i.code,message:`用户名密码登录失败: ${i.message}`}):new Qt({message:"用户名密码登录失败"})}}class si{constructor(e){this.config=e,this._cache=Bn(e.env),this._request=Zn(e.env),this._onAnonymousConverted=this._onAnonymousConverted.bind(this),this._onLoginTypeChanged=this._onLoginTypeChanged.bind(this),Rn(Un,this._onLoginTypeChanged)}get currentUser(){const e=this.hasLoginState();return e&&e.user||null}get loginType(){return this._cache.getStore(this._cache.keys.loginTypeKey)}anonymousAuthProvider(){return new ti(this.config)}customAuthProvider(){return new ni(this.config)}emailAuthProvider(){return new ii(this.config)}usernameAuthProvider(){return new ai(this.config)}async signInAnonymously(){return new ti(this.config).signIn()}async signInWithEmailAndPassword(e,t){return new ii(this.config).signIn(e,t)}signInWithUsernameAndPassword(e,t){return new ai(this.config).signIn(e,t)}async linkAndRetrieveDataWithTicket(e){return this._anonymousAuthProvider||(this._anonymousAuthProvider=new ti(this.config)),Rn($n,this._onAnonymousConverted),await this._anonymousAuthProvider.linkAndRetrieveDataWithTicket(e)}async signOut(){if(this.loginType===Hn.ANONYMOUS)throw new Qt({message:"匿名用户不支持登出操作"});const{refreshTokenKey:e,accessTokenKey:t,accessTokenExpireKey:n}=this._cache.keys,i=this._cache.getStore(e);if(!i)return;const a=await this._request.send("auth.logout",{refresh_token:i});return this._cache.removeStore(e),this._cache.removeStore(t),this._cache.removeStore(n),On(Fn),On(Un,{env:this.config.env,loginType:Hn.NULL,persistence:this.config.persistence}),a}async signUpWithEmailAndPassword(e,t){return this._request.send("auth.signUpWithEmailAndPassword",{email:e,password:t})}async sendPasswordResetEmail(e){return this._request.send("auth.sendPasswordResetEmail",{email:e})}onLoginStateChanged(e){Rn(Fn,(()=>{const t=this.hasLoginState();e.call(this,t)}));const t=this.hasLoginState();e.call(this,t)}onLoginStateExpired(e){Rn(jn,e.bind(this))}onAccessTokenRefreshed(e){Rn(zn,e.bind(this))}onAnonymousConverted(e){Rn($n,e.bind(this))}onLoginTypeChanged(e){Rn(Un,(()=>{const t=this.hasLoginState();e.call(this,t)}))}async getAccessToken(){return{accessToken:(await this._request.getAccessToken()).accessToken,env:this.config.env}}hasLoginState(){const{refreshTokenKey:e}=this._cache.keys;return this._cache.getStore(e)?new ei(this.config.env):null}async isUsernameRegistered(e){if("string"!=typeof e)throw new Qt({code:"PARAM_ERROR",message:"username must be a string"});const{data:t}=await this._request.send("auth.isUsernameRegistered",{username:e});return t&&t.isRegistered}getLoginState(){return Promise.resolve(this.hasLoginState())}async signInWithTicket(e){return new ni(this.config).signIn(e)}shouldRefreshAccessToken(e){this._request._shouldRefreshAccessTokenHook=e.bind(this)}getUserInfo(){return this._request.send("auth.getUserInfo",{}).then((e=>e.code?e:{...e.data,requestId:e.seqId}))}getAuthHeader(){const{refreshTokenKey:e,accessTokenKey:t}=this._cache.keys,n=this._cache.getStore(e);return{"x-cloudbase-credentials":this._cache.getStore(t)+"/@@/"+n}}_onAnonymousConverted(e){const{env:t}=e.data;t===this.config.env&&this._cache.updatePersistence(this.config.persistence)}_onLoginTypeChanged(e){const{loginType:t,persistence:n,env:i}=e.data;i===this.config.env&&(this._cache.updatePersistence(n),this._cache.setStore(this._cache.keys.loginTypeKey,t))}}const ri=function(e,t){t=t||_n();const n=Zn(this.config.env),{cloudPath:i,filePath:a,onUploadProgress:s,fileType:r="image"}=e;return n.send("storage.getUploadMetadata",{path:i}).then((e=>{const{data:{url:o,authorization:l,token:c,fileId:u,cosFileId:d},requestId:h}=e,p={key:i,signature:l,"x-cos-meta-fileid":d,success_action_status:"201","x-cos-security-token":c};n.upload({url:o,data:p,file:a,name:i,fileType:r,onUploadProgress:s}).then((e=>{201===e.statusCode?t(null,{fileID:u,requestId:h}):t(new Qt({code:"STORAGE_REQUEST_FAIL",message:`STORAGE_REQUEST_FAIL: ${e.data}`}))})).catch((e=>{t(e)}))})).catch((e=>{t(e)})),t.promise},oi=function(e,t){t=t||_n();const n=Zn(this.config.env),{cloudPath:i}=e;return n.send("storage.getUploadMetadata",{path:i}).then((e=>{t(null,e)})).catch((e=>{t(e)})),t.promise},li=function({fileList:e},t){if(t=t||_n(),!e||!Array.isArray(e))return{code:"INVALID_PARAM",message:"fileList必须是非空的数组"};for(let i of e)if(!i||"string"!=typeof i)return{code:"INVALID_PARAM",message:"fileList的元素必须是非空的字符串"};const n={fileid_list:e};return Zn(this.config.env).send("storage.batchDeleteFile",n).then((e=>{e.code?t(null,e):t(null,{fileList:e.data.delete_list,requestId:e.requestId})})).catch((e=>{t(e)})),t.promise},ci=function({fileList:e},t){t=t||_n(),e&&Array.isArray(e)||t(null,{code:"INVALID_PARAM",message:"fileList必须是非空的数组"});let n=[];for(let a of e)"object"==typeof a?(a.hasOwnProperty("fileID")&&a.hasOwnProperty("maxAge")||t(null,{code:"INVALID_PARAM",message:"fileList的元素必须是包含fileID和maxAge的对象"}),n.push({fileid:a.fileID,max_age:a.maxAge})):"string"==typeof a?n.push({fileid:a}):t(null,{code:"INVALID_PARAM",message:"fileList的元素必须是字符串"});const i={file_list:n};return Zn(this.config.env).send("storage.batchGetDownloadUrl",i).then((e=>{e.code?t(null,e):t(null,{fileList:e.data.download_list,requestId:e.requestId})})).catch((e=>{t(e)})),t.promise},ui=async function({fileID:e},t){const n=(await ci.call(this,{fileList:[{fileID:e,maxAge:600}]})).fileList[0];if("SUCCESS"!==n.code)return t?t(n):new Promise((e=>{e(n)}));const i=Zn(this.config.env);let a=n.download_url;if(a=encodeURI(a),!t)return i.download({url:a});t(await i.download({url:a}))},di=function({name:e,data:t,query:n,parse:i,search:a},s){const r=s||_n();let o;try{o=t?JSON.stringify(t):""}catch(c){return Promise.reject(c)}if(!e)return Promise.reject(new Qt({code:"PARAM_ERROR",message:"函数名不能为空"}));const l={inQuery:n,parse:i,search:a,function_name:e,request_data:o};return Zn(this.config.env).send("functions.invokeFunction",l).then((e=>{if(e.code)r(null,e);else{let n=e.data.response_data;if(i)r(null,{result:n,requestId:e.requestId});else try{n=JSON.parse(e.data.response_data),r(null,{result:n,requestId:e.requestId})}catch(t){r(new Qt({message:"response data must be json"}))}}return r.promise})).catch((e=>{r(e)})),r.promise},hi={timeout:15e3,persistence:"session"},pi={};class fi{constructor(e){this.config=e||this.config,this.authObj=void 0}init(e){switch(xn.adapter||(this.requestClient=new xn.adapter.reqClass({timeout:e.timeout||5e3,timeoutMsg:`请求在${(e.timeout||5e3)/1e3}s内未完成,已中断`})),this.config={...hi,...e},!0){case this.config.timeout>6e5:console.warn("timeout大于可配置上限[10分钟],已重置为上限数值"),this.config.timeout=6e5;break;case this.config.timeout<100:console.warn("timeout小于可配置下限[100ms],已重置为下限数值"),this.config.timeout=100}return new fi(this.config)}auth({persistence:e}={}){if(this.authObj)return this.authObj;const t=e||xn.adapter.primaryStorage||hi.persistence;var n;return t!==this.config.persistence&&(this.config.persistence=t),function(e){const{env:t}=e;Vn[t]=new Cn(e),In[t]=new Cn({...e,persistence:"local"})}(this.config),n=this.config,Gn[n.env]=new Yn(n),this.authObj=new si(this.config),this.authObj}on(e,t){return Rn.apply(this,[e,t])}off(e,t){return Ln.apply(this,[e,t])}callFunction(e,t){return di.apply(this,[e,t])}deleteFile(e,t){return li.apply(this,[e,t])}getTempFileURL(e,t){return ci.apply(this,[e,t])}downloadFile(e,t){return ui.apply(this,[e,t])}uploadFile(e,t){return ri.apply(this,[e,t])}getUploadMetadata(e,t){return oi.apply(this,[e,t])}registerExtension(e){pi[e.name]=e}async invokeExtension(e,t){const n=pi[e];if(!n)throw new Qt({message:`扩展${e} 必须先注册`});return await n.invoke(t,this)}useAdapters(e){const{adapter:t,runtime:n}=function(e){const t=(n=e,"[object Array]"===Object.prototype.toString.call(n)?e:[e]);var n;for(const i of t){const{isMatch:e,genAdapter:t,runtime:n}=i;if(e())return{adapter:t(),runtime:n}}}(e)||{};t&&(xn.adapter=t),n&&(xn.runtime=n)}}var mi=new fi;function gi(e,t,n){void 0===n&&(n={});var i=/\?/.test(t),a="";for(var s in n)""===a?!i&&(t+="?"):a+="&",a+=s+"="+encodeURIComponent(n[s]);return/^http(s)?:\/\//.test(t+=a)?t:""+e+t}class vi{post(e){const{url:t,data:n,headers:i}=e;return new Promise(((e,a)=>{Xt.request({url:gi("https:",t),data:n,method:"POST",header:i,success(t){e(t)},fail(e){a(e)}})}))}upload(e){return new Promise(((t,n)=>{const{url:i,file:a,data:s,headers:r,fileType:o}=e,l=Xt.uploadFile({url:gi("https:",i),name:"file",formData:Object.assign({},s),filePath:a,fileType:o,header:r,success(e){const n={statusCode:e.statusCode,data:e.data||{}};200===e.statusCode&&s.success_action_status&&(n.statusCode=parseInt(s.success_action_status,10)),t(n)},fail(e){n(new Error(e.errMsg||"uploadFile:fail"))}});"function"==typeof e.onUploadProgress&&l&&"function"==typeof l.onProgressUpdate&&l.onProgressUpdate((t=>{e.onUploadProgress({loaded:t.totalBytesSent,total:t.totalBytesExpectedToSend})}))}))}}const yi={setItem(e,t){Xt.setStorageSync(e,t)},getItem:e=>Xt.getStorageSync(e),removeItem(e){Xt.removeStorageSync(e)},clear(){Xt.clearStorageSync()}};var wi={genAdapter:function(){return{root:{},reqClass:vi,localStorage:yi,primaryStorage:"local"}},isMatch:function(){return!0},runtime:"uni_app"};mi.useAdapters(wi);const ki=mi,_i=ki.init;ki.init=function(e){e.env=e.spaceId;const t=_i.call(this,e);t.config.provider="tencent",t.config.spaceId=e.spaceId;const n=t.auth;return t.auth=function(e){const t=n.call(this,e);return["linkAndRetrieveDataWithTicket","signInAnonymously","signOut","getAccessToken","getLoginState","signInWithTicket","getUserInfo"].forEach((e=>{var n;t[e]=(n=t[e],function(e){e=e||{};const{success:t,fail:i,complete:a}=Zt(e);if(!(t||i||a))return n.call(this,e);n.call(this,e).then((e=>{t&&t(e),a&&a(e)}),(e=>{i&&i(e),a&&a(e)}))}).bind(t)})),t},t.customAuth=t.auth,t};var Si=ki,bi=class extends hn{getAccessToken(){return new Promise(((e,t)=>{const n="Anonymous_Access_token";this.setAccessToken(n),e(n)}))}setupRequest(e,t){const n=Object.assign({},e,{spaceId:this.config.spaceId,timestamp:Date.now()}),i={"Content-Type":"application/json"};"auth"!==t&&(n.token=this.accessToken,i["x-basement-token"]=this.accessToken),i["x-serverless-sign"]=cn(n,this.config.clientSecret);const a=ln();i["x-client-info"]=encodeURIComponent(JSON.stringify(a));const{token:s}=tn();return i["x-client-token"]=s,{url:this.config.requestUrl,method:"POST",data:n,dataType:"json",header:JSON.parse(JSON.stringify(i))}}uploadFileToOSS({url:e,formData:t,name:n,filePath:i,fileType:a,onUploadProgress:s}){return new Promise(((r,o)=>{const l=this.adapter.uploadFile({url:e,formData:t,name:n,filePath:i,fileType:a,success(e){e&&e.statusCode<400?r(e):o(new Qt({code:"UPLOAD_FAILED",message:"文件上传失败"}))},fail(e){o(new Qt({code:e.code||"UPLOAD_FAILED",message:e.message||e.errMsg||"文件上传失败"}))}});"function"==typeof s&&l&&"function"==typeof l.onProgressUpdate&&l.onProgressUpdate((e=>{s({loaded:e.totalBytesSent,total:e.totalBytesExpectedToSend})}))}))}uploadFile({filePath:e,cloudPath:t,fileType:n="image",onUploadProgress:i}){if(!t)throw new Qt({code:"CLOUDPATH_REQUIRED",message:"cloudPath不可为空"});let a;return this.getOSSUploadOptionsFromPath({cloudPath:t}).then((t=>{const{url:s,formData:r,name:o}=t.result;a=t.result.fileUrl;const l={url:s,formData:r,name:o,filePath:e,fileType:n};return this.uploadFileToOSS(Object.assign({},l,{onUploadProgress:i}))})).then((()=>this.reportOSSUpload({cloudPath:t}))).then((t=>new Promise(((n,i)=>{t.success?n({success:!0,filePath:e,fileID:a}):i(new Qt({code:"UPLOAD_FAILED",message:"文件上传失败"}))}))))}deleteFile({fileList:e}){const t={method:"serverless.file.resource.delete",params:JSON.stringify({fileList:e})};return this.request(this.setupRequest(t)).then((e=>{if(e.success)return e.result;throw new Qt({code:"DELETE_FILE_FAILED",message:"删除文件失败"})}))}getTempFileURL({fileList:e,maxAge:t}={}){if(!Array.isArray(e)||0===e.length)throw new Qt({code:"INVALID_PARAM",message:"fileList的元素必须是非空的字符串"});const n={method:"serverless.file.resource.getTempFileURL",params:JSON.stringify({fileList:e,maxAge:t})};return this.request(this.setupRequest(n)).then((e=>{if(e.success)return{fileList:e.result.fileList.map((e=>({fileID:e.fileID,tempFileURL:e.tempFileURL})))};throw new Qt({code:"GET_TEMP_FILE_URL_FAILED",message:"获取临时文件链接失败"})}))}},Ei={init(e){const t=new bi(e),n={signInAnonymously:function(){return t.authorize()},getLoginState:function(){return Promise.resolve(!1)}};return t.auth=function(){return n},t.customAuth=t.auth,t}},xi=lt((function(e,t){e.exports=ut.enc.Hex}));function Di(e="",t={}){const{data:n,functionName:i,method:a,headers:s,signHeaderKeys:r=[],config:o}=t,l=Date.now(),c="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)})),u=Object.assign({},s,{"x-from-app-id":o.spaceAppId,"x-from-env-id":o.spaceId,"x-to-env-id":o.spaceId,"x-from-instance-id":l,"x-from-function-name":i,"x-client-timestamp":l,"x-alipay-source":"client","x-request-id":c,"x-alipay-callid":c,"x-trace-id":c}),d=["x-from-app-id","x-from-env-id","x-to-env-id","x-from-instance-id","x-from-function-name","x-client-timestamp"].concat(r),[h="",p=""]=e.split("?")||[],f=function(e){const t=e.signedHeaders.join(";"),n=e.signedHeaders.map((t=>`${t.toLowerCase()}:${e.headers[t]}\n`)).join(""),i=wn(e.body).toString(xi),a=`${e.method.toUpperCase()}\n${e.path}\n${e.query}\n${n}\n${t}\n${i}\n`,s=wn(a).toString(xi),r=`HMAC-SHA256\n${e.timestamp}\n${s}\n`,o=kn(r,e.secretKey).toString(xi);return`HMAC-SHA256 Credential=${e.secretId}, SignedHeaders=${t}, Signature=${o}`}({path:h,query:p,method:a,headers:u,timestamp:l,body:JSON.stringify(n),secretId:o.accessKey,secretKey:o.secretKey,signedHeaders:d.sort()});return{url:`${o.endpoint}${e}`,headers:Object.assign({},u,{Authorization:f})}}function Ti({url:e,data:t,method:n="POST",headers:i={}}){return new Promise(((a,s)=>{Xt.request({url:e,method:n,data:t,header:i,dataType:"json",complete:(e={})=>{const t=i["x-trace-id"]||"";if(!e.statusCode||e.statusCode>=400){const{message:n,errMsg:i,trace_id:a}=e.data||{};return s(new Qt({code:"SYS_ERR",message:n||i||"request:fail",requestId:a||t}))}a({status:e.statusCode,data:e.data,headers:e.header,requestId:t})}})}))}function Ni(e,t){const{path:n,data:i,method:a="GET"}=e,{url:s,headers:r}=Di(n,{functionName:"",data:i,method:a,headers:{"x-alipay-cloud-mode":"oss","x-data-api-type":"oss","x-expire-timestamp":Date.now()+6e4},signHeaderKeys:["x-data-api-type","x-expire-timestamp"],config:t});return Ti({url:s,data:i,method:a,headers:r}).then((e=>{const t=e.data||{};if(!t.success)throw new Qt({code:e.errCode,message:e.errMsg,requestId:e.requestId});return t.data||{}})).catch((e=>{throw new Qt({code:e.errCode,message:e.errMsg,requestId:e.requestId})}))}function Ci(e=""){const t=e.trim().replace(/^cloud:\/\//,""),n=t.indexOf("/");if(n<=0)throw new Qt({code:"INVALID_PARAM",message:"fileID不合法"});const i=t.substring(0,n),a=t.substring(n+1);return i!==this.config.spaceId&&console.warn("file ".concat(e," does not belong to env ").concat(this.config.spaceId)),a}function Vi(e=""){return"cloud://".concat(this.config.spaceId,"/").concat(e.replace(/^\/+/,""))}var Ii={init:e=>{e.provider="alipay";const t=new class{constructor(e){if(["spaceId","spaceAppId","accessKey","secretKey"].forEach((t=>{if(!Object.prototype.hasOwnProperty.call(e,t))throw new Error(`${t} required`)})),e.endpoint){if("string"!=typeof e.endpoint)throw new Error("endpoint must be string");if(!/^https:\/\//.test(e.endpoint))throw new Error("endpoint must start with https://");e.endpoint=e.endpoint.replace(/\/$/,"")}this.config=Object.assign({},e,{endpoint:e.endpoint||`https://${e.spaceId}.api-hz.cloudbasefunction.cn`})}callFunction(e){return function(e,t){const{name:n,data:i}=e,a="POST",{url:s,headers:r}=Di("/functions/invokeFunction",{functionName:n,data:i,method:a,headers:{"x-to-function-name":n},signHeaderKeys:["x-to-function-name"],config:t});return Ti({url:s,data:i,method:a,headers:r}).then((e=>({errCode:0,success:!0,requestId:e.requestId,result:e.data}))).catch((e=>{throw new Qt({code:e.errCode,message:e.errMsg,requestId:e.requestId})}))}(e,this.config)}uploadFileToOSS({url:e,filePath:t,fileType:n,formData:i,onUploadProgress:a}){return new Promise(((s,r)=>{const o=Xt.uploadFile({url:e,filePath:t,fileType:n,formData:i,name:"file",success(e){e&&e.statusCode<400?s(e):r(new Qt({code:"UPLOAD_FAILED",message:"文件上传失败"}))},fail(e){r(new Qt({code:e.code||"UPLOAD_FAILED",message:e.message||e.errMsg||"文件上传失败"}))}});"function"==typeof a&&o&&"function"==typeof o.onProgressUpdate&&o.onProgressUpdate((e=>{a({loaded:e.totalBytesSent,total:e.totalBytesExpectedToSend})}))}))}async uploadFile({filePath:e,cloudPath:t="",fileType:n="image",onUploadProgress:i}){if("string"!==vt(t))throw new Qt({code:"INVALID_PARAM",message:"cloudPath必须为字符串类型"});if(!(t=t.trim()))throw new Qt({code:"INVALID_PARAM",message:"cloudPath不可为空"});if(/:\/\//.test(t))throw new Qt({code:"INVALID_PARAM",message:"cloudPath不合法"});const a=await Ni({path:"/".concat(t.replace(/^\//,""),"?post_url")},this.config),{file_id:s,upload_url:r,form_data:o}=a,l=o&&o.reduce(((e,t)=>(e[t.key]=t.value,e)),{});return this.uploadFileToOSS({url:r,filePath:e,fileType:n,formData:l,onUploadProgress:i}).then((()=>({fileID:s})))}async getTempFileURL({fileList:e}){return new Promise(((t,n)=>{(!e||e.length<0)&&n(new Qt({errCode:"INVALID_PARAM",errMsg:"fileList不能为空数组"})),e.length>50&&n(new Qt({errCode:"INVALID_PARAM",errMsg:"fileList数组长度不能超过50"}));const i=[];for(const a of e){"string"!==vt(a)&&n(new Qt({errCode:"INVALID_PARAM",errMsg:"fileList的元素必须是非空的字符串"}));const e=Ci.call(this,a);i.push({file_id:e,expire:600})}Ni({path:"/?download_url",data:{file_list:i},method:"POST"},this.config).then((e=>{const{file_list:n=[]}=e;t({fileList:n.map((e=>({fileID:Vi.call(this,e.file_id),tempFileURL:e.download_url})))})})).catch((e=>n(e)))}))}}(e);return t.auth=function(){return{signInAnonymously:function(){return Promise.resolve()},getLoginState:function(){return Promise.resolve(!0)}}},t}};function Bi({data:e}){let t;t=ln();const n=JSON.parse(JSON.stringify(e||{}));if(Object.assign(n,{clientInfo:t}),!n.uniIdToken){const{token:e}=tn();e&&(n.uniIdToken=e)}return n}const Ai=[{rule:/fc_function_not_found|FUNCTION_NOT_FOUND/,content:",云函数[{functionName}]在云端不存在,请检查此云函数名称是否正确以及该云函数是否已上传到服务空间",mode:"append"}];var Mi=/[\\^$.*+?()[\]{}|]/g,Pi=RegExp(Mi.source);function Ri(e,t,n){return e.replace(new RegExp((i=t)&&Pi.test(i)?i.replace(Mi,"\\$&"):i,"g"),n);var i}const Oi=2e4,Li={code:20101,message:"Invalid client"};function Fi(e){const{errSubject:t,subject:n,errCode:i,errMsg:a,code:s,message:r,cause:o}=e||{};return new Qt({subject:t||n||"uni-secure-network",code:i||s||Oi,message:a||r,cause:o})}let ji;function Ui({secretType:e}={}){return"request"===e||"response"===e||"both"===e}function $i({name:e,data:t={}}={}){return"DCloud-clientDB"===e&&"encryption"===t.redirectTo&&"getAppClientKey"===t.action}function zi({functionName:e,result:t,logPvd:n}){}function Hi(e){const t=e.callFunction,n=function(n){const i=n.name;n.data=Bi.call(e,{data:n.data});const a={aliyun:"aliyun",tencent:"tcb",tcb:"tcb",alipay:"alipay"}[this.config.provider],s=Ui(n),r=$i(n),o=s||r;return t.call(this,n).then((e=>(e.errCode=0,!o&&zi.call(this,{functionName:i,result:e,logPvd:a}),Promise.resolve(e))),(e=>(!o&&zi.call(this,{functionName:i,result:e,logPvd:a}),e&&e.message&&(e.message=function({message:e="",extraInfo:t={},formatter:n=[]}={}){for(let i=0;in.provider===e&&n.spaceId===t));return i&&i.config}({provider:e,spaceId:t});if(!o||!o.accessControl||!o.accessControl.enable)return!1;const l=o.accessControl.function||{},c=Object.keys(l);if(0===c.length)return!0;const u=function(e,t){let n,i,a;for(let s=0;se.trim())).indexOf(t)>-1&&(i=r):a=r:n=r}return n||i||a}(c,n);if(!u)return!1;if((l[u]||[]).find(((e={})=>e.appId===i&&(e.platform||"").toLowerCase()===r.toLowerCase())))return!0;throw console.error(`此应用[appId: ${i}, platform: ${r}]不在云端配置的允许访问的应用列表内,参考:https://uniapp.dcloud.net.cn/uniCloud/secure-network.html#verify-client`),Fi(Li)}({provider:i,spaceId:a,functionName:s})?new ji({secretType:t.secretType,uniCloudIns:e}).wrapVerifyClientCallFunction(n.bind(e))(t):r(t),Object.defineProperty(o,"result",{get:()=>(console.warn("当前返回结果为Promise类型,不可直接访问其result属性,详情请参考:https://uniapp.dcloud.net.cn/uniCloud/faq?id=promise"),{})}),o.then((e=>("undefined"!=typeof UTSJSONObject&&(e.result=new UTSJSONObject(e.result)),e)))}}ji=class{constructor(){throw Fi({message:"Platform app is not enabled, please check whether secure network module is enabled in your manifest.json"})}};const qi=Symbol("CLIENT_DB_INTERNAL");function Ki(e,t){return e.then="DoNotReturnProxyWithAFunctionNamedThen",e._internalType=qi,e.inspect=null,e.__v_raw=void 0,new Proxy(e,{get(e,n,i){if("_uniClient"===n)return null;if("symbol"==typeof n)return e[n];if(n in e||"string"!=typeof n){const t=e[n];return"function"==typeof t?t.bind(e):t}return t.get(e,n,i)}})}function Ji(e){return{on:(t,n)=>{e[t]=e[t]||[],e[t].indexOf(n)>-1||e[t].push(n)},off:(t,n)=>{e[t]=e[t]||[];const i=e[t].indexOf(n);-1!==i&&e[t].splice(i,1)}}}const Wi=["db.Geo","db.command","command.aggregate"];function Yi(e,t){return Wi.indexOf(`${e}.${t}`)>-1}function Gi(e){switch(vt(e=en(e))){case"array":return e.map((e=>Gi(e)));case"object":return e._internalType===qi||Object.keys(e).forEach((t=>{e[t]=Gi(e[t])})),e;case"regexp":return{$regexp:{source:e.source,flags:e.flags}};case"date":return{$date:e.toISOString()};default:return e}}function Zi(e){return e&&e.content&&e.content.$method}class Qi{constructor(e,t,n){this.content=e,this.prevStage=t||null,this.udb=null,this._database=n}toJSON(){let e=this;const t=[e.content];for(;e.prevStage;)e=e.prevStage,t.push(e.content);return{$db:t.reverse().map((e=>({$method:e.$method,$param:Gi(e.$param)})))}}toString(){return JSON.stringify(this.toJSON())}getAction(){const e=this.toJSON().$db.find((e=>"action"===e.$method));return e&&e.$param&&e.$param[0]}getCommand(){return{$db:this.toJSON().$db.filter((e=>"action"!==e.$method))}}get isAggregate(){let e=this;for(;e;){const t=Zi(e),n=Zi(e.prevStage);if("aggregate"===t&&"collection"===n||"pipeline"===t)return!0;e=e.prevStage}return!1}get isCommand(){let e=this;for(;e;){if("command"===Zi(e))return!0;e=e.prevStage}return!1}get isAggregateCommand(){let e=this;for(;e;){const t=Zi(e),n=Zi(e.prevStage);if("aggregate"===t&&"command"===n)return!0;e=e.prevStage}return!1}getNextStageFn(e){const t=this;return function(){return Xi({$method:e,$param:Gi(Array.from(arguments))},t,t._database)}}get count(){return this.isAggregate?this.getNextStageFn("count"):function(){return this._send("count",Array.from(arguments))}}get remove(){return this.isCommand?this.getNextStageFn("remove"):function(){return this._send("remove",Array.from(arguments))}}get(){return this._send("get",Array.from(arguments))}get add(){return this.isCommand?this.getNextStageFn("add"):function(){return this._send("add",Array.from(arguments))}}update(){return this._send("update",Array.from(arguments))}end(){return this._send("end",Array.from(arguments))}get set(){return this.isCommand?this.getNextStageFn("set"):function(){throw new Error("JQL禁止使用set方法")}}_send(e,t){const n=this.getAction(),i=this.getCommand();return i.$db.push({$method:e,$param:Gi(t)}),this._database._callCloudFunction({action:n,command:i})}}function Xi(e,t,n){return Ki(new Qi(e,t,n),{get(e,t){let i="db";return e&&e.content&&(i=e.content.$method),Yi(i,t)?Xi({$method:t},e,n):function(){return Xi({$method:t,$param:Gi(Array.from(arguments))},e,n)}}})}function ea({path:e,method:t}){return class{constructor(){this.param=Array.from(arguments)}toJSON(){return{$newDb:[...e.map((e=>({$method:e}))),{$method:t,$param:this.param}]}}toString(){return JSON.stringify(this.toJSON())}}}function ta(e,t={}){return Ki(new e(t),{get:(e,t)=>Yi("db",t)?Xi({$method:t},null,e):function(){return Xi({$method:t,$param:Gi(Array.from(arguments))},null,e)}})}class na extends class{constructor({uniClient:e={},isJQL:t=!1}={}){this._uniClient=e,this._authCallBacks={},this._dbCallBacks={},e._isDefault&&(this._dbCallBacks=Ct("_globalUniCloudDatabaseCallback")),t||(this.auth=Ji(this._authCallBacks)),this._isJQL=t,Object.assign(this,Ji(this._dbCallBacks)),this.env=Ki({},{get:(e,t)=>({$env:t})}),this.Geo=Ki({},{get:(e,t)=>ea({path:["Geo"],method:t})}),this.serverDate=ea({path:[],method:"serverDate"}),this.RegExp=ea({path:[],method:"RegExp"})}getCloudEnv(e){if("string"!=typeof e||!e.trim())throw new Error("getCloudEnv参数错误");return{$env:e.replace("$cloudEnv_","")}}_callback(e,t){const n=this._dbCallBacks;n[e]&&n[e].forEach((e=>{e(...t)}))}_callbackAuth(e,t){const n=this._authCallBacks;n[e]&&n[e].forEach((e=>{e(...t)}))}multiSend(){const e=Array.from(arguments),t=e.map((e=>{const t=e.getAction(),n=e.getCommand();if("getTemp"!==n.$db[n.$db.length-1].$method)throw new Error("multiSend只支持子命令内使用getTemp");return{action:t,command:n}}));return this._callCloudFunction({multiCommand:t,queryList:e})}}{_parseResult(e){return this._isJQL?e.result:e}_callCloudFunction({action:e,command:t,multiCommand:n,queryList:i}){function a(e,t){if(n&&i)for(let n=0;nMt(Pt(r,"complete"),e))).then((()=>(a(null,e),Jt(Lt,{type:Ut,content:e}),Promise.reject(e))))}const l=Mt(Pt(r,"invoke")),c=this._uniClient;return l.then((()=>c.callFunction({name:"DCloud-clientDB",type:"CLIENT_DB",data:{action:e,command:t,multiCommand:n}}))).then((e=>{const{code:t,message:n,token:i,tokenExpired:l,systemInfo:c=[]}=e.result;if(c)for(let a=0;a(console.warn(n),i)})}}return d=e,Mt(Pt(r,"success"),d).then((()=>Mt(Pt(r,"complete"),d))).then((()=>{a(d,null);const e=s._parseResult(d);return Jt(Lt,{type:Ut,content:e}),Promise.resolve(e)}));var d}),(e=>(/fc_function_not_found|FUNCTION_NOT_FOUND/g.test(e.message)&&console.warn("clientDB未初始化,请在web控制台保存一次schema以开启clientDB"),o(new Qt({code:e.code||"SYSTEM_ERROR",message:e.message,requestId:e.requestId})))))}}const ia="token无效,跳转登录页面",aa="token过期,跳转登录页面",sa={TOKEN_INVALID_TOKEN_EXPIRED:aa,TOKEN_INVALID_INVALID_CLIENTID:ia,TOKEN_INVALID:ia,TOKEN_INVALID_WRONG_TOKEN:ia,TOKEN_INVALID_ANONYMOUS_USER:ia},ra={"uni-id-token-expired":aa,"uni-id-check-token-failed":ia,"uni-id-token-not-exist":ia,"uni-id-check-device-feature-failed":ia};function oa(e,t){let n="";return n=e?`${e}/${t}`:t,n.replace(/^\//,"")}function la(e=[],t=""){const n=[],i=[];return e.forEach((e=>{!0===e.needLogin?n.push(oa(t,e.path)):!1===e.needLogin&&i.push(oa(t,e.path))})),{needLoginPage:n,notNeedLoginPage:i}}function ca(e){return e.split("?")[0].replace(/^\//,"")}function ua(){return function(e){let t=e&&e.$page&&e.$page.fullPath||"";return t?("/"!==t.charAt(0)&&(t="/"+t),t):t}(function(){const e=getCurrentPages();return e[e.length-1]}())}function da(){return ca(ua())}function ha(e="",t={}){if(!e)return!1;if(!(t&&t.list&&t.list.length))return!1;const n=t.list,i=ca(e);return n.some((e=>e.pagePath===i))}const pa=!!ot.uniIdRouter,{loginPage:fa,routerNeedLogin:ma,resToLogin:ga,needLoginPage:va,notNeedLoginPage:ya,loginPageInTabBar:wa}=function({pages:e=[],subPackages:t=[],uniIdRouter:n={},tabBar:i={}}=ot){const{loginPage:a,needLogin:s=[],resToLogin:r=!0}=n,{needLoginPage:o,notNeedLoginPage:l}=la(e),{needLoginPage:c,notNeedLoginPage:u}=function(e=[]){const t=[],n=[];return e.forEach((e=>{const{root:i,pages:a=[]}=e,{needLoginPage:s,notNeedLoginPage:r}=la(a,i);t.push(...s),n.push(...r)})),{needLoginPage:t,notNeedLoginPage:n}}(t);return{loginPage:a,routerNeedLogin:s,resToLogin:r,needLoginPage:[...o,...c],notNeedLoginPage:[...l,...u],loginPageInTabBar:ha(a,i)}}();if(va.indexOf(fa)>-1)throw new Error(`Login page [${fa}] should not be "needLogin", please check your pages.json`);function ka(e){const t=da();if("/"===e.charAt(0))return e;const[n,i]=e.split("?"),a=n.replace(/^\//,"").split("/"),s=t.split("/");s.pop();for(let r=0;r-1?i+`&uniIdRedirectUrl=${encodeURIComponent(a)}`:i+`?uniIdRedirectUrl=${encodeURIComponent(a)}`:i);var i,a;wa?"navigateTo"!==e&&"redirectTo"!==e||(e="switchTab"):"switchTab"===e&&(e="navigateTo");const s={navigateTo:uni.navigateTo,redirectTo:uni.redirectTo,switchTab:uni.switchTab,reLaunch:uni.reLaunch};setTimeout((()=>{s[e]({url:n})}),0)}function ba({url:e}={}){const t={abortLoginPageJump:!1,autoToLoginPage:!1},n=function(){const{token:e,tokenExpired:t}=tn();let n;if(e){if(t-1)&&(va.indexOf(t)>-1||ma.some((t=>{return n=e,new RegExp(t).test(n);var n})))}(e)&&n){if(n.uniIdRedirectUrl=e,Ht(Ft).length>0)return setTimeout((()=>{Jt(Ft,n)}),0),t.abortLoginPageJump=!0,t;t.autoToLoginPage=!0}return t}function Ea(){!function(){const e=ua(),{abortLoginPageJump:t,autoToLoginPage:n}=ba({url:e});t||n&&Sa({api:"redirectTo",redirect:e})}();const e=["navigateTo","redirectTo","reLaunch","switchTab"];for(let t=0;t{const{type:t,content:n}=e;let i=!1;switch(t){case"cloudobject":i=function(e){if("object"!=typeof e)return!1;const{errCode:t}=e||{};return t in ra}(n);break;case"clientdb":i=function(e){if("object"!=typeof e)return!1;const{errCode:t}=e||{};return t in sa}(n)}i&&function(e={}){const t=Ht(Ft);Gt().then((()=>{const n=ua();if(n&&_a({redirect:n}))return t.length>0?Jt(Ft,Object.assign({uniIdRedirectUrl:n},e)):void(fa&&Sa({api:"navigateTo",redirect:n}))}))}(n)}))}function Da(e){var t;(t=e).onResponse=function(e){qt(Lt,e)},t.offResponse=function(e){Kt(Lt,e)},function(e){e.onNeedLogin=function(e){qt(Ft,e)},e.offNeedLogin=function(e){Kt(Ft,e)},pa&&(Ct("_globalUniCloudStatus").needLoginInit||(Ct("_globalUniCloudStatus").needLoginInit=!0,Gt().then((()=>{Ea.call(e)})),ga&&xa.call(e)))}(e),function(e){e.onRefreshToken=function(e){qt(jt,e)},e.offRefreshToken=function(e){Kt(jt,e)}}(e)}let Ta;const Na="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",Ca=/^(?:[A-Za-z\d+/]{4})*?(?:[A-Za-z\d+/]{2}(?:==)?|[A-Za-z\d+/]{3}=?)?$/;function Va(){const e=tn().token||"",t=e.split(".");if(!e||3!==t.length)return{uid:null,role:[],permission:[],tokenExpired:0};let n;try{n=JSON.parse((i=t[1],decodeURIComponent(Ta(i).split("").map((function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)})).join(""))))}catch(a){throw new Error("获取当前用户信息出错,详细错误信息为:"+a.message)}var i;return n.tokenExpired=1e3*n.exp,delete n.exp,delete n.iat,n}Ta="function"!=typeof atob?function(e){if(e=String(e).replace(/[\t\n\f\r ]+/g,""),!Ca.test(e))throw new Error("Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded.");var t;e+="==".slice(2-(3&e.length));for(var n,i,a="",s=0;s>16&255):64===i?String.fromCharCode(t>>16&255,t>>8&255):String.fromCharCode(t>>16&255,t>>8&255,255&t);return a}:atob;var Ia=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}(lt((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});const n="chooseAndUploadFile:ok",i="chooseAndUploadFile:fail";function a(e,t){return e.tempFiles.forEach(((e,n)=>{e.name||(e.name=e.path.substring(e.path.lastIndexOf("/")+1)),t&&(e.fileType=t),e.cloudPath=Date.now()+"_"+n+e.name.substring(e.name.lastIndexOf("."))})),e.tempFilePaths||(e.tempFilePaths=e.tempFiles.map((e=>e.path))),e}function s(e,t,{onChooseFile:i,onUploadProgress:a}){return t.then((e=>{if(i){const t=i(e);if(void 0!==t)return Promise.resolve(t).then((t=>void 0===t?e:t))}return e})).then((t=>!1===t?{errMsg:n,tempFilePaths:[],tempFiles:[]}:function(e,t,i=5,a){(t=Object.assign({},t)).errMsg=n;const s=t.tempFiles,r=s.length;let o=0;return new Promise((n=>{for(;o=r)return void(!s.find((e=>!e.url&&!e.errMsg))&&n(t));const c=s[i];e.uploadFile({provider:c.provider,filePath:c.path,cloudPath:c.cloudPath,fileType:c.fileType,cloudPathAsRealPath:c.cloudPathAsRealPath,onUploadProgress(e){e.index=i,e.tempFile=c,e.tempFilePath=c.path,a&&a(e)}}).then((e=>{c.url=e.fileID,i{c.errMsg=e.errMsg||e.message,i{uni.chooseImage({count:t,sizeType:n,sourceType:s,extension:r,success(t){e(a(t,"image"))},fail(e){o({errMsg:e.errMsg.replace("chooseImage:fail",i)})}})}))}(t),t):"video"===t.type?s(e,function(e){const{camera:t,compressed:n,maxDuration:s,sourceType:r=["album","camera"],extension:o}=e;return new Promise(((e,l)=>{uni.chooseVideo({camera:t,compressed:n,maxDuration:s,sourceType:r,extension:o,success(t){const{tempFilePath:n,duration:i,size:s,height:r,width:o}=t;e(a({errMsg:"chooseVideo:ok",tempFilePaths:[n],tempFiles:[{name:t.tempFile&&t.tempFile.name||"",path:n,size:s,type:t.tempFile&&t.tempFile.type||"",width:o,height:r,duration:i,fileType:"video",cloudPath:""}]},"video"))},fail(e){l({errMsg:e.errMsg.replace("chooseVideo:fail",i)})}})}))}(t),t):s(e,function(e){const{count:t,extension:n}=e;return new Promise(((e,s)=>{let r=uni.chooseFile;if("undefined"!=typeof wx&&"function"==typeof wx.chooseMessageFile&&(r=wx.chooseMessageFile),"function"!=typeof r)return s({errMsg:i+" 请指定 type 类型,该平台仅支持选择 image 或 video。"});r({type:"all",count:t,extension:n,success(t){e(a(t))},fail(e){s({errMsg:e.errMsg.replace("chooseFile:fail",i)})}})}))}(t),t)}}})));function Ba(e){return{props:{localdata:{type:Array,default:()=>[]},options:{type:[Object,Array],default:()=>({})},spaceInfo:{type:Object,default:()=>({})},collection:{type:[String,Array],default:""},action:{type:String,default:""},field:{type:String,default:""},orderby:{type:String,default:""},where:{type:[String,Object],default:""},pageData:{type:String,default:"add"},pageCurrent:{type:Number,default:1},pageSize:{type:Number,default:20},getcount:{type:[Boolean,String],default:!1},gettree:{type:[Boolean,String],default:!1},gettreepath:{type:[Boolean,String],default:!1},startwith:{type:String,default:""},limitlevel:{type:Number,default:10},groupby:{type:String,default:""},groupField:{type:String,default:""},distinct:{type:[Boolean,String],default:!1},foreignKey:{type:String,default:""},loadtime:{type:String,default:"auto"},manual:{type:Boolean,default:!1}},data:()=>({mixinDatacomLoading:!1,mixinDatacomHasMore:!1,mixinDatacomResData:[],mixinDatacomErrorMessage:"",mixinDatacomPage:{},mixinDatacomError:null}),created(){this.mixinDatacomPage={current:this.pageCurrent,size:this.pageSize,count:0},this.$watch((()=>{var e=[];return["pageCurrent","pageSize","localdata","collection","action","field","orderby","where","getont","getcount","gettree","groupby","groupField","distinct"].forEach((t=>{e.push(this[t])})),e}),((e,t)=>{if("manual"===this.loadtime)return;let n=!1;const i=[];for(let a=2;a{this.mixinDatacomLoading=!1;const{data:i,count:a}=n.result;this.getcount&&(this.mixinDatacomPage.count=a),this.mixinDatacomHasMore=i.length{this.mixinDatacomLoading=!1,this.mixinDatacomErrorMessage=e,this.mixinDatacomError=e,n&&n(e)})))},mixinDatacomGet(t={}){let n;t=t||{},n="undefined"!=typeof __uniX&&__uniX?e.databaseForJQL(this.spaceInfo):e.database(this.spaceInfo);const i=t.action||this.action;i&&(n=n.action(i));const a=t.collection||this.collection;n=Array.isArray(a)?n.collection(...a):n.collection(a);const s=t.where||this.where;s&&Object.keys(s).length&&(n=n.where(s));const r=t.field||this.field;r&&(n=n.field(r));const o=t.foreignKey||this.foreignKey;o&&(n=n.foreignKey(o));const l=t.groupby||this.groupby;l&&(n=n.groupBy(l));const c=t.groupField||this.groupField;c&&(n=n.groupField(c)),!0===(void 0!==t.distinct?t.distinct:this.distinct)&&(n=n.distinct());const u=t.orderby||this.orderby;u&&(n=n.orderBy(u));const d=void 0!==t.pageCurrent?t.pageCurrent:this.mixinDatacomPage.current,h=void 0!==t.pageSize?t.pageSize:this.mixinDatacomPage.size,p=void 0!==t.getcount?t.getcount:this.getcount,f=void 0!==t.gettree?t.gettree:this.gettree,m=void 0!==t.gettreepath?t.gettreepath:this.gettreepath,g={getCount:p},v={limitLevel:void 0!==t.limitlevel?t.limitlevel:this.limitlevel,startWith:void 0!==t.startwith?t.startwith:this.startwith};return f&&(g.getTree=v),m&&(g.getTreePath=v),n=n.skip(h*(d-1)).limit(h).get(g),n}}}}function Aa(e){return Ct("_globalUniCloudSecureNetworkCache__{spaceId}".replace("{spaceId}",e.config.spaceId))}async function Ma({openid:e,callLoginByWeixin:t=!1}={}){throw Aa(this),new Error("[SecureNetwork] API `initSecureNetworkByWeixin` is not supported on platform `app`")}async function Pa(e){const t=Aa(this);return t.initPromise||(t.initPromise=Ma.call(this,e).then((e=>e)).catch((e=>{throw delete t.initPromise,e}))),t.initPromise}function Ra(e){const t={getSystemInfo:uni.getSystemInfo,getPushClientId:uni.getPushClientId};return function(n){return new Promise(((i,a)=>{t[e]({...n,success(e){i(e)},fail(e){a(e)}})}))}}class Oa extends class{constructor(){this._callback={}}addListener(e,t){this._callback[e]||(this._callback[e]=[]),this._callback[e].push(t)}on(e,t){return this.addListener(e,t)}removeListener(e,t){if(!t)throw new Error('The "listener" argument must be of type function. Received undefined');const n=this._callback[e];if(!n)return;const i=function(e,t){for(let n=e.length-1;n>=0;n--)if(e[n]===t)return n;return-1}(n,t);n.splice(i,1)}off(e,t){return this.removeListener(e,t)}removeAllListener(e){delete this._callback[e]}emit(e,...t){const n=this._callback[e];if(n)for(let i=0;i{if(!e)throw new Error("Invalid appId, please check the manifest.json file");if(!t)throw new Error("Invalid push client id");this._appId=e,this._pushClientId=t,this._seqId=Date.now()+"-"+Math.floor(9e5*Math.random()+1e5),this.emit("open"),this._initMessageListener()}),(e=>{throw this.emit("error",e),this.close(),e}))}async open(){return this.init()}_isUniCloudSSE(e){if("receive"!==e.type)return!1;const t=e&&e.data&&e.data.payload;return!(!t||"UNI_CLOUD_SSE"!==t.channel||t.seqId!==this._seqId)}_receivePushMessage(e){if(!this._isUniCloudSSE(e))return;const t=e&&e.data&&e.data.payload,{action:n,messageId:i,message:a}=t;this._payloadQueue.push({action:n,messageId:i,message:a}),this._consumMessage()}_consumMessage(){for(;;){const e=this._payloadQueue.find((e=>e.messageId===this._currentMessageId+1));if(!e)break;this._currentMessageId++,this._parseMessagePayload(e)}}_parseMessagePayload(e){const{action:t,messageId:n,message:i}=e;"end"===t?this._end({messageId:n,message:i}):"message"===t&&this._appendMessage({messageId:n,message:i})}_appendMessage({messageId:e,message:t}={}){this.emit("message",t)}_end({messageId:e,message:t}={}){this.emit("end",t),this.close()}_initMessageListener(){uni.onPushMessage(this._uniPushMessageCallback)}_destroy(){uni.offPushMessage(this._uniPushMessageCallback)}toJSON(){return{appId:this._appId,pushClientId:this._pushClientId,seqId:this._seqId}}close(){this._destroy(),this.emit("close")}}const La={tcb:Si,tencent:Si,aliyun:pn,private:Ei,alipay:Ii};let Fa=new class{init(e){let t={};const n=La[e.provider];if(!n)throw new Error("未提供正确的provider参数");var i;return t=n.init(e),function(e){e._initPromiseHub||(e._initPromiseHub=new bt({createPromise:function(){let t=Promise.resolve();t=new Promise((e=>{setTimeout((()=>{e()}),1)}));const n=e.auth();return t.then((()=>n.getLoginState())).then((e=>e?Promise.resolve():n.signInAnonymously()))}}))}(t),Hi(t),function(e){const t=e.uploadFile;e.uploadFile=function(e){return t.call(this,e)}}(t),(i=t).database=function(e){if(e&&Object.keys(e).length>0)return i.init(e).database();if(this._database)return this._database;const t=ta(na,{uniClient:i});return this._database=t,t},i.databaseForJQL=function(e){if(e&&Object.keys(e).length>0)return i.init(e).databaseForJQL();if(this._databaseForJQL)return this._databaseForJQL;const t=ta(na,{uniClient:i,isJQL:!0});return this._databaseForJQL=t,t},function(e){e.getCurrentUserInfo=Va,e.chooseAndUploadFile=Ia.initChooseAndUploadFile(e),Object.assign(e,{get mixinDatacom(){return Ba(e)}}),e.SSEChannel=Oa,e.initSecureNetworkByWeixin=function(e){return function({openid:t,callLoginByWeixin:n=!1}={}){return Pa.call(e,{openid:t,callLoginByWeixin:n})}}(e),e.importObject=function(t){return function(n,i={}){i=function(e,t={}){return e.customUI=t.customUI||e.customUI,e.parseSystemError=t.parseSystemError||e.parseSystemError,Object.assign(e.loadingOptions,t.loadingOptions),Object.assign(e.errorOptions,t.errorOptions),"object"==typeof t.secretMethods&&(e.secretMethods=t.secretMethods),e}({customUI:!1,loadingOptions:{title:"加载中...",mask:!0},errorOptions:{type:"modal",retry:!1}},i);const{customUI:a,loadingOptions:s,errorOptions:r,parseSystemError:o}=i,l=!a;return new Proxy({},{get(a,c){switch(c){case"toString":return"[object UniCloudObject]";case"toJSON":return{}}return function({fn:e,interceptorName:t,getCallbackArgs:n}={}){return async function(...i){const a=n?n({params:i}):{};let s,r;try{return await Mt(Pt(t,"invoke"),{...a}),s=await e(...i),await Mt(Pt(t,"success"),{...a,result:s}),s}catch(o){throw r=o,await Mt(Pt(t,"fail"),{...a,error:r}),r}finally{await Mt(Pt(t,"complete"),r?{...a,error:r}:{...a,result:s})}}}({fn:async function a(...u){let d;l&&uni.showLoading({title:s.title,mask:s.mask});const h={name:n,type:"OBJECT",data:{method:c,params:u}};"object"==typeof i.secretMethods&&function(e,t){const n=t.data.method,i=e.secretMethods||{},a=i[n]||i["*"];a&&(t.secretType=a)}(i,h);let p=!1;try{d=await t.callFunction(h)}catch(e){p=!0,d={result:new Qt(e)}}const{errSubject:f,errCode:m,errMsg:g,newToken:v}=d.result||{};if(l&&uni.hideLoading(),v&&v.token&&v.tokenExpired&&(nn(v),Jt(jt,{...v})),m){let e=g;if(p&&o&&(e=(await o({objectName:n,methodName:c,params:u,errSubject:f,errCode:m,errMsg:g})).errMsg||g),l)if("toast"===r.type)uni.showToast({title:e,icon:"none"});else{if("modal"!==r.type)throw new Error(`Invalid errorOptions.type: ${r.type}`);{const{confirm:t}=await async function({title:e,content:t,showCancel:n,cancelText:i,confirmText:a}={}){return new Promise(((s,r)=>{uni.showModal({title:e,content:t,showCancel:n,cancelText:i,confirmText:a,success(e){s(e)},fail(){s({confirm:!1,cancel:!0})}})}))}({title:"提示",content:e,showCancel:r.retry,cancelText:"取消",confirmText:r.retry?"重试":"确定"});if(r.retry&&t)return a(...u)}}const t=new Qt({subject:f,code:m,message:g,requestId:d.requestId});throw t.detail=d.result,Jt(Lt,{type:zt,content:t}),t}return Jt(Lt,{type:zt,content:d.result}),d.result},interceptorName:"callObject",getCallbackArgs:function({params:e}={}){return{objectName:n,methodName:c,params:e}}})}})}}(e)}(t),["callFunction","uploadFile","deleteFile","getTempFileURL","downloadFile","chooseAndUploadFile"].forEach((e=>{if(!t[e])return;const n=t[e];t[e]=function(){return n.apply(t,Array.from(arguments))},t[e]=function(e,t){return function(n){let i=!1;if("callFunction"===t){const e=n&&n.type||ft;i=e!==ft}const a="callFunction"===t&&!i,s=this._initPromiseHub.exec();n=n||{};const{success:r,fail:o,complete:l}=Zt(n),c=s.then((()=>i?Promise.resolve():Mt(Pt(t,"invoke"),n))).then((()=>e.call(this,n))).then((e=>i?Promise.resolve(e):Mt(Pt(t,"success"),e).then((()=>Mt(Pt(t,"complete"),e))).then((()=>(a&&Jt(Lt,{type:$t,content:e}),Promise.resolve(e))))),(e=>i?Promise.reject(e):Mt(Pt(t,"fail"),e).then((()=>Mt(Pt(t,"complete"),e))).then((()=>(Jt(Lt,{type:$t,content:e}),Promise.reject(e))))));if(!(r||o||l))return c;c.then((e=>{r&&r(e),l&&l(e),a&&Jt(Lt,{type:$t,content:e})}),(e=>{o&&o(e),l&&l(e),a&&Jt(Lt,{type:$t,content:e})}))}}(t[e],e).bind(t)})),t.init=this.init,t}};(()=>{const e=Dt;let t={};if(e&&1===e.length)t=e[0],Fa=Fa.init(t),Fa._isDefault=!0;else{const t=["auth","callFunction","uploadFile","deleteFile","getTempFileURL","downloadFile","database","getCurrentUSerInfo","importObject"];let n;n=e&&e.length>0?"应用有多个服务空间,请通过uniCloud.init方法指定要使用的服务空间":"应用未关联服务空间,请在uniCloud目录右键关联服务空间",t.forEach((e=>{Fa[e]=function(){return console.error(n),Promise.reject(new Qt({code:"SYS_ERR",message:n}))}}))}Object.assign(Fa,{get mixinDatacom(){return Ba(Fa)}}),Da(Fa),Fa.addInterceptor=Bt,Fa.removeInterceptor=At,Fa.interceptObject=Rt})();var ja=Fa;const Ua="chooseAndUploadFile:fail";function $a(e,t){return e.tempFiles.forEach(((e,n)=>{e.name||(e.name=e.path.substring(e.path.lastIndexOf("/")+1)),t&&(e.fileType=t),e.cloudPath=Date.now()+"_"+n+e.name.substring(e.name.lastIndexOf("."))})),e.tempFilePaths||(e.tempFilePaths=e.tempFiles.map((e=>e.path))),e}function za(e,t=5,n){const i=(e=JSON.parse(JSON.stringify(e))).length;let a=0,s=this;return new Promise((r=>{for(;a=i)return void(!e.find((e=>!e.url&&!e.errMsg))&&r(e));const l=e[t],c=s.files.findIndex((e=>e.uuid===l.uuid));l.url="",delete l.errMsg,ja.uploadFile({filePath:l.path,cloudPath:l.cloudPath,fileType:l.fileType,onUploadProgress:e=>{e.index=c,n&&n(e)}}).then((e=>{l.url=e.fileID,l.index=c,t{l.errMsg=e.errMsg||e.message,l.index=c,t{if(t){const n=t(e);if(void 0!==n)return Promise.resolve(n).then((t=>void 0===t?e:t))}return e})).then((e=>!1===e?{errMsg:"chooseAndUploadFile:ok",tempFilePaths:[],tempFiles:[]}:e))}function qa(e={type:"all"}){return"image"===e.type?Ha(function(e){const{count:t,sizeType:n=["original","compressed"],sourceType:i,extension:a}=e;return new Promise(((e,s)=>{uni.chooseImage({count:t,sizeType:n,sourceType:i,extension:a,success(t){e($a(t,"image"))},fail(e){s({errMsg:e.errMsg.replace("chooseImage:fail",Ua)})}})}))}(e),e):"video"===e.type?Ha(function(e){const{count:t,camera:n,compressed:i,maxDuration:a,sourceType:s,extension:r}=e;return new Promise(((e,t)=>{uni.chooseVideo({camera:n,compressed:i,maxDuration:a,sourceType:s,extension:r,success(t){const{tempFilePath:n,duration:i,size:a,height:s,width:r}=t;e($a({errMsg:"chooseVideo:ok",tempFilePaths:[n],tempFiles:[{name:t.tempFile&&t.tempFile.name||"",path:n,size:a,type:t.tempFile&&t.tempFile.type||"",width:r,height:s,duration:i,fileType:"video",cloudPath:""}]},"video"))},fail(e){t({errMsg:e.errMsg.replace("chooseVideo:fail",Ua)})}})}))}(e),e):Ha(function(e){const{count:t,extension:n}=e;return new Promise(((e,i)=>{let a=uni.chooseFile;if("undefined"!=typeof wx&&"function"==typeof wx.chooseMessageFile&&(a=wx.chooseMessageFile),"function"!=typeof a)return i({errMsg:Ua+" 请指定 type 类型,该平台仅支持选择 image 或 video。"});a({type:"all",count:t,extension:n,success(t){e($a(t))},fail(e){i({errMsg:e.errMsg.replace("chooseFile:fail",Ua)})}})}))}(e),e)}const Ka=e=>{const t=e.lastIndexOf("."),n=e.length;return{name:e.substring(0,t),ext:e.substring(t+1,n)}},Ja=e=>{if(Array.isArray(e))return e;return e.replace(/(\[|\])/g,"").split(",")},Wa=async(e,t="image")=>{const n=Ka(e.name).ext.toLowerCase();let i={name:e.name,uuid:e.uuid,extname:n||"",cloudPath:e.cloudPath,fileType:e.fileType,thumbTempFilePath:e.thumbTempFilePath,url:e.path||e.path,size:e.size,image:{},path:e.path,video:{}};if("image"===t){const t=await(a=e.path,new Promise(((e,t)=>{uni.getImageInfo({src:a,success(t){e(t)},fail(e){t(e)}})})));delete i.video,i.image.width=t.width,i.image.height=t.height,i.image.location=t.path}else delete i.image;var a;return i};const Ya=q({name:"uniFilePicker",components:{uploadImage:q({name:"uploadImage",emits:["uploadFiles","choose","delFile"],props:{filesList:{type:Array,default:()=>[]},disabled:{type:Boolean,default:!1},disablePreview:{type:Boolean,default:!1},limit:{type:[Number,String],default:9},imageStyles:{type:Object,default:()=>({width:"auto",height:"auto",border:{}})},delIcon:{type:Boolean,default:!0},readonly:{type:Boolean,default:!1}},computed:{styles(){return Object.assign({width:"auto",height:"auto",border:{}},this.imageStyles)},boxStyle(){const{width:e="auto",height:t="auto"}=this.styles;let n={};"auto"===t?"auto"!==e?(n.height=this.value2px(e),n["padding-top"]=0):n.height=0:(n.height=this.value2px(t),n["padding-top"]=0),n.width="auto"===e?"auto"!==t?this.value2px(t):"33.3%":this.value2px(e);let i="";for(let a in n)i+=`${a}:${n[a]};`;return i},borderStyle(){let{border:e}=this.styles,t={};if("boolean"==typeof e)t.border=e?"1px #eee solid":"none";else{let n=e&&e.width||1;n=this.value2px(n);let i=e&&e.radius||3;i=this.value2px(i),t={"border-width":n,"border-style":e&&e.style||"solid","border-color":e&&e.color||"#eee","border-radius":i}}let n="";for(let i in t)n+=`${i}:${t[i]};`;return n}},methods:{uploadFiles(e,t){this.$emit("uploadFiles",e)},choose(){this.$emit("choose")},delFile(e){this.$emit("delFile",e)},prviewImage(e,t){let n=[];1===Number(this.limit)&&this.disablePreview&&!this.disabled&&this.$emit("choose"),this.disablePreview||(this.filesList.forEach((e=>{n.push(e.url)})),uni.previewImage({urls:n,current:t}))},value2px:e=>("number"==typeof e?e+="px":-1===e.indexOf("%")&&(e=-1!==e.indexOf("px")?e:e+"px"),e)}},[["render",function(t,n,i,a,s,r){return e.openBlock(),e.createElementBlock("view",{class:"uni-file-picker__container"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.filesList,((t,n)=>(e.openBlock(),e.createElementBlock("view",{class:"file-picker__box",key:n,style:e.normalizeStyle(r.boxStyle)},[e.createElementVNode("view",{class:"file-picker__box-content",style:e.normalizeStyle(r.borderStyle)},[e.createElementVNode("image",{class:"file-image",src:t.url,mode:"aspectFill",onClick:e.withModifiers((e=>r.prviewImage(t,n)),["stop"])},null,8,["src","onClick"]),i.delIcon&&!i.readonly?(e.openBlock(),e.createElementBlock("view",{key:0,class:"icon-del-box",onClick:e.withModifiers((e=>r.delFile(n)),["stop"])},[e.createElementVNode("view",{class:"icon-del"}),e.createElementVNode("view",{class:"icon-del rotate"})],8,["onClick"])):e.createCommentVNode("",!0),t.progress&&100!==t.progress||0===t.progress?(e.openBlock(),e.createElementBlock("view",{key:1,class:"file-picker__progress"},[e.createElementVNode("progress",{class:"file-picker__progress-item",percent:-1===t.progress?0:t.progress,"stroke-width":"4",backgroundColor:t.errMsg?"#ff5a5f":"#EBEBEB"},null,8,["percent","backgroundColor"])])):e.createCommentVNode("",!0),t.errMsg?(e.openBlock(),e.createElementBlock("view",{key:2,class:"file-picker__mask",onClick:e.withModifiers((e=>r.uploadFiles(t,n)),["stop"])}," 点击重试 ",8,["onClick"])):e.createCommentVNode("",!0)],4)],4)))),128)),i.filesList.lengthr.choose&&r.choose(...e))},[e.renderSlot(t.$slots,"default",{},(()=>[e.createElementVNode("view",{class:"icon-add"}),e.createElementVNode("view",{class:"icon-add rotate"})]),!0)],4)],4)):e.createCommentVNode("",!0)])}],["__scopeId","data-v-86b162f5"]]),uploadFile:q({name:"uploadFile",emits:["uploadFiles","choose","delFile"],props:{filesList:{type:Array,default:()=>[]},delIcon:{type:Boolean,default:!0},limit:{type:[Number,String],default:9},showType:{type:String,default:""},listStyles:{type:Object,default:()=>({border:!0,dividline:!0,borderStyle:{}})},readonly:{type:Boolean,default:!1}},computed:{list(){let e=[];return this.filesList.forEach((t=>{e.push(t)})),e},styles(){return Object.assign({border:!0,dividline:!0,"border-style":{}},this.listStyles)},borderStyle(){let{borderStyle:e,border:t}=this.styles,n={};if(t){let t=e&&e.width||1;t=this.value2px(t);let i=e&&e.radius||5;i=this.value2px(i),n={"border-width":t,"border-style":e&&e.style||"solid","border-color":e&&e.color||"#eee","border-radius":i}}else n.border="none";let i="";for(let a in n)i+=`${a}:${n[a]};`;return i},borderLineStyle(){let e={},{borderStyle:t}=this.styles;if(t&&t.color&&(e["border-color"]=t.color),t&&t.width){let n=t&&t.width||1,i=t&&t.style||0;"number"==typeof n?n+="px":n=n.indexOf("px")?n:n+"px",e["border-width"]=n,"number"==typeof i?i+="px":i=i.indexOf("px")?i:i+"px",e["border-top-style"]=i}let n="";for(let i in e)n+=`${i}:${e[i]};`;return n}},methods:{uploadFiles(e,t){this.$emit("uploadFiles",{item:e,index:t})},choose(){this.$emit("choose")},delFile(e){this.$emit("delFile",e)},value2px:e=>("number"==typeof e?e+="px":e=-1!==e.indexOf("px")?e:e+"px",e)}},[["render",function(t,n,i,a,s,r){return e.openBlock(),e.createElementBlock("view",{class:"uni-file-picker__files"},[i.readonly?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("view",{key:0,class:"files-button",onClick:n[0]||(n[0]=(...e)=>r.choose&&r.choose(...e))},[e.renderSlot(t.$slots,"default",{},void 0,!0)])),r.list.length>0?(e.openBlock(),e.createElementBlock("view",{key:1,class:"uni-file-picker__lists is-text-box",style:e.normalizeStyle(r.borderStyle)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.list,((t,n)=>(e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass(["uni-file-picker__lists-box",{"files-border":0!==n&&r.styles.dividline}]),key:n,style:e.normalizeStyle(0!==n&&r.styles.dividline&&r.borderLineStyle)},[e.createElementVNode("view",{class:"uni-file-picker__item"},[e.createElementVNode("view",{class:"files__name"},e.toDisplayString(t.name),1),i.delIcon&&!i.readonly?(e.openBlock(),e.createElementBlock("view",{key:0,class:"icon-del-box icon-files",onClick:e=>r.delFile(n)},[e.createElementVNode("view",{class:"icon-del icon-files"}),e.createElementVNode("view",{class:"icon-del rotate"})],8,["onClick"])):e.createCommentVNode("",!0)]),t.progress&&100!==t.progress||0===t.progress?(e.openBlock(),e.createElementBlock("view",{key:0,class:"file-picker__progress"},[e.createElementVNode("progress",{class:"file-picker__progress-item",percent:-1===t.progress?0:t.progress,"stroke-width":"4",backgroundColor:t.errMsg?"#ff5a5f":"#EBEBEB"},null,8,["percent","backgroundColor"])])):e.createCommentVNode("",!0),"error"===t.status?(e.openBlock(),e.createElementBlock("view",{key:1,class:"file-picker__mask",onClick:e.withModifiers((e=>r.uploadFiles(t,n)),["stop"])}," 点击重试 ",8,["onClick"])):e.createCommentVNode("",!0)],6)))),128))],4)):e.createCommentVNode("",!0)])}],["__scopeId","data-v-e61666c7"]])},options:{virtualHost:!0},emits:["select","success","fail","progress","delete","update:modelValue","input"],props:{modelValue:{type:[Array,Object],default:()=>[]},value:{type:[Array,Object],default:()=>[]},disabled:{type:Boolean,default:!1},disablePreview:{type:Boolean,default:!1},delIcon:{type:Boolean,default:!0},autoUpload:{type:Boolean,default:!0},limit:{type:[Number,String],default:9},mode:{type:String,default:"grid"},fileMediatype:{type:String,default:"image"},fileExtname:{type:[Array,String],default:()=>[]},title:{type:String,default:""},listStyles:{type:Object,default:()=>({border:!0,dividline:!0,borderStyle:{}})},imageStyles:{type:Object,default:()=>({width:"auto",height:"auto"})},readonly:{type:Boolean,default:!1},returnType:{type:String,default:"array"},sizeType:{type:Array,default:()=>["original","compressed"]},sourceType:{type:Array,default:()=>["album","camera"]},provider:{type:String,default:""}},data:()=>({files:[],localValue:[]}),watch:{value:{handler(e,t){this.setValue(e,t)},immediate:!0},modelValue:{handler(e,t){this.setValue(e,t)},immediate:!0}},computed:{filesList(){let e=[];return this.files.forEach((t=>{e.push(t)})),e},showType(){return"image"===this.fileMediatype?this.mode:"list"},limitLength(){return"object"===this.returnType?1:this.limit?this.limit>=9?9:this.limit:1}},created(){ja.config&&ja.config.provider||(this.noSpace=!0,ja.chooseAndUploadFile=qa),this.form=this.getForm("uniForms"),this.formItem=this.getForm("uniFormsItem"),this.form&&this.formItem&&this.formItem.name&&(this.rename=this.formItem.name,this.form.inputChildrens.push(this))},methods:{clearFiles(e){0===e||e?this.files.splice(e,1):(this.files=[],this.$nextTick((()=>{this.setEmit()}))),this.$nextTick((()=>{this.setEmit()}))},upload(){let e=[];return this.files.forEach(((t,n)=>{"ready"!==t.status&&"error"!==t.status||e.push(Object.assign({},t))})),this.uploadFiles(e)},async setValue(e,t){const n=async e=>{let t="";return t=e.fileID?e.fileID:e.url,/cloud:\/\/([\w.]+\/?)\S*/.test(t)&&(e.fileID=t,e.url=await this.getTempFileURL(t)),e.url&&(e.path=e.url),e};if("object"===this.returnType)e?await n(e):e={};else{e||(e=[]);for(let t=0;t0?e:[];this.files=[].concat(i)},choose(){this.disabled||(this.files.length>=Number(this.limitLength)&&"grid"!==this.showType&&"array"===this.returnType?uni.showToast({title:`您最多选择 ${this.limitLength} 个文件`,icon:"none"}):this.chooseFiles())},chooseFiles(){const e=Ja(this.fileExtname);ja.chooseAndUploadFile({type:this.fileMediatype,compressed:!1,sizeType:this.sizeType,sourceType:this.sourceType,extension:e.length>0?e:void 0,count:this.limitLength-this.files.length,onChooseFile:this.chooseFileCallback,onUploadProgress:e=>{this.setProgress(e,e.index)}}).then((e=>{this.setSuccessAndError(e.tempFiles)})).catch((e=>{t("log","at uni_modules/uni-file-picker/components/uni-file-picker/uni-file-picker.vue:364","选择失败",e)}))},async chooseFileCallback(e){const t=Ja(this.fileExtname);(1===Number(this.limitLength)&&this.disablePreview&&!this.disabled||"object"===this.returnType)&&(this.files=[]);let{filePaths:n,files:i}=((e,t)=>{let n=[],i=[];return t&&0!==t.length?(e.tempFiles.forEach((e=>{const a=Ka(e.name).ext.toLowerCase();-1!==t.indexOf(a)&&(i.push(e),n.push(e.path))})),i.length!==e.tempFiles.length&&uni.showToast({title:`当前选择了${e.tempFiles.length}个文件 ,${e.tempFiles.length-i.length} 个文件格式不正确`,icon:"none",duration:5e3}),{filePaths:n,files:i}):{filePaths:n,files:i}})(e,t);t&&t.length>0||(n=e.tempFilePaths,i=e.tempFiles);let a=[];for(let s=0;s{this.provider&&(e.provider=this.provider);const n=e.name.split("."),i=n.pop(),a=n.join(".").replace(/[\s\/\?<>\\:\*\|":]/g,"_");e.cloudPath=a+"_"+Date.now()+"_"+t+"."+i}))},uploadFiles(e){return e=[].concat(e),za.call(this,e,5,(e=>{this.setProgress(e,e.index,!0)})).then((e=>(this.setSuccessAndError(e),e))).catch((e=>{t("log","at uni_modules/uni-file-picker/components/uni-file-picker/uni-file-picker.vue:437",e)}))},async setSuccessAndError(e,t){let n=[],i=[],a=[],s=[];for(let r=0;re.uuid===t.uuid)):t.index;if(-1===o||!this.files)break;if("request:fail"===t.errMsg)this.files[o].url=t.path,this.files[o].status="error",this.files[o].errMsg=t.errMsg,i.push(this.files[o]),s.push(this.files[o].url);else{this.files[o].errMsg="",this.files[o].fileID=t.url;/cloud:\/\/([\w.]+\/?)\S*/.test(t.url)?this.files[o].url=await this.getTempFileURL(t.url):this.files[o].url=t.url,this.files[o].status="success",this.files[o].progress+=1,n.push(this.files[o]),a.push(this.files[o].fileID)}}n.length>0&&(this.setEmit(),this.$emit("success",{tempFiles:this.backObject(n),tempFilePaths:a})),i.length>0&&this.$emit("fail",{tempFiles:this.backObject(i),tempFilePaths:s})},setProgress(e,t,n){this.files.length;const i=Math.round(100*e.loaded/e.total);let a=t;n||(a=this.files.findIndex((t=>t.uuid===e.tempFile.uuid))),-1!==a&&this.files[a]&&(this.files[a].progress=i-1,this.$emit("progress",{index:a,progress:parseInt(i),tempFile:this.files[a]}))},delFile(e){this.$emit("delete",{index:e,tempFile:this.files[e],tempFilePath:this.files[e].url}),this.files.splice(e,1),this.$nextTick((()=>{this.setEmit()}))},getFileExt(e){const t=e.lastIndexOf("."),n=e.length;return{name:e.substring(0,t),ext:e.substring(t+1,n)}},setEmit(){let e=[];"object"===this.returnType?(e=this.backObject(this.files)[0],this.localValue=e||null):(e=this.backObject(this.files),this.localValue||(this.localValue=[]),this.localValue=[...e]),this.$emit("update:modelValue",this.localValue)},backObject(e){let t=[];return e.forEach((e=>{t.push({extname:e.extname,fileType:e.fileType,image:e.image,name:e.name,path:e.path,size:e.size,fileID:e.fileID,url:e.url,uuid:e.uuid,status:e.status,cloudPath:e.cloudPath})})),t},async getTempFileURL(e){e={fileList:[].concat(e)};return(await ja.getTempFileURL(e)).fileList[0].tempFileURL||""},getForm(e="uniForms"){let t=this.$parent,n=t.$options.name;for(;n!==e;){if(t=t.$parent,!t)return!1;n=t.$options.name}return t}}},[["render",function(t,n,i,a,s,r){const o=e.resolveComponent("upload-image"),l=e.resolveComponent("upload-file");return e.openBlock(),e.createElementBlock("view",{class:"uni-file-picker"},[i.title?(e.openBlock(),e.createElementBlock("view",{key:0,class:"uni-file-picker__header"},[e.createElementVNode("text",{class:"file-title"},e.toDisplayString(i.title),1),e.createElementVNode("text",{class:"file-count"},e.toDisplayString(r.filesList.length)+"/"+e.toDisplayString(r.limitLength),1)])):e.createCommentVNode("",!0),"image"===i.fileMediatype&&"grid"===r.showType?(e.openBlock(),e.createBlock(o,{key:1,readonly:i.readonly,"image-styles":i.imageStyles,"files-list":r.filesList,limit:r.limitLength,disablePreview:i.disablePreview,delIcon:i.delIcon,onUploadFiles:r.uploadFiles,onChoose:r.choose,onDelFile:r.delFile},{default:e.withCtx((()=>[e.renderSlot(t.$slots,"default",{},(()=>[e.createElementVNode("view",{class:"is-add"},[e.createElementVNode("view",{class:"icon-add"}),e.createElementVNode("view",{class:"icon-add rotate"})])]),!0)])),_:3},8,["readonly","image-styles","files-list","limit","disablePreview","delIcon","onUploadFiles","onChoose","onDelFile"])):e.createCommentVNode("",!0),"image"!==i.fileMediatype||"grid"!==r.showType?(e.openBlock(),e.createBlock(l,{key:2,readonly:i.readonly,"list-styles":i.listStyles,"files-list":r.filesList,showType:r.showType,delIcon:i.delIcon,onUploadFiles:r.uploadFiles,onChoose:r.choose,onDelFile:r.delFile},{default:e.withCtx((()=>[e.renderSlot(t.$slots,"default",{},(()=>[e.createElementVNode("button",{type:"primary",size:"mini"},"选择文件")]),!0)])),_:3},8,["readonly","list-styles","files-list","showType","delIcon","onUploadFiles","onChoose","onDelFile"])):e.createCommentVNode("",!0)])}],["__scopeId","data-v-086f9922"]]);function Ga(e){let t="";for(let n in e){t+=`${n}:${e[n]};`}return t}const Za=q({name:"uni-easyinput",emits:["click","iconClick","update:modelValue","input","focus","blur","confirm","clear","eyes","change","keyboardheightchange"],model:{prop:"modelValue",event:"update:modelValue"},options:{virtualHost:!0},inject:{form:{from:"uniForm",default:null},formItem:{from:"uniFormItem",default:null}},props:{name:String,value:[Number,String],modelValue:[Number,String],type:{type:String,default:"text"},clearable:{type:Boolean,default:!0},autoHeight:{type:Boolean,default:!1},placeholder:{type:String,default:" "},placeholderStyle:String,focus:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},maxlength:{type:[Number,String],default:140},confirmType:{type:String,default:"done"},clearSize:{type:[Number,String],default:24},inputBorder:{type:Boolean,default:!0},prefixIcon:{type:String,default:""},suffixIcon:{type:String,default:""},trim:{type:[Boolean,String],default:!1},cursorSpacing:{type:Number,default:0},passwordIcon:{type:Boolean,default:!0},adjustPosition:{type:Boolean,default:!0},primaryColor:{type:String,default:"#2979ff"},styles:{type:Object,default:()=>({color:"#333",backgroundColor:"#fff",disableColor:"#F7F6F6",borderColor:"#e5e5e5"})},errorMessage:{type:[String,Boolean],default:""}},data:()=>({focused:!1,val:"",showMsg:"",border:!1,isFirstBorder:!1,showClearIcon:!1,showPassword:!1,focusShow:!1,localMsg:"",isEnter:!1}),computed:{isVal(){const e=this.val;return!(!e&&0!==e)},msg(){return this.localMsg||this.errorMessage},inputMaxlength(){return Number(this.maxlength)},boxStyle(){return`color:${this.inputBorder&&this.msg?"#e43d33":this.styles.color};`},inputContentClass(){return function(e){let t="";for(let n in e)e[n]&&(t+=`${n} `);return t}({"is-input-border":this.inputBorder,"is-input-error-border":this.inputBorder&&this.msg,"is-textarea":"textarea"===this.type,"is-disabled":this.disabled,"is-focused":this.focusShow})},inputContentStyle(){const e=this.focusShow?this.primaryColor:this.styles.borderColor;return Ga({"border-color":(this.inputBorder&&this.msg?"#dd524d":e)||"#e5e5e5","background-color":this.disabled?this.styles.disableColor:this.styles.backgroundColor})},inputStyle(){return Ga({"padding-right":"password"===this.type||this.clearable||this.prefixIcon?"":"10px","padding-left":this.prefixIcon?"":"10px"})}},watch:{value(e){this.val=null!==e?e:""},modelValue(e){this.val=null!==e?e:""},focus(e){this.$nextTick((()=>{this.focused=this.focus,this.focusShow=this.focus}))}},created(){this.init(),this.form&&this.formItem&&this.$watch("formItem.errMsg",(e=>{this.localMsg=e}))},mounted(){this.$nextTick((()=>{this.focused=this.focus,this.focusShow=this.focus}))},methods:{init(){this.value||0===this.value?this.val=this.value:this.modelValue||0===this.modelValue||""===this.modelValue?this.val=this.modelValue:this.val=""},onClickIcon(e){this.$emit("iconClick",e)},onEyes(){this.showPassword=!this.showPassword,this.$emit("eyes",this.showPassword)},onInput(e){let t=e.detail.value;this.trim&&("boolean"==typeof this.trim&&this.trim&&(t=this.trimStr(t)),"string"==typeof this.trim&&(t=this.trimStr(t,this.trim))),this.errMsg&&(this.errMsg=""),this.val=t,this.$emit("input",t),this.$emit("update:modelValue",t)},onFocus(){this.$nextTick((()=>{this.focused=!0})),this.$emit("focus",null)},_Focus(e){this.focusShow=!0,this.$emit("focus",e)},onBlur(){this.focused=!1,this.$emit("blur",null)},_Blur(e){if(e.detail.value,this.focusShow=!1,this.$emit("blur",e),!1===this.isEnter&&this.$emit("change",this.val),this.form&&this.formItem){const{validateTrigger:e}=this.form;"blur"===e&&this.formItem.onFieldChange()}},onConfirm(e){this.$emit("confirm",this.val),this.isEnter=!0,this.$emit("change",this.val),this.$nextTick((()=>{this.isEnter=!1}))},onClear(e){this.val="",this.$emit("input",""),this.$emit("update:modelValue",""),this.$emit("clear")},onkeyboardheightchange(e){this.$emit("keyboardheightchange",e)},trimStr:(e,t="both")=>"both"===t?e.trim():"left"===t?e.trimLeft():"right"===t?e.trimRight():"start"===t?e.trimStart():"end"===t?e.trimEnd():"all"===t?e.replace(/\s+/g,""):e}},[["render",function(t,i,a,s,r,o){const l=n(e.resolveDynamicComponent("uni-icons"),W);return e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass(["uni-easyinput",{"uni-easyinput-error":o.msg}]),style:e.normalizeStyle(o.boxStyle)},[e.createElementVNode("view",{class:e.normalizeClass(["uni-easyinput__content",o.inputContentClass]),style:e.normalizeStyle(o.inputContentStyle)},[a.prefixIcon?(e.openBlock(),e.createBlock(l,{key:0,class:"content-clear-icon",type:a.prefixIcon,color:"#c0c4cc",onClick:i[0]||(i[0]=e=>o.onClickIcon("prefix")),size:"22"},null,8,["type"])):e.createCommentVNode("",!0),e.renderSlot(t.$slots,"left",{},void 0,!0),"textarea"===a.type?(e.openBlock(),e.createElementBlock("textarea",{key:1,class:e.normalizeClass(["uni-easyinput__content-textarea",{"input-padding":a.inputBorder}]),name:a.name,value:r.val,placeholder:a.placeholder,placeholderStyle:a.placeholderStyle,disabled:a.disabled,"placeholder-class":"uni-easyinput__placeholder-class",maxlength:o.inputMaxlength,focus:r.focused,autoHeight:a.autoHeight,"cursor-spacing":a.cursorSpacing,"adjust-position":a.adjustPosition,onInput:i[1]||(i[1]=(...e)=>o.onInput&&o.onInput(...e)),onBlur:i[2]||(i[2]=(...e)=>o._Blur&&o._Blur(...e)),onFocus:i[3]||(i[3]=(...e)=>o._Focus&&o._Focus(...e)),onConfirm:i[4]||(i[4]=(...e)=>o.onConfirm&&o.onConfirm(...e)),onKeyboardheightchange:i[5]||(i[5]=(...e)=>o.onkeyboardheightchange&&o.onkeyboardheightchange(...e))},null,42,["name","value","placeholder","placeholderStyle","disabled","maxlength","focus","autoHeight","cursor-spacing","adjust-position"])):(e.openBlock(),e.createElementBlock("input",{key:2,type:"password"===a.type?"text":a.type,class:"uni-easyinput__content-input",style:e.normalizeStyle(o.inputStyle),name:a.name,value:r.val,password:!r.showPassword&&"password"===a.type,placeholder:a.placeholder,placeholderStyle:a.placeholderStyle,"placeholder-class":"uni-easyinput__placeholder-class",disabled:a.disabled,maxlength:o.inputMaxlength,focus:r.focused,confirmType:a.confirmType,"cursor-spacing":a.cursorSpacing,"adjust-position":a.adjustPosition,onFocus:i[6]||(i[6]=(...e)=>o._Focus&&o._Focus(...e)),onBlur:i[7]||(i[7]=(...e)=>o._Blur&&o._Blur(...e)),onInput:i[8]||(i[8]=(...e)=>o.onInput&&o.onInput(...e)),onConfirm:i[9]||(i[9]=(...e)=>o.onConfirm&&o.onConfirm(...e)),onKeyboardheightchange:i[10]||(i[10]=(...e)=>o.onkeyboardheightchange&&o.onkeyboardheightchange(...e))},null,44,["type","name","value","password","placeholder","placeholderStyle","disabled","maxlength","focus","confirmType","cursor-spacing","adjust-position"])),"password"===a.type&&a.passwordIcon?(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[o.isVal?(e.openBlock(),e.createBlock(l,{key:0,class:e.normalizeClass(["content-clear-icon",{"is-textarea-icon":"textarea"===a.type}]),type:r.showPassword?"eye-slash-filled":"eye-filled",size:22,color:r.focusShow?a.primaryColor:"#c0c4cc",onClick:o.onEyes},null,8,["class","type","color","onClick"])):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),a.suffixIcon?(e.openBlock(),e.createElementBlock(e.Fragment,{key:4},[a.suffixIcon?(e.openBlock(),e.createBlock(l,{key:0,class:"content-clear-icon",type:a.suffixIcon,color:"#c0c4cc",onClick:i[11]||(i[11]=e=>o.onClickIcon("suffix")),size:"22"},null,8,["type"])):e.createCommentVNode("",!0)],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:5},[a.clearable&&o.isVal&&!a.disabled&&"textarea"!==a.type?(e.openBlock(),e.createBlock(l,{key:0,class:e.normalizeClass(["content-clear-icon",{"is-textarea-icon":"textarea"===a.type}]),type:"clear",size:a.clearSize,color:o.msg?"#dd524d":r.focusShow?a.primaryColor:"#c0c4cc",onClick:o.onClear},null,8,["class","size","color","onClick"])):e.createCommentVNode("",!0)],64)),e.renderSlot(t.$slots,"right",{},void 0,!0)],6)],6)}],["__scopeId","data-v-d17898f6"]]);function Qa(e){return"string"==typeof e}function Xa(e,t=50){if(!Array.isArray(e)||!e.length)return e;const n=[];return e.forEach(((e,i)=>{const a=Math.floor(i/t);n[a]||(n[a]=[]),n[a].push(e)})),n}const es=q(e.defineComponent({__name:"data-select-item",props:{node:{type:Object,default:()=>({})},choseParent:{type:Boolean,default:!0},dataLabel:{type:String,default:"name"},dataValue:{type:String,default:"value"},dataChildren:{type:String,default:"children"},border:{type:Boolean,default:!1},linkage:{type:Boolean,default:!1},lazyLoadChildren:{type:Boolean,default:!1},level:{type:Number,default:0},mutiple:{type:Boolean,default:!1}},setup(t){const{nodeClick:i,nameClick:a,loadNode:s,initData:r,addNode:o}=e.inject("nodeFn"),l=t,c=e.ref([]),u=e.ref([]),d=e.ref([]);return e.watchEffect((()=>{l.node.showChildren&&l.node[l.dataChildren]&&l.node[l.dataChildren].length&&(function(){const e=[...u.value];u.value=[],e.forEach((e=>e()))}(),function(e){const t=Xa(e);c.value=(null==t?void 0:t[0])||[],function(e,t){for(let n=t;n{c.value.push(...e[n])}),500*n),u.push((()=>clearTimeout(t)))}}(t,1)}(l.node[l.dataChildren]))})),(u,h)=>{const p=n(e.resolveDynamicComponent("uni-icons"),W);return e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass(["customthree-tree-select-content",{border:t.border&&t.node[t.dataChildren]&&t.node[t.dataChildren].length&&t.node.showChildren}]),style:e.normalizeStyle({marginLeft:(t.level?14:0)+"px"})},[t.node.visible?(e.openBlock(),e.createElementBlock("view",{key:0,class:"custom-tree-select-item"},[e.createElementVNode("view",{class:"item-content"},[e.createElementVNode("view",{class:"left",onClick:h[0]||(h[0]=e.withModifiers((e=>{var n,i;(n=t.node).visible&&(!(null==(i=n[l.dataChildren])?void 0:i.length)&&l.lazyLoadChildren?(d.value.push(n[l.dataValue].toString()),s(n).then((e=>{o(n,r(e,n.visible))})).finally((()=>{d.value=[]}))):a(n))}),["stop"]))},[e.createElementVNode("view",{class:"icon-group"},[t.node[t.dataChildren]&&t.node[t.dataChildren].length?(e.openBlock(),e.createElementBlock("view",{key:0,class:e.normalizeClass(["right-icon",{active:t.node.showChildren}])},[e.createVNode(p,{type:"right",size:"14",color:"#333"})],2)):(e.openBlock(),e.createElementBlock("view",{key:1,class:"smallcircle-filled"},[e.createVNode(p,{class:"smallcircle-filled-icon",type:"smallcircle-filled",size:"10",color:"#333"})]))]),d.value.includes(t.node[l.dataValue].toString())?(e.openBlock(),e.createElementBlock("view",{key:0,class:"loading-icon-box"},[e.createVNode(p,{class:"loading-icon",type:"spinner-cycle",size:"14",color:"#333"})])):e.createCommentVNode("",!0),e.createElementVNode("view",{class:"name",style:e.normalizeStyle(t.node.disabled?"color: #999":"")},[e.createElementVNode("text",null,e.toDisplayString(t.node[t.dataLabel]),1)],4)]),t.choseParent||!t.choseParent&&!t.node[t.dataChildren]||!t.choseParent&&t.node[t.dataChildren]&&!t.node[t.dataChildren].length?(e.openBlock(),e.createElementBlock("view",{key:0,class:e.normalizeClass(["check-box",{disabled:t.node.disabled}]),style:e.normalizeStyle({"border-radius":t.mutiple?"3px":"50%"}),onClick:h[1]||(h[1]=e.withModifiers((n=>!t.node.disabled&&e.unref(i)(t.node)),["stop"]))},[!t.node.checked&&t.node.partChecked&&t.linkage?(e.openBlock(),e.createElementBlock("view",{key:0,class:"part-checked"})):e.createCommentVNode("",!0),t.node.checked?(e.openBlock(),e.createBlock(p,{key:1,type:"checkmarkempty",size:"18",color:t.node.disabled?"#333":"#007aff"},null,8,["color"])):e.createCommentVNode("",!0)],6)):e.createCommentVNode("",!0)])])):e.createCommentVNode("",!0),t.node.showChildren&&t.node[t.dataChildren]&&t.node[t.dataChildren].length?(e.openBlock(),e.createElementBlock("view",{key:1},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,(n=>(e.openBlock(),e.createBlock(es,{key:n[t.dataValue],node:n,dataLabel:t.dataLabel,dataValue:t.dataValue,dataChildren:t.dataChildren,choseParent:t.choseParent,lazyLoadChildren:t.lazyLoadChildren,border:t.border,linkage:t.linkage,level:t.level+1},null,8,["node","dataLabel","dataValue","dataChildren","choseParent","lazyLoadChildren","border","linkage","level"])))),128))])):e.createCommentVNode("",!0)],6)}}}),[["__scopeId","data-v-50ed94e6"]]),ts=q(e.defineComponent({__name:"treeSelect",props:{canSelectAll:{type:Boolean,default:!1},safeArea:{type:Boolean,default:!0},search:{type:Boolean,default:!1},clearResetSearch:{type:Boolean,default:!1},animation:{type:Boolean,default:!0},"is-mask-click":{type:Boolean,default:!0},"mask-background-color":{type:String,default:"rgba(0,0,0,0.4)"},"background-color":{type:String,default:"none"},"safe-area":{type:Boolean,default:!0},choseParent:{type:Boolean,default:!1},placeholder:{type:String,default:"请选择"},confirmText:{type:String,default:"确认"},confirmTextColor:{type:String,default:"#007aff"},dataSource:{type:Array,default:()=>[]},dataLabel:{type:String,default:"name"},dataValue:{type:String,default:"id"},dataChildren:{type:String,default:"children"},linkage:{type:Boolean,default:!1},removeLinkage:{type:Boolean,default:!0},clearable:{type:Boolean,default:!1},mutiple:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},deleteSource:{type:Boolean,default:!1},showChildren:{type:Boolean,default:!1},border:{type:Boolean,default:!1},lazyLoadChildren:{type:Boolean,default:!1},load:{type:Function,default:function(){}},modelValue:{type:[Array,String],default:()=>[]}},emits:["update:modelValue","change","maskClick","select-change","removeSelect"],setup(t,{emit:i}){const a=t,s=i,r=e.ref("500px"),o=e.ref([]),l=e.ref([]),c=e.ref([]),u=e.ref([]),d=e.ref(!1),h=e.ref(!1),p=e.ref(0),f=e.ref(""),m=e.ref(null),g=new Set;e.provide("nodeFn",{nodeClick:I,nameClick:B,loadNode:a.load,initData:E,addNode:function(e,t){N(e,o.value)[a.dataChildren]=t,B(e)}});const v=e.computed((()=>{const e=null===a.modelValue?"":a.modelValue;return Qa(e)?e.length?e.split(","):[]:e.map((e=>e.toString()))}));function y(t=!1){x(),t?a.clearResetSearch&&D(o.value):D(w(f.value,o.value)),p.val=10,e.nextTick((()=>{p.value=0})),uni.hideKeyboard()}function w(e,t){const n=[];return t.forEach((t=>{var i,s;if(t.visible)if(t[a.dataLabel].toString().toLowerCase().indexOf(e.toLowerCase())>-1)n.push(t);else if(null==(i=t[a.dataChildren])?void 0:i.length){const i=w(e,t[a.dataChildren]);(null==i?void 0:i.length)&&(e&&!t.showChildren&&(null==(s=t[a.dataChildren])?void 0:s.length)&&(t.showChildren=!0),n.push({...t,[a.dataChildren]:i}))}})),n}async function k(){a.disabled||(d.value=!0,m.value.open(),D(o.value))}function _(){m.value.close()}function S(e){e.show||(x(),f.value="",d.value=!1),s("change",e)}function b(){s("maskClick")}function E(e,t){var n;if(!Array.isArray(e))return[];const i=[];for(let s=0;se()))}function D(e){const t=Xa(e);l.value=(null==t?void 0:t[0])||[],function(e,t){for(let n=t;n{l.value.push(...e[n])}),500*n),c.push((()=>clearTimeout(t)))}}(t,1)}function T(e,t,n=!1){var i;const r=[...e];let o=!0;for(n&&(u.value=[]);r.length;){const e=r.shift();t.includes(e[a.dataValue].toString())?(e.checked=!0,e.partChecked=!1,g.delete(e[a.dataValue]),n&&u.value.push(e)):(e.checked=!1,e.visible&&!e.disabled&&(o=!1),g.has(e[a.dataValue])?e.partChecked=!0:e.partChecked=!1),(null==(i=e[a.dataChildren])?void 0:i.length)&&r.push(...e[a.dataChildren])}h.value=o,n&&s("select-change",[...u.value])}function N(e,t){var n;const i=[...t];for(;i.length;){const t=i.shift();if(t[a.dataValue]===e[a.dataValue])return t;(null==(n=t[a.dataChildren])?void 0:n.length)&&i.push(...t[a.dataChildren])}return{}}function C(e){var t;if(!(null==(t=e[a.dataChildren])?void 0:t.length))return[];const n=e[a.dataChildren].reduce(((e,t)=>t.visible?[...e,t]:e),[]);for(let i=0;i!e.disabled));if(n.checked){if(e=Array.from(new Set([...e,n[a.dataValue].toString()])),i.length&&(e=Array.from(new Set([...e,...i.map((e=>e[a.dataValue].toString()))])),i.forEach((e=>{e.partChecked=!1,g.delete(e[a.dataValue])}))),t.length){let n=!1;for(;t.length;){const i=t.shift();if(!i.disabled)if(n)i.partChecked=!0,g.add(i[a.dataValue]);else{i[a.dataChildren].filter((e=>e.visible&&!e.disabled)).every((e=>e.checked))?(i.checked=!0,i.partChecked=!1,g.delete(i[a.dataValue]),e=Array.from(new Set([...e,i[a.dataValue].toString()]))):(i.partChecked=!0,g.add(i[a.dataValue]),n=!0)}}}}else e=e.filter((e=>e!==n[a.dataValue].toString())),i.length&&i.forEach((t=>{e=e.filter((e=>e!==t[a.dataValue].toString()))})),t.length&&t.forEach((t=>{e.includes(t[a.dataValue].toString())&&(t.checked=!1),e=e.filter((e=>e!==t[a.dataValue].toString()));const n=t[a.dataChildren].filter((e=>e.visible&&!e.disabled)).some((e=>e.checked||e.partChecked));t.partChecked=n,n?g.add(t[a.dataValue]):g.delete(t[a.dataValue])}));s("update:modelValue",Qa(a.modelValue)?e.join(","):e)}else{let e=null;e=n.checked?Array.from(new Set([...v.value,n[a.dataValue].toString()])):v.value.filter((e=>e!==n[a.dataValue].toString())),s("update:modelValue",Qa(a.modelValue)?e.join(","):e)}else{let e=[];n.checked&&(e=[n[a.dataValue].toString()]),s("update:modelValue",Qa(a.modelValue)?e.join(","):e)}}function B(e){const t=!e.showChildren;N(e,o.value).showChildren=t,N(e,l.value).showChildren=t}function A(){if(h.value=!h.value,h.value){if(!a.mutiple)return void uni.showToast({title:"单选模式下不能全选",icon:"none",duration:1e3});let e=[];o.value.forEach((t=>{var n;(t.visible||t.disabled&&t.checked)&&(e=Array.from(new Set([...e,t[a.dataValue].toString()])),(null==(n=t[a.dataChildren])?void 0:n.length)&&(e=Array.from(new Set([...e,...C(t).filter((e=>!e.disabled||e.disabled&&e.checked)).map((e=>e[a.dataValue].toString()))]))))})),s("update:modelValue",Qa(a.modelValue)?e.join(","):e)}else M()}function M(){if(a.disabled)return;g.clear();const e=[];u.value.forEach((t=>{t.visible&&t.checked&&t.disabled&&e.push(t[a.dataValue])})),s("update:modelValue",Qa(a.modelValue)?e.join(","):e)}return e.onMounted((()=>{!function({screenHeight:e}){r.value=`${Math.floor(.7*e)}px`}(uni.getSystemInfoSync())})),e.watch((()=>a.dataSource),(e=>{e&&(o.value=E(e),d.value&&(x(),D(o.value)))}),{immediate:!0,deep:!0}),e.watch((()=>a.modelValue),(e=>{const t=e?Array.isArray(e)?e:e.split(","):[];T(o.value,t,!0),l.value.length&&T(l.value,t)}),{immediate:!0}),(i,c)=>{const d=n(e.resolveDynamicComponent("uni-icons"),W),g=n(e.resolveDynamicComponent("uni-easyinput"),Za),w=n(e.resolveDynamicComponent("uni-popup"),Ge);return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("view",{class:e.normalizeClass(["select-list",{disabled:t.disabled},{active:v.value.length}]),onClick:k},[e.createElementVNode("view",{class:"left"},[v.value.length?(e.openBlock(),e.createElementBlock("view",{key:0,class:"select-items"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u.value,(n=>(e.openBlock(),e.createElementBlock("view",{class:"select-item",key:n[t.dataValue]},[e.createElementVNode("view",{class:"name"},[e.createElementVNode("text",null,e.toDisplayString(n[t.dataLabel]),1)]),t.disabled||n.disabled||!t.deleteSource?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("view",{key:0,class:"close",onClick:e.withModifiers((e=>function(e){if(h.value=!1,a.linkage)I(e,!1),s("removeSelect",e);else{const t=v.value.filter((t=>t!==e[a.dataValue].toString()));s("removeSelect",e),s("update:modelValue",Qa(a.modelValue)?t.join(","):t)}}(n)),["stop"])},[e.createVNode(d,{type:"closeempty",size:"16",color:"#999"})],8,["onClick"]))])))),128))])):(e.openBlock(),e.createElementBlock("view",{key:1,class:"no-data"},[e.createElementVNode("text",null,e.toDisplayString(t.placeholder),1)]))]),e.createElementVNode("view",null,[v.value.length&&t.clearable?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(d,{key:0,type:"bottom",color:"#333333"})),e.createElementVNode("view",{onClick:c[0]||(c[0]=e.withModifiers((()=>{}),["stop"]))},[v.value.length&&t.clearable?(e.openBlock(),e.createBlock(d,{key:0,type:"clear",size:"24",color:"#c0c4cc",onClick:M})):e.createCommentVNode("",!0)])])],2),e.createVNode(w,{ref_key:"popup",ref:m,animation:t.animation,"is-mask-click":i.isMaskClick,"mask-background-color":i.maskBackgroundColor,"background-color":i.backgroundColor,"safe-area":t.safeArea,type:"bottom",onChange:S,onMaskClick:b},{default:e.withCtx((()=>[e.createElementVNode("view",{class:"popup-content",style:e.normalizeStyle({height:r.value})},[e.createElementVNode("view",{class:"title"},[t.mutiple&&t.canSelectAll?(e.openBlock(),e.createElementBlock("view",{key:0,class:"left",onClick:A},[e.createElementVNode("text",null,e.toDisplayString(h.value?"取消全选":"全选"),1)])):e.createCommentVNode("",!0),e.createElementVNode("view",{class:"center"},[e.createElementVNode("text",null,e.toDisplayString(t.placeholder),1)]),e.createElementVNode("view",{class:"right",style:e.normalizeStyle({color:t.confirmTextColor}),onClick:_},[e.createElementVNode("text",null,e.toDisplayString(t.confirmText),1)],4)]),t.search?(e.openBlock(),e.createElementBlock("view",{key:0,class:"search-box"},[e.createVNode(g,{maxlength:-1,prefixIcon:"search",placeholder:"搜索",modelValue:f.value,"onUpdate:modelValue":c[1]||(c[1]=e=>f.value=e),"confirm-type":"search",onConfirm:c[2]||(c[2]=e=>y(!1)),onClear:c[3]||(c[3]=e=>y(!0))},null,8,["modelValue"]),e.createElementVNode("button",{type:"primary",size:"mini",class:"search-btn",onClick:c[4]||(c[4]=e=>y(!1))},"搜索")])):e.createCommentVNode("",!0),o.value.length?(e.openBlock(),e.createElementBlock("view",{key:1,class:"select-content"},[e.createElementVNode("scroll-view",{class:"scroll-view-box","scroll-top":p.value,"scroll-y":"true",onTouchmove:c[5]||(c[5]=e.withModifiers((()=>{}),["stop"]))},[l.value.length?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("view",{key:0,class:"no-data center"},[e.createElementVNode("text",null,"暂无数据")])),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.value,(n=>(e.openBlock(),e.createBlock(es,{key:n[t.dataValue],node:n,dataLabel:t.dataLabel,dataValue:t.dataValue,dataChildren:t.dataChildren,choseParent:t.choseParent,border:t.border,linkage:t.linkage,lazyLoadChildren:t.lazyLoadChildren},null,8,["node","dataLabel","dataValue","dataChildren","choseParent","border","linkage","lazyLoadChildren"])))),128)),e.createElementVNode("view",{class:"sentry"})],40,["scroll-top"])])):(e.openBlock(),e.createElementBlock("view",{key:2,class:"no-data center"},[e.createElementVNode("text",null,"暂无数据")]))],4)])),_:1},8,["animation","is-mask-click","mask-background-color","background-color","safe-area"])],64)}}}),[["__scopeId","data-v-0768d7c7"]]),ns={__name:"application",setup(i){const a=H(),{proxy:s}=e.getCurrentInstance(),o=e.ref(a.userinfo.realname),l=e.ref(""),c=e.ref(a.userinfo.phone),d=e.ref(""),h=e.ref([]),p=e.ref(""),f=e=>{p.value=e.detail.value},m=e.ref(""),g=e=>{m.value=e.detail.value},v=e.ref([]),y=e.ref(null),w=e.ref(!0),k=e.ref(""),_=e.ref(""),S=e.ref(""),b=e.ref([]),E={width:64,height:64,border:{color:"#dce7e1",width:2,style:"dashed",radius:"2px"}};r((()=>{N()}));const x=e=>{e.tempFilePaths;for(let t=0;t{b.value.push(JSON.parse(e.data).message)}})}},D=()=>{return c.value.trim()?d.value?p.value?m.value?w.value&&null==y.value?s.$toast("请选择审批领导"):_.value.trim()?S.value.trim()?void(e={username:a.userinfo.username,phone:c.value,type:d.value,begintime:p.value,endtime:m.value,examineleader:v.value[y.value].username,address:_.value,reason:S.value,zwmc:k.value,path:b.value.toString()},u({url:"/CxcQxj/cxcQxj/add",method:"post",data:e})).then((e=>{e.success?T(e.message):s.$toast(e.message)})):s.$toast("请输入请假事由"):s.$toast("请输入请假地点"):s.$toast("请选择结束时间"):s.$toast("请选择开始时间"):s.$toast("请选择请假类型"):s.$toast("请输入联系方式");var e},T=e=>{var n;(n={flowCode:"dev_cxc_qxj",id:e,formUrl:"modules/qxj/modules/CxcQxjBpmModel",formUrlMobile:"leaveApplication"},u({url:"/process/extActProcess/startMutilProcess",method:"post",data:n})).then((e=>{e.success&&(s.$toast(e.message),setTimeout((()=>{uni.navigateBack()}),2e3))})).catch((e=>{t("log","at pages/leave/application.vue:235",e)}))},N=()=>{var e,t,n;(e="1838487445813645313",u({url:"/sys/category/findtree",method:"get",data:{pid:e}})).then((e=>{e.success&&(h.value=e.result)})),(t=a.userinfo.orgCode,u({url:"/sys/sysDepart/queryDepNameByDepCode",method:"get",data:{code:t}})).then((e=>{e.success&&(l.value=e.result)})),(n=a.userinfo.username,u({url:"/CxcQxj/cxcQxj/queryZwmcByUsername",method:"get",data:{username:n}})).then((e=>{e.success?(v.value=e.result.list,k.value=e.result.zwmc,"单位专家"!=k.value&&"正职"!=k.value&&"高级主管"!=k.value||(w.value=!1)):s.$toast(e.message)}))},C=e=>{y.value=e.detail.value};return(t,i)=>{const s=n(e.resolveDynamicComponent("uni-icons"),W),r=n(e.resolveDynamicComponent("uni-file-picker"),Ya);return e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass({gray:1==e.unref(a).isgray})},[e.createElementVNode("view",{class:"form"},[e.createElementVNode("view",{class:"f-row aic jcb input_box"},[e.createElementVNode("view",{class:"title"}," 职工姓名: "),e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":i[0]||(i[0]=e=>o.value=e),disabled:""},null,512),[[e.vModelText,o.value]])]),e.createElementVNode("view",{class:"f-row aic jcb input_box"},[e.createElementVNode("view",{class:"title"}," 工作单位: "),e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":i[1]||(i[1]=e=>l.value=e),disabled:""},null,512),[[e.vModelText,l.value]])]),e.createElementVNode("view",{class:"f-row aic jcb input_box"},[e.createElementVNode("view",{class:"title"}," 联系方式: "),e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":i[2]||(i[2]=e=>c.value=e)},null,512),[[e.vModelText,c.value]])]),e.createElementVNode("view",{class:"f-row aic jcb input_box"},[e.createElementVNode("view",{class:"title"}," 请假类型: "),e.createVNode(ts,{dataSource:h.value,modelValue:d.value,"onUpdate:modelValue":i[3]||(i[3]=e=>d.value=e),dataValue:"name"},null,8,["dataSource","modelValue"])]),e.createElementVNode("picker",{mode:"date",fields:"day",onChange:f,value:p.value},[e.createElementVNode("view",{class:"f-row aic jcb box"},[e.createElementVNode("view",{class:"title"}," 开始时间: "),e.createElementVNode("view",{class:"f-row aic"},[e.createElementVNode("view",{class:e.normalizeClass([{choose:!p.value},{choosed:p.value}])},e.toDisplayString(p.value?p.value:"请选择"),3),e.createVNode(s,{type:"bottom",color:"#333333"})])])],40,["value"]),e.createElementVNode("picker",{mode:"date",fields:"day",onChange:g,value:m.value},[e.createElementVNode("view",{class:"f-row aic jcb box"},[e.createElementVNode("view",{class:"title"}," 截止时间: "),e.createElementVNode("view",{class:"f-row aic"},[e.createElementVNode("view",{class:e.normalizeClass([{choose:!m.value},{choosed:m.value}])},e.toDisplayString(m.value?m.value:"请选择"),3),e.createVNode(s,{type:"bottom",color:"#333333"})])])],40,["value"]),w.value?(e.openBlock(),e.createElementBlock("picker",{key:0,onChange:C,value:y.value,range:v.value,"range-key":"realname"},[e.createElementVNode("view",{class:"f-row aic jcb box"},[e.createElementVNode("view",{class:"title"}," 审批领导: "),e.createElementVNode("view",{class:"f-row aic"},[e.createElementVNode("view",{class:e.normalizeClass([{choose:null==y.value},{choosed:null!=y.value}])},e.toDisplayString(null!=y.value?v.value[y.value].realname:"请选择"),3),e.createVNode(s,{type:"bottom",color:"#333333"})])])],40,["value","range"])):e.createCommentVNode("",!0),e.createElementVNode("view",{class:"f-row aic jcb input_box"},[e.createElementVNode("view",{class:"title"}," 请假地点: "),e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":i[4]||(i[4]=e=>_.value=e),placeholder:"请输入","nplaceholder-style":"font-size: 28rpx;color: #999999;"},null,512),[[e.vModelText,_.value]])]),e.createElementVNode("view",{class:"f-row aic jcb input_box"},[e.createElementVNode("view",{class:"title"}," 请假事由: "),e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":i[5]||(i[5]=e=>S.value=e),placeholder:"请输入","placeholder-style":"font-size: 28rpx;color: #999999;"},null,512),[[e.vModelText,S.value]])]),e.createElementVNode("view",{class:"f-row aic jcb input_box"},[e.createElementVNode("view",{class:"title"}," 上传附件: "),e.createVNode(r,{onSelect:x,"image-styles":E})])]),e.createElementVNode("view",{class:"btn f-col aic"},[e.createElementVNode("view",{onClick:D}," 提交 ")])],2)}}},is=q(ns,[["__scopeId","data-v-6e3acbe9"]]),as=q({__name:"index",setup(t){const i=H(),a=()=>{uni.navigateBack()};return(t,s)=>{const r=n(e.resolveDynamicComponent("uni-icons"),W);return e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass(["content",{gray:1==e.unref(i).isgray}])},[e.createVNode(xe,null,{default:e.withCtx((()=>[e.createElementVNode("view",{class:"nav_box f-row aic"},[e.createElementVNode("view",{class:"back",onClick:a},[e.createVNode(r,{type:"left",size:"20",color:"#fff"})]),e.createElementVNode("view",{class:"avatar"},[e.createElementVNode("image",{src:e.unref(i).userinfo.avatar,mode:""},null,8,["src"])]),e.createElementVNode("view",{class:"f-col"},[e.createElementVNode("view",{class:"name"},e.toDisplayString(e.unref(i).userinfo.realname),1),e.createElementVNode("view",{class:"position"},e.toDisplayString(e.unref(i).role),1)])])])),_:1}),e.createElementVNode("view",{class:"time_box f-row aic jcb"},[e.createElementVNode("view",{class:"box"},[e.createElementVNode("view",{class:"time f-row aic"},[e.createElementVNode("view",{class:""}," 上班 9:30 "),e.createElementVNode("image",{src:"/static/checkin/chenggong.png",mode:""})]),e.createElementVNode("view",{class:"text"}," 重庆市渝北区上弯路 ")]),e.createElementVNode("view",{class:"box"},[e.createElementVNode("view",{class:"time f-row aic"},[e.createElementVNode("view",{class:""}," 下班 16:30 "),e.createElementVNode("image",{src:"/static/checkin/shibai.png",mode:""})]),e.createElementVNode("view",{class:"text"}," 打卡已超时 ")])]),e.createElementVNode("view",{class:"checkin"},[e.createElementVNode("view",{class:"f-col aic"},[e.createElementVNode("view",{class:"status f-col aic"},[e.createElementVNode("image",{src:"/static/checkin/position4.png",mode:""}),e.createElementVNode("text",null,"打卡失败")]),e.createElementVNode("view",{class:e.normalizeClass(["circle","f-col","aic","out","check","success","fail"])},[e.createElementVNode("view",{class:"title"}," 上班打卡 "),e.createElementVNode("view",{class:"time"}," 9:00 "),e.createElementVNode("view",{class:"ontime"}," 已超时 ")])])])],2)}}},[["__scopeId","data-v-f70ab478"]]),ss=q({__name:"useredit",setup(i){const a=H(),s=()=>{uni.chooseImage({count:1,success:e=>{const n=e.tempFilePaths,i="用户头像/"+a.userinfo.realname;uni.uploadFile({url:"https://36.112.48.190/jeecg-boot/sys/common/upload",filePath:n[0],name:"file",formData:{appPath:i},success:e=>{var n;uni.showLoading({title:"上传中..."}),o.avatar=JSON.parse(e.data).message,(n={avatar:o.avatar,id:a.userinfo.id},u({url:"/sys/user/editApp",method:"PUT",data:n})).then((e=>{e&&uni.showToast({title:e,icon:"success",duration:2e3})})).catch((e=>{t("log","at pages/useredit/useredit.vue:97",e)}))},fail(e){t("log","at pages/useredit/useredit.vue:101","图片上传出错",e)}})}})},o=e.reactive({avatar:"",realname:"",phone:""}),l=()=>{uni.showModal({title:"退出登录",content:"您确认要退出登录吗?",success(e){e.confirm&&(uni.removeStorageSync("token"),uni.removeStorageSync("user"),uni.removeStorageSync("role"),uni.removeStorageSync("logintime"),uni.reLaunch({url:"/pages/login/login"}))}})};return r((()=>{uni.setNavigationBarColor({frontColor:"#ffffff",backgroundColor:"#bebebe"})})),(t,i)=>{const r=n(e.resolveDynamicComponent("uni-icons"),W);return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("view",{class:e.normalizeClass(["content",{gray:1==e.unref(a).isgray}])},[e.createElementVNode("view",{class:"box"},[e.createElementVNode("view",null,"头像"),e.createElementVNode("view",{style:{display:"flex","align-items":"center"}},[e.createElementVNode("button",{class:"head-btn",onClick:s},[o.avatar?(e.openBlock(),e.createElementBlock("image",{key:1,class:"head-img",src:e.unref(Re)(o.avatar)},null,8,["src"])):(e.openBlock(),e.createElementBlock("image",{key:0,class:"head-img",src:e.unref(Re)(e.unref(a).userinfo.avatar),mode:""},null,8,["src"]))]),e.createVNode(r,{type:"right",size:"24"})])]),e.createElementVNode("view",{class:"box",style:{"padding-top":"30rpx","padding-bottom":"30rpx"}},[e.createElementVNode("view",null,"姓名"),e.withDirectives(e.createElementVNode("input",{disabled:"",style:{"text-align":"right"},type:"nickname","placeholder-style":"font-size: 32rpx;color: #999999;","onUpdate:modelValue":i[0]||(i[0]=t=>e.unref(a).userinfo.realname=t),placeholder:"请输入姓名"},null,512),[[e.vModelText,e.unref(a).userinfo.realname]])]),e.createElementVNode("view",{class:"box",style:{"padding-top":"30rpx","padding-bottom":"30rpx"}},[e.createElementVNode("view",null,"手机号"),e.withDirectives(e.createElementVNode("input",{disabled:"",style:{"text-align":"right"},type:"nickname","onUpdate:modelValue":i[1]||(i[1]=t=>e.unref(a).userinfo.phone=t),placeholder:"请输入手机号","placeholder-style":"font-size: 32rpx;color: #999999;"},null,512),[[e.vModelText,e.unref(a).userinfo.phone]])]),e.createElementVNode("view",{class:"box",style:{"padding-top":"30rpx","padding-bottom":"30rpx"}},[e.createElementVNode("view",null,"劳动合同号"),e.withDirectives(e.createElementVNode("input",{style:{"text-align":"right"},type:"nickname",disabled:"","onUpdate:modelValue":i[2]||(i[2]=t=>e.unref(a).userinfo.workNo=t),placeholder:"请输入劳动合同号","placeholder-style":"font-size: 32rpx;color: #999999;"},null,512),[[e.vModelText,e.unref(a).userinfo.workNo]])])],2),e.createElementVNode("view",{class:"line"}),e.createElementVNode("view",{class:"btn",onClick:l}," 退出登录 ")],64)}}},[["__scopeId","data-v-3dbb4317"]]),rs=q({__name:"address",setup(t){const n=H();return(t,i)=>(e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass(["content",{gray:1==e.unref(n).isgray}])},[e.createElementVNode("view",{class:"list"},[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(2,((t,n)=>e.createElementVNode("view",{class:"item",key:n},[e.createElementVNode("view",{class:"province f-row aic"},[e.createElementVNode("view",{class:""}," 浙江省,杭州市 "),e.createElementVNode("image",{src:"/static/my/default.png",mode:""})]),e.createElementVNode("view",{class:"address f-row jcb"},[e.createElementVNode("view",{class:""}," 重庆 重庆市 渝北区 龙溪街道花卉园东路黄金 宝高级住宅小区 "),e.createElementVNode("image",{src:"/static/my/edit.png",mode:""})]),e.createElementVNode("view",{class:"set f-row aic jcb"},[e.createElementVNode("view",{class:"f-row aic"},[e.createElementVNode("image",{src:"/static/login/nocheck.png",mode:""}),e.createTextVNode(" 设为默认地址 ")]),e.createElementVNode("view",{class:""}," 删除 ")])]))),64))]),e.createElementVNode("view",{class:"btn f-col aic"},[e.createElementVNode("view",{class:"",onClick:i[0]||(i[0]=e=>{var t;Ne(t="/pages/useredit/add_address",(()=>{uni.navigateTo({url:t})}))})}," +添加收货地址 ")])],2))}},[["__scopeId","data-v-837db36d"]]),os=q({__name:"add_address",setup(t){const n=H();return(t,i)=>(e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass(["content",{gray:1==e.unref(n).isgray}])},[e.createElementVNode("view",{class:"area f-row jcb"},[e.createElementVNode("view",{class:"title topic"}," 所在地区 "),e.createElementVNode("input",{type:"text",placeholder:"省、市、区、街道"})]),e.createElementVNode("view",{class:"area f-row jcb"},[e.createElementVNode("view",{class:"title topic"}," 详细地址 "),e.createElementVNode("textarea",{placeholder:"小区楼栋/乡村名称"})]),e.createElementVNode("view",{class:"area f-row jcb"},[e.createElementVNode("view",{class:"title"}," 设为默认地址 "),e.createElementVNode("image",{src:"/static/login/checked.png",mode:""})]),e.createElementVNode("view",{class:"btn f-col aic"},[e.createElementVNode("view",{class:""}," 保存 ")])],2))}},[["__scopeId","data-v-c71fcfcd"]]),ls=q({__name:"addressbook",setup(t){const n=H();return(t,i)=>(e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass({gray:1==e.unref(n).isgray})},[e.createElementVNode("view",{class:"list"},[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(4,((t,n)=>e.createElementVNode("view",{class:"item f-row aic jcb",key:n},[e.createElementVNode("view",{class:"user f-row aic"},[e.createElementVNode("image",{src:"",mode:""}),e.createElementVNode("view",{class:"name_job"},[e.createElementVNode("view",{class:"name"}," 我是晴天 "),e.createElementVNode("view",{class:"job"}," 销售部-销售总监 ")])]),e.createElementVNode("view",{class:"btn"}," 电话联系 ")]))),64))])],2))}},[["__scopeId","data-v-e9ce91fd"]]),cs=q({__name:"safeCom",setup:t=>(t,n)=>(e.openBlock(),e.createElementBlock("view",{class:"list f-row aic jcb"},[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(20,((t,i)=>e.createElementVNode("view",{class:"item",key:i,onClick:n[0]||(n[0]=e=>{var t;Ne(t="/pages/safe/detail",(()=>{uni.navigateTo({url:t})}))})},[e.createElementVNode("view",{class:""},[e.createElementVNode("image",{src:"",mode:""})]),e.createElementVNode("view",{class:"text"}," 五月天“突然好想你”线上演唱会精彩回放 ")]))),64))]))},[["__scopeId","data-v-bc41e6b3"]]),us=q({__name:"manage",setup(t){const i=H(),a=e.ref(!0),s=e.ref("");return(t,r)=>{const o=n(e.resolveDynamicComponent("uni-icons"),W);return e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass(["content",{gray:1==e.unref(i).isgray}])},[e.createVNode(xe,null,{default:e.withCtx((()=>[e.createElementVNode("view",{class:"nav_box f-row aic jcb"},[e.createElementVNode("view",{class:"back f-row aic",onClick:r[0]||(r[0]=(...e)=>t.back&&t.back(...e))},[e.createVNode(o,{type:"left",size:"20",color:"#fff"})]),e.createElementVNode("view",{class:"search f-row aic"},[e.withDirectives(e.createElementVNode("input",{type:"text","onUpdate:modelValue":r[1]||(r[1]=e=>s.value=e),onConfirm:r[2]||(r[2]=(...e)=>t.search&&t.search(...e)),onBlur:r[3]||(r[3]=e=>a.value=!s.value),onFocus:r[4]||(r[4]=e=>a.value=!1)},null,544),[[e.vModelText,s.value]]),a.value?(e.openBlock(),e.createElementBlock("view",{key:0,class:"f-row aic"},[e.createElementVNode("image",{src:"/static/search.png",mode:""}),e.createElementVNode("text",null,"搜索")])):e.createCommentVNode("",!0)])])])),_:1}),e.createElementVNode("view",{class:""},[e.createVNode(cs)])],2)}}},[["__scopeId","data-v-02e8f217"]]),ds=q({__name:"dataCom",props:{title:{type:String,default:""},list:{type:Array,default:function(){return[]}}},setup(t){e.useCssVars((e=>({"09ebbe2f":s.value})));const i=t,a=e.ref(!1),s=e.ref(null);return e.watch((()=>i.list),(()=>{e.nextTick((()=>{uni.createSelectorQuery().select(".data_box").boundingClientRect((e=>{s.value=((null==e?void 0:e.height)||0)+"px"})).exec()}))}),{immediate:!0}),(i,s)=>{const r=n(e.resolveDynamicComponent("uni-icons"),W);return e.openBlock(),e.createElementBlock("view",{class:""},[e.createElementVNode("view",{class:"info"},[e.createElementVNode("view",{class:"item_box"},[e.createElementVNode("view",{class:"item"},[e.createElementVNode("view",{class:"title_box f-row aic jcb"},[e.createElementVNode("view",{class:"title"},e.toDisplayString(t.title),1),t.list.length>6?(e.openBlock(),e.createElementBlock("view",{key:0,class:"f-row aic more",onClick:s[0]||(s[0]=e=>a.value=!a.value)},[e.createElementVNode("text",null,e.toDisplayString(a.value?"收起":"展开"),1),a.value?(e.openBlock(),e.createBlock(r,{key:1,type:"up",color:"#999999"})):(e.openBlock(),e.createBlock(r,{key:0,type:"down",color:"#999999"}))])):e.createCommentVNode("",!0)]),e.createElementVNode("view",{class:e.normalizeClass(["data_wrapper",{close:t.list.length>6&&a.value}])},[e.createElementVNode("view",{class:"data_box f-row aic"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.list,((t,n)=>(e.openBlock(),e.createElementBlock("view",{class:"data f-col aic"},[e.createElementVNode("view",{class:""},e.toDisplayString(null==t?void 0:t.dailyVolume),1),e.createElementVNode("text",null,e.toDisplayString(t.gas),1)])))),256))])],2)])])])])}}},[["__scopeId","data-v-40acdf41"]]),hs={__name:"index",setup(t){const n=H(),i=e.ref([]),a=e.ref([]);return r((e=>{i.value=JSON.parse(e.shishi),a.value=JSON.parse(e.product)})),(t,s)=>(e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass(["f-col","aic",{gray:1==e.unref(n).isgray}])},[e.createVNode(ds,{title:"实时输差",list:i.value},null,8,["list"]),e.createVNode(ds,{title:"偏远计量点",list:i.value},null,8,["list"]),e.createVNode(ds,{title:"生产实时数据",list:a.value},null,8,["list"])],2))}},ps={en:{"uni-load-more.contentdown":"Pull up to show more","uni-load-more.contentrefresh":"loading...","uni-load-more.contentnomore":"No more data"},"zh-Hans":{"uni-load-more.contentdown":"上拉显示更多","uni-load-more.contentrefresh":"正在加载...","uni-load-more.contentnomore":"没有更多数据了"},"zh-Hant":{"uni-load-more.contentdown":"上拉顯示更多","uni-load-more.contentrefresh":"正在加載...","uni-load-more.contentnomore":"沒有更多數據了"}};let fs;setTimeout((()=>{fs=uni.getSystemInfoSync().platform}),16);const{t:ms}=ge(ps);const gs=q({name:"UniLoadMore",emits:["clickLoadMore"],props:{status:{type:String,default:"more"},showIcon:{type:Boolean,default:!0},iconType:{type:String,default:"auto"},iconSize:{type:Number,default:24},color:{type:String,default:"#777777"},contentText:{type:Object,default:()=>({contentdown:"",contentrefresh:"",contentnomore:""})},showText:{type:Boolean,default:!0}},data:()=>({webviewHide:!1,platform:fs,imgBase64:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyJpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNiAoV2luZG93cykiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6QzlBMzU3OTlEOUM0MTFFOUI0NTZDNERBQURBQzI4RkUiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6QzlBMzU3OUFEOUM0MTFFOUI0NTZDNERBQURBQzI4RkUiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDpDOUEzNTc5N0Q5QzQxMUU5QjQ1NkM0REFBREFDMjhGRSIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDpDOUEzNTc5OEQ5QzQxMUU5QjQ1NkM0REFBREFDMjhGRSIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/Pt+ALSwAAA6CSURBVHja1FsLkFZVHb98LM+F5bHL8khA1iSeiyQBCRM+YGqKUnnJTDLGI0BGZlKDIU2MMglUiDApEZvSsZnQtBRJtKwQNKQMFYeRDR10WOLd8ljYXdh+v8v5fR3Od+797t1dnOnO/Ofce77z+J//+b/P+ZqtXbs2sJ9MJhNUV1cHJ06cCJo3bx7EPc2aNcvpy7pWrVoF+/fvDyoqKoI2bdoE9fX1F7TjN8a+EXBn/fkfvw942Tf+wYMHg9mzZwfjxo0LDhw4EPa1x2MbFw/fOGfPng1qa2tzcCkILsLDydq2bRsunpOTMM7TD/W/tZDZhPdeKD+yGxHhdu3aBV27dg3OnDlzMVANMheLAO3btw8KCwuDmpoaX5OxbgUIMEq7K8IcPnw4KCsrC/r37x8cP378/4cAXAB3vqSkJMuiDhTkw+XcuXNhOWbMmKBly5YhUT8xArhyFvP0BfwRsAuwxJZJsm/nzp2DTp06he/OU+cZ64K6o0ePBkOHDg2GDx8e6gEbJ5Q/NHNuAJQ1hgBeHUDlR7nVTkY8rQAvAi4z34vR/mPs1FoRsaCgIJThI0eOBC1atEiFGGV+5MiRoS45efJkqFjJFXV1dQuA012m2WcwTw98fy6CqBdsaiIO4CScrGPHjvk4odhavPquRtFWXEC25VgkREKOCh/qDSq+vn37htzD/mZTOmOc5U7zKzBPEedygWshcDyWvs30igAbU+6oyMgJBCFhwQE0fccxN60Ay9iebbjoDh06hMowjQxT4fXq1SskArmHZpkArvixp/kWzHdMeArExSJEaiXIjjRjRJ4DaAGWpibLzXN3Fm1vA5teBgh3j1Rv3bp1YgKwPdmf2p9zcyNYYgPKMfY0T5f5nNYdw158nJ8QawW4CLKwiOBSEgO/hok2eBydR+3dYH+PLxA5J8Vv0KBBwenTp0P2JWAx6+yFEBfs8lMY+y0SWMBNI9E4ThKi58VKTg3FQZS1RQF1cz27eC0QHMu+3E0SkUowjhVt5VdaWhp07949ZHv2Qd1EjDXM2cla1M0nl3GxAs3J9yREzyTdFVKVFOaE9qRA8GM0WebRuo9JGZKA7Mv2SeS/Z8+eoQ9BArMfFrLGo6jvxbhHbJZnKX2Rzz1O7QhJJ9Cs2ZMaWIyq/zhdeqPNfIoHd58clIQD+JSXl4dKlyIAuBdVXZwFVWKspSSoxE++h8x4k3uCnEhE4I5KwRiFWGOU0QWKiCYLbdoRMRKAu2kQ9vkfLU6dOhX06NEjlH+yMRZSinnuyWnYosVcji8CEA/6Cg2JF+IIUBqnGKUTCNwtwBN4f89RiK1R96DEgO2o0NDmtEdvVFdVVYV+P3UAPUEs6GFwV3PHmXkD4vh74iDFJysVI/MlaQhwKeBNTLYX5VuA8T4/gZxA4MRGFxDB6R7OmYPfyykGRJbyie+XnGYnQIC/coH9+vULiYrxrkL9ZA9+0ykaHIfEpM7ge8TiJ2CsHYwyMfafAF1yCGBHYIbCVDjDjKt7BeB51D+LgQa6OkG7IDYEEtvQ7lnXLKLtLdLuJBpE4gPUXcW2+PkZwOex+4cGDhwYDBkyRL7/HFcEwUGPo/8uWRUpYnfxGHco8HkewLHLyYmAawAPuIFZxhOpDfJQ8gbUv41yORAptMWBNr6oqMhWird5+u+iHmBb2nhjDV7HWBNQTgK8y11l5NetWzc5ULscAtSj7nbNI0skhWeUZCc0W4nyH/jO4Vz0u1IeYhbk4AiwM6tjxIWByHsoZ9qcIBPJd/y+DwPfBESOmCa/QF3WiZHucLlEDpNxcNhmheEOPgdQNx6/VZFQzFZ5TN08AHXQt2Ii3EdyFuUsPtTcGPhW5iMiCNELvz+Gdn9huG4HUJaW/w3g0wxV0XaG7arG2WeKiUWYM4Y7GO5ezshTARbbWGw/DvXkpp/ivVvE0JVoMxN4rpGzJMhE5Pl+xlATsDIqikP9F9D2z3h9nOksEUFhK+qO4rcPkoalMQ/HqJLIyb3F3JdjrCcw1yZ8joyJLR5gCo54etlag7qIoeNh1N1BRYj3DTFJ0elotxPlVzkGuYAmL0VSJVGAJA41c4Z6A3BzTLfn0HYwYKEI6CUAMzZEWvLsIcQOo1AmmyyM72nHJCfYsogflGV6jEk9vyQZXSuq6w4c16NsGcGZbwOPr+H1RkOk2LEzjNepxQkihHSCQ4ynAYNRx2zMKV92CQMWqj8J0BRE8EShxRFN6YrfCRhC0x3r/Zm4IbQCcmJoV0kMamllccR6FjHqUC5F2R/wS2dcymOlfAKOS4KmzQb5cpNC2MC7JhVn5wjXoJ44rYhLh8n0eXOCorJxa7POjbSlCGVczr34/RsAmrcvo9s+wGp3tzVhntxiXiJ4nvEYb4FJkf0O8HocAePmLvCxnL0AORraVekJk6TYjDabRVXfRE2lCN1h6ZQRN1+InUbsCpKwoBZHh0dODN9JBCUffItXxEavTQkUtnfTVAplCWL3JISz29h4NjotnuSsQKJCk8dF+kJR6RARjrqFVmfPnj3ZbK8cIJ0msd6jgHPGtfVTQ8VLmlvh4mct9sobRmPic0DyDQQnx/NlfYUgyz59+oScsH379pAwXABD32nTpoUHIToESeI5mnbE/UqDdyLcafEBf2MCqgC7NwxIbMREJQ0g4D4sfJwnD+AmRrII05cfMWJE+L1169bQr+fip06dGp4oJ83lmYd5wj/EmMa4TaHivo4EeCguYZBnkB5g2aWA69OIEnUHOaGysjIYMGBAMGnSpODYsWPZwCpFmm4lNq+4gSLQA7jcX8DwtjEyRC8wjabnXEx9kfWnTJkSJkAo90xpJVV+FmcVNeYAF5zWngS4C4O91MBxmAv8blLEpbjI5sz9MTdAhcgkCT1RO8mZkAjfiYpTEvStAS53Uw1vAiUGgZ3GpuQEYvoiBqlIan7kSDHnTwJQFNiPu0+5VxCVYhcZIjNrdXUDdp+Eq5AZ3Gkg8QAyVZRZIk4Tl4QAbF9cXJxNYZMAtAokgs4BrNxEpCtteXg7DDTMDKYNSuQdKsnJBek7HxewvxaosWxLYXtw+cJp18217wql4aKCfBNoEu0O5VU+PhctJ0YeXD4C6JQpyrlpSLTojpGGGN5YwNziChdIZLk4lvLcFJ9jMX3QdiImY9bmGQU+TRUL5CHITTRlgF8D9ouD1MfmLoEPl5xokIumZ2cfgMpHt47IW9N64Hsh7wQYYjyIugWuF5fCqYncXRd5vPMWyizzvhi/32+nvG0dZc9vR6fZOu0md5e+uC408FvKSIOZwXlGvxPv95izA2Vtvg1xKFWARI+vMX66HUhpQQb643uW1bSjuTWyw2SBvDrBvjFic1eGGlz5esq3ko9uSIlBRqPuFcCv8F4WIcN12nVaBd0SaYwI6PDDImR11JkqgHcPmQssjxIn6bUshygDFJUTxPMpHk+jfjPgupgdnYV2R/g7xSjtpah8RJBewhwf0gGK6XI92u4wXFEU40afJ4DN4h5LcAd+40HI3JgJecuT0c062W0i2hQJUTcxan3/CMW1PF2K6bbA+Daz4xRs1D3Br1Cm0OihKCqizW78/nXAF/G5TXrEcVzaNMH6CyMswqsAHqDyDLEyou8lwOXnKF8DjI6KjV3KzMBiXkDH8ij/H214J5A596ekrZ3F0zXlWeL7+P5eUrNo3/QwC15uxthuzidy7DzKRwEDaAViiDgKbTbz7CJnzo0bN7pIfIiid8SuPwn25o3QCmpnyjlZkyxPP8EomCJzrGb7GJMx7tNsq4MT2xMUYaiErZOluTzKsnz3gwCeCZyVRZJfYplNEokEjwrPtxlxjeYAk+F1F74VAzPxQRNYYdtpOUvWs8J1sGhBJMNsb7igN8plJs1eSmLIhLKE4rvaCX27gOhLpLOsIzJ7qn/i+wZzcvSOZ23/du8TZjwV8zHIXoP4R3ifBxiFz1dcVpa3aPntPE+c6TmIWE9EtcMmAcPdWAhYhAXxcLOQi9L1WhD1Sc8p1d2oL7XGiRKp8F4A2i8K/nfI+y/gsTDJ/YC/8+AD5Uh04KHiGl+cIFPnBDDrPMjwRGkLXyxO4VGbfQWnDH2v0bVWE3C9QOXlepbgjEfIJQI6XDG3z5ahD9cw2pS78ipB85wyScNTvsVzlzzhL8/jRrnmVjfFJK/m3m4nj9vbgQTguT8XZTjsm672R5uJKEaQmBI/c58gyus8ZDagLpEVSJBIyHp4jn++xqPV71OgQgJYEWOtZ/haxRtKmWOBu8xdBLftWltsY84zE6WIEy/eIOWL+BaayMx+KHtL7EAkqdNDLiEXmEMUHniedtJqg9HmZtfvt26vNi0BdG3Ft3g8ZOf7PAu59TxtzivLNIekyi+wD1i8CuUiD9FXAa8C+/xS3JPmZnomyc7H+fb4/Se0bk41Fel621r4cgVxbq91V4jVqwB7HTe2M7jgB+QWHavZkDRPmZcASoZEmBx6i75bGjPcMdL4/VKGFAGWZkGzPG0XAbdL9A81G5LOmUnC9hHKJeO7dcUMjblSl12867ElFTtaGl20xvvLGPdVz/8TVuU7y0x1PG7vtNg24oz9Uo/Z412++VFWI7Fcog9tu9Lm6gvRmIPv9x1xmQAu6RDkXtbOtlGEmpgD5Nvnyc0dcv0EE6cfdi1HmhMf9wDF3k3gtRvEedhxjpgfqPb9PU9iEJHnyOUA7bQUXh6kq/D7l2iTjWv7XOD530BDr8jIrus+srXjt4MzumJMHuTsBa63YKE1+RR5lBjEikCCnWKWiHdzOgKO+nRIBAF88za/IFmJ3eMZov4CYxGBabcpGL8EYx+SeMXJeRwHNsV/h+vdxeuhEpN3ZyNY78Gm2fknJxVGhyjixPiQvVkNzT1elD9Py/aTAL64Hb9vcYmC9zfdXdT/C1LeGbg4rnBaAihDFJH12W5ulfNCNe/xTsP3bp8ikzJs5BF+5PNfAQYAPaseTdsEcaYAAAAASUVORK5CYII="}),computed:{iconSnowWidth(){return 2*(Math.floor(this.iconSize/24)||1)},contentdownText(){return this.contentText.contentdown||ms("uni-load-more.contentdown")},contentrefreshText(){return this.contentText.contentrefresh||ms("uni-load-more.contentrefresh")},contentnomoreText(){return this.contentText.contentnomore||ms("uni-load-more.contentnomore")}},mounted(){var e=getCurrentPages(),t=e[e.length-1].$getAppWebview();t.addEventListener("hide",(()=>{this.webviewHide=!0})),t.addEventListener("show",(()=>{this.webviewHide=!1}))},methods:{onClick(){this.$emit("clickLoadMore",{detail:{status:this.status}})}}},[["render",function(t,n,i,a,s,r){return e.openBlock(),e.createElementBlock("view",{class:"uni-load-more",onClick:n[0]||(n[0]=(...e)=>r.onClick&&r.onClick(...e))},[!s.webviewHide&&("circle"===i.iconType||"auto"===i.iconType&&"android"===s.platform)&&"loading"===i.status&&i.showIcon?(e.openBlock(),e.createElementBlock("view",{key:0,style:e.normalizeStyle({width:i.iconSize+"px",height:i.iconSize+"px"}),class:"uni-load-more__img uni-load-more__img--android-MP"},[e.createElementVNode("view",{class:"uni-load-more__img-icon",style:e.normalizeStyle({borderTopColor:i.color,borderTopWidth:i.iconSize/12})},null,4),e.createElementVNode("view",{class:"uni-load-more__img-icon",style:e.normalizeStyle({borderTopColor:i.color,borderTopWidth:i.iconSize/12})},null,4),e.createElementVNode("view",{class:"uni-load-more__img-icon",style:e.normalizeStyle({borderTopColor:i.color,borderTopWidth:i.iconSize/12})},null,4)],4)):!s.webviewHide&&"loading"===i.status&&i.showIcon?(e.openBlock(),e.createElementBlock("view",{key:1,style:e.normalizeStyle({width:i.iconSize+"px",height:i.iconSize+"px"}),class:"uni-load-more__img uni-load-more__img--ios-H5"},[e.createElementVNode("image",{src:s.imgBase64,mode:"widthFix"},null,8,["src"])],4)):e.createCommentVNode("",!0),i.showText?(e.openBlock(),e.createElementBlock("text",{key:2,class:"uni-load-more__text",style:e.normalizeStyle({color:i.color})},e.toDisplayString("more"===i.status?r.contentdownText:"loading"===i.status?r.contentrefreshText:r.contentnomoreText),5)):e.createCommentVNode("",!0)])}],["__scopeId","data-v-a7e112cc"]]),vs={props:{localdata:{type:[Array,Object],default:()=>[]},spaceInfo:{type:Object,default:()=>({})},collection:{type:String,default:""},action:{type:String,default:""},field:{type:String,default:""},orderby:{type:String,default:""},where:{type:[String,Object],default:""},pageData:{type:String,default:"add"},pageCurrent:{type:Number,default:1},pageSize:{type:Number,default:500},getcount:{type:[Boolean,String],default:!1},getone:{type:[Boolean,String],default:!1},gettree:{type:[Boolean,String],default:!1},manual:{type:Boolean,default:!1},value:{type:[Array,String,Number],default:()=>[]},modelValue:{type:[Array,String,Number],default:()=>[]},preload:{type:Boolean,default:!1},stepSearh:{type:Boolean,default:!0},selfField:{type:String,default:""},parentField:{type:String,default:""},multiple:{type:Boolean,default:!1},map:{type:Object,default:()=>({text:"text",value:"value"})}},data(){return{loading:!1,errorMessage:"",loadMore:{contentdown:"",contentrefresh:"",contentnomore:""},dataList:[],selected:[],selectedIndex:0,page:{current:this.pageCurrent,size:this.pageSize,count:0}}},computed:{isLocalData(){return!this.collection.length},isCloudData(){return this.collection.length>0},isCloudDataList(){return this.isCloudData&&!this.parentField&&!this.selfField},isCloudDataTree(){return this.isCloudData&&this.parentField&&this.selfField},dataValue(){return(Array.isArray(this.modelValue)?this.modelValue.length>0:null!==this.modelValue||void 0!==this.modelValue)?this.modelValue:this.value},hasValue(){return"number"==typeof this.dataValue||null!=this.dataValue&&this.dataValue.length>0}},created(){this.$watch((()=>{var e=[];return["pageCurrent","pageSize","spaceInfo","value","modelValue","localdata","collection","action","field","orderby","where","getont","getcount","gettree"].forEach((t=>{e.push(this[t])})),e}),((e,t)=>{for(let n=2;n(this.selected=e.result.data,e.result.data)))},getCloudDataTreeValue(){return this.getCommand({field:this._cloudDataPostField(),getTreePath:{startWith:`${this.selfField}=='${this.dataValue}'`}}).then((e=>{let t=[];return this._extractTreePath(e.result.data,t),this.selected=t,t}))},getCommand(e={}){let t=ja.database(this.spaceInfo);const n=e.action||this.action;n&&(t=t.action(n));const i=e.collection||this.collection;t=t.collection(i);const a=e.where||this.where;a&&Object.keys(a).length&&(t=t.where(a));const s=e.field||this.field;s&&(t=t.field(s));const r=e.orderby||this.orderby;r&&(t=t.orderBy(r));const o=void 0!==e.pageCurrent?e.pageCurrent:this.page.current,l=void 0!==e.pageSize?e.pageSize:this.page.size,c={getCount:void 0!==e.getcount?e.getcount:this.getcount,getTree:void 0!==e.gettree?e.gettree:this.gettree};return e.getTreePath&&(c.getTreePath=e.getTreePath),t=t.skip(l*(o-1)).limit(l).get(c),t},_cloudDataPostField(){let e=[this.field];return this.parentField&&e.push(`${this.parentField} as parent_value`),e.join(",")},_cloudDataTreeWhere(){let e=[],t=this.selected,n=this.parentField;if(n&&e.push(`${n} == null || ${n} == ""`),t.length)for(var i=0;inull===e.parent_value||void 0===e.parent_value||""===e.parent_value)));for(let a=0;ae.parent_value===s));r.length?n.push(r):i=!1}return{dataList:n,hasNodes:i}},_extractTree(e,t,n){let i=this.map.value;for(let a=0;a{this.loadData()}))},methods:{onPropsChange(){this._treeData=[],this.selectedIndex=0,this.$nextTick((()=>{this.loadData()}))},handleSelect(e){this.selectedIndex=e},handleNodeClick(e,t,n){if(e.disable)return;const i=this.dataList[t][n],a=i[this.map.text],s=i[this.map.value];if(t{e.length?(this._treeData.push(...e),this._updateBindData(i)):i.isleaf=!0,this.onSelectedChange(i,i.isleaf)})))},updateData(e){this._treeData=e.treeData,this.selected=e.selected,this._treeData.length?this._updateBindData():this.loadData()},onDataChange(){this.$emit("datachange")},onSelectedChange(e,t){t&&this._dispatchEvent(),e&&this.$emit("nodeclick",e)},_dispatchEvent(){this.$emit("change",this.selected.slice(0))}}},[["render",function(t,i,a,s,r,o){const l=n(e.resolveDynamicComponent("uni-load-more"),gs);return e.openBlock(),e.createElementBlock("view",{class:"uni-data-pickerview"},[t.isCloudDataList?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("scroll-view",{key:0,class:"selected-area","scroll-x":"true"},[e.createElementVNode("view",{class:"selected-list"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.selected,((n,i)=>(e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass(["selected-item",{"selected-item-active":i==t.selectedIndex}]),key:i,onClick:e=>o.handleSelect(i)},[e.createElementVNode("text",null,e.toDisplayString(n.text||""),1)],10,["onClick"])))),128))])])),e.createElementVNode("view",{class:"tab-c"},[e.createElementVNode("scroll-view",{class:"list","scroll-y":!0},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.dataList[t.selectedIndex],((n,i)=>(e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass(["item",{"is-disabled":!!n.disable}]),key:i,onClick:e=>o.handleNodeClick(n,t.selectedIndex,i)},[e.createElementVNode("text",{class:"item-text"},e.toDisplayString(n[t.map.text]),1),t.selected.length>t.selectedIndex&&n[t.map.value]==t.selected[t.selectedIndex].value?(e.openBlock(),e.createElementBlock("view",{key:0,class:"check"})):e.createCommentVNode("",!0)],10,["onClick"])))),128))]),t.loading?(e.openBlock(),e.createElementBlock("view",{key:0,class:"loading-cover"},[e.createVNode(l,{class:"load-more",contentText:t.loadMore,status:"loading"},null,8,["contentText"])])):e.createCommentVNode("",!0),t.errorMessage?(e.openBlock(),e.createElementBlock("view",{key:1,class:"error-message"},[e.createElementVNode("text",{class:"error-text"},e.toDisplayString(t.errorMessage),1)])):e.createCommentVNode("",!0)])])}],["__scopeId","data-v-c0c521c5"]])},props:{options:{type:[Object,Array],default:()=>({})},popupTitle:{type:String,default:"请选择"},placeholder:{type:String,default:"请选择"},heightMobile:{type:String,default:""},readonly:{type:Boolean,default:!1},clearIcon:{type:Boolean,default:!0},border:{type:Boolean,default:!0},split:{type:String,default:"/"},ellipsis:{type:Boolean,default:!0}},data:()=>({isOpened:!1,inputSelected:[]}),created(){this.$nextTick((()=>{this.load()}))},watch:{localdata:{handler(){this.load()},deep:!0}},methods:{clear(){this._dispatchEvent([])},onPropsChange(){this._treeData=[],this.selectedIndex=0,this.load()},load(){this.readonly?this._processReadonly(this.localdata,this.dataValue):this.isLocalData?(this.loadData(),this.inputSelected=this.selected.slice(0)):(this.isCloudDataList||this.isCloudDataTree)&&(this.loading=!0,this.getCloudDataValue().then((e=>{this.loading=!1,this.inputSelected=e})).catch((e=>{this.loading=!1,this.errorMessage=e})))},show(){this.isOpened=!0,setTimeout((()=>{this.$refs.pickerView.updateData({treeData:this._treeData,selected:this.selected,selectedIndex:this.selectedIndex})}),200),this.$emit("popupopened")},hide(){this.isOpened=!1,this.$emit("popupclosed")},handleInput(){this.readonly?this.$emit("inputclick"):this.show()},handleClose(e){this.hide()},onnodeclick(e){this.$emit("nodeclick",e)},ondatachange(e){this._treeData=this.$refs.pickerView._treeData},onchange(e){this.hide(),this.$nextTick((()=>{this.inputSelected=e})),this._dispatchEvent(e)},_processReadonly(e,t){if(e.findIndex((e=>e.children))>-1){let e;return Array.isArray(t)?(e=t[t.length-1],"object"==typeof e&&e.value&&(e=e.value)):e=t,void(this.inputSelected=this._findNodePath(e,this.localdata))}if(!this.hasValue)return void(this.inputSelected=[]);let n=[];for(let s=0;se.value==i));a&&n.push(a)}n.length&&(this.inputSelected=n)},_filterForArray(e,t){var n=[];for(let s=0;se.value==i));a&&n.push(a)}return n},_dispatchEvent(e){let t={};if(e.length){for(var n=new Array(e.length),i=0;io.handleInput&&o.handleInput(...e))},[e.renderSlot(t.$slots,"default",{options:a.options,data:r.inputSelected,error:t.errorMessage},(()=>[e.createElementVNode("view",{class:e.normalizeClass(["input-value",{"input-value-border":a.border}])},[t.errorMessage?(e.openBlock(),e.createElementBlock("text",{key:0,class:"selected-area error-text"},e.toDisplayString(t.errorMessage),1)):t.loading&&!r.isOpened?(e.openBlock(),e.createElementBlock("view",{key:1,class:"selected-area"},[e.createVNode(l,{class:"load-more",contentText:t.loadMore,status:"loading"},null,8,["contentText"])])):r.inputSelected.length?(e.openBlock(),e.createElementBlock("scroll-view",{key:2,class:"selected-area","scroll-x":"true"},[e.createElementVNode("view",{class:"selected-list"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.inputSelected,((t,n)=>(e.openBlock(),e.createElementBlock("view",{class:"selected-item",key:n},[e.createElementVNode("text",{class:"text-color"},e.toDisplayString(t.text),1),no.clear&&o.clear(...e)),["stop"]))},[e.createVNode(c,{type:"clear",color:"#c0c4cc",size:"24"})])):e.createCommentVNode("",!0),a.clearIcon&&r.inputSelected.length||a.readonly?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("view",{key:5,class:"arrow-area"},[e.createElementVNode("view",{class:"input-arrow"})]))],2)]),!0)]),r.isOpened?(e.openBlock(),e.createElementBlock("view",{key:0,class:"uni-data-tree-cover",onClick:i[2]||(i[2]=(...e)=>o.handleClose&&o.handleClose(...e))})):e.createCommentVNode("",!0),r.isOpened?(e.openBlock(),e.createElementBlock("view",{key:1,class:"uni-data-tree-dialog"},[e.createElementVNode("view",{class:"uni-popper__arrow"}),e.createElementVNode("view",{class:"dialog-caption"},[e.createElementVNode("view",{class:"title-area"},[e.createElementVNode("text",{class:"dialog-title"},e.toDisplayString(a.popupTitle),1)]),e.createElementVNode("view",{class:"dialog-close",onClick:i[3]||(i[3]=(...e)=>o.handleClose&&o.handleClose(...e))},[e.createElementVNode("view",{class:"dialog-close-plus","data-id":"close"}),e.createElementVNode("view",{class:"dialog-close-plus dialog-close-rotate","data-id":"close"})])]),e.createVNode(u,{class:"picker-view",ref:"pickerView",modelValue:t.dataValue,"onUpdate:modelValue":i[4]||(i[4]=e=>t.dataValue=e),localdata:t.localdata,preload:t.preload,collection:t.collection,field:t.field,orderby:t.orderby,where:t.where,"step-searh":t.stepSearh,"self-field":t.selfField,"parent-field":t.parentField,"managed-mode":!0,map:t.map,ellipsis:a.ellipsis,onChange:o.onchange,onDatachange:o.ondatachange,onNodeclick:o.onnodeclick},null,8,["modelValue","localdata","preload","collection","field","orderby","where","step-searh","self-field","parent-field","map","ellipsis","onChange","onDatachange","onNodeclick"])])):e.createCommentVNode("",!0)])}],["__scopeId","data-v-0b9ed1e5"]]),ks={__name:"index",setup(i){const a=H(),{proxy:s}=e.getCurrentInstance(),o=e.ref([]),l=()=>{var e;u({url:"/sys/sysDepart/queryTreeList",method:"get",data:e}).then((e=>{o.value=e.result,h=e.result[0].id,d(e.result[0].id)})).catch((e=>{t("log","at pages/userlist/index.vue:98",e)}))},c=e.ref([]),d=(e,n,i)=>{var a;(a={id:e,username:n||"",realname:i||""},u({url:"/sys/user/queryUserByDepId",method:"get",data:a})).then((e=>{e.success&&(c.value=e.result)})).catch((e=>{t("log","at pages/userlist/index.vue:113",e)}))};let h=null,p=[];const f=e=>{d(e.id),h=e.id,-1!=p.indexOf(e.title)?p.splice(p.indexOf(e.title),1,e.title):p.push(e.title)},m=e.ref([]);let g=0,v=null,y=null,w=null;r((e=>{g=e.isradio,v=e.id,w=e.reason,e.nextnode&&(y=JSON.parse(e.nextnode)),l()}));const k=e.ref(""),_=e.ref(""),b=()=>{(k.value.trim()||_.value.trim())&&(c.value=[],d(h,k.value,_.value))},E=()=>{k.value="",_.value="",c.value=[],d(h,k.value,_.value)},x=()=>{if(!m.value.length)return s.$toast("请选择被委托人");var e;(e={taskAssignee:c.value.filter((e=>e.id==m.value[0]))[0].username,taskId:v},u({url:"/act/task/taskEntrust",method:"put",data:e})).then((e=>{e.success&&(s.$toast(e.message),setTimeout((()=>{uni.navigateBack()}),2e3))}))},D=()=>{y?T():x()},T=()=>{S({taskId:v,reason:w,processModel:1,nextnode:y[0].nextnode,nextUserName:c.value.filter((e=>e.id==m.value[0]))[0].realname,nextUserId:m.value[0]}).then((e=>{s.$toast(e.message),setTimeout((()=>{uni.navigateBack()}),2e3)}))};return(i,s)=>{const r=n(e.resolveDynamicComponent("uni-data-picker"),ws),l=n(e.resolveDynamicComponent("uni-icons"),W);return e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass(["content",{gray:1==e.unref(a).isgray}])},[e.createVNode(r,{onPopupclosed:s[0]||(s[0]=e=>(e=>{t("log","at pages/userlist/index.vue:129","qqq",e)})(e)),"step-searh":!1,map:{text:"departName",value:"id"},localdata:o.value,"popup-title":"请选择部门",placeholder:"请选择部门",onNodeclick:f},null,8,["localdata"]),e.createElementVNode("view",{class:"search_box"},[e.createElementVNode("view",{class:"username f-row aic"},[e.createTextVNode(" 用户姓名:"),e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":s[1]||(s[1]=e=>_.value=e),type:"text",placeholder:"请输入姓名","placeholder-style":"color: grey;font-size: 28rpx;"},null,512),[[e.vModelText,_.value]])]),e.createElementVNode("view",{class:"username f-row aic"},[e.createTextVNode(" 用户账号:"),e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":s[2]||(s[2]=e=>k.value=e),type:"text",placeholder:"请输入账号","placeholder-style":"color: grey;font-size: 28rpx;"},null,512),[[e.vModelText,k.value]])]),e.createElementVNode("view",{class:"btn f-row aic jca"},[e.createElementVNode("view",{class:"f-row aic",onClick:b},[e.createVNode(l,{type:"search",size:"15",color:"#fff"}),e.createTextVNode(" 查询 ")]),e.createElementVNode("view",{class:"f-row aic",onClick:E},[e.createVNode(l,{type:"refreshempty",size:"15",color:"#fff"}),e.createTextVNode(" 重置 ")])])]),e.createElementVNode("view",{class:"list"},[e.createElementVNode("view",{class:"title f-row aic box"},[e.createElementVNode("view",{class:""}),e.createElementVNode("view",{class:""}," 序号 "),e.createElementVNode("view",{class:"username"}," 用户账号 "),e.createElementVNode("view",{class:""}," 用户姓名 ")]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,((t,n)=>(e.openBlock(),e.createElementBlock("view",{class:"item f-row aic box",key:n},[e.createElementVNode("view",{class:"f-row aic img",onClick:e=>(e=>{if(g){if(-1!=m.value.indexOf(e))return;m.value.splice(m.value.indexOf(e),1,e)}else-1!=m.value.indexOf(e)?m.value.splice(m.value.indexOf(e),1):m.value.push(e)})(t.id)},[m.value.includes(t.id)?(e.openBlock(),e.createElementBlock("image",{key:0,src:"/static/login/checked.png",mode:""})):(e.openBlock(),e.createElementBlock("image",{key:1,src:"/static/login/nocheck.png",mode:""}))],8,["onClick"]),e.createElementVNode("view",{class:"order"},e.toDisplayString(n+1),1),e.createElementVNode("view",{class:"username f-col aic"},[e.createElementVNode("view",{class:""},e.toDisplayString(t.username),1)]),e.createElementVNode("view",{class:"realname"},[e.createElementVNode("view",{class:""},e.toDisplayString(t.realname),1)])])))),128))]),e.createElementVNode("view",{class:"confirm f-col aic"},[e.createElementVNode("view",{class:"",onClick:D}," 确认 ")])],2)}}},_s=q(ks,[["__scopeId","data-v-a805c56c"]]),Ss=q({__name:"detail",setup(t){const n=H();return(t,i)=>(e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass(["content",{gray:1==e.unref(n).isgray}])},[e.createElementVNode("view",{class:""},[e.createElementVNode("video",{src:""}),e.createElementVNode("view",{class:"title"}," 五月天“突然好想你”线上演唱会精彩回放,这里就是标题 ")]),e.createElementVNode("view",{class:"listcom"},[e.createVNode(cs)])],2))}},[["__scopeId","data-v-ab4e5d54"]]);var bs={exports:{}};!function(e,t){e.exports=function(){var e=1e3,t=6e4,n=36e5,i="millisecond",a="second",s="minute",r="hour",o="day",l="week",c="month",u="quarter",d="year",h="date",p="Invalid Date",f=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,m=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,g={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],n=e%100;return"["+e+(t[(n-20)%10]||t[n]||t[0])+"]"}},v=function(e,t,n){var i=String(e);return!i||i.length>=t?e:""+Array(t+1-i.length).join(n)+e},y={s:v,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),i=Math.floor(n/60),a=n%60;return(t<=0?"+":"-")+v(i,2,"0")+":"+v(a,2,"0")},m:function e(t,n){if(t.date()1)return e(r[0])}else{var o=t.name;k[o]=t,a=o}return!i&&a&&(w=a),a||!i&&w},E=function(e,t){if(S(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new D(n)},x=y;x.l=b,x.i=S,x.w=function(e,t){return E(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var D=function(){function g(e){this.$L=b(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[_]=!0}var v=g.prototype;return v.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(x.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var i=t.match(f);if(i){var a=i[2]-1||0,s=(i[7]||"0").substring(0,3);return n?new Date(Date.UTC(i[1],a,i[3]||1,i[4]||0,i[5]||0,i[6]||0,s)):new Date(i[1],a,i[3]||1,i[4]||0,i[5]||0,i[6]||0,s)}}return new Date(t)}(e),this.init()},v.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},v.$utils=function(){return x},v.isValid=function(){return!(this.$d.toString()===p)},v.isSame=function(e,t){var n=E(e);return this.startOf(t)<=n&&n<=this.endOf(t)},v.isAfter=function(e,t){return E(e){l()}));const s=e.ref(Es().format("YYYY-MM")),o=e=>{s.value=e.detail.value,l()},l=()=>{let[e,n]=s.value.split("-");var i;(i={year:e,month:n},u({url:"/zhgl_zbgl/zhglZbglZbb/list",method:"get",data:i})).then((e=>{a.value=e.result.records})).catch((e=>{t("log","at pages/zhiban/index.vue:73",e)}))};return(t,n)=>(e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass(["f-col","aic",{gray:1==e.unref(i).isgray}])},[e.createElementVNode("picker",{fields:"month",mode:"date",onChange:o,value:s.value},[e.createElementVNode("view",{class:"date"},e.toDisplayString(s.value)+" 点击选择月份",1)],40,["value"]),e.createElementVNode("view",{class:"info"},[e.createElementVNode("view",{class:"info_title f-row aic"},[e.createElementVNode("view",{class:""}," 日期 "),e.createElementVNode("view",{class:""}," 带班领导 "),e.createElementVNode("view",{class:""}," 值班领导 "),e.createElementVNode("view",{class:""}," 值班干部 ")]),e.createElementVNode("view",{class:"data_box"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,((t,n)=>(e.openBlock(),e.createElementBlock("view",{class:"data f-row aic"},[e.createElementVNode("view",{class:""},e.toDisplayString(t.date),1),e.createElementVNode("view",{class:""},e.toDisplayString(t.dbld_dictText),1),e.createElementVNode("view",{class:""},e.toDisplayString(t.zbld_dictText),1),e.createElementVNode("view",{class:""},e.toDisplayString(t.zbgbrealname),1)])))),256))])])],2))}},Ds=q(xs,[["__scopeId","data-v-54de2922"]]),Ts={__name:"self",setup(n){const i=H(),a=e.ref([]);let s="";r((e=>{s=e.title,u()}));let l=1,c=!1;const u=()=>{c=!0,uni.showLoading({title:"加载中..."}),f({pageNo:l,pageSize:10,_t:(new Date).getTime(),processName:s}).then((e=>{if(e.success){if(!e.result.records.length)return Te("没有更多了~");let t=e.result.records;t.map((e=>{e.processApplyUserName=e.startUserName,e.processDefinitionName=e.prcocessDefinitionName,e.taskBeginTime=e.startTime})),a.value=[...a.value,...t],c=!1}})).catch((e=>{t("log","at pages/task/self.vue:59",e)}))},d=e=>{Ne(e,(()=>{uni.navigateTo({url:e})}))};return o((()=>{c||(l++,u())})),(t,n)=>(e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass({gray:1==e.unref(i).isgray})},[e.createVNode(ze,{onJump:d,taskArr:a.value,currentIndex:2},null,8,["taskArr"])],2))}};__definePage("pages/login/login",K),__definePage("pages/tab/index",Oe),__definePage("pages/task/todotask",Fe),__definePage("pages/tab/office",Ue),__definePage("pages/tab/my",$e),__definePage("pages/task/index",He),__definePage("pages/task/handle",Qe),__definePage("pages/talk/message_list",Xe),__definePage("pages/talk/conversation",et),__definePage("pages/talk/system",nt),__definePage("pages/document/index",it),__definePage("pages/document/detail",at),__definePage("pages/meeting/index",st),__definePage("pages/meeting/detail",rt),__definePage("pages/leave/application",is),__definePage("pages/checkin/index",as),__definePage("pages/useredit/useredit",ss),__definePage("pages/useredit/address",rs),__definePage("pages/useredit/add_address",os),__definePage("pages/useredit/addressbook",ls),__definePage("pages/safe/manage",us),__definePage("pages/product/index",hs),__definePage("pages/userlist/index",_s),__definePage("pages/safe/detail",Ss),__definePage("pages/zhiban/index",Ds),__definePage("pages/task/self",Ts);var Ns=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,62,0,62,0,63,52,53,54,55,56,57,58,59,60,61,0,0,0,0,0,0,0,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,0,0,0,0,63,0,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];const Cs={getRandomValues(e){if(!(e instanceof Int8Array||e instanceof Uint8Array||e instanceof Int16Array||e instanceof Uint16Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Uint8ClampedArray))throw new Error("Expected an integer array");if(e.byteLength>65536)throw new Error("Can only request a maximum of 65536 bytes");var t;return function(e,t){for(var n,i=e.length,a="="===e[i-2]?2:"="===e[i-1]?1:0,s=0,r=i-a&4294967292,o=0;o>16&255,t[s++]=n>>8&255,t[s++]=255&n;1===a&&(n=Ns[e.charCodeAt(o)]<<10|Ns[e.charCodeAt(o+1)]<<4|Ns[e.charCodeAt(o+2)]>>2,t[s++]=n>>8&255,t[s++]=255&n),2===a&&(n=Ns[e.charCodeAt(o)]<<2|Ns[e.charCodeAt(o+1)]>>4,t[s++]=255&n)}((t="DCloud-Crypto",weex.requireModule(t)).getRandomValues(e.byteLength),new Uint8Array(e.buffer,e.byteOffset,e.byteLength)),e}};function Vs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Is={exports:{}}; +/*! For license information please see gtpush-min.js.LICENSE.txt */!function(e,t){var n;self,n=()=>(()=>{var e={4736:(e,t,n)=>{var i;e=n.nmd(e);var a=function(e){var t=1e7,n=9007199254740992,i=h(n),s="0123456789abcdefghijklmnopqrstuvwxyz",r="function"==typeof BigInt;function o(e,t,n,i){return void 0===e?o[0]:void 0===t||10==+t&&!n?Y(e):H(e,t,n,i)}function l(e,t){this.value=e,this.sign=t,this.isSmall=!1}function c(e){this.value=e,this.sign=e<0,this.isSmall=!0}function u(e){this.value=e}function d(e){return-n0?Math.floor(e):Math.ceil(e)}function v(e,n){var i,a,s=e.length,r=n.length,o=new Array(s),l=0,c=t;for(a=0;a=c?1:0,o[a]=i-l*c;for(;a0&&o.push(l),o}function y(e,t){return e.length>=t.length?v(e,t):v(t,e)}function w(e,n){var i,a,s=e.length,r=new Array(s),o=t;for(a=0;a0;)r[a++]=n%o,n=Math.floor(n/o);return r}function k(e,n){var i,a,s=e.length,r=n.length,o=new Array(s),l=0,c=t;for(i=0;i0;)r[a++]=l%o,l=Math.floor(l/o);return r}function E(e,t){for(var n=[];t-- >0;)n.push(0);return n.concat(e)}function x(e,t){var n=Math.max(e.length,t.length);if(n<=30)return S(e,t);n=Math.ceil(n/2);var i=e.slice(n),a=e.slice(0,n),s=t.slice(n),r=t.slice(0,n),o=x(a,r),l=x(i,s),c=x(y(a,i),y(r,s)),u=y(y(o,E(k(k(c,o),l),n)),E(l,2*n));return f(u),u}function D(e,n,i){return new l(e=0;--n)a=(s=1e7*a+e[n])-(i=g(s/t))*t,o[n]=0|i;return[o,0|a]}function C(e,n){var i,a=Y(n);if(r)return[new u(e.value/a.value),new u(e.value%a.value)];var s,d=e.value,v=a.value;if(0===v)throw new Error("Cannot divide by zero");if(e.isSmall)return a.isSmall?[new c(g(d/v)),new c(d%v)]:[o[0],e];if(a.isSmall){if(1===v)return[e,o[0]];if(-1==v)return[e.negate(),o[0]];var y=Math.abs(v);if(y=0;a--){for(i=h-1,y[a+d]!==g&&(i=Math.floor((y[a+d]*h+y[a+d-1])/g)),s=0,r=0,l=w.length,o=0;oc&&(s=(s+1)*h),i=Math.ceil(s/r);do{if(V(o=b(n,i),d)<=0)break;i--}while(i);u.push(i),d=k(d,o)}return u.reverse(),[p(u),p(d)]}(d,v),s=i[0];var S=e.sign!==a.sign,E=i[1],x=e.sign;return"number"==typeof s?(S&&(s=-s),s=new c(s)):s=new l(s,S),"number"==typeof E?(x&&(E=-E),E=new c(E)):E=new l(E,x),[s,E]}function V(e,t){if(e.length!==t.length)return e.length>t.length?1:-1;for(var n=e.length-1;n>=0;n--)if(e[n]!==t[n])return e[n]>t[n]?1:-1;return 0}function I(e){var t=e.abs();return!t.isUnit()&&(!!(t.equals(2)||t.equals(3)||t.equals(5))||!(t.isEven()||t.isDivisibleBy(3)||t.isDivisibleBy(5))&&(!!t.lesser(49)||void 0))}function B(e,t){for(var n,i,s,r=e.prev(),o=r,l=0;o.isEven();)o=o.divide(2),l++;e:for(i=0;i=0?i=k(e,t):(i=k(t,e),n=!n),"number"==typeof(i=p(i))?(n&&(i=-i),new c(i)):new l(i,n)}(n,i,this.sign)},l.prototype.minus=l.prototype.subtract,c.prototype.subtract=function(e){var t=Y(e),n=this.value;if(n<0!==t.sign)return this.add(t.negate());var i=t.value;return t.isSmall?new c(n-i):_(i,Math.abs(n),n>=0)},c.prototype.minus=c.prototype.subtract,u.prototype.subtract=function(e){return new u(this.value-Y(e).value)},u.prototype.minus=u.prototype.subtract,l.prototype.negate=function(){return new l(this.value,!this.sign)},c.prototype.negate=function(){var e=this.sign,t=new c(-this.value);return t.sign=!e,t},u.prototype.negate=function(){return new u(-this.value)},l.prototype.abs=function(){return new l(this.value,!1)},c.prototype.abs=function(){return new c(Math.abs(this.value))},u.prototype.abs=function(){return new u(this.value>=0?this.value:-this.value)},l.prototype.multiply=function(e){var n,i=Y(e),a=this.value,s=i.value,r=this.sign!==i.sign;if(i.isSmall){if(0===s)return o[0];if(1===s)return this;if(-1===s)return this.negate();if((n=Math.abs(s))0}(a.length,s.length)?new l(x(a,s),r):new l(S(a,s),r)},l.prototype.times=l.prototype.multiply,c.prototype._multiplyBySmall=function(e){return d(e.value*this.value)?new c(e.value*this.value):D(Math.abs(e.value),h(Math.abs(this.value)),this.sign!==e.sign)},l.prototype._multiplyBySmall=function(e){return 0===e.value?o[0]:1===e.value?this:-1===e.value?this.negate():D(Math.abs(e.value),this.value,this.sign!==e.sign)},c.prototype.multiply=function(e){return Y(e)._multiplyBySmall(this)},c.prototype.times=c.prototype.multiply,u.prototype.multiply=function(e){return new u(this.value*Y(e).value)},u.prototype.times=u.prototype.multiply,l.prototype.square=function(){return new l(T(this.value),!1)},c.prototype.square=function(){var e=this.value*this.value;return d(e)?new c(e):new l(T(h(Math.abs(this.value))),!1)},u.prototype.square=function(e){return new u(this.value*this.value)},l.prototype.divmod=function(e){var t=C(this,e);return{quotient:t[0],remainder:t[1]}},u.prototype.divmod=c.prototype.divmod=l.prototype.divmod,l.prototype.divide=function(e){return C(this,e)[0]},u.prototype.over=u.prototype.divide=function(e){return new u(this.value/Y(e).value)},c.prototype.over=c.prototype.divide=l.prototype.over=l.prototype.divide,l.prototype.mod=function(e){return C(this,e)[1]},u.prototype.mod=u.prototype.remainder=function(e){return new u(this.value%Y(e).value)},c.prototype.remainder=c.prototype.mod=l.prototype.remainder=l.prototype.mod,l.prototype.pow=function(e){var t,n,i,a=Y(e),s=this.value,r=a.value;if(0===r)return o[1];if(0===s)return o[0];if(1===s)return o[1];if(-1===s)return a.isEven()?o[1]:o[-1];if(a.sign)return o[0];if(!a.isSmall)throw new Error("The exponent "+a.toString()+" is too large.");if(this.isSmall&&d(t=Math.pow(s,r)))return new c(g(t));for(n=this,i=o[1];!0&r&&(i=i.times(n),--r),0!==r;)r/=2,n=n.square();return i},c.prototype.pow=l.prototype.pow,u.prototype.pow=function(e){var t=Y(e),n=this.value,i=t.value,a=BigInt(0),s=BigInt(1),r=BigInt(2);if(i===a)return o[1];if(n===a)return o[0];if(n===s)return o[1];if(n===BigInt(-1))return t.isEven()?o[1]:o[-1];if(t.isNegative())return new u(a);for(var l=this,c=o[1];(i&s)===s&&(c=c.times(l),--i),i!==a;)i/=r,l=l.square();return c},l.prototype.modPow=function(e,t){if(e=Y(e),(t=Y(t)).isZero())throw new Error("Cannot take modPow with modulus 0");var n=o[1],i=this.mod(t);for(e.isNegative()&&(e=e.multiply(o[-1]),i=i.modInv(t));e.isPositive();){if(i.isZero())return o[0];e.isOdd()&&(n=n.multiply(i).mod(t)),e=e.divide(2),i=i.square().mod(t)}return n},u.prototype.modPow=c.prototype.modPow=l.prototype.modPow,l.prototype.compareAbs=function(e){var t=Y(e),n=this.value,i=t.value;return t.isSmall?1:V(n,i)},c.prototype.compareAbs=function(e){var t=Y(e),n=Math.abs(this.value),i=t.value;return t.isSmall?n===(i=Math.abs(i))?0:n>i?1:-1:-1},u.prototype.compareAbs=function(e){var t=this.value,n=Y(e).value;return(t=t>=0?t:-t)===(n=n>=0?n:-n)?0:t>n?1:-1},l.prototype.compare=function(e){if(e===1/0)return-1;if(e===-1/0)return 1;var t=Y(e),n=this.value,i=t.value;return this.sign!==t.sign?t.sign?1:-1:t.isSmall?this.sign?-1:1:V(n,i)*(this.sign?-1:1)},l.prototype.compareTo=l.prototype.compare,c.prototype.compare=function(e){if(e===1/0)return-1;if(e===-1/0)return 1;var t=Y(e),n=this.value,i=t.value;return t.isSmall?n==i?0:n>i?1:-1:n<0!==t.sign?n<0?-1:1:n<0?1:-1},c.prototype.compareTo=c.prototype.compare,u.prototype.compare=function(e){if(e===1/0)return-1;if(e===-1/0)return 1;var t=this.value,n=Y(e).value;return t===n?0:t>n?1:-1},u.prototype.compareTo=u.prototype.compare,l.prototype.equals=function(e){return 0===this.compare(e)},u.prototype.eq=u.prototype.equals=c.prototype.eq=c.prototype.equals=l.prototype.eq=l.prototype.equals,l.prototype.notEquals=function(e){return 0!==this.compare(e)},u.prototype.neq=u.prototype.notEquals=c.prototype.neq=c.prototype.notEquals=l.prototype.neq=l.prototype.notEquals,l.prototype.greater=function(e){return this.compare(e)>0},u.prototype.gt=u.prototype.greater=c.prototype.gt=c.prototype.greater=l.prototype.gt=l.prototype.greater,l.prototype.lesser=function(e){return this.compare(e)<0},u.prototype.lt=u.prototype.lesser=c.prototype.lt=c.prototype.lesser=l.prototype.lt=l.prototype.lesser,l.prototype.greaterOrEquals=function(e){return this.compare(e)>=0},u.prototype.geq=u.prototype.greaterOrEquals=c.prototype.geq=c.prototype.greaterOrEquals=l.prototype.geq=l.prototype.greaterOrEquals,l.prototype.lesserOrEquals=function(e){return this.compare(e)<=0},u.prototype.leq=u.prototype.lesserOrEquals=c.prototype.leq=c.prototype.lesserOrEquals=l.prototype.leq=l.prototype.lesserOrEquals,l.prototype.isEven=function(){return 0==(1&this.value[0])},c.prototype.isEven=function(){return 0==(1&this.value)},u.prototype.isEven=function(){return(this.value&BigInt(1))===BigInt(0)},l.prototype.isOdd=function(){return 1==(1&this.value[0])},c.prototype.isOdd=function(){return 1==(1&this.value)},u.prototype.isOdd=function(){return(this.value&BigInt(1))===BigInt(1)},l.prototype.isPositive=function(){return!this.sign},c.prototype.isPositive=function(){return this.value>0},u.prototype.isPositive=c.prototype.isPositive,l.prototype.isNegative=function(){return this.sign},c.prototype.isNegative=function(){return this.value<0},u.prototype.isNegative=c.prototype.isNegative,l.prototype.isUnit=function(){return!1},c.prototype.isUnit=function(){return 1===Math.abs(this.value)},u.prototype.isUnit=function(){return this.abs().value===BigInt(1)},l.prototype.isZero=function(){return!1},c.prototype.isZero=function(){return 0===this.value},u.prototype.isZero=function(){return this.value===BigInt(0)},l.prototype.isDivisibleBy=function(e){var t=Y(e);return!t.isZero()&&(!!t.isUnit()||(0===t.compareAbs(2)?this.isEven():this.mod(t).isZero()))},u.prototype.isDivisibleBy=c.prototype.isDivisibleBy=l.prototype.isDivisibleBy,l.prototype.isPrime=function(t){var n=I(this);if(n!==e)return n;var i=this.abs(),s=i.bitLength();if(s<=64)return B(i,[2,3,5,7,11,13,17,19,23,29,31,37]);for(var r=Math.log(2)*s.toJSNumber(),o=Math.ceil(!0===t?2*Math.pow(r,2):r),l=[],c=0;c-n?new c(e-1):new l(i,!0)},u.prototype.prev=function(){return new u(this.value-BigInt(1))};for(var A=[1];2*A[A.length-1]<=t;)A.push(2*A[A.length-1]);var M=A.length,P=A[M-1];function R(e){return Math.abs(e)<=t}function O(e,t,n){t=Y(t);for(var i=e.isNegative(),s=t.isNegative(),r=i?e.not():e,o=s?t.not():t,l=0,c=0,u=null,d=null,h=[];!r.isZero()||!o.isZero();)l=(u=C(r,P))[1].toJSNumber(),i&&(l=P-1-l),c=(d=C(o,P))[1].toJSNumber(),s&&(c=P-1-c),r=u[0],o=d[0],h.push(n(l,c));for(var p=0!==n(i?1:0,s?1:0)?a(-1):a(0),f=h.length-1;f>=0;f-=1)p=p.multiply(P).add(a(h[f]));return p}l.prototype.shiftLeft=function(e){var t=Y(e).toJSNumber();if(!R(t))throw new Error(String(t)+" is too large for shifting.");if(t<0)return this.shiftRight(-t);var n=this;if(n.isZero())return n;for(;t>=M;)n=n.multiply(P),t-=M-1;return n.multiply(A[t])},u.prototype.shiftLeft=c.prototype.shiftLeft=l.prototype.shiftLeft,l.prototype.shiftRight=function(e){var t,n=Y(e).toJSNumber();if(!R(n))throw new Error(String(n)+" is too large for shifting.");if(n<0)return this.shiftLeft(-n);for(var i=this;n>=M;){if(i.isZero()||i.isNegative()&&i.isUnit())return i;i=(t=C(i,P))[1].isNegative()?t[0].prev():t[0],n-=M-1}return(t=C(i,A[n]))[1].isNegative()?t[0].prev():t[0]},u.prototype.shiftRight=c.prototype.shiftRight=l.prototype.shiftRight,l.prototype.not=function(){return this.negate().prev()},u.prototype.not=c.prototype.not=l.prototype.not,l.prototype.and=function(e){return O(this,e,(function(e,t){return e&t}))},u.prototype.and=c.prototype.and=l.prototype.and,l.prototype.or=function(e){return O(this,e,(function(e,t){return e|t}))},u.prototype.or=c.prototype.or=l.prototype.or,l.prototype.xor=function(e){return O(this,e,(function(e,t){return e^t}))},u.prototype.xor=c.prototype.xor=l.prototype.xor;var L=1<<30;function F(e){var n=e.value,i="number"==typeof n?n|L:"bigint"==typeof n?n|BigInt(L):n[0]+n[1]*t|1073758208;return i&-i}function j(e,t){if(t.compareTo(e)<=0){var n=j(e,t.square(t)),i=n.p,s=n.e,r=i.multiply(t);return r.compareTo(e)<=0?{p:r,e:2*s+1}:{p:i,e:2*s}}return{p:a(1),e:0}}function U(e,t){return e=Y(e),t=Y(t),e.greater(t)?e:t}function $(e,t){return e=Y(e),t=Y(t),e.lesser(t)?e:t}function z(e,t){if(e=Y(e).abs(),t=Y(t).abs(),e.equals(t))return e;if(e.isZero())return t;if(t.isZero())return e;for(var n,i,a=o[1];e.isEven()&&t.isEven();)n=$(F(e),F(t)),e=e.divide(n),t=t.divide(n),a=a.multiply(n);for(;e.isEven();)e=e.divide(F(e));do{for(;t.isEven();)t=t.divide(F(t));e.greater(t)&&(i=t,t=e,e=i),t=t.subtract(e)}while(!t.isZero());return a.isUnit()?e:e.multiply(a)}l.prototype.bitLength=function(){var e=this;return e.compareTo(a(0))<0&&(e=e.negate().subtract(a(1))),0===e.compareTo(a(0))?a(0):a(j(e,a(2)).e).add(a(1))},u.prototype.bitLength=c.prototype.bitLength=l.prototype.bitLength;var H=function(e,t,n,i){n=n||s,e=String(e),i||(e=e.toLowerCase(),n=n.toLowerCase());var a,r=e.length,o=Math.abs(t),l={};for(a=0;a=o){if("1"===d&&1===o)continue;throw new Error(d+" is not a valid digit in base "+t+".")}t=Y(t);var c=[],u="-"===e[0];for(a=u?1:0;a"!==e[a]&&a=0;i--)a=a.add(e[i].times(s)),s=s.times(t);return n?a.negate():a}function K(e,t){if((t=a(t)).isZero()){if(e.isZero())return{value:[0],isNegative:!1};throw new Error("Cannot convert nonzero numbers to base 0.")}if(t.equals(-1)){if(e.isZero())return{value:[0],isNegative:!1};if(e.isNegative())return{value:[].concat.apply([],Array.apply(null,Array(-e.toJSNumber())).map(Array.prototype.valueOf,[1,0])),isNegative:!1};var n=Array.apply(null,Array(e.toJSNumber()-1)).map(Array.prototype.valueOf,[0,1]);return n.unshift([1]),{value:[].concat.apply([],n),isNegative:!1}}var i=!1;if(e.isNegative()&&t.isPositive()&&(i=!0,e=e.abs()),t.isUnit())return e.isZero()?{value:[0],isNegative:!1}:{value:Array.apply(null,Array(e.toJSNumber())).map(Number.prototype.valueOf,1),isNegative:i};for(var s,r=[],o=e;o.isNegative()||o.compareAbs(t)>=0;){s=o.divmod(t),o=s.quotient;var l=s.remainder;l.isNegative()&&(l=t.minus(l).abs(),o=o.next()),r.push(l.toJSNumber())}return r.push(o.toJSNumber()),{value:r.reverse(),isNegative:i}}function J(e,t,n){var i=K(e,t);return(i.isNegative?"-":"")+i.value.map((function(e){return function(e,t){return e<(t=t||s).length?t[e]:"<"+e+">"}(e,n)})).join("")}function W(e){if(d(+e)){var t=+e;if(t===g(t))return r?new u(BigInt(t)):new c(t);throw new Error("Invalid integer: "+e)}var n="-"===e[0];n&&(e=e.slice(1));var i=e.split(/e/i);if(i.length>2)throw new Error("Invalid integer: "+i.join("e"));if(2===i.length){var a=i[1];if("+"===a[0]&&(a=a.slice(1)),(a=+a)!==g(a)||!d(a))throw new Error("Invalid integer: "+a+" is not a valid exponent.");var s=i[0],o=s.indexOf(".");if(o>=0&&(a-=s.length-o-1,s=s.slice(0,o)+s.slice(o+1)),a<0)throw new Error("Cannot include negative exponent part for integers");e=s+=new Array(a+1).join("0")}if(!/^([0-9][0-9]*)$/.test(e))throw new Error("Invalid integer: "+e);if(r)return new u(BigInt(n?"-"+e:e));for(var h=[],p=e.length,m=p-7;p>0;)h.push(+e.slice(m,p)),(m-=7)<0&&(m=0),p-=7;return f(h),new l(h,n)}function Y(e){return"number"==typeof e?function(e){if(r)return new u(BigInt(e));if(d(e)){if(e!==g(e))throw new Error(e+" is not an integer.");return new c(e)}return W(e.toString())}(e):"string"==typeof e?W(e):"bigint"==typeof e?new u(e):e}l.prototype.toArray=function(e){return K(this,e)},c.prototype.toArray=function(e){return K(this,e)},u.prototype.toArray=function(e){return K(this,e)},l.prototype.toString=function(t,n){if(t===e&&(t=10),10!==t)return J(this,t,n);for(var i,a=this.value,s=a.length,r=String(a[--s]);--s>=0;)i=String(a[s]),r+="0000000".slice(i.length)+i;return(this.sign?"-":"")+r},c.prototype.toString=function(t,n){return t===e&&(t=10),10!=t?J(this,t,n):String(this.value)},u.prototype.toString=c.prototype.toString,u.prototype.toJSON=l.prototype.toJSON=c.prototype.toJSON=function(){return this.toString()},l.prototype.valueOf=function(){return parseInt(this.toString(),10)},l.prototype.toJSNumber=l.prototype.valueOf,c.prototype.valueOf=function(){return this.value},c.prototype.toJSNumber=c.prototype.valueOf,u.prototype.valueOf=u.prototype.toJSNumber=function(){return parseInt(this.toString(),10)};for(var G=0;G<1e3;G++)o[G]=Y(G),G>0&&(o[-G]=Y(-G));return o.one=o[1],o.zero=o[0],o.minusOne=o[-1],o.max=U,o.min=$,o.gcd=z,o.lcm=function(e,t){return e=Y(e).abs(),t=Y(t).abs(),e.divide(z(e,t)).multiply(t)},o.isInstance=function(e){return e instanceof l||e instanceof c||e instanceof u},o.randBetween=function(e,n,i){e=Y(e),n=Y(n);var a=i||Math.random,s=$(e,n),r=U(e,n).subtract(s).add(1);if(r.isSmall)return s.add(Math.floor(a()*r));for(var l=K(r,t).value,c=[],u=!0,d=0;d>>8^255&f^99,a[n]=f,s[f]=n;var m=e[n],g=e[m],v=e[g],y=257*e[f]^16843008*f;r[n]=y<<24|y>>>8,o[n]=y<<16|y>>>16,l[n]=y<<8|y>>>24,c[n]=y,y=16843009*v^65537*g^257*m^16843008*n,u[f]=y<<24|y>>>8,d[f]=y<<16|y>>>16,h[f]=y<<8|y>>>24,p[f]=y,n?(n=m^e[e[e[v^m]]],i^=e[e[i]]):n=i=1}}();var f=[0,1,2,4,8,16,32,64,128,27,54],m=n.AES=t.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var e=this._keyPriorReset=this._key,t=e.words,n=e.sigBytes/4,i=4*((this._nRounds=n+6)+1),s=this._keySchedule=[],r=0;r6&&r%n==4&&(c=a[c>>>24]<<24|a[c>>>16&255]<<16|a[c>>>8&255]<<8|a[255&c]):(c=a[(c=c<<8|c>>>24)>>>24]<<24|a[c>>>16&255]<<16|a[c>>>8&255]<<8|a[255&c],c^=f[r/n|0]<<24),s[r]=s[r-n]^c);for(var o=this._invKeySchedule=[],l=0;l>>24]]^d[a[c>>>16&255]]^h[a[c>>>8&255]]^p[a[255&c]]}}},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._keySchedule,r,o,l,c,a)},decryptBlock:function(e,t){var n=e[t+1];e[t+1]=e[t+3],e[t+3]=n,this._doCryptBlock(e,t,this._invKeySchedule,u,d,h,p,s),n=e[t+1],e[t+1]=e[t+3],e[t+3]=n},_doCryptBlock:function(e,t,n,i,a,s,r,o){for(var l=this._nRounds,c=e[t]^n[0],u=e[t+1]^n[1],d=e[t+2]^n[2],h=e[t+3]^n[3],p=4,f=1;f>>24]^a[u>>>16&255]^s[d>>>8&255]^r[255&h]^n[p++],g=i[u>>>24]^a[d>>>16&255]^s[h>>>8&255]^r[255&c]^n[p++],v=i[d>>>24]^a[h>>>16&255]^s[c>>>8&255]^r[255&u]^n[p++],y=i[h>>>24]^a[c>>>16&255]^s[u>>>8&255]^r[255&d]^n[p++];c=m,u=g,d=v,h=y}m=(o[c>>>24]<<24|o[u>>>16&255]<<16|o[d>>>8&255]<<8|o[255&h])^n[p++],g=(o[u>>>24]<<24|o[d>>>16&255]<<16|o[h>>>8&255]<<8|o[255&c])^n[p++],v=(o[d>>>24]<<24|o[h>>>16&255]<<16|o[c>>>8&255]<<8|o[255&u])^n[p++],y=(o[h>>>24]<<24|o[c>>>16&255]<<16|o[u>>>8&255]<<8|o[255&d])^n[p++],e[t]=m,e[t+1]=g,e[t+2]=v,e[t+3]=y},keySize:8});e.AES=t._createHelper(m)}(),i.AES)},5109:function(e,t,n){var i;e.exports=(i=n(8249),n(888),void(i.lib.Cipher||function(e){var t=i,n=t.lib,a=n.Base,s=n.WordArray,r=n.BufferedBlockAlgorithm,o=t.enc;o.Utf8;var l=o.Base64,c=t.algo.EvpKDF,u=n.Cipher=r.extend({cfg:a.extend(),createEncryptor:function(e,t){return this.create(this._ENC_XFORM_MODE,e,t)},createDecryptor:function(e,t){return this.create(this._DEC_XFORM_MODE,e,t)},init:function(e,t,n){this.cfg=this.cfg.extend(n),this._xformMode=e,this._key=t,this.reset()},reset:function(){r.reset.call(this),this._doReset()},process:function(e){return this._append(e),this._process()},finalize:function(e){return e&&this._append(e),this._doFinalize()},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function e(e){return"string"==typeof e?w:v}return function(t){return{encrypt:function(n,i,a){return e(i).encrypt(t,n,i,a)},decrypt:function(n,i,a){return e(i).decrypt(t,n,i,a)}}}}()});n.StreamCipher=u.extend({_doFinalize:function(){return this._process(!0)},blockSize:1});var d=t.mode={},h=n.BlockCipherMode=a.extend({createEncryptor:function(e,t){return this.Encryptor.create(e,t)},createDecryptor:function(e,t){return this.Decryptor.create(e,t)},init:function(e,t){this._cipher=e,this._iv=t}}),p=d.CBC=function(){var t=h.extend();function n(t,n,i){var a,s=this._iv;s?(a=s,this._iv=e):a=this._prevBlock;for(var r=0;r>>2];e.sigBytes-=t}};n.BlockCipher=u.extend({cfg:u.cfg.extend({mode:p,padding:f}),reset:function(){var e;u.reset.call(this);var t=this.cfg,n=t.iv,i=t.mode;this._xformMode==this._ENC_XFORM_MODE?e=i.createEncryptor:(e=i.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==e?this._mode.init(this,n&&n.words):(this._mode=e.call(i,this,n&&n.words),this._mode.__creator=e)},_doProcessBlock:function(e,t){this._mode.processBlock(e,t)},_doFinalize:function(){var e,t=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(t.pad(this._data,this.blockSize),e=this._process(!0)):(e=this._process(!0),t.unpad(e)),e},blockSize:4});var m=n.CipherParams=a.extend({init:function(e){this.mixIn(e)},toString:function(e){return(e||this.formatter).stringify(this)}}),g=(t.format={}).OpenSSL={stringify:function(e){var t=e.ciphertext,n=e.salt;return(n?s.create([1398893684,1701076831]).concat(n).concat(t):t).toString(l)},parse:function(e){var t,n=l.parse(e),i=n.words;return 1398893684==i[0]&&1701076831==i[1]&&(t=s.create(i.slice(2,4)),i.splice(0,4),n.sigBytes-=16),m.create({ciphertext:n,salt:t})}},v=n.SerializableCipher=a.extend({cfg:a.extend({format:g}),encrypt:function(e,t,n,i){i=this.cfg.extend(i);var a=e.createEncryptor(n,i),s=a.finalize(t),r=a.cfg;return m.create({ciphertext:s,key:n,iv:r.iv,algorithm:e,mode:r.mode,padding:r.padding,blockSize:e.blockSize,formatter:i.format})},decrypt:function(e,t,n,i){return i=this.cfg.extend(i),t=this._parse(t,i.format),e.createDecryptor(n,i).finalize(t.ciphertext)},_parse:function(e,t){return"string"==typeof e?t.parse(e,this):e}}),y=(t.kdf={}).OpenSSL={execute:function(e,t,n,i){i||(i=s.random(8));var a=c.create({keySize:t+n}).compute(e,i),r=s.create(a.words.slice(t),4*n);return a.sigBytes=4*t,m.create({key:a,iv:r,salt:i})}},w=n.PasswordBasedCipher=v.extend({cfg:v.cfg.extend({kdf:y}),encrypt:function(e,t,n,i){var a=(i=this.cfg.extend(i)).kdf.execute(n,e.keySize,e.ivSize);i.iv=a.iv;var s=v.encrypt.call(this,e,t,a.key,i);return s.mixIn(a),s},decrypt:function(e,t,n,i){i=this.cfg.extend(i),t=this._parse(t,i.format);var a=i.kdf.execute(n,e.keySize,e.ivSize,t.salt);return i.iv=a.iv,v.decrypt.call(this,e,t,a.key,i)}})}()))},8249:function(e,t,n){var i;e.exports=(i=i||function(e,t){var i;if("undefined"!=typeof window&&Cs&&(i=Cs),"undefined"!=typeof self&&self.crypto&&(i=self.crypto),"undefined"!=typeof globalThis&&globalThis.crypto&&(i=globalThis.crypto),!i&&"undefined"!=typeof window&&window.msCrypto&&(i=window.msCrypto),!i&&void 0!==n.g&&n.g.crypto&&(i=n.g.crypto),!i)try{i=n(2480)}catch(g){}var a=function(){if(i){if("function"==typeof i.getRandomValues)try{return i.getRandomValues(new Uint32Array(1))[0]}catch(g){}if("function"==typeof i.randomBytes)try{return i.randomBytes(4).readInt32LE()}catch(g){}}throw new Error("Native crypto module could not be used to get secure random number.")},s=Object.create||function(){function e(){}return function(t){var n;return e.prototype=t,n=new e,e.prototype=null,n}}(),r={},o=r.lib={},l=o.Base=function(){return{extend:function(e){var t=s(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),c=o.WordArray=l.extend({init:function(e,n){e=this.words=e||[],this.sigBytes=n!=t?n:4*e.length},toString:function(e){return(e||d).stringify(this)},concat:function(e){var t=this.words,n=e.words,i=this.sigBytes,a=e.sigBytes;if(this.clamp(),i%4)for(var s=0;s>>2]>>>24-s%4*8&255;t[i+s>>>2]|=r<<24-(i+s)%4*8}else for(var o=0;o>>2]=n[o>>>2];return this.sigBytes+=a,this},clamp:function(){var t=this.words,n=this.sigBytes;t[n>>>2]&=4294967295<<32-n%4*8,t.length=e.ceil(n/4)},clone:function(){var e=l.clone.call(this);return e.words=this.words.slice(0),e},random:function(e){for(var t=[],n=0;n>>2]>>>24-a%4*8&255;i.push((s>>>4).toString(16)),i.push((15&s).toString(16))}return i.join("")},parse:function(e){for(var t=e.length,n=[],i=0;i>>3]|=parseInt(e.substr(i,2),16)<<24-i%8*4;return new c.init(n,t/2)}},h=u.Latin1={stringify:function(e){for(var t=e.words,n=e.sigBytes,i=[],a=0;a>>2]>>>24-a%4*8&255;i.push(String.fromCharCode(s))}return i.join("")},parse:function(e){for(var t=e.length,n=[],i=0;i>>2]|=(255&e.charCodeAt(i))<<24-i%4*8;return new c.init(n,t)}},p=u.Utf8={stringify:function(e){try{return decodeURIComponent(escape(h.stringify(e)))}catch(t){throw new Error("Malformed UTF-8 data")}},parse:function(e){return h.parse(unescape(encodeURIComponent(e)))}},f=o.BufferedBlockAlgorithm=l.extend({reset:function(){this._data=new c.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=p.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var n,i=this._data,a=i.words,s=i.sigBytes,r=this.blockSize,o=s/(4*r),l=(o=t?e.ceil(o):e.max((0|o)-this._minBufferSize,0))*r,u=e.min(4*l,s);if(l){for(var d=0;d>>6-r%4*2;a[s>>>2]|=o<<24-s%4*8,s++}return t.create(a,s)}e.enc.Base64={stringify:function(e){var t=e.words,n=e.sigBytes,i=this._map;e.clamp();for(var a=[],s=0;s>>2]>>>24-s%4*8&255)<<16|(t[s+1>>>2]>>>24-(s+1)%4*8&255)<<8|t[s+2>>>2]>>>24-(s+2)%4*8&255,o=0;o<4&&s+.75*o>>6*(3-o)&63));var l=i.charAt(64);if(l)for(;a.length%4;)a.push(l);return a.join("")},parse:function(e){var t=e.length,i=this._map,a=this._reverseMap;if(!a){a=this._reverseMap=[];for(var s=0;s>>6-r%4*2;a[s>>>2]|=o<<24-s%4*8,s++}return t.create(a,s)}e.enc.Base64url={stringify:function(e,t=!0){var n=e.words,i=e.sigBytes,a=t?this._safe_map:this._map;e.clamp();for(var s=[],r=0;r>>2]>>>24-r%4*8&255)<<16|(n[r+1>>>2]>>>24-(r+1)%4*8&255)<<8|n[r+2>>>2]>>>24-(r+2)%4*8&255,l=0;l<4&&r+.75*l>>6*(3-l)&63));var c=a.charAt(64);if(c)for(;s.length%4;)s.push(c);return s.join("")},parse:function(e,t=!0){var i=e.length,a=t?this._safe_map:this._map,s=this._reverseMap;if(!s){s=this._reverseMap=[];for(var r=0;r>>8&16711935}n.Utf16=n.Utf16BE={stringify:function(e){for(var t=e.words,n=e.sigBytes,i=[],a=0;a>>2]>>>16-a%4*8&65535;i.push(String.fromCharCode(s))}return i.join("")},parse:function(e){for(var n=e.length,i=[],a=0;a>>1]|=e.charCodeAt(a)<<16-a%2*16;return t.create(i,2*n)}},n.Utf16LE={stringify:function(e){for(var t=e.words,n=e.sigBytes,i=[],s=0;s>>2]>>>16-s%4*8&65535);i.push(String.fromCharCode(r))}return i.join("")},parse:function(e){for(var n=e.length,i=[],s=0;s>>1]|=a(e.charCodeAt(s)<<16-s%2*16);return t.create(i,2*n)}}}(),i.enc.Utf16)},888:function(e,t,n){var i,a,s,r,o,l,c,u;e.exports=(u=n(8249),n(2783),n(9824),a=(i=u).lib,s=a.Base,r=a.WordArray,o=i.algo,l=o.MD5,c=o.EvpKDF=s.extend({cfg:s.extend({keySize:4,hasher:l,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var n,i=this.cfg,a=i.hasher.create(),s=r.create(),o=s.words,l=i.keySize,c=i.iterations;o.lengthi&&(t=e.finalize(t)),t.clamp();for(var a=this._oKey=t.clone(),r=this._iKey=t.clone(),o=a.words,l=r.words,c=0;c>>2]|=e[a]<<24-a%4*8;t.call(this,i,n)}else t.apply(this,arguments)};n.prototype=e}}(),i.lib.WordArray)},8214:function(e,t,n){var i;e.exports=(i=n(8249),function(e){var t=i,n=t.lib,a=n.WordArray,s=n.Hasher,r=t.algo,o=[];!function(){for(var t=0;t<64;t++)o[t]=4294967296*e.abs(e.sin(t+1))|0}();var l=r.MD5=s.extend({_doReset:function(){this._hash=new a.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(e,t){for(var n=0;n<16;n++){var i=t+n,a=e[i];e[i]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8)}var s=this._hash.words,r=e[t+0],l=e[t+1],p=e[t+2],f=e[t+3],m=e[t+4],g=e[t+5],v=e[t+6],y=e[t+7],w=e[t+8],k=e[t+9],_=e[t+10],S=e[t+11],b=e[t+12],E=e[t+13],x=e[t+14],D=e[t+15],T=s[0],N=s[1],C=s[2],V=s[3];T=c(T,N,C,V,r,7,o[0]),V=c(V,T,N,C,l,12,o[1]),C=c(C,V,T,N,p,17,o[2]),N=c(N,C,V,T,f,22,o[3]),T=c(T,N,C,V,m,7,o[4]),V=c(V,T,N,C,g,12,o[5]),C=c(C,V,T,N,v,17,o[6]),N=c(N,C,V,T,y,22,o[7]),T=c(T,N,C,V,w,7,o[8]),V=c(V,T,N,C,k,12,o[9]),C=c(C,V,T,N,_,17,o[10]),N=c(N,C,V,T,S,22,o[11]),T=c(T,N,C,V,b,7,o[12]),V=c(V,T,N,C,E,12,o[13]),C=c(C,V,T,N,x,17,o[14]),T=u(T,N=c(N,C,V,T,D,22,o[15]),C,V,l,5,o[16]),V=u(V,T,N,C,v,9,o[17]),C=u(C,V,T,N,S,14,o[18]),N=u(N,C,V,T,r,20,o[19]),T=u(T,N,C,V,g,5,o[20]),V=u(V,T,N,C,_,9,o[21]),C=u(C,V,T,N,D,14,o[22]),N=u(N,C,V,T,m,20,o[23]),T=u(T,N,C,V,k,5,o[24]),V=u(V,T,N,C,x,9,o[25]),C=u(C,V,T,N,f,14,o[26]),N=u(N,C,V,T,w,20,o[27]),T=u(T,N,C,V,E,5,o[28]),V=u(V,T,N,C,p,9,o[29]),C=u(C,V,T,N,y,14,o[30]),T=d(T,N=u(N,C,V,T,b,20,o[31]),C,V,g,4,o[32]),V=d(V,T,N,C,w,11,o[33]),C=d(C,V,T,N,S,16,o[34]),N=d(N,C,V,T,x,23,o[35]),T=d(T,N,C,V,l,4,o[36]),V=d(V,T,N,C,m,11,o[37]),C=d(C,V,T,N,y,16,o[38]),N=d(N,C,V,T,_,23,o[39]),T=d(T,N,C,V,E,4,o[40]),V=d(V,T,N,C,r,11,o[41]),C=d(C,V,T,N,f,16,o[42]),N=d(N,C,V,T,v,23,o[43]),T=d(T,N,C,V,k,4,o[44]),V=d(V,T,N,C,b,11,o[45]),C=d(C,V,T,N,D,16,o[46]),T=h(T,N=d(N,C,V,T,p,23,o[47]),C,V,r,6,o[48]),V=h(V,T,N,C,y,10,o[49]),C=h(C,V,T,N,x,15,o[50]),N=h(N,C,V,T,g,21,o[51]),T=h(T,N,C,V,b,6,o[52]),V=h(V,T,N,C,f,10,o[53]),C=h(C,V,T,N,_,15,o[54]),N=h(N,C,V,T,l,21,o[55]),T=h(T,N,C,V,w,6,o[56]),V=h(V,T,N,C,D,10,o[57]),C=h(C,V,T,N,v,15,o[58]),N=h(N,C,V,T,E,21,o[59]),T=h(T,N,C,V,m,6,o[60]),V=h(V,T,N,C,S,10,o[61]),C=h(C,V,T,N,p,15,o[62]),N=h(N,C,V,T,k,21,o[63]),s[0]=s[0]+T|0,s[1]=s[1]+N|0,s[2]=s[2]+C|0,s[3]=s[3]+V|0},_doFinalize:function(){var t=this._data,n=t.words,i=8*this._nDataBytes,a=8*t.sigBytes;n[a>>>5]|=128<<24-a%32;var s=e.floor(i/4294967296),r=i;n[15+(a+64>>>9<<4)]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),n[14+(a+64>>>9<<4)]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8),t.sigBytes=4*(n.length+1),this._process();for(var o=this._hash,l=o.words,c=0;c<4;c++){var u=l[c];l[c]=16711935&(u<<8|u>>>24)|4278255360&(u<<24|u>>>8)}return o},clone:function(){var e=s.clone.call(this);return e._hash=this._hash.clone(),e}});function c(e,t,n,i,a,s,r){var o=e+(t&n|~t&i)+a+r;return(o<>>32-s)+t}function u(e,t,n,i,a,s,r){var o=e+(t&i|n&~i)+a+r;return(o<>>32-s)+t}function d(e,t,n,i,a,s,r){var o=e+(t^n^i)+a+r;return(o<>>32-s)+t}function h(e,t,n,i,a,s,r){var o=e+(n^(t|~i))+a+r;return(o<>>32-s)+t}t.MD5=s._createHelper(l),t.HmacMD5=s._createHmacHelper(l)}(Math),i.MD5)},8568:function(e,t,n){var i;e.exports=(i=n(8249),n(5109),i.mode.CFB=function(){var e=i.lib.BlockCipherMode.extend();function t(e,t,n,i){var a,s=this._iv;s?(a=s.slice(0),this._iv=void 0):a=this._prevBlock,i.encryptBlock(a,0);for(var r=0;r>24&255)){var t=e>>16&255,n=e>>8&255,i=255&e;255===t?(t=0,255===n?(n=0,255===i?i=0:++i):++n):++t,e=0,e+=t<<16,e+=n<<8,e+=i}else e+=1<<24;return e}function n(e){return 0===(e[0]=t(e[0]))&&(e[1]=t(e[1])),e}var a=e.Encryptor=e.extend({processBlock:function(e,t){var i=this._cipher,a=i.blockSize,s=this._iv,r=this._counter;s&&(r=this._counter=s.slice(0),this._iv=void 0),n(r);var o=r.slice(0);i.encryptBlock(o,0);for(var l=0;l>>2]|=a<<24-s%4*8,e.sigBytes+=a},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},i.pad.Ansix923)},2807:function(e,t,n){var i;e.exports=(i=n(8249),n(5109),i.pad.Iso10126={pad:function(e,t){var n=4*t,a=n-e.sigBytes%n;e.concat(i.lib.WordArray.random(a-1)).concat(i.lib.WordArray.create([a<<24],1))},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},i.pad.Iso10126)},1077:function(e,t,n){var i;e.exports=(i=n(8249),n(5109),i.pad.Iso97971={pad:function(e,t){e.concat(i.lib.WordArray.create([2147483648],1)),i.pad.ZeroPadding.pad(e,t)},unpad:function(e){i.pad.ZeroPadding.unpad(e),e.sigBytes--}},i.pad.Iso97971)},6991:function(e,t,n){var i;e.exports=(i=n(8249),n(5109),i.pad.NoPadding={pad:function(){},unpad:function(){}},i.pad.NoPadding)},6475:function(e,t,n){var i;e.exports=(i=n(8249),n(5109),i.pad.ZeroPadding={pad:function(e,t){var n=4*t;e.clamp(),e.sigBytes+=n-(e.sigBytes%n||n)},unpad:function(e){var t=e.words,n=e.sigBytes-1;for(n=e.sigBytes-1;n>=0;n--)if(t[n>>>2]>>>24-n%4*8&255){e.sigBytes=n+1;break}}},i.pad.ZeroPadding)},2112:function(e,t,n){var i,a,s,r,o,l,c,u,d;e.exports=(d=n(8249),n(2783),n(9824),a=(i=d).lib,s=a.Base,r=a.WordArray,o=i.algo,l=o.SHA1,c=o.HMAC,u=o.PBKDF2=s.extend({cfg:s.extend({keySize:4,hasher:l,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var n=this.cfg,i=c.create(n.hasher,e),a=r.create(),s=r.create([1]),o=a.words,l=s.words,u=n.keySize,d=n.iterations;o.length>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],i=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];this._b=0;for(var a=0;a<4;a++)l.call(this);for(a=0;a<8;a++)i[a]^=n[a+4&7];if(t){var s=t.words,r=s[0],o=s[1],c=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8),u=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),d=c>>>16|4294901760&u,h=u<<16|65535&c;for(i[0]^=c,i[1]^=d,i[2]^=u,i[3]^=h,i[4]^=c,i[5]^=d,i[6]^=u,i[7]^=h,a=0;a<4;a++)l.call(this)}},_doProcessBlock:function(e,t){var n=this._X;l.call(this),a[0]=n[0]^n[5]>>>16^n[3]<<16,a[1]=n[2]^n[7]>>>16^n[5]<<16,a[2]=n[4]^n[1]>>>16^n[7]<<16,a[3]=n[6]^n[3]>>>16^n[1]<<16;for(var i=0;i<4;i++)a[i]=16711935&(a[i]<<8|a[i]>>>24)|4278255360&(a[i]<<24|a[i]>>>8),e[t+i]^=a[i]},blockSize:4,ivSize:2});function l(){for(var e=this._X,t=this._C,n=0;n<8;n++)s[n]=t[n];for(t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0>>0?1:0)|0,this._b=t[7]>>>0>>0?1:0,n=0;n<8;n++){var i=e[n]+t[n],a=65535&i,o=i>>>16,l=((a*a>>>17)+a*o>>>15)+o*o,c=((4294901760&i)*i|0)+((65535&i)*i|0);r[n]=l^c}e[0]=r[0]+(r[7]<<16|r[7]>>>16)+(r[6]<<16|r[6]>>>16)|0,e[1]=r[1]+(r[0]<<8|r[0]>>>24)+r[7]|0,e[2]=r[2]+(r[1]<<16|r[1]>>>16)+(r[0]<<16|r[0]>>>16)|0,e[3]=r[3]+(r[2]<<8|r[2]>>>24)+r[1]|0,e[4]=r[4]+(r[3]<<16|r[3]>>>16)+(r[2]<<16|r[2]>>>16)|0,e[5]=r[5]+(r[4]<<8|r[4]>>>24)+r[3]|0,e[6]=r[6]+(r[5]<<16|r[5]>>>16)+(r[4]<<16|r[4]>>>16)|0,e[7]=r[7]+(r[6]<<8|r[6]>>>24)+r[5]|0}e.RabbitLegacy=t._createHelper(o)}(),i.RabbitLegacy)},4454:function(e,t,n){var i;e.exports=(i=n(8249),n(8269),n(8214),n(888),n(5109),function(){var e=i,t=e.lib.StreamCipher,n=e.algo,a=[],s=[],r=[],o=n.Rabbit=t.extend({_doReset:function(){for(var e=this._key.words,t=this.cfg.iv,n=0;n<4;n++)e[n]=16711935&(e[n]<<8|e[n]>>>24)|4278255360&(e[n]<<24|e[n]>>>8);var i=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],a=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];for(this._b=0,n=0;n<4;n++)l.call(this);for(n=0;n<8;n++)a[n]^=i[n+4&7];if(t){var s=t.words,r=s[0],o=s[1],c=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8),u=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),d=c>>>16|4294901760&u,h=u<<16|65535&c;for(a[0]^=c,a[1]^=d,a[2]^=u,a[3]^=h,a[4]^=c,a[5]^=d,a[6]^=u,a[7]^=h,n=0;n<4;n++)l.call(this)}},_doProcessBlock:function(e,t){var n=this._X;l.call(this),a[0]=n[0]^n[5]>>>16^n[3]<<16,a[1]=n[2]^n[7]>>>16^n[5]<<16,a[2]=n[4]^n[1]>>>16^n[7]<<16,a[3]=n[6]^n[3]>>>16^n[1]<<16;for(var i=0;i<4;i++)a[i]=16711935&(a[i]<<8|a[i]>>>24)|4278255360&(a[i]<<24|a[i]>>>8),e[t+i]^=a[i]},blockSize:4,ivSize:2});function l(){for(var e=this._X,t=this._C,n=0;n<8;n++)s[n]=t[n];for(t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0>>0?1:0)|0,this._b=t[7]>>>0>>0?1:0,n=0;n<8;n++){var i=e[n]+t[n],a=65535&i,o=i>>>16,l=((a*a>>>17)+a*o>>>15)+o*o,c=((4294901760&i)*i|0)+((65535&i)*i|0);r[n]=l^c}e[0]=r[0]+(r[7]<<16|r[7]>>>16)+(r[6]<<16|r[6]>>>16)|0,e[1]=r[1]+(r[0]<<8|r[0]>>>24)+r[7]|0,e[2]=r[2]+(r[1]<<16|r[1]>>>16)+(r[0]<<16|r[0]>>>16)|0,e[3]=r[3]+(r[2]<<8|r[2]>>>24)+r[1]|0,e[4]=r[4]+(r[3]<<16|r[3]>>>16)+(r[2]<<16|r[2]>>>16)|0,e[5]=r[5]+(r[4]<<8|r[4]>>>24)+r[3]|0,e[6]=r[6]+(r[5]<<16|r[5]>>>16)+(r[4]<<16|r[4]>>>16)|0,e[7]=r[7]+(r[6]<<8|r[6]>>>24)+r[5]|0}e.Rabbit=t._createHelper(o)}(),i.Rabbit)},1857:function(e,t,n){var i;e.exports=(i=n(8249),n(8269),n(8214),n(888),n(5109),function(){var e=i,t=e.lib.StreamCipher,n=e.algo,a=n.RC4=t.extend({_doReset:function(){for(var e=this._key,t=e.words,n=e.sigBytes,i=this._S=[],a=0;a<256;a++)i[a]=a;a=0;for(var s=0;a<256;a++){var r=a%n,o=t[r>>>2]>>>24-r%4*8&255;s=(s+i[a]+o)%256;var l=i[a];i[a]=i[s],i[s]=l}this._i=this._j=0},_doProcessBlock:function(e,t){e[t]^=s.call(this)},keySize:8,ivSize:0});function s(){for(var e=this._S,t=this._i,n=this._j,i=0,a=0;a<4;a++){n=(n+e[t=(t+1)%256])%256;var s=e[t];e[t]=e[n],e[n]=s,i|=e[(e[t]+e[n])%256]<<24-8*a}return this._i=t,this._j=n,i}e.RC4=t._createHelper(a);var r=n.RC4Drop=a.extend({cfg:a.cfg.extend({drop:192}),_doReset:function(){a._doReset.call(this);for(var e=this.cfg.drop;e>0;e--)s.call(this)}});e.RC4Drop=t._createHelper(r)}(),i.RC4)},706:function(e,t,n){var i;e.exports=(i=n(8249),function(e){var t=i,n=t.lib,a=n.WordArray,s=n.Hasher,r=t.algo,o=a.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),l=a.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),c=a.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),u=a.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),d=a.create([0,1518500249,1859775393,2400959708,2840853838]),h=a.create([1352829926,1548603684,1836072691,2053994217,0]),p=r.RIPEMD160=s.extend({_doReset:function(){this._hash=a.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var n=0;n<16;n++){var i=t+n,a=e[i];e[i]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8)}var s,r,p,k,_,S,b,E,x,D,T,N=this._hash.words,C=d.words,V=h.words,I=o.words,B=l.words,A=c.words,M=u.words;for(S=s=N[0],b=r=N[1],E=p=N[2],x=k=N[3],D=_=N[4],n=0;n<80;n+=1)T=s+e[t+I[n]]|0,T+=n<16?f(r,p,k)+C[0]:n<32?m(r,p,k)+C[1]:n<48?g(r,p,k)+C[2]:n<64?v(r,p,k)+C[3]:y(r,p,k)+C[4],T=(T=w(T|=0,A[n]))+_|0,s=_,_=k,k=w(p,10),p=r,r=T,T=S+e[t+B[n]]|0,T+=n<16?y(b,E,x)+V[0]:n<32?v(b,E,x)+V[1]:n<48?g(b,E,x)+V[2]:n<64?m(b,E,x)+V[3]:f(b,E,x)+V[4],T=(T=w(T|=0,M[n]))+D|0,S=D,D=x,x=w(E,10),E=b,b=T;T=N[1]+p+x|0,N[1]=N[2]+k+D|0,N[2]=N[3]+_+S|0,N[3]=N[4]+s+b|0,N[4]=N[0]+r+E|0,N[0]=T},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,i=8*e.sigBytes;t[i>>>5]|=128<<24-i%32,t[14+(i+64>>>9<<4)]=16711935&(n<<8|n>>>24)|4278255360&(n<<24|n>>>8),e.sigBytes=4*(t.length+1),this._process();for(var a=this._hash,s=a.words,r=0;r<5;r++){var o=s[r];s[r]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8)}return a},clone:function(){var e=s.clone.call(this);return e._hash=this._hash.clone(),e}});function f(e,t,n){return e^t^n}function m(e,t,n){return e&t|~e&n}function g(e,t,n){return(e|~t)^n}function v(e,t,n){return e&n|t&~n}function y(e,t,n){return e^(t|~n)}function w(e,t){return e<>>32-t}t.RIPEMD160=s._createHelper(p),t.HmacRIPEMD160=s._createHmacHelper(p)}(),i.RIPEMD160)},2783:function(e,t,n){var i,a,s,r,o,l,c,u;e.exports=(u=n(8249),a=(i=u).lib,s=a.WordArray,r=a.Hasher,o=i.algo,l=[],c=o.SHA1=r.extend({_doReset:function(){this._hash=new s.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var n=this._hash.words,i=n[0],a=n[1],s=n[2],r=n[3],o=n[4],c=0;c<80;c++){if(c<16)l[c]=0|e[t+c];else{var u=l[c-3]^l[c-8]^l[c-14]^l[c-16];l[c]=u<<1|u>>>31}var d=(i<<5|i>>>27)+o+l[c];d+=c<20?1518500249+(a&s|~a&r):c<40?1859775393+(a^s^r):c<60?(a&s|a&r|s&r)-1894007588:(a^s^r)-899497514,o=r,r=s,s=a<<30|a>>>2,a=i,i=d}n[0]=n[0]+i|0,n[1]=n[1]+a|0,n[2]=n[2]+s|0,n[3]=n[3]+r|0,n[4]=n[4]+o|0},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,i=8*e.sigBytes;return t[i>>>5]|=128<<24-i%32,t[14+(i+64>>>9<<4)]=Math.floor(n/4294967296),t[15+(i+64>>>9<<4)]=n,e.sigBytes=4*t.length,this._process(),this._hash},clone:function(){var e=r.clone.call(this);return e._hash=this._hash.clone(),e}}),i.SHA1=r._createHelper(c),i.HmacSHA1=r._createHmacHelper(c),u.SHA1)},7792:function(e,t,n){var i,a,s,r,o,l;e.exports=(l=n(8249),n(2153),a=(i=l).lib.WordArray,s=i.algo,r=s.SHA256,o=s.SHA224=r.extend({_doReset:function(){this._hash=new a.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var e=r._doFinalize.call(this);return e.sigBytes-=4,e}}),i.SHA224=r._createHelper(o),i.HmacSHA224=r._createHmacHelper(o),l.SHA224)},2153:function(e,t,n){var i;e.exports=(i=n(8249),function(e){var t=i,n=t.lib,a=n.WordArray,s=n.Hasher,r=t.algo,o=[],l=[];!function(){function t(t){for(var n=e.sqrt(t),i=2;i<=n;i++)if(!(t%i))return!1;return!0}function n(e){return 4294967296*(e-(0|e))|0}for(var i=2,a=0;a<64;)t(i)&&(a<8&&(o[a]=n(e.pow(i,.5))),l[a]=n(e.pow(i,1/3)),a++),i++}();var c=[],u=r.SHA256=s.extend({_doReset:function(){this._hash=new a.init(o.slice(0))},_doProcessBlock:function(e,t){for(var n=this._hash.words,i=n[0],a=n[1],s=n[2],r=n[3],o=n[4],u=n[5],d=n[6],h=n[7],p=0;p<64;p++){if(p<16)c[p]=0|e[t+p];else{var f=c[p-15],m=(f<<25|f>>>7)^(f<<14|f>>>18)^f>>>3,g=c[p-2],v=(g<<15|g>>>17)^(g<<13|g>>>19)^g>>>10;c[p]=m+c[p-7]+v+c[p-16]}var y=i&a^i&s^a&s,w=(i<<30|i>>>2)^(i<<19|i>>>13)^(i<<10|i>>>22),k=h+((o<<26|o>>>6)^(o<<21|o>>>11)^(o<<7|o>>>25))+(o&u^~o&d)+l[p]+c[p];h=d,d=u,u=o,o=r+k|0,r=s,s=a,a=i,i=k+(w+y)|0}n[0]=n[0]+i|0,n[1]=n[1]+a|0,n[2]=n[2]+s|0,n[3]=n[3]+r|0,n[4]=n[4]+o|0,n[5]=n[5]+u|0,n[6]=n[6]+d|0,n[7]=n[7]+h|0},_doFinalize:function(){var t=this._data,n=t.words,i=8*this._nDataBytes,a=8*t.sigBytes;return n[a>>>5]|=128<<24-a%32,n[14+(a+64>>>9<<4)]=e.floor(i/4294967296),n[15+(a+64>>>9<<4)]=i,t.sigBytes=4*n.length,this._process(),this._hash},clone:function(){var e=s.clone.call(this);return e._hash=this._hash.clone(),e}});t.SHA256=s._createHelper(u),t.HmacSHA256=s._createHmacHelper(u)}(Math),i.SHA256)},3327:function(e,t,n){var i;e.exports=(i=n(8249),n(4938),function(e){var t=i,n=t.lib,a=n.WordArray,s=n.Hasher,r=t.x64.Word,o=t.algo,l=[],c=[],u=[];!function(){for(var e=1,t=0,n=0;n<24;n++){l[e+5*t]=(n+1)*(n+2)/2%64;var i=(2*e+3*t)%5;e=t%5,t=i}for(e=0;e<5;e++)for(t=0;t<5;t++)c[e+5*t]=t+(2*e+3*t)%5*5;for(var a=1,s=0;s<24;s++){for(var o=0,d=0,h=0;h<7;h++){if(1&a){var p=(1<>>24)|4278255360&(s<<24|s>>>8),r=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8),(N=n[a]).high^=r,N.low^=s}for(var o=0;o<24;o++){for(var h=0;h<5;h++){for(var p=0,f=0,m=0;m<5;m++)p^=(N=n[h+5*m]).high,f^=N.low;var g=d[h];g.high=p,g.low=f}for(h=0;h<5;h++){var v=d[(h+4)%5],y=d[(h+1)%5],w=y.high,k=y.low;for(p=v.high^(w<<1|k>>>31),f=v.low^(k<<1|w>>>31),m=0;m<5;m++)(N=n[h+5*m]).high^=p,N.low^=f}for(var _=1;_<25;_++){var S=(N=n[_]).high,b=N.low,E=l[_];E<32?(p=S<>>32-E,f=b<>>32-E):(p=b<>>64-E,f=S<>>64-E);var x=d[c[_]];x.high=p,x.low=f}var D=d[0],T=n[0];for(D.high=T.high,D.low=T.low,h=0;h<5;h++)for(m=0;m<5;m++){var N=n[_=h+5*m],C=d[_],V=d[(h+1)%5+5*m],I=d[(h+2)%5+5*m];N.high=C.high^~V.high&I.high,N.low=C.low^~V.low&I.low}N=n[0];var B=u[o];N.high^=B.high,N.low^=B.low}},_doFinalize:function(){var t=this._data,n=t.words;this._nDataBytes;var i=8*t.sigBytes,s=32*this.blockSize;n[i>>>5]|=1<<24-i%32,n[(e.ceil((i+1)/s)*s>>>5)-1]|=128,t.sigBytes=4*n.length,this._process();for(var r=this._state,o=this.cfg.outputLength/8,l=o/8,c=[],u=0;u>>24)|4278255360&(h<<24|h>>>8),p=16711935&(p<<8|p>>>24)|4278255360&(p<<24|p>>>8),c.push(p),c.push(h)}return new a.init(c,o)},clone:function(){for(var e=s.clone.call(this),t=e._state=this._state.slice(0),n=0;n<25;n++)t[n]=t[n].clone();return e}});t.SHA3=s._createHelper(h),t.HmacSHA3=s._createHmacHelper(h)}(Math),i.SHA3)},7460:function(e,t,n){var i,a,s,r,o,l,c,u;e.exports=(u=n(8249),n(4938),n(34),a=(i=u).x64,s=a.Word,r=a.WordArray,o=i.algo,l=o.SHA512,c=o.SHA384=l.extend({_doReset:function(){this._hash=new r.init([new s.init(3418070365,3238371032),new s.init(1654270250,914150663),new s.init(2438529370,812702999),new s.init(355462360,4144912697),new s.init(1731405415,4290775857),new s.init(2394180231,1750603025),new s.init(3675008525,1694076839),new s.init(1203062813,3204075428)])},_doFinalize:function(){var e=l._doFinalize.call(this);return e.sigBytes-=16,e}}),i.SHA384=l._createHelper(c),i.HmacSHA384=l._createHmacHelper(c),u.SHA384)},34:function(e,t,n){var i;e.exports=(i=n(8249),n(4938),function(){var e=i,t=e.lib.Hasher,n=e.x64,a=n.Word,s=n.WordArray,r=e.algo;function o(){return a.create.apply(a,arguments)}var l=[o(1116352408,3609767458),o(1899447441,602891725),o(3049323471,3964484399),o(3921009573,2173295548),o(961987163,4081628472),o(1508970993,3053834265),o(2453635748,2937671579),o(2870763221,3664609560),o(3624381080,2734883394),o(310598401,1164996542),o(607225278,1323610764),o(1426881987,3590304994),o(1925078388,4068182383),o(2162078206,991336113),o(2614888103,633803317),o(3248222580,3479774868),o(3835390401,2666613458),o(4022224774,944711139),o(264347078,2341262773),o(604807628,2007800933),o(770255983,1495990901),o(1249150122,1856431235),o(1555081692,3175218132),o(1996064986,2198950837),o(2554220882,3999719339),o(2821834349,766784016),o(2952996808,2566594879),o(3210313671,3203337956),o(3336571891,1034457026),o(3584528711,2466948901),o(113926993,3758326383),o(338241895,168717936),o(666307205,1188179964),o(773529912,1546045734),o(1294757372,1522805485),o(1396182291,2643833823),o(1695183700,2343527390),o(1986661051,1014477480),o(2177026350,1206759142),o(2456956037,344077627),o(2730485921,1290863460),o(2820302411,3158454273),o(3259730800,3505952657),o(3345764771,106217008),o(3516065817,3606008344),o(3600352804,1432725776),o(4094571909,1467031594),o(275423344,851169720),o(430227734,3100823752),o(506948616,1363258195),o(659060556,3750685593),o(883997877,3785050280),o(958139571,3318307427),o(1322822218,3812723403),o(1537002063,2003034995),o(1747873779,3602036899),o(1955562222,1575990012),o(2024104815,1125592928),o(2227730452,2716904306),o(2361852424,442776044),o(2428436474,593698344),o(2756734187,3733110249),o(3204031479,2999351573),o(3329325298,3815920427),o(3391569614,3928383900),o(3515267271,566280711),o(3940187606,3454069534),o(4118630271,4000239992),o(116418474,1914138554),o(174292421,2731055270),o(289380356,3203993006),o(460393269,320620315),o(685471733,587496836),o(852142971,1086792851),o(1017036298,365543100),o(1126000580,2618297676),o(1288033470,3409855158),o(1501505948,4234509866),o(1607167915,987167468),o(1816402316,1246189591)],c=[];!function(){for(var e=0;e<80;e++)c[e]=o()}();var u=r.SHA512=t.extend({_doReset:function(){this._hash=new s.init([new a.init(1779033703,4089235720),new a.init(3144134277,2227873595),new a.init(1013904242,4271175723),new a.init(2773480762,1595750129),new a.init(1359893119,2917565137),new a.init(2600822924,725511199),new a.init(528734635,4215389547),new a.init(1541459225,327033209)])},_doProcessBlock:function(e,t){for(var n=this._hash.words,i=n[0],a=n[1],s=n[2],r=n[3],o=n[4],u=n[5],d=n[6],h=n[7],p=i.high,f=i.low,m=a.high,g=a.low,v=s.high,y=s.low,w=r.high,k=r.low,_=o.high,S=o.low,b=u.high,E=u.low,x=d.high,D=d.low,T=h.high,N=h.low,C=p,V=f,I=m,B=g,A=v,M=y,P=w,R=k,O=_,L=S,F=b,j=E,U=x,$=D,z=T,H=N,q=0;q<80;q++){var K,J,W=c[q];if(q<16)J=W.high=0|e[t+2*q],K=W.low=0|e[t+2*q+1];else{var Y=c[q-15],G=Y.high,Z=Y.low,Q=(G>>>1|Z<<31)^(G>>>8|Z<<24)^G>>>7,X=(Z>>>1|G<<31)^(Z>>>8|G<<24)^(Z>>>7|G<<25),ee=c[q-2],te=ee.high,ne=ee.low,ie=(te>>>19|ne<<13)^(te<<3|ne>>>29)^te>>>6,ae=(ne>>>19|te<<13)^(ne<<3|te>>>29)^(ne>>>6|te<<26),se=c[q-7],re=se.high,oe=se.low,le=c[q-16],ce=le.high,ue=le.low;J=(J=(J=Q+re+((K=X+oe)>>>0>>0?1:0))+ie+((K+=ae)>>>0>>0?1:0))+ce+((K+=ue)>>>0>>0?1:0),W.high=J,W.low=K}var de,he=O&F^~O&U,pe=L&j^~L&$,fe=C&I^C&A^I&A,me=V&B^V&M^B&M,ge=(C>>>28|V<<4)^(C<<30|V>>>2)^(C<<25|V>>>7),ve=(V>>>28|C<<4)^(V<<30|C>>>2)^(V<<25|C>>>7),ye=(O>>>14|L<<18)^(O>>>18|L<<14)^(O<<23|L>>>9),we=(L>>>14|O<<18)^(L>>>18|O<<14)^(L<<23|O>>>9),ke=l[q],_e=ke.high,Se=ke.low,be=z+ye+((de=H+we)>>>0>>0?1:0),Ee=ve+me;z=U,H=$,U=F,$=j,F=O,j=L,O=P+(be=(be=(be=be+he+((de+=pe)>>>0>>0?1:0))+_e+((de+=Se)>>>0>>0?1:0))+J+((de+=K)>>>0>>0?1:0))+((L=R+de|0)>>>0>>0?1:0)|0,P=A,R=M,A=I,M=B,I=C,B=V,C=be+(ge+fe+(Ee>>>0>>0?1:0))+((V=de+Ee|0)>>>0>>0?1:0)|0}f=i.low=f+V,i.high=p+C+(f>>>0>>0?1:0),g=a.low=g+B,a.high=m+I+(g>>>0>>0?1:0),y=s.low=y+M,s.high=v+A+(y>>>0>>0?1:0),k=r.low=k+R,r.high=w+P+(k>>>0>>0?1:0),S=o.low=S+L,o.high=_+O+(S>>>0>>0?1:0),E=u.low=E+j,u.high=b+F+(E>>>0>>0?1:0),D=d.low=D+$,d.high=x+U+(D>>>0<$>>>0?1:0),N=h.low=N+H,h.high=T+z+(N>>>0>>0?1:0)},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,i=8*e.sigBytes;return t[i>>>5]|=128<<24-i%32,t[30+(i+128>>>10<<5)]=Math.floor(n/4294967296),t[31+(i+128>>>10<<5)]=n,e.sigBytes=4*t.length,this._process(),this._hash.toX32()},clone:function(){var e=t.clone.call(this);return e._hash=this._hash.clone(),e},blockSize:32});e.SHA512=t._createHelper(u),e.HmacSHA512=t._createHmacHelper(u)}(),i.SHA512)},4253:function(e,t,n){var i;e.exports=(i=n(8249),n(8269),n(8214),n(888),n(5109),function(){var e=i,t=e.lib,n=t.WordArray,a=t.BlockCipher,s=e.algo,r=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],o=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],l=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],c=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],u=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],d=s.DES=a.extend({_doReset:function(){for(var e=this._key.words,t=[],n=0;n<56;n++){var i=r[n]-1;t[n]=e[i>>>5]>>>31-i%32&1}for(var a=this._subKeys=[],s=0;s<16;s++){var c=a[s]=[],u=l[s];for(n=0;n<24;n++)c[n/6|0]|=t[(o[n]-1+u)%28]<<31-n%6,c[4+(n/6|0)]|=t[28+(o[n+24]-1+u)%28]<<31-n%6;for(c[0]=c[0]<<1|c[0]>>>31,n=1;n<7;n++)c[n]=c[n]>>>4*(n-1)+3;c[7]=c[7]<<5|c[7]>>>27}var d=this._invSubKeys=[];for(n=0;n<16;n++)d[n]=a[15-n]},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._subKeys)},decryptBlock:function(e,t){this._doCryptBlock(e,t,this._invSubKeys)},_doCryptBlock:function(e,t,n){this._lBlock=e[t],this._rBlock=e[t+1],h.call(this,4,252645135),h.call(this,16,65535),p.call(this,2,858993459),p.call(this,8,16711935),h.call(this,1,1431655765);for(var i=0;i<16;i++){for(var a=n[i],s=this._lBlock,r=this._rBlock,o=0,l=0;l<8;l++)o|=c[l][((r^a[l])&u[l])>>>0];this._lBlock=r,this._rBlock=s^o}var d=this._lBlock;this._lBlock=this._rBlock,this._rBlock=d,h.call(this,1,1431655765),p.call(this,8,16711935),p.call(this,2,858993459),h.call(this,16,65535),h.call(this,4,252645135),e[t]=this._lBlock,e[t+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});function h(e,t){var n=(this._lBlock>>>e^this._rBlock)&t;this._rBlock^=n,this._lBlock^=n<>>e^this._lBlock)&t;this._lBlock^=n,this._rBlock^=n<192.");var t=e.slice(0,2),i=e.length<4?e.slice(0,2):e.slice(2,4),a=e.length<6?e.slice(0,2):e.slice(4,6);this._des1=d.createEncryptor(n.create(t)),this._des2=d.createEncryptor(n.create(i)),this._des3=d.createEncryptor(n.create(a))},encryptBlock:function(e,t){this._des1.encryptBlock(e,t),this._des2.decryptBlock(e,t),this._des3.encryptBlock(e,t)},decryptBlock:function(e,t){this._des3.decryptBlock(e,t),this._des2.encryptBlock(e,t),this._des1.decryptBlock(e,t)},keySize:6,ivSize:2,blockSize:2});e.TripleDES=a._createHelper(f)}(),i.TripleDES)},4938:function(e,t,n){var i,a,s,r,o,l,c;e.exports=(c=n(8249),s=(a=c).lib,r=s.Base,o=s.WordArray,(l=a.x64={}).Word=r.extend({init:function(e,t){this.high=e,this.low=t}}),l.WordArray=r.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=t!=i?t:8*e.length},toX32:function(){for(var e=this.words,t=e.length,n=[],i=0;i{var n;Object.defineProperty(t,"__esModule",{value:!0}),t.ErrorCode=void 0,(n=t.ErrorCode||(t.ErrorCode={}))[n.SUCCESS=0]="SUCCESS",n[n.CLIENT_ID_NOT_FOUND=1]="CLIENT_ID_NOT_FOUND",n[n.OPERATION_TOO_OFTEN=2]="OPERATION_TOO_OFTEN",n[n.REPEAT_MESSAGE=3]="REPEAT_MESSAGE",n[n.TIME_OUT=4]="TIME_OUT"},9021:function(e,t,n){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};const a=i(n(6893)),s=i(n(7555)),r=i(n(6379)),o=i(n(529));var l,c;(c=l||(l={})).setDebugMode=function(e){o.default.debugMode=e,o.default.info(`setDebugMode: ${e}`)},c.init=function(e){try{s.default.init(e)}catch(t){o.default.error("init error",t)}},c.setSocketServer=function(e){try{if(!e.url)throw new Error("invalid url");if(!e.key||!e.keyId)throw new Error("invalid key or keyId");r.default.socketUrl=e.url,r.default.publicKeyId=e.keyId,r.default.publicKey=e.key}catch(t){o.default.error("setSocketServer error",t)}},c.enableSocket=function(e){try{s.default.enableSocket(e)}catch(t){o.default.error("enableSocket error",t)}},c.getVersion=function(){return a.default.SDK_VERSION},e.exports=l},9478:function(e,t,n){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const a=i(n(529)),s=i(n(496)),r=i(n(3555)),o=i(n(1929)),l=i(n(4379)),c=i(n(6899)),u=i(n(776)),d=i(n(2002)),h=i(n(5807)),p=i(n(9704)),f=i(n(6545)),m=i(n(3680)),g=i(n(7706)),v=i(n(4486)),y=i(n(5867)),w=i(n(7006));var k;!function(e){let t,n,i;function k(){let e;try{"undefined"!=typeof uni?(t=new f.default,n=new m.default,i=new g.default):"undefined"!=typeof tt?(t=new d.default,n=new h.default,i=new p.default):"undefined"!=typeof my?(t=new s.default,n=new r.default,i=new o.default):"undefined"!=typeof wx?(t=new v.default,n=new y.default,i=new w.default):"undefined"!=typeof window&&(t=new l.default,n=new c.default,i=new u.default)}catch(k){a.default.error(`init am error: ${k}`),e=k}if(t&&n&&i||"undefined"!=typeof window&&(t=new l.default,n=new c.default,i=new u.default),!t||!n||!i)throw new Error(`init am error: no api impl found, ${e}`)}e.getDevice=function(){return t||k(),t},e.getStorage=function(){return n||k(),n},e.getWebSocket=function(){return i||k(),i}}(k||(k={})),t.default=k},4685:function(e,t,n){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const a=i(n(9478));var s,r;(r=s||(s={})).os=function(){return a.default.getDevice().os()},r.osVersion=function(){return a.default.getDevice().osVersion()},r.model=function(){return a.default.getDevice().model()},r.brand=function(){return a.default.getDevice().brand()},r.platform=function(){return a.default.getDevice().platform()},r.platformVersion=function(){return a.default.getDevice().platformVersion()},r.platformId=function(){return a.default.getDevice().platformId()},r.language=function(){return a.default.getDevice().language()},r.userAgent=function(){let e=a.default.getDevice().userAgent;return e?e():""},r.getNetworkType=function(e){a.default.getDevice().getNetworkType(e)},r.onNetworkStatusChange=function(e){a.default.getDevice().onNetworkStatusChange(e)},t.default=s},7002:function(e,t,n){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const a=i(n(6379)),s=i(n(1386)),r=i(n(4054)),o=n(2918),l=i(n(7167)),c=i(n(529)),u=i(n(9478)),d=i(n(8506));var h;!function(e){let t,n=!1,i=!1,h=!1,p=[],f=0;function m(){return n&&i}function g(t=0){e.allowReconnect&&w()&&setTimeout((function(){v()}),t)}function v(){if(e.allowReconnect=!0,!w())return;if(!function(){var e=p.length;let t=(new Date).getTime();if(e>0)for(var n=e-1;n>=0;n--)if(t-p[n]>5e3){p.splice(0,n+1);break}return e=p.length,p.push(t),!(e>=10)||(c.default.error("connect failed, connection limit reached"),!1)}())return;h=!0;let n=a.default.socketUrl;try{let e=d.default.getSync(d.default.KEY_REDIRECT_SERVER,"");if(e){let t=o.RedirectServerData.parse(e),i=t.addressList[0].split(","),a=i[0],s=Number(i[1]);(new Date).getTime()-t.time<1e3*s&&(n=a)}}catch(s){}t=u.default.getWebSocket().connect({url:n,success:function(){i=!0,y()},fail:function(){i=!1,_(),g(100)}}),t.onOpen(S),t.onClose(x),t.onError(E),t.onMessage(b)}function y(){i&&n&&(h=!1,s.default.create().send(),l.default.getInstance().start())}function w(){return a.default.networkConnected?h?(c.default.warn("connecting"),!1):!m()||(c.default.warn("already connected"),!1):(c.default.error("connect failed, network is not available"),!1)}function k(e=""){null==t||t.close({code:1e3,reason:e,success:function(e){},fail:function(e){}}),_()}function _(e){var t;i=!1,n=!1,h=!1,l.default.getInstance().cancel(),a.default.online&&(a.default.online=!1,null===(t=a.default.onlineState)||void 0===t||t.call(a.default.onlineState,{online:a.default.online}))}e.allowReconnect=!0,e.isAvailable=m,e.enableSocket=function(t){let n=(new Date).getTime();n-f<1e3?c.default.warn(`enableSocket ${t} fail: this function can only be called once a second`):(f=n,e.allowReconnect=t,t?e.reconnect(10):e.close(`enableSocket ${t}`))},e.reconnect=g,e.connect=v,e.close=k,e.send=function(e){if(!n||!n)throw new Error("socket not connect");null==t||t.send({data:e,success:function(e){},fail:function(e){}})};let S=function(e){n=!0,y()},b=function(e){try{e.data,l.default.getInstance().refresh(),r.default.receiveMessage(e.data)}catch(t){}},E=function(e){k("socket error")},x=function(e){_()}}(h||(h={})),t.default=h},8506:function(e,t,n){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const a=i(n(9478));var s,r;(r=s||(s={})).KEY_APPID="getui_appid",r.KEY_CID="getui_cid",r.KEY_SESSION="getui_session",r.KEY_REGID="getui_regid",r.KEY_SOCKET_URL="getui_socket_url",r.KEY_DEVICE_ID="getui_deviceid",r.KEY_ADD_PHONE_INFO_TIME="getui_api_time",r.KEY_BIND_ALIAS_TIME="getui_ba_time",r.KEY_SET_TAG_TIME="getui_st_time",r.KEY_REDIRECT_SERVER="getui_redirect_server",r.KEY_LAST_CONNECT_TIME="getui_last_connect_time",r.set=function(e){a.default.getStorage().set(e)},r.setSync=function(e,t){a.default.getStorage().setSync(e,t)},r.get=function(e){a.default.getStorage().get(e)},r.getSync=function(e,t){let n=a.default.getStorage().getSync(e);return n||t},t.default=s},496:function(e,t,n){const i=(this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(n(3854));e.exports=class{constructor(){this.systemInfo=my.getSystemInfoSync()}os(){return i.default.getStr(this.systemInfo,"platform")}osVersion(){return i.default.getStr(this.systemInfo,"system")}model(){return i.default.getStr(this.systemInfo,"model")}brand(){return i.default.getStr(this.systemInfo,"brand")}platform(){return"MP-ALIPAY"}platformVersion(){return i.default.getStr(this.systemInfo,"app")+" "+i.default.getStr(this.systemInfo,"version")}platformId(){return my.getAppIdSync()}language(){return i.default.getStr(this.systemInfo,"language")}getNetworkType(e){my.getNetworkType({success:t=>{var n;null===(n=e.success)||void 0===n||n.call(e.success,{networkType:t.networkType})},fail:()=>{var t;null===(t=e.fail)||void 0===t||t.call(e.fail,"")}})}onNetworkStatusChange(e){my.onNetworkStatusChange(e)}}},3555:e=>{e.exports=class{set(e){my.setStorage({key:e.key,data:e.data,success:e.success,fail:e.fail})}setSync(e,t){my.setStorageSync({key:e,data:t})}get(e){my.getStorage({key:e.key,success:e.success,fail:e.fail,complete:e.complete})}getSync(e){return my.getStorageSync({key:e}).data}}},1929:e=>{e.exports=class{connect(e){return my.connectSocket({url:e.url,header:e.header,method:e.method,success:e.success,fail:e.fail,complete:e.complete}),{onOpen:my.onSocketOpen,send:my.sendSocketMessage,onMessage:e=>{my.onSocketMessage.call(my.onSocketMessage,(t=>{e.call(e,{data:t?t.data:""})}))},onError:my.onSocketError,onClose:my.onSocketClose,close:my.closeSocket}}}},4379:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=class{os(){let e=window.navigator.userAgent.toLowerCase();return e.indexOf("android")>0||e.indexOf("adr")>0?"android":e.match(/\(i[^;]+;( u;)? cpu.+mac os x/)?"ios":e.indexOf("windows")>0||e.indexOf("win32")>0||e.indexOf("win64")>0?"windows":e.indexOf("macintosh")>0||e.indexOf("mac os")>0?"mac os":e.indexOf("linux")>0||e.indexOf("unix")>0?"linux":"other"}osVersion(){let e=window.navigator.userAgent.toLowerCase(),t=e.substring(e.indexOf(";")+1).trim();return t.indexOf(";")>0?t.substring(0,t.indexOf(";")).trim():t.substring(0,t.indexOf(")")).trim()}model(){return""}brand(){return""}platform(){return"H5"}platformVersion(){return""}platformId(){return""}language(){return window.navigator.language}userAgent(){return window.navigator.userAgent}getNetworkType(e){var t;null===(t=e.success)||void 0===t||t.call(e.success,{networkType:window.navigator.onLine?"unknown":"none"})}onNetworkStatusChange(e){}}},6899:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=class{set(e){var t;window.localStorage.setItem(e.key,e.data),null===(t=e.success)||void 0===t||t.call(e.success,"")}setSync(e,t){window.localStorage.setItem(e,t)}get(e){var t;let n=window.localStorage.getItem(e.key);null===(t=e.success)||void 0===t||t.call(e.success,n)}getSync(e){return window.localStorage.getItem(e)}}},776:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=class{connect(e){let t=new WebSocket(e.url);return{send:e=>{var n,i;try{t.send(e.data),null===(n=e.success)||void 0===n||n.call(e.success,{errMsg:""})}catch(a){null===(i=e.fail)||void 0===i||i.call(e.fail,{errMsg:a+""})}},close:e=>{var n,i;try{t.close(e.code,e.reason),null===(n=e.success)||void 0===n||n.call(e.success,{errMsg:""})}catch(a){null===(i=e.fail)||void 0===i||i.call(e.fail,{errMsg:a+""})}},onOpen:n=>{t.onopen=t=>{var i;null===(i=e.success)||void 0===i||i.call(e.success,""),n({header:""})}},onError:n=>{t.onerror=t=>{var i;null===(i=e.fail)||void 0===i||i.call(e.fail,""),n({errMsg:""})}},onMessage:e=>{t.onmessage=t=>{e({data:t.data})}},onClose:e=>{t.onclose=t=>{e(t)}}}}}},2002:function(e,t,n){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const a=i(n(3854));t.default=class{constructor(){this.systemInfo=tt.getSystemInfoSync()}os(){return a.default.getStr(this.systemInfo,"platform")}osVersion(){return a.default.getStr(this.systemInfo,"system")}model(){return a.default.getStr(this.systemInfo,"model")}brand(){return a.default.getStr(this.systemInfo,"brand")}platform(){return"MP-TOUTIAO"}platformVersion(){return a.default.getStr(this.systemInfo,"appName")+" "+a.default.getStr(this.systemInfo,"version")}language(){return""}platformId(){return""}getNetworkType(e){tt.getNetworkType(e)}onNetworkStatusChange(e){tt.onNetworkStatusChange(e)}}},5807:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=class{set(e){tt.setStorage(e)}setSync(e,t){tt.setStorageSync(e,t)}get(e){tt.getStorage(e)}getSync(e){return tt.getStorageSync(e)}}},9704:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=class{connect(e){let t=tt.connectSocket({url:e.url,header:e.header,protocols:e.protocols,success:e.success,fail:e.fail,complete:e.complete});return{onOpen:t.onOpen,send:t.send,onMessage:t.onMessage,onError:t.onError,onClose:t.onClose,close:t.close}}}},6545:function(e,t,n){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const a=i(n(3854));t.default=class{constructor(){try{this.systemInfo=uni.getSystemInfoSync(),this.accountInfo=uni.getAccountInfoSync()}catch(e){}}os(){return a.default.getStr(this.systemInfo,"platform")}model(){return a.default.getStr(this.systemInfo,"model")}brand(){return a.default.getStr(this.systemInfo,"brand")}osVersion(){return a.default.getStr(this.systemInfo,"system")}platform(){let e="";return e="APP-PLUS","APP-PLUS"}platformVersion(){return this.systemInfo?this.systemInfo.version:""}platformId(){return this.accountInfo?this.accountInfo.miniProgram.appId:""}language(){var e;return(null===(e=this.systemInfo)||void 0===e?void 0:e.language)?this.systemInfo.language:""}userAgent(){return window?window.navigator.userAgent:""}getNetworkType(e){uni.getNetworkType(e)}onNetworkStatusChange(e){uni.onNetworkStatusChange(e)}}},3680:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=class{set(e){uni.setStorage(e)}setSync(e,t){uni.setStorageSync(e,t)}get(e){uni.getStorage(e)}getSync(e){return uni.getStorageSync(e)}}},7706:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=class{connect(e){let t=uni.connectSocket(e);return{send:e=>{null==t||t.send(e)},close:e=>{null==t||t.close(e)},onOpen:e=>{null==t||t.onOpen(e)},onError:e=>{null==t||t.onError(e)},onMessage:e=>{null==t||t.onMessage(e)},onClose:e=>{null==t||t.onClose(e)}}}}},4486:function(e,t,n){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const a=i(n(3854));t.default=class{constructor(){this.systemInfo=wx.getSystemInfoSync()}os(){return a.default.getStr(this.systemInfo,"platform")}osVersion(){return a.default.getStr(this.systemInfo,"system")}model(){return a.default.getStr(this.systemInfo,"model")}brand(){return a.default.getStr(this.systemInfo,"brand")}platform(){return"MP-WEIXIN"}platformVersion(){return a.default.getStr(this.systemInfo,"version")}language(){return a.default.getStr(this.systemInfo,"language")}platformId(){return wx.canIUse("getAccountInfoSync")?wx.getAccountInfoSync().miniProgram.appId:""}getNetworkType(e){wx.getNetworkType({success:t=>{var n;null===(n=e.success)||void 0===n||n.call(e.success,{networkType:t.networkType})},fail:e.fail})}onNetworkStatusChange(e){wx.onNetworkStatusChange(e)}}},5867:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=class{set(e){wx.setStorage(e)}setSync(e,t){wx.setStorageSync(e,t)}get(e){wx.getStorage(e)}getSync(e){return wx.getStorageSync(e)}}},7006:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=class{connect(e){let t=wx.connectSocket({url:e.url,header:e.header,protocols:e.protocols,success:e.success,fail:e.fail,complete:e.complete});return{onOpen:t.onOpen,send:t.send,onMessage:t.onMessage,onError:t.onError,onClose:t.onClose,close:t.close}}}},6893:(e,t)=>{var n,i;Object.defineProperty(t,"__esModule",{value:!0}),(i=n||(n={})).SDK_VERSION="GTMP-2.0.4.dcloud",i.DEFAULT_SOCKET_URL="wss://wshzn.gepush.com:5223/nws",i.SOCKET_PROTOCOL_VERSION="1.0",i.SERVER_PUBLIC_KEY="MHwwDQYJKoZIhvcNAQEBBQADawAwaAJhAJp1rROuvBF7sBSnvLaesj2iFhMcY8aXyLvpnNLKs2wjL3JmEnyr++SlVa35liUlzi83tnAFkn3A9GB7pHBNzawyUkBh8WUhq5bnFIkk2RaDa6+5MpG84DEv52p7RR+aWwIDAQAB",i.SERVER_PUBLIC_KEY_ID="69d747c4b9f641baf4004be4297e9f3b",i.ID_U_2_G=!0,t.default=n},7555:function(e,t,n){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const a=i(n(7002)),s=i(n(529)),r=i(n(6379));class o{static init(e){var t;if(!this.inited)try{this.checkAppid(e.appid),this.inited=!0,s.default.info(`init: appid=${e.appid}`),r.default.init(e),a.default.connect()}catch(n){throw this.inited=!1,null===(t=e.onError)||void 0===t||t.call(e.onError,{error:n}),n}}static enableSocket(e){this.checkInit(),a.default.enableSocket(e)}static checkInit(){if(!this.inited)throw new Error("not init, please invoke init method firstly")}static checkAppid(e){if(null==e||null==e||""==e.trim())throw new Error(`invalid appid ${e}`)}}o.inited=!1,t.default=o},6379:function(e,t,n){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const a=i(n(6667)),s=i(n(8506)),r=i(n(6893)),o=i(n(7002)),l=i(n(529)),c=i(n(4685)),u=i(n(2323));class d{static init(e){var t;r.default.ID_U_2_G?this.appid=u.default.to_getui(e.appid):this.appid=e.appid,this.onError=e.onError,this.onClientId=e.onClientId,this.onlineState=e.onlineState,this.onPushMsg=e.onPushMsg,this.appid!=s.default.getSync(s.default.KEY_APPID,this.appid)&&(l.default.info("appid changed, clear session and cid"),s.default.setSync(s.default.KEY_CID,""),s.default.setSync(s.default.KEY_SESSION,"")),s.default.setSync(s.default.KEY_APPID,this.appid),this.cid=s.default.getSync(s.default.KEY_CID,this.cid),this.cid&&(null===(t=this.onClientId)||void 0===t||t.call(this.onClientId,{cid:d.cid})),this.session=s.default.getSync(s.default.KEY_SESSION,this.session),this.deviceId=s.default.getSync(s.default.KEY_DEVICE_ID,this.deviceId),this.regId=s.default.getSync(s.default.KEY_REGID,this.regId),this.regId||(this.regId=this.createRegId(),s.default.set({key:s.default.KEY_REGID,data:this.regId})),this.socketUrl=s.default.getSync(s.default.KEY_SOCKET_URL,this.socketUrl);let n=this;c.default.getNetworkType({success:e=>{n.networkType=e.networkType,n.networkConnected="none"!=n.networkType&&""!=n.networkType}}),c.default.onNetworkStatusChange((e=>{n.networkConnected=e.isConnected,n.networkType=e.networkType,n.networkConnected&&o.default.reconnect(100)}))}static createRegId(){return`M-V${a.default.md5Hex(this.getUuid())}-${(new Date).getTime()}`}static getUuid(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){let t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}))}}d.appid="",d.cid="",d.regId="",d.session="",d.deviceId="",d.packetId=1,d.online=!1,d.socketUrl=r.default.DEFAULT_SOCKET_URL,d.publicKeyId=r.default.SERVER_PUBLIC_KEY_ID,d.publicKey=r.default.SERVER_PUBLIC_KEY,d.lastAliasTime=0,d.networkConnected=!0,d.networkType="none",t.default=d},9586:function(e,t,n){var i,a,s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=s(n(661)),o=n(4198),l=s(n(6379));class c extends r.default{constructor(){super(...arguments),this.actionMsgData=new u}static initActionMsg(e,...t){return super.initMsg(e),e.command=r.default.Command.CLIENT_MSG,e.data=e.actionMsgData=u.create(),e}static parseActionMsg(e,t){return super.parseMsg(e,t),e.actionMsgData=u.parse(e.data),e}send(){setTimeout((()=>{var e;(c.waitingLoginMsgMap.has(this.actionMsgData.msgId)||c.waitingResponseMsgMap.has(this.actionMsgData.msgId))&&(c.waitingLoginMsgMap.delete(this.actionMsgData.msgId),c.waitingResponseMsgMap.delete(this.actionMsgData.msgId),null===(e=this.callback)||void 0===e||e.call(this.callback,{resultCode:o.ErrorCode.TIME_OUT,message:"waiting time out"}))}),1e4),l.default.online?(this.actionMsgData.msgAction!=c.ClientAction.RECEIVED&&c.waitingResponseMsgMap.set(this.actionMsgData.msgId,this),super.send()):c.waitingLoginMsgMap.set(this.actionMsgData.msgId,this)}receive(){}static sendWaitingMessages(){let e,t=this.waitingLoginMsgMap.keys();for(;e=t.next(),!e.done;){let t=this.waitingLoginMsgMap.get(e.value);this.waitingLoginMsgMap.delete(e.value),null==t||t.send()}}static getWaitingResponseMessage(e){return c.waitingResponseMsgMap.get(e)}static removeWaitingResponseMessage(e){let t=c.waitingResponseMsgMap.get(e);return t&&c.waitingResponseMsgMap.delete(e),t}}c.ServerAction=((i=class{}).PUSH_MESSAGE="pushmessage",i.REDIRECT_SERVER="redirect_server",i.ADD_PHONE_INFO_RESULT="addphoneinfo",i.SET_MODE_RESULT="set_mode_result",i.SET_TAG_RESULT="settag_result",i.BIND_ALIAS_RESULT="response_bind",i.UNBIND_ALIAS_RESULT="response_unbind",i.FEED_BACK_RESULT="pushmessage_feedback",i.RECEIVED="received",i),c.ClientAction=((a=class{}).ADD_PHONE_INFO="addphoneinfo",a.SET_MODE="set_mode",a.FEED_BACK="pushmessage_feedback",a.SET_TAGS="set_tag",a.BIND_ALIAS="bind_alias",a.UNBIND_ALIAS="unbind_alias",a.RECEIVED="received",a),c.waitingLoginMsgMap=new Map,c.waitingResponseMsgMap=new Map;class u{constructor(){this.appId="",this.cid="",this.msgId="",this.msgAction="",this.msgData="",this.msgExtraData=""}static create(){let e=new u;return e.appId=l.default.appid,e.cid=l.default.cid,e.msgId=(2147483647&(new Date).getTime()).toString(),e}static parse(e){let t=new u,n=JSON.parse(e);return t.appId=n.appId,t.cid=n.cid,t.msgId=n.msgId,t.msgAction=n.msgAction,t.msgData=n.msgData,t.msgExtraData=n.msgExtraData,t}}t.default=c},4516:function(e,t,n){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const a=i(n(4685)),s=i(n(8506)),r=i(n(6893)),o=n(4198),l=i(n(9586)),c=i(n(6379));class u extends l.default{constructor(){super(...arguments),this.addPhoneInfoData=new d}static create(){let e=new u;return super.initActionMsg(e),e.callback=t=>{t.resultCode!=o.ErrorCode.SUCCESS&&t.resultCode!=o.ErrorCode.REPEAT_MESSAGE?setTimeout((function(){e.send()}),3e4):s.default.set({key:s.default.KEY_ADD_PHONE_INFO_TIME,data:(new Date).getTime()})},e.actionMsgData.msgAction=l.default.ClientAction.ADD_PHONE_INFO,e.addPhoneInfoData=d.create(),e.actionMsgData.msgData=JSON.stringify(e.addPhoneInfoData),e}send(){(new Date).getTime()-s.default.getSync(s.default.KEY_ADD_PHONE_INFO_TIME,0)<864e5||super.send()}}class d{constructor(){this.model="",this.brand="",this.system_version="",this.version="",this.deviceid="",this.type=""}static create(){let e=new d;return e.model=a.default.model(),e.brand=a.default.brand(),e.system_version=a.default.osVersion(),e.version=r.default.SDK_VERSION,e.device_token="",e.imei="",e.oaid="",e.mac="",e.idfa="",e.type="MINIPROGRAM",e.deviceid=`${e.type}-${c.default.deviceId}`,e.extra={os:a.default.os(),platform:a.default.platform(),platformVersion:a.default.platformVersion(),platformId:a.default.platformId(),language:a.default.language(),userAgent:a.default.userAgent()},e}}t.default=u},8723:function(e,t,n){var i,a,s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=s(n(6379)),o=n(4198),l=s(n(9586));class c extends l.default{constructor(){super(...arguments),this.feedbackData=new u}static create(e,t){let n=new c;return super.initActionMsg(n),n.callback=e=>{e.resultCode!=o.ErrorCode.SUCCESS&&e.resultCode!=o.ErrorCode.REPEAT_MESSAGE&&setTimeout((function(){n.send()}),3e4)},n.feedbackData=u.create(e,t),n.actionMsgData.msgAction=l.default.ClientAction.FEED_BACK,n.actionMsgData.msgData=JSON.stringify(n.feedbackData),n}send(){super.send()}}c.ActionId=((i=class{}).RECEIVE="0",i.MP_RECEIVE="210000",i.WEB_RECEIVE="220000",i.BEGIN="1",i),c.RESULT=((a=class{}).OK="ok",a);class u{constructor(){this.messageid="",this.appkey="",this.appid="",this.taskid="",this.actionid="",this.result="",this.timestamp=""}static create(e,t){let n=new u;return n.messageid=e.pushMessageData.messageid,n.appkey=e.pushMessageData.appKey,n.appid=r.default.appid,n.taskid=e.pushMessageData.taskId,n.actionid=t,n.result=c.RESULT.OK,n.timestamp=(new Date).getTime().toString(),n}}t.default=c},6362:function(e,t,n){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const a=i(n(661));class s extends a.default{static create(){let e=new s;return super.initMsg(e),e.command=a.default.Command.HEART_BEAT,e}}t.default=s},1386:function(e,t,n){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const a=i(n(6667)),s=i(n(6379)),r=i(n(661));class o extends r.default{constructor(){super(...arguments),this.keyNegotiateData=new l}static create(){let e=new o;return super.initMsg(e),e.command=r.default.Command.KEY_NEGOTIATE,a.default.resetKey(),e.data=e.keyNegotiateData=l.create(),e}send(){super.send()}}class l{constructor(){this.appId="",this.rsaPublicKeyId="",this.algorithm="",this.secretKey="",this.iv=""}static create(){let e=new l;return e.appId=s.default.appid,e.rsaPublicKeyId=s.default.publicKeyId,e.algorithm="AES",e.secretKey=a.default.getEncryptedSecretKey(),e.iv=a.default.getEncryptedIV(),e}}t.default=o},1280:function(e,t,n){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const a=i(n(661)),s=i(n(6667)),r=i(n(8858)),o=i(n(529)),l=i(n(6379));class c extends a.default{constructor(){super(...arguments),this.keyNegotiateResultData=new u}static parse(e){let t=new c;return super.parseMsg(t,e),t.keyNegotiateResultData=u.parse(t.data),t}receive(){var e,t;if(0!=this.keyNegotiateResultData.errorCode)return o.default.error(`key negotiate fail: ${this.data}`),void(null===(e=l.default.onError)||void 0===e||e.call(l.default.onError,{error:`key negotiate fail: ${this.data}`}));let n=this.keyNegotiateResultData.encryptType.split("/");if(!s.default.algorithmMap.has(n[0].trim().toLowerCase())||!s.default.modeMap.has(n[1].trim().toLowerCase())||!s.default.paddingMap.has(n[2].trim().toLowerCase()))return o.default.error(`key negotiate fail: ${this.data}`),void(null===(t=l.default.onError)||void 0===t||t.call(l.default.onError,{error:`key negotiate fail: ${this.data}`}));s.default.setEncryptParams(n[0].trim().toLowerCase(),n[1].trim().toLowerCase(),n[2].trim().toLowerCase()),r.default.create().send()}}class u{constructor(){this.errorCode=-1,this.errorMsg="",this.encryptType=""}static parse(e){let t=new u,n=JSON.parse(e);return t.errorCode=n.errorCode,t.errorMsg=n.errorMsg,t.encryptType=n.encryptType,t}}t.default=c},8858:function(e,t,n){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const a=i(n(6379)),s=i(n(6667)),r=i(n(661)),o=i(n(4534));class l extends r.default{constructor(){super(...arguments),this.loginData=new c}static create(){let e=new l;return super.initMsg(e),e.command=r.default.Command.LOGIN,e.data=e.loginData=c.create(),e}send(){this.loginData.session&&a.default.cid==s.default.md5Hex(this.loginData.session)?super.send():o.default.create().send()}}class c{constructor(){this.appId="",this.session=""}static create(){let e=new c;return e.appId=a.default.appid,e.session=a.default.session,e}}t.default=l},1606:function(e,t,n){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const a=i(n(8506)),s=i(n(661)),r=i(n(6379)),o=i(n(9586)),l=i(n(4516)),c=i(n(8858));class u extends s.default{constructor(){super(...arguments),this.loginResultData=new d}static parse(e){let t=new u;return super.parseMsg(t,e),t.loginResultData=d.parse(t.data),t}receive(){var e;if(0!=this.loginResultData.errorCode)return this.data,r.default.session=r.default.cid="",a.default.setSync(a.default.KEY_CID,""),a.default.setSync(a.default.KEY_SESSION,""),void c.default.create().send();r.default.online||(r.default.online=!0,null===(e=r.default.onlineState)||void 0===e||e.call(r.default.onlineState,{online:r.default.online})),o.default.sendWaitingMessages(),l.default.create().send()}}class d{constructor(){this.errorCode=-1,this.errorMsg="",this.session=""}static parse(e){let t=new d,n=JSON.parse(e);return t.errorCode=n.errorCode,t.errorMsg=n.errorMsg,t.session=n.session,t}}t.default=u},661:function(e,t,n){var i,a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=a(n(9593)),r=a(n(7002)),o=a(n(6893)),l=a(n(6379));class c{constructor(){this.version="",this.command=0,this.packetId=0,this.timeStamp=0,this.data="",this.signature=""}static initMsg(e,...t){return e.version=o.default.SOCKET_PROTOCOL_VERSION,e.command=0,e.timeStamp=(new Date).getTime(),e}static parseMsg(e,t){let n=JSON.parse(t);return e.version=n.version,e.command=n.command,e.packetId=n.packetId,e.timeStamp=n.timeStamp,e.data=n.data,e.signature=n.signature,e}stringify(){return JSON.stringify(this,["version","command","packetId","timeStamp","data","signature"])}send(){r.default.isAvailable()&&(this.packetId=l.default.packetId++,this.temp?this.data=this.temp:this.temp=this.data,this.data=JSON.stringify(this.data),this.stringify(),this.command!=c.Command.HEART_BEAT&&(s.default.sign(this),this.data&&this.command!=c.Command.KEY_NEGOTIATE&&s.default.encrypt(this)),r.default.send(this.stringify()))}}c.Command=((i=class{}).HEART_BEAT=0,i.KEY_NEGOTIATE=1,i.KEY_NEGOTIATE_RESULT=16,i.REGISTER=2,i.REGISTER_RESULT=32,i.LOGIN=3,i.LOGIN_RESULT=48,i.LOGOUT=4,i.LOGOUT_RESULT=64,i.CLIENT_MSG=5,i.SERVER_MSG=80,i.SERVER_CLOSE=96,i.REDIRECT_SERVER=112,i),t.default=c},9593:function(e,t,n){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const a=i(n(6667));var s,r;(r=s||(s={})).encrypt=function(e){e.data=a.default.encrypt(e.data)},r.decrypt=function(e){e.data=a.default.decrypt(e.data)},r.sign=function(e){e.signature=a.default.sha256(`${e.timeStamp}${e.packetId}${e.command}${e.data}`)},r.verify=function(e){let t=a.default.sha256(`${e.timeStamp}${e.packetId}${e.command}${e.data}`);if(e.signature!=t)throw new Error("msg signature vierfy failed")},t.default=s},4054:function(e,t,n){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const a=i(n(1280)),s=i(n(1606)),r=i(n(661)),o=i(n(1277)),l=i(n(910)),c=i(n(9538)),u=i(n(9479)),d=i(n(6755)),h=i(n(2918)),p=i(n(9586)),f=i(n(9510)),m=i(n(4626)),g=i(n(7562)),v=i(n(9593)),y=i(n(9586)),w=i(n(9519)),k=i(n(8947));t.default=class{static receiveMessage(e){let t=r.default.parseMsg(new r.default,e);if(t.command!=r.default.Command.HEART_BEAT)switch(t.command!=r.default.Command.KEY_NEGOTIATE_RESULT&&t.command!=r.default.Command.SERVER_CLOSE&&t.command!=r.default.Command.REDIRECT_SERVER&&v.default.decrypt(t),t.command!=r.default.Command.SERVER_CLOSE&&t.command!=r.default.Command.REDIRECT_SERVER&&v.default.verify(t),t.command){case r.default.Command.KEY_NEGOTIATE_RESULT:a.default.parse(t.stringify()).receive();break;case r.default.Command.REGISTER_RESULT:o.default.parse(t.stringify()).receive();break;case r.default.Command.LOGIN_RESULT:s.default.parse(t.stringify()).receive();break;case r.default.Command.SERVER_MSG:this.receiveActionMsg(t.stringify());break;case r.default.Command.SERVER_CLOSE:k.default.parse(t.stringify()).receive();break;case r.default.Command.REDIRECT_SERVER:h.default.parse(t.stringify()).receive()}}static receiveActionMsg(e){let t=y.default.parseActionMsg(new y.default,e);if(t.actionMsgData.msgAction!=p.default.ServerAction.RECEIVED&&t.actionMsgData.msgAction!=p.default.ServerAction.REDIRECT_SERVER){let e=JSON.parse(t.actionMsgData.msgData);w.default.create(e.id).send()}switch(t.actionMsgData.msgAction){case p.default.ServerAction.PUSH_MESSAGE:d.default.parse(e).receive();break;case p.default.ServerAction.ADD_PHONE_INFO_RESULT:l.default.parse(e).receive();break;case p.default.ServerAction.SET_MODE_RESULT:f.default.parse(e).receive();break;case p.default.ServerAction.SET_TAG_RESULT:m.default.parse(e).receive();break;case p.default.ServerAction.BIND_ALIAS_RESULT:c.default.parse(e).receive();break;case p.default.ServerAction.UNBIND_ALIAS_RESULT:g.default.parse(e).receive();break;case p.default.ServerAction.FEED_BACK_RESULT:u.default.parse(e).receive();break;case p.default.ServerAction.RECEIVED:w.default.parse(e).receive()}}}},9519:function(e,t,n){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const a=n(4198),s=i(n(6379)),r=i(n(9586));class o extends r.default{constructor(){super(...arguments),this.receivedData=new l}static create(e){let t=new o;return super.initActionMsg(t),t.callback=e=>{e.resultCode!=a.ErrorCode.SUCCESS&&e.resultCode!=a.ErrorCode.REPEAT_MESSAGE&&setTimeout((function(){t.send()}),3e3)},t.actionMsgData.msgAction=r.default.ClientAction.RECEIVED,t.receivedData=l.create(e),t.actionMsgData.msgData=JSON.stringify(t.receivedData),t}static parse(e){let t=new o;return super.parseActionMsg(t,e),t.receivedData=l.parse(t.data),t}receive(){var e;let t=r.default.getWaitingResponseMessage(this.actionMsgData.msgId);(t&&t.actionMsgData.msgAction==r.default.ClientAction.ADD_PHONE_INFO||t&&t.actionMsgData.msgAction==r.default.ClientAction.FEED_BACK)&&(r.default.removeWaitingResponseMessage(t.actionMsgData.msgId),null===(e=t.callback)||void 0===e||e.call(t.callback,{resultCode:a.ErrorCode.SUCCESS,message:"received"}))}send(){super.send()}}class l{constructor(){this.msgId="",this.cid=""}static create(e){let t=new l;return t.cid=s.default.cid,t.msgId=e,t}static parse(e){let t=new l,n=JSON.parse(e);return t.cid=n.cid,t.msgId=n.msgId,t}}t.default=o},2918:function(e,t,n){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.RedirectServerData=void 0;const a=i(n(7002)),s=i(n(8506)),r=i(n(661));class o extends r.default{constructor(){super(...arguments),this.redirectServerData=new l}static parse(e){let t=new o;return super.parseMsg(t,e),t.redirectServerData=l.parse(t.data),t}receive(){this.redirectServerData,s.default.setSync(s.default.KEY_REDIRECT_SERVER,JSON.stringify(this.redirectServerData)),a.default.close("redirect server"),a.default.reconnect(this.redirectServerData.delay)}}class l{constructor(){this.addressList=[],this.delay=0,this.loc="",this.conf="",this.time=0}static parse(e){let t=new l,n=JSON.parse(e);return t.addressList=n.addressList,t.delay=n.delay,t.loc=n.loc,t.conf=n.conf,t.time=n.time?n.time:(new Date).getTime(),t}}t.RedirectServerData=l,t.default=o},4534:function(e,t,n){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const a=i(n(6379)),s=i(n(661));class r extends s.default{constructor(){super(...arguments),this.registerData=new o}static create(){let e=new r;return super.initMsg(e),e.command=s.default.Command.REGISTER,e.data=e.registerData=o.create(),e}send(){super.send()}}class o{constructor(){this.appId="",this.regId=""}static create(){let e=new o;return e.appId=a.default.appid,e.regId=a.default.regId,e}}t.default=r},1277:function(e,t,n){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const a=i(n(661)),s=i(n(8506)),r=i(n(6379)),o=i(n(8858)),l=i(n(529));class c extends a.default{constructor(){super(...arguments),this.registerResultData=new u}static parse(e){let t=new c;return super.parseMsg(t,e),t.registerResultData=u.parse(t.data),t}receive(){var e,t;if(0!=this.registerResultData.errorCode||!this.registerResultData.cid||!this.registerResultData.session)return l.default.error(`register fail: ${this.data}`),void(null===(e=r.default.onError)||void 0===e||e.call(r.default.onError,{error:`register fail: ${this.data}`}));r.default.cid!=this.registerResultData.cid&&s.default.setSync(s.default.KEY_ADD_PHONE_INFO_TIME,0),r.default.cid=this.registerResultData.cid,null===(t=r.default.onClientId)||void 0===t||t.call(r.default.onClientId,{cid:r.default.cid}),s.default.set({key:s.default.KEY_CID,data:r.default.cid}),r.default.session=this.registerResultData.session,s.default.set({key:s.default.KEY_SESSION,data:r.default.session}),r.default.deviceId=this.registerResultData.deviceId,s.default.set({key:s.default.KEY_DEVICE_ID,data:r.default.deviceId}),o.default.create().send()}}class u{constructor(){this.errorCode=-1,this.errorMsg="",this.cid="",this.session="",this.deviceId="",this.regId=""}static parse(e){let t=new u,n=JSON.parse(e);return t.errorCode=n.errorCode,t.errorMsg=n.errorMsg,t.cid=n.cid,t.session=n.session,t.deviceId=n.deviceId,t.regId=n.regId,t}}t.default=c},8947:function(e,t,n){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const a=i(n(7002)),s=i(n(529)),r=i(n(661));class o extends r.default{constructor(){super(...arguments),this.serverCloseData=new l}static parse(e){let t=new o;return super.parseMsg(t,e),t.serverCloseData=l.parse(t.data),t}receive(){JSON.stringify(this.serverCloseData);let e=`server close ${this.serverCloseData.code}`;20==this.serverCloseData.code||23==this.serverCloseData.code||24==this.serverCloseData.code?(a.default.allowReconnect=!1,a.default.close(e)):21==this.serverCloseData.code?this.safeClose21(e):(a.default.allowReconnect=!0,a.default.close(e),a.default.reconnect(10))}safeClose21(e){try{if("undefined"!=typeof document&&document.hasFocus()&&"visible"==document.visibilityState)return a.default.allowReconnect=!0,a.default.close(e),void a.default.reconnect(10);a.default.allowReconnect=!1,a.default.close(e)}catch(t){s.default.error("ServerClose t1",t),a.default.allowReconnect=!1,a.default.close(`${e} error`)}}}class l{constructor(){this.code=-1,this.msg=""}static parse(e){let t=new l,n=JSON.parse(e);return t.code=n.code,t.msg=n.msg,t}}t.default=o},910:function(e,t,n){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const a=i(n(8506)),s=i(n(9586));class r extends s.default{constructor(){super(...arguments),this.addPhoneInfoResultData=new o}static parse(e){let t=new r;return super.parseActionMsg(t,e),t.addPhoneInfoResultData=o.parse(t.actionMsgData.msgData),t}receive(){var e;this.addPhoneInfoResultData;let t=s.default.removeWaitingResponseMessage(this.actionMsgData.msgId);t&&(null===(e=t.callback)||void 0===e||e.call(t.callback,{resultCode:this.addPhoneInfoResultData.errorCode,message:this.addPhoneInfoResultData.errorMsg})),a.default.set({key:a.default.KEY_ADD_PHONE_INFO_TIME,data:(new Date).getTime()})}}class o{constructor(){this.errorCode=-1,this.errorMsg=""}static parse(e){let t=new o,n=JSON.parse(e);return t.errorCode=n.errorCode,t.errorMsg=n.errorMsg,t}}t.default=r},9538:function(e,t,n){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const a=i(n(8506)),s=i(n(529)),r=i(n(9586));class o extends r.default{constructor(){super(...arguments),this.bindAliasResultData=new l}static parse(e){let t=new o;return super.parseActionMsg(t,e),t.bindAliasResultData=l.parse(t.actionMsgData.msgData),t}receive(){var e;s.default.info("bind alias result",this.bindAliasResultData);let t=r.default.removeWaitingResponseMessage(this.actionMsgData.msgId);t&&(null===(e=t.callback)||void 0===e||e.call(t.callback,{resultCode:this.bindAliasResultData.errorCode,message:this.bindAliasResultData.errorMsg})),a.default.set({key:a.default.KEY_BIND_ALIAS_TIME,data:(new Date).getTime()})}}class l{constructor(){this.errorCode=-1,this.errorMsg=""}static parse(e){let t=new l,n=JSON.parse(e);return t.errorCode=n.errorCode,t.errorMsg=n.errorMsg,t}}t.default=o},9479:function(e,t,n){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const a=n(4198),s=i(n(9586));class r extends s.default{constructor(){super(...arguments),this.feedbackResultData=new o}static parse(e){let t=new r;return super.parseActionMsg(t,e),t.feedbackResultData=o.parse(t.actionMsgData.msgData),t}receive(){var e;this.feedbackResultData;let t=s.default.removeWaitingResponseMessage(this.actionMsgData.msgId);t&&(null===(e=t.callback)||void 0===e||e.call(t.callback,{resultCode:a.ErrorCode.SUCCESS,message:"received"}))}}class o{constructor(){this.actionId="",this.taskId="",this.result=""}static parse(e){let t=new o,n=JSON.parse(e);return t.actionId=n.actionId,t.taskId=n.taskId,t.result=n.result,t}}t.default=r},6755:function(e,t,n){var i,a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=a(n(6379)),r=a(n(9586)),o=a(n(8723));class l extends r.default{constructor(){super(...arguments),this.pushMessageData=new c}static parse(e){let t=new l;return super.parseActionMsg(t,e),t.pushMessageData=c.parse(t.actionMsgData.msgData),t}receive(){var e;this.pushMessageData,this.pushMessageData.appId==s.default.appid&&this.pushMessageData.messageid&&this.pushMessageData.taskId||this.stringify(),o.default.create(this,o.default.ActionId.RECEIVE).send(),o.default.create(this,o.default.ActionId.MP_RECEIVE).send(),this.actionMsgData.msgExtraData&&s.default.onPushMsg&&(null===(e=s.default.onPushMsg)||void 0===e||e.call(s.default.onPushMsg,{message:this.actionMsgData.msgExtraData}))}}class c{constructor(){this.id="",this.appKey="",this.appId="",this.messageid="",this.taskId="",this.actionChain=[],this.cdnType=""}static parse(e){let t=new c,n=JSON.parse(e);return t.id=n.id,t.appKey=n.appKey,t.appId=n.appId,t.messageid=n.messageid,t.taskId=n.taskId,t.actionChain=n.actionChain,t.cdnType=n.cdnType,t}}(i=class{}).GO_TO="goto",i.TRANSMIT="transmit",t.default=l},9510:function(e,t,n){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const a=i(n(9586));class s extends a.default{constructor(){super(...arguments),this.setModeResultData=new r}static parse(e){let t=new s;return super.parseActionMsg(t,e),t.setModeResultData=r.parse(t.actionMsgData.msgData),t}receive(){var e;this.setModeResultData;let t=a.default.removeWaitingResponseMessage(this.actionMsgData.msgId);t&&(null===(e=t.callback)||void 0===e||e.call(t.callback,{resultCode:this.setModeResultData.errorCode,message:this.setModeResultData.errorMsg}))}}class r{constructor(){this.errorCode=-1,this.errorMsg=""}static parse(e){let t=new r,n=JSON.parse(e);return t.errorCode=n.errorCode,t.errorMsg=n.errorMsg,t}}t.default=s},4626:function(e,t,n){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const a=i(n(8506)),s=i(n(529)),r=i(n(9586));class o extends r.default{constructor(){super(...arguments),this.setTagResultData=new l}static parse(e){let t=new o;return super.parseActionMsg(t,e),t.setTagResultData=l.parse(t.actionMsgData.msgData),t}receive(){var e;s.default.info("set tag result",this.setTagResultData);let t=r.default.removeWaitingResponseMessage(this.actionMsgData.msgId);t&&(null===(e=t.callback)||void 0===e||e.call(t.callback,{resultCode:this.setTagResultData.errorCode,message:this.setTagResultData.errorMsg})),a.default.set({key:a.default.KEY_SET_TAG_TIME,data:(new Date).getTime()})}}class l{constructor(){this.errorCode=0,this.errorMsg=""}static parse(e){let t=new l,n=JSON.parse(e);return t.errorCode=n.errorCode,t.errorMsg=n.errorMsg,t}}t.default=o},7562:function(e,t,n){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const a=i(n(8506)),s=i(n(529)),r=i(n(9586));class o extends r.default{constructor(){super(...arguments),this.unbindAliasResultData=new l}static parse(e){let t=new o;return super.parseActionMsg(t,e),t.unbindAliasResultData=l.parse(t.actionMsgData.msgData),t}receive(){var e;s.default.info("unbind alias result",this.unbindAliasResultData);let t=r.default.removeWaitingResponseMessage(this.actionMsgData.msgId);t&&(null===(e=t.callback)||void 0===e||e.call(t.callback,{resultCode:this.unbindAliasResultData.errorCode,message:this.unbindAliasResultData.errorMsg})),a.default.set({key:a.default.KEY_BIND_ALIAS_TIME,data:(new Date).getTime()})}}class l{constructor(){this.errorCode=-1,this.errorMsg=""}static parse(e){let t=new l,n=JSON.parse(e);return t.errorCode=n.errorCode,t.errorMsg=n.errorMsg,t}}t.default=o},8227:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=class{constructor(e){this.delay=10,this.delay=e}start(){this.cancel();let e=this;this.timer=setInterval((function(){e.run()}),this.delay)}cancel(){this.timer&&clearInterval(this.timer)}}},7167:function(e,t,n){var i,a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=a(n(6362)),r=a(n(8227));class o extends r.default{static getInstance(){return o.InstanceHolder.instance}run(){s.default.create().send()}refresh(){this.delay=6e4,this.start()}}o.INTERVAL=6e4,o.InstanceHolder=((i=class{}).instance=new o(o.INTERVAL),i),t.default=o},2323:function(e,t,n){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const a=i(n(4736)),s=i(n(6667));var r;!function(e){let t=(0,a.default)("9223372036854775808");function n(e){e>=t&&(e=t.multiply(2).minus(e));let n="";for(;e>(0,a.default)(0);e=e.divide(62))n+="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".charAt(Number(e.divmod(62).remainder));return n}e.to_getui=function(e){let t=function(e){let t=function(e){let t=e.length;if(t%2!=0)return[];let n=new Array;for(let i=0;i{Object.defineProperty(t,"__esModule",{value:!0});class n{static info(...e){this.debugMode&&console.info("[GtPush]",e)}static warn(...e){console.warn("[GtPush]",e)}static error(...e){console.error("[GtPush]",e)}}n.debugMode=!1,t.default=n},3854:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=class{static getStr(e,t){try{return e&&void 0!==e[t]?e[t]:""}catch(n){}return""}}},2620:(e,t,n)=>{function i(e){return"0123456789abcdefghijklmnopqrstuvwxyz".charAt(e)}function a(e,t){return e&t}function s(e,t){return e|t}function r(e,t){return e^t}function o(e,t){return e&~t}function l(e){if(0==e)return-1;var t=0;return 0==(65535&e)&&(e>>=16,t+=16),0==(255&e)&&(e>>=8,t+=8),0==(15&e)&&(e>>=4,t+=4),0==(3&e)&&(e>>=2,t+=2),0==(1&e)&&++t,t}function c(e){for(var t=0;0!=e;)e&=e-1,++t;return t}n.r(t),n.d(t,{JSEncrypt:()=>ee,default:()=>te});var u,d="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function h(e){var t,n,i="";for(t=0;t+3<=e.length;t+=3)n=parseInt(e.substring(t,t+3),16),i+=d.charAt(n>>6)+d.charAt(63&n);for(t+1==e.length?(n=parseInt(e.substring(t,t+1),16),i+=d.charAt(n<<2)):t+2==e.length&&(n=parseInt(e.substring(t,t+2),16),i+=d.charAt(n>>2)+d.charAt((3&n)<<4));(3&i.length)>0;)i+="=";return i}var p,f=function(e){var t;if(void 0===u){var n="0123456789ABCDEF",i=" \f\n\r\t \u2028\u2029";for(u={},t=0;t<16;++t)u[n.charAt(t)]=t;for(n=n.toLowerCase(),t=10;t<16;++t)u[n.charAt(t)]=t;for(t=0;t=2?(a[a.length]=s,s=0,r=0):s<<=4}}if(r)throw new Error("Hex encoding incomplete: 4 bits missing");return a},m={decode:function(e){var t;if(void 0===p){var n="= \f\n\r\t \u2028\u2029";for(p=Object.create(null),t=0;t<64;++t)p["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(t)]=t;for(p["-"]=62,p._=63,t=0;t=4?(i[i.length]=a>>16,i[i.length]=a>>8&255,i[i.length]=255&a,a=0,s=0):a<<=6}}switch(s){case 1:throw new Error("Base64 encoding incomplete: at least 2 bits missing");case 2:i[i.length]=a>>10;break;case 3:i[i.length]=a>>16,i[i.length]=a>>8&255}return i},re:/-----BEGIN [^-]+-----([A-Za-z0-9+\/=\s]+)-----END [^-]+-----|begin-base64[^\n]+\n([A-Za-z0-9+\/=\s]+)====/,unarmor:function(e){var t=m.re.exec(e);if(t)if(t[1])e=t[1];else{if(!t[2])throw new Error("RegExp out of sync");e=t[2]}return m.decode(e)}},g=1e13,v=function(){function e(e){this.buf=[+e||0]}return e.prototype.mulAdd=function(e,t){var n,i,a=this.buf,s=a.length;for(n=0;n0&&(a[n]=t)},e.prototype.sub=function(e){var t,n,i=this.buf,a=i.length;for(t=0;t=0;--i)n+=(g+t[i]).toString().substring(1);return n},e.prototype.valueOf=function(){for(var e=this.buf,t=0,n=e.length-1;n>=0;--n)t=t*g+e[n];return t},e.prototype.simplify=function(){var e=this.buf;return 1==e.length?e[0]:this},e}(),y=/^(\d\d)(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])([01]\d|2[0-3])(?:([0-5]\d)(?:([0-5]\d)(?:[.,](\d{1,3}))?)?)?(Z|[-+](?:[0]\d|1[0-2])([0-5]\d)?)?$/,w=/^(\d\d\d\d)(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])([01]\d|2[0-3])(?:([0-5]\d)(?:([0-5]\d)(?:[.,](\d{1,3}))?)?)?(Z|[-+](?:[0]\d|1[0-2])([0-5]\d)?)?$/;function k(e,t){return e.length>t&&(e=e.substring(0,t)+"…"),e}var _,S=function(){function e(t,n){this.hexDigits="0123456789ABCDEF",t instanceof e?(this.enc=t.enc,this.pos=t.pos):(this.enc=t,this.pos=n)}return e.prototype.get=function(e){if(void 0===e&&(e=this.pos++),e>=this.enc.length)throw new Error("Requesting byte offset "+e+" on a stream of length "+this.enc.length);return"string"==typeof this.enc?this.enc.charCodeAt(e):this.enc[e]},e.prototype.hexByte=function(e){return this.hexDigits.charAt(e>>4&15)+this.hexDigits.charAt(15&e)},e.prototype.hexDump=function(e,t,n){for(var i="",a=e;a176)return!1}return!0},e.prototype.parseStringISO=function(e,t){for(var n="",i=e;i191&&a<224?String.fromCharCode((31&a)<<6|63&this.get(i++)):String.fromCharCode((15&a)<<12|(63&this.get(i++))<<6|63&this.get(i++))}return n},e.prototype.parseStringBMP=function(e,t){for(var n,i,a="",s=e;s127,s=a?255:0,r="";i==s&&++e4){for(r=i,n<<=3;0==(128&(+r^s));)r=+r<<1,--n;r="("+n+" bit)\n"}a&&(i-=256);for(var o=new v(i),l=e+1;l=l;--c)s+=o>>c&1?"1":"0";if(s.length>n)return a+k(s,n)}return a+s},e.prototype.parseOctetString=function(e,t,n){if(this.isASCII(e,t))return k(this.parseStringISO(e,t),n);var i=t-e,a="("+i+" byte)\n";i>(n/=2)&&(t=e+n);for(var s=e;sn&&(a+="…"),a},e.prototype.parseOID=function(e,t,n){for(var i="",a=new v,s=0,r=e;rn)return k(i,n);a=new v,s=0}}return s>0&&(i+=".incomplete"),i},e}(),b=function(){function e(e,t,n,i,a){if(!(i instanceof E))throw new Error("Invalid tag value.");this.stream=e,this.header=t,this.length=n,this.tag=i,this.sub=a}return e.prototype.typeName=function(){switch(this.tag.tagClass){case 0:switch(this.tag.tagNumber){case 0:return"EOC";case 1:return"BOOLEAN";case 2:return"INTEGER";case 3:return"BIT_STRING";case 4:return"OCTET_STRING";case 5:return"NULL";case 6:return"OBJECT_IDENTIFIER";case 7:return"ObjectDescriptor";case 8:return"EXTERNAL";case 9:return"REAL";case 10:return"ENUMERATED";case 11:return"EMBEDDED_PDV";case 12:return"UTF8String";case 16:return"SEQUENCE";case 17:return"SET";case 18:return"NumericString";case 19:return"PrintableString";case 20:return"TeletexString";case 21:return"VideotexString";case 22:return"IA5String";case 23:return"UTCTime";case 24:return"GeneralizedTime";case 25:return"GraphicString";case 26:return"VisibleString";case 27:return"GeneralString";case 28:return"UniversalString";case 30:return"BMPString"}return"Universal_"+this.tag.tagNumber.toString();case 1:return"Application_"+this.tag.tagNumber.toString();case 2:return"["+this.tag.tagNumber.toString()+"]";case 3:return"Private_"+this.tag.tagNumber.toString()}},e.prototype.content=function(e){if(void 0===this.tag)return null;void 0===e&&(e=1/0);var t=this.posContent(),n=Math.abs(this.length);if(!this.tag.isUniversal())return null!==this.sub?"("+this.sub.length+" elem)":this.stream.parseOctetString(t,t+n,e);switch(this.tag.tagNumber){case 1:return 0===this.stream.get(t)?"false":"true";case 2:return this.stream.parseInteger(t,t+n);case 3:return this.sub?"("+this.sub.length+" elem)":this.stream.parseBitString(t,t+n,e);case 4:return this.sub?"("+this.sub.length+" elem)":this.stream.parseOctetString(t,t+n,e);case 6:return this.stream.parseOID(t,t+n,e);case 16:case 17:return null!==this.sub?"("+this.sub.length+" elem)":"(no elem)";case 12:return k(this.stream.parseStringUTF(t,t+n),e);case 18:case 19:case 20:case 21:case 22:case 26:return k(this.stream.parseStringISO(t,t+n),e);case 30:return k(this.stream.parseStringBMP(t,t+n),e);case 23:case 24:return this.stream.parseTime(t,t+n,23==this.tag.tagNumber)}return null},e.prototype.toString=function(){return this.typeName()+"@"+this.stream.pos+"[header:"+this.header+",length:"+this.length+",sub:"+(null===this.sub?"null":this.sub.length)+"]"},e.prototype.toPrettyString=function(e){void 0===e&&(e="");var t=e+this.typeName()+" @"+this.stream.pos;if(this.length>=0&&(t+="+"),t+=this.length,this.tag.tagConstructed?t+=" (constructed)":!this.tag.isUniversal()||3!=this.tag.tagNumber&&4!=this.tag.tagNumber||null===this.sub||(t+=" (encapsulates)"),t+="\n",null!==this.sub){e+=" ";for(var n=0,i=this.sub.length;n6)throw new Error("Length over 48 bits not supported at position "+(e.pos-1));if(0===n)return null;t=0;for(var i=0;i>6,this.tagConstructed=0!=(32&t),this.tagNumber=31&t,31==this.tagNumber){var n=new v;do{t=e.get(),n.mulAdd(128,127&t)}while(128&t);this.tagNumber=n.simplify()}}return e.prototype.isUniversal=function(){return 0===this.tagClass},e.prototype.isEOC=function(){return 0===this.tagClass&&0===this.tagNumber},e}(),x=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997],D=(1<<26)/x[x.length-1],T=function(){function e(e,t,n){null!=e&&("number"==typeof e?this.fromNumber(e,t,n):null==t&&"string"!=typeof e?this.fromString(e,256):this.fromString(e,t))}return e.prototype.toString=function(e){if(this.s<0)return"-"+this.negate().toString(e);var t;if(16==e)t=4;else if(8==e)t=3;else if(2==e)t=1;else if(32==e)t=5;else{if(4!=e)return this.toRadix(e);t=2}var n,a=(1<0)for(l>l)>0&&(s=!0,r=i(n));o>=0;)l>(l+=this.DB-t)):(n=this[o]>>(l-=t)&a,l<=0&&(l+=this.DB,--o)),n>0&&(s=!0),s&&(r+=i(n));return s?r:"0"},e.prototype.negate=function(){var t=B();return e.ZERO.subTo(this,t),t},e.prototype.abs=function(){return this.s<0?this.negate():this},e.prototype.compareTo=function(e){var t=this.s-e.s;if(0!=t)return t;var n=this.t;if(0!=(t=n-e.t))return this.s<0?-t:t;for(;--n>=0;)if(0!=(t=this[n]-e[n]))return t;return 0},e.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+j(this[this.t-1]^this.s&this.DM)},e.prototype.mod=function(t){var n=B();return this.abs().divRemTo(t,null,n),this.s<0&&n.compareTo(e.ZERO)>0&&t.subTo(n,n),n},e.prototype.modPowInt=function(e,t){var n;return n=e<256||t.isEven()?new C(t):new V(t),this.exp(e,n)},e.prototype.clone=function(){var e=B();return this.copyTo(e),e},e.prototype.intValue=function(){if(this.s<0){if(1==this.t)return this[0]-this.DV;if(0==this.t)return-1}else{if(1==this.t)return this[0];if(0==this.t)return 0}return(this[1]&(1<<32-this.DB)-1)<>24},e.prototype.shortValue=function(){return 0==this.t?this.s:this[0]<<16>>16},e.prototype.signum=function(){return this.s<0?-1:this.t<=0||1==this.t&&this[0]<=0?0:1},e.prototype.toByteArray=function(){var e=this.t,t=[];t[0]=this.s;var n,i=this.DB-e*this.DB%8,a=0;if(e-- >0)for(i>i)!=(this.s&this.DM)>>i&&(t[a++]=n|this.s<=0;)i<8?(n=(this[e]&(1<>(i+=this.DB-8)):(n=this[e]>>(i-=8)&255,i<=0&&(i+=this.DB,--e)),0!=(128&n)&&(n|=-256),0==a&&(128&this.s)!=(128&n)&&++a,(a>0||n!=this.s)&&(t[a++]=n);return t},e.prototype.equals=function(e){return 0==this.compareTo(e)},e.prototype.min=function(e){return this.compareTo(e)<0?this:e},e.prototype.max=function(e){return this.compareTo(e)>0?this:e},e.prototype.and=function(e){var t=B();return this.bitwiseTo(e,a,t),t},e.prototype.or=function(e){var t=B();return this.bitwiseTo(e,s,t),t},e.prototype.xor=function(e){var t=B();return this.bitwiseTo(e,r,t),t},e.prototype.andNot=function(e){var t=B();return this.bitwiseTo(e,o,t),t},e.prototype.not=function(){for(var e=B(),t=0;t=this.t?0!=this.s:0!=(this[t]&1<1){var u=B();for(i.sqrTo(r[1],u);o<=c;)r[o]=B(),i.mulTo(u,r[o-2],r[o]),o+=2}var d,h,p=e.t-1,f=!0,m=B();for(a=j(e[p])-1;p>=0;){for(a>=l?d=e[p]>>a-l&c:(d=(e[p]&(1<0&&(d|=e[p-1]>>this.DB+a-l)),o=n;0==(1&d);)d>>=1,--o;if((a-=o)<0&&(a+=this.DB,--p),f)r[d].copyTo(s),f=!1;else{for(;o>1;)i.sqrTo(s,m),i.sqrTo(m,s),o-=2;o>0?i.sqrTo(s,m):(h=s,s=m,m=h),i.mulTo(m,r[d],s)}for(;p>=0&&0==(e[p]&1<=0?(i.subTo(a,i),n&&s.subTo(o,s),r.subTo(l,r)):(a.subTo(i,a),n&&o.subTo(s,o),l.subTo(r,l))}return 0!=a.compareTo(e.ONE)?e.ZERO:l.compareTo(t)>=0?l.subtract(t):l.signum()<0?(l.addTo(t,l),l.signum()<0?l.add(t):l):l},e.prototype.pow=function(e){return this.exp(e,new N)},e.prototype.gcd=function(e){var t=this.s<0?this.negate():this.clone(),n=e.s<0?e.negate():e.clone();if(t.compareTo(n)<0){var i=t;t=n,n=i}var a=t.getLowestSetBit(),s=n.getLowestSetBit();if(s<0)return t;for(a0&&(t.rShiftTo(s,t),n.rShiftTo(s,n));t.signum()>0;)(a=t.getLowestSetBit())>0&&t.rShiftTo(a,t),(a=n.getLowestSetBit())>0&&n.rShiftTo(a,n),t.compareTo(n)>=0?(t.subTo(n,t),t.rShiftTo(1,t)):(n.subTo(t,n),n.rShiftTo(1,n));return s>0&&n.lShiftTo(s,n),n},e.prototype.isProbablePrime=function(e){var t,n=this.abs();if(1==n.t&&n[0]<=x[x.length-1]){for(t=0;t=0;--t)e[t]=this[t];e.t=this.t,e.s=this.s},e.prototype.fromInt=function(e){this.t=1,this.s=e<0?-1:0,e>0?this[0]=e:e<-1?this[0]=e+this.DV:this.t=0},e.prototype.fromString=function(t,n){var i;if(16==n)i=4;else if(8==n)i=3;else if(256==n)i=8;else if(2==n)i=1;else if(32==n)i=5;else{if(4!=n)return void this.fromRadix(t,n);i=2}this.t=0,this.s=0;for(var a=t.length,s=!1,r=0;--a>=0;){var o=8==i?255&+t[a]:L(t,a);o<0?"-"==t.charAt(a)&&(s=!0):(s=!1,0==r?this[this.t++]=o:r+i>this.DB?(this[this.t-1]|=(o&(1<>this.DB-r):this[this.t-1]|=o<=this.DB&&(r-=this.DB))}8==i&&0!=(128&+t[0])&&(this.s=-1,r>0&&(this[this.t-1]|=(1<0&&this[this.t-1]==e;)--this.t},e.prototype.dlShiftTo=function(e,t){var n;for(n=this.t-1;n>=0;--n)t[n+e]=this[n];for(n=e-1;n>=0;--n)t[n]=0;t.t=this.t+e,t.s=this.s},e.prototype.drShiftTo=function(e,t){for(var n=e;n=0;--o)t[o+s+1]=this[o]>>i|r,r=(this[o]&a)<=0;--o)t[o]=0;t[s]=r,t.t=this.t+s+1,t.s=this.s,t.clamp()},e.prototype.rShiftTo=function(e,t){t.s=this.s;var n=Math.floor(e/this.DB);if(n>=this.t)t.t=0;else{var i=e%this.DB,a=this.DB-i,s=(1<>i;for(var r=n+1;r>i;i>0&&(t[this.t-n-1]|=(this.s&s)<>=this.DB;if(e.t>=this.DB;i+=this.s}else{for(i+=this.s;n>=this.DB;i-=e.s}t.s=i<0?-1:0,i<-1?t[n++]=this.DV+i:i>0&&(t[n++]=i),t.t=n,t.clamp()},e.prototype.multiplyTo=function(t,n){var i=this.abs(),a=t.abs(),s=i.t;for(n.t=s+a.t;--s>=0;)n[s]=0;for(s=0;s=0;)e[n]=0;for(n=0;n=t.DV&&(e[n+t.t]-=t.DV,e[n+t.t+1]=1)}e.t>0&&(e[e.t-1]+=t.am(n,t[n],e,2*n,0,1)),e.s=0,e.clamp()},e.prototype.divRemTo=function(t,n,i){var a=t.abs();if(!(a.t<=0)){var s=this.abs();if(s.t0?(a.lShiftTo(c,r),s.lShiftTo(c,i)):(a.copyTo(r),s.copyTo(i));var u=r.t,d=r[u-1];if(0!=d){var h=d*(1<1?r[u-2]>>this.F2:0),p=this.FV/h,f=(1<=0&&(i[i.t++]=1,i.subTo(y,i)),e.ONE.dlShiftTo(u,y),y.subTo(r,r);r.t=0;){var w=i[--g]==d?this.DM:Math.floor(i[g]*p+(i[g-1]+m)*f);if((i[g]+=r.am(0,w,i,v,0,u))0&&i.rShiftTo(c,i),o<0&&e.ZERO.subTo(i,i)}}},e.prototype.invDigit=function(){if(this.t<1)return 0;var e=this[0];if(0==(1&e))return 0;var t=3&e;return(t=(t=(t=(t=t*(2-(15&e)*t)&15)*(2-(255&e)*t)&255)*(2-((65535&e)*t&65535))&65535)*(2-e*t%this.DV)%this.DV)>0?this.DV-t:-t},e.prototype.isEven=function(){return 0==(this.t>0?1&this[0]:this.s)},e.prototype.exp=function(t,n){if(t>4294967295||t<1)return e.ONE;var i=B(),a=B(),s=n.convert(this),r=j(t)-1;for(s.copyTo(i);--r>=0;)if(n.sqrTo(i,a),(t&1<0)n.mulTo(a,s,i);else{var o=i;i=a,a=o}return n.revert(i)},e.prototype.chunkSize=function(e){return Math.floor(Math.LN2*this.DB/Math.log(e))},e.prototype.toRadix=function(e){if(null==e&&(e=10),0==this.signum()||e<2||e>36)return"0";var t=this.chunkSize(e),n=Math.pow(e,t),i=F(n),a=B(),s=B(),r="";for(this.divRemTo(i,a,s);a.signum()>0;)r=(n+s.intValue()).toString(e).substr(1)+r,a.divRemTo(i,a,s);return s.intValue().toString(e)+r},e.prototype.fromRadix=function(t,n){this.fromInt(0),null==n&&(n=10);for(var i=this.chunkSize(n),a=Math.pow(n,i),s=!1,r=0,o=0,l=0;l=i&&(this.dMultiply(a),this.dAddOffset(o,0),r=0,o=0))}r>0&&(this.dMultiply(Math.pow(n,r)),this.dAddOffset(o,0)),s&&e.ZERO.subTo(this,this)},e.prototype.fromNumber=function(t,n,i){if("number"==typeof n)if(t<2)this.fromInt(1);else for(this.fromNumber(t,i),this.testBit(t-1)||this.bitwiseTo(e.ONE.shiftLeft(t-1),s,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(n);)this.dAddOffset(2,0),this.bitLength()>t&&this.subTo(e.ONE.shiftLeft(t-1),this);else{var a=[],r=7&t;a.length=1+(t>>3),n.nextBytes(a),r>0?a[0]&=(1<>=this.DB;if(e.t>=this.DB;i+=this.s}else{for(i+=this.s;n>=this.DB;i+=e.s}t.s=i<0?-1:0,i>0?t[n++]=i:i<-1&&(t[n++]=this.DV+i),t.t=n,t.clamp()},e.prototype.dMultiply=function(e){this[this.t]=this.am(0,e-1,this,0,0,this.t),++this.t,this.clamp()},e.prototype.dAddOffset=function(e,t){if(0!=e){for(;this.t<=t;)this[this.t++]=0;for(this[t]+=e;this[t]>=this.DV;)this[t]-=this.DV,++t>=this.t&&(this[this.t++]=0),++this[t]}},e.prototype.multiplyLowerTo=function(e,t,n){var i=Math.min(this.t+e.t,t);for(n.s=0,n.t=i;i>0;)n[--i]=0;for(var a=n.t-this.t;i=0;)n[i]=0;for(i=Math.max(t-this.t,0);i0)if(0==t)n=this[0]%e;else for(var i=this.t-1;i>=0;--i)n=(t*n+this[i])%e;return n},e.prototype.millerRabin=function(t){var n=this.subtract(e.ONE),i=n.getLowestSetBit();if(i<=0)return!1;var a=n.shiftRight(i);(t=t+1>>1)>x.length&&(t=x.length);for(var s=B(),r=0;r0&&(n.rShiftTo(r,n),i.rShiftTo(r,i));var o=function(){(s=n.getLowestSetBit())>0&&n.rShiftTo(s,n),(s=i.getLowestSetBit())>0&&i.rShiftTo(s,i),n.compareTo(i)>=0?(n.subTo(i,n),n.rShiftTo(1,n)):(i.subTo(n,i),i.rShiftTo(1,i)),n.signum()>0?setTimeout(o,0):(r>0&&i.lShiftTo(r,i),setTimeout((function(){t(i)}),0))};setTimeout(o,10)}},e.prototype.fromNumberAsync=function(t,n,i,a){if("number"==typeof n)if(t<2)this.fromInt(1);else{this.fromNumber(t,i),this.testBit(t-1)||this.bitwiseTo(e.ONE.shiftLeft(t-1),s,this),this.isEven()&&this.dAddOffset(1,0);var r=this,o=function(){r.dAddOffset(2,0),r.bitLength()>t&&r.subTo(e.ONE.shiftLeft(t-1),r),r.isProbablePrime(n)?setTimeout((function(){a()}),0):setTimeout(o,0)};setTimeout(o,0)}else{var l=[],c=7&t;l.length=1+(t>>3),n.nextBytes(l),c>0?l[0]&=(1<=0?e.mod(this.m):e},e.prototype.revert=function(e){return e},e.prototype.reduce=function(e){e.divRemTo(this.m,null,e)},e.prototype.mulTo=function(e,t,n){e.multiplyTo(t,n),this.reduce(n)},e.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)},e}(),V=function(){function e(e){this.m=e,this.mp=e.invDigit(),this.mpl=32767&this.mp,this.mph=this.mp>>15,this.um=(1<0&&this.m.subTo(t,t),t},e.prototype.revert=function(e){var t=B();return e.copyTo(t),this.reduce(t),t},e.prototype.reduce=function(e){for(;e.t<=this.mt2;)e[e.t++]=0;for(var t=0;t>15)*this.mpl&this.um)<<15)&e.DM;for(e[n=t+this.m.t]+=this.m.am(0,i,e,t,0,this.m.t);e[n]>=e.DV;)e[n]-=e.DV,e[++n]++}e.clamp(),e.drShiftTo(this.m.t,e),e.compareTo(this.m)>=0&&e.subTo(this.m,e)},e.prototype.mulTo=function(e,t,n){e.multiplyTo(t,n),this.reduce(n)},e.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)},e}(),I=function(){function e(e){this.m=e,this.r2=B(),this.q3=B(),T.ONE.dlShiftTo(2*e.t,this.r2),this.mu=this.r2.divide(e)}return e.prototype.convert=function(e){if(e.s<0||e.t>2*this.m.t)return e.mod(this.m);if(e.compareTo(this.m)<0)return e;var t=B();return e.copyTo(t),this.reduce(t),t},e.prototype.revert=function(e){return e},e.prototype.reduce=function(e){for(e.drShiftTo(this.m.t-1,this.r2),e.t>this.m.t+1&&(e.t=this.m.t+1,e.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);e.compareTo(this.r2)<0;)e.dAddOffset(1,this.m.t+1);for(e.subTo(this.r2,e);e.compareTo(this.m)>=0;)e.subTo(this.m,e)},e.prototype.mulTo=function(e,t,n){e.multiplyTo(t,n),this.reduce(n)},e.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)},e}();function B(){return new T(null)}function A(e,t){return new T(e,t)}var M="undefined"!=typeof navigator;M&&"Microsoft Internet Explorer"==navigator.appName?(T.prototype.am=function(e,t,n,i,a,s){for(var r=32767&t,o=t>>15;--s>=0;){var l=32767&this[e],c=this[e++]>>15,u=o*l+c*r;a=((l=r*l+((32767&u)<<15)+n[i]+(1073741823&a))>>>30)+(u>>>15)+o*c+(a>>>30),n[i++]=1073741823&l}return a},_=30):M&&"Netscape"!=navigator.appName?(T.prototype.am=function(e,t,n,i,a,s){for(;--s>=0;){var r=t*this[e++]+n[i]+a;a=Math.floor(r/67108864),n[i++]=67108863&r}return a},_=26):(T.prototype.am=function(e,t,n,i,a,s){for(var r=16383&t,o=t>>14;--s>=0;){var l=16383&this[e],c=this[e++]>>14,u=o*l+c*r;a=((l=r*l+((16383&u)<<14)+n[i]+a)>>28)+(u>>14)+o*c,n[i++]=268435455&l}return a},_=28),T.prototype.DB=_,T.prototype.DM=(1<<_)-1,T.prototype.DV=1<<_,T.prototype.FV=Math.pow(2,52),T.prototype.F1=52-_,T.prototype.F2=2*_-52;var P,R,O=[];for(P="0".charCodeAt(0),R=0;R<=9;++R)O[P++]=R;for(P="a".charCodeAt(0),R=10;R<36;++R)O[P++]=R;for(P="A".charCodeAt(0),R=10;R<36;++R)O[P++]=R;function L(e,t){var n=O[e.charCodeAt(t)];return null==n?-1:n}function F(e){var t=B();return t.fromInt(e),t}function j(e){var t,n=1;return 0!=(t=e>>>16)&&(e=t,n+=16),0!=(t=e>>8)&&(e=t,n+=8),0!=(t=e>>4)&&(e=t,n+=4),0!=(t=e>>2)&&(e=t,n+=2),0!=(t=e>>1)&&(e=t,n+=1),n}T.ZERO=F(0),T.ONE=F(1);var U,$,z=function(){function e(){this.i=0,this.j=0,this.S=[]}return e.prototype.init=function(e){var t,n,i;for(t=0;t<256;++t)this.S[t]=t;for(n=0,t=0;t<256;++t)n=n+this.S[t]+e[t%e.length]&255,i=this.S[t],this.S[t]=this.S[n],this.S[n]=i;this.i=0,this.j=0},e.prototype.next=function(){var e;return this.i=this.i+1&255,this.j=this.j+this.S[this.i]&255,e=this.S[this.i],this.S[this.i]=this.S[this.j],this.S[this.j]=e,this.S[e+this.S[this.i]&255]},e}(),H=null;function q(){if(null==U){for(U=new z;$<256;){var e=Math.floor(65536*Math.random());H[$++]=255&e}for(U.init(H),$=0;$0&&t.length>0?(this.n=A(e,16),this.e=parseInt(t,16)):console.error("Invalid RSA public key")},e.prototype.encrypt=function(e){var t=this.n.bitLength()+7>>3,n=function(e,t){if(t=0&&t>0;){var a=e.charCodeAt(i--);a<128?n[--t]=a:a>127&&a<2048?(n[--t]=63&a|128,n[--t]=a>>6|192):(n[--t]=63&a|128,n[--t]=a>>6&63|128,n[--t]=a>>12|224)}n[--t]=0;for(var s=new K,r=[];t>2;){for(r[0]=0;0==r[0];)s.nextBytes(r);n[--t]=r[0]}return n[--t]=2,n[--t]=0,new T(n)}(e,t);if(null==n)return null;var i=this.doPublic(n);if(null==i)return null;for(var a=i.toString(16),s=a.length,r=0;r<2*t-s;r++)a="0"+a;return a},e.prototype.setPrivate=function(e,t,n){null!=e&&null!=t&&e.length>0&&t.length>0?(this.n=A(e,16),this.e=parseInt(t,16),this.d=A(n,16)):console.error("Invalid RSA private key")},e.prototype.setPrivateEx=function(e,t,n,i,a,s,r,o){null!=e&&null!=t&&e.length>0&&t.length>0?(this.n=A(e,16),this.e=parseInt(t,16),this.d=A(n,16),this.p=A(i,16),this.q=A(a,16),this.dmp1=A(s,16),this.dmq1=A(r,16),this.coeff=A(o,16)):console.error("Invalid RSA private key")},e.prototype.generate=function(e,t){var n=new K,i=e>>1;this.e=parseInt(t,16);for(var a=new T(t,16);;){for(;this.p=new T(e-i,1,n),0!=this.p.subtract(T.ONE).gcd(a).compareTo(T.ONE)||!this.p.isProbablePrime(10););for(;this.q=new T(i,1,n),0!=this.q.subtract(T.ONE).gcd(a).compareTo(T.ONE)||!this.q.isProbablePrime(10););if(this.p.compareTo(this.q)<=0){var s=this.p;this.p=this.q,this.q=s}var r=this.p.subtract(T.ONE),o=this.q.subtract(T.ONE),l=r.multiply(o);if(0==l.gcd(a).compareTo(T.ONE)){this.n=this.p.multiply(this.q),this.d=a.modInverse(l),this.dmp1=this.d.mod(r),this.dmq1=this.d.mod(o),this.coeff=this.q.modInverse(this.p);break}}},e.prototype.decrypt=function(e){var t=A(e,16),n=this.doPrivate(t);return null==n?null:function(e,t){for(var n=e.toByteArray(),i=0;i=n.length)return null;for(var a="";++i191&&s<224?(a+=String.fromCharCode((31&s)<<6|63&n[i+1]),++i):(a+=String.fromCharCode((15&s)<<12|(63&n[i+1])<<6|63&n[i+2]),i+=2)}return a}(n,this.n.bitLength()+7>>3)},e.prototype.generateAsync=function(e,t,n){var i=new K,a=e>>1;this.e=parseInt(t,16);var s=new T(t,16),r=this,o=function(){var t=function(){if(r.p.compareTo(r.q)<=0){var e=r.p;r.p=r.q,r.q=e}var t=r.p.subtract(T.ONE),i=r.q.subtract(T.ONE),a=t.multiply(i);0==a.gcd(s).compareTo(T.ONE)?(r.n=r.p.multiply(r.q),r.d=s.modInverse(a),r.dmp1=r.d.mod(t),r.dmq1=r.d.mod(i),r.coeff=r.q.modInverse(r.p),setTimeout((function(){n()}),0)):setTimeout(o,0)},l=function(){r.q=B(),r.q.fromNumberAsync(a,1,i,(function(){r.q.subtract(T.ONE).gcda(s,(function(e){0==e.compareTo(T.ONE)&&r.q.isProbablePrime(10)?setTimeout(t,0):setTimeout(l,0)}))}))},c=function(){r.p=B(),r.p.fromNumberAsync(e-a,1,i,(function(){r.p.subtract(T.ONE).gcda(s,(function(e){0==e.compareTo(T.ONE)&&r.p.isProbablePrime(10)?setTimeout(l,0):setTimeout(c,0)}))}))};setTimeout(c,0)};setTimeout(o,0)},e.prototype.sign=function(e,t,n){var i=function(e){return W[e]||""}(n),a=function(e,t){if(t>3)-11;return this.setSplitChn(e,i).forEach((function(e){n+=t.encrypt(e)})),n},e.prototype.decryptLong=function(e){var t="",n=this.n.bitLength()+7>>3,i=2*n;if(e.length>i){for(var a=e.match(new RegExp(".{1,"+i+"}","g"))||[],s=[],r=0;r=a.length)return null;n=n.concat(a.slice(s+1))}for(var r=n,o=-1,l="";++o191&&c<224?(l+=String.fromCharCode((31&c)<<6|63&r[o+1]),++o):(l+=String.fromCharCode((15&c)<<12|(63&r[o+1])<<6|63&r[o+2]),o+=2)}return l}(s,n)}else t=this.decrypt(e);return t},e.prototype.setSplitChn=function(e,t,n){void 0===n&&(n=[]);for(var i=e.split(""),a=0,s=0;st){var o=e.substring(0,s);return n.push(o),this.setSplitChn(e.substring(s),t,n)}}return n.push(e),n},e}(),W={md2:"3020300c06082a864886f70d020205000410",md5:"3020300c06082a864886f70d020505000410",sha1:"3021300906052b0e03021a05000414",sha224:"302d300d06096086480165030402040500041c",sha256:"3031300d060960864801650304020105000420",sha384:"3041300d060960864801650304020205000430",sha512:"3051300d060960864801650304020305000440",ripemd160:"3021300906052b2403020105000414"},Y={};Y.lang={extend:function(e,t,n){if(!t||!e)throw new Error("YAHOO.lang.extend failed, please check that all dependencies are included.");var i=function(){};if(i.prototype=t.prototype,e.prototype=new i,e.prototype.constructor=e,e.superclass=t.prototype,t.prototype.constructor==Object.prototype.constructor&&(t.prototype.constructor=t),n){var a;for(a in n)e.prototype[a]=n[a];var s=function(){},r=["toString","valueOf"];try{/MSIE/.test(navigator.userAgent)&&(s=function(e,t){for(a=0;a15)throw"ASN.1 length too long to represent by 8x: n = "+e.toString(16);return(128+n).toString(16)+t},this.getEncodedHex=function(){return(null==this.hTLV||this.isModified)&&(this.hV=this.getFreshValueHex(),this.hL=this.getLengthHexFromValue(),this.hTLV=this.hT+this.hL+this.hV,this.isModified=!1),this.hTLV},this.getValueHex=function(){return this.getEncodedHex(),this.hV},this.getFreshValueHex=function(){return""}},G.asn1.DERAbstractString=function(e){G.asn1.DERAbstractString.superclass.constructor.call(this),this.getString=function(){return this.s},this.setString=function(e){this.hTLV=null,this.isModified=!0,this.s=e,this.hV=stohex(this.s)},this.setStringHex=function(e){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=e},this.getFreshValueHex=function(){return this.hV},void 0!==e&&("string"==typeof e?this.setString(e):void 0!==e.str?this.setString(e.str):void 0!==e.hex&&this.setStringHex(e.hex))},Y.lang.extend(G.asn1.DERAbstractString,G.asn1.ASN1Object),G.asn1.DERAbstractTime=function(e){G.asn1.DERAbstractTime.superclass.constructor.call(this),this.localDateToUTC=function(e){return utc=e.getTime()+6e4*e.getTimezoneOffset(),new Date(utc)},this.formatDate=function(e,t,n){var i=this.zeroPadding,a=this.localDateToUTC(e),s=String(a.getFullYear());"utc"==t&&(s=s.substr(2,2));var r=s+i(String(a.getMonth()+1),2)+i(String(a.getDate()),2)+i(String(a.getHours()),2)+i(String(a.getMinutes()),2)+i(String(a.getSeconds()),2);if(!0===n){var o=a.getMilliseconds();if(0!=o){var l=i(String(o),3);r=r+"."+(l=l.replace(/[0]+$/,""))}}return r+"Z"},this.zeroPadding=function(e,t){return e.length>=t?e:new Array(t-e.length+1).join("0")+e},this.getString=function(){return this.s},this.setString=function(e){this.hTLV=null,this.isModified=!0,this.s=e,this.hV=stohex(e)},this.setByDateValue=function(e,t,n,i,a,s){var r=new Date(Date.UTC(e,t-1,n,i,a,s,0));this.setByDate(r)},this.getFreshValueHex=function(){return this.hV}},Y.lang.extend(G.asn1.DERAbstractTime,G.asn1.ASN1Object),G.asn1.DERAbstractStructured=function(e){G.asn1.DERAbstractString.superclass.constructor.call(this),this.setByASN1ObjectArray=function(e){this.hTLV=null,this.isModified=!0,this.asn1Array=e},this.appendASN1Object=function(e){this.hTLV=null,this.isModified=!0,this.asn1Array.push(e)},this.asn1Array=new Array,void 0!==e&&void 0!==e.array&&(this.asn1Array=e.array)},Y.lang.extend(G.asn1.DERAbstractStructured,G.asn1.ASN1Object),G.asn1.DERBoolean=function(){G.asn1.DERBoolean.superclass.constructor.call(this),this.hT="01",this.hTLV="0101ff"},Y.lang.extend(G.asn1.DERBoolean,G.asn1.ASN1Object),G.asn1.DERInteger=function(e){G.asn1.DERInteger.superclass.constructor.call(this),this.hT="02",this.setByBigInteger=function(e){this.hTLV=null,this.isModified=!0,this.hV=G.asn1.ASN1Util.bigIntToMinTwosComplementsHex(e)},this.setByInteger=function(e){var t=new T(String(e),10);this.setByBigInteger(t)},this.setValueHex=function(e){this.hV=e},this.getFreshValueHex=function(){return this.hV},void 0!==e&&(void 0!==e.bigint?this.setByBigInteger(e.bigint):void 0!==e.int?this.setByInteger(e.int):"number"==typeof e?this.setByInteger(e):void 0!==e.hex&&this.setValueHex(e.hex))},Y.lang.extend(G.asn1.DERInteger,G.asn1.ASN1Object),G.asn1.DERBitString=function(e){if(void 0!==e&&void 0!==e.obj){var t=G.asn1.ASN1Util.newObject(e.obj);e.hex="00"+t.getEncodedHex()}G.asn1.DERBitString.superclass.constructor.call(this),this.hT="03",this.setHexValueIncludingUnusedBits=function(e){this.hTLV=null,this.isModified=!0,this.hV=e},this.setUnusedBitsAndHexValue=function(e,t){if(e<0||7>2),s=3&r,a=1):1==a?(n+=i(s<<2|r>>4),s=15&r,a=2):2==a?(n+=i(s),n+=i(r>>2),s=3&r,a=3):(n+=i(s<<2|r>>4),n+=i(15&r),a=0))}return 1==a&&(n+=i(s<<2)),n}(t),n)}catch(a){return!1}},e.prototype.getKey=function(e){if(!this.key){if(this.key=new Q,e&&"[object Function]"==={}.toString.call(e))return void this.key.generateAsync(this.default_key_size,this.default_public_exponent,e);this.key.generate(this.default_key_size,this.default_public_exponent)}return this.key},e.prototype.getPrivateKey=function(){return this.getKey().getPrivateKey()},e.prototype.getPrivateKeyB64=function(){return this.getKey().getPrivateBaseKeyB64()},e.prototype.getPublicKey=function(){return this.getKey().getPublicKey()},e.prototype.getPublicKeyB64=function(){return this.getKey().getPublicBaseKeyB64()},e.version=X,e}();const te=ee},2480:()=>{}},t={};function n(i){var a=t[i];if(void 0!==a)return a.exports;var s=t[i]={id:i,loaded:!1,exports:{}};return e[i].call(s.exports,s,s.exports,n),s.loaded=!0,s.exports}return n.d=(e,t)=>{for(var i in t)n.o(t,i)&&!n.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),n(9021)})(),e.exports=n()}(Is);var Bs=Vs(Is.exports);uni.invokePushCallback({type:"enabled"});"undefined"!=typeof plus&&plus.push&&plus.globalEvent.addEventListener("newPath",(({path:e})=>{if(!e)return;const t=getCurrentPages(),n=t[t.length-1];n&&n.$page&&n.$page.fullPath===e||uni.navigateTo({url:e,fail(t){t.errMsg.indexOf("tabbar")>-1?uni.switchTab({url:e,fail(e){console.error(e.errMsg)}}):console.error(t.errMsg)}})})),"function"==typeof uni.onAppShow&&uni.onAppShow((()=>{Bs.enableSocket(!0)})),Bs.init({appid:"__UNI__9F097F0",onError:e=>{console.error(e.error);const t={type:"clientId",cid:"",errMsg:e.error};uni.invokePushCallback(t)},onClientId:e=>{const t={type:"clientId",cid:e.cid};uni.invokePushCallback(t)},onlineState:e=>{const t={type:"lineState",online:e.online};uni.invokePushCallback(t)},onPushMsg:e=>{const t={type:"pushMsg",message:e.message};uni.invokePushCallback(t)}}),uni.onPushMessage((e=>{"receive"===e.type&&e.data&&e.data.force_notification&&(uni.createPushMessage(e.data),e.stopped=!0)}));const As="https://36.112.48.190/jeecg-boot/sys/common/static/",Ms=z("updateApp",(()=>{const t=e.reactive({force:!1,hasNew:!1,content:"",url:"",wgtUrl:""}),n=uni.getSystemInfoSync();return{checkAppUpdate:function(e=!1){try{u({url:"/sys/common/upDateApp",method:"get",data:i}).then((async e=>{let{result:i}=e;i.apkUrl=As+i.apkUrl,i.wgtUrl=As+i.wgtUrl,t.wgtUrl=i.wgtUrl,"android"===n.osName?(t.apkUrl=i.apkUrl,t.hasNew=await((e,t=!1)=>new Promise((n=>{const i=e=>e.replace(/\./g,"");if(t)plus.runtime.getProperty(plus.runtime.appid,(t=>{const a=t.version;n(+i(e)>+i(a))}));else{const t=plus.runtime.version;n(+i(e)>+i(t))}})))(i.versionCode,"wgt"==i.update)):t.url="itms-apps://itunes.apple.com/cn/app/id123456?mt=8",t.hasNew&&uni.showModal({title:"更新",content:"发现新版本,请更新",success(e){var t,n;e.confirm?(t=i.update,n=i,"wgt"!=t?plus.runtime.openURL(n.apkUrl):Ve(n.wgtUrl)):plus.runtime.quit()}})}))}catch(a){t.hasNew=!1}var i},...e.toRefs(t),systemInfo:n}})),Ps={__name:"App",setup(e){s((()=>{Ms().checkAppUpdate(),Be(),uni.onPushMessage((e=>{t("log","at App.vue:29","收到推送消息:",e)}))})),a((()=>{n(),uni.getPushClientId({success:e=>{t("log","at App.vue:39","客户端推送标识:",e.cid)},fail(e){t("log","at App.vue:42",e)}})}));const n=()=>{var e;(e={id:"1827997127165677570"},u({url:"/CxcJurisdiction/cxcJurisdiction/queryById",method:"get",data:e})).then((e=>{if(e.success){const t=H();uni.setStorageSync("isgray",e.result.value),t.setIsgray(e.result.value)}}))};return()=>{}}},Rs=q({__name:"index",props:{dataId:{type:String,default:""}},setup(t){const i=t,a=e.ref([]),s={width:64,height:64,border:{color:"#dce7e1",width:2,style:"dashed",radius:"2px"}},r=e.ref({}),o=()=>{var e;(e={id:i.dataId},u({url:"/CxcQxj/cxcQxj/queryById",method:"get",data:e})).then((e=>{e.success&&(r.value=e.result.records[0],a.value=r.value.path.split(",").map((e=>{const t=e.split("/").pop(),n=t.split(".").pop();return{name:t,extname:n,url:Re(e)}})))}))},l=e.ref([]),c=e=>{_({processInstanceId:e}).then((e=>{e.success&&(l.value=e.result.records)}))};return e.onMounted((()=>{o(),k({flowCode:"dev_cxc_qxj",dataId:i.dataId}).then((e=>{e.success&&c(e.result.processInstanceId)}))})),(t,i)=>{const o=n(e.resolveDynamicComponent("uni-file-picker"),Ya);return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("view",{class:"f-col aic"},[e.createElementVNode("view",{class:"info_box"},[e.createElementVNode("view",{class:"title"}," 申请信息 "),e.createElementVNode("view",{class:"info f-row aic jcb"},[e.createElementVNode("view",null," 请假职工: "),e.createElementVNode("text",null,e.toDisplayString(r.value.username_dictText),1)]),e.createElementVNode("view",{class:"info f-row aic jcb"},[e.createElementVNode("view",null," 所属单位: "),e.createElementVNode("text",null,e.toDisplayString(r.value.sysOrgCode_dictText),1)]),e.createElementVNode("view",{class:"info f-row aic jcb"},[e.createElementVNode("view",null," 联系方式: "),e.createElementVNode("text",null,e.toDisplayString(r.value.phone),1)]),e.createElementVNode("view",{class:"info f-row aic jcb"},[e.createElementVNode("view",null," 请假类型: "),e.createElementVNode("text",null,e.toDisplayString(r.value.type),1)]),e.createElementVNode("view",{class:"info f-row aic jcb"},[e.createElementVNode("view",null," 请假开始时间: "),e.createElementVNode("text",null,e.toDisplayString(r.value.begintime),1)]),e.createElementVNode("view",{class:"info f-row aic jcb"},[e.createElementVNode("view",null," 请假结束时间: "),e.createElementVNode("text",null,e.toDisplayString(r.value.endtime),1)]),e.createElementVNode("view",{class:"info f-row aic jcb"},[e.createElementVNode("view",null," 请假天数: "),e.createElementVNode("text",null,e.toDisplayString(r.value.days),1)]),e.createElementVNode("view",{class:"info f-row aic jcb"},[e.createElementVNode("view",null," 审批人: "),e.createElementVNode("text",null,e.toDisplayString(r.value.examineleader_dictText),1)]),e.createElementVNode("view",{class:"info f-row aic jcb"},[e.createElementVNode("view",null," 请假地点: "),e.createElementVNode("text",null,e.toDisplayString(r.value.address),1)]),e.createElementVNode("view",{class:"info f-row aic jcb"},[e.createElementVNode("view",null," 请假原因: "),e.createElementVNode("text",null,e.toDisplayString(r.value.reason),1)]),e.createElementVNode("view",{class:"info f-row aic jcb"},[e.createElementVNode("view",null," 附件: "),e.createVNode(o,{modelValue:a.value,"onUpdate:modelValue":i[0]||(i[0]=e=>a.value=e),"image-styles":s},null,8,["modelValue"])])])]),e.createElementVNode("view",{class:"f-col aic"},[e.createElementVNode("view",{class:"progress"},[e.createElementVNode("view",{class:"title"}," 审批流程 "),e.createElementVNode("view",{class:"progress_box"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.value,((t,n)=>(e.openBlock(),e.createElementBlock("view",{class:"box",key:n},[e.createElementVNode("view",{class:"topic f-row aic"},[e.createElementVNode("view",null,e.toDisplayString(t.name),1),e.createElementVNode("view",{class:e.normalizeClass(["status",{complete:"已完成"==t.deleteReason},{refuse:"已拒绝"==t.deleteReason}])},e.toDisplayString(t.deleteReason),3)]),e.createElementVNode("view",{class:"name_time"},e.toDisplayString(t.assigneeName)+" | "+e.toDisplayString(t.endTime),1)])))),128))])])])],64)}}},[["__scopeId","data-v-4dc4d50b"]]),Os=q({__name:"processCom",props:{info:{type:Array,default:()=>[]}},setup:t=>(n,i)=>(e.openBlock(),e.createElementBlock("view",{class:"f-col aic"},[e.createElementVNode("view",{class:"info_box"},[e.createElementVNode("view",{class:"title"}," 申请信息 "),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.info,((t,n)=>(e.openBlock(),e.createElementBlock("view",{class:"",key:n},[e.createElementVNode("view",{class:"info f-row aic jcb"},[e.createElementVNode("view",{class:""},e.toDisplayString(t.title)+": ",1),"事项内容"==t.title?(e.openBlock(),e.createElementBlock("rich-text",{key:0,nodes:t.data},null,8,["nodes"])):(e.openBlock(),e.createElementBlock("text",{key:1},e.toDisplayString(t.data),1))])])))),128))])]))},[["__scopeId","data-v-8f3f5a9f"]]),Ls=q({__name:"supervise",props:{dataId:{type:String,default:""}},setup(n){const i=n,a=[{title:"基本信息",id:1},{title:"事项详情",id:2},{title:"添加下级",id:3},{title:"节点顺序",id:4},{title:"运行计划",id:5}],s=e.ref(1),r=e.ref([]),o=()=>{var e;(e={id:i.dataId},u({url:"/cxcdbxt/dbSxxq/queryById",method:"get",data:e})).then((e=>{if(e.success&&(1==s.value&&l(e.result.jbxxid),2==s.value)){let t=e.result;r.value=[{title:"承办部门",data:t.zbdw},{title:"协办部门",data:t.xbdw},{title:"部门领导",data:t.fgld},{title:"办理人员",data:t.dbry},{title:"要求反馈时间",data:t.yqfksj},{title:"节点名称",data:""},{title:"预计完成时间",data:""},{title:"实际反馈时间",data:t.sjfksj},{title:"自评价",data:t.zpj},{title:"发起时间",data:t.fqsj},{title:"序号",data:""},{title:"概述",data:""},{title:"时间进度",data:""},{title:"事项内容",data:t.sxnr}]}}))},l=e=>{var t;(t={id:e},u({url:"/cxcdbxt/dbJbxx/queryById",method:"get",data:t})).then((e=>{if(e.success){let t=e.result;r.value=[{title:"督办分类",data:t.fl},{title:"协办部门",data:t.xbbm},{title:"督办部门",data:t.cbbm},{title:"督办人员",data:t.dbry},{title:"督办部门负责人",data:t.zrr},{title:"是否涉密",data:t.sfsm},{title:"计划完成时间",data:t.jhwcsj},{title:"实际完成时间",data:t.wcsj},{title:"完成状态",data:t.wczt},{title:"备注",data:t.bz},{title:"督办事项",data:t.dbsx},{title:"时间进度",data:t.sjjd}]}}))},c=e.ref([]),d=e=>{t("log","at bpm/supervise.vue:199","000",e),_({processInstanceId:e}).then((e=>{t("log","at bpm/supervise.vue:203","0088800",e),e.success&&(c.value=e.result.records)}))};return e.onMounted((()=>{o(),k({flowCode:"dev_db_sxxq_001",dataId:i.dataId}).then((e=>{e.success&&d(e.result.processInstanceId)}))})),(t,n)=>(e.openBlock(),e.createElementBlock("view",{class:""},[e.createElementVNode("view",{class:"tab f-row aic"},[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(a,((t,n)=>e.createElementVNode("view",{class:e.normalizeClass({active:s.value==t.id}),key:n,onClick:e=>{return n=t.id,s.value=n,void o();var n}},e.toDisplayString(t.title),11,["onClick"]))),64))]),e.createVNode(Os,{info:r.value},null,8,["info"]),e.createElementVNode("view",{class:"f-col aic"},[e.createElementVNode("view",{class:"progress"},[e.createElementVNode("view",{class:"title"}," 审批流程 "),e.createElementVNode("view",{class:"progress_box"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,((t,n)=>(e.openBlock(),e.createElementBlock("view",{class:"box",key:n},[e.createElementVNode("view",{class:"topic f-row aic"},[e.createElementVNode("view",{class:""},e.toDisplayString(t.name),1),e.createElementVNode("view",{class:e.normalizeClass(["status",{complete:"已完成"==t.deleteReason},{refuse:"已拒绝"==t.deleteReason}])},e.toDisplayString(t.deleteReason),3)]),e.createElementVNode("view",{class:"name_time"},e.toDisplayString(t.assigneeName)+" | "+e.toDisplayString(t.endTime),1)])))),128))])])])]))}},[["__scopeId","data-v-c842b888"]]),Fs=function(){const t=e.effectScope(!0),n=t.run((()=>e.ref({})));let i=[],a=[];const s=e.markRaw({install(e){V(s),s._a=e,e.provide(I,s),e.config.globalProperties.$pinia=s,a.forEach((e=>i.push(e))),a=[]},use(e){return this._a?i.push(e):a.push(e),this},_p:i,_a:null,_e:t,_s:new Map,state:n});return s}();const{app:js,Vuex:Us,Pinia:$s}=function(){const t=e.createVueApp(Ps);return t.use(Fs),t.component("leaveApplication",Rs),t.component("supervise",Ls),t.config.globalProperties.$toast=Te,{app:t}}();uni.Vuex=Us,uni.Pinia=$s,js.provide("__globalStyles",__uniConfig.styles),js._component.mpType="app",js._component.render=()=>{},js.mount("#app")}(Vue); diff --git a/unpackage/dist/build/app-plus/manifest.json b/unpackage/dist/build/app-plus/manifest.json index 8623197..19deb84 100644 --- a/unpackage/dist/build/app-plus/manifest.json +++ b/unpackage/dist/build/app-plus/manifest.json @@ -4,7 +4,7 @@ "iPhone", "iPad" ], - "id": "__UNI__F0AFD30", + "id": "__UNI__9F097F0", "name": "数智产销", "version": { "name": "1.0.0", @@ -21,6 +21,7 @@ "Fingerprint": {}, "Camera": {}, "Barcode": {}, + "Push": {}, "UniNView": { "description": "UniNView原生渲染" } @@ -108,6 +109,12 @@ ] } }, + "push": { + "unipush": { + "version": "2", + "offline": false + } + }, "audio": { "mp3": { "description": "Android平台录音支持MP3格式文件" diff --git a/unpackage/dist/build/app-plus/pages/leave/application.css b/unpackage/dist/build/app-plus/pages/leave/application.css index 3ae5daa..9ff455a 100644 --- a/unpackage/dist/build/app-plus/pages/leave/application.css +++ b/unpackage/dist/build/app-plus/pages/leave/application.css @@ -1 +1 @@ -.uniui-cart-filled[data-v-5610c8db]:before{content:"\e6d0"}.uniui-gift-filled[data-v-5610c8db]:before{content:"\e6c4"}.uniui-color[data-v-5610c8db]:before{content:"\e6cf"}.uniui-wallet[data-v-5610c8db]:before{content:"\e6b1"}.uniui-settings-filled[data-v-5610c8db]:before{content:"\e6ce"}.uniui-auth-filled[data-v-5610c8db]:before{content:"\e6cc"}.uniui-shop-filled[data-v-5610c8db]:before{content:"\e6cd"}.uniui-staff-filled[data-v-5610c8db]:before{content:"\e6cb"}.uniui-vip-filled[data-v-5610c8db]:before{content:"\e6c6"}.uniui-plus-filled[data-v-5610c8db]:before{content:"\e6c7"}.uniui-folder-add-filled[data-v-5610c8db]:before{content:"\e6c8"}.uniui-color-filled[data-v-5610c8db]:before{content:"\e6c9"}.uniui-tune-filled[data-v-5610c8db]:before{content:"\e6ca"}.uniui-calendar-filled[data-v-5610c8db]:before{content:"\e6c0"}.uniui-notification-filled[data-v-5610c8db]:before{content:"\e6c1"}.uniui-wallet-filled[data-v-5610c8db]:before{content:"\e6c2"}.uniui-medal-filled[data-v-5610c8db]:before{content:"\e6c3"}.uniui-fire-filled[data-v-5610c8db]:before{content:"\e6c5"}.uniui-refreshempty[data-v-5610c8db]:before{content:"\e6bf"}.uniui-location-filled[data-v-5610c8db]:before{content:"\e6af"}.uniui-person-filled[data-v-5610c8db]:before{content:"\e69d"}.uniui-personadd-filled[data-v-5610c8db]:before{content:"\e698"}.uniui-arrowthinleft[data-v-5610c8db]:before{content:"\e6d2"}.uniui-arrowthinup[data-v-5610c8db]:before{content:"\e6d3"}.uniui-arrowthindown[data-v-5610c8db]:before{content:"\e6d4"}.uniui-back[data-v-5610c8db]:before{content:"\e6b9"}.uniui-forward[data-v-5610c8db]:before{content:"\e6ba"}.uniui-arrow-right[data-v-5610c8db]:before{content:"\e6bb"}.uniui-arrow-left[data-v-5610c8db]:before{content:"\e6bc"}.uniui-arrow-up[data-v-5610c8db]:before{content:"\e6bd"}.uniui-arrow-down[data-v-5610c8db]:before{content:"\e6be"}.uniui-arrowthinright[data-v-5610c8db]:before{content:"\e6d1"}.uniui-down[data-v-5610c8db]:before{content:"\e6b8"}.uniui-bottom[data-v-5610c8db]:before{content:"\e6b8"}.uniui-arrowright[data-v-5610c8db]:before{content:"\e6d5"}.uniui-right[data-v-5610c8db]:before{content:"\e6b5"}.uniui-up[data-v-5610c8db]:before{content:"\e6b6"}.uniui-top[data-v-5610c8db]:before{content:"\e6b6"}.uniui-left[data-v-5610c8db]:before{content:"\e6b7"}.uniui-arrowup[data-v-5610c8db]:before{content:"\e6d6"}.uniui-eye[data-v-5610c8db]:before{content:"\e651"}.uniui-eye-filled[data-v-5610c8db]:before{content:"\e66a"}.uniui-eye-slash[data-v-5610c8db]:before{content:"\e6b3"}.uniui-eye-slash-filled[data-v-5610c8db]:before{content:"\e6b4"}.uniui-info-filled[data-v-5610c8db]:before{content:"\e649"}.uniui-reload[data-v-5610c8db]:before{content:"\e6b2"}.uniui-micoff-filled[data-v-5610c8db]:before{content:"\e6b0"}.uniui-map-pin-ellipse[data-v-5610c8db]:before{content:"\e6ac"}.uniui-map-pin[data-v-5610c8db]:before{content:"\e6ad"}.uniui-location[data-v-5610c8db]:before{content:"\e6ae"}.uniui-starhalf[data-v-5610c8db]:before{content:"\e683"}.uniui-star[data-v-5610c8db]:before{content:"\e688"}.uniui-star-filled[data-v-5610c8db]:before{content:"\e68f"}.uniui-calendar[data-v-5610c8db]:before{content:"\e6a0"}.uniui-fire[data-v-5610c8db]:before{content:"\e6a1"}.uniui-medal[data-v-5610c8db]:before{content:"\e6a2"}.uniui-font[data-v-5610c8db]:before{content:"\e6a3"}.uniui-gift[data-v-5610c8db]:before{content:"\e6a4"}.uniui-link[data-v-5610c8db]:before{content:"\e6a5"}.uniui-notification[data-v-5610c8db]:before{content:"\e6a6"}.uniui-staff[data-v-5610c8db]:before{content:"\e6a7"}.uniui-vip[data-v-5610c8db]:before{content:"\e6a8"}.uniui-folder-add[data-v-5610c8db]:before{content:"\e6a9"}.uniui-tune[data-v-5610c8db]:before{content:"\e6aa"}.uniui-auth[data-v-5610c8db]:before{content:"\e6ab"}.uniui-person[data-v-5610c8db]:before{content:"\e699"}.uniui-email-filled[data-v-5610c8db]:before{content:"\e69a"}.uniui-phone-filled[data-v-5610c8db]:before{content:"\e69b"}.uniui-phone[data-v-5610c8db]:before{content:"\e69c"}.uniui-email[data-v-5610c8db]:before{content:"\e69e"}.uniui-personadd[data-v-5610c8db]:before{content:"\e69f"}.uniui-chatboxes-filled[data-v-5610c8db]:before{content:"\e692"}.uniui-contact[data-v-5610c8db]:before{content:"\e693"}.uniui-chatbubble-filled[data-v-5610c8db]:before{content:"\e694"}.uniui-contact-filled[data-v-5610c8db]:before{content:"\e695"}.uniui-chatboxes[data-v-5610c8db]:before{content:"\e696"}.uniui-chatbubble[data-v-5610c8db]:before{content:"\e697"}.uniui-upload-filled[data-v-5610c8db]:before{content:"\e68e"}.uniui-upload[data-v-5610c8db]:before{content:"\e690"}.uniui-weixin[data-v-5610c8db]:before{content:"\e691"}.uniui-compose[data-v-5610c8db]:before{content:"\e67f"}.uniui-qq[data-v-5610c8db]:before{content:"\e680"}.uniui-download-filled[data-v-5610c8db]:before{content:"\e681"}.uniui-pyq[data-v-5610c8db]:before{content:"\e682"}.uniui-sound[data-v-5610c8db]:before{content:"\e684"}.uniui-trash-filled[data-v-5610c8db]:before{content:"\e685"}.uniui-sound-filled[data-v-5610c8db]:before{content:"\e686"}.uniui-trash[data-v-5610c8db]:before{content:"\e687"}.uniui-videocam-filled[data-v-5610c8db]:before{content:"\e689"}.uniui-spinner-cycle[data-v-5610c8db]:before{content:"\e68a"}.uniui-weibo[data-v-5610c8db]:before{content:"\e68b"}.uniui-videocam[data-v-5610c8db]:before{content:"\e68c"}.uniui-download[data-v-5610c8db]:before{content:"\e68d"}.uniui-help[data-v-5610c8db]:before{content:"\e679"}.uniui-navigate-filled[data-v-5610c8db]:before{content:"\e67a"}.uniui-plusempty[data-v-5610c8db]:before{content:"\e67b"}.uniui-smallcircle[data-v-5610c8db]:before{content:"\e67c"}.uniui-minus-filled[data-v-5610c8db]:before{content:"\e67d"}.uniui-micoff[data-v-5610c8db]:before{content:"\e67e"}.uniui-closeempty[data-v-5610c8db]:before{content:"\e66c"}.uniui-clear[data-v-5610c8db]:before{content:"\e66d"}.uniui-navigate[data-v-5610c8db]:before{content:"\e66e"}.uniui-minus[data-v-5610c8db]:before{content:"\e66f"}.uniui-image[data-v-5610c8db]:before{content:"\e670"}.uniui-mic[data-v-5610c8db]:before{content:"\e671"}.uniui-paperplane[data-v-5610c8db]:before{content:"\e672"}.uniui-close[data-v-5610c8db]:before{content:"\e673"}.uniui-help-filled[data-v-5610c8db]:before{content:"\e674"}.uniui-paperplane-filled[data-v-5610c8db]:before{content:"\e675"}.uniui-plus[data-v-5610c8db]:before{content:"\e676"}.uniui-mic-filled[data-v-5610c8db]:before{content:"\e677"}.uniui-image-filled[data-v-5610c8db]:before{content:"\e678"}.uniui-locked-filled[data-v-5610c8db]:before{content:"\e668"}.uniui-info[data-v-5610c8db]:before{content:"\e669"}.uniui-locked[data-v-5610c8db]:before{content:"\e66b"}.uniui-camera-filled[data-v-5610c8db]:before{content:"\e658"}.uniui-chat-filled[data-v-5610c8db]:before{content:"\e659"}.uniui-camera[data-v-5610c8db]:before{content:"\e65a"}.uniui-circle[data-v-5610c8db]:before{content:"\e65b"}.uniui-checkmarkempty[data-v-5610c8db]:before{content:"\e65c"}.uniui-chat[data-v-5610c8db]:before{content:"\e65d"}.uniui-circle-filled[data-v-5610c8db]:before{content:"\e65e"}.uniui-flag[data-v-5610c8db]:before{content:"\e65f"}.uniui-flag-filled[data-v-5610c8db]:before{content:"\e660"}.uniui-gear-filled[data-v-5610c8db]:before{content:"\e661"}.uniui-home[data-v-5610c8db]:before{content:"\e662"}.uniui-home-filled[data-v-5610c8db]:before{content:"\e663"}.uniui-gear[data-v-5610c8db]:before{content:"\e664"}.uniui-smallcircle-filled[data-v-5610c8db]:before{content:"\e665"}.uniui-map-filled[data-v-5610c8db]:before{content:"\e666"}.uniui-map[data-v-5610c8db]:before{content:"\e667"}.uniui-refresh-filled[data-v-5610c8db]:before{content:"\e656"}.uniui-refresh[data-v-5610c8db]:before{content:"\e657"}.uniui-cloud-upload[data-v-5610c8db]:before{content:"\e645"}.uniui-cloud-download-filled[data-v-5610c8db]:before{content:"\e646"}.uniui-cloud-download[data-v-5610c8db]:before{content:"\e647"}.uniui-cloud-upload-filled[data-v-5610c8db]:before{content:"\e648"}.uniui-redo[data-v-5610c8db]:before{content:"\e64a"}.uniui-images-filled[data-v-5610c8db]:before{content:"\e64b"}.uniui-undo-filled[data-v-5610c8db]:before{content:"\e64c"}.uniui-more[data-v-5610c8db]:before{content:"\e64d"}.uniui-more-filled[data-v-5610c8db]:before{content:"\e64e"}.uniui-undo[data-v-5610c8db]:before{content:"\e64f"}.uniui-images[data-v-5610c8db]:before{content:"\e650"}.uniui-paperclip[data-v-5610c8db]:before{content:"\e652"}.uniui-settings[data-v-5610c8db]:before{content:"\e653"}.uniui-search[data-v-5610c8db]:before{content:"\e654"}.uniui-redo-filled[data-v-5610c8db]:before{content:"\e655"}.uniui-list[data-v-5610c8db]:before{content:"\e644"}.uniui-mail-open-filled[data-v-5610c8db]:before{content:"\e63a"}.uniui-hand-down-filled[data-v-5610c8db]:before{content:"\e63c"}.uniui-hand-down[data-v-5610c8db]:before{content:"\e63d"}.uniui-hand-up-filled[data-v-5610c8db]:before{content:"\e63e"}.uniui-hand-up[data-v-5610c8db]:before{content:"\e63f"}.uniui-heart-filled[data-v-5610c8db]:before{content:"\e641"}.uniui-mail-open[data-v-5610c8db]:before{content:"\e643"}.uniui-heart[data-v-5610c8db]:before{content:"\e639"}.uniui-loop[data-v-5610c8db]:before{content:"\e633"}.uniui-pulldown[data-v-5610c8db]:before{content:"\e632"}.uniui-scan[data-v-5610c8db]:before{content:"\e62a"}.uniui-bars[data-v-5610c8db]:before{content:"\e627"}.uniui-checkbox[data-v-5610c8db]:before{content:"\e62b"}.uniui-checkbox-filled[data-v-5610c8db]:before{content:"\e62c"}.uniui-shop[data-v-5610c8db]:before{content:"\e62f"}.uniui-headphones[data-v-5610c8db]:before{content:"\e630"}.uniui-cart[data-v-5610c8db]:before{content:"\e631"}@font-face{font-family:uniicons;src:url(../../assets/uniicons.32e978a5.ttf)}.uni-icons[data-v-5610c8db]{font-family:uniicons;text-decoration:none;text-align:center}.uni-file-picker__container[data-v-86b162f5]{display:flex;box-sizing:border-box;flex-wrap:wrap;margin:-5px}.file-picker__box[data-v-86b162f5]{position:relative;width:33.3%;height:0;padding-top:33.33%;box-sizing:border-box}.file-picker__box-content[data-v-86b162f5]{position:absolute;top:0;right:0;bottom:0;left:0;margin:5px;border:1px #eee solid;border-radius:5px;overflow:hidden}.file-picker__progress[data-v-86b162f5]{position:absolute;bottom:0;left:0;right:0;z-index:2}.file-picker__progress-item[data-v-86b162f5]{width:100%}.file-picker__mask[data-v-86b162f5]{display:flex;justify-content:center;align-items:center;position:absolute;right:0;top:0;bottom:0;left:0;color:#fff;font-size:12px;background-color:rgba(0,0,0,.4)}.file-image[data-v-86b162f5]{width:100%;height:100%}.is-add[data-v-86b162f5]{display:flex;align-items:center;justify-content:center}.icon-add[data-v-86b162f5]{width:50px;height:5px;background-color:#f1f1f1;border-radius:2px}.rotate[data-v-86b162f5]{position:absolute;transform:rotate(90deg)}.icon-del-box[data-v-86b162f5]{display:flex;align-items:center;justify-content:center;position:absolute;top:3px;right:3px;height:26px;width:26px;border-radius:50%;background-color:rgba(0,0,0,.5);z-index:2;transform:rotate(-45deg)}.icon-del[data-v-86b162f5]{width:15px;height:2px;background-color:#fff;border-radius:2px}.uni-file-picker__files[data-v-e61666c7]{display:flex;flex-direction:column;justify-content:flex-start}.uni-file-picker__lists[data-v-e61666c7]{position:relative;margin-top:5px;overflow:hidden}.file-picker__mask[data-v-e61666c7]{display:flex;justify-content:center;align-items:center;position:absolute;right:0;top:0;bottom:0;left:0;color:#fff;font-size:14px;background-color:rgba(0,0,0,.4)}.uni-file-picker__lists-box[data-v-e61666c7]{position:relative}.uni-file-picker__item[data-v-e61666c7]{display:flex;align-items:center;padding:8px 5px 8px 10px}.files-border[data-v-e61666c7]{border-top:1px #eee solid}.files__name[data-v-e61666c7]{flex:1;font-size:14px;color:#666;margin-right:25px;word-break:break-all;word-wrap:break-word}.icon-files[data-v-e61666c7]{position:static;background-color:initial}.is-list-card[data-v-e61666c7]{border:1px #eee solid;margin-bottom:5px;border-radius:5px;box-shadow:0 0 2px rgba(0,0,0,.1);padding:5px}.files__image[data-v-e61666c7]{width:40px;height:40px;margin-right:10px}.header-image[data-v-e61666c7]{width:100%;height:100%}.is-text-box[data-v-e61666c7]{border:1px #eee solid;border-radius:5px}.is-text-image[data-v-e61666c7]{width:25px;height:25px;margin-left:5px}.rotate[data-v-e61666c7]{position:absolute;transform:rotate(90deg)}.icon-del-box[data-v-e61666c7]{display:flex;margin:auto 0;align-items:center;justify-content:center;position:absolute;top:0;bottom:0;right:5px;height:26px;width:26px;z-index:2;transform:rotate(-45deg)}.icon-del[data-v-e61666c7]{width:15px;height:1px;background-color:#333}.uni-file-picker[data-v-086f9922]{box-sizing:border-box;overflow:hidden;width:100%;flex:1}.uni-file-picker__header[data-v-086f9922]{padding-top:5px;padding-bottom:10px;display:flex;justify-content:space-between}.file-title[data-v-086f9922]{font-size:14px;color:#333}.file-count[data-v-086f9922]{font-size:14px;color:#999}.is-add[data-v-086f9922]{display:flex;align-items:center;justify-content:center}.icon-add[data-v-086f9922]{width:50px;height:5px;background-color:#f1f1f1;border-radius:2px}.rotate[data-v-086f9922]{position:absolute;transform:rotate(90deg)}.uni-easyinput[data-v-d17898f6]{width:100%;flex:1;position:relative;text-align:left;color:#333;font-size:14px}.uni-easyinput__content[data-v-d17898f6]{flex:1;width:100%;display:flex;box-sizing:border-box;flex-direction:row;align-items:center;border-color:#fff;transition-property:border-color;transition-duration:.3s}.uni-easyinput__content-input[data-v-d17898f6]{width:auto;position:relative;overflow:hidden;flex:1;line-height:1;font-size:14px;height:35px}.uni-easyinput__content-input[data-v-d17898f6] ::-ms-reveal{display:none}.uni-easyinput__content-input[data-v-d17898f6] ::-ms-clear{display:none}.uni-easyinput__content-input[data-v-d17898f6] ::-o-clear{display:none}.uni-easyinput__placeholder-class[data-v-d17898f6]{color:#999;font-size:12px}.is-textarea[data-v-d17898f6]{align-items:flex-start}.is-textarea-icon[data-v-d17898f6]{margin-top:5px}.uni-easyinput__content-textarea[data-v-d17898f6]{position:relative;overflow:hidden;flex:1;line-height:1.5;font-size:14px;margin:6px 6px 6px 0;height:80px;min-height:80px;width:auto}.input-padding[data-v-d17898f6]{padding-left:10px}.content-clear-icon[data-v-d17898f6]{padding:0 5px}.label-icon[data-v-d17898f6]{margin-right:5px;margin-top:-1px}.is-input-border[data-v-d17898f6]{display:flex;box-sizing:border-box;flex-direction:row;align-items:center;border:1px solid #dcdfe6;border-radius:4px}.uni-error-message[data-v-d17898f6]{position:absolute;bottom:-17px;left:0;line-height:12px;color:#e43d33;font-size:12px;text-align:left}.uni-error-msg--boeder[data-v-d17898f6]{position:relative;bottom:0;line-height:22px}.is-input-error-border[data-v-d17898f6]{border-color:#e43d33}.is-input-error-border .uni-easyinput__placeholder-class[data-v-d17898f6]{color:#f29e99}.uni-easyinput--border[data-v-d17898f6]{margin-bottom:0;padding:10px 15px;border-top:1px #eee solid}.uni-easyinput-error[data-v-d17898f6]{padding-bottom:0}.is-first-border[data-v-d17898f6]{border:none}.is-disabled[data-v-d17898f6]{background-color:#f7f6f6;color:#d5d5d5}.is-disabled .uni-easyinput__placeholder-class[data-v-d17898f6]{color:#d5d5d5;font-size:12px}.uni-popup[data-v-9c09fb6f]{position:fixed;z-index:99}.uni-popup.top[data-v-9c09fb6f],.uni-popup.left[data-v-9c09fb6f],.uni-popup.right[data-v-9c09fb6f]{top:0}.uni-popup .uni-popup__wrapper[data-v-9c09fb6f]{display:block;position:relative}.uni-popup .uni-popup__wrapper.left[data-v-9c09fb6f],.uni-popup .uni-popup__wrapper.right[data-v-9c09fb6f]{padding-top:0;flex:1}.fixforpc-z-index[data-v-9c09fb6f]{z-index:999}.fixforpc-top[data-v-9c09fb6f]{top:0}.customthree-tree-select-content.border[data-v-b14c1821]{border-left:1px solid #c8c7cc}.customthree-tree-select-content[data-v-b14c1821] .uni-checkbox-input{margin:0!important}.customthree-tree-select-content .item-content[data-v-b14c1821]{margin:0 0 12px;display:flex;justify-content:space-between;align-items:center;position:relative}.customthree-tree-select-content .item-content[data-v-b14c1821]:after{content:"";position:absolute;top:0;left:0;bottom:0;width:3px;background-color:#fff;transform:translate(-2px);z-index:1}.customthree-tree-select-content .item-content .left[data-v-b14c1821]{flex:1;display:flex;align-items:center}.customthree-tree-select-content .item-content .left .right-icon[data-v-b14c1821]{transition:.15s ease}.customthree-tree-select-content .item-content .left .right-icon.active[data-v-b14c1821]{transform:rotate(90deg)}.customthree-tree-select-content .item-content .left .smallcircle-filled[data-v-b14c1821]{width:14px;height:13.6px;display:flex;align-items:center}.customthree-tree-select-content .item-content .left .smallcircle-filled .smallcircle-filled-icon[data-v-b14c1821]{transform-origin:center;transform:scale(.55)}.customthree-tree-select-content .item-content .left .loading-icon-box[data-v-b14c1821]{margin-right:5px;width:14px;height:100%;display:flex;justify-content:center;align-items:center}.customthree-tree-select-content .item-content .left .loading-icon-box .loading-icon[data-v-b14c1821]{transform-origin:center;animation:rotating-b14c1821 infinite .2s ease}.customthree-tree-select-content .item-content .left .name[data-v-b14c1821]{flex:1}.customthree-tree-select-content .check-box[data-v-b14c1821]{margin:0;padding:0;box-sizing:border-box;width:23.6px;height:23.6px;border:1px solid #c8c7cc;border-radius:3px;display:flex;justify-content:center;align-items:center}.customthree-tree-select-content .check-box.disabled[data-v-b14c1821]{background-color:#e1e1e1}.customthree-tree-select-content .check-box .part-checked[data-v-b14c1821]{width:60%;height:2px;background-color:#007aff}@keyframes rotating-b14c1821{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.select-list[data-v-0768d7c7]{padding-left:10px;min-height:35px;display:flex;justify-content:space-between;align-items:center}.select-list.active[data-v-0768d7c7]{padding:2px 0 2px 10px}.select-list .left[data-v-0768d7c7]{flex:1}.select-list .left .select-items[data-v-0768d7c7]{display:flex;flex-wrap:wrap}.select-list .left .select-item[data-v-0768d7c7]{max-width:auto;height:auto;display:flex;align-items:center}.select-list .left .select-item .name[data-v-0768d7c7]{flex:1;font-size:14px}.select-list .left .select-item .close[data-v-0768d7c7]{width:18px;height:18px;display:flex;justify-content:center;align-items:center;overflow:hidden}.select-list.disabled[data-v-0768d7c7]{background-color:#f5f7fa}.select-list.disabled .left .select-item .name[data-v-0768d7c7]{padding:0}.popup-content[data-v-0768d7c7]{flex:1;background-color:#fff;border-top-left-radius:20px;border-top-right-radius:20px;display:flex;flex-direction:column}.popup-content .title[data-v-0768d7c7]{padding:8px 3rem;border-bottom:1px solid #c8c7cc;font-size:14px;display:flex;justify-content:space-between;position:relative}.popup-content .title .left[data-v-0768d7c7]{position:absolute;left:10px}.popup-content .title .center[data-v-0768d7c7]{flex:1;text-align:center}.popup-content .title .right[data-v-0768d7c7]{position:absolute;right:10px}.popup-content .search-box[data-v-0768d7c7]{margin:8px 10px 0;background-color:#fff;display:flex;align-items:center}.popup-content .search-box .search-btn[data-v-0768d7c7]{margin-left:10px;height:35px;line-height:35px}.popup-content .select-content[data-v-0768d7c7]{margin:8px 10px;flex:1;overflow:hidden;position:relative}.popup-content .scroll-view-box[data-v-0768d7c7]{touch-action:none;flex:1;position:absolute;top:0;right:0;bottom:0;left:0}.popup-content .sentry[data-v-0768d7c7]{height:48px}.no-data[data-v-0768d7c7]{font-size:.875rem;color:#999}body{background-color:#fff}.btn[data-v-6e3acbe9]{border-top:1px solid #EFEFEF;height:3.75rem;justify-content:center;position:fixed;bottom:0;width:100vw}.btn uni-view[data-v-6e3acbe9]{width:21.5625rem;height:2.75rem;background:#01508b;border-radius:.5rem;font-size:.875rem;color:#fff;text-align:center;line-height:2.75rem}.input_box[data-v-6e3acbe9]{height:3.125rem}.input_box .title[data-v-6e3acbe9]{font-size:.875rem;color:#333}.input_box uni-input[data-v-6e3acbe9]{flex:1;height:100%;text-align:right;font-size:.875rem;color:#333}.form[data-v-6e3acbe9]{padding:0 .9375rem;background-color:#fff}.form .title[data-v-6e3acbe9]{font-size:.875rem;color:#333}.form .box[data-v-6e3acbe9]{height:3.125rem}.form .box[data-v-6e3acbe9]:not(:last-child){border-bottom:1px solid #EFEFEF}.form .choose[data-v-6e3acbe9]{font-size:.875rem;color:#999}.form .choosed[data-v-6e3acbe9]{font-size:.875rem;color:#333} +.uniui-cart-filled[data-v-5610c8db]:before{content:"\e6d0"}.uniui-gift-filled[data-v-5610c8db]:before{content:"\e6c4"}.uniui-color[data-v-5610c8db]:before{content:"\e6cf"}.uniui-wallet[data-v-5610c8db]:before{content:"\e6b1"}.uniui-settings-filled[data-v-5610c8db]:before{content:"\e6ce"}.uniui-auth-filled[data-v-5610c8db]:before{content:"\e6cc"}.uniui-shop-filled[data-v-5610c8db]:before{content:"\e6cd"}.uniui-staff-filled[data-v-5610c8db]:before{content:"\e6cb"}.uniui-vip-filled[data-v-5610c8db]:before{content:"\e6c6"}.uniui-plus-filled[data-v-5610c8db]:before{content:"\e6c7"}.uniui-folder-add-filled[data-v-5610c8db]:before{content:"\e6c8"}.uniui-color-filled[data-v-5610c8db]:before{content:"\e6c9"}.uniui-tune-filled[data-v-5610c8db]:before{content:"\e6ca"}.uniui-calendar-filled[data-v-5610c8db]:before{content:"\e6c0"}.uniui-notification-filled[data-v-5610c8db]:before{content:"\e6c1"}.uniui-wallet-filled[data-v-5610c8db]:before{content:"\e6c2"}.uniui-medal-filled[data-v-5610c8db]:before{content:"\e6c3"}.uniui-fire-filled[data-v-5610c8db]:before{content:"\e6c5"}.uniui-refreshempty[data-v-5610c8db]:before{content:"\e6bf"}.uniui-location-filled[data-v-5610c8db]:before{content:"\e6af"}.uniui-person-filled[data-v-5610c8db]:before{content:"\e69d"}.uniui-personadd-filled[data-v-5610c8db]:before{content:"\e698"}.uniui-arrowthinleft[data-v-5610c8db]:before{content:"\e6d2"}.uniui-arrowthinup[data-v-5610c8db]:before{content:"\e6d3"}.uniui-arrowthindown[data-v-5610c8db]:before{content:"\e6d4"}.uniui-back[data-v-5610c8db]:before{content:"\e6b9"}.uniui-forward[data-v-5610c8db]:before{content:"\e6ba"}.uniui-arrow-right[data-v-5610c8db]:before{content:"\e6bb"}.uniui-arrow-left[data-v-5610c8db]:before{content:"\e6bc"}.uniui-arrow-up[data-v-5610c8db]:before{content:"\e6bd"}.uniui-arrow-down[data-v-5610c8db]:before{content:"\e6be"}.uniui-arrowthinright[data-v-5610c8db]:before{content:"\e6d1"}.uniui-down[data-v-5610c8db]:before{content:"\e6b8"}.uniui-bottom[data-v-5610c8db]:before{content:"\e6b8"}.uniui-arrowright[data-v-5610c8db]:before{content:"\e6d5"}.uniui-right[data-v-5610c8db]:before{content:"\e6b5"}.uniui-up[data-v-5610c8db]:before{content:"\e6b6"}.uniui-top[data-v-5610c8db]:before{content:"\e6b6"}.uniui-left[data-v-5610c8db]:before{content:"\e6b7"}.uniui-arrowup[data-v-5610c8db]:before{content:"\e6d6"}.uniui-eye[data-v-5610c8db]:before{content:"\e651"}.uniui-eye-filled[data-v-5610c8db]:before{content:"\e66a"}.uniui-eye-slash[data-v-5610c8db]:before{content:"\e6b3"}.uniui-eye-slash-filled[data-v-5610c8db]:before{content:"\e6b4"}.uniui-info-filled[data-v-5610c8db]:before{content:"\e649"}.uniui-reload[data-v-5610c8db]:before{content:"\e6b2"}.uniui-micoff-filled[data-v-5610c8db]:before{content:"\e6b0"}.uniui-map-pin-ellipse[data-v-5610c8db]:before{content:"\e6ac"}.uniui-map-pin[data-v-5610c8db]:before{content:"\e6ad"}.uniui-location[data-v-5610c8db]:before{content:"\e6ae"}.uniui-starhalf[data-v-5610c8db]:before{content:"\e683"}.uniui-star[data-v-5610c8db]:before{content:"\e688"}.uniui-star-filled[data-v-5610c8db]:before{content:"\e68f"}.uniui-calendar[data-v-5610c8db]:before{content:"\e6a0"}.uniui-fire[data-v-5610c8db]:before{content:"\e6a1"}.uniui-medal[data-v-5610c8db]:before{content:"\e6a2"}.uniui-font[data-v-5610c8db]:before{content:"\e6a3"}.uniui-gift[data-v-5610c8db]:before{content:"\e6a4"}.uniui-link[data-v-5610c8db]:before{content:"\e6a5"}.uniui-notification[data-v-5610c8db]:before{content:"\e6a6"}.uniui-staff[data-v-5610c8db]:before{content:"\e6a7"}.uniui-vip[data-v-5610c8db]:before{content:"\e6a8"}.uniui-folder-add[data-v-5610c8db]:before{content:"\e6a9"}.uniui-tune[data-v-5610c8db]:before{content:"\e6aa"}.uniui-auth[data-v-5610c8db]:before{content:"\e6ab"}.uniui-person[data-v-5610c8db]:before{content:"\e699"}.uniui-email-filled[data-v-5610c8db]:before{content:"\e69a"}.uniui-phone-filled[data-v-5610c8db]:before{content:"\e69b"}.uniui-phone[data-v-5610c8db]:before{content:"\e69c"}.uniui-email[data-v-5610c8db]:before{content:"\e69e"}.uniui-personadd[data-v-5610c8db]:before{content:"\e69f"}.uniui-chatboxes-filled[data-v-5610c8db]:before{content:"\e692"}.uniui-contact[data-v-5610c8db]:before{content:"\e693"}.uniui-chatbubble-filled[data-v-5610c8db]:before{content:"\e694"}.uniui-contact-filled[data-v-5610c8db]:before{content:"\e695"}.uniui-chatboxes[data-v-5610c8db]:before{content:"\e696"}.uniui-chatbubble[data-v-5610c8db]:before{content:"\e697"}.uniui-upload-filled[data-v-5610c8db]:before{content:"\e68e"}.uniui-upload[data-v-5610c8db]:before{content:"\e690"}.uniui-weixin[data-v-5610c8db]:before{content:"\e691"}.uniui-compose[data-v-5610c8db]:before{content:"\e67f"}.uniui-qq[data-v-5610c8db]:before{content:"\e680"}.uniui-download-filled[data-v-5610c8db]:before{content:"\e681"}.uniui-pyq[data-v-5610c8db]:before{content:"\e682"}.uniui-sound[data-v-5610c8db]:before{content:"\e684"}.uniui-trash-filled[data-v-5610c8db]:before{content:"\e685"}.uniui-sound-filled[data-v-5610c8db]:before{content:"\e686"}.uniui-trash[data-v-5610c8db]:before{content:"\e687"}.uniui-videocam-filled[data-v-5610c8db]:before{content:"\e689"}.uniui-spinner-cycle[data-v-5610c8db]:before{content:"\e68a"}.uniui-weibo[data-v-5610c8db]:before{content:"\e68b"}.uniui-videocam[data-v-5610c8db]:before{content:"\e68c"}.uniui-download[data-v-5610c8db]:before{content:"\e68d"}.uniui-help[data-v-5610c8db]:before{content:"\e679"}.uniui-navigate-filled[data-v-5610c8db]:before{content:"\e67a"}.uniui-plusempty[data-v-5610c8db]:before{content:"\e67b"}.uniui-smallcircle[data-v-5610c8db]:before{content:"\e67c"}.uniui-minus-filled[data-v-5610c8db]:before{content:"\e67d"}.uniui-micoff[data-v-5610c8db]:before{content:"\e67e"}.uniui-closeempty[data-v-5610c8db]:before{content:"\e66c"}.uniui-clear[data-v-5610c8db]:before{content:"\e66d"}.uniui-navigate[data-v-5610c8db]:before{content:"\e66e"}.uniui-minus[data-v-5610c8db]:before{content:"\e66f"}.uniui-image[data-v-5610c8db]:before{content:"\e670"}.uniui-mic[data-v-5610c8db]:before{content:"\e671"}.uniui-paperplane[data-v-5610c8db]:before{content:"\e672"}.uniui-close[data-v-5610c8db]:before{content:"\e673"}.uniui-help-filled[data-v-5610c8db]:before{content:"\e674"}.uniui-paperplane-filled[data-v-5610c8db]:before{content:"\e675"}.uniui-plus[data-v-5610c8db]:before{content:"\e676"}.uniui-mic-filled[data-v-5610c8db]:before{content:"\e677"}.uniui-image-filled[data-v-5610c8db]:before{content:"\e678"}.uniui-locked-filled[data-v-5610c8db]:before{content:"\e668"}.uniui-info[data-v-5610c8db]:before{content:"\e669"}.uniui-locked[data-v-5610c8db]:before{content:"\e66b"}.uniui-camera-filled[data-v-5610c8db]:before{content:"\e658"}.uniui-chat-filled[data-v-5610c8db]:before{content:"\e659"}.uniui-camera[data-v-5610c8db]:before{content:"\e65a"}.uniui-circle[data-v-5610c8db]:before{content:"\e65b"}.uniui-checkmarkempty[data-v-5610c8db]:before{content:"\e65c"}.uniui-chat[data-v-5610c8db]:before{content:"\e65d"}.uniui-circle-filled[data-v-5610c8db]:before{content:"\e65e"}.uniui-flag[data-v-5610c8db]:before{content:"\e65f"}.uniui-flag-filled[data-v-5610c8db]:before{content:"\e660"}.uniui-gear-filled[data-v-5610c8db]:before{content:"\e661"}.uniui-home[data-v-5610c8db]:before{content:"\e662"}.uniui-home-filled[data-v-5610c8db]:before{content:"\e663"}.uniui-gear[data-v-5610c8db]:before{content:"\e664"}.uniui-smallcircle-filled[data-v-5610c8db]:before{content:"\e665"}.uniui-map-filled[data-v-5610c8db]:before{content:"\e666"}.uniui-map[data-v-5610c8db]:before{content:"\e667"}.uniui-refresh-filled[data-v-5610c8db]:before{content:"\e656"}.uniui-refresh[data-v-5610c8db]:before{content:"\e657"}.uniui-cloud-upload[data-v-5610c8db]:before{content:"\e645"}.uniui-cloud-download-filled[data-v-5610c8db]:before{content:"\e646"}.uniui-cloud-download[data-v-5610c8db]:before{content:"\e647"}.uniui-cloud-upload-filled[data-v-5610c8db]:before{content:"\e648"}.uniui-redo[data-v-5610c8db]:before{content:"\e64a"}.uniui-images-filled[data-v-5610c8db]:before{content:"\e64b"}.uniui-undo-filled[data-v-5610c8db]:before{content:"\e64c"}.uniui-more[data-v-5610c8db]:before{content:"\e64d"}.uniui-more-filled[data-v-5610c8db]:before{content:"\e64e"}.uniui-undo[data-v-5610c8db]:before{content:"\e64f"}.uniui-images[data-v-5610c8db]:before{content:"\e650"}.uniui-paperclip[data-v-5610c8db]:before{content:"\e652"}.uniui-settings[data-v-5610c8db]:before{content:"\e653"}.uniui-search[data-v-5610c8db]:before{content:"\e654"}.uniui-redo-filled[data-v-5610c8db]:before{content:"\e655"}.uniui-list[data-v-5610c8db]:before{content:"\e644"}.uniui-mail-open-filled[data-v-5610c8db]:before{content:"\e63a"}.uniui-hand-down-filled[data-v-5610c8db]:before{content:"\e63c"}.uniui-hand-down[data-v-5610c8db]:before{content:"\e63d"}.uniui-hand-up-filled[data-v-5610c8db]:before{content:"\e63e"}.uniui-hand-up[data-v-5610c8db]:before{content:"\e63f"}.uniui-heart-filled[data-v-5610c8db]:before{content:"\e641"}.uniui-mail-open[data-v-5610c8db]:before{content:"\e643"}.uniui-heart[data-v-5610c8db]:before{content:"\e639"}.uniui-loop[data-v-5610c8db]:before{content:"\e633"}.uniui-pulldown[data-v-5610c8db]:before{content:"\e632"}.uniui-scan[data-v-5610c8db]:before{content:"\e62a"}.uniui-bars[data-v-5610c8db]:before{content:"\e627"}.uniui-checkbox[data-v-5610c8db]:before{content:"\e62b"}.uniui-checkbox-filled[data-v-5610c8db]:before{content:"\e62c"}.uniui-shop[data-v-5610c8db]:before{content:"\e62f"}.uniui-headphones[data-v-5610c8db]:before{content:"\e630"}.uniui-cart[data-v-5610c8db]:before{content:"\e631"}@font-face{font-family:uniicons;src:url(../../assets/uniicons.32e978a5.ttf)}.uni-icons[data-v-5610c8db]{font-family:uniicons;text-decoration:none;text-align:center}.uni-file-picker__container[data-v-86b162f5]{display:flex;box-sizing:border-box;flex-wrap:wrap;margin:-5px}.file-picker__box[data-v-86b162f5]{position:relative;width:33.3%;height:0;padding-top:33.33%;box-sizing:border-box}.file-picker__box-content[data-v-86b162f5]{position:absolute;top:0;right:0;bottom:0;left:0;margin:5px;border:1px #eee solid;border-radius:5px;overflow:hidden}.file-picker__progress[data-v-86b162f5]{position:absolute;bottom:0;left:0;right:0;z-index:2}.file-picker__progress-item[data-v-86b162f5]{width:100%}.file-picker__mask[data-v-86b162f5]{display:flex;justify-content:center;align-items:center;position:absolute;right:0;top:0;bottom:0;left:0;color:#fff;font-size:12px;background-color:rgba(0,0,0,.4)}.file-image[data-v-86b162f5]{width:100%;height:100%}.is-add[data-v-86b162f5]{display:flex;align-items:center;justify-content:center}.icon-add[data-v-86b162f5]{width:50px;height:5px;background-color:#f1f1f1;border-radius:2px}.rotate[data-v-86b162f5]{position:absolute;transform:rotate(90deg)}.icon-del-box[data-v-86b162f5]{display:flex;align-items:center;justify-content:center;position:absolute;top:3px;right:3px;height:26px;width:26px;border-radius:50%;background-color:rgba(0,0,0,.5);z-index:2;transform:rotate(-45deg)}.icon-del[data-v-86b162f5]{width:15px;height:2px;background-color:#fff;border-radius:2px}.uni-file-picker__files[data-v-e61666c7]{display:flex;flex-direction:column;justify-content:flex-start}.uni-file-picker__lists[data-v-e61666c7]{position:relative;margin-top:5px;overflow:hidden}.file-picker__mask[data-v-e61666c7]{display:flex;justify-content:center;align-items:center;position:absolute;right:0;top:0;bottom:0;left:0;color:#fff;font-size:14px;background-color:rgba(0,0,0,.4)}.uni-file-picker__lists-box[data-v-e61666c7]{position:relative}.uni-file-picker__item[data-v-e61666c7]{display:flex;align-items:center;padding:8px 5px 8px 10px}.files-border[data-v-e61666c7]{border-top:1px #eee solid}.files__name[data-v-e61666c7]{flex:1;font-size:14px;color:#666;margin-right:25px;word-break:break-all;word-wrap:break-word}.icon-files[data-v-e61666c7]{position:static;background-color:initial}.is-list-card[data-v-e61666c7]{border:1px #eee solid;margin-bottom:5px;border-radius:5px;box-shadow:0 0 2px rgba(0,0,0,.1);padding:5px}.files__image[data-v-e61666c7]{width:40px;height:40px;margin-right:10px}.header-image[data-v-e61666c7]{width:100%;height:100%}.is-text-box[data-v-e61666c7]{border:1px #eee solid;border-radius:5px}.is-text-image[data-v-e61666c7]{width:25px;height:25px;margin-left:5px}.rotate[data-v-e61666c7]{position:absolute;transform:rotate(90deg)}.icon-del-box[data-v-e61666c7]{display:flex;margin:auto 0;align-items:center;justify-content:center;position:absolute;top:0;bottom:0;right:5px;height:26px;width:26px;z-index:2;transform:rotate(-45deg)}.icon-del[data-v-e61666c7]{width:15px;height:1px;background-color:#333}.uni-file-picker[data-v-086f9922]{box-sizing:border-box;overflow:hidden;width:100%;flex:1}.uni-file-picker__header[data-v-086f9922]{padding-top:5px;padding-bottom:10px;display:flex;justify-content:space-between}.file-title[data-v-086f9922]{font-size:14px;color:#333}.file-count[data-v-086f9922]{font-size:14px;color:#999}.is-add[data-v-086f9922]{display:flex;align-items:center;justify-content:center}.icon-add[data-v-086f9922]{width:50px;height:5px;background-color:#f1f1f1;border-radius:2px}.rotate[data-v-086f9922]{position:absolute;transform:rotate(90deg)}.uni-easyinput[data-v-d17898f6]{width:100%;flex:1;position:relative;text-align:left;color:#333;font-size:14px}.uni-easyinput__content[data-v-d17898f6]{flex:1;width:100%;display:flex;box-sizing:border-box;flex-direction:row;align-items:center;border-color:#fff;transition-property:border-color;transition-duration:.3s}.uni-easyinput__content-input[data-v-d17898f6]{width:auto;position:relative;overflow:hidden;flex:1;line-height:1;font-size:14px;height:35px}.uni-easyinput__content-input[data-v-d17898f6] ::-ms-reveal{display:none}.uni-easyinput__content-input[data-v-d17898f6] ::-ms-clear{display:none}.uni-easyinput__content-input[data-v-d17898f6] ::-o-clear{display:none}.uni-easyinput__placeholder-class[data-v-d17898f6]{color:#999;font-size:12px}.is-textarea[data-v-d17898f6]{align-items:flex-start}.is-textarea-icon[data-v-d17898f6]{margin-top:5px}.uni-easyinput__content-textarea[data-v-d17898f6]{position:relative;overflow:hidden;flex:1;line-height:1.5;font-size:14px;margin:6px 6px 6px 0;height:80px;min-height:80px;width:auto}.input-padding[data-v-d17898f6]{padding-left:10px}.content-clear-icon[data-v-d17898f6]{padding:0 5px}.label-icon[data-v-d17898f6]{margin-right:5px;margin-top:-1px}.is-input-border[data-v-d17898f6]{display:flex;box-sizing:border-box;flex-direction:row;align-items:center;border:1px solid #dcdfe6;border-radius:4px}.uni-error-message[data-v-d17898f6]{position:absolute;bottom:-17px;left:0;line-height:12px;color:#e43d33;font-size:12px;text-align:left}.uni-error-msg--boeder[data-v-d17898f6]{position:relative;bottom:0;line-height:22px}.is-input-error-border[data-v-d17898f6]{border-color:#e43d33}.is-input-error-border .uni-easyinput__placeholder-class[data-v-d17898f6]{color:#f29e99}.uni-easyinput--border[data-v-d17898f6]{margin-bottom:0;padding:10px 15px;border-top:1px #eee solid}.uni-easyinput-error[data-v-d17898f6]{padding-bottom:0}.is-first-border[data-v-d17898f6]{border:none}.is-disabled[data-v-d17898f6]{background-color:#f7f6f6;color:#d5d5d5}.is-disabled .uni-easyinput__placeholder-class[data-v-d17898f6]{color:#d5d5d5;font-size:12px}.uni-popup[data-v-9c09fb6f]{position:fixed;z-index:99}.uni-popup.top[data-v-9c09fb6f],.uni-popup.left[data-v-9c09fb6f],.uni-popup.right[data-v-9c09fb6f]{top:0}.uni-popup .uni-popup__wrapper[data-v-9c09fb6f]{display:block;position:relative}.uni-popup .uni-popup__wrapper.left[data-v-9c09fb6f],.uni-popup .uni-popup__wrapper.right[data-v-9c09fb6f]{padding-top:0;flex:1}.fixforpc-z-index[data-v-9c09fb6f]{z-index:999}.fixforpc-top[data-v-9c09fb6f]{top:0}.customthree-tree-select-content.border[data-v-50ed94e6]{border-left:1px solid #c8c7cc}.customthree-tree-select-content[data-v-50ed94e6] .uni-checkbox-input{margin:0!important}.customthree-tree-select-content .item-content[data-v-50ed94e6]{margin:0 0 12px;display:flex;justify-content:space-between;align-items:center;position:relative}.customthree-tree-select-content .item-content[data-v-50ed94e6]:after{content:"";position:absolute;top:0;left:0;bottom:0;width:3px;background-color:#fff;transform:translate(-2px);z-index:1}.customthree-tree-select-content .item-content .left[data-v-50ed94e6]{flex:1;display:flex;align-items:center}.customthree-tree-select-content .item-content .left .right-icon[data-v-50ed94e6]{transition:.15s ease}.customthree-tree-select-content .item-content .left .right-icon.active[data-v-50ed94e6]{transform:rotate(90deg)}.customthree-tree-select-content .item-content .left .smallcircle-filled[data-v-50ed94e6]{width:14px;height:13.6px;display:flex;align-items:center}.customthree-tree-select-content .item-content .left .smallcircle-filled .smallcircle-filled-icon[data-v-50ed94e6]{transform-origin:center;transform:scale(.55)}.customthree-tree-select-content .item-content .left .loading-icon-box[data-v-50ed94e6]{margin-right:5px;width:14px;height:100%;display:flex;justify-content:center;align-items:center}.customthree-tree-select-content .item-content .left .loading-icon-box .loading-icon[data-v-50ed94e6]{transform-origin:center;animation:rotating-50ed94e6 infinite .2s ease}.customthree-tree-select-content .item-content .left .name[data-v-50ed94e6]{flex:1}.customthree-tree-select-content .check-box[data-v-50ed94e6]{margin:0;padding:0;box-sizing:border-box;width:23.6px;height:23.6px;border:1px solid #c8c7cc;display:flex;justify-content:center;align-items:center}.customthree-tree-select-content .check-box.disabled[data-v-50ed94e6]{background-color:#e1e1e1}.customthree-tree-select-content .check-box .part-checked[data-v-50ed94e6]{width:60%;height:2px;background-color:#007aff}@keyframes rotating-50ed94e6{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.select-list[data-v-0768d7c7]{padding-left:10px;min-height:35px;display:flex;justify-content:space-between;align-items:center}.select-list.active[data-v-0768d7c7]{padding:2px 0 2px 10px}.select-list .left[data-v-0768d7c7]{flex:1}.select-list .left .select-items[data-v-0768d7c7]{display:flex;flex-wrap:wrap}.select-list .left .select-item[data-v-0768d7c7]{max-width:auto;height:auto;display:flex;align-items:center}.select-list .left .select-item .name[data-v-0768d7c7]{flex:1;font-size:14px}.select-list .left .select-item .close[data-v-0768d7c7]{width:18px;height:18px;display:flex;justify-content:center;align-items:center;overflow:hidden}.select-list.disabled[data-v-0768d7c7]{background-color:#f5f7fa}.select-list.disabled .left .select-item .name[data-v-0768d7c7]{padding:0}.popup-content[data-v-0768d7c7]{flex:1;background-color:#fff;border-top-left-radius:20px;border-top-right-radius:20px;display:flex;flex-direction:column}.popup-content .title[data-v-0768d7c7]{padding:8px 3rem;border-bottom:1px solid #c8c7cc;font-size:14px;display:flex;justify-content:space-between;position:relative}.popup-content .title .left[data-v-0768d7c7]{position:absolute;left:10px}.popup-content .title .center[data-v-0768d7c7]{flex:1;text-align:center}.popup-content .title .right[data-v-0768d7c7]{position:absolute;right:10px}.popup-content .search-box[data-v-0768d7c7]{margin:8px 10px 0;background-color:#fff;display:flex;align-items:center}.popup-content .search-box .search-btn[data-v-0768d7c7]{margin-left:10px;height:35px;line-height:35px}.popup-content .select-content[data-v-0768d7c7]{margin:8px 10px;flex:1;overflow:hidden;position:relative}.popup-content .scroll-view-box[data-v-0768d7c7]{touch-action:none;flex:1;position:absolute;top:0;right:0;bottom:0;left:0}.popup-content .sentry[data-v-0768d7c7]{height:48px}.no-data[data-v-0768d7c7]{font-size:.875rem;color:#999}body{background-color:#fff}.btn[data-v-6e3acbe9]{border-top:1px solid #EFEFEF;height:3.75rem;justify-content:center;position:fixed;bottom:0;width:100vw}.btn uni-view[data-v-6e3acbe9]{width:21.5625rem;height:2.75rem;background:#01508b;border-radius:.5rem;font-size:.875rem;color:#fff;text-align:center;line-height:2.75rem}.input_box[data-v-6e3acbe9]{height:3.125rem}.input_box .title[data-v-6e3acbe9]{font-size:.875rem;color:#333}.input_box uni-input[data-v-6e3acbe9]{flex:1;height:100%;text-align:right;font-size:.875rem;color:#333}.form[data-v-6e3acbe9]{padding:0 .9375rem;background-color:#fff}.form .title[data-v-6e3acbe9]{font-size:.875rem;color:#333}.form .box[data-v-6e3acbe9]{height:3.125rem}.form .box[data-v-6e3acbe9]:not(:last-child){border-bottom:1px solid #EFEFEF}.form .choose[data-v-6e3acbe9]{font-size:.875rem;color:#999}.form .choosed[data-v-6e3acbe9]{font-size:.875rem;color:#333} diff --git a/unpackage/dist/build/app-plus/pages/tab/index.css b/unpackage/dist/build/app-plus/pages/tab/index.css index f8da515..5bf946a 100644 --- a/unpackage/dist/build/app-plus/pages/tab/index.css +++ b/unpackage/dist/build/app-plus/pages/tab/index.css @@ -1 +1 @@ -.uniui-cart-filled[data-v-5610c8db]:before{content:"\e6d0"}.uniui-gift-filled[data-v-5610c8db]:before{content:"\e6c4"}.uniui-color[data-v-5610c8db]:before{content:"\e6cf"}.uniui-wallet[data-v-5610c8db]:before{content:"\e6b1"}.uniui-settings-filled[data-v-5610c8db]:before{content:"\e6ce"}.uniui-auth-filled[data-v-5610c8db]:before{content:"\e6cc"}.uniui-shop-filled[data-v-5610c8db]:before{content:"\e6cd"}.uniui-staff-filled[data-v-5610c8db]:before{content:"\e6cb"}.uniui-vip-filled[data-v-5610c8db]:before{content:"\e6c6"}.uniui-plus-filled[data-v-5610c8db]:before{content:"\e6c7"}.uniui-folder-add-filled[data-v-5610c8db]:before{content:"\e6c8"}.uniui-color-filled[data-v-5610c8db]:before{content:"\e6c9"}.uniui-tune-filled[data-v-5610c8db]:before{content:"\e6ca"}.uniui-calendar-filled[data-v-5610c8db]:before{content:"\e6c0"}.uniui-notification-filled[data-v-5610c8db]:before{content:"\e6c1"}.uniui-wallet-filled[data-v-5610c8db]:before{content:"\e6c2"}.uniui-medal-filled[data-v-5610c8db]:before{content:"\e6c3"}.uniui-fire-filled[data-v-5610c8db]:before{content:"\e6c5"}.uniui-refreshempty[data-v-5610c8db]:before{content:"\e6bf"}.uniui-location-filled[data-v-5610c8db]:before{content:"\e6af"}.uniui-person-filled[data-v-5610c8db]:before{content:"\e69d"}.uniui-personadd-filled[data-v-5610c8db]:before{content:"\e698"}.uniui-arrowthinleft[data-v-5610c8db]:before{content:"\e6d2"}.uniui-arrowthinup[data-v-5610c8db]:before{content:"\e6d3"}.uniui-arrowthindown[data-v-5610c8db]:before{content:"\e6d4"}.uniui-back[data-v-5610c8db]:before{content:"\e6b9"}.uniui-forward[data-v-5610c8db]:before{content:"\e6ba"}.uniui-arrow-right[data-v-5610c8db]:before{content:"\e6bb"}.uniui-arrow-left[data-v-5610c8db]:before{content:"\e6bc"}.uniui-arrow-up[data-v-5610c8db]:before{content:"\e6bd"}.uniui-arrow-down[data-v-5610c8db]:before{content:"\e6be"}.uniui-arrowthinright[data-v-5610c8db]:before{content:"\e6d1"}.uniui-down[data-v-5610c8db]:before{content:"\e6b8"}.uniui-bottom[data-v-5610c8db]:before{content:"\e6b8"}.uniui-arrowright[data-v-5610c8db]:before{content:"\e6d5"}.uniui-right[data-v-5610c8db]:before{content:"\e6b5"}.uniui-up[data-v-5610c8db]:before{content:"\e6b6"}.uniui-top[data-v-5610c8db]:before{content:"\e6b6"}.uniui-left[data-v-5610c8db]:before{content:"\e6b7"}.uniui-arrowup[data-v-5610c8db]:before{content:"\e6d6"}.uniui-eye[data-v-5610c8db]:before{content:"\e651"}.uniui-eye-filled[data-v-5610c8db]:before{content:"\e66a"}.uniui-eye-slash[data-v-5610c8db]:before{content:"\e6b3"}.uniui-eye-slash-filled[data-v-5610c8db]:before{content:"\e6b4"}.uniui-info-filled[data-v-5610c8db]:before{content:"\e649"}.uniui-reload[data-v-5610c8db]:before{content:"\e6b2"}.uniui-micoff-filled[data-v-5610c8db]:before{content:"\e6b0"}.uniui-map-pin-ellipse[data-v-5610c8db]:before{content:"\e6ac"}.uniui-map-pin[data-v-5610c8db]:before{content:"\e6ad"}.uniui-location[data-v-5610c8db]:before{content:"\e6ae"}.uniui-starhalf[data-v-5610c8db]:before{content:"\e683"}.uniui-star[data-v-5610c8db]:before{content:"\e688"}.uniui-star-filled[data-v-5610c8db]:before{content:"\e68f"}.uniui-calendar[data-v-5610c8db]:before{content:"\e6a0"}.uniui-fire[data-v-5610c8db]:before{content:"\e6a1"}.uniui-medal[data-v-5610c8db]:before{content:"\e6a2"}.uniui-font[data-v-5610c8db]:before{content:"\e6a3"}.uniui-gift[data-v-5610c8db]:before{content:"\e6a4"}.uniui-link[data-v-5610c8db]:before{content:"\e6a5"}.uniui-notification[data-v-5610c8db]:before{content:"\e6a6"}.uniui-staff[data-v-5610c8db]:before{content:"\e6a7"}.uniui-vip[data-v-5610c8db]:before{content:"\e6a8"}.uniui-folder-add[data-v-5610c8db]:before{content:"\e6a9"}.uniui-tune[data-v-5610c8db]:before{content:"\e6aa"}.uniui-auth[data-v-5610c8db]:before{content:"\e6ab"}.uniui-person[data-v-5610c8db]:before{content:"\e699"}.uniui-email-filled[data-v-5610c8db]:before{content:"\e69a"}.uniui-phone-filled[data-v-5610c8db]:before{content:"\e69b"}.uniui-phone[data-v-5610c8db]:before{content:"\e69c"}.uniui-email[data-v-5610c8db]:before{content:"\e69e"}.uniui-personadd[data-v-5610c8db]:before{content:"\e69f"}.uniui-chatboxes-filled[data-v-5610c8db]:before{content:"\e692"}.uniui-contact[data-v-5610c8db]:before{content:"\e693"}.uniui-chatbubble-filled[data-v-5610c8db]:before{content:"\e694"}.uniui-contact-filled[data-v-5610c8db]:before{content:"\e695"}.uniui-chatboxes[data-v-5610c8db]:before{content:"\e696"}.uniui-chatbubble[data-v-5610c8db]:before{content:"\e697"}.uniui-upload-filled[data-v-5610c8db]:before{content:"\e68e"}.uniui-upload[data-v-5610c8db]:before{content:"\e690"}.uniui-weixin[data-v-5610c8db]:before{content:"\e691"}.uniui-compose[data-v-5610c8db]:before{content:"\e67f"}.uniui-qq[data-v-5610c8db]:before{content:"\e680"}.uniui-download-filled[data-v-5610c8db]:before{content:"\e681"}.uniui-pyq[data-v-5610c8db]:before{content:"\e682"}.uniui-sound[data-v-5610c8db]:before{content:"\e684"}.uniui-trash-filled[data-v-5610c8db]:before{content:"\e685"}.uniui-sound-filled[data-v-5610c8db]:before{content:"\e686"}.uniui-trash[data-v-5610c8db]:before{content:"\e687"}.uniui-videocam-filled[data-v-5610c8db]:before{content:"\e689"}.uniui-spinner-cycle[data-v-5610c8db]:before{content:"\e68a"}.uniui-weibo[data-v-5610c8db]:before{content:"\e68b"}.uniui-videocam[data-v-5610c8db]:before{content:"\e68c"}.uniui-download[data-v-5610c8db]:before{content:"\e68d"}.uniui-help[data-v-5610c8db]:before{content:"\e679"}.uniui-navigate-filled[data-v-5610c8db]:before{content:"\e67a"}.uniui-plusempty[data-v-5610c8db]:before{content:"\e67b"}.uniui-smallcircle[data-v-5610c8db]:before{content:"\e67c"}.uniui-minus-filled[data-v-5610c8db]:before{content:"\e67d"}.uniui-micoff[data-v-5610c8db]:before{content:"\e67e"}.uniui-closeempty[data-v-5610c8db]:before{content:"\e66c"}.uniui-clear[data-v-5610c8db]:before{content:"\e66d"}.uniui-navigate[data-v-5610c8db]:before{content:"\e66e"}.uniui-minus[data-v-5610c8db]:before{content:"\e66f"}.uniui-image[data-v-5610c8db]:before{content:"\e670"}.uniui-mic[data-v-5610c8db]:before{content:"\e671"}.uniui-paperplane[data-v-5610c8db]:before{content:"\e672"}.uniui-close[data-v-5610c8db]:before{content:"\e673"}.uniui-help-filled[data-v-5610c8db]:before{content:"\e674"}.uniui-paperplane-filled[data-v-5610c8db]:before{content:"\e675"}.uniui-plus[data-v-5610c8db]:before{content:"\e676"}.uniui-mic-filled[data-v-5610c8db]:before{content:"\e677"}.uniui-image-filled[data-v-5610c8db]:before{content:"\e678"}.uniui-locked-filled[data-v-5610c8db]:before{content:"\e668"}.uniui-info[data-v-5610c8db]:before{content:"\e669"}.uniui-locked[data-v-5610c8db]:before{content:"\e66b"}.uniui-camera-filled[data-v-5610c8db]:before{content:"\e658"}.uniui-chat-filled[data-v-5610c8db]:before{content:"\e659"}.uniui-camera[data-v-5610c8db]:before{content:"\e65a"}.uniui-circle[data-v-5610c8db]:before{content:"\e65b"}.uniui-checkmarkempty[data-v-5610c8db]:before{content:"\e65c"}.uniui-chat[data-v-5610c8db]:before{content:"\e65d"}.uniui-circle-filled[data-v-5610c8db]:before{content:"\e65e"}.uniui-flag[data-v-5610c8db]:before{content:"\e65f"}.uniui-flag-filled[data-v-5610c8db]:before{content:"\e660"}.uniui-gear-filled[data-v-5610c8db]:before{content:"\e661"}.uniui-home[data-v-5610c8db]:before{content:"\e662"}.uniui-home-filled[data-v-5610c8db]:before{content:"\e663"}.uniui-gear[data-v-5610c8db]:before{content:"\e664"}.uniui-smallcircle-filled[data-v-5610c8db]:before{content:"\e665"}.uniui-map-filled[data-v-5610c8db]:before{content:"\e666"}.uniui-map[data-v-5610c8db]:before{content:"\e667"}.uniui-refresh-filled[data-v-5610c8db]:before{content:"\e656"}.uniui-refresh[data-v-5610c8db]:before{content:"\e657"}.uniui-cloud-upload[data-v-5610c8db]:before{content:"\e645"}.uniui-cloud-download-filled[data-v-5610c8db]:before{content:"\e646"}.uniui-cloud-download[data-v-5610c8db]:before{content:"\e647"}.uniui-cloud-upload-filled[data-v-5610c8db]:before{content:"\e648"}.uniui-redo[data-v-5610c8db]:before{content:"\e64a"}.uniui-images-filled[data-v-5610c8db]:before{content:"\e64b"}.uniui-undo-filled[data-v-5610c8db]:before{content:"\e64c"}.uniui-more[data-v-5610c8db]:before{content:"\e64d"}.uniui-more-filled[data-v-5610c8db]:before{content:"\e64e"}.uniui-undo[data-v-5610c8db]:before{content:"\e64f"}.uniui-images[data-v-5610c8db]:before{content:"\e650"}.uniui-paperclip[data-v-5610c8db]:before{content:"\e652"}.uniui-settings[data-v-5610c8db]:before{content:"\e653"}.uniui-search[data-v-5610c8db]:before{content:"\e654"}.uniui-redo-filled[data-v-5610c8db]:before{content:"\e655"}.uniui-list[data-v-5610c8db]:before{content:"\e644"}.uniui-mail-open-filled[data-v-5610c8db]:before{content:"\e63a"}.uniui-hand-down-filled[data-v-5610c8db]:before{content:"\e63c"}.uniui-hand-down[data-v-5610c8db]:before{content:"\e63d"}.uniui-hand-up-filled[data-v-5610c8db]:before{content:"\e63e"}.uniui-hand-up[data-v-5610c8db]:before{content:"\e63f"}.uniui-heart-filled[data-v-5610c8db]:before{content:"\e641"}.uniui-mail-open[data-v-5610c8db]:before{content:"\e643"}.uniui-heart[data-v-5610c8db]:before{content:"\e639"}.uniui-loop[data-v-5610c8db]:before{content:"\e633"}.uniui-pulldown[data-v-5610c8db]:before{content:"\e632"}.uniui-scan[data-v-5610c8db]:before{content:"\e62a"}.uniui-bars[data-v-5610c8db]:before{content:"\e627"}.uniui-checkbox[data-v-5610c8db]:before{content:"\e62b"}.uniui-checkbox-filled[data-v-5610c8db]:before{content:"\e62c"}.uniui-shop[data-v-5610c8db]:before{content:"\e62f"}.uniui-headphones[data-v-5610c8db]:before{content:"\e630"}.uniui-cart[data-v-5610c8db]:before{content:"\e631"}@font-face{font-family:uniicons;src:url(../../assets/uniicons.32e978a5.ttf)}.uni-icons[data-v-5610c8db]{font-family:uniicons;text-decoration:none;text-align:center}.uni-calendar-item__weeks-box[data-v-a5fd30c1]{flex:1;display:flex;flex-direction:column;justify-content:center;align-items:center;margin:1px 0;position:relative}.uni-calendar-item__weeks-box-text[data-v-a5fd30c1]{font-size:14px;font-weight:700;color:#001833}.uni-calendar-item__weeks-box-item[data-v-a5fd30c1]{position:relative;display:flex;flex-direction:column;justify-content:center;align-items:center;width:40px;height:40px}.uni-calendar-item__weeks-box-circle[data-v-a5fd30c1]{position:absolute;top:5px;right:5px;width:8px;height:8px;border-radius:8px;background-color:#dd524d}.uni-calendar-item__weeks-box .uni-calendar-item--disable[data-v-a5fd30c1]{cursor:default}.uni-calendar-item--disable .uni-calendar-item__weeks-box-text-disable[data-v-a5fd30c1]{color:#d1d1d1}.uni-calendar-item--today[data-v-a5fd30c1]{position:absolute;top:10px;right:17%;background-color:#dd524d;width:6px;height:6px;border-radius:50%}.uni-calendar-item--extra[data-v-a5fd30c1]{color:#dd524d;opacity:.8}.uni-calendar-item__weeks-box .uni-calendar-item--checked[data-v-a5fd30c1]{border-radius:50%;box-sizing:border-box;border:3px solid #fff}.uni-calendar-item--multiple .uni-calendar-item--checked-range-text[data-v-a5fd30c1]{color:#333}.uni-calendar-item--multiple[data-v-a5fd30c1]{background-color:#f6f7fc}.uni-calendar-item--multiple .uni-calendar-item--before-checked[data-v-a5fd30c1],.uni-calendar-item--multiple .uni-calendar-item--after-checked[data-v-a5fd30c1]{background-color:#007aff;border-radius:50%;box-sizing:border-box;border:3px solid #F6F7FC}.uni-calendar-item--before-checked .uni-calendar-item--checked-text[data-v-a5fd30c1],.uni-calendar-item--after-checked .uni-calendar-item--checked-text[data-v-a5fd30c1]{color:#fff}.uni-calendar-item--before-checked-x[data-v-a5fd30c1]{border-top-left-radius:50px;border-bottom-left-radius:50px;box-sizing:border-box;background-color:#f6f7fc}.uni-calendar-item--after-checked-x[data-v-a5fd30c1]{border-top-right-radius:50px;border-bottom-right-radius:50px;background-color:#f6f7fc}.uni-datetime-picker-view[data-v-8a3925ff]{height:130px;width:270px;cursor:pointer}.uni-datetime-picker-item[data-v-8a3925ff]{height:50px;line-height:50px;text-align:center;font-size:14px}.uni-datetime-picker-btn[data-v-8a3925ff]{margin-top:60px;display:flex;cursor:pointer;flex-direction:row;justify-content:space-between}.uni-datetime-picker-btn-text[data-v-8a3925ff]{font-size:14px;color:#007aff}.uni-datetime-picker-btn-group[data-v-8a3925ff]{display:flex;flex-direction:row}.uni-datetime-picker-cancel[data-v-8a3925ff]{margin-right:30px}.uni-datetime-picker-mask[data-v-8a3925ff]{position:fixed;bottom:0;top:0;left:0;right:0;background-color:rgba(0,0,0,.4);transition-duration:.3s;z-index:998}.uni-datetime-picker-popup[data-v-8a3925ff]{border-radius:8px;padding:30px;width:270px;background-color:#fff;position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);transition-duration:.3s;z-index:999}.uni-datetime-picker-time[data-v-8a3925ff]{color:gray}.uni-datetime-picker-column[data-v-8a3925ff]{height:50px}.uni-datetime-picker-timebox[data-v-8a3925ff]{border:1px solid #E5E5E5;border-radius:5px;padding:7px 10px;box-sizing:border-box;cursor:pointer}.uni-datetime-picker-timebox-pointer[data-v-8a3925ff]{cursor:pointer}.uni-datetime-picker-disabled[data-v-8a3925ff]{opacity:.4}.uni-datetime-picker-text[data-v-8a3925ff]{font-size:14px;line-height:50px}.uni-datetime-picker-sign[data-v-8a3925ff]{position:absolute;top:53px;color:#999}.sign-left[data-v-8a3925ff]{left:86px}.sign-right[data-v-8a3925ff]{right:86px}.sign-center[data-v-8a3925ff]{left:135px}.uni-datetime-picker__container-box[data-v-8a3925ff]{position:relative;display:flex;align-items:center;justify-content:center;margin-top:40px}.time-hide-second[data-v-8a3925ff]{width:180px}.uni-calendar[data-v-8dc4a3ee]{display:flex;flex-direction:column}.uni-calendar__mask[data-v-8dc4a3ee]{position:fixed;bottom:0;top:0;left:0;right:0;background-color:rgba(0,0,0,.4);transition-property:opacity;transition-duration:.3s;opacity:0;z-index:99}.uni-calendar--mask-show[data-v-8dc4a3ee]{opacity:1}.uni-calendar--fixed[data-v-8dc4a3ee]{position:fixed;bottom:calc(var(--window-bottom));left:0;right:0;transition-property:transform;transition-duration:.3s;transform:translateY(460px);z-index:99}.uni-calendar--ani-show[data-v-8dc4a3ee]{transform:translateY(0)}.uni-calendar__content[data-v-8dc4a3ee]{background-color:#fff}.uni-calendar__content-mobile[data-v-8dc4a3ee]{border-top-left-radius:10px;border-top-right-radius:10px;box-shadow:0 0 5px 3px rgba(0,0,0,.1)}.uni-calendar__header[data-v-8dc4a3ee]{position:relative;display:flex;flex-direction:row;justify-content:center;align-items:center;height:50px}.uni-calendar__header-mobile[data-v-8dc4a3ee]{padding:10px 10px 0}.uni-calendar--fixed-top[data-v-8dc4a3ee]{display:flex;flex-direction:row;justify-content:space-between;border-top-color:rgba(0,0,0,.4);border-top-style:solid;border-top-width:1px}.uni-calendar--fixed-width[data-v-8dc4a3ee]{width:50px}.uni-calendar__backtoday[data-v-8dc4a3ee]{position:absolute;right:0;top:.78125rem;padding:0 5px 0 10px;height:25px;line-height:25px;font-size:12px;border-top-left-radius:25px;border-bottom-left-radius:25px;color:#fff;background-color:#f1f1f1}.uni-calendar__header-text[data-v-8dc4a3ee]{text-align:center;width:100px;font-size:15px;color:#666}.uni-calendar__button-text[data-v-8dc4a3ee]{text-align:center;width:100px;font-size:14px;color:#007aff;letter-spacing:3px}.uni-calendar__header-btn-box[data-v-8dc4a3ee]{display:flex;flex-direction:row;align-items:center;justify-content:center;width:50px;height:50px}.uni-calendar__header-btn[data-v-8dc4a3ee]{width:9px;height:9px;border-left-color:gray;border-left-style:solid;border-left-width:1px;border-top-color:#555;border-top-style:solid;border-top-width:1px}.uni-calendar--left[data-v-8dc4a3ee]{transform:rotate(-45deg)}.uni-calendar--right[data-v-8dc4a3ee]{transform:rotate(135deg)}.uni-calendar__weeks[data-v-8dc4a3ee]{position:relative;display:flex;flex-direction:row}.uni-calendar__weeks-item[data-v-8dc4a3ee]{flex:1}.uni-calendar__weeks-day[data-v-8dc4a3ee]{flex:1;display:flex;flex-direction:column;justify-content:center;align-items:center;height:40px;border-bottom-color:#f5f5f5;border-bottom-style:solid;border-bottom-width:1px}.uni-calendar__weeks-day-text[data-v-8dc4a3ee]{font-size:12px;color:#b2b2b2}.uni-calendar__box[data-v-8dc4a3ee]{position:relative;padding-bottom:7px}.uni-calendar__box-bg[data-v-8dc4a3ee]{display:flex;justify-content:center;align-items:center;position:absolute;top:0;left:0;right:0;bottom:0}.uni-calendar__box-bg-text[data-v-8dc4a3ee]{font-size:200px;font-weight:700;color:#999;opacity:.1;text-align:center;line-height:1}.uni-date-changed[data-v-8dc4a3ee]{padding:0 10px;text-align:center;color:#333;border-top-color:#dcdcdc;border-top-style:solid;border-top-width:1px;flex:1}.uni-date-btn--ok[data-v-8dc4a3ee]{padding:20px 15px}.uni-date-changed--time-start[data-v-8dc4a3ee],.uni-date-changed--time-end[data-v-8dc4a3ee]{display:flex;align-items:center}.uni-date-changed--time-date[data-v-8dc4a3ee]{color:#999;line-height:50px;margin-right:5px}.time-picker-style[data-v-8dc4a3ee]{display:flex;justify-content:center;align-items:center}.mr-10[data-v-8dc4a3ee]{margin-right:10px}.dialog-close[data-v-8dc4a3ee]{position:absolute;top:0;right:0;bottom:0;display:flex;flex-direction:row;align-items:center;padding:0 25px;margin-top:10px}.dialog-close-plus[data-v-8dc4a3ee]{width:16px;height:2px;background-color:#737987;border-radius:2px;transform:rotate(45deg)}.dialog-close-rotate[data-v-8dc4a3ee]{position:absolute;transform:rotate(-45deg)}.uni-datetime-picker--btn[data-v-8dc4a3ee]{border-radius:100px;height:40px;line-height:40px;background-color:#007aff;color:#fff;font-size:16px;letter-spacing:2px}.uni-datetime-picker--btn[data-v-8dc4a3ee]:active{opacity:.7}.uni-date[data-v-17511ee3]{width:100%;flex:1}.uni-date-x[data-v-17511ee3]{display:flex;flex-direction:row;align-items:center;justify-content:center;border-radius:4px;background-color:#fff;color:#666;font-size:14px;flex:1}.uni-date-x .icon-calendar[data-v-17511ee3]{padding-left:3px}.uni-date-x .range-separator[data-v-17511ee3]{height:35px;padding:0 2px;line-height:35px}.uni-date-x--border[data-v-17511ee3]{box-sizing:border-box;border-radius:4px;border:1px solid #e5e5e5}.uni-date-editor--x[data-v-17511ee3]{display:flex;align-items:center;position:relative}.uni-date-editor--x .uni-date__icon-clear[data-v-17511ee3]{padding-right:3px;display:flex;align-items:center}.uni-date__x-input[data-v-17511ee3]{width:auto;height:35px;padding-left:5px;position:relative;flex:1;line-height:35px;font-size:14px;overflow:hidden}.text-center[data-v-17511ee3]{text-align:center}.uni-date__input[data-v-17511ee3]{height:40px;width:100%;line-height:40px;font-size:14px}.uni-date-range__input[data-v-17511ee3]{text-align:center;max-width:142px}.uni-date-picker__container[data-v-17511ee3]{position:relative}.uni-date-mask--pc[data-v-17511ee3]{position:fixed;bottom:0;top:0;left:0;right:0;background-color:rgba(0,0,0,0);transition-duration:.3s;z-index:996}.uni-date-single--x[data-v-17511ee3],.uni-date-range--x[data-v-17511ee3]{background-color:#fff;position:absolute;top:0;z-index:999;border:1px solid #EBEEF5;box-shadow:0 2px 12px rgba(0,0,0,.1);border-radius:4px}.uni-date-editor--x__disabled[data-v-17511ee3]{opacity:.4;cursor:default}.uni-date-editor--logo[data-v-17511ee3]{width:16px;height:16px;vertical-align:middle}.popup-x-header[data-v-17511ee3]{display:flex;flex-direction:row}.popup-x-header--datetime[data-v-17511ee3]{display:flex;flex-direction:row;flex:1}.popup-x-body[data-v-17511ee3]{display:flex}.popup-x-footer[data-v-17511ee3]{padding:0 15px;border-top-color:#f1f1f1;border-top-style:solid;border-top-width:1px;line-height:40px;text-align:right;color:#666}.popup-x-footer uni-text[data-v-17511ee3]:hover{color:#007aff;cursor:pointer;opacity:.8}.popup-x-footer .confirm-text[data-v-17511ee3]{margin-left:20px;color:#007aff}.uni-date-changed[data-v-17511ee3]{text-align:center;color:#333;border-bottom-color:#f1f1f1;border-bottom-style:solid;border-bottom-width:1px}.uni-date-changed--time uni-text[data-v-17511ee3]{height:50px;line-height:50px}.uni-date-changed .uni-date-changed--time[data-v-17511ee3]{flex:1}.uni-date-changed--time-date[data-v-17511ee3]{color:#333;opacity:.6}.mr-50[data-v-17511ee3]{margin-right:50px}.uni-popper__arrow[data-v-17511ee3],.uni-popper__arrow[data-v-17511ee3]:after{position:absolute;display:block;width:0;height:0;border:6px solid transparent;border-top-width:0}.uni-popper__arrow[data-v-17511ee3]{filter:drop-shadow(0 2px 12px rgba(0,0,0,.03));top:-6px;left:10%;margin-right:3px;border-bottom-color:#ebeef5}.uni-popper__arrow[data-v-17511ee3]:after{content:" ";top:1px;margin-left:-6px;border-bottom-color:#fff}.nav[data-v-566e182b]{width:calc(100% - 1.875rem);padding:0 .9375rem;height:var(--bc08538a);background:linear-gradient(270deg,#256fbc,#044d87);font-size:.75rem;color:#fff;position:fixed;top:0;left:0;z-index:99}.place[data-v-566e182b]{height:var(--bc08538a)}.content[data-v-9c94732a]{padding-top:var(--59a7e392)}[data-v-9c94732a] .uni-drawer{margin-top:var(--59a7e392)}.nav[data-v-9c94732a]{width:calc(100% - 1.875rem);padding:0 .9375rem;height:var(--59a7e392);font-size:.75rem;color:#333;position:fixed;top:0;left:0;z-index:99;background-image:url(../../static/my/navbg.png);background-repeat:no-repeat;background-size:23.4375rem 14.3125rem}.nav_box[data-v-9c94732a]{position:absolute;bottom:.8125rem;width:calc(100% - 1.875rem)}.weather_calender uni-image[data-v-9c94732a]{width:1.125rem;height:1.125rem;margin-right:.25rem}.weather_calender .position[data-v-9c94732a]:not(:last-child){position:relative;margin-right:1.875rem}.weather_calender .position[data-v-9c94732a]:not(:last-child):after{position:absolute;content:" ";width:.0625rem;height:.625rem;background:#efefef;right:-.9375rem;top:50%;transform:translateY(-50%)}.swiper[data-v-9c94732a]{width:100vw;height:12.5rem}.swiper .swiper-item uni-image[data-v-9c94732a]{width:100vw;height:12.5rem;background-color:#a8a8a8}.wrapper[data-v-9c94732a]{padding:0 .9375rem;transform:translateY(-1.5625rem)}.wrapper .onduty[data-v-9c94732a]{background:#fff;box-shadow:0 .0625rem .125rem rgba(0,0,0,.5);border-radius:.5rem;padding:.625rem .75rem .75rem}.wrapper .onduty .title[data-v-9c94732a]{font-size:1rem;color:#333;background-size:1.375rem .375rem;background-repeat:no-repeat;background-position:left bottom}.wrapper .onduty .info[data-v-9c94732a]{background:#f8f8f8;border-radius:.25rem;text-align:center;width:20.0625rem;margin-top:.71875rem}.wrapper .onduty .info .info_title[data-v-9c94732a]{font-size:.75rem;color:#333;padding:.75rem 0;border-bottom:1px solid #EFEFEF}.wrapper .onduty .info .info_title uni-view[data-v-9c94732a]{flex:1}.wrapper .onduty .info .data_box[data-v-9c94732a]{font-size:.75rem;padding-bottom:.75rem;color:#888}.wrapper .onduty .info .data_box .first[data-v-9c94732a]{font-weight:700;color:#333}.wrapper .onduty .info .data_box .data[data-v-9c94732a]{margin-top:.71875rem}.wrapper .onduty .info .data_box .data uni-view[data-v-9c94732a]{flex:1}.wrapper .more[data-v-9c94732a]{font-size:.75rem;color:#999;text-align:right}.wrapper .more uni-image[data-v-9c94732a]{width:.3125rem;height:.5625rem}.wrapper .list_wrapper[data-v-9c94732a]{background:#fff;box-shadow:0 .0625rem .125rem rgba(0,0,0,.5);border-radius:.5rem;padding:.8125rem .75rem .75rem;position:relative;margin-top:.9375rem;width:20.0625rem}.wrapper .list_wrapper[data-v-9c94732a]:after{position:absolute;top:3.125rem;left:0;content:" ";width:100%;height:1px;background-color:#efefef}.wrapper .list_wrapper .zhidu[data-v-9c94732a]{font-size:.75rem;color:#666;justify-content:flex-end;padding-top:1.25rem}.wrapper .list_wrapper .zhidu uni-view[data-v-9c94732a]{width:3.75rem;height:1.875rem;line-height:1.875rem;text-align:center}.wrapper .list_wrapper .zhidu uni-view[data-v-9c94732a]:first-child{margin-right:1.25rem}.wrapper .list_wrapper .zhidu .active[data-v-9c94732a]{position:relative;color:#3179d6}.wrapper .list_wrapper .zhidu .active[data-v-9c94732a]:after{content:" ";width:3.75rem;height:1.875rem;border-radius:1.875rem;left:50%;top:50%;transform:translate(-50%,-50%);position:absolute;background-color:rgba(49,121,214,.1)}.wrapper .list_wrapper .list_title[data-v-9c94732a]{text-align:center;padding-bottom:.90625rem;font-size:1rem;color:#666}.wrapper .list_wrapper .list_title .active[data-v-9c94732a]{position:relative;color:#3179d6}.wrapper .list_wrapper .list_title .active[data-v-9c94732a]:after{content:" ";width:3.75rem;height:2.1875rem;border-radius:2.1875rem;left:50%;top:50%;transform:translate(-50%,-50%);position:absolute;background-color:rgba(49,121,214,.1)}.wrapper .list_wrapper .list_box[data-v-9c94732a]{margin-top:.75rem}.wrapper .list_wrapper .list_box .list[data-v-9c94732a]{margin-bottom:.75rem;padding:.9375rem .9375rem 1.09375rem;background:#f8f8f8;border-radius:.25rem}.wrapper .list_wrapper .list_box .list .topic[data-v-9c94732a]{font-size:.875rem;color:#333}.wrapper .list_wrapper .list_box .list .time_Box[data-v-9c94732a]{font-size:.75rem;color:#888;margin-top:.625rem}.wrapper .list_wrapper .list_box .list .time_Box .time[data-v-9c94732a]{margin-right:1.9375rem}.wrapper .list_wrapper .list_box .list .time_Box .look[data-v-9c94732a]{position:relative}.wrapper .list_wrapper .list_box .list .time_Box .look[data-v-9c94732a]:before{position:absolute;left:-.9375rem;top:50%;transform:translateY(-50%);content:" ";width:.0625rem;height:.625rem;background:#999}.wrapper .list_wrapper .list_box .list .time_Box uni-image[data-v-9c94732a]{width:.875rem;height:.6875rem;margin-right:.25rem} +.uniui-cart-filled[data-v-5610c8db]:before{content:"\e6d0"}.uniui-gift-filled[data-v-5610c8db]:before{content:"\e6c4"}.uniui-color[data-v-5610c8db]:before{content:"\e6cf"}.uniui-wallet[data-v-5610c8db]:before{content:"\e6b1"}.uniui-settings-filled[data-v-5610c8db]:before{content:"\e6ce"}.uniui-auth-filled[data-v-5610c8db]:before{content:"\e6cc"}.uniui-shop-filled[data-v-5610c8db]:before{content:"\e6cd"}.uniui-staff-filled[data-v-5610c8db]:before{content:"\e6cb"}.uniui-vip-filled[data-v-5610c8db]:before{content:"\e6c6"}.uniui-plus-filled[data-v-5610c8db]:before{content:"\e6c7"}.uniui-folder-add-filled[data-v-5610c8db]:before{content:"\e6c8"}.uniui-color-filled[data-v-5610c8db]:before{content:"\e6c9"}.uniui-tune-filled[data-v-5610c8db]:before{content:"\e6ca"}.uniui-calendar-filled[data-v-5610c8db]:before{content:"\e6c0"}.uniui-notification-filled[data-v-5610c8db]:before{content:"\e6c1"}.uniui-wallet-filled[data-v-5610c8db]:before{content:"\e6c2"}.uniui-medal-filled[data-v-5610c8db]:before{content:"\e6c3"}.uniui-fire-filled[data-v-5610c8db]:before{content:"\e6c5"}.uniui-refreshempty[data-v-5610c8db]:before{content:"\e6bf"}.uniui-location-filled[data-v-5610c8db]:before{content:"\e6af"}.uniui-person-filled[data-v-5610c8db]:before{content:"\e69d"}.uniui-personadd-filled[data-v-5610c8db]:before{content:"\e698"}.uniui-arrowthinleft[data-v-5610c8db]:before{content:"\e6d2"}.uniui-arrowthinup[data-v-5610c8db]:before{content:"\e6d3"}.uniui-arrowthindown[data-v-5610c8db]:before{content:"\e6d4"}.uniui-back[data-v-5610c8db]:before{content:"\e6b9"}.uniui-forward[data-v-5610c8db]:before{content:"\e6ba"}.uniui-arrow-right[data-v-5610c8db]:before{content:"\e6bb"}.uniui-arrow-left[data-v-5610c8db]:before{content:"\e6bc"}.uniui-arrow-up[data-v-5610c8db]:before{content:"\e6bd"}.uniui-arrow-down[data-v-5610c8db]:before{content:"\e6be"}.uniui-arrowthinright[data-v-5610c8db]:before{content:"\e6d1"}.uniui-down[data-v-5610c8db]:before{content:"\e6b8"}.uniui-bottom[data-v-5610c8db]:before{content:"\e6b8"}.uniui-arrowright[data-v-5610c8db]:before{content:"\e6d5"}.uniui-right[data-v-5610c8db]:before{content:"\e6b5"}.uniui-up[data-v-5610c8db]:before{content:"\e6b6"}.uniui-top[data-v-5610c8db]:before{content:"\e6b6"}.uniui-left[data-v-5610c8db]:before{content:"\e6b7"}.uniui-arrowup[data-v-5610c8db]:before{content:"\e6d6"}.uniui-eye[data-v-5610c8db]:before{content:"\e651"}.uniui-eye-filled[data-v-5610c8db]:before{content:"\e66a"}.uniui-eye-slash[data-v-5610c8db]:before{content:"\e6b3"}.uniui-eye-slash-filled[data-v-5610c8db]:before{content:"\e6b4"}.uniui-info-filled[data-v-5610c8db]:before{content:"\e649"}.uniui-reload[data-v-5610c8db]:before{content:"\e6b2"}.uniui-micoff-filled[data-v-5610c8db]:before{content:"\e6b0"}.uniui-map-pin-ellipse[data-v-5610c8db]:before{content:"\e6ac"}.uniui-map-pin[data-v-5610c8db]:before{content:"\e6ad"}.uniui-location[data-v-5610c8db]:before{content:"\e6ae"}.uniui-starhalf[data-v-5610c8db]:before{content:"\e683"}.uniui-star[data-v-5610c8db]:before{content:"\e688"}.uniui-star-filled[data-v-5610c8db]:before{content:"\e68f"}.uniui-calendar[data-v-5610c8db]:before{content:"\e6a0"}.uniui-fire[data-v-5610c8db]:before{content:"\e6a1"}.uniui-medal[data-v-5610c8db]:before{content:"\e6a2"}.uniui-font[data-v-5610c8db]:before{content:"\e6a3"}.uniui-gift[data-v-5610c8db]:before{content:"\e6a4"}.uniui-link[data-v-5610c8db]:before{content:"\e6a5"}.uniui-notification[data-v-5610c8db]:before{content:"\e6a6"}.uniui-staff[data-v-5610c8db]:before{content:"\e6a7"}.uniui-vip[data-v-5610c8db]:before{content:"\e6a8"}.uniui-folder-add[data-v-5610c8db]:before{content:"\e6a9"}.uniui-tune[data-v-5610c8db]:before{content:"\e6aa"}.uniui-auth[data-v-5610c8db]:before{content:"\e6ab"}.uniui-person[data-v-5610c8db]:before{content:"\e699"}.uniui-email-filled[data-v-5610c8db]:before{content:"\e69a"}.uniui-phone-filled[data-v-5610c8db]:before{content:"\e69b"}.uniui-phone[data-v-5610c8db]:before{content:"\e69c"}.uniui-email[data-v-5610c8db]:before{content:"\e69e"}.uniui-personadd[data-v-5610c8db]:before{content:"\e69f"}.uniui-chatboxes-filled[data-v-5610c8db]:before{content:"\e692"}.uniui-contact[data-v-5610c8db]:before{content:"\e693"}.uniui-chatbubble-filled[data-v-5610c8db]:before{content:"\e694"}.uniui-contact-filled[data-v-5610c8db]:before{content:"\e695"}.uniui-chatboxes[data-v-5610c8db]:before{content:"\e696"}.uniui-chatbubble[data-v-5610c8db]:before{content:"\e697"}.uniui-upload-filled[data-v-5610c8db]:before{content:"\e68e"}.uniui-upload[data-v-5610c8db]:before{content:"\e690"}.uniui-weixin[data-v-5610c8db]:before{content:"\e691"}.uniui-compose[data-v-5610c8db]:before{content:"\e67f"}.uniui-qq[data-v-5610c8db]:before{content:"\e680"}.uniui-download-filled[data-v-5610c8db]:before{content:"\e681"}.uniui-pyq[data-v-5610c8db]:before{content:"\e682"}.uniui-sound[data-v-5610c8db]:before{content:"\e684"}.uniui-trash-filled[data-v-5610c8db]:before{content:"\e685"}.uniui-sound-filled[data-v-5610c8db]:before{content:"\e686"}.uniui-trash[data-v-5610c8db]:before{content:"\e687"}.uniui-videocam-filled[data-v-5610c8db]:before{content:"\e689"}.uniui-spinner-cycle[data-v-5610c8db]:before{content:"\e68a"}.uniui-weibo[data-v-5610c8db]:before{content:"\e68b"}.uniui-videocam[data-v-5610c8db]:before{content:"\e68c"}.uniui-download[data-v-5610c8db]:before{content:"\e68d"}.uniui-help[data-v-5610c8db]:before{content:"\e679"}.uniui-navigate-filled[data-v-5610c8db]:before{content:"\e67a"}.uniui-plusempty[data-v-5610c8db]:before{content:"\e67b"}.uniui-smallcircle[data-v-5610c8db]:before{content:"\e67c"}.uniui-minus-filled[data-v-5610c8db]:before{content:"\e67d"}.uniui-micoff[data-v-5610c8db]:before{content:"\e67e"}.uniui-closeempty[data-v-5610c8db]:before{content:"\e66c"}.uniui-clear[data-v-5610c8db]:before{content:"\e66d"}.uniui-navigate[data-v-5610c8db]:before{content:"\e66e"}.uniui-minus[data-v-5610c8db]:before{content:"\e66f"}.uniui-image[data-v-5610c8db]:before{content:"\e670"}.uniui-mic[data-v-5610c8db]:before{content:"\e671"}.uniui-paperplane[data-v-5610c8db]:before{content:"\e672"}.uniui-close[data-v-5610c8db]:before{content:"\e673"}.uniui-help-filled[data-v-5610c8db]:before{content:"\e674"}.uniui-paperplane-filled[data-v-5610c8db]:before{content:"\e675"}.uniui-plus[data-v-5610c8db]:before{content:"\e676"}.uniui-mic-filled[data-v-5610c8db]:before{content:"\e677"}.uniui-image-filled[data-v-5610c8db]:before{content:"\e678"}.uniui-locked-filled[data-v-5610c8db]:before{content:"\e668"}.uniui-info[data-v-5610c8db]:before{content:"\e669"}.uniui-locked[data-v-5610c8db]:before{content:"\e66b"}.uniui-camera-filled[data-v-5610c8db]:before{content:"\e658"}.uniui-chat-filled[data-v-5610c8db]:before{content:"\e659"}.uniui-camera[data-v-5610c8db]:before{content:"\e65a"}.uniui-circle[data-v-5610c8db]:before{content:"\e65b"}.uniui-checkmarkempty[data-v-5610c8db]:before{content:"\e65c"}.uniui-chat[data-v-5610c8db]:before{content:"\e65d"}.uniui-circle-filled[data-v-5610c8db]:before{content:"\e65e"}.uniui-flag[data-v-5610c8db]:before{content:"\e65f"}.uniui-flag-filled[data-v-5610c8db]:before{content:"\e660"}.uniui-gear-filled[data-v-5610c8db]:before{content:"\e661"}.uniui-home[data-v-5610c8db]:before{content:"\e662"}.uniui-home-filled[data-v-5610c8db]:before{content:"\e663"}.uniui-gear[data-v-5610c8db]:before{content:"\e664"}.uniui-smallcircle-filled[data-v-5610c8db]:before{content:"\e665"}.uniui-map-filled[data-v-5610c8db]:before{content:"\e666"}.uniui-map[data-v-5610c8db]:before{content:"\e667"}.uniui-refresh-filled[data-v-5610c8db]:before{content:"\e656"}.uniui-refresh[data-v-5610c8db]:before{content:"\e657"}.uniui-cloud-upload[data-v-5610c8db]:before{content:"\e645"}.uniui-cloud-download-filled[data-v-5610c8db]:before{content:"\e646"}.uniui-cloud-download[data-v-5610c8db]:before{content:"\e647"}.uniui-cloud-upload-filled[data-v-5610c8db]:before{content:"\e648"}.uniui-redo[data-v-5610c8db]:before{content:"\e64a"}.uniui-images-filled[data-v-5610c8db]:before{content:"\e64b"}.uniui-undo-filled[data-v-5610c8db]:before{content:"\e64c"}.uniui-more[data-v-5610c8db]:before{content:"\e64d"}.uniui-more-filled[data-v-5610c8db]:before{content:"\e64e"}.uniui-undo[data-v-5610c8db]:before{content:"\e64f"}.uniui-images[data-v-5610c8db]:before{content:"\e650"}.uniui-paperclip[data-v-5610c8db]:before{content:"\e652"}.uniui-settings[data-v-5610c8db]:before{content:"\e653"}.uniui-search[data-v-5610c8db]:before{content:"\e654"}.uniui-redo-filled[data-v-5610c8db]:before{content:"\e655"}.uniui-list[data-v-5610c8db]:before{content:"\e644"}.uniui-mail-open-filled[data-v-5610c8db]:before{content:"\e63a"}.uniui-hand-down-filled[data-v-5610c8db]:before{content:"\e63c"}.uniui-hand-down[data-v-5610c8db]:before{content:"\e63d"}.uniui-hand-up-filled[data-v-5610c8db]:before{content:"\e63e"}.uniui-hand-up[data-v-5610c8db]:before{content:"\e63f"}.uniui-heart-filled[data-v-5610c8db]:before{content:"\e641"}.uniui-mail-open[data-v-5610c8db]:before{content:"\e643"}.uniui-heart[data-v-5610c8db]:before{content:"\e639"}.uniui-loop[data-v-5610c8db]:before{content:"\e633"}.uniui-pulldown[data-v-5610c8db]:before{content:"\e632"}.uniui-scan[data-v-5610c8db]:before{content:"\e62a"}.uniui-bars[data-v-5610c8db]:before{content:"\e627"}.uniui-checkbox[data-v-5610c8db]:before{content:"\e62b"}.uniui-checkbox-filled[data-v-5610c8db]:before{content:"\e62c"}.uniui-shop[data-v-5610c8db]:before{content:"\e62f"}.uniui-headphones[data-v-5610c8db]:before{content:"\e630"}.uniui-cart[data-v-5610c8db]:before{content:"\e631"}@font-face{font-family:uniicons;src:url(../../assets/uniicons.32e978a5.ttf)}.uni-icons[data-v-5610c8db]{font-family:uniicons;text-decoration:none;text-align:center}.uni-calendar-item__weeks-box[data-v-a5fd30c1]{flex:1;display:flex;flex-direction:column;justify-content:center;align-items:center;margin:1px 0;position:relative}.uni-calendar-item__weeks-box-text[data-v-a5fd30c1]{font-size:14px;font-weight:700;color:#001833}.uni-calendar-item__weeks-box-item[data-v-a5fd30c1]{position:relative;display:flex;flex-direction:column;justify-content:center;align-items:center;width:40px;height:40px}.uni-calendar-item__weeks-box-circle[data-v-a5fd30c1]{position:absolute;top:5px;right:5px;width:8px;height:8px;border-radius:8px;background-color:#dd524d}.uni-calendar-item__weeks-box .uni-calendar-item--disable[data-v-a5fd30c1]{cursor:default}.uni-calendar-item--disable .uni-calendar-item__weeks-box-text-disable[data-v-a5fd30c1]{color:#d1d1d1}.uni-calendar-item--today[data-v-a5fd30c1]{position:absolute;top:10px;right:17%;background-color:#dd524d;width:6px;height:6px;border-radius:50%}.uni-calendar-item--extra[data-v-a5fd30c1]{color:#dd524d;opacity:.8}.uni-calendar-item__weeks-box .uni-calendar-item--checked[data-v-a5fd30c1]{border-radius:50%;box-sizing:border-box;border:3px solid #fff}.uni-calendar-item--multiple .uni-calendar-item--checked-range-text[data-v-a5fd30c1]{color:#333}.uni-calendar-item--multiple[data-v-a5fd30c1]{background-color:#f6f7fc}.uni-calendar-item--multiple .uni-calendar-item--before-checked[data-v-a5fd30c1],.uni-calendar-item--multiple .uni-calendar-item--after-checked[data-v-a5fd30c1]{background-color:#007aff;border-radius:50%;box-sizing:border-box;border:3px solid #F6F7FC}.uni-calendar-item--before-checked .uni-calendar-item--checked-text[data-v-a5fd30c1],.uni-calendar-item--after-checked .uni-calendar-item--checked-text[data-v-a5fd30c1]{color:#fff}.uni-calendar-item--before-checked-x[data-v-a5fd30c1]{border-top-left-radius:50px;border-bottom-left-radius:50px;box-sizing:border-box;background-color:#f6f7fc}.uni-calendar-item--after-checked-x[data-v-a5fd30c1]{border-top-right-radius:50px;border-bottom-right-radius:50px;background-color:#f6f7fc}.uni-datetime-picker-view[data-v-8a3925ff]{height:130px;width:270px;cursor:pointer}.uni-datetime-picker-item[data-v-8a3925ff]{height:50px;line-height:50px;text-align:center;font-size:14px}.uni-datetime-picker-btn[data-v-8a3925ff]{margin-top:60px;display:flex;cursor:pointer;flex-direction:row;justify-content:space-between}.uni-datetime-picker-btn-text[data-v-8a3925ff]{font-size:14px;color:#007aff}.uni-datetime-picker-btn-group[data-v-8a3925ff]{display:flex;flex-direction:row}.uni-datetime-picker-cancel[data-v-8a3925ff]{margin-right:30px}.uni-datetime-picker-mask[data-v-8a3925ff]{position:fixed;bottom:0;top:0;left:0;right:0;background-color:rgba(0,0,0,.4);transition-duration:.3s;z-index:998}.uni-datetime-picker-popup[data-v-8a3925ff]{border-radius:8px;padding:30px;width:270px;background-color:#fff;position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);transition-duration:.3s;z-index:999}.uni-datetime-picker-time[data-v-8a3925ff]{color:gray}.uni-datetime-picker-column[data-v-8a3925ff]{height:50px}.uni-datetime-picker-timebox[data-v-8a3925ff]{border:1px solid #E5E5E5;border-radius:5px;padding:7px 10px;box-sizing:border-box;cursor:pointer}.uni-datetime-picker-timebox-pointer[data-v-8a3925ff]{cursor:pointer}.uni-datetime-picker-disabled[data-v-8a3925ff]{opacity:.4}.uni-datetime-picker-text[data-v-8a3925ff]{font-size:14px;line-height:50px}.uni-datetime-picker-sign[data-v-8a3925ff]{position:absolute;top:53px;color:#999}.sign-left[data-v-8a3925ff]{left:86px}.sign-right[data-v-8a3925ff]{right:86px}.sign-center[data-v-8a3925ff]{left:135px}.uni-datetime-picker__container-box[data-v-8a3925ff]{position:relative;display:flex;align-items:center;justify-content:center;margin-top:40px}.time-hide-second[data-v-8a3925ff]{width:180px}.uni-calendar[data-v-8dc4a3ee]{display:flex;flex-direction:column}.uni-calendar__mask[data-v-8dc4a3ee]{position:fixed;bottom:0;top:0;left:0;right:0;background-color:rgba(0,0,0,.4);transition-property:opacity;transition-duration:.3s;opacity:0;z-index:99}.uni-calendar--mask-show[data-v-8dc4a3ee]{opacity:1}.uni-calendar--fixed[data-v-8dc4a3ee]{position:fixed;bottom:calc(var(--window-bottom));left:0;right:0;transition-property:transform;transition-duration:.3s;transform:translateY(460px);z-index:99}.uni-calendar--ani-show[data-v-8dc4a3ee]{transform:translateY(0)}.uni-calendar__content[data-v-8dc4a3ee]{background-color:#fff}.uni-calendar__content-mobile[data-v-8dc4a3ee]{border-top-left-radius:10px;border-top-right-radius:10px;box-shadow:0 0 5px 3px rgba(0,0,0,.1)}.uni-calendar__header[data-v-8dc4a3ee]{position:relative;display:flex;flex-direction:row;justify-content:center;align-items:center;height:50px}.uni-calendar__header-mobile[data-v-8dc4a3ee]{padding:10px 10px 0}.uni-calendar--fixed-top[data-v-8dc4a3ee]{display:flex;flex-direction:row;justify-content:space-between;border-top-color:rgba(0,0,0,.4);border-top-style:solid;border-top-width:1px}.uni-calendar--fixed-width[data-v-8dc4a3ee]{width:50px}.uni-calendar__backtoday[data-v-8dc4a3ee]{position:absolute;right:0;top:.78125rem;padding:0 5px 0 10px;height:25px;line-height:25px;font-size:12px;border-top-left-radius:25px;border-bottom-left-radius:25px;color:#fff;background-color:#f1f1f1}.uni-calendar__header-text[data-v-8dc4a3ee]{text-align:center;width:100px;font-size:15px;color:#666}.uni-calendar__button-text[data-v-8dc4a3ee]{text-align:center;width:100px;font-size:14px;color:#007aff;letter-spacing:3px}.uni-calendar__header-btn-box[data-v-8dc4a3ee]{display:flex;flex-direction:row;align-items:center;justify-content:center;width:50px;height:50px}.uni-calendar__header-btn[data-v-8dc4a3ee]{width:9px;height:9px;border-left-color:gray;border-left-style:solid;border-left-width:1px;border-top-color:#555;border-top-style:solid;border-top-width:1px}.uni-calendar--left[data-v-8dc4a3ee]{transform:rotate(-45deg)}.uni-calendar--right[data-v-8dc4a3ee]{transform:rotate(135deg)}.uni-calendar__weeks[data-v-8dc4a3ee]{position:relative;display:flex;flex-direction:row}.uni-calendar__weeks-item[data-v-8dc4a3ee]{flex:1}.uni-calendar__weeks-day[data-v-8dc4a3ee]{flex:1;display:flex;flex-direction:column;justify-content:center;align-items:center;height:40px;border-bottom-color:#f5f5f5;border-bottom-style:solid;border-bottom-width:1px}.uni-calendar__weeks-day-text[data-v-8dc4a3ee]{font-size:12px;color:#b2b2b2}.uni-calendar__box[data-v-8dc4a3ee]{position:relative;padding-bottom:7px}.uni-calendar__box-bg[data-v-8dc4a3ee]{display:flex;justify-content:center;align-items:center;position:absolute;top:0;left:0;right:0;bottom:0}.uni-calendar__box-bg-text[data-v-8dc4a3ee]{font-size:200px;font-weight:700;color:#999;opacity:.1;text-align:center;line-height:1}.uni-date-changed[data-v-8dc4a3ee]{padding:0 10px;text-align:center;color:#333;border-top-color:#dcdcdc;border-top-style:solid;border-top-width:1px;flex:1}.uni-date-btn--ok[data-v-8dc4a3ee]{padding:20px 15px}.uni-date-changed--time-start[data-v-8dc4a3ee],.uni-date-changed--time-end[data-v-8dc4a3ee]{display:flex;align-items:center}.uni-date-changed--time-date[data-v-8dc4a3ee]{color:#999;line-height:50px;margin-right:5px}.time-picker-style[data-v-8dc4a3ee]{display:flex;justify-content:center;align-items:center}.mr-10[data-v-8dc4a3ee]{margin-right:10px}.dialog-close[data-v-8dc4a3ee]{position:absolute;top:0;right:0;bottom:0;display:flex;flex-direction:row;align-items:center;padding:0 25px;margin-top:10px}.dialog-close-plus[data-v-8dc4a3ee]{width:16px;height:2px;background-color:#737987;border-radius:2px;transform:rotate(45deg)}.dialog-close-rotate[data-v-8dc4a3ee]{position:absolute;transform:rotate(-45deg)}.uni-datetime-picker--btn[data-v-8dc4a3ee]{border-radius:100px;height:40px;line-height:40px;background-color:#007aff;color:#fff;font-size:16px;letter-spacing:2px}.uni-datetime-picker--btn[data-v-8dc4a3ee]:active{opacity:.7}.uni-date[data-v-17511ee3]{width:100%;flex:1}.uni-date-x[data-v-17511ee3]{display:flex;flex-direction:row;align-items:center;justify-content:center;border-radius:4px;background-color:#fff;color:#666;font-size:14px;flex:1}.uni-date-x .icon-calendar[data-v-17511ee3]{padding-left:3px}.uni-date-x .range-separator[data-v-17511ee3]{height:35px;padding:0 2px;line-height:35px}.uni-date-x--border[data-v-17511ee3]{box-sizing:border-box;border-radius:4px;border:1px solid #e5e5e5}.uni-date-editor--x[data-v-17511ee3]{display:flex;align-items:center;position:relative}.uni-date-editor--x .uni-date__icon-clear[data-v-17511ee3]{padding-right:3px;display:flex;align-items:center}.uni-date__x-input[data-v-17511ee3]{width:auto;height:35px;padding-left:5px;position:relative;flex:1;line-height:35px;font-size:14px;overflow:hidden}.text-center[data-v-17511ee3]{text-align:center}.uni-date__input[data-v-17511ee3]{height:40px;width:100%;line-height:40px;font-size:14px}.uni-date-range__input[data-v-17511ee3]{text-align:center;max-width:142px}.uni-date-picker__container[data-v-17511ee3]{position:relative}.uni-date-mask--pc[data-v-17511ee3]{position:fixed;bottom:0;top:0;left:0;right:0;background-color:rgba(0,0,0,0);transition-duration:.3s;z-index:996}.uni-date-single--x[data-v-17511ee3],.uni-date-range--x[data-v-17511ee3]{background-color:#fff;position:absolute;top:0;z-index:999;border:1px solid #EBEEF5;box-shadow:0 2px 12px rgba(0,0,0,.1);border-radius:4px}.uni-date-editor--x__disabled[data-v-17511ee3]{opacity:.4;cursor:default}.uni-date-editor--logo[data-v-17511ee3]{width:16px;height:16px;vertical-align:middle}.popup-x-header[data-v-17511ee3]{display:flex;flex-direction:row}.popup-x-header--datetime[data-v-17511ee3]{display:flex;flex-direction:row;flex:1}.popup-x-body[data-v-17511ee3]{display:flex}.popup-x-footer[data-v-17511ee3]{padding:0 15px;border-top-color:#f1f1f1;border-top-style:solid;border-top-width:1px;line-height:40px;text-align:right;color:#666}.popup-x-footer uni-text[data-v-17511ee3]:hover{color:#007aff;cursor:pointer;opacity:.8}.popup-x-footer .confirm-text[data-v-17511ee3]{margin-left:20px;color:#007aff}.uni-date-changed[data-v-17511ee3]{text-align:center;color:#333;border-bottom-color:#f1f1f1;border-bottom-style:solid;border-bottom-width:1px}.uni-date-changed--time uni-text[data-v-17511ee3]{height:50px;line-height:50px}.uni-date-changed .uni-date-changed--time[data-v-17511ee3]{flex:1}.uni-date-changed--time-date[data-v-17511ee3]{color:#333;opacity:.6}.mr-50[data-v-17511ee3]{margin-right:50px}.uni-popper__arrow[data-v-17511ee3],.uni-popper__arrow[data-v-17511ee3]:after{position:absolute;display:block;width:0;height:0;border:6px solid transparent;border-top-width:0}.uni-popper__arrow[data-v-17511ee3]{filter:drop-shadow(0 2px 12px rgba(0,0,0,.03));top:-6px;left:10%;margin-right:3px;border-bottom-color:#ebeef5}.uni-popper__arrow[data-v-17511ee3]:after{content:" ";top:1px;margin-left:-6px;border-bottom-color:#fff}.nav[data-v-566e182b]{width:calc(100% - 1.875rem);padding:0 .9375rem;height:var(--bc08538a);background:linear-gradient(270deg,#256fbc,#044d87);font-size:.75rem;color:#fff;position:fixed;top:0;left:0;z-index:99}.place[data-v-566e182b]{height:var(--bc08538a)}.content[data-v-d6ec6b55]{padding-top:var(--5184fac6)}[data-v-d6ec6b55] .uni-drawer{margin-top:var(--5184fac6)}.nav[data-v-d6ec6b55]{width:calc(100% - 1.875rem);padding:0 .9375rem;height:var(--5184fac6);font-size:.75rem;color:#333;position:fixed;top:0;left:0;z-index:99;background-image:url(../../static/my/navbg.png);background-repeat:no-repeat;background-size:23.4375rem 14.3125rem}.nav_box[data-v-d6ec6b55]{position:absolute;bottom:.8125rem;width:calc(100% - 1.875rem)}.weather_calender uni-image[data-v-d6ec6b55]{width:1.125rem;height:1.125rem;margin-right:.25rem}.weather_calender .position[data-v-d6ec6b55]:not(:last-child){position:relative;margin-right:1.875rem}.weather_calender .position[data-v-d6ec6b55]:not(:last-child):after{position:absolute;content:" ";width:.0625rem;height:.625rem;background:#efefef;right:-.9375rem;top:50%;transform:translateY(-50%)}.swiper[data-v-d6ec6b55]{width:100vw;height:12.5rem}.swiper .swiper-item uni-image[data-v-d6ec6b55]{width:100vw;height:12.5rem;background-color:#a8a8a8}.wrapper[data-v-d6ec6b55]{padding:0 .9375rem;transform:translateY(-1.5625rem)}.wrapper .onduty[data-v-d6ec6b55]{background:#fff;box-shadow:0 .0625rem .125rem rgba(0,0,0,.5);border-radius:.5rem;padding:.625rem .75rem .75rem}.wrapper .onduty .title[data-v-d6ec6b55]{font-size:1rem;color:#333;background-size:1.375rem .375rem;background-repeat:no-repeat;background-position:left bottom}.wrapper .onduty .info[data-v-d6ec6b55]{background:#f8f8f8;border-radius:.25rem;text-align:center;width:20.0625rem;margin-top:.71875rem}.wrapper .onduty .info .info_title[data-v-d6ec6b55]{font-size:.75rem;color:#333;padding:.75rem 0;border-bottom:1px solid #EFEFEF}.wrapper .onduty .info .info_title uni-view[data-v-d6ec6b55]{flex:1}.wrapper .onduty .info .data_box[data-v-d6ec6b55]{font-size:.75rem;padding-bottom:.75rem;color:#888}.wrapper .onduty .info .data_box .first[data-v-d6ec6b55]{font-weight:700;color:#333}.wrapper .onduty .info .data_box .data[data-v-d6ec6b55]{margin-top:.71875rem}.wrapper .onduty .info .data_box .data uni-view[data-v-d6ec6b55]{flex:1}.wrapper .more[data-v-d6ec6b55]{font-size:.75rem;color:#999;text-align:right}.wrapper .more uni-image[data-v-d6ec6b55]{width:.3125rem;height:.5625rem}.wrapper .list_wrapper[data-v-d6ec6b55]{background:#fff;box-shadow:0 .0625rem .125rem rgba(0,0,0,.5);border-radius:.5rem;padding:.8125rem .75rem .75rem;position:relative;margin-top:.9375rem;width:20.0625rem}.wrapper .list_wrapper[data-v-d6ec6b55]:after{position:absolute;top:3.125rem;left:0;content:" ";width:100%;height:1px;background-color:#efefef}.wrapper .list_wrapper .zhidu[data-v-d6ec6b55]{font-size:.75rem;color:#666;justify-content:flex-end;padding-top:1.25rem}.wrapper .list_wrapper .zhidu uni-view[data-v-d6ec6b55]{width:3.75rem;height:1.875rem;line-height:1.875rem;text-align:center}.wrapper .list_wrapper .zhidu uni-view[data-v-d6ec6b55]:first-child{margin-right:1.25rem}.wrapper .list_wrapper .zhidu .active[data-v-d6ec6b55]{position:relative;color:#3179d6}.wrapper .list_wrapper .zhidu .active[data-v-d6ec6b55]:after{content:" ";width:3.75rem;height:1.875rem;border-radius:1.875rem;left:50%;top:50%;transform:translate(-50%,-50%);position:absolute;background-color:rgba(49,121,214,.1)}.wrapper .list_wrapper .list_title[data-v-d6ec6b55]{text-align:center;padding-bottom:.90625rem;font-size:1rem;color:#666}.wrapper .list_wrapper .list_title .active[data-v-d6ec6b55]{position:relative;color:#3179d6}.wrapper .list_wrapper .list_title .active[data-v-d6ec6b55]:after{content:" ";width:3.75rem;height:2.1875rem;border-radius:2.1875rem;left:50%;top:50%;transform:translate(-50%,-50%);position:absolute;background-color:rgba(49,121,214,.1)}.wrapper .list_wrapper .list_box[data-v-d6ec6b55]{margin-top:.75rem}.wrapper .list_wrapper .list_box .list[data-v-d6ec6b55]{margin-bottom:.75rem;padding:.9375rem .9375rem 1.09375rem;background:#f8f8f8;border-radius:.25rem}.wrapper .list_wrapper .list_box .list .topic[data-v-d6ec6b55]{font-size:.875rem;color:#333}.wrapper .list_wrapper .list_box .list .time_Box[data-v-d6ec6b55]{font-size:.75rem;color:#888;margin-top:.625rem}.wrapper .list_wrapper .list_box .list .time_Box .time[data-v-d6ec6b55]{margin-right:1.9375rem}.wrapper .list_wrapper .list_box .list .time_Box .look[data-v-d6ec6b55]{position:relative}.wrapper .list_wrapper .list_box .list .time_Box .look[data-v-d6ec6b55]:before{position:absolute;left:-.9375rem;top:50%;transform:translateY(-50%);content:" ";width:.0625rem;height:.625rem;background:#999}.wrapper .list_wrapper .list_box .list .time_Box uni-image[data-v-d6ec6b55]{width:.875rem;height:.6875rem;margin-right:.25rem} diff --git a/unpackage/dist/dev/app-plus/app-service.js b/unpackage/dist/dev/app-plus/app-service.js index 6296445..787d699 100644 --- a/unpackage/dist/dev/app-plus/app-service.js +++ b/unpackage/dist/dev/app-plus/app-service.js @@ -36,6 +36,9 @@ if (uni.restoreGlobal) { const ON_LOAD = "onLoad"; const ON_REACH_BOTTOM = "onReachBottom"; const ON_PULL_DOWN_REFRESH = "onPullDownRefresh"; + function requireNativePlugin(name) { + return weex.requireModule(name); + } function formatAppLog(type, filename, ...args) { if (uni.__log__) { uni.__log__(type, filename, ...args); @@ -371,7 +374,7 @@ if (uni.restoreGlobal) { }); } var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {}; - function getDefaultExportFromCjs(x) { + function getDefaultExportFromCjs$1(x) { return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x; } var base64 = { exports: {} }; @@ -476,7 +479,7 @@ if (uni.restoreGlobal) { })(commonjsGlobal); })(base64, base64.exports); var base64Exports = base64.exports; - const Base64 = /* @__PURE__ */ getDefaultExportFromCjs(base64Exports); + const Base64 = /* @__PURE__ */ getDefaultExportFromCjs$1(base64Exports); var isVue2 = false; function set(target, key, val) { if (Array.isArray(target)) { @@ -6596,7 +6599,7 @@ This will fail in production.`); })); const baseurl2 = "https://36.112.48.190/jeecg-boot"; const store = useStore(); - onShow(() => { + onLoad(() => { cxcDaping(); zhiban(); getlist(); @@ -10317,10 +10320,10 @@ This will fail in production.`); function I(e2) { return e2 && "string" == typeof e2 ? JSON.parse(e2) : e2; } - const S = true, b = "app", A = I(define_process_env_UNI_SECURE_NETWORK_CONFIG_default), P = b, T = I(""), C = I("[]") || []; + const S = true, b = "app", A = I(define_process_env_UNI_SECURE_NETWORK_CONFIG_default), P = b, T = I('{\n "address": [\n "127.0.0.1",\n "10.75.166.174"\n ],\n "debugPort": 9000,\n "initialLaunchType": "local",\n "servePort": 7000,\n "skipFiles": [\n "/**",\n "D:/HBuilderX/plugins/unicloud/**/*.js"\n ]\n}\n'), C = I('[{"provider":"aliyun","spaceName":"szcx-app","spaceId":"mp-a5a4405f-df9a-4c27-b553-dca803accfbc","clientSecret":"vYZ7Nv/mnOB6vUulLJ4B7Q==","endpoint":"https://api.next.bspapp.com"}]') || []; let O = ""; try { - O = "__UNI__F0AFD30"; + O = "__UNI__9F097F0"; } catch (e2) { } let E = {}; @@ -11049,7 +11052,7 @@ This will fail in production.`); return this._cache.getStore(this._cache.keys.loginTypeKey); } } - class tt extends Xe { + let tt$1 = class tt extends Xe { async signIn() { this._cache.updatePersistence("local"); const { anonymousUuidKey: e2, refreshTokenKey: t2 } = this._cache.keys, n2 = this._cache.getStore(e2) || void 0, s2 = this._cache.getStore(t2) || void 0, r2 = await this._request.send("auth.signInAnonymously", { anonymous_uuid: n2, refresh_token: s2 }); @@ -11073,7 +11076,7 @@ This will fail in production.`); _clearAnonymousUUID() { this._cache.removeStore(this._cache.keys.anonymousUuidKey); } - } + }; class nt extends Xe { async signIn(e2) { if ("string" != typeof e2) @@ -11123,7 +11126,7 @@ This will fail in production.`); return this._cache.getStore(this._cache.keys.loginTypeKey); } anonymousAuthProvider() { - return new tt(this.config); + return new tt$1(this.config); } customAuthProvider() { return new nt(this.config); @@ -11135,7 +11138,7 @@ This will fail in production.`); return new rt(this.config); } async signInAnonymously() { - return new tt(this.config).signIn(); + return new tt$1(this.config).signIn(); } async signInWithEmailAndPassword(e2, t2) { return new st(this.config).signIn(e2, t2); @@ -11144,7 +11147,7 @@ This will fail in production.`); return new rt(this.config).signIn(e2, t2); } async linkAndRetrieveDataWithTicket(e2) { - this._anonymousAuthProvider || (this._anonymousAuthProvider = new tt(this.config)), De($e, this._onAnonymousConverted); + this._anonymousAuthProvider || (this._anonymousAuthProvider = new tt$1(this.config)), De($e, this._onAnonymousConverted); return await this._anonymousAuthProvider.linkAndRetrieveDataWithTicket(e2); } async signOut() { @@ -14623,6 +14626,10 @@ ${i3} level: { type: Number, default: 0 + }, + mutiple: { + type: Boolean, + default: false } }, setup(__props) { @@ -14754,6 +14761,7 @@ ${i3} { key: 0, class: vue.normalizeClass(["check-box", { disabled: __props.node.disabled }]), + style: vue.normalizeStyle({ "border-radius": __props.mutiple ? "3px" : "50%" }), onClick: _cache[1] || (_cache[1] = vue.withModifiers(($event) => !__props.node.disabled && vue.unref(nodeClick)(__props.node), ["stop"])) }, [ @@ -14768,8 +14776,8 @@ ${i3} color: __props.node.disabled ? "#333" : "#007aff" }, null, 8, ["color"])) : vue.createCommentVNode("v-if", true) ], - 2 - /* CLASS */ + 6 + /* CLASS, STYLE */ )) : vue.createCommentVNode("v-if", true) ]) ])) : vue.createCommentVNode("v-if", true), @@ -18478,7 +18486,7 @@ ${i3} }); })(dayjs_min); var dayjs_minExports = dayjs_min.exports; - const dayjs = /* @__PURE__ */ getDefaultExportFromCjs(dayjs_minExports); + const dayjs = /* @__PURE__ */ getDefaultExportFromCjs$1(dayjs_minExports); const _sfc_main$5 = { __name: "index", setup(__props) { @@ -18679,6 +18687,9744 @@ ${i3} __definePage("pages/safe/detail", PagesSafeDetail); __definePage("pages/zhiban/index", PagesZhibanIndex); __definePage("pages/task/self", PagesTaskSelf); + var lookup = [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 62, + 0, + 62, + 0, + 63, + 52, + 53, + 54, + 55, + 56, + 57, + 58, + 59, + 60, + 61, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 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, + 0, + 0, + 0, + 0, + 63, + 0, + 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 + ]; + function base64Decode(source, target) { + var sourceLength = source.length; + var paddingLength = source[sourceLength - 2] === "=" ? 2 : source[sourceLength - 1] === "=" ? 1 : 0; + var tmp; + var byteIndex = 0; + var baseLength = sourceLength - paddingLength & 4294967292; + for (var i2 = 0; i2 < baseLength; i2 += 4) { + tmp = lookup[source.charCodeAt(i2)] << 18 | lookup[source.charCodeAt(i2 + 1)] << 12 | lookup[source.charCodeAt(i2 + 2)] << 6 | lookup[source.charCodeAt(i2 + 3)]; + target[byteIndex++] = tmp >> 16 & 255; + target[byteIndex++] = tmp >> 8 & 255; + target[byteIndex++] = tmp & 255; + } + if (paddingLength === 1) { + tmp = lookup[source.charCodeAt(i2)] << 10 | lookup[source.charCodeAt(i2 + 1)] << 4 | lookup[source.charCodeAt(i2 + 2)] >> 2; + target[byteIndex++] = tmp >> 8 & 255; + target[byteIndex++] = tmp & 255; + } + if (paddingLength === 2) { + tmp = lookup[source.charCodeAt(i2)] << 2 | lookup[source.charCodeAt(i2 + 1)] >> 4; + target[byteIndex++] = tmp & 255; + } + } + const $inject_window_crypto = { + getRandomValues(arr) { + if (!(arr instanceof Int8Array || arr instanceof Uint8Array || arr instanceof Int16Array || arr instanceof Uint16Array || arr instanceof Int32Array || arr instanceof Uint32Array || arr instanceof Uint8ClampedArray)) { + throw new Error("Expected an integer array"); + } + if (arr.byteLength > 65536) { + throw new Error("Can only request a maximum of 65536 bytes"); + } + var crypto = requireNativePlugin("DCloud-Crypto"); + base64Decode(crypto.getRandomValues(arr.byteLength), new Uint8Array( + arr.buffer, + arr.byteOffset, + arr.byteLength + )); + return arr; + } + }; + function getDefaultExportFromCjs(x) { + return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x; + } + var gtpushMin = { exports: {} }; + /*! For license information please see gtpush-min.js.LICENSE.txt */ + (function(module, exports) { + (function t2(e2, r2) { + module.exports = r2(); + })(self, () => (() => { + var t2 = { 4736: (t22, e22, r22) => { + t22 = r22.nmd(t22); + var i22; + var n2 = function(t3) { + var e3 = 1e7, r3 = 7, i3 = 9007199254740992, s2 = d2(i3), a2 = "0123456789abcdefghijklmnopqrstuvwxyz"; + var o2 = "function" === typeof BigInt; + function u2(t4, e4, r4, i4) { + if ("undefined" === typeof t4) + return u2[0]; + if ("undefined" !== typeof e4) + return 10 === +e4 && !r4 ? st2(t4) : X2(t4, e4, r4, i4); + return st2(t4); + } + function c2(t4, e4) { + this.value = t4; + this.sign = e4; + this.isSmall = false; + } + c2.prototype = Object.create(u2.prototype); + function l2(t4) { + this.value = t4; + this.sign = t4 < 0; + this.isSmall = true; + } + l2.prototype = Object.create(u2.prototype); + function f2(t4) { + this.value = t4; + } + f2.prototype = Object.create(u2.prototype); + function h2(t4) { + return -i3 < t4 && t4 < i3; + } + function d2(t4) { + if (t4 < 1e7) + return [t4]; + if (t4 < 1e14) + return [t4 % 1e7, Math.floor(t4 / 1e7)]; + return [t4 % 1e7, Math.floor(t4 / 1e7) % 1e7, Math.floor(t4 / 1e14)]; + } + function v2(t4) { + p2(t4); + var r4 = t4.length; + if (r4 < 4 && N2(t4, s2) < 0) + switch (r4) { + case 0: + return 0; + case 1: + return t4[0]; + case 2: + return t4[0] + t4[1] * e3; + default: + return t4[0] + (t4[1] + t4[2] * e3) * e3; + } + return t4; + } + function p2(t4) { + var e4 = t4.length; + while (0 === t4[--e4]) + ; + t4.length = e4 + 1; + } + function g2(t4) { + var e4 = new Array(t4); + var r4 = -1; + while (++r4 < t4) + e4[r4] = 0; + return e4; + } + function y2(t4) { + if (t4 > 0) + return Math.floor(t4); + return Math.ceil(t4); + } + function m2(t4, r4) { + var i4 = t4.length, n22 = r4.length, s22 = new Array(i4), a22 = 0, o22 = e3, u22, c22; + for (c22 = 0; c22 < n22; c22++) { + u22 = t4[c22] + r4[c22] + a22; + a22 = u22 >= o22 ? 1 : 0; + s22[c22] = u22 - a22 * o22; + } + while (c22 < i4) { + u22 = t4[c22] + a22; + a22 = u22 === o22 ? 1 : 0; + s22[c22++] = u22 - a22 * o22; + } + if (a22 > 0) + s22.push(a22); + return s22; + } + function w2(t4, e4) { + if (t4.length >= e4.length) + return m2(t4, e4); + return m2(e4, t4); + } + function S2(t4, r4) { + var i4 = t4.length, n22 = new Array(i4), s22 = e3, a22, o22; + for (o22 = 0; o22 < i4; o22++) { + a22 = t4[o22] - s22 + r4; + r4 = Math.floor(a22 / s22); + n22[o22] = a22 - r4 * s22; + r4 += 1; + } + while (r4 > 0) { + n22[o22++] = r4 % s22; + r4 = Math.floor(r4 / s22); + } + return n22; + } + c2.prototype.add = function(t4) { + var e4 = st2(t4); + if (this.sign !== e4.sign) + return this.subtract(e4.negate()); + var r4 = this.value, i4 = e4.value; + if (e4.isSmall) + return new c2(S2(r4, Math.abs(i4)), this.sign); + return new c2(w2(r4, i4), this.sign); + }; + c2.prototype.plus = c2.prototype.add; + l2.prototype.add = function(t4) { + var e4 = st2(t4); + var r4 = this.value; + if (r4 < 0 !== e4.sign) + return this.subtract(e4.negate()); + var i4 = e4.value; + if (e4.isSmall) { + if (h2(r4 + i4)) + return new l2(r4 + i4); + i4 = d2(Math.abs(i4)); + } + return new c2(S2(i4, Math.abs(r4)), r4 < 0); + }; + l2.prototype.plus = l2.prototype.add; + f2.prototype.add = function(t4) { + return new f2(this.value + st2(t4).value); + }; + f2.prototype.plus = f2.prototype.add; + function _2(t4, r4) { + var i4 = t4.length, n22 = r4.length, s22 = new Array(i4), a22 = 0, o22 = e3, u22, c22; + for (u22 = 0; u22 < n22; u22++) { + c22 = t4[u22] - a22 - r4[u22]; + if (c22 < 0) { + c22 += o22; + a22 = 1; + } else + a22 = 0; + s22[u22] = c22; + } + for (u22 = n22; u22 < i4; u22++) { + c22 = t4[u22] - a22; + if (c22 < 0) + c22 += o22; + else { + s22[u22++] = c22; + break; + } + s22[u22] = c22; + } + for (; u22 < i4; u22++) + s22[u22] = t4[u22]; + p2(s22); + return s22; + } + function b2(t4, e4, r4) { + var i4; + if (N2(t4, e4) >= 0) + i4 = _2(t4, e4); + else { + i4 = _2(e4, t4); + r4 = !r4; + } + i4 = v2(i4); + if ("number" === typeof i4) { + if (r4) + i4 = -i4; + return new l2(i4); + } + return new c2(i4, r4); + } + function E2(t4, r4, i4) { + var n22 = t4.length, s22 = new Array(n22), a22 = -r4, o22 = e3, u22, f22; + for (u22 = 0; u22 < n22; u22++) { + f22 = t4[u22] + a22; + a22 = Math.floor(f22 / o22); + f22 %= o22; + s22[u22] = f22 < 0 ? f22 + o22 : f22; + } + s22 = v2(s22); + if ("number" === typeof s22) { + if (i4) + s22 = -s22; + return new l2(s22); + } + return new c2(s22, i4); + } + c2.prototype.subtract = function(t4) { + var e4 = st2(t4); + if (this.sign !== e4.sign) + return this.add(e4.negate()); + var r4 = this.value, i4 = e4.value; + if (e4.isSmall) + return E2(r4, Math.abs(i4), this.sign); + return b2(r4, i4, this.sign); + }; + c2.prototype.minus = c2.prototype.subtract; + l2.prototype.subtract = function(t4) { + var e4 = st2(t4); + var r4 = this.value; + if (r4 < 0 !== e4.sign) + return this.add(e4.negate()); + var i4 = e4.value; + if (e4.isSmall) + return new l2(r4 - i4); + return E2(i4, Math.abs(r4), r4 >= 0); + }; + l2.prototype.minus = l2.prototype.subtract; + f2.prototype.subtract = function(t4) { + return new f2(this.value - st2(t4).value); + }; + f2.prototype.minus = f2.prototype.subtract; + c2.prototype.negate = function() { + return new c2(this.value, !this.sign); + }; + l2.prototype.negate = function() { + var t4 = this.sign; + var e4 = new l2(-this.value); + e4.sign = !t4; + return e4; + }; + f2.prototype.negate = function() { + return new f2(-this.value); + }; + c2.prototype.abs = function() { + return new c2(this.value, false); + }; + l2.prototype.abs = function() { + return new l2(Math.abs(this.value)); + }; + f2.prototype.abs = function() { + return new f2(this.value >= 0 ? this.value : -this.value); + }; + function D2(t4, r4) { + var i4 = t4.length, n22 = r4.length, s22 = i4 + n22, a22 = g2(s22), o22 = e3, u22, c22, l22, f22, h22; + for (l22 = 0; l22 < i4; ++l22) { + f22 = t4[l22]; + for (var d22 = 0; d22 < n22; ++d22) { + h22 = r4[d22]; + u22 = f22 * h22 + a22[l22 + d22]; + c22 = Math.floor(u22 / o22); + a22[l22 + d22] = u22 - c22 * o22; + a22[l22 + d22 + 1] += c22; + } + } + p2(a22); + return a22; + } + function M2(t4, r4) { + var i4 = t4.length, n22 = new Array(i4), s22 = e3, a22 = 0, o22, u22; + for (u22 = 0; u22 < i4; u22++) { + o22 = t4[u22] * r4 + a22; + a22 = Math.floor(o22 / s22); + n22[u22] = o22 - a22 * s22; + } + while (a22 > 0) { + n22[u22++] = a22 % s22; + a22 = Math.floor(a22 / s22); + } + return n22; + } + function T2(t4, e4) { + var r4 = []; + while (e4-- > 0) + r4.push(0); + return r4.concat(t4); + } + function I2(t4, e4) { + var r4 = Math.max(t4.length, e4.length); + if (r4 <= 30) + return D2(t4, e4); + r4 = Math.ceil(r4 / 2); + var i4 = t4.slice(r4), n22 = t4.slice(0, r4), s22 = e4.slice(r4), a22 = e4.slice(0, r4); + var o22 = I2(n22, a22), u22 = I2(i4, s22), c22 = I2(w2(n22, i4), w2(a22, s22)); + var l22 = w2(w2(o22, T2(_2(_2(c22, o22), u22), r4)), T2(u22, 2 * r4)); + p2(l22); + return l22; + } + function A2(t4, e4) { + return -0.012 * t4 - 0.012 * e4 + 15e-6 * t4 * e4 > 0; + } + c2.prototype.multiply = function(t4) { + var r4 = st2(t4), i4 = this.value, n22 = r4.value, s22 = this.sign !== r4.sign, a22; + if (r4.isSmall) { + if (0 === n22) + return u2[0]; + if (1 === n22) + return this; + if (-1 === n22) + return this.negate(); + a22 = Math.abs(n22); + if (a22 < e3) + return new c2(M2(i4, a22), s22); + n22 = d2(a22); + } + if (A2(i4.length, n22.length)) + return new c2(I2(i4, n22), s22); + return new c2(D2(i4, n22), s22); + }; + c2.prototype.times = c2.prototype.multiply; + function x(t4, r4, i4) { + if (t4 < e3) + return new c2(M2(r4, t4), i4); + return new c2(D2(r4, d2(t4)), i4); + } + l2.prototype._multiplyBySmall = function(t4) { + if (h2(t4.value * this.value)) + return new l2(t4.value * this.value); + return x(Math.abs(t4.value), d2(Math.abs(this.value)), this.sign !== t4.sign); + }; + c2.prototype._multiplyBySmall = function(t4) { + if (0 === t4.value) + return u2[0]; + if (1 === t4.value) + return this; + if (-1 === t4.value) + return this.negate(); + return x(Math.abs(t4.value), this.value, this.sign !== t4.sign); + }; + l2.prototype.multiply = function(t4) { + return st2(t4)._multiplyBySmall(this); + }; + l2.prototype.times = l2.prototype.multiply; + f2.prototype.multiply = function(t4) { + return new f2(this.value * st2(t4).value); + }; + f2.prototype.times = f2.prototype.multiply; + function R2(t4) { + var r4 = t4.length, i4 = g2(r4 + r4), n22 = e3, s22, a22, o22, u22, c22; + for (o22 = 0; o22 < r4; o22++) { + u22 = t4[o22]; + a22 = 0 - u22 * u22; + for (var l22 = o22; l22 < r4; l22++) { + c22 = t4[l22]; + s22 = 2 * (u22 * c22) + i4[o22 + l22] + a22; + a22 = Math.floor(s22 / n22); + i4[o22 + l22] = s22 - a22 * n22; + } + i4[o22 + r4] = a22; + } + p2(i4); + return i4; + } + c2.prototype.square = function() { + return new c2(R2(this.value), false); + }; + l2.prototype.square = function() { + var t4 = this.value * this.value; + if (h2(t4)) + return new l2(t4); + return new c2(R2(d2(Math.abs(this.value))), false); + }; + f2.prototype.square = function(t4) { + return new f2(this.value * this.value); + }; + function B2(t4, r4) { + var i4 = t4.length, n22 = r4.length, s22 = e3, a22 = g2(r4.length), o22 = r4[n22 - 1], u22 = Math.ceil(s22 / (2 * o22)), c22 = M2(t4, u22), l22 = M2(r4, u22), f22, h22, d22, p22, y22, m22, w22; + if (c22.length <= i4) + c22.push(0); + l22.push(0); + o22 = l22[n22 - 1]; + for (h22 = i4 - n22; h22 >= 0; h22--) { + f22 = s22 - 1; + if (c22[h22 + n22] !== o22) + f22 = Math.floor((c22[h22 + n22] * s22 + c22[h22 + n22 - 1]) / o22); + d22 = 0; + p22 = 0; + m22 = l22.length; + for (y22 = 0; y22 < m22; y22++) { + d22 += f22 * l22[y22]; + w22 = Math.floor(d22 / s22); + p22 += c22[h22 + y22] - (d22 - w22 * s22); + d22 = w22; + if (p22 < 0) { + c22[h22 + y22] = p22 + s22; + p22 = -1; + } else { + c22[h22 + y22] = p22; + p22 = 0; + } + } + while (0 !== p22) { + f22 -= 1; + d22 = 0; + for (y22 = 0; y22 < m22; y22++) { + d22 += c22[h22 + y22] - s22 + l22[y22]; + if (d22 < 0) { + c22[h22 + y22] = d22 + s22; + d22 = 0; + } else { + c22[h22 + y22] = d22; + d22 = 1; + } + } + p22 += d22; + } + a22[h22] = f22; + } + c22 = k(c22, u22)[0]; + return [v2(a22), v2(c22)]; + } + function O2(t4, r4) { + var i4 = t4.length, n22 = r4.length, s22 = [], a22 = [], o22 = e3, u22, c22, l22, f22, h22; + while (i4) { + a22.unshift(t4[--i4]); + p2(a22); + if (N2(a22, r4) < 0) { + s22.push(0); + continue; + } + c22 = a22.length; + l22 = a22[c22 - 1] * o22 + a22[c22 - 2]; + f22 = r4[n22 - 1] * o22 + r4[n22 - 2]; + if (c22 > n22) + l22 = (l22 + 1) * o22; + u22 = Math.ceil(l22 / f22); + do { + h22 = M2(r4, u22); + if (N2(h22, a22) <= 0) + break; + u22--; + } while (u22); + s22.push(u22); + a22 = _2(a22, h22); + } + s22.reverse(); + return [v2(s22), v2(a22)]; + } + function k(t4, r4) { + var i4 = t4.length, n22 = g2(i4), s22 = e3, a22, o22, u22, c22; + u22 = 0; + for (a22 = i4 - 1; a22 >= 0; --a22) { + c22 = u22 * s22 + t4[a22]; + o22 = y2(c22 / r4); + u22 = c22 - o22 * r4; + n22[a22] = 0 | o22; + } + return [n22, 0 | u22]; + } + function C2(t4, r4) { + var i4, n22 = st2(r4); + if (o2) + return [new f2(t4.value / n22.value), new f2(t4.value % n22.value)]; + var s22 = t4.value, a22 = n22.value; + var h22; + if (0 === a22) + throw new Error("Cannot divide by zero"); + if (t4.isSmall) { + if (n22.isSmall) + return [new l2(y2(s22 / a22)), new l2(s22 % a22)]; + return [u2[0], t4]; + } + if (n22.isSmall) { + if (1 === a22) + return [t4, u2[0]]; + if (-1 == a22) + return [t4.negate(), u2[0]]; + var p22 = Math.abs(a22); + if (p22 < e3) { + i4 = k(s22, p22); + h22 = v2(i4[0]); + var g22 = i4[1]; + if (t4.sign) + g22 = -g22; + if ("number" === typeof h22) { + if (t4.sign !== n22.sign) + h22 = -h22; + return [new l2(h22), new l2(g22)]; + } + return [new c2(h22, t4.sign !== n22.sign), new l2(g22)]; + } + a22 = d2(p22); + } + var m22 = N2(s22, a22); + if (-1 === m22) + return [u2[0], t4]; + if (0 === m22) + return [u2[t4.sign === n22.sign ? 1 : -1], u2[0]]; + if (s22.length + a22.length <= 200) + i4 = B2(s22, a22); + else + i4 = O2(s22, a22); + h22 = i4[0]; + var w22 = t4.sign !== n22.sign, S22 = i4[1], _22 = t4.sign; + if ("number" === typeof h22) { + if (w22) + h22 = -h22; + h22 = new l2(h22); + } else + h22 = new c2(h22, w22); + if ("number" === typeof S22) { + if (_22) + S22 = -S22; + S22 = new l2(S22); + } else + S22 = new c2(S22, _22); + return [h22, S22]; + } + c2.prototype.divmod = function(t4) { + var e4 = C2(this, t4); + return { quotient: e4[0], remainder: e4[1] }; + }; + f2.prototype.divmod = l2.prototype.divmod = c2.prototype.divmod; + c2.prototype.divide = function(t4) { + return C2(this, t4)[0]; + }; + f2.prototype.over = f2.prototype.divide = function(t4) { + return new f2(this.value / st2(t4).value); + }; + l2.prototype.over = l2.prototype.divide = c2.prototype.over = c2.prototype.divide; + c2.prototype.mod = function(t4) { + return C2(this, t4)[1]; + }; + f2.prototype.mod = f2.prototype.remainder = function(t4) { + return new f2(this.value % st2(t4).value); + }; + l2.prototype.remainder = l2.prototype.mod = c2.prototype.remainder = c2.prototype.mod; + c2.prototype.pow = function(t4) { + var e4 = st2(t4), r4 = this.value, i4 = e4.value, n22, s22, a22; + if (0 === i4) + return u2[1]; + if (0 === r4) + return u2[0]; + if (1 === r4) + return u2[1]; + if (-1 === r4) + return e4.isEven() ? u2[1] : u2[-1]; + if (e4.sign) + return u2[0]; + if (!e4.isSmall) + throw new Error("The exponent " + e4.toString() + " is too large."); + if (this.isSmall) { + if (h2(n22 = Math.pow(r4, i4))) + return new l2(y2(n22)); + } + s22 = this; + a22 = u2[1]; + while (true) { + if (i4 & true) { + a22 = a22.times(s22); + --i4; + } + if (0 === i4) + break; + i4 /= 2; + s22 = s22.square(); + } + return a22; + }; + l2.prototype.pow = c2.prototype.pow; + f2.prototype.pow = function(t4) { + var e4 = st2(t4); + var r4 = this.value, i4 = e4.value; + var n22 = BigInt(0), s22 = BigInt(1), a22 = BigInt(2); + if (i4 === n22) + return u2[1]; + if (r4 === n22) + return u2[0]; + if (r4 === s22) + return u2[1]; + if (r4 === BigInt(-1)) + return e4.isEven() ? u2[1] : u2[-1]; + if (e4.isNegative()) + return new f2(n22); + var o22 = this; + var c22 = u2[1]; + while (true) { + if ((i4 & s22) === s22) { + c22 = c22.times(o22); + --i4; + } + if (i4 === n22) + break; + i4 /= a22; + o22 = o22.square(); + } + return c22; + }; + c2.prototype.modPow = function(t4, e4) { + t4 = st2(t4); + e4 = st2(e4); + if (e4.isZero()) + throw new Error("Cannot take modPow with modulus 0"); + var r4 = u2[1], i4 = this.mod(e4); + if (t4.isNegative()) { + t4 = t4.multiply(u2[-1]); + i4 = i4.modInv(e4); + } + while (t4.isPositive()) { + if (i4.isZero()) + return u2[0]; + if (t4.isOdd()) + r4 = r4.multiply(i4).mod(e4); + t4 = t4.divide(2); + i4 = i4.square().mod(e4); + } + return r4; + }; + f2.prototype.modPow = l2.prototype.modPow = c2.prototype.modPow; + function N2(t4, e4) { + if (t4.length !== e4.length) + return t4.length > e4.length ? 1 : -1; + for (var r4 = t4.length - 1; r4 >= 0; r4--) + if (t4[r4] !== e4[r4]) + return t4[r4] > e4[r4] ? 1 : -1; + return 0; + } + c2.prototype.compareAbs = function(t4) { + var e4 = st2(t4), r4 = this.value, i4 = e4.value; + if (e4.isSmall) + return 1; + return N2(r4, i4); + }; + l2.prototype.compareAbs = function(t4) { + var e4 = st2(t4), r4 = Math.abs(this.value), i4 = e4.value; + if (e4.isSmall) { + i4 = Math.abs(i4); + return r4 === i4 ? 0 : r4 > i4 ? 1 : -1; + } + return -1; + }; + f2.prototype.compareAbs = function(t4) { + var e4 = this.value; + var r4 = st2(t4).value; + e4 = e4 >= 0 ? e4 : -e4; + r4 = r4 >= 0 ? r4 : -r4; + return e4 === r4 ? 0 : e4 > r4 ? 1 : -1; + }; + c2.prototype.compare = function(t4) { + if (t4 === 1 / 0) + return -1; + if (t4 === -1 / 0) + return 1; + var e4 = st2(t4), r4 = this.value, i4 = e4.value; + if (this.sign !== e4.sign) + return e4.sign ? 1 : -1; + if (e4.isSmall) + return this.sign ? -1 : 1; + return N2(r4, i4) * (this.sign ? -1 : 1); + }; + c2.prototype.compareTo = c2.prototype.compare; + l2.prototype.compare = function(t4) { + if (t4 === 1 / 0) + return -1; + if (t4 === -1 / 0) + return 1; + var e4 = st2(t4), r4 = this.value, i4 = e4.value; + if (e4.isSmall) + return r4 == i4 ? 0 : r4 > i4 ? 1 : -1; + if (r4 < 0 !== e4.sign) + return r4 < 0 ? -1 : 1; + return r4 < 0 ? 1 : -1; + }; + l2.prototype.compareTo = l2.prototype.compare; + f2.prototype.compare = function(t4) { + if (t4 === 1 / 0) + return -1; + if (t4 === -1 / 0) + return 1; + var e4 = this.value; + var r4 = st2(t4).value; + return e4 === r4 ? 0 : e4 > r4 ? 1 : -1; + }; + f2.prototype.compareTo = f2.prototype.compare; + c2.prototype.equals = function(t4) { + return 0 === this.compare(t4); + }; + f2.prototype.eq = f2.prototype.equals = l2.prototype.eq = l2.prototype.equals = c2.prototype.eq = c2.prototype.equals; + c2.prototype.notEquals = function(t4) { + return 0 !== this.compare(t4); + }; + f2.prototype.neq = f2.prototype.notEquals = l2.prototype.neq = l2.prototype.notEquals = c2.prototype.neq = c2.prototype.notEquals; + c2.prototype.greater = function(t4) { + return this.compare(t4) > 0; + }; + f2.prototype.gt = f2.prototype.greater = l2.prototype.gt = l2.prototype.greater = c2.prototype.gt = c2.prototype.greater; + c2.prototype.lesser = function(t4) { + return this.compare(t4) < 0; + }; + f2.prototype.lt = f2.prototype.lesser = l2.prototype.lt = l2.prototype.lesser = c2.prototype.lt = c2.prototype.lesser; + c2.prototype.greaterOrEquals = function(t4) { + return this.compare(t4) >= 0; + }; + f2.prototype.geq = f2.prototype.greaterOrEquals = l2.prototype.geq = l2.prototype.greaterOrEquals = c2.prototype.geq = c2.prototype.greaterOrEquals; + c2.prototype.lesserOrEquals = function(t4) { + return this.compare(t4) <= 0; + }; + f2.prototype.leq = f2.prototype.lesserOrEquals = l2.prototype.leq = l2.prototype.lesserOrEquals = c2.prototype.leq = c2.prototype.lesserOrEquals; + c2.prototype.isEven = function() { + return 0 === (1 & this.value[0]); + }; + l2.prototype.isEven = function() { + return 0 === (1 & this.value); + }; + f2.prototype.isEven = function() { + return (this.value & BigInt(1)) === BigInt(0); + }; + c2.prototype.isOdd = function() { + return 1 === (1 & this.value[0]); + }; + l2.prototype.isOdd = function() { + return 1 === (1 & this.value); + }; + f2.prototype.isOdd = function() { + return (this.value & BigInt(1)) === BigInt(1); + }; + c2.prototype.isPositive = function() { + return !this.sign; + }; + l2.prototype.isPositive = function() { + return this.value > 0; + }; + f2.prototype.isPositive = l2.prototype.isPositive; + c2.prototype.isNegative = function() { + return this.sign; + }; + l2.prototype.isNegative = function() { + return this.value < 0; + }; + f2.prototype.isNegative = l2.prototype.isNegative; + c2.prototype.isUnit = function() { + return false; + }; + l2.prototype.isUnit = function() { + return 1 === Math.abs(this.value); + }; + f2.prototype.isUnit = function() { + return this.abs().value === BigInt(1); + }; + c2.prototype.isZero = function() { + return false; + }; + l2.prototype.isZero = function() { + return 0 === this.value; + }; + f2.prototype.isZero = function() { + return this.value === BigInt(0); + }; + c2.prototype.isDivisibleBy = function(t4) { + var e4 = st2(t4); + if (e4.isZero()) + return false; + if (e4.isUnit()) + return true; + if (0 === e4.compareAbs(2)) + return this.isEven(); + return this.mod(e4).isZero(); + }; + f2.prototype.isDivisibleBy = l2.prototype.isDivisibleBy = c2.prototype.isDivisibleBy; + function P2(t4) { + var e4 = t4.abs(); + if (e4.isUnit()) + return false; + if (e4.equals(2) || e4.equals(3) || e4.equals(5)) + return true; + if (e4.isEven() || e4.isDivisibleBy(3) || e4.isDivisibleBy(5)) + return false; + if (e4.lesser(49)) + return true; + } + function V2(t4, e4) { + var r4 = t4.prev(), i4 = r4, s22 = 0, a22, u22, c22; + while (i4.isEven()) + i4 = i4.divide(2), s22++; + t: + for (u22 = 0; u22 < e4.length; u22++) { + if (t4.lesser(e4[u22])) + continue; + c22 = n2(e4[u22]).modPow(i4, t4); + if (c22.isUnit() || c22.equals(r4)) + continue; + for (a22 = s22 - 1; 0 != a22; a22--) { + c22 = c22.square().mod(t4); + if (c22.isUnit()) + return false; + if (c22.equals(r4)) + continue t; + } + return false; + } + return true; + } + c2.prototype.isPrime = function(e4) { + var r4 = P2(this); + if (r4 !== t3) + return r4; + var i4 = this.abs(); + var s22 = i4.bitLength(); + if (s22 <= 64) + return V2(i4, [2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37]); + var a22 = Math.log(2) * s22.toJSNumber(); + var o22 = Math.ceil(true === e4 ? 2 * Math.pow(a22, 2) : a22); + for (var u22 = [], c22 = 0; c22 < o22; c22++) + u22.push(n2(c22 + 2)); + return V2(i4, u22); + }; + f2.prototype.isPrime = l2.prototype.isPrime = c2.prototype.isPrime; + c2.prototype.isProbablePrime = function(e4, r4) { + var i4 = P2(this); + if (i4 !== t3) + return i4; + var s22 = this.abs(); + var a22 = e4 === t3 ? 5 : e4; + for (var o22 = [], u22 = 0; u22 < a22; u22++) + o22.push(n2.randBetween(2, s22.minus(2), r4)); + return V2(s22, o22); + }; + f2.prototype.isProbablePrime = l2.prototype.isProbablePrime = c2.prototype.isProbablePrime; + c2.prototype.modInv = function(t4) { + var e4 = n2.zero, r4 = n2.one, i4 = st2(t4), s22 = this.abs(), a22, o22, u22; + while (!s22.isZero()) { + a22 = i4.divide(s22); + o22 = e4; + u22 = i4; + e4 = r4; + i4 = s22; + r4 = o22.subtract(a22.multiply(r4)); + s22 = u22.subtract(a22.multiply(s22)); + } + if (!i4.isUnit()) + throw new Error(this.toString() + " and " + t4.toString() + " are not co-prime"); + if (-1 === e4.compare(0)) + e4 = e4.add(t4); + if (this.isNegative()) + return e4.negate(); + return e4; + }; + f2.prototype.modInv = l2.prototype.modInv = c2.prototype.modInv; + c2.prototype.next = function() { + var t4 = this.value; + if (this.sign) + return E2(t4, 1, this.sign); + return new c2(S2(t4, 1), this.sign); + }; + l2.prototype.next = function() { + var t4 = this.value; + if (t4 + 1 < i3) + return new l2(t4 + 1); + return new c2(s2, false); + }; + f2.prototype.next = function() { + return new f2(this.value + BigInt(1)); + }; + c2.prototype.prev = function() { + var t4 = this.value; + if (this.sign) + return new c2(S2(t4, 1), true); + return E2(t4, 1, this.sign); + }; + l2.prototype.prev = function() { + var t4 = this.value; + if (t4 - 1 > -i3) + return new l2(t4 - 1); + return new c2(s2, true); + }; + f2.prototype.prev = function() { + return new f2(this.value - BigInt(1)); + }; + var L2 = [1]; + while (2 * L2[L2.length - 1] <= e3) + L2.push(2 * L2[L2.length - 1]); + var H2 = L2.length, U2 = L2[H2 - 1]; + function K2(t4) { + return Math.abs(t4) <= e3; + } + c2.prototype.shiftLeft = function(t4) { + var e4 = st2(t4).toJSNumber(); + if (!K2(e4)) + throw new Error(String(e4) + " is too large for shifting."); + if (e4 < 0) + return this.shiftRight(-e4); + var r4 = this; + if (r4.isZero()) + return r4; + while (e4 >= H2) { + r4 = r4.multiply(U2); + e4 -= H2 - 1; + } + return r4.multiply(L2[e4]); + }; + f2.prototype.shiftLeft = l2.prototype.shiftLeft = c2.prototype.shiftLeft; + c2.prototype.shiftRight = function(t4) { + var e4; + var r4 = st2(t4).toJSNumber(); + if (!K2(r4)) + throw new Error(String(r4) + " is too large for shifting."); + if (r4 < 0) + return this.shiftLeft(-r4); + var i4 = this; + while (r4 >= H2) { + if (i4.isZero() || i4.isNegative() && i4.isUnit()) + return i4; + e4 = C2(i4, U2); + i4 = e4[1].isNegative() ? e4[0].prev() : e4[0]; + r4 -= H2 - 1; + } + e4 = C2(i4, L2[r4]); + return e4[1].isNegative() ? e4[0].prev() : e4[0]; + }; + f2.prototype.shiftRight = l2.prototype.shiftRight = c2.prototype.shiftRight; + function j2(t4, e4, r4) { + e4 = st2(e4); + var i4 = t4.isNegative(), s22 = e4.isNegative(); + var a22 = i4 ? t4.not() : t4, o22 = s22 ? e4.not() : e4; + var u22 = 0, c22 = 0; + var l22 = null, f22 = null; + var h22 = []; + while (!a22.isZero() || !o22.isZero()) { + l22 = C2(a22, U2); + u22 = l22[1].toJSNumber(); + if (i4) + u22 = U2 - 1 - u22; + f22 = C2(o22, U2); + c22 = f22[1].toJSNumber(); + if (s22) + c22 = U2 - 1 - c22; + a22 = l22[0]; + o22 = f22[0]; + h22.push(r4(u22, c22)); + } + var d22 = 0 !== r4(i4 ? 1 : 0, s22 ? 1 : 0) ? n2(-1) : n2(0); + for (var v22 = h22.length - 1; v22 >= 0; v22 -= 1) + d22 = d22.multiply(U2).add(n2(h22[v22])); + return d22; + } + c2.prototype.not = function() { + return this.negate().prev(); + }; + f2.prototype.not = l2.prototype.not = c2.prototype.not; + c2.prototype.and = function(t4) { + return j2(this, t4, function(t5, e4) { + return t5 & e4; + }); + }; + f2.prototype.and = l2.prototype.and = c2.prototype.and; + c2.prototype.or = function(t4) { + return j2(this, t4, function(t5, e4) { + return t5 | e4; + }); + }; + f2.prototype.or = l2.prototype.or = c2.prototype.or; + c2.prototype.xor = function(t4) { + return j2(this, t4, function(t5, e4) { + return t5 ^ e4; + }); + }; + f2.prototype.xor = l2.prototype.xor = c2.prototype.xor; + var q2 = 1 << 30, F2 = (e3 & -e3) * (e3 & -e3) | q2; + function z2(t4) { + var r4 = t4.value, i4 = "number" === typeof r4 ? r4 | q2 : "bigint" === typeof r4 ? r4 | BigInt(q2) : r4[0] + r4[1] * e3 | F2; + return i4 & -i4; + } + function G2(t4, e4) { + if (e4.compareTo(t4) <= 0) { + var r4 = G2(t4, e4.square(e4)); + var i4 = r4.p; + var s22 = r4.e; + var a22 = i4.multiply(e4); + return a22.compareTo(t4) <= 0 ? { p: a22, e: 2 * s22 + 1 } : { p: i4, e: 2 * s22 }; + } + return { p: n2(1), e: 0 }; + } + c2.prototype.bitLength = function() { + var t4 = this; + if (t4.compareTo(n2(0)) < 0) + t4 = t4.negate().subtract(n2(1)); + if (0 === t4.compareTo(n2(0))) + return n2(0); + return n2(G2(t4, n2(2)).e).add(n2(1)); + }; + f2.prototype.bitLength = l2.prototype.bitLength = c2.prototype.bitLength; + function Y2(t4, e4) { + t4 = st2(t4); + e4 = st2(e4); + return t4.greater(e4) ? t4 : e4; + } + function W2(t4, e4) { + t4 = st2(t4); + e4 = st2(e4); + return t4.lesser(e4) ? t4 : e4; + } + function J2(t4, e4) { + t4 = st2(t4).abs(); + e4 = st2(e4).abs(); + if (t4.equals(e4)) + return t4; + if (t4.isZero()) + return e4; + if (e4.isZero()) + return t4; + var r4 = u2[1], i4, n22; + while (t4.isEven() && e4.isEven()) { + i4 = W2(z2(t4), z2(e4)); + t4 = t4.divide(i4); + e4 = e4.divide(i4); + r4 = r4.multiply(i4); + } + while (t4.isEven()) + t4 = t4.divide(z2(t4)); + do { + while (e4.isEven()) + e4 = e4.divide(z2(e4)); + if (t4.greater(e4)) { + n22 = e4; + e4 = t4; + t4 = n22; + } + e4 = e4.subtract(t4); + } while (!e4.isZero()); + return r4.isUnit() ? t4 : t4.multiply(r4); + } + function Z2(t4, e4) { + t4 = st2(t4).abs(); + e4 = st2(e4).abs(); + return t4.divide(J2(t4, e4)).multiply(e4); + } + function $2(t4, r4, i4) { + t4 = st2(t4); + r4 = st2(r4); + var n22 = i4 || Math.random; + var s22 = W2(t4, r4), a22 = Y2(t4, r4); + var o22 = a22.subtract(s22).add(1); + if (o22.isSmall) + return s22.add(Math.floor(n22() * o22)); + var c22 = et2(o22, e3).value; + var l22 = [], f22 = true; + for (var h22 = 0; h22 < c22.length; h22++) { + var d22 = f22 ? c22[h22] + (h22 + 1 < c22.length ? c22[h22 + 1] / e3 : 0) : e3; + var v22 = y2(n22() * d22); + l22.push(v22); + if (v22 < c22[h22]) + f22 = false; + } + return s22.add(u2.fromArray(l22, e3, false)); + } + var X2 = function(t4, e4, r4, i4) { + r4 = r4 || a2; + t4 = String(t4); + if (!i4) { + t4 = t4.toLowerCase(); + r4 = r4.toLowerCase(); + } + var n22 = t4.length; + var s22; + var o22 = Math.abs(e4); + var u22 = {}; + for (s22 = 0; s22 < r4.length; s22++) + u22[r4[s22]] = s22; + for (s22 = 0; s22 < n22; s22++) { + var c22 = t4[s22]; + if ("-" === c22) + continue; + if (c22 in u22) { + if (u22[c22] >= o22) { + if ("1" === c22 && 1 === o22) + continue; + throw new Error(c22 + " is not a valid digit in base " + e4 + "."); + } + } + } + e4 = st2(e4); + var l22 = []; + var f22 = "-" === t4[0]; + for (s22 = f22 ? 1 : 0; s22 < t4.length; s22++) { + var c22 = t4[s22]; + if (c22 in u22) + l22.push(st2(u22[c22])); + else if ("<" === c22) { + var h22 = s22; + do { + s22++; + } while (">" !== t4[s22] && s22 < t4.length); + l22.push(st2(t4.slice(h22 + 1, s22))); + } else + throw new Error(c22 + " is not a valid character"); + } + return Q2(l22, e4, f22); + }; + function Q2(t4, e4, r4) { + var i4 = u2[0], n22 = u2[1], s22; + for (s22 = t4.length - 1; s22 >= 0; s22--) { + i4 = i4.add(t4[s22].times(n22)); + n22 = n22.times(e4); + } + return r4 ? i4.negate() : i4; + } + function tt2(t4, e4) { + e4 = e4 || a2; + if (t4 < e4.length) + return e4[t4]; + return "<" + t4 + ">"; + } + function et2(t4, e4) { + e4 = n2(e4); + if (e4.isZero()) { + if (t4.isZero()) + return { value: [0], isNegative: false }; + throw new Error("Cannot convert nonzero numbers to base 0."); + } + if (e4.equals(-1)) { + if (t4.isZero()) + return { value: [0], isNegative: false }; + if (t4.isNegative()) + return { value: [].concat.apply([], Array.apply(null, Array(-t4.toJSNumber())).map(Array.prototype.valueOf, [1, 0])), isNegative: false }; + var r4 = Array.apply(null, Array(t4.toJSNumber() - 1)).map(Array.prototype.valueOf, [0, 1]); + r4.unshift([1]); + return { value: [].concat.apply([], r4), isNegative: false }; + } + var i4 = false; + if (t4.isNegative() && e4.isPositive()) { + i4 = true; + t4 = t4.abs(); + } + if (e4.isUnit()) { + if (t4.isZero()) + return { value: [0], isNegative: false }; + return { value: Array.apply(null, Array(t4.toJSNumber())).map(Number.prototype.valueOf, 1), isNegative: i4 }; + } + var s22 = []; + var a22 = t4, o22; + while (a22.isNegative() || a22.compareAbs(e4) >= 0) { + o22 = a22.divmod(e4); + a22 = o22.quotient; + var u22 = o22.remainder; + if (u22.isNegative()) { + u22 = e4.minus(u22).abs(); + a22 = a22.next(); + } + s22.push(u22.toJSNumber()); + } + s22.push(a22.toJSNumber()); + return { value: s22.reverse(), isNegative: i4 }; + } + function rt2(t4, e4, r4) { + var i4 = et2(t4, e4); + return (i4.isNegative ? "-" : "") + i4.value.map(function(t5) { + return tt2(t5, r4); + }).join(""); + } + c2.prototype.toArray = function(t4) { + return et2(this, t4); + }; + l2.prototype.toArray = function(t4) { + return et2(this, t4); + }; + f2.prototype.toArray = function(t4) { + return et2(this, t4); + }; + c2.prototype.toString = function(e4, r4) { + if (e4 === t3) + e4 = 10; + if (10 !== e4) + return rt2(this, e4, r4); + var i4 = this.value, n22 = i4.length, s22 = String(i4[--n22]), a22 = "0000000", o22; + while (--n22 >= 0) { + o22 = String(i4[n22]); + s22 += a22.slice(o22.length) + o22; + } + var u22 = this.sign ? "-" : ""; + return u22 + s22; + }; + l2.prototype.toString = function(e4, r4) { + if (e4 === t3) + e4 = 10; + if (10 != e4) + return rt2(this, e4, r4); + return String(this.value); + }; + f2.prototype.toString = l2.prototype.toString; + f2.prototype.toJSON = c2.prototype.toJSON = l2.prototype.toJSON = function() { + return this.toString(); + }; + c2.prototype.valueOf = function() { + return parseInt(this.toString(), 10); + }; + c2.prototype.toJSNumber = c2.prototype.valueOf; + l2.prototype.valueOf = function() { + return this.value; + }; + l2.prototype.toJSNumber = l2.prototype.valueOf; + f2.prototype.valueOf = f2.prototype.toJSNumber = function() { + return parseInt(this.toString(), 10); + }; + function it2(t4) { + if (h2(+t4)) { + var e4 = +t4; + if (e4 === y2(e4)) + return o2 ? new f2(BigInt(e4)) : new l2(e4); + throw new Error("Invalid integer: " + t4); + } + var i4 = "-" === t4[0]; + if (i4) + t4 = t4.slice(1); + var n22 = t4.split(/e/i); + if (n22.length > 2) + throw new Error("Invalid integer: " + n22.join("e")); + if (2 === n22.length) { + var s22 = n22[1]; + if ("+" === s22[0]) + s22 = s22.slice(1); + s22 = +s22; + if (s22 !== y2(s22) || !h2(s22)) + throw new Error("Invalid integer: " + s22 + " is not a valid exponent."); + var a22 = n22[0]; + var u22 = a22.indexOf("."); + if (u22 >= 0) { + s22 -= a22.length - u22 - 1; + a22 = a22.slice(0, u22) + a22.slice(u22 + 1); + } + if (s22 < 0) + throw new Error("Cannot include negative exponent part for integers"); + a22 += new Array(s22 + 1).join("0"); + t4 = a22; + } + var d22 = /^([0-9][0-9]*)$/.test(t4); + if (!d22) + throw new Error("Invalid integer: " + t4); + if (o2) + return new f2(BigInt(i4 ? "-" + t4 : t4)); + var v22 = [], g22 = t4.length, m22 = r3, w22 = g22 - m22; + while (g22 > 0) { + v22.push(+t4.slice(w22, g22)); + w22 -= m22; + if (w22 < 0) + w22 = 0; + g22 -= m22; + } + p2(v22); + return new c2(v22, i4); + } + function nt2(t4) { + if (o2) + return new f2(BigInt(t4)); + if (h2(t4)) { + if (t4 !== y2(t4)) + throw new Error(t4 + " is not an integer."); + return new l2(t4); + } + return it2(t4.toString()); + } + function st2(t4) { + if ("number" === typeof t4) + return nt2(t4); + if ("string" === typeof t4) + return it2(t4); + if ("bigint" === typeof t4) + return new f2(t4); + return t4; + } + for (var at2 = 0; at2 < 1e3; at2++) { + u2[at2] = st2(at2); + if (at2 > 0) + u2[-at2] = st2(-at2); + } + u2.one = u2[1]; + u2.zero = u2[0]; + u2.minusOne = u2[-1]; + u2.max = Y2; + u2.min = W2; + u2.gcd = J2; + u2.lcm = Z2; + u2.isInstance = function(t4) { + return t4 instanceof c2 || t4 instanceof l2 || t4 instanceof f2; + }; + u2.randBetween = $2; + u2.fromArray = function(t4, e4, r4) { + return Q2(t4.map(st2), st2(e4 || 10), r4); + }; + return u2; + }(); + if (t22.hasOwnProperty("exports")) + t22.exports = n2; + i22 = (function() { + return n2; + }).call(e22, r22, e22, t22), void 0 !== i22 && (t22.exports = i22); + }, 452: function(t22, e22, r22) { + (function(i22, n2, s2) { + t22.exports = n2(r22(8249), r22(8269), r22(8214), r22(888), r22(5109)); + })(this, function(t3) { + (function() { + var e3 = t3; + var r3 = e3.lib; + var i22 = r3.BlockCipher; + var n2 = e3.algo; + var s2 = []; + var a2 = []; + var o2 = []; + var u2 = []; + var c2 = []; + var l2 = []; + var f2 = []; + var h2 = []; + var d2 = []; + var v2 = []; + (function() { + var t4 = []; + for (var e4 = 0; e4 < 256; e4++) + if (e4 < 128) + t4[e4] = e4 << 1; + else + t4[e4] = e4 << 1 ^ 283; + var r4 = 0; + var i3 = 0; + for (var e4 = 0; e4 < 256; e4++) { + var n22 = i3 ^ i3 << 1 ^ i3 << 2 ^ i3 << 3 ^ i3 << 4; + n22 = n22 >>> 8 ^ 255 & n22 ^ 99; + s2[r4] = n22; + a2[n22] = r4; + var p22 = t4[r4]; + var g22 = t4[p22]; + var y2 = t4[g22]; + var m2 = 257 * t4[n22] ^ 16843008 * n22; + o2[r4] = m2 << 24 | m2 >>> 8; + u2[r4] = m2 << 16 | m2 >>> 16; + c2[r4] = m2 << 8 | m2 >>> 24; + l2[r4] = m2; + var m2 = 16843009 * y2 ^ 65537 * g22 ^ 257 * p22 ^ 16843008 * r4; + f2[n22] = m2 << 24 | m2 >>> 8; + h2[n22] = m2 << 16 | m2 >>> 16; + d2[n22] = m2 << 8 | m2 >>> 24; + v2[n22] = m2; + if (!r4) + r4 = i3 = 1; + else { + r4 = p22 ^ t4[t4[t4[y2 ^ p22]]]; + i3 ^= t4[t4[i3]]; + } + } + })(); + var p2 = [0, 1, 2, 4, 8, 16, 32, 64, 128, 27, 54]; + var g2 = n2.AES = i22.extend({ _doReset: function() { + var t4; + if (this._nRounds && this._keyPriorReset === this._key) + return; + var e4 = this._keyPriorReset = this._key; + var r4 = e4.words; + var i3 = e4.sigBytes / 4; + var n22 = this._nRounds = i3 + 6; + var a22 = 4 * (n22 + 1); + var o22 = this._keySchedule = []; + for (var u22 = 0; u22 < a22; u22++) + if (u22 < i3) + o22[u22] = r4[u22]; + else { + t4 = o22[u22 - 1]; + if (!(u22 % i3)) { + t4 = t4 << 8 | t4 >>> 24; + t4 = s2[t4 >>> 24] << 24 | s2[t4 >>> 16 & 255] << 16 | s2[t4 >>> 8 & 255] << 8 | s2[255 & t4]; + t4 ^= p2[u22 / i3 | 0] << 24; + } else if (i3 > 6 && u22 % i3 == 4) + t4 = s2[t4 >>> 24] << 24 | s2[t4 >>> 16 & 255] << 16 | s2[t4 >>> 8 & 255] << 8 | s2[255 & t4]; + o22[u22] = o22[u22 - i3] ^ t4; + } + var c22 = this._invKeySchedule = []; + for (var l22 = 0; l22 < a22; l22++) { + var u22 = a22 - l22; + if (l22 % 4) + var t4 = o22[u22]; + else + var t4 = o22[u22 - 4]; + if (l22 < 4 || u22 <= 4) + c22[l22] = t4; + else + c22[l22] = f2[s2[t4 >>> 24]] ^ h2[s2[t4 >>> 16 & 255]] ^ d2[s2[t4 >>> 8 & 255]] ^ v2[s2[255 & t4]]; + } + }, encryptBlock: function(t4, e4) { + this._doCryptBlock(t4, e4, this._keySchedule, o2, u2, c2, l2, s2); + }, decryptBlock: function(t4, e4) { + var r4 = t4[e4 + 1]; + t4[e4 + 1] = t4[e4 + 3]; + t4[e4 + 3] = r4; + this._doCryptBlock(t4, e4, this._invKeySchedule, f2, h2, d2, v2, a2); + var r4 = t4[e4 + 1]; + t4[e4 + 1] = t4[e4 + 3]; + t4[e4 + 3] = r4; + }, _doCryptBlock: function(t4, e4, r4, i3, n22, s22, a22, o22) { + var u22 = this._nRounds; + var c22 = t4[e4] ^ r4[0]; + var l22 = t4[e4 + 1] ^ r4[1]; + var f22 = t4[e4 + 2] ^ r4[2]; + var h22 = t4[e4 + 3] ^ r4[3]; + var d22 = 4; + for (var v22 = 1; v22 < u22; v22++) { + var p22 = i3[c22 >>> 24] ^ n22[l22 >>> 16 & 255] ^ s22[f22 >>> 8 & 255] ^ a22[255 & h22] ^ r4[d22++]; + var g22 = i3[l22 >>> 24] ^ n22[f22 >>> 16 & 255] ^ s22[h22 >>> 8 & 255] ^ a22[255 & c22] ^ r4[d22++]; + var y2 = i3[f22 >>> 24] ^ n22[h22 >>> 16 & 255] ^ s22[c22 >>> 8 & 255] ^ a22[255 & l22] ^ r4[d22++]; + var m2 = i3[h22 >>> 24] ^ n22[c22 >>> 16 & 255] ^ s22[l22 >>> 8 & 255] ^ a22[255 & f22] ^ r4[d22++]; + c22 = p22; + l22 = g22; + f22 = y2; + h22 = m2; + } + var p22 = (o22[c22 >>> 24] << 24 | o22[l22 >>> 16 & 255] << 16 | o22[f22 >>> 8 & 255] << 8 | o22[255 & h22]) ^ r4[d22++]; + var g22 = (o22[l22 >>> 24] << 24 | o22[f22 >>> 16 & 255] << 16 | o22[h22 >>> 8 & 255] << 8 | o22[255 & c22]) ^ r4[d22++]; + var y2 = (o22[f22 >>> 24] << 24 | o22[h22 >>> 16 & 255] << 16 | o22[c22 >>> 8 & 255] << 8 | o22[255 & l22]) ^ r4[d22++]; + var m2 = (o22[h22 >>> 24] << 24 | o22[c22 >>> 16 & 255] << 16 | o22[l22 >>> 8 & 255] << 8 | o22[255 & f22]) ^ r4[d22++]; + t4[e4] = p22; + t4[e4 + 1] = g22; + t4[e4 + 2] = y2; + t4[e4 + 3] = m2; + }, keySize: 256 / 32 }); + e3.AES = i22._createHelper(g2); + })(); + return t3.AES; + }); + }, 5109: function(t22, e22, r22) { + (function(i22, n2, s2) { + t22.exports = n2(r22(8249), r22(888)); + })(this, function(t3) { + t3.lib.Cipher || function(e3) { + var r3 = t3; + var i22 = r3.lib; + var n2 = i22.Base; + var s2 = i22.WordArray; + var a2 = i22.BufferedBlockAlgorithm; + var o2 = r3.enc; + o2.Utf8; + var c2 = o2.Base64; + var l2 = r3.algo; + var f2 = l2.EvpKDF; + var h2 = i22.Cipher = a2.extend({ cfg: n2.extend(), createEncryptor: function(t4, e4) { + return this.create(this._ENC_XFORM_MODE, t4, e4); + }, createDecryptor: function(t4, e4) { + return this.create(this._DEC_XFORM_MODE, t4, e4); + }, init: function(t4, e4, r4) { + this.cfg = this.cfg.extend(r4); + this._xformMode = t4; + this._key = e4; + this.reset(); + }, reset: function() { + a2.reset.call(this); + this._doReset(); + }, process: function(t4) { + this._append(t4); + return this._process(); + }, finalize: function(t4) { + if (t4) + this._append(t4); + var e4 = this._doFinalize(); + return e4; + }, keySize: 128 / 32, ivSize: 128 / 32, _ENC_XFORM_MODE: 1, _DEC_XFORM_MODE: 2, _createHelper: /* @__PURE__ */ function() { + function t4(t5) { + if ("string" == typeof t5) + return T2; + else + return E2; + } + return function(e4) { + return { encrypt: function(r4, i3, n22) { + return t4(i3).encrypt(e4, r4, i3, n22); + }, decrypt: function(r4, i3, n22) { + return t4(i3).decrypt(e4, r4, i3, n22); + } }; + }; + }() }); + i22.StreamCipher = h2.extend({ _doFinalize: function() { + var t4 = this._process(true); + return t4; + }, blockSize: 1 }); + var v2 = r3.mode = {}; + var p2 = i22.BlockCipherMode = n2.extend({ createEncryptor: function(t4, e4) { + return this.Encryptor.create(t4, e4); + }, createDecryptor: function(t4, e4) { + return this.Decryptor.create(t4, e4); + }, init: function(t4, e4) { + this._cipher = t4; + this._iv = e4; + } }); + var g2 = v2.CBC = function() { + var t4 = p2.extend(); + t4.Encryptor = t4.extend({ processBlock: function(t5, e4) { + var i3 = this._cipher; + var n22 = i3.blockSize; + r4.call(this, t5, e4, n22); + i3.encryptBlock(t5, e4); + this._prevBlock = t5.slice(e4, e4 + n22); + } }); + t4.Decryptor = t4.extend({ processBlock: function(t5, e4) { + var i3 = this._cipher; + var n22 = i3.blockSize; + var s22 = t5.slice(e4, e4 + n22); + i3.decryptBlock(t5, e4); + r4.call(this, t5, e4, n22); + this._prevBlock = s22; + } }); + function r4(t5, r5, i3) { + var n22; + var s22 = this._iv; + if (s22) { + n22 = s22; + this._iv = e3; + } else + n22 = this._prevBlock; + for (var a22 = 0; a22 < i3; a22++) + t5[r5 + a22] ^= n22[a22]; + } + return t4; + }(); + var y2 = r3.pad = {}; + var m2 = y2.Pkcs7 = { pad: function(t4, e4) { + var r4 = 4 * e4; + var i3 = r4 - t4.sigBytes % r4; + var n22 = i3 << 24 | i3 << 16 | i3 << 8 | i3; + var a22 = []; + for (var o22 = 0; o22 < i3; o22 += 4) + a22.push(n22); + var u2 = s2.create(a22, i3); + t4.concat(u2); + }, unpad: function(t4) { + var e4 = 255 & t4.words[t4.sigBytes - 1 >>> 2]; + t4.sigBytes -= e4; + } }; + i22.BlockCipher = h2.extend({ cfg: h2.cfg.extend({ mode: g2, padding: m2 }), reset: function() { + var t4; + h2.reset.call(this); + var e4 = this.cfg; + var r4 = e4.iv; + var i3 = e4.mode; + if (this._xformMode == this._ENC_XFORM_MODE) + t4 = i3.createEncryptor; + else { + t4 = i3.createDecryptor; + this._minBufferSize = 1; + } + if (this._mode && this._mode.__creator == t4) + this._mode.init(this, r4 && r4.words); + else { + this._mode = t4.call(i3, this, r4 && r4.words); + this._mode.__creator = t4; + } + }, _doProcessBlock: function(t4, e4) { + this._mode.processBlock(t4, e4); + }, _doFinalize: function() { + var t4; + var e4 = this.cfg.padding; + if (this._xformMode == this._ENC_XFORM_MODE) { + e4.pad(this._data, this.blockSize); + t4 = this._process(true); + } else { + t4 = this._process(true); + e4.unpad(t4); + } + return t4; + }, blockSize: 128 / 32 }); + var S2 = i22.CipherParams = n2.extend({ init: function(t4) { + this.mixIn(t4); + }, toString: function(t4) { + return (t4 || this.formatter).stringify(this); + } }); + var _2 = r3.format = {}; + var b2 = _2.OpenSSL = { stringify: function(t4) { + var e4; + var r4 = t4.ciphertext; + var i3 = t4.salt; + if (i3) + e4 = s2.create([1398893684, 1701076831]).concat(i3).concat(r4); + else + e4 = r4; + return e4.toString(c2); + }, parse: function(t4) { + var e4; + var r4 = c2.parse(t4); + var i3 = r4.words; + if (1398893684 == i3[0] && 1701076831 == i3[1]) { + e4 = s2.create(i3.slice(2, 4)); + i3.splice(0, 4); + r4.sigBytes -= 16; + } + return S2.create({ ciphertext: r4, salt: e4 }); + } }; + var E2 = i22.SerializableCipher = n2.extend({ cfg: n2.extend({ format: b2 }), encrypt: function(t4, e4, r4, i3) { + i3 = this.cfg.extend(i3); + var n22 = t4.createEncryptor(r4, i3); + var s22 = n22.finalize(e4); + var a22 = n22.cfg; + return S2.create({ ciphertext: s22, key: r4, iv: a22.iv, algorithm: t4, mode: a22.mode, padding: a22.padding, blockSize: t4.blockSize, formatter: i3.format }); + }, decrypt: function(t4, e4, r4, i3) { + i3 = this.cfg.extend(i3); + e4 = this._parse(e4, i3.format); + var n22 = t4.createDecryptor(r4, i3).finalize(e4.ciphertext); + return n22; + }, _parse: function(t4, e4) { + if ("string" == typeof t4) + return e4.parse(t4, this); + else + return t4; + } }); + var D2 = r3.kdf = {}; + var M2 = D2.OpenSSL = { execute: function(t4, e4, r4, i3) { + if (!i3) + i3 = s2.random(64 / 8); + var n22 = f2.create({ keySize: e4 + r4 }).compute(t4, i3); + var a22 = s2.create(n22.words.slice(e4), 4 * r4); + n22.sigBytes = 4 * e4; + return S2.create({ key: n22, iv: a22, salt: i3 }); + } }; + var T2 = i22.PasswordBasedCipher = E2.extend({ cfg: E2.cfg.extend({ kdf: M2 }), encrypt: function(t4, e4, r4, i3) { + i3 = this.cfg.extend(i3); + var n22 = i3.kdf.execute(r4, t4.keySize, t4.ivSize); + i3.iv = n22.iv; + var s22 = E2.encrypt.call(this, t4, e4, n22.key, i3); + s22.mixIn(n22); + return s22; + }, decrypt: function(t4, e4, r4, i3) { + i3 = this.cfg.extend(i3); + e4 = this._parse(e4, i3.format); + var n22 = i3.kdf.execute(r4, t4.keySize, t4.ivSize, e4.salt); + i3.iv = n22.iv; + var s22 = E2.decrypt.call(this, t4, e4, n22.key, i3); + return s22; + } }); + }(); + }); + }, 8249: function(t22, e22, r22) { + (function(r3, i22) { + t22.exports = i22(); + })(this, function() { + var t3 = t3 || function(t4, e3) { + var i22; + if ("undefined" !== typeof window && $inject_window_crypto) + i22 = $inject_window_crypto; + if ("undefined" !== typeof self && self.crypto) + i22 = self.crypto; + if ("undefined" !== typeof globalThis && globalThis.crypto) + i22 = globalThis.crypto; + if (!i22 && "undefined" !== typeof window && window.msCrypto) + i22 = window.msCrypto; + if (!i22 && "undefined" !== typeof r22.g && r22.g.crypto) + i22 = r22.g.crypto; + if (!i22 && true) + try { + i22 = r22(2480); + } catch (t5) { + } + var n2 = function() { + if (i22) { + if ("function" === typeof i22.getRandomValues) + try { + return i22.getRandomValues(new Uint32Array(1))[0]; + } catch (t5) { + } + if ("function" === typeof i22.randomBytes) + try { + return i22.randomBytes(4).readInt32LE(); + } catch (t5) { + } + } + throw new Error("Native crypto module could not be used to get secure random number."); + }; + var s2 = Object.create || /* @__PURE__ */ function() { + function t5() { + } + return function(e4) { + var r3; + t5.prototype = e4; + r3 = new t5(); + t5.prototype = null; + return r3; + }; + }(); + var a2 = {}; + var o2 = a2.lib = {}; + var u2 = o2.Base = /* @__PURE__ */ function() { + return { extend: function(t5) { + var e4 = s2(this); + if (t5) + e4.mixIn(t5); + if (!e4.hasOwnProperty("init") || this.init === e4.init) + e4.init = function() { + e4.$super.init.apply(this, arguments); + }; + e4.init.prototype = e4; + e4.$super = this; + return e4; + }, create: function() { + var t5 = this.extend(); + t5.init.apply(t5, arguments); + return t5; + }, init: function() { + }, mixIn: function(t5) { + for (var e4 in t5) + if (t5.hasOwnProperty(e4)) + this[e4] = t5[e4]; + if (t5.hasOwnProperty("toString")) + this.toString = t5.toString; + }, clone: function() { + return this.init.prototype.extend(this); + } }; + }(); + var c2 = o2.WordArray = u2.extend({ init: function(t5, r3) { + t5 = this.words = t5 || []; + if (r3 != e3) + this.sigBytes = r3; + else + this.sigBytes = 4 * t5.length; + }, toString: function(t5) { + return (t5 || f2).stringify(this); + }, concat: function(t5) { + var e4 = this.words; + var r3 = t5.words; + var i3 = this.sigBytes; + var n22 = t5.sigBytes; + this.clamp(); + if (i3 % 4) + for (var s22 = 0; s22 < n22; s22++) { + var a22 = r3[s22 >>> 2] >>> 24 - s22 % 4 * 8 & 255; + e4[i3 + s22 >>> 2] |= a22 << 24 - (i3 + s22) % 4 * 8; + } + else + for (var o22 = 0; o22 < n22; o22 += 4) + e4[i3 + o22 >>> 2] = r3[o22 >>> 2]; + this.sigBytes += n22; + return this; + }, clamp: function() { + var e4 = this.words; + var r3 = this.sigBytes; + e4[r3 >>> 2] &= 4294967295 << 32 - r3 % 4 * 8; + e4.length = t4.ceil(r3 / 4); + }, clone: function() { + var t5 = u2.clone.call(this); + t5.words = this.words.slice(0); + return t5; + }, random: function(t5) { + var e4 = []; + for (var r3 = 0; r3 < t5; r3 += 4) + e4.push(n2()); + return new c2.init(e4, t5); + } }); + var l2 = a2.enc = {}; + var f2 = l2.Hex = { stringify: function(t5) { + var e4 = t5.words; + var r3 = t5.sigBytes; + var i3 = []; + for (var n22 = 0; n22 < r3; n22++) { + var s22 = e4[n22 >>> 2] >>> 24 - n22 % 4 * 8 & 255; + i3.push((s22 >>> 4).toString(16)); + i3.push((15 & s22).toString(16)); + } + return i3.join(""); + }, parse: function(t5) { + var e4 = t5.length; + var r3 = []; + for (var i3 = 0; i3 < e4; i3 += 2) + r3[i3 >>> 3] |= parseInt(t5.substr(i3, 2), 16) << 24 - i3 % 8 * 4; + return new c2.init(r3, e4 / 2); + } }; + var h2 = l2.Latin1 = { stringify: function(t5) { + var e4 = t5.words; + var r3 = t5.sigBytes; + var i3 = []; + for (var n22 = 0; n22 < r3; n22++) { + var s22 = e4[n22 >>> 2] >>> 24 - n22 % 4 * 8 & 255; + i3.push(String.fromCharCode(s22)); + } + return i3.join(""); + }, parse: function(t5) { + var e4 = t5.length; + var r3 = []; + for (var i3 = 0; i3 < e4; i3++) + r3[i3 >>> 2] |= (255 & t5.charCodeAt(i3)) << 24 - i3 % 4 * 8; + return new c2.init(r3, e4); + } }; + var d2 = l2.Utf8 = { stringify: function(t5) { + try { + return decodeURIComponent(escape(h2.stringify(t5))); + } catch (t6) { + throw new Error("Malformed UTF-8 data"); + } + }, parse: function(t5) { + return h2.parse(unescape(encodeURIComponent(t5))); + } }; + var v2 = o2.BufferedBlockAlgorithm = u2.extend({ reset: function() { + this._data = new c2.init(); + this._nDataBytes = 0; + }, _append: function(t5) { + if ("string" == typeof t5) + t5 = d2.parse(t5); + this._data.concat(t5); + this._nDataBytes += t5.sigBytes; + }, _process: function(e4) { + var r3; + var i3 = this._data; + var n22 = i3.words; + var s22 = i3.sigBytes; + var a22 = this.blockSize; + var o22 = 4 * a22; + var u22 = s22 / o22; + if (e4) + u22 = t4.ceil(u22); + else + u22 = t4.max((0 | u22) - this._minBufferSize, 0); + var l22 = u22 * a22; + var f22 = t4.min(4 * l22, s22); + if (l22) { + for (var h22 = 0; h22 < l22; h22 += a22) + this._doProcessBlock(n22, h22); + r3 = n22.splice(0, l22); + i3.sigBytes -= f22; + } + return new c2.init(r3, f22); + }, clone: function() { + var t5 = u2.clone.call(this); + t5._data = this._data.clone(); + return t5; + }, _minBufferSize: 0 }); + o2.Hasher = v2.extend({ cfg: u2.extend(), init: function(t5) { + this.cfg = this.cfg.extend(t5); + this.reset(); + }, reset: function() { + v2.reset.call(this); + this._doReset(); + }, update: function(t5) { + this._append(t5); + this._process(); + return this; + }, finalize: function(t5) { + if (t5) + this._append(t5); + var e4 = this._doFinalize(); + return e4; + }, blockSize: 512 / 32, _createHelper: function(t5) { + return function(e4, r3) { + return new t5.init(r3).finalize(e4); + }; + }, _createHmacHelper: function(t5) { + return function(e4, r3) { + return new g2.HMAC.init(t5, r3).finalize(e4); + }; + } }); + var g2 = a2.algo = {}; + return a2; + }(Math); + return t3; + }); + }, 8269: function(t22, e22, r22) { + (function(i22, n2) { + t22.exports = n2(r22(8249)); + })(this, function(t3) { + (function() { + var e3 = t3; + var r3 = e3.lib; + var i22 = r3.WordArray; + var n2 = e3.enc; + n2.Base64 = { stringify: function(t4) { + var e4 = t4.words; + var r4 = t4.sigBytes; + var i3 = this._map; + t4.clamp(); + var n22 = []; + for (var s2 = 0; s2 < r4; s2 += 3) { + var a22 = e4[s2 >>> 2] >>> 24 - s2 % 4 * 8 & 255; + var o2 = e4[s2 + 1 >>> 2] >>> 24 - (s2 + 1) % 4 * 8 & 255; + var u2 = e4[s2 + 2 >>> 2] >>> 24 - (s2 + 2) % 4 * 8 & 255; + var c2 = a22 << 16 | o2 << 8 | u2; + for (var l2 = 0; l2 < 4 && s2 + 0.75 * l2 < r4; l2++) + n22.push(i3.charAt(c2 >>> 6 * (3 - l2) & 63)); + } + var f2 = i3.charAt(64); + if (f2) + while (n22.length % 4) + n22.push(f2); + return n22.join(""); + }, parse: function(t4) { + var e4 = t4.length; + var r4 = this._map; + var i3 = this._reverseMap; + if (!i3) { + i3 = this._reverseMap = []; + for (var n22 = 0; n22 < r4.length; n22++) + i3[r4.charCodeAt(n22)] = n22; + } + var s2 = r4.charAt(64); + if (s2) { + var o2 = t4.indexOf(s2); + if (-1 !== o2) + e4 = o2; + } + return a2(t4, e4, i3); + }, _map: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=" }; + function a2(t4, e4, r4) { + var n22 = []; + var s2 = 0; + for (var a22 = 0; a22 < e4; a22++) + if (a22 % 4) { + var o2 = r4[t4.charCodeAt(a22 - 1)] << a22 % 4 * 2; + var u2 = r4[t4.charCodeAt(a22)] >>> 6 - a22 % 4 * 2; + var c2 = o2 | u2; + n22[s2 >>> 2] |= c2 << 24 - s2 % 4 * 8; + s2++; + } + return i22.create(n22, s2); + } + })(); + return t3.enc.Base64; + }); + }, 3786: function(t22, e22, r22) { + (function(i22, n2) { + t22.exports = n2(r22(8249)); + })(this, function(t3) { + (function() { + var e3 = t3; + var r3 = e3.lib; + var i22 = r3.WordArray; + var n2 = e3.enc; + n2.Base64url = { stringify: function(t4, e4 = true) { + var r4 = t4.words; + var i3 = t4.sigBytes; + var n22 = e4 ? this._safe_map : this._map; + t4.clamp(); + var s2 = []; + for (var a22 = 0; a22 < i3; a22 += 3) { + var o2 = r4[a22 >>> 2] >>> 24 - a22 % 4 * 8 & 255; + var u2 = r4[a22 + 1 >>> 2] >>> 24 - (a22 + 1) % 4 * 8 & 255; + var c2 = r4[a22 + 2 >>> 2] >>> 24 - (a22 + 2) % 4 * 8 & 255; + var l2 = o2 << 16 | u2 << 8 | c2; + for (var f2 = 0; f2 < 4 && a22 + 0.75 * f2 < i3; f2++) + s2.push(n22.charAt(l2 >>> 6 * (3 - f2) & 63)); + } + var h2 = n22.charAt(64); + if (h2) + while (s2.length % 4) + s2.push(h2); + return s2.join(""); + }, parse: function(t4, e4 = true) { + var r4 = t4.length; + var i3 = e4 ? this._safe_map : this._map; + var n22 = this._reverseMap; + if (!n22) { + n22 = this._reverseMap = []; + for (var s2 = 0; s2 < i3.length; s2++) + n22[i3.charCodeAt(s2)] = s2; + } + var o2 = i3.charAt(64); + if (o2) { + var u2 = t4.indexOf(o2); + if (-1 !== u2) + r4 = u2; + } + return a2(t4, r4, n22); + }, _map: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=", _safe_map: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_" }; + function a2(t4, e4, r4) { + var n22 = []; + var s2 = 0; + for (var a22 = 0; a22 < e4; a22++) + if (a22 % 4) { + var o2 = r4[t4.charCodeAt(a22 - 1)] << a22 % 4 * 2; + var u2 = r4[t4.charCodeAt(a22)] >>> 6 - a22 % 4 * 2; + var c2 = o2 | u2; + n22[s2 >>> 2] |= c2 << 24 - s2 % 4 * 8; + s2++; + } + return i22.create(n22, s2); + } + })(); + return t3.enc.Base64url; + }); + }, 298: function(t22, e22, r22) { + (function(i22, n2) { + t22.exports = n2(r22(8249)); + })(this, function(t3) { + (function() { + var e3 = t3; + var r3 = e3.lib; + var i22 = r3.WordArray; + var n2 = e3.enc; + n2.Utf16 = n2.Utf16BE = { stringify: function(t4) { + var e4 = t4.words; + var r4 = t4.sigBytes; + var i3 = []; + for (var n22 = 0; n22 < r4; n22 += 2) { + var s2 = e4[n22 >>> 2] >>> 16 - n22 % 4 * 8 & 65535; + i3.push(String.fromCharCode(s2)); + } + return i3.join(""); + }, parse: function(t4) { + var e4 = t4.length; + var r4 = []; + for (var n22 = 0; n22 < e4; n22++) + r4[n22 >>> 1] |= t4.charCodeAt(n22) << 16 - n22 % 2 * 16; + return i22.create(r4, 2 * e4); + } }; + n2.Utf16LE = { stringify: function(t4) { + var e4 = t4.words; + var r4 = t4.sigBytes; + var i3 = []; + for (var n22 = 0; n22 < r4; n22 += 2) { + var s2 = a2(e4[n22 >>> 2] >>> 16 - n22 % 4 * 8 & 65535); + i3.push(String.fromCharCode(s2)); + } + return i3.join(""); + }, parse: function(t4) { + var e4 = t4.length; + var r4 = []; + for (var n22 = 0; n22 < e4; n22++) + r4[n22 >>> 1] |= a2(t4.charCodeAt(n22) << 16 - n22 % 2 * 16); + return i22.create(r4, 2 * e4); + } }; + function a2(t4) { + return t4 << 8 & 4278255360 | t4 >>> 8 & 16711935; + } + })(); + return t3.enc.Utf16; + }); + }, 888: function(t22, e22, r22) { + (function(i22, n2, s2) { + t22.exports = n2(r22(8249), r22(2783), r22(9824)); + })(this, function(t3) { + (function() { + var e3 = t3; + var r3 = e3.lib; + var i22 = r3.Base; + var n2 = r3.WordArray; + var s2 = e3.algo; + var a2 = s2.MD5; + var o2 = s2.EvpKDF = i22.extend({ cfg: i22.extend({ keySize: 128 / 32, hasher: a2, iterations: 1 }), init: function(t4) { + this.cfg = this.cfg.extend(t4); + }, compute: function(t4, e4) { + var r4; + var i3 = this.cfg; + var s22 = i3.hasher.create(); + var a22 = n2.create(); + var o22 = a22.words; + var u2 = i3.keySize; + var c2 = i3.iterations; + while (o22.length < u2) { + if (r4) + s22.update(r4); + r4 = s22.update(t4).finalize(e4); + s22.reset(); + for (var l2 = 1; l2 < c2; l2++) { + r4 = s22.finalize(r4); + s22.reset(); + } + a22.concat(r4); + } + a22.sigBytes = 4 * u2; + return a22; + } }); + e3.EvpKDF = function(t4, e4, r4) { + return o2.create(r4).compute(t4, e4); + }; + })(); + return t3.EvpKDF; + }); + }, 2209: function(t22, e22, r22) { + (function(i22, n2, s2) { + t22.exports = n2(r22(8249), r22(5109)); + })(this, function(t3) { + (function(e3) { + var r3 = t3; + var i22 = r3.lib; + var n2 = i22.CipherParams; + var s2 = r3.enc; + var a2 = s2.Hex; + var o2 = r3.format; + o2.Hex = { stringify: function(t4) { + return t4.ciphertext.toString(a2); + }, parse: function(t4) { + var e4 = a2.parse(t4); + return n2.create({ ciphertext: e4 }); + } }; + })(); + return t3.format.Hex; + }); + }, 9824: function(t22, e22, r22) { + (function(i22, n2) { + t22.exports = n2(r22(8249)); + })(this, function(t3) { + (function() { + var e3 = t3; + var r3 = e3.lib; + var i22 = r3.Base; + var n2 = e3.enc; + var s2 = n2.Utf8; + var a2 = e3.algo; + a2.HMAC = i22.extend({ init: function(t4, e4) { + t4 = this._hasher = new t4.init(); + if ("string" == typeof e4) + e4 = s2.parse(e4); + var r4 = t4.blockSize; + var i3 = 4 * r4; + if (e4.sigBytes > i3) + e4 = t4.finalize(e4); + e4.clamp(); + var n22 = this._oKey = e4.clone(); + var a22 = this._iKey = e4.clone(); + var o2 = n22.words; + var u2 = a22.words; + for (var c2 = 0; c2 < r4; c2++) { + o2[c2] ^= 1549556828; + u2[c2] ^= 909522486; + } + n22.sigBytes = a22.sigBytes = i3; + this.reset(); + }, reset: function() { + var t4 = this._hasher; + t4.reset(); + t4.update(this._iKey); + }, update: function(t4) { + this._hasher.update(t4); + return this; + }, finalize: function(t4) { + var e4 = this._hasher; + var r4 = e4.finalize(t4); + e4.reset(); + var i3 = e4.finalize(this._oKey.clone().concat(r4)); + return i3; + } }); + })(); + }); + }, 1354: function(t22, e22, r22) { + (function(i22, n2, s2) { + t22.exports = n2(r22(8249), r22(4938), r22(4433), r22(298), r22(8269), r22(3786), r22(8214), r22(2783), r22(2153), r22(7792), r22(34), r22(7460), r22(3327), r22(706), r22(9824), r22(2112), r22(888), r22(5109), r22(8568), r22(4242), r22(9968), r22(7660), r22(1148), r22(3615), r22(2807), r22(1077), r22(6475), r22(6991), r22(2209), r22(452), r22(4253), r22(1857), r22(4454), r22(3974)); + })(this, function(t3) { + return t3; + }); + }, 4433: function(t22, e22, r22) { + (function(i22, n2) { + t22.exports = n2(r22(8249)); + })(this, function(t3) { + (function() { + if ("function" != typeof ArrayBuffer) + return; + var e3 = t3; + var r3 = e3.lib; + var i22 = r3.WordArray; + var n2 = i22.init; + var s2 = i22.init = function(t4) { + if (t4 instanceof ArrayBuffer) + t4 = new Uint8Array(t4); + if (t4 instanceof Int8Array || "undefined" !== typeof Uint8ClampedArray && t4 instanceof Uint8ClampedArray || t4 instanceof Int16Array || t4 instanceof Uint16Array || t4 instanceof Int32Array || t4 instanceof Uint32Array || t4 instanceof Float32Array || t4 instanceof Float64Array) + t4 = new Uint8Array(t4.buffer, t4.byteOffset, t4.byteLength); + if (t4 instanceof Uint8Array) { + var e4 = t4.byteLength; + var r4 = []; + for (var i3 = 0; i3 < e4; i3++) + r4[i3 >>> 2] |= t4[i3] << 24 - i3 % 4 * 8; + n2.call(this, r4, e4); + } else + n2.apply(this, arguments); + }; + s2.prototype = i22; + })(); + return t3.lib.WordArray; + }); + }, 8214: function(t22, e22, r22) { + (function(i22, n2) { + t22.exports = n2(r22(8249)); + })(this, function(t3) { + (function(e3) { + var r3 = t3; + var i22 = r3.lib; + var n2 = i22.WordArray; + var s2 = i22.Hasher; + var a2 = r3.algo; + var o2 = []; + (function() { + for (var t4 = 0; t4 < 64; t4++) + o2[t4] = 4294967296 * e3.abs(e3.sin(t4 + 1)) | 0; + })(); + var u2 = a2.MD5 = s2.extend({ _doReset: function() { + this._hash = new n2.init([1732584193, 4023233417, 2562383102, 271733878]); + }, _doProcessBlock: function(t4, e4) { + for (var r4 = 0; r4 < 16; r4++) { + var i3 = e4 + r4; + var n22 = t4[i3]; + t4[i3] = 16711935 & (n22 << 8 | n22 >>> 24) | 4278255360 & (n22 << 24 | n22 >>> 8); + } + var s22 = this._hash.words; + var a22 = t4[e4 + 0]; + var u22 = t4[e4 + 1]; + var d2 = t4[e4 + 2]; + var v2 = t4[e4 + 3]; + var p2 = t4[e4 + 4]; + var g2 = t4[e4 + 5]; + var y2 = t4[e4 + 6]; + var m2 = t4[e4 + 7]; + var w2 = t4[e4 + 8]; + var S2 = t4[e4 + 9]; + var _2 = t4[e4 + 10]; + var b2 = t4[e4 + 11]; + var E2 = t4[e4 + 12]; + var D2 = t4[e4 + 13]; + var M2 = t4[e4 + 14]; + var T2 = t4[e4 + 15]; + var I2 = s22[0]; + var A2 = s22[1]; + var x = s22[2]; + var R2 = s22[3]; + I2 = c2(I2, A2, x, R2, a22, 7, o2[0]); + R2 = c2(R2, I2, A2, x, u22, 12, o2[1]); + x = c2(x, R2, I2, A2, d2, 17, o2[2]); + A2 = c2(A2, x, R2, I2, v2, 22, o2[3]); + I2 = c2(I2, A2, x, R2, p2, 7, o2[4]); + R2 = c2(R2, I2, A2, x, g2, 12, o2[5]); + x = c2(x, R2, I2, A2, y2, 17, o2[6]); + A2 = c2(A2, x, R2, I2, m2, 22, o2[7]); + I2 = c2(I2, A2, x, R2, w2, 7, o2[8]); + R2 = c2(R2, I2, A2, x, S2, 12, o2[9]); + x = c2(x, R2, I2, A2, _2, 17, o2[10]); + A2 = c2(A2, x, R2, I2, b2, 22, o2[11]); + I2 = c2(I2, A2, x, R2, E2, 7, o2[12]); + R2 = c2(R2, I2, A2, x, D2, 12, o2[13]); + x = c2(x, R2, I2, A2, M2, 17, o2[14]); + A2 = c2(A2, x, R2, I2, T2, 22, o2[15]); + I2 = l2(I2, A2, x, R2, u22, 5, o2[16]); + R2 = l2(R2, I2, A2, x, y2, 9, o2[17]); + x = l2(x, R2, I2, A2, b2, 14, o2[18]); + A2 = l2(A2, x, R2, I2, a22, 20, o2[19]); + I2 = l2(I2, A2, x, R2, g2, 5, o2[20]); + R2 = l2(R2, I2, A2, x, _2, 9, o2[21]); + x = l2(x, R2, I2, A2, T2, 14, o2[22]); + A2 = l2(A2, x, R2, I2, p2, 20, o2[23]); + I2 = l2(I2, A2, x, R2, S2, 5, o2[24]); + R2 = l2(R2, I2, A2, x, M2, 9, o2[25]); + x = l2(x, R2, I2, A2, v2, 14, o2[26]); + A2 = l2(A2, x, R2, I2, w2, 20, o2[27]); + I2 = l2(I2, A2, x, R2, D2, 5, o2[28]); + R2 = l2(R2, I2, A2, x, d2, 9, o2[29]); + x = l2(x, R2, I2, A2, m2, 14, o2[30]); + A2 = l2(A2, x, R2, I2, E2, 20, o2[31]); + I2 = f2(I2, A2, x, R2, g2, 4, o2[32]); + R2 = f2(R2, I2, A2, x, w2, 11, o2[33]); + x = f2(x, R2, I2, A2, b2, 16, o2[34]); + A2 = f2(A2, x, R2, I2, M2, 23, o2[35]); + I2 = f2(I2, A2, x, R2, u22, 4, o2[36]); + R2 = f2(R2, I2, A2, x, p2, 11, o2[37]); + x = f2(x, R2, I2, A2, m2, 16, o2[38]); + A2 = f2(A2, x, R2, I2, _2, 23, o2[39]); + I2 = f2(I2, A2, x, R2, D2, 4, o2[40]); + R2 = f2(R2, I2, A2, x, a22, 11, o2[41]); + x = f2(x, R2, I2, A2, v2, 16, o2[42]); + A2 = f2(A2, x, R2, I2, y2, 23, o2[43]); + I2 = f2(I2, A2, x, R2, S2, 4, o2[44]); + R2 = f2(R2, I2, A2, x, E2, 11, o2[45]); + x = f2(x, R2, I2, A2, T2, 16, o2[46]); + A2 = f2(A2, x, R2, I2, d2, 23, o2[47]); + I2 = h2(I2, A2, x, R2, a22, 6, o2[48]); + R2 = h2(R2, I2, A2, x, m2, 10, o2[49]); + x = h2(x, R2, I2, A2, M2, 15, o2[50]); + A2 = h2(A2, x, R2, I2, g2, 21, o2[51]); + I2 = h2(I2, A2, x, R2, E2, 6, o2[52]); + R2 = h2(R2, I2, A2, x, v2, 10, o2[53]); + x = h2(x, R2, I2, A2, _2, 15, o2[54]); + A2 = h2(A2, x, R2, I2, u22, 21, o2[55]); + I2 = h2(I2, A2, x, R2, w2, 6, o2[56]); + R2 = h2(R2, I2, A2, x, T2, 10, o2[57]); + x = h2(x, R2, I2, A2, y2, 15, o2[58]); + A2 = h2(A2, x, R2, I2, D2, 21, o2[59]); + I2 = h2(I2, A2, x, R2, p2, 6, o2[60]); + R2 = h2(R2, I2, A2, x, b2, 10, o2[61]); + x = h2(x, R2, I2, A2, d2, 15, o2[62]); + A2 = h2(A2, x, R2, I2, S2, 21, o2[63]); + s22[0] = s22[0] + I2 | 0; + s22[1] = s22[1] + A2 | 0; + s22[2] = s22[2] + x | 0; + s22[3] = s22[3] + R2 | 0; + }, _doFinalize: function() { + var t4 = this._data; + var r4 = t4.words; + var i3 = 8 * this._nDataBytes; + var n22 = 8 * t4.sigBytes; + r4[n22 >>> 5] |= 128 << 24 - n22 % 32; + var s22 = e3.floor(i3 / 4294967296); + var a22 = i3; + r4[(n22 + 64 >>> 9 << 4) + 15] = 16711935 & (s22 << 8 | s22 >>> 24) | 4278255360 & (s22 << 24 | s22 >>> 8); + r4[(n22 + 64 >>> 9 << 4) + 14] = 16711935 & (a22 << 8 | a22 >>> 24) | 4278255360 & (a22 << 24 | a22 >>> 8); + t4.sigBytes = 4 * (r4.length + 1); + this._process(); + var o22 = this._hash; + var u22 = o22.words; + for (var c22 = 0; c22 < 4; c22++) { + var l22 = u22[c22]; + u22[c22] = 16711935 & (l22 << 8 | l22 >>> 24) | 4278255360 & (l22 << 24 | l22 >>> 8); + } + return o22; + }, clone: function() { + var t4 = s2.clone.call(this); + t4._hash = this._hash.clone(); + return t4; + } }); + function c2(t4, e4, r4, i3, n22, s22, a22) { + var o22 = t4 + (e4 & r4 | ~e4 & i3) + n22 + a22; + return (o22 << s22 | o22 >>> 32 - s22) + e4; + } + function l2(t4, e4, r4, i3, n22, s22, a22) { + var o22 = t4 + (e4 & i3 | r4 & ~i3) + n22 + a22; + return (o22 << s22 | o22 >>> 32 - s22) + e4; + } + function f2(t4, e4, r4, i3, n22, s22, a22) { + var o22 = t4 + (e4 ^ r4 ^ i3) + n22 + a22; + return (o22 << s22 | o22 >>> 32 - s22) + e4; + } + function h2(t4, e4, r4, i3, n22, s22, a22) { + var o22 = t4 + (r4 ^ (e4 | ~i3)) + n22 + a22; + return (o22 << s22 | o22 >>> 32 - s22) + e4; + } + r3.MD5 = s2._createHelper(u2); + r3.HmacMD5 = s2._createHmacHelper(u2); + })(Math); + return t3.MD5; + }); + }, 8568: function(t22, e22, r22) { + (function(i22, n2, s2) { + t22.exports = n2(r22(8249), r22(5109)); + })(this, function(t3) { + t3.mode.CFB = function() { + var e3 = t3.lib.BlockCipherMode.extend(); + e3.Encryptor = e3.extend({ processBlock: function(t4, e4) { + var i22 = this._cipher; + var n2 = i22.blockSize; + r3.call(this, t4, e4, n2, i22); + this._prevBlock = t4.slice(e4, e4 + n2); + } }); + e3.Decryptor = e3.extend({ processBlock: function(t4, e4) { + var i22 = this._cipher; + var n2 = i22.blockSize; + var s2 = t4.slice(e4, e4 + n2); + r3.call(this, t4, e4, n2, i22); + this._prevBlock = s2; + } }); + function r3(t4, e4, r4, i22) { + var n2; + var s2 = this._iv; + if (s2) { + n2 = s2.slice(0); + this._iv = void 0; + } else + n2 = this._prevBlock; + i22.encryptBlock(n2, 0); + for (var a2 = 0; a2 < r4; a2++) + t4[e4 + a2] ^= n2[a2]; + } + return e3; + }(); + return t3.mode.CFB; + }); + }, 9968: function(t22, e22, r22) { + (function(i22, n2, s2) { + t22.exports = n2(r22(8249), r22(5109)); + })(this, function(t3) { + t3.mode.CTRGladman = function() { + var e3 = t3.lib.BlockCipherMode.extend(); + function r3(t4) { + if (255 === (t4 >> 24 & 255)) { + var e4 = t4 >> 16 & 255; + var r4 = t4 >> 8 & 255; + var i3 = 255 & t4; + if (255 === e4) { + e4 = 0; + if (255 === r4) { + r4 = 0; + if (255 === i3) + i3 = 0; + else + ++i3; + } else + ++r4; + } else + ++e4; + t4 = 0; + t4 += e4 << 16; + t4 += r4 << 8; + t4 += i3; + } else + t4 += 1 << 24; + return t4; + } + function i22(t4) { + if (0 === (t4[0] = r3(t4[0]))) + t4[1] = r3(t4[1]); + return t4; + } + var n2 = e3.Encryptor = e3.extend({ processBlock: function(t4, e4) { + var r4 = this._cipher; + var n22 = r4.blockSize; + var s2 = this._iv; + var a2 = this._counter; + if (s2) { + a2 = this._counter = s2.slice(0); + this._iv = void 0; + } + i22(a2); + var o2 = a2.slice(0); + r4.encryptBlock(o2, 0); + for (var u2 = 0; u2 < n22; u2++) + t4[e4 + u2] ^= o2[u2]; + } }); + e3.Decryptor = n2; + return e3; + }(); + return t3.mode.CTRGladman; + }); + }, 4242: function(t22, e22, r22) { + (function(i22, n2, s2) { + t22.exports = n2(r22(8249), r22(5109)); + })(this, function(t3) { + t3.mode.CTR = function() { + var e3 = t3.lib.BlockCipherMode.extend(); + var r3 = e3.Encryptor = e3.extend({ processBlock: function(t4, e4) { + var r4 = this._cipher; + var i22 = r4.blockSize; + var n2 = this._iv; + var s2 = this._counter; + if (n2) { + s2 = this._counter = n2.slice(0); + this._iv = void 0; + } + var a2 = s2.slice(0); + r4.encryptBlock(a2, 0); + s2[i22 - 1] = s2[i22 - 1] + 1 | 0; + for (var o2 = 0; o2 < i22; o2++) + t4[e4 + o2] ^= a2[o2]; + } }); + e3.Decryptor = r3; + return e3; + }(); + return t3.mode.CTR; + }); + }, 1148: function(t22, e22, r22) { + (function(i22, n2, s2) { + t22.exports = n2(r22(8249), r22(5109)); + })(this, function(t3) { + t3.mode.ECB = function() { + var e3 = t3.lib.BlockCipherMode.extend(); + e3.Encryptor = e3.extend({ processBlock: function(t4, e4) { + this._cipher.encryptBlock(t4, e4); + } }); + e3.Decryptor = e3.extend({ processBlock: function(t4, e4) { + this._cipher.decryptBlock(t4, e4); + } }); + return e3; + }(); + return t3.mode.ECB; + }); + }, 7660: function(t22, e22, r22) { + (function(i22, n2, s2) { + t22.exports = n2(r22(8249), r22(5109)); + })(this, function(t3) { + t3.mode.OFB = function() { + var e3 = t3.lib.BlockCipherMode.extend(); + var r3 = e3.Encryptor = e3.extend({ processBlock: function(t4, e4) { + var r4 = this._cipher; + var i22 = r4.blockSize; + var n2 = this._iv; + var s2 = this._keystream; + if (n2) { + s2 = this._keystream = n2.slice(0); + this._iv = void 0; + } + r4.encryptBlock(s2, 0); + for (var a2 = 0; a2 < i22; a2++) + t4[e4 + a2] ^= s2[a2]; + } }); + e3.Decryptor = r3; + return e3; + }(); + return t3.mode.OFB; + }); + }, 3615: function(t22, e22, r22) { + (function(i22, n2, s2) { + t22.exports = n2(r22(8249), r22(5109)); + })(this, function(t3) { + t3.pad.AnsiX923 = { pad: function(t4, e3) { + var r3 = t4.sigBytes; + var i22 = 4 * e3; + var n2 = i22 - r3 % i22; + var s2 = r3 + n2 - 1; + t4.clamp(); + t4.words[s2 >>> 2] |= n2 << 24 - s2 % 4 * 8; + t4.sigBytes += n2; + }, unpad: function(t4) { + var e3 = 255 & t4.words[t4.sigBytes - 1 >>> 2]; + t4.sigBytes -= e3; + } }; + return t3.pad.Ansix923; + }); + }, 2807: function(t22, e22, r22) { + (function(i22, n2, s2) { + t22.exports = n2(r22(8249), r22(5109)); + })(this, function(t3) { + t3.pad.Iso10126 = { pad: function(e3, r3) { + var i22 = 4 * r3; + var n2 = i22 - e3.sigBytes % i22; + e3.concat(t3.lib.WordArray.random(n2 - 1)).concat(t3.lib.WordArray.create([n2 << 24], 1)); + }, unpad: function(t4) { + var e3 = 255 & t4.words[t4.sigBytes - 1 >>> 2]; + t4.sigBytes -= e3; + } }; + return t3.pad.Iso10126; + }); + }, 1077: function(t22, e22, r22) { + (function(i22, n2, s2) { + t22.exports = n2(r22(8249), r22(5109)); + })(this, function(t3) { + t3.pad.Iso97971 = { pad: function(e3, r3) { + e3.concat(t3.lib.WordArray.create([2147483648], 1)); + t3.pad.ZeroPadding.pad(e3, r3); + }, unpad: function(e3) { + t3.pad.ZeroPadding.unpad(e3); + e3.sigBytes--; + } }; + return t3.pad.Iso97971; + }); + }, 6991: function(t22, e22, r22) { + (function(i22, n2, s2) { + t22.exports = n2(r22(8249), r22(5109)); + })(this, function(t3) { + t3.pad.NoPadding = { pad: function() { + }, unpad: function() { + } }; + return t3.pad.NoPadding; + }); + }, 6475: function(t22, e22, r22) { + (function(i22, n2, s2) { + t22.exports = n2(r22(8249), r22(5109)); + })(this, function(t3) { + t3.pad.ZeroPadding = { pad: function(t4, e3) { + var r3 = 4 * e3; + t4.clamp(); + t4.sigBytes += r3 - (t4.sigBytes % r3 || r3); + }, unpad: function(t4) { + var e3 = t4.words; + var r3 = t4.sigBytes - 1; + for (var r3 = t4.sigBytes - 1; r3 >= 0; r3--) + if (e3[r3 >>> 2] >>> 24 - r3 % 4 * 8 & 255) { + t4.sigBytes = r3 + 1; + break; + } + } }; + return t3.pad.ZeroPadding; + }); + }, 2112: function(t22, e22, r22) { + (function(i22, n2, s2) { + t22.exports = n2(r22(8249), r22(2783), r22(9824)); + })(this, function(t3) { + (function() { + var e3 = t3; + var r3 = e3.lib; + var i22 = r3.Base; + var n2 = r3.WordArray; + var s2 = e3.algo; + var a2 = s2.SHA1; + var o2 = s2.HMAC; + var u2 = s2.PBKDF2 = i22.extend({ cfg: i22.extend({ keySize: 128 / 32, hasher: a2, iterations: 1 }), init: function(t4) { + this.cfg = this.cfg.extend(t4); + }, compute: function(t4, e4) { + var r4 = this.cfg; + var i3 = o2.create(r4.hasher, t4); + var s22 = n2.create(); + var a22 = n2.create([1]); + var u22 = s22.words; + var c2 = a22.words; + var l2 = r4.keySize; + var f2 = r4.iterations; + while (u22.length < l2) { + var h2 = i3.update(e4).finalize(a22); + i3.reset(); + var d2 = h2.words; + var v2 = d2.length; + var p2 = h2; + for (var g2 = 1; g2 < f2; g2++) { + p2 = i3.finalize(p2); + i3.reset(); + var y2 = p2.words; + for (var m2 = 0; m2 < v2; m2++) + d2[m2] ^= y2[m2]; + } + s22.concat(h2); + c2[0]++; + } + s22.sigBytes = 4 * l2; + return s22; + } }); + e3.PBKDF2 = function(t4, e4, r4) { + return u2.create(r4).compute(t4, e4); + }; + })(); + return t3.PBKDF2; + }); + }, 3974: function(t22, e22, r22) { + (function(i22, n2, s2) { + t22.exports = n2(r22(8249), r22(8269), r22(8214), r22(888), r22(5109)); + })(this, function(t3) { + (function() { + var e3 = t3; + var r3 = e3.lib; + var i22 = r3.StreamCipher; + var n2 = e3.algo; + var s2 = []; + var a2 = []; + var o2 = []; + var u2 = n2.RabbitLegacy = i22.extend({ _doReset: function() { + var t4 = this._key.words; + var e4 = this.cfg.iv; + var r4 = this._X = [t4[0], t4[3] << 16 | t4[2] >>> 16, t4[1], t4[0] << 16 | t4[3] >>> 16, t4[2], t4[1] << 16 | t4[0] >>> 16, t4[3], t4[2] << 16 | t4[1] >>> 16]; + var i3 = this._C = [t4[2] << 16 | t4[2] >>> 16, 4294901760 & t4[0] | 65535 & t4[1], t4[3] << 16 | t4[3] >>> 16, 4294901760 & t4[1] | 65535 & t4[2], t4[0] << 16 | t4[0] >>> 16, 4294901760 & t4[2] | 65535 & t4[3], t4[1] << 16 | t4[1] >>> 16, 4294901760 & t4[3] | 65535 & t4[0]]; + this._b = 0; + for (var n22 = 0; n22 < 4; n22++) + c2.call(this); + for (var n22 = 0; n22 < 8; n22++) + i3[n22] ^= r4[n22 + 4 & 7]; + if (e4) { + var s22 = e4.words; + var a22 = s22[0]; + var o22 = s22[1]; + var u22 = 16711935 & (a22 << 8 | a22 >>> 24) | 4278255360 & (a22 << 24 | a22 >>> 8); + var l2 = 16711935 & (o22 << 8 | o22 >>> 24) | 4278255360 & (o22 << 24 | o22 >>> 8); + var f2 = u22 >>> 16 | 4294901760 & l2; + var h2 = l2 << 16 | 65535 & u22; + i3[0] ^= u22; + i3[1] ^= f2; + i3[2] ^= l2; + i3[3] ^= h2; + i3[4] ^= u22; + i3[5] ^= f2; + i3[6] ^= l2; + i3[7] ^= h2; + for (var n22 = 0; n22 < 4; n22++) + c2.call(this); + } + }, _doProcessBlock: function(t4, e4) { + var r4 = this._X; + c2.call(this); + s2[0] = r4[0] ^ r4[5] >>> 16 ^ r4[3] << 16; + s2[1] = r4[2] ^ r4[7] >>> 16 ^ r4[5] << 16; + s2[2] = r4[4] ^ r4[1] >>> 16 ^ r4[7] << 16; + s2[3] = r4[6] ^ r4[3] >>> 16 ^ r4[1] << 16; + for (var i3 = 0; i3 < 4; i3++) { + s2[i3] = 16711935 & (s2[i3] << 8 | s2[i3] >>> 24) | 4278255360 & (s2[i3] << 24 | s2[i3] >>> 8); + t4[e4 + i3] ^= s2[i3]; + } + }, blockSize: 128 / 32, ivSize: 64 / 32 }); + function c2() { + var t4 = this._X; + var e4 = this._C; + for (var r4 = 0; r4 < 8; r4++) + a2[r4] = e4[r4]; + e4[0] = e4[0] + 1295307597 + this._b | 0; + e4[1] = e4[1] + 3545052371 + (e4[0] >>> 0 < a2[0] >>> 0 ? 1 : 0) | 0; + e4[2] = e4[2] + 886263092 + (e4[1] >>> 0 < a2[1] >>> 0 ? 1 : 0) | 0; + e4[3] = e4[3] + 1295307597 + (e4[2] >>> 0 < a2[2] >>> 0 ? 1 : 0) | 0; + e4[4] = e4[4] + 3545052371 + (e4[3] >>> 0 < a2[3] >>> 0 ? 1 : 0) | 0; + e4[5] = e4[5] + 886263092 + (e4[4] >>> 0 < a2[4] >>> 0 ? 1 : 0) | 0; + e4[6] = e4[6] + 1295307597 + (e4[5] >>> 0 < a2[5] >>> 0 ? 1 : 0) | 0; + e4[7] = e4[7] + 3545052371 + (e4[6] >>> 0 < a2[6] >>> 0 ? 1 : 0) | 0; + this._b = e4[7] >>> 0 < a2[7] >>> 0 ? 1 : 0; + for (var r4 = 0; r4 < 8; r4++) { + var i3 = t4[r4] + e4[r4]; + var n22 = 65535 & i3; + var s22 = i3 >>> 16; + var u22 = ((n22 * n22 >>> 17) + n22 * s22 >>> 15) + s22 * s22; + var c22 = ((4294901760 & i3) * i3 | 0) + ((65535 & i3) * i3 | 0); + o2[r4] = u22 ^ c22; + } + t4[0] = o2[0] + (o2[7] << 16 | o2[7] >>> 16) + (o2[6] << 16 | o2[6] >>> 16) | 0; + t4[1] = o2[1] + (o2[0] << 8 | o2[0] >>> 24) + o2[7] | 0; + t4[2] = o2[2] + (o2[1] << 16 | o2[1] >>> 16) + (o2[0] << 16 | o2[0] >>> 16) | 0; + t4[3] = o2[3] + (o2[2] << 8 | o2[2] >>> 24) + o2[1] | 0; + t4[4] = o2[4] + (o2[3] << 16 | o2[3] >>> 16) + (o2[2] << 16 | o2[2] >>> 16) | 0; + t4[5] = o2[5] + (o2[4] << 8 | o2[4] >>> 24) + o2[3] | 0; + t4[6] = o2[6] + (o2[5] << 16 | o2[5] >>> 16) + (o2[4] << 16 | o2[4] >>> 16) | 0; + t4[7] = o2[7] + (o2[6] << 8 | o2[6] >>> 24) + o2[5] | 0; + } + e3.RabbitLegacy = i22._createHelper(u2); + })(); + return t3.RabbitLegacy; + }); + }, 4454: function(t22, e22, r22) { + (function(i22, n2, s2) { + t22.exports = n2(r22(8249), r22(8269), r22(8214), r22(888), r22(5109)); + })(this, function(t3) { + (function() { + var e3 = t3; + var r3 = e3.lib; + var i22 = r3.StreamCipher; + var n2 = e3.algo; + var s2 = []; + var a2 = []; + var o2 = []; + var u2 = n2.Rabbit = i22.extend({ _doReset: function() { + var t4 = this._key.words; + var e4 = this.cfg.iv; + for (var r4 = 0; r4 < 4; r4++) + t4[r4] = 16711935 & (t4[r4] << 8 | t4[r4] >>> 24) | 4278255360 & (t4[r4] << 24 | t4[r4] >>> 8); + var i3 = this._X = [t4[0], t4[3] << 16 | t4[2] >>> 16, t4[1], t4[0] << 16 | t4[3] >>> 16, t4[2], t4[1] << 16 | t4[0] >>> 16, t4[3], t4[2] << 16 | t4[1] >>> 16]; + var n22 = this._C = [t4[2] << 16 | t4[2] >>> 16, 4294901760 & t4[0] | 65535 & t4[1], t4[3] << 16 | t4[3] >>> 16, 4294901760 & t4[1] | 65535 & t4[2], t4[0] << 16 | t4[0] >>> 16, 4294901760 & t4[2] | 65535 & t4[3], t4[1] << 16 | t4[1] >>> 16, 4294901760 & t4[3] | 65535 & t4[0]]; + this._b = 0; + for (var r4 = 0; r4 < 4; r4++) + c2.call(this); + for (var r4 = 0; r4 < 8; r4++) + n22[r4] ^= i3[r4 + 4 & 7]; + if (e4) { + var s22 = e4.words; + var a22 = s22[0]; + var o22 = s22[1]; + var u22 = 16711935 & (a22 << 8 | a22 >>> 24) | 4278255360 & (a22 << 24 | a22 >>> 8); + var l2 = 16711935 & (o22 << 8 | o22 >>> 24) | 4278255360 & (o22 << 24 | o22 >>> 8); + var f2 = u22 >>> 16 | 4294901760 & l2; + var h2 = l2 << 16 | 65535 & u22; + n22[0] ^= u22; + n22[1] ^= f2; + n22[2] ^= l2; + n22[3] ^= h2; + n22[4] ^= u22; + n22[5] ^= f2; + n22[6] ^= l2; + n22[7] ^= h2; + for (var r4 = 0; r4 < 4; r4++) + c2.call(this); + } + }, _doProcessBlock: function(t4, e4) { + var r4 = this._X; + c2.call(this); + s2[0] = r4[0] ^ r4[5] >>> 16 ^ r4[3] << 16; + s2[1] = r4[2] ^ r4[7] >>> 16 ^ r4[5] << 16; + s2[2] = r4[4] ^ r4[1] >>> 16 ^ r4[7] << 16; + s2[3] = r4[6] ^ r4[3] >>> 16 ^ r4[1] << 16; + for (var i3 = 0; i3 < 4; i3++) { + s2[i3] = 16711935 & (s2[i3] << 8 | s2[i3] >>> 24) | 4278255360 & (s2[i3] << 24 | s2[i3] >>> 8); + t4[e4 + i3] ^= s2[i3]; + } + }, blockSize: 128 / 32, ivSize: 64 / 32 }); + function c2() { + var t4 = this._X; + var e4 = this._C; + for (var r4 = 0; r4 < 8; r4++) + a2[r4] = e4[r4]; + e4[0] = e4[0] + 1295307597 + this._b | 0; + e4[1] = e4[1] + 3545052371 + (e4[0] >>> 0 < a2[0] >>> 0 ? 1 : 0) | 0; + e4[2] = e4[2] + 886263092 + (e4[1] >>> 0 < a2[1] >>> 0 ? 1 : 0) | 0; + e4[3] = e4[3] + 1295307597 + (e4[2] >>> 0 < a2[2] >>> 0 ? 1 : 0) | 0; + e4[4] = e4[4] + 3545052371 + (e4[3] >>> 0 < a2[3] >>> 0 ? 1 : 0) | 0; + e4[5] = e4[5] + 886263092 + (e4[4] >>> 0 < a2[4] >>> 0 ? 1 : 0) | 0; + e4[6] = e4[6] + 1295307597 + (e4[5] >>> 0 < a2[5] >>> 0 ? 1 : 0) | 0; + e4[7] = e4[7] + 3545052371 + (e4[6] >>> 0 < a2[6] >>> 0 ? 1 : 0) | 0; + this._b = e4[7] >>> 0 < a2[7] >>> 0 ? 1 : 0; + for (var r4 = 0; r4 < 8; r4++) { + var i3 = t4[r4] + e4[r4]; + var n22 = 65535 & i3; + var s22 = i3 >>> 16; + var u22 = ((n22 * n22 >>> 17) + n22 * s22 >>> 15) + s22 * s22; + var c22 = ((4294901760 & i3) * i3 | 0) + ((65535 & i3) * i3 | 0); + o2[r4] = u22 ^ c22; + } + t4[0] = o2[0] + (o2[7] << 16 | o2[7] >>> 16) + (o2[6] << 16 | o2[6] >>> 16) | 0; + t4[1] = o2[1] + (o2[0] << 8 | o2[0] >>> 24) + o2[7] | 0; + t4[2] = o2[2] + (o2[1] << 16 | o2[1] >>> 16) + (o2[0] << 16 | o2[0] >>> 16) | 0; + t4[3] = o2[3] + (o2[2] << 8 | o2[2] >>> 24) + o2[1] | 0; + t4[4] = o2[4] + (o2[3] << 16 | o2[3] >>> 16) + (o2[2] << 16 | o2[2] >>> 16) | 0; + t4[5] = o2[5] + (o2[4] << 8 | o2[4] >>> 24) + o2[3] | 0; + t4[6] = o2[6] + (o2[5] << 16 | o2[5] >>> 16) + (o2[4] << 16 | o2[4] >>> 16) | 0; + t4[7] = o2[7] + (o2[6] << 8 | o2[6] >>> 24) + o2[5] | 0; + } + e3.Rabbit = i22._createHelper(u2); + })(); + return t3.Rabbit; + }); + }, 1857: function(t22, e22, r22) { + (function(i22, n2, s2) { + t22.exports = n2(r22(8249), r22(8269), r22(8214), r22(888), r22(5109)); + })(this, function(t3) { + (function() { + var e3 = t3; + var r3 = e3.lib; + var i22 = r3.StreamCipher; + var n2 = e3.algo; + var s2 = n2.RC4 = i22.extend({ _doReset: function() { + var t4 = this._key; + var e4 = t4.words; + var r4 = t4.sigBytes; + var i3 = this._S = []; + for (var n22 = 0; n22 < 256; n22++) + i3[n22] = n22; + for (var n22 = 0, s22 = 0; n22 < 256; n22++) { + var a22 = n22 % r4; + var o22 = e4[a22 >>> 2] >>> 24 - a22 % 4 * 8 & 255; + s22 = (s22 + i3[n22] + o22) % 256; + var u2 = i3[n22]; + i3[n22] = i3[s22]; + i3[s22] = u2; + } + this._i = this._j = 0; + }, _doProcessBlock: function(t4, e4) { + t4[e4] ^= a2.call(this); + }, keySize: 256 / 32, ivSize: 0 }); + function a2() { + var t4 = this._S; + var e4 = this._i; + var r4 = this._j; + var i3 = 0; + for (var n22 = 0; n22 < 4; n22++) { + e4 = (e4 + 1) % 256; + r4 = (r4 + t4[e4]) % 256; + var s22 = t4[e4]; + t4[e4] = t4[r4]; + t4[r4] = s22; + i3 |= t4[(t4[e4] + t4[r4]) % 256] << 24 - 8 * n22; + } + this._i = e4; + this._j = r4; + return i3; + } + e3.RC4 = i22._createHelper(s2); + var o2 = n2.RC4Drop = s2.extend({ cfg: s2.cfg.extend({ drop: 192 }), _doReset: function() { + s2._doReset.call(this); + for (var t4 = this.cfg.drop; t4 > 0; t4--) + a2.call(this); + } }); + e3.RC4Drop = i22._createHelper(o2); + })(); + return t3.RC4; + }); + }, 706: function(t22, e22, r22) { + (function(i22, n2) { + t22.exports = n2(r22(8249)); + })(this, function(t3) { + (function(e3) { + var r3 = t3; + var i22 = r3.lib; + var n2 = i22.WordArray; + var s2 = i22.Hasher; + var a2 = r3.algo; + var o2 = n2.create([0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 7, 4, 13, 1, 10, 6, 15, 3, 12, 0, 9, 5, 2, 14, 11, 8, 3, 10, 14, 4, 9, 15, 8, 1, 2, 7, 0, 6, 13, 11, 5, 12, 1, 9, 11, 10, 0, 8, 12, 4, 13, 3, 7, 15, 14, 5, 6, 2, 4, 0, 5, 9, 7, 12, 2, 10, 14, 1, 3, 8, 11, 6, 15, 13]); + var u2 = n2.create([5, 14, 7, 0, 9, 2, 11, 4, 13, 6, 15, 8, 1, 10, 3, 12, 6, 11, 3, 7, 0, 13, 5, 10, 14, 15, 8, 12, 4, 9, 1, 2, 15, 5, 1, 3, 7, 14, 6, 9, 11, 8, 12, 2, 10, 0, 4, 13, 8, 6, 4, 1, 3, 11, 15, 0, 5, 12, 2, 13, 9, 7, 10, 14, 12, 15, 10, 4, 1, 5, 8, 7, 6, 2, 13, 14, 0, 3, 9, 11]); + var c2 = n2.create([11, 14, 15, 12, 5, 8, 7, 9, 11, 13, 14, 15, 6, 7, 9, 8, 7, 6, 8, 13, 11, 9, 7, 15, 7, 12, 15, 9, 11, 7, 13, 12, 11, 13, 6, 7, 14, 9, 13, 15, 14, 8, 13, 6, 5, 12, 7, 5, 11, 12, 14, 15, 14, 15, 9, 8, 9, 14, 5, 6, 8, 6, 5, 12, 9, 15, 5, 11, 6, 8, 13, 12, 5, 12, 13, 14, 11, 8, 5, 6]); + var l2 = n2.create([8, 9, 9, 11, 13, 15, 15, 5, 7, 7, 8, 11, 14, 14, 12, 6, 9, 13, 15, 7, 12, 8, 9, 11, 7, 7, 12, 7, 6, 15, 13, 11, 9, 7, 15, 11, 8, 6, 6, 14, 12, 13, 5, 14, 13, 13, 7, 5, 15, 5, 8, 11, 14, 14, 6, 14, 6, 9, 12, 9, 12, 5, 15, 8, 8, 5, 12, 9, 12, 5, 14, 6, 8, 13, 6, 5, 15, 13, 11, 11]); + var f2 = n2.create([0, 1518500249, 1859775393, 2400959708, 2840853838]); + var h2 = n2.create([1352829926, 1548603684, 1836072691, 2053994217, 0]); + var d2 = a2.RIPEMD160 = s2.extend({ _doReset: function() { + this._hash = n2.create([1732584193, 4023233417, 2562383102, 271733878, 3285377520]); + }, _doProcessBlock: function(t4, e4) { + for (var r4 = 0; r4 < 16; r4++) { + var i3 = e4 + r4; + var n22 = t4[i3]; + t4[i3] = 16711935 & (n22 << 8 | n22 >>> 24) | 4278255360 & (n22 << 24 | n22 >>> 8); + } + var s22 = this._hash.words; + var a22 = f2.words; + var d22 = h2.words; + var S2 = o2.words; + var _2 = u2.words; + var b2 = c2.words; + var E2 = l2.words; + var D2, M2, T2, I2, A2; + var x, R2, B2, O2, k; + x = D2 = s22[0]; + R2 = M2 = s22[1]; + B2 = T2 = s22[2]; + O2 = I2 = s22[3]; + k = A2 = s22[4]; + var C2; + for (var r4 = 0; r4 < 80; r4 += 1) { + C2 = D2 + t4[e4 + S2[r4]] | 0; + if (r4 < 16) + C2 += v2(M2, T2, I2) + a22[0]; + else if (r4 < 32) + C2 += p2(M2, T2, I2) + a22[1]; + else if (r4 < 48) + C2 += g2(M2, T2, I2) + a22[2]; + else if (r4 < 64) + C2 += y2(M2, T2, I2) + a22[3]; + else + C2 += m2(M2, T2, I2) + a22[4]; + C2 |= 0; + C2 = w2(C2, b2[r4]); + C2 = C2 + A2 | 0; + D2 = A2; + A2 = I2; + I2 = w2(T2, 10); + T2 = M2; + M2 = C2; + C2 = x + t4[e4 + _2[r4]] | 0; + if (r4 < 16) + C2 += m2(R2, B2, O2) + d22[0]; + else if (r4 < 32) + C2 += y2(R2, B2, O2) + d22[1]; + else if (r4 < 48) + C2 += g2(R2, B2, O2) + d22[2]; + else if (r4 < 64) + C2 += p2(R2, B2, O2) + d22[3]; + else + C2 += v2(R2, B2, O2) + d22[4]; + C2 |= 0; + C2 = w2(C2, E2[r4]); + C2 = C2 + k | 0; + x = k; + k = O2; + O2 = w2(B2, 10); + B2 = R2; + R2 = C2; + } + C2 = s22[1] + T2 + O2 | 0; + s22[1] = s22[2] + I2 + k | 0; + s22[2] = s22[3] + A2 + x | 0; + s22[3] = s22[4] + D2 + R2 | 0; + s22[4] = s22[0] + M2 + B2 | 0; + s22[0] = C2; + }, _doFinalize: function() { + var t4 = this._data; + var e4 = t4.words; + var r4 = 8 * this._nDataBytes; + var i3 = 8 * t4.sigBytes; + e4[i3 >>> 5] |= 128 << 24 - i3 % 32; + e4[(i3 + 64 >>> 9 << 4) + 14] = 16711935 & (r4 << 8 | r4 >>> 24) | 4278255360 & (r4 << 24 | r4 >>> 8); + t4.sigBytes = 4 * (e4.length + 1); + this._process(); + var n22 = this._hash; + var s22 = n22.words; + for (var a22 = 0; a22 < 5; a22++) { + var o22 = s22[a22]; + s22[a22] = 16711935 & (o22 << 8 | o22 >>> 24) | 4278255360 & (o22 << 24 | o22 >>> 8); + } + return n22; + }, clone: function() { + var t4 = s2.clone.call(this); + t4._hash = this._hash.clone(); + return t4; + } }); + function v2(t4, e4, r4) { + return t4 ^ e4 ^ r4; + } + function p2(t4, e4, r4) { + return t4 & e4 | ~t4 & r4; + } + function g2(t4, e4, r4) { + return (t4 | ~e4) ^ r4; + } + function y2(t4, e4, r4) { + return t4 & r4 | e4 & ~r4; + } + function m2(t4, e4, r4) { + return t4 ^ (e4 | ~r4); + } + function w2(t4, e4) { + return t4 << e4 | t4 >>> 32 - e4; + } + r3.RIPEMD160 = s2._createHelper(d2); + r3.HmacRIPEMD160 = s2._createHmacHelper(d2); + })(); + return t3.RIPEMD160; + }); + }, 2783: function(t22, e22, r22) { + (function(i22, n2) { + t22.exports = n2(r22(8249)); + })(this, function(t3) { + (function() { + var e3 = t3; + var r3 = e3.lib; + var i22 = r3.WordArray; + var n2 = r3.Hasher; + var s2 = e3.algo; + var a2 = []; + var o2 = s2.SHA1 = n2.extend({ _doReset: function() { + this._hash = new i22.init([1732584193, 4023233417, 2562383102, 271733878, 3285377520]); + }, _doProcessBlock: function(t4, e4) { + var r4 = this._hash.words; + var i3 = r4[0]; + var n22 = r4[1]; + var s22 = r4[2]; + var o22 = r4[3]; + var u2 = r4[4]; + for (var c2 = 0; c2 < 80; c2++) { + if (c2 < 16) + a2[c2] = 0 | t4[e4 + c2]; + else { + var l2 = a2[c2 - 3] ^ a2[c2 - 8] ^ a2[c2 - 14] ^ a2[c2 - 16]; + a2[c2] = l2 << 1 | l2 >>> 31; + } + var f2 = (i3 << 5 | i3 >>> 27) + u2 + a2[c2]; + if (c2 < 20) + f2 += (n22 & s22 | ~n22 & o22) + 1518500249; + else if (c2 < 40) + f2 += (n22 ^ s22 ^ o22) + 1859775393; + else if (c2 < 60) + f2 += (n22 & s22 | n22 & o22 | s22 & o22) - 1894007588; + else + f2 += (n22 ^ s22 ^ o22) - 899497514; + u2 = o22; + o22 = s22; + s22 = n22 << 30 | n22 >>> 2; + n22 = i3; + i3 = f2; + } + r4[0] = r4[0] + i3 | 0; + r4[1] = r4[1] + n22 | 0; + r4[2] = r4[2] + s22 | 0; + r4[3] = r4[3] + o22 | 0; + r4[4] = r4[4] + u2 | 0; + }, _doFinalize: function() { + var t4 = this._data; + var e4 = t4.words; + var r4 = 8 * this._nDataBytes; + var i3 = 8 * t4.sigBytes; + e4[i3 >>> 5] |= 128 << 24 - i3 % 32; + e4[(i3 + 64 >>> 9 << 4) + 14] = Math.floor(r4 / 4294967296); + e4[(i3 + 64 >>> 9 << 4) + 15] = r4; + t4.sigBytes = 4 * e4.length; + this._process(); + return this._hash; + }, clone: function() { + var t4 = n2.clone.call(this); + t4._hash = this._hash.clone(); + return t4; + } }); + e3.SHA1 = n2._createHelper(o2); + e3.HmacSHA1 = n2._createHmacHelper(o2); + })(); + return t3.SHA1; + }); + }, 7792: function(t22, e22, r22) { + (function(i22, n2, s2) { + t22.exports = n2(r22(8249), r22(2153)); + })(this, function(t3) { + (function() { + var e3 = t3; + var r3 = e3.lib; + var i22 = r3.WordArray; + var n2 = e3.algo; + var s2 = n2.SHA256; + var a2 = n2.SHA224 = s2.extend({ _doReset: function() { + this._hash = new i22.init([3238371032, 914150663, 812702999, 4144912697, 4290775857, 1750603025, 1694076839, 3204075428]); + }, _doFinalize: function() { + var t4 = s2._doFinalize.call(this); + t4.sigBytes -= 4; + return t4; + } }); + e3.SHA224 = s2._createHelper(a2); + e3.HmacSHA224 = s2._createHmacHelper(a2); + })(); + return t3.SHA224; + }); + }, 2153: function(t22, e22, r22) { + (function(i22, n2) { + t22.exports = n2(r22(8249)); + })(this, function(t3) { + (function(e3) { + var r3 = t3; + var i22 = r3.lib; + var n2 = i22.WordArray; + var s2 = i22.Hasher; + var a2 = r3.algo; + var o2 = []; + var u2 = []; + (function() { + function t4(t5) { + var r5 = e3.sqrt(t5); + for (var i4 = 2; i4 <= r5; i4++) + if (!(t5 % i4)) + return false; + return true; + } + function r4(t5) { + return 4294967296 * (t5 - (0 | t5)) | 0; + } + var i3 = 2; + var n22 = 0; + while (n22 < 64) { + if (t4(i3)) { + if (n22 < 8) + o2[n22] = r4(e3.pow(i3, 1 / 2)); + u2[n22] = r4(e3.pow(i3, 1 / 3)); + n22++; + } + i3++; + } + })(); + var c2 = []; + var l2 = a2.SHA256 = s2.extend({ _doReset: function() { + this._hash = new n2.init(o2.slice(0)); + }, _doProcessBlock: function(t4, e4) { + var r4 = this._hash.words; + var i3 = r4[0]; + var n22 = r4[1]; + var s22 = r4[2]; + var a22 = r4[3]; + var o22 = r4[4]; + var l22 = r4[5]; + var f2 = r4[6]; + var h2 = r4[7]; + for (var d2 = 0; d2 < 64; d2++) { + if (d2 < 16) + c2[d2] = 0 | t4[e4 + d2]; + else { + var v2 = c2[d2 - 15]; + var p2 = (v2 << 25 | v2 >>> 7) ^ (v2 << 14 | v2 >>> 18) ^ v2 >>> 3; + var g2 = c2[d2 - 2]; + var y2 = (g2 << 15 | g2 >>> 17) ^ (g2 << 13 | g2 >>> 19) ^ g2 >>> 10; + c2[d2] = p2 + c2[d2 - 7] + y2 + c2[d2 - 16]; + } + var m2 = o22 & l22 ^ ~o22 & f2; + var w2 = i3 & n22 ^ i3 & s22 ^ n22 & s22; + var S2 = (i3 << 30 | i3 >>> 2) ^ (i3 << 19 | i3 >>> 13) ^ (i3 << 10 | i3 >>> 22); + var _2 = (o22 << 26 | o22 >>> 6) ^ (o22 << 21 | o22 >>> 11) ^ (o22 << 7 | o22 >>> 25); + var b2 = h2 + _2 + m2 + u2[d2] + c2[d2]; + var E2 = S2 + w2; + h2 = f2; + f2 = l22; + l22 = o22; + o22 = a22 + b2 | 0; + a22 = s22; + s22 = n22; + n22 = i3; + i3 = b2 + E2 | 0; + } + r4[0] = r4[0] + i3 | 0; + r4[1] = r4[1] + n22 | 0; + r4[2] = r4[2] + s22 | 0; + r4[3] = r4[3] + a22 | 0; + r4[4] = r4[4] + o22 | 0; + r4[5] = r4[5] + l22 | 0; + r4[6] = r4[6] + f2 | 0; + r4[7] = r4[7] + h2 | 0; + }, _doFinalize: function() { + var t4 = this._data; + var r4 = t4.words; + var i3 = 8 * this._nDataBytes; + var n22 = 8 * t4.sigBytes; + r4[n22 >>> 5] |= 128 << 24 - n22 % 32; + r4[(n22 + 64 >>> 9 << 4) + 14] = e3.floor(i3 / 4294967296); + r4[(n22 + 64 >>> 9 << 4) + 15] = i3; + t4.sigBytes = 4 * r4.length; + this._process(); + return this._hash; + }, clone: function() { + var t4 = s2.clone.call(this); + t4._hash = this._hash.clone(); + return t4; + } }); + r3.SHA256 = s2._createHelper(l2); + r3.HmacSHA256 = s2._createHmacHelper(l2); + })(Math); + return t3.SHA256; + }); + }, 3327: function(t22, e22, r22) { + (function(i22, n2, s2) { + t22.exports = n2(r22(8249), r22(4938)); + })(this, function(t3) { + (function(e3) { + var r3 = t3; + var i22 = r3.lib; + var n2 = i22.WordArray; + var s2 = i22.Hasher; + var a2 = r3.x64; + var o2 = a2.Word; + var u2 = r3.algo; + var c2 = []; + var l2 = []; + var f2 = []; + (function() { + var t4 = 1, e4 = 0; + for (var r4 = 0; r4 < 24; r4++) { + c2[t4 + 5 * e4] = (r4 + 1) * (r4 + 2) / 2 % 64; + var i3 = e4 % 5; + var n22 = (2 * t4 + 3 * e4) % 5; + t4 = i3; + e4 = n22; + } + for (var t4 = 0; t4 < 5; t4++) + for (var e4 = 0; e4 < 5; e4++) + l2[t4 + 5 * e4] = e4 + (2 * t4 + 3 * e4) % 5 * 5; + var s22 = 1; + for (var a22 = 0; a22 < 24; a22++) { + var u22 = 0; + var h22 = 0; + for (var d22 = 0; d22 < 7; d22++) { + if (1 & s22) { + var v2 = (1 << d22) - 1; + if (v2 < 32) + h22 ^= 1 << v2; + else + u22 ^= 1 << v2 - 32; + } + if (128 & s22) + s22 = s22 << 1 ^ 113; + else + s22 <<= 1; + } + f2[a22] = o2.create(u22, h22); + } + })(); + var h2 = []; + (function() { + for (var t4 = 0; t4 < 25; t4++) + h2[t4] = o2.create(); + })(); + var d2 = u2.SHA3 = s2.extend({ cfg: s2.cfg.extend({ outputLength: 512 }), _doReset: function() { + var t4 = this._state = []; + for (var e4 = 0; e4 < 25; e4++) + t4[e4] = new o2.init(); + this.blockSize = (1600 - 2 * this.cfg.outputLength) / 32; + }, _doProcessBlock: function(t4, e4) { + var r4 = this._state; + var i3 = this.blockSize / 2; + for (var n22 = 0; n22 < i3; n22++) { + var s22 = t4[e4 + 2 * n22]; + var a22 = t4[e4 + 2 * n22 + 1]; + s22 = 16711935 & (s22 << 8 | s22 >>> 24) | 4278255360 & (s22 << 24 | s22 >>> 8); + a22 = 16711935 & (a22 << 8 | a22 >>> 24) | 4278255360 & (a22 << 24 | a22 >>> 8); + var o22 = r4[n22]; + o22.high ^= a22; + o22.low ^= s22; + } + for (var u22 = 0; u22 < 24; u22++) { + for (var d22 = 0; d22 < 5; d22++) { + var v2 = 0, p2 = 0; + for (var g2 = 0; g2 < 5; g2++) { + var o22 = r4[d22 + 5 * g2]; + v2 ^= o22.high; + p2 ^= o22.low; + } + var y2 = h2[d22]; + y2.high = v2; + y2.low = p2; + } + for (var d22 = 0; d22 < 5; d22++) { + var m2 = h2[(d22 + 4) % 5]; + var w2 = h2[(d22 + 1) % 5]; + var S2 = w2.high; + var _2 = w2.low; + var v2 = m2.high ^ (S2 << 1 | _2 >>> 31); + var p2 = m2.low ^ (_2 << 1 | S2 >>> 31); + for (var g2 = 0; g2 < 5; g2++) { + var o22 = r4[d22 + 5 * g2]; + o22.high ^= v2; + o22.low ^= p2; + } + } + for (var b2 = 1; b2 < 25; b2++) { + var v2; + var p2; + var o22 = r4[b2]; + var E2 = o22.high; + var D2 = o22.low; + var M2 = c2[b2]; + if (M2 < 32) { + v2 = E2 << M2 | D2 >>> 32 - M2; + p2 = D2 << M2 | E2 >>> 32 - M2; + } else { + v2 = D2 << M2 - 32 | E2 >>> 64 - M2; + p2 = E2 << M2 - 32 | D2 >>> 64 - M2; + } + var T2 = h2[l2[b2]]; + T2.high = v2; + T2.low = p2; + } + var I2 = h2[0]; + var A2 = r4[0]; + I2.high = A2.high; + I2.low = A2.low; + for (var d22 = 0; d22 < 5; d22++) + for (var g2 = 0; g2 < 5; g2++) { + var b2 = d22 + 5 * g2; + var o22 = r4[b2]; + var x = h2[b2]; + var R2 = h2[(d22 + 1) % 5 + 5 * g2]; + var B2 = h2[(d22 + 2) % 5 + 5 * g2]; + o22.high = x.high ^ ~R2.high & B2.high; + o22.low = x.low ^ ~R2.low & B2.low; + } + var o22 = r4[0]; + var O2 = f2[u22]; + o22.high ^= O2.high; + o22.low ^= O2.low; + } + }, _doFinalize: function() { + var t4 = this._data; + var r4 = t4.words; + 8 * this._nDataBytes; + var s22 = 8 * t4.sigBytes; + var a22 = 32 * this.blockSize; + r4[s22 >>> 5] |= 1 << 24 - s22 % 32; + r4[(e3.ceil((s22 + 1) / a22) * a22 >>> 5) - 1] |= 128; + t4.sigBytes = 4 * r4.length; + this._process(); + var o22 = this._state; + var u22 = this.cfg.outputLength / 8; + var c22 = u22 / 8; + var l22 = []; + for (var f22 = 0; f22 < c22; f22++) { + var h22 = o22[f22]; + var d22 = h22.high; + var v2 = h22.low; + d22 = 16711935 & (d22 << 8 | d22 >>> 24) | 4278255360 & (d22 << 24 | d22 >>> 8); + v2 = 16711935 & (v2 << 8 | v2 >>> 24) | 4278255360 & (v2 << 24 | v2 >>> 8); + l22.push(v2); + l22.push(d22); + } + return new n2.init(l22, u22); + }, clone: function() { + var t4 = s2.clone.call(this); + var e4 = t4._state = this._state.slice(0); + for (var r4 = 0; r4 < 25; r4++) + e4[r4] = e4[r4].clone(); + return t4; + } }); + r3.SHA3 = s2._createHelper(d2); + r3.HmacSHA3 = s2._createHmacHelper(d2); + })(Math); + return t3.SHA3; + }); + }, 7460: function(t22, e22, r22) { + (function(i22, n2, s2) { + t22.exports = n2(r22(8249), r22(4938), r22(34)); + })(this, function(t3) { + (function() { + var e3 = t3; + var r3 = e3.x64; + var i22 = r3.Word; + var n2 = r3.WordArray; + var s2 = e3.algo; + var a2 = s2.SHA512; + var o2 = s2.SHA384 = a2.extend({ _doReset: function() { + this._hash = new n2.init([new i22.init(3418070365, 3238371032), new i22.init(1654270250, 914150663), new i22.init(2438529370, 812702999), new i22.init(355462360, 4144912697), new i22.init(1731405415, 4290775857), new i22.init(2394180231, 1750603025), new i22.init(3675008525, 1694076839), new i22.init(1203062813, 3204075428)]); + }, _doFinalize: function() { + var t4 = a2._doFinalize.call(this); + t4.sigBytes -= 16; + return t4; + } }); + e3.SHA384 = a2._createHelper(o2); + e3.HmacSHA384 = a2._createHmacHelper(o2); + })(); + return t3.SHA384; + }); + }, 34: function(t22, e22, r22) { + (function(i22, n2, s2) { + t22.exports = n2(r22(8249), r22(4938)); + })(this, function(t3) { + (function() { + var e3 = t3; + var r3 = e3.lib; + var i22 = r3.Hasher; + var n2 = e3.x64; + var s2 = n2.Word; + var a2 = n2.WordArray; + var o2 = e3.algo; + function u2() { + return s2.create.apply(s2, arguments); + } + var c2 = [u2(1116352408, 3609767458), u2(1899447441, 602891725), u2(3049323471, 3964484399), u2(3921009573, 2173295548), u2(961987163, 4081628472), u2(1508970993, 3053834265), u2(2453635748, 2937671579), u2(2870763221, 3664609560), u2(3624381080, 2734883394), u2(310598401, 1164996542), u2(607225278, 1323610764), u2(1426881987, 3590304994), u2(1925078388, 4068182383), u2(2162078206, 991336113), u2(2614888103, 633803317), u2(3248222580, 3479774868), u2(3835390401, 2666613458), u2(4022224774, 944711139), u2(264347078, 2341262773), u2(604807628, 2007800933), u2(770255983, 1495990901), u2(1249150122, 1856431235), u2(1555081692, 3175218132), u2(1996064986, 2198950837), u2(2554220882, 3999719339), u2(2821834349, 766784016), u2(2952996808, 2566594879), u2(3210313671, 3203337956), u2(3336571891, 1034457026), u2(3584528711, 2466948901), u2(113926993, 3758326383), u2(338241895, 168717936), u2(666307205, 1188179964), u2(773529912, 1546045734), u2(1294757372, 1522805485), u2(1396182291, 2643833823), u2(1695183700, 2343527390), u2(1986661051, 1014477480), u2(2177026350, 1206759142), u2(2456956037, 344077627), u2(2730485921, 1290863460), u2(2820302411, 3158454273), u2(3259730800, 3505952657), u2(3345764771, 106217008), u2(3516065817, 3606008344), u2(3600352804, 1432725776), u2(4094571909, 1467031594), u2(275423344, 851169720), u2(430227734, 3100823752), u2(506948616, 1363258195), u2(659060556, 3750685593), u2(883997877, 3785050280), u2(958139571, 3318307427), u2(1322822218, 3812723403), u2(1537002063, 2003034995), u2(1747873779, 3602036899), u2(1955562222, 1575990012), u2(2024104815, 1125592928), u2(2227730452, 2716904306), u2(2361852424, 442776044), u2(2428436474, 593698344), u2(2756734187, 3733110249), u2(3204031479, 2999351573), u2(3329325298, 3815920427), u2(3391569614, 3928383900), u2(3515267271, 566280711), u2(3940187606, 3454069534), u2(4118630271, 4000239992), u2(116418474, 1914138554), u2(174292421, 2731055270), u2(289380356, 3203993006), u2(460393269, 320620315), u2(685471733, 587496836), u2(852142971, 1086792851), u2(1017036298, 365543100), u2(1126000580, 2618297676), u2(1288033470, 3409855158), u2(1501505948, 4234509866), u2(1607167915, 987167468), u2(1816402316, 1246189591)]; + var l2 = []; + (function() { + for (var t4 = 0; t4 < 80; t4++) + l2[t4] = u2(); + })(); + var f2 = o2.SHA512 = i22.extend({ _doReset: function() { + this._hash = new a2.init([new s2.init(1779033703, 4089235720), new s2.init(3144134277, 2227873595), new s2.init(1013904242, 4271175723), new s2.init(2773480762, 1595750129), new s2.init(1359893119, 2917565137), new s2.init(2600822924, 725511199), new s2.init(528734635, 4215389547), new s2.init(1541459225, 327033209)]); + }, _doProcessBlock: function(t4, e4) { + var r4 = this._hash.words; + var i3 = r4[0]; + var n22 = r4[1]; + var s22 = r4[2]; + var a22 = r4[3]; + var o22 = r4[4]; + var u22 = r4[5]; + var f22 = r4[6]; + var h2 = r4[7]; + var d2 = i3.high; + var v2 = i3.low; + var p2 = n22.high; + var g2 = n22.low; + var y2 = s22.high; + var m2 = s22.low; + var w2 = a22.high; + var S2 = a22.low; + var _2 = o22.high; + var b2 = o22.low; + var E2 = u22.high; + var D2 = u22.low; + var M2 = f22.high; + var T2 = f22.low; + var I2 = h2.high; + var A2 = h2.low; + var x = d2; + var R2 = v2; + var B2 = p2; + var O2 = g2; + var k = y2; + var C2 = m2; + var N2 = w2; + var P2 = S2; + var V2 = _2; + var L2 = b2; + var H2 = E2; + var U2 = D2; + var K2 = M2; + var j2 = T2; + var q2 = I2; + var F2 = A2; + for (var z2 = 0; z2 < 80; z2++) { + var G2; + var Y2; + var W2 = l2[z2]; + if (z2 < 16) { + Y2 = W2.high = 0 | t4[e4 + 2 * z2]; + G2 = W2.low = 0 | t4[e4 + 2 * z2 + 1]; + } else { + var J2 = l2[z2 - 15]; + var Z2 = J2.high; + var $2 = J2.low; + var X2 = (Z2 >>> 1 | $2 << 31) ^ (Z2 >>> 8 | $2 << 24) ^ Z2 >>> 7; + var Q2 = ($2 >>> 1 | Z2 << 31) ^ ($2 >>> 8 | Z2 << 24) ^ ($2 >>> 7 | Z2 << 25); + var tt2 = l2[z2 - 2]; + var et2 = tt2.high; + var rt2 = tt2.low; + var it2 = (et2 >>> 19 | rt2 << 13) ^ (et2 << 3 | rt2 >>> 29) ^ et2 >>> 6; + var nt2 = (rt2 >>> 19 | et2 << 13) ^ (rt2 << 3 | et2 >>> 29) ^ (rt2 >>> 6 | et2 << 26); + var st2 = l2[z2 - 7]; + var at2 = st2.high; + var ot2 = st2.low; + var ut2 = l2[z2 - 16]; + var ct2 = ut2.high; + var lt2 = ut2.low; + G2 = Q2 + ot2; + Y2 = X2 + at2 + (G2 >>> 0 < Q2 >>> 0 ? 1 : 0); + G2 += nt2; + Y2 = Y2 + it2 + (G2 >>> 0 < nt2 >>> 0 ? 1 : 0); + G2 += lt2; + Y2 = Y2 + ct2 + (G2 >>> 0 < lt2 >>> 0 ? 1 : 0); + W2.high = Y2; + W2.low = G2; + } + var ft2 = V2 & H2 ^ ~V2 & K2; + var ht2 = L2 & U2 ^ ~L2 & j2; + var dt2 = x & B2 ^ x & k ^ B2 & k; + var vt2 = R2 & O2 ^ R2 & C2 ^ O2 & C2; + var pt2 = (x >>> 28 | R2 << 4) ^ (x << 30 | R2 >>> 2) ^ (x << 25 | R2 >>> 7); + var gt2 = (R2 >>> 28 | x << 4) ^ (R2 << 30 | x >>> 2) ^ (R2 << 25 | x >>> 7); + var yt2 = (V2 >>> 14 | L2 << 18) ^ (V2 >>> 18 | L2 << 14) ^ (V2 << 23 | L2 >>> 9); + var mt2 = (L2 >>> 14 | V2 << 18) ^ (L2 >>> 18 | V2 << 14) ^ (L2 << 23 | V2 >>> 9); + var wt2 = c2[z2]; + var St2 = wt2.high; + var _t2 = wt2.low; + var bt2 = F2 + mt2; + var Et2 = q2 + yt2 + (bt2 >>> 0 < F2 >>> 0 ? 1 : 0); + var bt2 = bt2 + ht2; + var Et2 = Et2 + ft2 + (bt2 >>> 0 < ht2 >>> 0 ? 1 : 0); + var bt2 = bt2 + _t2; + var Et2 = Et2 + St2 + (bt2 >>> 0 < _t2 >>> 0 ? 1 : 0); + var bt2 = bt2 + G2; + var Et2 = Et2 + Y2 + (bt2 >>> 0 < G2 >>> 0 ? 1 : 0); + var Dt2 = gt2 + vt2; + var Mt2 = pt2 + dt2 + (Dt2 >>> 0 < gt2 >>> 0 ? 1 : 0); + q2 = K2; + F2 = j2; + K2 = H2; + j2 = U2; + H2 = V2; + U2 = L2; + L2 = P2 + bt2 | 0; + V2 = N2 + Et2 + (L2 >>> 0 < P2 >>> 0 ? 1 : 0) | 0; + N2 = k; + P2 = C2; + k = B2; + C2 = O2; + B2 = x; + O2 = R2; + R2 = bt2 + Dt2 | 0; + x = Et2 + Mt2 + (R2 >>> 0 < bt2 >>> 0 ? 1 : 0) | 0; + } + v2 = i3.low = v2 + R2; + i3.high = d2 + x + (v2 >>> 0 < R2 >>> 0 ? 1 : 0); + g2 = n22.low = g2 + O2; + n22.high = p2 + B2 + (g2 >>> 0 < O2 >>> 0 ? 1 : 0); + m2 = s22.low = m2 + C2; + s22.high = y2 + k + (m2 >>> 0 < C2 >>> 0 ? 1 : 0); + S2 = a22.low = S2 + P2; + a22.high = w2 + N2 + (S2 >>> 0 < P2 >>> 0 ? 1 : 0); + b2 = o22.low = b2 + L2; + o22.high = _2 + V2 + (b2 >>> 0 < L2 >>> 0 ? 1 : 0); + D2 = u22.low = D2 + U2; + u22.high = E2 + H2 + (D2 >>> 0 < U2 >>> 0 ? 1 : 0); + T2 = f22.low = T2 + j2; + f22.high = M2 + K2 + (T2 >>> 0 < j2 >>> 0 ? 1 : 0); + A2 = h2.low = A2 + F2; + h2.high = I2 + q2 + (A2 >>> 0 < F2 >>> 0 ? 1 : 0); + }, _doFinalize: function() { + var t4 = this._data; + var e4 = t4.words; + var r4 = 8 * this._nDataBytes; + var i3 = 8 * t4.sigBytes; + e4[i3 >>> 5] |= 128 << 24 - i3 % 32; + e4[(i3 + 128 >>> 10 << 5) + 30] = Math.floor(r4 / 4294967296); + e4[(i3 + 128 >>> 10 << 5) + 31] = r4; + t4.sigBytes = 4 * e4.length; + this._process(); + var n22 = this._hash.toX32(); + return n22; + }, clone: function() { + var t4 = i22.clone.call(this); + t4._hash = this._hash.clone(); + return t4; + }, blockSize: 1024 / 32 }); + e3.SHA512 = i22._createHelper(f2); + e3.HmacSHA512 = i22._createHmacHelper(f2); + })(); + return t3.SHA512; + }); + }, 4253: function(t22, e22, r22) { + (function(i22, n2, s2) { + t22.exports = n2(r22(8249), r22(8269), r22(8214), r22(888), r22(5109)); + })(this, function(t3) { + (function() { + var e3 = t3; + var r3 = e3.lib; + var i22 = r3.WordArray; + var n2 = r3.BlockCipher; + var s2 = e3.algo; + var a2 = [57, 49, 41, 33, 25, 17, 9, 1, 58, 50, 42, 34, 26, 18, 10, 2, 59, 51, 43, 35, 27, 19, 11, 3, 60, 52, 44, 36, 63, 55, 47, 39, 31, 23, 15, 7, 62, 54, 46, 38, 30, 22, 14, 6, 61, 53, 45, 37, 29, 21, 13, 5, 28, 20, 12, 4]; + var o2 = [14, 17, 11, 24, 1, 5, 3, 28, 15, 6, 21, 10, 23, 19, 12, 4, 26, 8, 16, 7, 27, 20, 13, 2, 41, 52, 31, 37, 47, 55, 30, 40, 51, 45, 33, 48, 44, 49, 39, 56, 34, 53, 46, 42, 50, 36, 29, 32]; + var u2 = [1, 2, 4, 6, 8, 10, 12, 14, 15, 17, 19, 21, 23, 25, 27, 28]; + var c2 = [{ 0: 8421888, 268435456: 32768, 536870912: 8421378, 805306368: 2, 1073741824: 512, 1342177280: 8421890, 1610612736: 8389122, 1879048192: 8388608, 2147483648: 514, 2415919104: 8389120, 2684354560: 33280, 2952790016: 8421376, 3221225472: 32770, 3489660928: 8388610, 3758096384: 0, 4026531840: 33282, 134217728: 0, 402653184: 8421890, 671088640: 33282, 939524096: 32768, 1207959552: 8421888, 1476395008: 512, 1744830464: 8421378, 2013265920: 2, 2281701376: 8389120, 2550136832: 33280, 2818572288: 8421376, 3087007744: 8389122, 3355443200: 8388610, 3623878656: 32770, 3892314112: 514, 4160749568: 8388608, 1: 32768, 268435457: 2, 536870913: 8421888, 805306369: 8388608, 1073741825: 8421378, 1342177281: 33280, 1610612737: 512, 1879048193: 8389122, 2147483649: 8421890, 2415919105: 8421376, 2684354561: 8388610, 2952790017: 33282, 3221225473: 514, 3489660929: 8389120, 3758096385: 32770, 4026531841: 0, 134217729: 8421890, 402653185: 8421376, 671088641: 8388608, 939524097: 512, 1207959553: 32768, 1476395009: 8388610, 1744830465: 2, 2013265921: 33282, 2281701377: 32770, 2550136833: 8389122, 2818572289: 514, 3087007745: 8421888, 3355443201: 8389120, 3623878657: 0, 3892314113: 33280, 4160749569: 8421378 }, { 0: 1074282512, 16777216: 16384, 33554432: 524288, 50331648: 1074266128, 67108864: 1073741840, 83886080: 1074282496, 100663296: 1073758208, 117440512: 16, 134217728: 540672, 150994944: 1073758224, 167772160: 1073741824, 184549376: 540688, 201326592: 524304, 218103808: 0, 234881024: 16400, 251658240: 1074266112, 8388608: 1073758208, 25165824: 540688, 41943040: 16, 58720256: 1073758224, 75497472: 1074282512, 92274688: 1073741824, 109051904: 524288, 125829120: 1074266128, 142606336: 524304, 159383552: 0, 176160768: 16384, 192937984: 1074266112, 209715200: 1073741840, 226492416: 540672, 243269632: 1074282496, 260046848: 16400, 268435456: 0, 285212672: 1074266128, 301989888: 1073758224, 318767104: 1074282496, 335544320: 1074266112, 352321536: 16, 369098752: 540688, 385875968: 16384, 402653184: 16400, 419430400: 524288, 436207616: 524304, 452984832: 1073741840, 469762048: 540672, 486539264: 1073758208, 503316480: 1073741824, 520093696: 1074282512, 276824064: 540688, 293601280: 524288, 310378496: 1074266112, 327155712: 16384, 343932928: 1073758208, 360710144: 1074282512, 377487360: 16, 394264576: 1073741824, 411041792: 1074282496, 427819008: 1073741840, 444596224: 1073758224, 461373440: 524304, 478150656: 0, 494927872: 16400, 511705088: 1074266128, 528482304: 540672 }, { 0: 260, 1048576: 0, 2097152: 67109120, 3145728: 65796, 4194304: 65540, 5242880: 67108868, 6291456: 67174660, 7340032: 67174400, 8388608: 67108864, 9437184: 67174656, 10485760: 65792, 11534336: 67174404, 12582912: 67109124, 13631488: 65536, 14680064: 4, 15728640: 256, 524288: 67174656, 1572864: 67174404, 2621440: 0, 3670016: 67109120, 4718592: 67108868, 5767168: 65536, 6815744: 65540, 7864320: 260, 8912896: 4, 9961472: 256, 11010048: 67174400, 12058624: 65796, 13107200: 65792, 14155776: 67109124, 15204352: 67174660, 16252928: 67108864, 16777216: 67174656, 17825792: 65540, 18874368: 65536, 19922944: 67109120, 20971520: 256, 22020096: 67174660, 23068672: 67108868, 24117248: 0, 25165824: 67109124, 26214400: 67108864, 27262976: 4, 28311552: 65792, 29360128: 67174400, 30408704: 260, 31457280: 65796, 32505856: 67174404, 17301504: 67108864, 18350080: 260, 19398656: 67174656, 20447232: 0, 21495808: 65540, 22544384: 67109120, 23592960: 256, 24641536: 67174404, 25690112: 65536, 26738688: 67174660, 27787264: 65796, 28835840: 67108868, 29884416: 67109124, 30932992: 67174400, 31981568: 4, 33030144: 65792 }, { 0: 2151682048, 65536: 2147487808, 131072: 4198464, 196608: 2151677952, 262144: 0, 327680: 4198400, 393216: 2147483712, 458752: 4194368, 524288: 2147483648, 589824: 4194304, 655360: 64, 720896: 2147487744, 786432: 2151678016, 851968: 4160, 917504: 4096, 983040: 2151682112, 32768: 2147487808, 98304: 64, 163840: 2151678016, 229376: 2147487744, 294912: 4198400, 360448: 2151682112, 425984: 0, 491520: 2151677952, 557056: 4096, 622592: 2151682048, 688128: 4194304, 753664: 4160, 819200: 2147483648, 884736: 4194368, 950272: 4198464, 1015808: 2147483712, 1048576: 4194368, 1114112: 4198400, 1179648: 2147483712, 1245184: 0, 1310720: 4160, 1376256: 2151678016, 1441792: 2151682048, 1507328: 2147487808, 1572864: 2151682112, 1638400: 2147483648, 1703936: 2151677952, 1769472: 4198464, 1835008: 2147487744, 1900544: 4194304, 1966080: 64, 2031616: 4096, 1081344: 2151677952, 1146880: 2151682112, 1212416: 0, 1277952: 4198400, 1343488: 4194368, 1409024: 2147483648, 1474560: 2147487808, 1540096: 64, 1605632: 2147483712, 1671168: 4096, 1736704: 2147487744, 1802240: 2151678016, 1867776: 4160, 1933312: 2151682048, 1998848: 4194304, 2064384: 4198464 }, { 0: 128, 4096: 17039360, 8192: 262144, 12288: 536870912, 16384: 537133184, 20480: 16777344, 24576: 553648256, 28672: 262272, 32768: 16777216, 36864: 537133056, 40960: 536871040, 45056: 553910400, 49152: 553910272, 53248: 0, 57344: 17039488, 61440: 553648128, 2048: 17039488, 6144: 553648256, 10240: 128, 14336: 17039360, 18432: 262144, 22528: 537133184, 26624: 553910272, 30720: 536870912, 34816: 537133056, 38912: 0, 43008: 553910400, 47104: 16777344, 51200: 536871040, 55296: 553648128, 59392: 16777216, 63488: 262272, 65536: 262144, 69632: 128, 73728: 536870912, 77824: 553648256, 81920: 16777344, 86016: 553910272, 90112: 537133184, 94208: 16777216, 98304: 553910400, 102400: 553648128, 106496: 17039360, 110592: 537133056, 114688: 262272, 118784: 536871040, 122880: 0, 126976: 17039488, 67584: 553648256, 71680: 16777216, 75776: 17039360, 79872: 537133184, 83968: 536870912, 88064: 17039488, 92160: 128, 96256: 553910272, 100352: 262272, 104448: 553910400, 108544: 0, 112640: 553648128, 116736: 16777344, 120832: 262144, 124928: 537133056, 129024: 536871040 }, { 0: 268435464, 256: 8192, 512: 270532608, 768: 270540808, 1024: 268443648, 1280: 2097152, 1536: 2097160, 1792: 268435456, 2048: 0, 2304: 268443656, 2560: 2105344, 2816: 8, 3072: 270532616, 3328: 2105352, 3584: 8200, 3840: 270540800, 128: 270532608, 384: 270540808, 640: 8, 896: 2097152, 1152: 2105352, 1408: 268435464, 1664: 268443648, 1920: 8200, 2176: 2097160, 2432: 8192, 2688: 268443656, 2944: 270532616, 3200: 0, 3456: 270540800, 3712: 2105344, 3968: 268435456, 4096: 268443648, 4352: 270532616, 4608: 270540808, 4864: 8200, 5120: 2097152, 5376: 268435456, 5632: 268435464, 5888: 2105344, 6144: 2105352, 6400: 0, 6656: 8, 6912: 270532608, 7168: 8192, 7424: 268443656, 7680: 270540800, 7936: 2097160, 4224: 8, 4480: 2105344, 4736: 2097152, 4992: 268435464, 5248: 268443648, 5504: 8200, 5760: 270540808, 6016: 270532608, 6272: 270540800, 6528: 270532616, 6784: 8192, 7040: 2105352, 7296: 2097160, 7552: 0, 7808: 268435456, 8064: 268443656 }, { 0: 1048576, 16: 33555457, 32: 1024, 48: 1049601, 64: 34604033, 80: 0, 96: 1, 112: 34603009, 128: 33555456, 144: 1048577, 160: 33554433, 176: 34604032, 192: 34603008, 208: 1025, 224: 1049600, 240: 33554432, 8: 34603009, 24: 0, 40: 33555457, 56: 34604032, 72: 1048576, 88: 33554433, 104: 33554432, 120: 1025, 136: 1049601, 152: 33555456, 168: 34603008, 184: 1048577, 200: 1024, 216: 34604033, 232: 1, 248: 1049600, 256: 33554432, 272: 1048576, 288: 33555457, 304: 34603009, 320: 1048577, 336: 33555456, 352: 34604032, 368: 1049601, 384: 1025, 400: 34604033, 416: 1049600, 432: 1, 448: 0, 464: 34603008, 480: 33554433, 496: 1024, 264: 1049600, 280: 33555457, 296: 34603009, 312: 1, 328: 33554432, 344: 1048576, 360: 1025, 376: 34604032, 392: 33554433, 408: 34603008, 424: 0, 440: 34604033, 456: 1049601, 472: 1024, 488: 33555456, 504: 1048577 }, { 0: 134219808, 1: 131072, 2: 134217728, 3: 32, 4: 131104, 5: 134350880, 6: 134350848, 7: 2048, 8: 134348800, 9: 134219776, 10: 133120, 11: 134348832, 12: 2080, 13: 0, 14: 134217760, 15: 133152, 2147483648: 2048, 2147483649: 134350880, 2147483650: 134219808, 2147483651: 134217728, 2147483652: 134348800, 2147483653: 133120, 2147483654: 133152, 2147483655: 32, 2147483656: 134217760, 2147483657: 2080, 2147483658: 131104, 2147483659: 134350848, 2147483660: 0, 2147483661: 134348832, 2147483662: 134219776, 2147483663: 131072, 16: 133152, 17: 134350848, 18: 32, 19: 2048, 20: 134219776, 21: 134217760, 22: 134348832, 23: 131072, 24: 0, 25: 131104, 26: 134348800, 27: 134219808, 28: 134350880, 29: 133120, 30: 2080, 31: 134217728, 2147483664: 131072, 2147483665: 2048, 2147483666: 134348832, 2147483667: 133152, 2147483668: 32, 2147483669: 134348800, 2147483670: 134217728, 2147483671: 134219808, 2147483672: 134350880, 2147483673: 134217760, 2147483674: 134219776, 2147483675: 0, 2147483676: 133120, 2147483677: 2080, 2147483678: 131104, 2147483679: 134350848 }]; + var l2 = [4160749569, 528482304, 33030144, 2064384, 129024, 8064, 504, 2147483679]; + var f2 = s2.DES = n2.extend({ _doReset: function() { + var t4 = this._key; + var e4 = t4.words; + var r4 = []; + for (var i3 = 0; i3 < 56; i3++) { + var n22 = a2[i3] - 1; + r4[i3] = e4[n22 >>> 5] >>> 31 - n22 % 32 & 1; + } + var s22 = this._subKeys = []; + for (var c22 = 0; c22 < 16; c22++) { + var l22 = s22[c22] = []; + var f22 = u2[c22]; + for (var i3 = 0; i3 < 24; i3++) { + l22[i3 / 6 | 0] |= r4[(o2[i3] - 1 + f22) % 28] << 31 - i3 % 6; + l22[4 + (i3 / 6 | 0)] |= r4[28 + (o2[i3 + 24] - 1 + f22) % 28] << 31 - i3 % 6; + } + l22[0] = l22[0] << 1 | l22[0] >>> 31; + for (var i3 = 1; i3 < 7; i3++) + l22[i3] = l22[i3] >>> 4 * (i3 - 1) + 3; + l22[7] = l22[7] << 5 | l22[7] >>> 27; + } + var h22 = this._invSubKeys = []; + for (var i3 = 0; i3 < 16; i3++) + h22[i3] = s22[15 - i3]; + }, encryptBlock: function(t4, e4) { + this._doCryptBlock(t4, e4, this._subKeys); + }, decryptBlock: function(t4, e4) { + this._doCryptBlock(t4, e4, this._invSubKeys); + }, _doCryptBlock: function(t4, e4, r4) { + this._lBlock = t4[e4]; + this._rBlock = t4[e4 + 1]; + h2.call(this, 4, 252645135); + h2.call(this, 16, 65535); + d2.call(this, 2, 858993459); + d2.call(this, 8, 16711935); + h2.call(this, 1, 1431655765); + for (var i3 = 0; i3 < 16; i3++) { + var n22 = r4[i3]; + var s22 = this._lBlock; + var a22 = this._rBlock; + var o22 = 0; + for (var u22 = 0; u22 < 8; u22++) + o22 |= c2[u22][((a22 ^ n22[u22]) & l2[u22]) >>> 0]; + this._lBlock = a22; + this._rBlock = s22 ^ o22; + } + var f22 = this._lBlock; + this._lBlock = this._rBlock; + this._rBlock = f22; + h2.call(this, 1, 1431655765); + d2.call(this, 8, 16711935); + d2.call(this, 2, 858993459); + h2.call(this, 16, 65535); + h2.call(this, 4, 252645135); + t4[e4] = this._lBlock; + t4[e4 + 1] = this._rBlock; + }, keySize: 64 / 32, ivSize: 64 / 32, blockSize: 64 / 32 }); + function h2(t4, e4) { + var r4 = (this._lBlock >>> t4 ^ this._rBlock) & e4; + this._rBlock ^= r4; + this._lBlock ^= r4 << t4; + } + function d2(t4, e4) { + var r4 = (this._rBlock >>> t4 ^ this._lBlock) & e4; + this._lBlock ^= r4; + this._rBlock ^= r4 << t4; + } + e3.DES = n2._createHelper(f2); + var v2 = s2.TripleDES = n2.extend({ _doReset: function() { + var t4 = this._key; + var e4 = t4.words; + if (2 !== e4.length && 4 !== e4.length && e4.length < 6) + throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192."); + var r4 = e4.slice(0, 2); + var n22 = e4.length < 4 ? e4.slice(0, 2) : e4.slice(2, 4); + var s22 = e4.length < 6 ? e4.slice(0, 2) : e4.slice(4, 6); + this._des1 = f2.createEncryptor(i22.create(r4)); + this._des2 = f2.createEncryptor(i22.create(n22)); + this._des3 = f2.createEncryptor(i22.create(s22)); + }, encryptBlock: function(t4, e4) { + this._des1.encryptBlock(t4, e4); + this._des2.decryptBlock(t4, e4); + this._des3.encryptBlock(t4, e4); + }, decryptBlock: function(t4, e4) { + this._des3.decryptBlock(t4, e4); + this._des2.encryptBlock(t4, e4); + this._des1.decryptBlock(t4, e4); + }, keySize: 192 / 32, ivSize: 64 / 32, blockSize: 64 / 32 }); + e3.TripleDES = n2._createHelper(v2); + })(); + return t3.TripleDES; + }); + }, 4938: function(t22, e22, r22) { + (function(i22, n2) { + t22.exports = n2(r22(8249)); + })(this, function(t3) { + (function(e3) { + var r3 = t3; + var i22 = r3.lib; + var n2 = i22.Base; + var s2 = i22.WordArray; + var a2 = r3.x64 = {}; + a2.Word = n2.extend({ init: function(t4, e4) { + this.high = t4; + this.low = e4; + } }); + a2.WordArray = n2.extend({ init: function(t4, r4) { + t4 = this.words = t4 || []; + if (r4 != e3) + this.sigBytes = r4; + else + this.sigBytes = 8 * t4.length; + }, toX32: function() { + var t4 = this.words; + var e4 = t4.length; + var r4 = []; + for (var i3 = 0; i3 < e4; i3++) { + var n22 = t4[i3]; + r4.push(n22.high); + r4.push(n22.low); + } + return s2.create(r4, this.sigBytes); + }, clone: function() { + var t4 = n2.clone.call(this); + var e4 = t4.words = this.words.slice(0); + var r4 = e4.length; + for (var i3 = 0; i3 < r4; i3++) + e4[i3] = e4[i3].clone(); + return t4; + } }); + })(); + return t3; + }); + }, 4198: (t22, e22) => { + Object.defineProperty(e22, "__esModule", { value: true }); + e22.ErrorCode = void 0; + (function(t3) { + t3[t3["SUCCESS"] = 0] = "SUCCESS"; + t3[t3["CLIENT_ID_NOT_FOUND"] = 1] = "CLIENT_ID_NOT_FOUND"; + t3[t3["OPERATION_TOO_OFTEN"] = 2] = "OPERATION_TOO_OFTEN"; + t3[t3["REPEAT_MESSAGE"] = 3] = "REPEAT_MESSAGE"; + t3[t3["TIME_OUT"] = 4] = "TIME_OUT"; + })(e22.ErrorCode || (e22.ErrorCode = {})); + }, 9021: function(t22, e22, r22) { + var i22 = this && this.__importDefault || function(t3) { + return t3 && t3.__esModule ? t3 : { default: t3 }; + }; + const n2 = i22(r22(6893)); + const s2 = i22(r22(7555)); + const a2 = i22(r22(6379)); + const o2 = i22(r22(529)); + var u2; + (function(t3) { + function e3(t4) { + o2.default.debugMode = t4; + o2.default.info(`setDebugMode: ${t4}`); + } + t3.setDebugMode = e3; + function r3(t4) { + try { + s2.default.init(t4); + } catch (t5) { + o2.default.error(`init error`, t5); + } + } + t3.init = r3; + function i3(t4) { + try { + if (!t4.url) + throw new Error("invalid url"); + if (!t4.key || !t4.keyId) + throw new Error("invalid key or keyId"); + a2.default.socketUrl = t4.url; + a2.default.publicKeyId = t4.keyId; + a2.default.publicKey = t4.key; + } catch (t5) { + o2.default.error(`setSocketServer error`, t5); + } + } + t3.setSocketServer = i3; + function u22(t4) { + try { + s2.default.enableSocket(t4); + } catch (t5) { + o2.default.error(`enableSocket error`, t5); + } + } + t3.enableSocket = u22; + function c2() { + return n2.default.SDK_VERSION; + } + t3.getVersion = c2; + })(u2 || (u2 = {})); + t22.exports = u2; + }, 9478: function(t22, e22, r22) { + var i22 = this && this.__importDefault || function(t3) { + return t3 && t3.__esModule ? t3 : { default: t3 }; + }; + Object.defineProperty(e22, "__esModule", { value: true }); + const n2 = i22(r22(529)); + const s2 = i22(r22(496)); + const a2 = i22(r22(3555)); + const o2 = i22(r22(1929)); + const u2 = i22(r22(4379)); + const c2 = i22(r22(6899)); + const l2 = i22(r22(776)); + const f2 = i22(r22(2002)); + const h2 = i22(r22(5807)); + const d2 = i22(r22(9704)); + const v2 = i22(r22(6545)); + const p2 = i22(r22(3680)); + const g2 = i22(r22(7706)); + const y2 = i22(r22(4486)); + const m2 = i22(r22(5867)); + const w2 = i22(r22(7006)); + var S2; + (function(t3) { + let e3; + let r3; + let i3; + function S22() { + let t4; + try { + if ("undefined" != typeof uni) { + e3 = new v2.default(); + r3 = new p2.default(); + i3 = new g2.default(); + } else if ("undefined" != typeof tt) { + e3 = new f2.default(); + r3 = new h2.default(); + i3 = new d2.default(); + } else if ("undefined" != typeof my) { + e3 = new s2.default(); + r3 = new a2.default(); + i3 = new o2.default(); + } else if ("undefined" != typeof wx) { + e3 = new y2.default(); + r3 = new m2.default(); + i3 = new w2.default(); + } else if ("undefined" != typeof window) { + e3 = new u2.default(); + r3 = new c2.default(); + i3 = new l2.default(); + } + } catch (e4) { + n2.default.error(`init am error: ${e4}`); + t4 = e4; + } + if (!e3 || !r3 || !i3) { + if ("undefined" != typeof window) { + e3 = new u2.default(); + r3 = new c2.default(); + i3 = new l2.default(); + } + } + if (!e3 || !r3 || !i3) + throw new Error(`init am error: no api impl found, ${t4}`); + } + function _2() { + if (!e3) + S22(); + return e3; + } + t3.getDevice = _2; + function b2() { + if (!r3) + S22(); + return r3; + } + t3.getStorage = b2; + function E2() { + if (!i3) + S22(); + return i3; + } + t3.getWebSocket = E2; + })(S2 || (S2 = {})); + e22["default"] = S2; + }, 4685: function(t22, e22, r22) { + var i22 = this && this.__importDefault || function(t3) { + return t3 && t3.__esModule ? t3 : { default: t3 }; + }; + Object.defineProperty(e22, "__esModule", { value: true }); + const n2 = i22(r22(9478)); + var s2; + (function(t3) { + function e3() { + return n2.default.getDevice().os(); + } + t3.os = e3; + function r3() { + return n2.default.getDevice().osVersion(); + } + t3.osVersion = r3; + function i3() { + return n2.default.getDevice().model(); + } + t3.model = i3; + function s22() { + return n2.default.getDevice().brand(); + } + t3.brand = s22; + function a2() { + return n2.default.getDevice().platform(); + } + t3.platform = a2; + function o2() { + return n2.default.getDevice().platformVersion(); + } + t3.platformVersion = o2; + function u2() { + return n2.default.getDevice().platformId(); + } + t3.platformId = u2; + function c2() { + return n2.default.getDevice().language(); + } + t3.language = c2; + function l2() { + let t4 = n2.default.getDevice().userAgent; + if (t4) + return t4(); + return ""; + } + t3.userAgent = l2; + function f2(t4) { + n2.default.getDevice().getNetworkType(t4); + } + t3.getNetworkType = f2; + function h2(t4) { + n2.default.getDevice().onNetworkStatusChange(t4); + } + t3.onNetworkStatusChange = h2; + })(s2 || (s2 = {})); + e22["default"] = s2; + }, 7002: function(t22, e22, r22) { + var i22 = this && this.__importDefault || function(t3) { + return t3 && t3.__esModule ? t3 : { default: t3 }; + }; + Object.defineProperty(e22, "__esModule", { value: true }); + const n2 = i22(r22(6379)); + const s2 = i22(r22(1386)); + const a2 = i22(r22(4054)); + const o2 = r22(2918); + const u2 = i22(r22(7167)); + const c2 = i22(r22(529)); + const l2 = i22(r22(9478)); + const f2 = i22(r22(8506)); + var h2; + (function(t3) { + let e3; + let r3 = false; + let i3 = false; + let h22 = false; + let d2 = []; + const v2 = 10; + let p2 = 0; + t3.allowReconnect = true; + function g2() { + return r3 && i3; + } + t3.isAvailable = g2; + function y2(e4) { + let r4 = (/* @__PURE__ */ new Date()).getTime(); + if (r4 - p2 < 1e3) { + c2.default.warn(`enableSocket ${e4} fail: this function can only be called once a second`); + return; + } + p2 = r4; + t3.allowReconnect = e4; + if (e4) + t3.reconnect(10); + else + t3.close(`enableSocket ${e4}`); + } + t3.enableSocket = y2; + function m2(e4 = 0) { + if (!t3.allowReconnect) + return; + if (!_2()) + return; + setTimeout(function() { + w2(); + }, e4); + } + t3.reconnect = m2; + function w2() { + t3.allowReconnect = true; + if (!_2()) + return; + if (!b2()) + return; + h22 = true; + let r4 = n2.default.socketUrl; + try { + let t4 = f2.default.getSync(f2.default.KEY_REDIRECT_SERVER, ""); + if (t4) { + let e4 = o2.RedirectServerData.parse(t4); + let i4 = e4.addressList[0].split(","); + let n22 = i4[0]; + let s22 = Number(i4[1]); + let a22 = (/* @__PURE__ */ new Date()).getTime(); + if (a22 - e4.time < 1e3 * s22) + r4 = n22; + } + } catch (t4) { + } + e3 = l2.default.getWebSocket().connect({ url: r4, success: function() { + i3 = true; + S2(); + }, fail: function() { + i3 = false; + M2(); + m2(100); + } }); + e3.onOpen(T2); + e3.onClose(x); + e3.onError(A2); + e3.onMessage(I2); + } + t3.connect = w2; + function S2() { + if (i3 && r3) { + h22 = false; + s2.default.create().send(); + u2.default.getInstance().start(); + } + } + function _2() { + if (!n2.default.networkConnected) { + c2.default.error(`connect failed, network is not available`); + return false; + } + if (h22) { + c2.default.warn(`connecting`); + return false; + } + if (g2()) { + c2.default.warn(`already connected`); + return false; + } + return true; + } + function b2() { + var t4 = d2.length; + let e4 = (/* @__PURE__ */ new Date()).getTime(); + if (t4 > 0) { + for (var r4 = t4 - 1; r4 >= 0; r4--) + if (e4 - d2[r4] > 5e3) { + d2.splice(0, r4 + 1); + break; + } + } + t4 = d2.length; + d2.push(e4); + if (t4 >= v2) { + c2.default.error("connect failed, connection limit reached"); + return false; + } + return true; + } + function E2(t4 = "") { + null === e3 || void 0 === e3 || e3.close({ code: 1e3, reason: t4, success: function(t5) { + }, fail: function(t5) { + } }); + M2(); + } + t3.close = E2; + function D2(t4) { + if (r3 && r3) + null === e3 || void 0 === e3 || e3.send({ data: t4, success: function(t5) { + }, fail: function(t5) { + } }); + else + throw new Error(`socket not connect`); + } + t3.send = D2; + function M2(t4) { + var e4; + i3 = false; + r3 = false; + h22 = false; + u2.default.getInstance().cancel(); + if (n2.default.online) { + n2.default.online = false; + null === (e4 = n2.default.onlineState) || void 0 === e4 || e4.call(n2.default.onlineState, { online: n2.default.online }); + } + } + let T2 = function(t4) { + r3 = true; + S2(); + }; + let I2 = function(t4) { + try { + t4.data; + u2.default.getInstance().refresh(); + a2.default.receiveMessage(t4.data); + } catch (t5) { + } + }; + let A2 = function(t4) { + E2(`socket error`); + }; + let x = function(t4) { + M2(); + }; + })(h2 || (h2 = {})); + e22["default"] = h2; + }, 8506: function(t22, e22, r22) { + var i22 = this && this.__importDefault || function(t3) { + return t3 && t3.__esModule ? t3 : { default: t3 }; + }; + Object.defineProperty(e22, "__esModule", { value: true }); + const n2 = i22(r22(9478)); + var s2; + (function(t3) { + t3.KEY_APPID = "getui_appid"; + t3.KEY_CID = "getui_cid"; + t3.KEY_SESSION = "getui_session"; + t3.KEY_REGID = "getui_regid"; + t3.KEY_SOCKET_URL = "getui_socket_url"; + t3.KEY_DEVICE_ID = "getui_deviceid"; + t3.KEY_ADD_PHONE_INFO_TIME = "getui_api_time"; + t3.KEY_BIND_ALIAS_TIME = "getui_ba_time"; + t3.KEY_SET_TAG_TIME = "getui_st_time"; + t3.KEY_REDIRECT_SERVER = "getui_redirect_server"; + t3.KEY_LAST_CONNECT_TIME = "getui_last_connect_time"; + function e3(t4) { + n2.default.getStorage().set(t4); + } + t3.set = e3; + function r3(t4, e4) { + n2.default.getStorage().setSync(t4, e4); + } + t3.setSync = r3; + function i3(t4) { + n2.default.getStorage().get(t4); + } + t3.get = i3; + function s22(t4, e4) { + let r4 = n2.default.getStorage().getSync(t4); + return r4 ? r4 : e4; + } + t3.getSync = s22; + })(s2 || (s2 = {})); + e22["default"] = s2; + }, 496: function(t22, e22, r22) { + var i22 = this && this.__importDefault || function(t3) { + return t3 && t3.__esModule ? t3 : { default: t3 }; + }; + const n2 = i22(r22(3854)); + class s2 { + constructor() { + this.systemInfo = my.getSystemInfoSync(); + } + os() { + return n2.default.getStr(this.systemInfo, "platform"); + } + osVersion() { + return n2.default.getStr(this.systemInfo, "system"); + } + model() { + return n2.default.getStr(this.systemInfo, "model"); + } + brand() { + return n2.default.getStr(this.systemInfo, "brand"); + } + platform() { + return "MP-ALIPAY"; + } + platformVersion() { + return n2.default.getStr(this.systemInfo, "app") + " " + n2.default.getStr(this.systemInfo, "version"); + } + platformId() { + return my.getAppIdSync(); + } + language() { + return n2.default.getStr(this.systemInfo, "language"); + } + getNetworkType(t3) { + my.getNetworkType({ success: (e3) => { + var r3; + null === (r3 = t3.success) || void 0 === r3 || r3.call(t3.success, { networkType: e3.networkType }); + }, fail: () => { + var e3; + null === (e3 = t3.fail) || void 0 === e3 || e3.call(t3.fail, ""); + } }); + } + onNetworkStatusChange(t3) { + my.onNetworkStatusChange(t3); + } + } + t22.exports = s2; + }, 3555: (t22) => { + class e22 { + set(t3) { + my.setStorage({ key: t3.key, data: t3.data, success: t3.success, fail: t3.fail }); + } + setSync(t3, e3) { + my.setStorageSync({ key: t3, data: e3 }); + } + get(t3) { + my.getStorage({ key: t3.key, success: t3.success, fail: t3.fail, complete: t3.complete }); + } + getSync(t3) { + return my.getStorageSync({ key: t3 }).data; + } + } + t22.exports = e22; + }, 1929: (t22) => { + class e22 { + connect(t3) { + my.connectSocket({ url: t3.url, header: t3.header, method: t3.method, success: t3.success, fail: t3.fail, complete: t3.complete }); + return { onOpen: my.onSocketOpen, send: my.sendSocketMessage, onMessage: (t4) => { + my.onSocketMessage.call(my.onSocketMessage, (e3) => { + t4.call(t4, { data: e3 ? e3.data : "" }); + }); + }, onError: my.onSocketError, onClose: my.onSocketClose, close: my.closeSocket }; + } + } + t22.exports = e22; + }, 4379: (t22, e22) => { + Object.defineProperty(e22, "__esModule", { value: true }); + class r22 { + os() { + let t3 = window.navigator.userAgent.toLowerCase(); + if (t3.indexOf("android") > 0 || t3.indexOf("adr") > 0) + return "android"; + if (!!t3.match(/\(i[^;]+;( u;)? cpu.+mac os x/)) + return "ios"; + if (t3.indexOf("windows") > 0 || t3.indexOf("win32") > 0 || t3.indexOf("win64") > 0) + return "windows"; + if (t3.indexOf("macintosh") > 0 || t3.indexOf("mac os") > 0) + return "mac os"; + if (t3.indexOf("linux") > 0) + return "linux"; + if (t3.indexOf("unix") > 0) + return "linux"; + return "other"; + } + osVersion() { + let t3 = window.navigator.userAgent.toLowerCase(); + let e3 = t3.substring(t3.indexOf(";") + 1).trim(); + if (e3.indexOf(";") > 0) + return e3.substring(0, e3.indexOf(";")).trim(); + return e3.substring(0, e3.indexOf(")")).trim(); + } + model() { + return ""; + } + brand() { + return ""; + } + platform() { + return "H5"; + } + platformVersion() { + return ""; + } + platformId() { + return ""; + } + language() { + return window.navigator.language; + } + userAgent() { + return window.navigator.userAgent; + } + getNetworkType(t3) { + var e3; + null === (e3 = t3.success) || void 0 === e3 || e3.call(t3.success, { networkType: window.navigator.onLine ? "unknown" : "none" }); + } + onNetworkStatusChange(t3) { + } + } + e22["default"] = r22; + }, 6899: (t22, e22) => { + Object.defineProperty(e22, "__esModule", { value: true }); + class r22 { + set(t3) { + var e3; + window.localStorage.setItem(t3.key, t3.data); + null === (e3 = t3.success) || void 0 === e3 || e3.call(t3.success, ""); + } + setSync(t3, e3) { + window.localStorage.setItem(t3, e3); + } + get(t3) { + var e3; + let r3 = window.localStorage.getItem(t3.key); + null === (e3 = t3.success) || void 0 === e3 || e3.call(t3.success, r3); + } + getSync(t3) { + return window.localStorage.getItem(t3); + } + } + e22["default"] = r22; + }, 776: (t22, e22) => { + Object.defineProperty(e22, "__esModule", { value: true }); + class r22 { + connect(t3) { + let e3 = new WebSocket(t3.url); + return { send: (t4) => { + var r3, i22; + try { + e3.send(t4.data); + null === (r3 = t4.success) || void 0 === r3 || r3.call(t4.success, { errMsg: "" }); + } catch (e4) { + null === (i22 = t4.fail) || void 0 === i22 || i22.call(t4.fail, { errMsg: e4 + "" }); + } + }, close: (t4) => { + var r3, i22; + try { + e3.close(t4.code, t4.reason); + null === (r3 = t4.success) || void 0 === r3 || r3.call(t4.success, { errMsg: "" }); + } catch (e4) { + null === (i22 = t4.fail) || void 0 === i22 || i22.call(t4.fail, { errMsg: e4 + "" }); + } + }, onOpen: (r3) => { + e3.onopen = (e4) => { + var i22; + null === (i22 = t3.success) || void 0 === i22 || i22.call(t3.success, ""); + r3({ header: "" }); + }; + }, onError: (r3) => { + e3.onerror = (e4) => { + var i22; + null === (i22 = t3.fail) || void 0 === i22 || i22.call(t3.fail, ""); + r3({ errMsg: "" }); + }; + }, onMessage: (t4) => { + e3.onmessage = (e4) => { + t4({ data: e4.data }); + }; + }, onClose: (t4) => { + e3.onclose = (e4) => { + t4(e4); + }; + } }; + } + } + e22["default"] = r22; + }, 2002: function(t22, e22, r22) { + var i22 = this && this.__importDefault || function(t3) { + return t3 && t3.__esModule ? t3 : { default: t3 }; + }; + Object.defineProperty(e22, "__esModule", { value: true }); + const n2 = i22(r22(3854)); + class s2 { + constructor() { + this.systemInfo = tt.getSystemInfoSync(); + } + os() { + return n2.default.getStr(this.systemInfo, "platform"); + } + osVersion() { + return n2.default.getStr(this.systemInfo, "system"); + } + model() { + return n2.default.getStr(this.systemInfo, "model"); + } + brand() { + return n2.default.getStr(this.systemInfo, "brand"); + } + platform() { + return "MP-TOUTIAO"; + } + platformVersion() { + return n2.default.getStr(this.systemInfo, "appName") + " " + n2.default.getStr(this.systemInfo, "version"); + } + language() { + return ""; + } + platformId() { + return ""; + } + getNetworkType(t3) { + tt.getNetworkType(t3); + } + onNetworkStatusChange(t3) { + tt.onNetworkStatusChange(t3); + } + } + e22["default"] = s2; + }, 5807: (t22, e22) => { + Object.defineProperty(e22, "__esModule", { value: true }); + class r22 { + set(t3) { + tt.setStorage(t3); + } + setSync(t3, e3) { + tt.setStorageSync(t3, e3); + } + get(t3) { + tt.getStorage(t3); + } + getSync(t3) { + return tt.getStorageSync(t3); + } + } + e22["default"] = r22; + }, 9704: (t22, e22) => { + Object.defineProperty(e22, "__esModule", { value: true }); + class r22 { + connect(t3) { + let e3 = tt.connectSocket({ url: t3.url, header: t3.header, protocols: t3.protocols, success: t3.success, fail: t3.fail, complete: t3.complete }); + return { onOpen: e3.onOpen, send: e3.send, onMessage: e3.onMessage, onError: e3.onError, onClose: e3.onClose, close: e3.close }; + } + } + e22["default"] = r22; + }, 6545: function(t22, e22, r22) { + var i22 = this && this.__importDefault || function(t3) { + return t3 && t3.__esModule ? t3 : { default: t3 }; + }; + Object.defineProperty(e22, "__esModule", { value: true }); + const n2 = i22(r22(3854)); + class s2 { + constructor() { + try { + this.systemInfo = uni.getSystemInfoSync(); + this.accountInfo = uni.getAccountInfoSync(); + } catch (t3) { + } + } + os() { + return n2.default.getStr(this.systemInfo, "platform"); + } + model() { + return n2.default.getStr(this.systemInfo, "model"); + } + brand() { + return n2.default.getStr(this.systemInfo, "brand"); + } + osVersion() { + return n2.default.getStr(this.systemInfo, "system"); + } + platform() { + let t3 = ""; + t3 = "APP-PLUS"; + return t3; + } + platformVersion() { + return this.systemInfo ? this.systemInfo.version : ""; + } + platformId() { + return this.accountInfo ? this.accountInfo.miniProgram.appId : ""; + } + language() { + var t3; + return (null === (t3 = this.systemInfo) || void 0 === t3 ? void 0 : t3.language) ? this.systemInfo.language : ""; + } + userAgent() { + return window ? window.navigator.userAgent : ""; + } + getNetworkType(t3) { + uni.getNetworkType(t3); + } + onNetworkStatusChange(t3) { + uni.onNetworkStatusChange(t3); + } + } + e22["default"] = s2; + }, 3680: (t22, e22) => { + Object.defineProperty(e22, "__esModule", { value: true }); + class r22 { + set(t3) { + uni.setStorage(t3); + } + setSync(t3, e3) { + uni.setStorageSync(t3, e3); + } + get(t3) { + uni.getStorage(t3); + } + getSync(t3) { + return uni.getStorageSync(t3); + } + } + e22["default"] = r22; + }, 7706: (t22, e22) => { + Object.defineProperty(e22, "__esModule", { value: true }); + class r22 { + connect(t3) { + let e3 = uni.connectSocket(t3); + return { send: (t4) => { + null === e3 || void 0 === e3 || e3.send(t4); + }, close: (t4) => { + null === e3 || void 0 === e3 || e3.close(t4); + }, onOpen: (t4) => { + null === e3 || void 0 === e3 || e3.onOpen(t4); + }, onError: (t4) => { + null === e3 || void 0 === e3 || e3.onError(t4); + }, onMessage: (t4) => { + null === e3 || void 0 === e3 || e3.onMessage(t4); + }, onClose: (t4) => { + null === e3 || void 0 === e3 || e3.onClose(t4); + } }; + } + } + e22["default"] = r22; + }, 4486: function(t22, e22, r22) { + var i22 = this && this.__importDefault || function(t3) { + return t3 && t3.__esModule ? t3 : { default: t3 }; + }; + Object.defineProperty(e22, "__esModule", { value: true }); + const n2 = i22(r22(3854)); + class s2 { + constructor() { + this.systemInfo = wx.getSystemInfoSync(); + } + os() { + return n2.default.getStr(this.systemInfo, "platform"); + } + osVersion() { + return n2.default.getStr(this.systemInfo, "system"); + } + model() { + return n2.default.getStr(this.systemInfo, "model"); + } + brand() { + return n2.default.getStr(this.systemInfo, "brand"); + } + platform() { + return "MP-WEIXIN"; + } + platformVersion() { + return n2.default.getStr(this.systemInfo, "version"); + } + language() { + return n2.default.getStr(this.systemInfo, "language"); + } + platformId() { + if (wx.canIUse("getAccountInfoSync")) + return wx.getAccountInfoSync().miniProgram.appId; + return ""; + } + getNetworkType(t3) { + wx.getNetworkType({ success: (e3) => { + var r3; + null === (r3 = t3.success) || void 0 === r3 || r3.call(t3.success, { networkType: e3.networkType }); + }, fail: t3.fail }); + } + onNetworkStatusChange(t3) { + wx.onNetworkStatusChange(t3); + } + } + e22["default"] = s2; + }, 5867: (t22, e22) => { + Object.defineProperty(e22, "__esModule", { value: true }); + class r22 { + set(t3) { + wx.setStorage(t3); + } + setSync(t3, e3) { + wx.setStorageSync(t3, e3); + } + get(t3) { + wx.getStorage(t3); + } + getSync(t3) { + return wx.getStorageSync(t3); + } + } + e22["default"] = r22; + }, 7006: (t22, e22) => { + Object.defineProperty(e22, "__esModule", { value: true }); + class r22 { + connect(t3) { + let e3 = wx.connectSocket({ url: t3.url, header: t3.header, protocols: t3.protocols, success: t3.success, fail: t3.fail, complete: t3.complete }); + return { onOpen: e3.onOpen, send: e3.send, onMessage: e3.onMessage, onError: e3.onError, onClose: e3.onClose, close: e3.close }; + } + } + e22["default"] = r22; + }, 6893: (t22, e22) => { + Object.defineProperty(e22, "__esModule", { value: true }); + var r22; + (function(t3) { + t3.SDK_VERSION = "GTMP-2.0.4.dcloud"; + t3.DEFAULT_SOCKET_URL = "wss://wshzn.gepush.com:5223/nws"; + t3.SOCKET_PROTOCOL_VERSION = "1.0"; + t3.SERVER_PUBLIC_KEY = "MHwwDQYJKoZIhvcNAQEBBQADawAwaAJhAJp1rROuvBF7sBSnvLaesj2iFhMcY8aXyLvpnNLKs2wjL3JmEnyr++SlVa35liUlzi83tnAFkn3A9GB7pHBNzawyUkBh8WUhq5bnFIkk2RaDa6+5MpG84DEv52p7RR+aWwIDAQAB"; + t3.SERVER_PUBLIC_KEY_ID = "69d747c4b9f641baf4004be4297e9f3b"; + t3.ID_U_2_G = true; + })(r22 || (r22 = {})); + e22["default"] = r22; + }, 7555: function(t22, e22, r22) { + var i22 = this && this.__importDefault || function(t3) { + return t3 && t3.__esModule ? t3 : { default: t3 }; + }; + Object.defineProperty(e22, "__esModule", { value: true }); + const n2 = i22(r22(7002)); + const s2 = i22(r22(529)); + const a2 = i22(r22(6379)); + class o2 { + static init(t3) { + var e3; + if (this.inited) + return; + try { + this.checkAppid(t3.appid); + this.inited = true; + s2.default.info(`init: appid=${t3.appid}`); + a2.default.init(t3); + n2.default.connect(); + } catch (r3) { + this.inited = false; + null === (e3 = t3.onError) || void 0 === e3 || e3.call(t3.onError, { error: r3 }); + throw r3; + } + } + static enableSocket(t3) { + this.checkInit(); + n2.default.enableSocket(t3); + } + static checkInit() { + if (!this.inited) + throw new Error(`not init, please invoke init method firstly`); + } + static checkAppid(t3) { + if (null == t3 || void 0 == t3 || "" == t3.trim()) + throw new Error(`invalid appid ${t3}`); + } + } + o2.inited = false; + e22["default"] = o2; + }, 6379: function(t22, e22, r22) { + var i22 = this && this.__importDefault || function(t3) { + return t3 && t3.__esModule ? t3 : { default: t3 }; + }; + Object.defineProperty(e22, "__esModule", { value: true }); + const n2 = i22(r22(6667)); + const s2 = i22(r22(8506)); + const a2 = i22(r22(6893)); + const o2 = i22(r22(7002)); + const u2 = i22(r22(529)); + const c2 = i22(r22(4685)); + const l2 = i22(r22(2323)); + class f2 { + static init(t3) { + var e3; + if (a2.default.ID_U_2_G) + this.appid = l2.default.to_getui(t3.appid); + else + this.appid = t3.appid; + this.onError = t3.onError; + this.onClientId = t3.onClientId; + this.onlineState = t3.onlineState; + this.onPushMsg = t3.onPushMsg; + if (this.appid != s2.default.getSync(s2.default.KEY_APPID, this.appid)) { + u2.default.info("appid changed, clear session and cid"); + s2.default.setSync(s2.default.KEY_CID, ""); + s2.default.setSync(s2.default.KEY_SESSION, ""); + } + s2.default.setSync(s2.default.KEY_APPID, this.appid); + this.cid = s2.default.getSync(s2.default.KEY_CID, this.cid); + if (this.cid) + null === (e3 = this.onClientId) || void 0 === e3 || e3.call(this.onClientId, { cid: f2.cid }); + this.session = s2.default.getSync(s2.default.KEY_SESSION, this.session); + this.deviceId = s2.default.getSync(s2.default.KEY_DEVICE_ID, this.deviceId); + this.regId = s2.default.getSync(s2.default.KEY_REGID, this.regId); + if (!this.regId) { + this.regId = this.createRegId(); + s2.default.set({ key: s2.default.KEY_REGID, data: this.regId }); + } + this.socketUrl = s2.default.getSync(s2.default.KEY_SOCKET_URL, this.socketUrl); + let r3 = this; + c2.default.getNetworkType({ success: (t4) => { + r3.networkType = t4.networkType; + r3.networkConnected = "none" != r3.networkType && "" != r3.networkType; + } }); + c2.default.onNetworkStatusChange((t4) => { + r3.networkConnected = t4.isConnected; + r3.networkType = t4.networkType; + if (r3.networkConnected) + o2.default.reconnect(100); + }); + } + static createRegId() { + return `M-V${n2.default.md5Hex(this.getUuid())}-${(/* @__PURE__ */ new Date()).getTime()}`; + } + static getUuid() { + return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(t3) { + let e3 = 16 * Math.random() | 0, r3 = "x" === t3 ? e3 : 3 & e3 | 8; + return r3.toString(16); + }); + } + } + f2.appid = ""; + f2.cid = ""; + f2.regId = ""; + f2.session = ""; + f2.deviceId = ""; + f2.packetId = 1; + f2.online = false; + f2.socketUrl = a2.default.DEFAULT_SOCKET_URL; + f2.publicKeyId = a2.default.SERVER_PUBLIC_KEY_ID; + f2.publicKey = a2.default.SERVER_PUBLIC_KEY; + f2.lastAliasTime = 0; + f2.networkConnected = true; + f2.networkType = "none"; + e22["default"] = f2; + }, 9586: function(t22, e22, r22) { + var i22 = this && this.__importDefault || function(t3) { + return t3 && t3.__esModule ? t3 : { default: t3 }; + }; + var n2, s2; + Object.defineProperty(e22, "__esModule", { value: true }); + const a2 = i22(r22(661)); + const o2 = r22(4198); + const u2 = i22(r22(6379)); + class c2 extends a2.default { + constructor() { + super(...arguments); + this.actionMsgData = new l2(); + } + static initActionMsg(t3, ...e3) { + super.initMsg(t3); + t3.command = a2.default.Command.CLIENT_MSG; + t3.data = t3.actionMsgData = l2.create(); + return t3; + } + static parseActionMsg(t3, e3) { + super.parseMsg(t3, e3); + t3.actionMsgData = l2.parse(t3.data); + return t3; + } + send() { + setTimeout(() => { + var t3; + if (c2.waitingLoginMsgMap.has(this.actionMsgData.msgId) || c2.waitingResponseMsgMap.has(this.actionMsgData.msgId)) { + c2.waitingLoginMsgMap.delete(this.actionMsgData.msgId); + c2.waitingResponseMsgMap.delete(this.actionMsgData.msgId); + null === (t3 = this.callback) || void 0 === t3 || t3.call(this.callback, { resultCode: o2.ErrorCode.TIME_OUT, message: "waiting time out" }); + } + }, 1e4); + if (!u2.default.online) { + c2.waitingLoginMsgMap.set(this.actionMsgData.msgId, this); + return; + } + if (this.actionMsgData.msgAction != c2.ClientAction.RECEIVED) + c2.waitingResponseMsgMap.set(this.actionMsgData.msgId, this); + super.send(); + } + receive() { + } + static sendWaitingMessages() { + let t3 = this.waitingLoginMsgMap.keys(); + let e3; + while (e3 = t3.next(), !e3.done) { + let t4 = this.waitingLoginMsgMap.get(e3.value); + this.waitingLoginMsgMap.delete(e3.value); + null === t4 || void 0 === t4 || t4.send(); + } + } + static getWaitingResponseMessage(t3) { + return c2.waitingResponseMsgMap.get(t3); + } + static removeWaitingResponseMessage(t3) { + let e3 = c2.waitingResponseMsgMap.get(t3); + if (e3) + c2.waitingResponseMsgMap.delete(t3); + return e3; + } + } + c2.ServerAction = (n2 = class { + }, n2.PUSH_MESSAGE = "pushmessage", n2.REDIRECT_SERVER = "redirect_server", n2.ADD_PHONE_INFO_RESULT = "addphoneinfo", n2.SET_MODE_RESULT = "set_mode_result", n2.SET_TAG_RESULT = "settag_result", n2.BIND_ALIAS_RESULT = "response_bind", n2.UNBIND_ALIAS_RESULT = "response_unbind", n2.FEED_BACK_RESULT = "pushmessage_feedback", n2.RECEIVED = "received", n2); + c2.ClientAction = (s2 = class { + }, s2.ADD_PHONE_INFO = "addphoneinfo", s2.SET_MODE = "set_mode", s2.FEED_BACK = "pushmessage_feedback", s2.SET_TAGS = "set_tag", s2.BIND_ALIAS = "bind_alias", s2.UNBIND_ALIAS = "unbind_alias", s2.RECEIVED = "received", s2); + c2.waitingLoginMsgMap = /* @__PURE__ */ new Map(); + c2.waitingResponseMsgMap = /* @__PURE__ */ new Map(); + class l2 { + constructor() { + this.appId = ""; + this.cid = ""; + this.msgId = ""; + this.msgAction = ""; + this.msgData = ""; + this.msgExtraData = ""; + } + static create() { + let t3 = new l2(); + t3.appId = u2.default.appid; + t3.cid = u2.default.cid; + t3.msgId = (2147483647 & (/* @__PURE__ */ new Date()).getTime()).toString(); + return t3; + } + static parse(t3) { + let e3 = new l2(); + let r3 = JSON.parse(t3); + e3.appId = r3.appId; + e3.cid = r3.cid; + e3.msgId = r3.msgId; + e3.msgAction = r3.msgAction; + e3.msgData = r3.msgData; + e3.msgExtraData = r3.msgExtraData; + return e3; + } + } + e22["default"] = c2; + }, 4516: function(t22, e22, r22) { + var i22 = this && this.__importDefault || function(t3) { + return t3 && t3.__esModule ? t3 : { default: t3 }; + }; + Object.defineProperty(e22, "__esModule", { value: true }); + const n2 = i22(r22(4685)); + const s2 = i22(r22(8506)); + const a2 = i22(r22(6893)); + const o2 = r22(4198); + const u2 = i22(r22(9586)); + const c2 = i22(r22(6379)); + class l2 extends u2.default { + constructor() { + super(...arguments); + this.addPhoneInfoData = new f2(); + } + static create() { + let t3 = new l2(); + super.initActionMsg(t3); + t3.callback = (e3) => { + if (e3.resultCode != o2.ErrorCode.SUCCESS && e3.resultCode != o2.ErrorCode.REPEAT_MESSAGE) + setTimeout(function() { + t3.send(); + }, 30 * 1e3); + else + s2.default.set({ key: s2.default.KEY_ADD_PHONE_INFO_TIME, data: (/* @__PURE__ */ new Date()).getTime() }); + }; + t3.actionMsgData.msgAction = u2.default.ClientAction.ADD_PHONE_INFO; + t3.addPhoneInfoData = f2.create(); + t3.actionMsgData.msgData = JSON.stringify(t3.addPhoneInfoData); + return t3; + } + send() { + let t3 = (/* @__PURE__ */ new Date()).getTime(); + let e3 = s2.default.getSync(s2.default.KEY_ADD_PHONE_INFO_TIME, 0); + if (t3 - e3 < 24 * 60 * 60 * 1e3) + return; + super.send(); + } + } + class f2 { + constructor() { + this.model = ""; + this.brand = ""; + this.system_version = ""; + this.version = ""; + this.deviceid = ""; + this.type = ""; + } + static create() { + let t3 = new f2(); + t3.model = n2.default.model(); + t3.brand = n2.default.brand(); + t3.system_version = n2.default.osVersion(); + t3.version = a2.default.SDK_VERSION; + t3.device_token = ""; + t3.imei = ""; + t3.oaid = ""; + t3.mac = ""; + t3.idfa = ""; + t3.type = "MINIPROGRAM"; + t3.deviceid = `${t3.type}-${c2.default.deviceId}`; + t3.extra = { os: n2.default.os(), platform: n2.default.platform(), platformVersion: n2.default.platformVersion(), platformId: n2.default.platformId(), language: n2.default.language(), userAgent: n2.default.userAgent() }; + return t3; + } + } + e22["default"] = l2; + }, 8723: function(t22, e22, r22) { + var i22 = this && this.__importDefault || function(t3) { + return t3 && t3.__esModule ? t3 : { default: t3 }; + }; + var n2, s2; + Object.defineProperty(e22, "__esModule", { value: true }); + const a2 = i22(r22(6379)); + const o2 = r22(4198); + const u2 = i22(r22(9586)); + class c2 extends u2.default { + constructor() { + super(...arguments); + this.feedbackData = new l2(); + } + static create(t3, e3) { + let r3 = new c2(); + super.initActionMsg(r3); + r3.callback = (t4) => { + if (t4.resultCode != o2.ErrorCode.SUCCESS && t4.resultCode != o2.ErrorCode.REPEAT_MESSAGE) + setTimeout(function() { + r3.send(); + }, 30 * 1e3); + }; + r3.feedbackData = l2.create(t3, e3); + r3.actionMsgData.msgAction = u2.default.ClientAction.FEED_BACK; + r3.actionMsgData.msgData = JSON.stringify(r3.feedbackData); + return r3; + } + send() { + super.send(); + } + } + c2.ActionId = (n2 = class { + }, n2.RECEIVE = "0", n2.MP_RECEIVE = "210000", n2.WEB_RECEIVE = "220000", n2.BEGIN = "1", n2); + c2.RESULT = (s2 = class { + }, s2.OK = "ok", s2); + class l2 { + constructor() { + this.messageid = ""; + this.appkey = ""; + this.appid = ""; + this.taskid = ""; + this.actionid = ""; + this.result = ""; + this.timestamp = ""; + } + static create(t3, e3) { + let r3 = new l2(); + r3.messageid = t3.pushMessageData.messageid; + r3.appkey = t3.pushMessageData.appKey; + r3.appid = a2.default.appid; + r3.taskid = t3.pushMessageData.taskId; + r3.actionid = e3; + r3.result = c2.RESULT.OK; + r3.timestamp = (/* @__PURE__ */ new Date()).getTime().toString(); + return r3; + } + } + e22["default"] = c2; + }, 6362: function(t22, e22, r22) { + var i22 = this && this.__importDefault || function(t3) { + return t3 && t3.__esModule ? t3 : { default: t3 }; + }; + Object.defineProperty(e22, "__esModule", { value: true }); + const n2 = i22(r22(661)); + class s2 extends n2.default { + static create() { + let t3 = new s2(); + super.initMsg(t3); + t3.command = n2.default.Command.HEART_BEAT; + return t3; + } + } + e22["default"] = s2; + }, 1386: function(t22, e22, r22) { + var i22 = this && this.__importDefault || function(t3) { + return t3 && t3.__esModule ? t3 : { default: t3 }; + }; + Object.defineProperty(e22, "__esModule", { value: true }); + const n2 = i22(r22(6667)); + const s2 = i22(r22(6379)); + const a2 = i22(r22(661)); + class o2 extends a2.default { + constructor() { + super(...arguments); + this.keyNegotiateData = new u2(); + } + static create() { + let t3 = new o2(); + super.initMsg(t3); + t3.command = a2.default.Command.KEY_NEGOTIATE; + n2.default.resetKey(); + t3.data = t3.keyNegotiateData = u2.create(); + return t3; + } + send() { + super.send(); + } + } + class u2 { + constructor() { + this.appId = ""; + this.rsaPublicKeyId = ""; + this.algorithm = ""; + this.secretKey = ""; + this.iv = ""; + } + static create() { + let t3 = new u2(); + t3.appId = s2.default.appid; + t3.rsaPublicKeyId = s2.default.publicKeyId; + t3.algorithm = "AES"; + t3.secretKey = n2.default.getEncryptedSecretKey(); + t3.iv = n2.default.getEncryptedIV(); + return t3; + } + } + e22["default"] = o2; + }, 1280: function(t22, e22, r22) { + var i22 = this && this.__importDefault || function(t3) { + return t3 && t3.__esModule ? t3 : { default: t3 }; + }; + Object.defineProperty(e22, "__esModule", { value: true }); + const n2 = i22(r22(661)); + const s2 = i22(r22(6667)); + const a2 = i22(r22(8858)); + const o2 = i22(r22(529)); + const u2 = i22(r22(6379)); + class c2 extends n2.default { + constructor() { + super(...arguments); + this.keyNegotiateResultData = new l2(); + } + static parse(t3) { + let e3 = new c2(); + super.parseMsg(e3, t3); + e3.keyNegotiateResultData = l2.parse(e3.data); + return e3; + } + receive() { + var t3, e3; + if (0 != this.keyNegotiateResultData.errorCode) { + o2.default.error(`key negotiate fail: ${this.data}`); + null === (t3 = u2.default.onError) || void 0 === t3 || t3.call(u2.default.onError, { error: `key negotiate fail: ${this.data}` }); + return; + } + let r3 = this.keyNegotiateResultData.encryptType.split("/"); + if (!s2.default.algorithmMap.has(r3[0].trim().toLowerCase()) || !s2.default.modeMap.has(r3[1].trim().toLowerCase()) || !s2.default.paddingMap.has(r3[2].trim().toLowerCase())) { + o2.default.error(`key negotiate fail: ${this.data}`); + null === (e3 = u2.default.onError) || void 0 === e3 || e3.call(u2.default.onError, { error: `key negotiate fail: ${this.data}` }); + return; + } + s2.default.setEncryptParams(r3[0].trim().toLowerCase(), r3[1].trim().toLowerCase(), r3[2].trim().toLowerCase()); + a2.default.create().send(); + } + } + class l2 { + constructor() { + this.errorCode = -1; + this.errorMsg = ""; + this.encryptType = ""; + } + static parse(t3) { + let e3 = new l2(); + let r3 = JSON.parse(t3); + e3.errorCode = r3.errorCode; + e3.errorMsg = r3.errorMsg; + e3.encryptType = r3.encryptType; + return e3; + } + } + e22["default"] = c2; + }, 8858: function(t22, e22, r22) { + var i22 = this && this.__importDefault || function(t3) { + return t3 && t3.__esModule ? t3 : { default: t3 }; + }; + Object.defineProperty(e22, "__esModule", { value: true }); + const n2 = i22(r22(6379)); + const s2 = i22(r22(6667)); + const a2 = i22(r22(661)); + const o2 = i22(r22(4534)); + class u2 extends a2.default { + constructor() { + super(...arguments); + this.loginData = new c2(); + } + static create() { + let t3 = new u2(); + super.initMsg(t3); + t3.command = a2.default.Command.LOGIN; + t3.data = t3.loginData = c2.create(); + return t3; + } + send() { + if (!this.loginData.session || n2.default.cid != s2.default.md5Hex(this.loginData.session)) { + o2.default.create().send(); + return; + } + super.send(); + } + } + class c2 { + constructor() { + this.appId = ""; + this.session = ""; + } + static create() { + let t3 = new c2(); + t3.appId = n2.default.appid; + t3.session = n2.default.session; + return t3; + } + } + e22["default"] = u2; + }, 1606: function(t22, e22, r22) { + var i22 = this && this.__importDefault || function(t3) { + return t3 && t3.__esModule ? t3 : { default: t3 }; + }; + Object.defineProperty(e22, "__esModule", { value: true }); + const n2 = i22(r22(8506)); + const s2 = i22(r22(661)); + const a2 = i22(r22(6379)); + const o2 = i22(r22(9586)); + const u2 = i22(r22(4516)); + const c2 = i22(r22(8858)); + class l2 extends s2.default { + constructor() { + super(...arguments); + this.loginResultData = new f2(); + } + static parse(t3) { + let e3 = new l2(); + super.parseMsg(e3, t3); + e3.loginResultData = f2.parse(e3.data); + return e3; + } + receive() { + var t3; + if (0 != this.loginResultData.errorCode) { + this.data; + a2.default.session = a2.default.cid = ""; + n2.default.setSync(n2.default.KEY_CID, ""); + n2.default.setSync(n2.default.KEY_SESSION, ""); + c2.default.create().send(); + return; + } + if (!a2.default.online) { + a2.default.online = true; + null === (t3 = a2.default.onlineState) || void 0 === t3 || t3.call(a2.default.onlineState, { online: a2.default.online }); + } + o2.default.sendWaitingMessages(); + u2.default.create().send(); + } + } + class f2 { + constructor() { + this.errorCode = -1; + this.errorMsg = ""; + this.session = ""; + } + static parse(t3) { + let e3 = new f2(); + let r3 = JSON.parse(t3); + e3.errorCode = r3.errorCode; + e3.errorMsg = r3.errorMsg; + e3.session = r3.session; + return e3; + } + } + e22["default"] = l2; + }, 661: function(t22, e22, r22) { + var i22 = this && this.__importDefault || function(t3) { + return t3 && t3.__esModule ? t3 : { default: t3 }; + }; + var n2; + Object.defineProperty(e22, "__esModule", { value: true }); + const s2 = i22(r22(9593)); + const a2 = i22(r22(7002)); + const o2 = i22(r22(6893)); + const u2 = i22(r22(6379)); + class c2 { + constructor() { + this.version = ""; + this.command = 0; + this.packetId = 0; + this.timeStamp = 0; + this.data = ""; + this.signature = ""; + } + static initMsg(t3, ...e3) { + t3.version = o2.default.SOCKET_PROTOCOL_VERSION; + t3.command = 0; + t3.timeStamp = (/* @__PURE__ */ new Date()).getTime(); + return t3; + } + static parseMsg(t3, e3) { + let r3 = JSON.parse(e3); + t3.version = r3.version; + t3.command = r3.command; + t3.packetId = r3.packetId; + t3.timeStamp = r3.timeStamp; + t3.data = r3.data; + t3.signature = r3.signature; + return t3; + } + stringify() { + return JSON.stringify(this, ["version", "command", "packetId", "timeStamp", "data", "signature"]); + } + send() { + if (!a2.default.isAvailable()) + return; + this.packetId = u2.default.packetId++; + if (this.temp) + this.data = this.temp; + else + this.temp = this.data; + this.data = JSON.stringify(this.data); + this.stringify(); + if (this.command != c2.Command.HEART_BEAT) { + s2.default.sign(this); + if (this.data && this.command != c2.Command.KEY_NEGOTIATE) + s2.default.encrypt(this); + } + a2.default.send(this.stringify()); + } + } + c2.Command = (n2 = class { + }, n2.HEART_BEAT = 0, n2.KEY_NEGOTIATE = 1, n2.KEY_NEGOTIATE_RESULT = 16, n2.REGISTER = 2, n2.REGISTER_RESULT = 32, n2.LOGIN = 3, n2.LOGIN_RESULT = 48, n2.LOGOUT = 4, n2.LOGOUT_RESULT = 64, n2.CLIENT_MSG = 5, n2.SERVER_MSG = 80, n2.SERVER_CLOSE = 96, n2.REDIRECT_SERVER = 112, n2); + e22["default"] = c2; + }, 9593: function(t22, e22, r22) { + var i22 = this && this.__importDefault || function(t3) { + return t3 && t3.__esModule ? t3 : { default: t3 }; + }; + Object.defineProperty(e22, "__esModule", { value: true }); + const n2 = i22(r22(6667)); + var s2; + (function(t3) { + function e3(t4) { + t4.data = n2.default.encrypt(t4.data); + } + t3.encrypt = e3; + function r3(t4) { + t4.data = n2.default.decrypt(t4.data); + } + t3.decrypt = r3; + function i3(t4) { + t4.signature = n2.default.sha256(`${t4.timeStamp}${t4.packetId}${t4.command}${t4.data}`); + } + t3.sign = i3; + function s22(t4) { + let e4 = n2.default.sha256(`${t4.timeStamp}${t4.packetId}${t4.command}${t4.data}`); + if (t4.signature != e4) + throw new Error(`msg signature vierfy failed`); + } + t3.verify = s22; + })(s2 || (s2 = {})); + e22["default"] = s2; + }, 4054: function(t22, e22, r22) { + var i22 = this && this.__importDefault || function(t3) { + return t3 && t3.__esModule ? t3 : { default: t3 }; + }; + Object.defineProperty(e22, "__esModule", { value: true }); + const n2 = i22(r22(1280)); + const s2 = i22(r22(1606)); + const a2 = i22(r22(661)); + const o2 = i22(r22(1277)); + const u2 = i22(r22(910)); + const c2 = i22(r22(9538)); + const l2 = i22(r22(9479)); + const f2 = i22(r22(6755)); + const h2 = i22(r22(2918)); + const d2 = i22(r22(9586)); + const v2 = i22(r22(9510)); + const p2 = i22(r22(4626)); + const g2 = i22(r22(7562)); + const y2 = i22(r22(9593)); + const m2 = i22(r22(9586)); + const w2 = i22(r22(9519)); + const S2 = i22(r22(8947)); + class _2 { + static receiveMessage(t3) { + let e3 = a2.default.parseMsg(new a2.default(), t3); + if (e3.command == a2.default.Command.HEART_BEAT) + return; + if (e3.command != a2.default.Command.KEY_NEGOTIATE_RESULT && e3.command != a2.default.Command.SERVER_CLOSE && e3.command != a2.default.Command.REDIRECT_SERVER) + y2.default.decrypt(e3); + if (e3.command != a2.default.Command.SERVER_CLOSE && e3.command != a2.default.Command.REDIRECT_SERVER) + y2.default.verify(e3); + switch (e3.command) { + case a2.default.Command.KEY_NEGOTIATE_RESULT: + n2.default.parse(e3.stringify()).receive(); + break; + case a2.default.Command.REGISTER_RESULT: + o2.default.parse(e3.stringify()).receive(); + break; + case a2.default.Command.LOGIN_RESULT: + s2.default.parse(e3.stringify()).receive(); + break; + case a2.default.Command.SERVER_MSG: + this.receiveActionMsg(e3.stringify()); + break; + case a2.default.Command.SERVER_CLOSE: + S2.default.parse(e3.stringify()).receive(); + break; + case a2.default.Command.REDIRECT_SERVER: + h2.default.parse(e3.stringify()).receive(); + break; + } + } + static receiveActionMsg(t3) { + let e3 = m2.default.parseActionMsg(new m2.default(), t3); + if (e3.actionMsgData.msgAction != d2.default.ServerAction.RECEIVED && e3.actionMsgData.msgAction != d2.default.ServerAction.REDIRECT_SERVER) { + let t4 = JSON.parse(e3.actionMsgData.msgData); + w2.default.create(t4.id).send(); + } + switch (e3.actionMsgData.msgAction) { + case d2.default.ServerAction.PUSH_MESSAGE: + f2.default.parse(t3).receive(); + break; + case d2.default.ServerAction.ADD_PHONE_INFO_RESULT: + u2.default.parse(t3).receive(); + break; + case d2.default.ServerAction.SET_MODE_RESULT: + v2.default.parse(t3).receive(); + break; + case d2.default.ServerAction.SET_TAG_RESULT: + p2.default.parse(t3).receive(); + break; + case d2.default.ServerAction.BIND_ALIAS_RESULT: + c2.default.parse(t3).receive(); + break; + case d2.default.ServerAction.UNBIND_ALIAS_RESULT: + g2.default.parse(t3).receive(); + break; + case d2.default.ServerAction.FEED_BACK_RESULT: + l2.default.parse(t3).receive(); + break; + case d2.default.ServerAction.RECEIVED: + w2.default.parse(t3).receive(); + break; + } + } + } + e22["default"] = _2; + }, 9519: function(t22, e22, r22) { + var i22 = this && this.__importDefault || function(t3) { + return t3 && t3.__esModule ? t3 : { default: t3 }; + }; + Object.defineProperty(e22, "__esModule", { value: true }); + const n2 = r22(4198); + const s2 = i22(r22(6379)); + const a2 = i22(r22(9586)); + class o2 extends a2.default { + constructor() { + super(...arguments); + this.receivedData = new u2(); + } + static create(t3) { + let e3 = new o2(); + super.initActionMsg(e3); + e3.callback = (t4) => { + if (t4.resultCode != n2.ErrorCode.SUCCESS && t4.resultCode != n2.ErrorCode.REPEAT_MESSAGE) + setTimeout(function() { + e3.send(); + }, 3 * 1e3); + }; + e3.actionMsgData.msgAction = a2.default.ClientAction.RECEIVED; + e3.receivedData = u2.create(t3); + e3.actionMsgData.msgData = JSON.stringify(e3.receivedData); + return e3; + } + static parse(t3) { + let e3 = new o2(); + super.parseActionMsg(e3, t3); + e3.receivedData = u2.parse(e3.data); + return e3; + } + receive() { + var t3; + let e3 = a2.default.getWaitingResponseMessage(this.actionMsgData.msgId); + if (e3 && e3.actionMsgData.msgAction == a2.default.ClientAction.ADD_PHONE_INFO || e3 && e3.actionMsgData.msgAction == a2.default.ClientAction.FEED_BACK) { + a2.default.removeWaitingResponseMessage(e3.actionMsgData.msgId); + null === (t3 = e3.callback) || void 0 === t3 || t3.call(e3.callback, { resultCode: n2.ErrorCode.SUCCESS, message: "received" }); + } + } + send() { + super.send(); + } + } + class u2 { + constructor() { + this.msgId = ""; + this.cid = ""; + } + static create(t3) { + let e3 = new u2(); + e3.cid = s2.default.cid; + e3.msgId = t3; + return e3; + } + static parse(t3) { + let e3 = new u2(); + let r3 = JSON.parse(t3); + e3.cid = r3.cid; + e3.msgId = r3.msgId; + return e3; + } + } + e22["default"] = o2; + }, 2918: function(t22, e22, r22) { + var i22 = this && this.__importDefault || function(t3) { + return t3 && t3.__esModule ? t3 : { default: t3 }; + }; + Object.defineProperty(e22, "__esModule", { value: true }); + e22.RedirectServerData = void 0; + const n2 = i22(r22(7002)); + const s2 = i22(r22(8506)); + const a2 = i22(r22(661)); + class o2 extends a2.default { + constructor() { + super(...arguments); + this.redirectServerData = new u2(); + } + static parse(t3) { + let e3 = new o2(); + super.parseMsg(e3, t3); + e3.redirectServerData = u2.parse(e3.data); + return e3; + } + receive() { + this.redirectServerData; + s2.default.setSync(s2.default.KEY_REDIRECT_SERVER, JSON.stringify(this.redirectServerData)); + n2.default.close("redirect server"); + n2.default.reconnect(this.redirectServerData.delay); + } + } + class u2 { + constructor() { + this.addressList = []; + this.delay = 0; + this.loc = ""; + this.conf = ""; + this.time = 0; + } + static parse(t3) { + let e3 = new u2(); + let r3 = JSON.parse(t3); + e3.addressList = r3.addressList; + e3.delay = r3.delay; + e3.loc = r3.loc; + e3.conf = r3.conf; + e3.time = r3.time ? r3.time : (/* @__PURE__ */ new Date()).getTime(); + return e3; + } + } + e22.RedirectServerData = u2; + e22["default"] = o2; + }, 4534: function(t22, e22, r22) { + var i22 = this && this.__importDefault || function(t3) { + return t3 && t3.__esModule ? t3 : { default: t3 }; + }; + Object.defineProperty(e22, "__esModule", { value: true }); + const n2 = i22(r22(6379)); + const s2 = i22(r22(661)); + class a2 extends s2.default { + constructor() { + super(...arguments); + this.registerData = new o2(); + } + static create() { + let t3 = new a2(); + super.initMsg(t3); + t3.command = s2.default.Command.REGISTER; + t3.data = t3.registerData = o2.create(); + return t3; + } + send() { + super.send(); + } + } + class o2 { + constructor() { + this.appId = ""; + this.regId = ""; + } + static create() { + let t3 = new o2(); + t3.appId = n2.default.appid; + t3.regId = n2.default.regId; + return t3; + } + } + e22["default"] = a2; + }, 1277: function(t22, e22, r22) { + var i22 = this && this.__importDefault || function(t3) { + return t3 && t3.__esModule ? t3 : { default: t3 }; + }; + Object.defineProperty(e22, "__esModule", { value: true }); + const n2 = i22(r22(661)); + const s2 = i22(r22(8506)); + const a2 = i22(r22(6379)); + const o2 = i22(r22(8858)); + const u2 = i22(r22(529)); + class c2 extends n2.default { + constructor() { + super(...arguments); + this.registerResultData = new l2(); + } + static parse(t3) { + let e3 = new c2(); + super.parseMsg(e3, t3); + e3.registerResultData = l2.parse(e3.data); + return e3; + } + receive() { + var t3, e3; + if (0 != this.registerResultData.errorCode || !this.registerResultData.cid || !this.registerResultData.session) { + u2.default.error(`register fail: ${this.data}`); + null === (t3 = a2.default.onError) || void 0 === t3 || t3.call(a2.default.onError, { error: `register fail: ${this.data}` }); + return; + } + if (a2.default.cid != this.registerResultData.cid) + s2.default.setSync(s2.default.KEY_ADD_PHONE_INFO_TIME, 0); + a2.default.cid = this.registerResultData.cid; + null === (e3 = a2.default.onClientId) || void 0 === e3 || e3.call(a2.default.onClientId, { cid: a2.default.cid }); + s2.default.set({ key: s2.default.KEY_CID, data: a2.default.cid }); + a2.default.session = this.registerResultData.session; + s2.default.set({ key: s2.default.KEY_SESSION, data: a2.default.session }); + a2.default.deviceId = this.registerResultData.deviceId; + s2.default.set({ key: s2.default.KEY_DEVICE_ID, data: a2.default.deviceId }); + o2.default.create().send(); + } + } + class l2 { + constructor() { + this.errorCode = -1; + this.errorMsg = ""; + this.cid = ""; + this.session = ""; + this.deviceId = ""; + this.regId = ""; + } + static parse(t3) { + let e3 = new l2(); + let r3 = JSON.parse(t3); + e3.errorCode = r3.errorCode; + e3.errorMsg = r3.errorMsg; + e3.cid = r3.cid; + e3.session = r3.session; + e3.deviceId = r3.deviceId; + e3.regId = r3.regId; + return e3; + } + } + e22["default"] = c2; + }, 8947: function(t22, e22, r22) { + var i22 = this && this.__importDefault || function(t3) { + return t3 && t3.__esModule ? t3 : { default: t3 }; + }; + Object.defineProperty(e22, "__esModule", { value: true }); + const n2 = i22(r22(7002)); + const s2 = i22(r22(529)); + const a2 = i22(r22(661)); + class o2 extends a2.default { + constructor() { + super(...arguments); + this.serverCloseData = new u2(); + } + static parse(t3) { + let e3 = new o2(); + super.parseMsg(e3, t3); + e3.serverCloseData = u2.parse(e3.data); + return e3; + } + receive() { + JSON.stringify(this.serverCloseData); + let t3 = `server close ${this.serverCloseData.code}`; + if (20 == this.serverCloseData.code || 23 == this.serverCloseData.code || 24 == this.serverCloseData.code) { + n2.default.allowReconnect = false; + n2.default.close(t3); + } else if (21 == this.serverCloseData.code) + this.safeClose21(t3); + else { + n2.default.allowReconnect = true; + n2.default.close(t3); + n2.default.reconnect(10); + } + } + safeClose21(t3) { + try { + if ("undefined" != typeof document) { + if (document.hasFocus() && "visible" == document.visibilityState) { + n2.default.allowReconnect = true; + n2.default.close(t3); + n2.default.reconnect(10); + return; + } + } + n2.default.allowReconnect = false; + n2.default.close(t3); + } catch (e3) { + s2.default.error(`ServerClose t1`, e3); + n2.default.allowReconnect = false; + n2.default.close(`${t3} error`); + } + } + } + class u2 { + constructor() { + this.code = -1; + this.msg = ""; + } + static parse(t3) { + let e3 = new u2(); + let r3 = JSON.parse(t3); + e3.code = r3.code; + e3.msg = r3.msg; + return e3; + } + } + e22["default"] = o2; + }, 910: function(t22, e22, r22) { + var i22 = this && this.__importDefault || function(t3) { + return t3 && t3.__esModule ? t3 : { default: t3 }; + }; + Object.defineProperty(e22, "__esModule", { value: true }); + const n2 = i22(r22(8506)); + const s2 = i22(r22(9586)); + class a2 extends s2.default { + constructor() { + super(...arguments); + this.addPhoneInfoResultData = new o2(); + } + static parse(t3) { + let e3 = new a2(); + super.parseActionMsg(e3, t3); + e3.addPhoneInfoResultData = o2.parse(e3.actionMsgData.msgData); + return e3; + } + receive() { + var t3; + this.addPhoneInfoResultData; + let e3 = s2.default.removeWaitingResponseMessage(this.actionMsgData.msgId); + if (e3) + null === (t3 = e3.callback) || void 0 === t3 || t3.call(e3.callback, { resultCode: this.addPhoneInfoResultData.errorCode, message: this.addPhoneInfoResultData.errorMsg }); + n2.default.set({ key: n2.default.KEY_ADD_PHONE_INFO_TIME, data: (/* @__PURE__ */ new Date()).getTime() }); + } + } + class o2 { + constructor() { + this.errorCode = -1; + this.errorMsg = ""; + } + static parse(t3) { + let e3 = new o2(); + let r3 = JSON.parse(t3); + e3.errorCode = r3.errorCode; + e3.errorMsg = r3.errorMsg; + return e3; + } + } + e22["default"] = a2; + }, 9538: function(t22, e22, r22) { + var i22 = this && this.__importDefault || function(t3) { + return t3 && t3.__esModule ? t3 : { default: t3 }; + }; + Object.defineProperty(e22, "__esModule", { value: true }); + const n2 = i22(r22(8506)); + const s2 = i22(r22(529)); + const a2 = i22(r22(9586)); + class o2 extends a2.default { + constructor() { + super(...arguments); + this.bindAliasResultData = new u2(); + } + static parse(t3) { + let e3 = new o2(); + super.parseActionMsg(e3, t3); + e3.bindAliasResultData = u2.parse(e3.actionMsgData.msgData); + return e3; + } + receive() { + var t3; + s2.default.info(`bind alias result`, this.bindAliasResultData); + let e3 = a2.default.removeWaitingResponseMessage(this.actionMsgData.msgId); + if (e3) + null === (t3 = e3.callback) || void 0 === t3 || t3.call(e3.callback, { resultCode: this.bindAliasResultData.errorCode, message: this.bindAliasResultData.errorMsg }); + n2.default.set({ key: n2.default.KEY_BIND_ALIAS_TIME, data: (/* @__PURE__ */ new Date()).getTime() }); + } + } + class u2 { + constructor() { + this.errorCode = -1; + this.errorMsg = ""; + } + static parse(t3) { + let e3 = new u2(); + let r3 = JSON.parse(t3); + e3.errorCode = r3.errorCode; + e3.errorMsg = r3.errorMsg; + return e3; + } + } + e22["default"] = o2; + }, 9479: function(t22, e22, r22) { + var i22 = this && this.__importDefault || function(t3) { + return t3 && t3.__esModule ? t3 : { default: t3 }; + }; + Object.defineProperty(e22, "__esModule", { value: true }); + const n2 = r22(4198); + const s2 = i22(r22(9586)); + class a2 extends s2.default { + constructor() { + super(...arguments); + this.feedbackResultData = new o2(); + } + static parse(t3) { + let e3 = new a2(); + super.parseActionMsg(e3, t3); + e3.feedbackResultData = o2.parse(e3.actionMsgData.msgData); + return e3; + } + receive() { + var t3; + this.feedbackResultData; + let e3 = s2.default.removeWaitingResponseMessage(this.actionMsgData.msgId); + if (e3) + null === (t3 = e3.callback) || void 0 === t3 || t3.call(e3.callback, { resultCode: n2.ErrorCode.SUCCESS, message: "received" }); + } + } + class o2 { + constructor() { + this.actionId = ""; + this.taskId = ""; + this.result = ""; + } + static parse(t3) { + let e3 = new o2(); + let r3 = JSON.parse(t3); + e3.actionId = r3.actionId; + e3.taskId = r3.taskId; + e3.result = r3.result; + return e3; + } + } + e22["default"] = a2; + }, 6755: function(t22, e22, r22) { + var i22 = this && this.__importDefault || function(t3) { + return t3 && t3.__esModule ? t3 : { default: t3 }; + }; + var n2; + Object.defineProperty(e22, "__esModule", { value: true }); + const s2 = i22(r22(6379)); + const a2 = i22(r22(9586)); + const o2 = i22(r22(8723)); + class u2 extends a2.default { + constructor() { + super(...arguments); + this.pushMessageData = new c2(); + } + static parse(t3) { + let e3 = new u2(); + super.parseActionMsg(e3, t3); + e3.pushMessageData = c2.parse(e3.actionMsgData.msgData); + return e3; + } + receive() { + var t3; + this.pushMessageData; + if (this.pushMessageData.appId != s2.default.appid || !this.pushMessageData.messageid || !this.pushMessageData.taskId) + this.stringify(); + o2.default.create(this, o2.default.ActionId.RECEIVE).send(); + o2.default.create(this, o2.default.ActionId.MP_RECEIVE).send(); + if (this.actionMsgData.msgExtraData && s2.default.onPushMsg) + null === (t3 = s2.default.onPushMsg) || void 0 === t3 || t3.call(s2.default.onPushMsg, { message: this.actionMsgData.msgExtraData }); + } + } + class c2 { + constructor() { + this.id = ""; + this.appKey = ""; + this.appId = ""; + this.messageid = ""; + this.taskId = ""; + this.actionChain = []; + this.cdnType = ""; + } + static parse(t3) { + let e3 = new c2(); + let r3 = JSON.parse(t3); + e3.id = r3.id; + e3.appKey = r3.appKey; + e3.appId = r3.appId; + e3.messageid = r3.messageid; + e3.taskId = r3.taskId; + e3.actionChain = r3.actionChain; + e3.cdnType = r3.cdnType; + return e3; + } + } + n2 = class { + }, n2.GO_TO = "goto", n2.TRANSMIT = "transmit"; + e22["default"] = u2; + }, 9510: function(t22, e22, r22) { + var i22 = this && this.__importDefault || function(t3) { + return t3 && t3.__esModule ? t3 : { default: t3 }; + }; + Object.defineProperty(e22, "__esModule", { value: true }); + const n2 = i22(r22(9586)); + class s2 extends n2.default { + constructor() { + super(...arguments); + this.setModeResultData = new a2(); + } + static parse(t3) { + let e3 = new s2(); + super.parseActionMsg(e3, t3); + e3.setModeResultData = a2.parse(e3.actionMsgData.msgData); + return e3; + } + receive() { + var t3; + this.setModeResultData; + let e3 = n2.default.removeWaitingResponseMessage(this.actionMsgData.msgId); + if (e3) + null === (t3 = e3.callback) || void 0 === t3 || t3.call(e3.callback, { resultCode: this.setModeResultData.errorCode, message: this.setModeResultData.errorMsg }); + } + } + class a2 { + constructor() { + this.errorCode = -1; + this.errorMsg = ""; + } + static parse(t3) { + let e3 = new a2(); + let r3 = JSON.parse(t3); + e3.errorCode = r3.errorCode; + e3.errorMsg = r3.errorMsg; + return e3; + } + } + e22["default"] = s2; + }, 4626: function(t22, e22, r22) { + var i22 = this && this.__importDefault || function(t3) { + return t3 && t3.__esModule ? t3 : { default: t3 }; + }; + Object.defineProperty(e22, "__esModule", { value: true }); + const n2 = i22(r22(8506)); + const s2 = i22(r22(529)); + const a2 = i22(r22(9586)); + class o2 extends a2.default { + constructor() { + super(...arguments); + this.setTagResultData = new u2(); + } + static parse(t3) { + let e3 = new o2(); + super.parseActionMsg(e3, t3); + e3.setTagResultData = u2.parse(e3.actionMsgData.msgData); + return e3; + } + receive() { + var t3; + s2.default.info(`set tag result`, this.setTagResultData); + let e3 = a2.default.removeWaitingResponseMessage(this.actionMsgData.msgId); + if (e3) + null === (t3 = e3.callback) || void 0 === t3 || t3.call(e3.callback, { resultCode: this.setTagResultData.errorCode, message: this.setTagResultData.errorMsg }); + n2.default.set({ key: n2.default.KEY_SET_TAG_TIME, data: (/* @__PURE__ */ new Date()).getTime() }); + } + } + class u2 { + constructor() { + this.errorCode = 0; + this.errorMsg = ""; + } + static parse(t3) { + let e3 = new u2(); + let r3 = JSON.parse(t3); + e3.errorCode = r3.errorCode; + e3.errorMsg = r3.errorMsg; + return e3; + } + } + e22["default"] = o2; + }, 7562: function(t22, e22, r22) { + var i22 = this && this.__importDefault || function(t3) { + return t3 && t3.__esModule ? t3 : { default: t3 }; + }; + Object.defineProperty(e22, "__esModule", { value: true }); + const n2 = i22(r22(8506)); + const s2 = i22(r22(529)); + const a2 = i22(r22(9586)); + class o2 extends a2.default { + constructor() { + super(...arguments); + this.unbindAliasResultData = new u2(); + } + static parse(t3) { + let e3 = new o2(); + super.parseActionMsg(e3, t3); + e3.unbindAliasResultData = u2.parse(e3.actionMsgData.msgData); + return e3; + } + receive() { + var t3; + s2.default.info(`unbind alias result`, this.unbindAliasResultData); + let e3 = a2.default.removeWaitingResponseMessage(this.actionMsgData.msgId); + if (e3) + null === (t3 = e3.callback) || void 0 === t3 || t3.call(e3.callback, { resultCode: this.unbindAliasResultData.errorCode, message: this.unbindAliasResultData.errorMsg }); + n2.default.set({ key: n2.default.KEY_BIND_ALIAS_TIME, data: (/* @__PURE__ */ new Date()).getTime() }); + } + } + class u2 { + constructor() { + this.errorCode = -1; + this.errorMsg = ""; + } + static parse(t3) { + let e3 = new u2(); + let r3 = JSON.parse(t3); + e3.errorCode = r3.errorCode; + e3.errorMsg = r3.errorMsg; + return e3; + } + } + e22["default"] = o2; + }, 8227: (t22, e22) => { + Object.defineProperty(e22, "__esModule", { value: true }); + class r22 { + constructor(t3) { + this.delay = 10; + this.delay = t3; + } + start() { + this.cancel(); + let t3 = this; + this.timer = setInterval(function() { + t3.run(); + }, this.delay); + } + cancel() { + if (this.timer) + clearInterval(this.timer); + } + } + e22["default"] = r22; + }, 7167: function(t22, e22, r22) { + var i22 = this && this.__importDefault || function(t3) { + return t3 && t3.__esModule ? t3 : { default: t3 }; + }; + var n2; + Object.defineProperty(e22, "__esModule", { value: true }); + const s2 = i22(r22(6362)); + const a2 = i22(r22(8227)); + class o2 extends a2.default { + static getInstance() { + return o2.InstanceHolder.instance; + } + run() { + s2.default.create().send(); + } + refresh() { + this.delay = 60 * 1e3; + this.start(); + } + } + o2.INTERVAL = 60 * 1e3; + o2.InstanceHolder = (n2 = class { + }, n2.instance = new o2(o2.INTERVAL), n2); + e22["default"] = o2; + }, 2323: function(t22, e22, r22) { + var i22 = this && this.__importDefault || function(t3) { + return t3 && t3.__esModule ? t3 : { default: t3 }; + }; + Object.defineProperty(e22, "__esModule", { value: true }); + const n2 = i22(r22(4736)); + const s2 = i22(r22(6667)); + var a2; + (function(t3) { + let e3 = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"; + let r3 = (0, n2.default)("9223372036854775808"); + function i3(t4) { + let e4 = a22(t4); + let r4 = o2(e4); + let i4 = r4[1]; + let n22 = r4[0]; + return u2(i4) + u2(n22); + } + t3.to_getui = i3; + function a22(t4) { + let e4 = s2.default.md5Hex(t4); + let r4 = c2(e4); + r4[6] &= 15; + r4[6] |= 48; + r4[8] &= 63; + r4[8] |= 128; + return r4; + } + function o2(t4) { + let e4 = (0, n2.default)(0); + let r4 = (0, n2.default)(0); + for (let r5 = 0; r5 < 8; r5++) + e4 = e4.multiply(256).plus((0, n2.default)(255 & t4[r5])); + for (let e5 = 8; e5 < 16; e5++) + r4 = r4.multiply(256).plus((0, n2.default)(255 & t4[e5])); + return [e4, r4]; + } + function u2(t4) { + if (t4 >= r3) + t4 = r3.multiply(2).minus(t4); + let i4 = ""; + for (; t4 > (0, n2.default)(0); t4 = t4.divide(62)) + i4 += e3.charAt(Number(t4.divmod(62).remainder)); + return i4; + } + function c2(t4) { + let e4 = t4.length; + if (e4 % 2 != 0) + return []; + let r4 = new Array(); + for (let i4 = 0; i4 < e4; i4 += 2) + r4.push(parseInt(t4.substring(i4, i4 + 2), 16)); + return r4; + } + })(a2 || (a2 = {})); + e22["default"] = a2; + }, 6667: function(t22, e22, r22) { + var i22 = this && this.__importDefault || function(t3) { + return t3 && t3.__esModule ? t3 : { default: t3 }; + }; + Object.defineProperty(e22, "__esModule", { value: true }); + const n2 = i22(r22(2620)); + const s2 = i22(r22(1354)); + const a2 = i22(r22(6379)); + var o2; + (function(t3) { + let e3; + let r3; + let i3; + let o22; + let u2 = new n2.default(); + let c2 = s2.default.mode.CBC; + let l2 = s2.default.pad.Pkcs7; + let f2 = s2.default.AES; + t3.algorithmMap = /* @__PURE__ */ new Map([["aes", s2.default.AES]]); + t3.modeMap = /* @__PURE__ */ new Map([["cbc", s2.default.mode.CBC], ["cfb", s2.default.mode.CFB], ["cfb128", s2.default.mode.CFB], ["ecb", s2.default.mode.ECB], ["ofb", s2.default.mode.OFB]]); + t3.paddingMap = /* @__PURE__ */ new Map([["nopadding", s2.default.pad.NoPadding], ["pkcs7", s2.default.pad.Pkcs7]]); + function h2() { + e3 = s2.default.MD5((/* @__PURE__ */ new Date()).getTime().toString()); + r3 = s2.default.MD5(e3); + u2.setPublicKey(a2.default.publicKey); + e3.toString(s2.default.enc.Hex); + r3.toString(s2.default.enc.Hex); + i3 = u2.encrypt(e3.toString(s2.default.enc.Hex)); + o22 = u2.encrypt(r3.toString(s2.default.enc.Hex)); + } + t3.resetKey = h2; + function d2(e4, r4, i4) { + f2 = t3.algorithmMap.get(e4); + c2 = t3.modeMap.get(r4); + l2 = t3.paddingMap.get(i4); + } + t3.setEncryptParams = d2; + function v2(t4) { + return f2.encrypt(t4, e3, { iv: r3, mode: c2, padding: l2 }).toString(); + } + t3.encrypt = v2; + function p2(t4) { + return f2.decrypt(t4, e3, { iv: r3, mode: c2, padding: l2 }).toString(s2.default.enc.Utf8); + } + t3.decrypt = p2; + function g2(t4) { + return s2.default.SHA256(t4).toString(s2.default.enc.Base64); + } + t3.sha256 = g2; + function y2(t4) { + return s2.default.MD5(t4).toString(s2.default.enc.Hex); + } + t3.md5Hex = y2; + function m2() { + return i3 ? i3 : ""; + } + t3.getEncryptedSecretKey = m2; + function w2() { + return o22 ? o22 : ""; + } + t3.getEncryptedIV = w2; + })(o2 || (o2 = {})); + e22["default"] = o2; + }, 529: (t22, e22) => { + Object.defineProperty(e22, "__esModule", { value: true }); + class r22 { + static info(...t3) { + if (this.debugMode) + console.info(`[GtPush]`, t3); + } + static warn(...t3) { + console.warn(`[GtPush]`, t3); + } + static error(...t3) { + console.error(`[GtPush]`, t3); + } + } + r22.debugMode = false; + e22["default"] = r22; + }, 3854: (t22, e22) => { + Object.defineProperty(e22, "__esModule", { value: true }); + class r22 { + static getStr(t3, e3) { + try { + if (!t3 || void 0 === t3[e3]) + return ""; + return t3[e3]; + } catch (t4) { + } + return ""; + } + } + e22["default"] = r22; + }, 2620: (t22, e22, r22) => { + r22.r(e22); + r22.d(e22, { JSEncrypt: () => wt2, default: () => St2 }); + var i22 = "0123456789abcdefghijklmnopqrstuvwxyz"; + function n2(t3) { + return i22.charAt(t3); + } + function s2(t3, e3) { + return t3 & e3; + } + function a2(t3, e3) { + return t3 | e3; + } + function o2(t3, e3) { + return t3 ^ e3; + } + function u2(t3, e3) { + return t3 & ~e3; + } + function c2(t3) { + if (0 == t3) + return -1; + var e3 = 0; + if (0 == (65535 & t3)) { + t3 >>= 16; + e3 += 16; + } + if (0 == (255 & t3)) { + t3 >>= 8; + e3 += 8; + } + if (0 == (15 & t3)) { + t3 >>= 4; + e3 += 4; + } + if (0 == (3 & t3)) { + t3 >>= 2; + e3 += 2; + } + if (0 == (1 & t3)) + ++e3; + return e3; + } + function l2(t3) { + var e3 = 0; + while (0 != t3) { + t3 &= t3 - 1; + ++e3; + } + return e3; + } + var f2 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; + var h2 = "="; + function d2(t3) { + var e3; + var r3; + var i3 = ""; + for (e3 = 0; e3 + 3 <= t3.length; e3 += 3) { + r3 = parseInt(t3.substring(e3, e3 + 3), 16); + i3 += f2.charAt(r3 >> 6) + f2.charAt(63 & r3); + } + if (e3 + 1 == t3.length) { + r3 = parseInt(t3.substring(e3, e3 + 1), 16); + i3 += f2.charAt(r3 << 2); + } else if (e3 + 2 == t3.length) { + r3 = parseInt(t3.substring(e3, e3 + 2), 16); + i3 += f2.charAt(r3 >> 2) + f2.charAt((3 & r3) << 4); + } + while ((3 & i3.length) > 0) + i3 += h2; + return i3; + } + function v2(t3) { + var e3 = ""; + var r3; + var i3 = 0; + var s22 = 0; + for (r3 = 0; r3 < t3.length; ++r3) { + if (t3.charAt(r3) == h2) + break; + var a22 = f2.indexOf(t3.charAt(r3)); + if (a22 < 0) + continue; + if (0 == i3) { + e3 += n2(a22 >> 2); + s22 = 3 & a22; + i3 = 1; + } else if (1 == i3) { + e3 += n2(s22 << 2 | a22 >> 4); + s22 = 15 & a22; + i3 = 2; + } else if (2 == i3) { + e3 += n2(s22); + e3 += n2(a22 >> 2); + s22 = 3 & a22; + i3 = 3; + } else { + e3 += n2(s22 << 2 | a22 >> 4); + e3 += n2(15 & a22); + i3 = 0; + } + } + if (1 == i3) + e3 += n2(s22 << 2); + return e3; + } + var g2; + var y2 = { decode: function(t3) { + var e3; + if (void 0 === g2) { + var r3 = "0123456789ABCDEF"; + var i3 = " \f\n\r  \u2028\u2029"; + g2 = {}; + for (e3 = 0; e3 < 16; ++e3) + g2[r3.charAt(e3)] = e3; + r3 = r3.toLowerCase(); + for (e3 = 10; e3 < 16; ++e3) + g2[r3.charAt(e3)] = e3; + for (e3 = 0; e3 < i3.length; ++e3) + g2[i3.charAt(e3)] = -1; + } + var n22 = []; + var s22 = 0; + var a22 = 0; + for (e3 = 0; e3 < t3.length; ++e3) { + var o22 = t3.charAt(e3); + if ("=" == o22) + break; + o22 = g2[o22]; + if (-1 == o22) + continue; + if (void 0 === o22) + throw new Error("Illegal character at offset " + e3); + s22 |= o22; + if (++a22 >= 2) { + n22[n22.length] = s22; + s22 = 0; + a22 = 0; + } else + s22 <<= 4; + } + if (a22) + throw new Error("Hex encoding incomplete: 4 bits missing"); + return n22; + } }; + var m2; + var w2 = { decode: function(t3) { + var e3; + if (void 0 === m2) { + var r3 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; + var i3 = "= \f\n\r  \u2028\u2029"; + m2 = /* @__PURE__ */ Object.create(null); + for (e3 = 0; e3 < 64; ++e3) + m2[r3.charAt(e3)] = e3; + m2["-"] = 62; + m2["_"] = 63; + for (e3 = 0; e3 < i3.length; ++e3) + m2[i3.charAt(e3)] = -1; + } + var n22 = []; + var s22 = 0; + var a22 = 0; + for (e3 = 0; e3 < t3.length; ++e3) { + var o22 = t3.charAt(e3); + if ("=" == o22) + break; + o22 = m2[o22]; + if (-1 == o22) + continue; + if (void 0 === o22) + throw new Error("Illegal character at offset " + e3); + s22 |= o22; + if (++a22 >= 4) { + n22[n22.length] = s22 >> 16; + n22[n22.length] = s22 >> 8 & 255; + n22[n22.length] = 255 & s22; + s22 = 0; + a22 = 0; + } else + s22 <<= 6; + } + switch (a22) { + case 1: + throw new Error("Base64 encoding incomplete: at least 2 bits missing"); + case 2: + n22[n22.length] = s22 >> 10; + break; + case 3: + n22[n22.length] = s22 >> 16; + n22[n22.length] = s22 >> 8 & 255; + break; + } + return n22; + }, re: /-----BEGIN [^-]+-----([A-Za-z0-9+\/=\s]+)-----END [^-]+-----|begin-base64[^\n]+\n([A-Za-z0-9+\/=\s]+)====/, unarmor: function(t3) { + var e3 = w2.re.exec(t3); + if (e3) + if (e3[1]) + t3 = e3[1]; + else if (e3[2]) + t3 = e3[2]; + else + throw new Error("RegExp out of sync"); + return w2.decode(t3); + } }; + var S2 = 1e13; + var _2 = function() { + function t3(t4) { + this.buf = [+t4 || 0]; + } + t3.prototype.mulAdd = function(t4, e3) { + var r3 = this.buf; + var i3 = r3.length; + var n22; + var s22; + for (n22 = 0; n22 < i3; ++n22) { + s22 = r3[n22] * t4 + e3; + if (s22 < S2) + e3 = 0; + else { + e3 = 0 | s22 / S2; + s22 -= e3 * S2; + } + r3[n22] = s22; + } + if (e3 > 0) + r3[n22] = e3; + }; + t3.prototype.sub = function(t4) { + var e3 = this.buf; + var r3 = e3.length; + var i3; + var n22; + for (i3 = 0; i3 < r3; ++i3) { + n22 = e3[i3] - t4; + if (n22 < 0) { + n22 += S2; + t4 = 1; + } else + t4 = 0; + e3[i3] = n22; + } + while (0 === e3[e3.length - 1]) + e3.pop(); + }; + t3.prototype.toString = function(t4) { + if (10 != (t4 || 10)) + throw new Error("only base 10 is supported"); + var e3 = this.buf; + var r3 = e3[e3.length - 1].toString(); + for (var i3 = e3.length - 2; i3 >= 0; --i3) + r3 += (S2 + e3[i3]).toString().substring(1); + return r3; + }; + t3.prototype.valueOf = function() { + var t4 = this.buf; + var e3 = 0; + for (var r3 = t4.length - 1; r3 >= 0; --r3) + e3 = e3 * S2 + t4[r3]; + return e3; + }; + t3.prototype.simplify = function() { + var t4 = this.buf; + return 1 == t4.length ? t4[0] : this; + }; + return t3; + }(); + var b2 = "…"; + var E2 = /^(\d\d)(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])([01]\d|2[0-3])(?:([0-5]\d)(?:([0-5]\d)(?:[.,](\d{1,3}))?)?)?(Z|[-+](?:[0]\d|1[0-2])([0-5]\d)?)?$/; + var D2 = /^(\d\d\d\d)(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])([01]\d|2[0-3])(?:([0-5]\d)(?:([0-5]\d)(?:[.,](\d{1,3}))?)?)?(Z|[-+](?:[0]\d|1[0-2])([0-5]\d)?)?$/; + function M2(t3, e3) { + if (t3.length > e3) + t3 = t3.substring(0, e3) + b2; + return t3; + } + var T2 = function() { + function t3(e3, r3) { + this.hexDigits = "0123456789ABCDEF"; + if (e3 instanceof t3) { + this.enc = e3.enc; + this.pos = e3.pos; + } else { + this.enc = e3; + this.pos = r3; + } + } + t3.prototype.get = function(t4) { + if (void 0 === t4) + t4 = this.pos++; + if (t4 >= this.enc.length) + throw new Error("Requesting byte offset " + t4 + " on a stream of length " + this.enc.length); + return "string" === typeof this.enc ? this.enc.charCodeAt(t4) : this.enc[t4]; + }; + t3.prototype.hexByte = function(t4) { + return this.hexDigits.charAt(t4 >> 4 & 15) + this.hexDigits.charAt(15 & t4); + }; + t3.prototype.hexDump = function(t4, e3, r3) { + var i3 = ""; + for (var n22 = t4; n22 < e3; ++n22) { + i3 += this.hexByte(this.get(n22)); + if (true !== r3) + switch (15 & n22) { + case 7: + i3 += " "; + break; + case 15: + i3 += "\n"; + break; + default: + i3 += " "; + } + } + return i3; + }; + t3.prototype.isASCII = function(t4, e3) { + for (var r3 = t4; r3 < e3; ++r3) { + var i3 = this.get(r3); + if (i3 < 32 || i3 > 176) + return false; + } + return true; + }; + t3.prototype.parseStringISO = function(t4, e3) { + var r3 = ""; + for (var i3 = t4; i3 < e3; ++i3) + r3 += String.fromCharCode(this.get(i3)); + return r3; + }; + t3.prototype.parseStringUTF = function(t4, e3) { + var r3 = ""; + for (var i3 = t4; i3 < e3; ) { + var n22 = this.get(i3++); + if (n22 < 128) + r3 += String.fromCharCode(n22); + else if (n22 > 191 && n22 < 224) + r3 += String.fromCharCode((31 & n22) << 6 | 63 & this.get(i3++)); + else + r3 += String.fromCharCode((15 & n22) << 12 | (63 & this.get(i3++)) << 6 | 63 & this.get(i3++)); + } + return r3; + }; + t3.prototype.parseStringBMP = function(t4, e3) { + var r3 = ""; + var i3; + var n22; + for (var s22 = t4; s22 < e3; ) { + i3 = this.get(s22++); + n22 = this.get(s22++); + r3 += String.fromCharCode(i3 << 8 | n22); + } + return r3; + }; + t3.prototype.parseTime = function(t4, e3, r3) { + var i3 = this.parseStringISO(t4, e3); + var n22 = (r3 ? E2 : D2).exec(i3); + if (!n22) + return "Unrecognized time: " + i3; + if (r3) { + n22[1] = +n22[1]; + n22[1] += +n22[1] < 70 ? 2e3 : 1900; + } + i3 = n22[1] + "-" + n22[2] + "-" + n22[3] + " " + n22[4]; + if (n22[5]) { + i3 += ":" + n22[5]; + if (n22[6]) { + i3 += ":" + n22[6]; + if (n22[7]) + i3 += "." + n22[7]; + } + } + if (n22[8]) { + i3 += " UTC"; + if ("Z" != n22[8]) { + i3 += n22[8]; + if (n22[9]) + i3 += ":" + n22[9]; + } + } + return i3; + }; + t3.prototype.parseInteger = function(t4, e3) { + var r3 = this.get(t4); + var i3 = r3 > 127; + var n22 = i3 ? 255 : 0; + var s22; + var a22 = ""; + while (r3 == n22 && ++t4 < e3) + r3 = this.get(t4); + s22 = e3 - t4; + if (0 === s22) + return i3 ? -1 : 0; + if (s22 > 4) { + a22 = r3; + s22 <<= 3; + while (0 == (128 & (+a22 ^ n22))) { + a22 = +a22 << 1; + --s22; + } + a22 = "(" + s22 + " bit)\n"; + } + if (i3) + r3 -= 256; + var o22 = new _2(r3); + for (var u22 = t4 + 1; u22 < e3; ++u22) + o22.mulAdd(256, this.get(u22)); + return a22 + o22.toString(); + }; + t3.prototype.parseBitString = function(t4, e3, r3) { + var i3 = this.get(t4); + var n22 = (e3 - t4 - 1 << 3) - i3; + var s22 = "(" + n22 + " bit)\n"; + var a22 = ""; + for (var o22 = t4 + 1; o22 < e3; ++o22) { + var u22 = this.get(o22); + var c22 = o22 == e3 - 1 ? i3 : 0; + for (var l22 = 7; l22 >= c22; --l22) + a22 += u22 >> l22 & 1 ? "1" : "0"; + if (a22.length > r3) + return s22 + M2(a22, r3); + } + return s22 + a22; + }; + t3.prototype.parseOctetString = function(t4, e3, r3) { + if (this.isASCII(t4, e3)) + return M2(this.parseStringISO(t4, e3), r3); + var i3 = e3 - t4; + var n22 = "(" + i3 + " byte)\n"; + r3 /= 2; + if (i3 > r3) + e3 = t4 + r3; + for (var s22 = t4; s22 < e3; ++s22) + n22 += this.hexByte(this.get(s22)); + if (i3 > r3) + n22 += b2; + return n22; + }; + t3.prototype.parseOID = function(t4, e3, r3) { + var i3 = ""; + var n22 = new _2(); + var s22 = 0; + for (var a22 = t4; a22 < e3; ++a22) { + var o22 = this.get(a22); + n22.mulAdd(128, 127 & o22); + s22 += 7; + if (!(128 & o22)) { + if ("" === i3) { + n22 = n22.simplify(); + if (n22 instanceof _2) { + n22.sub(80); + i3 = "2." + n22.toString(); + } else { + var u22 = n22 < 80 ? n22 < 40 ? 0 : 1 : 2; + i3 = u22 + "." + (n22 - 40 * u22); + } + } else + i3 += "." + n22.toString(); + if (i3.length > r3) + return M2(i3, r3); + n22 = new _2(); + s22 = 0; + } + } + if (s22 > 0) + i3 += ".incomplete"; + return i3; + }; + return t3; + }(); + var I2 = function() { + function t3(t4, e3, r3, i3, n22) { + if (!(i3 instanceof A2)) + throw new Error("Invalid tag value."); + this.stream = t4; + this.header = e3; + this.length = r3; + this.tag = i3; + this.sub = n22; + } + t3.prototype.typeName = function() { + switch (this.tag.tagClass) { + case 0: + switch (this.tag.tagNumber) { + case 0: + return "EOC"; + case 1: + return "BOOLEAN"; + case 2: + return "INTEGER"; + case 3: + return "BIT_STRING"; + case 4: + return "OCTET_STRING"; + case 5: + return "NULL"; + case 6: + return "OBJECT_IDENTIFIER"; + case 7: + return "ObjectDescriptor"; + case 8: + return "EXTERNAL"; + case 9: + return "REAL"; + case 10: + return "ENUMERATED"; + case 11: + return "EMBEDDED_PDV"; + case 12: + return "UTF8String"; + case 16: + return "SEQUENCE"; + case 17: + return "SET"; + case 18: + return "NumericString"; + case 19: + return "PrintableString"; + case 20: + return "TeletexString"; + case 21: + return "VideotexString"; + case 22: + return "IA5String"; + case 23: + return "UTCTime"; + case 24: + return "GeneralizedTime"; + case 25: + return "GraphicString"; + case 26: + return "VisibleString"; + case 27: + return "GeneralString"; + case 28: + return "UniversalString"; + case 30: + return "BMPString"; + } + return "Universal_" + this.tag.tagNumber.toString(); + case 1: + return "Application_" + this.tag.tagNumber.toString(); + case 2: + return "[" + this.tag.tagNumber.toString() + "]"; + case 3: + return "Private_" + this.tag.tagNumber.toString(); + } + }; + t3.prototype.content = function(t4) { + if (void 0 === this.tag) + return null; + if (void 0 === t4) + t4 = 1 / 0; + var e3 = this.posContent(); + var r3 = Math.abs(this.length); + if (!this.tag.isUniversal()) { + if (null !== this.sub) + return "(" + this.sub.length + " elem)"; + return this.stream.parseOctetString(e3, e3 + r3, t4); + } + switch (this.tag.tagNumber) { + case 1: + return 0 === this.stream.get(e3) ? "false" : "true"; + case 2: + return this.stream.parseInteger(e3, e3 + r3); + case 3: + return this.sub ? "(" + this.sub.length + " elem)" : this.stream.parseBitString(e3, e3 + r3, t4); + case 4: + return this.sub ? "(" + this.sub.length + " elem)" : this.stream.parseOctetString(e3, e3 + r3, t4); + case 6: + return this.stream.parseOID(e3, e3 + r3, t4); + case 16: + case 17: + if (null !== this.sub) + return "(" + this.sub.length + " elem)"; + else + return "(no elem)"; + case 12: + return M2(this.stream.parseStringUTF(e3, e3 + r3), t4); + case 18: + case 19: + case 20: + case 21: + case 22: + case 26: + return M2(this.stream.parseStringISO(e3, e3 + r3), t4); + case 30: + return M2(this.stream.parseStringBMP(e3, e3 + r3), t4); + case 23: + case 24: + return this.stream.parseTime(e3, e3 + r3, 23 == this.tag.tagNumber); + } + return null; + }; + t3.prototype.toString = function() { + return this.typeName() + "@" + this.stream.pos + "[header:" + this.header + ",length:" + this.length + ",sub:" + (null === this.sub ? "null" : this.sub.length) + "]"; + }; + t3.prototype.toPrettyString = function(t4) { + if (void 0 === t4) + t4 = ""; + var e3 = t4 + this.typeName() + " @" + this.stream.pos; + if (this.length >= 0) + e3 += "+"; + e3 += this.length; + if (this.tag.tagConstructed) + e3 += " (constructed)"; + else if (this.tag.isUniversal() && (3 == this.tag.tagNumber || 4 == this.tag.tagNumber) && null !== this.sub) + e3 += " (encapsulates)"; + e3 += "\n"; + if (null !== this.sub) { + t4 += " "; + for (var r3 = 0, i3 = this.sub.length; r3 < i3; ++r3) + e3 += this.sub[r3].toPrettyString(t4); + } + return e3; + }; + t3.prototype.posStart = function() { + return this.stream.pos; + }; + t3.prototype.posContent = function() { + return this.stream.pos + this.header; + }; + t3.prototype.posEnd = function() { + return this.stream.pos + this.header + Math.abs(this.length); + }; + t3.prototype.toHexString = function() { + return this.stream.hexDump(this.posStart(), this.posEnd(), true); + }; + t3.decodeLength = function(t4) { + var e3 = t4.get(); + var r3 = 127 & e3; + if (r3 == e3) + return r3; + if (r3 > 6) + throw new Error("Length over 48 bits not supported at position " + (t4.pos - 1)); + if (0 === r3) + return null; + e3 = 0; + for (var i3 = 0; i3 < r3; ++i3) + e3 = 256 * e3 + t4.get(); + return e3; + }; + t3.prototype.getHexStringValue = function() { + var t4 = this.toHexString(); + var e3 = 2 * this.header; + var r3 = 2 * this.length; + return t4.substr(e3, r3); + }; + t3.decode = function(e3) { + var r3; + if (!(e3 instanceof T2)) + r3 = new T2(e3, 0); + else + r3 = e3; + var i3 = new T2(r3); + var n22 = new A2(r3); + var s22 = t3.decodeLength(r3); + var a22 = r3.pos; + var o22 = a22 - i3.pos; + var u22 = null; + var c22 = function() { + var e4 = []; + if (null !== s22) { + var i4 = a22 + s22; + while (r3.pos < i4) + e4[e4.length] = t3.decode(r3); + if (r3.pos != i4) + throw new Error("Content size is not correct for container starting at offset " + a22); + } else + try { + for (; ; ) { + var n3 = t3.decode(r3); + if (n3.tag.isEOC()) + break; + e4[e4.length] = n3; + } + s22 = a22 - r3.pos; + } catch (t4) { + throw new Error("Exception while decoding undefined length content: " + t4); + } + return e4; + }; + if (n22.tagConstructed) + u22 = c22(); + else if (n22.isUniversal() && (3 == n22.tagNumber || 4 == n22.tagNumber)) + try { + if (3 == n22.tagNumber) { + if (0 != r3.get()) + throw new Error("BIT STRINGs with unused bits cannot encapsulate."); + } + u22 = c22(); + for (var l22 = 0; l22 < u22.length; ++l22) + if (u22[l22].tag.isEOC()) + throw new Error("EOC is not supposed to be actual content."); + } catch (t4) { + u22 = null; + } + if (null === u22) { + if (null === s22) + throw new Error("We can't skip over an invalid tag with undefined length at offset " + a22); + r3.pos = a22 + Math.abs(s22); + } + return new t3(i3, o22, s22, n22, u22); + }; + return t3; + }(); + var A2 = function() { + function t3(t4) { + var e3 = t4.get(); + this.tagClass = e3 >> 6; + this.tagConstructed = 0 !== (32 & e3); + this.tagNumber = 31 & e3; + if (31 == this.tagNumber) { + var r3 = new _2(); + do { + e3 = t4.get(); + r3.mulAdd(128, 127 & e3); + } while (128 & e3); + this.tagNumber = r3.simplify(); + } + } + t3.prototype.isUniversal = function() { + return 0 === this.tagClass; + }; + t3.prototype.isEOC = function() { + return 0 === this.tagClass && 0 === this.tagNumber; + }; + return t3; + }(); + var x; + var R2 = 244837814094590; + var B2 = 15715070 == (16777215 & R2); + var O2 = [2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79, 83, 89, 97, 101, 103, 107, 109, 113, 127, 131, 137, 139, 149, 151, 157, 163, 167, 173, 179, 181, 191, 193, 197, 199, 211, 223, 227, 229, 233, 239, 241, 251, 257, 263, 269, 271, 277, 281, 283, 293, 307, 311, 313, 317, 331, 337, 347, 349, 353, 359, 367, 373, 379, 383, 389, 397, 401, 409, 419, 421, 431, 433, 439, 443, 449, 457, 461, 463, 467, 479, 487, 491, 499, 503, 509, 521, 523, 541, 547, 557, 563, 569, 571, 577, 587, 593, 599, 601, 607, 613, 617, 619, 631, 641, 643, 647, 653, 659, 661, 673, 677, 683, 691, 701, 709, 719, 727, 733, 739, 743, 751, 757, 761, 769, 773, 787, 797, 809, 811, 821, 823, 827, 829, 839, 853, 857, 859, 863, 877, 881, 883, 887, 907, 911, 919, 929, 937, 941, 947, 953, 967, 971, 977, 983, 991, 997]; + var k = (1 << 26) / O2[O2.length - 1]; + var C2 = function() { + function t3(t4, e3, r3) { + if (null != t4) + if ("number" == typeof t4) + this.fromNumber(t4, e3, r3); + else if (null == e3 && "string" != typeof t4) + this.fromString(t4, 256); + else + this.fromString(t4, e3); + } + t3.prototype.toString = function(t4) { + if (this.s < 0) + return "-" + this.negate().toString(t4); + var e3; + if (16 == t4) + e3 = 4; + else if (8 == t4) + e3 = 3; + else if (2 == t4) + e3 = 1; + else if (32 == t4) + e3 = 5; + else if (4 == t4) + e3 = 2; + else + return this.toRadix(t4); + var r3 = (1 << e3) - 1; + var i3; + var s22 = false; + var a22 = ""; + var o22 = this.t; + var u22 = this.DB - o22 * this.DB % e3; + if (o22-- > 0) { + if (u22 < this.DB && (i3 = this[o22] >> u22) > 0) { + s22 = true; + a22 = n2(i3); + } + while (o22 >= 0) { + if (u22 < e3) { + i3 = (this[o22] & (1 << u22) - 1) << e3 - u22; + i3 |= this[--o22] >> (u22 += this.DB - e3); + } else { + i3 = this[o22] >> (u22 -= e3) & r3; + if (u22 <= 0) { + u22 += this.DB; + --o22; + } + } + if (i3 > 0) + s22 = true; + if (s22) + a22 += n2(i3); + } + } + return s22 ? a22 : "0"; + }; + t3.prototype.negate = function() { + var e3 = H2(); + t3.ZERO.subTo(this, e3); + return e3; + }; + t3.prototype.abs = function() { + return this.s < 0 ? this.negate() : this; + }; + t3.prototype.compareTo = function(t4) { + var e3 = this.s - t4.s; + if (0 != e3) + return e3; + var r3 = this.t; + e3 = r3 - t4.t; + if (0 != e3) + return this.s < 0 ? -e3 : e3; + while (--r3 >= 0) + if (0 != (e3 = this[r3] - t4[r3])) + return e3; + return 0; + }; + t3.prototype.bitLength = function() { + if (this.t <= 0) + return 0; + return this.DB * (this.t - 1) + W2(this[this.t - 1] ^ this.s & this.DM); + }; + t3.prototype.mod = function(e3) { + var r3 = H2(); + this.abs().divRemTo(e3, null, r3); + if (this.s < 0 && r3.compareTo(t3.ZERO) > 0) + e3.subTo(r3, r3); + return r3; + }; + t3.prototype.modPowInt = function(t4, e3) { + var r3; + if (t4 < 256 || e3.isEven()) + r3 = new P2(e3); + else + r3 = new V2(e3); + return this.exp(t4, r3); + }; + t3.prototype.clone = function() { + var t4 = H2(); + this.copyTo(t4); + return t4; + }; + t3.prototype.intValue = function() { + if (this.s < 0) { + if (1 == this.t) + return this[0] - this.DV; + else if (0 == this.t) + return -1; + } else if (1 == this.t) + return this[0]; + else if (0 == this.t) + return 0; + return (this[1] & (1 << 32 - this.DB) - 1) << this.DB | this[0]; + }; + t3.prototype.byteValue = function() { + return 0 == this.t ? this.s : this[0] << 24 >> 24; + }; + t3.prototype.shortValue = function() { + return 0 == this.t ? this.s : this[0] << 16 >> 16; + }; + t3.prototype.signum = function() { + if (this.s < 0) + return -1; + else if (this.t <= 0 || 1 == this.t && this[0] <= 0) + return 0; + else + return 1; + }; + t3.prototype.toByteArray = function() { + var t4 = this.t; + var e3 = []; + e3[0] = this.s; + var r3 = this.DB - t4 * this.DB % 8; + var i3; + var n22 = 0; + if (t4-- > 0) { + if (r3 < this.DB && (i3 = this[t4] >> r3) != (this.s & this.DM) >> r3) + e3[n22++] = i3 | this.s << this.DB - r3; + while (t4 >= 0) { + if (r3 < 8) { + i3 = (this[t4] & (1 << r3) - 1) << 8 - r3; + i3 |= this[--t4] >> (r3 += this.DB - 8); + } else { + i3 = this[t4] >> (r3 -= 8) & 255; + if (r3 <= 0) { + r3 += this.DB; + --t4; + } + } + if (0 != (128 & i3)) + i3 |= -256; + if (0 == n22 && (128 & this.s) != (128 & i3)) + ++n22; + if (n22 > 0 || i3 != this.s) + e3[n22++] = i3; + } + } + return e3; + }; + t3.prototype.equals = function(t4) { + return 0 == this.compareTo(t4); + }; + t3.prototype.min = function(t4) { + return this.compareTo(t4) < 0 ? this : t4; + }; + t3.prototype.max = function(t4) { + return this.compareTo(t4) > 0 ? this : t4; + }; + t3.prototype.and = function(t4) { + var e3 = H2(); + this.bitwiseTo(t4, s2, e3); + return e3; + }; + t3.prototype.or = function(t4) { + var e3 = H2(); + this.bitwiseTo(t4, a2, e3); + return e3; + }; + t3.prototype.xor = function(t4) { + var e3 = H2(); + this.bitwiseTo(t4, o2, e3); + return e3; + }; + t3.prototype.andNot = function(t4) { + var e3 = H2(); + this.bitwiseTo(t4, u2, e3); + return e3; + }; + t3.prototype.not = function() { + var t4 = H2(); + for (var e3 = 0; e3 < this.t; ++e3) + t4[e3] = this.DM & ~this[e3]; + t4.t = this.t; + t4.s = ~this.s; + return t4; + }; + t3.prototype.shiftLeft = function(t4) { + var e3 = H2(); + if (t4 < 0) + this.rShiftTo(-t4, e3); + else + this.lShiftTo(t4, e3); + return e3; + }; + t3.prototype.shiftRight = function(t4) { + var e3 = H2(); + if (t4 < 0) + this.lShiftTo(-t4, e3); + else + this.rShiftTo(t4, e3); + return e3; + }; + t3.prototype.getLowestSetBit = function() { + for (var t4 = 0; t4 < this.t; ++t4) + if (0 != this[t4]) + return t4 * this.DB + c2(this[t4]); + if (this.s < 0) + return this.t * this.DB; + return -1; + }; + t3.prototype.bitCount = function() { + var t4 = 0; + var e3 = this.s & this.DM; + for (var r3 = 0; r3 < this.t; ++r3) + t4 += l2(this[r3] ^ e3); + return t4; + }; + t3.prototype.testBit = function(t4) { + var e3 = Math.floor(t4 / this.DB); + if (e3 >= this.t) + return 0 != this.s; + return 0 != (this[e3] & 1 << t4 % this.DB); + }; + t3.prototype.setBit = function(t4) { + return this.changeBit(t4, a2); + }; + t3.prototype.clearBit = function(t4) { + return this.changeBit(t4, u2); + }; + t3.prototype.flipBit = function(t4) { + return this.changeBit(t4, o2); + }; + t3.prototype.add = function(t4) { + var e3 = H2(); + this.addTo(t4, e3); + return e3; + }; + t3.prototype.subtract = function(t4) { + var e3 = H2(); + this.subTo(t4, e3); + return e3; + }; + t3.prototype.multiply = function(t4) { + var e3 = H2(); + this.multiplyTo(t4, e3); + return e3; + }; + t3.prototype.divide = function(t4) { + var e3 = H2(); + this.divRemTo(t4, e3, null); + return e3; + }; + t3.prototype.remainder = function(t4) { + var e3 = H2(); + this.divRemTo(t4, null, e3); + return e3; + }; + t3.prototype.divideAndRemainder = function(t4) { + var e3 = H2(); + var r3 = H2(); + this.divRemTo(t4, e3, r3); + return [e3, r3]; + }; + t3.prototype.modPow = function(t4, e3) { + var r3 = t4.bitLength(); + var i3; + var n22 = Y2(1); + var s22; + if (r3 <= 0) + return n22; + else if (r3 < 18) + i3 = 1; + else if (r3 < 48) + i3 = 3; + else if (r3 < 144) + i3 = 4; + else if (r3 < 768) + i3 = 5; + else + i3 = 6; + if (r3 < 8) + s22 = new P2(e3); + else if (e3.isEven()) + s22 = new L2(e3); + else + s22 = new V2(e3); + var a22 = []; + var o22 = 3; + var u22 = i3 - 1; + var c22 = (1 << i3) - 1; + a22[1] = s22.convert(this); + if (i3 > 1) { + var l22 = H2(); + s22.sqrTo(a22[1], l22); + while (o22 <= c22) { + a22[o22] = H2(); + s22.mulTo(l22, a22[o22 - 2], a22[o22]); + o22 += 2; + } + } + var f22 = t4.t - 1; + var h22; + var d22 = true; + var v22 = H2(); + var p2; + r3 = W2(t4[f22]) - 1; + while (f22 >= 0) { + if (r3 >= u22) + h22 = t4[f22] >> r3 - u22 & c22; + else { + h22 = (t4[f22] & (1 << r3 + 1) - 1) << u22 - r3; + if (f22 > 0) + h22 |= t4[f22 - 1] >> this.DB + r3 - u22; + } + o22 = i3; + while (0 == (1 & h22)) { + h22 >>= 1; + --o22; + } + if ((r3 -= o22) < 0) { + r3 += this.DB; + --f22; + } + if (d22) { + a22[h22].copyTo(n22); + d22 = false; + } else { + while (o22 > 1) { + s22.sqrTo(n22, v22); + s22.sqrTo(v22, n22); + o22 -= 2; + } + if (o22 > 0) + s22.sqrTo(n22, v22); + else { + p2 = n22; + n22 = v22; + v22 = p2; + } + s22.mulTo(v22, a22[h22], n22); + } + while (f22 >= 0 && 0 == (t4[f22] & 1 << r3)) { + s22.sqrTo(n22, v22); + p2 = n22; + n22 = v22; + v22 = p2; + if (--r3 < 0) { + r3 = this.DB - 1; + --f22; + } + } + } + return s22.revert(n22); + }; + t3.prototype.modInverse = function(e3) { + var r3 = e3.isEven(); + if (this.isEven() && r3 || 0 == e3.signum()) + return t3.ZERO; + var i3 = e3.clone(); + var n22 = this.clone(); + var s22 = Y2(1); + var a22 = Y2(0); + var o22 = Y2(0); + var u22 = Y2(1); + while (0 != i3.signum()) { + while (i3.isEven()) { + i3.rShiftTo(1, i3); + if (r3) { + if (!s22.isEven() || !a22.isEven()) { + s22.addTo(this, s22); + a22.subTo(e3, a22); + } + s22.rShiftTo(1, s22); + } else if (!a22.isEven()) + a22.subTo(e3, a22); + a22.rShiftTo(1, a22); + } + while (n22.isEven()) { + n22.rShiftTo(1, n22); + if (r3) { + if (!o22.isEven() || !u22.isEven()) { + o22.addTo(this, o22); + u22.subTo(e3, u22); + } + o22.rShiftTo(1, o22); + } else if (!u22.isEven()) + u22.subTo(e3, u22); + u22.rShiftTo(1, u22); + } + if (i3.compareTo(n22) >= 0) { + i3.subTo(n22, i3); + if (r3) + s22.subTo(o22, s22); + a22.subTo(u22, a22); + } else { + n22.subTo(i3, n22); + if (r3) + o22.subTo(s22, o22); + u22.subTo(a22, u22); + } + } + if (0 != n22.compareTo(t3.ONE)) + return t3.ZERO; + if (u22.compareTo(e3) >= 0) + return u22.subtract(e3); + if (u22.signum() < 0) + u22.addTo(e3, u22); + else + return u22; + if (u22.signum() < 0) + return u22.add(e3); + else + return u22; + }; + t3.prototype.pow = function(t4) { + return this.exp(t4, new N2()); + }; + t3.prototype.gcd = function(t4) { + var e3 = this.s < 0 ? this.negate() : this.clone(); + var r3 = t4.s < 0 ? t4.negate() : t4.clone(); + if (e3.compareTo(r3) < 0) { + var i3 = e3; + e3 = r3; + r3 = i3; + } + var n22 = e3.getLowestSetBit(); + var s22 = r3.getLowestSetBit(); + if (s22 < 0) + return e3; + if (n22 < s22) + s22 = n22; + if (s22 > 0) { + e3.rShiftTo(s22, e3); + r3.rShiftTo(s22, r3); + } + while (e3.signum() > 0) { + if ((n22 = e3.getLowestSetBit()) > 0) + e3.rShiftTo(n22, e3); + if ((n22 = r3.getLowestSetBit()) > 0) + r3.rShiftTo(n22, r3); + if (e3.compareTo(r3) >= 0) { + e3.subTo(r3, e3); + e3.rShiftTo(1, e3); + } else { + r3.subTo(e3, r3); + r3.rShiftTo(1, r3); + } + } + if (s22 > 0) + r3.lShiftTo(s22, r3); + return r3; + }; + t3.prototype.isProbablePrime = function(t4) { + var e3; + var r3 = this.abs(); + if (1 == r3.t && r3[0] <= O2[O2.length - 1]) { + for (e3 = 0; e3 < O2.length; ++e3) + if (r3[0] == O2[e3]) + return true; + return false; + } + if (r3.isEven()) + return false; + e3 = 1; + while (e3 < O2.length) { + var i3 = O2[e3]; + var n22 = e3 + 1; + while (n22 < O2.length && i3 < k) + i3 *= O2[n22++]; + i3 = r3.modInt(i3); + while (e3 < n22) + if (i3 % O2[e3++] == 0) + return false; + } + return r3.millerRabin(t4); + }; + t3.prototype.copyTo = function(t4) { + for (var e3 = this.t - 1; e3 >= 0; --e3) + t4[e3] = this[e3]; + t4.t = this.t; + t4.s = this.s; + }; + t3.prototype.fromInt = function(t4) { + this.t = 1; + this.s = t4 < 0 ? -1 : 0; + if (t4 > 0) + this[0] = t4; + else if (t4 < -1) + this[0] = t4 + this.DV; + else + this.t = 0; + }; + t3.prototype.fromString = function(e3, r3) { + var i3; + if (16 == r3) + i3 = 4; + else if (8 == r3) + i3 = 3; + else if (256 == r3) + i3 = 8; + else if (2 == r3) + i3 = 1; + else if (32 == r3) + i3 = 5; + else if (4 == r3) + i3 = 2; + else { + this.fromRadix(e3, r3); + return; + } + this.t = 0; + this.s = 0; + var n22 = e3.length; + var s22 = false; + var a22 = 0; + while (--n22 >= 0) { + var o22 = 8 == i3 ? 255 & +e3[n22] : G2(e3, n22); + if (o22 < 0) { + if ("-" == e3.charAt(n22)) + s22 = true; + continue; + } + s22 = false; + if (0 == a22) + this[this.t++] = o22; + else if (a22 + i3 > this.DB) { + this[this.t - 1] |= (o22 & (1 << this.DB - a22) - 1) << a22; + this[this.t++] = o22 >> this.DB - a22; + } else + this[this.t - 1] |= o22 << a22; + a22 += i3; + if (a22 >= this.DB) + a22 -= this.DB; + } + if (8 == i3 && 0 != (128 & +e3[0])) { + this.s = -1; + if (a22 > 0) + this[this.t - 1] |= (1 << this.DB - a22) - 1 << a22; + } + this.clamp(); + if (s22) + t3.ZERO.subTo(this, this); + }; + t3.prototype.clamp = function() { + var t4 = this.s & this.DM; + while (this.t > 0 && this[this.t - 1] == t4) + --this.t; + }; + t3.prototype.dlShiftTo = function(t4, e3) { + var r3; + for (r3 = this.t - 1; r3 >= 0; --r3) + e3[r3 + t4] = this[r3]; + for (r3 = t4 - 1; r3 >= 0; --r3) + e3[r3] = 0; + e3.t = this.t + t4; + e3.s = this.s; + }; + t3.prototype.drShiftTo = function(t4, e3) { + for (var r3 = t4; r3 < this.t; ++r3) + e3[r3 - t4] = this[r3]; + e3.t = Math.max(this.t - t4, 0); + e3.s = this.s; + }; + t3.prototype.lShiftTo = function(t4, e3) { + var r3 = t4 % this.DB; + var i3 = this.DB - r3; + var n22 = (1 << i3) - 1; + var s22 = Math.floor(t4 / this.DB); + var a22 = this.s << r3 & this.DM; + for (var o22 = this.t - 1; o22 >= 0; --o22) { + e3[o22 + s22 + 1] = this[o22] >> i3 | a22; + a22 = (this[o22] & n22) << r3; + } + for (var o22 = s22 - 1; o22 >= 0; --o22) + e3[o22] = 0; + e3[s22] = a22; + e3.t = this.t + s22 + 1; + e3.s = this.s; + e3.clamp(); + }; + t3.prototype.rShiftTo = function(t4, e3) { + e3.s = this.s; + var r3 = Math.floor(t4 / this.DB); + if (r3 >= this.t) { + e3.t = 0; + return; + } + var i3 = t4 % this.DB; + var n22 = this.DB - i3; + var s22 = (1 << i3) - 1; + e3[0] = this[r3] >> i3; + for (var a22 = r3 + 1; a22 < this.t; ++a22) { + e3[a22 - r3 - 1] |= (this[a22] & s22) << n22; + e3[a22 - r3] = this[a22] >> i3; + } + if (i3 > 0) + e3[this.t - r3 - 1] |= (this.s & s22) << n22; + e3.t = this.t - r3; + e3.clamp(); + }; + t3.prototype.subTo = function(t4, e3) { + var r3 = 0; + var i3 = 0; + var n22 = Math.min(t4.t, this.t); + while (r3 < n22) { + i3 += this[r3] - t4[r3]; + e3[r3++] = i3 & this.DM; + i3 >>= this.DB; + } + if (t4.t < this.t) { + i3 -= t4.s; + while (r3 < this.t) { + i3 += this[r3]; + e3[r3++] = i3 & this.DM; + i3 >>= this.DB; + } + i3 += this.s; + } else { + i3 += this.s; + while (r3 < t4.t) { + i3 -= t4[r3]; + e3[r3++] = i3 & this.DM; + i3 >>= this.DB; + } + i3 -= t4.s; + } + e3.s = i3 < 0 ? -1 : 0; + if (i3 < -1) + e3[r3++] = this.DV + i3; + else if (i3 > 0) + e3[r3++] = i3; + e3.t = r3; + e3.clamp(); + }; + t3.prototype.multiplyTo = function(e3, r3) { + var i3 = this.abs(); + var n22 = e3.abs(); + var s22 = i3.t; + r3.t = s22 + n22.t; + while (--s22 >= 0) + r3[s22] = 0; + for (s22 = 0; s22 < n22.t; ++s22) + r3[s22 + i3.t] = i3.am(0, n22[s22], r3, s22, 0, i3.t); + r3.s = 0; + r3.clamp(); + if (this.s != e3.s) + t3.ZERO.subTo(r3, r3); + }; + t3.prototype.squareTo = function(t4) { + var e3 = this.abs(); + var r3 = t4.t = 2 * e3.t; + while (--r3 >= 0) + t4[r3] = 0; + for (r3 = 0; r3 < e3.t - 1; ++r3) { + var i3 = e3.am(r3, e3[r3], t4, 2 * r3, 0, 1); + if ((t4[r3 + e3.t] += e3.am(r3 + 1, 2 * e3[r3], t4, 2 * r3 + 1, i3, e3.t - r3 - 1)) >= e3.DV) { + t4[r3 + e3.t] -= e3.DV; + t4[r3 + e3.t + 1] = 1; + } + } + if (t4.t > 0) + t4[t4.t - 1] += e3.am(r3, e3[r3], t4, 2 * r3, 0, 1); + t4.s = 0; + t4.clamp(); + }; + t3.prototype.divRemTo = function(e3, r3, i3) { + var n22 = e3.abs(); + if (n22.t <= 0) + return; + var s22 = this.abs(); + if (s22.t < n22.t) { + if (null != r3) + r3.fromInt(0); + if (null != i3) + this.copyTo(i3); + return; + } + if (null == i3) + i3 = H2(); + var a22 = H2(); + var o22 = this.s; + var u22 = e3.s; + var c22 = this.DB - W2(n22[n22.t - 1]); + if (c22 > 0) { + n22.lShiftTo(c22, a22); + s22.lShiftTo(c22, i3); + } else { + n22.copyTo(a22); + s22.copyTo(i3); + } + var l22 = a22.t; + var f22 = a22[l22 - 1]; + if (0 == f22) + return; + var h22 = f22 * (1 << this.F1) + (l22 > 1 ? a22[l22 - 2] >> this.F2 : 0); + var d22 = this.FV / h22; + var v22 = (1 << this.F1) / h22; + var p2 = 1 << this.F2; + var g22 = i3.t; + var y22 = g22 - l22; + var m22 = null == r3 ? H2() : r3; + a22.dlShiftTo(y22, m22); + if (i3.compareTo(m22) >= 0) { + i3[i3.t++] = 1; + i3.subTo(m22, i3); + } + t3.ONE.dlShiftTo(l22, m22); + m22.subTo(a22, a22); + while (a22.t < l22) + a22[a22.t++] = 0; + while (--y22 >= 0) { + var w22 = i3[--g22] == f22 ? this.DM : Math.floor(i3[g22] * d22 + (i3[g22 - 1] + p2) * v22); + if ((i3[g22] += a22.am(0, w22, i3, y22, 0, l22)) < w22) { + a22.dlShiftTo(y22, m22); + i3.subTo(m22, i3); + while (i3[g22] < --w22) + i3.subTo(m22, i3); + } + } + if (null != r3) { + i3.drShiftTo(l22, r3); + if (o22 != u22) + t3.ZERO.subTo(r3, r3); + } + i3.t = l22; + i3.clamp(); + if (c22 > 0) + i3.rShiftTo(c22, i3); + if (o22 < 0) + t3.ZERO.subTo(i3, i3); + }; + t3.prototype.invDigit = function() { + if (this.t < 1) + return 0; + var t4 = this[0]; + if (0 == (1 & t4)) + return 0; + var e3 = 3 & t4; + e3 = e3 * (2 - (15 & t4) * e3) & 15; + e3 = e3 * (2 - (255 & t4) * e3) & 255; + e3 = e3 * (2 - ((65535 & t4) * e3 & 65535)) & 65535; + e3 = e3 * (2 - t4 * e3 % this.DV) % this.DV; + return e3 > 0 ? this.DV - e3 : -e3; + }; + t3.prototype.isEven = function() { + return 0 == (this.t > 0 ? 1 & this[0] : this.s); + }; + t3.prototype.exp = function(e3, r3) { + if (e3 > 4294967295 || e3 < 1) + return t3.ONE; + var i3 = H2(); + var n22 = H2(); + var s22 = r3.convert(this); + var a22 = W2(e3) - 1; + s22.copyTo(i3); + while (--a22 >= 0) { + r3.sqrTo(i3, n22); + if ((e3 & 1 << a22) > 0) + r3.mulTo(n22, s22, i3); + else { + var o22 = i3; + i3 = n22; + n22 = o22; + } + } + return r3.revert(i3); + }; + t3.prototype.chunkSize = function(t4) { + return Math.floor(Math.LN2 * this.DB / Math.log(t4)); + }; + t3.prototype.toRadix = function(t4) { + if (null == t4) + t4 = 10; + if (0 == this.signum() || t4 < 2 || t4 > 36) + return "0"; + var e3 = this.chunkSize(t4); + var r3 = Math.pow(t4, e3); + var i3 = Y2(r3); + var n22 = H2(); + var s22 = H2(); + var a22 = ""; + this.divRemTo(i3, n22, s22); + while (n22.signum() > 0) { + a22 = (r3 + s22.intValue()).toString(t4).substr(1) + a22; + n22.divRemTo(i3, n22, s22); + } + return s22.intValue().toString(t4) + a22; + }; + t3.prototype.fromRadix = function(e3, r3) { + this.fromInt(0); + if (null == r3) + r3 = 10; + var i3 = this.chunkSize(r3); + var n22 = Math.pow(r3, i3); + var s22 = false; + var a22 = 0; + var o22 = 0; + for (var u22 = 0; u22 < e3.length; ++u22) { + var c22 = G2(e3, u22); + if (c22 < 0) { + if ("-" == e3.charAt(u22) && 0 == this.signum()) + s22 = true; + continue; + } + o22 = r3 * o22 + c22; + if (++a22 >= i3) { + this.dMultiply(n22); + this.dAddOffset(o22, 0); + a22 = 0; + o22 = 0; + } + } + if (a22 > 0) { + this.dMultiply(Math.pow(r3, a22)); + this.dAddOffset(o22, 0); + } + if (s22) + t3.ZERO.subTo(this, this); + }; + t3.prototype.fromNumber = function(e3, r3, i3) { + if ("number" == typeof r3) + if (e3 < 2) + this.fromInt(1); + else { + this.fromNumber(e3, i3); + if (!this.testBit(e3 - 1)) + this.bitwiseTo(t3.ONE.shiftLeft(e3 - 1), a2, this); + if (this.isEven()) + this.dAddOffset(1, 0); + while (!this.isProbablePrime(r3)) { + this.dAddOffset(2, 0); + if (this.bitLength() > e3) + this.subTo(t3.ONE.shiftLeft(e3 - 1), this); + } + } + else { + var n22 = []; + var s22 = 7 & e3; + n22.length = (e3 >> 3) + 1; + r3.nextBytes(n22); + if (s22 > 0) + n22[0] &= (1 << s22) - 1; + else + n22[0] = 0; + this.fromString(n22, 256); + } + }; + t3.prototype.bitwiseTo = function(t4, e3, r3) { + var i3; + var n22; + var s22 = Math.min(t4.t, this.t); + for (i3 = 0; i3 < s22; ++i3) + r3[i3] = e3(this[i3], t4[i3]); + if (t4.t < this.t) { + n22 = t4.s & this.DM; + for (i3 = s22; i3 < this.t; ++i3) + r3[i3] = e3(this[i3], n22); + r3.t = this.t; + } else { + n22 = this.s & this.DM; + for (i3 = s22; i3 < t4.t; ++i3) + r3[i3] = e3(n22, t4[i3]); + r3.t = t4.t; + } + r3.s = e3(this.s, t4.s); + r3.clamp(); + }; + t3.prototype.changeBit = function(e3, r3) { + var i3 = t3.ONE.shiftLeft(e3); + this.bitwiseTo(i3, r3, i3); + return i3; + }; + t3.prototype.addTo = function(t4, e3) { + var r3 = 0; + var i3 = 0; + var n22 = Math.min(t4.t, this.t); + while (r3 < n22) { + i3 += this[r3] + t4[r3]; + e3[r3++] = i3 & this.DM; + i3 >>= this.DB; + } + if (t4.t < this.t) { + i3 += t4.s; + while (r3 < this.t) { + i3 += this[r3]; + e3[r3++] = i3 & this.DM; + i3 >>= this.DB; + } + i3 += this.s; + } else { + i3 += this.s; + while (r3 < t4.t) { + i3 += t4[r3]; + e3[r3++] = i3 & this.DM; + i3 >>= this.DB; + } + i3 += t4.s; + } + e3.s = i3 < 0 ? -1 : 0; + if (i3 > 0) + e3[r3++] = i3; + else if (i3 < -1) + e3[r3++] = this.DV + i3; + e3.t = r3; + e3.clamp(); + }; + t3.prototype.dMultiply = function(t4) { + this[this.t] = this.am(0, t4 - 1, this, 0, 0, this.t); + ++this.t; + this.clamp(); + }; + t3.prototype.dAddOffset = function(t4, e3) { + if (0 == t4) + return; + while (this.t <= e3) + this[this.t++] = 0; + this[e3] += t4; + while (this[e3] >= this.DV) { + this[e3] -= this.DV; + if (++e3 >= this.t) + this[this.t++] = 0; + ++this[e3]; + } + }; + t3.prototype.multiplyLowerTo = function(t4, e3, r3) { + var i3 = Math.min(this.t + t4.t, e3); + r3.s = 0; + r3.t = i3; + while (i3 > 0) + r3[--i3] = 0; + for (var n22 = r3.t - this.t; i3 < n22; ++i3) + r3[i3 + this.t] = this.am(0, t4[i3], r3, i3, 0, this.t); + for (var n22 = Math.min(t4.t, e3); i3 < n22; ++i3) + this.am(0, t4[i3], r3, i3, 0, e3 - i3); + r3.clamp(); + }; + t3.prototype.multiplyUpperTo = function(t4, e3, r3) { + --e3; + var i3 = r3.t = this.t + t4.t - e3; + r3.s = 0; + while (--i3 >= 0) + r3[i3] = 0; + for (i3 = Math.max(e3 - this.t, 0); i3 < t4.t; ++i3) + r3[this.t + i3 - e3] = this.am(e3 - i3, t4[i3], r3, 0, 0, this.t + i3 - e3); + r3.clamp(); + r3.drShiftTo(1, r3); + }; + t3.prototype.modInt = function(t4) { + if (t4 <= 0) + return 0; + var e3 = this.DV % t4; + var r3 = this.s < 0 ? t4 - 1 : 0; + if (this.t > 0) + if (0 == e3) + r3 = this[0] % t4; + else + for (var i3 = this.t - 1; i3 >= 0; --i3) + r3 = (e3 * r3 + this[i3]) % t4; + return r3; + }; + t3.prototype.millerRabin = function(e3) { + var r3 = this.subtract(t3.ONE); + var i3 = r3.getLowestSetBit(); + if (i3 <= 0) + return false; + var n22 = r3.shiftRight(i3); + e3 = e3 + 1 >> 1; + if (e3 > O2.length) + e3 = O2.length; + var s22 = H2(); + for (var a22 = 0; a22 < e3; ++a22) { + s22.fromInt(O2[Math.floor(Math.random() * O2.length)]); + var o22 = s22.modPow(n22, this); + if (0 != o22.compareTo(t3.ONE) && 0 != o22.compareTo(r3)) { + var u22 = 1; + while (u22++ < i3 && 0 != o22.compareTo(r3)) { + o22 = o22.modPowInt(2, this); + if (0 == o22.compareTo(t3.ONE)) + return false; + } + if (0 != o22.compareTo(r3)) + return false; + } + } + return true; + }; + t3.prototype.square = function() { + var t4 = H2(); + this.squareTo(t4); + return t4; + }; + t3.prototype.gcda = function(t4, e3) { + var r3 = this.s < 0 ? this.negate() : this.clone(); + var i3 = t4.s < 0 ? t4.negate() : t4.clone(); + if (r3.compareTo(i3) < 0) { + var n22 = r3; + r3 = i3; + i3 = n22; + } + var s22 = r3.getLowestSetBit(); + var a22 = i3.getLowestSetBit(); + if (a22 < 0) { + e3(r3); + return; + } + if (s22 < a22) + a22 = s22; + if (a22 > 0) { + r3.rShiftTo(a22, r3); + i3.rShiftTo(a22, i3); + } + var o22 = function() { + if ((s22 = r3.getLowestSetBit()) > 0) + r3.rShiftTo(s22, r3); + if ((s22 = i3.getLowestSetBit()) > 0) + i3.rShiftTo(s22, i3); + if (r3.compareTo(i3) >= 0) { + r3.subTo(i3, r3); + r3.rShiftTo(1, r3); + } else { + i3.subTo(r3, i3); + i3.rShiftTo(1, i3); + } + if (!(r3.signum() > 0)) { + if (a22 > 0) + i3.lShiftTo(a22, i3); + setTimeout(function() { + e3(i3); + }, 0); + } else + setTimeout(o22, 0); + }; + setTimeout(o22, 10); + }; + t3.prototype.fromNumberAsync = function(e3, r3, i3, n22) { + if ("number" == typeof r3) + if (e3 < 2) + this.fromInt(1); + else { + this.fromNumber(e3, i3); + if (!this.testBit(e3 - 1)) + this.bitwiseTo(t3.ONE.shiftLeft(e3 - 1), a2, this); + if (this.isEven()) + this.dAddOffset(1, 0); + var s22 = this; + var o22 = function() { + s22.dAddOffset(2, 0); + if (s22.bitLength() > e3) + s22.subTo(t3.ONE.shiftLeft(e3 - 1), s22); + if (s22.isProbablePrime(r3)) + setTimeout(function() { + n22(); + }, 0); + else + setTimeout(o22, 0); + }; + setTimeout(o22, 0); + } + else { + var u22 = []; + var c22 = 7 & e3; + u22.length = (e3 >> 3) + 1; + r3.nextBytes(u22); + if (c22 > 0) + u22[0] &= (1 << c22) - 1; + else + u22[0] = 0; + this.fromString(u22, 256); + } + }; + return t3; + }(); + var N2 = function() { + function t3() { + } + t3.prototype.convert = function(t4) { + return t4; + }; + t3.prototype.revert = function(t4) { + return t4; + }; + t3.prototype.mulTo = function(t4, e3, r3) { + t4.multiplyTo(e3, r3); + }; + t3.prototype.sqrTo = function(t4, e3) { + t4.squareTo(e3); + }; + return t3; + }(); + var P2 = function() { + function t3(t4) { + this.m = t4; + } + t3.prototype.convert = function(t4) { + if (t4.s < 0 || t4.compareTo(this.m) >= 0) + return t4.mod(this.m); + else + return t4; + }; + t3.prototype.revert = function(t4) { + return t4; + }; + t3.prototype.reduce = function(t4) { + t4.divRemTo(this.m, null, t4); + }; + t3.prototype.mulTo = function(t4, e3, r3) { + t4.multiplyTo(e3, r3); + this.reduce(r3); + }; + t3.prototype.sqrTo = function(t4, e3) { + t4.squareTo(e3); + this.reduce(e3); + }; + return t3; + }(); + var V2 = function() { + function t3(t4) { + this.m = t4; + this.mp = t4.invDigit(); + this.mpl = 32767 & this.mp; + this.mph = this.mp >> 15; + this.um = (1 << t4.DB - 15) - 1; + this.mt2 = 2 * t4.t; + } + t3.prototype.convert = function(t4) { + var e3 = H2(); + t4.abs().dlShiftTo(this.m.t, e3); + e3.divRemTo(this.m, null, e3); + if (t4.s < 0 && e3.compareTo(C2.ZERO) > 0) + this.m.subTo(e3, e3); + return e3; + }; + t3.prototype.revert = function(t4) { + var e3 = H2(); + t4.copyTo(e3); + this.reduce(e3); + return e3; + }; + t3.prototype.reduce = function(t4) { + while (t4.t <= this.mt2) + t4[t4.t++] = 0; + for (var e3 = 0; e3 < this.m.t; ++e3) { + var r3 = 32767 & t4[e3]; + var i3 = r3 * this.mpl + ((r3 * this.mph + (t4[e3] >> 15) * this.mpl & this.um) << 15) & t4.DM; + r3 = e3 + this.m.t; + t4[r3] += this.m.am(0, i3, t4, e3, 0, this.m.t); + while (t4[r3] >= t4.DV) { + t4[r3] -= t4.DV; + t4[++r3]++; + } + } + t4.clamp(); + t4.drShiftTo(this.m.t, t4); + if (t4.compareTo(this.m) >= 0) + t4.subTo(this.m, t4); + }; + t3.prototype.mulTo = function(t4, e3, r3) { + t4.multiplyTo(e3, r3); + this.reduce(r3); + }; + t3.prototype.sqrTo = function(t4, e3) { + t4.squareTo(e3); + this.reduce(e3); + }; + return t3; + }(); + var L2 = function() { + function t3(t4) { + this.m = t4; + this.r2 = H2(); + this.q3 = H2(); + C2.ONE.dlShiftTo(2 * t4.t, this.r2); + this.mu = this.r2.divide(t4); + } + t3.prototype.convert = function(t4) { + if (t4.s < 0 || t4.t > 2 * this.m.t) + return t4.mod(this.m); + else if (t4.compareTo(this.m) < 0) + return t4; + else { + var e3 = H2(); + t4.copyTo(e3); + this.reduce(e3); + return e3; + } + }; + t3.prototype.revert = function(t4) { + return t4; + }; + t3.prototype.reduce = function(t4) { + t4.drShiftTo(this.m.t - 1, this.r2); + if (t4.t > this.m.t + 1) { + t4.t = this.m.t + 1; + t4.clamp(); + } + this.mu.multiplyUpperTo(this.r2, this.m.t + 1, this.q3); + this.m.multiplyLowerTo(this.q3, this.m.t + 1, this.r2); + while (t4.compareTo(this.r2) < 0) + t4.dAddOffset(1, this.m.t + 1); + t4.subTo(this.r2, t4); + while (t4.compareTo(this.m) >= 0) + t4.subTo(this.m, t4); + }; + t3.prototype.mulTo = function(t4, e3, r3) { + t4.multiplyTo(e3, r3); + this.reduce(r3); + }; + t3.prototype.sqrTo = function(t4, e3) { + t4.squareTo(e3); + this.reduce(e3); + }; + return t3; + }(); + function H2() { + return new C2(null); + } + function U2(t3, e3) { + return new C2(t3, e3); + } + var K2 = "undefined" !== typeof navigator; + if (K2 && B2 && "Microsoft Internet Explorer" == navigator.appName) { + C2.prototype.am = function t3(e3, r3, i3, n22, s22, a22) { + var o22 = 32767 & r3; + var u22 = r3 >> 15; + while (--a22 >= 0) { + var c22 = 32767 & this[e3]; + var l22 = this[e3++] >> 15; + var f22 = u22 * c22 + l22 * o22; + c22 = o22 * c22 + ((32767 & f22) << 15) + i3[n22] + (1073741823 & s22); + s22 = (c22 >>> 30) + (f22 >>> 15) + u22 * l22 + (s22 >>> 30); + i3[n22++] = 1073741823 & c22; + } + return s22; + }; + x = 30; + } else if (K2 && B2 && "Netscape" != navigator.appName) { + C2.prototype.am = function t3(e3, r3, i3, n22, s22, a22) { + while (--a22 >= 0) { + var o22 = r3 * this[e3++] + i3[n22] + s22; + s22 = Math.floor(o22 / 67108864); + i3[n22++] = 67108863 & o22; + } + return s22; + }; + x = 26; + } else { + C2.prototype.am = function t3(e3, r3, i3, n22, s22, a22) { + var o22 = 16383 & r3; + var u22 = r3 >> 14; + while (--a22 >= 0) { + var c22 = 16383 & this[e3]; + var l22 = this[e3++] >> 14; + var f22 = u22 * c22 + l22 * o22; + c22 = o22 * c22 + ((16383 & f22) << 14) + i3[n22] + s22; + s22 = (c22 >> 28) + (f22 >> 14) + u22 * l22; + i3[n22++] = 268435455 & c22; + } + return s22; + }; + x = 28; + } + C2.prototype.DB = x; + C2.prototype.DM = (1 << x) - 1; + C2.prototype.DV = 1 << x; + var j2 = 52; + C2.prototype.FV = Math.pow(2, j2); + C2.prototype.F1 = j2 - x; + C2.prototype.F2 = 2 * x - j2; + var q2 = []; + var F2; + var z2; + F2 = "0".charCodeAt(0); + for (z2 = 0; z2 <= 9; ++z2) + q2[F2++] = z2; + F2 = "a".charCodeAt(0); + for (z2 = 10; z2 < 36; ++z2) + q2[F2++] = z2; + F2 = "A".charCodeAt(0); + for (z2 = 10; z2 < 36; ++z2) + q2[F2++] = z2; + function G2(t3, e3) { + var r3 = q2[t3.charCodeAt(e3)]; + return null == r3 ? -1 : r3; + } + function Y2(t3) { + var e3 = H2(); + e3.fromInt(t3); + return e3; + } + function W2(t3) { + var e3 = 1; + var r3; + if (0 != (r3 = t3 >>> 16)) { + t3 = r3; + e3 += 16; + } + if (0 != (r3 = t3 >> 8)) { + t3 = r3; + e3 += 8; + } + if (0 != (r3 = t3 >> 4)) { + t3 = r3; + e3 += 4; + } + if (0 != (r3 = t3 >> 2)) { + t3 = r3; + e3 += 2; + } + if (0 != (r3 = t3 >> 1)) { + t3 = r3; + e3 += 1; + } + return e3; + } + C2.ZERO = Y2(0); + C2.ONE = Y2(1); + var J2 = function() { + function t3() { + this.i = 0; + this.j = 0; + this.S = []; + } + t3.prototype.init = function(t4) { + var e3; + var r3; + var i3; + for (e3 = 0; e3 < 256; ++e3) + this.S[e3] = e3; + r3 = 0; + for (e3 = 0; e3 < 256; ++e3) { + r3 = r3 + this.S[e3] + t4[e3 % t4.length] & 255; + i3 = this.S[e3]; + this.S[e3] = this.S[r3]; + this.S[r3] = i3; + } + this.i = 0; + this.j = 0; + }; + t3.prototype.next = function() { + var t4; + this.i = this.i + 1 & 255; + this.j = this.j + this.S[this.i] & 255; + t4 = this.S[this.i]; + this.S[this.i] = this.S[this.j]; + this.S[this.j] = t4; + return this.S[t4 + this.S[this.i] & 255]; + }; + return t3; + }(); + function Z2() { + return new J2(); + } + var $2 = 256; + var X2; + var Q2 = null; + var tt2; + if (null == Q2) { + Q2 = []; + tt2 = 0; + } + function nt2() { + if (null == X2) { + X2 = Z2(); + while (tt2 < $2) { + var t3 = Math.floor(65536 * Math.random()); + Q2[tt2++] = 255 & t3; + } + X2.init(Q2); + for (tt2 = 0; tt2 < Q2.length; ++tt2) + Q2[tt2] = 0; + tt2 = 0; + } + return X2.next(); + } + var st2 = function() { + function t3() { + } + t3.prototype.nextBytes = function(t4) { + for (var e3 = 0; e3 < t4.length; ++e3) + t4[e3] = nt2(); + }; + return t3; + }(); + function at2(t3, e3) { + if (e3 < t3.length + 22) { + console.error("Message too long for RSA"); + return null; + } + var r3 = e3 - t3.length - 6; + var i3 = ""; + for (var n22 = 0; n22 < r3; n22 += 2) + i3 += "ff"; + var s22 = "0001" + i3 + "00" + t3; + return U2(s22, 16); + } + function ot2(t3, e3) { + if (e3 < t3.length + 11) { + console.error("Message too long for RSA"); + return null; + } + var r3 = []; + var i3 = t3.length - 1; + while (i3 >= 0 && e3 > 0) { + var n22 = t3.charCodeAt(i3--); + if (n22 < 128) + r3[--e3] = n22; + else if (n22 > 127 && n22 < 2048) { + r3[--e3] = 63 & n22 | 128; + r3[--e3] = n22 >> 6 | 192; + } else { + r3[--e3] = 63 & n22 | 128; + r3[--e3] = n22 >> 6 & 63 | 128; + r3[--e3] = n22 >> 12 | 224; + } + } + r3[--e3] = 0; + var s22 = new st2(); + var a22 = []; + while (e3 > 2) { + a22[0] = 0; + while (0 == a22[0]) + s22.nextBytes(a22); + r3[--e3] = a22[0]; + } + r3[--e3] = 2; + r3[--e3] = 0; + return new C2(r3); + } + var ut2 = function() { + function t3() { + this.n = null; + this.e = 0; + this.d = null; + this.p = null; + this.q = null; + this.dmp1 = null; + this.dmq1 = null; + this.coeff = null; + } + t3.prototype.doPublic = function(t4) { + return t4.modPowInt(this.e, this.n); + }; + t3.prototype.doPrivate = function(t4) { + if (null == this.p || null == this.q) + return t4.modPow(this.d, this.n); + var e3 = t4.mod(this.p).modPow(this.dmp1, this.p); + var r3 = t4.mod(this.q).modPow(this.dmq1, this.q); + while (e3.compareTo(r3) < 0) + e3 = e3.add(this.p); + return e3.subtract(r3).multiply(this.coeff).mod(this.p).multiply(this.q).add(r3); + }; + t3.prototype.setPublic = function(t4, e3) { + if (null != t4 && null != e3 && t4.length > 0 && e3.length > 0) { + this.n = U2(t4, 16); + this.e = parseInt(e3, 16); + } else + console.error("Invalid RSA public key"); + }; + t3.prototype.encrypt = function(t4) { + var e3 = this.n.bitLength() + 7 >> 3; + var r3 = ot2(t4, e3); + if (null == r3) + return null; + var i3 = this.doPublic(r3); + if (null == i3) + return null; + var n22 = i3.toString(16); + var s22 = n22.length; + for (var a22 = 0; a22 < 2 * e3 - s22; a22++) + n22 = "0" + n22; + return n22; + }; + t3.prototype.setPrivate = function(t4, e3, r3) { + if (null != t4 && null != e3 && t4.length > 0 && e3.length > 0) { + this.n = U2(t4, 16); + this.e = parseInt(e3, 16); + this.d = U2(r3, 16); + } else + console.error("Invalid RSA private key"); + }; + t3.prototype.setPrivateEx = function(t4, e3, r3, i3, n22, s22, a22, o22) { + if (null != t4 && null != e3 && t4.length > 0 && e3.length > 0) { + this.n = U2(t4, 16); + this.e = parseInt(e3, 16); + this.d = U2(r3, 16); + this.p = U2(i3, 16); + this.q = U2(n22, 16); + this.dmp1 = U2(s22, 16); + this.dmq1 = U2(a22, 16); + this.coeff = U2(o22, 16); + } else + console.error("Invalid RSA private key"); + }; + t3.prototype.generate = function(t4, e3) { + var r3 = new st2(); + var i3 = t4 >> 1; + this.e = parseInt(e3, 16); + var n22 = new C2(e3, 16); + for (; ; ) { + for (; ; ) { + this.p = new C2(t4 - i3, 1, r3); + if (0 == this.p.subtract(C2.ONE).gcd(n22).compareTo(C2.ONE) && this.p.isProbablePrime(10)) + break; + } + for (; ; ) { + this.q = new C2(i3, 1, r3); + if (0 == this.q.subtract(C2.ONE).gcd(n22).compareTo(C2.ONE) && this.q.isProbablePrime(10)) + break; + } + if (this.p.compareTo(this.q) <= 0) { + var s22 = this.p; + this.p = this.q; + this.q = s22; + } + var a22 = this.p.subtract(C2.ONE); + var o22 = this.q.subtract(C2.ONE); + var u22 = a22.multiply(o22); + if (0 == u22.gcd(n22).compareTo(C2.ONE)) { + this.n = this.p.multiply(this.q); + this.d = n22.modInverse(u22); + this.dmp1 = this.d.mod(a22); + this.dmq1 = this.d.mod(o22); + this.coeff = this.q.modInverse(this.p); + break; + } + } + }; + t3.prototype.decrypt = function(t4) { + var e3 = U2(t4, 16); + var r3 = this.doPrivate(e3); + if (null == r3) + return null; + return ct2(r3, this.n.bitLength() + 7 >> 3); + }; + t3.prototype.generateAsync = function(t4, e3, r3) { + var i3 = new st2(); + var n22 = t4 >> 1; + this.e = parseInt(e3, 16); + var s22 = new C2(e3, 16); + var a22 = this; + var o22 = function() { + var e4 = function() { + if (a22.p.compareTo(a22.q) <= 0) { + var t5 = a22.p; + a22.p = a22.q; + a22.q = t5; + } + var e5 = a22.p.subtract(C2.ONE); + var i4 = a22.q.subtract(C2.ONE); + var n3 = e5.multiply(i4); + if (0 == n3.gcd(s22).compareTo(C2.ONE)) { + a22.n = a22.p.multiply(a22.q); + a22.d = s22.modInverse(n3); + a22.dmp1 = a22.d.mod(e5); + a22.dmq1 = a22.d.mod(i4); + a22.coeff = a22.q.modInverse(a22.p); + setTimeout(function() { + r3(); + }, 0); + } else + setTimeout(o22, 0); + }; + var u22 = function() { + a22.q = H2(); + a22.q.fromNumberAsync(n22, 1, i3, function() { + a22.q.subtract(C2.ONE).gcda(s22, function(t5) { + if (0 == t5.compareTo(C2.ONE) && a22.q.isProbablePrime(10)) + setTimeout(e4, 0); + else + setTimeout(u22, 0); + }); + }); + }; + var c22 = function() { + a22.p = H2(); + a22.p.fromNumberAsync(t4 - n22, 1, i3, function() { + a22.p.subtract(C2.ONE).gcda(s22, function(t5) { + if (0 == t5.compareTo(C2.ONE) && a22.p.isProbablePrime(10)) + setTimeout(u22, 0); + else + setTimeout(c22, 0); + }); + }); + }; + setTimeout(c22, 0); + }; + setTimeout(o22, 0); + }; + t3.prototype.sign = function(t4, e3, r3) { + var i3 = ht2(r3); + var n22 = i3 + e3(t4).toString(); + var s22 = at2(n22, this.n.bitLength() / 4); + if (null == s22) + return null; + var a22 = this.doPrivate(s22); + if (null == a22) + return null; + var o22 = a22.toString(16); + if (0 == (1 & o22.length)) + return o22; + else + return "0" + o22; + }; + t3.prototype.verify = function(t4, e3, r3) { + var i3 = U2(e3, 16); + var n22 = this.doPublic(i3); + if (null == n22) + return null; + var s22 = n22.toString(16).replace(/^1f+00/, ""); + var a22 = dt2(s22); + return a22 == r3(t4).toString(); + }; + t3.prototype.encryptLong = function(t4) { + var e3 = this; + var r3 = ""; + var i3 = (this.n.bitLength() + 7 >> 3) - 11; + var n22 = this.setSplitChn(t4, i3); + n22.forEach(function(t5) { + r3 += e3.encrypt(t5); + }); + return r3; + }; + t3.prototype.decryptLong = function(t4) { + var e3 = ""; + var r3 = this.n.bitLength() + 7 >> 3; + var i3 = 2 * r3; + if (t4.length > i3) { + var n22 = t4.match(new RegExp(".{1," + i3 + "}", "g")) || []; + var s22 = []; + for (var a22 = 0; a22 < n22.length; a22++) { + var o22 = U2(n22[a22], 16); + var u22 = this.doPrivate(o22); + if (null == u22) + return null; + s22.push(u22); + } + e3 = lt2(s22, r3); + } else + e3 = this.decrypt(t4); + return e3; + }; + t3.prototype.setSplitChn = function(t4, e3, r3) { + if (void 0 === r3) + r3 = []; + var i3 = t4.split(""); + var n22 = 0; + for (var s22 = 0; s22 < i3.length; s22++) { + var a22 = i3[s22].charCodeAt(0); + if (a22 <= 127) + n22 += 1; + else if (a22 <= 2047) + n22 += 2; + else if (a22 <= 65535) + n22 += 3; + else + n22 += 4; + if (n22 > e3) { + var o22 = t4.substring(0, s22); + r3.push(o22); + return this.setSplitChn(t4.substring(s22), e3, r3); + } + } + r3.push(t4); + return r3; + }; + return t3; + }(); + function ct2(t3, e3) { + var r3 = t3.toByteArray(); + var i3 = 0; + while (i3 < r3.length && 0 == r3[i3]) + ++i3; + if (r3.length - i3 != e3 - 1 || 2 != r3[i3]) + return null; + ++i3; + while (0 != r3[i3]) + if (++i3 >= r3.length) + return null; + var n22 = ""; + while (++i3 < r3.length) { + var s22 = 255 & r3[i3]; + if (s22 < 128) + n22 += String.fromCharCode(s22); + else if (s22 > 191 && s22 < 224) { + n22 += String.fromCharCode((31 & s22) << 6 | 63 & r3[i3 + 1]); + ++i3; + } else { + n22 += String.fromCharCode((15 & s22) << 12 | (63 & r3[i3 + 1]) << 6 | 63 & r3[i3 + 2]); + i3 += 2; + } + } + return n22; + } + function lt2(t3, e3) { + var r3 = []; + for (var i3 = 0; i3 < t3.length; i3++) { + var n22 = t3[i3]; + var s22 = n22.toByteArray(); + var a22 = 0; + while (a22 < s22.length && 0 == s22[a22]) + ++a22; + if (s22.length - a22 != e3 - 1 || 2 != s22[a22]) + return null; + ++a22; + while (0 != s22[a22]) + if (++a22 >= s22.length) + return null; + r3 = r3.concat(s22.slice(a22 + 1)); + } + var o22 = r3; + var u22 = -1; + var c22 = ""; + while (++u22 < o22.length) { + var l22 = 255 & o22[u22]; + if (l22 < 128) + c22 += String.fromCharCode(l22); + else if (l22 > 191 && l22 < 224) { + c22 += String.fromCharCode((31 & l22) << 6 | 63 & o22[u22 + 1]); + ++u22; + } else { + c22 += String.fromCharCode((15 & l22) << 12 | (63 & o22[u22 + 1]) << 6 | 63 & o22[u22 + 2]); + u22 += 2; + } + } + return c22; + } + var ft2 = { md2: "3020300c06082a864886f70d020205000410", md5: "3020300c06082a864886f70d020505000410", sha1: "3021300906052b0e03021a05000414", sha224: "302d300d06096086480165030402040500041c", sha256: "3031300d060960864801650304020105000420", sha384: "3041300d060960864801650304020205000430", sha512: "3051300d060960864801650304020305000440", ripemd160: "3021300906052b2403020105000414" }; + function ht2(t3) { + return ft2[t3] || ""; + } + function dt2(t3) { + for (var e3 in ft2) + if (ft2.hasOwnProperty(e3)) { + var r3 = ft2[e3]; + var i3 = r3.length; + if (t3.substr(0, i3) == r3) + return t3.substr(i3); + } + return t3; + } + var vt2 = {}; + vt2.lang = { extend: function(t3, e3, r3) { + if (!e3 || !t3) + throw new Error("YAHOO.lang.extend failed, please check that all dependencies are included."); + var i3 = function() { + }; + i3.prototype = e3.prototype; + t3.prototype = new i3(); + t3.prototype.constructor = t3; + t3.superclass = e3.prototype; + if (e3.prototype.constructor == Object.prototype.constructor) + e3.prototype.constructor = e3; + if (r3) { + var n22; + for (n22 in r3) + t3.prototype[n22] = r3[n22]; + var s22 = function() { + }, a22 = ["toString", "valueOf"]; + try { + if (/MSIE/.test(navigator.userAgent)) + s22 = function(t4, e4) { + for (n22 = 0; n22 < a22.length; n22 += 1) { + var r4 = a22[n22], i4 = e4[r4]; + if ("function" === typeof i4 && i4 != Object.prototype[r4]) + t4[r4] = i4; + } + }; + } catch (t4) { + } + s22(t3.prototype, r3); + } + } }; + var pt2 = {}; + if ("undefined" == typeof pt2.asn1 || !pt2.asn1) + pt2.asn1 = {}; + pt2.asn1.ASN1Util = new function() { + this.integerToByteHex = function(t3) { + var e3 = t3.toString(16); + if (e3.length % 2 == 1) + e3 = "0" + e3; + return e3; + }; + this.bigIntToMinTwosComplementsHex = function(t3) { + var e3 = t3.toString(16); + if ("-" != e3.substr(0, 1)) { + if (e3.length % 2 == 1) + e3 = "0" + e3; + else if (!e3.match(/^[0-7]/)) + e3 = "00" + e3; + } else { + var r3 = e3.substr(1); + var i3 = r3.length; + if (i3 % 2 == 1) + i3 += 1; + else if (!e3.match(/^[0-7]/)) + i3 += 2; + var n22 = ""; + for (var s22 = 0; s22 < i3; s22++) + n22 += "f"; + var a22 = new C2(n22, 16); + var o22 = a22.xor(t3).add(C2.ONE); + e3 = o22.toString(16).replace(/^-/, ""); + } + return e3; + }; + this.getPEMStringFromHex = function(t3, e3) { + return hextopem(t3, e3); + }; + this.newObject = function(t3) { + var e3 = pt2, r3 = e3.asn1, i3 = r3.DERBoolean, n22 = r3.DERInteger, s22 = r3.DERBitString, a22 = r3.DEROctetString, o22 = r3.DERNull, u22 = r3.DERObjectIdentifier, c22 = r3.DEREnumerated, l22 = r3.DERUTF8String, f22 = r3.DERNumericString, h22 = r3.DERPrintableString, d22 = r3.DERTeletexString, v22 = r3.DERIA5String, p2 = r3.DERUTCTime, g22 = r3.DERGeneralizedTime, y22 = r3.DERSequence, m22 = r3.DERSet, w22 = r3.DERTaggedObject, S22 = r3.ASN1Util.newObject; + var _22 = Object.keys(t3); + if (1 != _22.length) + throw "key of param shall be only one."; + var b22 = _22[0]; + if (-1 == ":bool:int:bitstr:octstr:null:oid:enum:utf8str:numstr:prnstr:telstr:ia5str:utctime:gentime:seq:set:tag:".indexOf(":" + b22 + ":")) + throw "undefined key: " + b22; + if ("bool" == b22) + return new i3(t3[b22]); + if ("int" == b22) + return new n22(t3[b22]); + if ("bitstr" == b22) + return new s22(t3[b22]); + if ("octstr" == b22) + return new a22(t3[b22]); + if ("null" == b22) + return new o22(t3[b22]); + if ("oid" == b22) + return new u22(t3[b22]); + if ("enum" == b22) + return new c22(t3[b22]); + if ("utf8str" == b22) + return new l22(t3[b22]); + if ("numstr" == b22) + return new f22(t3[b22]); + if ("prnstr" == b22) + return new h22(t3[b22]); + if ("telstr" == b22) + return new d22(t3[b22]); + if ("ia5str" == b22) + return new v22(t3[b22]); + if ("utctime" == b22) + return new p2(t3[b22]); + if ("gentime" == b22) + return new g22(t3[b22]); + if ("seq" == b22) { + var E22 = t3[b22]; + var D22 = []; + for (var M22 = 0; M22 < E22.length; M22++) { + var T22 = S22(E22[M22]); + D22.push(T22); + } + return new y22({ array: D22 }); + } + if ("set" == b22) { + var E22 = t3[b22]; + var D22 = []; + for (var M22 = 0; M22 < E22.length; M22++) { + var T22 = S22(E22[M22]); + D22.push(T22); + } + return new m22({ array: D22 }); + } + if ("tag" == b22) { + var I22 = t3[b22]; + if ("[object Array]" === Object.prototype.toString.call(I22) && 3 == I22.length) { + var A22 = S22(I22[2]); + return new w22({ tag: I22[0], explicit: I22[1], obj: A22 }); + } else { + var x2 = {}; + if (void 0 !== I22.explicit) + x2.explicit = I22.explicit; + if (void 0 !== I22.tag) + x2.tag = I22.tag; + if (void 0 === I22.obj) + throw "obj shall be specified for 'tag'."; + x2.obj = S22(I22.obj); + return new w22(x2); + } + } + }; + this.jsonToASN1HEX = function(t3) { + var e3 = this.newObject(t3); + return e3.getEncodedHex(); + }; + }(); + pt2.asn1.ASN1Util.oidHexToInt = function(t3) { + var e3 = ""; + var r3 = parseInt(t3.substr(0, 2), 16); + var i3 = Math.floor(r3 / 40); + var n22 = r3 % 40; + var e3 = i3 + "." + n22; + var s22 = ""; + for (var a22 = 2; a22 < t3.length; a22 += 2) { + var o22 = parseInt(t3.substr(a22, 2), 16); + var u22 = ("00000000" + o22.toString(2)).slice(-8); + s22 += u22.substr(1, 7); + if ("0" == u22.substr(0, 1)) { + var c22 = new C2(s22, 2); + e3 = e3 + "." + c22.toString(10); + s22 = ""; + } + } + return e3; + }; + pt2.asn1.ASN1Util.oidIntToHex = function(t3) { + var e3 = function(t4) { + var e4 = t4.toString(16); + if (1 == e4.length) + e4 = "0" + e4; + return e4; + }; + var r3 = function(t4) { + var r4 = ""; + var i4 = new C2(t4, 10); + var n3 = i4.toString(2); + var s3 = 7 - n3.length % 7; + if (7 == s3) + s3 = 0; + var a3 = ""; + for (var o22 = 0; o22 < s3; o22++) + a3 += "0"; + n3 = a3 + n3; + for (var o22 = 0; o22 < n3.length - 1; o22 += 7) { + var u22 = n3.substr(o22, 7); + if (o22 != n3.length - 7) + u22 = "1" + u22; + r4 += e3(parseInt(u22, 2)); + } + return r4; + }; + if (!t3.match(/^[0-9.]+$/)) + throw "malformed oid string: " + t3; + var i3 = ""; + var n22 = t3.split("."); + var s22 = 40 * parseInt(n22[0]) + parseInt(n22[1]); + i3 += e3(s22); + n22.splice(0, 2); + for (var a22 = 0; a22 < n22.length; a22++) + i3 += r3(n22[a22]); + return i3; + }; + pt2.asn1.ASN1Object = function() { + var n22 = ""; + this.getLengthHexFromValue = function() { + if ("undefined" == typeof this.hV || null == this.hV) + throw "this.hV is null or undefined."; + if (this.hV.length % 2 == 1) + throw "value hex must be even length: n=" + n22.length + ",v=" + this.hV; + var t3 = this.hV.length / 2; + var e3 = t3.toString(16); + if (e3.length % 2 == 1) + e3 = "0" + e3; + if (t3 < 128) + return e3; + else { + var r3 = e3.length / 2; + if (r3 > 15) + throw "ASN.1 length too long to represent by 8x: n = " + t3.toString(16); + var i3 = 128 + r3; + return i3.toString(16) + e3; + } + }; + this.getEncodedHex = function() { + if (null == this.hTLV || this.isModified) { + this.hV = this.getFreshValueHex(); + this.hL = this.getLengthHexFromValue(); + this.hTLV = this.hT + this.hL + this.hV; + this.isModified = false; + } + return this.hTLV; + }; + this.getValueHex = function() { + this.getEncodedHex(); + return this.hV; + }; + this.getFreshValueHex = function() { + return ""; + }; + }; + pt2.asn1.DERAbstractString = function(t3) { + pt2.asn1.DERAbstractString.superclass.constructor.call(this); + this.getString = function() { + return this.s; + }; + this.setString = function(t4) { + this.hTLV = null; + this.isModified = true; + this.s = t4; + this.hV = stohex(this.s); + }; + this.setStringHex = function(t4) { + this.hTLV = null; + this.isModified = true; + this.s = null; + this.hV = t4; + }; + this.getFreshValueHex = function() { + return this.hV; + }; + if ("undefined" != typeof t3) { + if ("string" == typeof t3) + this.setString(t3); + else if ("undefined" != typeof t3["str"]) + this.setString(t3["str"]); + else if ("undefined" != typeof t3["hex"]) + this.setStringHex(t3["hex"]); + } + }; + vt2.lang.extend(pt2.asn1.DERAbstractString, pt2.asn1.ASN1Object); + pt2.asn1.DERAbstractTime = function(t3) { + pt2.asn1.DERAbstractTime.superclass.constructor.call(this); + this.localDateToUTC = function(t4) { + utc = t4.getTime() + 6e4 * t4.getTimezoneOffset(); + var e3 = new Date(utc); + return e3; + }; + this.formatDate = function(t4, e3, r3) { + var i3 = this.zeroPadding; + var n22 = this.localDateToUTC(t4); + var s22 = String(n22.getFullYear()); + if ("utc" == e3) + s22 = s22.substr(2, 2); + var a22 = i3(String(n22.getMonth() + 1), 2); + var o22 = i3(String(n22.getDate()), 2); + var u22 = i3(String(n22.getHours()), 2); + var c22 = i3(String(n22.getMinutes()), 2); + var l22 = i3(String(n22.getSeconds()), 2); + var f22 = s22 + a22 + o22 + u22 + c22 + l22; + if (true === r3) { + var h22 = n22.getMilliseconds(); + if (0 != h22) { + var d22 = i3(String(h22), 3); + d22 = d22.replace(/[0]+$/, ""); + f22 = f22 + "." + d22; + } + } + return f22 + "Z"; + }; + this.zeroPadding = function(t4, e3) { + if (t4.length >= e3) + return t4; + return new Array(e3 - t4.length + 1).join("0") + t4; + }; + this.getString = function() { + return this.s; + }; + this.setString = function(t4) { + this.hTLV = null; + this.isModified = true; + this.s = t4; + this.hV = stohex(t4); + }; + this.setByDateValue = function(t4, e3, r3, i3, n22, s22) { + var a22 = new Date(Date.UTC(t4, e3 - 1, r3, i3, n22, s22, 0)); + this.setByDate(a22); + }; + this.getFreshValueHex = function() { + return this.hV; + }; + }; + vt2.lang.extend(pt2.asn1.DERAbstractTime, pt2.asn1.ASN1Object); + pt2.asn1.DERAbstractStructured = function(t3) { + pt2.asn1.DERAbstractString.superclass.constructor.call(this); + this.setByASN1ObjectArray = function(t4) { + this.hTLV = null; + this.isModified = true; + this.asn1Array = t4; + }; + this.appendASN1Object = function(t4) { + this.hTLV = null; + this.isModified = true; + this.asn1Array.push(t4); + }; + this.asn1Array = new Array(); + if ("undefined" != typeof t3) { + if ("undefined" != typeof t3["array"]) + this.asn1Array = t3["array"]; + } + }; + vt2.lang.extend(pt2.asn1.DERAbstractStructured, pt2.asn1.ASN1Object); + pt2.asn1.DERBoolean = function() { + pt2.asn1.DERBoolean.superclass.constructor.call(this); + this.hT = "01"; + this.hTLV = "0101ff"; + }; + vt2.lang.extend(pt2.asn1.DERBoolean, pt2.asn1.ASN1Object); + pt2.asn1.DERInteger = function(t3) { + pt2.asn1.DERInteger.superclass.constructor.call(this); + this.hT = "02"; + this.setByBigInteger = function(t4) { + this.hTLV = null; + this.isModified = true; + this.hV = pt2.asn1.ASN1Util.bigIntToMinTwosComplementsHex(t4); + }; + this.setByInteger = function(t4) { + var e3 = new C2(String(t4), 10); + this.setByBigInteger(e3); + }; + this.setValueHex = function(t4) { + this.hV = t4; + }; + this.getFreshValueHex = function() { + return this.hV; + }; + if ("undefined" != typeof t3) { + if ("undefined" != typeof t3["bigint"]) + this.setByBigInteger(t3["bigint"]); + else if ("undefined" != typeof t3["int"]) + this.setByInteger(t3["int"]); + else if ("number" == typeof t3) + this.setByInteger(t3); + else if ("undefined" != typeof t3["hex"]) + this.setValueHex(t3["hex"]); + } + }; + vt2.lang.extend(pt2.asn1.DERInteger, pt2.asn1.ASN1Object); + pt2.asn1.DERBitString = function(t3) { + if (void 0 !== t3 && "undefined" !== typeof t3.obj) { + var e3 = pt2.asn1.ASN1Util.newObject(t3.obj); + t3.hex = "00" + e3.getEncodedHex(); + } + pt2.asn1.DERBitString.superclass.constructor.call(this); + this.hT = "03"; + this.setHexValueIncludingUnusedBits = function(t4) { + this.hTLV = null; + this.isModified = true; + this.hV = t4; + }; + this.setUnusedBitsAndHexValue = function(t4, e4) { + if (t4 < 0 || 7 < t4) + throw "unused bits shall be from 0 to 7: u = " + t4; + var r3 = "0" + t4; + this.hTLV = null; + this.isModified = true; + this.hV = r3 + e4; + }; + this.setByBinaryString = function(t4) { + t4 = t4.replace(/0+$/, ""); + var e4 = 8 - t4.length % 8; + if (8 == e4) + e4 = 0; + for (var r3 = 0; r3 <= e4; r3++) + t4 += "0"; + var i3 = ""; + for (var r3 = 0; r3 < t4.length - 1; r3 += 8) { + var n22 = t4.substr(r3, 8); + var s22 = parseInt(n22, 2).toString(16); + if (1 == s22.length) + s22 = "0" + s22; + i3 += s22; + } + this.hTLV = null; + this.isModified = true; + this.hV = "0" + e4 + i3; + }; + this.setByBooleanArray = function(t4) { + var e4 = ""; + for (var r3 = 0; r3 < t4.length; r3++) + if (true == t4[r3]) + e4 += "1"; + else + e4 += "0"; + this.setByBinaryString(e4); + }; + this.newFalseArray = function(t4) { + var e4 = new Array(t4); + for (var r3 = 0; r3 < t4; r3++) + e4[r3] = false; + return e4; + }; + this.getFreshValueHex = function() { + return this.hV; + }; + if ("undefined" != typeof t3) { + if ("string" == typeof t3 && t3.toLowerCase().match(/^[0-9a-f]+$/)) + this.setHexValueIncludingUnusedBits(t3); + else if ("undefined" != typeof t3["hex"]) + this.setHexValueIncludingUnusedBits(t3["hex"]); + else if ("undefined" != typeof t3["bin"]) + this.setByBinaryString(t3["bin"]); + else if ("undefined" != typeof t3["array"]) + this.setByBooleanArray(t3["array"]); + } + }; + vt2.lang.extend(pt2.asn1.DERBitString, pt2.asn1.ASN1Object); + pt2.asn1.DEROctetString = function(t3) { + if (void 0 !== t3 && "undefined" !== typeof t3.obj) { + var e3 = pt2.asn1.ASN1Util.newObject(t3.obj); + t3.hex = e3.getEncodedHex(); + } + pt2.asn1.DEROctetString.superclass.constructor.call(this, t3); + this.hT = "04"; + }; + vt2.lang.extend(pt2.asn1.DEROctetString, pt2.asn1.DERAbstractString); + pt2.asn1.DERNull = function() { + pt2.asn1.DERNull.superclass.constructor.call(this); + this.hT = "05"; + this.hTLV = "0500"; + }; + vt2.lang.extend(pt2.asn1.DERNull, pt2.asn1.ASN1Object); + pt2.asn1.DERObjectIdentifier = function(t3) { + var e3 = function(t4) { + var e4 = t4.toString(16); + if (1 == e4.length) + e4 = "0" + e4; + return e4; + }; + var r3 = function(t4) { + var r4 = ""; + var i3 = new C2(t4, 10); + var n22 = i3.toString(2); + var s22 = 7 - n22.length % 7; + if (7 == s22) + s22 = 0; + var a22 = ""; + for (var o22 = 0; o22 < s22; o22++) + a22 += "0"; + n22 = a22 + n22; + for (var o22 = 0; o22 < n22.length - 1; o22 += 7) { + var u22 = n22.substr(o22, 7); + if (o22 != n22.length - 7) + u22 = "1" + u22; + r4 += e3(parseInt(u22, 2)); + } + return r4; + }; + pt2.asn1.DERObjectIdentifier.superclass.constructor.call(this); + this.hT = "06"; + this.setValueHex = function(t4) { + this.hTLV = null; + this.isModified = true; + this.s = null; + this.hV = t4; + }; + this.setValueOidString = function(t4) { + if (!t4.match(/^[0-9.]+$/)) + throw "malformed oid string: " + t4; + var i3 = ""; + var n22 = t4.split("."); + var s22 = 40 * parseInt(n22[0]) + parseInt(n22[1]); + i3 += e3(s22); + n22.splice(0, 2); + for (var a22 = 0; a22 < n22.length; a22++) + i3 += r3(n22[a22]); + this.hTLV = null; + this.isModified = true; + this.s = null; + this.hV = i3; + }; + this.setValueName = function(t4) { + var e4 = pt2.asn1.x509.OID.name2oid(t4); + if ("" !== e4) + this.setValueOidString(e4); + else + throw "DERObjectIdentifier oidName undefined: " + t4; + }; + this.getFreshValueHex = function() { + return this.hV; + }; + if (void 0 !== t3) { + if ("string" === typeof t3) + if (t3.match(/^[0-2].[0-9.]+$/)) + this.setValueOidString(t3); + else + this.setValueName(t3); + else if (void 0 !== t3.oid) + this.setValueOidString(t3.oid); + else if (void 0 !== t3.hex) + this.setValueHex(t3.hex); + else if (void 0 !== t3.name) + this.setValueName(t3.name); + } + }; + vt2.lang.extend(pt2.asn1.DERObjectIdentifier, pt2.asn1.ASN1Object); + pt2.asn1.DEREnumerated = function(t3) { + pt2.asn1.DEREnumerated.superclass.constructor.call(this); + this.hT = "0a"; + this.setByBigInteger = function(t4) { + this.hTLV = null; + this.isModified = true; + this.hV = pt2.asn1.ASN1Util.bigIntToMinTwosComplementsHex(t4); + }; + this.setByInteger = function(t4) { + var e3 = new C2(String(t4), 10); + this.setByBigInteger(e3); + }; + this.setValueHex = function(t4) { + this.hV = t4; + }; + this.getFreshValueHex = function() { + return this.hV; + }; + if ("undefined" != typeof t3) { + if ("undefined" != typeof t3["int"]) + this.setByInteger(t3["int"]); + else if ("number" == typeof t3) + this.setByInteger(t3); + else if ("undefined" != typeof t3["hex"]) + this.setValueHex(t3["hex"]); + } + }; + vt2.lang.extend(pt2.asn1.DEREnumerated, pt2.asn1.ASN1Object); + pt2.asn1.DERUTF8String = function(t3) { + pt2.asn1.DERUTF8String.superclass.constructor.call(this, t3); + this.hT = "0c"; + }; + vt2.lang.extend(pt2.asn1.DERUTF8String, pt2.asn1.DERAbstractString); + pt2.asn1.DERNumericString = function(t3) { + pt2.asn1.DERNumericString.superclass.constructor.call(this, t3); + this.hT = "12"; + }; + vt2.lang.extend(pt2.asn1.DERNumericString, pt2.asn1.DERAbstractString); + pt2.asn1.DERPrintableString = function(t3) { + pt2.asn1.DERPrintableString.superclass.constructor.call(this, t3); + this.hT = "13"; + }; + vt2.lang.extend(pt2.asn1.DERPrintableString, pt2.asn1.DERAbstractString); + pt2.asn1.DERTeletexString = function(t3) { + pt2.asn1.DERTeletexString.superclass.constructor.call(this, t3); + this.hT = "14"; + }; + vt2.lang.extend(pt2.asn1.DERTeletexString, pt2.asn1.DERAbstractString); + pt2.asn1.DERIA5String = function(t3) { + pt2.asn1.DERIA5String.superclass.constructor.call(this, t3); + this.hT = "16"; + }; + vt2.lang.extend(pt2.asn1.DERIA5String, pt2.asn1.DERAbstractString); + pt2.asn1.DERUTCTime = function(t3) { + pt2.asn1.DERUTCTime.superclass.constructor.call(this, t3); + this.hT = "17"; + this.setByDate = function(t4) { + this.hTLV = null; + this.isModified = true; + this.date = t4; + this.s = this.formatDate(this.date, "utc"); + this.hV = stohex(this.s); + }; + this.getFreshValueHex = function() { + if ("undefined" == typeof this.date && "undefined" == typeof this.s) { + this.date = /* @__PURE__ */ new Date(); + this.s = this.formatDate(this.date, "utc"); + this.hV = stohex(this.s); + } + return this.hV; + }; + if (void 0 !== t3) { + if (void 0 !== t3.str) + this.setString(t3.str); + else if ("string" == typeof t3 && t3.match(/^[0-9]{12}Z$/)) + this.setString(t3); + else if (void 0 !== t3.hex) + this.setStringHex(t3.hex); + else if (void 0 !== t3.date) + this.setByDate(t3.date); + } + }; + vt2.lang.extend(pt2.asn1.DERUTCTime, pt2.asn1.DERAbstractTime); + pt2.asn1.DERGeneralizedTime = function(t3) { + pt2.asn1.DERGeneralizedTime.superclass.constructor.call(this, t3); + this.hT = "18"; + this.withMillis = false; + this.setByDate = function(t4) { + this.hTLV = null; + this.isModified = true; + this.date = t4; + this.s = this.formatDate(this.date, "gen", this.withMillis); + this.hV = stohex(this.s); + }; + this.getFreshValueHex = function() { + if (void 0 === this.date && void 0 === this.s) { + this.date = /* @__PURE__ */ new Date(); + this.s = this.formatDate(this.date, "gen", this.withMillis); + this.hV = stohex(this.s); + } + return this.hV; + }; + if (void 0 !== t3) { + if (void 0 !== t3.str) + this.setString(t3.str); + else if ("string" == typeof t3 && t3.match(/^[0-9]{14}Z$/)) + this.setString(t3); + else if (void 0 !== t3.hex) + this.setStringHex(t3.hex); + else if (void 0 !== t3.date) + this.setByDate(t3.date); + if (true === t3.millis) + this.withMillis = true; + } + }; + vt2.lang.extend(pt2.asn1.DERGeneralizedTime, pt2.asn1.DERAbstractTime); + pt2.asn1.DERSequence = function(t3) { + pt2.asn1.DERSequence.superclass.constructor.call(this, t3); + this.hT = "30"; + this.getFreshValueHex = function() { + var t4 = ""; + for (var e3 = 0; e3 < this.asn1Array.length; e3++) { + var r3 = this.asn1Array[e3]; + t4 += r3.getEncodedHex(); + } + this.hV = t4; + return this.hV; + }; + }; + vt2.lang.extend(pt2.asn1.DERSequence, pt2.asn1.DERAbstractStructured); + pt2.asn1.DERSet = function(t3) { + pt2.asn1.DERSet.superclass.constructor.call(this, t3); + this.hT = "31"; + this.sortFlag = true; + this.getFreshValueHex = function() { + var t4 = new Array(); + for (var e3 = 0; e3 < this.asn1Array.length; e3++) { + var r3 = this.asn1Array[e3]; + t4.push(r3.getEncodedHex()); + } + if (true == this.sortFlag) + t4.sort(); + this.hV = t4.join(""); + return this.hV; + }; + if ("undefined" != typeof t3) { + if ("undefined" != typeof t3.sortflag && false == t3.sortflag) + this.sortFlag = false; + } + }; + vt2.lang.extend(pt2.asn1.DERSet, pt2.asn1.DERAbstractStructured); + pt2.asn1.DERTaggedObject = function(t3) { + pt2.asn1.DERTaggedObject.superclass.constructor.call(this); + this.hT = "a0"; + this.hV = ""; + this.isExplicit = true; + this.asn1Object = null; + this.setASN1Object = function(t4, e3, r3) { + this.hT = e3; + this.isExplicit = t4; + this.asn1Object = r3; + if (this.isExplicit) { + this.hV = this.asn1Object.getEncodedHex(); + this.hTLV = null; + this.isModified = true; + } else { + this.hV = null; + this.hTLV = r3.getEncodedHex(); + this.hTLV = this.hTLV.replace(/^../, e3); + this.isModified = false; + } + }; + this.getFreshValueHex = function() { + return this.hV; + }; + if ("undefined" != typeof t3) { + if ("undefined" != typeof t3["tag"]) + this.hT = t3["tag"]; + if ("undefined" != typeof t3["explicit"]) + this.isExplicit = t3["explicit"]; + if ("undefined" != typeof t3["obj"]) { + this.asn1Object = t3["obj"]; + this.setASN1Object(this.isExplicit, this.hT, this.asn1Object); + } + } + }; + vt2.lang.extend(pt2.asn1.DERTaggedObject, pt2.asn1.ASN1Object); + var gt2 = /* @__PURE__ */ function() { + var t3 = function(e3, r3) { + t3 = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t4, e4) { + t4.__proto__ = e4; + } || function(t4, e4) { + for (var r4 in e4) + if (Object.prototype.hasOwnProperty.call(e4, r4)) + t4[r4] = e4[r4]; + }; + return t3(e3, r3); + }; + return function(e3, r3) { + if ("function" !== typeof r3 && null !== r3) + throw new TypeError("Class extends value " + String(r3) + " is not a constructor or null"); + t3(e3, r3); + function i3() { + this.constructor = e3; + } + e3.prototype = null === r3 ? Object.create(r3) : (i3.prototype = r3.prototype, new i3()); + }; + }(); + var yt2 = function(t3) { + gt2(e3, t3); + function e3(r3) { + var i3 = t3.call(this) || this; + if (r3) { + if ("string" === typeof r3) + i3.parseKey(r3); + else if (e3.hasPrivateKeyProperty(r3) || e3.hasPublicKeyProperty(r3)) + i3.parsePropertiesFrom(r3); + } + return i3; + } + e3.prototype.parseKey = function(t4) { + try { + var e4 = 0; + var r3 = 0; + var i3 = /^\s*(?:[0-9A-Fa-f][0-9A-Fa-f]\s*)+$/; + var n22 = i3.test(t4) ? y2.decode(t4) : w2.unarmor(t4); + var s22 = I2.decode(n22); + if (3 === s22.sub.length) + s22 = s22.sub[2].sub[0]; + if (9 === s22.sub.length) { + e4 = s22.sub[1].getHexStringValue(); + this.n = U2(e4, 16); + r3 = s22.sub[2].getHexStringValue(); + this.e = parseInt(r3, 16); + var a22 = s22.sub[3].getHexStringValue(); + this.d = U2(a22, 16); + var o22 = s22.sub[4].getHexStringValue(); + this.p = U2(o22, 16); + var u22 = s22.sub[5].getHexStringValue(); + this.q = U2(u22, 16); + var c22 = s22.sub[6].getHexStringValue(); + this.dmp1 = U2(c22, 16); + var l22 = s22.sub[7].getHexStringValue(); + this.dmq1 = U2(l22, 16); + var f22 = s22.sub[8].getHexStringValue(); + this.coeff = U2(f22, 16); + } else if (2 === s22.sub.length) { + var h22 = s22.sub[1]; + var d22 = h22.sub[0]; + e4 = d22.sub[0].getHexStringValue(); + this.n = U2(e4, 16); + r3 = d22.sub[1].getHexStringValue(); + this.e = parseInt(r3, 16); + } else + return false; + return true; + } catch (t5) { + return false; + } + }; + e3.prototype.getPrivateBaseKey = function() { + var t4 = { array: [new pt2.asn1.DERInteger({ int: 0 }), new pt2.asn1.DERInteger({ bigint: this.n }), new pt2.asn1.DERInteger({ int: this.e }), new pt2.asn1.DERInteger({ bigint: this.d }), new pt2.asn1.DERInteger({ bigint: this.p }), new pt2.asn1.DERInteger({ bigint: this.q }), new pt2.asn1.DERInteger({ bigint: this.dmp1 }), new pt2.asn1.DERInteger({ bigint: this.dmq1 }), new pt2.asn1.DERInteger({ bigint: this.coeff })] }; + var e4 = new pt2.asn1.DERSequence(t4); + return e4.getEncodedHex(); + }; + e3.prototype.getPrivateBaseKeyB64 = function() { + return d2(this.getPrivateBaseKey()); + }; + e3.prototype.getPublicBaseKey = function() { + var t4 = new pt2.asn1.DERSequence({ array: [new pt2.asn1.DERObjectIdentifier({ oid: "1.2.840.113549.1.1.1" }), new pt2.asn1.DERNull()] }); + var e4 = new pt2.asn1.DERSequence({ array: [new pt2.asn1.DERInteger({ bigint: this.n }), new pt2.asn1.DERInteger({ int: this.e })] }); + var r3 = new pt2.asn1.DERBitString({ hex: "00" + e4.getEncodedHex() }); + var i3 = new pt2.asn1.DERSequence({ array: [t4, r3] }); + return i3.getEncodedHex(); + }; + e3.prototype.getPublicBaseKeyB64 = function() { + return d2(this.getPublicBaseKey()); + }; + e3.wordwrap = function(t4, e4) { + e4 = e4 || 64; + if (!t4) + return t4; + var r3 = "(.{1," + e4 + "})( +|$\n?)|(.{1," + e4 + "})"; + return t4.match(RegExp(r3, "g")).join("\n"); + }; + e3.prototype.getPrivateKey = function() { + var t4 = "-----BEGIN RSA PRIVATE KEY-----\n"; + t4 += e3.wordwrap(this.getPrivateBaseKeyB64()) + "\n"; + t4 += "-----END RSA PRIVATE KEY-----"; + return t4; + }; + e3.prototype.getPublicKey = function() { + var t4 = "-----BEGIN PUBLIC KEY-----\n"; + t4 += e3.wordwrap(this.getPublicBaseKeyB64()) + "\n"; + t4 += "-----END PUBLIC KEY-----"; + return t4; + }; + e3.hasPublicKeyProperty = function(t4) { + t4 = t4 || {}; + return t4.hasOwnProperty("n") && t4.hasOwnProperty("e"); + }; + e3.hasPrivateKeyProperty = function(t4) { + t4 = t4 || {}; + return t4.hasOwnProperty("n") && t4.hasOwnProperty("e") && t4.hasOwnProperty("d") && t4.hasOwnProperty("p") && t4.hasOwnProperty("q") && t4.hasOwnProperty("dmp1") && t4.hasOwnProperty("dmq1") && t4.hasOwnProperty("coeff"); + }; + e3.prototype.parsePropertiesFrom = function(t4) { + this.n = t4.n; + this.e = t4.e; + if (t4.hasOwnProperty("d")) { + this.d = t4.d; + this.p = t4.p; + this.q = t4.q; + this.dmp1 = t4.dmp1; + this.dmq1 = t4.dmq1; + this.coeff = t4.coeff; + } + }; + return e3; + }(ut2); + const mt2 = { i: "3.2.1" }; + var wt2 = function() { + function t3(t4) { + if (void 0 === t4) + t4 = {}; + t4 = t4 || {}; + this.default_key_size = t4.default_key_size ? parseInt(t4.default_key_size, 10) : 1024; + this.default_public_exponent = t4.default_public_exponent || "010001"; + this.log = t4.log || false; + this.key = null; + } + t3.prototype.setKey = function(t4) { + if (this.log && this.key) + console.warn("A key was already set, overriding existing."); + this.key = new yt2(t4); + }; + t3.prototype.setPrivateKey = function(t4) { + this.setKey(t4); + }; + t3.prototype.setPublicKey = function(t4) { + this.setKey(t4); + }; + t3.prototype.decrypt = function(t4) { + try { + return this.getKey().decrypt(t4); + } catch (t5) { + return false; + } + }; + t3.prototype.encrypt = function(t4) { + try { + return this.getKey().encrypt(t4); + } catch (t5) { + return false; + } + }; + t3.prototype.encryptLong = function(t4) { + try { + return d2(this.getKey().encryptLong(t4)); + } catch (t5) { + return false; + } + }; + t3.prototype.decryptLong = function(t4) { + try { + return this.getKey().decryptLong(t4); + } catch (t5) { + return false; + } + }; + t3.prototype.sign = function(t4, e3, r3) { + try { + return d2(this.getKey().sign(t4, e3, r3)); + } catch (t5) { + return false; + } + }; + t3.prototype.verify = function(t4, e3, r3) { + try { + return this.getKey().verify(t4, v2(e3), r3); + } catch (t5) { + return false; + } + }; + t3.prototype.getKey = function(t4) { + if (!this.key) { + this.key = new yt2(); + if (t4 && "[object Function]" === {}.toString.call(t4)) { + this.key.generateAsync(this.default_key_size, this.default_public_exponent, t4); + return; + } + this.key.generate(this.default_key_size, this.default_public_exponent); + } + return this.key; + }; + t3.prototype.getPrivateKey = function() { + return this.getKey().getPrivateKey(); + }; + t3.prototype.getPrivateKeyB64 = function() { + return this.getKey().getPrivateBaseKeyB64(); + }; + t3.prototype.getPublicKey = function() { + return this.getKey().getPublicKey(); + }; + t3.prototype.getPublicKeyB64 = function() { + return this.getKey().getPublicBaseKeyB64(); + }; + t3.version = mt2.i; + return t3; + }(); + const St2 = wt2; + }, 2480: () => { + } }; + var e2 = {}; + function r2(i22) { + var n2 = e2[i22]; + if (void 0 !== n2) + return n2.exports; + var s2 = e2[i22] = { id: i22, loaded: false, exports: {} }; + t2[i22].call(s2.exports, s2, s2.exports, r2); + s2.loaded = true; + return s2.exports; + } + (() => { + r2.d = (t22, e22) => { + for (var i22 in e22) + if (r2.o(e22, i22) && !r2.o(t22, i22)) + Object.defineProperty(t22, i22, { enumerable: true, get: e22[i22] }); + }; + })(); + (() => { + r2.g = function() { + if ("object" === typeof globalThis) + return globalThis; + try { + return this || new Function("return this")(); + } catch (t22) { + if ("object" === typeof window) + return window; + } + }(); + })(); + (() => { + r2.o = (t22, e22) => Object.prototype.hasOwnProperty.call(t22, e22); + })(); + (() => { + r2.r = (t22) => { + if ("undefined" !== typeof Symbol && Symbol.toStringTag) + Object.defineProperty(t22, Symbol.toStringTag, { value: "Module" }); + Object.defineProperty(t22, "__esModule", { value: true }); + }; + })(); + (() => { + r2.nmd = (t22) => { + t22.paths = []; + if (!t22.children) + t22.children = []; + return t22; + }; + })(); + var i2 = r2(9021); + return i2; + })()); + })(gtpushMin); + var gtpushMinExports = gtpushMin.exports; + var GtPush = /* @__PURE__ */ getDefaultExportFromCjs(gtpushMinExports); + function initPushNotification() { + if (typeof plus !== "undefined" && plus.push) { + plus.globalEvent.addEventListener("newPath", ({ path }) => { + if (!path) { + return; + } + const pages2 = getCurrentPages(); + const currentPage = pages2[pages2.length - 1]; + if (currentPage && currentPage.$page && currentPage.$page.fullPath === path) { + return; + } + uni.navigateTo({ + url: path, + fail(res) { + if (res.errMsg.indexOf("tabbar") > -1) { + uni.switchTab({ + url: path, + fail(res2) { + console.error(res2.errMsg); + } + }); + } else { + console.error(res.errMsg); + } + } + }); + }); + } + } + uni.invokePushCallback({ + type: "enabled" + }); + const appid = "__UNI__9F097F0"; + { + initPushNotification(); + if (typeof uni.onAppShow === "function") { + uni.onAppShow(() => { + GtPush.enableSocket(true); + }); + } + GtPush.init({ + appid, + onError: (res) => { + console.error(res.error); + const data = { + type: "clientId", + cid: "", + errMsg: res.error + }; + uni.invokePushCallback(data); + }, + onClientId: (res) => { + const data = { + type: "clientId", + cid: res.cid + }; + uni.invokePushCallback(data); + }, + onlineState: (res) => { + const data = { + type: "lineState", + online: res.online + }; + uni.invokePushCallback(data); + }, + onPushMsg: (res) => { + const data = { + type: "pushMsg", + message: res.message + }; + uni.invokePushCallback(data); + } + }); + uni.onPushMessage((res) => { + if (res.type === "receive" && res.data && res.data.force_notification) { + uni.createPushMessage(res.data); + res.stopped = true; + } + }); + } const baseUrl = "https://36.112.48.190/jeecg-boot/sys/common/static/"; const useUpdateApp = defineStore("updateApp", () => { const updateOptions = vue.reactive({ @@ -18732,9 +28478,21 @@ ${i3} onLaunch(() => { useUpdateApp().checkAppUpdate(); getLocation(); + uni.onPushMessage((res) => { + formatAppLog("log", "at App.vue:29", "收到推送消息:", res); + }); }); onShow(() => { ifGray(); + uni.getPushClientId({ + success: (res) => { + let push_clientid = res.cid; + formatAppLog("log", "at App.vue:39", "客户端推送标识:", push_clientid); + }, + fail(err) { + formatAppLog("log", "at App.vue:42", err); + } + }); }); const ifGray = () => { cxcJurisdictionApi({ diff --git a/unpackage/dist/dev/app-plus/manifest.json b/unpackage/dist/dev/app-plus/manifest.json index 8623197..19deb84 100644 --- a/unpackage/dist/dev/app-plus/manifest.json +++ b/unpackage/dist/dev/app-plus/manifest.json @@ -4,7 +4,7 @@ "iPhone", "iPad" ], - "id": "__UNI__F0AFD30", + "id": "__UNI__9F097F0", "name": "数智产销", "version": { "name": "1.0.0", @@ -21,6 +21,7 @@ "Fingerprint": {}, "Camera": {}, "Barcode": {}, + "Push": {}, "UniNView": { "description": "UniNView原生渲染" } @@ -108,6 +109,12 @@ ] } }, + "push": { + "unipush": { + "version": "2", + "offline": false + } + }, "audio": { "mp3": { "description": "Android平台录音支持MP3格式文件" diff --git a/unpackage/dist/dev/app-plus/pages/leave/application.css b/unpackage/dist/dev/app-plus/pages/leave/application.css index acb1fba..43338f4 100644 --- a/unpackage/dist/dev/app-plus/pages/leave/application.css +++ b/unpackage/dist/dev/app-plus/pages/leave/application.css @@ -1089,7 +1089,6 @@ width: 23.6px; height: 23.6px; border: 1px solid #c8c7cc; - border-radius: 3px; display: flex; justify-content: center; align-items: center;