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
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
| "use strict";
| /**
| * @vue/shared v3.4.21
| * (c) 2018-present Yuxi (Evan) You and Vue contributors
| * @license MIT
| **/
| function e(e,t){const n=new Set(e.split(","));return t?e=>n.has(e.toLowerCase()):e=>n.has(e)}const t={},n=[],r=()=>{},o=()=>!1,s=e=>111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),i=e=>e.startsWith("onUpdate:"),a=Object.assign,c=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},l=Object.prototype.hasOwnProperty,u=(e,t)=>l.call(e,t),f=Array.isArray,h=e=>"[object Map]"===w(e),d=e=>"[object Set]"===w(e),p=e=>"function"==typeof e,g=e=>"string"==typeof e,m=e=>"symbol"==typeof e,_=e=>null!==e&&"object"==typeof e,y=e=>(_(e)||p(e))&&p(e.then)&&p(e.catch),v=Object.prototype.toString,w=e=>v.call(e),b=e=>"[object Object]"===w(e),x=e=>g(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,k=e(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),S=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},$=/-(\w)/g,I=S(e=>e.replace($,(e,t)=>t?t.toUpperCase():"")),A=/\B([A-Z])/g,P=S(e=>e.replace(A,"-$1").toLowerCase()),O=S(e=>e.charAt(0).toUpperCase()+e.slice(1)),T=S(e=>e?`on${O(e)}`:""),C=(e,t)=>!Object.is(e,t),M=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},E=e=>{const t=parseFloat(e);return isNaN(t)?e:t};function L(e){if(f(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],o=g(r)?B(r):L(r);if(o)for(const e in o)t[e]=o[e]}return t}if(g(e)||_(e))return e}const D=/;(?![^(]*\))/g,R=/:([^]+)/,F=/\/\*[^]*?\*\//g;function B(e){const t={};return e.replace(F,"").split(D).forEach(e=>{if(e){const n=e.split(R);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function j(e){let t="";if(g(e))t=e;else if(f(e))for(let n=0;n<e.length;n++){const r=j(e[n]);r&&(t+=r+" ")}else if(_(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const N=(e,t)=>t&&t.__v_isRef?N(e,t.value):h(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((e,[t,n],r)=>(e[U(t,r)+" =>"]=n,e),{})}:d(t)?{[`Set(${t.size})`]:[...t.values()].map(e=>U(e))}:m(t)?U(t):!_(t)||f(t)||b(t)?t:String(t),U=(e,t="")=>{var n;return m(e)?`Symbol(${null!=(n=e.description)?n:t})`:e},H="onShow",W="onHide",q="onLaunch",z="onError",K="onThemeChange",V="onPageNotFound",J="onUnhandledRejection",Y="onLoad",X="onReady",G="onUnload",Q="onInit",Z="onSaveExitState",ee="onResize",te="onBackPress",ne="onPageScroll",re="onTabItemTap",oe="onReachBottom",se="onPullDownRefresh",ie="onShareTimeline",ae="onShareChat",ce="onAddToFavorites",le="onShareAppMessage",ue="onNavigationBarButtonTap",fe="onNavigationBarSearchInputClicked",he="onNavigationBarSearchInputChanged",de="onNavigationBarSearchInputConfirmed",pe="onNavigationBarSearchInputFocusChanged",ge="virtualHostId";function me(e,t=null){let n;return(...r)=>(e&&(n=e.apply(t,r),e=null),n)}function _e(e,t){if(!g(t))return;const n=(t=t.replace(/\[(\d+)\]/g,".$1")).split(".");let r=n[0];return e||(e={}),1===n.length?e[r]:_e(e[r],n.slice(1).join("."))}function ye(e){let t={};return b(e)&&Object.keys(e).sort().forEach(n=>{const r=n;t[r]=e[r]}),Object.keys(t)?t:e}const ve=/:/g;const we=encodeURIComponent;function be(e,t=we){const n=e?Object.keys(e).map(n=>{let r=e[n];return void 0===typeof r||null===r?r="":b(r)&&(r=JSON.stringify(r)),t(n)+"="+t(r)}).filter(e=>e.length>0).join("&"):null;return n?`?${n}`:""}const xe=[Q,Y,H,W,G,te,ne,re,oe,se,ie,le,ae,ce,Z,ue,fe,he,de,pe];const ke=[H,W,q,z,K,V,J,"onExit",Q,Y,X,G,ee,te,ne,re,oe,se,ie,ce,le,ae,Z,ue,fe,he,de,pe],Se=(()=>({onPageScroll:1,onShareAppMessage:2,onShareTimeline:4}))();function $e(e,t,n=!0){return!(n&&!p(t))&&(ke.indexOf(e)>-1||0===e.indexOf("on"))}let Ie;const Ae=[];const Pe=me((e,t)=>t(e)),Oe=function(){};Oe.prototype={_id:1,on:function(e,t,n){var r=this.e||(this.e={});return(r[e]||(r[e]=[])).push({fn:t,ctx:n,_id:this._id}),this._id++},once:function(e,t,n){var r=this;function o(){r.off(e,o),t.apply(n,arguments)}return o._=t,this.on(e,o,n)},emit:function(e){for(var t=[].slice.call(arguments,1),n=((this.e||(this.e={}))[e]||[]).slice(),r=0,o=n.length;r<o;r++)n[r].fn.apply(n[r].ctx,t);return this},off:function(e,t){var n=this.e||(this.e={}),r=n[e],o=[];if(r&&t){for(var s=r.length-1;s>=0;s--)if(r[s].fn===t||r[s].fn._===t||r[s]._id===t){r.splice(s,1);break}o=r}return o.length?n[e]=o:delete n[e],this}};var Te=Oe;const Ce=["{","}"];const Me=/^(?:\d)+/,Ee=/^(?:\w)+/;const Le="zh-Hans",De="zh-Hant",Re="en",Fe=Object.prototype.hasOwnProperty,Be=(e,t)=>Fe.call(e,t),je=new class{constructor(){this._caches=Object.create(null)}interpolate(e,t,n=Ce){if(!t)return[e];let r=this._caches[e];return r||(r=function(e,[t,n]){const r=[];let o=0,s="";for(;o<e.length;){let i=e[o++];if(i===t){s&&r.push({type:"text",value:s}),s="";let t="";for(i=e[o++];void 0!==i&&i!==n;)t+=i,i=e[o++];const a=i===n,c=Me.test(t)?"list":a&&Ee.test(t)?"named":"unknown";r.push({value:t,type:c})}else s+=i}return s&&r.push({type:"text",value:s}),r}(e,n),this._caches[e]=r),function(e,t){const n=[];let r=0;const o=Array.isArray(t)?"list":(s=t,null!==s&&"object"==typeof s?"named":"unknown");var s;if("unknown"===o)return n;for(;r<e.length;){const s=e[r];switch(s.type){case"text":n.push(s.value);break;case"list":n.push(t[parseInt(s.value,10)]);break;case"named":"named"===o&&n.push(t[s.value])}r++}return n}(r,t)}};function Ne(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?De:(n=e,["-tw","-hk","-mo","-cht"].find(e=>-1!==n.indexOf(e))?De:Le);var n;let r=[Re,"fr","es"];t&&Object.keys(t).length>0&&(r=Object.keys(t));const o=function(e,t){return t.find(t=>0===e.indexOf(t))}(e,r);return o||void 0}class Ue{constructor({locale:e,fallbackLocale:t,messages:n,watcher:r,formater:o}){this.locale=Re,this.fallbackLocale=Re,this.message={},this.messages={},this.watchers=[],t&&(this.fallbackLocale=t),this.formater=o||je,this.messages=n||{},this.setLocale(e||Re),r&&this.watchLocale(r)}setLocale(e){const t=this.locale;this.locale=Ne(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 r=this.messages[e];r?n?Object.assign(r,t):Object.keys(t).forEach(e=>{Be(r,e)||(r[e]=t[e])}):this.messages[e]=t}f(e,t,n){return this.formater.interpolate(e,t,n).join("")}t(e,t,n){let r=this.message;return"string"==typeof t?(t=Ne(t,this.messages))&&(r=this.messages[t]):n=t,Be(r,e)?this.formater.interpolate(r[e],n).join(""):(console.warn(`Cannot translate the value of keypath ${e}. Use the value of keypath as default.`),e)}}function He(e){return function(){try{return e.apply(e,arguments)}catch(yd){console.error(yd)}}}let We=1;const qe={};function ze(e,t,n){if("number"==typeof e){const r=qe[e];if(r)return r.keepAlive||delete qe[e],r.callback(t,n)}return t}const Ke="success",Ve="fail",Je="complete";function Ye(e,t={},{beforeAll:n,beforeSuccess:r}={}){b(t)||(t={});const{success:o,fail:s,complete:i}=function(e){const t={};for(const n in e){const r=e[n];p(r)&&(t[n]=He(r),delete e[n])}return t}(t),a=p(o),c=p(s),l=p(i),u=We++;return function(e,t,n,r=!1){qe[e]={name:t,keepAlive:r,callback:n}}(u,e,u=>{(u=u||{}).errMsg=function(e,t){return e&&-1!==e.indexOf(":fail")?t+e.substring(e.indexOf(":fail")):t+":ok"}(u.errMsg,e),p(n)&&n(u),u.errMsg===e+":ok"?(p(r)&&r(u,t),a&&o(u)):c&&s(u),l&&i(u)}),u}const Xe="success",Ge="fail",Qe="complete",Ze={},et={};function tt(e,t){return function(n){return e(n,t)||n}}function nt(e,t,n){let r=!1;for(let o=0;o<e.length;o++){const s=e[o];if(r)r=Promise.resolve(tt(s,n));else{const e=s(t,n);if(y(e)&&(r=Promise.resolve(e)),!1===e)return{then(){},catch(){}}}}return r||{then:e=>e(t),catch(){}}}function rt(e,t={}){return[Xe,Ge,Qe].forEach(n=>{const r=e[n];if(!f(r))return;const o=t[n];t[n]=function(e){nt(r,e,t).then(e=>p(o)&&o(e)||e)}}),t}function ot(e,t){const n=[];f(Ze.returnValue)&&n.push(...Ze.returnValue);const r=et[e];return r&&f(r.returnValue)&&n.push(...r.returnValue),n.forEach(e=>{t=e(t)||t}),t}function st(e){const t=Object.create(null);Object.keys(Ze).forEach(e=>{"returnValue"!==e&&(t[e]=Ze[e].slice())});const n=et[e];return n&&Object.keys(n).forEach(e=>{"returnValue"!==e&&(t[e]=(t[e]||[]).concat(n[e]))}),t}function it(e,t,n,r){const o=st(e);if(o&&Object.keys(o).length){if(f(o.invoke)){return nt(o.invoke,n).then(n=>t(rt(st(e),n),...r))}return t(rt(o,n),...r)}return t(n,...r)}function at(e,t){return(n={},...r)=>function(e){return!(!b(e)||![Ke,Ve,Je].find(t=>p(e[t])))}(n)?ot(e,it(e,t,a({},n),r)):ot(e,new Promise((o,s)=>{it(e,t,a({},n,{success:o,fail:s}),r)}))}function ct(e,t,n,r={}){const o=t+":fail";let s="";return s=n?0===n.indexOf(o)?n:o+" "+n:o,delete r.errCode,ze(e,a({errMsg:s},r))}function lt(e,t,n,r){const o=function(e){e[0]}(t);if(o)return o}function ut(e,t,n,r){return n=>{const o=Ye(e,n,r),s=lt(0,[n]);return s?ct(o,e,s):t(n,{resolve:t=>function(e,t,n){return ze(e,a(n||{},{errMsg:t+":ok"}))}(o,e,t),reject:(t,n)=>ct(o,e,function(e){return!e||g(e)?e:e.stack?("undefined"!=typeof globalThis&&globalThis.harmonyChannel||console.error(e.message+"\n"+e.stack),e.message):e}(t),n)})}}function ft(e,t,n,r){return function(e,t){return(...e)=>{const n=lt(0,e);if(n)throw new Error(n);return t.apply(null,e)}}(0,t)}let ht=!1,dt=0,pt=0;const gt=ft(0,(e,t)=>{if(0===dt&&function(){var e,t;let n,r,o;{const s=(null===(e=wx.getWindowInfo)||void 0===e?void 0:e.call(wx))||wx.getSystemInfoSync(),i=(null===(t=wx.getDeviceInfo)||void 0===t?void 0:t.call(wx))||wx.getSystemInfoSync();n=s.windowWidth,r=s.pixelRatio,o=i.platform}dt=n,pt=r,ht="ios"===o}(),0===(e=Number(e)))return 0;let n=e/750*(t||dt);return n<0&&(n=-n),n=Math.floor(n+1e-4),0===n&&(n=1!==pt&&ht?.5:1),e<0?-n:n});function mt(e,t){Object.keys(t).forEach(n=>{p(t[n])&&(e[n]=function(e,t){const n=t?e?e.concat(t):f(t)?t:[t]:e;return n?function(e){const t=[];for(let n=0;n<e.length;n++)-1===t.indexOf(e[n])&&t.push(e[n]);return t}(n):n}(e[n],t[n]))})}function _t(e,t){e&&t&&Object.keys(t).forEach(n=>{const r=e[n],o=t[n];f(r)&&p(o)&&c(r,o)})}const yt=ft(0,(e,t)=>{g(e)&&b(t)?mt(et[e]||(et[e]={}),t):b(e)&&mt(Ze,e)}),vt=ft(0,(e,t)=>{g(e)?b(t)?_t(et[e],t):delete et[e]:b(e)&&_t(Ze,e)});const wt=new class{constructor(){this.$emitter=new Te}on(e,t){return this.$emitter.on(e,t)}once(e,t){return this.$emitter.once(e,t)}off(e,t){e?this.$emitter.off(e,t):this.$emitter.e={}}emit(e,...t){this.$emitter.emit(e,...t)}},bt=ft(0,(e,t)=>(wt.on(e,t),()=>wt.off(e,t))),xt=ft(0,(e,t)=>(wt.once(e,t),()=>wt.off(e,t))),kt=ft(0,(e,t)=>{f(e)||(e=e?[e]:[]),e.forEach(e=>{wt.off(e,t)})}),St=ft(0,(e,...t)=>{wt.emit(e,...t)});let $t,It,At;function Pt(e){try{return JSON.parse(e)}catch(yd){}return e}const Ot=[];function Tt(e,t){Ot.forEach(n=>{n(e,t)}),Ot.length=0}const Ct=at(Mt="getPushClientId",function(e,t,n,r){return ut(e,t,0,r)}(Mt,(e,{resolve:t,reject:n})=>{Promise.resolve().then(()=>{void 0===At&&(At=!1,$t="",It="uniPush is not enabled"),Ot.push((e,r)=>{e?t({cid:e}):n(r)}),void 0!==$t&&Tt($t,It)})},0,Et));var Mt,Et;const Lt=[],Dt=/^\$|__f__|getLocale|setLocale|sendNativeEvent|restoreGlobal|requireGlobal|getCurrentSubNVue|getMenuButtonBoundingClientRect|^report|interceptors|Interceptor$|getSubNVueById|requireNativePlugin|upx2px|rpx2px|hideKeyboard|canIUse|^create|Sync$|Manager$|base64ToArrayBuffer|arrayBufferToBase64|getDeviceInfo|getAppBaseInfo|getWindowInfo|getSystemSetting|getAppAuthorizeSetting/,Rt=/^create|Manager$/,Ft=["createBLEConnection"],Bt=["request","downloadFile","uploadFile","connectSocket"],jt=["createBLEConnection"],Nt=/^on|^off/;function Ut(e){return Rt.test(e)&&-1===Ft.indexOf(e)}function Ht(e){return Dt.test(e)&&-1===jt.indexOf(e)}function Wt(e){return-1!==Bt.indexOf(e)}function qt(e){return!(Ut(e)||Ht(e)||function(e){return Nt.test(e)&&"onPush"!==e}(e))}function zt(e,t){return qt(e)&&p(t)?function(n={},...r){return p(n.success)||p(n.fail)||p(n.complete)?ot(e,it(e,t,a({},n),r)):ot(e,new Promise((o,s)=>{it(e,t,a({},n,{success:o,fail:s}),r)}))}:t}Promise.prototype.finally||(Promise.prototype.finally=function(e){const t=this.constructor;return this.then(n=>t.resolve(e&&e()).then(()=>n),n=>t.resolve(e&&e()).then(()=>{throw n}))});const Kt=["success","fail","cancel","complete"];const Vt=()=>{const e=p(getApp)&&getApp({allowDefault:!0});return e&&e.$vm?e.$vm.$locale:function(){var e;let t="";{const n=(null===(e=wx.getAppBaseInfo)||void 0===e?void 0:e.call(wx))||wx.getSystemInfoSync();t=Ne(n&&n.language?n.language:Re)||Re}return t}()},Jt=[];"undefined"!=typeof global&&(global.getLocale=Vt);const Yt="__DC_STAT_UUID";let Xt;function Gt(e=wx){return function(t,n){Xt=Xt||e.getStorageSync(Yt),Xt||(Xt=Date.now()+""+Math.floor(1e7*Math.random()),wx.setStorage({key:Yt,data:Xt})),n.deviceId=Xt}}function Qt(e,t){if(e.safeArea){const n=e.safeArea;t.safeAreaInsets={top:n.top,left:n.left,right:e.windowWidth-n.right,bottom:e.screenHeight-n.bottom}}}function Zt(e,t){let n="",r="";switch(n=e.split(" ")[0]||t,r=e.split(" ")[1]||"",n=n.toLowerCase(),n){case"harmony":case"ohos":case"openharmony":n="harmonyos";break;case"iphone os":n="ios";break;case"mac":case"darwin":n="macos";break;case"windows_nt":n="windows"}return{osName:n,osVersion:r}}function en(e,t){let n=e.deviceType||"phone";{const e={ipad:"pad",windows:"pc",mac:"pc"},r=Object.keys(e),o=t.toLowerCase();for(let t=0;t<r.length;t++){const s=r[t];if(-1!==o.indexOf(s)){n=e[s];break}}}return n}function tn(e){let t=e;return t&&(t=t.toLowerCase()),t}function nn(e){return Vt?Vt():e}function rn(e){let t=e.hostName||"WeChat";return e.environment?t=e.environment:e.host&&e.host.env&&(t=e.host.env),t}const on={returnValue:(e,t)=>{Qt(e,t),Gt()(e,t),function(e,t){const{brand:n="",model:r="",system:o="",language:s="",theme:i,version:c,platform:l,fontSizeSetting:u,SDKVersion:f,pixelRatio:h,deviceOrientation:d}=e,{osName:p,osVersion:g}=Zt(o,l);let m=c,_=en(e,r),y=tn(n),v=rn(e),w=d,b=h,x=f;const k=(s||"").replace(/_/g,"-"),S={appId:"__UNI__90996F2",appName:"青岛大学附属医院opo",appVersion:"1.0.0",appVersionCode:"100",appLanguage:nn(k),uniCompileVersion:"4.75",uniCompilerVersion:"4.75",uniRuntimeVersion:"4.75",uniPlatform:"mp-weixin",deviceBrand:y,deviceModel:r,deviceType:_,devicePixelRatio:b,deviceOrientation:w,osName:p,osVersion:g,hostTheme:i,hostVersion:m,hostLanguage:k,hostName:v,hostSDKVersion:x,hostFontSizeSetting:u,windowTop:0,windowBottom:0,osLanguage:void 0,osTheme:void 0,ua:void 0,hostPackageName:void 0,browserName:void 0,browserVersion:void 0,isUniAppX:!1};a(t,S)}(e,t)}},sn=on,an={args(e,t){let n=parseInt(e.current);if(isNaN(n))return;const r=e.urls;if(!f(r))return;const o=r.length;return o?(n<0?n=0:n>=o&&(n=o-1),n>0?(t.current=r[n],t.urls=r.filter((e,t)=>!(t<n)||e!==r[n])):t.current=r[0],{indicator:!1,loop:!1}):void 0}},cn={args(e,t){t.alertText=e.title}},ln={returnValue:(e,t)=>{const{brand:n,model:r,system:o="",platform:s=""}=e;let i=en(e,r),c=tn(n);Gt()(e,t);const{osName:l,osVersion:u}=Zt(o,s);t=ye(a(t,{deviceType:i,deviceBrand:c,deviceModel:r,osName:l,osVersion:u}))}},un={returnValue:(e,t)=>{const{version:n,language:r,SDKVersion:o,theme:s}=e;let i=rn(e),c=(r||"").replace(/_/g,"-");const l={hostVersion:n,hostLanguage:c,hostName:i,hostSDKVersion:o,hostTheme:s,appId:"__UNI__90996F2",appName:"青岛大学附属医院opo",appVersion:"1.0.0",appVersionCode:"100",appLanguage:nn(c),isUniAppX:!1,uniPlatform:"mp-weixin",uniCompileVersion:"4.75",uniCompilerVersion:"4.75",uniRuntimeVersion:"4.75"};a(t,l)}},fn={returnValue:(e,t)=>{Qt(e,t),t=ye(a(t,{windowTop:0,windowBottom:0}))}},hn={args(e){const t=getApp({allowDefault:!0})||{};t.$vm?ts(z,e,t.$vm.$):(wx.$onErrorHandlers||(wx.$onErrorHandlers=[]),wx.$onErrorHandlers.push(e))}},dn={args(e){const t=getApp({allowDefault:!0})||{};if(t.$vm){if(e.__weh){const n=t.$vm.$[z];if(n){const t=n.indexOf(e.__weh);t>-1&&n.splice(t,1)}}}else{if(!wx.$onErrorHandlers)return;const t=wx.$onErrorHandlers.findIndex(t=>t===e);-1!==t&&wx.$onErrorHandlers.splice(t,1)}}},pn={args(){if(wx.__uni_console__){if(wx.__uni_console_warned__)return;wx.__uni_console_warned__=!0,console.warn("开发模式下小程序日志回显会使用 socket 连接,为了避免冲突,建议使用 SocketTask 的方式去管理 WebSocket 或手动关闭日志回显功能。[详情](https://uniapp.dcloud.net.cn/tutorial/run/mp-log.html)")}}},gn=pn,mn={$on:bt,$off:kt,$once:xt,$emit:St,upx2px:gt,rpx2px:gt,interceptors:{},addInterceptor:yt,removeInterceptor:vt,onCreateVueApp:function(e){if(Ie)return e(Ie);Ae.push(e)},invokeCreateVueAppHook:function(e){Ie=e,Ae.forEach(t=>t(e))},getLocale:Vt,setLocale:e=>{const t=p(getApp)&&getApp();if(!t)return!1;return t.$vm.$locale!==e&&(t.$vm.$locale=e,Jt.forEach(t=>t({locale:e})),!0)},onLocaleChange:e=>{-1===Jt.indexOf(e)&&Jt.push(e)},getPushClientId:Ct,onPushMessage:e=>{-1===Lt.indexOf(e)&&Lt.push(e)},offPushMessage:e=>{if(e){const t=Lt.indexOf(e);t>-1&&Lt.splice(t,1)}else Lt.length=0},invokePushCallback:function(e){if("enabled"===e.type)At=!0;else if("clientId"===e.type)$t=e.cid,It=e.errMsg,Tt($t,e.errMsg);else if("pushMsg"===e.type){const t={type:"receive",data:Pt(e.message)};for(let e=0;e<Lt.length;e++){if((0,Lt[e])(t),t.stopped)break}}else"click"===e.type&&Lt.forEach(t=>{t({type:"click",data:Pt(e.message)})})},__f__:function(e,t,...n){t&&n.push(t),console[e].apply(console,n)}};const _n=["qy","env","error","version","lanDebug","cloud","serviceMarket","router","worklet","__webpack_require_UNI_MP_PLUGIN__"],yn=["lanDebug","router","worklet"],vn=wx.getLaunchOptionsSync?wx.getLaunchOptionsSync():null;function wn(e){return(!vn||1154!==vn.scene||!yn.includes(e))&&(_n.indexOf(e)>-1||"function"==typeof wx[e])}function bn(){const e={};for(const t in wx)wn(t)&&(e[t]=wx[t]);return"undefined"!=typeof globalThis&&"undefined"==typeof requireMiniProgram&&(globalThis.wx=e),e}const xn=["__route__","__wxExparserNodeId__","__wxWebviewId__"],kn=(Sn={oauth:["weixin"],share:["weixin"],payment:["wxpay"],push:["weixin"]},function({service:e,success:t,fail:n,complete:r}){let o;Sn[e]?(o={errMsg:"getProvider:ok",service:e,provider:Sn[e]},p(t)&&t(o)):(o={errMsg:"getProvider:fail:服务["+e+"]不存在"},p(n)&&n(o)),p(r)&&r(o)});var Sn;const $n=bn();$n.canIUse("getAppBaseInfo")||($n.getAppBaseInfo=$n.getSystemInfoSync),$n.canIUse("getWindowInfo")||($n.getWindowInfo=$n.getSystemInfoSync),$n.canIUse("getDeviceInfo")||($n.getDeviceInfo=$n.getSystemInfoSync);let In=$n.getAppBaseInfo&&$n.getAppBaseInfo();In||(In=$n.getSystemInfoSync());const An=In?In.host:null,Pn=An&&"SAAASDK"===An.env?$n.miniapp.shareVideoMessage:$n.shareVideoMessage;var On=Object.freeze({__proto__:null,createSelectorQuery:function(){const e=$n.createSelectorQuery(),t=e.in;return e.in=function(e){return e.$scope?t.call(this,e.$scope):t.call(this,function(e){const t=Object.create(null);return xn.forEach(n=>{t[n]=e[n]}),t}(e))},e},getProvider:kn,shareVideoMessage:Pn});const Tn={args(e,t){e.compressedHeight&&!t.compressHeight&&(t.compressHeight=e.compressedHeight),e.compressedWidth&&!t.compressWidth&&(t.compressWidth=e.compressedWidth)}};var Cn=Object.freeze({__proto__:null,compressImage:Tn,getAppAuthorizeSetting:{returnValue:function(e,t){const{locationReducedAccuracy:n}=e;t.locationAccuracy="unsupported",!0===n?t.locationAccuracy="reduced":!1===n&&(t.locationAccuracy="full")}},getAppBaseInfo:un,getDeviceInfo:ln,getSystemInfo:on,getSystemInfoSync:sn,getWindowInfo:fn,offError:dn,onError:hn,onSocketMessage:gn,onSocketOpen:pn,previewImage:an,redirectTo:{},showActionSheet:cn});const Mn=bn();var En=function(e,t,n=wx){const r=function(e){function t(e,t,n){return function(o){return t(r(e,o,n))}}function n(e,n,r={},o={},s=!1){if(b(n)){const i=!0===s?n:{};p(r)&&(r=r(n,i)||{});for(const a in n)if(u(r,a)){let t=r[a];p(t)&&(t=t(n[a],n,i)),t?g(t)?i[t]=n[a]:b(t)&&(i[t.name?t.name:a]=t.value):console.warn(`微信小程序 ${e} 暂不支持 ${a}`)}else if(-1!==Kt.indexOf(a)){const r=n[a];p(r)&&(i[a]=t(e,r,o))}else s||u(i,a)||(i[a]=n[a]);return i}return p(n)&&(p(r)&&r(n,{}),n=t(e,n,o)),n}function r(t,r,o,s=!1){return p(e.returnValue)&&(r=e.returnValue(t,r)),n(t,r,o,{},s||!1)}return function(t,o){const s=u(e,t);if(!s&&"function"!=typeof wx[t])return o;const i=s||p(e.returnValue)||Ut(t)||Wt(t),a=s||p(o);if(!s&&!o)return function(){console.error(`微信小程序 暂不支持${t}`)};if(!i||!a)return o;const c=e[t];return function(e,o){let s=c||{};p(c)&&(s=c(e));const i=[e=n(t,e,s.args,s.returnValue)];void 0!==o&&i.push(o);const a=wx[s.name||t].apply(wx,i);return(Ut(t)||Wt(t))&&a&&!a.__v_skip&&(a.__v_skip=!0),Ht(t)?r(t,a,s.returnValue,Ut(t)):a}}}(t);return new Proxy({},{get:(t,o)=>u(t,o)?t[o]:u(e,o)?zt(o,e[o]):u(mn,o)?zt(o,mn[o]):zt(o,r(o,n[o]))})}(On,Cn,Mn);let Ln,Dn;class Rn{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Ln,!e&&Ln&&(this.index=(Ln.scopes||(Ln.scopes=[])).push(this)-1)}get active(){return this._active}run(e){if(this._active){const t=Ln;try{return Ln=this,e()}finally{Ln=t}}}on(){Ln=this}off(){Ln=this.parent}stop(e){if(this._active){let t,n;for(t=0,n=this.effects.length;t<n;t++)this.effects[t].stop();for(t=0,n=this.cleanups.length;t<n;t++)this.cleanups[t]();if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].stop(!0);if(!this.detached&&this.parent&&!e){const e=this.parent.scopes.pop();e&&e!==this&&(this.parent.scopes[this.index]=e,e.index=this.index)}this.parent=void 0,this._active=!1}}}function Fn(e){return new Rn(e)}function Bn(){return Ln}class jn{constructor(e,t,n,r){this.fn=e,this.trigger=t,this.scheduler=n,this.active=!0,this.deps=[],this._dirtyLevel=4,this._trackId=0,this._runnings=0,this._shouldSchedule=!1,this._depsLength=0,function(e,t=Ln){t&&t.active&&t.effects.push(e)}(this,r)}get dirty(){if(2===this._dirtyLevel||3===this._dirtyLevel){this._dirtyLevel=1,Vn();for(let e=0;e<this._depsLength;e++){const t=this.deps[e];if(t.computed&&(Nn(t.computed),this._dirtyLevel>=4))break}1===this._dirtyLevel&&(this._dirtyLevel=0),Jn()}return this._dirtyLevel>=4}set dirty(e){this._dirtyLevel=e?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let e=qn,t=Dn;try{return qn=!0,Dn=this,this._runnings++,Un(this),this.fn()}finally{Hn(this),this._runnings--,Dn=t,qn=e}}stop(){var e;this.active&&(Un(this),Hn(this),null==(e=this.onStop)||e.call(this),this.active=!1)}}function Nn(e){return e.value}function Un(e){e._trackId++,e._depsLength=0}function Hn(e){if(e.deps.length>e._depsLength){for(let t=e._depsLength;t<e.deps.length;t++)Wn(e.deps[t],e);e.deps.length=e._depsLength}}function Wn(e,t){const n=e.get(t);void 0!==n&&t._trackId!==n&&(e.delete(t),0===e.size&&e.cleanup())}let qn=!0,zn=0;const Kn=[];function Vn(){Kn.push(qn),qn=!1}function Jn(){const e=Kn.pop();qn=void 0===e||e}function Yn(){zn++}function Xn(){for(zn--;!zn&&Qn.length;)Qn.shift()()}function Gn(e,t,n){if(t.get(e)!==e._trackId){t.set(e,e._trackId);const n=e.deps[e._depsLength];n!==t?(n&&Wn(n,e),e.deps[e._depsLength++]=t):e._depsLength++}}const Qn=[];function Zn(e,t,n){Yn();for(const r of e.keys()){let n;r._dirtyLevel<t&&(null!=n?n:n=e.get(r)===r._trackId)&&(r._shouldSchedule||(r._shouldSchedule=0===r._dirtyLevel),r._dirtyLevel=t),r._shouldSchedule&&(null!=n?n:n=e.get(r)===r._trackId)&&(r.trigger(),r._runnings&&!r.allowRecurse||2===r._dirtyLevel||(r._shouldSchedule=!1,r.scheduler&&Qn.push(r.scheduler)))}Xn()}const er=(e,t)=>{const n=new Map;return n.cleanup=e,n.computed=t,n},tr=new WeakMap,nr=Symbol(""),rr=Symbol("");function or(e,t,n){if(qn&&Dn){let t=tr.get(e);t||tr.set(e,t=new Map);let r=t.get(n);r||t.set(n,r=er(()=>t.delete(n))),Gn(Dn,r)}}function sr(e,t,n,r,o,s){const i=tr.get(e);if(!i)return;let a=[];if("clear"===t)a=[...i.values()];else if("length"===n&&f(e)){const e=Number(r);i.forEach((t,n)=>{("length"===n||!m(n)&&n>=e)&&a.push(t)})}else switch(void 0!==n&&a.push(i.get(n)),t){case"add":f(e)?x(n)&&a.push(i.get("length")):(a.push(i.get(nr)),h(e)&&a.push(i.get(rr)));break;case"delete":f(e)||(a.push(i.get(nr)),h(e)&&a.push(i.get(rr)));break;case"set":h(e)&&a.push(i.get(nr))}Yn();for(const c of a)c&&Zn(c,4);Xn()}const ir=e("__proto__,__v_isRef,__isVue"),ar=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>"arguments"!==e&&"caller"!==e).map(e=>Symbol[e]).filter(m)),cr=lr();function lr(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...e){const n=Yr(this);for(let t=0,o=this.length;t<o;t++)or(n,0,t+"");const r=n[t](...e);return-1===r||!1===r?n[t](...e.map(Yr)):r}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...e){Vn(),Yn();const n=Yr(this)[t].apply(this,e);return Xn(),Jn(),n}}),e}function ur(e){const t=Yr(this);return or(t,0,e),t.hasOwnProperty(e)}class fr{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,n){const r=this._isReadonly,o=this._isShallow;if("__v_isReactive"===t)return!r;if("__v_isReadonly"===t)return r;if("__v_isShallow"===t)return o;if("__v_raw"===t)return n===(r?o?Ur:Nr:o?jr:Br).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;const s=f(e);if(!r){if(s&&u(cr,t))return Reflect.get(cr,t,n);if("hasOwnProperty"===t)return ur}const i=Reflect.get(e,t,n);return(m(t)?ar.has(t):ir(t))?i:(r||or(e,0,t),o?i:no(i)?s&&x(t)?i:i.value:_(i)?r?qr(i):Wr(i):i)}}class hr extends fr{constructor(e=!1){super(!1,e)}set(e,t,n,r){let o=e[t];if(!this._isShallow){const t=Vr(o);if(Jr(n)||Vr(n)||(o=Yr(o),n=Yr(n)),!f(e)&&no(o)&&!no(n))return!t&&(o.value=n,!0)}const s=f(e)&&x(t)?Number(t)<e.length:u(e,t),i=Reflect.set(e,t,n,r);return e===Yr(r)&&(s?C(n,o)&&sr(e,"set",t,n):sr(e,"add",t,n)),i}deleteProperty(e,t){const n=u(e,t);e[t];const r=Reflect.deleteProperty(e,t);return r&&n&&sr(e,"delete",t,void 0),r}has(e,t){const n=Reflect.has(e,t);return m(t)&&ar.has(t)||or(e,0,t),n}ownKeys(e){return or(e,0,f(e)?"length":nr),Reflect.ownKeys(e)}}class dr extends fr{constructor(e=!1){super(!0,e)}set(e,t){return!0}deleteProperty(e,t){return!0}}const pr=new hr,gr=new dr,mr=new hr(!0),_r=e=>e,yr=e=>Reflect.getPrototypeOf(e);function vr(e,t,n=!1,r=!1){const o=Yr(e=e.__v_raw),s=Yr(t);n||(C(t,s)&&or(o,0,t),or(o,0,s));const{has:i}=yr(o),a=r?_r:n?Qr:Gr;return i.call(o,t)?a(e.get(t)):i.call(o,s)?a(e.get(s)):void(e!==o&&e.get(t))}function wr(e,t=!1){const n=this.__v_raw,r=Yr(n),o=Yr(e);return t||(C(e,o)&&or(r,0,e),or(r,0,o)),e===o?n.has(e):n.has(e)||n.has(o)}function br(e,t=!1){return e=e.__v_raw,!t&&or(Yr(e),0,nr),Reflect.get(e,"size",e)}function xr(e){e=Yr(e);const t=Yr(this);return yr(t).has.call(t,e)||(t.add(e),sr(t,"add",e,e)),this}function kr(e,t){t=Yr(t);const n=Yr(this),{has:r,get:o}=yr(n);let s=r.call(n,e);s||(e=Yr(e),s=r.call(n,e));const i=o.call(n,e);return n.set(e,t),s?C(t,i)&&sr(n,"set",e,t):sr(n,"add",e,t),this}function Sr(e){const t=Yr(this),{has:n,get:r}=yr(t);let o=n.call(t,e);o||(e=Yr(e),o=n.call(t,e)),r&&r.call(t,e);const s=t.delete(e);return o&&sr(t,"delete",e,void 0),s}function $r(){const e=Yr(this),t=0!==e.size,n=e.clear();return t&&sr(e,"clear",void 0,void 0),n}function Ir(e,t){return function(n,r){const o=this,s=o.__v_raw,i=Yr(s),a=t?_r:e?Qr:Gr;return!e&&or(i,0,nr),s.forEach((e,t)=>n.call(r,a(e),a(t),o))}}function Ar(e,t,n){return function(...r){const o=this.__v_raw,s=Yr(o),i=h(s),a="entries"===e||e===Symbol.iterator&&i,c="keys"===e&&i,l=o[e](...r),u=n?_r:t?Qr:Gr;return!t&&or(s,0,c?rr:nr),{next(){const{value:e,done:t}=l.next();return t?{value:e,done:t}:{value:a?[u(e[0]),u(e[1])]:u(e),done:t}},[Symbol.iterator](){return this}}}}function Pr(e){return function(...t){return"delete"!==e&&("clear"===e?void 0:this)}}function Or(){const e={get(e){return vr(this,e)},get size(){return br(this)},has:wr,add:xr,set:kr,delete:Sr,clear:$r,forEach:Ir(!1,!1)},t={get(e){return vr(this,e,!1,!0)},get size(){return br(this)},has:wr,add:xr,set:kr,delete:Sr,clear:$r,forEach:Ir(!1,!0)},n={get(e){return vr(this,e,!0)},get size(){return br(this,!0)},has(e){return wr.call(this,e,!0)},add:Pr("add"),set:Pr("set"),delete:Pr("delete"),clear:Pr("clear"),forEach:Ir(!0,!1)},r={get(e){return vr(this,e,!0,!0)},get size(){return br(this,!0)},has(e){return wr.call(this,e,!0)},add:Pr("add"),set:Pr("set"),delete:Pr("delete"),clear:Pr("clear"),forEach:Ir(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(o=>{e[o]=Ar(o,!1,!1),n[o]=Ar(o,!0,!1),t[o]=Ar(o,!1,!0),r[o]=Ar(o,!0,!0)}),[e,n,t,r]}const[Tr,Cr,Mr,Er]=Or();function Lr(e,t){const n=t?e?Er:Mr:e?Cr:Tr;return(t,r,o)=>"__v_isReactive"===r?!e:"__v_isReadonly"===r?e:"__v_raw"===r?t:Reflect.get(u(n,r)&&r in t?n:t,r,o)}const Dr={get:Lr(!1,!1)},Rr={get:Lr(!1,!0)},Fr={get:Lr(!0,!1)},Br=new WeakMap,jr=new WeakMap,Nr=new WeakMap,Ur=new WeakMap;function Hr(e){return e.__v_skip||!Object.isExtensible(e)?0:function(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}((e=>w(e).slice(8,-1))(e))}function Wr(e){return Vr(e)?e:zr(e,!1,pr,Dr,Br)}function qr(e){return zr(e,!0,gr,Fr,Nr)}function zr(e,t,n,r,o){if(!_(e))return e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;const s=o.get(e);if(s)return s;const i=Hr(e);if(0===i)return e;const a=new Proxy(e,2===i?r:n);return o.set(e,a),a}function Kr(e){return Vr(e)?Kr(e.__v_raw):!(!e||!e.__v_isReactive)}function Vr(e){return!(!e||!e.__v_isReadonly)}function Jr(e){return!(!e||!e.__v_isShallow)}function Yr(e){const t=e&&e.__v_raw;return t?Yr(t):e}function Xr(e){return Object.isExtensible(e)&&((e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})})(e,"__v_skip",!0),e}const Gr=e=>_(e)?Wr(e):e,Qr=e=>_(e)?qr(e):e;class Zr{constructor(e,t,n,r){this.getter=e,this._setter=t,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new jn(()=>e(this._value),()=>to(this,2===this.effect._dirtyLevel?2:3)),this.effect.computed=this,this.effect.active=this._cacheable=!r,this.__v_isReadonly=n}get value(){const e=Yr(this);return e._cacheable&&!e.effect.dirty||!C(e._value,e._value=e.effect.run())||to(e,4),eo(e),e.effect._dirtyLevel>=2&&to(e,2),e._value}set value(e){this._setter(e)}get _dirty(){return this.effect.dirty}set _dirty(e){this.effect.dirty=e}}function eo(e){var t;qn&&Dn&&(e=Yr(e),Gn(Dn,null!=(t=e.dep)?t:e.dep=er(()=>e.dep=void 0,e instanceof Zr?e:void 0)))}function to(e,t=4,n){const r=(e=Yr(e)).dep;r&&Zn(r,t)}function no(e){return!(!e||!0!==e.__v_isRef)}function ro(e){return function(e,t){if(no(e))return e;return new oo(e,t)}(e,!1)}class oo{constructor(e,t){this.__v_isShallow=t,this.dep=void 0,this.__v_isRef=!0,this._rawValue=t?e:Yr(e),this._value=t?e:Gr(e)}get value(){return eo(this),this._value}set value(e){const t=this.__v_isShallow||Jr(e)||Vr(e);e=t?e:Yr(e),C(e,this._rawValue)&&(this._rawValue=e,this._value=t?e:Gr(e),to(this,4))}}function so(e){return no(e)?e.value:e}const io={get:(e,t,n)=>so(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const o=e[t];return no(o)&&!no(n)?(o.value=n,!0):Reflect.set(e,t,n,r)}};function ao(e){return Kr(e)?e:new Proxy(e,io)}function co(e){const t=f(e)?new Array(e.length):{};for(const n in e)t[n]=uo(e,n);return t}class lo{constructor(e,t,n){this._object=e,this._key=t,this._defaultValue=n,this.__v_isRef=!0}get value(){const e=this._object[this._key];return void 0===e?this._defaultValue:e}set value(e){this._object[this._key]=e}get dep(){return e=Yr(this._object),t=this._key,null==(n=tr.get(e))?void 0:n.get(t);var e,t,n}}function uo(e,t,n){const r=e[t];return no(r)?r:new lo(e,t,n)}function fo(e,t,n,r){try{return r?e(...r):e()}catch(o){po(o,t,n)}}function ho(e,t,n,r){if(p(e)){const o=fo(e,t,n,r);return o&&y(o)&&o.catch(e=>{po(e,t,n)}),o}const o=[];for(let s=0;s<e.length;s++)o.push(ho(e[s],t,n,r));return o}function po(e,t,n,r=!0){const o=t?t.vnode:null;if(t){let r=t.parent;const o=t.proxy,s=`https://vuejs.org/error-reference/#runtime-${n}`;for(;r;){const t=r.ec;if(t)for(let n=0;n<t.length;n++)if(!1===t[n](e,o,s))return;r=r.parent}const i=t.appContext.config.errorHandler;if(i)return void fo(i,null,10,[e,o,s])}go(e,n,o,r)}function go(e,t,n,r=!0){console.error(e)}let mo=!1,_o=!1;const yo=[];let vo=0;const wo=[];let bo=null,xo=0;const ko=Promise.resolve();let So=null;function $o(e){const t=So||ko;return e?t.then(this?e.bind(this):e):t}function Io(e){yo.length&&yo.includes(e,mo&&e.allowRecurse?vo+1:vo)||(null==e.id?yo.push(e):yo.splice(function(e){let t=vo+1,n=yo.length;for(;t<n;){const r=t+n>>>1,o=yo[r],s=To(o);s<e||s===e&&o.pre?t=r+1:n=r}return t}(e.id),0,e),Ao())}function Ao(){mo||_o||(_o=!0,So=ko.then(Mo))}function Po(e){f(e)?wo.push(...e):bo&&bo.includes(e,e.allowRecurse?xo+1:xo)||wo.push(e),Ao()}function Oo(e,t,n=(mo?vo+1:0)){for(;n<yo.length;n++){const e=yo[n];e&&e.pre&&(yo.splice(n,1),n--,e())}}const To=e=>null==e.id?1/0:e.id,Co=(e,t)=>{const n=To(e)-To(t);if(0===n){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function Mo(e){_o=!1,mo=!0,yo.sort(Co);try{for(vo=0;vo<yo.length;vo++){const e=yo[vo];e&&!1!==e.active&&fo(e,null,14)}}finally{vo=0,yo.length=0,function(){if(wo.length){const e=[...new Set(wo)].sort((e,t)=>To(e)-To(t));if(wo.length=0,bo)return void bo.push(...e);for(bo=e,xo=0;xo<bo.length;xo++)bo[xo]();bo=null,xo=0}}(),mo=!1,So=null,(yo.length||wo.length)&&Mo()}}function Eo(e,n,...r){if(e.isUnmounted)return;const o=e.vnode.props||t;let s=r;const i=n.startsWith("update:"),a=i&&n.slice(7);if(a&&a in o){const e=`${"modelValue"===a?"model":a}Modifiers`,{number:n,trim:i}=o[e]||t;i&&(s=r.map(e=>g(e)?e.trim():e)),n&&(s=r.map(E))}let c,l=o[c=T(n)]||o[c=T(I(n))];!l&&i&&(l=o[c=T(P(n))]),l&&ho(l,e,6,s);const u=o[c+"Once"];if(u){if(e.emitted){if(e.emitted[c])return}else e.emitted={};e.emitted[c]=!0,ho(u,e,6,s)}}function Lo(e,t,n=!1){const r=t.emitsCache,o=r.get(e);if(void 0!==o)return o;const s=e.emits;let i={},c=!1;if(!p(e)){const r=e=>{const n=Lo(e,t,!0);n&&(c=!0,a(i,n))};!n&&t.mixins.length&&t.mixins.forEach(r),e.extends&&r(e.extends),e.mixins&&e.mixins.forEach(r)}return s||c?(f(s)?s.forEach(e=>i[e]=null):a(i,s),_(e)&&r.set(e,i),i):(_(e)&&r.set(e,null),null)}function Do(e,t){return!(!e||!s(t))&&(t=t.slice(2).replace(/Once$/,""),u(e,t[0].toLowerCase()+t.slice(1))||u(e,P(t))||u(e,t))}let Ro=null;function Fo(e){const t=Ro;return Ro=e,e&&e.type.__scopeId,t}const Bo="components";function jo(e,t){return e&&(e[t]||e[I(t)]||e[O(I(t))])}const No={};function Uo(e,t,n){return Ho(e,t,n)}function Ho(e,n,{immediate:o,deep:s,flush:i,once:a,onTrack:l,onTrigger:u}=t){if(n&&a){const e=n;n=(...t)=>{e(...t),$()}}const h=qs,d=e=>!0===s?e:zo(e,!1===s?1:void 0);let g,m,_=!1,y=!1;if(no(e)?(g=()=>e.value,_=Jr(e)):Kr(e)?(g=()=>d(e),_=!0):f(e)?(y=!0,_=e.some(e=>Kr(e)||Jr(e)),g=()=>e.map(e=>no(e)?e.value:Kr(e)?d(e):p(e)?fo(e,h,2):void 0)):g=p(e)?n?()=>fo(e,h,2):()=>(m&&m(),ho(e,h,3,[v])):r,n&&s){const e=g;g=()=>zo(e())}let v=e=>{m=k.onStop=()=>{fo(e,h,4),m=k.onStop=void 0}},w=y?new Array(e.length).fill(No):No;const b=()=>{if(k.active&&k.dirty)if(n){const e=k.run();(s||_||(y?e.some((e,t)=>C(e,w[t])):C(e,w)))&&(m&&m(),ho(n,h,3,[e,w===No?void 0:y&&w[0]===No?[]:w,v]),w=e)}else k.run()};let x;b.allowRecurse=!!n,"sync"===i?x=b:"post"===i?x=()=>Bs(b,h&&h.suspense):(b.pre=!0,h&&(b.id=h.uid),x=()=>Io(b));const k=new jn(g,r,x),S=Bn(),$=()=>{k.stop(),S&&c(S.effects,k)};return n?o?b():w=k.run():"post"===i?Bs(k.run.bind(k),h&&h.suspense):k.run(),$}function Wo(e,t,n){const r=this.proxy,o=g(e)?e.includes(".")?qo(r,e):()=>r[e]:e.bind(r,r);let s;p(t)?s=t:(s=t.handler,n=t);const i=Js(this),a=Ho(o,s.bind(r),n);return i(),a}function qo(e,t){const n=t.split(".");return()=>{let t=e;for(let e=0;e<n.length&&t;e++)t=t[n[e]];return t}}function zo(e,t,n=0,r){if(!_(e)||e.__v_skip)return e;if(t&&t>0){if(n>=t)return e;n++}if((r=r||new Set).has(e))return e;if(r.add(e),no(e))zo(e.value,t,n,r);else if(f(e))for(let o=0;o<e.length;o++)zo(e[o],t,n,r);else if(d(e)||h(e))e.forEach(e=>{zo(e,t,n,r)});else if(b(e))for(const o in e)zo(e[o],t,n,r);return e}function Ko(){return{app:null,config:{isNativeTag:o,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let Vo=0;let Jo=null;function Yo(e,t,n=!1){const r=qs||Ro;if(r||Jo){const o=r?null==r.parent?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:Jo._context.provides;if(o&&e in o)return o[e];if(arguments.length>1)return n&&p(t)?t.call(r&&r.proxy):t}}const Xo=e=>e.type.__isKeepAlive;function Go(e,t){Zo(e,"a",t)}function Qo(e,t){Zo(e,"da",t)}function Zo(e,t,n=qs){const r=e.__wdc||(e.__wdc=()=>{let t=n;for(;t;){if(t.isDeactivated)return;t=t.parent}return e()});if(ts(t,r,n),n){let e=n.parent;for(;e&&e.parent;)Xo(e.parent.vnode)&&es(r,t,n,e),e=e.parent}}function es(e,t,n,r){const o=ts(t,e,r,!0);cs(()=>{c(r[t],o)},n)}function ts(e,t,n=qs,r=!1){if(n){(function(e){return xe.indexOf(e)>-1})(e)&&(n=n.root);const o=n[e]||(n[e]=[]),s=t.__weh||(t.__weh=(...r)=>{if(n.isUnmounted)return;Vn();const o=Js(n),s=ho(t,n,e,r);return o(),Jn(),s});return r?o.unshift(s):o.push(s),s}}const ns=e=>(t,n=qs)=>(!Gs||"sp"===e)&&ts(e,(...e)=>t(...e),n),rs=ns("bm"),os=ns("m"),ss=ns("bu"),is=ns("u"),as=ns("bum"),cs=ns("um"),ls=ns("sp"),us=ns("rtg"),fs=ns("rtc");function hs(e,t=qs){ts("ec",e,t)}const ds=e=>e?Xs(e)?ei(e)||e.proxy:ds(e.parent):null;const ps=a(Object.create(null),{$:function(e){return e},$el:e=>e.__$el||(e.__$el={}),$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>ds(e.parent),$root:e=>ds(e.root),$emit:e=>e.emit,$options:e=>xs(e),$forceUpdate:e=>e.f||(e.f=()=>{e.effect.dirty=!0,Io(e.update)}),$watch:e=>Wo.bind(e)}),gs=(e,n)=>e!==t&&!e.__isScriptSetup&&u(e,n),ms={get({_:e},n){const{ctx:r,setupState:o,data:s,props:i,accessCache:a,type:c,appContext:l}=e;let f;if("$"!==n[0]){const c=a[n];if(void 0!==c)switch(c){case 1:return o[n];case 2:return s[n];case 4:return r[n];case 3:return i[n]}else{if(gs(o,n))return a[n]=1,o[n];if(s!==t&&u(s,n))return a[n]=2,s[n];if((f=e.propsOptions[0])&&u(f,n))return a[n]=3,i[n];if(r!==t&&u(r,n))return a[n]=4,r[n];ys&&(a[n]=0)}}const h=ps[n];let d,p;return h?("$attrs"===n&&or(e,0,n),h(e)):(d=c.__cssModules)&&(d=d[n])?d:r!==t&&u(r,n)?(a[n]=4,r[n]):(p=l.config.globalProperties,u(p,n)?p[n]:void 0)},set({_:e},n,r){const{data:o,setupState:s,ctx:i}=e;return gs(s,n)?(s[n]=r,!0):o!==t&&u(o,n)?(o[n]=r,!0):!u(e.props,n)&&(("$"!==n[0]||!(n.slice(1)in e))&&(i[n]=r,!0))},has({_:{data:e,setupState:n,accessCache:r,ctx:o,appContext:s,propsOptions:i}},a){let c;return!!r[a]||e!==t&&u(e,a)||gs(n,a)||(c=i[0])&&u(c,a)||u(o,a)||u(ps,a)||u(s.config.globalProperties,a)},defineProperty(e,t,n){return null!=n.get?e._.accessCache[t]=0:u(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function _s(e){return f(e)?e.reduce((e,t)=>(e[t]=null,e),{}):e}let ys=!0;function vs(e){const t=xs(e),n=e.proxy,o=e.ctx;ys=!1,t.beforeCreate&&ws(t.beforeCreate,e,"bc");const{data:s,computed:i,methods:a,watch:c,provide:l,inject:u,created:h,beforeMount:d,mounted:g,beforeUpdate:m,updated:y,activated:v,deactivated:w,beforeDestroy:b,beforeUnmount:x,destroyed:k,unmounted:S,render:$,renderTracked:I,renderTriggered:A,errorCaptured:P,serverPrefetch:O,expose:T,inheritAttrs:C,components:M,directives:E,filters:L}=t;if(u&&function(e,t){f(e)&&(e=Is(e));for(const n in e){const r=e[n];let o;o=_(r)?"default"in r?Yo(r.from||n,r.default,!0):Yo(r.from||n):Yo(r),no(o)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>o.value,set:e=>o.value=e}):t[n]=o}}(u,o),a)for(const r in a){const e=a[r];p(e)&&(o[r]=e.bind(n))}if(s){const t=s.call(n,n);_(t)&&(e.data=Wr(t))}if(ys=!0,i)for(const f in i){const e=i[f],t=p(e)?e.bind(n,n):p(e.get)?e.get.bind(n,n):r,s=!p(e)&&p(e.set)?e.set.bind(n):r,a=ti({get:t,set:s});Object.defineProperty(o,f,{enumerable:!0,configurable:!0,get:()=>a.value,set:e=>a.value=e})}if(c)for(const r in c)bs(c[r],o,n,r);function D(e,t){f(t)?t.forEach(t=>e(t.bind(n))):t&&e(t.bind(n))}if(function(){if(l){const e=p(l)?l.call(n):l;Reflect.ownKeys(e).forEach(t=>{!function(e,t){if(qs){let n=qs.provides;const r=qs.parent&&qs.parent.provides;r===n&&(n=qs.provides=Object.create(r)),n[e]=t,"app"===qs.type.mpType&&qs.appContext.app.provide(e,t)}}(t,e[t])})}}(),h&&ws(h,e,"c"),D(rs,d),D(os,g),D(ss,m),D(is,y),D(Go,v),D(Qo,w),D(hs,P),D(fs,I),D(us,A),D(as,x),D(cs,S),D(ls,O),f(T))if(T.length){const t=e.exposed||(e.exposed={});T.forEach(e=>{Object.defineProperty(t,e,{get:()=>n[e],set:t=>n[e]=t})})}else e.exposed||(e.exposed={});$&&e.render===r&&(e.render=$),null!=C&&(e.inheritAttrs=C),M&&(e.components=M),E&&(e.directives=E),e.ctx.$onApplyOptions&&e.ctx.$onApplyOptions(t,e,n)}function ws(e,t,n){ho(f(e)?e.map(e=>e.bind(t.proxy)):e.bind(t.proxy),t,n)}function bs(e,t,n,r){const o=r.includes(".")?qo(n,r):()=>n[r];if(g(e)){const n=t[e];p(n)&&Uo(o,n)}else if(p(e))Uo(o,e.bind(n));else if(_(e))if(f(e))e.forEach(e=>bs(e,t,n,r));else{const r=p(e.handler)?e.handler.bind(n):t[e.handler];p(r)&&Uo(o,r,e)}}function xs(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:o,optionsCache:s,config:{optionMergeStrategies:i}}=e.appContext,a=s.get(t);let c;return a?c=a:o.length||n||r?(c={},o.length&&o.forEach(e=>ks(c,e,i,!0)),ks(c,t,i)):c=t,_(t)&&s.set(t,c),c}function ks(e,t,n,r=!1){const{mixins:o,extends:s}=t;s&&ks(e,s,n,!0),o&&o.forEach(t=>ks(e,t,n,!0));for(const i in t)if(r&&"expose"===i);else{const r=Ss[i]||n&&n[i];e[i]=r?r(e[i],t[i]):t[i]}return e}const Ss={data:$s,props:Os,emits:Os,methods:Ps,computed:Ps,beforeCreate:As,created:As,beforeMount:As,mounted:As,beforeUpdate:As,updated:As,beforeDestroy:As,beforeUnmount:As,destroyed:As,unmounted:As,activated:As,deactivated:As,errorCaptured:As,serverPrefetch:As,components:Ps,directives:Ps,watch:function(e,t){if(!e)return t;if(!t)return e;const n=a(Object.create(null),e);for(const r in t)n[r]=As(e[r],t[r]);return n},provide:$s,inject:function(e,t){return Ps(Is(e),Is(t))}};function $s(e,t){return t?e?function(){return a(p(e)?e.call(this,this):e,p(t)?t.call(this,this):t)}:t:e}function Is(e){if(f(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function As(e,t){return e?[...new Set([].concat(e,t))]:t}function Ps(e,t){return e?a(Object.create(null),e,t):t}function Os(e,t){return e?f(e)&&f(t)?[...new Set([...e,...t])]:a(Object.create(null),_s(e),_s(null!=t?t:{})):t}function Ts(e,t,n,r=!1){const o={},s={};e.propsDefaults=Object.create(null),Cs(e,t,o,s);for(const i in e.propsOptions[0])i in o||(o[i]=void 0);n?e.props=r?o:zr(o,!1,mr,Rr,jr):e.type.props?e.props=o:e.props=s,e.attrs=s}function Cs(e,n,r,o){const[s,i]=e.propsOptions;let a,c=!1;if(n)for(let t in n){if(k(t))continue;const l=n[t];let f;s&&u(s,f=I(t))?i&&i.includes(f)?(a||(a={}))[f]=l:r[f]=l:Do(e.emitsOptions,t)||t in o&&l===o[t]||(o[t]=l,c=!0)}if(i){const n=Yr(r),o=a||t;for(let t=0;t<i.length;t++){const a=i[t];r[a]=Ms(s,n,a,o[a],e,!u(o,a))}}return c}function Ms(e,t,n,r,o,s){const i=e[n];if(null!=i){const e=u(i,"default");if(e&&void 0===r){const e=i.default;if(i.type!==Function&&!i.skipFactory&&p(e)){const{propsDefaults:s}=o;if(n in s)r=s[n];else{const i=Js(o);r=s[n]=e.call(null,t),i()}}else r=e}i[0]&&(s&&!e?r=!1:!i[1]||""!==r&&r!==P(n)||(r=!0))}return r}function Es(e,r,o=!1){const s=r.propsCache,i=s.get(e);if(i)return i;const c=e.props,l={},h=[];let d=!1;if(!p(e)){const t=e=>{d=!0;const[t,n]=Es(e,r,!0);a(l,t),n&&h.push(...n)};!o&&r.mixins.length&&r.mixins.forEach(t),e.extends&&t(e.extends),e.mixins&&e.mixins.forEach(t)}if(!c&&!d)return _(e)&&s.set(e,n),n;if(f(c))for(let n=0;n<c.length;n++){const e=I(c[n]);Ls(e)&&(l[e]=t)}else if(c)for(const t in c){const e=I(t);if(Ls(e)){const n=c[t],r=l[e]=f(n)||p(n)?{type:n}:a({},n);if(r){const t=Fs(Boolean,r.type),n=Fs(String,r.type);r[0]=t>-1,r[1]=n<0||t<n,(t>-1||u(r,"default"))&&h.push(e)}}}const g=[l,h];return _(e)&&s.set(e,g),g}function Ls(e){return"$"!==e[0]&&!k(e)}function Ds(e){if(null===e)return"null";if("function"==typeof e)return e.name||"";if("object"==typeof e){return e.constructor&&e.constructor.name||""}return""}function Rs(e,t){return Ds(e)===Ds(t)}function Fs(e,t){return f(t)?t.findIndex(t=>Rs(t,e)):p(t)&&Rs(t,e)?0:-1}const Bs=Po,js=Symbol.for("v-fgt");function Ns(e){return e?Kr(t=e)||Vr(t)||"__vInternal"in e?a({},e):e:null;var t}const Us=Ko();let Hs=0;function Ws(e,n,r){const o=e.type,s=(n?n.appContext:e.appContext)||Us,i={uid:Hs++,vnode:e,type:o,parent:n,appContext:s,root:null,next:null,subTree:null,effect:null,update:null,scope:new Rn(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:n?n.provides:Object.create(s.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Es(o,s),emitsOptions:Lo(o,s),emit:null,emitted:null,propsDefaults:t,inheritAttrs:o.inheritAttrs,ctx:t,data:t,props:t,attrs:t,slots:t,refs:t,setupState:t,setupContext:null,attrsProxy:null,slotsProxy:null,suspense:r,suspenseId:r?r.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null,$uniElements:new Map,$templateUniElementRefs:[],$templateUniElementStyles:{},$eS:{},$eA:{}};return i.ctx={_:i},i.root=n?n.root:i,i.emit=Eo.bind(null,i),e.ce&&e.ce(i),i}let qs=null;const zs=()=>qs||Ro;let Ks,Vs;Ks=e=>{qs=e},Vs=e=>{Gs=e};const Js=e=>{const t=qs;return Ks(e),e.scope.on(),()=>{e.scope.off(),Ks(t)}},Ys=()=>{qs&&qs.scope.off(),Ks(null)};function Xs(e){return 4&e.vnode.shapeFlag}let Gs=!1;function Qs(e,t=!1){t&&Vs(t);const{props:n}=e.vnode,r=Xs(e);Ts(e,n,r,t);const o=r?function(e){const t=e.type;e.accessCache=Object.create(null),e.proxy=Xr(new Proxy(e.ctx,ms));const{setup:n}=t;if(n){const t=e.setupContext=n.length>1?function(e){const t=t=>{e.exposed=t||{}};return{get attrs(){return function(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get:(t,n)=>(or(e,0,"$attrs"),t[n])}))}(e)},slots:e.slots,emit:e.emit,expose:t}}(e):null,r=Js(e);Vn();const o=fo(n,e,0,[e.props,t]);Jn(),r(),y(o)?o.then(Ys,Ys):function(e,t){p(t)?e.render=t:_(t)&&(e.setupState=ao(t));Zs(e)}(e,o)}else Zs(e)}(e):void 0;return t&&Vs(!1),o}function Zs(e,t,n){const o=e.type;e.render||(e.render=o.render||r);{const t=Js(e);Vn();try{vs(e)}finally{Jn(),t()}}}function ei(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(ao(Xr(e.exposed)),{get:(t,n)=>n in t?t[n]:e.proxy[n],has:(e,t)=>t in e||t in ps}))}const ti=(e,t)=>{const n=function(e,t,n=!1){let o,s;const i=p(e);return i?(o=e,s=r):(o=e.get,s=e.set),new Zr(o,s,i||!s,n)}(e,0,Gs);return n},ni="3.4.21";function ri(e){return so(e)}const oi="[object Array]",si="[object Object]";function ii(e,t){const n={};return ai(e,t),ci(e,t,"",n),n}function ai(e,t){if((e=ri(e))===t)return;const n=w(e),r=w(t);if(n==si&&r==si)for(let o in t){const n=e[o];void 0===n?e[o]=null:ai(n,t[o])}else n==oi&&r==oi&&e.length>=t.length&&t.forEach((t,n)=>{ai(e[n],t)})}function ci(e,t,n,r){if((e=ri(e))===t)return;const o=w(e),s=w(t);if(o==si)if(s!=si||Object.keys(e).length<Object.keys(t).length)li(r,n,e);else for(let i in e){const o=ri(e[i]),s=t[i],a=w(o),c=w(s);if(a!=oi&&a!=si)o!=s&&li(r,(""==n?"":n+".")+i,o);else if(a==oi)c!=oi||o.length<s.length?li(r,(""==n?"":n+".")+i,o):o.forEach((e,t)=>{ci(e,s[t],(""==n?"":n+".")+i+"["+t+"]",r)});else if(a==si)if(c!=si||Object.keys(o).length<Object.keys(s).length)li(r,(""==n?"":n+".")+i,o);else for(let e in o)ci(o[e],s[e],(""==n?"":n+".")+i+"."+e,r)}else o==oi?s!=oi||e.length<t.length?li(r,n,e):e.forEach((e,o)=>{ci(e,t[o],n+"["+o+"]",r)}):li(r,n,e)}function li(e,t,n){e[t]=n}function ui(e){const t=e.ctx.__next_tick_callbacks;if(t&&t.length){const e=t.slice(0);t.length=0;for(let t=0;t<e.length;t++)e[t]()}}function fi(e,t){const n=e.ctx;if(!n.__next_tick_pending&&!function(e){return yo.includes(e.update)}(e))return $o(t&&t.bind(e.proxy));let r;return n.__next_tick_callbacks||(n.__next_tick_callbacks=[]),n.__next_tick_callbacks.push(()=>{t?fo(t.bind(e.proxy),e,14):r&&r(e.proxy)}),new Promise(e=>{r=e})}function hi(e,t){const n=typeof(e=ri(e));if("object"===n&&null!==e){let n=t.get(e);if(void 0!==n)return n;if(f(e)){const r=e.length;n=new Array(r),t.set(e,n);for(let o=0;o<r;o++)n[o]=hi(e[o],t)}else{n={},t.set(e,n);for(const r in e)u(e,r)&&(n[r]=hi(e[r],t))}return n}if("symbol"!==n)return e}function di(e){return hi(e,"undefined"!=typeof WeakMap?new WeakMap:new Map)}function pi(e,t,n){if(!t)return;(t=di(t)).$eS=e.$eS||{},t.$eA=e.$eA||{};const r=e.ctx,o=r.mpType;if("page"===o||"component"===o){t.r0=1;const o=r.$scope,s=Object.keys(t),i=ii(t,n||function(e,t){const n=e.data,r=Object.create(null);return t.forEach(e=>{r[e]=n[e]}),r}(o,s));Object.keys(i).length?(r.__next_tick_pending=!0,o.setData(i,()=>{r.__next_tick_pending=!1,ui(e)}),Oo()):ui(e)}}function gi(e,t,n){t.appContext.config.globalProperties.$applyOptions(e,t,n);const r=e.computed;if(r){const e=Object.keys(r);if(e.length){const n=t.ctx;n.$computedKeys||(n.$computedKeys=[]),n.$computedKeys.push(...e)}}delete t.ctx.$onApplyOptions}function mi(e,t=!1){const{setupState:n,$templateRefs:r,$templateUniElementRefs:o,ctx:{$scope:s,$mpPlatform:i}}=e;if("mp-alipay"===i)return;if(!s||!r&&!o)return;if(t)return r&&r.forEach(e=>_i(e,null,n)),void(o&&o.forEach(e=>_i(e,null,n)));const a="mp-baidu"===i||"mp-toutiao"===i,c=e=>{if(0===e.length)return[];const t=(s.selectAllComponents(".r")||[]).concat(s.selectAllComponents(".r-i-f")||[]);return e.filter(e=>{const r=function(e,t){const n=e.find(e=>e&&(e.properties||e.props).uI===t);if(n){const e=n.$vm;return e?ei(e.$)||e:function(e){_(e)&&Xr(e);return e}(n)}return null}(t,e.i);return!(!a||null!==r)||(_i(e,r,n),!1)})},l=()=>{if(r){const t=c(r);t.length&&e.proxy&&e.proxy.$scope&&e.proxy.$scope.setData({r1:1},()=>{c(t)})}};o&&o.length&&fi(e,()=>{o.forEach(e=>{f(e.v)?e.v.forEach(t=>{_i(e,t,n)}):_i(e,e.v,n)})}),s._$setRef?s._$setRef(l):fi(e,l)}function _i({r:e,f:t},n,r){if(p(e))e(n,{});else{const o=g(e),s=no(e);if(o||s)if(t){if(!s)return;f(e.value)||(e.value=[]);const t=e.value;if(-1===t.indexOf(n)){if(t.push(n),!n)return;n.$&&as(()=>c(t,n),n.$)}}else o?u(r,e)&&(r[e]=n):no(e)&&(e.value=n)}}const yi=Po;function vi(e,t){const n=e.component=Ws(e,t.parentComponent,null);return n.renderer=t.mpType?t.mpType:"component",n.ctx.$onApplyOptions=gi,n.ctx.$children=[],"app"===t.mpType&&(n.render=r),t.onBeforeSetup&&t.onBeforeSetup(n,t),Qs(n),t.parentComponent&&n.proxy&&t.parentComponent.ctx.$children.push(ei(n)||n.proxy),function(e){const t=Si.bind(e);e.$updateScopedSlots=()=>$o(()=>Io(t));const n=()=>{if(e.isMounted){const{next:t,bu:n,u:r}=e;$i(e,!1),ki(),n&&M(n),$i(e,!0),pi(e,bi(e)),r&&yi(r)}else as(()=>{mi(e,!0)},e),pi(e,bi(e))},o=e.effect=new jn(n,r,()=>Io(s),e.scope),s=e.update=()=>{o.dirty&&o.run()};s.id=e.uid,$i(e,!0),s()}(n),n.proxy}const wi=e=>{let t;for(const n in e)("class"===n||"style"===n||s(n))&&((t||(t={}))[n]=e[n]);return t};function bi(e){const{type:t,vnode:n,proxy:r,withProxy:o,props:s,propsOptions:[i],slots:a,attrs:c,emit:l,render:u,renderCache:f,data:h,setupState:d,ctx:p,uid:g,appContext:{app:{config:{globalProperties:{pruneComponentPropsCache:m}}}},inheritAttrs:_}=e;let y;e.$uniElementIds=new Map,e.$templateRefs=[],e.$templateUniElementRefs=[],e.$templateUniElementStyles={},e.$ei=0,m(g),e.__counter=0===e.__counter?1:0;const v=Fo(e);try{if(4&n.shapeFlag){xi(_,s,i,c);const e=o||r;y=u.call(e,e,f,s,d,h,p)}else{xi(_,s,i,t.props?c:wi(c));const e=t;y=e.length>1?e(s,{attrs:c,slots:a,emit:l}):e(s,null)}}catch(w){po(w,e,1),y=!1}return mi(e),Fo(v),y}function xi(e,t,n,r){if(t&&r&&!1!==e){const e=Object.keys(r).filter(e=>"class"!==e&&"style"!==e);if(!e.length)return;n&&e.some(i)?e.forEach(e=>{i(e)&&e.slice(9)in n||(t[e]=r[e])}):e.forEach(e=>t[e]=r[e])}}const ki=e=>{Vn(),Oo(),Jn()};function Si(){const e=this.$scopedSlotsData;if(!e||0===e.length)return;const t=this.ctx.$scope,n=t.data,r=Object.create(null);e.forEach(({path:e,index:t,data:o})=>{const s=_e(n,e),i=g(t)?`${e}.${t}`:`${e}[${t}]`;if(void 0===s||void 0===s[t])r[i]=o;else{const e=ii(o,s[t]);Object.keys(e).forEach(t=>{r[i+"."+t]=e[t]})}}),e.length=0,Object.keys(r).length&&t.setData(r)}function $i({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}const Ii=function(e,t=null){p(e)||(e=a({},e)),null==t||_(t)||(t=null);const n=Ko(),r=new WeakSet,o=n.app={_uid:Vo++,_component:e,_props:t,_container:null,_context:n,_instance:null,version:ni,get config(){return n.config},set config(e){},use:(e,...t)=>(r.has(e)||(e&&p(e.install)?(r.add(e),e.install(o,...t)):p(e)&&(r.add(e),e(o,...t))),o),mixin:e=>(n.mixins.includes(e)||n.mixins.push(e),o),component:(e,t)=>t?(n.components[e]=t,o):n.components[e],directive:(e,t)=>t?(n.directives[e]=t,o):n.directives[e],mount(){},unmount(){},provide:(e,t)=>(n.provides[e]=t,o),runWithContext(e){const t=Jo;Jo=o;try{return e()}finally{Jo=t}}};return o};function Ai(e,t=null){("undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof my?my:void 0).__VUE__=!0;const n=Ii(e,t),o=n._context;o.config.globalProperties.$nextTick=function(e){return fi(this.$,e)};const s=e=>(e.appContext=o,e.shapeFlag=6,e),i=function(e,t){return vi(s(e),t)},a=function(e){return e&&function(e){const{bum:t,scope:n,update:r,um:o}=e;t&&M(t);{const t=e.parent;if(t){const n=t.ctx.$children,r=ei(e)||e.proxy,o=n.indexOf(r);o>-1&&n.splice(o,1)}}n.stop(),r&&(r.active=!1),o&&yi(o),yi(()=>{e.isUnmounted=!0})}(e.$)};return n.mount=function(){e.render=r;const t=vi(s({type:e}),{mpType:"app",mpInstance:null,parentComponent:null,slots:[],props:null});return n._instance=t.$,t.$app=n,t.$createComponent=i,t.$destroyComponent=a,o.$appInstance=t,t},n.unmount=function(){},n}function Pi(e,t,n,r){p(t)&&ts(e,t.bind(n),r)}function Oi(e,t,n){!function(e,t,n){const r=e.mpType||n.$mpType;!r||"component"===r||"page"===r&&"component"===t.renderer||Object.keys(e).forEach(r=>{if($e(r,e[r],!1)){const o=e[r];f(o)?o.forEach(e=>Pi(r,e,n,t)):Pi(r,o,n,t)}})}(e,t,n)}function Ti(e,t,n){return e[t]=n}function Ci(e,...t){const n=this[e];return n?n(...t):(console.error(`method ${e} not found`),null)}function Mi(e){const t=e.config.errorHandler;return function(n,r,o){t&&t(n,r,o);const s=e._instance;if(!s||!s.proxy)throw n;s[z]?s.proxy.$callHook(z,n):go(n,0,r&&r.$.vnode,!1)}}function Ei(e,t){return e?[...new Set([].concat(e,t))]:t}let Li;const Di="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",Ri=/^(?:[A-Za-z\d+/]{4})*?(?:[A-Za-z\d+/]{2}(?:==)?|[A-Za-z\d+/]{3}=?)?$/;function Fi(){const e=En.getStorageSync("uni_id_token")||"",t=e.split(".");if(!e||3!==t.length)return{uid:null,role:[],permission:[],tokenExpired:0};let n;try{n=JSON.parse((r=t[1],decodeURIComponent(Li(r).split("").map(function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)}).join(""))))}catch(o){throw new Error("获取当前用户信息出错,详细错误信息为:"+o.message)}var r;return n.tokenExpired=1e3*n.exp,delete n.exp,delete n.iat,n}function Bi(e){const t=e.config;var n;t.errorHandler=Pe(e,Mi),n=t.optionMergeStrategies,ke.forEach(e=>{n[e]=Ei});const r=t.globalProperties;!function(e){e.uniIDHasRole=function(e){const{role:t}=Fi();return t.indexOf(e)>-1},e.uniIDHasPermission=function(e){const{permission:t}=Fi();return this.uniIDHasRole("admin")||t.indexOf(e)>-1},e.uniIDTokenValid=function(){const{tokenExpired:e}=Fi();return e>Date.now()}}(r),r.$set=Ti,r.$applyOptions=Oi,r.$callMethod=Ci,En.invokeCreateVueAppHook(e)}Li="function"!=typeof atob?function(e){if(e=String(e).replace(/[\t\n\f\r ]+/g,""),!Ri.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,r,o="",s=0;s<e.length;)t=Di.indexOf(e.charAt(s++))<<18|Di.indexOf(e.charAt(s++))<<12|(n=Di.indexOf(e.charAt(s++)))<<6|(r=Di.indexOf(e.charAt(s++))),o+=64===n?String.fromCharCode(t>>16&255):64===r?String.fromCharCode(t>>16&255,t>>8&255):String.fromCharCode(t>>16&255,t>>8&255,255&t);return o}:atob;const ji=Object.create(null);function Ni(e){delete ji[e]}function Ui(e){if(!e)return;const[t,n]=e.split(",");return ji[t]?ji[t][parseInt(n)]:void 0}var Hi={install(e){Bi(e),e.config.globalProperties.pruneComponentPropsCache=Ni;const t=e.mount;e.mount=function(n){const r=t.call(e,n),o=function(){const e="createApp";if("undefined"!=typeof global&&void 0!==global[e])return global[e];if("undefined"!=typeof my)return my[e]}();return o?o(r):"undefined"!=typeof createMiniProgramApp&&createMiniProgramApp(r),r}}};function Wi(e){return g(e)?e:function(e){let t="";if(!e||g(e))return t;for(const n in e)t+=`${n.startsWith("--")?n:P(n)}:${e[n]};`;return t}(L(e))}function qi(e,t){const n=zs(),o=n.ctx,s=void 0===t||"mp-weixin"!==o.$mpPlatform&&"mp-qq"!==o.$mpPlatform&&"mp-xhs"!==o.$mpPlatform||!g(t)&&"number"!=typeof t?"":"_"+t,i="e"+n.$ei+++s,c=o.$scope;if(!e)return delete c[i],i;const l=c[i];return l?l.value=e:c[i]=function(e,t){const n=e=>{var o;(o=e).type&&o.target&&(o.preventDefault=r,o.stopPropagation=r,o.stopImmediatePropagation=r,u(o,"detail")||(o.detail={}),u(o,"markerId")&&(o.detail="object"==typeof o.detail?o.detail:{},o.detail.markerId=o.markerId),b(o.detail)&&u(o.detail,"checked")&&!u(o.detail,"value")&&(o.detail.value=o.detail.checked),b(o.detail)&&(o.target=a({},o.target,o.detail)));let s=[e];t&&t.ctx.$getTriggerEventDetail&&"number"==typeof e.detail&&(e.detail=t.ctx.$getTriggerEventDetail(e.detail)),e.detail&&e.detail.__args__&&(s=e.detail.__args__);const i=n.value,c=()=>ho(function(e,t){if(f(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n&&n.call(e),e._stopped=!0},t.map(e=>t=>!t._stopped&&e(t))}return t}(e,i),t,5,s),l=e.target,h=!!l&&(!!l.dataset&&"true"===String(l.dataset.eventsync));if(!zi.includes(e.type)||h){const t=c();if("input"===e.type&&(f(t)||y(t)))return;return t}setTimeout(c)};return n.value=e,n}(e,n),i}const zi=["tap","longpress","longtap","transitionend","animationstart","animationiteration","animationend","touchforcechange"];function Ki(e,t={},n){const r=zs(),{parent:o,isMounted:s,ctx:{$scope:i}}=r,a=(i.properties||i.props).uI;if(!a)return;if(!o&&!s)return void os(()=>{Ki(e,t,n)},r);const c=function(e,t){let n=t.parent;for(;n;){const t=n.$ssi;if(t&&t[e])return t[e];n=n.parent}}(a,r);c&&c(e,t,n)}function Vi(e){return e.$scope.virtualHostId}function Ji(e,t){return!function(e){return!!Vi(e)}(e)||function(e){return e.$.propsOptions&&e.$.propsOptions[0]&&"id"in e.$.propsOptions[0]}(e)?t:Vi(e)}const Yi=e=>P(e),Xi=function(e,t,n){return Ji(e,t)||n||""};const Gi=function(e,t=null){return e&&(e.mpType="app"),Ai(e,t).use(Hi)};const Qi=["externalClasses"];const Zi=/_(.*)_worklet_factory_/;function ea(e,t){const n=e.$children;for(let o=n.length-1;o>=0;o--){const e=n[o];if(e.$scope._$vueId===t)return e}let r;for(let o=n.length-1;o>=0;o--)if(r=ea(n[o],t),r)return r}const ta=["createSelectorQuery","createIntersectionObserver","selectAllComponents","selectComponent"];function na(e,t){const n=e.ctx;n.mpType=t.mpType,n.$mpType=t.mpType,n.$mpPlatform="mp-weixin",n.$scope=t.mpInstance,Object.defineProperties(n,{[ge]:{get(){const e=this.$scope.data[ge];return void 0===e?"":e}}}),n.$mp={},n._self={},e.slots={},f(t.slots)&&t.slots.length&&(t.slots.forEach(t=>{e.slots[t]=!0}),e.slots.d&&(e.slots.default=!0)),n.getOpenerEventChannel=function(){return t.mpInstance.getOpenerEventChannel()},n.$hasHook=ra,n.$callHook=oa,e.emit=function(e,t){return function(n,...r){const o=t.$scope;if(o&&n){const e={__args__:r};o.triggerEvent(n,e)}return e.apply(this,[n,...r])}}(e.emit,n)}function ra(e){const t=this.$[e];return!(!t||!t.length)}function oa(e,t){"mounted"===e&&(oa.call(this,"bm"),this.$.isMounted=!0,e="m");const n=this.$[e];return n&&((e,t)=>{let n;for(let r=0;r<e.length;r++)n=e[r](t);return n})(n,t)}const sa=[Y,H,W,G,ee,re,oe,se,ce];function ia(e,t=new Set){if(e){Object.keys(e).forEach(n=>{$e(n,e[n])&&t.add(n)});{const{extends:n,mixins:r}=e;r&&r.forEach(e=>ia(e,t)),n&&ia(n,t)}}return t}function aa(e,t,n){-1!==n.indexOf(t)||u(e,t)||(e[t]=function(e){return this.$vm&&this.$vm.$callHook(t,e)})}const ca=[X];function la(e,t,n=ca){t.forEach(t=>aa(e,t,n))}function ua(e,t,n=ca){ia(t).forEach(t=>aa(e,t,n))}const fa=me(()=>{const e=[],t=p(getApp)&&getApp({allowDefault:!0});if(t&&t.$vm&&t.$vm.$){const n=t.$vm.$.appContext.mixins;if(f(n)){const t=Object.keys(Se);n.forEach(n=>{t.forEach(t=>{u(n,t)&&!e.includes(t)&&e.push(t)})})}}return e});const ha=[H,W,z,K,V,J];function da(e,t){const n=e.$,r={globalData:e.$options&&e.$options.globalData||{},$vm:e,onLaunch(t){this.$vm=e;const r=n.ctx;this.$vm&&r.$scope&&r.$callHook||(na(n,{mpType:"app",mpInstance:this,slots:[]}),r.globalData=this.globalData,e.$callHook(q,t))}},o=wx.$onErrorHandlers;o&&(o.forEach(e=>{ts(z,e,n)}),o.length=0),function(e){const t=ro(function(){var e;let t="";{const n=(null===(e=wx.getAppBaseInfo)||void 0===e?void 0:e.call(wx))||wx.getSystemInfoSync();t=Ne(n&&n.language?n.language:Re)||Re}return t}());Object.defineProperty(e,"$locale",{get:()=>t.value,set(e){t.value=e}})}(e);const s=e.$.type;la(r,ha),ua(r,s);{const e=s.methods;e&&a(r,e)}return r}function pa(e,t){if(p(e.onLaunch)){const t=wx.getLaunchOptionsSync&&wx.getLaunchOptionsSync();e.onLaunch(t)}p(e.onShow)&&wx.onAppShow&&wx.onAppShow(e=>{t.$callHook("onShow",e)}),p(e.onHide)&&wx.onAppHide&&wx.onAppHide(e=>{t.$callHook("onHide",e)})}const ga=["eO","uR","uRIF","uI","uT","uP","uS"];function ma(e){e.properties||(e.properties={}),a(e.properties,function(e,t=!1){const n={};if(!t){let e=function(e){const t=Object.create(null);e&&e.forEach(e=>{t[e]=!0}),this.setData({$slots:t})};ga.forEach(e=>{n[e]={type:null,value:""}}),n.uS={type:null,value:[]},n.uS.observer=e}return e.behaviors&&e.behaviors.includes("wx://form-field")&&(e.properties&&e.properties.name||(n.name={type:null,value:""}),e.properties&&e.properties.value||(n.value={type:null,value:""})),n}(e),function(e){const t={};return e&&e.virtualHost&&(t.virtualHostStyle={type:null,value:""},t.virtualHostClass={type:null,value:""},t.virtualHostHidden={type:null,value:""},t[ge]={type:null,value:""}),t}(e.options))}const _a=[String,Number,Boolean,Object,Array,null];function ya(e,t){const n=function(e){return f(e)&&1===e.length?e[0]:e}(e);return-1!==_a.indexOf(n)?n:null}function va(e,t){return(t?function(e){const t={};b(e)&&Object.keys(e).forEach(n=>{-1===ga.indexOf(n)&&(t[n]=e[n])});return t}(e):Ui(e.uP))||{}}function wa(e){const t=function(){const e=this.properties.uP;e&&(this.$vm?function(e,t){const n=Yr(t.props),r=Ui(e)||{};ba(n,r)&&(!function(e,t,n,r){const{props:o,attrs:s,vnode:{patchFlag:i}}=e,a=Yr(o),[c]=e.propsOptions;let l=!1;if(!(r||i>0)||16&i){let r;Cs(e,t,o,s)&&(l=!0);for(const s in a)t&&(u(t,s)||(r=P(s))!==s&&u(t,r))||(c?!n||void 0===n[s]&&void 0===n[r]||(o[s]=Ms(c,a,s,void 0,e,!0)):delete o[s]);if(s!==a)for(const e in s)t&&u(t,e)||(delete s[e],l=!0)}else if(8&i){const n=e.vnode.dynamicProps;for(let r=0;r<n.length;r++){let i=n[r];if(Do(e.emitsOptions,i))continue;const f=t[i];if(c)if(u(s,i))f!==s[i]&&(s[i]=f,l=!0);else{const t=I(i);o[t]=Ms(c,a,t,f,e,!1)}else f!==s[i]&&(s[i]=f,l=!0)}}l&&sr(e,"set","$attrs")}(t,r,n,!1),o=t.update,yo.indexOf(o)>-1&&function(e){const t=yo.indexOf(e);t>vo&&yo.splice(t,1)}(t.update),t.update());var o}(e,this.$vm.$):"m"===this.properties.uT&&function(e,t){const n=t.properties,r=Ui(e)||{};ba(n,r,!1)&&t.setData(r)}(e,this))};e.observers||(e.observers={}),e.observers.uP=t}function ba(e,t,n=!0){const r=Object.keys(t);if(n&&r.length!==Object.keys(e).length)return!0;for(let o=0;o<r.length;o++){const n=r[o];if(t[n]!==e[n])return!0}return!1}function xa(e,t){e.data={},e.behaviors=function(e){const t=e.behaviors;let n=e.props;n||(e.props=n=[]);const r=[];return f(t)&&t.forEach(e=>{r.push(e.replace("uni://","wx://")),"uni://form-field"===e&&(f(n)?(n.push("name"),n.push("modelValue")):(n.name={type:String,default:""},n.modelValue={type:[String,Number,Boolean,Array,Object,Date],default:""}))}),r}(t)}function ka(e,{parse:t,mocks:n,isPage:r,isPageInProject:o,initRelation:s,handleLink:i,initLifetimes:c}){e=e.default||e;const l={multipleSlots:!0,addGlobalClass:!0,pureDataPattern:/^uP$/};f(e.mixins)&&e.mixins.forEach(e=>{_(e.options)&&a(l,e.options)}),e.options&&a(l,e.options);const h={options:l,lifetimes:c({mocks:n,isPage:r,initRelation:s,vueOptions:e}),pageLifetimes:{show(){this.$vm&&this.$vm.$callHook("onPageShow")},hide(){this.$vm&&this.$vm.$callHook("onPageHide")},resize(e){this.$vm&&this.$vm.$callHook("onPageResize",e)}},methods:{__l:i}};var d,p,g,m;return xa(h,e),ma(h),wa(h),function(e,t){Qi.forEach(n=>{u(t,n)&&(e[n]=t[n])})}(h,e),d=h.methods,p=e.wxsCallMethods,f(p)&&p.forEach(e=>{d[e]=function(t){return this.$vm[e](t)}}),g=h.methods,(m=e.methods)&&Object.keys(m).forEach(e=>{const t=e.match(Zi);if(t){const n=t[1];g[e]=m[e],g[n]=m[n]}}),t&&t(h,{handleLink:i}),h}let Sa,$a;function Ia(){return getApp().$vm}function Aa(e,t){const{parse:n,mocks:r,isPage:o,initRelation:s,handleLink:i,initLifetimes:a}=t,c=ka(e,{mocks:r,isPage:o,isPageInProject:!0,initRelation:s,handleLink:i,initLifetimes:a});!function({properties:e},t){f(t)?t.forEach(t=>{e[t]={type:String,value:""}}):b(t)&&Object.keys(t).forEach(n=>{const r=t[n];if(b(r)){let t=r.default;p(t)&&(t=t());const o=r.type;r.type=ya(o),e[n]={type:r.type,value:t}}else e[n]={type:ya(r)}})}(c,(e.default||e).props);const l=c.methods;return l.onLoad=function(e){var t;return this.options=e,this.$page={fullPath:(t=this.route+be(e),function(e){return 0===e.indexOf("/")}(t)?t:"/"+t)},this.$vm&&this.$vm.$callHook(Y,e)},la(l,sa),ua(l,e),function(e,t){if(!t)return;Object.keys(Se).forEach(n=>{t&Se[n]&&aa(e,n,[])})}(l,e.__runtimeHooks),la(l,fa()),n&&n(c,{handleLink:i}),c}const Pa=Page,Oa=Component;function Ta(e){const t=e.triggerEvent,n=function(n,...r){return t.apply(e,[(o=n,I(o.replace(ve,"-"))),...r]);var o};try{e.triggerEvent=n}catch(r){e._triggerEvent=n}}function Ca(e,t,n){const r=t[e];t[e]=r?function(...e){return Ta(this),r.apply(this,e)}:function(){Ta(this)}}Page=function(e){return Ca(Y,e),Pa(e)},Component=function(e){Ca("created",e);return e.properties&&e.properties.uP||(ma(e),wa(e)),Oa(e)};var Ma=Object.freeze({__proto__:null,handleLink:function(e){const t=e.detail||e.value,n=t.vuePid;let r;n&&(r=ea(this.$vm,n)),r||(r=this.$vm),t.parent=r},initLifetimes:function({mocks:e,isPage:t,initRelation:n,vueOptions:r}){return{attached(){let o=this.properties;!function(e,t){if(!e)return;const n=e.split(","),r=n.length;1===r?t._$vueId=n[0]:2===r&&(t._$vueId=n[0],t._$vuePid=n[1])}(o.uI,this);const s={vuePid:this._$vuePid};n(this,s);const i=this,a=t(i);let c=o;this.$vm=function(e,t){Sa||(Sa=Ia().$createComponent);const n=Sa(e,t);return ei(n.$)||n}({type:r,props:va(c,a)},{mpType:a?"page":"component",mpInstance:i,slots:o.uS||{},parentComponent:s.parent&&s.parent.$,onBeforeSetup(t,n){!function(e,t){Object.defineProperty(e,"refs",{get(){const e={};return function(e,t,n){e.selectAllComponents(t).forEach(e=>{const t=e.properties.uR;n[t]=e.$vm||e})}(t,".r",e),t.selectAllComponents(".r-i-f").forEach(t=>{const n=t.properties.uR;n&&(e[n]||(e[n]=[]),e[n].push(t.$vm||t))}),e}})}(t,i),function(e,t,n){const r=e.ctx;n.forEach(n=>{u(t,n)&&(e[n]=r[n]=t[n])})}(t,i,e),function(e,t){na(e,t);const n=e.ctx;ta.forEach(e=>{n[e]=function(...t){const r=n.$scope;if(r&&r[e])return r[e].apply(r,t)}})}(t,n)}}),a||function(e){const t=e.$options;f(t.behaviors)&&t.behaviors.includes("uni://form-field")&&e.$watch("modelValue",()=>{e.$scope&&e.$scope.setData({name:e.name,value:e.modelValue})},{immediate:!0})}(this.$vm)},ready(){this.$vm&&(this.$vm.$callHook("mounted"),this.$vm.$callHook(X))},detached(){var e;this.$vm&&(Ni(this.$vm.$.uid),e=this.$vm,$a||($a=Ia().$destroyComponent),$a(e))}}},initRelation:function(e,t){e.triggerEvent("__l",t)},isPage:function(e){return!!e.route},mocks:["__route__","__wxExparserNodeId__","__wxWebviewId__"]});const Ea=function(e){return App(da(e))},La=(Da=Ma,function(e){return Component(Aa(e,Da))});var Da;const Ra=function(e){return function(t){return Component(ka(t,e))}}(Ma),Fa=function(e){pa(da(e),e)},Ba=function(e){const t=da(e),n=p(getApp)&&getApp({allowDefault:!0});if(!n)return;e.$.ctx.$scope=n;const r=n.globalData;r&&Object.keys(t.globalData).forEach(e=>{u(r,e)||(r[e]=t.globalData[e])}),Object.keys(t).forEach(e=>{u(n,e)||(n[e]=t[e])}),pa(t,e)};wx.createApp=global.createApp=Ea,wx.createPage=La,wx.createComponent=Ra,wx.createPluginApp=global.createPluginApp=Fa,wx.createSubpackageApp=global.createSubpackageApp=Ba;
| /*!
| * pinia v2.1.7
| * (c) 2023 Eduardo San Martin Morote
| * @license MIT
| */
| let ja;const Na=e=>ja=e,Ua=Symbol();function Ha(e){return e&&"object"==typeof e&&"[object Object]"===Object.prototype.toString.call(e)&&"function"!=typeof e.toJSON}var Wa,qa;(qa=Wa||(Wa={})).direct="direct",qa.patchObject="patch object",qa.patchFunction="patch function";const za=()=>{};function Ka(e,t,n,r=za){e.push(t);const o=()=>{const n=e.indexOf(t);n>-1&&(e.splice(n,1),r())};return!n&&Bn()&&function(e){Ln&&Ln.cleanups.push(e)}(o),o}function Va(e,...t){e.slice().forEach(e=>{e(...t)})}const Ja=e=>e();function Ya(e,t){e instanceof Map&&t instanceof Map&&t.forEach((t,n)=>e.set(n,t)),e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const r=t[n],o=e[n];Ha(o)&&Ha(r)&&e.hasOwnProperty(n)&&!no(r)&&!Kr(r)?e[n]=Ya(o,r):e[n]=r}return e}const Xa=Symbol();function Ga(e){return!Ha(e)||!e.hasOwnProperty(Xa)}const{assign:Qa}=Object;function Za(e){return!(!no(e)||!e.effect)}function ec(e,t,n={},r,o,s){let i;const a=Qa({actions:{}},n),c={deep:!0};let l,u,f,h=[],d=[];const p=r.state.value[e];let g;function m(t){let n;l=u=!1,"function"==typeof t?(t(r.state.value[e]),n={type:Wa.patchFunction,storeId:e,events:f}):(Ya(r.state.value[e],t),n={type:Wa.patchObject,payload:t,storeId:e,events:f});const o=g=Symbol();$o().then(()=>{g===o&&(l=!0)}),u=!0,Va(h,n,r.state.value[e])}s||p||(r.state.value[e]={}),ro({});const _=s?function(){const{state:e}=n,t=e?e():{};this.$patch(e=>{Qa(e,t)})}:za;function y(t,n){return function(){Na(r);const o=Array.from(arguments),s=[],i=[];let a;Va(d,{args:o,name:t,store:v,after:function(e){s.push(e)},onError:function(e){i.push(e)}});try{a=n.apply(this&&this.$id===e?this:v,o)}catch(c){throw Va(i,c),c}return a instanceof Promise?a.then(e=>(Va(s,e),e)).catch(e=>(Va(i,e),Promise.reject(e))):(Va(s,a),a)}}const v=Wr({_p:r,$id:e,$onAction:Ka.bind(null,d),$patch:m,$reset:_,$subscribe(t,n={}){const o=Ka(h,t,n.detached,()=>s()),s=i.run(()=>Uo(()=>r.state.value[e],r=>{("sync"===n.flush?u:l)&&t({storeId:e,type:Wa.direct,events:f},r)},Qa({},c,n)));return o},$dispose:function(){i.stop(),h=[],d=[],r._s.delete(e)}});r._s.set(e,v);const w=(r._a&&r._a.runWithContext||Ja)(()=>r._e.run(()=>(i=Fn()).run(t)));for(const b in w){const t=w[b];if(no(t)&&!Za(t)||Kr(t))s||(p&&Ga(t)&&(no(t)?t.value=p[b]:Ya(t,p[b])),r.state.value[e][b]=t);else if("function"==typeof t){const e=y(b,t);w[b]=e,a.actions[b]=t}}return Qa(v,w),Qa(Yr(v),w),Object.defineProperty(v,"$state",{get:()=>r.state.value[e],set:e=>{m(t=>{Qa(t,e)})}}),r._p.forEach(e=>{Qa(v,i.run(()=>e({store:v,app:r._a,pinia:r,options:a})))}),p&&s&&n.hydrate&&n.hydrate(v.$state,p),l=!0,u=!0,v}const tc=(e,t=0)=>(t,n=zs())=>{!Gs&&ts(e,t,n)},nc=tc(H,3),rc=tc(q,1),oc=tc(Y,2),sc=tc(oe,2),ic=tc(se,2),ac="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,cc=e=>ac?Symbol(e):e,lc=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),uc=e=>"number"==typeof e&&isFinite(e),fc=e=>"[object RegExp]"===Sc(e),hc=e=>$c(e)&&0===Object.keys(e).length;function dc(e,t){"undefined"!=typeof console&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const pc=Object.assign;function gc(e){return e.replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}const mc=Object.prototype.hasOwnProperty;function _c(e,t){return mc.call(e,t)}const yc=Array.isArray,vc=e=>"function"==typeof e,wc=e=>"string"==typeof e,bc=e=>"boolean"==typeof e,xc=e=>null!==e&&"object"==typeof e,kc=Object.prototype.toString,Sc=e=>kc.call(e),$c=e=>"[object Object]"===Sc(e),Ic=Object.prototype.hasOwnProperty;function Ac(e,t){return Ic.call(e,t)}const Pc=e=>null!==e&&"object"==typeof e,Oc=[];Oc[0]={w:[0],i:[3,0],"[":[4],o:[7]},Oc[1]={w:[1],".":[2],"[":[4],o:[7]},Oc[2]={w:[2],i:[3,0],0:[3,0]},Oc[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]},Oc[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]},Oc[5]={"'":[4,0],o:8,l:[5,0]},Oc[6]={'"':[4,0],o:8,l:[6,0]};const Tc=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function Cc(e){if(null==e)return"o";switch(e.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return e;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}function Mc(e){const t=e.trim();return("0"!==e.charAt(0)||!isNaN(parseInt(e)))&&(n=t,Tc.test(n)?function(e){const t=e.charCodeAt(0);return t!==e.charCodeAt(e.length-1)||34!==t&&39!==t?e:e.slice(1,-1)}(t):"*"+t);var n}const Ec=new Map;function Lc(e,t){if(!Pc(e))return null;let n=Ec.get(t);if(n||(n=function(e){const t=[];let n,r,o,s,i,a,c,l=-1,u=0,f=0;const h=[];function d(){const t=e[l+1];if(5===u&&"'"===t||6===u&&'"'===t)return l++,o="\\"+t,h[0](),!0}for(h[0]=()=>{void 0===r?r=o:r+=o},h[1]=()=>{void 0!==r&&(t.push(r),r=void 0)},h[2]=()=>{h[0](),f++},h[3]=()=>{if(f>0)f--,u=4,h[0]();else{if(f=0,void 0===r)return!1;if(r=Mc(r),!1===r)return!1;h[1]()}};null!==u;)if(l++,n=e[l],"\\"!==n||!d()){if(s=Cc(n),c=Oc[u],i=c[s]||c.l||8,8===i)return;if(u=i[0],void 0!==i[1]&&(a=h[i[1]],a&&(o=n,!1===a())))return;if(7===u)return t}}(t),n&&Ec.set(t,n)),!n)return null;const r=n.length;let o=e,s=0;for(;s<r;){const e=o[n[s]];if(void 0===e)return null;o=e,s++}return o}function Dc(e){if(!Pc(e))return e;for(const t in e)if(Ac(e,t))if(t.includes(".")){const n=t.split("."),r=n.length-1;let o=e;for(let e=0;e<r;e++)n[e]in o||(o[n[e]]={}),o=o[n[e]];o[n[r]]=e[t],delete e[t],Pc(o[n[r]])&&Dc(o[n[r]])}else Pc(e[t])&&Dc(e[t]);return e}
| /*!
| * @intlify/runtime v9.1.9
| * (c) 2021 kazuya kawaguchi
| * Released under the MIT License.
| */const Rc=e=>e,Fc=e=>"",Bc=e=>0===e.length?"":e.join(""),jc=e=>null==e?"":yc(e)||$c(e)&&e.toString===kc?JSON.stringify(e,null,2):String(e);function Nc(e,t){return e=Math.abs(e),2===t?e?e>1?1:0:1:e?Math.min(e,2):0}function Uc(e={}){const t=e.locale,n=function(e){const t=uc(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(uc(e.named.count)||uc(e.named.n))?uc(e.named.count)?e.named.count:uc(e.named.n)?e.named.n:t:t}(e),r=xc(e.pluralRules)&&wc(t)&&vc(e.pluralRules[t])?e.pluralRules[t]:Nc,o=xc(e.pluralRules)&&wc(t)&&vc(e.pluralRules[t])?Nc:void 0,s=e.list||[],i=e.named||{};uc(e.pluralIndex)&&function(e,t){t.count||(t.count=e),t.n||(t.n=e)}(n,i);function a(t){const n=vc(e.messages)?e.messages(t):!!xc(e.messages)&&e.messages[t];return n||(e.parent?e.parent.message(t):Fc)}const c=$c(e.processor)&&vc(e.processor.normalize)?e.processor.normalize:Bc,l=$c(e.processor)&&vc(e.processor.interpolate)?e.processor.interpolate:jc,u={list:e=>s[e],named:e=>i[e],plural:e=>e[r(n,e.length,o)],linked:(t,n)=>{const r=a(t)(u);return wc(n)?(t=>e.modifiers?e.modifiers[t]:Rc)(n)(r):r},message:a,type:$c(e.processor)&&wc(e.processor.type)?e.processor.type:"text",interpolate:l,normalize:c};return u}
| /*!
| * @intlify/message-compiler v9.1.9
| * (c) 2021 kazuya kawaguchi
| * Released under the MIT License.
| */function Hc(e,t,n={}){const{domain:r,messages:o,args:s}=n,i=new SyntaxError(String(e));return i.code=e,t&&(i.location=t),i.domain=r,i}
| /*!
| * @intlify/core-base v9.1.9
| * (c) 2021 kazuya kawaguchi
| * Released under the MIT License.
| */let Wc=0;function qc(e={}){const t=wc(e.version)?e.version:"9.1.9",n=wc(e.locale)?e.locale:"en-US",r=yc(e.fallbackLocale)||$c(e.fallbackLocale)||wc(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:n,o=$c(e.messages)?e.messages:{[n]:{}},s=$c(e.datetimeFormats)?e.datetimeFormats:{[n]:{}},i=$c(e.numberFormats)?e.numberFormats:{[n]:{}},a=pc({},e.modifiers||{},{upper:e=>wc(e)?e.toUpperCase():e,lower:e=>wc(e)?e.toLowerCase():e,capitalize:e=>wc(e)?`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`:e}),c=e.pluralRules||{},l=vc(e.missing)?e.missing:null,u=!bc(e.missingWarn)&&!fc(e.missingWarn)||e.missingWarn,f=!bc(e.fallbackWarn)&&!fc(e.fallbackWarn)||e.fallbackWarn,h=!!e.fallbackFormat,d=!!e.unresolving,p=vc(e.postTranslation)?e.postTranslation:null,g=$c(e.processor)?e.processor:null,m=!bc(e.warnHtmlMessage)||e.warnHtmlMessage,_=!!e.escapeParameter,y=vc(e.messageCompiler)?e.messageCompiler:void 0,v=vc(e.onWarn)?e.onWarn:dc,w=e,b=xc(w.__datetimeFormatters)?w.__datetimeFormatters:new Map,x=xc(w.__numberFormatters)?w.__numberFormatters:new Map,k=xc(w.__meta)?w.__meta:{};Wc++;return{version:t,cid:Wc,locale:n,fallbackLocale:r,messages:o,datetimeFormats:s,numberFormats:i,modifiers:a,pluralRules:c,missing:l,missingWarn:u,fallbackWarn:f,fallbackFormat:h,unresolving:d,postTranslation:p,processor:g,warnHtmlMessage:m,escapeParameter:_,messageCompiler:y,onWarn:v,__datetimeFormatters:b,__numberFormatters:x,__meta:k}}function zc(e,t,n,r,o){const{missing:s,onWarn:i}=e;if(null!==s){const r=s(e,n,t,o);return wc(r)?r:t}return t}function Kc(e,t,n){const r=e;r.__localeChainCache||(r.__localeChainCache=new Map);let o=r.__localeChainCache.get(n);if(!o){o=[];let e=[n];for(;yc(e);)e=Vc(o,e,t);const s=yc(t)?t:$c(t)?t.default?t.default:null:t;e=wc(s)?[s]:s,yc(e)&&Vc(o,e,!1),r.__localeChainCache.set(n,o)}return o}function Vc(e,t,n){let r=!0;for(let o=0;o<t.length&&bc(r);o++){const s=t[o];wc(s)&&(r=Jc(e,t[o],n))}return r}function Jc(e,t,n){let r;const o=t.split("-");do{r=Yc(e,o.join("-"),n),o.splice(-1,1)}while(o.length&&!0===r);return r}function Yc(e,t,n){let r=!1;if(!e.includes(t)&&(r=!0,t)){r="!"!==t[t.length-1];const o=t.replace(/!/g,"");e.push(o),(yc(n)||$c(n))&&n[o]&&(r=n[o])}return r}function Xc(e,t,n){e.__localeChainCache=new Map,Kc(e,n,t)}function Gc(e){return Hc(e,null,void 0)}const Qc=()=>"",Zc=e=>vc(e);function el(e,...t){const{fallbackFormat:n,postTranslation:r,unresolving:o,fallbackLocale:s,messages:i}=e,[a,c]=nl(...t),l=(bc(c.missingWarn)?c.missingWarn:e.missingWarn,bc(c.fallbackWarn)?c.fallbackWarn:e.fallbackWarn,bc(c.escapeParameter)?c.escapeParameter:e.escapeParameter),u=!!c.resolvedMessage,f=wc(c.default)||bc(c.default)?bc(c.default)?a:c.default:n?a:"",h=n||""!==f,d=wc(c.locale)?c.locale:e.locale;l&&function(e){yc(e.list)?e.list=e.list.map(e=>wc(e)?gc(e):e):xc(e.named)&&Object.keys(e.named).forEach(t=>{wc(e.named[t])&&(e.named[t]=gc(e.named[t]))})}(c);let[p,g,m]=u?[a,d,i[d]||{}]:function(e,t,n,r){const{messages:o,onWarn:s}=e,i=Kc(e,r,n);let a,c={},l=null;const u="translate";for(let f=0;f<i.length&&(a=i[f],c=o[a]||{},null===(l=Lc(c,t))&&(l=c[t]),!wc(l)&&!vc(l));f++){const n=zc(e,t,a,0,u);n!==t&&(l=n)}return[l,a,c]}(e,a,d,s),_=a;if(u||wc(p)||Zc(p)||h&&(p=f,_=p),!(u||(wc(p)||Zc(p))&&wc(g)))return o?-1:a;let y=!1;const v=Zc(p)?p:tl(e,a,g,p,_,()=>{y=!0});if(y)return p;const w=function(e,t,n,r){const{modifiers:o,pluralRules:s}=e,i=r=>{const o=Lc(n,r);if(wc(o)){let n=!1;const s=tl(e,r,t,o,r,()=>{n=!0});return n?Qc:s}return Zc(o)?o:Qc},a={locale:t,modifiers:o,pluralRules:s,messages:i};e.processor&&(a.processor=e.processor);r.list&&(a.list=r.list);r.named&&(a.named=r.named);uc(r.plural)&&(a.pluralIndex=r.plural);return a}(e,g,m,c),b=function(e,t,n){const r=t(n);return r}(0,v,Uc(w));return r?r(b):b}function tl(e,t,n,r,o,s){const{messageCompiler:i,warnHtmlMessage:a}=e;if(Zc(r)){const e=r;return e.locale=e.locale||n,e.key=e.key||t,e}const c=i(r,function(e,t,n,r,o,s){return{warnHtmlMessage:o,onError:e=>{throw s&&s(e),e},onCacheKey:e=>((e,t,n)=>lc({l:e,k:t,s:n}))(t,n,e)}}(0,n,o,0,a,s));return c.locale=n,c.key=t,c.source=r,c}function nl(...e){const[t,n,r]=e,o={};if(!wc(t)&&!uc(t)&&!Zc(t))throw Gc(14);const s=uc(t)?String(t):(Zc(t),t);return uc(n)?o.plural=n:wc(n)?o.default=n:$c(n)&&!hc(n)?o.named=n:yc(n)&&(o.list=n),uc(r)?o.plural=r:wc(r)?o.default=r:$c(r)&&pc(o,r),[s,o]}function rl(e,...t){const{datetimeFormats:n,unresolving:r,fallbackLocale:o,onWarn:s}=e,{__datetimeFormatters:i}=e,[a,c,l,u]=ol(...t);bc(l.missingWarn)?l.missingWarn:e.missingWarn;bc(l.fallbackWarn)?l.fallbackWarn:e.fallbackWarn;const f=!!l.part,h=wc(l.locale)?l.locale:e.locale,d=Kc(e,o,h);if(!wc(a)||""===a)return new Intl.DateTimeFormat(h).format(c);let p,g={},m=null;for(let v=0;v<d.length&&(p=d[v],g=n[p]||{},m=g[a],!$c(m));v++)zc(e,a,p,0,"datetime format");if(!$c(m)||!wc(p))return r?-1:a;let _=`${p}__${a}`;hc(u)||(_=`${_}__${JSON.stringify(u)}`);let y=i.get(_);return y||(y=new Intl.DateTimeFormat(p,pc({},m,u)),i.set(_,y)),f?y.formatToParts(c):y.format(c)}function ol(...e){const[t,n,r,o]=e;let s,i={},a={};if(wc(t)){if(!/\d{4}-\d{2}-\d{2}(T.*)?/.test(t))throw Gc(16);s=new Date(t);try{s.toISOString()}catch(yd){throw Gc(16)}}else if("[object Date]"===Sc(t)){if(isNaN(t.getTime()))throw Gc(15);s=t}else{if(!uc(t))throw Gc(14);s=t}return wc(n)?i.key=n:$c(n)&&(i=n),wc(r)?i.locale=r:$c(r)&&(a=r),$c(o)&&(a=o),[i.key||"",s,i,a]}function sl(e,t,n){const r=e;for(const o in n){const e=`${t}__${o}`;r.__datetimeFormatters.has(e)&&r.__datetimeFormatters.delete(e)}}function il(e,...t){const{numberFormats:n,unresolving:r,fallbackLocale:o,onWarn:s}=e,{__numberFormatters:i}=e,[a,c,l,u]=al(...t);bc(l.missingWarn)?l.missingWarn:e.missingWarn;bc(l.fallbackWarn)?l.fallbackWarn:e.fallbackWarn;const f=!!l.part,h=wc(l.locale)?l.locale:e.locale,d=Kc(e,o,h);if(!wc(a)||""===a)return new Intl.NumberFormat(h).format(c);let p,g={},m=null;for(let v=0;v<d.length&&(p=d[v],g=n[p]||{},m=g[a],!$c(m));v++)zc(e,a,p,0,"number format");if(!$c(m)||!wc(p))return r?-1:a;let _=`${p}__${a}`;hc(u)||(_=`${_}__${JSON.stringify(u)}`);let y=i.get(_);return y||(y=new Intl.NumberFormat(p,pc({},m,u)),i.set(_,y)),f?y.formatToParts(c):y.format(c)}function al(...e){const[t,n,r,o]=e;let s={},i={};if(!uc(t))throw Gc(14);const a=t;return wc(n)?s.key=n:$c(n)&&(s=n),wc(r)?s.locale=r:$c(r)&&(i=r),$c(o)&&(i=o),[s.key||"",a,s,i]}function cl(e,t,n){const r=e;for(const o in n){const e=`${t}__${o}`;r.__numberFormatters.has(e)&&r.__numberFormatters.delete(e)}}
| /*!
| * vue-i18n v9.1.9
| * (c) 2022 kazuya kawaguchi
| * Released under the MIT License.
| */function ll(e,...t){return Hc(e,null,void 0)}const ul=cc("__transrateVNode"),fl=cc("__datetimeParts"),hl=cc("__numberParts"),dl=cc("__setPluralRules"),pl=cc("__injectWithOption");let gl=0;function ml(e){return(t,n,r,o)=>e(n,r,zs()||void 0,o)}function _l(e,t){const{messages:n,__i18n:r}=t,o=$c(n)?n:yc(r)?{}:{[e]:{}};if(yc(r)&&r.forEach(({locale:e,resource:t})=>{e?(o[e]=o[e]||{},vl(t,o[e])):vl(t,o)}),t.flatJson)for(const s in o)_c(o,s)&&Dc(o[s]);return o}const yl=e=>!xc(e)||yc(e);function vl(e,t){if(yl(e)||yl(t))throw ll(20);for(const n in e)_c(e,n)&&(yl(e[n])||yl(t[n])?t[n]=e[n]:vl(e[n],t[n]))}function wl(e={}){const{__root:t}=e,n=void 0===t;let r=!bc(e.inheritLocale)||e.inheritLocale;const o=ro(t&&r?t.locale.value:wc(e.locale)?e.locale:"en-US"),s=ro(t&&r?t.fallbackLocale.value:wc(e.fallbackLocale)||yc(e.fallbackLocale)||$c(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:o.value),i=ro(_l(o.value,e)),a=ro($c(e.datetimeFormats)?e.datetimeFormats:{[o.value]:{}}),c=ro($c(e.numberFormats)?e.numberFormats:{[o.value]:{}});let l=t?t.missingWarn:!bc(e.missingWarn)&&!fc(e.missingWarn)||e.missingWarn,u=t?t.fallbackWarn:!bc(e.fallbackWarn)&&!fc(e.fallbackWarn)||e.fallbackWarn,f=t?t.fallbackRoot:!bc(e.fallbackRoot)||e.fallbackRoot,h=!!e.fallbackFormat,d=vc(e.missing)?e.missing:null,p=vc(e.missing)?ml(e.missing):null,g=vc(e.postTranslation)?e.postTranslation:null,m=!bc(e.warnHtmlMessage)||e.warnHtmlMessage,_=!!e.escapeParameter;const y=t?t.modifiers:$c(e.modifiers)?e.modifiers:{};let v,w=e.pluralRules||t&&t.pluralRules;v=qc({version:"9.1.9",locale:o.value,fallbackLocale:s.value,messages:i.value,messageCompiler:function(e){return t=>t.normalize([e])},datetimeFormats:a.value,numberFormats:c.value,modifiers:y,pluralRules:w,missing:null===p?void 0:p,missingWarn:l,fallbackWarn:u,fallbackFormat:h,unresolving:!0,postTranslation:null===g?void 0:g,warnHtmlMessage:m,escapeParameter:_,__datetimeFormatters:$c(v)?v.__datetimeFormatters:void 0,__numberFormatters:$c(v)?v.__numberFormatters:void 0,__v_emitter:$c(v)?v.__v_emitter:void 0,__meta:{framework:"vue"}}),Xc(v,o.value,s.value);const b=ti({get:()=>o.value,set:e=>{o.value=e,v.locale=o.value}}),x=ti({get:()=>s.value,set:e=>{s.value=e,v.fallbackLocale=s.value,Xc(v,o.value,e)}}),k=ti(()=>i.value),S=ti(()=>a.value),$=ti(()=>c.value);function I(e,n,r,l,u,h){let d;if(o.value,s.value,i.value,a.value,c.value,d=e(v),uc(d)&&-1===d){const[e,r]=n();return t&&f?l(t):u(e)}if(h(d))return d;throw ll(14)}function A(...e){return I(t=>el(t,...e),()=>nl(...e),0,t=>t.t(...e),e=>e,e=>wc(e))}const P={normalize:function(e){return e.map(e=>wc(e)?void 0:e)},interpolate:e=>e,type:"vnode"};function O(e){return i.value[e]||{}}gl++,t&&(Uo(t.locale,e=>{r&&(o.value=e,v.locale=e,Xc(v,o.value,s.value))}),Uo(t.fallbackLocale,e=>{r&&(s.value=e,v.fallbackLocale=e,Xc(v,o.value,s.value))}));return{id:gl,locale:b,fallbackLocale:x,get inheritLocale(){return r},set inheritLocale(e){r=e,e&&t&&(o.value=t.locale.value,s.value=t.fallbackLocale.value,Xc(v,o.value,s.value))},get availableLocales(){return Object.keys(i.value).sort()},messages:k,datetimeFormats:S,numberFormats:$,get modifiers(){return y},get pluralRules(){return w||{}},get isGlobal(){return n},get missingWarn(){return l},set missingWarn(e){l=e,v.missingWarn=l},get fallbackWarn(){return u},set fallbackWarn(e){u=e,v.fallbackWarn=u},get fallbackRoot(){return f},set fallbackRoot(e){f=e},get fallbackFormat(){return h},set fallbackFormat(e){h=e,v.fallbackFormat=h},get warnHtmlMessage(){return m},set warnHtmlMessage(e){m=e,v.warnHtmlMessage=e},get escapeParameter(){return _},set escapeParameter(e){_=e,v.escapeParameter=e},t:A,rt:function(...e){const[t,n,r]=e;if(r&&!xc(r))throw ll(15);return A(t,n,pc({resolvedMessage:!0},r||{}))},d:function(...e){return I(t=>rl(t,...e),()=>ol(...e),0,t=>t.d(...e),()=>"",e=>wc(e))},n:function(...e){return I(t=>il(t,...e),()=>al(...e),0,t=>t.n(...e),()=>"",e=>wc(e))},te:function(e,t){return null!==Lc(O(wc(t)?t:o.value),e)},tm:function(e){const n=function(e){let t=null;const n=Kc(v,s.value,o.value);for(let r=0;r<n.length;r++){const o=Lc(i.value[n[r]]||{},e);if(null!=o){t=o;break}}return t}(e);return null!=n?n:t&&t.tm(e)||{}},getLocaleMessage:O,setLocaleMessage:function(e,t){i.value[e]=t,v.messages=i.value},mergeLocaleMessage:function(e,t){i.value[e]=i.value[e]||{},vl(t,i.value[e]),v.messages=i.value},getDateTimeFormat:function(e){return a.value[e]||{}},setDateTimeFormat:function(e,t){a.value[e]=t,v.datetimeFormats=a.value,sl(v,e,t)},mergeDateTimeFormat:function(e,t){a.value[e]=pc(a.value[e]||{},t),v.datetimeFormats=a.value,sl(v,e,t)},getNumberFormat:function(e){return c.value[e]||{}},setNumberFormat:function(e,t){c.value[e]=t,v.numberFormats=c.value,cl(v,e,t)},mergeNumberFormat:function(e,t){c.value[e]=pc(c.value[e]||{},t),v.numberFormats=c.value,cl(v,e,t)},getPostTranslationHandler:function(){return vc(g)?g:null},setPostTranslationHandler:function(e){g=e,v.postTranslation=e},getMissingHandler:function(){return d},setMissingHandler:function(e){null!==e&&(p=ml(e)),d=e,v.missing=p},[ul]:function(...e){return I(t=>{let n;const r=t;try{r.processor=P,n=el(r,...e)}finally{r.processor=null}return n},()=>nl(...e),0,t=>t[ul](...e),e=>[void 0],e=>yc(e))},[hl]:function(...e){return I(t=>il(t,...e),()=>al(...e),0,t=>t[hl](...e),()=>[],e=>wc(e)||yc(e))},[fl]:function(...e){return I(t=>rl(t,...e),()=>ol(...e),0,t=>t[fl](...e),()=>[],e=>wc(e)||yc(e))},[dl]:function(e){w=e,v.pluralRules=w},[pl]:e.__injectWithOption}}function bl(e={}){const t=wl(function(e){const t=wc(e.locale)?e.locale:"en-US",n=wc(e.fallbackLocale)||yc(e.fallbackLocale)||$c(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:t,r=vc(e.missing)?e.missing:void 0,o=!bc(e.silentTranslationWarn)&&!fc(e.silentTranslationWarn)||!e.silentTranslationWarn,s=!bc(e.silentFallbackWarn)&&!fc(e.silentFallbackWarn)||!e.silentFallbackWarn,i=!bc(e.fallbackRoot)||e.fallbackRoot,a=!!e.formatFallbackMessages,c=$c(e.modifiers)?e.modifiers:{},l=e.pluralizationRules,u=vc(e.postTranslation)?e.postTranslation:void 0,f=!wc(e.warnHtmlInMessage)||"off"!==e.warnHtmlInMessage,h=!!e.escapeParameterHtml,d=!bc(e.sync)||e.sync;let p=e.messages;if($c(e.sharedMessages)){const t=e.sharedMessages;p=Object.keys(t).reduce((e,n)=>{const r=e[n]||(e[n]={});return pc(r,t[n]),e},p||{})}const{__i18n:g,__root:m,__injectWithOption:_}=e,y=e.datetimeFormats,v=e.numberFormats;return{locale:t,fallbackLocale:n,messages:p,flatJson:e.flatJson,datetimeFormats:y,numberFormats:v,missing:r,missingWarn:o,fallbackWarn:s,fallbackRoot:i,fallbackFormat:a,modifiers:c,pluralRules:l,postTranslation:u,warnHtmlMessage:f,escapeParameter:h,inheritLocale:d,__i18n:g,__root:m,__injectWithOption:_}}(e)),n={id:t.id,get locale(){return t.locale.value},set locale(e){t.locale.value=e},get fallbackLocale(){return t.fallbackLocale.value},set fallbackLocale(e){t.fallbackLocale.value=e},get messages(){return t.messages.value},get datetimeFormats(){return t.datetimeFormats.value},get numberFormats(){return t.numberFormats.value},get availableLocales(){return t.availableLocales},get formatter(){return{interpolate:()=>[]}},set formatter(e){},get missing(){return t.getMissingHandler()},set missing(e){t.setMissingHandler(e)},get silentTranslationWarn(){return bc(t.missingWarn)?!t.missingWarn:t.missingWarn},set silentTranslationWarn(e){t.missingWarn=bc(e)?!e:e},get silentFallbackWarn(){return bc(t.fallbackWarn)?!t.fallbackWarn:t.fallbackWarn},set silentFallbackWarn(e){t.fallbackWarn=bc(e)?!e:e},get modifiers(){return t.modifiers},get formatFallbackMessages(){return t.fallbackFormat},set formatFallbackMessages(e){t.fallbackFormat=e},get postTranslation(){return t.getPostTranslationHandler()},set postTranslation(e){t.setPostTranslationHandler(e)},get sync(){return t.inheritLocale},set sync(e){t.inheritLocale=e},get warnHtmlInMessage(){return t.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(e){t.warnHtmlMessage="off"!==e},get escapeParameterHtml(){return t.escapeParameter},set escapeParameterHtml(e){t.escapeParameter=e},get preserveDirectiveContent(){return!0},set preserveDirectiveContent(e){},get pluralizationRules(){return t.pluralRules||{}},__composer:t,t(...e){const[n,r,o]=e,s={};let i=null,a=null;if(!wc(n))throw ll(15);const c=n;return wc(r)?s.locale=r:yc(r)?i=r:$c(r)&&(a=r),yc(o)?i=o:$c(o)&&(a=o),t.t(c,i||a||{},s)},rt:(...e)=>t.rt(...e),tc(...e){const[n,r,o]=e,s={plural:1};let i=null,a=null;if(!wc(n))throw ll(15);const c=n;return wc(r)?s.locale=r:uc(r)?s.plural=r:yc(r)?i=r:$c(r)&&(a=r),wc(o)?s.locale=o:yc(o)?i=o:$c(o)&&(a=o),t.t(c,i||a||{},s)},te:(e,n)=>t.te(e,n),tm:e=>t.tm(e),getLocaleMessage:e=>t.getLocaleMessage(e),setLocaleMessage(e,n){t.setLocaleMessage(e,n)},mergeLocaleMessage(e,n){t.mergeLocaleMessage(e,n)},d:(...e)=>t.d(...e),getDateTimeFormat:e=>t.getDateTimeFormat(e),setDateTimeFormat(e,n){t.setDateTimeFormat(e,n)},mergeDateTimeFormat(e,n){t.mergeDateTimeFormat(e,n)},n:(...e)=>t.n(...e),getNumberFormat:e=>t.getNumberFormat(e),setNumberFormat(e,n){t.setNumberFormat(e,n)},mergeNumberFormat(e,n){t.mergeNumberFormat(e,n)},getChoiceIndex:(e,t)=>-1,__onComponentInstanceCreated(t){const{componentInstanceCreatedListener:r}=e;r&&r(t,n)}};return n}const xl={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>"parent"===e||"global"===e,default:"parent"},i18n:{type:Object}},kl={name:"i18n-t",props:pc({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>uc(e)||!isNaN(e)}},xl),setup(e,t){const{slots:n,attrs:r}=t,o=e.i18n||Cl({useScope:e.scope,__useComponent:!0}),s=Object.keys(n).filter(e=>"_"!==e);return()=>{const n={};e.locale&&(n.locale=e.locale),void 0!==e.plural&&(n.plural=wc(e.plural)?+e.plural:e.plural);const i=function({slots:e},t){return 1===t.length&&"default"===t[0]?e.default?e.default():[]:t.reduce((t,n)=>{const r=e[n];return r&&(t[n]=r()),t},{})}(t,s);return o[ul](e.keypath,i,n),pc({},r),wc(e.tag)||xc(e.tag)?Yi(e.tag):Yi(js)}}};function Sl(e,t,n,r){const{slots:o,attrs:s}=t;return()=>{const t={part:!0};let i={};e.locale&&(t.locale=e.locale),wc(e.format)?t.key=e.format:xc(e.format)&&(wc(e.format.key)&&(t.key=e.format.key),i=Object.keys(e.format).reduce((t,r)=>n.includes(r)?pc({},t,{[r]:e.format[r]}):t,{}));const a=r(e.value,t,i);return t.key,yc(a)&&a.map((e,t)=>{const n=o[e.type];return n?n({[e.type]:e.value,index:t,parts:a}):[e.value]}),pc({},s),wc(e.tag)||xc(e.tag)?Yi(e.tag):Yi(js)}}const $l=["localeMatcher","style","unit","unitDisplay","currency","currencyDisplay","useGrouping","numberingSystem","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","notation","formatMatcher"],Il={name:"i18n-n",props:pc({value:{type:Number,required:!0},format:{type:[String,Object]}},xl),setup(e,t){const n=e.i18n||Cl({useScope:"parent",__useComponent:!0});return Sl(e,t,$l,(...e)=>n[hl](...e))}},Al=["dateStyle","timeStyle","fractionalSecondDigits","calendar","dayPeriod","numberingSystem","localeMatcher","timeZone","hour12","hourCycle","formatMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName"],Pl={name:"i18n-d",props:pc({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},xl),setup(e,t){const n=e.i18n||Cl({useScope:"parent",__useComponent:!0});return Sl(e,t,Al,(...e)=>n[fl](...e))}};function Ol(e){const t=(t,{instance:n,value:r,modifiers:o})=>{if(!n||!n.$)throw ll(22);const s=function(e,t){const n=e;if("composition"===e.mode)return n.__getInstance(t)||e.global;{const r=n.__getInstance(t);return null!=r?r.__composer:e.global.__composer}}(e,n.$),i=function(e){if(wc(e))return{path:e};if($c(e)){if(!("path"in e))throw ll(19);return e}throw ll(20)}(r);t.textContent=s.t(...function(e){const{path:t,locale:n,args:r,choice:o,plural:s}=e,i={},a=r||{};wc(n)&&(i.locale=n);uc(o)&&(i.plural=o);uc(s)&&(i.plural=s);return[t,a,i]}(i))};return{beforeMount:t,beforeUpdate:t}}function Tl(e,t){e.locale=t.locale||e.locale,e.fallbackLocale=t.fallbackLocale||e.fallbackLocale,e.missing=t.missing||e.missing,e.silentTranslationWarn=t.silentTranslationWarn||e.silentFallbackWarn,e.silentFallbackWarn=t.silentFallbackWarn||e.silentFallbackWarn,e.formatFallbackMessages=t.formatFallbackMessages||e.formatFallbackMessages,e.postTranslation=t.postTranslation||e.postTranslation,e.warnHtmlInMessage=t.warnHtmlInMessage||e.warnHtmlInMessage,e.escapeParameterHtml=t.escapeParameterHtml||e.escapeParameterHtml,e.sync=t.sync||e.sync,e.__composer[dl](t.pluralizationRules||e.pluralizationRules);const n=_l(e.locale,{messages:t.messages,__i18n:t.__i18n});return Object.keys(n).forEach(t=>e.mergeLocaleMessage(t,n[t])),t.datetimeFormats&&Object.keys(t.datetimeFormats).forEach(n=>e.mergeDateTimeFormat(n,t.datetimeFormats[n])),t.numberFormats&&Object.keys(t.numberFormats).forEach(n=>e.mergeNumberFormat(n,t.numberFormats[n])),e}function Cl(e={}){const t=zs();if(null==t)throw ll(16);if(!t.appContext.app.__VUE_I18N_SYMBOL__)throw ll(17);const n=Yo(t.appContext.app.__VUE_I18N_SYMBOL__);if(!n)throw ll(22);const r="composition"===n.mode?n.global:n.global.__composer,o=hc(e)?"__i18n"in t.type?"local":"global":e.useScope?e.useScope:"local";if("global"===o){let n=xc(e.messages)?e.messages:{};"__i18nGlobal"in t.type&&(n=_l(r.locale.value,{messages:n,__i18n:t.type.__i18nGlobal}));const o=Object.keys(n);if(o.length&&o.forEach(e=>{r.mergeLocaleMessage(e,n[e])}),xc(e.datetimeFormats)){const t=Object.keys(e.datetimeFormats);t.length&&t.forEach(t=>{r.mergeDateTimeFormat(t,e.datetimeFormats[t])})}if(xc(e.numberFormats)){const t=Object.keys(e.numberFormats);t.length&&t.forEach(t=>{r.mergeNumberFormat(t,e.numberFormats[t])})}return r}if("parent"===o){let o=function(e,t,n=!1){let r=null;const o=t.root;let s=t.parent;for(;null!=s;){const t=e;if("composition"===e.mode)r=t.__getInstance(s);else{const e=t.__getInstance(s);null!=e&&(r=e.__composer),n&&r&&!r[pl]&&(r=null)}if(null!=r)break;if(o===s)break;s=s.parent}return r}(n,t,e.__useComponent);return null==o&&(o=r),o}if("legacy"===n.mode)throw ll(18);const s=n;let i=s.__getInstance(t);if(null==i){const n=t.type,o=pc({},e);n.__i18n&&(o.__i18n=n.__i18n),r&&(o.__root=r),i=wl(o),function(e,t){os(()=>{},t),cs(()=>{e.__deleteInstance(t)},t)}(s,t),s.__setInstance(t,i)}return i}const Ml=["locale","fallbackLocale","availableLocales"],El=["t","rt","d","n","tm"];var Ll="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function Dl(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Rl(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var n=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})}),n}var Fl={exports:{}};var Bl={exports:{}};const jl=Rl(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var Nl;function Ul(){return Nl||(Nl=1,Bl.exports=(e=e||function(e,t){var n;if("undefined"!=typeof window&&window.crypto&&(n=window.crypto),"undefined"!=typeof self&&self.crypto&&(n=self.crypto),"undefined"!=typeof globalThis&&globalThis.crypto&&(n=globalThis.crypto),!n&&"undefined"!=typeof window&&window.msCrypto&&(n=window.msCrypto),!n&&void 0!==Ll&&Ll.crypto&&(n=Ll.crypto),!n)try{n=jl}catch(g){}var r=function(){if(n){if("function"==typeof n.getRandomValues)try{return n.getRandomValues(new Uint32Array(1))[0]}catch(g){}if("function"==typeof n.randomBytes)try{return n.randomBytes(4).readInt32LE()}catch(g){}}throw new Error("Native crypto module could not be used to get secure random number.")},o=Object.create||function(){function e(){}return function(t){var n;return e.prototype=t,n=new e,e.prototype=null,n}}(),s={},i=s.lib={},a=i.Base=function(){return{extend:function(e){var t=o(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=i.WordArray=a.extend({init:function(e,n){e=this.words=e||[],this.sigBytes=n!=t?n:4*e.length},toString:function(e){return(e||u).stringify(this)},concat:function(e){var t=this.words,n=e.words,r=this.sigBytes,o=e.sigBytes;if(this.clamp(),r%4)for(var s=0;s<o;s++){var i=n[s>>>2]>>>24-s%4*8&255;t[r+s>>>2]|=i<<24-(r+s)%4*8}else for(var a=0;a<o;a+=4)t[r+a>>>2]=n[a>>>2];return this.sigBytes+=o,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=a.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(r());return new c.init(t,e)}}),l=s.enc={},u=l.Hex={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],o=0;o<n;o++){var s=t[o>>>2]>>>24-o%4*8&255;r.push((s>>>4).toString(16)),r.push((15&s).toString(16))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r<t;r+=2)n[r>>>3]|=parseInt(e.substr(r,2),16)<<24-r%8*4;return new c.init(n,t/2)}},f=l.Latin1={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],o=0;o<n;o++){var s=t[o>>>2]>>>24-o%4*8&255;r.push(String.fromCharCode(s))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r<t;r++)n[r>>>2]|=(255&e.charCodeAt(r))<<24-r%4*8;return new c.init(n,t)}},h=l.Utf8={stringify:function(e){try{return decodeURIComponent(escape(f.stringify(e)))}catch(yd){throw new Error("Malformed UTF-8 data")}},parse:function(e){return f.parse(unescape(encodeURIComponent(e)))}},d=i.BufferedBlockAlgorithm=a.extend({reset:function(){this._data=new c.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=h.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var n,r=this._data,o=r.words,s=r.sigBytes,i=this.blockSize,a=s/(4*i),l=(a=t?e.ceil(a):e.max((0|a)-this._minBufferSize,0))*i,u=e.min(4*l,s);if(l){for(var f=0;f<l;f+=i)this._doProcessBlock(o,f);n=o.splice(0,l),r.sigBytes-=u}return new c.init(n,u)},clone:function(){var e=a.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0});i.Hasher=d.extend({cfg:a.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 p.HMAC.init(e,n).finalize(t)}}});var p=s.algo={};return s}(Math),e)),Bl.exports;var e}var Hl,Wl={exports:{}};function ql(){return Hl?Wl.exports:(Hl=1,Wl.exports=(i=Ul(),n=(t=i).lib,r=n.Base,o=n.WordArray,(s=t.x64={}).Word=r.extend({init:function(e,t){this.high=e,this.low=t}}),s.WordArray=r.extend({init:function(t,n){t=this.words=t||[],this.sigBytes=n!=e?n:8*t.length},toX32:function(){for(var e=this.words,t=e.length,n=[],r=0;r<t;r++){var s=e[r];n.push(s.high),n.push(s.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,o=0;o<n;o++)t[o]=t[o].clone();return e}}),i));var e,t,n,r,o,s,i}var zl,Kl={exports:{}};function Vl(){return zl||(zl=1,Kl.exports=(e=Ul(),function(){if("function"==typeof ArrayBuffer){var t=e.lib.WordArray,n=t.init,r=t.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 t=e.byteLength,r=[],o=0;o<t;o++)r[o>>>2]|=e[o]<<24-o%4*8;n.call(this,r,t)}else n.apply(this,arguments)};r.prototype=t}}(),e.lib.WordArray)),Kl.exports;var e}var Jl,Yl={exports:{}};function Xl(){return Jl?Yl.exports:(Jl=1,Yl.exports=(e=Ul(),function(){var t=e,n=t.lib.WordArray,r=t.enc;function o(e){return e<<8&4278255360|e>>>8&16711935}r.Utf16=r.Utf16BE={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],o=0;o<n;o+=2){var s=t[o>>>2]>>>16-o%4*8&65535;r.push(String.fromCharCode(s))}return r.join("")},parse:function(e){for(var t=e.length,r=[],o=0;o<t;o++)r[o>>>1]|=e.charCodeAt(o)<<16-o%2*16;return n.create(r,2*t)}},r.Utf16LE={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],s=0;s<n;s+=2){var i=o(t[s>>>2]>>>16-s%4*8&65535);r.push(String.fromCharCode(i))}return r.join("")},parse:function(e){for(var t=e.length,r=[],s=0;s<t;s++)r[s>>>1]|=o(e.charCodeAt(s)<<16-s%2*16);return n.create(r,2*t)}}}(),e.enc.Utf16));var e}var Gl,Ql={exports:{}};function Zl(){return Gl?Ql.exports:(Gl=1,Ql.exports=(e=Ul(),function(){var t=e,n=t.lib.WordArray;function r(e,t,r){for(var o=[],s=0,i=0;i<t;i++)if(i%4){var a=r[e.charCodeAt(i-1)]<<i%4*2|r[e.charCodeAt(i)]>>>6-i%4*2;o[s>>>2]|=a<<24-s%4*8,s++}return n.create(o,s)}t.enc.Base64={stringify:function(e){var t=e.words,n=e.sigBytes,r=this._map;e.clamp();for(var o=[],s=0;s<n;s+=3)for(var i=(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,a=0;a<4&&s+.75*a<n;a++)o.push(r.charAt(i>>>6*(3-a)&63));var c=r.charAt(64);if(c)for(;o.length%4;)o.push(c);return o.join("")},parse:function(e){var t=e.length,n=this._map,o=this._reverseMap;if(!o){o=this._reverseMap=[];for(var s=0;s<n.length;s++)o[n.charCodeAt(s)]=s}var i=n.charAt(64);if(i){var a=e.indexOf(i);-1!==a&&(t=a)}return r(e,t,o)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),e.enc.Base64));var e}var eu,tu={exports:{}};function nu(){return eu?tu.exports:(eu=1,tu.exports=(e=Ul(),function(){var t=e,n=t.lib.WordArray;function r(e,t,r){for(var o=[],s=0,i=0;i<t;i++)if(i%4){var a=r[e.charCodeAt(i-1)]<<i%4*2|r[e.charCodeAt(i)]>>>6-i%4*2;o[s>>>2]|=a<<24-s%4*8,s++}return n.create(o,s)}t.enc.Base64url={stringify:function(e,t){void 0===t&&(t=!0);var n=e.words,r=e.sigBytes,o=t?this._safe_map:this._map;e.clamp();for(var s=[],i=0;i<r;i+=3)for(var a=(n[i>>>2]>>>24-i%4*8&255)<<16|(n[i+1>>>2]>>>24-(i+1)%4*8&255)<<8|n[i+2>>>2]>>>24-(i+2)%4*8&255,c=0;c<4&&i+.75*c<r;c++)s.push(o.charAt(a>>>6*(3-c)&63));var l=o.charAt(64);if(l)for(;s.length%4;)s.push(l);return s.join("")},parse:function(e,t){void 0===t&&(t=!0);var n=e.length,o=t?this._safe_map:this._map,s=this._reverseMap;if(!s){s=this._reverseMap=[];for(var i=0;i<o.length;i++)s[o.charCodeAt(i)]=i}var a=o.charAt(64);if(a){var c=e.indexOf(a);-1!==c&&(n=c)}return r(e,n,s)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"}}(),e.enc.Base64url));var e}var ru,ou={exports:{}};function su(){return ru?ou.exports:(ru=1,ou.exports=(e=Ul(),function(t){var n=e,r=n.lib,o=r.WordArray,s=r.Hasher,i=n.algo,a=[];!function(){for(var e=0;e<64;e++)a[e]=4294967296*t.abs(t.sin(e+1))|0}();var c=i.MD5=s.extend({_doReset:function(){this._hash=new o.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(e,t){for(var n=0;n<16;n++){var r=t+n,o=e[r];e[r]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8)}var s=this._hash.words,i=e[t+0],c=e[t+1],d=e[t+2],p=e[t+3],g=e[t+4],m=e[t+5],_=e[t+6],y=e[t+7],v=e[t+8],w=e[t+9],b=e[t+10],x=e[t+11],k=e[t+12],S=e[t+13],$=e[t+14],I=e[t+15],A=s[0],P=s[1],O=s[2],T=s[3];A=l(A,P,O,T,i,7,a[0]),T=l(T,A,P,O,c,12,a[1]),O=l(O,T,A,P,d,17,a[2]),P=l(P,O,T,A,p,22,a[3]),A=l(A,P,O,T,g,7,a[4]),T=l(T,A,P,O,m,12,a[5]),O=l(O,T,A,P,_,17,a[6]),P=l(P,O,T,A,y,22,a[7]),A=l(A,P,O,T,v,7,a[8]),T=l(T,A,P,O,w,12,a[9]),O=l(O,T,A,P,b,17,a[10]),P=l(P,O,T,A,x,22,a[11]),A=l(A,P,O,T,k,7,a[12]),T=l(T,A,P,O,S,12,a[13]),O=l(O,T,A,P,$,17,a[14]),A=u(A,P=l(P,O,T,A,I,22,a[15]),O,T,c,5,a[16]),T=u(T,A,P,O,_,9,a[17]),O=u(O,T,A,P,x,14,a[18]),P=u(P,O,T,A,i,20,a[19]),A=u(A,P,O,T,m,5,a[20]),T=u(T,A,P,O,b,9,a[21]),O=u(O,T,A,P,I,14,a[22]),P=u(P,O,T,A,g,20,a[23]),A=u(A,P,O,T,w,5,a[24]),T=u(T,A,P,O,$,9,a[25]),O=u(O,T,A,P,p,14,a[26]),P=u(P,O,T,A,v,20,a[27]),A=u(A,P,O,T,S,5,a[28]),T=u(T,A,P,O,d,9,a[29]),O=u(O,T,A,P,y,14,a[30]),A=f(A,P=u(P,O,T,A,k,20,a[31]),O,T,m,4,a[32]),T=f(T,A,P,O,v,11,a[33]),O=f(O,T,A,P,x,16,a[34]),P=f(P,O,T,A,$,23,a[35]),A=f(A,P,O,T,c,4,a[36]),T=f(T,A,P,O,g,11,a[37]),O=f(O,T,A,P,y,16,a[38]),P=f(P,O,T,A,b,23,a[39]),A=f(A,P,O,T,S,4,a[40]),T=f(T,A,P,O,i,11,a[41]),O=f(O,T,A,P,p,16,a[42]),P=f(P,O,T,A,_,23,a[43]),A=f(A,P,O,T,w,4,a[44]),T=f(T,A,P,O,k,11,a[45]),O=f(O,T,A,P,I,16,a[46]),A=h(A,P=f(P,O,T,A,d,23,a[47]),O,T,i,6,a[48]),T=h(T,A,P,O,y,10,a[49]),O=h(O,T,A,P,$,15,a[50]),P=h(P,O,T,A,m,21,a[51]),A=h(A,P,O,T,k,6,a[52]),T=h(T,A,P,O,p,10,a[53]),O=h(O,T,A,P,b,15,a[54]),P=h(P,O,T,A,c,21,a[55]),A=h(A,P,O,T,v,6,a[56]),T=h(T,A,P,O,I,10,a[57]),O=h(O,T,A,P,_,15,a[58]),P=h(P,O,T,A,S,21,a[59]),A=h(A,P,O,T,g,6,a[60]),T=h(T,A,P,O,x,10,a[61]),O=h(O,T,A,P,d,15,a[62]),P=h(P,O,T,A,w,21,a[63]),s[0]=s[0]+A|0,s[1]=s[1]+P|0,s[2]=s[2]+O|0,s[3]=s[3]+T|0},_doFinalize:function(){var e=this._data,n=e.words,r=8*this._nDataBytes,o=8*e.sigBytes;n[o>>>5]|=128<<24-o%32;var s=t.floor(r/4294967296),i=r;n[15+(o+64>>>9<<4)]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),n[14+(o+64>>>9<<4)]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8),e.sigBytes=4*(n.length+1),this._process();for(var a=this._hash,c=a.words,l=0;l<4;l++){var u=c[l];c[l]=16711935&(u<<8|u>>>24)|4278255360&(u<<24|u>>>8)}return a},clone:function(){var e=s.clone.call(this);return e._hash=this._hash.clone(),e}});function l(e,t,n,r,o,s,i){var a=e+(t&n|~t&r)+o+i;return(a<<s|a>>>32-s)+t}function u(e,t,n,r,o,s,i){var a=e+(t&r|n&~r)+o+i;return(a<<s|a>>>32-s)+t}function f(e,t,n,r,o,s,i){var a=e+(t^n^r)+o+i;return(a<<s|a>>>32-s)+t}function h(e,t,n,r,o,s,i){var a=e+(n^(t|~r))+o+i;return(a<<s|a>>>32-s)+t}n.MD5=s._createHelper(c),n.HmacMD5=s._createHmacHelper(c)}(Math),e.MD5));var e}var iu,au={exports:{}};function cu(){return iu?au.exports:(iu=1,au.exports=(a=Ul(),t=(e=a).lib,n=t.WordArray,r=t.Hasher,o=e.algo,s=[],i=o.SHA1=r.extend({_doReset:function(){this._hash=new n.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],o=n[1],i=n[2],a=n[3],c=n[4],l=0;l<80;l++){if(l<16)s[l]=0|e[t+l];else{var u=s[l-3]^s[l-8]^s[l-14]^s[l-16];s[l]=u<<1|u>>>31}var f=(r<<5|r>>>27)+c+s[l];f+=l<20?1518500249+(o&i|~o&a):l<40?1859775393+(o^i^a):l<60?(o&i|o&a|i&a)-1894007588:(o^i^a)-899497514,c=a,a=i,i=o<<30|o>>>2,o=r,r=f}n[0]=n[0]+r|0,n[1]=n[1]+o|0,n[2]=n[2]+i|0,n[3]=n[3]+a|0,n[4]=n[4]+c|0},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;return t[r>>>5]|=128<<24-r%32,t[14+(r+64>>>9<<4)]=Math.floor(n/4294967296),t[15+(r+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}}),e.SHA1=r._createHelper(i),e.HmacSHA1=r._createHmacHelper(i),a.SHA1));var e,t,n,r,o,s,i,a}var lu,uu={exports:{}};function fu(){return lu?uu.exports:(lu=1,uu.exports=(e=Ul(),function(t){var n=e,r=n.lib,o=r.WordArray,s=r.Hasher,i=n.algo,a=[],c=[];!function(){function e(e){for(var n=t.sqrt(e),r=2;r<=n;r++)if(!(e%r))return!1;return!0}function n(e){return 4294967296*(e-(0|e))|0}for(var r=2,o=0;o<64;)e(r)&&(o<8&&(a[o]=n(t.pow(r,.5))),c[o]=n(t.pow(r,1/3)),o++),r++}();var l=[],u=i.SHA256=s.extend({_doReset:function(){this._hash=new o.init(a.slice(0))},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],o=n[1],s=n[2],i=n[3],a=n[4],u=n[5],f=n[6],h=n[7],d=0;d<64;d++){if(d<16)l[d]=0|e[t+d];else{var p=l[d-15],g=(p<<25|p>>>7)^(p<<14|p>>>18)^p>>>3,m=l[d-2],_=(m<<15|m>>>17)^(m<<13|m>>>19)^m>>>10;l[d]=g+l[d-7]+_+l[d-16]}var y=r&o^r&s^o&s,v=(r<<30|r>>>2)^(r<<19|r>>>13)^(r<<10|r>>>22),w=h+((a<<26|a>>>6)^(a<<21|a>>>11)^(a<<7|a>>>25))+(a&u^~a&f)+c[d]+l[d];h=f,f=u,u=a,a=i+w|0,i=s,s=o,o=r,r=w+(v+y)|0}n[0]=n[0]+r|0,n[1]=n[1]+o|0,n[2]=n[2]+s|0,n[3]=n[3]+i|0,n[4]=n[4]+a|0,n[5]=n[5]+u|0,n[6]=n[6]+f|0,n[7]=n[7]+h|0},_doFinalize:function(){var e=this._data,n=e.words,r=8*this._nDataBytes,o=8*e.sigBytes;return n[o>>>5]|=128<<24-o%32,n[14+(o+64>>>9<<4)]=t.floor(r/4294967296),n[15+(o+64>>>9<<4)]=r,e.sigBytes=4*n.length,this._process(),this._hash},clone:function(){var e=s.clone.call(this);return e._hash=this._hash.clone(),e}});n.SHA256=s._createHelper(u),n.HmacSHA256=s._createHmacHelper(u)}(Math),e.SHA256));var e}var hu,du={exports:{}};var pu,gu={exports:{}};function mu(){return pu||(pu=1,gu.exports=(e=Ul(),ql(),function(){var t=e,n=t.lib.Hasher,r=t.x64,o=r.Word,s=r.WordArray,i=t.algo;function a(){return o.create.apply(o,arguments)}var c=[a(1116352408,3609767458),a(1899447441,602891725),a(3049323471,3964484399),a(3921009573,2173295548),a(961987163,4081628472),a(1508970993,3053834265),a(2453635748,2937671579),a(2870763221,3664609560),a(3624381080,2734883394),a(310598401,1164996542),a(607225278,1323610764),a(1426881987,3590304994),a(1925078388,4068182383),a(2162078206,991336113),a(2614888103,633803317),a(3248222580,3479774868),a(3835390401,2666613458),a(4022224774,944711139),a(264347078,2341262773),a(604807628,2007800933),a(770255983,1495990901),a(1249150122,1856431235),a(1555081692,3175218132),a(1996064986,2198950837),a(2554220882,3999719339),a(2821834349,766784016),a(2952996808,2566594879),a(3210313671,3203337956),a(3336571891,1034457026),a(3584528711,2466948901),a(113926993,3758326383),a(338241895,168717936),a(666307205,1188179964),a(773529912,1546045734),a(1294757372,1522805485),a(1396182291,2643833823),a(1695183700,2343527390),a(1986661051,1014477480),a(2177026350,1206759142),a(2456956037,344077627),a(2730485921,1290863460),a(2820302411,3158454273),a(3259730800,3505952657),a(3345764771,106217008),a(3516065817,3606008344),a(3600352804,1432725776),a(4094571909,1467031594),a(275423344,851169720),a(430227734,3100823752),a(506948616,1363258195),a(659060556,3750685593),a(883997877,3785050280),a(958139571,3318307427),a(1322822218,3812723403),a(1537002063,2003034995),a(1747873779,3602036899),a(1955562222,1575990012),a(2024104815,1125592928),a(2227730452,2716904306),a(2361852424,442776044),a(2428436474,593698344),a(2756734187,3733110249),a(3204031479,2999351573),a(3329325298,3815920427),a(3391569614,3928383900),a(3515267271,566280711),a(3940187606,3454069534),a(4118630271,4000239992),a(116418474,1914138554),a(174292421,2731055270),a(289380356,3203993006),a(460393269,320620315),a(685471733,587496836),a(852142971,1086792851),a(1017036298,365543100),a(1126000580,2618297676),a(1288033470,3409855158),a(1501505948,4234509866),a(1607167915,987167468),a(1816402316,1246189591)],l=[];!function(){for(var e=0;e<80;e++)l[e]=a()}();var u=i.SHA512=n.extend({_doReset:function(){this._hash=new s.init([new o.init(1779033703,4089235720),new o.init(3144134277,2227873595),new o.init(1013904242,4271175723),new o.init(2773480762,1595750129),new o.init(1359893119,2917565137),new o.init(2600822924,725511199),new o.init(528734635,4215389547),new o.init(1541459225,327033209)])},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],o=n[1],s=n[2],i=n[3],a=n[4],u=n[5],f=n[6],h=n[7],d=r.high,p=r.low,g=o.high,m=o.low,_=s.high,y=s.low,v=i.high,w=i.low,b=a.high,x=a.low,k=u.high,S=u.low,$=f.high,I=f.low,A=h.high,P=h.low,O=d,T=p,C=g,M=m,E=_,L=y,D=v,R=w,F=b,B=x,j=k,N=S,U=$,H=I,W=A,q=P,z=0;z<80;z++){var K,V,J=l[z];if(z<16)V=J.high=0|e[t+2*z],K=J.low=0|e[t+2*z+1];else{var Y=l[z-15],X=Y.high,G=Y.low,Q=(X>>>1|G<<31)^(X>>>8|G<<24)^X>>>7,Z=(G>>>1|X<<31)^(G>>>8|X<<24)^(G>>>7|X<<25),ee=l[z-2],te=ee.high,ne=ee.low,re=(te>>>19|ne<<13)^(te<<3|ne>>>29)^te>>>6,oe=(ne>>>19|te<<13)^(ne<<3|te>>>29)^(ne>>>6|te<<26),se=l[z-7],ie=se.high,ae=se.low,ce=l[z-16],le=ce.high,ue=ce.low;V=(V=(V=Q+ie+((K=Z+ae)>>>0<Z>>>0?1:0))+re+((K+=oe)>>>0<oe>>>0?1:0))+le+((K+=ue)>>>0<ue>>>0?1:0),J.high=V,J.low=K}var fe,he=F&j^~F&U,de=B&N^~B&H,pe=O&C^O&E^C&E,ge=T&M^T&L^M&L,me=(O>>>28|T<<4)^(O<<30|T>>>2)^(O<<25|T>>>7),_e=(T>>>28|O<<4)^(T<<30|O>>>2)^(T<<25|O>>>7),ye=(F>>>14|B<<18)^(F>>>18|B<<14)^(F<<23|B>>>9),ve=(B>>>14|F<<18)^(B>>>18|F<<14)^(B<<23|F>>>9),we=c[z],be=we.high,xe=we.low,ke=W+ye+((fe=q+ve)>>>0<q>>>0?1:0),Se=_e+ge;W=U,q=H,U=j,H=N,j=F,N=B,F=D+(ke=(ke=(ke=ke+he+((fe+=de)>>>0<de>>>0?1:0))+be+((fe+=xe)>>>0<xe>>>0?1:0))+V+((fe+=K)>>>0<K>>>0?1:0))+((B=R+fe|0)>>>0<R>>>0?1:0)|0,D=E,R=L,E=C,L=M,C=O,M=T,O=ke+(me+pe+(Se>>>0<_e>>>0?1:0))+((T=fe+Se|0)>>>0<fe>>>0?1:0)|0}p=r.low=p+T,r.high=d+O+(p>>>0<T>>>0?1:0),m=o.low=m+M,o.high=g+C+(m>>>0<M>>>0?1:0),y=s.low=y+L,s.high=_+E+(y>>>0<L>>>0?1:0),w=i.low=w+R,i.high=v+D+(w>>>0<R>>>0?1:0),x=a.low=x+B,a.high=b+F+(x>>>0<B>>>0?1:0),S=u.low=S+N,u.high=k+j+(S>>>0<N>>>0?1:0),I=f.low=I+H,f.high=$+U+(I>>>0<H>>>0?1:0),P=h.low=P+q,h.high=A+W+(P>>>0<q>>>0?1:0)},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;return t[r>>>5]|=128<<24-r%32,t[30+(r+128>>>10<<5)]=Math.floor(n/4294967296),t[31+(r+128>>>10<<5)]=n,e.sigBytes=4*t.length,this._process(),this._hash.toX32()},clone:function(){var e=n.clone.call(this);return e._hash=this._hash.clone(),e},blockSize:32});t.SHA512=n._createHelper(u),t.HmacSHA512=n._createHmacHelper(u)}(),e.SHA512)),gu.exports;var e}var _u,yu={exports:{}};var vu,wu={exports:{}};function bu(){return vu?wu.exports:(vu=1,wu.exports=(e=Ul(),ql(),function(t){var n=e,r=n.lib,o=r.WordArray,s=r.Hasher,i=n.x64.Word,a=n.algo,c=[],l=[],u=[];!function(){for(var e=1,t=0,n=0;n<24;n++){c[e+5*t]=(n+1)*(n+2)/2%64;var r=(2*e+3*t)%5;e=t%5,t=r}for(e=0;e<5;e++)for(t=0;t<5;t++)l[e+5*t]=t+(2*e+3*t)%5*5;for(var o=1,s=0;s<24;s++){for(var a=0,f=0,h=0;h<7;h++){if(1&o){var d=(1<<h)-1;d<32?f^=1<<d:a^=1<<d-32}128&o?o=o<<1^113:o<<=1}u[s]=i.create(a,f)}}();var f=[];!function(){for(var e=0;e<25;e++)f[e]=i.create()}();var h=a.SHA3=s.extend({cfg:s.cfg.extend({outputLength:512}),_doReset:function(){for(var e=this._state=[],t=0;t<25;t++)e[t]=new i.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(e,t){for(var n=this._state,r=this.blockSize/2,o=0;o<r;o++){var s=e[t+2*o],i=e[t+2*o+1];s=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),i=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8),(P=n[o]).high^=i,P.low^=s}for(var a=0;a<24;a++){for(var h=0;h<5;h++){for(var d=0,p=0,g=0;g<5;g++)d^=(P=n[h+5*g]).high,p^=P.low;var m=f[h];m.high=d,m.low=p}for(h=0;h<5;h++){var _=f[(h+4)%5],y=f[(h+1)%5],v=y.high,w=y.low;for(d=_.high^(v<<1|w>>>31),p=_.low^(w<<1|v>>>31),g=0;g<5;g++)(P=n[h+5*g]).high^=d,P.low^=p}for(var b=1;b<25;b++){var x=(P=n[b]).high,k=P.low,S=c[b];S<32?(d=x<<S|k>>>32-S,p=k<<S|x>>>32-S):(d=k<<S-32|x>>>64-S,p=x<<S-32|k>>>64-S);var $=f[l[b]];$.high=d,$.low=p}var I=f[0],A=n[0];for(I.high=A.high,I.low=A.low,h=0;h<5;h++)for(g=0;g<5;g++){var P=n[b=h+5*g],O=f[b],T=f[(h+1)%5+5*g],C=f[(h+2)%5+5*g];P.high=O.high^~T.high&C.high,P.low=O.low^~T.low&C.low}P=n[0];var M=u[a];P.high^=M.high,P.low^=M.low}},_doFinalize:function(){var e=this._data,n=e.words;this._nDataBytes;var r=8*e.sigBytes,s=32*this.blockSize;n[r>>>5]|=1<<24-r%32,n[(t.ceil((r+1)/s)*s>>>5)-1]|=128,e.sigBytes=4*n.length,this._process();for(var i=this._state,a=this.cfg.outputLength/8,c=a/8,l=[],u=0;u<c;u++){var f=i[u],h=f.high,d=f.low;h=16711935&(h<<8|h>>>24)|4278255360&(h<<24|h>>>8),d=16711935&(d<<8|d>>>24)|4278255360&(d<<24|d>>>8),l.push(d),l.push(h)}return new o.init(l,a)},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}});n.SHA3=s._createHelper(h),n.HmacSHA3=s._createHmacHelper(h)}(Math),e.SHA3));var e}var xu,ku={exports:{}};var Su,$u={exports:{}};function Iu(){return Su?$u.exports:(Su=1,$u.exports=(e=Ul(),n=(t=e).lib.Base,r=t.enc.Utf8,void(t.algo.HMAC=n.extend({init:function(e,t){e=this._hasher=new e.init,"string"==typeof t&&(t=r.parse(t));var n=e.blockSize,o=4*n;t.sigBytes>o&&(t=e.finalize(t)),t.clamp();for(var s=this._oKey=t.clone(),i=this._iKey=t.clone(),a=s.words,c=i.words,l=0;l<n;l++)a[l]^=1549556828,c[l]^=909522486;s.sigBytes=i.sigBytes=o,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))}}))));var e,t,n,r}var Au,Pu={exports:{}};var Ou,Tu={exports:{}};function Cu(){return Ou?Tu.exports:(Ou=1,Tu.exports=(a=Ul(),cu(),Iu(),t=(e=a).lib,n=t.Base,r=t.WordArray,o=e.algo,s=o.MD5,i=o.EvpKDF=n.extend({cfg:n.extend({keySize:4,hasher:s,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var n,o=this.cfg,s=o.hasher.create(),i=r.create(),a=i.words,c=o.keySize,l=o.iterations;a.length<c;){n&&s.update(n),n=s.update(e).finalize(t),s.reset();for(var u=1;u<l;u++)n=s.finalize(n),s.reset();i.concat(n)}return i.sigBytes=4*c,i}}),e.EvpKDF=function(e,t,n){return i.create(n).compute(e,t)},a.EvpKDF));var e,t,n,r,o,s,i,a}var Mu,Eu={exports:{}};function Lu(){return Mu?Eu.exports:(Mu=1,Eu.exports=(e=Ul(),Cu(),void(e.lib.Cipher||function(t){var n=e,r=n.lib,o=r.Base,s=r.WordArray,i=r.BufferedBlockAlgorithm,a=n.enc;a.Utf8;var c=a.Base64,l=n.algo.EvpKDF,u=r.Cipher=i.extend({cfg:o.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(){i.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?v:_}return function(t){return{encrypt:function(n,r,o){return e(r).encrypt(t,n,r,o)},decrypt:function(n,r,o){return e(r).decrypt(t,n,r,o)}}}}()});r.StreamCipher=u.extend({_doFinalize:function(){return this._process(!0)},blockSize:1});var f=n.mode={},h=r.BlockCipherMode=o.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}}),d=f.CBC=function(){var e=h.extend();function n(e,n,r){var o,s=this._iv;s?(o=s,this._iv=t):o=this._prevBlock;for(var i=0;i<r;i++)e[n+i]^=o[i]}return e.Encryptor=e.extend({processBlock:function(e,t){var r=this._cipher,o=r.blockSize;n.call(this,e,t,o),r.encryptBlock(e,t),this._prevBlock=e.slice(t,t+o)}}),e.Decryptor=e.extend({processBlock:function(e,t){var r=this._cipher,o=r.blockSize,s=e.slice(t,t+o);r.decryptBlock(e,t),n.call(this,e,t,o),this._prevBlock=s}}),e}(),p=(n.pad={}).Pkcs7={pad:function(e,t){for(var n=4*t,r=n-e.sigBytes%n,o=r<<24|r<<16|r<<8|r,i=[],a=0;a<r;a+=4)i.push(o);var c=s.create(i,r);e.concat(c)},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}};r.BlockCipher=u.extend({cfg:u.cfg.extend({mode:d,padding:p}),reset:function(){var e;u.reset.call(this);var t=this.cfg,n=t.iv,r=t.mode;this._xformMode==this._ENC_XFORM_MODE?e=r.createEncryptor:(e=r.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==e?this._mode.init(this,n&&n.words):(this._mode=e.call(r,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 g=r.CipherParams=o.extend({init:function(e){this.mixIn(e)},toString:function(e){return(e||this.formatter).stringify(this)}}),m=(n.format={}).OpenSSL={stringify:function(e){var t=e.ciphertext,n=e.salt;return(n?s.create([1398893684,1701076831]).concat(n).concat(t):t).toString(c)},parse:function(e){var t,n=c.parse(e),r=n.words;return 1398893684==r[0]&&1701076831==r[1]&&(t=s.create(r.slice(2,4)),r.splice(0,4),n.sigBytes-=16),g.create({ciphertext:n,salt:t})}},_=r.SerializableCipher=o.extend({cfg:o.extend({format:m}),encrypt:function(e,t,n,r){r=this.cfg.extend(r);var o=e.createEncryptor(n,r),s=o.finalize(t),i=o.cfg;return g.create({ciphertext:s,key:n,iv:i.iv,algorithm:e,mode:i.mode,padding:i.padding,blockSize:e.blockSize,formatter:r.format})},decrypt:function(e,t,n,r){return r=this.cfg.extend(r),t=this._parse(t,r.format),e.createDecryptor(n,r).finalize(t.ciphertext)},_parse:function(e,t){return"string"==typeof e?t.parse(e,this):e}}),y=(n.kdf={}).OpenSSL={execute:function(e,t,n,r,o){if(r||(r=s.random(8)),o)i=l.create({keySize:t+n,hasher:o}).compute(e,r);else var i=l.create({keySize:t+n}).compute(e,r);var a=s.create(i.words.slice(t),4*n);return i.sigBytes=4*t,g.create({key:i,iv:a,salt:r})}},v=r.PasswordBasedCipher=_.extend({cfg:_.cfg.extend({kdf:y}),encrypt:function(e,t,n,r){var o=(r=this.cfg.extend(r)).kdf.execute(n,e.keySize,e.ivSize,r.salt,r.hasher);r.iv=o.iv;var s=_.encrypt.call(this,e,t,o.key,r);return s.mixIn(o),s},decrypt:function(e,t,n,r){r=this.cfg.extend(r),t=this._parse(t,r.format);var o=r.kdf.execute(n,e.keySize,e.ivSize,t.salt,r.hasher);return r.iv=o.iv,_.decrypt.call(this,e,t,o.key,r)}})}())));var e}var Du,Ru={exports:{}};var Fu,Bu={exports:{}};var ju,Nu={exports:{}};function Uu(){return ju?Nu.exports:(ju=1,Nu.exports=(e=Ul(),Lu(),
| /** @preserve
| * Counter block mode compatible with Dr Brian Gladman fileenc.c
| * derived from CryptoJS.mode.CTR
| * Jan Hruby jhruby.web@gmail.com
| */
| e.mode.CTRGladman=function(){var t=e.lib.BlockCipherMode.extend();function n(e){if(255&~(e>>24))e+=1<<24;else{var t=e>>16&255,n=e>>8&255,r=255&e;255===t?(t=0,255===n?(n=0,255===r?r=0:++r):++n):++t,e=0,e+=t<<16,e+=n<<8,e+=r}return e}function r(e){return 0===(e[0]=n(e[0]))&&(e[1]=n(e[1])),e}var o=t.Encryptor=t.extend({processBlock:function(e,t){var n=this._cipher,o=n.blockSize,s=this._iv,i=this._counter;s&&(i=this._counter=s.slice(0),this._iv=void 0),r(i);var a=i.slice(0);n.encryptBlock(a,0);for(var c=0;c<o;c++)e[t+c]^=a[c]}});return t.Decryptor=o,t}(),e.mode.CTRGladman));var e}var Hu,Wu={exports:{}};var qu,zu={exports:{}};var Ku,Vu={exports:{}};var Ju,Yu={exports:{}};var Xu,Gu={exports:{}};var Qu,Zu={exports:{}};var ef,tf={exports:{}};var nf,rf={exports:{}};var of,sf={exports:{}};var af,cf={exports:{}};function lf(){return af?cf.exports:(af=1,cf.exports=(e=Ul(),Zl(),su(),Cu(),Lu(),function(){var t=e,n=t.lib,r=n.WordArray,o=n.BlockCipher,s=t.algo,i=[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],a=[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],c=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],l=[{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],f=s.DES=o.extend({_doReset:function(){for(var e=this._key.words,t=[],n=0;n<56;n++){var r=i[n]-1;t[n]=e[r>>>5]>>>31-r%32&1}for(var o=this._subKeys=[],s=0;s<16;s++){var l=o[s]=[],u=c[s];for(n=0;n<24;n++)l[n/6|0]|=t[(a[n]-1+u)%28]<<31-n%6,l[4+(n/6|0)]|=t[28+(a[n+24]-1+u)%28]<<31-n%6;for(l[0]=l[0]<<1|l[0]>>>31,n=1;n<7;n++)l[n]=l[n]>>>4*(n-1)+3;l[7]=l[7]<<5|l[7]>>>27}var f=this._invSubKeys=[];for(n=0;n<16;n++)f[n]=o[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),d.call(this,2,858993459),d.call(this,8,16711935),h.call(this,1,1431655765);for(var r=0;r<16;r++){for(var o=n[r],s=this._lBlock,i=this._rBlock,a=0,c=0;c<8;c++)a|=l[c][((i^o[c])&u[c])>>>0];this._lBlock=i,this._rBlock=s^a}var f=this._lBlock;this._lBlock=this._rBlock,this._rBlock=f,h.call(this,1,1431655765),d.call(this,8,16711935),d.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 d(e,t){var n=(this._rBlock>>>e^this._lBlock)&t;this._lBlock^=n,this._rBlock^=n<<e}t.DES=o._createHelper(f);var p=s.TripleDES=o.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),n=e.length<4?e.slice(0,2):e.slice(2,4),o=e.length<6?e.slice(0,2):e.slice(4,6);this._des1=f.createEncryptor(r.create(t)),this._des2=f.createEncryptor(r.create(n)),this._des3=f.createEncryptor(r.create(o))},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});t.TripleDES=o._createHelper(p)}(),e.TripleDES));var e}var uf,ff={exports:{}};var hf,df={exports:{}};var pf,gf={exports:{}};var mf,_f,yf,vf,wf,bf,xf,kf={exports:{}};function Sf(){return mf?kf.exports:(mf=1,kf.exports=(e=Ul(),Zl(),su(),Cu(),Lu(),function(){var t=e,n=t.lib.BlockCipher,r=t.algo;const o=16,s=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],i=[[3509652390,2564797868,805139163,3491422135,3101798381,1780907670,3128725573,4046225305,614570311,3012652279,134345442,2240740374,1667834072,1901547113,2757295779,4103290238,227898511,1921955416,1904987480,2182433518,2069144605,3260701109,2620446009,720527379,3318853667,677414384,3393288472,3101374703,2390351024,1614419982,1822297739,2954791486,3608508353,3174124327,2024746970,1432378464,3864339955,2857741204,1464375394,1676153920,1439316330,715854006,3033291828,289532110,2706671279,2087905683,3018724369,1668267050,732546397,1947742710,3462151702,2609353502,2950085171,1814351708,2050118529,680887927,999245976,1800124847,3300911131,1713906067,1641548236,4213287313,1216130144,1575780402,4018429277,3917837745,3693486850,3949271944,596196993,3549867205,258830323,2213823033,772490370,2760122372,1774776394,2652871518,566650946,4142492826,1728879713,2882767088,1783734482,3629395816,2517608232,2874225571,1861159788,326777828,3124490320,2130389656,2716951837,967770486,1724537150,2185432712,2364442137,1164943284,2105845187,998989502,3765401048,2244026483,1075463327,1455516326,1322494562,910128902,469688178,1117454909,936433444,3490320968,3675253459,1240580251,122909385,2157517691,634681816,4142456567,3825094682,3061402683,2540495037,79693498,3249098678,1084186820,1583128258,426386531,1761308591,1047286709,322548459,995290223,1845252383,2603652396,3431023940,2942221577,3202600964,3727903485,1712269319,422464435,3234572375,1170764815,3523960633,3117677531,1434042557,442511882,3600875718,1076654713,1738483198,4213154764,2393238008,3677496056,1014306527,4251020053,793779912,2902807211,842905082,4246964064,1395751752,1040244610,2656851899,3396308128,445077038,3742853595,3577915638,679411651,2892444358,2354009459,1767581616,3150600392,3791627101,3102740896,284835224,4246832056,1258075500,768725851,2589189241,3069724005,3532540348,1274779536,3789419226,2764799539,1660621633,3471099624,4011903706,913787905,3497959166,737222580,2514213453,2928710040,3937242737,1804850592,3499020752,2949064160,2386320175,2390070455,2415321851,4061277028,2290661394,2416832540,1336762016,1754252060,3520065937,3014181293,791618072,3188594551,3933548030,2332172193,3852520463,3043980520,413987798,3465142937,3030929376,4245938359,2093235073,3534596313,375366246,2157278981,2479649556,555357303,3870105701,2008414854,3344188149,4221384143,3956125452,2067696032,3594591187,2921233993,2428461,544322398,577241275,1471733935,610547355,4027169054,1432588573,1507829418,2025931657,3646575487,545086370,48609733,2200306550,1653985193,298326376,1316178497,3007786442,2064951626,458293330,2589141269,3591329599,3164325604,727753846,2179363840,146436021,1461446943,4069977195,705550613,3059967265,3887724982,4281599278,3313849956,1404054877,2845806497,146425753,1854211946],[1266315497,3048417604,3681880366,3289982499,290971e4,1235738493,2632868024,2414719590,3970600049,1771706367,1449415276,3266420449,422970021,1963543593,2690192192,3826793022,1062508698,1531092325,1804592342,2583117782,2714934279,4024971509,1294809318,4028980673,1289560198,2221992742,1669523910,35572830,157838143,1052438473,1016535060,1802137761,1753167236,1386275462,3080475397,2857371447,1040679964,2145300060,2390574316,1461121720,2956646967,4031777805,4028374788,33600511,2920084762,1018524850,629373528,3691585981,3515945977,2091462646,2486323059,586499841,988145025,935516892,3367335476,2599673255,2839830854,265290510,3972581182,2759138881,3795373465,1005194799,847297441,406762289,1314163512,1332590856,1866599683,4127851711,750260880,613907577,1450815602,3165620655,3734664991,3650291728,3012275730,3704569646,1427272223,778793252,1343938022,2676280711,2052605720,1946737175,3164576444,3914038668,3967478842,3682934266,1661551462,3294938066,4011595847,840292616,3712170807,616741398,312560963,711312465,1351876610,322626781,1910503582,271666773,2175563734,1594956187,70604529,3617834859,1007753275,1495573769,4069517037,2549218298,2663038764,504708206,2263041392,3941167025,2249088522,1514023603,1998579484,1312622330,694541497,2582060303,2151582166,1382467621,776784248,2618340202,3323268794,2497899128,2784771155,503983604,4076293799,907881277,423175695,432175456,1378068232,4145222326,3954048622,3938656102,3820766613,2793130115,2977904593,26017576,3274890735,3194772133,1700274565,1756076034,4006520079,3677328699,720338349,1533947780,354530856,688349552,3973924725,1637815568,332179504,3949051286,53804574,2852348879,3044236432,1282449977,3583942155,3416972820,4006381244,1617046695,2628476075,3002303598,1686838959,431878346,2686675385,1700445008,1080580658,1009431731,832498133,3223435511,2605976345,2271191193,2516031870,1648197032,4164389018,2548247927,300782431,375919233,238389289,3353747414,2531188641,2019080857,1475708069,455242339,2609103871,448939670,3451063019,1395535956,2413381860,1841049896,1491858159,885456874,4264095073,4001119347,1565136089,3898914787,1108368660,540939232,1173283510,2745871338,3681308437,4207628240,3343053890,4016749493,1699691293,1103962373,3625875870,2256883143,3830138730,1031889488,3479347698,1535977030,4236805024,3251091107,2132092099,1774941330,1199868427,1452454533,157007616,2904115357,342012276,595725824,1480756522,206960106,497939518,591360097,863170706,2375253569,3596610801,1814182875,2094937945,3421402208,1082520231,3463918190,2785509508,435703966,3908032597,1641649973,2842273706,3305899714,1510255612,2148256476,2655287854,3276092548,4258621189,236887753,3681803219,274041037,1734335097,3815195456,3317970021,1899903192,1026095262,4050517792,356393447,2410691914,3873677099,3682840055],[3913112168,2491498743,4132185628,2489919796,1091903735,1979897079,3170134830,3567386728,3557303409,857797738,1136121015,1342202287,507115054,2535736646,337727348,3213592640,1301675037,2528481711,1895095763,1721773893,3216771564,62756741,2142006736,835421444,2531993523,1442658625,3659876326,2882144922,676362277,1392781812,170690266,3921047035,1759253602,3611846912,1745797284,664899054,1329594018,3901205900,3045908486,2062866102,2865634940,3543621612,3464012697,1080764994,553557557,3656615353,3996768171,991055499,499776247,1265440854,648242737,3940784050,980351604,3713745714,1749149687,3396870395,4211799374,3640570775,1161844396,3125318951,1431517754,545492359,4268468663,3499529547,1437099964,2702547544,3433638243,2581715763,2787789398,1060185593,1593081372,2418618748,4260947970,69676912,2159744348,86519011,2512459080,3838209314,1220612927,3339683548,133810670,1090789135,1078426020,1569222167,845107691,3583754449,4072456591,1091646820,628848692,1613405280,3757631651,526609435,236106946,48312990,2942717905,3402727701,1797494240,859738849,992217954,4005476642,2243076622,3870952857,3732016268,765654824,3490871365,2511836413,1685915746,3888969200,1414112111,2273134842,3281911079,4080962846,172450625,2569994100,980381355,4109958455,2819808352,2716589560,2568741196,3681446669,3329971472,1835478071,660984891,3704678404,4045999559,3422617507,3040415634,1762651403,1719377915,3470491036,2693910283,3642056355,3138596744,1364962596,2073328063,1983633131,926494387,3423689081,2150032023,4096667949,1749200295,3328846651,309677260,2016342300,1779581495,3079819751,111262694,1274766160,443224088,298511866,1025883608,3806446537,1145181785,168956806,3641502830,3584813610,1689216846,3666258015,3200248200,1692713982,2646376535,4042768518,1618508792,1610833997,3523052358,4130873264,2001055236,3610705100,2202168115,4028541809,2961195399,1006657119,2006996926,3186142756,1430667929,3210227297,1314452623,4074634658,4101304120,2273951170,1399257539,3367210612,3027628629,1190975929,2062231137,2333990788,2221543033,2438960610,1181637006,548689776,2362791313,3372408396,3104550113,3145860560,296247880,1970579870,3078560182,3769228297,1714227617,3291629107,3898220290,166772364,1251581989,493813264,448347421,195405023,2709975567,677966185,3703036547,1463355134,2715995803,1338867538,1343315457,2802222074,2684532164,233230375,2599980071,2000651841,3277868038,1638401717,4028070440,3237316320,6314154,819756386,300326615,590932579,1405279636,3267499572,3150704214,2428286686,3959192993,3461946742,1862657033,1266418056,963775037,2089974820,2263052895,1917689273,448879540,3550394620,3981727096,150775221,3627908307,1303187396,508620638,2975983352,2726630617,1817252668,1876281319,1457606340,908771278,3720792119,3617206836,2455994898,1729034894,1080033504],[976866871,3556439503,2881648439,1522871579,1555064734,1336096578,3548522304,2579274686,3574697629,3205460757,3593280638,3338716283,3079412587,564236357,2993598910,1781952180,1464380207,3163844217,3332601554,1699332808,1393555694,1183702653,3581086237,1288719814,691649499,2847557200,2895455976,3193889540,2717570544,1781354906,1676643554,2592534050,3230253752,1126444790,2770207658,2633158820,2210423226,2615765581,2414155088,3127139286,673620729,2805611233,1269405062,4015350505,3341807571,4149409754,1057255273,2012875353,2162469141,2276492801,2601117357,993977747,3918593370,2654263191,753973209,36408145,2530585658,25011837,3520020182,2088578344,530523599,2918365339,1524020338,1518925132,3760827505,3759777254,1202760957,3985898139,3906192525,674977740,4174734889,2031300136,2019492241,3983892565,4153806404,3822280332,352677332,2297720250,60907813,90501309,3286998549,1016092578,2535922412,2839152426,457141659,509813237,4120667899,652014361,1966332200,2975202805,55981186,2327461051,676427537,3255491064,2882294119,3433927263,1307055953,942726286,933058658,2468411793,3933900994,4215176142,1361170020,2001714738,2830558078,3274259782,1222529897,1679025792,2729314320,3714953764,1770335741,151462246,3013232138,1682292957,1483529935,471910574,1539241949,458788160,3436315007,1807016891,3718408830,978976581,1043663428,3165965781,1927990952,4200891579,2372276910,3208408903,3533431907,1412390302,2931980059,4132332400,1947078029,3881505623,4168226417,2941484381,1077988104,1320477388,886195818,18198404,3786409e3,2509781533,112762804,3463356488,1866414978,891333506,18488651,661792760,1628790961,3885187036,3141171499,876946877,2693282273,1372485963,791857591,2686433993,3759982718,3167212022,3472953795,2716379847,445679433,3561995674,3504004811,3574258232,54117162,3331405415,2381918588,3769707343,4154350007,1140177722,4074052095,668550556,3214352940,367459370,261225585,2610173221,4209349473,3468074219,3265815641,314222801,3066103646,3808782860,282218597,3406013506,3773591054,379116347,1285071038,846784868,2669647154,3771962079,3550491691,2305946142,453669953,1268987020,3317592352,3279303384,3744833421,2610507566,3859509063,266596637,3847019092,517658769,3462560207,3443424879,370717030,4247526661,2224018117,4143653529,4112773975,2788324899,2477274417,1456262402,2901442914,1517677493,1846949527,2295493580,3734397586,2176403920,1280348187,1908823572,3871786941,846861322,1172426758,3287448474,3383383037,1655181056,3139813346,901632758,1897031941,2986607138,3066810236,3447102507,1393639104,373351379,950779232,625454576,3124240540,4148612726,2007998917,544563296,2244738638,2330496472,2058025392,1291430526,424198748,50039436,29584100,3605783033,2429876329,2791104160,1057563949,3255363231,3075367218,3463963227,1469046755,985887462]];var a={pbox:[],sbox:[]};function c(e,t){let n=t>>24&255,r=t>>16&255,o=t>>8&255,s=255&t,i=e.sbox[0][n]+e.sbox[1][r];return i^=e.sbox[2][o],i+=e.sbox[3][s],i}function l(e,t,n){let r,s=t,i=n;for(let a=0;a<o;++a)s^=e.pbox[a],i=c(e,s)^i,r=s,s=i,i=r;return r=s,s=i,i=r,i^=e.pbox[o],s^=e.pbox[o+1],{left:s,right:i}}function u(e,t,n){let r,s=t,i=n;for(let a=o+1;a>1;--a)s^=e.pbox[a],i=c(e,s)^i,r=s,s=i,i=r;return r=s,s=i,i=r,i^=e.pbox[1],s^=e.pbox[0],{left:s,right:i}}function f(e,t,n){for(let o=0;o<4;o++){e.sbox[o]=[];for(let t=0;t<256;t++)e.sbox[o][t]=i[o][t]}let r=0;for(let i=0;i<o+2;i++)e.pbox[i]=s[i]^t[r],r++,r>=n&&(r=0);let a=0,c=0,u=0;for(let s=0;s<o+2;s+=2)u=l(e,a,c),a=u.left,c=u.right,e.pbox[s]=a,e.pbox[s+1]=c;for(let o=0;o<4;o++)for(let t=0;t<256;t+=2)u=l(e,a,c),a=u.left,c=u.right,e.sbox[o][t]=a,e.sbox[o][t+1]=c;return!0}var h=r.Blowfish=n.extend({_doReset:function(){if(this._keyPriorReset!==this._key){var e=this._keyPriorReset=this._key,t=e.words,n=e.sigBytes/4;f(a,t,n)}},encryptBlock:function(e,t){var n=l(a,e[t],e[t+1]);e[t]=n.left,e[t+1]=n.right},decryptBlock:function(e,t){var n=u(a,e[t],e[t+1]);e[t]=n.left,e[t+1]=n.right},blockSize:2,keySize:4,ivSize:2});t.Blowfish=n._createHelper(h)}(),e.Blowfish));var e}const $f=Dl(Fl.exports=function(e){return e}(Ul(),ql(),Vl(),Xl(),Zl(),nu(),su(),cu(),fu(),hu||(hu=1,du.exports=(xf=Ul(),fu(),yf=(_f=xf).lib.WordArray,vf=_f.algo,wf=vf.SHA256,bf=vf.SHA224=wf.extend({_doReset:function(){this._hash=new yf.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var e=wf._doFinalize.call(this);return e.sigBytes-=4,e}}),_f.SHA224=wf._createHelper(bf),_f.HmacSHA224=wf._createHmacHelper(bf),xf.SHA224)),mu(),function(){return _u?yu.exports:(_u=1,yu.exports=(a=Ul(),ql(),mu(),t=(e=a).x64,n=t.Word,r=t.WordArray,o=e.algo,s=o.SHA512,i=o.SHA384=s.extend({_doReset:function(){this._hash=new r.init([new n.init(3418070365,3238371032),new n.init(1654270250,914150663),new n.init(2438529370,812702999),new n.init(355462360,4144912697),new n.init(1731405415,4290775857),new n.init(2394180231,1750603025),new n.init(3675008525,1694076839),new n.init(1203062813,3204075428)])},_doFinalize:function(){var e=s._doFinalize.call(this);return e.sigBytes-=16,e}}),e.SHA384=s._createHelper(i),e.HmacSHA384=s._createHmacHelper(i),a.SHA384));var e,t,n,r,o,s,i,a}(),bu(),function(){return xu?ku.exports:(xu=1,ku.exports=(e=Ul(),
| /** @preserve
| (c) 2012 by Cédric Mesnil. All rights reserved.
|
| Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
|
| - Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
| - Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
|
| THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
| */
| function(){var t=e,n=t.lib,r=n.WordArray,o=n.Hasher,s=t.algo,i=r.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]),a=r.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=r.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]),l=r.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]),u=r.create([0,1518500249,1859775393,2400959708,2840853838]),f=r.create([1352829926,1548603684,1836072691,2053994217,0]),h=s.RIPEMD160=o.extend({_doReset:function(){this._hash=r.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var n=0;n<16;n++){var r=t+n,o=e[r];e[r]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8)}var s,h,v,w,b,x,k,S,$,I,A,P=this._hash.words,O=u.words,T=f.words,C=i.words,M=a.words,E=c.words,L=l.words;for(x=s=P[0],k=h=P[1],S=v=P[2],$=w=P[3],I=b=P[4],n=0;n<80;n+=1)A=s+e[t+C[n]]|0,A+=n<16?d(h,v,w)+O[0]:n<32?p(h,v,w)+O[1]:n<48?g(h,v,w)+O[2]:n<64?m(h,v,w)+O[3]:_(h,v,w)+O[4],A=(A=y(A|=0,E[n]))+b|0,s=b,b=w,w=y(v,10),v=h,h=A,A=x+e[t+M[n]]|0,A+=n<16?_(k,S,$)+T[0]:n<32?m(k,S,$)+T[1]:n<48?g(k,S,$)+T[2]:n<64?p(k,S,$)+T[3]:d(k,S,$)+T[4],A=(A=y(A|=0,L[n]))+I|0,x=I,I=$,$=y(S,10),S=k,k=A;A=P[1]+v+$|0,P[1]=P[2]+w+I|0,P[2]=P[3]+b+x|0,P[3]=P[4]+s+k|0,P[4]=P[0]+h+S|0,P[0]=A},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;t[r>>>5]|=128<<24-r%32,t[14+(r+64>>>9<<4)]=16711935&(n<<8|n>>>24)|4278255360&(n<<24|n>>>8),e.sigBytes=4*(t.length+1),this._process();for(var o=this._hash,s=o.words,i=0;i<5;i++){var a=s[i];s[i]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8)}return o},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});function d(e,t,n){return e^t^n}function p(e,t,n){return e&t|~e&n}function g(e,t,n){return(e|~t)^n}function m(e,t,n){return e&n|t&~n}function _(e,t,n){return e^(t|~n)}function y(e,t){return e<<t|e>>>32-t}t.RIPEMD160=o._createHelper(h),t.HmacRIPEMD160=o._createHmacHelper(h)}(),e.RIPEMD160));var e}(),Iu(),function(){return Au?Pu.exports:(Au=1,Pu.exports=(c=Ul(),fu(),Iu(),t=(e=c).lib,n=t.Base,r=t.WordArray,o=e.algo,s=o.SHA256,i=o.HMAC,a=o.PBKDF2=n.extend({cfg:n.extend({keySize:4,hasher:s,iterations:25e4}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var n=this.cfg,o=i.create(n.hasher,e),s=r.create(),a=r.create([1]),c=s.words,l=a.words,u=n.keySize,f=n.iterations;c.length<u;){var h=o.update(t).finalize(a);o.reset();for(var d=h.words,p=d.length,g=h,m=1;m<f;m++){g=o.finalize(g),o.reset();for(var _=g.words,y=0;y<p;y++)d[y]^=_[y]}s.concat(h),l[0]++}return s.sigBytes=4*u,s}}),e.PBKDF2=function(e,t,n){return a.create(n).compute(e,t)},c.PBKDF2));var e,t,n,r,o,s,i,a,c}(),Cu(),Lu(),function(){return Du?Ru.exports:(Du=1,Ru.exports=(e=Ul(),Lu(),e.mode.CFB=function(){var t=e.lib.BlockCipherMode.extend();function n(e,t,n,r){var o,s=this._iv;s?(o=s.slice(0),this._iv=void 0):o=this._prevBlock,r.encryptBlock(o,0);for(var i=0;i<n;i++)e[t+i]^=o[i]}return t.Encryptor=t.extend({processBlock:function(e,t){var r=this._cipher,o=r.blockSize;n.call(this,e,t,o,r),this._prevBlock=e.slice(t,t+o)}}),t.Decryptor=t.extend({processBlock:function(e,t){var r=this._cipher,o=r.blockSize,s=e.slice(t,t+o);n.call(this,e,t,o,r),this._prevBlock=s}}),t}(),e.mode.CFB));var e}(),function(){return Fu?Bu.exports:(Fu=1,Bu.exports=(n=Ul(),Lu(),n.mode.CTR=(e=n.lib.BlockCipherMode.extend(),t=e.Encryptor=e.extend({processBlock:function(e,t){var n=this._cipher,r=n.blockSize,o=this._iv,s=this._counter;o&&(s=this._counter=o.slice(0),this._iv=void 0);var i=s.slice(0);n.encryptBlock(i,0),s[r-1]=s[r-1]+1|0;for(var a=0;a<r;a++)e[t+a]^=i[a]}}),e.Decryptor=t,e),n.mode.CTR));var e,t,n}(),Uu(),function(){return Hu?Wu.exports:(Hu=1,Wu.exports=(n=Ul(),Lu(),n.mode.OFB=(e=n.lib.BlockCipherMode.extend(),t=e.Encryptor=e.extend({processBlock:function(e,t){var n=this._cipher,r=n.blockSize,o=this._iv,s=this._keystream;o&&(s=this._keystream=o.slice(0),this._iv=void 0),n.encryptBlock(s,0);for(var i=0;i<r;i++)e[t+i]^=s[i]}}),e.Decryptor=t,e),n.mode.OFB));var e,t,n}(),function(){return qu?zu.exports:(qu=1,zu.exports=(t=Ul(),Lu(),t.mode.ECB=((e=t.lib.BlockCipherMode.extend()).Encryptor=e.extend({processBlock:function(e,t){this._cipher.encryptBlock(e,t)}}),e.Decryptor=e.extend({processBlock:function(e,t){this._cipher.decryptBlock(e,t)}}),e),t.mode.ECB));var e,t}(),function(){return Ku?Vu.exports:(Ku=1,Vu.exports=(e=Ul(),Lu(),e.pad.AnsiX923={pad:function(e,t){var n=e.sigBytes,r=4*t,o=r-n%r,s=n+o-1;e.clamp(),e.words[s>>>2]|=o<<24-s%4*8,e.sigBytes+=o},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},e.pad.Ansix923));var e}(),function(){return Ju?Yu.exports:(Ju=1,Yu.exports=(e=Ul(),Lu(),e.pad.Iso10126={pad:function(t,n){var r=4*n,o=r-t.sigBytes%r;t.concat(e.lib.WordArray.random(o-1)).concat(e.lib.WordArray.create([o<<24],1))},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},e.pad.Iso10126));var e}(),function(){return Xu?Gu.exports:(Xu=1,Gu.exports=(e=Ul(),Lu(),e.pad.Iso97971={pad:function(t,n){t.concat(e.lib.WordArray.create([2147483648],1)),e.pad.ZeroPadding.pad(t,n)},unpad:function(t){e.pad.ZeroPadding.unpad(t),t.sigBytes--}},e.pad.Iso97971));var e}(),function(){return Qu?Zu.exports:(Qu=1,Zu.exports=(e=Ul(),Lu(),e.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}}},e.pad.ZeroPadding));var e}(),function(){return ef?tf.exports:(ef=1,tf.exports=(e=Ul(),Lu(),e.pad.NoPadding={pad:function(){},unpad:function(){}},e.pad.NoPadding));var e}(),function(){return nf?rf.exports:(nf=1,rf.exports=(r=Ul(),Lu(),t=(e=r).lib.CipherParams,n=e.enc.Hex,e.format.Hex={stringify:function(e){return e.ciphertext.toString(n)},parse:function(e){var r=n.parse(e);return t.create({ciphertext:r})}},r.format.Hex));var e,t,n,r}(),function(){return of?sf.exports:(of=1,sf.exports=(e=Ul(),Zl(),su(),Cu(),Lu(),function(){var t=e,n=t.lib.BlockCipher,r=t.algo,o=[],s=[],i=[],a=[],c=[],l=[],u=[],f=[],h=[],d=[];!function(){for(var e=[],t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;var n=0,r=0;for(t=0;t<256;t++){var p=r^r<<1^r<<2^r<<3^r<<4;p=p>>>8^255&p^99,o[n]=p,s[p]=n;var g=e[n],m=e[g],_=e[m],y=257*e[p]^16843008*p;i[n]=y<<24|y>>>8,a[n]=y<<16|y>>>16,c[n]=y<<8|y>>>24,l[n]=y,y=16843009*_^65537*m^257*g^16843008*n,u[p]=y<<24|y>>>8,f[p]=y<<16|y>>>16,h[p]=y<<8|y>>>24,d[p]=y,n?(n=g^e[e[e[_^g]]],r^=e[e[r]]):n=r=1}}();var p=[0,1,2,4,8,16,32,64,128,27,54],g=r.AES=n.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var e=this._keyPriorReset=this._key,t=e.words,n=e.sigBytes/4,r=4*((this._nRounds=n+6)+1),s=this._keySchedule=[],i=0;i<r;i++)i<n?s[i]=t[i]:(l=s[i-1],i%n?n>6&&i%n==4&&(l=o[l>>>24]<<24|o[l>>>16&255]<<16|o[l>>>8&255]<<8|o[255&l]):(l=o[(l=l<<8|l>>>24)>>>24]<<24|o[l>>>16&255]<<16|o[l>>>8&255]<<8|o[255&l],l^=p[i/n|0]<<24),s[i]=s[i-n]^l);for(var a=this._invKeySchedule=[],c=0;c<r;c++){if(i=r-c,c%4)var l=s[i];else l=s[i-4];a[c]=c<4||i<=4?l:u[o[l>>>24]]^f[o[l>>>16&255]]^h[o[l>>>8&255]]^d[o[255&l]]}}},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._keySchedule,i,a,c,l,o)},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,f,h,d,s),n=e[t+1],e[t+1]=e[t+3],e[t+3]=n},_doCryptBlock:function(e,t,n,r,o,s,i,a){for(var c=this._nRounds,l=e[t]^n[0],u=e[t+1]^n[1],f=e[t+2]^n[2],h=e[t+3]^n[3],d=4,p=1;p<c;p++){var g=r[l>>>24]^o[u>>>16&255]^s[f>>>8&255]^i[255&h]^n[d++],m=r[u>>>24]^o[f>>>16&255]^s[h>>>8&255]^i[255&l]^n[d++],_=r[f>>>24]^o[h>>>16&255]^s[l>>>8&255]^i[255&u]^n[d++],y=r[h>>>24]^o[l>>>16&255]^s[u>>>8&255]^i[255&f]^n[d++];l=g,u=m,f=_,h=y}g=(a[l>>>24]<<24|a[u>>>16&255]<<16|a[f>>>8&255]<<8|a[255&h])^n[d++],m=(a[u>>>24]<<24|a[f>>>16&255]<<16|a[h>>>8&255]<<8|a[255&l])^n[d++],_=(a[f>>>24]<<24|a[h>>>16&255]<<16|a[l>>>8&255]<<8|a[255&u])^n[d++],y=(a[h>>>24]<<24|a[l>>>16&255]<<16|a[u>>>8&255]<<8|a[255&f])^n[d++],e[t]=g,e[t+1]=m,e[t+2]=_,e[t+3]=y},keySize:8});t.AES=n._createHelper(g)}(),e.AES));var e}(),lf(),function(){return uf?ff.exports:(uf=1,ff.exports=(e=Ul(),Zl(),su(),Cu(),Lu(),function(){var t=e,n=t.lib.StreamCipher,r=t.algo,o=r.RC4=n.extend({_doReset:function(){for(var e=this._key,t=e.words,n=e.sigBytes,r=this._S=[],o=0;o<256;o++)r[o]=o;o=0;for(var s=0;o<256;o++){var i=o%n,a=t[i>>>2]>>>24-i%4*8&255;s=(s+r[o]+a)%256;var c=r[o];r[o]=r[s],r[s]=c}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,r=0,o=0;o<4;o++){n=(n+e[t=(t+1)%256])%256;var s=e[t];e[t]=e[n],e[n]=s,r|=e[(e[t]+e[n])%256]<<24-8*o}return this._i=t,this._j=n,r}t.RC4=n._createHelper(o);var i=r.RC4Drop=o.extend({cfg:o.cfg.extend({drop:192}),_doReset:function(){o._doReset.call(this);for(var e=this.cfg.drop;e>0;e--)s.call(this)}});t.RC4Drop=n._createHelper(i)}(),e.RC4));var e}(),function(){return hf?df.exports:(hf=1,df.exports=(e=Ul(),Zl(),su(),Cu(),Lu(),function(){var t=e,n=t.lib.StreamCipher,r=t.algo,o=[],s=[],i=[],a=r.Rabbit=n.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 r=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],o=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++)c.call(this);for(n=0;n<8;n++)o[n]^=r[n+4&7];if(t){var s=t.words,i=s[0],a=s[1],l=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8),u=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),f=l>>>16|4294901760&u,h=u<<16|65535&l;for(o[0]^=l,o[1]^=f,o[2]^=u,o[3]^=h,o[4]^=l,o[5]^=f,o[6]^=u,o[7]^=h,n=0;n<4;n++)c.call(this)}},_doProcessBlock:function(e,t){var n=this._X;c.call(this),o[0]=n[0]^n[5]>>>16^n[3]<<16,o[1]=n[2]^n[7]>>>16^n[5]<<16,o[2]=n[4]^n[1]>>>16^n[7]<<16,o[3]=n[6]^n[3]>>>16^n[1]<<16;for(var r=0;r<4;r++)o[r]=16711935&(o[r]<<8|o[r]>>>24)|4278255360&(o[r]<<24|o[r]>>>8),e[t+r]^=o[r]},blockSize:4,ivSize:2});function c(){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 r=e[n]+t[n],o=65535&r,a=r>>>16,c=((o*o>>>17)+o*a>>>15)+a*a,l=((4294901760&r)*r|0)+((65535&r)*r|0);i[n]=c^l}e[0]=i[0]+(i[7]<<16|i[7]>>>16)+(i[6]<<16|i[6]>>>16)|0,e[1]=i[1]+(i[0]<<8|i[0]>>>24)+i[7]|0,e[2]=i[2]+(i[1]<<16|i[1]>>>16)+(i[0]<<16|i[0]>>>16)|0,e[3]=i[3]+(i[2]<<8|i[2]>>>24)+i[1]|0,e[4]=i[4]+(i[3]<<16|i[3]>>>16)+(i[2]<<16|i[2]>>>16)|0,e[5]=i[5]+(i[4]<<8|i[4]>>>24)+i[3]|0,e[6]=i[6]+(i[5]<<16|i[5]>>>16)+(i[4]<<16|i[4]>>>16)|0,e[7]=i[7]+(i[6]<<8|i[6]>>>24)+i[5]|0}t.Rabbit=n._createHelper(a)}(),e.Rabbit));var e}(),function(){return pf?gf.exports:(pf=1,gf.exports=(e=Ul(),Zl(),su(),Cu(),Lu(),function(){var t=e,n=t.lib.StreamCipher,r=t.algo,o=[],s=[],i=[],a=r.RabbitLegacy=n.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],r=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 o=0;o<4;o++)c.call(this);for(o=0;o<8;o++)r[o]^=n[o+4&7];if(t){var s=t.words,i=s[0],a=s[1],l=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8),u=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),f=l>>>16|4294901760&u,h=u<<16|65535&l;for(r[0]^=l,r[1]^=f,r[2]^=u,r[3]^=h,r[4]^=l,r[5]^=f,r[6]^=u,r[7]^=h,o=0;o<4;o++)c.call(this)}},_doProcessBlock:function(e,t){var n=this._X;c.call(this),o[0]=n[0]^n[5]>>>16^n[3]<<16,o[1]=n[2]^n[7]>>>16^n[5]<<16,o[2]=n[4]^n[1]>>>16^n[7]<<16,o[3]=n[6]^n[3]>>>16^n[1]<<16;for(var r=0;r<4;r++)o[r]=16711935&(o[r]<<8|o[r]>>>24)|4278255360&(o[r]<<24|o[r]>>>8),e[t+r]^=o[r]},blockSize:4,ivSize:2});function c(){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 r=e[n]+t[n],o=65535&r,a=r>>>16,c=((o*o>>>17)+o*a>>>15)+a*a,l=((4294901760&r)*r|0)+((65535&r)*r|0);i[n]=c^l}e[0]=i[0]+(i[7]<<16|i[7]>>>16)+(i[6]<<16|i[6]>>>16)|0,e[1]=i[1]+(i[0]<<8|i[0]>>>24)+i[7]|0,e[2]=i[2]+(i[1]<<16|i[1]>>>16)+(i[0]<<16|i[0]>>>16)|0,e[3]=i[3]+(i[2]<<8|i[2]>>>24)+i[1]|0,e[4]=i[4]+(i[3]<<16|i[3]>>>16)+(i[2]<<16|i[2]>>>16)|0,e[5]=i[5]+(i[4]<<8|i[4]>>>24)+i[3]|0,e[6]=i[6]+(i[5]<<16|i[5]>>>16)+(i[4]<<16|i[4]>>>16)|0,e[7]=i[7]+(i[6]<<8|i[6]>>>24)+i[5]|0}t.RabbitLegacy=n._createHelper(a)}(),e.RabbitLegacy));var e}(),Sf()));var If={exports:{}};If.exports=function(){var e=1e3,t=6e4,n=36e5,r="millisecond",o="second",s="minute",i="hour",a="day",c="week",l="month",u="quarter",f="year",h="date",d="Invalid Date",p=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,g=/\[([^\]]+)]|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,m={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])+"]"}},_=function(e,t,n){var r=String(e);return!r||r.length>=t?e:""+Array(t+1-r.length).join(n)+e},y={s:_,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),o=n%60;return(t<=0?"+":"-")+_(r,2,"0")+":"+_(o,2,"0")},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),o=t.clone().add(r,l),s=n-o<0,i=t.clone().add(r+(s?-1:1),l);return+(-(r+(n-o)/(s?o-i:i-o))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:l,y:f,w:c,d:a,D:h,h:i,m:s,s:o,ms:r,Q:u}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},v="en",w={};w[v]=m;var b="$isDayjsObject",x=function(e){return e instanceof I||!(!e||!e[b])},k=function e(t,n,r){var o;if(!t)return v;if("string"==typeof t){var s=t.toLowerCase();w[s]&&(o=s),n&&(w[s]=n,o=s);var i=t.split("-");if(!o&&i.length>1)return e(i[0])}else{var a=t.name;w[a]=t,o=a}return!r&&o&&(v=o),o||!r&&v},S=function(e,t){if(x(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new I(n)},$=y;$.l=k,$.i=x,$.w=function(e,t){return S(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var I=function(){function m(e){this.$L=k(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[b]=!0}var _=m.prototype;return _.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if($.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var r=t.match(p);if(r){var o=r[2]-1||0,s=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],o,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)):new Date(r[1],o,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)}}return new Date(t)}(e),this.init()},_.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()},_.$utils=function(){return $},_.isValid=function(){return!(this.$d.toString()===d)},_.isSame=function(e,t){var n=S(e);return this.startOf(t)<=n&&n<=this.endOf(t)},_.isAfter=function(e,t){return S(e)<this.startOf(t)},_.isBefore=function(e,t){return this.endOf(t)<S(e)},_.$g=function(e,t,n){return $.u(e)?this[t]:this.set(n,e)},_.unix=function(){return Math.floor(this.valueOf()/1e3)},_.valueOf=function(){return this.$d.getTime()},_.startOf=function(e,t){var n=this,r=!!$.u(t)||t,u=$.p(e),d=function(e,t){var o=$.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return r?o:o.endOf(a)},p=function(e,t){return $.w(n.toDate()[e].apply(n.toDate("s"),(r?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},g=this.$W,m=this.$M,_=this.$D,y="set"+(this.$u?"UTC":"");switch(u){case f:return r?d(1,0):d(31,11);case l:return r?d(1,m):d(0,m+1);case c:var v=this.$locale().weekStart||0,w=(g<v?g+7:g)-v;return d(r?_-w:_+(6-w),m);case a:case h:return p(y+"Hours",0);case i:return p(y+"Minutes",1);case s:return p(y+"Seconds",2);case o:return p(y+"Milliseconds",3);default:return this.clone()}},_.endOf=function(e){return this.startOf(e,!1)},_.$set=function(e,t){var n,c=$.p(e),u="set"+(this.$u?"UTC":""),d=(n={},n[a]=u+"Date",n[h]=u+"Date",n[l]=u+"Month",n[f]=u+"FullYear",n[i]=u+"Hours",n[s]=u+"Minutes",n[o]=u+"Seconds",n[r]=u+"Milliseconds",n)[c],p=c===a?this.$D+(t-this.$W):t;if(c===l||c===f){var g=this.clone().set(h,1);g.$d[d](p),g.init(),this.$d=g.set(h,Math.min(this.$D,g.daysInMonth())).$d}else d&&this.$d[d](p);return this.init(),this},_.set=function(e,t){return this.clone().$set(e,t)},_.get=function(e){return this[$.p(e)]()},_.add=function(r,u){var h,d=this;r=Number(r);var p=$.p(u),g=function(e){var t=S(d);return $.w(t.date(t.date()+Math.round(e*r)),d)};if(p===l)return this.set(l,this.$M+r);if(p===f)return this.set(f,this.$y+r);if(p===a)return g(1);if(p===c)return g(7);var m=(h={},h[s]=t,h[i]=n,h[o]=e,h)[p]||1,_=this.$d.getTime()+r*m;return $.w(_,this)},_.subtract=function(e,t){return this.add(-1*e,t)},_.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||d;var r=e||"YYYY-MM-DDTHH:mm:ssZ",o=$.z(this),s=this.$H,i=this.$m,a=this.$M,c=n.weekdays,l=n.months,u=n.meridiem,f=function(e,n,o,s){return e&&(e[n]||e(t,r))||o[n].slice(0,s)},h=function(e){return $.s(s%12||12,e,"0")},p=u||function(e,t,n){var r=e<12?"AM":"PM";return n?r.toLowerCase():r};return r.replace(g,function(e,r){return r||function(e){switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return $.s(t.$y,4,"0");case"M":return a+1;case"MM":return $.s(a+1,2,"0");case"MMM":return f(n.monthsShort,a,l,3);case"MMMM":return f(l,a);case"D":return t.$D;case"DD":return $.s(t.$D,2,"0");case"d":return String(t.$W);case"dd":return f(n.weekdaysMin,t.$W,c,2);case"ddd":return f(n.weekdaysShort,t.$W,c,3);case"dddd":return c[t.$W];case"H":return String(s);case"HH":return $.s(s,2,"0");case"h":return h(1);case"hh":return h(2);case"a":return p(s,i,!0);case"A":return p(s,i,!1);case"m":return String(i);case"mm":return $.s(i,2,"0");case"s":return String(t.$s);case"ss":return $.s(t.$s,2,"0");case"SSS":return $.s(t.$ms,3,"0");case"Z":return o}return null}(e)||o.replace(":","")})},_.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},_.diff=function(r,h,d){var p,g=this,m=$.p(h),_=S(r),y=(_.utcOffset()-this.utcOffset())*t,v=this-_,w=function(){return $.m(g,_)};switch(m){case f:p=w()/12;break;case l:p=w();break;case u:p=w()/3;break;case c:p=(v-y)/6048e5;break;case a:p=(v-y)/864e5;break;case i:p=v/n;break;case s:p=v/t;break;case o:p=v/e;break;default:p=v}return d?p:$.a(p)},_.daysInMonth=function(){return this.endOf(l).$D},_.$locale=function(){return w[this.$L]},_.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=k(e,t,!0);return r&&(n.$L=r),n},_.clone=function(){return $.w(this.$d,this)},_.toDate=function(){return new Date(this.valueOf())},_.toJSON=function(){return this.isValid()?this.toISOString():null},_.toISOString=function(){return this.$d.toISOString()},_.toString=function(){return this.$d.toUTCString()},m}(),A=I.prototype;return S.prototype=A,[["$ms",r],["$s",o],["$m",s],["$H",i],["$W",a],["$M",l],["$y",f],["$D",h]].forEach(function(e){A[e[1]]=function(t){return this.$g(t,e[0],e[1])}}),S.extend=function(e,t){return e.$i||(e(t,I,S),e.$i=!0),S},S.locale=k,S.isDayjs=x,S.unix=function(e){return S(1e3*e)},S.en=w[v],S.Ls=w,S.p={},S}();const Af=Dl(If.exports),Pf={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":"沒有更多數據了"}};var Of=1e3,Tf=6e4,Cf=36e5,Mf="millisecond",Ef="second",Lf="minute",Df="hour",Rf="day",Ff="week",Bf="month",jf="quarter",Nf="year",Uf="date",Hf="Invalid Date",Wf=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,qf=/\[([^\]]+)]|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;const zf={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])+"]"}};var Kf=function(e,t,n){var r=String(e);return!r||r.length>=t?e:""+Array(t+1-r.length).join(n)+e};const Vf={s:Kf,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),o=n%60;return(t<=0?"+":"-")+Kf(r,2,"0")+":"+Kf(o,2,"0")},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),o=t.clone().add(r,Bf),s=n-o<0,i=t.clone().add(r+(s?-1:1),Bf);return+(-(r+(n-o)/(s?o-i:i-o))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:Bf,y:Nf,w:Ff,d:Rf,D:Uf,h:Df,m:Lf,s:Ef,ms:Mf,Q:jf}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}};var Jf="en",Yf={};Yf[Jf]=zf;var Xf="$isDayjsObject",Gf=function(e){return e instanceof th||!(!e||!e[Xf])},Qf=function e(t,n,r){var o;if(!t)return Jf;if("string"==typeof t){var s=t.toLowerCase();Yf[s]&&(o=s),n&&(Yf[s]=n,o=s);var i=t.split("-");if(!o&&i.length>1)return e(i[0])}else{var a=t.name;Yf[a]=t,o=a}return!r&&o&&(Jf=o),o||!r&&Jf},Zf=function(e,t){if(Gf(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new th(n)},eh=Vf;eh.l=Qf,eh.i=Gf,eh.w=function(e,t){return Zf(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var th=function(){function e(e){this.$L=Qf(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[Xf]=!0}var t=e.prototype;return t.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(eh.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var r=t.match(Wf);if(r){var o=r[2]-1||0,s=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],o,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)):new Date(r[1],o,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)}}return new Date(t)}(e),this.init()},t.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()},t.$utils=function(){return eh},t.isValid=function(){return!(this.$d.toString()===Hf)},t.isSame=function(e,t){var n=Zf(e);return this.startOf(t)<=n&&n<=this.endOf(t)},t.isAfter=function(e,t){return Zf(e)<this.startOf(t)},t.isBefore=function(e,t){return this.endOf(t)<Zf(e)},t.$g=function(e,t,n){return eh.u(e)?this[t]:this.set(n,e)},t.unix=function(){return Math.floor(this.valueOf()/1e3)},t.valueOf=function(){return this.$d.getTime()},t.startOf=function(e,t){var n=this,r=!!eh.u(t)||t,o=eh.p(e),s=function(e,t){var o=eh.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return r?o:o.endOf(Rf)},i=function(e,t){return eh.w(n.toDate()[e].apply(n.toDate("s"),(r?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},a=this.$W,c=this.$M,l=this.$D,u="set"+(this.$u?"UTC":"");switch(o){case Nf:return r?s(1,0):s(31,11);case Bf:return r?s(1,c):s(0,c+1);case Ff:var f=this.$locale().weekStart||0,h=(a<f?a+7:a)-f;return s(r?l-h:l+(6-h),c);case Rf:case Uf:return i(u+"Hours",0);case Df:return i(u+"Minutes",1);case Lf:return i(u+"Seconds",2);case Ef:return i(u+"Milliseconds",3);default:return this.clone()}},t.endOf=function(e){return this.startOf(e,!1)},t.$set=function(e,t){var n,r=eh.p(e),o="set"+(this.$u?"UTC":""),s=(n={},n[Rf]=o+"Date",n[Uf]=o+"Date",n[Bf]=o+"Month",n[Nf]=o+"FullYear",n[Df]=o+"Hours",n[Lf]=o+"Minutes",n[Ef]=o+"Seconds",n[Mf]=o+"Milliseconds",n)[r],i=r===Rf?this.$D+(t-this.$W):t;if(r===Bf||r===Nf){var a=this.clone().set(Uf,1);a.$d[s](i),a.init(),this.$d=a.set(Uf,Math.min(this.$D,a.daysInMonth())).$d}else s&&this.$d[s](i);return this.init(),this},t.set=function(e,t){return this.clone().$set(e,t)},t.get=function(e){return this[eh.p(e)]()},t.add=function(e,t){var n,r=this;e=Number(e);var o=eh.p(t),s=function(t){var n=Zf(r);return eh.w(n.date(n.date()+Math.round(t*e)),r)};if(o===Bf)return this.set(Bf,this.$M+e);if(o===Nf)return this.set(Nf,this.$y+e);if(o===Rf)return s(1);if(o===Ff)return s(7);var i=(n={},n[Lf]=Tf,n[Df]=Cf,n[Ef]=Of,n)[o]||1,a=this.$d.getTime()+e*i;return eh.w(a,this)},t.subtract=function(e,t){return this.add(-1*e,t)},t.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||Hf;var r=e||"YYYY-MM-DDTHH:mm:ssZ",o=eh.z(this),s=this.$H,i=this.$m,a=this.$M,c=n.weekdays,l=n.months,u=n.meridiem,f=function(e,n,o,s){return e&&(e[n]||e(t,r))||o[n].slice(0,s)},h=function(e){return eh.s(s%12||12,e,"0")},d=u||function(e,t,n){var r=e<12?"AM":"PM";return n?r.toLowerCase():r};return r.replace(qf,function(e,r){return r||function(e){switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return eh.s(t.$y,4,"0");case"M":return a+1;case"MM":return eh.s(a+1,2,"0");case"MMM":return f(n.monthsShort,a,l,3);case"MMMM":return f(l,a);case"D":return t.$D;case"DD":return eh.s(t.$D,2,"0");case"d":return String(t.$W);case"dd":return f(n.weekdaysMin,t.$W,c,2);case"ddd":return f(n.weekdaysShort,t.$W,c,3);case"dddd":return c[t.$W];case"H":return String(s);case"HH":return eh.s(s,2,"0");case"h":return h(1);case"hh":return h(2);case"a":return d(s,i,!0);case"A":return d(s,i,!1);case"m":return String(i);case"mm":return eh.s(i,2,"0");case"s":return String(t.$s);case"ss":return eh.s(t.$s,2,"0");case"SSS":return eh.s(t.$ms,3,"0");case"Z":return o}return null}(e)||o.replace(":","")})},t.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},t.diff=function(e,t,n){var r,o=this,s=eh.p(t),i=Zf(e),a=(i.utcOffset()-this.utcOffset())*Tf,c=this-i,l=function(){return eh.m(o,i)};switch(s){case Nf:r=l()/12;break;case Bf:r=l();break;case jf:r=l()/3;break;case Ff:r=(c-a)/6048e5;break;case Rf:r=(c-a)/864e5;break;case Df:r=c/Cf;break;case Lf:r=c/Tf;break;case Ef:r=c/Of;break;default:r=c}return n?r:eh.a(r)},t.daysInMonth=function(){return this.endOf(Bf).$D},t.$locale=function(){return Yf[this.$L]},t.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=Qf(e,t,!0);return r&&(n.$L=r),n},t.clone=function(){return eh.w(this.$d,this)},t.toDate=function(){return new Date(this.valueOf())},t.toJSON=function(){return this.isValid()?this.toISOString():null},t.toISOString=function(){return this.$d.toISOString()},t.toString=function(){return this.$d.toUTCString()},e}(),nh=th.prototype;Zf.prototype=nh,[["$ms",Mf],["$s",Ef],["$m",Lf],["$H",Df],["$W",Rf],["$M",Bf],["$y",Nf],["$D",Uf]].forEach(function(e){nh[e[1]]=function(t){return this.$g(t,e[0],e[1])}}),Zf.extend=function(e,t){return e.$i||(e(t,th,Zf),e.$i=!0),Zf},Zf.locale=Qf,Zf.isDayjs=Gf,Zf.unix=function(e){return Zf(1e3*e)},Zf.en=Yf[Jf],Zf.Ls=Yf,Zf.p={};const rh={pages:[{path:"pages/index/index",style:{navigationBarTitleText:"青大附院OPO管理平台",enablePullDownRefresh:!0}},{path:"pages/login/Login",style:{navigationBarTitleText:"登录",navigationStyle:"custom"}},{path:"pages/login/Register",style:{navigationBarTitleText:"注册",navigationStyle:"custom"}},{path:"pages/my/index",style:{navigationBarTitleText:"个人中心"}}],subPackages:[{root:"pagesSub/case",name:"案例上报模块",pages:[{path:"index",style:{navigationBarTitleText:"我的上报"}},{path:"CaseDetails",style:{navigationBarTitleText:"上报案例"}},{path:"CaseInfo",style:{navigationBarTitleText:"案例详情"}},{path:"transfer",style:{navigationBarTitleText:"转运登记"}},{path:"transferinfo",style:{navigationBarTitleText:"登记单详情"}}]},{root:"pagesSub/ethicalReview",name:"伦理审查模块",pages:[{path:"ethicalInfo",style:{navigationBarTitleText:"伦理审查"}},{path:"index",style:{navigationBarTitleText:"审查记录"}}]},{root:"pagesSub/my",name:"我的扩展模块",pages:[{path:"notification",style:{navigationBarTitleText:"消息通知"}},{path:"profile",style:{navigationBarTitleText:"个人信息"}},{path:"health-records",style:{navigationBarTitleText:"健康档案"}}]},{root:"pagesSub/common",name:"通用功能模块",pages:[{path:"search/index",style:{navigationBarTitleText:"搜索"}},{path:"news/list",style:{navigationBarTitleText:"医院资讯"}},{path:"news/detail",style:{navigationBarTitleText:"资讯详情"}}]}],preloadRule:{"pages/index/index":{network:"wifi",packages:["pagesSub/my"]},"pages/login/Login":{network:"wifi",packages:["pagesSub/my"]},"pages/my/index":{network:"wifi",packages:["pagesSub/my"]},"pagesSub/case/index":{network:"wifi",packages:[]}},globalStyle:{navigationBarTextStyle:"white",navigationBarBackgroundColor:"#0f95b0",backgroundColor:"#F5F6FA"},uniIdRouter:{},tabBar:{color:"#999999",selectedColor:"#0f95b0",backgroundColor:"#FFFFFF",borderStyle:"black",list:[{pagePath:"pages/index/index",text:"首页",iconPath:"static/tabbar/home.png",selectedIconPath:"static/tabbar/home-active.png"},{pagePath:"pages/my/index",text:"我的",iconPath:"static/tabbar/my.png",selectedIconPath:"static/tabbar/my-active.png"}]},easycom:{autoscan:!0,custom:{"^uni-(.*)":"@dcloudio/uni-ui/lib/uni-$1/uni-$1","^u--(.*)":"@/uni_modules/uview-plus/components/u-$1/u-$1.vue","^up-(.*)":"@/uni_modules/uview-plus/components/u-$1/u-$1.vue","^u-([^-].*)":"@/uni_modules/uview-plus/components/u-$1/u-$1.vue"}}};function oh(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 sh=oh(function(e,t){var n;e.exports=(n=n||function(e){var t=Object.create||function(){function e(){}return function(t){var n;return e.prototype=t,n=new e,e.prototype=null,n}}(),n={},r=n.lib={},o=r.Base={extend:function(e){var n=t(this);return e&&n.mixIn(e),n.hasOwnProperty("init")&&this.init!==n.init||(n.init=function(){n.$super.init.apply(this,arguments)}),n.init.prototype=n,n.$super=this,n},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)}},s=r.WordArray=o.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=null!=t?t:4*e.length},toString:function(e){return(e||a).stringify(this)},concat:function(e){var t=this.words,n=e.words,r=this.sigBytes,o=e.sigBytes;if(this.clamp(),r%4)for(var s=0;s<o;s++){var i=n[s>>>2]>>>24-s%4*8&255;t[r+s>>>2]|=i<<24-(r+s)%4*8}else for(s=0;s<o;s+=4)t[r+s>>>2]=n[s>>>2];return this.sigBytes+=o,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=o.clone.call(this);return e.words=this.words.slice(0),e},random:function(t){for(var n,r=[],o=function(t){var n=987654321,r=4294967295;return function(){var o=((n=36969*(65535&n)+(n>>16)&r)<<16)+(t=18e3*(65535&t)+(t>>16)&r)&r;return o/=4294967296,(o+=.5)*(e.random()>.5?1:-1)}},i=0;i<t;i+=4){var a=o(4294967296*(n||e.random()));n=987654071*a(),r.push(4294967296*a()|0)}return new s.init(r,t)}}),i=n.enc={},a=i.Hex={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],o=0;o<n;o++){var s=t[o>>>2]>>>24-o%4*8&255;r.push((s>>>4).toString(16)),r.push((15&s).toString(16))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r<t;r+=2)n[r>>>3]|=parseInt(e.substr(r,2),16)<<24-r%8*4;return new s.init(n,t/2)}},c=i.Latin1={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],o=0;o<n;o++){var s=t[o>>>2]>>>24-o%4*8&255;r.push(String.fromCharCode(s))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r<t;r++)n[r>>>2]|=(255&e.charCodeAt(r))<<24-r%4*8;return new s.init(n,t)}},l=i.Utf8={stringify:function(e){try{return decodeURIComponent(escape(c.stringify(e)))}catch(t){throw new Error("Malformed UTF-8 data")}},parse:function(e){return c.parse(unescape(encodeURIComponent(e)))}},u=r.BufferedBlockAlgorithm=o.extend({reset:function(){this._data=new s.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=l.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var n=this._data,r=n.words,o=n.sigBytes,i=this.blockSize,a=o/(4*i),c=(a=t?e.ceil(a):e.max((0|a)-this._minBufferSize,0))*i,l=e.min(4*c,o);if(c){for(var u=0;u<c;u+=i)this._doProcessBlock(r,u);var f=r.splice(0,c);n.sigBytes-=l}return new s.init(f,l)},clone:function(){var e=o.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0});r.Hasher=u.extend({cfg:o.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){u.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 f.HMAC.init(e,n).finalize(t)}}});var f=n.algo={};return n}(Math),n)}),ih=sh,ah=(oh(function(e,t){var n;e.exports=(n=ih,function(e){var t=n,r=t.lib,o=r.WordArray,s=r.Hasher,i=t.algo,a=[];!function(){for(var t=0;t<64;t++)a[t]=4294967296*e.abs(e.sin(t+1))|0}();var c=i.MD5=s.extend({_doReset:function(){this._hash=new o.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(e,t){for(var n=0;n<16;n++){var r=t+n,o=e[r];e[r]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8)}var s=this._hash.words,i=e[t+0],c=e[t+1],d=e[t+2],p=e[t+3],g=e[t+4],m=e[t+5],_=e[t+6],y=e[t+7],v=e[t+8],w=e[t+9],b=e[t+10],x=e[t+11],k=e[t+12],S=e[t+13],$=e[t+14],I=e[t+15],A=s[0],P=s[1],O=s[2],T=s[3];A=l(A,P,O,T,i,7,a[0]),T=l(T,A,P,O,c,12,a[1]),O=l(O,T,A,P,d,17,a[2]),P=l(P,O,T,A,p,22,a[3]),A=l(A,P,O,T,g,7,a[4]),T=l(T,A,P,O,m,12,a[5]),O=l(O,T,A,P,_,17,a[6]),P=l(P,O,T,A,y,22,a[7]),A=l(A,P,O,T,v,7,a[8]),T=l(T,A,P,O,w,12,a[9]),O=l(O,T,A,P,b,17,a[10]),P=l(P,O,T,A,x,22,a[11]),A=l(A,P,O,T,k,7,a[12]),T=l(T,A,P,O,S,12,a[13]),O=l(O,T,A,P,$,17,a[14]),A=u(A,P=l(P,O,T,A,I,22,a[15]),O,T,c,5,a[16]),T=u(T,A,P,O,_,9,a[17]),O=u(O,T,A,P,x,14,a[18]),P=u(P,O,T,A,i,20,a[19]),A=u(A,P,O,T,m,5,a[20]),T=u(T,A,P,O,b,9,a[21]),O=u(O,T,A,P,I,14,a[22]),P=u(P,O,T,A,g,20,a[23]),A=u(A,P,O,T,w,5,a[24]),T=u(T,A,P,O,$,9,a[25]),O=u(O,T,A,P,p,14,a[26]),P=u(P,O,T,A,v,20,a[27]),A=u(A,P,O,T,S,5,a[28]),T=u(T,A,P,O,d,9,a[29]),O=u(O,T,A,P,y,14,a[30]),A=f(A,P=u(P,O,T,A,k,20,a[31]),O,T,m,4,a[32]),T=f(T,A,P,O,v,11,a[33]),O=f(O,T,A,P,x,16,a[34]),P=f(P,O,T,A,$,23,a[35]),A=f(A,P,O,T,c,4,a[36]),T=f(T,A,P,O,g,11,a[37]),O=f(O,T,A,P,y,16,a[38]),P=f(P,O,T,A,b,23,a[39]),A=f(A,P,O,T,S,4,a[40]),T=f(T,A,P,O,i,11,a[41]),O=f(O,T,A,P,p,16,a[42]),P=f(P,O,T,A,_,23,a[43]),A=f(A,P,O,T,w,4,a[44]),T=f(T,A,P,O,k,11,a[45]),O=f(O,T,A,P,I,16,a[46]),A=h(A,P=f(P,O,T,A,d,23,a[47]),O,T,i,6,a[48]),T=h(T,A,P,O,y,10,a[49]),O=h(O,T,A,P,$,15,a[50]),P=h(P,O,T,A,m,21,a[51]),A=h(A,P,O,T,k,6,a[52]),T=h(T,A,P,O,p,10,a[53]),O=h(O,T,A,P,b,15,a[54]),P=h(P,O,T,A,c,21,a[55]),A=h(A,P,O,T,v,6,a[56]),T=h(T,A,P,O,I,10,a[57]),O=h(O,T,A,P,_,15,a[58]),P=h(P,O,T,A,S,21,a[59]),A=h(A,P,O,T,g,6,a[60]),T=h(T,A,P,O,x,10,a[61]),O=h(O,T,A,P,d,15,a[62]),P=h(P,O,T,A,w,21,a[63]),s[0]=s[0]+A|0,s[1]=s[1]+P|0,s[2]=s[2]+O|0,s[3]=s[3]+T|0},_doFinalize:function(){var t=this._data,n=t.words,r=8*this._nDataBytes,o=8*t.sigBytes;n[o>>>5]|=128<<24-o%32;var s=e.floor(r/4294967296),i=r;n[15+(o+64>>>9<<4)]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),n[14+(o+64>>>9<<4)]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8),t.sigBytes=4*(n.length+1),this._process();for(var a=this._hash,c=a.words,l=0;l<4;l++){var u=c[l];c[l]=16711935&(u<<8|u>>>24)|4278255360&(u<<24|u>>>8)}return a},clone:function(){var e=s.clone.call(this);return e._hash=this._hash.clone(),e}});function l(e,t,n,r,o,s,i){var a=e+(t&n|~t&r)+o+i;return(a<<s|a>>>32-s)+t}function u(e,t,n,r,o,s,i){var a=e+(t&r|n&~r)+o+i;return(a<<s|a>>>32-s)+t}function f(e,t,n,r,o,s,i){var a=e+(t^n^r)+o+i;return(a<<s|a>>>32-s)+t}function h(e,t,n,r,o,s,i){var a=e+(n^(t|~r))+o+i;return(a<<s|a>>>32-s)+t}t.MD5=s._createHelper(c),t.HmacMD5=s._createHmacHelper(c)}(Math),n.MD5)}),oh(function(e,t){var n,r,o;e.exports=(r=(n=ih).lib.Base,o=n.enc.Utf8,void(n.algo.HMAC=r.extend({init:function(e,t){e=this._hasher=new e.init,"string"==typeof t&&(t=o.parse(t));var n=e.blockSize,r=4*n;t.sigBytes>r&&(t=e.finalize(t)),t.clamp();for(var s=this._oKey=t.clone(),i=this._iKey=t.clone(),a=s.words,c=i.words,l=0;l<n;l++)a[l]^=1549556828,c[l]^=909522486;s.sigBytes=i.sigBytes=r,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))}})))}),oh(function(e,t){e.exports=ih.HmacMD5})),ch=oh(function(e,t){e.exports=ih.enc.Utf8}),lh=oh(function(e,t){var n,r,o;e.exports=(o=(r=n=ih).lib.WordArray,r.enc.Base64={stringify:function(e){var t=e.words,n=e.sigBytes,r=this._map;e.clamp();for(var o=[],s=0;s<n;s+=3)for(var i=(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,a=0;a<4&&s+.75*a<n;a++)o.push(r.charAt(i>>>6*(3-a)&63));var c=r.charAt(64);if(c)for(;o.length%4;)o.push(c);return o.join("")},parse:function(e){var t=e.length,n=this._map,r=this._reverseMap;if(!r){r=this._reverseMap=[];for(var s=0;s<n.length;s++)r[n.charCodeAt(s)]=s}var i=n.charAt(64);if(i){var a=e.indexOf(i);-1!==a&&(t=a)}return function(e,t,n){for(var r=[],s=0,i=0;i<t;i++)if(i%4){var a=n[e.charCodeAt(i-1)]<<i%4*2,c=n[e.charCodeAt(i)]>>>6-i%4*2;r[s>>>2]|=(a|c)<<24-s%4*8,s++}return o.create(r,s)}(e,t,r)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="},n.enc.Base64)});const uh="uni_id_token",fh="uni_id_token_expired",hh="FUNCTION",dh="OBJECT",ph="CLIENT_DB",gh="pending",mh="rejected";function _h(e){return Object.prototype.toString.call(e).slice(8,-1).toLowerCase()}function yh(e){return"object"===_h(e)}function vh(e){return"function"==typeof e}function wh(e){return function(){try{return e.apply(e,arguments)}catch(t){console.error(t)}}}const bh="REJECTED",xh="NOT_PENDING";class kh{constructor({createPromise:e,retryRule:t=bh}={}){this.createPromise=e,this.status=null,this.promise=null,this.retryRule=t}get needRetry(){if(!this.status)return!0;switch(this.retryRule){case bh:return this.status===mh;case xh:return this.status!==gh}}exec(){return this.needRetry?(this.status=gh,this.promise=this.createPromise().then(e=>(this.status="fulfilled",Promise.resolve(e)),e=>(this.status=mh,Promise.reject(e))),this.promise):this.promise}}class Sh{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 r=function(e,t){for(let n=e.length-1;n>=0;n--)if(e[n]===t)return n;return-1}(n,t);n.splice(r,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 r=0;r<n.length;r++)n[r](...t)}}function $h(e){return e&&"string"==typeof e?JSON.parse(e):e}const Ih=$h([]),Ah="mp-weixin";$h("");const Ph=$h("[]")||[];let Oh="";try{Oh="__UNI__90996F2"}catch(yd){}let Th={};function Ch(e,t={}){var n,r;return n=Th,r=e,Object.prototype.hasOwnProperty.call(n,r)||(Th[e]=t),Th[e]}const Mh=["invoke","success","fail","complete"],Eh=Ch("_globalUniCloudInterceptor");function Lh(e,t){Eh[e]||(Eh[e]={}),yh(t)&&Object.keys(t).forEach(n=>{Mh.indexOf(n)>-1&&function(e,t,n){let r=Eh[e][t];r||(r=Eh[e][t]=[]),-1===r.indexOf(n)&&vh(n)&&r.push(n)}(e,n,t[n])})}function Dh(e,t){Eh[e]||(Eh[e]={}),yh(t)?Object.keys(t).forEach(n=>{Mh.indexOf(n)>-1&&function(e,t,n){const r=Eh[e][t];if(!r)return;const o=r.indexOf(n);o>-1&&r.splice(o,1)}(e,n,t[n])}):delete Eh[e]}function Rh(e,t){return e&&0!==e.length?e.reduce((e,n)=>e.then(()=>n(t)),Promise.resolve()):Promise.resolve()}function Fh(e,t){return Eh[e]&&Eh[e][t]||[]}function Bh(e){Lh("callObject",e)}const jh=Ch("_globalUniCloudListener"),Nh="response",Uh="needLogin",Hh="refreshToken",Wh="clientdb",qh="cloudfunction",zh="cloudobject";function Kh(e){return jh[e]||(jh[e]=[]),jh[e]}function Vh(e,t){const n=Kh(e);n.includes(t)||n.push(t)}function Jh(e,t){const n=Kh(e),r=n.indexOf(t);-1!==r&&n.splice(r,1)}function Yh(e,t){const n=Kh(e);for(let r=0;r<n.length;r++)(0,n[r])(t)}let Xh,Gh=!1;function Qh(){return Xh||(Xh=new Promise(e=>{Gh&&e(),function t(){if("function"==typeof getCurrentPages){const t=getCurrentPages();t&&t[0]&&(Gh=!0,e())}Gh||setTimeout(()=>{t()},30)}()}),Xh)}function Zh(e){const t={};for(const n in e){const r=e[n];vh(r)&&(t[n]=wh(r))}return t}class ed extends Error{constructor(e){const t=e.message||e.errMsg||"unknown system error";super(t),this.errMsg=t,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 td={request:e=>En.request(e),uploadFile:e=>En.uploadFile(e),setStorageSync:(e,t)=>En.setStorageSync(e,t),getStorageSync:e=>En.getStorageSync(e),removeStorageSync:e=>En.removeStorageSync(e),clearStorageSync:()=>En.clearStorageSync(),connectSocket:e=>En.connectSocket(e)};function nd(e){return e&&nd(e.__v_raw)||e}function rd(){return{token:td.getStorageSync(uh)||td.getStorageSync("uniIdToken"),tokenExpired:td.getStorageSync(fh)}}function od({token:e,tokenExpired:t}={}){e&&td.setStorageSync(uh,e),t&&td.setStorageSync(fh,t)}let sd,id;function ad(){return sd||(sd=Mn.canIUse("getAppBaseInfo")&&Mn.canIUse("getDeviceInfo")?{...En.getAppBaseInfo(),...En.getDeviceInfo()}:En.getSystemInfoSync()),sd}function cd(){let e,t;try{if(En.getLaunchOptionsSync){if(En.getLaunchOptionsSync.toString().indexOf("not yet implemented")>-1)return;const{scene:n,channel:r}=En.getLaunchOptionsSync();e=r,t=n}}catch(n){}return{channel:e,scene:t}}let ld={};function ud(){const e=En.getLocale&&En.getLocale()||"en";if(id)return{...ld,...id,locale:e,LOCALE:e};const t=ad(),{deviceId:n,osName:r,uniPlatform:o,appId:s}=t,i=["appId","appLanguage","appName","appVersion","appVersionCode","appWgtVersion","browserName","browserVersion","deviceBrand","deviceId","deviceModel","deviceType","osName","osVersion","romName","romVersion","ua","hostName","hostVersion","uniPlatform","uniRuntimeVersion","uniRuntimeVersionCode","uniCompilerVersion","uniCompilerVersionCode"];for(const a in t)Object.hasOwnProperty.call(t,a)&&-1===i.indexOf(a)&&delete t[a];return id={PLATFORM:o,OS:r,APPID:s,DEVICEID:n,...cd(),...t},{...ld,...id,locale:e,LOCALE:e}}var fd=function(e,t){let n="";return Object.keys(e).sort().forEach(function(t){e[t]&&(n=n+"&"+t+"="+e[t])}),n=n.slice(1),ah(n,t).toString()},hd=function(e,t){return new Promise((n,r)=>{t(Object.assign(e,{complete(e){e||(e={});const t=e.data&&e.data.header&&e.data.header["x-serverless-request-id"]||e.header&&e.header["request-id"];if(!e.statusCode||e.statusCode>=400){const n=e.data&&e.data.error&&e.data.error.code||"SYS_ERR",o=e.data&&e.data.error&&e.data.error.message||e.errMsg||"request:fail";return r(new ed({code:n,message:o,requestId:t}))}const o=e.data;if(o.error)return r(new ed({code:o.error.code,message:o.error.message,requestId:t}));o.result=o.data,o.requestId=t,delete o.data,n(o)}}))})},dd=function(e){return lh.stringify(ch.parse(e))},pd=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=td,this._getAccessTokenPromiseHub=new kh({createPromise:()=>this.requestAuth(this.setupRequest({method:"serverless.auth.user.anonymousAuthorize",params:"{}"},"auth")).then(e=>{if(!e.result||!e.result.accessToken)throw new ed({code:"AUTH_FAILED",message:"获取accessToken失败"});this.setAccessToken(e.result.accessToken)}),retryRule:xh})}get hasAccessToken(){return!!this.accessToken}setAccessToken(e){this.accessToken=e}requestWrapped(e){return hd(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"]=fd(t.data,this.config.clientSecret),t}setupRequest(e,t){const n=Object.assign({},e,{spaceId:this.config.spaceId,timestamp:Date.now()}),r={"Content-Type":"application/json"};return"auth"!==t&&(n.token=this.accessToken,r["x-basement-token"]=this.accessToken),r["x-serverless-sign"]=fd(n,this.config.clientSecret),{url:this.config.requestUrl,method:"POST",data:n,dataType:"json",header:r}}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),timeout:e.timeout})}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:r,fileType:o,onUploadProgress:s}){return new Promise((i,a)=>{const c=this.adapter.uploadFile({url:e,formData:t,name:n,filePath:r,fileType:o,header:{"X-OSS-server-side-encrpytion":"AES256"},success(e){e&&e.statusCode<400?i(e):a(new ed({code:"UPLOAD_FAILED",message:"文件上传失败"}))},fail(e){a(new ed({code:e.code||"UPLOAD_FAILED",message:e.message||e.errMsg||"文件上传失败"}))}});"function"==typeof s&&c&&"function"==typeof c.onProgressUpdate&&c.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:r=!1,onUploadProgress:o,config:s}){if("string"!==_h(t))throw new ed({code:"INVALID_PARAM",message:"cloudPath必须为字符串类型"});if(!(t=t.trim()))throw new ed({code:"INVALID_PARAM",message:"cloudPath不可为空"});if(/:\/\//.test(t))throw new ed({code:"INVALID_PARAM",message:"cloudPath不合法"});const i=s&&s.envType||this.config.envType;if(r&&("/"!==t[0]&&(t="/"+t),t.indexOf("\\")>-1))throw new ed({code:"INVALID_PARAM",message:"使用cloudPath作为路径时,cloudPath不可包含“\\”"});const a=(await this.getOSSUploadOptionsFromPath({env:i,filename:r?t.split("/").pop():t,fileId:r?t:void 0})).result,c="https://"+a.cdnDomain+"/"+a.ossPath,{securityToken:l,accessKeyId:u,signature:f,host:h,ossPath:d,id:p,policy:g,ossCallbackUrl:m}=a,_={"Cache-Control":"max-age=2592000","Content-Disposition":"attachment",OSSAccessKeyId:u,Signature:f,host:h,id:p,key:d,policy:g,success_action_status:200};if(l&&(_["x-oss-security-token"]=l),m){const e=JSON.stringify({callbackUrl:m,callbackBody:JSON.stringify({fileId:p,spaceId:this.config.spaceId}),callbackBodyType:"application/json"});_.callback=dd(e)}const y={url:"https://"+a.host,formData:_,fileName:"file",name:"file",filePath:e,fileType:n};if(await this.uploadFileToOSS(Object.assign({},y,{onUploadProgress:o})),m)return{success:!0,filePath:e,fileID:c};if((await this.reportOSSUpload({id:p})).success)return{success:!0,filePath:e,fileID:c};throw new ed({code:"UPLOAD_FAILED",message:"文件上传失败"})}getTempFileURL({fileList:e}={}){return new Promise((t,n)=>{Array.isArray(e)&&0!==e.length||n(new ed({code:"INVALID_PARAM",message:"fileList的元素必须是非空的字符串"})),this.getFileInfo({fileList:e}).then(n=>{t({fileList:e.map((e,t)=>{const r=n.fileList[t];return{fileID:e,tempFileURL:r&&r.url||e}})})})})}async getFileInfo({fileList:e}={}){if(!Array.isArray(e)||0===e.length)throw new ed({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}}},gd={init(e){const t=new pd(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 md="undefined"!=typeof location&&"http:"===location.protocol?"http:":"https:";var _d,yd;(yd=_d||(_d={})).local="local",yd.none="none",yd.session="session";var vd=function(){},wd=oh(function(e,t){var n;e.exports=(n=ih,function(e){var t=n,r=t.lib,o=r.WordArray,s=r.Hasher,i=t.algo,a=[],c=[];!function(){function t(t){for(var n=e.sqrt(t),r=2;r<=n;r++)if(!(t%r))return!1;return!0}function n(e){return 4294967296*(e-(0|e))|0}for(var r=2,o=0;o<64;)t(r)&&(o<8&&(a[o]=n(e.pow(r,.5))),c[o]=n(e.pow(r,1/3)),o++),r++}();var l=[],u=i.SHA256=s.extend({_doReset:function(){this._hash=new o.init(a.slice(0))},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],o=n[1],s=n[2],i=n[3],a=n[4],u=n[5],f=n[6],h=n[7],d=0;d<64;d++){if(d<16)l[d]=0|e[t+d];else{var p=l[d-15],g=(p<<25|p>>>7)^(p<<14|p>>>18)^p>>>3,m=l[d-2],_=(m<<15|m>>>17)^(m<<13|m>>>19)^m>>>10;l[d]=g+l[d-7]+_+l[d-16]}var y=r&o^r&s^o&s,v=(r<<30|r>>>2)^(r<<19|r>>>13)^(r<<10|r>>>22),w=h+((a<<26|a>>>6)^(a<<21|a>>>11)^(a<<7|a>>>25))+(a&u^~a&f)+c[d]+l[d];h=f,f=u,u=a,a=i+w|0,i=s,s=o,o=r,r=w+(v+y)|0}n[0]=n[0]+r|0,n[1]=n[1]+o|0,n[2]=n[2]+s|0,n[3]=n[3]+i|0,n[4]=n[4]+a|0,n[5]=n[5]+u|0,n[6]=n[6]+f|0,n[7]=n[7]+h|0},_doFinalize:function(){var t=this._data,n=t.words,r=8*this._nDataBytes,o=8*t.sigBytes;return n[o>>>5]|=128<<24-o%32,n[14+(o+64>>>9<<4)]=e.floor(r/4294967296),n[15+(o+64>>>9<<4)]=r,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)}),bd=wd,xd=oh(function(e,t){e.exports=ih.HmacSHA256});const kd=()=>{let e;if(!Promise){e=()=>{},e.promise={};const t=()=>{throw new ed({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,r)=>e?n(e):t(r)});return e.promise=t,e};function Sd(e){return void 0===e}function $d(e){return"[object Null]"===Object.prototype.toString.call(e)}function Id(e=""){return e.replace(/([\s\S]+)\s+(请前往云开发AI小助手查看问题:.*)/,"$1")}function Ad(e=32){let t="";for(let n=0;n<e;n++)t+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".charAt(Math.floor(62*Math.random()));return t}var Pd;!function(e){e.WEB="web",e.WX_MP="wx_mp"}(Pd||(Pd={}));const Od={adapter:null,runtime:void 0},Td=["anonymousUuidKey"];class Cd extends vd{constructor(){super(),Od.adapter.root.tcbObject||(Od.adapter.root.tcbObject={})}setItem(e,t){Od.adapter.root.tcbObject[e]=t}getItem(e){return Od.adapter.root.tcbObject[e]}removeItem(e){delete Od.adapter.root.tcbObject[e]}clear(){delete Od.adapter.root.tcbObject}}function Md(e,t){switch(e){case"local":return t.localStorage||new Cd;case"none":return new Cd;default:return t.sessionStorage||new Cd}}class Ed{constructor(e){if(!this._storage){this._persistence=Od.adapter.primaryStorage||e.persistence,this._storage=Md(this._persistence,Od.adapter);const t=`access_token_${e.env}`,n=`access_token_expire_${e.env}`,r=`refresh_token_${e.env}`,o=`anonymous_uuid_${e.env}`,s=`login_type_${e.env}`,i="device_id",a=`token_type_${e.env}`,c=`user_info_${e.env}`;this.keys={accessTokenKey:t,accessTokenExpireKey:n,refreshTokenKey:r,anonymousUuidKey:o,loginTypeKey:s,userInfoKey:c,deviceIdKey:i,tokenTypeKey:a}}}updatePersistence(e){if(e===this._persistence)return;const t="local"===this._persistence;this._persistence=e;const n=Md(e,Od.adapter);for(const r in this.keys){const e=this.keys[r];if(t&&Td.includes(r))continue;const o=this._storage.getItem(e);Sd(o)||$d(o)||(n.setItem(e,o),this._storage.removeItem(e))}this._storage=n}setStore(e,t,n){if(!this._storage)return;const r={version:n||"localCachev1",content:t},o=JSON.stringify(r);try{this._storage.setItem(e,o)}catch(s){throw s}}getStore(e,t){try{if(!this._storage)return}catch(r){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 Ld={},Dd={};function Rd(e){return Ld[e]}class Fd{constructor(e,t){this.data=t||null,this.name=e}}class Bd extends Fd{constructor(e,t){super("error",{error:e,data:t}),this.error=e}}const jd=new class{constructor(){this._listeners={}}on(e,t){return n=e,r=t,(o=this._listeners)[n]=o[n]||[],o[n].push(r),this;var n,r,o}off(e,t){return function(e,t,n){if(n&&n[e]){const r=n[e].indexOf(t);-1!==r&&n[e].splice(r,1)}}(e,t,this._listeners),this}fire(e,t){if(e instanceof Bd)return console.error(e.error),this;const n="string"==typeof e?new Fd(e,t||{}):e,r=n.name;if(this._listens(r)){n.target=this;const e=this._listeners[r]?[...this._listeners[r]]:[];for(const t of e)t.call(this,n)}return this}_listens(e){return this._listeners[e]&&this._listeners[e].length>0}};function Nd(e,t){jd.on(e,t)}function Ud(e,t={}){jd.fire(e,t)}function Hd(e,t){jd.off(e,t)}const Wd="loginStateChanged",qd="loginStateExpire",zd="loginTypeChanged",Kd="anonymousConverted",Vd="refreshAccessToken";var Jd;!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"}(Jd||(Jd={}));class Yd{constructor(){this._fnPromiseMap=new Map}async run(e,t){let n=this._fnPromiseMap.get(e);return n||(n=new Promise(async(n,r)=>{try{await this._runIdlePromise();const e=t();n(await e)}catch(o){r(o)}finally{this._fnPromiseMap.delete(e)}}),this._fnPromiseMap.set(e,n)),n}_runIdlePromise(){return Promise.resolve()}}class Xd{constructor(e){this._singlePromise=new Yd,this._cache=Rd(e.env),this._baseURL=`https://${e.env}.ap-shanghai.tcb-api.tencentcloudapi.com`,this._reqClass=new Od.adapter.reqClass({timeout:e.timeout,timeoutMsg:`请求在${e.timeout/1e3}s内未完成,已中断`,restrictedMethods:["post"]})}_getDeviceId(){if(this._deviceID)return this._deviceID;const{deviceIdKey:e}=this._cache.keys;let t=this._cache.getStore(e);return"string"==typeof t&&t.length>=16&&t.length<=48||(t=Ad(),this._cache.setStore(e,t)),this._deviceID=t,t}async _request(e,t,n={}){const r={"x-request-id":Ad(),"x-device-id":this._getDeviceId()};if(n.withAccessToken){const{tokenTypeKey:e}=this._cache.keys,t=await this.getAccessToken(),n=this._cache.getStore(e);r.authorization=`${n} ${t}`}return this._reqClass["get"===n.method?"get":"post"]({url:`${this._baseURL}${e}`,data:t,headers:r})}async _fetchAccessToken(){const{loginTypeKey:e,accessTokenKey:t,accessTokenExpireKey:n,tokenTypeKey:r}=this._cache.keys,o=this._cache.getStore(e);if(o&&o!==Jd.ANONYMOUS)throw new ed({code:"INVALID_OPERATION",message:"非匿名登录不支持刷新 access token"});const s=await this._singlePromise.run("fetchAccessToken",async()=>(await this._request("/auth/v1/signin/anonymously",{},{method:"post"})).data),{access_token:i,expires_in:a,token_type:c}=s;return this._cache.setStore(r,c),this._cache.setStore(t,i),this._cache.setStore(n,Date.now()+1e3*a),i}isAccessTokenExpired(e,t){let n=!0;return e&&t&&(n=t<Date.now()),n}async getAccessToken(){const{accessTokenKey:e,accessTokenExpireKey:t}=this._cache.keys,n=this._cache.getStore(e),r=this._cache.getStore(t);return this.isAccessTokenExpired(n,r)?this._fetchAccessToken():n}async refreshAccessToken(){const{accessTokenKey:e,accessTokenExpireKey:t,loginTypeKey:n}=this._cache.keys;return this._cache.removeStore(e),this._cache.removeStore(t),this._cache.setStore(n,Jd.ANONYMOUS),this.getAccessToken()}async getUserInfo(){return this._singlePromise.run("getUserInfo",async()=>(await this._request("/auth/v1/user/me",{},{withAccessToken:!0,method:"get"})).data)}}const Gd=["auth.getJwt","auth.logout","auth.signInWithTicket","auth.signInAnonymously","auth.signIn","auth.fetchAccessTokenWithRefreshToken","auth.signUpWithEmailAndPassword","auth.activateEndUserMail","auth.sendPasswordResetEmail","auth.resetPasswordWithToken","auth.isUsernameRegistered"],Qd={"X-SDK-Version":"1.3.5"};function Zd(e,t,n){const r=e[t];e[t]=function(t){const o={},s={};n.forEach(n=>{const{data:r,headers:i}=n.call(e,t);Object.assign(o,r),Object.assign(s,i)});const i=t.data;return i&&(()=>{var e;if(e=i,"[object FormData]"!==Object.prototype.toString.call(e))t.data={...i,...o};else for(const t in o)i.append(t,o[t])})(),t.headers={...t.headers||{},...s},r.call(e,t)}}function ep(){const e=Math.random().toString(16).slice(2);return{data:{seqId:e},headers:{...Qd,"x-seqid":e}}}class tp{constructor(e={}){var t;this.config=e,this._reqClass=new Od.adapter.reqClass({timeout:this.config.timeout,timeoutMsg:`请求在${this.config.timeout/1e3}s内未完成,已中断`,restrictedMethods:["post"]}),this._cache=Rd(this.config.env),this._localCache=(t=this.config.env,Dd[t]),this.oauth=new Xd(this.config),Zd(this._reqClass,"post",[ep]),Zd(this._reqClass,"upload",[ep]),Zd(this._reqClass,"download",[ep])}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:r,anonymousUuidKey:o}=this._cache.keys;this._cache.removeStore(e),this._cache.removeStore(t);let s=this._cache.getStore(n);if(!s)throw new ed({message:"未登录CloudBase"});const i={refresh_token:s},a=await this.request("auth.fetchAccessTokenWithRefreshToken",i);if(a.data.code){const{code:e}=a.data;if("SIGN_PARAM_INVALID"===e||"REFRESH_TOKEN_EXPIRED"===e||"INVALID_REFRESH_TOKEN"===e){if(this._cache.getStore(r)===Jd.ANONYMOUS&&"INVALID_REFRESH_TOKEN"===e){const e=this._cache.getStore(o),t=this._cache.getStore(n),r=await this.send("auth.signInAnonymously",{anonymous_uuid:e,refresh_token:t});return this.setRefreshToken(r.refresh_token),this._refreshAccessToken()}Ud(qd),this._cache.removeStore(n)}throw new ed({code:a.data.code,message:`刷新access token失败:${a.data.code}`})}if(a.data.access_token)return Ud(Vd),this._cache.setStore(e,a.data.access_token),this._cache.setStore(t,a.data.access_token_expire+Date.now()),{accessToken:a.data.access_token,accessTokenExpire:a.data.access_token_expire};a.data.refresh_token&&(this._cache.removeStore(n),this._cache.setStore(n,a.data.refresh_token),this._refreshAccessToken())}async getAccessToken(){const{accessTokenKey:e,accessTokenExpireKey:t,refreshTokenKey:n}=this._cache.keys;if(!this._cache.getStore(n))throw new ed({message:"refresh token不存在,登录状态异常"});let r=this._cache.getStore(e),o=this._cache.getStore(t),s=!0;return this._shouldRefreshAccessTokenHook&&!(await this._shouldRefreshAccessTokenHook(r,o))&&(s=!1),(!r||!o||o<Date.now())&&s?this.refreshAccessToken():{accessToken:r,accessTokenExpire:o}}async request(e,t,n){const r=`x-tcb-trace_${this.config.env}`;let o="application/x-www-form-urlencoded";const s={action:e,env:this.config.env,dataVersion:"2019-08-16",...t};let i;if(-1===Gd.indexOf(e)&&(this._cache.keys,s.access_token=await this.oauth.getAccessToken()),"storage.uploadFile"===e){i=new FormData;for(let e in i)i.hasOwnProperty(e)&&void 0!==i[e]&&i.append(e,s[e]);o="multipart/form-data"}else{o="application/json",i={};for(let e in s)void 0!==s[e]&&(i[e]=s[e])}let a={headers:{"content-type":o}};n&&n.timeout&&(a.timeout=n.timeout),n&&n.onUploadProgress&&(a.onUploadProgress=n.onUploadProgress);const c=this._localCache.getStore(r);c&&(a.headers["X-TCB-Trace"]=c);const{parse:l,inQuery:u,search:f}=t;let h={env:this.config.env};l&&(h.parse=!0),u&&(h={...u,...h});let d=function(e,t,n={}){const r=/\?/.test(t);let o="";for(let s in n)""===o?!r&&(t+="?"):o+="&",o+=`${s}=${encodeURIComponent(n[s])}`;return/^http(s)?\:\/\//.test(t+=o)?t:`${e}${t}`}(md,"//tcb-api.tencentcloudapi.com/web",h);f&&(d+=f);const p=await this.post({url:d,data:i,...a}),g=p.header&&p.header["x-tcb-trace"];if(g&&this._localCache.setStore(r,g),200!==Number(p.status)&&200!==Number(p.statusCode)||!p.data)throw new ed({code:"NETWORK_ERROR",message:"network request error"});return p}async send(e,t={},n={}){const r=await this.request(e,t,{...n,onUploadProgress:t.onUploadProgress});if(("ACCESS_TOKEN_DISABLED"===r.data.code||"ACCESS_TOKEN_EXPIRED"===r.data.code)&&-1===Gd.indexOf(e)){await this.oauth.refreshAccessToken();const r=await this.request(e,t,{...n,onUploadProgress:t.onUploadProgress});if(r.data.code)throw new ed({code:r.data.code,message:Id(r.data.message)});return r.data}if(r.data.code)throw new ed({code:r.data.code,message:Id(r.data.message)});return r.data}setRefreshToken(e){const{accessTokenKey:t,accessTokenExpireKey:n,refreshTokenKey:r}=this._cache.keys;this._cache.removeStore(t),this._cache.removeStore(n),this._cache.setStore(r,e)}}const np={};function rp(e){return np[e]}class op{constructor(e){this.config=e,this._cache=Rd(e.env),this._request=rp(e.env)}setRefreshToken(e){const{accessTokenKey:t,accessTokenExpireKey:n,refreshTokenKey:r}=this._cache.keys;this._cache.removeStore(t),this._cache.removeStore(n),this._cache.setStore(r,e)}setAccessToken(e,t){const{accessTokenKey:n,accessTokenExpireKey:r}=this._cache.keys;this._cache.setStore(n,e),this._cache.setStore(r,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 sp{constructor(e){if(!e)throw new ed({code:"PARAM_ERROR",message:"envId is not defined"});this._envId=e,this._cache=Rd(this._envId),this._request=rp(this._envId),this.setUserInfo()}linkWithTicket(e){if("string"!=typeof e)throw new ed({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 ed({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:r,province:o,country:s,city:i}=e,{data:a}=await this._request.send("auth.updateUserInfo",{nickName:t,gender:n,avatarUrl:r,province:o,country:s,city:i});this.setLocalUserInfo(a)}async refresh(){const e=await this._request.oauth.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 ip{constructor(e){if(!e)throw new ed({code:"PARAM_ERROR",message:"envId is not defined"});this._cache=Rd(e);const{refreshTokenKey:t,accessTokenKey:n,accessTokenExpireKey:r}=this._cache.keys,o=this._cache.getStore(t),s=this._cache.getStore(n),i=this._cache.getStore(r);this.credential={refreshToken:o,accessToken:s,accessTokenExpire:i},this.user=new sp(e)}get isAnonymousAuth(){return this.loginType===Jd.ANONYMOUS}get isCustomAuth(){return this.loginType===Jd.CUSTOM}get isWeixinAuth(){return this.loginType===Jd.WECHAT||this.loginType===Jd.WECHAT_OPEN||this.loginType===Jd.WECHAT_PUBLIC}get loginType(){return this._cache.getStore(this._cache.keys.loginTypeKey)}}class ap extends op{async signIn(){this._cache.updatePersistence("local"),await this._request.oauth.getAccessToken(),Ud(Wd),Ud(zd,{env:this.config.env,loginType:Jd.ANONYMOUS,persistence:"local"});const e=new ip(this.config.env);return await e.user.refresh(),e}async linkAndRetrieveDataWithTicket(e){const{anonymousUuidKey:t,refreshTokenKey:n}=this._cache.keys,r=this._cache.getStore(t),o=this._cache.getStore(n),s=await this._request.send("auth.linkAndRetrieveDataWithTicket",{anonymous_uuid:r,refresh_token:o,ticket:e});if(s.refresh_token)return this._clearAnonymousUUID(),this.setRefreshToken(s.refresh_token),await this._request.refreshAccessToken(),Ud(Kd,{env:this.config.env}),Ud(zd,{loginType:Jd.CUSTOM,persistence:"local"}),{credential:{refreshToken:s.refresh_token}};throw new ed({message:"匿名转化失败"})}_setAnonymousUUID(e){const{anonymousUuidKey:t,loginTypeKey:n}=this._cache.keys;this._cache.removeStore(t),this._cache.setStore(t,e),this._cache.setStore(n,Jd.ANONYMOUS)}_clearAnonymousUUID(){this._cache.removeStore(this._cache.keys.anonymousUuidKey)}}class cp extends op{async signIn(e){if("string"!=typeof e)throw new ed({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(),Ud(Wd),Ud(zd,{env:this.config.env,loginType:Jd.CUSTOM,persistence:this.config.persistence}),await this.refreshUserInfo(),new ip(this.config.env);throw new ed({message:"自定义登录失败"})}}class lp extends op{async signIn(e,t){if("string"!=typeof e)throw new ed({code:"PARAM_ERROR",message:"email must be a string"});const{refreshTokenKey:n}=this._cache.keys,r=await this._request.send("auth.signIn",{loginType:"EMAIL",email:e,password:t,refresh_token:this._cache.getStore(n)||""}),{refresh_token:o,access_token:s,access_token_expire:i}=r;if(o)return this.setRefreshToken(o),s&&i?this.setAccessToken(s,i):await this._request.refreshAccessToken(),await this.refreshUserInfo(),Ud(Wd),Ud(zd,{env:this.config.env,loginType:Jd.EMAIL,persistence:this.config.persistence}),new ip(this.config.env);throw r.code?new ed({code:r.code,message:`邮箱登录失败: ${r.message}`}):new ed({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 up extends op{async signIn(e,t){if("string"!=typeof e)throw new ed({code:"PARAM_ERROR",message:"username must be a string"});"string"!=typeof t&&(t="",console.warn("password is empty"));const{refreshTokenKey:n}=this._cache.keys,r=await this._request.send("auth.signIn",{loginType:Jd.USERNAME,username:e,password:t,refresh_token:this._cache.getStore(n)||""}),{refresh_token:o,access_token_expire:s,access_token:i}=r;if(o)return this.setRefreshToken(o),i&&s?this.setAccessToken(i,s):await this._request.refreshAccessToken(),await this.refreshUserInfo(),Ud(Wd),Ud(zd,{env:this.config.env,loginType:Jd.USERNAME,persistence:this.config.persistence}),new ip(this.config.env);throw r.code?new ed({code:r.code,message:`用户名密码登录失败: ${r.message}`}):new ed({message:"用户名密码登录失败"})}}class fp{constructor(e){this.config=e,this._cache=Rd(e.env),this._request=rp(e.env),this._onAnonymousConverted=this._onAnonymousConverted.bind(this),this._onLoginTypeChanged=this._onLoginTypeChanged.bind(this),Nd(zd,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 ap(this.config)}customAuthProvider(){return new cp(this.config)}emailAuthProvider(){return new lp(this.config)}usernameAuthProvider(){return new up(this.config)}async signInAnonymously(){return new ap(this.config).signIn()}async signInWithEmailAndPassword(e,t){return new lp(this.config).signIn(e,t)}signInWithUsernameAndPassword(e,t){return new up(this.config).signIn(e,t)}async linkAndRetrieveDataWithTicket(e){return this._anonymousAuthProvider||(this._anonymousAuthProvider=new ap(this.config)),Nd(Kd,this._onAnonymousConverted),await this._anonymousAuthProvider.linkAndRetrieveDataWithTicket(e)}async signOut(){if(this.loginType===Jd.ANONYMOUS)throw new ed({message:"匿名用户不支持登出操作"});const{refreshTokenKey:e,accessTokenKey:t,accessTokenExpireKey:n}=this._cache.keys,r=this._cache.getStore(e);if(!r)return;const o=await this._request.send("auth.logout",{refresh_token:r});return this._cache.removeStore(e),this._cache.removeStore(t),this._cache.removeStore(n),Ud(Wd),Ud(zd,{env:this.config.env,loginType:Jd.NULL,persistence:this.config.persistence}),o}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){Nd(Wd,()=>{const t=this.hasLoginState();e.call(this,t)});const t=this.hasLoginState();e.call(this,t)}onLoginStateExpired(e){Nd(qd,e.bind(this))}onAccessTokenRefreshed(e){Nd(Vd,e.bind(this))}onAnonymousConverted(e){Nd(Kd,e.bind(this))}onLoginTypeChanged(e){Nd(zd,()=>{const t=this.hasLoginState();e.call(this,t)})}async getAccessToken(){return{accessToken:(await this._request.getAccessToken()).accessToken,env:this.config.env}}hasLoginState(){const{accessTokenKey:e,accessTokenExpireKey:t}=this._cache.keys,n=this._cache.getStore(e),r=this._cache.getStore(t);return this._request.oauth.isAccessTokenExpired(n,r)?null:new ip(this.config.env)}async isUsernameRegistered(e){if("string"!=typeof e)throw new ed({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 cp(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:r}=e.data;r===this.config.env&&(this._cache.updatePersistence(n),this._cache.setStore(this._cache.keys.loginTypeKey,t))}}const hp=function(e,t){t=t||kd();const n=rp(this.config.env),{cloudPath:r,filePath:o,onUploadProgress:s,fileType:i="image"}=e;return n.send("storage.getUploadMetadata",{path:r}).then(e=>{const{data:{url:a,authorization:c,token:l,fileId:u,cosFileId:f},requestId:h}=e,d={key:r,signature:c,"x-cos-meta-fileid":f,success_action_status:"201","x-cos-security-token":l};n.upload({url:a,data:d,file:o,name:r,fileType:i,onUploadProgress:s}).then(e=>{201===e.statusCode?t(null,{fileID:u,requestId:h}):t(new ed({code:"STORAGE_REQUEST_FAIL",message:`STORAGE_REQUEST_FAIL: ${e.data}`}))}).catch(e=>{t(e)})}).catch(e=>{t(e)}),t.promise},dp=function(e,t){t=t||kd();const n=rp(this.config.env),{cloudPath:r}=e;return n.send("storage.getUploadMetadata",{path:r}).then(e=>{t(null,e)}).catch(e=>{t(e)}),t.promise},pp=function({fileList:e},t){if(t=t||kd(),!e||!Array.isArray(e))return{code:"INVALID_PARAM",message:"fileList必须是非空的数组"};for(let r of e)if(!r||"string"!=typeof r)return{code:"INVALID_PARAM",message:"fileList的元素必须是非空的字符串"};const n={fileid_list:e};return rp(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},gp=function({fileList:e},t){t=t||kd(),e&&Array.isArray(e)||t(null,{code:"INVALID_PARAM",message:"fileList必须是非空的数组"});let n=[];for(let o of e)"object"==typeof o?(o.hasOwnProperty("fileID")&&o.hasOwnProperty("maxAge")||t(null,{code:"INVALID_PARAM",message:"fileList的元素必须是包含fileID和maxAge的对象"}),n.push({fileid:o.fileID,max_age:o.maxAge})):"string"==typeof o?n.push({fileid:o}):t(null,{code:"INVALID_PARAM",message:"fileList的元素必须是字符串"});const r={file_list:n};return rp(this.config.env).send("storage.batchGetDownloadUrl",r).then(e=>{e.code?t(null,e):t(null,{fileList:e.data.download_list,requestId:e.requestId})}).catch(e=>{t(e)}),t.promise},mp=async function({fileID:e},t){const n=(await gp.call(this,{fileList:[{fileID:e,maxAge:600}]})).fileList[0];if("SUCCESS"!==n.code)return t?t(n):new Promise(e=>{e(n)});const r=rp(this.config.env);let o=n.download_url;if(o=encodeURI(o),!t)return r.download({url:o});t(await r.download({url:o}))},_p=function({name:e,data:t,query:n,parse:r,search:o,timeout:s},i){const a=i||kd();let c;try{c=t?JSON.stringify(t):""}catch(u){return Promise.reject(u)}if(!e)return Promise.reject(new ed({code:"PARAM_ERROR",message:"函数名不能为空"}));const l={inQuery:n,parse:r,search:o,function_name:e,request_data:c};return rp(this.config.env).send("functions.invokeFunction",l,{timeout:s}).then(e=>{if(e.code)a(null,e);else{let n=e.data.response_data;if(r)a(null,{result:n,requestId:e.requestId});else try{n=JSON.parse(e.data.response_data),a(null,{result:n,requestId:e.requestId})}catch(t){a(new ed({message:"response data must be json"}))}}return a.promise}).catch(e=>{a(e)}),a.promise},yp={timeout:15e3,persistence:"session"},vp=6e5,wp={};class bp{constructor(e){this.config=e||this.config,this.authObj=void 0}init(e){switch(Od.adapter||(this.requestClient=new Od.adapter.reqClass({timeout:e.timeout||5e3,timeoutMsg:`请求在${(e.timeout||5e3)/1e3}s内未完成,已中断`})),this.config={...yp,...e},!0){case this.config.timeout>vp:console.warn("timeout大于可配置上限[10分钟],已重置为上限数值"),this.config.timeout=vp;break;case this.config.timeout<100:console.warn("timeout小于可配置下限[100ms],已重置为下限数值"),this.config.timeout=100}return new bp(this.config)}auth({persistence:e}={}){if(this.authObj)return this.authObj;const t=e||Od.adapter.primaryStorage||yp.persistence;var n;return t!==this.config.persistence&&(this.config.persistence=t),function(e){const{env:t}=e;Ld[t]=new Ed(e),Dd[t]=new Ed({...e,persistence:"local"})}(this.config),n=this.config,np[n.env]=new tp(n),this.authObj=new fp(this.config),this.authObj}on(e,t){return Nd.apply(this,[e,t])}off(e,t){return Hd.apply(this,[e,t])}callFunction(e,t){return _p.apply(this,[e,t])}deleteFile(e,t){return pp.apply(this,[e,t])}getTempFileURL(e,t){return gp.apply(this,[e,t])}downloadFile(e,t){return mp.apply(this,[e,t])}uploadFile(e,t){return hp.apply(this,[e,t])}getUploadMetadata(e,t){return dp.apply(this,[e,t])}registerExtension(e){wp[e.name]=e}async invokeExtension(e,t){const n=wp[e];if(!n)throw new ed({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 r of t){const{isMatch:e,genAdapter:t,runtime:n}=r;if(e())return{adapter:t(),runtime:n}}}(e)||{};t&&(Od.adapter=t),n&&(Od.runtime=n)}}var xp=new bp;function kp(e,t,n){void 0===n&&(n={});var r=/\?/.test(t),o="";for(var s in n)""===o?!r&&(t+="?"):o+="&",o+=s+"="+encodeURIComponent(n[s]);return/^http(s)?:\/\//.test(t+=o)?t:""+e+t}class Sp{get(e){const{url:t,data:n,headers:r,timeout:o}=e;return new Promise((e,s)=>{td.request({url:kp("https:",t),data:n,method:"GET",header:r,timeout:o,success(t){e(t)},fail(e){s(e)}})})}post(e){const{url:t,data:n,headers:r,timeout:o}=e;return new Promise((e,s)=>{td.request({url:kp("https:",t),data:n,method:"POST",header:r,timeout:o,success(t){e(t)},fail(e){s(e)}})})}upload(e){return new Promise((t,n)=>{const{url:r,file:o,data:s,headers:i,fileType:a}=e,c=td.uploadFile({url:kp("https:",r),name:"file",formData:Object.assign({},s),filePath:o,fileType:a,header:i,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&&c&&"function"==typeof c.onProgressUpdate&&c.onProgressUpdate(t=>{e.onUploadProgress({loaded:t.totalBytesSent,total:t.totalBytesExpectedToSend})})})}}const $p={setItem(e,t){td.setStorageSync(e,t)},getItem:e=>td.getStorageSync(e),removeItem(e){td.removeStorageSync(e)},clear(){td.clearStorageSync()}};var Ip={genAdapter:function(){return{root:{},reqClass:Sp,localStorage:$p,primaryStorage:"local"}},isMatch:function(){return!0},runtime:"uni_app"};xp.useAdapters(Ip);const Ap=xp,Pp=Ap.init;Ap.init=function(e){e.env=e.spaceId;const t=Pp.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:r,complete:o}=Zh(e);if(!(t||r||o))return n.call(this,e);n.call(this,e).then(e=>{t&&t(e),o&&o(e)},e=>{r&&r(e),o&&o(e)})}).bind(t)}),t},t.customAuth=t.auth,t};var Op=Ap;async function Tp(e,t){const n=`http://${e}:${t}/system/ping`;try{const e=await(r={url:n,timeout:500},new Promise((e,t)=>{td.request({...r,success(t){e(t)},fail(e){t(e)}})}));return!(!e.data||0!==e.data.code)}catch(o){return!1}var r}const Cp={"serverless.file.resource.generateProximalSign":"storage/generate-proximal-sign","serverless.file.resource.report":"storage/report","serverless.file.resource.delete":"storage/delete","serverless.file.resource.getTempFileURL":"storage/get-temp-file-url"};var Mp=class{constructor(e){if(["spaceId","clientSecret"].forEach(t=>{if(!Object.prototype.hasOwnProperty.call(e,t))throw new Error(`${t} required`)}),!e.endpoint)throw new Error("集群空间未配置ApiEndpoint,配置后需要重新关联服务空间后生效");this.config=Object.assign({},e),this.config.provider="dcloud",this.config.requestUrl=this.config.endpoint+"/client",this.config.envType=this.config.envType||"public",this.adapter=td}async request(e,t=!0){return e=this.setupRequest(e),Promise.resolve().then(()=>hd(e,this.adapter.request))}requestLocal(e){return new Promise((t,n)=>{this.adapter.request(Object.assign(e,{complete(e){if(e||(e={}),!e.statusCode||e.statusCode>=400){const t=e.data&&e.data.code||"SYS_ERR",r=e.data&&e.data.message||"request:fail";return n(new ed({code:t,message:r}))}t({success:!0,result:e.data})}}))})}setupRequest(e){const t=Object.assign({},e,{spaceId:this.config.spaceId,timestamp:Date.now()}),n={"Content-Type":"application/json"};n["x-serverless-sign"]=fd(t,this.config.clientSecret);const r=ud();n["x-client-info"]=encodeURIComponent(JSON.stringify(r));const{token:o}=rd();return n["x-client-token"]=o,{url:this.config.requestUrl,method:"POST",data:t,dataType:"json",header:JSON.parse(JSON.stringify(n))}}async setupLocalRequest(e){const t=ud(),{token:n}=rd(),r=Object.assign({},e,{spaceId:this.config.spaceId,timestamp:Date.now(),clientInfo:t,token:n}),{address:o,servePort:s}=this.__dev__&&this.__dev__.debugInfo||{},{address:i}=await async function(e,t){let n;for(let r=0;r<e.length;r++){const o=e[r];if(await Tp(o,t)){n=o;break}}return{address:n,port:t}}(o,s);return{url:`http://${i}:${s}/${Cp[e.method]}`,method:"POST",data:r,dataType:"json",header:JSON.parse(JSON.stringify({"Content-Type":"application/json"}))}}callFunction(e){const t={method:"serverless.function.runtime.invoke",params:JSON.stringify({functionTarget:e.name,functionArgs:e.data||{}})};return this.request(t,!1)}getUploadFileOptions(e){const t={method:"serverless.file.resource.generateProximalSign",params:JSON.stringify(e)};return this.request(t)}reportUploadFile(e){const t={method:"serverless.file.resource.report",params:JSON.stringify(e)};return this.request(t)}uploadFile({filePath:e,cloudPath:t,fileType:n="image",onUploadProgress:r}){if(!t)throw new ed({code:"CLOUDPATH_REQUIRED",message:"cloudPath不可为空"});let o;return this.getUploadFileOptions({cloudPath:t}).then(t=>{const{url:s,formData:i,name:a}=t.result;return o=t.result.fileUrl,new Promise((t,o)=>{const c=this.adapter.uploadFile({url:s,formData:i,name:a,filePath:e,fileType:n,success(e){e&&e.statusCode<400?t(e):o(new ed({code:"UPLOAD_FAILED",message:"文件上传失败"}))},fail(e){o(new ed({code:e.code||"UPLOAD_FAILED",message:e.message||e.errMsg||"文件上传失败"}))}});"function"==typeof r&&c&&"function"==typeof c.onProgressUpdate&&c.onProgressUpdate(e=>{r({loaded:e.totalBytesSent,total:e.totalBytesExpectedToSend})})})}).then(()=>this.reportUploadFile({cloudPath:t})).then(t=>new Promise((n,r)=>{t.success?n({success:!0,filePath:e,fileID:o}):r(new ed({code:"UPLOAD_FAILED",message:"文件上传失败"}))}))}deleteFile({fileList:e}){const t={method:"serverless.file.resource.delete",params:JSON.stringify({fileList:e})};return this.request(t).then(e=>{if(e.success)return e.result;throw new ed({code:"DELETE_FILE_FAILED",message:"删除文件失败"})})}getTempFileURL({fileList:e,maxAge:t}={}){if(!Array.isArray(e)||0===e.length)throw new ed({code:"INVALID_PARAM",message:"fileList的元素必须是非空的字符串"});const n={method:"serverless.file.resource.getTempFileURL",params:JSON.stringify({fileList:e,maxAge:t})};return this.request(n).then(e=>{if(e.success)return{fileList:e.result.fileList.map(e=>({fileID:e.fileID,tempFileURL:e.tempFileURL}))};throw new ed({code:"GET_TEMP_FILE_URL_FAILED",message:"获取临时文件链接失败"})})}},Ep={init(e){const t=new Mp(e),n={signInAnonymously:function(){return Promise.resolve()},getLoginState:function(){return Promise.resolve(!1)}};return t.auth=function(){return n},t.customAuth=t.auth,t}},Lp=oh(function(e,t){e.exports=ih.enc.Hex});function Dp(){return"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)})}function Rp(e="",t={}){const{data:n,functionName:r,method:o,headers:s,signHeaderKeys:i=[],config:a}=t,c=String(Date.now()),l=Dp(),u=Object.assign({},s,{"x-from-app-id":a.spaceAppId,"x-from-env-id":a.spaceId,"x-to-env-id":a.spaceId,"x-from-instance-id":c,"x-from-function-name":r,"x-client-timestamp":c,"x-alipay-source":"client","x-request-id":l,"x-alipay-callid":l,"x-trace-id":l}),f=["x-from-app-id","x-from-env-id","x-to-env-id","x-from-instance-id","x-from-function-name","x-client-timestamp"].concat(i),[h="",d=""]=e.split("?")||[],p=function(e){const t="HMAC-SHA256",n=e.signedHeaders.join(";"),r=e.signedHeaders.map(t=>`${t.toLowerCase()}:${e.headers[t]}\n`).join(""),o=bd(e.body).toString(Lp),s=`${e.method.toUpperCase()}\n${e.path}\n${e.query}\n${r}\n${n}\n${o}\n`,i=bd(s).toString(Lp),a=`${t}\n${e.timestamp}\n${i}\n`,c=xd(a,e.secretKey).toString(Lp);return`${t} Credential=${e.secretId}, SignedHeaders=${n}, Signature=${c}`}({path:h,query:d,method:o,headers:u,timestamp:c,body:JSON.stringify(n),secretId:a.accessKey,secretKey:a.secretKey,signedHeaders:f.sort()});return{url:`${a.endpoint}${e}`,headers:Object.assign({},u,{Authorization:p})}}function Fp({url:e,data:t,method:n="POST",headers:r={},timeout:o}){return new Promise((s,i)=>{td.request({url:e,method:n,data:"object"==typeof t?JSON.stringify(t):t,header:r,dataType:"json",timeout:o,complete:(e={})=>{const t=r["x-trace-id"]||"";if(!e.statusCode||e.statusCode>=400){const{message:n,errMsg:r,trace_id:o}=e.data||{};return i(new ed({code:"SYS_ERR",message:n||r||"request:fail",requestId:o||t}))}s({status:e.statusCode,data:e.data,headers:e.header,requestId:t})}})})}function Bp(e,t){const{path:n,data:r,method:o="GET"}=e,{url:s,headers:i}=Rp(n,{functionName:"",data:r,method:o,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 Fp({url:s,data:r,method:o,headers:i}).then(e=>{const t=e.data||{};if(!t.success)throw new ed({code:e.errCode,message:e.errMsg,requestId:e.requestId});return t.data||{}}).catch(e=>{throw new ed({code:e.errCode,message:e.errMsg,requestId:e.requestId})})}function jp(e=""){const t=e.trim().replace(/^cloud:\/\//,""),n=t.indexOf("/");if(n<=0)throw new ed({code:"INVALID_PARAM",message:"fileID不合法"});const r=t.substring(0,n),o=t.substring(n+1);return r!==this.config.spaceId&&console.warn("file ".concat(e," does not belong to env ").concat(this.config.spaceId)),o}function Np(e=""){return"cloud://".concat(this.config.spaceId,"/").concat(e.replace(/^\/+/,""))}class Up{constructor(e){this.config=e}signedURL(e,t={}){const n=`/ws/function/${e}`,r=this.config.wsEndpoint.replace(/^ws(s)?:\/\//,""),o=Object.assign({},t,{accessKeyId:this.config.accessKey,signatureNonce:Dp(),timestamp:""+Date.now()}),s=[n,["accessKeyId","authorization","signatureNonce","timestamp"].sort().map(function(e){return o[e]?"".concat(e,"=").concat(o[e]):null}).filter(Boolean).join("&"),`host:${r}`].join("\n"),i=["HMAC-SHA256",bd(s).toString(Lp)].join("\n"),a=xd(i,this.config.secretKey).toString(Lp),c=Object.keys(o).map(e=>`${e}=${encodeURIComponent(o[e])}`).join("&");return`${this.config.wsEndpoint}${n}?${c}&signature=${a}`}}var Hp=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`,wsEndpoint:e.wsEndpoint||`wss://${e.spaceId}.api-hz.cloudbasefunction.cn`}),this._websocket=new Up(this.config)}callFunction(e){return function(e,t){const{name:n,data:r,async:o=!1,timeout:s}=e,i="POST",a={"x-to-function-name":n};o&&(a["x-function-invoke-type"]="async");const{url:c,headers:l}=Rp("/functions/invokeFunction",{functionName:n,data:r,method:i,headers:a,signHeaderKeys:["x-to-function-name"],config:t});return Fp({url:c,data:r,method:i,headers:l,timeout:s}).then(e=>{let t=0;if(o){const n=e.data||{};t="200"===n.errCode?0:n.errCode,e.data=n.data||{},e.errMsg=n.errMsg}if(0!==t)throw new ed({code:t,message:e.errMsg,requestId:e.requestId});return{errCode:t,success:0===t,requestId:e.requestId,result:e.data}}).catch(e=>{throw new ed({code:e.errCode,message:e.errMsg,requestId:e.requestId})})}(e,this.config)}uploadFileToOSS({url:e,filePath:t,fileType:n,formData:r,onUploadProgress:o}){return new Promise((s,i)=>{const a=td.uploadFile({url:e,filePath:t,fileType:n,formData:r,name:"file",success(e){e&&e.statusCode<400?s(e):i(new ed({code:"UPLOAD_FAILED",message:"文件上传失败"}))},fail(e){i(new ed({code:e.code||"UPLOAD_FAILED",message:e.message||e.errMsg||"文件上传失败"}))}});"function"==typeof o&&a&&"function"==typeof a.onProgressUpdate&&a.onProgressUpdate(e=>{o({loaded:e.totalBytesSent,total:e.totalBytesExpectedToSend})})})}async uploadFile({filePath:e,cloudPath:t="",fileType:n="image",onUploadProgress:r}){if("string"!==_h(t))throw new ed({code:"INVALID_PARAM",message:"cloudPath必须为字符串类型"});if(!(t=t.trim()))throw new ed({code:"INVALID_PARAM",message:"cloudPath不可为空"});if(/:\/\//.test(t))throw new ed({code:"INVALID_PARAM",message:"cloudPath不合法"});const o=await Bp({path:"/".concat(t.replace(/^\//,""),"?post_url")},this.config),{file_id:s,upload_url:i,form_data:a}=o,c=a&&a.reduce((e,t)=>(e[t.key]=t.value,e),{});return this.uploadFileToOSS({url:i,filePath:e,fileType:n,formData:c,onUploadProgress:r}).then(()=>({fileID:s}))}async getTempFileURL({fileList:e}){return new Promise((t,n)=>{(!e||e.length<0)&&t({code:"INVALID_PARAM",message:"fileList不能为空数组"}),e.length>50&&t({code:"INVALID_PARAM",message:"fileList数组长度不能超过50"});const r=[];for(const s of e){let e;"string"!==_h(s)&&t({code:"INVALID_PARAM",message:"fileList的元素必须是非空的字符串"});try{e=jp.call(this,s)}catch(o){console.warn(o.errCode,o.errMsg),e=s}r.push({file_id:e,expire:600})}Bp({path:"/?download_url",data:{file_list:r},method:"POST"},this.config).then(e=>{const{file_list:n=[]}=e;t({fileList:n.map(e=>({fileID:Np.call(this,e.file_id),tempFileURL:e.download_url}))})}).catch(e=>n(e))})}async connectWebSocket(e){const{name:t,query:n}=e;return td.connectSocket({url:this._websocket.signedURL(t,n),complete:()=>{}})}},Wp={init:e=>{e.provider="alipay";const t=new Hp(e);return t.auth=function(){return{signInAnonymously:function(){return Promise.resolve()},getLoginState:function(){return Promise.resolve(!0)}}},t}};function qp({data:e}){let t;t=ud();const n=JSON.parse(JSON.stringify(e||{}));if(Object.assign(n,{clientInfo:t}),!n.uniIdToken){const{token:e}=rd();e&&(n.uniIdToken=e)}return n}const zp=[{rule:/fc_function_not_found|FUNCTION_NOT_FOUND/,content:",云函数[{functionName}]在云端不存在,请检查此云函数名称是否正确以及该云函数是否已上传到服务空间",mode:"append"}];var Kp=/[\\^$.*+?()[\]{}|]/g,Vp=RegExp(Kp.source);function Jp(e,t,n){return e.replace(new RegExp((r=t)&&Vp.test(r)?r.replace(Kp,"\\$&"):r,"g"),n);var r}const Yp="request",Xp="response",Gp="both",Qp="_globalUniCloudStatus",Zp={code:2e4,message:"System error"},eg={code:20101,message:"Invalid client"};function tg(e){const{errSubject:t,subject:n,errCode:r,errMsg:o,code:s,message:i,cause:a}=e||{};return new ed({subject:t||n||"uni-secure-network",code:r||s||Zp.code,message:o||i,cause:a})}let ng;function rg({secretType:e}={}){return e===Yp||e===Xp||e===Gp}function og({functionName:e,result:t,logPvd:n}){}function sg(e){const t=e.callFunction,n=function(n){const r=n.name;n.data=qp.call(e,{data:n.data});const o={aliyun:"aliyun",tencent:"tcb",tcb:"tcb",alipay:"alipay",dcloud:"dcloud"}[this.config.provider],s=rg(n)||false;return t.call(this,n).then(e=>(e.errCode=0,!s&&og.call(this,{functionName:r,result:e,logPvd:o}),Promise.resolve(e)),e=>(!s&&og.call(this,{functionName:r,result:e,logPvd:o}),e&&e.message&&(e.message=function({message:e="",extraInfo:t={},formatter:n=[]}={}){for(let r=0;r<n.length;r++){const{rule:o,content:s,mode:i}=n[r],a=e.match(o);if(!a)continue;let c=s;for(let e=1;e<a.length;e++)c=Jp(c,`{$${e}}`,a[e]);for(const e in t)c=Jp(c,`{${e}}`,t[e]);return"replace"===i?c:e+c}return e}({message:`[${n.name}]: ${e.message}`,formatter:zp,extraInfo:{functionName:r}})),Promise.reject(e)))};e.callFunction=function(t){const{provider:r,spaceId:o}=e.config,s=t.name;let i,a;return t.data=t.data||{},i=n,i=i.bind(e),a=function({name:e,data:t={}}){return"uni-id-co"===e&&"secureNetworkHandshakeByWeixin"===t.method}(t)?i.call(e,t):rg(t)?new ng({secretType:t.secretType,uniCloudIns:e}).wrapEncryptDataCallFunction(n.bind(e))(t):function({provider:e,spaceId:t,functionName:n}={}){const{appId:r,uniPlatform:o,osName:s}=ad();let i=o;"app"===o&&(i=s);const a=function({provider:e,spaceId:t}={}){const n=Ih;if(!n)return{};e=function(e){return"tencent"===e?"tcb":e}(e);const r=n.find(n=>n.provider===e&&n.spaceId===t);return r&&r.config}({provider:e,spaceId:t});if(!a||!a.accessControl||!a.accessControl.enable)return!1;const c=a.accessControl.function||{},l=Object.keys(c);if(0===l.length)return!0;const u=function(e,t){let n,r,o;for(let s=0;s<e.length;s++){const i=e[s];i!==t?"*"!==i?i.split(",").map(e=>e.trim()).indexOf(t)>-1&&(r=i):o=i:n=i}return n||r||o}(l,n);if(!u)return!1;if((c[u]||[]).find((e={})=>e.appId===r&&(e.platform||"").toLowerCase()===i.toLowerCase()))return!0;throw console.error(`此应用[appId: ${r}, platform: ${i}]不在云端配置的允许访问的应用列表内,参考:https://uniapp.dcloud.net.cn/uniCloud/secure-network.html#verify-client`),tg(eg)}({provider:r,spaceId:o,functionName:s})?new ng({secretType:t.secretType,uniCloudIns:e}).wrapVerifyClientCallFunction(n.bind(e))(t):i(t),Object.defineProperty(a,"result",{get:()=>(console.warn("当前返回结果为Promise类型,不可直接访问其result属性,详情请参考:https://uniapp.dcloud.net.cn/uniCloud/faq?id=promise"),{})}),a.then(e=>e)}}ng=class{constructor(){throw tg({message:`Platform ${Ah} is not enabled, please check whether secure network module is enabled in your manifest.json`})}};const ig=Symbol("CLIENT_DB_INTERNAL");function ag(e,t){return e.then="DoNotReturnProxyWithAFunctionNamedThen",e._internalType=ig,e.inspect=null,e.__v_raw=void 0,new Proxy(e,{get(e,n,r){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,r)}})}function cg(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 r=e[t].indexOf(n);-1!==r&&e[t].splice(r,1)}}}const lg=["db.Geo","db.command","command.aggregate"];function ug(e,t){return lg.indexOf(`${e}.${t}`)>-1}function fg(e){switch(_h(e=nd(e))){case"array":return e.map(e=>fg(e));case"object":return e._internalType===ig||Object.keys(e).forEach(t=>{e[t]=fg(e[t])}),e;case"regexp":return{$regexp:{source:e.source,flags:e.flags}};case"date":return{$date:e.toISOString()};default:return e}}function hg(e){return e&&e.content&&e.content.$method}class dg{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:fg(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=hg(e),n=hg(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"===hg(e))return!0;e=e.prevStage}return!1}get isAggregateCommand(){let e=this;for(;e;){const t=hg(e),n=hg(e.prevStage);if("aggregate"===t&&"command"===n)return!0;e=e.prevStage}return!1}getNextStageFn(e){const t=this;return function(){return pg({$method:e,$param:fg(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(),r=this.getCommand();return r.$db.push({$method:e,$param:fg(t)}),this._database._callCloudFunction({action:n,command:r})}}function pg(e,t,n){return ag(new dg(e,t,n),{get(e,t){let r="db";return e&&e.content&&(r=e.content.$method),ug(r,t)?pg({$method:t},e,n):function(){return pg({$method:t,$param:fg(Array.from(arguments))},e,n)}}})}function gg({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())}}}class mg{constructor({uniClient:e={},isJQL:t=!1}={}){this._uniClient=e,this._authCallBacks={},this._dbCallBacks={},e._isDefault&&(this._dbCallBacks=Ch("_globalUniCloudDatabaseCallback")),t||(this.auth=cg(this._authCallBacks)),this._isJQL=t,Object.assign(this,cg(this._dbCallBacks)),this.env=ag({},{get:(e,t)=>({$env:t})}),this.Geo=ag({},{get:(e,t)=>gg({path:["Geo"],method:t})}),this.serverDate=gg({path:[],method:"serverDate"}),this.RegExp=gg({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})}}function _g(e,t={}){return ag(new e(t),{get:(e,t)=>ug("db",t)?pg({$method:t},null,e):function(){return pg({$method:t,$param:fg(Array.from(arguments))},null,e)}})}class yg extends mg{_parseResult(e){return this._isJQL?e.result:e}_callCloudFunction({action:e,command:t,multiCommand:n,queryList:r}){function o(e,t){if(n&&r)for(let n=0;n<r.length;n++){const o=r[n];o.udb&&"function"==typeof o.udb.setResult&&(t?o.udb.setResult(t):o.udb.setResult(e.result.dataList[n]))}}const s=this,i=this._isJQL?"databaseForJQL":"database";function a(e){return s._callback("error",[e]),Rh(Fh(i,"fail"),e).then(()=>Rh(Fh(i,"complete"),e)).then(()=>(o(null,e),Yh(Nh,{type:Wh,content:e}),Promise.reject(e)))}const c=Rh(Fh(i,"invoke")),l=this._uniClient;return c.then(()=>l.callFunction({name:"DCloud-clientDB",type:ph,data:{action:e,command:t,multiCommand:n}})).then(e=>{const{code:t,message:n,token:r,tokenExpired:c,systemInfo:l=[]}=e.result;if(l)for(let o=0;o<l.length;o++){const{level:e,message:t,detail:n}=l[o];let r="[System Info]"+t;n&&(r=`${r}\n详细信息:${n}`),(console[e]||console.log)(r)}if(t)return a(new ed({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,r&&c&&(od({token:r,tokenExpired:c}),this._callbackAuth("refreshToken",[{token:r,tokenExpired:c}]),this._callback("refreshToken",[{token:r,tokenExpired:c}]),Yh(Hh,{token:r,tokenExpired:c}));const u=[{prop:"affectedDocs",tips:"affectedDocs不再推荐使用,请使用inserted/deleted/updated/data.length替代"},{prop:"code",tips:"code不再推荐使用,请使用errCode替代"},{prop:"message",tips:"message不再推荐使用,请使用errMsg替代"}];for(let o=0;o<u.length;o++){const{prop:t,tips:n}=u[o];if(t in e.result){const r=e.result[t];Object.defineProperty(e.result,t,{get:()=>(console.warn(n),r)})}}return f=e,Rh(Fh(i,"success"),f).then(()=>Rh(Fh(i,"complete"),f)).then(()=>{o(f,null);const e=s._parseResult(f);return Yh(Nh,{type:Wh,content:e}),Promise.resolve(e)});var f},e=>(/fc_function_not_found|FUNCTION_NOT_FOUND/g.test(e.message)&&console.warn("clientDB未初始化,请在web控制台保存一次schema以开启clientDB"),a(new ed({code:e.code||"SYSTEM_ERROR",message:e.message,requestId:e.requestId}))))}}const vg="token无效,跳转登录页面",wg="token过期,跳转登录页面",bg={TOKEN_INVALID_TOKEN_EXPIRED:wg,TOKEN_INVALID_INVALID_CLIENTID:vg,TOKEN_INVALID:vg,TOKEN_INVALID_WRONG_TOKEN:vg,TOKEN_INVALID_ANONYMOUS_USER:vg},xg={"uni-id-token-expired":wg,"uni-id-check-token-failed":vg,"uni-id-token-not-exist":vg,"uni-id-check-device-feature-failed":vg},kg={...bg,...xg,default:"用户未登录或登录状态过期,自动跳转登录页面"};function Sg(e,t){let n="";return n=e?`${e}/${t}`:t,n.replace(/^\//,"")}function $g(e=[],t=""){const n=[],r=[];return e.forEach(e=>{!0===e.needLogin?n.push(Sg(t,e.path)):!1===e.needLogin&&r.push(Sg(t,e.path))}),{needLoginPage:n,notNeedLoginPage:r}}function Ig(e){return e.split("?")[0].replace(/^\//,"")}function Ag(){return function(e){let t=e&&e.$page&&e.$page.fullPath;return t?("/"!==t.charAt(0)&&(t="/"+t),t):""}(function(){const e=getCurrentPages();return e[e.length-1]}())}function Pg(){return Ig(Ag())}function Og(e="",t={}){if(!e)return!1;if(!(t&&t.list&&t.list.length))return!1;const n=t.list,r=Ig(e);return n.some(e=>e.pagePath===r)}const Tg=!!rh.uniIdRouter,{loginPage:Cg,routerNeedLogin:Mg,resToLogin:Eg,needLoginPage:Lg,notNeedLoginPage:Dg,loginPageInTabBar:Rg}=function({pages:e=[],subPackages:t=[],uniIdRouter:n={},tabBar:r={}}=rh){const{loginPage:o,needLogin:s=[],resToLogin:i=!0}=n,{needLoginPage:a,notNeedLoginPage:c}=$g(e),{needLoginPage:l,notNeedLoginPage:u}=function(e=[]){const t=[],n=[];return e.forEach(e=>{const{root:r,pages:o=[]}=e,{needLoginPage:s,notNeedLoginPage:i}=$g(o,r);t.push(...s),n.push(...i)}),{needLoginPage:t,notNeedLoginPage:n}}(t);return{loginPage:o,routerNeedLogin:s,resToLogin:i,needLoginPage:[...a,...l],notNeedLoginPage:[...c,...u],loginPageInTabBar:Og(o,r)}}();if(Lg.indexOf(Cg)>-1)throw new Error(`Login page [${Cg}] should not be "needLogin", please check your pages.json`);function Fg(e){const t=Pg();if("/"===e.charAt(0))return e;const[n,r]=e.split("?"),o=n.replace(/^\//,"").split("/"),s=t.split("/");s.pop();for(let i=0;i<o.length;i++){const e=o[i];".."===e?s.pop():"."!==e&&s.push(e)}return""===s[0]&&s.shift(),"/"+s.join("/")+(r?"?"+r:"")}function Bg({redirect:e}){const t=Ig(e),n=Ig(Cg);return Pg()!==n&&t!==n}function jg({api:e,redirect:t}={}){if(!t||!Bg({redirect:t}))return;const n=(o=t,"/"!==(r=Cg).charAt(0)&&(r="/"+r),o?r.indexOf("?")>-1?r+`&uniIdRedirectUrl=${encodeURIComponent(o)}`:r+`?uniIdRedirectUrl=${encodeURIComponent(o)}`:r);var r,o;Rg?"navigateTo"!==e&&"redirectTo"!==e||(e="switchTab"):"switchTab"===e&&(e="navigateTo");const s={navigateTo:En.navigateTo,redirectTo:En.redirectTo,switchTab:En.switchTab,reLaunch:En.reLaunch};setTimeout(()=>{s[e]({url:n})},0)}function Ng({url:e}={}){const t={abortLoginPageJump:!1,autoToLoginPage:!1},n=function(){const{token:e,tokenExpired:t}=rd();let n;if(e){if(t<Date.now()){const e="uni-id-token-expired";n={errCode:e,errMsg:kg[e]}}}else{const e="uni-id-check-token-failed";n={errCode:e,errMsg:kg[e]}}return n}();if(function(e){const t=Ig(Fg(e));return!(Dg.indexOf(t)>-1)&&(Lg.indexOf(t)>-1||Mg.some(t=>{return n=e,new RegExp(t).test(n);var n}))}(e)&&n){if(n.uniIdRedirectUrl=e,Kh(Uh).length>0)return setTimeout(()=>{Yh(Uh,n)},0),t.abortLoginPageJump=!0,t;t.autoToLoginPage=!0}return t}function Ug(){!function(){const e=Ag(),{abortLoginPageJump:t,autoToLoginPage:n}=Ng({url:e});t||n&&jg({api:"redirectTo",redirect:e})}();const e=["navigateTo","redirectTo","reLaunch","switchTab"];for(let t=0;t<e.length;t++){const n=e[t];En.addInterceptor(n,{invoke(e){const{abortLoginPageJump:t,autoToLoginPage:r}=Ng({url:e.url});return t?e:r?(jg({api:n,redirect:Fg(e.url)}),!1):e}})}}function Hg(){this.onResponse(e=>{const{type:t,content:n}=e;let r=!1;switch(t){case"cloudobject":r=function(e){if("object"!=typeof e)return!1;const{errCode:t}=e||{};return t in kg}(n);break;case"clientdb":r=function(e){if("object"!=typeof e)return!1;const{errCode:t}=e||{};return t in bg}(n)}r&&function(e={}){const t=Kh(Uh);Qh().then(()=>{const n=Ag();if(n&&Bg({redirect:n}))return t.length>0?Yh(Uh,Object.assign({uniIdRedirectUrl:n},e)):void(Cg&&jg({api:"navigateTo",redirect:n}))})}(n)})}function Wg(e){var t;(t=e).onResponse=function(e){Vh(Nh,e)},t.offResponse=function(e){Jh(Nh,e)},function(e){e.onNeedLogin=function(e){Vh(Uh,e)},e.offNeedLogin=function(e){Jh(Uh,e)},Tg&&(Ch(Qp).needLoginInit||(Ch(Qp).needLoginInit=!0,Qh().then(()=>{Ug.call(e)}),Eg&&Hg.call(e)))}(e),function(e){e.onRefreshToken=function(e){Vh(Hh,e)},e.offRefreshToken=function(e){Jh(Hh,e)}}(e)}let qg;const zg="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",Kg=/^(?:[A-Za-z\d+/]{4})*?(?:[A-Za-z\d+/]{2}(?:==)?|[A-Za-z\d+/]{3}=?)?$/;function Vg(){const e=rd().token||"",t=e.split(".");if(!e||3!==t.length)return{uid:null,role:[],permission:[],tokenExpired:0};let n;try{n=JSON.parse((r=t[1],decodeURIComponent(qg(r).split("").map(function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)}).join(""))))}catch(o){throw new Error("获取当前用户信息出错,详细错误信息为:"+o.message)}var r;return n.tokenExpired=1e3*n.exp,delete n.exp,delete n.iat,n}qg="function"!=typeof atob?function(e){if(e=String(e).replace(/[\t\n\f\r ]+/g,""),!Kg.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,r,o="",s=0;s<e.length;)t=zg.indexOf(e.charAt(s++))<<18|zg.indexOf(e.charAt(s++))<<12|(n=zg.indexOf(e.charAt(s++)))<<6|(r=zg.indexOf(e.charAt(s++))),o+=64===n?String.fromCharCode(t>>16&255):64===r?String.fromCharCode(t>>16&255,t>>8&255):String.fromCharCode(t>>16&255,t>>8&255,255&t);return o}:atob;var Jg=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}(oh(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});const n="chooseAndUploadFile:ok",r="chooseAndUploadFile:fail";function o(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:r,onUploadProgress:o}){return t.then(e=>{if(r){const t=r(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,r=5,o){(t=Object.assign({},t)).errMsg=n;const s=t.tempFiles,i=s.length;let a=0;return new Promise(n=>{for(;a<r;)c();function c(){const r=a++;if(r>=i)return void(!s.find(e=>!e.url&&!e.errMsg)&&n(t));const l=s[r];e.uploadFile({provider:l.provider,filePath:l.path,cloudPath:l.cloudPath,fileType:l.fileType,cloudPathAsRealPath:l.cloudPathAsRealPath,onUploadProgress(e){e.index=r,e.tempFile=l,e.tempFilePath=l.path,o&&o(e)}}).then(e=>{l.url=e.fileID,r<i&&c()}).catch(e=>{l.errMsg=e.errMsg||e.message,r<i&&c()})}})}(e,t,5,o))}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:i}=e;return new Promise((e,a)=>{En.chooseImage({count:t,sizeType:n,sourceType:s,extension:i,success(t){e(o(t,"image"))},fail(e){a({errMsg:e.errMsg.replace("chooseImage:fail",r)})}})})}(t),t):"video"===t.type?s(e,function(e){const{camera:t,compressed:n,maxDuration:s,sourceType:i=["album","camera"],extension:a}=e;return new Promise((e,c)=>{En.chooseVideo({camera:t,compressed:n,maxDuration:s,sourceType:i,extension:a,success(t){const{tempFilePath:n,duration:r,size:s,height:i,width:a}=t;e(o({errMsg:"chooseVideo:ok",tempFilePaths:[n],tempFiles:[{name:t.tempFile&&t.tempFile.name||"",path:n,size:s,type:t.tempFile&&t.tempFile.type||"",width:a,height:i,duration:r,fileType:"video",cloudPath:""}]},"video"))},fail(e){c({errMsg:e.errMsg.replace("chooseVideo:fail",r)})}})})}(t),t):s(e,function(e){const{count:t,extension:n}=e;return new Promise((e,s)=>{let i=En.chooseFile;if(void 0!==Mn&&"function"==typeof Mn.chooseMessageFile&&(i=Mn.chooseMessageFile),"function"!=typeof i)return s({errMsg:r+" 请指定 type 类型,该平台仅支持选择 image 或 video。"});i({type:"all",count:t,extension:n,success(t){e(o(t))},fail(e){s({errMsg:e.errMsg.replace("chooseFile:fail",r)})}})})}(t),t)}}}));const Yg="manual";function Xg(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(this.loadtime===Yg)return;let n=!1;const r=[];for(let o=2;o<e.length;o++)e[o]!==t[o]&&(r.push(e[o]),n=!0);e[0]!==t[0]&&(this.mixinDatacomPage.current=this.pageCurrent),this.mixinDatacomPage.size=this.pageSize,this.onMixinDatacomPropsChange(n,r)})},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:r,count:o}=n.result;this.getcount&&(this.mixinDatacomPage.count=o),this.mixinDatacomHasMore=r.length<this.pageSize;const s=e?r.length?r[0]:void 0:r;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 r=t.action||this.action;r&&(n=n.action(r));const o=t.collection||this.collection;n=Array.isArray(o)?n.collection(...o):n.collection(o);const s=t.where||this.where;s&&Object.keys(s).length&&(n=n.where(s));const i=t.field||this.field;i&&(n=n.field(i));const a=t.foreignKey||this.foreignKey;a&&(n=n.foreignKey(a));const c=t.groupby||this.groupby;c&&(n=n.groupBy(c));const l=t.groupField||this.groupField;l&&(n=n.groupField(l)),!0===(void 0!==t.distinct?t.distinct:this.distinct)&&(n=n.distinct());const u=t.orderby||this.orderby;u&&(n=n.orderBy(u));const f=void 0!==t.pageCurrent?t.pageCurrent:this.mixinDatacomPage.current,h=void 0!==t.pageSize?t.pageSize:this.mixinDatacomPage.size,d=void 0!==t.getcount?t.getcount:this.getcount,p=void 0!==t.gettree?t.gettree:this.gettree,g=void 0!==t.gettreepath?t.gettreepath:this.gettreepath,m={getCount:d},_={limitLevel:void 0!==t.limitlevel?t.limitlevel:this.limitlevel,startWith:void 0!==t.startwith?t.startwith:this.startwith};return p&&(m.getTree=_),g&&(m.getTreePath=_),n=n.skip(h*(f-1)).limit(h).get(m),n}}}}function Gg(e){return Ch("_globalUniCloudSecureNetworkCache__{spaceId}".replace("{spaceId}",e.config.spaceId))}async function Qg({openid:e,callLoginByWeixin:t=!1}={}){const n=Gg(this);if(e&&t)throw new Error("[SecureNetwork] openid and callLoginByWeixin cannot be passed at the same time");if(e)return n.mpWeixinOpenid=e,{};const r=await new Promise((e,t)=>{En.login({success(t){e(t.code)},fail(e){t(new Error(e.errMsg))}})}),o=this.importObject("uni-id-co",{customUI:!0});return await o.secureNetworkHandshakeByWeixin({code:r,callLoginByWeixin:t}),n.mpWeixinCode=r,{code:r}}async function Zg(e){const t=Gg(this);return t.initPromise||(t.initPromise=Qg.call(this,e).then(e=>e).catch(e=>{throw delete t.initPromise,e})),t.initPromise}function em(e){ld=e}function tm(e){const t=Mn.canIUse("getAppBaseInfo"),n={getAppBaseInfo:t?En.getAppBaseInfo:En.getSystemInfo,getPushClientId:En.getPushClientId};return function(r){return new Promise((o,s)=>{t&&"getAppBaseInfo"===e?o(n[e]()):n[e]({...r,success(e){o(e)},fail(e){s(e)}})})}}class nm extends Sh{constructor(){super(),this._uniPushMessageCallback=this._receivePushMessage.bind(this),this._currentMessageId=-1,this._payloadQueue=[]}init(){return Promise.all([tm("getAppBaseInfo")(),tm("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:r,message:o}=t;this._payloadQueue.push({action:n,messageId:r,message:o}),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:r}=e;"end"===t?this._end({messageId:n,message:r}):"message"===t&&this._appendMessage({messageId:n,message:r})}_appendMessage({messageId:e,message:t}={}){this.emit("message",t)}_end({messageId:e,message:t}={}){this.emit("end",t),this.close()}_initMessageListener(){En.onPushMessage(this._uniPushMessageCallback)}_destroy(){En.offPushMessage(this._uniPushMessageCallback)}toJSON(){return{appId:this._appId,pushClientId:this._pushClientId,seqId:this._seqId}}close(){this._destroy(),this.emit("close")}}const rm={tcb:Op,tencent:Op,aliyun:gd,private:Ep,dcloud:Ep,alipay:Wp};let om=new class{init(e){let t={};const n=rm[e.provider];if(!n)throw new Error("未提供正确的provider参数");var r;return t=n.init(e),function(e){e._initPromiseHub||(e._initPromiseHub=new kh({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),sg(t),function(e){const t=e.uploadFile;e.uploadFile=function(e){return t.call(this,e)}}(t),(r=t).database=function(e){if(e&&Object.keys(e).length>0)return r.init(e).database();if(this._database)return this._database;const t=_g(yg,{uniClient:r});return this._database=t,t},r.databaseForJQL=function(e){if(e&&Object.keys(e).length>0)return r.init(e).databaseForJQL();if(this._databaseForJQL)return this._databaseForJQL;const t=_g(yg,{uniClient:r,isJQL:!0});return this._databaseForJQL=t,t},function(e){e.getCurrentUserInfo=Vg,e.chooseAndUploadFile=Jg.initChooseAndUploadFile(e),Object.assign(e,{get mixinDatacom(){return Xg(e)}}),e.SSEChannel=nm,e.initSecureNetworkByWeixin=function(e){return function({openid:t,callLoginByWeixin:n=!1}={}){return Zg.call(e,{openid:t,callLoginByWeixin:n})}}(e),e.setCustomClientInfo=em,e.importObject=function(t){return function(n,r={}){r=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}},r);const{customUI:o,loadingOptions:s,errorOptions:i,parseSystemError:a}=r,c=!o;return new Proxy({},{get(o,l){switch(l){case"toString":return"[object UniCloudObject]";case"toJSON":return{}}return function({fn:e,interceptorName:t,getCallbackArgs:n}={}){return async function(...r){const o=n?n({params:r}):{};let s,i;try{return await Rh(Fh(t,"invoke"),{...o}),s=await e(...r),await Rh(Fh(t,"success"),{...o,result:s}),s}catch(a){throw i=a,await Rh(Fh(t,"fail"),{...o,error:i}),i}finally{await Rh(Fh(t,"complete"),i?{...o,error:i}:{...o,result:s})}}}({fn:async function o(...u){let f;c&&En.showLoading({title:s.title,mask:s.mask});const h={name:n,type:dh,data:{method:l,params:u}};"object"==typeof r.secretMethods&&function(e,t){const n=t.data.method,r=e.secretMethods||{},o=r[n]||r["*"];o&&(t.secretType=o)}(r,h);let d=!1;try{f=await t.callFunction(h)}catch(e){d=!0,f={result:new ed(e)}}const{errSubject:p,errCode:g,errMsg:m,newToken:_}=f.result||{};if(c&&En.hideLoading(),_&&_.token&&_.tokenExpired&&(od(_),Yh(Hh,{..._})),g){let e=m;if(d&&a&&(e=(await a({objectName:n,methodName:l,params:u,errSubject:p,errCode:g,errMsg:m})).errMsg||m),c)if("toast"===i.type)En.showToast({title:e,icon:"none"});else{if("modal"!==i.type)throw new Error(`Invalid errorOptions.type: ${i.type}`);{const{confirm:t}=await async function({title:e,content:t,showCancel:n,cancelText:r,confirmText:o}={}){return new Promise((s,i)=>{En.showModal({title:e,content:t,showCancel:n,cancelText:r,confirmText:o,success(e){s(e)},fail(){s({confirm:!1,cancel:!0})}})})}({title:"提示",content:e,showCancel:i.retry,cancelText:"取消",confirmText:i.retry?"重试":"确定"});if(i.retry&&t)return o(...u)}}const t=new ed({subject:p,code:g,message:m,requestId:f.requestId});throw t.detail=f.result,Yh(Nh,{type:zh,content:t}),t}return Yh(Nh,{type:zh,content:f.result}),f.result},interceptorName:"callObject",getCallbackArgs:function({params:e}={}){return{objectName:n,methodName:l,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 r=!1;if("callFunction"===t){const e=n&&n.type||hh;r=e!==hh}const o="callFunction"===t&&!r,s=this._initPromiseHub.exec();n=n||{};const{success:i,fail:a,complete:c}=Zh(n),l=s.then(()=>r?Promise.resolve():Rh(Fh(t,"invoke"),n)).then(()=>e.call(this,n)).then(e=>r?Promise.resolve(e):Rh(Fh(t,"success"),e).then(()=>Rh(Fh(t,"complete"),e)).then(()=>(o&&Yh(Nh,{type:qh,content:e}),Promise.resolve(e))),e=>r?Promise.reject(e):Rh(Fh(t,"fail"),e).then(()=>Rh(Fh(t,"complete"),e)).then(()=>(Yh(Nh,{type:qh,content:e}),Promise.reject(e))));if(!(i||a||c))return l;l.then(e=>{i&&i(e),c&&c(e),o&&Yh(Nh,{type:qh,content:e})},e=>{a&&a(e),c&&c(e),o&&Yh(Nh,{type:qh,content:e})})}}(t[e],e).bind(t)}),t.init=this.init,t}};(()=>{const e=Ph;let t={};if(e&&1===e.length)t=e[0],om=om.init(t),om._isDefault=!0;else{const t=["auth","callFunction","uploadFile","deleteFile","getTempFileURL","downloadFile"],n=["database","getCurrentUserInfo","importObject"];let r;r=e&&e.length>0?"应用有多个服务空间,请通过uniCloud.init方法指定要使用的服务空间":"应用未关联服务空间,请在uniCloud目录右键关联服务空间",[...t,...n].forEach(e=>{om[e]=function(){if(console.error(r),-1===n.indexOf(e))return Promise.reject(new ed({code:"SYS_ERR",message:r}));console.error(r)}})}Object.assign(om,{get mixinDatacom(){return Xg(om)}}),Wg(om),om.addInterceptor=Lh,om.removeInterceptor=Dh,om.interceptObject=Bh})();var sm=om;const im="chooseAndUploadFile:fail";function am(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 cm(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)}const lm=e=>{const t=e.lastIndexOf("."),n=e.length;return{name:e.substring(0,t),ext:e.substring(t+1,n)}};class um{constructor(e,t){this.options=e,this.animation=En.createAnimation({...e}),this.currentStepAnimates={},this.next=0,this.$=t}_nvuePushAnimates(e,t){let n=this.currentStepAnimates[this.next],r={};if(r=n||{styles:{},config:{}},fm.includes(e)){r.styles.transform||(r.styles.transform="");let n="";"rotate"===e&&(n="deg"),r.styles.transform+=`${e}(${t+n}) `}else r.styles[e]=`${t}`;this.currentStepAnimates[this.next]=r}_animateRun(e={},t={}){let n=this.$.$refs.ani.ref;if(n)return new Promise((r,o)=>{nvueAnimation.transition(n,{styles:e,...t},e=>{r()})})}_nvueNextAnimate(e,t=0,n){let r=e[t];if(r){let{styles:o,config:s}=r;this._animateRun(o,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 fm=["matrix","matrix3d","rotate","rotate3d","rotateX","rotateY","rotateZ","scale","scale3d","scaleX","scaleY","scaleZ","skew","skewX","skewY","translate","translate3d","translateX","translateY","translateZ"];fm.concat(["opacity","backgroundColor"],["width","height","left","right","top","bottom"]).forEach(e=>{um.prototype[e]=function(...t){return this.animation[e](...t),this}}),exports.CryptoJS=$f,exports._export_sfc=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n},exports.chooseAndUploadFile=function(e={type:"all"}){return"image"===e.type?cm(function(e){const{count:t,sizeType:n=["original","compressed"],sourceType:r,extension:o}=e;return new Promise((e,s)=>{En.chooseMedia({count:t,sizeType:n,sourceType:r,mediaType:["image"],extension:o,success(t){t.tempFiles.forEach(e=>{e.path=e.tempFilePath}),e(am(t,"image"))},fail(e){s({errMsg:e.errMsg.replace("chooseImage:fail",im)})}})})}(e),e):"video"===e.type?cm(function(e){const{count:t,camera:n,compressed:r,maxDuration:o,sourceType:s,extension:i}=e;return new Promise((e,n)=>{En.chooseMedia({count:t,compressed:r,maxDuration:o,sourceType:s,extension:i,mediaType:["video"],success(t){const{tempFiles:n}=t;e(am({errMsg:"chooseVideo:ok",tempFiles:n.map(e=>({name:e.name||"",path:e.tempFilePath,thumbTempFilePath:e.thumbTempFilePath,size:e.size,type:t.tempFile&&t.tempFile.type||"",width:e.width,height:e.height,duration:e.duration,fileType:"video",cloudPath:""}))},"video"))},fail(e){n({errMsg:e.errMsg.replace("chooseVideo:fail",im)})}})})}(e),e):cm(function(e){const{count:t,extension:n}=e;return new Promise((e,r)=>{let o=En.chooseFile;if(void 0!==Mn&&"function"==typeof Mn.chooseMessageFile&&(o=Mn.chooseMessageFile),"function"!=typeof o)return r({errMsg:im+" 请指定 type 类型,该平台仅支持选择 image 或 video。"});o({type:"all",count:t,extension:n,success(t){e(am(t))},fail(e){r({errMsg:e.errMsg.replace("chooseFile:fail",im)})}})})}(e),e)},exports.computed=ti,exports.createAnimation=function(e,t){if(t)return clearTimeout(t.timer),new um(e,t)},exports.createI18n=function(e={}){const t=!bc(e.legacy)||e.legacy,n=!!e.globalInjection,r=new Map,o=t?bl(e):wl(e),s=cc(""),i={get mode(){return t?"legacy":"composition"},async install(e,...r){e.__VUE_I18N_SYMBOL__=s,e.provide(e.__VUE_I18N_SYMBOL__,i),!t&&n&&function(e,t){const n=Object.create(null);Ml.forEach(e=>{const r=Object.getOwnPropertyDescriptor(t,e);if(!r)throw ll(22);const o=no(r.value)?{get:()=>r.value.value,set(e){r.value.value=e}}:{get:()=>r.get&&r.get()};Object.defineProperty(n,e,o)}),e.config.globalProperties.$i18n=n,El.forEach(n=>{const r=Object.getOwnPropertyDescriptor(t,n);if(!r||!r.value)throw ll(22);Object.defineProperty(e.config.globalProperties,`$${n}`,r)})}(e,i.global),function(e,t,...n){const r=$c(n[0])?n[0]:{},o=!!r.useI18nComponentName;(!bc(r.globalInstall)||r.globalInstall)&&(e.component(o?"i18n":kl.name,kl),e.component(Il.name,Il),e.component(Pl.name,Pl)),e.directive("t",Ol(t))}(e,i,...r),t&&e.mixin(function(e,t,n){return{beforeCreate(){const r=zs();if(!r)throw ll(22);const o=this.$options;if(o.i18n){const n=o.i18n;o.__i18n&&(n.__i18n=o.__i18n),n.__root=t,this===this.$root?this.$i18n=Tl(e,n):(n.__injectWithOption=!0,this.$i18n=bl(n))}else o.__i18n?this===this.$root?this.$i18n=Tl(e,o):this.$i18n=bl({__i18n:o.__i18n,__injectWithOption:!0,__root:t}):this.$i18n=e;e.__onComponentInstanceCreated(this.$i18n),n.__setInstance(r,this.$i18n),this.$t=(...e)=>this.$i18n.t(...e),this.$rt=(...e)=>this.$i18n.rt(...e),this.$tc=(...e)=>this.$i18n.tc(...e),this.$te=(e,t)=>this.$i18n.te(e,t),this.$d=(...e)=>this.$i18n.d(...e),this.$n=(...e)=>this.$i18n.n(...e),this.$tm=e=>this.$i18n.tm(e)},mounted(){},beforeUnmount(){const e=zs();if(!e)throw ll(22);delete this.$t,delete this.$rt,delete this.$tc,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,n.__deleteInstance(e),delete this.$i18n}}}(o,o.__composer,i))},get global(){return o},__instances:r,__getInstance:e=>r.get(e)||null,__setInstance(e,t){r.set(e,t)},__deleteInstance(e){r.delete(e)}};return i},exports.createPinia=function(){const e=Fn(!0),t=e.run(()=>ro({}));let n=[],r=[];const o=Xr({install(e){Na(o),o._a=e,e.provide(Ua,o),e.config.globalProperties.$pinia=o,r.forEach(e=>n.push(e)),r=[]},use(e){return this._a?n.push(e):r.push(e),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return o},exports.createSSRApp=Gi,exports.dayjs=Af,exports.dayjs$1=Zf,exports.defineStore=function(e,t,n){let r,o;const s="function"==typeof t;function i(e,n){(e=e||(!!(qs||Ro||Jo)?Yo(Ua,null):null))&&Na(e),(e=ja)._s.has(r)||(s?ec(r,t,o,e):function(e,t,n){const{state:r,actions:o,getters:s}=t,i=n.state.value[e];let a;a=ec(e,function(){i||(n.state.value[e]=r?r():{});const t=co(n.state.value[e]);return Qa(t,o,Object.keys(s||{}).reduce((t,r)=>(t[r]=Xr(ti(()=>{Na(n);const t=n._s.get(e);return s[r].call(t,t)})),t),{}))},t,n,0,!0)}(r,o,e));return e._s.get(r)}return"string"==typeof e?(r=e,o=s?n:t):(o=e,r=e.id),i.$id=r,i},exports.e=(e,...t)=>a(e,...t),exports.f=(e,t)=>function(e,t){let n;if(f(e)||g(e)){n=new Array(e.length);for(let r=0,o=e.length;r<o;r++)n[r]=t(e[r],r,r)}else if("number"==typeof e){n=new Array(e);for(let r=0;r<e;r++)n[r]=t(r+1,r,r)}else if(_(e))if(e[Symbol.iterator])n=Array.from(e,(e,n)=>t(e,n,n));else{const r=Object.keys(e);n=new Array(r.length);for(let o=0,s=r.length;o<s;o++){const s=r[o];n[o]=t(e[s],s,o)}}else n=[];return n}(e,t),exports.fontData=[{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:""}],exports.gei=Xi,exports.getCurrentInstance=zs,exports.get_extname=e=>{if(Array.isArray(e))return e;return e.replace(/(\[|\])/g,"").split(",")},exports.get_file_data=async(e,t="image")=>{const n=lm(e.name).ext.toLowerCase();let r={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(o=e.path,new Promise((e,t)=>{En.getImageInfo({src:o,success(t){e(t)},fail(e){t(e)}})}));delete r.video,r.image.width=t.width,r.image.height=t.height,r.image.location=t.path}else delete r.image;var o;return r},exports.get_files_and_is_max=(e,t)=>{let n=[],r=[];return t&&0!==t.length?(e.tempFiles.forEach(e=>{const o=lm(e.name).ext.toLowerCase();-1!==t.indexOf(o)&&(r.push(e),n.push(e.path))}),r.length!==e.tempFiles.length&&En.showToast({title:`当前选择了${e.tempFiles.length}个文件 ,${e.tempFiles.length-r.length} 个文件格式不正确`,icon:"none",duration:5e3}),{filePaths:n,files:r}):{filePaths:n,files:r}},exports.index=En,exports.initVueI18n=function(e,t={},n,r){if("string"!=typeof e){const n=[t,e];e=n[0],t=n[1]}"string"!=typeof e&&(e=void 0!==En&&En.getLocale?En.getLocale():"undefined"!=typeof global&&global.getLocale?global.getLocale():Re),"string"!=typeof n&&(n="undefined"!=typeof __uniConfig&&__uniConfig.fallbackLocale||Re);const o=new Ue({locale:e,fallbackLocale:n,messages:t,watcher:r});let s=(e,t)=>{if("function"!=typeof getApp)s=function(e,t){return o.t(e,t)};else{let e=!1;s=function(t,n){const r=getApp().$vm;return r&&(r.$locale,e||(e=!0,function(e,t){e.$watchLocale?e.$watchLocale(e=>{t.setLocale(e)}):e.$watch(()=>e.$locale,e=>{t.setLocale(e)})}(r,o))),o.t(t,n)}}return s(e,t)};return{i18n:o,f:(e,t,n)=>o.f(e,t,n),t:(e,t)=>s(e,t),add:(e,t,n=!0)=>o.add(e,t,n),watch:e=>o.watchLocale(e),getLocale:()=>o.getLocale(),setLocale:e=>o.setLocale(e)}},exports.messages=Pf,exports.n=e=>j(e),exports.nextTick$1=$o,exports.o=(e,t)=>qi(e,t),exports.onLaunch=rc,exports.onLoad=oc,exports.onMounted=os,exports.onPullDownRefresh=ic,exports.onReachBottom=sc,exports.onShow=nc,exports.p=e=>function(e){const{uid:t,__counter:n}=zs();return t+","+((ji[t]||(ji[t]=[])).push(Ns(e))-1)+","+n}(e),exports.r=(e,t,n)=>Ki(e,t,n),exports.reactive=Wr,exports.ref=ro,exports.resolveComponent=function(e,t){return function(e,t,n=!0,r=!1){const o=Ro||qs;if(o){const n=o.type;if(e===Bo){const e=function(e,t=!0){return p(e)?e.displayName||e.name:e.name||t&&e.__name}(n,!1);if(e&&(e===t||e===I(t)||e===O(I(t))))return n}const s=jo(o[e]||n[e],t)||jo(o.appContext[e],t);return!s&&r?n:s}}(Bo,e,!0,t)||e},exports.s=e=>Wi(e),exports.sr=(e,t,n)=>function(e,t,n={}){const{$templateRefs:r}=zs();r.push({i:t,r:e,k:n.k,f:n.f})}(e,t,n),exports.t=e=>(e=>g(e)?e:null==e?"":f(e)||_(e)&&(e.toString===v||!p(e.toString))?JSON.stringify(e,N,2):String(e))(e),exports.toRefs=co,exports.tr=sm,exports.unref=so,exports.uploadCloudFiles=function(e,t=5,n){const r=(e=JSON.parse(JSON.stringify(e))).length;let o=0,s=this;return new Promise(i=>{for(;o<t;)a();function a(){let t=o++;if(t>=r)return void(!e.find(e=>!e.url&&!e.errMsg)&&i(e));const c=e[t],l=s.files.findIndex(e=>e.uuid===c.uuid);c.url="",delete c.errMsg,sm.uploadFile({filePath:c.path,cloudPath:c.cloudPath,fileType:c.fileType,onUploadProgress:e=>{e.index=l,n&&n(e)}}).then(e=>{c.url=e.fileID,c.index=l,t<r&&a()}).catch(e=>{c.errMsg=e.errMsg||e.message,c.index=l,t<r&&a()})}})},exports.useI18n=Cl,exports.watch=Uo;
|
|