cxc-szcx-uniapp/unpackage/dist/build/app-plus/app-service.js
yangzhq68909 c1a112754c 1
2024-11-08 14:17:40 +08:00

10 lines
495 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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<u;)t=e.charCodeAt(c)<<16,n=e.charCodeAt(++c)<<8,i=e.charCodeAt(++c),l+=r.charAt((a=t+n+i)>>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<t;)i=r.indexOf(e.charAt(c)),n=a%4?64*n+i:i,a++%4&&(l+=String.fromCharCode(255&n>>(-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<l.size();t++){let n=plus.android.invoke(l.get(t),"getAddress");e=plus.android.invoke(n,"getHostAddress")}if(""==e){var n=plus.android.runtimeMainActivity().getSystemService(s.WIFI_SERVICE),i=plus.android.invoke(n,"getConnectionInfo"),a=plus.android.invoke(i,"getIpAddress");0!=a&&(e=(255&a)+"."+(a>>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<e.length;){let r=e[a++];if(r===t){s&&i.push({type:"text",value:s}),s="";let t="";for(r=e[a++];void 0!==r&&r!==n;)t+=r,r=e[a++];const o=r===n,l=re.test(t)?"list":o&&oe.test(t)?"named":"unknown";i.push({value:t,type:l})}else s+=r}return s&&i.push({type:"text",value:s}),i}(e,n),this._caches[e]=i),function(e,t){const n=[];let i=0;const a=Array.isArray(t)?"list":(s=t,null!==s&&"object"==typeof s?"named":"unknown");var s;if("unknown"===a)return n;for(;i<e.length;){const s=e[i];switch(s.type){case"text":n.push(s.value);break;case"list":n.push(t[parseInt(s.value,10)]);break;case"named":"named"===a&&n.push(t[s.value])}i++}return n}(i,t)}};function fe(e,t){if(!e)return;if(e=e.trim().replace(/_/g,"-"),t&&t[e])return e;if("chinese"===(e=e.toLowerCase()))return le;if(0===e.indexOf("zh"))return e.indexOf("-hans")>-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?e<t?new Date(t):e>n?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<o.length;c++){const e=Math.floor(c/7);l[e]||(l[e]=new Array(7)),l[e][c%7]=o[c]}this.calendar=o,this.weeks=l}}({selected:this.selected,startDate:this.startDate,endDate:this.endDate,range:this.range}),this.init(this.date)},methods:{leaveCale(){this.firstEnter=!0},handleMouse(e){if(e.disable)return;if(this.cale.lastHover)return;let{before:t,after:n}=this.cale.multipleStatus;t&&(this.calendar=e,this.cale.setHoverMultiple(this.calendar.fullDate),this.weeks=this.cale.weeks,this.firstEnter&&(this.$emit("firstEnterCale",this.cale.multipleStatus),this.firstEnter=!1))},rangeWithinMonth(e,t){const[n,i]=e.split("-"),[a,s]=t.split("-");return n===a&&i===s},maskClick(){this.close(),this.$emit("maskClose")},clearCalender(){this.range?(this.timeRange.startTime="",this.timeRange.endTime="",this.tempRange.before="",this.tempRange.after="",this.cale.multipleStatus.before="",this.cale.multipleStatus.after="",this.cale.multipleStatus.data=[],this.cale.lastHover=!1):(this.time="",this.tempSingleDate=""),this.calendar.fullDate="",this.setDate(new Date)},bindDateChange(e){const t=e.detail.value+"-1";this.setDate(t)},init(e){if(this.cale&&(this.cale.setDate(e||new Date),this.weeks=this.cale.weeks,this.nowDate=this.cale.getInfo(e),this.calendar={...this.nowDate},!e&&(this.calendar.fullDate="",this.defaultValue&&!this.range))){const e=new Date(this.defaultValue),t=G(e),n=e.getFullYear(),i=e.getMonth()+1,a=e.getDate(),s=e.getDay();this.calendar={fullDate:t,year:n,month:i,date:a,day:s},this.tempSingleDate=t,this.time=Z(e,this.hideSecond)}},open(){this.clearDate&&!this.insert&&(this.cale.cleanMultipleStatus(),this.init(this.date)),this.show=!0,this.$nextTick((()=>{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<this.datePopupWidth&&(this.pickerPositionStyle.right=0)})).exec(),setTimeout((()=>{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<a;s++){var r=n[s>>>2]>>>24-s%4*8&255;t[i+s>>>2]|=r<<24-(i+s)%4*8}else for(s=0;s<a;s+=4)t[i+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<t;s+=4){var o=a(4294967296*(n||e.random()));n=987654071*o(),i.push(4294967296*o()|0)}return new r.init(i,t)}}),o=i.enc={},l=o.Hex={stringify:function(e){for(var t=e.words,n=e.sigBytes,i=[],a=0;a<n;a++){var s=t[a>>>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<t;i+=2)n[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<n;a++){var s=t[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<t;i++)n[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<l;u+=s)this._doProcessBlock(i,u);var d=i.splice(0,l);n.sigBytes-=c}return new r.init(d,c)},clone:function(){var e=s.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0});a.Hasher=d.extend({cfg:s.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){d.reset.call(this),this._doReset()},update:function(e){return this._append(e),this._process(),this},finalize:function(e){return e&&this._append(e),this._doFinalize()},blockSize:16,_createHelper:function(e){return function(t,n){return new e.init(n).finalize(t)}},_createHmacHelper:function(e){return function(t,n){return new h.HMAC.init(e,n).finalize(t)}}});var h=i.algo={};return i}(Math),n)})),ut=ct,dt=(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=[];!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<<s|o>>>32-s)+t}function u(e,t,n,i,a,s,r){var o=e+(t&i|n&~i)+a+r;return(o<<s|o>>>32-s)+t}function d(e,t,n,i,a,s,r){var o=e+(t^n^i)+a+r;return(o<<s|o>>>32-s)+t}function h(e,t,n,i,a,s,r){var o=e+(n^(t|~i))+a+r;return(o<<s|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<n;c++)o[c]^=1549556828,l[c]^=909522486;s.sigBytes=r.sigBytes=i,this.reset()},reset:function(){var e=this._hasher;e.reset(),e.update(this._iKey)},update:function(e){return this._hasher.update(e),this},finalize:function(e){var t=this._hasher,n=t.finalize(e);return t.reset(),t.finalize(this._oKey.clone().concat(n))}})))})),lt((function(e,t){e.exports=ut.HmacMD5}))),ht=lt((function(e,t){e.exports=ut.enc.Utf8})),pt=lt((function(e,t){var n,i,a;e.exports=(a=(i=n=ut).lib.WordArray,i.enc.Base64={stringify:function(e){var t=e.words,n=e.sigBytes,i=this._map;e.clamp();for(var a=[],s=0;s<n;s+=3)for(var r=(t[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<n;o++)a.push(i.charAt(r>>>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<n.length;s++)i[n.charCodeAt(s)]=s}var r=n.charAt(64);if(r){var o=e.indexOf(r);-1!==o&&(t=o)}return function(e,t,n){for(var i=[],s=0,r=0;r<t;r++)if(r%4){var o=n[e.charCodeAt(r-1)]<<r%4*2,l=n[e.charCodeAt(r)]>>>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<n.length;i++)(0,n[i])(t)}let Wt,Yt=!1;function Gt(){return Wt||(Wt=new Promise((e=>{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<r.length;o++)delete t[r[o]];return sn={PLATFORM:a,OS:i,APPID:s,DEVICEID:n,...on(),...t},{...sn,locale:e,LOCALE:e}}var cn=function(e,t){let n="";return Object.keys(e).sort().forEach((function(t){e[t]&&(n=n+"&"+t+"="+e[t])})),n=n.slice(1),dt(n,t).toString()},un=function(e,t){return new Promise(((n,i)=>{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<Date.now())&&s?this.refreshAccessToken():{accessToken:i,accessTokenExpire:a}}async request(e,t,n){const i=`x-tcb-trace_${this.config.env}`;let a="application/x-www-form-urlencoded";const s={action:e,env:this.config.env,dataVersion:"2019-08-16",...t};if(-1===qn.indexOf(e)){const{refreshTokenKey:e}=this._cache.keys;this._cache.getStore(e)&&(s.access_token=(await this.getAccessToken()).accessToken)}let r;if("storage.uploadFile"===e){r=new FormData;for(let e in r)r.hasOwnProperty(e)&&void 0!==r[e]&&r.append(e,s[e]);a="multipart/form-data"}else{a="application/json",r={};for(let e in s)void 0!==s[e]&&(r[e]=s[e])}let o={headers:{"content-type":a}};n&&n.onUploadProgress&&(o.onUploadProgress=n.onUploadProgress);const l=this._localCache.getStore(i);l&&(o.headers["X-TCB-Trace"]=l);const{parse:c,inQuery:u,search:d}=t;let h={env:this.config.env};c&&(h.parse=!0),u&&(h={...u,...h});let p=function(e,t,n={}){const i=/\?/.test(t);let a="";for(let s in n)""===a?!i&&(t+="?"):a+="&",a+=`${s}=${encodeURIComponent(n[s])}`;return/^http(s)?\:\/\//.test(t+=a)?t:`${e}${t}`}(fn,"//tcb-api.tencentcloudapi.com/web",h);d&&(p+=d);const f=await this.post({url:p,data:r,...o}),m=f.header&&f.header["x-tcb-trace"];if(m&&this._localCache.setStore(i,m),200!==Number(f.status)&&200!==Number(f.statusCode)||!f.data)throw new Qt({code:"NETWORK_ERROR",message:"network request error"});return f}async send(e,t={}){const n=await this.request(e,t,{onUploadProgress:t.onUploadProgress});if("ACCESS_TOKEN_EXPIRED"===n.data.code&&-1===qn.indexOf(e)){await this.refreshAccessToken();const n=await this.request(e,t,{onUploadProgress:t.onUploadProgress});if(n.data.code)throw new Qt({code:n.data.code,message:n.data.message});return n.data}if(n.data.code)throw new Qt({code:n.data.code,message:n.data.message});return n.data}setRefreshToken(e){const{accessTokenKey:t,accessTokenExpireKey:n,refreshTokenKey:i}=this._cache.keys;this._cache.removeStore(t),this._cache.removeStore(n),this._cache.setStore(i,e)}}const Gn={};function Zn(e){return Gn[e]}class Qn{constructor(e){this.config=e,this._cache=Bn(e.env),this._request=Zn(e.env)}setRefreshToken(e){const{accessTokenKey:t,accessTokenExpireKey:n,refreshTokenKey:i}=this._cache.keys;this._cache.removeStore(t),this._cache.removeStore(n),this._cache.setStore(i,e)}setAccessToken(e,t){const{accessTokenKey:n,accessTokenExpireKey:i}=this._cache.keys;this._cache.setStore(n,e),this._cache.setStore(i,t)}async refreshUserInfo(){const{data:e}=await this._request.send("auth.getUserInfo",{});return this.setLocalUserInfo(e),e}setLocalUserInfo(e){const{userInfoKey:t}=this._cache.keys;this._cache.setStore(t,e)}}class Xn{constructor(e){if(!e)throw new Qt({code:"PARAM_ERROR",message:"envId is not defined"});this._envId=e,this._cache=Bn(this._envId),this._request=Zn(this._envId),this.setUserInfo()}linkWithTicket(e){if("string"!=typeof e)throw new Qt({code:"PARAM_ERROR",message:"ticket must be string"});return this._request.send("auth.linkWithTicket",{ticket:e})}linkWithRedirect(e){e.signInWithRedirect()}updatePassword(e,t){return this._request.send("auth.updatePassword",{oldPassword:t,newPassword:e})}updateEmail(e){return this._request.send("auth.updateEmail",{newEmail:e})}updateUsername(e){if("string"!=typeof e)throw new Qt({code:"PARAM_ERROR",message:"username must be a string"});return this._request.send("auth.updateUsername",{username:e})}async getLinkedUidList(){const{data:e}=await this._request.send("auth.getLinkedUidList",{});let t=!1;const{users:n}=e;return n.forEach((e=>{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;i<n.length;i++){const{rule:a,content:s,mode:r}=n[i],o=e.match(a);if(!o)continue;let l=s;for(let e=1;e<o.length;e++)l=Ri(l,`{$${e}}`,o[e]);for(const e in t)l=Ri(l,`{${e}}`,t[e]);return"replace"===r?l:e+l}return e}({message:`[${n.name}]: ${e.message}`,formatter:Ai,extraInfo:{functionName:i}})),Promise.reject(e))))};e.callFunction=function(t){const{provider:i,spaceId:a}=e.config,s=t.name;let r,o;return t.data=t.data||{},r=n,r=r.bind(e),o=$i(t)?n.call(e,t):Ui(t)?new ji({secretType:t.secretType,uniCloudIns:e}).wrapEncryptDataCallFunction(n.bind(e))(t):function({provider:e,spaceId:t,functionName:n}={}){const{appId:i,uniPlatform:a,osName:s}=rn();let r=a;"app"===a&&(r=s);const o=function({provider:e,spaceId:t}={}){const n=xt;if(!n)return{};e=function(e){return"tencent"===e?"tcb":e}(e);const i=n.find((n=>n.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;s<e.length;s++){const r=e[s];r!==t?"*"!==r?r.split(",").map((e=>e.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;n<i.length;n++){const a=i[n];a.udb&&"function"==typeof a.udb.setResult&&(t?a.udb.setResult(t):a.udb.setResult(e.result.dataList[n]))}}const s=this,r=this._isJQL?"databaseForJQL":"database";function o(e){return s._callback("error",[e]),Mt(Pt(r,"fail"),e).then((()=>Mt(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<c.length;a++){const{level:e,message:t,detail:n}=c[a],i=console["warn"===e?"error":e]||console.log;let s="[System Info]"+t;n&&(s=`${s}\n详细信息:${n}`),i(s)}if(t)return o(new Qt({code:t,message:n,requestId:e.requestId}));e.result.errCode=e.result.errCode||e.result.code,e.result.errMsg=e.result.errMsg||e.result.message,i&&l&&(nn({token:i,tokenExpired:l}),this._callbackAuth("refreshToken",[{token:i,tokenExpired:l}]),this._callback("refreshToken",[{token:i,tokenExpired:l}]),Jt(jt,{token:i,tokenExpired:l}));const u=[{prop:"affectedDocs",tips:"affectedDocs不再推荐使用请使用inserted/deleted/updated/data.length替代"},{prop:"code",tips:"code不再推荐使用请使用errCode替代"},{prop:"message",tips:"message不再推荐使用请使用errMsg替代"}];for(let a=0;a<u.length;a++){const{prop:t,tips:n}=u[a];if(t in e.result){const i=e.result[t];Object.defineProperty(e.result,t,{get:()=>(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<a.length;r++){const e=a[r];".."===e?s.pop():"."!==e&&s.push(e)}return""===s[0]&&s.shift(),"/"+s.join("/")+(i?"?"+i:"")}function _a({redirect:e}){const t=ca(e),n=ca(fa);return da()!==n&&t!==n}function Sa({api:e,redirect:t}={}){if(!t||!_a({redirect:t}))return;const n=(a=t,"/"!==(i=fa).charAt(0)&&(i="/"+i),a?i.indexOf("?")>-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<Date.now()){const e="uni-id-token-expired";n={errCode:e,errMsg:ra[e]}}}else{const e="uni-id-check-token-failed";n={errCode:e,errMsg:ra[e]}}return n}();if(function(e){const t=ca(ka(e));return!(ya.indexOf(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<e.length;t++){const n=e[t];uni.addInterceptor(n,{invoke(e){const{abortLoginPageJump:t,autoToLoginPage:i}=ba({url:e.url});return t?e:i?(Sa({api:n,redirect:ka(e.url)}),!1):e}})}}function xa(){this.onResponse((e=>{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<e.length;)t=Na.indexOf(e.charAt(s++))<<18|Na.indexOf(e.charAt(s++))<<12|(n=Na.indexOf(e.charAt(s++)))<<6|(i=Na.indexOf(e.charAt(s++))),a+=64===n?String.fromCharCode(t>>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<i;)l();function l(){const i=o++;if(i>=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<r&&l()})).catch((e=>{c.errMsg=e.errMsg||e.message,i<r&&l()}))}}))}(e,t,5,a)))}t.initChooseAndUploadFile=function(e){return function(t={type:"all"}){return"image"===t.type?s(e,function(e){const{count:t,sizeType:n,sourceType:s=["album","camera"],extension:r}=e;return new Promise(((e,o)=>{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<e.length;a++)e[a]!==t[a]&&(i.push(e[a]),n=!0);e[0]!==t[0]&&(this.mixinDatacomPage.current=this.pageCurrent),this.mixinDatacomPage.size=this.pageSize,this.onMixinDatacomPropsChange(n,i)}))},methods:{onMixinDatacomPropsChange(e,t){},mixinDatacomEasyGet({getone:e=!1,success:t,fail:n}={}){this.mixinDatacomLoading||(this.mixinDatacomLoading=!0,this.mixinDatacomErrorMessage="",this.mixinDatacomError=null,this.mixinDatacomGet().then((n=>{this.mixinDatacomLoading=!1;const{data:i,count:a}=n.result;this.getcount&&(this.mixinDatacomPage.count=a),this.mixinDatacomHasMore=i.length<this.pageSize;const s=e?i.length?i[0]:void 0:i;this.mixinDatacomResData=s,t&&t(s)})).catch((e=>{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<n.length;i++)n[i](...t)}}{constructor(){super(),this._uniPushMessageCallback=this._receivePushMessage.bind(this),this._currentMessageId=-1,this._payloadQueue=[]}init(){return Promise.all([Ra("getSystemInfo")(),Ra("getPushClientId")()]).then((([{appId:e}={},{cid:t}={}]=[])=>{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<t;)o();function o(){let t=a++;if(t>=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<i&&o()})).catch((e=>{l.errMsg=e.errMsg||e.message,l.index=c,t<i&&o()}))}}))}function Ha(e,{onChooseFile:t,onUploadProgress:n}){return e.then((e=>{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.length<i.limit&&!i.readonly?(e.openBlock(),e.createElementBlock("view",{key:0,class:"file-picker__box",style:e.normalizeStyle(r.boxStyle)},[e.createElementVNode("view",{class:"file-picker__box-content is-add",style:e.normalizeStyle(r.borderStyle),onClick:n[0]||(n[0]=(...e)=>r.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;t<e.length;t++){let i=e[t];await n(i)}}this.localValue=e,this.form&&this.formItem&&!this.is_reset&&(this.is_reset=!1,this.formItem.setValue(this.localValue));let i=Object.keys(e).length>0?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<i.length&&!(this.limitLength-this.files.length<=0);s++){i[s].uuid=Date.now();let e=await Wa(i[s],this.fileMediatype);e.progress=0,e.status="ready",this.files.push(e),a.push({...e,file:i[s]})}this.$emit("select",{tempFiles:a,tempFilePaths:n}),e.tempFiles=i,this.autoUpload&&!this.noSpace||(e.tempFiles=[]),e.tempFiles.forEach(((e,t)=>{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;r<e.length;r++){const t=e[r],o=t.uuid?this.files.findIndex((e=>e.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<e.length;n++){let t=null;t=setTimeout((()=>{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;s<e.length;s++){const r={[a.dataLabel]:e[s][a.dataLabel],[a.dataValue]:e[s][a.dataValue]};r.checked=v.value.includes(e[s][a.dataValue].toString()),r.disabled=Boolean(e[s].disabled),r.partChecked=Boolean(void 0!==e[s].partChecked&&e[s].partChecked),r.partChecked&&r.partCheckedSet.add(r[a.dataValue]),!r.partChecked&&(h.value=!1);const o=void 0===t||t,l=void 0===e[s].visible||Boolean(e[s].visible);r.visible=o===l?o:!(!o||!l),r.showChildren="showChildren"in e[s]&&null!=e[s].showChildren?e[s].showChildren:a.showChildren,!e[s].visible||e[s].disabled||e[s].checked||(h.value=!1),(null==(n=e[s][a.dataChildren])?void 0:n.length)&&(r[a.dataChildren]=E(e[s][a.dataChildren],r.visible)),i.push(r)}return i}function x(){const e=[...c.value];c.value=[],e.forEach((e=>e()))}function D(e){const t=Xa(e);l.value=(null==t?void 0:t[0])||[],function(e,t){for(let n=t;n<e.length;n++){let t=null;t=setTimeout((()=>{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[a.dataChildren].length;i++)n.push(...C(e[a.dataChildren][i]));return n}function V(e,t){var n;let i=[];for(let s=0;s<t.length;s++){if(t[s][a.dataValue]===e[a.dataValue])return!0;if(null==(n=t[s][a.dataChildren])?void 0:n.length){const n=V(e,t[s][a.dataChildren]);"boolean"==typeof n&&n?i=[t[s]]:Array.isArray(n)&&n.length&&(i=[...n,t[s]])}}return i}function I(e,t){const n=N(e,o.value);if(n.checked="boolean"==typeof t?t:!n.checked,n.partChecked=!1,g.delete(n[a.dataValue]),a.mutiple)if(a.linkage){let e=[...v.value];const t=V(n,o.value),i=C(n).filter((e=>!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<e.tempFilePaths.length;t++){let n="职工请假/"+a.userinfo.orgCode+"/"+a.userinfo.realname;uni.uploadFile({url:"https://36.112.48.190/jeecg-boot/sys/common/upload/",filePath:e.tempFilePaths[t],name:"file",formData:{appPath:n},success:e=>{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<e.length&&e[n]==t[n];n++);e[0]!=t[0]&&(this.page.current=this.pageCurrent),this.page.size=this.pageSize,this.onPropsChange()})),this._treeData=[]},methods:{onPropsChange(){this._treeData=[]},async loadData(){this.isLocalData?this.loadLocalData():this.isCloudDataList?this.loadCloudDataList():this.isCloudDataTree&&this.loadCloudDataTree()},async loadLocalData(){this._treeData=[],this._extractTree(this.localdata,this._treeData);let e=this.dataValue;void 0!==e&&(Array.isArray(e)&&(e=e[e.length-1],"object"==typeof e&&e[this.map.value]&&(e=e[this.map.value])),this.selected=this._findNodePath(e,this.localdata))},async loadCloudDataList(){if(!this.loading){this.loading=!0;try{let e=(await this.getCommand()).result.data;this._treeData=e,this._updateBindData(),this._updateSelected(),this.onDataChange()}catch(gn){this.errorMessage=gn}finally{this.loading=!1}}},async loadCloudDataTree(){if(!this.loading){this.loading=!0;try{let e={field:this._cloudDataPostField(),where:this._cloudDataTreeWhere()};this.gettree&&(e.startwith=`${this.selfField}=='${this.dataValue}'`);let t=(await this.getCommand(e)).result.data;this._treeData=t,this._updateBindData(),this._updateSelected(),this.onDataChange()}catch(gn){this.errorMessage=gn}finally{this.loading=!1}}},async loadCloudDataNode(e){if(!this.loading){this.loading=!0;try{let t={field:this._cloudDataPostField(),where:this._cloudDataNodeWhere()};e((await this.getCommand(t)).result.data)}catch(gn){this.errorMessage=gn}finally{this.loading=!1}}},getCloudDataValue(){return this.isCloudDataList?this.getCloudDataListValue():this.isCloudDataTree?this.getCloudDataTreeValue():void 0},getCloudDataListValue(){let e=[],t=this._getForeignKeyByField();return t&&e.push(`${t} == '${this.dataValue}'`),e=e.join(" || "),this.where&&(e=`(${this.where}) && (${e})`),this.getCommand({field:this._cloudDataPostField(),where:e}).then((e=>(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;i<t.length-1;i++)e.push(`${n} == '${t[i].value}'`);let a=[];return this.where&&a.push(`(${this.where})`),e.length&&a.push(`(${e.join(" || ")})`),a.join(" && ")},_cloudDataNodeWhere(){let e=[],t=this.selected;return t.length&&e.push(`${this.parentField} == '${t[t.length-1].value}'`),e=e.join(" || "),this.where?`(${this.where}) && (${e})`:e},_getWhereByForeignKey(){let e=[],t=this._getForeignKeyByField();return t&&e.push(`${t} == '${this.dataValue}'`),this.where?`(${this.where}) && (${e.join(" || ")})`:e.join(" || ")},_getForeignKeyByField(){let e=this.field.split(","),t=null;for(let n=0;n<e.length;n++){const i=e[n].split("as");if(!(i.length<2)&&"value"===i[1].trim()){t=i[0].trim();break}}return t},_updateBindData(e){const{dataList:t,hasNodes:n}=this._filterData(this._treeData,this.selected);let i=!1===this._stepSearh&&!n;return e&&(e.isleaf=i),this.dataList=t,this.selectedIndex=t.length-1,!i&&this.selected.length<t.length&&this.selected.push({value:null,text:"请选择"}),{isleaf:i,hasNodes:n}},_updateSelected(){let e=this.dataList,t=this.selected,n=this.map.text,i=this.map.value;for(let a=0;a<t.length;a++){let s=t[a].value,r=e[a];for(let e=0;e<r.length;e++){let o=r[e];if(o[i]===s){t[a].text=o[n];break}}}},_filterData(e,t){let n=[],i=!0;n.push(e.filter((e=>null===e.parent_value||void 0===e.parent_value||""===e.parent_value)));for(let a=0;a<t.length;a++){let s=t[a].value,r=e.filter((e=>e.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<e.length;a++){let s=e[a],r={};for(let e in s)"children"!==e&&(r[e]=s[e]);null!=n&&""!==n&&(r.parent_value=n),t.push(r);let o=s.children;o&&this._extractTree(o,t,s[i])}},_extractTreePath(e,t){for(let n=0;n<e.length;n++){let i=e[n],a={};for(let e in i)"children"!==e&&(a[e]=i[e]);t.push(a);let s=i.children;s&&this._extractTreePath(s,t)}},_findNodePath(e,t,n=[]){let i=this.map.text,a=this.map.value;for(let s=0;s<t.length;s++){let r=t[s],o=r.children,l=r[i],c=r[a];if(n.push({value:c,text:l}),c===e)return n;if(o){const t=this._findNodePath(e,o,n);if(t.length)return t}n.pop()}return[]}}};const ys={name:"UniDataPicker",emits:["popupopened","popupclosed","nodeclick","input","change","update:modelValue","inputclick"],mixins:[vs],components:{DataPickerView:q({name:"UniDataPickerView",emits:["nodeclick","change","datachange","update:modelValue"],mixins:[vs],props:{managedMode:{type:Boolean,default:!1},ellipsis:{type:Boolean,default:!0}},created(){this.managedMode||this.$nextTick((()=>{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<this.selected.length-1?(this.selected.splice(t,this.selected.length-t),this.selected.push({text:a,value:s})):t===this.selected.length-1&&this.selected.splice(t,1,{text:a,value:s}),i.isleaf)return void this.onSelectedChange(i,i.isleaf);const{isleaf:r,hasNodes:o}=this._updateBindData();this.isLocalData?this.onSelectedChange(i,!o||r):this.isCloudDataList?this.onSelectedChange(i,!0):this.isCloudDataTree&&(r?this.onSelectedChange(i,i.isleaf):o||this.loadCloudDataNode((e=>{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;s<t.length;s++){var i=t[s],a=e.find((e=>e.value==i));a&&n.push(a)}n.length&&(this.inputSelected=n)},_filterForArray(e,t){var n=[];for(let s=0;s<t.length;s++){var i=t[s],a=e.find((e=>e.value==i));a&&n.push(a)}return n},_dispatchEvent(e){let t={};if(e.length){for(var n=new Array(e.length),i=0;i<e.length;i++)n[i]=e[i].value;t=e[e.length-1]}else t.value="";this.formItem&&this.formItem.setValue(t.value),this.$emit("input",t.value),this.$emit("update:modelValue",t.value),this.$emit("change",{detail:{value:e}})}}};const ws=q(ys,[["render",function(t,i,a,s,r,o){const l=n(e.resolveDynamicComponent("uni-load-more"),gs),c=n(e.resolveDynamicComponent("uni-icons"),W),u=e.resolveComponent("data-picker-view");return e.openBlock(),e.createElementBlock("view",{class:"uni-data-tree"},[e.createElementVNode("view",{class:"uni-data-tree-input",onClick:i[1]||(i[1]=(...e)=>o.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),n<r.inputSelected.length-1?(e.openBlock(),e.createElementBlock("text",{key:0,class:"input-split-line"},e.toDisplayString(a.split),1)):e.createCommentVNode("",!0)])))),128))])])):(e.openBlock(),e.createElementBlock("text",{key:3,class:"selected-area placeholder"},e.toDisplayString(a.placeholder),1)),a.clearIcon&&!a.readonly&&r.inputSelected.length?(e.openBlock(),e.createElementBlock("view",{key:4,class:"icon-clear",onClick:i[0]||(i[0]=e.withModifiers(((...e)=>o.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()<n.date())return-e(n,t);var i=12*(n.year()-t.year())+(n.month()-t.month()),a=t.clone().add(i,c),s=n-a<0,r=t.clone().add(i+(s?-1:1),c);return+(-(i+(n-a)/(s?a-r:r-a))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:c,y:d,w:l,d:o,D:h,h:r,m:s,s:a,ms:i,Q:u}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},w="en",k={};k[w]=g;var _="$isDayjsObject",S=function(e){return e instanceof D||!(!e||!e[_])},b=function e(t,n,i){var a;if(!t)return w;if("string"==typeof t){var s=t.toLowerCase();k[s]&&(a=s),n&&(k[s]=n,a=s);var r=t.split("-");if(!a&&r.length>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)<this.startOf(t)},v.isBefore=function(e,t){return this.endOf(t)<E(e)},v.$g=function(e,t,n){return x.u(e)?this[t]:this.set(n,e)},v.unix=function(){return Math.floor(this.valueOf()/1e3)},v.valueOf=function(){return this.$d.getTime()},v.startOf=function(e,t){var n=this,i=!!x.u(t)||t,u=x.p(e),p=function(e,t){var a=x.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return i?a:a.endOf(o)},f=function(e,t){return x.w(n.toDate()[e].apply(n.toDate("s"),(i?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},m=this.$W,g=this.$M,v=this.$D,y="set"+(this.$u?"UTC":"");switch(u){case d:return i?p(1,0):p(31,11);case c:return i?p(1,g):p(0,g+1);case l:var w=this.$locale().weekStart||0,k=(m<w?m+7:m)-w;return p(i?v-k:v+(6-k),g);case o:case h:return f(y+"Hours",0);case r:return f(y+"Minutes",1);case s:return f(y+"Seconds",2);case a:return f(y+"Milliseconds",3);default:return this.clone()}},v.endOf=function(e){return this.startOf(e,!1)},v.$set=function(e,t){var n,l=x.p(e),u="set"+(this.$u?"UTC":""),p=(n={},n[o]=u+"Date",n[h]=u+"Date",n[c]=u+"Month",n[d]=u+"FullYear",n[r]=u+"Hours",n[s]=u+"Minutes",n[a]=u+"Seconds",n[i]=u+"Milliseconds",n)[l],f=l===o?this.$D+(t-this.$W):t;if(l===c||l===d){var m=this.clone().set(h,1);m.$d[p](f),m.init(),this.$d=m.set(h,Math.min(this.$D,m.daysInMonth())).$d}else p&&this.$d[p](f);return this.init(),this},v.set=function(e,t){return this.clone().$set(e,t)},v.get=function(e){return this[x.p(e)]()},v.add=function(i,u){var h,p=this;i=Number(i);var f=x.p(u),m=function(e){var t=E(p);return x.w(t.date(t.date()+Math.round(e*i)),p)};if(f===c)return this.set(c,this.$M+i);if(f===d)return this.set(d,this.$y+i);if(f===o)return m(1);if(f===l)return m(7);var g=(h={},h[s]=t,h[r]=n,h[a]=e,h)[f]||1,v=this.$d.getTime()+i*g;return x.w(v,this)},v.subtract=function(e,t){return this.add(-1*e,t)},v.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||p;var i=e||"YYYY-MM-DDTHH:mm:ssZ",a=x.z(this),s=this.$H,r=this.$m,o=this.$M,l=n.weekdays,c=n.months,u=n.meridiem,d=function(e,n,a,s){return e&&(e[n]||e(t,i))||a[n].slice(0,s)},h=function(e){return x.s(s%12||12,e,"0")},f=u||function(e,t,n){var i=e<12?"AM":"PM";return n?i.toLowerCase():i};return i.replace(m,(function(e,i){return i||function(e){switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return x.s(t.$y,4,"0");case"M":return o+1;case"MM":return x.s(o+1,2,"0");case"MMM":return d(n.monthsShort,o,c,3);case"MMMM":return d(c,o);case"D":return t.$D;case"DD":return x.s(t.$D,2,"0");case"d":return String(t.$W);case"dd":return d(n.weekdaysMin,t.$W,l,2);case"ddd":return d(n.weekdaysShort,t.$W,l,3);case"dddd":return l[t.$W];case"H":return String(s);case"HH":return x.s(s,2,"0");case"h":return h(1);case"hh":return h(2);case"a":return f(s,r,!0);case"A":return f(s,r,!1);case"m":return String(r);case"mm":return x.s(r,2,"0");case"s":return String(t.$s);case"ss":return x.s(t.$s,2,"0");case"SSS":return x.s(t.$ms,3,"0");case"Z":return a}return null}(e)||a.replace(":","")}))},v.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},v.diff=function(i,h,p){var f,m=this,g=x.p(h),v=E(i),y=(v.utcOffset()-this.utcOffset())*t,w=this-v,k=function(){return x.m(m,v)};switch(g){case d:f=k()/12;break;case c:f=k();break;case u:f=k()/3;break;case l:f=(w-y)/6048e5;break;case o:f=(w-y)/864e5;break;case r:f=w/n;break;case s:f=w/t;break;case a:f=w/e;break;default:f=w}return p?f:x.a(f)},v.daysInMonth=function(){return this.endOf(c).$D},v.$locale=function(){return k[this.$L]},v.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),i=b(e,t,!0);return i&&(n.$L=i),n},v.clone=function(){return x.w(this.$d,this)},v.toDate=function(){return new Date(this.valueOf())},v.toJSON=function(){return this.isValid()?this.toISOString():null},v.toISOString=function(){return this.$d.toISOString()},v.toString=function(){return this.$d.toUTCString()},g}(),T=D.prototype;return E.prototype=T,[["$ms",i],["$s",a],["$m",s],["$H",r],["$W",o],["$M",c],["$y",d],["$D",h]].forEach((function(e){T[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),E.extend=function(e,t){return e.$i||(e(t,D,E),e.$i=!0),E},E.locale=b,E.isDayjs=S,E.unix=function(e){return E(1e3*e)},E.en=k[w],E.Ls=k,E.p={},E}()}(bs);const Es=E(bs.exports),xs={__name:"index",setup(n){const i=H(),a=e.ref([]);r((()=>{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<r;o+=4)n=Ns[e.charCodeAt(o)]<<18|Ns[e.charCodeAt(o+1)]<<12|Ns[e.charCodeAt(o+2)]<<6|Ns[e.charCodeAt(o+3)],t[s++]=n>>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-n<e&&e<n}function h(e){return e<1e7?[e]:e<1e14?[e%1e7,Math.floor(e/1e7)]:[e%1e7,Math.floor(e/1e7)%1e7,Math.floor(e/1e14)]}function p(e){f(e);var n=e.length;if(n<4&&V(e,i)<0)switch(n){case 0:return 0;case 1:return e[0];case 2:return e[0]+e[1]*t;default:return e[0]+(e[1]+e[2]*t)*t}return e}function f(e){for(var t=e.length;0===e[--t];);e.length=t+1}function m(e){for(var t=new Array(e),n=-1;++n<e;)t[n]=0;return t}function g(e){return e>0?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<r;a++)l=(i=e[a]+n[a]+l)>=c?1:0,o[a]=i-l*c;for(;a<s;)l=(i=e[a]+l)===c?1:0,o[a++]=i-l*c;return l>0&&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;a<s;a++)i=e[a]-o+n,n=Math.floor(i/o),r[a]=i-n*o,n+=1;for(;n>0;)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;i<r;i++)(a=e[i]-l-n[i])<0?(a+=c,l=1):l=0,o[i]=a;for(i=r;i<s;i++){if(!((a=e[i]-l)<0)){o[i++]=a;break}a+=c,o[i]=a}for(;i<s;i++)o[i]=e[i];return f(o),o}function _(e,n,i){var a,s,r=e.length,o=new Array(r),u=-n,d=t;for(a=0;a<r;a++)s=e[a]+u,u=Math.floor(s/d),s%=d,o[a]=s<0?s+d:s;return"number"==typeof(o=p(o))?(i&&(o=-o),new c(o)):new l(o,i)}function S(e,n){var i,a,s,r,o=e.length,l=n.length,c=m(o+l),u=t;for(s=0;s<o;++s){r=e[s];for(var d=0;d<l;++d)i=r*n[d]+c[s+d],a=Math.floor(i/u),c[s+d]=i-a*u,c[s+d+1]+=a}return f(c),c}function b(e,n){var i,a,s=e.length,r=new Array(s),o=t,l=0;for(a=0;a<s;a++)i=e[a]*n+l,l=Math.floor(i/o),r[a]=i-l*o;for(;l>0;)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<t?b(n,e):S(n,h(e)),i)}function T(e){var n,i,a,s,r=e.length,o=m(r+r),l=t;for(a=0;a<r;a++){i=0-(s=e[a])*s;for(var c=a;c<r;c++)n=s*e[c]*2+o[a+c]+i,i=Math.floor(n/l),o[a+c]=n-i*l;o[a+r]=i}return f(o),o}function N(e,t){var n,i,a,s,r=e.length,o=m(r);for(a=0,n=r-1;n>=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<t){s=p((i=N(d,y))[0]);var w=i[1];return e.sign&&(w=-w),"number"==typeof s?(e.sign!==a.sign&&(s=-s),[new c(s),new c(w)]):[new l(s,e.sign!==a.sign),new c(w)]}v=h(y)}var _=V(d,v);if(-1===_)return[o[0],e];if(0===_)return[o[e.sign===a.sign?1:-1],o[0]];i=d.length+v.length<=200?function(e,n){var i,a,s,r,o,l,c,u=e.length,d=n.length,h=t,f=m(n.length),g=n[d-1],v=Math.ceil(h/(2*g)),y=b(e,v),w=b(n,v);for(y.length<=u&&y.push(0),w.push(0),g=w[d-1],a=u-d;a>=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;o<l;o++)s+=i*w[o],c=Math.floor(s/h),r+=y[a+o]-(s-c*h),s=c,r<0?(y[a+o]=r+h,r=-1):(y[a+o]=r,r=0);for(;0!==r;){for(i-=1,s=0,o=0;o<l;o++)(s+=y[a+o]-h+w[o])<0?(y[a+o]=s+h,s=0):(y[a+o]=s,s=1);r+=s}f[a]=i}return y=N(y,v)[0],[p(f),p(y)]}(d,v):function(e,n){for(var i,a,s,r,o,l=e.length,c=n.length,u=[],d=[],h=t;l;)if(d.unshift(e[--l]),f(d),V(d,n)<0)u.push(0);else{s=d[(a=d.length)-1]*h+d[a-2],r=n[c-1]*h+n[c-2],a>c&&(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<t.length;i++)if(!e.lesser(t[i])&&!(s=a(t[i]).modPow(o,e)).isUnit()&&!s.equals(r)){for(n=l-1;0!=n;n--){if((s=s.square().mod(e)).isUnit())return!1;if(s.equals(r))continue e}return!1}return!0}l.prototype=Object.create(o.prototype),c.prototype=Object.create(o.prototype),u.prototype=Object.create(o.prototype),l.prototype.add=function(e){var t=Y(e);if(this.sign!==t.sign)return this.subtract(t.negate());var n=this.value,i=t.value;return t.isSmall?new l(w(n,Math.abs(i)),this.sign):new l(y(n,i),this.sign)},l.prototype.plus=l.prototype.add,c.prototype.add=function(e){var t=Y(e),n=this.value;if(n<0!==t.sign)return this.subtract(t.negate());var i=t.value;if(t.isSmall){if(d(n+i))return new c(n+i);i=h(Math.abs(i))}return new l(w(i,Math.abs(n)),n<0)},c.prototype.plus=c.prototype.add,u.prototype.add=function(e){return new u(this.value+Y(e).value)},u.prototype.plus=u.prototype.add,l.prototype.subtract=function(e){var t=Y(e);if(this.sign!==t.sign)return this.add(t.negate());var n=this.value,i=t.value;return t.isSmall?_(n,Math.abs(i),this.sign):function(e,t,n){var i;return V(e,t)>=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))<t)return new l(b(a,n),r);s=h(n)}return function(e,t){return-.012*e-.012*t+15e-6*e*t>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<o;c++)l.push(a(c+2));return B(i,l)},u.prototype.isPrime=c.prototype.isPrime=l.prototype.isPrime,l.prototype.isProbablePrime=function(t,n){var i=I(this);if(i!==e)return i;for(var s=this.abs(),r=t===e?5:t,o=[],l=0;l<r;l++)o.push(a.randBetween(2,s.minus(2),n));return B(s,o)},u.prototype.isProbablePrime=c.prototype.isProbablePrime=l.prototype.isProbablePrime,l.prototype.modInv=function(e){for(var t,n,i,s=a.zero,r=a.one,o=Y(e),l=this.abs();!l.isZero();)t=o.divide(l),n=s,i=o,s=r,o=l,r=n.subtract(t.multiply(r)),l=i.subtract(t.multiply(l));if(!o.isUnit())throw new Error(this.toString()+" and "+e.toString()+" are not co-prime");return-1===s.compare(0)&&(s=s.add(e)),this.isNegative()?s.negate():s},u.prototype.modInv=c.prototype.modInv=l.prototype.modInv,l.prototype.next=function(){var e=this.value;return this.sign?_(e,1,this.sign):new l(w(e,1),this.sign)},c.prototype.next=function(){var e=this.value;return e+1<n?new c(e+1):new l(i,!1)},u.prototype.next=function(){return new u(this.value+BigInt(1))},l.prototype.prev=function(){var e=this.value;return this.sign?new l(w(e,1),!0):_(e,1,this.sign)},c.prototype.prev=function(){var e=this.value;return e-1>-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<n.length;a++)l[n[a]]=a;for(a=0;a<r;a++)if("-"!==(d=e[a])&&d in l&&l[d]>=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.length;a++){var d;if((d=e[a])in l)c.push(Y(l[d]));else{if("<"!==d)throw new Error(d+" is not a valid character");var h=a;do{a++}while(">"!==e[a]&&a<e.length);c.push(Y(e.slice(h+1,a)))}}return q(c,t,u)};function q(e,t,n){var i,a=o[0],s=o[1];for(i=e.length-1;i>=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<l.length;d++){var h=u?l[d]+(d+1<l.length?l[d+1]/t:0):t,p=g(a()*h);c.push(p),p<l[d]&&(u=!1)}return s.add(o.fromArray(c,t,!1))},o.fromArray=function(e,t,n){return q(e.map(Y),Y(t||10),n)},o}();e.hasOwnProperty("exports")&&(e.exports=a),void 0!==(i=function(){return a}.call(t,n,t,e))&&(e.exports=i)},452: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.BlockCipher,n=e.algo,a=[],s=[],r=[],o=[],l=[],c=[],u=[],d=[],h=[],p=[];!function(){for(var e=[],t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;var n=0,i=0;for(t=0;t<256;t++){var f=i^i<<1^i<<2^i<<3^i<<4;f=f>>>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;r<i;r++)r<n?s[r]=t[r]:(c=s[r-1],r%n?n>6&&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<i;l++){if(r=i-l,l%4)var c=s[r];else c=s[r-4];o[l]=l<4||r<=4?c:u[a[c>>>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<l;f++){var m=i[c>>>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<i;r++)t[n+r]^=a[r]}return t.Encryptor=t.extend({processBlock:function(e,t){var i=this._cipher,a=i.blockSize;n.call(this,e,t,a),i.encryptBlock(e,t),this._prevBlock=e.slice(t,t+a)}}),t.Decryptor=t.extend({processBlock:function(e,t){var i=this._cipher,a=i.blockSize,s=e.slice(t,t+a);i.decryptBlock(e,t),n.call(this,e,t,a),this._prevBlock=s}}),t}(),f=(t.pad={}).Pkcs7={pad:function(e,t){for(var n=4*t,i=n-e.sigBytes%n,a=i<<24|i<<16|i<<8|i,r=[],o=0;o<i;o+=4)r.push(a);var l=s.create(r,i);e.concat(l)},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>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<a;s++){var r=n[s>>>2]>>>24-s%4*8&255;t[i+s>>>2]|=r<<24-(i+s)%4*8}else for(var o=0;o<a;o+=4)t[i+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<e;n+=4)t.push(a());return new c.init(t,e)}}),u=r.enc={},d=u.Hex={stringify:function(e){for(var t=e.words,n=e.sigBytes,i=[],a=0;a<n;a++){var s=t[a>>>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<t;i+=2)n[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<n;a++){var s=t[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<t;i++)n[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<l;d+=r)this._doProcessBlock(a,d);n=a.splice(0,l),i.sigBytes-=u}return new c.init(n,u)},clone:function(){var e=l.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0});o.Hasher=f.extend({cfg:l.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){f.reset.call(this),this._doReset()},update:function(e){return this._append(e),this._process(),this},finalize:function(e){return e&&this._append(e),this._doFinalize()},blockSize:16,_createHelper:function(e){return function(t,n){return new e.init(n).finalize(t)}},_createHmacHelper:function(e){return function(t,n){return new m.HMAC.init(e,n).finalize(t)}}});var m=r.algo={};return r}(Math),i)},8269:function(e,t,n){var i;e.exports=(i=n(8249),function(){var e=i,t=e.lib.WordArray;function n(e,n,i){for(var a=[],s=0,r=0;r<n;r++)if(r%4){var o=i[e.charCodeAt(r-1)]<<r%4*2|i[e.charCodeAt(r)]>>>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<n;s+=3)for(var r=(t[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<n;o++)a.push(i.charAt(r>>>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<i.length;s++)a[i.charCodeAt(s)]=s}var r=i.charAt(64);if(r){var o=e.indexOf(r);-1!==o&&(t=o)}return n(e,t,a)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),i.enc.Base64)},3786:function(e,t,n){var i;e.exports=(i=n(8249),function(){var e=i,t=e.lib.WordArray;function n(e,n,i){for(var a=[],s=0,r=0;r<n;r++)if(r%4){var o=i[e.charCodeAt(r-1)]<<r%4*2|i[e.charCodeAt(r)]>>>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<i;r+=3)for(var o=(n[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<i;l++)s.push(a.charAt(o>>>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<a.length;r++)s[a.charCodeAt(r)]=r}var o=a.charAt(64);if(o){var l=e.indexOf(o);-1!==l&&(i=l)}return n(e,i,s)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"}}(),i.enc.Base64url)},298:function(e,t,n){var i;e.exports=(i=n(8249),function(){var e=i,t=e.lib.WordArray,n=e.enc;function a(e){return e<<8&4278255360|e>>>8&16711935}n.Utf16=n.Utf16BE={stringify:function(e){for(var t=e.words,n=e.sigBytes,i=[],a=0;a<n;a+=2){var s=t[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<n;a++)i[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<n;s+=2){var r=a(t[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<n;s++)i[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.length<l;){n&&a.update(n),n=a.update(e).finalize(t),a.reset();for(var u=1;u<c;u++)n=a.finalize(n),a.reset();s.concat(n)}return s.sigBytes=4*l,s}}),i.EvpKDF=function(e,t,n){return c.create(n).compute(e,t)},u.EvpKDF)},2209:function(e,t,n){var i,a,s,r;e.exports=(r=n(8249),n(5109),a=(i=r).lib.CipherParams,s=i.enc.Hex,i.format.Hex={stringify:function(e){return e.ciphertext.toString(s)},parse:function(e){var t=s.parse(e);return a.create({ciphertext:t})}},r.format.Hex)},9824:function(e,t,n){var i,a,s,r;e.exports=(r=n(8249),a=(i=r).lib.Base,s=i.enc.Utf8,void(i.algo.HMAC=a.extend({init:function(e,t){e=this._hasher=new e.init,"string"==typeof t&&(t=s.parse(t));var n=e.blockSize,i=4*n;t.sigBytes>i&&(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<n;c++)o[c]^=1549556828,l[c]^=909522486;a.sigBytes=r.sigBytes=i,this.reset()},reset:function(){var e=this._hasher;e.reset(),e.update(this._iKey)},update:function(e){return this._hasher.update(e),this},finalize:function(e){var t=this._hasher,n=t.finalize(e);return t.reset(),t.finalize(this._oKey.clone().concat(n))}})))},1354:function(e,t,n){var i;e.exports=(i=n(8249),n(4938),n(4433),n(298),n(8269),n(3786),n(8214),n(2783),n(2153),n(7792),n(34),n(7460),n(3327),n(706),n(9824),n(2112),n(888),n(5109),n(8568),n(4242),n(9968),n(7660),n(1148),n(3615),n(2807),n(1077),n(6475),n(6991),n(2209),n(452),n(4253),n(1857),n(4454),n(3974),i)},4433:function(e,t,n){var i;e.exports=(i=n(8249),function(){if("function"==typeof ArrayBuffer){var e=i.lib.WordArray,t=e.init,n=e.init=function(e){if(e instanceof ArrayBuffer&&(e=new Uint8Array(e)),(e instanceof Int8Array||"undefined"!=typeof Uint8ClampedArray&&e instanceof Uint8ClampedArray||e instanceof Int16Array||e instanceof Uint16Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Float32Array||e instanceof Float64Array)&&(e=new Uint8Array(e.buffer,e.byteOffset,e.byteLength)),e instanceof Uint8Array){for(var n=e.byteLength,i=[],a=0;a<n;a++)i[a>>>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<<s|o>>>32-s)+t}function u(e,t,n,i,a,s,r){var o=e+(t&i|n&~i)+a+r;return(o<<s|o>>>32-s)+t}function d(e,t,n,i,a,s,r){var o=e+(t^n^i)+a+r;return(o<<s|o>>>32-s)+t}function h(e,t,n,i,a,s,r){var o=e+(n^(t|~i))+a+r;return(o<<s|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<n;r++)e[t+r]^=a[r]}return e.Encryptor=e.extend({processBlock:function(e,n){var i=this._cipher,a=i.blockSize;t.call(this,e,n,a,i),this._prevBlock=e.slice(n,n+a)}}),e.Decryptor=e.extend({processBlock:function(e,n){var i=this._cipher,a=i.blockSize,s=e.slice(n,n+a);t.call(this,e,n,a,i),this._prevBlock=s}}),e}(),i.mode.CFB)},9968:function(e,t,n){var i;e.exports=(i=n(8249),n(5109),i.mode.CTRGladman=function(){var e=i.lib.BlockCipherMode.extend();function t(e){if(255==(e>>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<a;l++)e[t+l]^=o[l]}});return e.Decryptor=a,e}(),i.mode.CTRGladman)},4242:function(e,t,n){var i,a,s;e.exports=(s=n(8249),n(5109),s.mode.CTR=(i=s.lib.BlockCipherMode.extend(),a=i.Encryptor=i.extend({processBlock:function(e,t){var n=this._cipher,i=n.blockSize,a=this._iv,s=this._counter;a&&(s=this._counter=a.slice(0),this._iv=void 0);var r=s.slice(0);n.encryptBlock(r,0),s[i-1]=s[i-1]+1|0;for(var o=0;o<i;o++)e[t+o]^=r[o]}}),i.Decryptor=a,i),s.mode.CTR)},1148:function(e,t,n){var i,a;e.exports=(a=n(8249),n(5109),a.mode.ECB=((i=a.lib.BlockCipherMode.extend()).Encryptor=i.extend({processBlock:function(e,t){this._cipher.encryptBlock(e,t)}}),i.Decryptor=i.extend({processBlock:function(e,t){this._cipher.decryptBlock(e,t)}}),i),a.mode.ECB)},7660:function(e,t,n){var i,a,s;e.exports=(s=n(8249),n(5109),s.mode.OFB=(i=s.lib.BlockCipherMode.extend(),a=i.Encryptor=i.extend({processBlock:function(e,t){var n=this._cipher,i=n.blockSize,a=this._iv,s=this._keystream;a&&(s=this._keystream=a.slice(0),this._iv=void 0),n.encryptBlock(s,0);for(var r=0;r<i;r++)e[t+r]^=s[r]}}),i.Decryptor=a,i),s.mode.OFB)},3615:function(e,t,n){var i;e.exports=(i=n(8249),n(5109),i.pad.AnsiX923={pad:function(e,t){var n=e.sigBytes,i=4*t,a=i-n%i,s=n+a-1;e.clamp(),e.words[s>>>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<u;){var h=i.update(t).finalize(s);i.reset();for(var p=h.words,f=p.length,m=h,g=1;g<d;g++){m=i.finalize(m),i.reset();for(var v=m.words,y=0;y<f;y++)p[y]^=v[y]}a.concat(h),l[0]++}return a.sigBytes=4*u,a}}),i.PBKDF2=function(e,t,n){return u.create(n).compute(e,t)},d.PBKDF2)},3974: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.RabbitLegacy=t.extend({_doReset:function(){var e=this._key.words,t=this.cfg.iv,n=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],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<s[0]>>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0<s[1]>>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0<s[2]>>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0<s[3]>>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0<s[4]>>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0<s[5]>>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0<s[6]>>>0?1:0)|0,this._b=t[7]>>>0<s[7]>>>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<s[0]>>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0<s[1]>>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0<s[2]>>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0<s[3]>>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0<s[4]>>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0<s[5]>>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0<s[6]>>>0?1:0)|0,this._b=t[7]>>>0<s[7]>>>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<<t|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<<h)-1;p<32?d^=1<<p:o^=1<<p-32}128&a?a=a<<1^113:a<<=1}u[s]=r.create(o,d)}}();var d=[];!function(){for(var e=0;e<25;e++)d[e]=r.create()}();var h=o.SHA3=s.extend({cfg:s.cfg.extend({outputLength:512}),_doReset:function(){for(var e=this._state=[],t=0;t<25;t++)e[t]=new r.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(e,t){for(var n=this._state,i=this.blockSize/2,a=0;a<i;a++){var s=e[t+2*a],r=e[t+2*a+1];s=16711935&(s<<8|s>>>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<<E|b>>>32-E,f=b<<E|S>>>32-E):(p=b<<E-32|S>>>64-E,f=S<<E-32|b>>>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<l;u++){var d=r[u],h=d.high,p=d.low;h=16711935&(h<<8|h>>>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<X>>>0?1:0))+ie+((K+=ae)>>>0<ae>>>0?1:0))+ce+((K+=ue)>>>0<ue>>>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<H>>>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<pe>>>0?1:0))+_e+((de+=Se)>>>0<Se>>>0?1:0))+J+((de+=K)>>>0<K>>>0?1:0))+((L=R+de|0)>>>0<R>>>0?1:0)|0,P=A,R=M,A=I,M=B,I=C,B=V,C=be+(ge+fe+(Ee>>>0<ve>>>0?1:0))+((V=de+Ee|0)>>>0<de>>>0?1:0)|0}f=i.low=f+V,i.high=p+C+(f>>>0<V>>>0?1:0),g=a.low=g+B,a.high=m+I+(g>>>0<B>>>0?1:0),y=s.low=y+M,s.high=v+A+(y>>>0<M>>>0?1:0),k=r.low=k+R,r.high=w+P+(k>>>0<R>>>0?1:0),S=o.low=S+L,o.high=_+O+(S>>>0<L>>>0?1:0),E=u.low=E+j,u.high=b+F+(E>>>0<j>>>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<H>>>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}function p(e,t){var n=(this._rBlock>>>e^this._lBlock)&t;this._lBlock^=n,this._rBlock^=n<<e}e.DES=a._createHelper(d);var f=s.TripleDES=a.extend({_doReset:function(){var e=this._key.words;if(2!==e.length&&4!==e.length&&e.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >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<t;i++){var a=e[i];n.push(a.high),n.push(a.low)}return o.create(n,this.sigBytes)},clone:function(){for(var e=r.clone.call(this),t=e.words=this.words.slice(0),n=t.length,i=0;i<n;i++)t[i]=t[i].clone();return e}}),c)},4198:(e,t)=>{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<t;i+=2)n.push(parseInt(e.substring(i,i+2),16));return n}(s.default.md5Hex(e));return t[6]&=15,t[6]|=48,t[8]&=63,t[8]|=128,t}(e),i=function(e){let t=(0,a.default)(0),n=(0,a.default)(0);for(let i=0;i<8;i++)t=t.multiply(256).plus((0,a.default)(255&e[i]));for(let i=8;i<16;i++)n=n.multiply(256).plus((0,a.default)(255&e[i]));return[t,n]}(t),r=i[1],o=i[0];return n(r)+n(o)}}(r||(r={})),t.default=r},6667: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(2620)),s=i(n(1354)),r=i(n(6379));var o;!function(e){let t,n,i,o,l=new a.default,c=s.default.mode.CBC,u=s.default.pad.Pkcs7,d=s.default.AES;e.algorithmMap=new Map([["aes",s.default.AES]]),e.modeMap=new Map([["cbc",s.default.mode.CBC],["cfb",s.default.mode.CFB],["cfb128",s.default.mode.CFB],["ecb",s.default.mode.ECB],["ofb",s.default.mode.OFB]]),e.paddingMap=new Map([["nopadding",s.default.pad.NoPadding],["pkcs7",s.default.pad.Pkcs7]]),e.resetKey=function(){t=s.default.MD5((new Date).getTime().toString()),n=s.default.MD5(t),l.setPublicKey(r.default.publicKey),t.toString(s.default.enc.Hex),n.toString(s.default.enc.Hex),i=l.encrypt(t.toString(s.default.enc.Hex)),o=l.encrypt(n.toString(s.default.enc.Hex))},e.setEncryptParams=function(t,n,i){d=e.algorithmMap.get(t),c=e.modeMap.get(n),u=e.paddingMap.get(i)},e.encrypt=function(e){return d.encrypt(e,t,{iv:n,mode:c,padding:u}).toString()},e.decrypt=function(e){return d.decrypt(e,t,{iv:n,mode:c,padding:u}).toString(s.default.enc.Utf8)},e.sha256=function(e){return s.default.SHA256(e).toString(s.default.enc.Base64)},e.md5Hex=function(e){return s.default.MD5(e).toString(s.default.enc.Hex)},e.getEncryptedSecretKey=function(){return i||""},e.getEncryptedIV=function(){return o||""}}(o||(o={})),t.default=o},529:(e,t)=>{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<i.length;++t)u[i.charAt(t)]=-1}var a=[],s=0,r=0;for(t=0;t<e.length;++t){var o=e.charAt(t);if("="==o)break;if(-1!=(o=u[o])){if(void 0===o)throw new Error("Illegal character at offset "+t);s|=o,++r>=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<n.length;++t)p[n.charAt(t)]=-1}var i=[],a=0,s=0;for(t=0;t<e.length;++t){var r=e.charAt(t);if("="==r)break;if(-1!=(r=p[r])){if(void 0===r)throw new Error("Illegal character at offset "+t);a|=r,++s>=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;n<s;++n)(i=a[n]*e+t)<g?t=0:i-=(t=0|i/g)*g,a[n]=i;t>0&&(a[n]=t)},e.prototype.sub=function(e){var t,n,i=this.buf,a=i.length;for(t=0;t<a;++t)(n=i[t]-e)<0?(n+=g,e=1):e=0,i[t]=n;for(;0===i[i.length-1];)i.pop()},e.prototype.toString=function(e){if(10!=(e||10))throw new Error("only base 10 is supported");for(var t=this.buf,n=t[t.length-1].toString(),i=t.length-2;i>=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;a<t;++a)if(i+=this.hexByte(this.get(a)),!0!==n)switch(15&a){case 7:i+=" ";break;case 15:i+="\n";break;default:i+=" "}return i},e.prototype.isASCII=function(e,t){for(var n=e;n<t;++n){var i=this.get(n);if(i<32||i>176)return!1}return!0},e.prototype.parseStringISO=function(e,t){for(var n="",i=e;i<t;++i)n+=String.fromCharCode(this.get(i));return n},e.prototype.parseStringUTF=function(e,t){for(var n="",i=e;i<t;){var a=this.get(i++);n+=a<128?String.fromCharCode(a):a>191&&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;s<t;)n=this.get(s++),i=this.get(s++),a+=String.fromCharCode(n<<8|i);return a},e.prototype.parseTime=function(e,t,n){var i=this.parseStringISO(e,t),a=(n?y:w).exec(i);return a?(n&&(a[1]=+a[1],a[1]+=+a[1]<70?2e3:1900),i=a[1]+"-"+a[2]+"-"+a[3]+" "+a[4],a[5]&&(i+=":"+a[5],a[6]&&(i+=":"+a[6],a[7]&&(i+="."+a[7]))),a[8]&&(i+=" UTC","Z"!=a[8]&&(i+=a[8],a[9]&&(i+=":"+a[9]))),i):"Unrecognized time: "+i},e.prototype.parseInteger=function(e,t){for(var n,i=this.get(e),a=i>127,s=a?255:0,r="";i==s&&++e<t;)i=this.get(e);if(0==(n=t-e))return a?-1:0;if(n>4){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<t;++l)o.mulAdd(256,this.get(l));return r+o.toString()},e.prototype.parseBitString=function(e,t,n){for(var i=this.get(e),a="("+((t-e-1<<3)-i)+" bit)\n",s="",r=e+1;r<t;++r){for(var o=this.get(r),l=r==t-1?i:0,c=7;c>=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;s<t;++s)a+=this.hexByte(this.get(s));return i>n&&(a+="…"),a},e.prototype.parseOID=function(e,t,n){for(var i="",a=new v,s=0,r=e;r<t;++r){var o=this.get(r);if(a.mulAdd(128,127&o),s+=7,!(128&o)){if(""===i)if((a=a.simplify())instanceof v)a.sub(80),i="2."+a.toString();else{var l=a<80?a<40?0:1:2;i=l+"."+(a-40*l)}else i+="."+a.toString();if(i.length>n)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;n<i;++n)t+=this.sub[n].toPrettyString(e)}return t},e.prototype.posStart=function(){return this.stream.pos},e.prototype.posContent=function(){return this.stream.pos+this.header},e.prototype.posEnd=function(){return this.stream.pos+this.header+Math.abs(this.length)},e.prototype.toHexString=function(){return this.stream.hexDump(this.posStart(),this.posEnd(),!0)},e.decodeLength=function(e){var t=e.get(),n=127&t;if(n==t)return n;if(n>6)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<n;++i)t=256*t+e.get();return t},e.prototype.getHexStringValue=function(){var e=this.toHexString(),t=2*this.header,n=2*this.length;return e.substr(t,n)},e.decode=function(t){var n;n=t instanceof S?t:new S(t,0);var i=new S(n),a=new E(n),s=e.decodeLength(n),r=n.pos,o=r-i.pos,l=null,c=function(){var t=[];if(null!==s){for(var i=r+s;n.pos<i;)t[t.length]=e.decode(n);if(n.pos!=i)throw new Error("Content size is not correct for container starting at offset "+r)}else try{for(;;){var a=e.decode(n);if(a.tag.isEOC())break;t[t.length]=a}s=r-n.pos}catch(o){throw new Error("Exception while decoding undefined length content: "+o)}return t};if(a.tagConstructed)l=c();else if(a.isUniversal()&&(3==a.tagNumber||4==a.tagNumber))try{if(3==a.tagNumber&&0!=n.get())throw new Error("BIT STRINGs with unused bits cannot encapsulate.");l=c();for(var u=0;u<l.length;++u)if(l[u].tag.isEOC())throw new Error("EOC is not supposed to be actual content.")}catch(d){l=null}if(null===l){if(null===s)throw new Error("We can't skip over an invalid tag with undefined length at offset "+r);n.pos=r+Math.abs(s)}return new e(i,o,s,a,l)},e}(),E=function(){function e(e){var t=e.get();if(this.tagClass=t>>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<<t)-1,s=!1,r="",o=this.t,l=this.DB-o*this.DB%t;if(o-- >0)for(l<this.DB&&(n=this[o]>>l)>0&&(s=!0,r=i(n));o>=0;)l<t?(n=(this[o]&(1<<l)-1)<<t-l,n|=this[--o]>>(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)<<this.DB|this[0]},e.prototype.byteValue=function(){return 0==this.t?this.s:this[0]<<24>>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<this.DB&&(n=this[e]>>i)!=(this.s&this.DM)>>i&&(t[a++]=n|this.s<<this.DB-i);e>=0;)i<8?(n=(this[e]&(1<<i)-1)<<8-i,n|=this[--e]>>(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;++t)e[t]=this.DM&~this[t];return e.t=this.t,e.s=~this.s,e},e.prototype.shiftLeft=function(e){var t=B();return e<0?this.rShiftTo(-e,t):this.lShiftTo(e,t),t},e.prototype.shiftRight=function(e){var t=B();return e<0?this.lShiftTo(-e,t):this.rShiftTo(e,t),t},e.prototype.getLowestSetBit=function(){for(var e=0;e<this.t;++e)if(0!=this[e])return e*this.DB+l(this[e]);return this.s<0?this.t*this.DB:-1},e.prototype.bitCount=function(){for(var e=0,t=this.s&this.DM,n=0;n<this.t;++n)e+=c(this[n]^t);return e},e.prototype.testBit=function(e){var t=Math.floor(e/this.DB);return t>=this.t?0!=this.s:0!=(this[t]&1<<e%this.DB)},e.prototype.setBit=function(e){return this.changeBit(e,s)},e.prototype.clearBit=function(e){return this.changeBit(e,o)},e.prototype.flipBit=function(e){return this.changeBit(e,r)},e.prototype.add=function(e){var t=B();return this.addTo(e,t),t},e.prototype.subtract=function(e){var t=B();return this.subTo(e,t),t},e.prototype.multiply=function(e){var t=B();return this.multiplyTo(e,t),t},e.prototype.divide=function(e){var t=B();return this.divRemTo(e,t,null),t},e.prototype.remainder=function(e){var t=B();return this.divRemTo(e,null,t),t},e.prototype.divideAndRemainder=function(e){var t=B(),n=B();return this.divRemTo(e,t,n),[t,n]},e.prototype.modPow=function(e,t){var n,i,a=e.bitLength(),s=F(1);if(a<=0)return s;n=a<18?1:a<48?3:a<144?4:a<768?5:6,i=a<8?new C(t):t.isEven()?new I(t):new V(t);var r=[],o=3,l=n-1,c=(1<<n)-1;if(r[1]=i.convert(this),n>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<<a+1)-1)<<l-a,p>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<<a);)i.sqrTo(s,m),h=s,s=m,m=h,--a<0&&(a=this.DB-1,--p)}return i.revert(s)},e.prototype.modInverse=function(t){var n=t.isEven();if(this.isEven()&&n||0==t.signum())return e.ZERO;for(var i=t.clone(),a=this.clone(),s=F(1),r=F(0),o=F(0),l=F(1);0!=i.signum();){for(;i.isEven();)i.rShiftTo(1,i),n?(s.isEven()&&r.isEven()||(s.addTo(this,s),r.subTo(t,r)),s.rShiftTo(1,s)):r.isEven()||r.subTo(t,r),r.rShiftTo(1,r);for(;a.isEven();)a.rShiftTo(1,a),n?(o.isEven()&&l.isEven()||(o.addTo(this,o),l.subTo(t,l)),o.rShiftTo(1,o)):l.isEven()||l.subTo(t,l),l.rShiftTo(1,l);i.compareTo(a)>=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(a<s&&(s=a),s>0&&(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<x.length;++t)if(n[0]==x[t])return!0;return!1}if(n.isEven())return!1;for(t=1;t<x.length;){for(var i=x[t],a=t+1;a<x.length&&i<D;)i*=x[a++];for(i=n.modInt(i);t<a;)if(i%x[t++]==0)return!1}return n.millerRabin(e)},e.prototype.copyTo=function(e){for(var t=this.t-1;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)-1)<<r,this[this.t++]=o>>this.DB-r):this[this.t-1]|=o<<r,(r+=i)>=this.DB&&(r-=this.DB))}8==i&&0!=(128&+t[0])&&(this.s=-1,r>0&&(this[this.t-1]|=(1<<this.DB-r)-1<<r)),this.clamp(),s&&e.ZERO.subTo(this,this)},e.prototype.clamp=function(){for(var e=this.s&this.DM;this.t>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<this.t;++n)t[n-e]=this[n];t.t=Math.max(this.t-e,0),t.s=this.s},e.prototype.lShiftTo=function(e,t){for(var n=e%this.DB,i=this.DB-n,a=(1<<i)-1,s=Math.floor(e/this.DB),r=this.s<<n&this.DM,o=this.t-1;o>=0;--o)t[o+s+1]=this[o]>>i|r,r=(this[o]&a)<<n;for(o=s-1;o>=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)-1;t[0]=this[n]>>i;for(var r=n+1;r<this.t;++r)t[r-n-1]|=(this[r]&s)<<a,t[r-n]=this[r]>>i;i>0&&(t[this.t-n-1]|=(this.s&s)<<a),t.t=this.t-n,t.clamp()}},e.prototype.subTo=function(e,t){for(var n=0,i=0,a=Math.min(e.t,this.t);n<a;)i+=this[n]-e[n],t[n++]=i&this.DM,i>>=this.DB;if(e.t<this.t){for(i-=e.s;n<this.t;)i+=this[n],t[n++]=i&this.DM,i>>=this.DB;i+=this.s}else{for(i+=this.s;n<e.t;)i-=e[n],t[n++]=i&this.DM,i>>=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<a.t;++s)n[s+i.t]=i.am(0,a[s],n,s,0,i.t);n.s=0,n.clamp(),this.s!=t.s&&e.ZERO.subTo(n,n)},e.prototype.squareTo=function(e){for(var t=this.abs(),n=e.t=2*t.t;--n>=0;)e[n]=0;for(n=0;n<t.t-1;++n){var i=t.am(n,t[n],e,2*n,0,1);(e[n+t.t]+=t.am(n+1,2*t[n],e,2*n+1,i,t.t-n-1))>=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.t<a.t)return null!=n&&n.fromInt(0),void(null!=i&&this.copyTo(i));null==i&&(i=B());var r=B(),o=this.s,l=t.s,c=this.DB-j(a[a.t-1]);c>0?(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<<this.F1)+(u>1?r[u-2]>>this.F2:0),p=this.FV/h,f=(1<<this.F1)/h,m=1<<this.F2,g=i.t,v=g-u,y=null==n?B():n;for(r.dlShiftTo(v,y),i.compareTo(y)>=0&&(i[i.t++]=1,i.subTo(y,i)),e.ONE.dlShiftTo(u,y),y.subTo(r,r);r.t<u;)r[r.t++]=0;for(;--v>=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))<w)for(r.dlShiftTo(v,y),i.subTo(y,i);i[g]<--w;)i.subTo(y,i)}null!=n&&(i.drShiftTo(u,n),o!=l&&e.ZERO.subTo(n,n)),i.t=u,i.clamp(),c>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<<r)>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<t.length;++l){var c=L(t,l);c<0?"-"==t.charAt(l)&&0==this.signum()&&(s=!0):(o=n*o+c,++r>=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<<r)-1:a[0]=0,this.fromString(a,256)}},e.prototype.bitwiseTo=function(e,t,n){var i,a,s=Math.min(e.t,this.t);for(i=0;i<s;++i)n[i]=t(this[i],e[i]);if(e.t<this.t){for(a=e.s&this.DM,i=s;i<this.t;++i)n[i]=t(this[i],a);n.t=this.t}else{for(a=this.s&this.DM,i=s;i<e.t;++i)n[i]=t(a,e[i]);n.t=e.t}n.s=t(this.s,e.s),n.clamp()},e.prototype.changeBit=function(t,n){var i=e.ONE.shiftLeft(t);return this.bitwiseTo(i,n,i),i},e.prototype.addTo=function(e,t){for(var n=0,i=0,a=Math.min(e.t,this.t);n<a;)i+=this[n]+e[n],t[n++]=i&this.DM,i>>=this.DB;if(e.t<this.t){for(i+=e.s;n<this.t;)i+=this[n],t[n++]=i&this.DM,i>>=this.DB;i+=this.s}else{for(i+=this.s;n<e.t;)i+=e[n],t[n++]=i&this.DM,i>>=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<a;++i)n[i+this.t]=this.am(0,e[i],n,i,0,this.t);for(a=Math.min(e.t,t);i<a;++i)this.am(0,e[i],n,i,0,t-i);n.clamp()},e.prototype.multiplyUpperTo=function(e,t,n){--t;var i=n.t=this.t+e.t-t;for(n.s=0;--i>=0;)n[i]=0;for(i=Math.max(t-this.t,0);i<e.t;++i)n[this.t+i-t]=this.am(t-i,e[i],n,0,0,this.t+i-t);n.clamp(),n.drShiftTo(1,n)},e.prototype.modInt=function(e){if(e<=0)return 0;var t=this.DV%e,n=this.s<0?e-1:0;if(this.t>0)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;r<t;++r){s.fromInt(x[Math.floor(Math.random()*x.length)]);var o=s.modPow(a,this);if(0!=o.compareTo(e.ONE)&&0!=o.compareTo(n)){for(var l=1;l++<i&&0!=o.compareTo(n);)if(0==(o=o.modPowInt(2,this)).compareTo(e.ONE))return!1;if(0!=o.compareTo(n))return!1}}return!0},e.prototype.square=function(){var e=B();return this.squareTo(e),e},e.prototype.gcda=function(e,t){var n=this.s<0?this.negate():this.clone(),i=e.s<0?e.negate():e.clone();if(n.compareTo(i)<0){var a=n;n=i,i=a}var s=n.getLowestSetBit(),r=i.getLowestSetBit();if(r<0)t(n);else{s<r&&(r=s),r>0&&(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<<c)-1:l[0]=0,this.fromString(l,256)}},e}(),N=function(){function e(){}return e.prototype.convert=function(e){return e},e.prototype.revert=function(e){return e},e.prototype.mulTo=function(e,t,n){e.multiplyTo(t,n)},e.prototype.sqrTo=function(e,t){e.squareTo(t)},e}(),C=function(){function e(e){this.m=e}return e.prototype.convert=function(e){return e.s<0||e.compareTo(this.m)>=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<<e.DB-15)-1,this.mt2=2*e.t}return e.prototype.convert=function(e){var t=B();return e.abs().dlShiftTo(this.m.t,t),t.divRemTo(this.m,null,t),e.s<0&&t.compareTo(T.ZERO)>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<this.m.t;++t){var n=32767&e[t],i=n*this.mpl+((n*this.mph+(e[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;$<H.length;++$)H[$]=0;$=0}return U.next()}null==H&&(H=[],$=0);var K=function(){function e(){}return e.prototype.nextBytes=function(e){for(var t=0;t<e.length;++t)e[t]=q()},e}(),J=function(){function e(){this.n=null,this.e=0,this.d=null,this.p=null,this.q=null,this.dmp1=null,this.dmq1=null,this.coeff=null}return e.prototype.doPublic=function(e){return e.modPowInt(this.e,this.n)},e.prototype.doPrivate=function(e){if(null==this.p||null==this.q)return e.modPow(this.d,this.n);for(var t=e.mod(this.p).modPow(this.dmp1,this.p),n=e.mod(this.q).modPow(this.dmq1,this.q);t.compareTo(n)<0;)t=t.add(this.p);return t.subtract(n).multiply(this.coeff).mod(this.p).multiply(this.q).add(n)},e.prototype.setPublic=function(e,t){null!=e&&null!=t&&e.length>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<e.length+11)return console.error("Message too long for RSA"),null;for(var n=[],i=e.length-1;i>=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&&0==n[i];)++i;if(n.length-i!=t-1||2!=n[i])return null;for(++i;0!=n[i];)if(++i>=n.length)return null;for(var a="";++i<n.length;){var s=255&n[i];s<128?a+=String.fromCharCode(s):s>191&&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<e.length+22)return console.error("Message too long for RSA"),null;for(var n=t-e.length-6,i="",a=0;a<n;a+=2)i+="ff";return A("0001"+i+"00"+e,16)}(i+t(e).toString(),this.n.bitLength()/4);if(null==a)return null;var s=this.doPrivate(a);if(null==s)return null;var r=s.toString(16);return 0==(1&r.length)?r:"0"+r},e.prototype.verify=function(e,t,n){var i=A(t,16),a=this.doPublic(i);if(null==a)return null;var s=function(e){for(var t in W)if(W.hasOwnProperty(t)){var n=W[t],i=n.length;if(e.substr(0,i)==n)return e.substr(i)}return e}(a.toString(16).replace(/^1f+00/,""));return s==n(e).toString()},e.prototype.encryptLong=function(e){var t=this,n="",i=(this.n.bitLength()+7>>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;r++){var o=A(a[r],16),l=this.doPrivate(o);if(null==l)return null;s.push(l)}t=function(e,t){for(var n=[],i=0;i<e.length;i++){for(var a=e[i].toByteArray(),s=0;s<a.length&&0==a[s];)++s;if(a.length-s!=t-1||2!=a[s])return null;for(++s;0!=a[s];)if(++s>=a.length)return null;n=n.concat(a.slice(s+1))}for(var r=n,o=-1,l="";++o<r.length;){var c=255&r[o];c<128?l+=String.fromCharCode(c):c>191&&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;s<i.length;s++){var r=i[s].charCodeAt(0);if((a+=r<=127?1:r<=2047?2:r<=65535?3:4)>t){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;a<r.length;a+=1){var n=r[a],i=t[n];"function"==typeof i&&i!=Object.prototype[n]&&(e[n]=i)}})}catch(o){}s(e.prototype,n)}}};var G={};void 0!==G.asn1&&G.asn1||(G.asn1={}),G.asn1.ASN1Util=new function(){this.integerToByteHex=function(e){var t=e.toString(16);return t.length%2==1&&(t="0"+t),t},this.bigIntToMinTwosComplementsHex=function(e){var t=e.toString(16);if("-"!=t.substr(0,1))t.length%2==1?t="0"+t:t.match(/^[0-7]/)||(t="00"+t);else{var n=t.substr(1).length;n%2==1?n+=1:t.match(/^[0-7]/)||(n+=2);for(var i="",a=0;a<n;a++)i+="f";t=new T(i,16).xor(e).add(T.ONE).toString(16).replace(/^-/,"")}return t},this.getPEMStringFromHex=function(e,t){return hextopem(e,t)},this.newObject=function(e){var t=G.asn1,n=t.DERBoolean,i=t.DERInteger,a=t.DERBitString,s=t.DEROctetString,r=t.DERNull,o=t.DERObjectIdentifier,l=t.DEREnumerated,c=t.DERUTF8String,u=t.DERNumericString,d=t.DERPrintableString,h=t.DERTeletexString,p=t.DERIA5String,f=t.DERUTCTime,m=t.DERGeneralizedTime,g=t.DERSequence,v=t.DERSet,y=t.DERTaggedObject,w=t.ASN1Util.newObject,k=Object.keys(e);if(1!=k.length)throw"key of param shall be only one.";var _=k[0];if(-1==":bool:int:bitstr:octstr:null:oid:enum:utf8str:numstr:prnstr:telstr:ia5str:utctime:gentime:seq:set:tag:".indexOf(":"+_+":"))throw"undefined key: "+_;if("bool"==_)return new n(e[_]);if("int"==_)return new i(e[_]);if("bitstr"==_)return new a(e[_]);if("octstr"==_)return new s(e[_]);if("null"==_)return new r(e[_]);if("oid"==_)return new o(e[_]);if("enum"==_)return new l(e[_]);if("utf8str"==_)return new c(e[_]);if("numstr"==_)return new u(e[_]);if("prnstr"==_)return new d(e[_]);if("telstr"==_)return new h(e[_]);if("ia5str"==_)return new p(e[_]);if("utctime"==_)return new f(e[_]);if("gentime"==_)return new m(e[_]);if("seq"==_){for(var S=e[_],b=[],E=0;E<S.length;E++){var x=w(S[E]);b.push(x)}return new g({array:b})}if("set"==_){for(S=e[_],b=[],E=0;E<S.length;E++)x=w(S[E]),b.push(x);return new v({array:b})}if("tag"==_){var D=e[_];if("[object Array]"===Object.prototype.toString.call(D)&&3==D.length){var T=w(D[2]);return new y({tag:D[0],explicit:D[1],obj:T})}var N={};if(void 0!==D.explicit&&(N.explicit=D.explicit),void 0!==D.tag&&(N.tag=D.tag),void 0===D.obj)throw"obj shall be specified for 'tag'.";return N.obj=w(D.obj),new y(N)}},this.jsonToASN1HEX=function(e){return this.newObject(e).getEncodedHex()}},G.asn1.ASN1Util.oidHexToInt=function(e){for(var t="",n=parseInt(e.substr(0,2),16),i=(t=Math.floor(n/40)+"."+n%40,""),a=2;a<e.length;a+=2){var s=("00000000"+parseInt(e.substr(a,2),16).toString(2)).slice(-8);i+=s.substr(1,7),"0"==s.substr(0,1)&&(t=t+"."+new T(i,2).toString(10),i="")}return t},G.asn1.ASN1Util.oidIntToHex=function(e){var t=function(e){var t=e.toString(16);return 1==t.length&&(t="0"+t),t},n=function(e){var n="",i=new T(e,10).toString(2),a=7-i.length%7;7==a&&(a=0);for(var s="",r=0;r<a;r++)s+="0";for(i=s+i,r=0;r<i.length-1;r+=7){var o=i.substr(r,7);r!=i.length-7&&(o="1"+o),n+=t(parseInt(o,2))}return n};if(!e.match(/^[0-9.]+$/))throw"malformed oid string: "+e;var i="",a=e.split("."),s=40*parseInt(a[0])+parseInt(a[1]);i+=t(s),a.splice(0,2);for(var r=0;r<a.length;r++)i+=n(a[r]);return i},G.asn1.ASN1Object=function(){this.getLengthHexFromValue=function(){if(void 0===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="+"".length+",v="+this.hV;var e=this.hV.length/2,t=e.toString(16);if(t.length%2==1&&(t="0"+t),e<128)return t;var n=t.length/2;if(n>15)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<e)throw"unused bits shall be from 0 to 7: u = "+e;var n="0"+e;this.hTLV=null,this.isModified=!0,this.hV=n+t},this.setByBinaryString=function(e){var t=8-(e=e.replace(/0+$/,"")).length%8;8==t&&(t=0);for(var n=0;n<=t;n++)e+="0";var i="";for(n=0;n<e.length-1;n+=8){var a=e.substr(n,8),s=parseInt(a,2).toString(16);1==s.length&&(s="0"+s),i+=s}this.hTLV=null,this.isModified=!0,this.hV="0"+t+i},this.setByBooleanArray=function(e){for(var t="",n=0;n<e.length;n++)1==e[n]?t+="1":t+="0";this.setByBinaryString(t)},this.newFalseArray=function(e){for(var t=new Array(e),n=0;n<e;n++)t[n]=!1;return t},this.getFreshValueHex=function(){return this.hV},void 0!==e&&("string"==typeof e&&e.toLowerCase().match(/^[0-9a-f]+$/)?this.setHexValueIncludingUnusedBits(e):void 0!==e.hex?this.setHexValueIncludingUnusedBits(e.hex):void 0!==e.bin?this.setByBinaryString(e.bin):void 0!==e.array&&this.setByBooleanArray(e.array))},Y.lang.extend(G.asn1.DERBitString,G.asn1.ASN1Object),G.asn1.DEROctetString=function(e){if(void 0!==e&&void 0!==e.obj){var t=G.asn1.ASN1Util.newObject(e.obj);e.hex=t.getEncodedHex()}G.asn1.DEROctetString.superclass.constructor.call(this,e),this.hT="04"},Y.lang.extend(G.asn1.DEROctetString,G.asn1.DERAbstractString),G.asn1.DERNull=function(){G.asn1.DERNull.superclass.constructor.call(this),this.hT="05",this.hTLV="0500"},Y.lang.extend(G.asn1.DERNull,G.asn1.ASN1Object),G.asn1.DERObjectIdentifier=function(e){var t=function(e){var t=e.toString(16);return 1==t.length&&(t="0"+t),t},n=function(e){var n="",i=new T(e,10).toString(2),a=7-i.length%7;7==a&&(a=0);for(var s="",r=0;r<a;r++)s+="0";for(i=s+i,r=0;r<i.length-1;r+=7){var o=i.substr(r,7);r!=i.length-7&&(o="1"+o),n+=t(parseInt(o,2))}return n};G.asn1.DERObjectIdentifier.superclass.constructor.call(this),this.hT="06",this.setValueHex=function(e){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=e},this.setValueOidString=function(e){if(!e.match(/^[0-9.]+$/))throw"malformed oid string: "+e;var i="",a=e.split("."),s=40*parseInt(a[0])+parseInt(a[1]);i+=t(s),a.splice(0,2);for(var r=0;r<a.length;r++)i+=n(a[r]);this.hTLV=null,this.isModified=!0,this.s=null,this.hV=i},this.setValueName=function(e){var t=G.asn1.x509.OID.name2oid(e);if(""===t)throw"DERObjectIdentifier oidName undefined: "+e;this.setValueOidString(t)},this.getFreshValueHex=function(){return this.hV},void 0!==e&&("string"==typeof e?e.match(/^[0-2].[0-9.]+$/)?this.setValueOidString(e):this.setValueName(e):void 0!==e.oid?this.setValueOidString(e.oid):void 0!==e.hex?this.setValueHex(e.hex):void 0!==e.name&&this.setValueName(e.name))},Y.lang.extend(G.asn1.DERObjectIdentifier,G.asn1.ASN1Object),G.asn1.DEREnumerated=function(e){G.asn1.DEREnumerated.superclass.constructor.call(this),this.hT="0a",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.int?this.setByInteger(e.int):"number"==typeof e?this.setByInteger(e):void 0!==e.hex&&this.setValueHex(e.hex))},Y.lang.extend(G.asn1.DEREnumerated,G.asn1.ASN1Object),G.asn1.DERUTF8String=function(e){G.asn1.DERUTF8String.superclass.constructor.call(this,e),this.hT="0c"},Y.lang.extend(G.asn1.DERUTF8String,G.asn1.DERAbstractString),G.asn1.DERNumericString=function(e){G.asn1.DERNumericString.superclass.constructor.call(this,e),this.hT="12"},Y.lang.extend(G.asn1.DERNumericString,G.asn1.DERAbstractString),G.asn1.DERPrintableString=function(e){G.asn1.DERPrintableString.superclass.constructor.call(this,e),this.hT="13"},Y.lang.extend(G.asn1.DERPrintableString,G.asn1.DERAbstractString),G.asn1.DERTeletexString=function(e){G.asn1.DERTeletexString.superclass.constructor.call(this,e),this.hT="14"},Y.lang.extend(G.asn1.DERTeletexString,G.asn1.DERAbstractString),G.asn1.DERIA5String=function(e){G.asn1.DERIA5String.superclass.constructor.call(this,e),this.hT="16"},Y.lang.extend(G.asn1.DERIA5String,G.asn1.DERAbstractString),G.asn1.DERUTCTime=function(e){G.asn1.DERUTCTime.superclass.constructor.call(this,e),this.hT="17",this.setByDate=function(e){this.hTLV=null,this.isModified=!0,this.date=e,this.s=this.formatDate(this.date,"utc"),this.hV=stohex(this.s)},this.getFreshValueHex=function(){return void 0===this.date&&void 0===this.s&&(this.date=new Date,this.s=this.formatDate(this.date,"utc"),this.hV=stohex(this.s)),this.hV},void 0!==e&&(void 0!==e.str?this.setString(e.str):"string"==typeof e&&e.match(/^[0-9]{12}Z$/)?this.setString(e):void 0!==e.hex?this.setStringHex(e.hex):void 0!==e.date&&this.setByDate(e.date))},Y.lang.extend(G.asn1.DERUTCTime,G.asn1.DERAbstractTime),G.asn1.DERGeneralizedTime=function(e){G.asn1.DERGeneralizedTime.superclass.constructor.call(this,e),this.hT="18",this.withMillis=!1,this.setByDate=function(e){this.hTLV=null,this.isModified=!0,this.date=e,this.s=this.formatDate(this.date,"gen",this.withMillis),this.hV=stohex(this.s)},this.getFreshValueHex=function(){return void 0===this.date&&void 0===this.s&&(this.date=new Date,this.s=this.formatDate(this.date,"gen",this.withMillis),this.hV=stohex(this.s)),this.hV},void 0!==e&&(void 0!==e.str?this.setString(e.str):"string"==typeof e&&e.match(/^[0-9]{14}Z$/)?this.setString(e):void 0!==e.hex?this.setStringHex(e.hex):void 0!==e.date&&this.setByDate(e.date),!0===e.millis&&(this.withMillis=!0))},Y.lang.extend(G.asn1.DERGeneralizedTime,G.asn1.DERAbstractTime),G.asn1.DERSequence=function(e){G.asn1.DERSequence.superclass.constructor.call(this,e),this.hT="30",this.getFreshValueHex=function(){for(var e="",t=0;t<this.asn1Array.length;t++)e+=this.asn1Array[t].getEncodedHex();return this.hV=e,this.hV}},Y.lang.extend(G.asn1.DERSequence,G.asn1.DERAbstractStructured),G.asn1.DERSet=function(e){G.asn1.DERSet.superclass.constructor.call(this,e),this.hT="31",this.sortFlag=!0,this.getFreshValueHex=function(){for(var e=new Array,t=0;t<this.asn1Array.length;t++){var n=this.asn1Array[t];e.push(n.getEncodedHex())}return 1==this.sortFlag&&e.sort(),this.hV=e.join(""),this.hV},void 0!==e&&void 0!==e.sortflag&&0==e.sortflag&&(this.sortFlag=!1)},Y.lang.extend(G.asn1.DERSet,G.asn1.DERAbstractStructured),G.asn1.DERTaggedObject=function(e){G.asn1.DERTaggedObject.superclass.constructor.call(this),this.hT="a0",this.hV="",this.isExplicit=!0,this.asn1Object=null,this.setASN1Object=function(e,t,n){this.hT=t,this.isExplicit=e,this.asn1Object=n,this.isExplicit?(this.hV=this.asn1Object.getEncodedHex(),this.hTLV=null,this.isModified=!0):(this.hV=null,this.hTLV=n.getEncodedHex(),this.hTLV=this.hTLV.replace(/^../,t),this.isModified=!1)},this.getFreshValueHex=function(){return this.hV},void 0!==e&&(void 0!==e.tag&&(this.hT=e.tag),void 0!==e.explicit&&(this.isExplicit=e.explicit),void 0!==e.obj&&(this.asn1Object=e.obj,this.setASN1Object(this.isExplicit,this.hT,this.asn1Object)))},Y.lang.extend(G.asn1.DERTaggedObject,G.asn1.ASN1Object);var Z=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),Q=function(e){function t(n){var i=e.call(this)||this;return n&&("string"==typeof n?i.parseKey(n):(t.hasPrivateKeyProperty(n)||t.hasPublicKeyProperty(n))&&i.parsePropertiesFrom(n)),i}return Z(t,e),t.prototype.parseKey=function(e){try{var t=0,n=0,i=/^\s*(?:[0-9A-Fa-f][0-9A-Fa-f]\s*)+$/.test(e)?f(e):m.unarmor(e),a=b.decode(i);if(3===a.sub.length&&(a=a.sub[2].sub[0]),9===a.sub.length){t=a.sub[1].getHexStringValue(),this.n=A(t,16),n=a.sub[2].getHexStringValue(),this.e=parseInt(n,16);var s=a.sub[3].getHexStringValue();this.d=A(s,16);var r=a.sub[4].getHexStringValue();this.p=A(r,16);var o=a.sub[5].getHexStringValue();this.q=A(o,16);var l=a.sub[6].getHexStringValue();this.dmp1=A(l,16);var c=a.sub[7].getHexStringValue();this.dmq1=A(c,16);var u=a.sub[8].getHexStringValue();this.coeff=A(u,16)}else{if(2!==a.sub.length)return!1;var d=a.sub[1].sub[0];t=d.sub[0].getHexStringValue(),this.n=A(t,16),n=d.sub[1].getHexStringValue(),this.e=parseInt(n,16)}return!0}catch(h){return!1}},t.prototype.getPrivateBaseKey=function(){var e={array:[new G.asn1.DERInteger({int:0}),new G.asn1.DERInteger({bigint:this.n}),new G.asn1.DERInteger({int:this.e}),new G.asn1.DERInteger({bigint:this.d}),new G.asn1.DERInteger({bigint:this.p}),new G.asn1.DERInteger({bigint:this.q}),new G.asn1.DERInteger({bigint:this.dmp1}),new G.asn1.DERInteger({bigint:this.dmq1}),new G.asn1.DERInteger({bigint:this.coeff})]};return new G.asn1.DERSequence(e).getEncodedHex()},t.prototype.getPrivateBaseKeyB64=function(){return h(this.getPrivateBaseKey())},t.prototype.getPublicBaseKey=function(){var e=new G.asn1.DERSequence({array:[new G.asn1.DERObjectIdentifier({oid:"1.2.840.113549.1.1.1"}),new G.asn1.DERNull]}),t=new G.asn1.DERSequence({array:[new G.asn1.DERInteger({bigint:this.n}),new G.asn1.DERInteger({int:this.e})]}),n=new G.asn1.DERBitString({hex:"00"+t.getEncodedHex()});return new G.asn1.DERSequence({array:[e,n]}).getEncodedHex()},t.prototype.getPublicBaseKeyB64=function(){return h(this.getPublicBaseKey())},t.wordwrap=function(e,t){if(!e)return e;var n="(.{1,"+(t=t||64)+"})( +|$\n?)|(.{1,"+t+"})";return e.match(RegExp(n,"g")).join("\n")},t.prototype.getPrivateKey=function(){var e="-----BEGIN RSA PRIVATE KEY-----\n";return e+=t.wordwrap(this.getPrivateBaseKeyB64())+"\n",e+="-----END RSA PRIVATE KEY-----"},t.prototype.getPublicKey=function(){var e="-----BEGIN PUBLIC KEY-----\n";return e+=t.wordwrap(this.getPublicBaseKeyB64())+"\n",e+="-----END PUBLIC KEY-----"},t.hasPublicKeyProperty=function(e){return(e=e||{}).hasOwnProperty("n")&&e.hasOwnProperty("e")},t.hasPrivateKeyProperty=function(e){return(e=e||{}).hasOwnProperty("n")&&e.hasOwnProperty("e")&&e.hasOwnProperty("d")&&e.hasOwnProperty("p")&&e.hasOwnProperty("q")&&e.hasOwnProperty("dmp1")&&e.hasOwnProperty("dmq1")&&e.hasOwnProperty("coeff")},t.prototype.parsePropertiesFrom=function(e){this.n=e.n,this.e=e.e,e.hasOwnProperty("d")&&(this.d=e.d,this.p=e.p,this.q=e.q,this.dmp1=e.dmp1,this.dmq1=e.dmq1,this.coeff=e.coeff)},t}(J);const X="3.2.1";var ee=function(){function e(e){void 0===e&&(e={}),e=e||{},this.default_key_size=e.default_key_size?parseInt(e.default_key_size,10):1024,this.default_public_exponent=e.default_public_exponent||"010001",this.log=e.log||!1,this.key=null}return e.prototype.setKey=function(e){this.log&&this.key&&console.warn("A key was already set, overriding existing."),this.key=new Q(e)},e.prototype.setPrivateKey=function(e){this.setKey(e)},e.prototype.setPublicKey=function(e){this.setKey(e)},e.prototype.decrypt=function(e){try{return this.getKey().decrypt(e)}catch(t){return!1}},e.prototype.encrypt=function(e){try{return this.getKey().encrypt(e)}catch(t){return!1}},e.prototype.encryptLong=function(e){try{return h(this.getKey().encryptLong(e))}catch(t){return!1}},e.prototype.decryptLong=function(e){try{return this.getKey().decryptLong(e)}catch(t){return!1}},e.prototype.sign=function(e,t,n){try{return h(this.getKey().sign(e,t,n))}catch(i){return!1}},e.prototype.verify=function(e,t,n){try{return this.getKey().verify(e,function(e){var t,n="",a=0,s=0;for(t=0;t<e.length&&"="!=e.charAt(t);++t){var r=d.indexOf(e.charAt(t));r<0||(0==a?(n+=i(r>>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);