@vtj/pro 0.13.37 → 0.13.39
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/@vtj/materials/assets/antdv/index.umd.js +2 -2
- package/dist/@vtj/materials/assets/charts/index.umd.js +2 -2
- package/dist/@vtj/materials/assets/element/index.umd.js +2 -2
- package/dist/@vtj/materials/assets/icons/index.umd.js +2 -2
- package/dist/@vtj/materials/assets/ui/index.umd.js +2 -2
- package/dist/@vtj/materials/assets/uni-h5/index.umd.js +2 -2
- package/dist/@vtj/materials/assets/uni-ui/index.umd.js +2 -2
- package/dist/@vtj/materials/assets/vant/index.umd.js +2 -2
- package/dist/@vtj/materials/deps/@vtj/charts/index.umd.js +2 -2
- package/dist/@vtj/materials/deps/@vtj/icons/index.umd.js +2 -2
- package/dist/@vtj/materials/deps/@vtj/ui/index.umd.js +2 -2
- package/dist/@vtj/materials/deps/@vtj/utils/index.umd.js +2 -2
- package/dist/@vtj/materials/deps/element-plus/index.css +1 -1
- package/dist/@vtj/materials/deps/element-plus/index.full.min.js +29 -25
- package/dist/@vtj/materials/deps/element-plus/zh-cn.js +1 -1
- package/dist/@vtj/materials/deps/uni-h5/style.css +1 -1
- package/dist/@vtj/materials/deps/vant/index.css +1 -1
- package/dist/@vtj/materials/deps/vant/vant.min.js +3 -3
- package/dist/@vtj/materials/deps/vue/vue.global.js +314 -269
- package/dist/@vtj/materials/deps/vue/vue.global.prod.js +5 -5
- package/dist/@vtj/materials/deps/vue-router/vue-router.global.js +38 -55
- package/dist/@vtj/materials/deps/vue-router/vue-router.global.prod.js +2 -2
- package/dist/assets/{@element-plus-icons-vue-BKci8WR4.js → @element-plus-icons-vue-Cedkr9-t.js} +1 -1
- package/dist/assets/@vueuse-dfxA5MrB.js +1 -0
- package/dist/assets/{Editor-C188wTC2-CT2bNIwy.css → Editor-CB7H71mV-C0ROBped.css} +1 -1
- package/dist/assets/{Editor-C188wTC2-BOfmf5SQ.js → Editor-CB7H71mV-ZgvMz2MG.js} +115 -93
- package/dist/assets/auth-DnD_8cBd.js +1 -0
- package/dist/assets/element-plus-CTJx9qrF.js +12 -0
- package/dist/assets/element-plus-Cubt0wGL.css +1 -0
- package/dist/assets/index-CfEg0G4X.js +1 -0
- package/dist/assets/{index-BjHmKpJG.js → index-DRT_gnec.js} +2 -2
- package/dist/assets/{lodash-es-DyZ5XK_i.js → lodash-es-C_ofKwPd.js} +1 -1
- package/dist/assets/marked-Dt4xUbva.js +59 -0
- package/dist/assets/page-BoUPZL85.js +2 -0
- package/dist/assets/preview-6kb9FMSl.js +2 -0
- package/dist/assets/{uni-page-BA3KNMq4.js → uni-page-DhlBsrdh.js} +1 -1
- package/dist/assets/{utils-mR1S3rG4.js → utils-BRRyiuJG.js} +1 -1
- package/dist/assets/vue-DnlwaDgl.js +35 -0
- package/dist/assets/vue-router-C7QxHR5l.js +9 -0
- package/dist/assets/{vxe-CiIRgvGK.js → vxe-CV1GhgEu.js} +4 -4
- package/dist/index.html +10 -10
- package/dist/uni/assets/{@dcloudio-uni-h5-vue-8GkSpuEV.js → @dcloudio-uni-h5-vue-Dxv_ts1w.js} +1 -1
- package/dist/uni/assets/{index-CUMonOC2.js → index-BBaSDF4L.js} +19 -19
- package/dist/uni/assets/vue-router-C2iVG-hf.js +9 -0
- package/dist/uni/index.html +24 -3
- package/package.json +12 -12
- package/dist/assets/@vueuse-CFu7Lllw.js +0 -1
- package/dist/assets/auth-C3PaXnzI.js +0 -1
- package/dist/assets/element-plus-BCa6Zci8.js +0 -12
- package/dist/assets/element-plus-BZ_SBfk-.css +0 -1
- package/dist/assets/index-Cp7PhqpA.js +0 -1
- package/dist/assets/marked-BQZxLJfc.js +0 -56
- package/dist/assets/page-DZdkpbt3.js +0 -2
- package/dist/assets/preview-eqnT2qjR.js +0 -2
- package/dist/assets/vue-CAMRmZ-8.js +0 -35
- package/dist/assets/vue-router-CwSAuTE4.js +0 -9
- package/dist/uni/assets/vue-router-eQVOEjEf.js +0 -9
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./@dcloudio-uni-h5-vue-
|
|
2
|
-
var fa=Object.defineProperty,ha=Object.defineProperties;var pa=Object.getOwnPropertyDescriptors;var On=Object.getOwnPropertySymbols;var da=Object.prototype.hasOwnProperty,ga=Object.prototype.propertyIsEnumerable;var Yt=(r,t)=>(t=Symbol[r])?t:Symbol.for("Symbol."+r),va=r=>{throw TypeError(r)};var hr=(r,t,e)=>t in r?fa(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e,H=(r,t)=>{for(var e in t||(t={}))da.call(t,e)&&hr(r,e,t[e]);if(On)for(var e of On(t))ga.call(t,e)&&hr(r,e,t[e]);return r},et=(r,t)=>ha(r,pa(t));var z=(r,t,e)=>hr(r,typeof t!="symbol"?t+"":t,e);var U=(r,t,e)=>new Promise((n,i)=>{var s=l=>{try{u(e.next(l))}catch(a){i(a)}},o=l=>{try{u(e.throw(l))}catch(a){i(a)}},u=l=>l.done?n(l.value):Promise.resolve(l.value).then(s,o);u((e=e.apply(r,t)).next())}),Mt=function(r,t){this[0]=r,this[1]=t},pr=(r,t,e)=>{var n=(o,u,l,a)=>{try{var c=e[o](u),f=(u=c.value)instanceof Mt,h=c.done;Promise.resolve(f?u[0]:u).then(p=>f?n(o==="return"?o:"next",u[1]?{done:p.done,value:p.value}:p,l,a):l({value:p,done:h})).catch(p=>n("throw",p,l,a))}catch(p){a(p)}},i=o=>s[o]=u=>new Promise((l,a)=>n(o,u,l,a)),s={};return e=e.apply(r,t),s[Yt("asyncIterator")]=()=>s,i("next"),i("throw"),i("return"),s},dr=r=>{var t=r[Yt("asyncIterator")],e=!1,n,i={};return t==null?(t=r[Yt("iterator")](),n=s=>i[s]=o=>t[s](o)):(t=t.call(r),n=s=>i[s]=o=>{if(e){if(e=!1,s==="throw")throw o;return o}return e=!0,{done:!1,value:new Mt(new Promise(u=>{var l=t[s](o);l instanceof Object||va("Object expected"),u(l)}),1)}}),i[Yt("iterator")]=()=>i,n("next"),"throw"in t?n("throw"):i.throw=s=>{throw s},"return"in t&&n("return"),i},$n=(r,t,e)=>(t=r[Yt("asyncIterator")])?t.call(r):(r=r[Yt("iterator")](),t={},e=(n,i)=>(i=r[n])&&(t[n]=s=>new Promise((o,u,l)=>(s=i.call(r,s),l=s.done,Promise.resolve(s.value).then(a=>o({value:a,done:l}),u)))),e("next"),e("return"),t);import{d as is,g as Dn,h as Fr,r as ma,z as Xe,i as ya}from"./@dcloudio-uni-h5-vue-8GkSpuEV.js";import{useRoute as ba}from"./vue-router-eQVOEjEf.js";import"./vue-BK7aLblh.js";import"./@dcloudio-uni-shared-Cc-Ey1iB.js";(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))n(i);new MutationObserver(i=>{for(const s of i)if(s.type==="childList")for(const o of s.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&n(o)}).observe(document,{childList:!0,subtree:!0});function e(i){const s={};return i.integrity&&(s.integrity=i.integrity),i.referrerPolicy&&(s.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?s.credentials="include":i.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function n(i){if(i.ep)return;i.ep=!0;const s=e(i);fetch(i.href,s)}})();const _a="modulepreload",wa=function(r,t){return new URL(r,t).href},Cn={},Bn=function(t,e,n){let i=Promise.resolve();if(e&&e.length>0){let o=function(c){return Promise.all(c.map(f=>Promise.resolve(f).then(h=>({status:"fulfilled",value:h}),h=>({status:"rejected",reason:h}))))};const u=document.getElementsByTagName("link"),l=document.querySelector("meta[property=csp-nonce]"),a=(l==null?void 0:l.nonce)||(l==null?void 0:l.getAttribute("nonce"));i=o(e.map(c=>{if(c=wa(c,n),c in Cn)return;Cn[c]=!0;const f=c.endsWith(".css"),h=f?'[rel="stylesheet"]':"";if(!!n)for(let g=u.length-1;g>=0;g--){const b=u[g];if(b.href===c&&(!f||b.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${c}"]${h}`))return;const d=document.createElement("link");if(d.rel=f?"stylesheet":_a,f||(d.as="script"),d.crossOrigin="",d.href=c,a&&d.setAttribute("nonce",a),document.head.appendChild(d),f)return new Promise((g,b)=>{d.addEventListener("load",g),d.addEventListener("error",()=>b(new Error(`Unable to preload CSS for ${c}`)))})}))}function s(o){const u=new Event("vite:preloadError",{cancelable:!0});if(u.payload=o,window.dispatchEvent(u),!u.defaultPrevented)throw o}return i.then(o=>{for(const u of o||[])u.status==="rejected"&&s(u.reason);return t().catch(s)})};var Ea={ENV_TYPE:"live",NODE_ENV:"production"},Sa=typeof global=="object"&&global&&global.Object===Object&&global;const ss=Sa;var Ta=typeof self=="object"&&self&&self.Object===Object&&self,Ra=ss||Ta||Function("return this")();const mt=Ra;var xa=mt.Symbol;const wt=xa;var os=Object.prototype,Aa=os.hasOwnProperty,Oa=os.toString,pe=wt?wt.toStringTag:void 0;function $a(r){var t=Aa.call(r,pe),e=r[pe];try{r[pe]=void 0;var n=!0}catch(s){}var i=Oa.call(r);return n&&(t?r[pe]=e:delete r[pe]),i}var Da=Object.prototype,Ca=Da.toString;function Ba(r){return Ca.call(r)}var ja="[object Null]",Pa="[object Undefined]",jn=wt?wt.toStringTag:void 0;function xt(r){return r==null?r===void 0?Pa:ja:jn&&jn in Object(r)?$a(r):Ba(r)}function St(r){return r!=null&&typeof r=="object"}var Na="[object Symbol]";function as(r){return typeof r=="symbol"||St(r)&&xt(r)==Na}function us(r,t){for(var e=-1,n=r==null?0:r.length,i=Array(n);++e<n;)i[e]=t(r[e],e,r);return i}var Ia=Array.isArray;const Ht=Ia;var Pn=wt?wt.prototype:void 0,Nn=Pn?Pn.toString:void 0;function cs(r){if(typeof r=="string")return r;if(Ht(r))return us(r,cs)+"";if(as(r))return Nn?Nn.call(r):"";var t=r+"";return t=="0"&&1/r==-1/0?"-0":t}var Ma=/\s/;function Fa(r){for(var t=r.length;t--&&Ma.test(r.charAt(t)););return t}var Ua=/^\s+/;function La(r){return r&&r.slice(0,Fa(r)+1).replace(Ua,"")}function lt(r){var t=typeof r;return r!=null&&(t=="object"||t=="function")}var In=NaN,ka=/^[-+]0x[0-9a-f]+$/i,Ha=/^0b[01]+$/i,Va=/^0o[0-7]+$/i,qa=parseInt;function Mn(r){if(typeof r=="number")return r;if(as(r))return In;if(lt(r)){var t=typeof r.valueOf=="function"?r.valueOf():r;r=lt(t)?t+"":t}if(typeof r!="string")return r===0?r:+r;r=La(r);var e=Ha.test(r);return e||Va.test(r)?qa(r.slice(2),e?2:8):ka.test(r)?In:+r}function ls(r){return r}var za="[object AsyncFunction]",Wa="[object Function]",Ka="[object GeneratorFunction]",Ja="[object Proxy]";function Vt(r){if(!lt(r))return!1;var t=xt(r);return t==Wa||t==Ka||t==za||t==Ja}var Ga=mt["__core-js_shared__"];const gr=Ga;var Fn=(function(){var r=/[^.]+$/.exec(gr&&gr.keys&&gr.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""})();function Ya(r){return!!Fn&&Fn in r}var Za=Function.prototype,Qa=Za.toString;function Wt(r){if(r!=null){try{return Qa.call(r)}catch(t){}try{return r+""}catch(t){}}return""}var Xa=/[\\^$.*+?()[\]{}|]/g,tu=/^\[object .+?Constructor\]$/,eu=Function.prototype,ru=Object.prototype,nu=eu.toString,iu=ru.hasOwnProperty,su=RegExp("^"+nu.call(iu).replace(Xa,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function ou(r){if(!lt(r)||Ya(r))return!1;var t=Vt(r)?su:tu;return t.test(Wt(r))}function au(r,t){return r==null?void 0:r[t]}function Kt(r,t){var e=au(r,t);return ou(e)?e:void 0}var uu=Kt(mt,"WeakMap");const Ur=uu;var Un=Object.create,cu=(function(){function r(){}return function(t){if(!lt(t))return{};if(Un)return Un(t);r.prototype=t;var e=new r;return r.prototype=void 0,e}})();const lu=cu;function fs(r,t,e){switch(e.length){case 0:return r.call(t);case 1:return r.call(t,e[0]);case 2:return r.call(t,e[0],e[1]);case 3:return r.call(t,e[0],e[1],e[2])}return r.apply(t,e)}function fu(r,t){var e=-1,n=r.length;for(t||(t=Array(n));++e<n;)t[e]=r[e];return t}var hu=800,pu=16,du=Date.now;function gu(r){var t=0,e=0;return function(){var n=du(),i=pu-(n-e);if(e=n,i>0){if(++t>=hu)return arguments[0]}else t=0;return r.apply(void 0,arguments)}}function vu(r){return function(){return r}}var mu=(function(){try{var r=Kt(Object,"defineProperty");return r({},"",{}),r}catch(t){}})();const Je=mu;var yu=Je?function(r,t){return Je(r,"toString",{configurable:!0,enumerable:!1,value:vu(t),writable:!0})}:ls;const bu=yu;var _u=gu(bu);const wu=_u;function Eu(r,t){for(var e=-1,n=r==null?0:r.length;++e<n&&t(r[e],e,r)!==!1;);return r}var Su=9007199254740991,Tu=/^(?:0|[1-9]\d*)$/;function hs(r,t){var e=typeof r;return t=t==null?Su:t,!!t&&(e=="number"||e!="symbol"&&Tu.test(r))&&r>-1&&r%1==0&&r<t}function fn(r,t,e){t=="__proto__"&&Je?Je(r,t,{configurable:!0,enumerable:!0,value:e,writable:!0}):r[t]=e}function Te(r,t){return r===t||r!==r&&t!==t}var Ru=Object.prototype,xu=Ru.hasOwnProperty;function ps(r,t,e){var n=r[t];(!(xu.call(r,t)&&Te(n,e))||e===void 0&&!(t in r))&&fn(r,t,e)}function ds(r,t,e,n){var i=!e;e||(e={});for(var s=-1,o=t.length;++s<o;){var u=t[s],l=n?n(e[u],r[u],u,e,r):void 0;l===void 0&&(l=r[u]),i?fn(e,u,l):ps(e,u,l)}return e}var Ln=Math.max;function Au(r,t,e){return t=Ln(t===void 0?r.length-1:t,0),function(){for(var n=arguments,i=-1,s=Ln(n.length-t,0),o=Array(s);++i<s;)o[i]=n[t+i];i=-1;for(var u=Array(t+1);++i<t;)u[i]=n[i];return u[t]=e(o),fs(r,this,u)}}function gs(r,t){return wu(Au(r,t,ls),r+"")}var Ou=9007199254740991;function vs(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=Ou}function tr(r){return r!=null&&vs(r.length)&&!Vt(r)}function $u(r,t,e){if(!lt(e))return!1;var n=typeof t;return(n=="number"?tr(e)&&hs(t,e.length):n=="string"&&t in e)?Te(e[t],r):!1}function ms(r){return gs(function(t,e){var n=-1,i=e.length,s=i>1?e[i-1]:void 0,o=i>2?e[2]:void 0;for(s=r.length>3&&typeof s=="function"?(i--,s):void 0,o&&$u(e[0],e[1],o)&&(s=i<3?void 0:s,i=1),t=Object(t);++n<i;){var u=e[n];u&&r(t,u,n,s)}return t})}var Du=Object.prototype;function hn(r){var t=r&&r.constructor,e=typeof t=="function"&&t.prototype||Du;return r===e}function Cu(r,t){for(var e=-1,n=Array(r);++e<r;)n[e]=t(e);return n}var Bu="[object Arguments]";function kn(r){return St(r)&&xt(r)==Bu}var ys=Object.prototype,ju=ys.hasOwnProperty,Pu=ys.propertyIsEnumerable,Nu=kn((function(){return arguments})())?kn:function(r){return St(r)&&ju.call(r,"callee")&&!Pu.call(r,"callee")};const Lr=Nu;function Iu(){return!1}var bs=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Hn=bs&&typeof module=="object"&&module&&!module.nodeType&&module,Mu=Hn&&Hn.exports===bs,Vn=Mu?mt.Buffer:void 0,Fu=Vn?Vn.isBuffer:void 0,Uu=Fu||Iu;const pn=Uu;var Lu="[object Arguments]",ku="[object Array]",Hu="[object Boolean]",Vu="[object Date]",qu="[object Error]",zu="[object Function]",Wu="[object Map]",Ku="[object Number]",Ju="[object Object]",Gu="[object RegExp]",Yu="[object Set]",Zu="[object String]",Qu="[object WeakMap]",Xu="[object ArrayBuffer]",tc="[object DataView]",ec="[object Float32Array]",rc="[object Float64Array]",nc="[object Int8Array]",ic="[object Int16Array]",sc="[object Int32Array]",oc="[object Uint8Array]",ac="[object Uint8ClampedArray]",uc="[object Uint16Array]",cc="[object Uint32Array]",Y={};Y[ec]=Y[rc]=Y[nc]=Y[ic]=Y[sc]=Y[oc]=Y[ac]=Y[uc]=Y[cc]=!0;Y[Lu]=Y[ku]=Y[Xu]=Y[Hu]=Y[tc]=Y[Vu]=Y[qu]=Y[zu]=Y[Wu]=Y[Ku]=Y[Ju]=Y[Gu]=Y[Yu]=Y[Zu]=Y[Qu]=!1;function lc(r){return St(r)&&vs(r.length)&&!!Y[xt(r)]}function dn(r){return function(t){return r(t)}}var _s=typeof exports=="object"&&exports&&!exports.nodeType&&exports,ye=_s&&typeof module=="object"&&module&&!module.nodeType&&module,fc=ye&&ye.exports===_s,vr=fc&&ss.process,hc=(function(){try{var r=ye&&ye.require&&ye.require("util").types;return r||vr&&vr.binding&&vr.binding("util")}catch(t){}})();const Et=hc;var qn=Et&&Et.isTypedArray,pc=qn?dn(qn):lc;const ws=pc;var dc=Object.prototype,gc=dc.hasOwnProperty;function Es(r,t){var e=Ht(r),n=!e&&Lr(r),i=!e&&!n&&pn(r),s=!e&&!n&&!i&&ws(r),o=e||n||i||s,u=o?Cu(r.length,String):[],l=u.length;for(var a in r)(t||gc.call(r,a))&&!(o&&(a=="length"||i&&(a=="offset"||a=="parent")||s&&(a=="buffer"||a=="byteLength"||a=="byteOffset")||hs(a,l)))&&u.push(a);return u}function Ss(r,t){return function(e){return r(t(e))}}var vc=Ss(Object.keys,Object);const mc=vc;var yc=Object.prototype,bc=yc.hasOwnProperty;function _c(r){if(!hn(r))return mc(r);var t=[];for(var e in Object(r))bc.call(r,e)&&e!="constructor"&&t.push(e);return t}function Ts(r){return tr(r)?Es(r):_c(r)}function wc(r){var t=[];if(r!=null)for(var e in Object(r))t.push(e);return t}var Ec=Object.prototype,Sc=Ec.hasOwnProperty;function Tc(r){if(!lt(r))return wc(r);var t=hn(r),e=[];for(var n in r)n=="constructor"&&(t||!Sc.call(r,n))||e.push(n);return e}function gn(r){return tr(r)?Es(r,!0):Tc(r)}var Rc=ms(function(r,t,e,n){ds(t,gn(t),r,n)});const zn=Rc;var xc=Kt(Object,"create");const _e=xc;function Ac(){this.__data__=_e?_e(null):{},this.size=0}function Oc(r){var t=this.has(r)&&delete this.__data__[r];return this.size-=t?1:0,t}var $c="__lodash_hash_undefined__",Dc=Object.prototype,Cc=Dc.hasOwnProperty;function Bc(r){var t=this.__data__;if(_e){var e=t[r];return e===$c?void 0:e}return Cc.call(t,r)?t[r]:void 0}var jc=Object.prototype,Pc=jc.hasOwnProperty;function Nc(r){var t=this.__data__;return _e?t[r]!==void 0:Pc.call(t,r)}var Ic="__lodash_hash_undefined__";function Mc(r,t){var e=this.__data__;return this.size+=this.has(r)?0:1,e[r]=_e&&t===void 0?Ic:t,this}function qt(r){var t=-1,e=r==null?0:r.length;for(this.clear();++t<e;){var n=r[t];this.set(n[0],n[1])}}qt.prototype.clear=Ac;qt.prototype.delete=Oc;qt.prototype.get=Bc;qt.prototype.has=Nc;qt.prototype.set=Mc;function Fc(){this.__data__=[],this.size=0}function er(r,t){for(var e=r.length;e--;)if(Te(r[e][0],t))return e;return-1}var Uc=Array.prototype,Lc=Uc.splice;function kc(r){var t=this.__data__,e=er(t,r);if(e<0)return!1;var n=t.length-1;return e==n?t.pop():Lc.call(t,e,1),--this.size,!0}function Hc(r){var t=this.__data__,e=er(t,r);return e<0?void 0:t[e][1]}function Vc(r){return er(this.__data__,r)>-1}function qc(r,t){var e=this.__data__,n=er(e,r);return n<0?(++this.size,e.push([r,t])):e[n][1]=t,this}function At(r){var t=-1,e=r==null?0:r.length;for(this.clear();++t<e;){var n=r[t];this.set(n[0],n[1])}}At.prototype.clear=Fc;At.prototype.delete=kc;At.prototype.get=Hc;At.prototype.has=Vc;At.prototype.set=qc;var zc=Kt(mt,"Map");const we=zc;function Wc(){this.size=0,this.__data__={hash:new qt,map:new(we||At),string:new qt}}function Kc(r){var t=typeof r;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?r!=="__proto__":r===null}function rr(r,t){var e=r.__data__;return Kc(t)?e[typeof t=="string"?"string":"hash"]:e.map}function Jc(r){var t=rr(this,r).delete(r);return this.size-=t?1:0,t}function Gc(r){return rr(this,r).get(r)}function Yc(r){return rr(this,r).has(r)}function Zc(r,t){var e=rr(this,r),n=e.size;return e.set(r,t),this.size+=e.size==n?0:1,this}function Bt(r){var t=-1,e=r==null?0:r.length;for(this.clear();++t<e;){var n=r[t];this.set(n[0],n[1])}}Bt.prototype.clear=Wc;Bt.prototype.delete=Jc;Bt.prototype.get=Gc;Bt.prototype.has=Yc;Bt.prototype.set=Zc;var Qc="Expected a function";function vn(r,t){if(typeof r!="function"||t!=null&&typeof t!="function")throw new TypeError(Qc);var e=function(){var n=arguments,i=t?t.apply(this,n):n[0],s=e.cache;if(s.has(i))return s.get(i);var o=r.apply(this,n);return e.cache=s.set(i,o)||s,o};return e.cache=new(vn.Cache||Bt),e}vn.Cache=Bt;var Xc=500;function tl(r){var t=vn(r,function(n){return e.size===Xc&&e.clear(),n}),e=t.cache;return t}var el=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,rl=/\\(\\)?/g;tl(function(r){var t=[];return r.charCodeAt(0)===46&&t.push(""),r.replace(el,function(e,n,i,s){t.push(i?s.replace(rl,"$1"):n||e)}),t});function ae(r){return r==null?"":cs(r)}function nl(r,t){for(var e=-1,n=t.length,i=r.length;++e<n;)r[i+e]=t[e];return r}var il=Ss(Object.getPrototypeOf,Object);const Rs=il;var sl="[object Object]",ol=Function.prototype,al=Object.prototype,xs=ol.toString,ul=al.hasOwnProperty,cl=xs.call(Object);function As(r){if(!St(r)||xt(r)!=sl)return!1;var t=Rs(r);if(t===null)return!0;var e=ul.call(t,"constructor")&&t.constructor;return typeof e=="function"&&e instanceof e&&xs.call(e)==cl}var ll="[object DOMException]",fl="[object Error]";function Os(r){if(!St(r))return!1;var t=xt(r);return t==fl||t==ll||typeof r.message=="string"&&typeof r.name=="string"&&!As(r)}var hl=gs(function(r,t){try{return fs(r,void 0,t)}catch(e){return Os(e)?e:new Error(e)}});const pl=hl;function dl(r,t,e){var n=-1,i=r.length;t<0&&(t=-t>i?0:i+t),e=e>i?i:e,e<0&&(e+=i),i=t>e?0:e-t>>>0,t>>>=0;for(var s=Array(i);++n<i;)s[n]=r[n+t];return s}function gl(r,t,e){var n=r.length;return e=e===void 0?n:e,!t&&e>=n?r:dl(r,t,e)}var vl="\\ud800-\\udfff",ml="\\u0300-\\u036f",yl="\\ufe20-\\ufe2f",bl="\\u20d0-\\u20ff",_l=ml+yl+bl,wl="\\ufe0e\\ufe0f",El="\\u200d",Sl=RegExp("["+El+vl+_l+wl+"]");function $s(r){return Sl.test(r)}function Tl(r){return r.split("")}var Ds="\\ud800-\\udfff",Rl="\\u0300-\\u036f",xl="\\ufe20-\\ufe2f",Al="\\u20d0-\\u20ff",Ol=Rl+xl+Al,$l="\\ufe0e\\ufe0f",Dl="["+Ds+"]",kr="["+Ol+"]",Hr="\\ud83c[\\udffb-\\udfff]",Cl="(?:"+kr+"|"+Hr+")",Cs="[^"+Ds+"]",Bs="(?:\\ud83c[\\udde6-\\uddff]){2}",js="[\\ud800-\\udbff][\\udc00-\\udfff]",Bl="\\u200d",Ps=Cl+"?",Ns="["+$l+"]?",jl="(?:"+Bl+"(?:"+[Cs,Bs,js].join("|")+")"+Ns+Ps+")*",Pl=Ns+Ps+jl,Nl="(?:"+[Cs+kr+"?",kr,Bs,js,Dl].join("|")+")",Il=RegExp(Hr+"(?="+Hr+")|"+Nl+Pl,"g");function Ml(r){return r.match(Il)||[]}function Fl(r){return $s(r)?Ml(r):Tl(r)}function Ul(r){return function(t){t=ae(t);var e=$s(t)?Fl(t):void 0,n=e?e[0]:t.charAt(0),i=e?gl(e,1).join(""):t.slice(1);return n[r]()+i}}var Ll=Ul("toUpperCase");const Is=Ll;function kl(r){return Is(ae(r).toLowerCase())}function Hl(r,t,e,n){for(var i=-1,s=r==null?0:r.length;++i<s;)e=t(e,r[i],i,r);return e}function Ms(r){return function(t){return r==null?void 0:r[t]}}var Vl={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},ql=Ms(Vl);const zl=ql;var Wl=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Kl="\\u0300-\\u036f",Jl="\\ufe20-\\ufe2f",Gl="\\u20d0-\\u20ff",Yl=Kl+Jl+Gl,Zl="["+Yl+"]",Ql=RegExp(Zl,"g");function Xl(r){return r=ae(r),r&&r.replace(Wl,zl).replace(Ql,"")}var tf=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function ef(r){return r.match(tf)||[]}var rf=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function nf(r){return rf.test(r)}var Fs="\\ud800-\\udfff",sf="\\u0300-\\u036f",of="\\ufe20-\\ufe2f",af="\\u20d0-\\u20ff",uf=sf+of+af,Us="\\u2700-\\u27bf",Ls="a-z\\xdf-\\xf6\\xf8-\\xff",cf="\\xac\\xb1\\xd7\\xf7",lf="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",ff="\\u2000-\\u206f",hf=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",ks="A-Z\\xc0-\\xd6\\xd8-\\xde",pf="\\ufe0e\\ufe0f",Hs=cf+lf+ff+hf,Vs="['’]",Wn="["+Hs+"]",df="["+uf+"]",qs="\\d+",gf="["+Us+"]",zs="["+Ls+"]",Ws="[^"+Fs+Hs+qs+Us+Ls+ks+"]",vf="\\ud83c[\\udffb-\\udfff]",mf="(?:"+df+"|"+vf+")",yf="[^"+Fs+"]",Ks="(?:\\ud83c[\\udde6-\\uddff]){2}",Js="[\\ud800-\\udbff][\\udc00-\\udfff]",te="["+ks+"]",bf="\\u200d",Kn="(?:"+zs+"|"+Ws+")",_f="(?:"+te+"|"+Ws+")",Jn="(?:"+Vs+"(?:d|ll|m|re|s|t|ve))?",Gn="(?:"+Vs+"(?:D|LL|M|RE|S|T|VE))?",Gs=mf+"?",Ys="["+pf+"]?",wf="(?:"+bf+"(?:"+[yf,Ks,Js].join("|")+")"+Ys+Gs+")*",Ef="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Sf="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Tf=Ys+Gs+wf,Rf="(?:"+[gf,Ks,Js].join("|")+")"+Tf,xf=RegExp([te+"?"+zs+"+"+Jn+"(?="+[Wn,te,"$"].join("|")+")",_f+"+"+Gn+"(?="+[Wn,te+Kn,"$"].join("|")+")",te+"?"+Kn+"+"+Jn,te+"+"+Gn,Sf,Ef,qs,Rf].join("|"),"g");function Af(r){return r.match(xf)||[]}function Of(r,t,e){return r=ae(r),t=t,t===void 0?nf(r)?Af(r):ef(r):r.match(t)||[]}var $f="['’]",Df=RegExp($f,"g");function Cf(r){return function(t){return Hl(Of(Xl(t).replace(Df,"")),r,"")}}var Bf=Cf(function(r,t,e){return t=t.toLowerCase(),r+(e?kl(t):t)});const Tt=Bf;function jf(){this.__data__=new At,this.size=0}function Pf(r){var t=this.__data__,e=t.delete(r);return this.size=t.size,e}function Nf(r){return this.__data__.get(r)}function If(r){return this.__data__.has(r)}var Mf=200;function Ff(r,t){var e=this.__data__;if(e instanceof At){var n=e.__data__;if(!we||n.length<Mf-1)return n.push([r,t]),this.size=++e.size,this;e=this.__data__=new Bt(n)}return e.set(r,t),this.size=e.size,this}function Jt(r){var t=this.__data__=new At(r);this.size=t.size}Jt.prototype.clear=jf;Jt.prototype.delete=Pf;Jt.prototype.get=Nf;Jt.prototype.has=If;Jt.prototype.set=Ff;var Zs=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Yn=Zs&&typeof module=="object"&&module&&!module.nodeType&&module,Uf=Yn&&Yn.exports===Zs,Zn=Uf?mt.Buffer:void 0,Qn=Zn?Zn.allocUnsafe:void 0;function Qs(r,t){if(t)return r.slice();var e=r.length,n=Qn?Qn(e):new r.constructor(e);return r.copy(n),n}function Lf(r,t){for(var e=-1,n=r==null?0:r.length,i=0,s=[];++e<n;){var o=r[e];t(o,e,r)&&(s[i++]=o)}return s}function kf(){return[]}var Hf=Object.prototype,Vf=Hf.propertyIsEnumerable,Xn=Object.getOwnPropertySymbols,qf=Xn?function(r){return r==null?[]:(r=Object(r),Lf(Xn(r),function(t){return Vf.call(r,t)}))}:kf;const zf=qf;function Wf(r,t,e){var n=t(r);return Ht(r)?n:nl(n,e(r))}function Kf(r){return Wf(r,Ts,zf)}var Jf=Kt(mt,"DataView");const Vr=Jf;var Gf=Kt(mt,"Promise");const qr=Gf;var Yf=Kt(mt,"Set");const zr=Yf;var ti="[object Map]",Zf="[object Object]",ei="[object Promise]",ri="[object Set]",ni="[object WeakMap]",ii="[object DataView]",Qf=Wt(Vr),Xf=Wt(we),th=Wt(qr),eh=Wt(zr),rh=Wt(Ur),Ut=xt;(Vr&&Ut(new Vr(new ArrayBuffer(1)))!=ii||we&&Ut(new we)!=ti||qr&&Ut(qr.resolve())!=ei||zr&&Ut(new zr)!=ri||Ur&&Ut(new Ur)!=ni)&&(Ut=function(r){var t=xt(r),e=t==Zf?r.constructor:void 0,n=e?Wt(e):"";if(n)switch(n){case Qf:return ii;case Xf:return ti;case th:return ei;case eh:return ri;case rh:return ni}return t});const mn=Ut;var nh=Object.prototype,ih=nh.hasOwnProperty;function sh(r){var t=r.length,e=new r.constructor(t);return t&&typeof r[0]=="string"&&ih.call(r,"index")&&(e.index=r.index,e.input=r.input),e}var oh=mt.Uint8Array;const si=oh;function yn(r){var t=new r.constructor(r.byteLength);return new si(t).set(new si(r)),t}function ah(r,t){var e=yn(r.buffer);return new r.constructor(e,r.byteOffset,r.byteLength)}var uh=/\w*$/;function ch(r){var t=new r.constructor(r.source,uh.exec(r));return t.lastIndex=r.lastIndex,t}var oi=wt?wt.prototype:void 0,ai=oi?oi.valueOf:void 0;function lh(r){return ai?Object(ai.call(r)):{}}function Xs(r,t){var e=t?yn(r.buffer):r.buffer;return new r.constructor(e,r.byteOffset,r.length)}var fh="[object Boolean]",hh="[object Date]",ph="[object Map]",dh="[object Number]",gh="[object RegExp]",vh="[object Set]",mh="[object String]",yh="[object Symbol]",bh="[object ArrayBuffer]",_h="[object DataView]",wh="[object Float32Array]",Eh="[object Float64Array]",Sh="[object Int8Array]",Th="[object Int16Array]",Rh="[object Int32Array]",xh="[object Uint8Array]",Ah="[object Uint8ClampedArray]",Oh="[object Uint16Array]",$h="[object Uint32Array]";function Dh(r,t,e){var n=r.constructor;switch(t){case bh:return yn(r);case fh:case hh:return new n(+r);case _h:return ah(r);case wh:case Eh:case Sh:case Th:case Rh:case xh:case Ah:case Oh:case $h:return Xs(r,e);case ph:return new n;case dh:case mh:return new n(r);case gh:return ch(r);case vh:return new n;case yh:return lh(r)}}function to(r){return typeof r.constructor=="function"&&!hn(r)?lu(Rs(r)):{}}var Ch="[object Map]";function Bh(r){return St(r)&&mn(r)==Ch}var ui=Et&&Et.isMap,jh=ui?dn(ui):Bh;const Ph=jh;var Nh="[object Set]";function Ih(r){return St(r)&&mn(r)==Nh}var ci=Et&&Et.isSet,Mh=ci?dn(ci):Ih;const Fh=Mh;var Uh=1,eo="[object Arguments]",Lh="[object Array]",kh="[object Boolean]",Hh="[object Date]",Vh="[object Error]",ro="[object Function]",qh="[object GeneratorFunction]",zh="[object Map]",Wh="[object Number]",no="[object Object]",Kh="[object RegExp]",Jh="[object Set]",Gh="[object String]",Yh="[object Symbol]",Zh="[object WeakMap]",Qh="[object ArrayBuffer]",Xh="[object DataView]",tp="[object Float32Array]",ep="[object Float64Array]",rp="[object Int8Array]",np="[object Int16Array]",ip="[object Int32Array]",sp="[object Uint8Array]",op="[object Uint8ClampedArray]",ap="[object Uint16Array]",up="[object Uint32Array]",G={};G[eo]=G[Lh]=G[Qh]=G[Xh]=G[kh]=G[Hh]=G[tp]=G[ep]=G[rp]=G[np]=G[ip]=G[zh]=G[Wh]=G[no]=G[Kh]=G[Jh]=G[Gh]=G[Yh]=G[sp]=G[op]=G[ap]=G[up]=!0;G[Vh]=G[ro]=G[Zh]=!1;function Le(r,t,e,n,i,s){var o,u=t&Uh;if(o!==void 0)return o;if(!lt(r))return r;var l=Ht(r);if(l)o=sh(r);else{var a=mn(r),c=a==ro||a==qh;if(pn(r))return Qs(r,u);if(a==no||a==eo||c&&!i)o=c?{}:to(r);else{if(!G[a])return i?r:{};o=Dh(r,a,u)}}s||(s=new Jt);var f=s.get(r);if(f)return f;s.set(r,o),Fh(r)?r.forEach(function(d){o.add(Le(d,t,e,d,r,s))}):Ph(r)&&r.forEach(function(d,g){o.set(g,Le(d,t,e,g,r,s))});var h=Kf,p=l?void 0:h(r);return Eu(p||r,function(d,g){p&&(g=d,d=r[g]),ps(o,g,Le(d,t,e,g,r,s))}),o}var cp=1,lp=4;function li(r){return Le(r,cp|lp)}var fi=wt?wt.prototype:void 0;fi&&fi.valueOf;function fp(r){return function(t,e,n){for(var i=-1,s=Object(t),o=n(t),u=o.length;u--;){var l=o[++i];if(e(s[l],l,s)===!1)break}return t}}var hp=fp();const pp=hp;var dp=function(){return mt.Date.now()};const mr=dp;var gp="Expected a function",vp=Math.max,mp=Math.min;function io(r,t,e){var n,i,s,o,u,l,a=0,c=!1,f=!1,h=!0;if(typeof r!="function")throw new TypeError(gp);t=Mn(t)||0,lt(e)&&(c=!!e.leading,f="maxWait"in e,s=f?vp(Mn(e.maxWait)||0,t):s,h="trailing"in e?!!e.trailing:h);function p(v){var T=n,A=i;return n=i=void 0,a=v,o=r.apply(A,T),o}function d(v){return a=v,u=setTimeout(w,t),c?p(v):o}function g(v){var T=v-l,A=v-a,L=t-T;return f?mp(L,s-A):L}function b(v){var T=v-l,A=v-a;return l===void 0||T>=t||T<0||f&&A>=s}function w(){var v=mr();if(b(v))return m(v);u=setTimeout(w,g(v))}function m(v){return u=void 0,h&&n?p(v):(n=i=void 0,o)}function y(){u!==void 0&&clearTimeout(u),a=0,n=l=i=u=void 0}function _(){return u===void 0?o:m(mr())}function S(){var v=mr(),T=b(v);if(n=arguments,i=this,l=v,T){if(u===void 0)return d(l);if(f)return clearTimeout(u),u=setTimeout(w,t),p(l)}return u===void 0&&(u=setTimeout(w,t)),o}return S.cancel=y,S.flush=_,S}function Wr(r,t,e){(e!==void 0&&!Te(r[t],e)||e===void 0&&!(t in r))&&fn(r,t,e)}function yp(r){return St(r)&&tr(r)}function Kr(r,t){if(!(t==="constructor"&&typeof r[t]=="function")&&t!="__proto__")return r[t]}function bp(r){return ds(r,gn(r))}function _p(r,t,e,n,i,s,o){var u=Kr(r,e),l=Kr(t,e),a=o.get(l);if(a){Wr(r,e,a);return}var c=s?s(u,l,e+"",r,t,o):void 0,f=c===void 0;if(f){var h=Ht(l),p=!h&&pn(l),d=!h&&!p&&ws(l);c=l,h||p||d?Ht(u)?c=u:yp(u)?c=fu(u):p?(f=!1,c=Qs(l,!0)):d?(f=!1,c=Xs(l,!0)):c=[]:As(l)||Lr(l)?(c=u,Lr(u)?c=bp(u):(!lt(u)||Vt(u))&&(c=to(l))):f=!1}f&&(o.set(l,c),i(c,l,n,s,o),o.delete(l)),Wr(r,e,c)}function so(r,t,e,n,i){r!==t&&pp(t,function(s,o){if(i||(i=new Jt),lt(s))_p(r,t,o,e,so,n,i);else{var u=n?n(Kr(r,o),s,o+"",r,t,i):void 0;u===void 0&&(u=s),Wr(r,o,u)}},gn)}var wp={"&":"&","<":"<",">":">",'"':""","'":"'"},Ep=Ms(wp);const Sp=Ep;var oo=/[&<>"']/g,Tp=RegExp(oo.source);function Rp(r){return r=ae(r),r&&Tp.test(r)?r.replace(oo,Sp):r}var xp="[object String]";function jt(r){return typeof r=="string"||!Ht(r)&&St(r)&&xt(r)==xp}function Ap(r,t){return us(t,function(e){return r[e]})}Et&&Et.isArrayBuffer;Et&&Et.isDate;var Op=ms(function(r,t,e){so(r,t,e)});const ve=Op;var ao=Object.prototype,$p=ao.hasOwnProperty;function hi(r,t,e,n){return r===void 0||Te(r,ao[e])&&!$p.call(n,e)?t:r}var Dp={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"};function Cp(r){return"\\"+Dp[r]}var Bp=/<%=([\s\S]+?)%>/g;const uo=Bp;var jp=/<%-([\s\S]+?)%>/g;const Pp=jp;var Np=/<%([\s\S]+?)%>/g;const Ip=Np;var Mp={escape:Pp,evaluate:Ip,interpolate:uo,variable:"",imports:{_:{escape:Rp}}};const pi=Mp;var Fp="Invalid `variable` option passed into `_.template`",Up=/\b__p \+= '';/g,Lp=/\b(__p \+=) '' \+/g,kp=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Hp=/[()=,{}\[\]\/\s]/,Vp=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,De=/($^)/,qp=/['\n\r\u2028\u2029\\]/g,zp=Object.prototype,di=zp.hasOwnProperty;function Wp(r,t,e){var n=pi.imports._.templateSettings||pi;r=ae(r),t=zn({},t,n,hi);var i=zn({},t.imports,n.imports,hi),s=Ts(i),o=Ap(i,s),u,l,a=0,c=t.interpolate||De,f="__p += '",h=RegExp((t.escape||De).source+"|"+c.source+"|"+(c===uo?Vp:De).source+"|"+(t.evaluate||De).source+"|$","g"),p=di.call(t,"sourceURL")?"//# sourceURL="+(t.sourceURL+"").replace(/\s/g," ")+`
|
|
3
|
-
`:"";r.replace(h,function(
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./@dcloudio-uni-h5-vue-Dxv_ts1w.js","./vue-BK7aLblh.js","./@dcloudio-uni-shared-Cc-Ey1iB.js","./vue-router-C2iVG-hf.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
var fa=Object.defineProperty,ha=Object.defineProperties;var pa=Object.getOwnPropertyDescriptors;var On=Object.getOwnPropertySymbols;var da=Object.prototype.hasOwnProperty,ga=Object.prototype.propertyIsEnumerable;var Yt=(r,t)=>(t=Symbol[r])?t:Symbol.for("Symbol."+r),va=r=>{throw TypeError(r)};var hr=(r,t,e)=>t in r?fa(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e,H=(r,t)=>{for(var e in t||(t={}))da.call(t,e)&&hr(r,e,t[e]);if(On)for(var e of On(t))ga.call(t,e)&&hr(r,e,t[e]);return r},et=(r,t)=>ha(r,pa(t));var z=(r,t,e)=>hr(r,typeof t!="symbol"?t+"":t,e);var U=(r,t,e)=>new Promise((n,i)=>{var s=l=>{try{u(e.next(l))}catch(a){i(a)}},o=l=>{try{u(e.throw(l))}catch(a){i(a)}},u=l=>l.done?n(l.value):Promise.resolve(l.value).then(s,o);u((e=e.apply(r,t)).next())}),Mt=function(r,t){this[0]=r,this[1]=t},pr=(r,t,e)=>{var n=(o,u,l,a)=>{try{var c=e[o](u),f=(u=c.value)instanceof Mt,h=c.done;Promise.resolve(f?u[0]:u).then(p=>f?n(o==="return"?o:"next",u[1]?{done:p.done,value:p.value}:p,l,a):l({value:p,done:h})).catch(p=>n("throw",p,l,a))}catch(p){a(p)}},i=o=>s[o]=u=>new Promise((l,a)=>n(o,u,l,a)),s={};return e=e.apply(r,t),s[Yt("asyncIterator")]=()=>s,i("next"),i("throw"),i("return"),s},dr=r=>{var t=r[Yt("asyncIterator")],e=!1,n,i={};return t==null?(t=r[Yt("iterator")](),n=s=>i[s]=o=>t[s](o)):(t=t.call(r),n=s=>i[s]=o=>{if(e){if(e=!1,s==="throw")throw o;return o}return e=!0,{done:!1,value:new Mt(new Promise(u=>{var l=t[s](o);l instanceof Object||va("Object expected"),u(l)}),1)}}),i[Yt("iterator")]=()=>i,n("next"),"throw"in t?n("throw"):i.throw=s=>{throw s},"return"in t&&n("return"),i},$n=(r,t,e)=>(t=r[Yt("asyncIterator")])?t.call(r):(r=r[Yt("iterator")](),t={},e=(n,i)=>(i=r[n])&&(t[n]=s=>new Promise((o,u,l)=>(s=i.call(r,s),l=s.done,Promise.resolve(s.value).then(a=>o({value:a,done:l}),u)))),e("next"),e("return"),t);import{d as is,g as Dn,h as Fr,r as ma,G as Xe,i as ya}from"./@dcloudio-uni-h5-vue-Dxv_ts1w.js";import{useRoute as ba}from"./vue-router-C2iVG-hf.js";import"./vue-BK7aLblh.js";import"./@dcloudio-uni-shared-Cc-Ey1iB.js";(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))n(i);new MutationObserver(i=>{for(const s of i)if(s.type==="childList")for(const o of s.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&n(o)}).observe(document,{childList:!0,subtree:!0});function e(i){const s={};return i.integrity&&(s.integrity=i.integrity),i.referrerPolicy&&(s.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?s.credentials="include":i.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function n(i){if(i.ep)return;i.ep=!0;const s=e(i);fetch(i.href,s)}})();const _a="modulepreload",wa=function(r,t){return new URL(r,t).href},Cn={},Bn=function(t,e,n){let i=Promise.resolve();if(e&&e.length>0){let o=function(c){return Promise.all(c.map(f=>Promise.resolve(f).then(h=>({status:"fulfilled",value:h}),h=>({status:"rejected",reason:h}))))};const u=document.getElementsByTagName("link"),l=document.querySelector("meta[property=csp-nonce]"),a=(l==null?void 0:l.nonce)||(l==null?void 0:l.getAttribute("nonce"));i=o(e.map(c=>{if(c=wa(c,n),c in Cn)return;Cn[c]=!0;const f=c.endsWith(".css"),h=f?'[rel="stylesheet"]':"";if(!!n)for(let g=u.length-1;g>=0;g--){const y=u[g];if(y.href===c&&(!f||y.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${c}"]${h}`))return;const d=document.createElement("link");if(d.rel=f?"stylesheet":_a,f||(d.as="script"),d.crossOrigin="",d.href=c,a&&d.setAttribute("nonce",a),document.head.appendChild(d),f)return new Promise((g,y)=>{d.addEventListener("load",g),d.addEventListener("error",()=>y(new Error(`Unable to preload CSS for ${c}`)))})}))}function s(o){const u=new Event("vite:preloadError",{cancelable:!0});if(u.payload=o,window.dispatchEvent(u),!u.defaultPrevented)throw o}return i.then(o=>{for(const u of o||[])u.status==="rejected"&&s(u.reason);return t().catch(s)})};var Ea={ENV_TYPE:"live",NODE_ENV:"production"},Sa=typeof global=="object"&&global&&global.Object===Object&&global;const ss=Sa;var Ta=typeof self=="object"&&self&&self.Object===Object&&self,Ra=ss||Ta||Function("return this")();const mt=Ra;var xa=mt.Symbol;const wt=xa;var os=Object.prototype,Aa=os.hasOwnProperty,Oa=os.toString,pe=wt?wt.toStringTag:void 0;function $a(r){var t=Aa.call(r,pe),e=r[pe];try{r[pe]=void 0;var n=!0}catch(s){}var i=Oa.call(r);return n&&(t?r[pe]=e:delete r[pe]),i}var Da=Object.prototype,Ca=Da.toString;function Ba(r){return Ca.call(r)}var ja="[object Null]",Pa="[object Undefined]",jn=wt?wt.toStringTag:void 0;function xt(r){return r==null?r===void 0?Pa:ja:jn&&jn in Object(r)?$a(r):Ba(r)}function St(r){return r!=null&&typeof r=="object"}var Na="[object Symbol]";function as(r){return typeof r=="symbol"||St(r)&&xt(r)==Na}function us(r,t){for(var e=-1,n=r==null?0:r.length,i=Array(n);++e<n;)i[e]=t(r[e],e,r);return i}var Ia=Array.isArray;const Ht=Ia;var Pn=wt?wt.prototype:void 0,Nn=Pn?Pn.toString:void 0;function cs(r){if(typeof r=="string")return r;if(Ht(r))return us(r,cs)+"";if(as(r))return Nn?Nn.call(r):"";var t=r+"";return t=="0"&&1/r==-1/0?"-0":t}var Ma=/\s/;function Fa(r){for(var t=r.length;t--&&Ma.test(r.charAt(t)););return t}var Ua=/^\s+/;function La(r){return r&&r.slice(0,Fa(r)+1).replace(Ua,"")}function lt(r){var t=typeof r;return r!=null&&(t=="object"||t=="function")}var In=NaN,ka=/^[-+]0x[0-9a-f]+$/i,Ha=/^0b[01]+$/i,Va=/^0o[0-7]+$/i,qa=parseInt;function Mn(r){if(typeof r=="number")return r;if(as(r))return In;if(lt(r)){var t=typeof r.valueOf=="function"?r.valueOf():r;r=lt(t)?t+"":t}if(typeof r!="string")return r===0?r:+r;r=La(r);var e=Ha.test(r);return e||Va.test(r)?qa(r.slice(2),e?2:8):ka.test(r)?In:+r}function ls(r){return r}var za="[object AsyncFunction]",Wa="[object Function]",Ka="[object GeneratorFunction]",Ja="[object Proxy]";function Vt(r){if(!lt(r))return!1;var t=xt(r);return t==Wa||t==Ka||t==za||t==Ja}var Ga=mt["__core-js_shared__"];const gr=Ga;var Fn=(function(){var r=/[^.]+$/.exec(gr&&gr.keys&&gr.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""})();function Ya(r){return!!Fn&&Fn in r}var Za=Function.prototype,Qa=Za.toString;function Wt(r){if(r!=null){try{return Qa.call(r)}catch(t){}try{return r+""}catch(t){}}return""}var Xa=/[\\^$.*+?()[\]{}|]/g,tu=/^\[object .+?Constructor\]$/,eu=Function.prototype,ru=Object.prototype,nu=eu.toString,iu=ru.hasOwnProperty,su=RegExp("^"+nu.call(iu).replace(Xa,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function ou(r){if(!lt(r)||Ya(r))return!1;var t=Vt(r)?su:tu;return t.test(Wt(r))}function au(r,t){return r==null?void 0:r[t]}function Kt(r,t){var e=au(r,t);return ou(e)?e:void 0}var uu=Kt(mt,"WeakMap");const Ur=uu;var Un=Object.create,cu=(function(){function r(){}return function(t){if(!lt(t))return{};if(Un)return Un(t);r.prototype=t;var e=new r;return r.prototype=void 0,e}})();const lu=cu;function fs(r,t,e){switch(e.length){case 0:return r.call(t);case 1:return r.call(t,e[0]);case 2:return r.call(t,e[0],e[1]);case 3:return r.call(t,e[0],e[1],e[2])}return r.apply(t,e)}function fu(r,t){var e=-1,n=r.length;for(t||(t=Array(n));++e<n;)t[e]=r[e];return t}var hu=800,pu=16,du=Date.now;function gu(r){var t=0,e=0;return function(){var n=du(),i=pu-(n-e);if(e=n,i>0){if(++t>=hu)return arguments[0]}else t=0;return r.apply(void 0,arguments)}}function vu(r){return function(){return r}}var mu=(function(){try{var r=Kt(Object,"defineProperty");return r({},"",{}),r}catch(t){}})();const Je=mu;var yu=Je?function(r,t){return Je(r,"toString",{configurable:!0,enumerable:!1,value:vu(t),writable:!0})}:ls;const bu=yu;var _u=gu(bu);const wu=_u;function Eu(r,t){for(var e=-1,n=r==null?0:r.length;++e<n&&t(r[e],e,r)!==!1;);return r}var Su=9007199254740991,Tu=/^(?:0|[1-9]\d*)$/;function hs(r,t){var e=typeof r;return t=t==null?Su:t,!!t&&(e=="number"||e!="symbol"&&Tu.test(r))&&r>-1&&r%1==0&&r<t}function fn(r,t,e){t=="__proto__"&&Je?Je(r,t,{configurable:!0,enumerable:!0,value:e,writable:!0}):r[t]=e}function Te(r,t){return r===t||r!==r&&t!==t}var Ru=Object.prototype,xu=Ru.hasOwnProperty;function ps(r,t,e){var n=r[t];(!(xu.call(r,t)&&Te(n,e))||e===void 0&&!(t in r))&&fn(r,t,e)}function ds(r,t,e,n){var i=!e;e||(e={});for(var s=-1,o=t.length;++s<o;){var u=t[s],l=n?n(e[u],r[u],u,e,r):void 0;l===void 0&&(l=r[u]),i?fn(e,u,l):ps(e,u,l)}return e}var Ln=Math.max;function Au(r,t,e){return t=Ln(t===void 0?r.length-1:t,0),function(){for(var n=arguments,i=-1,s=Ln(n.length-t,0),o=Array(s);++i<s;)o[i]=n[t+i];i=-1;for(var u=Array(t+1);++i<t;)u[i]=n[i];return u[t]=e(o),fs(r,this,u)}}function gs(r,t){return wu(Au(r,t,ls),r+"")}var Ou=9007199254740991;function vs(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=Ou}function tr(r){return r!=null&&vs(r.length)&&!Vt(r)}function $u(r,t,e){if(!lt(e))return!1;var n=typeof t;return(n=="number"?tr(e)&&hs(t,e.length):n=="string"&&t in e)?Te(e[t],r):!1}function ms(r){return gs(function(t,e){var n=-1,i=e.length,s=i>1?e[i-1]:void 0,o=i>2?e[2]:void 0;for(s=r.length>3&&typeof s=="function"?(i--,s):void 0,o&&$u(e[0],e[1],o)&&(s=i<3?void 0:s,i=1),t=Object(t);++n<i;){var u=e[n];u&&r(t,u,n,s)}return t})}var Du=Object.prototype;function hn(r){var t=r&&r.constructor,e=typeof t=="function"&&t.prototype||Du;return r===e}function Cu(r,t){for(var e=-1,n=Array(r);++e<r;)n[e]=t(e);return n}var Bu="[object Arguments]";function kn(r){return St(r)&&xt(r)==Bu}var ys=Object.prototype,ju=ys.hasOwnProperty,Pu=ys.propertyIsEnumerable,Nu=kn((function(){return arguments})())?kn:function(r){return St(r)&&ju.call(r,"callee")&&!Pu.call(r,"callee")};const Lr=Nu;function Iu(){return!1}var bs=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Hn=bs&&typeof module=="object"&&module&&!module.nodeType&&module,Mu=Hn&&Hn.exports===bs,Vn=Mu?mt.Buffer:void 0,Fu=Vn?Vn.isBuffer:void 0,Uu=Fu||Iu;const pn=Uu;var Lu="[object Arguments]",ku="[object Array]",Hu="[object Boolean]",Vu="[object Date]",qu="[object Error]",zu="[object Function]",Wu="[object Map]",Ku="[object Number]",Ju="[object Object]",Gu="[object RegExp]",Yu="[object Set]",Zu="[object String]",Qu="[object WeakMap]",Xu="[object ArrayBuffer]",tc="[object DataView]",ec="[object Float32Array]",rc="[object Float64Array]",nc="[object Int8Array]",ic="[object Int16Array]",sc="[object Int32Array]",oc="[object Uint8Array]",ac="[object Uint8ClampedArray]",uc="[object Uint16Array]",cc="[object Uint32Array]",Y={};Y[ec]=Y[rc]=Y[nc]=Y[ic]=Y[sc]=Y[oc]=Y[ac]=Y[uc]=Y[cc]=!0;Y[Lu]=Y[ku]=Y[Xu]=Y[Hu]=Y[tc]=Y[Vu]=Y[qu]=Y[zu]=Y[Wu]=Y[Ku]=Y[Ju]=Y[Gu]=Y[Yu]=Y[Zu]=Y[Qu]=!1;function lc(r){return St(r)&&vs(r.length)&&!!Y[xt(r)]}function dn(r){return function(t){return r(t)}}var _s=typeof exports=="object"&&exports&&!exports.nodeType&&exports,ye=_s&&typeof module=="object"&&module&&!module.nodeType&&module,fc=ye&&ye.exports===_s,vr=fc&&ss.process,hc=(function(){try{var r=ye&&ye.require&&ye.require("util").types;return r||vr&&vr.binding&&vr.binding("util")}catch(t){}})();const Et=hc;var qn=Et&&Et.isTypedArray,pc=qn?dn(qn):lc;const ws=pc;var dc=Object.prototype,gc=dc.hasOwnProperty;function Es(r,t){var e=Ht(r),n=!e&&Lr(r),i=!e&&!n&&pn(r),s=!e&&!n&&!i&&ws(r),o=e||n||i||s,u=o?Cu(r.length,String):[],l=u.length;for(var a in r)(t||gc.call(r,a))&&!(o&&(a=="length"||i&&(a=="offset"||a=="parent")||s&&(a=="buffer"||a=="byteLength"||a=="byteOffset")||hs(a,l)))&&u.push(a);return u}function Ss(r,t){return function(e){return r(t(e))}}var vc=Ss(Object.keys,Object);const mc=vc;var yc=Object.prototype,bc=yc.hasOwnProperty;function _c(r){if(!hn(r))return mc(r);var t=[];for(var e in Object(r))bc.call(r,e)&&e!="constructor"&&t.push(e);return t}function Ts(r){return tr(r)?Es(r):_c(r)}function wc(r){var t=[];if(r!=null)for(var e in Object(r))t.push(e);return t}var Ec=Object.prototype,Sc=Ec.hasOwnProperty;function Tc(r){if(!lt(r))return wc(r);var t=hn(r),e=[];for(var n in r)n=="constructor"&&(t||!Sc.call(r,n))||e.push(n);return e}function gn(r){return tr(r)?Es(r,!0):Tc(r)}var Rc=ms(function(r,t,e,n){ds(t,gn(t),r,n)});const zn=Rc;var xc=Kt(Object,"create");const _e=xc;function Ac(){this.__data__=_e?_e(null):{},this.size=0}function Oc(r){var t=this.has(r)&&delete this.__data__[r];return this.size-=t?1:0,t}var $c="__lodash_hash_undefined__",Dc=Object.prototype,Cc=Dc.hasOwnProperty;function Bc(r){var t=this.__data__;if(_e){var e=t[r];return e===$c?void 0:e}return Cc.call(t,r)?t[r]:void 0}var jc=Object.prototype,Pc=jc.hasOwnProperty;function Nc(r){var t=this.__data__;return _e?t[r]!==void 0:Pc.call(t,r)}var Ic="__lodash_hash_undefined__";function Mc(r,t){var e=this.__data__;return this.size+=this.has(r)?0:1,e[r]=_e&&t===void 0?Ic:t,this}function qt(r){var t=-1,e=r==null?0:r.length;for(this.clear();++t<e;){var n=r[t];this.set(n[0],n[1])}}qt.prototype.clear=Ac;qt.prototype.delete=Oc;qt.prototype.get=Bc;qt.prototype.has=Nc;qt.prototype.set=Mc;function Fc(){this.__data__=[],this.size=0}function er(r,t){for(var e=r.length;e--;)if(Te(r[e][0],t))return e;return-1}var Uc=Array.prototype,Lc=Uc.splice;function kc(r){var t=this.__data__,e=er(t,r);if(e<0)return!1;var n=t.length-1;return e==n?t.pop():Lc.call(t,e,1),--this.size,!0}function Hc(r){var t=this.__data__,e=er(t,r);return e<0?void 0:t[e][1]}function Vc(r){return er(this.__data__,r)>-1}function qc(r,t){var e=this.__data__,n=er(e,r);return n<0?(++this.size,e.push([r,t])):e[n][1]=t,this}function At(r){var t=-1,e=r==null?0:r.length;for(this.clear();++t<e;){var n=r[t];this.set(n[0],n[1])}}At.prototype.clear=Fc;At.prototype.delete=kc;At.prototype.get=Hc;At.prototype.has=Vc;At.prototype.set=qc;var zc=Kt(mt,"Map");const we=zc;function Wc(){this.size=0,this.__data__={hash:new qt,map:new(we||At),string:new qt}}function Kc(r){var t=typeof r;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?r!=="__proto__":r===null}function rr(r,t){var e=r.__data__;return Kc(t)?e[typeof t=="string"?"string":"hash"]:e.map}function Jc(r){var t=rr(this,r).delete(r);return this.size-=t?1:0,t}function Gc(r){return rr(this,r).get(r)}function Yc(r){return rr(this,r).has(r)}function Zc(r,t){var e=rr(this,r),n=e.size;return e.set(r,t),this.size+=e.size==n?0:1,this}function Bt(r){var t=-1,e=r==null?0:r.length;for(this.clear();++t<e;){var n=r[t];this.set(n[0],n[1])}}Bt.prototype.clear=Wc;Bt.prototype.delete=Jc;Bt.prototype.get=Gc;Bt.prototype.has=Yc;Bt.prototype.set=Zc;var Qc="Expected a function";function vn(r,t){if(typeof r!="function"||t!=null&&typeof t!="function")throw new TypeError(Qc);var e=function(){var n=arguments,i=t?t.apply(this,n):n[0],s=e.cache;if(s.has(i))return s.get(i);var o=r.apply(this,n);return e.cache=s.set(i,o)||s,o};return e.cache=new(vn.Cache||Bt),e}vn.Cache=Bt;var Xc=500;function tl(r){var t=vn(r,function(n){return e.size===Xc&&e.clear(),n}),e=t.cache;return t}var el=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,rl=/\\(\\)?/g;tl(function(r){var t=[];return r.charCodeAt(0)===46&&t.push(""),r.replace(el,function(e,n,i,s){t.push(i?s.replace(rl,"$1"):n||e)}),t});function ae(r){return r==null?"":cs(r)}function nl(r,t){for(var e=-1,n=t.length,i=r.length;++e<n;)r[i+e]=t[e];return r}var il=Ss(Object.getPrototypeOf,Object);const Rs=il;var sl="[object Object]",ol=Function.prototype,al=Object.prototype,xs=ol.toString,ul=al.hasOwnProperty,cl=xs.call(Object);function As(r){if(!St(r)||xt(r)!=sl)return!1;var t=Rs(r);if(t===null)return!0;var e=ul.call(t,"constructor")&&t.constructor;return typeof e=="function"&&e instanceof e&&xs.call(e)==cl}var ll="[object DOMException]",fl="[object Error]";function Os(r){if(!St(r))return!1;var t=xt(r);return t==fl||t==ll||typeof r.message=="string"&&typeof r.name=="string"&&!As(r)}var hl=gs(function(r,t){try{return fs(r,void 0,t)}catch(e){return Os(e)?e:new Error(e)}});const pl=hl;function dl(r,t,e){var n=-1,i=r.length;t<0&&(t=-t>i?0:i+t),e=e>i?i:e,e<0&&(e+=i),i=t>e?0:e-t>>>0,t>>>=0;for(var s=Array(i);++n<i;)s[n]=r[n+t];return s}function gl(r,t,e){var n=r.length;return e=e===void 0?n:e,!t&&e>=n?r:dl(r,t,e)}var vl="\\ud800-\\udfff",ml="\\u0300-\\u036f",yl="\\ufe20-\\ufe2f",bl="\\u20d0-\\u20ff",_l=ml+yl+bl,wl="\\ufe0e\\ufe0f",El="\\u200d",Sl=RegExp("["+El+vl+_l+wl+"]");function $s(r){return Sl.test(r)}function Tl(r){return r.split("")}var Ds="\\ud800-\\udfff",Rl="\\u0300-\\u036f",xl="\\ufe20-\\ufe2f",Al="\\u20d0-\\u20ff",Ol=Rl+xl+Al,$l="\\ufe0e\\ufe0f",Dl="["+Ds+"]",kr="["+Ol+"]",Hr="\\ud83c[\\udffb-\\udfff]",Cl="(?:"+kr+"|"+Hr+")",Cs="[^"+Ds+"]",Bs="(?:\\ud83c[\\udde6-\\uddff]){2}",js="[\\ud800-\\udbff][\\udc00-\\udfff]",Bl="\\u200d",Ps=Cl+"?",Ns="["+$l+"]?",jl="(?:"+Bl+"(?:"+[Cs,Bs,js].join("|")+")"+Ns+Ps+")*",Pl=Ns+Ps+jl,Nl="(?:"+[Cs+kr+"?",kr,Bs,js,Dl].join("|")+")",Il=RegExp(Hr+"(?="+Hr+")|"+Nl+Pl,"g");function Ml(r){return r.match(Il)||[]}function Fl(r){return $s(r)?Ml(r):Tl(r)}function Ul(r){return function(t){t=ae(t);var e=$s(t)?Fl(t):void 0,n=e?e[0]:t.charAt(0),i=e?gl(e,1).join(""):t.slice(1);return n[r]()+i}}var Ll=Ul("toUpperCase");const Is=Ll;function kl(r){return Is(ae(r).toLowerCase())}function Hl(r,t,e,n){for(var i=-1,s=r==null?0:r.length;++i<s;)e=t(e,r[i],i,r);return e}function Ms(r){return function(t){return r==null?void 0:r[t]}}var Vl={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},ql=Ms(Vl);const zl=ql;var Wl=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Kl="\\u0300-\\u036f",Jl="\\ufe20-\\ufe2f",Gl="\\u20d0-\\u20ff",Yl=Kl+Jl+Gl,Zl="["+Yl+"]",Ql=RegExp(Zl,"g");function Xl(r){return r=ae(r),r&&r.replace(Wl,zl).replace(Ql,"")}var tf=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function ef(r){return r.match(tf)||[]}var rf=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function nf(r){return rf.test(r)}var Fs="\\ud800-\\udfff",sf="\\u0300-\\u036f",of="\\ufe20-\\ufe2f",af="\\u20d0-\\u20ff",uf=sf+of+af,Us="\\u2700-\\u27bf",Ls="a-z\\xdf-\\xf6\\xf8-\\xff",cf="\\xac\\xb1\\xd7\\xf7",lf="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",ff="\\u2000-\\u206f",hf=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",ks="A-Z\\xc0-\\xd6\\xd8-\\xde",pf="\\ufe0e\\ufe0f",Hs=cf+lf+ff+hf,Vs="['’]",Wn="["+Hs+"]",df="["+uf+"]",qs="\\d+",gf="["+Us+"]",zs="["+Ls+"]",Ws="[^"+Fs+Hs+qs+Us+Ls+ks+"]",vf="\\ud83c[\\udffb-\\udfff]",mf="(?:"+df+"|"+vf+")",yf="[^"+Fs+"]",Ks="(?:\\ud83c[\\udde6-\\uddff]){2}",Js="[\\ud800-\\udbff][\\udc00-\\udfff]",te="["+ks+"]",bf="\\u200d",Kn="(?:"+zs+"|"+Ws+")",_f="(?:"+te+"|"+Ws+")",Jn="(?:"+Vs+"(?:d|ll|m|re|s|t|ve))?",Gn="(?:"+Vs+"(?:D|LL|M|RE|S|T|VE))?",Gs=mf+"?",Ys="["+pf+"]?",wf="(?:"+bf+"(?:"+[yf,Ks,Js].join("|")+")"+Ys+Gs+")*",Ef="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Sf="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Tf=Ys+Gs+wf,Rf="(?:"+[gf,Ks,Js].join("|")+")"+Tf,xf=RegExp([te+"?"+zs+"+"+Jn+"(?="+[Wn,te,"$"].join("|")+")",_f+"+"+Gn+"(?="+[Wn,te+Kn,"$"].join("|")+")",te+"?"+Kn+"+"+Jn,te+"+"+Gn,Sf,Ef,qs,Rf].join("|"),"g");function Af(r){return r.match(xf)||[]}function Of(r,t,e){return r=ae(r),t=t,t===void 0?nf(r)?Af(r):ef(r):r.match(t)||[]}var $f="['’]",Df=RegExp($f,"g");function Cf(r){return function(t){return Hl(Of(Xl(t).replace(Df,"")),r,"")}}var Bf=Cf(function(r,t,e){return t=t.toLowerCase(),r+(e?kl(t):t)});const Tt=Bf;function jf(){this.__data__=new At,this.size=0}function Pf(r){var t=this.__data__,e=t.delete(r);return this.size=t.size,e}function Nf(r){return this.__data__.get(r)}function If(r){return this.__data__.has(r)}var Mf=200;function Ff(r,t){var e=this.__data__;if(e instanceof At){var n=e.__data__;if(!we||n.length<Mf-1)return n.push([r,t]),this.size=++e.size,this;e=this.__data__=new Bt(n)}return e.set(r,t),this.size=e.size,this}function Jt(r){var t=this.__data__=new At(r);this.size=t.size}Jt.prototype.clear=jf;Jt.prototype.delete=Pf;Jt.prototype.get=Nf;Jt.prototype.has=If;Jt.prototype.set=Ff;var Zs=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Yn=Zs&&typeof module=="object"&&module&&!module.nodeType&&module,Uf=Yn&&Yn.exports===Zs,Zn=Uf?mt.Buffer:void 0,Qn=Zn?Zn.allocUnsafe:void 0;function Qs(r,t){if(t)return r.slice();var e=r.length,n=Qn?Qn(e):new r.constructor(e);return r.copy(n),n}function Lf(r,t){for(var e=-1,n=r==null?0:r.length,i=0,s=[];++e<n;){var o=r[e];t(o,e,r)&&(s[i++]=o)}return s}function kf(){return[]}var Hf=Object.prototype,Vf=Hf.propertyIsEnumerable,Xn=Object.getOwnPropertySymbols,qf=Xn?function(r){return r==null?[]:(r=Object(r),Lf(Xn(r),function(t){return Vf.call(r,t)}))}:kf;const zf=qf;function Wf(r,t,e){var n=t(r);return Ht(r)?n:nl(n,e(r))}function Kf(r){return Wf(r,Ts,zf)}var Jf=Kt(mt,"DataView");const Vr=Jf;var Gf=Kt(mt,"Promise");const qr=Gf;var Yf=Kt(mt,"Set");const zr=Yf;var ti="[object Map]",Zf="[object Object]",ei="[object Promise]",ri="[object Set]",ni="[object WeakMap]",ii="[object DataView]",Qf=Wt(Vr),Xf=Wt(we),th=Wt(qr),eh=Wt(zr),rh=Wt(Ur),Ut=xt;(Vr&&Ut(new Vr(new ArrayBuffer(1)))!=ii||we&&Ut(new we)!=ti||qr&&Ut(qr.resolve())!=ei||zr&&Ut(new zr)!=ri||Ur&&Ut(new Ur)!=ni)&&(Ut=function(r){var t=xt(r),e=t==Zf?r.constructor:void 0,n=e?Wt(e):"";if(n)switch(n){case Qf:return ii;case Xf:return ti;case th:return ei;case eh:return ri;case rh:return ni}return t});const mn=Ut;var nh=Object.prototype,ih=nh.hasOwnProperty;function sh(r){var t=r.length,e=new r.constructor(t);return t&&typeof r[0]=="string"&&ih.call(r,"index")&&(e.index=r.index,e.input=r.input),e}var oh=mt.Uint8Array;const si=oh;function yn(r){var t=new r.constructor(r.byteLength);return new si(t).set(new si(r)),t}function ah(r,t){var e=yn(r.buffer);return new r.constructor(e,r.byteOffset,r.byteLength)}var uh=/\w*$/;function ch(r){var t=new r.constructor(r.source,uh.exec(r));return t.lastIndex=r.lastIndex,t}var oi=wt?wt.prototype:void 0,ai=oi?oi.valueOf:void 0;function lh(r){return ai?Object(ai.call(r)):{}}function Xs(r,t){var e=t?yn(r.buffer):r.buffer;return new r.constructor(e,r.byteOffset,r.length)}var fh="[object Boolean]",hh="[object Date]",ph="[object Map]",dh="[object Number]",gh="[object RegExp]",vh="[object Set]",mh="[object String]",yh="[object Symbol]",bh="[object ArrayBuffer]",_h="[object DataView]",wh="[object Float32Array]",Eh="[object Float64Array]",Sh="[object Int8Array]",Th="[object Int16Array]",Rh="[object Int32Array]",xh="[object Uint8Array]",Ah="[object Uint8ClampedArray]",Oh="[object Uint16Array]",$h="[object Uint32Array]";function Dh(r,t,e){var n=r.constructor;switch(t){case bh:return yn(r);case fh:case hh:return new n(+r);case _h:return ah(r);case wh:case Eh:case Sh:case Th:case Rh:case xh:case Ah:case Oh:case $h:return Xs(r,e);case ph:return new n;case dh:case mh:return new n(r);case gh:return ch(r);case vh:return new n;case yh:return lh(r)}}function to(r){return typeof r.constructor=="function"&&!hn(r)?lu(Rs(r)):{}}var Ch="[object Map]";function Bh(r){return St(r)&&mn(r)==Ch}var ui=Et&&Et.isMap,jh=ui?dn(ui):Bh;const Ph=jh;var Nh="[object Set]";function Ih(r){return St(r)&&mn(r)==Nh}var ci=Et&&Et.isSet,Mh=ci?dn(ci):Ih;const Fh=Mh;var Uh=1,eo="[object Arguments]",Lh="[object Array]",kh="[object Boolean]",Hh="[object Date]",Vh="[object Error]",ro="[object Function]",qh="[object GeneratorFunction]",zh="[object Map]",Wh="[object Number]",no="[object Object]",Kh="[object RegExp]",Jh="[object Set]",Gh="[object String]",Yh="[object Symbol]",Zh="[object WeakMap]",Qh="[object ArrayBuffer]",Xh="[object DataView]",tp="[object Float32Array]",ep="[object Float64Array]",rp="[object Int8Array]",np="[object Int16Array]",ip="[object Int32Array]",sp="[object Uint8Array]",op="[object Uint8ClampedArray]",ap="[object Uint16Array]",up="[object Uint32Array]",G={};G[eo]=G[Lh]=G[Qh]=G[Xh]=G[kh]=G[Hh]=G[tp]=G[ep]=G[rp]=G[np]=G[ip]=G[zh]=G[Wh]=G[no]=G[Kh]=G[Jh]=G[Gh]=G[Yh]=G[sp]=G[op]=G[ap]=G[up]=!0;G[Vh]=G[ro]=G[Zh]=!1;function Le(r,t,e,n,i,s){var o,u=t&Uh;if(o!==void 0)return o;if(!lt(r))return r;var l=Ht(r);if(l)o=sh(r);else{var a=mn(r),c=a==ro||a==qh;if(pn(r))return Qs(r,u);if(a==no||a==eo||c&&!i)o=c?{}:to(r);else{if(!G[a])return i?r:{};o=Dh(r,a,u)}}s||(s=new Jt);var f=s.get(r);if(f)return f;s.set(r,o),Fh(r)?r.forEach(function(d){o.add(Le(d,t,e,d,r,s))}):Ph(r)&&r.forEach(function(d,g){o.set(g,Le(d,t,e,g,r,s))});var h=Kf,p=l?void 0:h(r);return Eu(p||r,function(d,g){p&&(g=d,d=r[g]),ps(o,g,Le(d,t,e,g,r,s))}),o}var cp=1,lp=4;function li(r){return Le(r,cp|lp)}var fi=wt?wt.prototype:void 0;fi&&fi.valueOf;function fp(r){return function(t,e,n){for(var i=-1,s=Object(t),o=n(t),u=o.length;u--;){var l=o[++i];if(e(s[l],l,s)===!1)break}return t}}var hp=fp();const pp=hp;var dp=function(){return mt.Date.now()};const mr=dp;var gp="Expected a function",vp=Math.max,mp=Math.min;function io(r,t,e){var n,i,s,o,u,l,a=0,c=!1,f=!1,h=!0;if(typeof r!="function")throw new TypeError(gp);t=Mn(t)||0,lt(e)&&(c=!!e.leading,f="maxWait"in e,s=f?vp(Mn(e.maxWait)||0,t):s,h="trailing"in e?!!e.trailing:h);function p(v){var T=n,A=i;return n=i=void 0,a=v,o=r.apply(A,T),o}function d(v){return a=v,u=setTimeout(w,t),c?p(v):o}function g(v){var T=v-l,A=v-a,L=t-T;return f?mp(L,s-A):L}function y(v){var T=v-l,A=v-a;return l===void 0||T>=t||T<0||f&&A>=s}function w(){var v=mr();if(y(v))return m(v);u=setTimeout(w,g(v))}function m(v){return u=void 0,h&&n?p(v):(n=i=void 0,o)}function b(){u!==void 0&&clearTimeout(u),a=0,n=l=i=u=void 0}function _(){return u===void 0?o:m(mr())}function S(){var v=mr(),T=y(v);if(n=arguments,i=this,l=v,T){if(u===void 0)return d(l);if(f)return clearTimeout(u),u=setTimeout(w,t),p(l)}return u===void 0&&(u=setTimeout(w,t)),o}return S.cancel=b,S.flush=_,S}function Wr(r,t,e){(e!==void 0&&!Te(r[t],e)||e===void 0&&!(t in r))&&fn(r,t,e)}function yp(r){return St(r)&&tr(r)}function Kr(r,t){if(!(t==="constructor"&&typeof r[t]=="function")&&t!="__proto__")return r[t]}function bp(r){return ds(r,gn(r))}function _p(r,t,e,n,i,s,o){var u=Kr(r,e),l=Kr(t,e),a=o.get(l);if(a){Wr(r,e,a);return}var c=s?s(u,l,e+"",r,t,o):void 0,f=c===void 0;if(f){var h=Ht(l),p=!h&&pn(l),d=!h&&!p&&ws(l);c=l,h||p||d?Ht(u)?c=u:yp(u)?c=fu(u):p?(f=!1,c=Qs(l,!0)):d?(f=!1,c=Xs(l,!0)):c=[]:As(l)||Lr(l)?(c=u,Lr(u)?c=bp(u):(!lt(u)||Vt(u))&&(c=to(l))):f=!1}f&&(o.set(l,c),i(c,l,n,s,o),o.delete(l)),Wr(r,e,c)}function so(r,t,e,n,i){r!==t&&pp(t,function(s,o){if(i||(i=new Jt),lt(s))_p(r,t,o,e,so,n,i);else{var u=n?n(Kr(r,o),s,o+"",r,t,i):void 0;u===void 0&&(u=s),Wr(r,o,u)}},gn)}var wp={"&":"&","<":"<",">":">",'"':""","'":"'"},Ep=Ms(wp);const Sp=Ep;var oo=/[&<>"']/g,Tp=RegExp(oo.source);function Rp(r){return r=ae(r),r&&Tp.test(r)?r.replace(oo,Sp):r}var xp="[object String]";function jt(r){return typeof r=="string"||!Ht(r)&&St(r)&&xt(r)==xp}function Ap(r,t){return us(t,function(e){return r[e]})}Et&&Et.isArrayBuffer;Et&&Et.isDate;var Op=ms(function(r,t,e){so(r,t,e)});const ve=Op;var ao=Object.prototype,$p=ao.hasOwnProperty;function hi(r,t,e,n){return r===void 0||Te(r,ao[e])&&!$p.call(n,e)?t:r}var Dp={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"};function Cp(r){return"\\"+Dp[r]}var Bp=/<%=([\s\S]+?)%>/g;const uo=Bp;var jp=/<%-([\s\S]+?)%>/g;const Pp=jp;var Np=/<%([\s\S]+?)%>/g;const Ip=Np;var Mp={escape:Pp,evaluate:Ip,interpolate:uo,variable:"",imports:{_:{escape:Rp}}};const pi=Mp;var Fp="Invalid `variable` option passed into `_.template`",Up=/\b__p \+= '';/g,Lp=/\b(__p \+=) '' \+/g,kp=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Hp=/[()=,{}\[\]\/\s]/,Vp=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,De=/($^)/,qp=/['\n\r\u2028\u2029\\]/g,zp=Object.prototype,di=zp.hasOwnProperty;function Wp(r,t,e){var n=pi.imports._.templateSettings||pi;r=ae(r),t=zn({},t,n,hi);var i=zn({},t.imports,n.imports,hi),s=Ts(i),o=Ap(i,s),u,l,a=0,c=t.interpolate||De,f="__p += '",h=RegExp((t.escape||De).source+"|"+c.source+"|"+(c===uo?Vp:De).source+"|"+(t.evaluate||De).source+"|$","g"),p=di.call(t,"sourceURL")?"//# sourceURL="+(t.sourceURL+"").replace(/\s/g," ")+`
|
|
3
|
+
`:"";r.replace(h,function(y,w,m,b,_,S){return m||(m=b),f+=r.slice(a,S).replace(qp,Cp),w&&(u=!0,f+=`' +
|
|
4
4
|
__e(`+w+`) +
|
|
5
5
|
'`),_&&(l=!0,f+=`';
|
|
6
6
|
`+_+`;
|
|
7
7
|
__p += '`),m&&(f+=`' +
|
|
8
8
|
((__t = (`+m+`)) == null ? '' : __t) +
|
|
9
|
-
'`),a=S+
|
|
9
|
+
'`),a=S+y.length,y}),f+=`';
|
|
10
10
|
`;var d=di.call(t,"variable")&&t.variable;if(!d)f=`with (obj) {
|
|
11
11
|
`+f+`
|
|
12
12
|
}
|
|
@@ -16,21 +16,21 @@ __p += '`),m&&(f+=`' +
|
|
|
16
16
|
function print() { __p += __j.call(arguments, '') }
|
|
17
17
|
`:`;
|
|
18
18
|
`)+f+`return __p
|
|
19
|
-
}`;var g=pl(function(){return Function(s,p+"return "+f).apply(void 0,o)});if(g.source=f,Os(g))throw g;return g}var Kp="Expected a function";function Jp(r,t,e){var n=!0,i=!0;if(typeof r!="function")throw new TypeError(Kp);return lt(e)&&(n="leading"in e?!0:n,i="trailing"in e?!1:i),io(r,t,{leading:n,maxWait:t,trailing:i})}var ot=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function Gp(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var co={exports:{}};function Yp(r){throw new Error('Could not dynamically require "'+r+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var yr={exports:{}},gi;function Pt(){return gi||(gi=1,(function(r,t){(function(e,n){r.exports=n()})(ot,function(){var e=e||(function(n,i){var s;if(typeof window!="undefined"&&window.crypto&&(s=window.crypto),typeof self!="undefined"&&self.crypto&&(s=self.crypto),typeof globalThis!="undefined"&&globalThis.crypto&&(s=globalThis.crypto),!s&&typeof window!="undefined"&&window.msCrypto&&(s=window.msCrypto),!s&&typeof ot!="undefined"&&ot.crypto&&(s=ot.crypto),!s&&typeof Yp=="function")try{s=require("crypto")}catch(m){}var o=function(){if(s){if(typeof s.getRandomValues=="function")try{return s.getRandomValues(new Uint32Array(1))[0]}catch(m){}if(typeof s.randomBytes=="function")try{return s.randomBytes(4).readInt32LE()}catch(m){}}throw new Error("Native crypto module could not be used to get secure random number.")},u=Object.create||(function(){function m(){}return function(y){var _;return m.prototype=y,_=new m,m.prototype=null,_}})(),l={},a=l.lib={},c=a.Base=(function(){return{extend:function(m){var y=u(this);return m&&y.mixIn(m),(!y.hasOwnProperty("init")||this.init===y.init)&&(y.init=function(){y.$super.init.apply(this,arguments)}),y.init.prototype=y,y.$super=this,y},create:function(){var m=this.extend();return m.init.apply(m,arguments),m},init:function(){},mixIn:function(m){for(var y in m)m.hasOwnProperty(y)&&(this[y]=m[y]);m.hasOwnProperty("toString")&&(this.toString=m.toString)},clone:function(){return this.init.prototype.extend(this)}}})(),f=a.WordArray=c.extend({init:function(m,y){m=this.words=m||[],y!=i?this.sigBytes=y:this.sigBytes=m.length*4},toString:function(m){return(m||p).stringify(this)},concat:function(m){var y=this.words,_=m.words,S=this.sigBytes,v=m.sigBytes;if(this.clamp(),S%4)for(var T=0;T<v;T++){var A=_[T>>>2]>>>24-T%4*8&255;y[S+T>>>2]|=A<<24-(S+T)%4*8}else for(var L=0;L<v;L+=4)y[S+L>>>2]=_[L>>>2];return this.sigBytes+=v,this},clamp:function(){var m=this.words,y=this.sigBytes;m[y>>>2]&=4294967295<<32-y%4*8,m.length=n.ceil(y/4)},clone:function(){var m=c.clone.call(this);return m.words=this.words.slice(0),m},random:function(m){for(var y=[],_=0;_<m;_+=4)y.push(o());return new f.init(y,m)}}),h=l.enc={},p=h.Hex={stringify:function(m){for(var y=m.words,_=m.sigBytes,S=[],v=0;v<_;v++){var T=y[v>>>2]>>>24-v%4*8&255;S.push((T>>>4).toString(16)),S.push((T&15).toString(16))}return S.join("")},parse:function(m){for(var y=m.length,_=[],S=0;S<y;S+=2)_[S>>>3]|=parseInt(m.substr(S,2),16)<<24-S%8*4;return new f.init(_,y/2)}},d=h.Latin1={stringify:function(m){for(var y=m.words,_=m.sigBytes,S=[],v=0;v<_;v++){var T=y[v>>>2]>>>24-v%4*8&255;S.push(String.fromCharCode(T))}return S.join("")},parse:function(m){for(var y=m.length,_=[],S=0;S<y;S++)_[S>>>2]|=(m.charCodeAt(S)&255)<<24-S%4*8;return new f.init(_,y)}},g=h.Utf8={stringify:function(m){try{return decodeURIComponent(escape(d.stringify(m)))}catch(y){throw new Error("Malformed UTF-8 data")}},parse:function(m){return d.parse(unescape(encodeURIComponent(m)))}},b=a.BufferedBlockAlgorithm=c.extend({reset:function(){this._data=new f.init,this._nDataBytes=0},_append:function(m){typeof m=="string"&&(m=g.parse(m)),this._data.concat(m),this._nDataBytes+=m.sigBytes},_process:function(m){var y,_=this._data,S=_.words,v=_.sigBytes,T=this.blockSize,A=T*4,L=v/A;m?L=n.ceil(L):L=n.max((L|0)-this._minBufferSize,0);var E=L*T,x=n.min(E*4,v);if(E){for(var M=0;M<E;M+=T)this._doProcessBlock(S,M);y=S.splice(0,E),_.sigBytes-=x}return new f.init(y,x)},clone:function(){var m=c.clone.call(this);return m._data=this._data.clone(),m},_minBufferSize:0});a.Hasher=b.extend({cfg:c.extend(),init:function(m){this.cfg=this.cfg.extend(m),this.reset()},reset:function(){b.reset.call(this),this._doReset()},update:function(m){return this._append(m),this._process(),this},finalize:function(m){m&&this._append(m);var y=this._doFinalize();return y},blockSize:16,_createHelper:function(m){return function(y,_){return new m.init(_).finalize(y)}},_createHmacHelper:function(m){return function(y,_){return new w.HMAC.init(m,_).finalize(y)}}});var w=l.algo={};return l})(Math);return e})})(yr)),yr.exports}(function(r,t){(function(e,n){r.exports=n(Pt())})(ot,function(e){return(function(n){var i=e,s=i.lib,o=s.WordArray,u=s.Hasher,l=i.algo,a=[];(function(){for(var g=0;g<64;g++)a[g]=n.abs(n.sin(g+1))*4294967296|0})();var c=l.MD5=u.extend({_doReset:function(){this._hash=new o.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(g,b){for(var w=0;w<16;w++){var m=b+w,y=g[m];g[m]=(y<<8|y>>>24)&16711935|(y<<24|y>>>8)&4278255360}var _=this._hash.words,S=g[b+0],v=g[b+1],T=g[b+2],A=g[b+3],L=g[b+4],E=g[b+5],x=g[b+6],M=g[b+7],C=g[b+8],I=g[b+9],j=g[b+10],$=g[b+11],k=g[b+12],F=g[b+13],V=g[b+14],q=g[b+15],O=_[0],D=_[1],P=_[2],N=_[3];O=f(O,D,P,N,S,7,a[0]),N=f(N,O,D,P,v,12,a[1]),P=f(P,N,O,D,T,17,a[2]),D=f(D,P,N,O,A,22,a[3]),O=f(O,D,P,N,L,7,a[4]),N=f(N,O,D,P,E,12,a[5]),P=f(P,N,O,D,x,17,a[6]),D=f(D,P,N,O,M,22,a[7]),O=f(O,D,P,N,C,7,a[8]),N=f(N,O,D,P,I,12,a[9]),P=f(P,N,O,D,j,17,a[10]),D=f(D,P,N,O,$,22,a[11]),O=f(O,D,P,N,k,7,a[12]),N=f(N,O,D,P,F,12,a[13]),P=f(P,N,O,D,V,17,a[14]),D=f(D,P,N,O,q,22,a[15]),O=h(O,D,P,N,v,5,a[16]),N=h(N,O,D,P,x,9,a[17]),P=h(P,N,O,D,$,14,a[18]),D=h(D,P,N,O,S,20,a[19]),O=h(O,D,P,N,E,5,a[20]),N=h(N,O,D,P,j,9,a[21]),P=h(P,N,O,D,q,14,a[22]),D=h(D,P,N,O,L,20,a[23]),O=h(O,D,P,N,I,5,a[24]),N=h(N,O,D,P,V,9,a[25]),P=h(P,N,O,D,A,14,a[26]),D=h(D,P,N,O,C,20,a[27]),O=h(O,D,P,N,F,5,a[28]),N=h(N,O,D,P,T,9,a[29]),P=h(P,N,O,D,M,14,a[30]),D=h(D,P,N,O,k,20,a[31]),O=p(O,D,P,N,E,4,a[32]),N=p(N,O,D,P,C,11,a[33]),P=p(P,N,O,D,$,16,a[34]),D=p(D,P,N,O,V,23,a[35]),O=p(O,D,P,N,v,4,a[36]),N=p(N,O,D,P,L,11,a[37]),P=p(P,N,O,D,M,16,a[38]),D=p(D,P,N,O,j,23,a[39]),O=p(O,D,P,N,F,4,a[40]),N=p(N,O,D,P,S,11,a[41]),P=p(P,N,O,D,A,16,a[42]),D=p(D,P,N,O,x,23,a[43]),O=p(O,D,P,N,I,4,a[44]),N=p(N,O,D,P,k,11,a[45]),P=p(P,N,O,D,q,16,a[46]),D=p(D,P,N,O,T,23,a[47]),O=d(O,D,P,N,S,6,a[48]),N=d(N,O,D,P,M,10,a[49]),P=d(P,N,O,D,V,15,a[50]),D=d(D,P,N,O,E,21,a[51]),O=d(O,D,P,N,k,6,a[52]),N=d(N,O,D,P,A,10,a[53]),P=d(P,N,O,D,j,15,a[54]),D=d(D,P,N,O,v,21,a[55]),O=d(O,D,P,N,C,6,a[56]),N=d(N,O,D,P,q,10,a[57]),P=d(P,N,O,D,x,15,a[58]),D=d(D,P,N,O,F,21,a[59]),O=d(O,D,P,N,L,6,a[60]),N=d(N,O,D,P,$,10,a[61]),P=d(P,N,O,D,T,15,a[62]),D=d(D,P,N,O,I,21,a[63]),_[0]=_[0]+O|0,_[1]=_[1]+D|0,_[2]=_[2]+P|0,_[3]=_[3]+N|0},_doFinalize:function(){var g=this._data,b=g.words,w=this._nDataBytes*8,m=g.sigBytes*8;b[m>>>5]|=128<<24-m%32;var y=n.floor(w/4294967296),_=w;b[(m+64>>>9<<4)+15]=(y<<8|y>>>24)&16711935|(y<<24|y>>>8)&4278255360,b[(m+64>>>9<<4)+14]=(_<<8|_>>>24)&16711935|(_<<24|_>>>8)&4278255360,g.sigBytes=(b.length+1)*4,this._process();for(var S=this._hash,v=S.words,T=0;T<4;T++){var A=v[T];v[T]=(A<<8|A>>>24)&16711935|(A<<24|A>>>8)&4278255360}return S},clone:function(){var g=u.clone.call(this);return g._hash=this._hash.clone(),g}});function f(g,b,w,m,y,_,S){var v=g+(b&w|~b&m)+y+S;return(v<<_|v>>>32-_)+b}function h(g,b,w,m,y,_,S){var v=g+(b&m|w&~m)+y+S;return(v<<_|v>>>32-_)+b}function p(g,b,w,m,y,_,S){var v=g+(b^w^m)+y+S;return(v<<_|v>>>32-_)+b}function d(g,b,w,m,y,_,S){var v=g+(w^(b|~m))+y+S;return(v<<_|v>>>32-_)+b}i.MD5=u._createHelper(c),i.HmacMD5=u._createHmacHelper(c)})(Math),e.MD5})})(co);var Zp=co.exports,lo={exports:{}};(function(r,t){(function(e,n){r.exports=n(Pt())})(ot,function(e){return(function(){var n=e,i=n.lib,s=i.WordArray,o=n.enc;o.Base64={stringify:function(l){var a=l.words,c=l.sigBytes,f=this._map;l.clamp();for(var h=[],p=0;p<c;p+=3)for(var d=a[p>>>2]>>>24-p%4*8&255,g=a[p+1>>>2]>>>24-(p+1)%4*8&255,b=a[p+2>>>2]>>>24-(p+2)%4*8&255,w=d<<16|g<<8|b,m=0;m<4&&p+m*.75<c;m++)h.push(f.charAt(w>>>6*(3-m)&63));var y=f.charAt(64);if(y)for(;h.length%4;)h.push(y);return h.join("")},parse:function(l){var a=l.length,c=this._map,f=this._reverseMap;if(!f){f=this._reverseMap=[];for(var h=0;h<c.length;h++)f[c.charCodeAt(h)]=h}var p=c.charAt(64);if(p){var d=l.indexOf(p);d!==-1&&(a=d)}return u(l,a,f)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function u(l,a,c){for(var f=[],h=0,p=0;p<a;p++)if(p%4){var d=c[l.charCodeAt(p-1)]<<p%4*2,g=c[l.charCodeAt(p)]>>>6-p%4*2,b=d|g;f[h>>>2]|=b<<24-h%4*8,h++}return s.create(f,h)}})(),e.enc.Base64})})(lo);var Qp=lo.exports,Xp={exports:{}};(function(r,t){(function(e,n){r.exports=n(Pt())})(ot,function(e){return e.enc.Utf8})})(Xp);var td={exports:{}},br={exports:{}},_r={exports:{}},vi;function ed(){return vi||(vi=1,(function(r,t){(function(e,n){r.exports=n(Pt())})(ot,function(e){return(function(){var n=e,i=n.lib,s=i.WordArray,o=i.Hasher,u=n.algo,l=[],a=u.SHA1=o.extend({_doReset:function(){this._hash=new s.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(c,f){for(var h=this._hash.words,p=h[0],d=h[1],g=h[2],b=h[3],w=h[4],m=0;m<80;m++){if(m<16)l[m]=c[f+m]|0;else{var y=l[m-3]^l[m-8]^l[m-14]^l[m-16];l[m]=y<<1|y>>>31}var _=(p<<5|p>>>27)+w+l[m];m<20?_+=(d&g|~d&b)+1518500249:m<40?_+=(d^g^b)+1859775393:m<60?_+=(d&g|d&b|g&b)-1894007588:_+=(d^g^b)-899497514,w=b,b=g,g=d<<30|d>>>2,d=p,p=_}h[0]=h[0]+p|0,h[1]=h[1]+d|0,h[2]=h[2]+g|0,h[3]=h[3]+b|0,h[4]=h[4]+w|0},_doFinalize:function(){var c=this._data,f=c.words,h=this._nDataBytes*8,p=c.sigBytes*8;return f[p>>>5]|=128<<24-p%32,f[(p+64>>>9<<4)+14]=Math.floor(h/4294967296),f[(p+64>>>9<<4)+15]=h,c.sigBytes=f.length*4,this._process(),this._hash},clone:function(){var c=o.clone.call(this);return c._hash=this._hash.clone(),c}});n.SHA1=o._createHelper(a),n.HmacSHA1=o._createHmacHelper(a)})(),e.SHA1})})(_r)),_r.exports}var wr={exports:{}},mi;function rd(){return mi||(mi=1,(function(r,t){(function(e,n){r.exports=n(Pt())})(ot,function(e){(function(){var n=e,i=n.lib,s=i.Base,o=n.enc,u=o.Utf8,l=n.algo;l.HMAC=s.extend({init:function(a,c){a=this._hasher=new a.init,typeof c=="string"&&(c=u.parse(c));var f=a.blockSize,h=f*4;c.sigBytes>h&&(c=a.finalize(c)),c.clamp();for(var p=this._oKey=c.clone(),d=this._iKey=c.clone(),g=p.words,b=d.words,w=0;w<f;w++)g[w]^=1549556828,b[w]^=909522486;p.sigBytes=d.sigBytes=h,this.reset()},reset:function(){var a=this._hasher;a.reset(),a.update(this._iKey)},update:function(a){return this._hasher.update(a),this},finalize:function(a){var c=this._hasher,f=c.finalize(a);c.reset();var h=c.finalize(this._oKey.clone().concat(f));return h}})})()})})(wr)),wr.exports}var yi;function fo(){return yi||(yi=1,(function(r,t){(function(e,n,i){r.exports=n(Pt(),ed(),rd())})(ot,function(e){return(function(){var n=e,i=n.lib,s=i.Base,o=i.WordArray,u=n.algo,l=u.MD5,a=u.EvpKDF=s.extend({cfg:s.extend({keySize:128/32,hasher:l,iterations:1}),init:function(c){this.cfg=this.cfg.extend(c)},compute:function(c,f){for(var h,p=this.cfg,d=p.hasher.create(),g=o.create(),b=g.words,w=p.keySize,m=p.iterations;b.length<w;){h&&d.update(h),h=d.update(c).finalize(f),d.reset();for(var y=1;y<m;y++)h=d.finalize(h),d.reset();g.concat(h)}return g.sigBytes=w*4,g}});n.EvpKDF=function(c,f,h){return a.create(h).compute(c,f)}})(),e.EvpKDF})})(br)),br.exports}var Er={exports:{}},bi;function nd(){return bi||(bi=1,(function(r,t){(function(e,n,i){r.exports=n(Pt(),fo())})(ot,function(e){e.lib.Cipher||(function(n){var i=e,s=i.lib,o=s.Base,u=s.WordArray,l=s.BufferedBlockAlgorithm,a=i.enc;a.Utf8;var c=a.Base64,f=i.algo,h=f.EvpKDF,p=s.Cipher=l.extend({cfg:o.extend(),createEncryptor:function(E,x){return this.create(this._ENC_XFORM_MODE,E,x)},createDecryptor:function(E,x){return this.create(this._DEC_XFORM_MODE,E,x)},init:function(E,x,M){this.cfg=this.cfg.extend(M),this._xformMode=E,this._key=x,this.reset()},reset:function(){l.reset.call(this),this._doReset()},process:function(E){return this._append(E),this._process()},finalize:function(E){E&&this._append(E);var x=this._doFinalize();return x},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:(function(){function E(x){return typeof x=="string"?L:v}return function(x){return{encrypt:function(M,C,I){return E(C).encrypt(x,M,C,I)},decrypt:function(M,C,I){return E(C).decrypt(x,M,C,I)}}}})()});s.StreamCipher=p.extend({_doFinalize:function(){var E=this._process(!0);return E},blockSize:1});var d=i.mode={},g=s.BlockCipherMode=o.extend({createEncryptor:function(E,x){return this.Encryptor.create(E,x)},createDecryptor:function(E,x){return this.Decryptor.create(E,x)},init:function(E,x){this._cipher=E,this._iv=x}}),b=d.CBC=(function(){var E=g.extend();E.Encryptor=E.extend({processBlock:function(M,C){var I=this._cipher,j=I.blockSize;x.call(this,M,C,j),I.encryptBlock(M,C),this._prevBlock=M.slice(C,C+j)}}),E.Decryptor=E.extend({processBlock:function(M,C){var I=this._cipher,j=I.blockSize,$=M.slice(C,C+j);I.decryptBlock(M,C),x.call(this,M,C,j),this._prevBlock=$}});function x(M,C,I){var j,$=this._iv;$?(j=$,this._iv=n):j=this._prevBlock;for(var k=0;k<I;k++)M[C+k]^=j[k]}return E})(),w=i.pad={},m=w.Pkcs7={pad:function(E,x){for(var M=x*4,C=M-E.sigBytes%M,I=C<<24|C<<16|C<<8|C,j=[],$=0;$<C;$+=4)j.push(I);var k=u.create(j,C);E.concat(k)},unpad:function(E){var x=E.words[E.sigBytes-1>>>2]&255;E.sigBytes-=x}};s.BlockCipher=p.extend({cfg:p.cfg.extend({mode:b,padding:m}),reset:function(){var E;p.reset.call(this);var x=this.cfg,M=x.iv,C=x.mode;this._xformMode==this._ENC_XFORM_MODE?E=C.createEncryptor:(E=C.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==E?this._mode.init(this,M&&M.words):(this._mode=E.call(C,this,M&&M.words),this._mode.__creator=E)},_doProcessBlock:function(E,x){this._mode.processBlock(E,x)},_doFinalize:function(){var E,x=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(x.pad(this._data,this.blockSize),E=this._process(!0)):(E=this._process(!0),x.unpad(E)),E},blockSize:128/32});var y=s.CipherParams=o.extend({init:function(E){this.mixIn(E)},toString:function(E){return(E||this.formatter).stringify(this)}}),_=i.format={},S=_.OpenSSL={stringify:function(E){var x,M=E.ciphertext,C=E.salt;return C?x=u.create([1398893684,1701076831]).concat(C).concat(M):x=M,x.toString(c)},parse:function(E){var x,M=c.parse(E),C=M.words;return C[0]==1398893684&&C[1]==1701076831&&(x=u.create(C.slice(2,4)),C.splice(0,4),M.sigBytes-=16),y.create({ciphertext:M,salt:x})}},v=s.SerializableCipher=o.extend({cfg:o.extend({format:S}),encrypt:function(E,x,M,C){C=this.cfg.extend(C);var I=E.createEncryptor(M,C),j=I.finalize(x),$=I.cfg;return y.create({ciphertext:j,key:M,iv:$.iv,algorithm:E,mode:$.mode,padding:$.padding,blockSize:E.blockSize,formatter:C.format})},decrypt:function(E,x,M,C){C=this.cfg.extend(C),x=this._parse(x,C.format);var I=E.createDecryptor(M,C).finalize(x.ciphertext);return I},_parse:function(E,x){return typeof E=="string"?x.parse(E,this):E}}),T=i.kdf={},A=T.OpenSSL={execute:function(E,x,M,C,I){if(C||(C=u.random(64/8)),I)var j=h.create({keySize:x+M,hasher:I}).compute(E,C);else var j=h.create({keySize:x+M}).compute(E,C);var $=u.create(j.words.slice(x),M*4);return j.sigBytes=x*4,y.create({key:j,iv:$,salt:C})}},L=s.PasswordBasedCipher=v.extend({cfg:v.cfg.extend({kdf:A}),encrypt:function(E,x,M,C){C=this.cfg.extend(C);var I=C.kdf.execute(M,E.keySize,E.ivSize,C.salt,C.hasher);C.iv=I.iv;var j=v.encrypt.call(this,E,x,I.key,C);return j.mixIn(I),j},decrypt:function(E,x,M,C){C=this.cfg.extend(C),x=this._parse(x,C.format);var I=C.kdf.execute(M,E.keySize,E.ivSize,x.salt,C.hasher);C.iv=I.iv;var j=v.decrypt.call(this,E,x,I.key,C);return j}})})()})})(Er)),Er.exports}(function(r,t){(function(e,n,i){r.exports=n(Pt(),Qp,Zp,fo(),nd())})(ot,function(e){return(function(){var n=e,i=n.lib,s=i.BlockCipher,o=n.algo,u=[],l=[],a=[],c=[],f=[],h=[],p=[],d=[],g=[],b=[];(function(){for(var y=[],_=0;_<256;_++)_<128?y[_]=_<<1:y[_]=_<<1^283;for(var S=0,v=0,_=0;_<256;_++){var T=v^v<<1^v<<2^v<<3^v<<4;T=T>>>8^T&255^99,u[S]=T,l[T]=S;var A=y[S],L=y[A],E=y[L],x=y[T]*257^T*16843008;a[S]=x<<24|x>>>8,c[S]=x<<16|x>>>16,f[S]=x<<8|x>>>24,h[S]=x;var x=E*16843009^L*65537^A*257^S*16843008;p[T]=x<<24|x>>>8,d[T]=x<<16|x>>>16,g[T]=x<<8|x>>>24,b[T]=x,S?(S=A^y[y[y[E^A]]],v^=y[y[v]]):S=v=1}})();var w=[0,1,2,4,8,16,32,64,128,27,54],m=o.AES=s.extend({_doReset:function(){var y;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var _=this._keyPriorReset=this._key,S=_.words,v=_.sigBytes/4,T=this._nRounds=v+6,A=(T+1)*4,L=this._keySchedule=[],E=0;E<A;E++)E<v?L[E]=S[E]:(y=L[E-1],E%v?v>6&&E%v==4&&(y=u[y>>>24]<<24|u[y>>>16&255]<<16|u[y>>>8&255]<<8|u[y&255]):(y=y<<8|y>>>24,y=u[y>>>24]<<24|u[y>>>16&255]<<16|u[y>>>8&255]<<8|u[y&255],y^=w[E/v|0]<<24),L[E]=L[E-v]^y);for(var x=this._invKeySchedule=[],M=0;M<A;M++){var E=A-M;if(M%4)var y=L[E];else var y=L[E-4];M<4||E<=4?x[M]=y:x[M]=p[u[y>>>24]]^d[u[y>>>16&255]]^g[u[y>>>8&255]]^b[u[y&255]]}}},encryptBlock:function(y,_){this._doCryptBlock(y,_,this._keySchedule,a,c,f,h,u)},decryptBlock:function(y,_){var S=y[_+1];y[_+1]=y[_+3],y[_+3]=S,this._doCryptBlock(y,_,this._invKeySchedule,p,d,g,b,l);var S=y[_+1];y[_+1]=y[_+3],y[_+3]=S},_doCryptBlock:function(y,_,S,v,T,A,L,E){for(var x=this._nRounds,M=y[_]^S[0],C=y[_+1]^S[1],I=y[_+2]^S[2],j=y[_+3]^S[3],$=4,k=1;k<x;k++){var F=v[M>>>24]^T[C>>>16&255]^A[I>>>8&255]^L[j&255]^S[$++],V=v[C>>>24]^T[I>>>16&255]^A[j>>>8&255]^L[M&255]^S[$++],q=v[I>>>24]^T[j>>>16&255]^A[M>>>8&255]^L[C&255]^S[$++],O=v[j>>>24]^T[M>>>16&255]^A[C>>>8&255]^L[I&255]^S[$++];M=F,C=V,I=q,j=O}var F=(E[M>>>24]<<24|E[C>>>16&255]<<16|E[I>>>8&255]<<8|E[j&255])^S[$++],V=(E[C>>>24]<<24|E[I>>>16&255]<<16|E[j>>>8&255]<<8|E[M&255])^S[$++],q=(E[I>>>24]<<24|E[j>>>16&255]<<16|E[M>>>8&255]<<8|E[C&255])^S[$++],O=(E[j>>>24]<<24|E[M>>>16&255]<<16|E[C>>>8&255]<<8|E[I&255])^S[$++];y[_]=F,y[_+1]=V,y[_+2]=q,y[_+3]=O},keySize:256/32});n.AES=s._createHelper(m)})(),e.AES})})(td);var id="0123456789abcdefghijklmnopqrstuvwxyz";function Rt(r){return id.charAt(r)}function sd(r,t){return r&t}function Ce(r,t){return r|t}function _i(r,t){return r^t}function wi(r,t){return r&~t}function od(r){if(r==0)return-1;var t=0;return(r&65535)==0&&(r>>=16,t+=16),(r&255)==0&&(r>>=8,t+=8),(r&15)==0&&(r>>=4,t+=4),(r&3)==0&&(r>>=2,t+=2),(r&1)==0&&++t,t}function ad(r){for(var t=0;r!=0;)r&=r-1,++t;return t}var ee="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ho="=";function be(r){var t,e,n="";for(t=0;t+3<=r.length;t+=3)e=parseInt(r.substring(t,t+3),16),n+=ee.charAt(e>>6)+ee.charAt(e&63);for(t+1==r.length?(e=parseInt(r.substring(t,t+1),16),n+=ee.charAt(e<<2)):t+2==r.length&&(e=parseInt(r.substring(t,t+2),16),n+=ee.charAt(e>>2)+ee.charAt((e&3)<<4));(n.length&3)>0;)n+=ho;return n}function Ei(r){var t="",e,n=0,i=0;for(e=0;e<r.length&&r.charAt(e)!=ho;++e){var s=ee.indexOf(r.charAt(e));s<0||(n==0?(t+=Rt(s>>2),i=s&3,n=1):n==1?(t+=Rt(i<<2|s>>4),i=s&15,n=2):n==2?(t+=Rt(i),t+=Rt(s>>2),i=s&3,n=3):(t+=Rt(i<<2|s>>4),t+=Rt(s&15),n=0))}return n==1&&(t+=Rt(i<<2)),t}var Zt,ud={decode:function(r){var t;if(Zt===void 0){var e="0123456789ABCDEF",n=` \f
|
|
19
|
+
}`;var g=pl(function(){return Function(s,p+"return "+f).apply(void 0,o)});if(g.source=f,Os(g))throw g;return g}var Kp="Expected a function";function Jp(r,t,e){var n=!0,i=!0;if(typeof r!="function")throw new TypeError(Kp);return lt(e)&&(n="leading"in e?!0:n,i="trailing"in e?!1:i),io(r,t,{leading:n,maxWait:t,trailing:i})}var ot=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function Gp(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var co={exports:{}};function Yp(r){throw new Error('Could not dynamically require "'+r+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var yr={exports:{}},gi;function Pt(){return gi||(gi=1,(function(r,t){(function(e,n){r.exports=n()})(ot,function(){var e=e||(function(n,i){var s;if(typeof window!="undefined"&&window.crypto&&(s=window.crypto),typeof self!="undefined"&&self.crypto&&(s=self.crypto),typeof globalThis!="undefined"&&globalThis.crypto&&(s=globalThis.crypto),!s&&typeof window!="undefined"&&window.msCrypto&&(s=window.msCrypto),!s&&typeof ot!="undefined"&&ot.crypto&&(s=ot.crypto),!s&&typeof Yp=="function")try{s=require("crypto")}catch(m){}var o=function(){if(s){if(typeof s.getRandomValues=="function")try{return s.getRandomValues(new Uint32Array(1))[0]}catch(m){}if(typeof s.randomBytes=="function")try{return s.randomBytes(4).readInt32LE()}catch(m){}}throw new Error("Native crypto module could not be used to get secure random number.")},u=Object.create||(function(){function m(){}return function(b){var _;return m.prototype=b,_=new m,m.prototype=null,_}})(),l={},a=l.lib={},c=a.Base=(function(){return{extend:function(m){var b=u(this);return m&&b.mixIn(m),(!b.hasOwnProperty("init")||this.init===b.init)&&(b.init=function(){b.$super.init.apply(this,arguments)}),b.init.prototype=b,b.$super=this,b},create:function(){var m=this.extend();return m.init.apply(m,arguments),m},init:function(){},mixIn:function(m){for(var b in m)m.hasOwnProperty(b)&&(this[b]=m[b]);m.hasOwnProperty("toString")&&(this.toString=m.toString)},clone:function(){return this.init.prototype.extend(this)}}})(),f=a.WordArray=c.extend({init:function(m,b){m=this.words=m||[],b!=i?this.sigBytes=b:this.sigBytes=m.length*4},toString:function(m){return(m||p).stringify(this)},concat:function(m){var b=this.words,_=m.words,S=this.sigBytes,v=m.sigBytes;if(this.clamp(),S%4)for(var T=0;T<v;T++){var A=_[T>>>2]>>>24-T%4*8&255;b[S+T>>>2]|=A<<24-(S+T)%4*8}else for(var L=0;L<v;L+=4)b[S+L>>>2]=_[L>>>2];return this.sigBytes+=v,this},clamp:function(){var m=this.words,b=this.sigBytes;m[b>>>2]&=4294967295<<32-b%4*8,m.length=n.ceil(b/4)},clone:function(){var m=c.clone.call(this);return m.words=this.words.slice(0),m},random:function(m){for(var b=[],_=0;_<m;_+=4)b.push(o());return new f.init(b,m)}}),h=l.enc={},p=h.Hex={stringify:function(m){for(var b=m.words,_=m.sigBytes,S=[],v=0;v<_;v++){var T=b[v>>>2]>>>24-v%4*8&255;S.push((T>>>4).toString(16)),S.push((T&15).toString(16))}return S.join("")},parse:function(m){for(var b=m.length,_=[],S=0;S<b;S+=2)_[S>>>3]|=parseInt(m.substr(S,2),16)<<24-S%8*4;return new f.init(_,b/2)}},d=h.Latin1={stringify:function(m){for(var b=m.words,_=m.sigBytes,S=[],v=0;v<_;v++){var T=b[v>>>2]>>>24-v%4*8&255;S.push(String.fromCharCode(T))}return S.join("")},parse:function(m){for(var b=m.length,_=[],S=0;S<b;S++)_[S>>>2]|=(m.charCodeAt(S)&255)<<24-S%4*8;return new f.init(_,b)}},g=h.Utf8={stringify:function(m){try{return decodeURIComponent(escape(d.stringify(m)))}catch(b){throw new Error("Malformed UTF-8 data")}},parse:function(m){return d.parse(unescape(encodeURIComponent(m)))}},y=a.BufferedBlockAlgorithm=c.extend({reset:function(){this._data=new f.init,this._nDataBytes=0},_append:function(m){typeof m=="string"&&(m=g.parse(m)),this._data.concat(m),this._nDataBytes+=m.sigBytes},_process:function(m){var b,_=this._data,S=_.words,v=_.sigBytes,T=this.blockSize,A=T*4,L=v/A;m?L=n.ceil(L):L=n.max((L|0)-this._minBufferSize,0);var E=L*T,x=n.min(E*4,v);if(E){for(var M=0;M<E;M+=T)this._doProcessBlock(S,M);b=S.splice(0,E),_.sigBytes-=x}return new f.init(b,x)},clone:function(){var m=c.clone.call(this);return m._data=this._data.clone(),m},_minBufferSize:0});a.Hasher=y.extend({cfg:c.extend(),init:function(m){this.cfg=this.cfg.extend(m),this.reset()},reset:function(){y.reset.call(this),this._doReset()},update:function(m){return this._append(m),this._process(),this},finalize:function(m){m&&this._append(m);var b=this._doFinalize();return b},blockSize:16,_createHelper:function(m){return function(b,_){return new m.init(_).finalize(b)}},_createHmacHelper:function(m){return function(b,_){return new w.HMAC.init(m,_).finalize(b)}}});var w=l.algo={};return l})(Math);return e})})(yr)),yr.exports}(function(r,t){(function(e,n){r.exports=n(Pt())})(ot,function(e){return(function(n){var i=e,s=i.lib,o=s.WordArray,u=s.Hasher,l=i.algo,a=[];(function(){for(var g=0;g<64;g++)a[g]=n.abs(n.sin(g+1))*4294967296|0})();var c=l.MD5=u.extend({_doReset:function(){this._hash=new o.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(g,y){for(var w=0;w<16;w++){var m=y+w,b=g[m];g[m]=(b<<8|b>>>24)&16711935|(b<<24|b>>>8)&4278255360}var _=this._hash.words,S=g[y+0],v=g[y+1],T=g[y+2],A=g[y+3],L=g[y+4],E=g[y+5],x=g[y+6],M=g[y+7],C=g[y+8],I=g[y+9],j=g[y+10],$=g[y+11],k=g[y+12],F=g[y+13],V=g[y+14],q=g[y+15],O=_[0],D=_[1],P=_[2],N=_[3];O=f(O,D,P,N,S,7,a[0]),N=f(N,O,D,P,v,12,a[1]),P=f(P,N,O,D,T,17,a[2]),D=f(D,P,N,O,A,22,a[3]),O=f(O,D,P,N,L,7,a[4]),N=f(N,O,D,P,E,12,a[5]),P=f(P,N,O,D,x,17,a[6]),D=f(D,P,N,O,M,22,a[7]),O=f(O,D,P,N,C,7,a[8]),N=f(N,O,D,P,I,12,a[9]),P=f(P,N,O,D,j,17,a[10]),D=f(D,P,N,O,$,22,a[11]),O=f(O,D,P,N,k,7,a[12]),N=f(N,O,D,P,F,12,a[13]),P=f(P,N,O,D,V,17,a[14]),D=f(D,P,N,O,q,22,a[15]),O=h(O,D,P,N,v,5,a[16]),N=h(N,O,D,P,x,9,a[17]),P=h(P,N,O,D,$,14,a[18]),D=h(D,P,N,O,S,20,a[19]),O=h(O,D,P,N,E,5,a[20]),N=h(N,O,D,P,j,9,a[21]),P=h(P,N,O,D,q,14,a[22]),D=h(D,P,N,O,L,20,a[23]),O=h(O,D,P,N,I,5,a[24]),N=h(N,O,D,P,V,9,a[25]),P=h(P,N,O,D,A,14,a[26]),D=h(D,P,N,O,C,20,a[27]),O=h(O,D,P,N,F,5,a[28]),N=h(N,O,D,P,T,9,a[29]),P=h(P,N,O,D,M,14,a[30]),D=h(D,P,N,O,k,20,a[31]),O=p(O,D,P,N,E,4,a[32]),N=p(N,O,D,P,C,11,a[33]),P=p(P,N,O,D,$,16,a[34]),D=p(D,P,N,O,V,23,a[35]),O=p(O,D,P,N,v,4,a[36]),N=p(N,O,D,P,L,11,a[37]),P=p(P,N,O,D,M,16,a[38]),D=p(D,P,N,O,j,23,a[39]),O=p(O,D,P,N,F,4,a[40]),N=p(N,O,D,P,S,11,a[41]),P=p(P,N,O,D,A,16,a[42]),D=p(D,P,N,O,x,23,a[43]),O=p(O,D,P,N,I,4,a[44]),N=p(N,O,D,P,k,11,a[45]),P=p(P,N,O,D,q,16,a[46]),D=p(D,P,N,O,T,23,a[47]),O=d(O,D,P,N,S,6,a[48]),N=d(N,O,D,P,M,10,a[49]),P=d(P,N,O,D,V,15,a[50]),D=d(D,P,N,O,E,21,a[51]),O=d(O,D,P,N,k,6,a[52]),N=d(N,O,D,P,A,10,a[53]),P=d(P,N,O,D,j,15,a[54]),D=d(D,P,N,O,v,21,a[55]),O=d(O,D,P,N,C,6,a[56]),N=d(N,O,D,P,q,10,a[57]),P=d(P,N,O,D,x,15,a[58]),D=d(D,P,N,O,F,21,a[59]),O=d(O,D,P,N,L,6,a[60]),N=d(N,O,D,P,$,10,a[61]),P=d(P,N,O,D,T,15,a[62]),D=d(D,P,N,O,I,21,a[63]),_[0]=_[0]+O|0,_[1]=_[1]+D|0,_[2]=_[2]+P|0,_[3]=_[3]+N|0},_doFinalize:function(){var g=this._data,y=g.words,w=this._nDataBytes*8,m=g.sigBytes*8;y[m>>>5]|=128<<24-m%32;var b=n.floor(w/4294967296),_=w;y[(m+64>>>9<<4)+15]=(b<<8|b>>>24)&16711935|(b<<24|b>>>8)&4278255360,y[(m+64>>>9<<4)+14]=(_<<8|_>>>24)&16711935|(_<<24|_>>>8)&4278255360,g.sigBytes=(y.length+1)*4,this._process();for(var S=this._hash,v=S.words,T=0;T<4;T++){var A=v[T];v[T]=(A<<8|A>>>24)&16711935|(A<<24|A>>>8)&4278255360}return S},clone:function(){var g=u.clone.call(this);return g._hash=this._hash.clone(),g}});function f(g,y,w,m,b,_,S){var v=g+(y&w|~y&m)+b+S;return(v<<_|v>>>32-_)+y}function h(g,y,w,m,b,_,S){var v=g+(y&m|w&~m)+b+S;return(v<<_|v>>>32-_)+y}function p(g,y,w,m,b,_,S){var v=g+(y^w^m)+b+S;return(v<<_|v>>>32-_)+y}function d(g,y,w,m,b,_,S){var v=g+(w^(y|~m))+b+S;return(v<<_|v>>>32-_)+y}i.MD5=u._createHelper(c),i.HmacMD5=u._createHmacHelper(c)})(Math),e.MD5})})(co);var Zp=co.exports,lo={exports:{}};(function(r,t){(function(e,n){r.exports=n(Pt())})(ot,function(e){return(function(){var n=e,i=n.lib,s=i.WordArray,o=n.enc;o.Base64={stringify:function(l){var a=l.words,c=l.sigBytes,f=this._map;l.clamp();for(var h=[],p=0;p<c;p+=3)for(var d=a[p>>>2]>>>24-p%4*8&255,g=a[p+1>>>2]>>>24-(p+1)%4*8&255,y=a[p+2>>>2]>>>24-(p+2)%4*8&255,w=d<<16|g<<8|y,m=0;m<4&&p+m*.75<c;m++)h.push(f.charAt(w>>>6*(3-m)&63));var b=f.charAt(64);if(b)for(;h.length%4;)h.push(b);return h.join("")},parse:function(l){var a=l.length,c=this._map,f=this._reverseMap;if(!f){f=this._reverseMap=[];for(var h=0;h<c.length;h++)f[c.charCodeAt(h)]=h}var p=c.charAt(64);if(p){var d=l.indexOf(p);d!==-1&&(a=d)}return u(l,a,f)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function u(l,a,c){for(var f=[],h=0,p=0;p<a;p++)if(p%4){var d=c[l.charCodeAt(p-1)]<<p%4*2,g=c[l.charCodeAt(p)]>>>6-p%4*2,y=d|g;f[h>>>2]|=y<<24-h%4*8,h++}return s.create(f,h)}})(),e.enc.Base64})})(lo);var Qp=lo.exports,Xp={exports:{}};(function(r,t){(function(e,n){r.exports=n(Pt())})(ot,function(e){return e.enc.Utf8})})(Xp);var td={exports:{}},br={exports:{}},_r={exports:{}},vi;function ed(){return vi||(vi=1,(function(r,t){(function(e,n){r.exports=n(Pt())})(ot,function(e){return(function(){var n=e,i=n.lib,s=i.WordArray,o=i.Hasher,u=n.algo,l=[],a=u.SHA1=o.extend({_doReset:function(){this._hash=new s.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(c,f){for(var h=this._hash.words,p=h[0],d=h[1],g=h[2],y=h[3],w=h[4],m=0;m<80;m++){if(m<16)l[m]=c[f+m]|0;else{var b=l[m-3]^l[m-8]^l[m-14]^l[m-16];l[m]=b<<1|b>>>31}var _=(p<<5|p>>>27)+w+l[m];m<20?_+=(d&g|~d&y)+1518500249:m<40?_+=(d^g^y)+1859775393:m<60?_+=(d&g|d&y|g&y)-1894007588:_+=(d^g^y)-899497514,w=y,y=g,g=d<<30|d>>>2,d=p,p=_}h[0]=h[0]+p|0,h[1]=h[1]+d|0,h[2]=h[2]+g|0,h[3]=h[3]+y|0,h[4]=h[4]+w|0},_doFinalize:function(){var c=this._data,f=c.words,h=this._nDataBytes*8,p=c.sigBytes*8;return f[p>>>5]|=128<<24-p%32,f[(p+64>>>9<<4)+14]=Math.floor(h/4294967296),f[(p+64>>>9<<4)+15]=h,c.sigBytes=f.length*4,this._process(),this._hash},clone:function(){var c=o.clone.call(this);return c._hash=this._hash.clone(),c}});n.SHA1=o._createHelper(a),n.HmacSHA1=o._createHmacHelper(a)})(),e.SHA1})})(_r)),_r.exports}var wr={exports:{}},mi;function rd(){return mi||(mi=1,(function(r,t){(function(e,n){r.exports=n(Pt())})(ot,function(e){(function(){var n=e,i=n.lib,s=i.Base,o=n.enc,u=o.Utf8,l=n.algo;l.HMAC=s.extend({init:function(a,c){a=this._hasher=new a.init,typeof c=="string"&&(c=u.parse(c));var f=a.blockSize,h=f*4;c.sigBytes>h&&(c=a.finalize(c)),c.clamp();for(var p=this._oKey=c.clone(),d=this._iKey=c.clone(),g=p.words,y=d.words,w=0;w<f;w++)g[w]^=1549556828,y[w]^=909522486;p.sigBytes=d.sigBytes=h,this.reset()},reset:function(){var a=this._hasher;a.reset(),a.update(this._iKey)},update:function(a){return this._hasher.update(a),this},finalize:function(a){var c=this._hasher,f=c.finalize(a);c.reset();var h=c.finalize(this._oKey.clone().concat(f));return h}})})()})})(wr)),wr.exports}var yi;function fo(){return yi||(yi=1,(function(r,t){(function(e,n,i){r.exports=n(Pt(),ed(),rd())})(ot,function(e){return(function(){var n=e,i=n.lib,s=i.Base,o=i.WordArray,u=n.algo,l=u.MD5,a=u.EvpKDF=s.extend({cfg:s.extend({keySize:128/32,hasher:l,iterations:1}),init:function(c){this.cfg=this.cfg.extend(c)},compute:function(c,f){for(var h,p=this.cfg,d=p.hasher.create(),g=o.create(),y=g.words,w=p.keySize,m=p.iterations;y.length<w;){h&&d.update(h),h=d.update(c).finalize(f),d.reset();for(var b=1;b<m;b++)h=d.finalize(h),d.reset();g.concat(h)}return g.sigBytes=w*4,g}});n.EvpKDF=function(c,f,h){return a.create(h).compute(c,f)}})(),e.EvpKDF})})(br)),br.exports}var Er={exports:{}},bi;function nd(){return bi||(bi=1,(function(r,t){(function(e,n,i){r.exports=n(Pt(),fo())})(ot,function(e){e.lib.Cipher||(function(n){var i=e,s=i.lib,o=s.Base,u=s.WordArray,l=s.BufferedBlockAlgorithm,a=i.enc;a.Utf8;var c=a.Base64,f=i.algo,h=f.EvpKDF,p=s.Cipher=l.extend({cfg:o.extend(),createEncryptor:function(E,x){return this.create(this._ENC_XFORM_MODE,E,x)},createDecryptor:function(E,x){return this.create(this._DEC_XFORM_MODE,E,x)},init:function(E,x,M){this.cfg=this.cfg.extend(M),this._xformMode=E,this._key=x,this.reset()},reset:function(){l.reset.call(this),this._doReset()},process:function(E){return this._append(E),this._process()},finalize:function(E){E&&this._append(E);var x=this._doFinalize();return x},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:(function(){function E(x){return typeof x=="string"?L:v}return function(x){return{encrypt:function(M,C,I){return E(C).encrypt(x,M,C,I)},decrypt:function(M,C,I){return E(C).decrypt(x,M,C,I)}}}})()});s.StreamCipher=p.extend({_doFinalize:function(){var E=this._process(!0);return E},blockSize:1});var d=i.mode={},g=s.BlockCipherMode=o.extend({createEncryptor:function(E,x){return this.Encryptor.create(E,x)},createDecryptor:function(E,x){return this.Decryptor.create(E,x)},init:function(E,x){this._cipher=E,this._iv=x}}),y=d.CBC=(function(){var E=g.extend();E.Encryptor=E.extend({processBlock:function(M,C){var I=this._cipher,j=I.blockSize;x.call(this,M,C,j),I.encryptBlock(M,C),this._prevBlock=M.slice(C,C+j)}}),E.Decryptor=E.extend({processBlock:function(M,C){var I=this._cipher,j=I.blockSize,$=M.slice(C,C+j);I.decryptBlock(M,C),x.call(this,M,C,j),this._prevBlock=$}});function x(M,C,I){var j,$=this._iv;$?(j=$,this._iv=n):j=this._prevBlock;for(var k=0;k<I;k++)M[C+k]^=j[k]}return E})(),w=i.pad={},m=w.Pkcs7={pad:function(E,x){for(var M=x*4,C=M-E.sigBytes%M,I=C<<24|C<<16|C<<8|C,j=[],$=0;$<C;$+=4)j.push(I);var k=u.create(j,C);E.concat(k)},unpad:function(E){var x=E.words[E.sigBytes-1>>>2]&255;E.sigBytes-=x}};s.BlockCipher=p.extend({cfg:p.cfg.extend({mode:y,padding:m}),reset:function(){var E;p.reset.call(this);var x=this.cfg,M=x.iv,C=x.mode;this._xformMode==this._ENC_XFORM_MODE?E=C.createEncryptor:(E=C.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==E?this._mode.init(this,M&&M.words):(this._mode=E.call(C,this,M&&M.words),this._mode.__creator=E)},_doProcessBlock:function(E,x){this._mode.processBlock(E,x)},_doFinalize:function(){var E,x=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(x.pad(this._data,this.blockSize),E=this._process(!0)):(E=this._process(!0),x.unpad(E)),E},blockSize:128/32});var b=s.CipherParams=o.extend({init:function(E){this.mixIn(E)},toString:function(E){return(E||this.formatter).stringify(this)}}),_=i.format={},S=_.OpenSSL={stringify:function(E){var x,M=E.ciphertext,C=E.salt;return C?x=u.create([1398893684,1701076831]).concat(C).concat(M):x=M,x.toString(c)},parse:function(E){var x,M=c.parse(E),C=M.words;return C[0]==1398893684&&C[1]==1701076831&&(x=u.create(C.slice(2,4)),C.splice(0,4),M.sigBytes-=16),b.create({ciphertext:M,salt:x})}},v=s.SerializableCipher=o.extend({cfg:o.extend({format:S}),encrypt:function(E,x,M,C){C=this.cfg.extend(C);var I=E.createEncryptor(M,C),j=I.finalize(x),$=I.cfg;return b.create({ciphertext:j,key:M,iv:$.iv,algorithm:E,mode:$.mode,padding:$.padding,blockSize:E.blockSize,formatter:C.format})},decrypt:function(E,x,M,C){C=this.cfg.extend(C),x=this._parse(x,C.format);var I=E.createDecryptor(M,C).finalize(x.ciphertext);return I},_parse:function(E,x){return typeof E=="string"?x.parse(E,this):E}}),T=i.kdf={},A=T.OpenSSL={execute:function(E,x,M,C,I){if(C||(C=u.random(64/8)),I)var j=h.create({keySize:x+M,hasher:I}).compute(E,C);else var j=h.create({keySize:x+M}).compute(E,C);var $=u.create(j.words.slice(x),M*4);return j.sigBytes=x*4,b.create({key:j,iv:$,salt:C})}},L=s.PasswordBasedCipher=v.extend({cfg:v.cfg.extend({kdf:A}),encrypt:function(E,x,M,C){C=this.cfg.extend(C);var I=C.kdf.execute(M,E.keySize,E.ivSize,C.salt,C.hasher);C.iv=I.iv;var j=v.encrypt.call(this,E,x,I.key,C);return j.mixIn(I),j},decrypt:function(E,x,M,C){C=this.cfg.extend(C),x=this._parse(x,C.format);var I=C.kdf.execute(M,E.keySize,E.ivSize,x.salt,C.hasher);C.iv=I.iv;var j=v.decrypt.call(this,E,x,I.key,C);return j}})})()})})(Er)),Er.exports}(function(r,t){(function(e,n,i){r.exports=n(Pt(),Qp,Zp,fo(),nd())})(ot,function(e){return(function(){var n=e,i=n.lib,s=i.BlockCipher,o=n.algo,u=[],l=[],a=[],c=[],f=[],h=[],p=[],d=[],g=[],y=[];(function(){for(var b=[],_=0;_<256;_++)_<128?b[_]=_<<1:b[_]=_<<1^283;for(var S=0,v=0,_=0;_<256;_++){var T=v^v<<1^v<<2^v<<3^v<<4;T=T>>>8^T&255^99,u[S]=T,l[T]=S;var A=b[S],L=b[A],E=b[L],x=b[T]*257^T*16843008;a[S]=x<<24|x>>>8,c[S]=x<<16|x>>>16,f[S]=x<<8|x>>>24,h[S]=x;var x=E*16843009^L*65537^A*257^S*16843008;p[T]=x<<24|x>>>8,d[T]=x<<16|x>>>16,g[T]=x<<8|x>>>24,y[T]=x,S?(S=A^b[b[b[E^A]]],v^=b[b[v]]):S=v=1}})();var w=[0,1,2,4,8,16,32,64,128,27,54],m=o.AES=s.extend({_doReset:function(){var b;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var _=this._keyPriorReset=this._key,S=_.words,v=_.sigBytes/4,T=this._nRounds=v+6,A=(T+1)*4,L=this._keySchedule=[],E=0;E<A;E++)E<v?L[E]=S[E]:(b=L[E-1],E%v?v>6&&E%v==4&&(b=u[b>>>24]<<24|u[b>>>16&255]<<16|u[b>>>8&255]<<8|u[b&255]):(b=b<<8|b>>>24,b=u[b>>>24]<<24|u[b>>>16&255]<<16|u[b>>>8&255]<<8|u[b&255],b^=w[E/v|0]<<24),L[E]=L[E-v]^b);for(var x=this._invKeySchedule=[],M=0;M<A;M++){var E=A-M;if(M%4)var b=L[E];else var b=L[E-4];M<4||E<=4?x[M]=b:x[M]=p[u[b>>>24]]^d[u[b>>>16&255]]^g[u[b>>>8&255]]^y[u[b&255]]}}},encryptBlock:function(b,_){this._doCryptBlock(b,_,this._keySchedule,a,c,f,h,u)},decryptBlock:function(b,_){var S=b[_+1];b[_+1]=b[_+3],b[_+3]=S,this._doCryptBlock(b,_,this._invKeySchedule,p,d,g,y,l);var S=b[_+1];b[_+1]=b[_+3],b[_+3]=S},_doCryptBlock:function(b,_,S,v,T,A,L,E){for(var x=this._nRounds,M=b[_]^S[0],C=b[_+1]^S[1],I=b[_+2]^S[2],j=b[_+3]^S[3],$=4,k=1;k<x;k++){var F=v[M>>>24]^T[C>>>16&255]^A[I>>>8&255]^L[j&255]^S[$++],V=v[C>>>24]^T[I>>>16&255]^A[j>>>8&255]^L[M&255]^S[$++],q=v[I>>>24]^T[j>>>16&255]^A[M>>>8&255]^L[C&255]^S[$++],O=v[j>>>24]^T[M>>>16&255]^A[C>>>8&255]^L[I&255]^S[$++];M=F,C=V,I=q,j=O}var F=(E[M>>>24]<<24|E[C>>>16&255]<<16|E[I>>>8&255]<<8|E[j&255])^S[$++],V=(E[C>>>24]<<24|E[I>>>16&255]<<16|E[j>>>8&255]<<8|E[M&255])^S[$++],q=(E[I>>>24]<<24|E[j>>>16&255]<<16|E[M>>>8&255]<<8|E[C&255])^S[$++],O=(E[j>>>24]<<24|E[M>>>16&255]<<16|E[C>>>8&255]<<8|E[I&255])^S[$++];b[_]=F,b[_+1]=V,b[_+2]=q,b[_+3]=O},keySize:256/32});n.AES=s._createHelper(m)})(),e.AES})})(td);var id="0123456789abcdefghijklmnopqrstuvwxyz";function Rt(r){return id.charAt(r)}function sd(r,t){return r&t}function Ce(r,t){return r|t}function _i(r,t){return r^t}function wi(r,t){return r&~t}function od(r){if(r==0)return-1;var t=0;return(r&65535)==0&&(r>>=16,t+=16),(r&255)==0&&(r>>=8,t+=8),(r&15)==0&&(r>>=4,t+=4),(r&3)==0&&(r>>=2,t+=2),(r&1)==0&&++t,t}function ad(r){for(var t=0;r!=0;)r&=r-1,++t;return t}var ee="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ho="=";function be(r){var t,e,n="";for(t=0;t+3<=r.length;t+=3)e=parseInt(r.substring(t,t+3),16),n+=ee.charAt(e>>6)+ee.charAt(e&63);for(t+1==r.length?(e=parseInt(r.substring(t,t+1),16),n+=ee.charAt(e<<2)):t+2==r.length&&(e=parseInt(r.substring(t,t+2),16),n+=ee.charAt(e>>2)+ee.charAt((e&3)<<4));(n.length&3)>0;)n+=ho;return n}function Ei(r){var t="",e,n=0,i=0;for(e=0;e<r.length&&r.charAt(e)!=ho;++e){var s=ee.indexOf(r.charAt(e));s<0||(n==0?(t+=Rt(s>>2),i=s&3,n=1):n==1?(t+=Rt(i<<2|s>>4),i=s&15,n=2):n==2?(t+=Rt(i),t+=Rt(s>>2),i=s&3,n=3):(t+=Rt(i<<2|s>>4),t+=Rt(s&15),n=0))}return n==1&&(t+=Rt(i<<2)),t}var Zt,ud={decode:function(r){var t;if(Zt===void 0){var e="0123456789ABCDEF",n=` \f
|
|
20
20
|
\r \u2028\u2029`;for(Zt={},t=0;t<16;++t)Zt[e.charAt(t)]=t;for(e=e.toLowerCase(),t=10;t<16;++t)Zt[e.charAt(t)]=t;for(t=0;t<n.length;++t)Zt[n.charAt(t)]=-1}var i=[],s=0,o=0;for(t=0;t<r.length;++t){var u=r.charAt(t);if(u=="=")break;if(u=Zt[u],u!=-1){if(u===void 0)throw new Error("Illegal character at offset "+t);s|=u,++o>=2?(i[i.length]=s,s=0,o=0):s<<=4}}if(o)throw new Error("Hex encoding incomplete: 4 bits missing");return i}},Ft,Jr={decode:function(r){var t;if(Ft===void 0){var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n=`= \f
|
|
21
21
|
\r \u2028\u2029`;for(Ft=Object.create(null),t=0;t<64;++t)Ft[e.charAt(t)]=t;for(Ft["-"]=62,Ft._=63,t=0;t<n.length;++t)Ft[n.charAt(t)]=-1}var i=[],s=0,o=0;for(t=0;t<r.length;++t){var u=r.charAt(t);if(u=="=")break;if(u=Ft[u],u!=-1){if(u===void 0)throw new Error("Illegal character at offset "+t);s|=u,++o>=4?(i[i.length]=s>>16,i[i.length]=s>>8&255,i[i.length]=s&255,s=0,o=0):s<<=6}}switch(o){case 1:throw new Error("Base64 encoding incomplete: at least 2 bits missing");case 2:i[i.length]=s>>10;break;case 3:i[i.length]=s>>16,i[i.length]=s>>8&255;break}return i},re:/-----BEGIN [^-]+-----([A-Za-z0-9+\/=\s]+)-----END [^-]+-----|begin-base64[^\n]+\n([A-Za-z0-9+\/=\s]+)====/,unarmor:function(r){var t=Jr.re.exec(r);if(t)if(t[1])r=t[1];else if(t[2])r=t[2];else throw new Error("RegExp out of sync");return Jr.decode(r)}},Qt=1e13,me=(function(){function r(t){this.buf=[+t||0]}return r.prototype.mulAdd=function(t,e){var n=this.buf,i=n.length,s,o;for(s=0;s<i;++s)o=n[s]*t+e,o<Qt?e=0:(e=0|o/Qt,o-=e*Qt),n[s]=o;e>0&&(n[s]=e)},r.prototype.sub=function(t){var e=this.buf,n=e.length,i,s;for(i=0;i<n;++i)s=e[i]-t,s<0?(s+=Qt,t=1):t=0,e[i]=s;for(;e[e.length-1]===0;)e.pop()},r.prototype.toString=function(t){if((t||10)!=10)throw new Error("only base 10 is supported");for(var e=this.buf,n=e[e.length-1].toString(),i=e.length-2;i>=0;--i)n+=(Qt+e[i]).toString().substring(1);return n},r.prototype.valueOf=function(){for(var t=this.buf,e=0,n=t.length-1;n>=0;--n)e=e*Qt+t[n];return e},r.prototype.simplify=function(){var t=this.buf;return t.length==1?t[0]:this},r})(),po="…",cd=/^(\d\d)(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])([01]\d|2[0-3])(?:([0-5]\d)(?:([0-5]\d)(?:[.,](\d{1,3}))?)?)?(Z|[-+](?:[0]\d|1[0-2])([0-5]\d)?)?$/,ld=/^(\d\d\d\d)(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])([01]\d|2[0-3])(?:([0-5]\d)(?:([0-5]\d)(?:[.,](\d{1,3}))?)?)?(Z|[-+](?:[0]\d|1[0-2])([0-5]\d)?)?$/;function ne(r,t){return r.length>t&&(r=r.substring(0,t)+po),r}var Sr=(function(){function r(t,e){this.hexDigits="0123456789ABCDEF",t instanceof r?(this.enc=t.enc,this.pos=t.pos):(this.enc=t,this.pos=e)}return r.prototype.get=function(t){if(t===void 0&&(t=this.pos++),t>=this.enc.length)throw new Error("Requesting byte offset ".concat(t," on a stream of length ").concat(this.enc.length));return typeof this.enc=="string"?this.enc.charCodeAt(t):this.enc[t]},r.prototype.hexByte=function(t){return this.hexDigits.charAt(t>>4&15)+this.hexDigits.charAt(t&15)},r.prototype.hexDump=function(t,e,n){for(var i="",s=t;s<e;++s)if(i+=this.hexByte(this.get(s)),n!==!0)switch(s&15){case 7:i+=" ";break;case 15:i+=`
|
|
22
22
|
`;break;default:i+=" "}return i},r.prototype.isASCII=function(t,e){for(var n=t;n<e;++n){var i=this.get(n);if(i<32||i>176)return!1}return!0},r.prototype.parseStringISO=function(t,e){for(var n="",i=t;i<e;++i)n+=String.fromCharCode(this.get(i));return n},r.prototype.parseStringUTF=function(t,e){for(var n="",i=t;i<e;){var s=this.get(i++);s<128?n+=String.fromCharCode(s):s>191&&s<224?n+=String.fromCharCode((s&31)<<6|this.get(i++)&63):n+=String.fromCharCode((s&15)<<12|(this.get(i++)&63)<<6|this.get(i++)&63)}return n},r.prototype.parseStringBMP=function(t,e){for(var n="",i,s,o=t;o<e;)i=this.get(o++),s=this.get(o++),n+=String.fromCharCode(i<<8|s);return n},r.prototype.parseTime=function(t,e,n){var i=this.parseStringISO(t,e),s=(n?cd:ld).exec(i);return s?(n&&(s[1]=+s[1],s[1]+=+s[1]<70?2e3:1900),i=s[1]+"-"+s[2]+"-"+s[3]+" "+s[4],s[5]&&(i+=":"+s[5],s[6]&&(i+=":"+s[6],s[7]&&(i+="."+s[7]))),s[8]&&(i+=" UTC",s[8]!="Z"&&(i+=s[8],s[9]&&(i+=":"+s[9]))),i):"Unrecognized time: "+i},r.prototype.parseInteger=function(t,e){for(var n=this.get(t),i=n>127,s=i?255:0,o,u="";n==s&&++t<e;)n=this.get(t);if(o=e-t,o===0)return i?-1:0;if(o>4){for(u=n,o<<=3;((+u^s)&128)==0;)u=+u<<1,--o;u="("+o+` bit)
|
|
23
23
|
`}i&&(n=n-256);for(var l=new me(n),a=t+1;a<e;++a)l.mulAdd(256,this.get(a));return u+l.toString()},r.prototype.parseBitString=function(t,e,n){for(var i=this.get(t),s=(e-t-1<<3)-i,o="("+s+` bit)
|
|
24
24
|
`,u="",l=t+1;l<e;++l){for(var a=this.get(l),c=l==e-1?i:0,f=7;f>=c;--f)u+=a>>f&1?"1":"0";if(u.length>n)return o+ne(u,n)}return o+u},r.prototype.parseOctetString=function(t,e,n){if(this.isASCII(t,e))return ne(this.parseStringISO(t,e),n);var i=e-t,s="("+i+` byte)
|
|
25
25
|
`;n/=2,i>n&&(e=t+n);for(var o=t;o<e;++o)s+=this.hexByte(this.get(o));return i>n&&(s+=po),s},r.prototype.parseOID=function(t,e,n){for(var i="",s=new me,o=0,u=t;u<e;++u){var l=this.get(u);if(s.mulAdd(128,l&127),o+=7,!(l&128)){if(i==="")if(s=s.simplify(),s instanceof me)s.sub(80),i="2."+s.toString();else{var a=s<80?s<40?0:1:2;i=a+"."+(s-a*40)}else i+="."+s.toString();if(i.length>n)return ne(i,n);s=new me,o=0}}return o>0&&(i+=".incomplete"),i},r})(),fd=(function(){function r(t,e,n,i,s){if(!(i instanceof Si))throw new Error("Invalid tag value.");this.stream=t,this.header=e,this.length=n,this.tag=i,this.sub=s}return r.prototype.typeName=function(){switch(this.tag.tagClass){case 0:switch(this.tag.tagNumber){case 0:return"EOC";case 1:return"BOOLEAN";case 2:return"INTEGER";case 3:return"BIT_STRING";case 4:return"OCTET_STRING";case 5:return"NULL";case 6:return"OBJECT_IDENTIFIER";case 7:return"ObjectDescriptor";case 8:return"EXTERNAL";case 9:return"REAL";case 10:return"ENUMERATED";case 11:return"EMBEDDED_PDV";case 12:return"UTF8String";case 16:return"SEQUENCE";case 17:return"SET";case 18:return"NumericString";case 19:return"PrintableString";case 20:return"TeletexString";case 21:return"VideotexString";case 22:return"IA5String";case 23:return"UTCTime";case 24:return"GeneralizedTime";case 25:return"GraphicString";case 26:return"VisibleString";case 27:return"GeneralString";case 28:return"UniversalString";case 30:return"BMPString"}return"Universal_"+this.tag.tagNumber.toString();case 1:return"Application_"+this.tag.tagNumber.toString();case 2:return"["+this.tag.tagNumber.toString()+"]";case 3:return"Private_"+this.tag.tagNumber.toString()}},r.prototype.content=function(t){if(this.tag===void 0)return null;t===void 0&&(t=1/0);var e=this.posContent(),n=Math.abs(this.length);if(!this.tag.isUniversal())return this.sub!==null?"("+this.sub.length+" elem)":this.stream.parseOctetString(e,e+n,t);switch(this.tag.tagNumber){case 1:return this.stream.get(e)===0?"false":"true";case 2:return this.stream.parseInteger(e,e+n);case 3:return this.sub?"("+this.sub.length+" elem)":this.stream.parseBitString(e,e+n,t);case 4:return this.sub?"("+this.sub.length+" elem)":this.stream.parseOctetString(e,e+n,t);case 6:return this.stream.parseOID(e,e+n,t);case 16:case 17:return this.sub!==null?"("+this.sub.length+" elem)":"(no elem)";case 12:return ne(this.stream.parseStringUTF(e,e+n),t);case 18:case 19:case 20:case 21:case 22:case 26:return ne(this.stream.parseStringISO(e,e+n),t);case 30:return ne(this.stream.parseStringBMP(e,e+n),t);case 23:case 24:return this.stream.parseTime(e,e+n,this.tag.tagNumber==23)}return null},r.prototype.toString=function(){return this.typeName()+"@"+this.stream.pos+"[header:"+this.header+",length:"+this.length+",sub:"+(this.sub===null?"null":this.sub.length)+"]"},r.prototype.toPrettyString=function(t){t===void 0&&(t="");var e=t+this.typeName()+" @"+this.stream.pos;if(this.length>=0&&(e+="+"),e+=this.length,this.tag.tagConstructed?e+=" (constructed)":this.tag.isUniversal()&&(this.tag.tagNumber==3||this.tag.tagNumber==4)&&this.sub!==null&&(e+=" (encapsulates)"),e+=`
|
|
26
|
-
`,this.sub!==null){t+=" ";for(var n=0,i=this.sub.length;n<i;++n)e+=this.sub[n].toPrettyString(t)}return e},r.prototype.posStart=function(){return this.stream.pos},r.prototype.posContent=function(){return this.stream.pos+this.header},r.prototype.posEnd=function(){return this.stream.pos+this.header+Math.abs(this.length)},r.prototype.toHexString=function(){return this.stream.hexDump(this.posStart(),this.posEnd(),!0)},r.decodeLength=function(t){var e=t.get(),n=e&127;if(n==e)return n;if(n>6)throw new Error("Length over 48 bits not supported at position "+(t.pos-1));if(n===0)return null;e=0;for(var i=0;i<n;++i)e=e*256+t.get();return e},r.prototype.getHexStringValue=function(){var t=this.toHexString(),e=this.header*2,n=this.length*2;return t.substring(e,e+n)},r.decode=function(t){var e;t instanceof Sr?e=t:e=new Sr(t,0);var n=new Sr(e),i=new Si(e),s=r.decodeLength(e),o=e.pos,u=o-n.pos,l=null,a=function(){var f=[];if(s!==null){for(var h=o+s;e.pos<h;)f[f.length]=r.decode(e);if(e.pos!=h)throw new Error("Content size is not correct for container starting at offset "+o)}else try{for(;;){var p=r.decode(e);if(p.tag.isEOC())break;f[f.length]=p}s=o-e.pos}catch(d){throw new Error("Exception while decoding undefined length content: "+d)}return f};if(i.tagConstructed)l=a();else if(i.isUniversal()&&(i.tagNumber==3||i.tagNumber==4))try{if(i.tagNumber==3&&e.get()!=0)throw new Error("BIT STRINGs with unused bits cannot encapsulate.");l=a();for(var c=0;c<l.length;++c)if(l[c].tag.isEOC())throw new Error("EOC is not supposed to be actual content.")}catch(f){l=null}if(l===null){if(s===null)throw new Error("We can't skip over an invalid tag with undefined length at offset "+o);e.pos=o+Math.abs(s)}return new r(n,u,s,i,l)},r})(),Si=(function(){function r(t){var e=t.get();if(this.tagClass=e>>6,this.tagConstructed=(e&32)!==0,this.tagNumber=e&31,this.tagNumber==31){var n=new me;do e=t.get(),n.mulAdd(128,e&127);while(e&128);this.tagNumber=n.simplify()}}return r.prototype.isUniversal=function(){return this.tagClass===0},r.prototype.isEOC=function(){return this.tagClass===0&&this.tagNumber===0},r})(),Ct,hd=0xdeadbeefcafe,Ti=(hd&16777215)==15715070,st=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997],pd=(1<<26)/st[st.length-1],W=(function(){function r(t,e,n){t!=null&&(typeof t=="number"?this.fromNumber(t,e,n):e==null&&typeof t!="string"?this.fromString(t,256):this.fromString(t,e))}return r.prototype.toString=function(t){if(this.s<0)return"-"+this.negate().toString(t);var e;if(t==16)e=4;else if(t==8)e=3;else if(t==2)e=1;else if(t==32)e=5;else if(t==4)e=2;else return this.toRadix(t);var n=(1<<e)-1,i,s=!1,o="",u=this.t,l=this.DB-u*this.DB%e;if(u-- >0)for(l<this.DB&&(i=this[u]>>l)>0&&(s=!0,o=Rt(i));u>=0;)l<e?(i=(this[u]&(1<<l)-1)<<e-l,i|=this[--u]>>(l+=this.DB-e)):(i=this[u]>>(l-=e)&n,l<=0&&(l+=this.DB,--u)),i>0&&(s=!0),s&&(o+=Rt(i));return s?o:"0"},r.prototype.negate=function(){var t=J();return r.ZERO.subTo(this,t),t},r.prototype.abs=function(){return this.s<0?this.negate():this},r.prototype.compareTo=function(t){var e=this.s-t.s;if(e!=0)return e;var n=this.t;if(e=n-t.t,e!=0)return this.s<0?-e:e;for(;--n>=0;)if((e=this[n]-t[n])!=0)return e;return 0},r.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+Be(this[this.t-1]^this.s&this.DM)},r.prototype.mod=function(t){var e=J();return this.abs().divRemTo(t,null,e),this.s<0&&e.compareTo(r.ZERO)>0&&t.subTo(e,e),e},r.prototype.modPowInt=function(t,e){var n;return t<256||e.isEven()?n=new Ri(e):n=new xi(e),this.exp(t,n)},r.prototype.clone=function(){var t=J();return this.copyTo(t),t},r.prototype.intValue=function(){if(this.s<0){if(this.t==1)return this[0]-this.DV;if(this.t==0)return-1}else{if(this.t==1)return this[0];if(this.t==0)return 0}return(this[1]&(1<<32-this.DB)-1)<<this.DB|this[0]},r.prototype.byteValue=function(){return this.t==0?this.s:this[0]<<24>>24},r.prototype.shortValue=function(){return this.t==0?this.s:this[0]<<16>>16},r.prototype.signum=function(){return this.s<0?-1:this.t<=0||this.t==1&&this[0]<=0?0:1},r.prototype.toByteArray=function(){var t=this.t,e=[];e[0]=this.s;var n=this.DB-t*this.DB%8,i,s=0;if(t-- >0)for(n<this.DB&&(i=this[t]>>n)!=(this.s&this.DM)>>n&&(e[s++]=i|this.s<<this.DB-n);t>=0;)n<8?(i=(this[t]&(1<<n)-1)<<8-n,i|=this[--t]>>(n+=this.DB-8)):(i=this[t]>>(n-=8)&255,n<=0&&(n+=this.DB,--t)),(i&128)!=0&&(i|=-256),s==0&&(this.s&128)!=(i&128)&&++s,(s>0||i!=this.s)&&(e[s++]=i);return e},r.prototype.equals=function(t){return this.compareTo(t)==0},r.prototype.min=function(t){return this.compareTo(t)<0?this:t},r.prototype.max=function(t){return this.compareTo(t)>0?this:t},r.prototype.and=function(t){var e=J();return this.bitwiseTo(t,sd,e),e},r.prototype.or=function(t){var e=J();return this.bitwiseTo(t,Ce,e),e},r.prototype.xor=function(t){var e=J();return this.bitwiseTo(t,_i,e),e},r.prototype.andNot=function(t){var e=J();return this.bitwiseTo(t,wi,e),e},r.prototype.not=function(){for(var t=J(),e=0;e<this.t;++e)t[e]=this.DM&~this[e];return t.t=this.t,t.s=~this.s,t},r.prototype.shiftLeft=function(t){var e=J();return t<0?this.rShiftTo(-t,e):this.lShiftTo(t,e),e},r.prototype.shiftRight=function(t){var e=J();return t<0?this.lShiftTo(-t,e):this.rShiftTo(t,e),e},r.prototype.getLowestSetBit=function(){for(var t=0;t<this.t;++t)if(this[t]!=0)return t*this.DB+od(this[t]);return this.s<0?this.t*this.DB:-1},r.prototype.bitCount=function(){for(var t=0,e=this.s&this.DM,n=0;n<this.t;++n)t+=ad(this[n]^e);return t},r.prototype.testBit=function(t){var e=Math.floor(t/this.DB);return e>=this.t?this.s!=0:(this[e]&1<<t%this.DB)!=0},r.prototype.setBit=function(t){return this.changeBit(t,Ce)},r.prototype.clearBit=function(t){return this.changeBit(t,wi)},r.prototype.flipBit=function(t){return this.changeBit(t,_i)},r.prototype.add=function(t){var e=J();return this.addTo(t,e),e},r.prototype.subtract=function(t){var e=J();return this.subTo(t,e),e},r.prototype.multiply=function(t){var e=J();return this.multiplyTo(t,e),e},r.prototype.divide=function(t){var e=J();return this.divRemTo(t,e,null),e},r.prototype.remainder=function(t){var e=J();return this.divRemTo(t,null,e),e},r.prototype.divideAndRemainder=function(t){var e=J(),n=J();return this.divRemTo(t,e,n),[e,n]},r.prototype.modPow=function(t,e){var n=t.bitLength(),i,s=$t(1),o;if(n<=0)return s;n<18?i=1:n<48?i=3:n<144?i=4:n<768?i=5:i=6,n<8?o=new Ri(e):e.isEven()?o=new gd(e):o=new xi(e);var u=[],l=3,a=i-1,c=(1<<i)-1;if(u[1]=o.convert(this),i>1){var f=J();for(o.sqrTo(u[1],f);l<=c;)u[l]=J(),o.mulTo(f,u[l-2],u[l]),l+=2}var h=t.t-1,p,d=!0,g=J(),b;for(n=Be(t[h])-1;h>=0;){for(n>=a?p=t[h]>>n-a&c:(p=(t[h]&(1<<n+1)-1)<<a-n,h>0&&(p|=t[h-1]>>this.DB+n-a)),l=i;(p&1)==0;)p>>=1,--l;if((n-=l)<0&&(n+=this.DB,--h),d)u[p].copyTo(s),d=!1;else{for(;l>1;)o.sqrTo(s,g),o.sqrTo(g,s),l-=2;l>0?o.sqrTo(s,g):(b=s,s=g,g=b),o.mulTo(g,u[p],s)}for(;h>=0&&(t[h]&1<<n)==0;)o.sqrTo(s,g),b=s,s=g,g=b,--n<0&&(n=this.DB-1,--h)}return o.revert(s)},r.prototype.modInverse=function(t){var e=t.isEven();if(this.isEven()&&e||t.signum()==0)return r.ZERO;for(var n=t.clone(),i=this.clone(),s=$t(1),o=$t(0),u=$t(0),l=$t(1);n.signum()!=0;){for(;n.isEven();)n.rShiftTo(1,n),e?((!s.isEven()||!o.isEven())&&(s.addTo(this,s),o.subTo(t,o)),s.rShiftTo(1,s)):o.isEven()||o.subTo(t,o),o.rShiftTo(1,o);for(;i.isEven();)i.rShiftTo(1,i),e?((!u.isEven()||!l.isEven())&&(u.addTo(this,u),l.subTo(t,l)),u.rShiftTo(1,u)):l.isEven()||l.subTo(t,l),l.rShiftTo(1,l);n.compareTo(i)>=0?(n.subTo(i,n),e&&s.subTo(u,s),o.subTo(l,o)):(i.subTo(n,i),e&&u.subTo(s,u),l.subTo(o,l))}if(i.compareTo(r.ONE)!=0)return r.ZERO;if(l.compareTo(t)>=0)return l.subtract(t);if(l.signum()<0)l.addTo(t,l);else return l;return l.signum()<0?l.add(t):l},r.prototype.pow=function(t){return this.exp(t,new dd)},r.prototype.gcd=function(t){var e=this.s<0?this.negate():this.clone(),n=t.s<0?t.negate():t.clone();if(e.compareTo(n)<0){var i=e;e=n,n=i}var s=e.getLowestSetBit(),o=n.getLowestSetBit();if(o<0)return e;for(s<o&&(o=s),o>0&&(e.rShiftTo(o,e),n.rShiftTo(o,n));e.signum()>0;)(s=e.getLowestSetBit())>0&&e.rShiftTo(s,e),(s=n.getLowestSetBit())>0&&n.rShiftTo(s,n),e.compareTo(n)>=0?(e.subTo(n,e),e.rShiftTo(1,e)):(n.subTo(e,n),n.rShiftTo(1,n));return o>0&&n.lShiftTo(o,n),n},r.prototype.isProbablePrime=function(t){var e,n=this.abs();if(n.t==1&&n[0]<=st[st.length-1]){for(e=0;e<st.length;++e)if(n[0]==st[e])return!0;return!1}if(n.isEven())return!1;for(e=1;e<st.length;){for(var i=st[e],s=e+1;s<st.length&&i<pd;)i*=st[s++];for(i=n.modInt(i);e<s;)if(i%st[e++]==0)return!1}return n.millerRabin(t)},r.prototype.copyTo=function(t){for(var e=this.t-1;e>=0;--e)t[e]=this[e];t.t=this.t,t.s=this.s},r.prototype.fromInt=function(t){this.t=1,this.s=t<0?-1:0,t>0?this[0]=t:t<-1?this[0]=t+this.DV:this.t=0},r.prototype.fromString=function(t,e){var n;if(e==16)n=4;else if(e==8)n=3;else if(e==256)n=8;else if(e==2)n=1;else if(e==32)n=5;else if(e==4)n=2;else{this.fromRadix(t,e);return}this.t=0,this.s=0;for(var i=t.length,s=!1,o=0;--i>=0;){var u=n==8?+t[i]&255:Oi(t,i);if(u<0){t.charAt(i)=="-"&&(s=!0);continue}s=!1,o==0?this[this.t++]=u:o+n>this.DB?(this[this.t-1]|=(u&(1<<this.DB-o)-1)<<o,this[this.t++]=u>>this.DB-o):this[this.t-1]|=u<<o,o+=n,o>=this.DB&&(o-=this.DB)}n==8&&(+t[0]&128)!=0&&(this.s=-1,o>0&&(this[this.t-1]|=(1<<this.DB-o)-1<<o)),this.clamp(),s&&r.ZERO.subTo(this,this)},r.prototype.clamp=function(){for(var t=this.s&this.DM;this.t>0&&this[this.t-1]==t;)--this.t},r.prototype.dlShiftTo=function(t,e){var n;for(n=this.t-1;n>=0;--n)e[n+t]=this[n];for(n=t-1;n>=0;--n)e[n]=0;e.t=this.t+t,e.s=this.s},r.prototype.drShiftTo=function(t,e){for(var n=t;n<this.t;++n)e[n-t]=this[n];e.t=Math.max(this.t-t,0),e.s=this.s},r.prototype.lShiftTo=function(t,e){for(var n=t%this.DB,i=this.DB-n,s=(1<<i)-1,o=Math.floor(t/this.DB),u=this.s<<n&this.DM,l=this.t-1;l>=0;--l)e[l+o+1]=this[l]>>i|u,u=(this[l]&s)<<n;for(var l=o-1;l>=0;--l)e[l]=0;e[o]=u,e.t=this.t+o+1,e.s=this.s,e.clamp()},r.prototype.rShiftTo=function(t,e){e.s=this.s;var n=Math.floor(t/this.DB);if(n>=this.t){e.t=0;return}var i=t%this.DB,s=this.DB-i,o=(1<<i)-1;e[0]=this[n]>>i;for(var u=n+1;u<this.t;++u)e[u-n-1]|=(this[u]&o)<<s,e[u-n]=this[u]>>i;i>0&&(e[this.t-n-1]|=(this.s&o)<<s),e.t=this.t-n,e.clamp()},r.prototype.subTo=function(t,e){for(var n=0,i=0,s=Math.min(t.t,this.t);n<s;)i+=this[n]-t[n],e[n++]=i&this.DM,i>>=this.DB;if(t.t<this.t){for(i-=t.s;n<this.t;)i+=this[n],e[n++]=i&this.DM,i>>=this.DB;i+=this.s}else{for(i+=this.s;n<t.t;)i-=t[n],e[n++]=i&this.DM,i>>=this.DB;i-=t.s}e.s=i<0?-1:0,i<-1?e[n++]=this.DV+i:i>0&&(e[n++]=i),e.t=n,e.clamp()},r.prototype.multiplyTo=function(t,e){var n=this.abs(),i=t.abs(),s=n.t;for(e.t=s+i.t;--s>=0;)e[s]=0;for(s=0;s<i.t;++s)e[s+n.t]=n.am(0,i[s],e,s,0,n.t);e.s=0,e.clamp(),this.s!=t.s&&r.ZERO.subTo(e,e)},r.prototype.squareTo=function(t){for(var e=this.abs(),n=t.t=2*e.t;--n>=0;)t[n]=0;for(n=0;n<e.t-1;++n){var i=e.am(n,e[n],t,2*n,0,1);(t[n+e.t]+=e.am(n+1,2*e[n],t,2*n+1,i,e.t-n-1))>=e.DV&&(t[n+e.t]-=e.DV,t[n+e.t+1]=1)}t.t>0&&(t[t.t-1]+=e.am(n,e[n],t,2*n,0,1)),t.s=0,t.clamp()},r.prototype.divRemTo=function(t,e,n){var i=t.abs();if(!(i.t<=0)){var s=this.abs();if(s.t<i.t){e!=null&&e.fromInt(0),n!=null&&this.copyTo(n);return}n==null&&(n=J());var o=J(),u=this.s,l=t.s,a=this.DB-Be(i[i.t-1]);a>0?(i.lShiftTo(a,o),s.lShiftTo(a,n)):(i.copyTo(o),s.copyTo(n));var c=o.t,f=o[c-1];if(f!=0){var h=f*(1<<this.F1)+(c>1?o[c-2]>>this.F2:0),p=this.FV/h,d=(1<<this.F1)/h,g=1<<this.F2,b=n.t,w=b-c,m=e==null?J():e;for(o.dlShiftTo(w,m),n.compareTo(m)>=0&&(n[n.t++]=1,n.subTo(m,n)),r.ONE.dlShiftTo(c,m),m.subTo(o,o);o.t<c;)o[o.t++]=0;for(;--w>=0;){var y=n[--b]==f?this.DM:Math.floor(n[b]*p+(n[b-1]+g)*d);if((n[b]+=o.am(0,y,n,w,0,c))<y)for(o.dlShiftTo(w,m),n.subTo(m,n);n[b]<--y;)n.subTo(m,n)}e!=null&&(n.drShiftTo(c,e),u!=l&&r.ZERO.subTo(e,e)),n.t=c,n.clamp(),a>0&&n.rShiftTo(a,n),u<0&&r.ZERO.subTo(n,n)}}},r.prototype.invDigit=function(){if(this.t<1)return 0;var t=this[0];if((t&1)==0)return 0;var e=t&3;return e=e*(2-(t&15)*e)&15,e=e*(2-(t&255)*e)&255,e=e*(2-((t&65535)*e&65535))&65535,e=e*(2-t*e%this.DV)%this.DV,e>0?this.DV-e:-e},r.prototype.isEven=function(){return(this.t>0?this[0]&1:this.s)==0},r.prototype.exp=function(t,e){if(t>4294967295||t<1)return r.ONE;var n=J(),i=J(),s=e.convert(this),o=Be(t)-1;for(s.copyTo(n);--o>=0;)if(e.sqrTo(n,i),(t&1<<o)>0)e.mulTo(i,s,n);else{var u=n;n=i,i=u}return e.revert(n)},r.prototype.chunkSize=function(t){return Math.floor(Math.LN2*this.DB/Math.log(t))},r.prototype.toRadix=function(t){if(t==null&&(t=10),this.signum()==0||t<2||t>36)return"0";var e=this.chunkSize(t),n=Math.pow(t,e),i=$t(n),s=J(),o=J(),u="";for(this.divRemTo(i,s,o);s.signum()>0;)u=(n+o.intValue()).toString(t).substring(1)+u,s.divRemTo(i,s,o);return o.intValue().toString(t)+u},r.prototype.fromRadix=function(t,e){this.fromInt(0),e==null&&(e=10);for(var n=this.chunkSize(e),i=Math.pow(e,n),s=!1,o=0,u=0,l=0;l<t.length;++l){var a=Oi(t,l);if(a<0){t.charAt(l)=="-"&&this.signum()==0&&(s=!0);continue}u=e*u+a,++o>=n&&(this.dMultiply(i),this.dAddOffset(u,0),o=0,u=0)}o>0&&(this.dMultiply(Math.pow(e,o)),this.dAddOffset(u,0)),s&&r.ZERO.subTo(this,this)},r.prototype.fromNumber=function(t,e,n){if(typeof e=="number")if(t<2)this.fromInt(1);else for(this.fromNumber(t,n),this.testBit(t-1)||this.bitwiseTo(r.ONE.shiftLeft(t-1),Ce,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(e);)this.dAddOffset(2,0),this.bitLength()>t&&this.subTo(r.ONE.shiftLeft(t-1),this);else{var i=[],s=t&7;i.length=(t>>3)+1,e.nextBytes(i),s>0?i[0]&=(1<<s)-1:i[0]=0,this.fromString(i,256)}},r.prototype.bitwiseTo=function(t,e,n){var i,s,o=Math.min(t.t,this.t);for(i=0;i<o;++i)n[i]=e(this[i],t[i]);if(t.t<this.t){for(s=t.s&this.DM,i=o;i<this.t;++i)n[i]=e(this[i],s);n.t=this.t}else{for(s=this.s&this.DM,i=o;i<t.t;++i)n[i]=e(s,t[i]);n.t=t.t}n.s=e(this.s,t.s),n.clamp()},r.prototype.changeBit=function(t,e){var n=r.ONE.shiftLeft(t);return this.bitwiseTo(n,e,n),n},r.prototype.addTo=function(t,e){for(var n=0,i=0,s=Math.min(t.t,this.t);n<s;)i+=this[n]+t[n],e[n++]=i&this.DM,i>>=this.DB;if(t.t<this.t){for(i+=t.s;n<this.t;)i+=this[n],e[n++]=i&this.DM,i>>=this.DB;i+=this.s}else{for(i+=this.s;n<t.t;)i+=t[n],e[n++]=i&this.DM,i>>=this.DB;i+=t.s}e.s=i<0?-1:0,i>0?e[n++]=i:i<-1&&(e[n++]=this.DV+i),e.t=n,e.clamp()},r.prototype.dMultiply=function(t){this[this.t]=this.am(0,t-1,this,0,0,this.t),++this.t,this.clamp()},r.prototype.dAddOffset=function(t,e){if(t!=0){for(;this.t<=e;)this[this.t++]=0;for(this[e]+=t;this[e]>=this.DV;)this[e]-=this.DV,++e>=this.t&&(this[this.t++]=0),++this[e]}},r.prototype.multiplyLowerTo=function(t,e,n){var i=Math.min(this.t+t.t,e);for(n.s=0,n.t=i;i>0;)n[--i]=0;for(var s=n.t-this.t;i<s;++i)n[i+this.t]=this.am(0,t[i],n,i,0,this.t);for(var s=Math.min(t.t,e);i<s;++i)this.am(0,t[i],n,i,0,e-i);n.clamp()},r.prototype.multiplyUpperTo=function(t,e,n){--e;var i=n.t=this.t+t.t-e;for(n.s=0;--i>=0;)n[i]=0;for(i=Math.max(e-this.t,0);i<t.t;++i)n[this.t+i-e]=this.am(e-i,t[i],n,0,0,this.t+i-e);n.clamp(),n.drShiftTo(1,n)},r.prototype.modInt=function(t){if(t<=0)return 0;var e=this.DV%t,n=this.s<0?t-1:0;if(this.t>0)if(e==0)n=this[0]%t;else for(var i=this.t-1;i>=0;--i)n=(e*n+this[i])%t;return n},r.prototype.millerRabin=function(t){var e=this.subtract(r.ONE),n=e.getLowestSetBit();if(n<=0)return!1;var i=e.shiftRight(n);t=t+1>>1,t>st.length&&(t=st.length);for(var s=J(),o=0;o<t;++o){s.fromInt(st[Math.floor(Math.random()*st.length)]);var u=s.modPow(i,this);if(u.compareTo(r.ONE)!=0&&u.compareTo(e)!=0){for(var l=1;l++<n&&u.compareTo(e)!=0;)if(u=u.modPowInt(2,this),u.compareTo(r.ONE)==0)return!1;if(u.compareTo(e)!=0)return!1}}return!0},r.prototype.square=function(){var t=J();return this.squareTo(t),t},r.prototype.gcda=function(t,e){var n=this.s<0?this.negate():this.clone(),i=t.s<0?t.negate():t.clone();if(n.compareTo(i)<0){var s=n;n=i,i=s}var o=n.getLowestSetBit(),u=i.getLowestSetBit();if(u<0){e(n);return}o<u&&(u=o),u>0&&(n.rShiftTo(u,n),i.rShiftTo(u,i));var l=function(){(o=n.getLowestSetBit())>0&&n.rShiftTo(o,n),(o=i.getLowestSetBit())>0&&i.rShiftTo(o,i),n.compareTo(i)>=0?(n.subTo(i,n),n.rShiftTo(1,n)):(i.subTo(n,i),i.rShiftTo(1,i)),n.signum()>0?setTimeout(l,0):(u>0&&i.lShiftTo(u,i),setTimeout(function(){e(i)},0))};setTimeout(l,10)},r.prototype.fromNumberAsync=function(t,e,n,i){if(typeof e=="number")if(t<2)this.fromInt(1);else{this.fromNumber(t,n),this.testBit(t-1)||this.bitwiseTo(r.ONE.shiftLeft(t-1),Ce,this),this.isEven()&&this.dAddOffset(1,0);var s=this,o=function(){s.dAddOffset(2,0),s.bitLength()>t&&s.subTo(r.ONE.shiftLeft(t-1),s),s.isProbablePrime(e)?setTimeout(function(){i()},0):setTimeout(o,0)};setTimeout(o,0)}else{var u=[],l=t&7;u.length=(t>>3)+1,e.nextBytes(u),l>0?u[0]&=(1<<l)-1:u[0]=0,this.fromString(u,256)}},r})(),dd=(function(){function r(){}return r.prototype.convert=function(t){return t},r.prototype.revert=function(t){return t},r.prototype.mulTo=function(t,e,n){t.multiplyTo(e,n)},r.prototype.sqrTo=function(t,e){t.squareTo(e)},r})(),Ri=(function(){function r(t){this.m=t}return r.prototype.convert=function(t){return t.s<0||t.compareTo(this.m)>=0?t.mod(this.m):t},r.prototype.revert=function(t){return t},r.prototype.reduce=function(t){t.divRemTo(this.m,null,t)},r.prototype.mulTo=function(t,e,n){t.multiplyTo(e,n),this.reduce(n)},r.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)},r})(),xi=(function(){function r(t){this.m=t,this.mp=t.invDigit(),this.mpl=this.mp&32767,this.mph=this.mp>>15,this.um=(1<<t.DB-15)-1,this.mt2=2*t.t}return r.prototype.convert=function(t){var e=J();return t.abs().dlShiftTo(this.m.t,e),e.divRemTo(this.m,null,e),t.s<0&&e.compareTo(W.ZERO)>0&&this.m.subTo(e,e),e},r.prototype.revert=function(t){var e=J();return t.copyTo(e),this.reduce(e),e},r.prototype.reduce=function(t){for(;t.t<=this.mt2;)t[t.t++]=0;for(var e=0;e<this.m.t;++e){var n=t[e]&32767,i=n*this.mpl+((n*this.mph+(t[e]>>15)*this.mpl&this.um)<<15)&t.DM;for(n=e+this.m.t,t[n]+=this.m.am(0,i,t,e,0,this.m.t);t[n]>=t.DV;)t[n]-=t.DV,t[++n]++}t.clamp(),t.drShiftTo(this.m.t,t),t.compareTo(this.m)>=0&&t.subTo(this.m,t)},r.prototype.mulTo=function(t,e,n){t.multiplyTo(e,n),this.reduce(n)},r.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)},r})(),gd=(function(){function r(t){this.m=t,this.r2=J(),this.q3=J(),W.ONE.dlShiftTo(2*t.t,this.r2),this.mu=this.r2.divide(t)}return r.prototype.convert=function(t){if(t.s<0||t.t>2*this.m.t)return t.mod(this.m);if(t.compareTo(this.m)<0)return t;var e=J();return t.copyTo(e),this.reduce(e),e},r.prototype.revert=function(t){return t},r.prototype.reduce=function(t){for(t.drShiftTo(this.m.t-1,this.r2),t.t>this.m.t+1&&(t.t=this.m.t+1,t.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);t.compareTo(this.r2)<0;)t.dAddOffset(1,this.m.t+1);for(t.subTo(this.r2,t);t.compareTo(this.m)>=0;)t.subTo(this.m,t)},r.prototype.mulTo=function(t,e,n){t.multiplyTo(e,n),this.reduce(n)},r.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)},r})();function J(){return new W(null)}function Z(r,t){return new W(r,t)}var Ai=typeof navigator!="undefined";Ai&&Ti&&navigator.appName=="Microsoft Internet Explorer"?(W.prototype.am=function(t,e,n,i,s,o){for(var u=e&32767,l=e>>15;--o>=0;){var a=this[t]&32767,c=this[t++]>>15,f=l*a+c*u;a=u*a+((f&32767)<<15)+n[i]+(s&1073741823),s=(a>>>30)+(f>>>15)+l*c+(s>>>30),n[i++]=a&1073741823}return s},Ct=30):Ai&&Ti&&navigator.appName!="Netscape"?(W.prototype.am=function(t,e,n,i,s,o){for(;--o>=0;){var u=e*this[t++]+n[i]+s;s=Math.floor(u/67108864),n[i++]=u&67108863}return s},Ct=26):(W.prototype.am=function(t,e,n,i,s,o){for(var u=e&16383,l=e>>14;--o>=0;){var a=this[t]&16383,c=this[t++]>>14,f=l*a+c*u;a=u*a+((f&16383)<<14)+n[i]+s,s=(a>>28)+(f>>14)+l*c,n[i++]=a&268435455}return s},Ct=28);W.prototype.DB=Ct;W.prototype.DM=(1<<Ct)-1;W.prototype.DV=1<<Ct;var bn=52;W.prototype.FV=Math.pow(2,bn);W.prototype.F1=bn-Ct;W.prototype.F2=2*Ct-bn;var nr=[],ue,ht;ue=48;for(ht=0;ht<=9;++ht)nr[ue++]=ht;ue=97;for(ht=10;ht<36;++ht)nr[ue++]=ht;ue=65;for(ht=10;ht<36;++ht)nr[ue++]=ht;function Oi(r,t){var e=nr[r.charCodeAt(t)];return e==null?-1:e}function $t(r){var t=J();return t.fromInt(r),t}function Be(r){var t=1,e;return(e=r>>>16)!=0&&(r=e,t+=16),(e=r>>8)!=0&&(r=e,t+=8),(e=r>>4)!=0&&(r=e,t+=4),(e=r>>2)!=0&&(r=e,t+=2),(e=r>>1)!=0&&(r=e,t+=1),t}W.ZERO=$t(0);W.ONE=$t(1);var vd=(function(){function r(){this.i=0,this.j=0,this.S=[]}return r.prototype.init=function(t){var e,n,i;for(e=0;e<256;++e)this.S[e]=e;for(n=0,e=0;e<256;++e)n=n+this.S[e]+t[e%t.length]&255,i=this.S[e],this.S[e]=this.S[n],this.S[n]=i;this.i=0,this.j=0},r.prototype.next=function(){var t;return this.i=this.i+1&255,this.j=this.j+this.S[this.i]&255,t=this.S[this.i],this.S[this.i]=this.S[this.j],this.S[this.j]=t,this.S[t+this.S[this.i]&255]},r})();function md(){return new vd}var go=256,je,Dt=null,gt;if(Dt==null){Dt=[],gt=0;var Pe=void 0;if(typeof window!="undefined"&&self.crypto&&self.crypto.getRandomValues){var Tr=new Uint32Array(256);for(self.crypto.getRandomValues(Tr),Pe=0;Pe<Tr.length;++Pe)Dt[gt++]=Tr[Pe]&255}var Ne=0,Ie=function(r){if(Ne=Ne||0,Ne>=256||gt>=go){self.removeEventListener?self.removeEventListener("mousemove",Ie,!1):self.detachEvent&&self.detachEvent("onmousemove",Ie);return}try{var t=r.x+r.y;Dt[gt++]=t&255,Ne+=1}catch(e){}};typeof window!="undefined"&&(self.addEventListener?self.addEventListener("mousemove",Ie,!1):self.attachEvent&&self.attachEvent("onmousemove",Ie))}function yd(){if(je==null){for(je=md();gt<go;){var r=Math.floor(65536*Math.random());Dt[gt++]=r&255}for(je.init(Dt),gt=0;gt<Dt.length;++gt)Dt[gt]=0;gt=0}return je.next()}var Ge=(function(){function r(){}return r.prototype.nextBytes=function(t){for(var e=0;e<t.length;++e)t[e]=yd()},r})();function Gr(r){return _d(Od(bd(r),r.length*8))}function $i(r){for(var t="0123456789abcdef",e="",n=0;n<r.length;n++){var i=r.charCodeAt(n);e+=t.charAt(i>>>4&15)+t.charAt(i&15)}return e}function bd(r){for(var t=Array(r.length>>2),e=0;e<t.length;e++)t[e]=0;for(var e=0;e<r.length*8;e+=8)t[e>>5]|=(r.charCodeAt(e/8)&255)<<24-e%32;return t}function _d(r){for(var t="",e=0;e<r.length*32;e+=8)t+=String.fromCharCode(r[e>>5]>>>24-e%32&255);return t}function _t(r,t){return r>>>t|r<<32-t}function vo(r,t){return r>>>t}function wd(r,t,e){return r&t^~r&e}function Ed(r,t,e){return r&t^r&e^t&e}function Sd(r){return _t(r,2)^_t(r,13)^_t(r,22)}function Td(r){return _t(r,6)^_t(r,11)^_t(r,25)}function Rd(r){return _t(r,7)^_t(r,18)^vo(r,3)}function xd(r){return _t(r,17)^_t(r,19)^vo(r,10)}var Ad=new Array(1116352408,1899447441,-1245643825,-373957723,961987163,1508970993,-1841331548,-1424204075,-670586216,310598401,607225278,1426881987,1925078388,-2132889090,-1680079193,-1046744716,-459576895,-272742522,264347078,604807628,770255983,1249150122,1555081692,1996064986,-1740746414,-1473132947,-1341970488,-1084653625,-958395405,-710438585,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,-2117940946,-1838011259,-1564481375,-1474664885,-1035236496,-949202525,-778901479,-694614492,-200395387,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,-2067236844,-1933114872,-1866530822,-1538233109,-1090935817,-965641998);function Od(r,t){var e=new Array(1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225),n=new Array(64),i,s,o,u,l,a,c,f,h,p,d,g;for(r[t>>5]|=128<<24-t%32,r[(t+64>>9<<4)+15]=t,h=0;h<r.length;h+=16){for(i=e[0],s=e[1],o=e[2],u=e[3],l=e[4],a=e[5],c=e[6],f=e[7],p=0;p<64;p++)p<16?n[p]=r[p+h]:n[p]=rt(rt(rt(xd(n[p-2]),n[p-7]),Rd(n[p-15])),n[p-16]),d=rt(rt(rt(rt(f,Td(l)),wd(l,a,c)),Ad[p]),n[p]),g=rt(Sd(i),Ed(i,s,o)),f=c,c=a,a=l,l=rt(u,d),u=o,o=s,s=i,i=rt(d,g);e[0]=rt(i,e[0]),e[1]=rt(s,e[1]),e[2]=rt(o,e[2]),e[3]=rt(u,e[3]),e[4]=rt(l,e[4]),e[5]=rt(a,e[5]),e[6]=rt(c,e[6]),e[7]=rt(f,e[7])}return e}function rt(r,t){var e=(r&65535)+(t&65535),n=(r>>16)+(t>>16)+(e>>16);return n<<16|e&65535}function $d(r,t){if(t<r.length+22)return console.error("Message too long for RSA"),null;for(var e=t-r.length-6,n="",i=0;i<e;i+=2)n+="ff";var s="0001"+n+"00"+r;return Z(s,16)}function Dd(r,t){if(t<r.length+11)return console.error("Message too long for RSA"),null;for(var e=[],n=r.length-1;n>=0&&t>0;){var i=r.charCodeAt(n--);i<128?e[--t]=i:i>127&&i<2048?(e[--t]=i&63|128,e[--t]=i>>6|192):(e[--t]=i&63|128,e[--t]=i>>6&63|128,e[--t]=i>>12|224)}e[--t]=0;for(var s=new Ge,o=[];t>2;){for(o[0]=0;o[0]==0;)s.nextBytes(o);e[--t]=o[0]}return e[--t]=2,e[--t]=0,new W(e)}function Di(r,t,e){for(var n="",i=0;n.length<t;)n+=e(String.fromCharCode.apply(String,r.concat([(i&4278190080)>>24,(i&16711680)>>16,(i&65280)>>8,i&255]))),i+=1;return n}var Cd=32;function Bd(r,t){var e=Cd,n=Gr;if(r.length+2*e+2>t)throw"Message too long for RSA";var i="",s;for(s=0;s<t-r.length-2*e-2;s+=1)i+="\0";var o=n("")+i+""+r,u=new Array(e);new Ge().nextBytes(u);var l=Di(u,o.length,n),a=[];for(s=0;s<o.length;s+=1)a[s]=o.charCodeAt(s)^l.charCodeAt(s);var c=Di(a,u.length,n),f=[0];for(s=0;s<u.length;s+=1)f[s+1]=u[s]^c.charCodeAt(s);return new W(f.concat(a))}var jd=(function(){function r(){this.n=null,this.e=0,this.d=null,this.p=null,this.q=null,this.dmp1=null,this.dmq1=null,this.coeff=null}return r.prototype.doPublic=function(t){return t.modPowInt(this.e,this.n)},r.prototype.doPrivate=function(t){if(this.p==null||this.q==null)return t.modPow(this.d,this.n);for(var e=t.mod(this.p).modPow(this.dmp1,this.p),n=t.mod(this.q).modPow(this.dmq1,this.q);e.compareTo(n)<0;)e=e.add(this.p);return e.subtract(n).multiply(this.coeff).mod(this.p).multiply(this.q).add(n)},r.prototype.setPublic=function(t,e){t!=null&&e!=null&&t.length>0&&e.length>0?(this.n=Z(t,16),this.e=parseInt(e,16)):console.error("Invalid RSA public key")},r.prototype.encrypt=function(t,e){typeof e=="undefined"&&(e=Dd);var n=this.n.bitLength()+7>>3,i=e(t,n);if(i==null)return null;var s=this.doPublic(i);if(s==null)return null;for(var o=s.toString(16),u=o.length,l=0;l<n*2-u;l++)o="0"+o;return o},r.prototype.setPrivate=function(t,e,n){t!=null&&e!=null&&t.length>0&&e.length>0?(this.n=Z(t,16),this.e=parseInt(e,16),this.d=Z(n,16)):console.error("Invalid RSA private key")},r.prototype.setPrivateEx=function(t,e,n,i,s,o,u,l){t!=null&&e!=null&&t.length>0&&e.length>0?(this.n=Z(t,16),this.e=parseInt(e,16),this.d=Z(n,16),this.p=Z(i,16),this.q=Z(s,16),this.dmp1=Z(o,16),this.dmq1=Z(u,16),this.coeff=Z(l,16)):console.error("Invalid RSA private key")},r.prototype.generate=function(t,e){var n=new Ge,i=t>>1;this.e=parseInt(e,16);for(var s=new W(e,16);;){for(;this.p=new W(t-i,1,n),!(this.p.subtract(W.ONE).gcd(s).compareTo(W.ONE)==0&&this.p.isProbablePrime(10)););for(;this.q=new W(i,1,n),!(this.q.subtract(W.ONE).gcd(s).compareTo(W.ONE)==0&&this.q.isProbablePrime(10)););if(this.p.compareTo(this.q)<=0){var o=this.p;this.p=this.q,this.q=o}var u=this.p.subtract(W.ONE),l=this.q.subtract(W.ONE),a=u.multiply(l);if(a.gcd(s).compareTo(W.ONE)==0){this.n=this.p.multiply(this.q),this.d=s.modInverse(a),this.dmp1=this.d.mod(u),this.dmq1=this.d.mod(l),this.coeff=this.q.modInverse(this.p);break}}},r.prototype.decrypt=function(t){var e=Z(t,16),n=this.doPrivate(e);return n==null?null:Pd(n,this.n.bitLength()+7>>3)},r.prototype.generateAsync=function(t,e,n){var i=new Ge,s=t>>1;this.e=parseInt(e,16);var o=new W(e,16),u=this,l=function(){var a=function(){if(u.p.compareTo(u.q)<=0){var h=u.p;u.p=u.q,u.q=h}var p=u.p.subtract(W.ONE),d=u.q.subtract(W.ONE),g=p.multiply(d);g.gcd(o).compareTo(W.ONE)==0?(u.n=u.p.multiply(u.q),u.d=o.modInverse(g),u.dmp1=u.d.mod(p),u.dmq1=u.d.mod(d),u.coeff=u.q.modInverse(u.p),setTimeout(function(){n()},0)):setTimeout(l,0)},c=function(){u.q=J(),u.q.fromNumberAsync(s,1,i,function(){u.q.subtract(W.ONE).gcda(o,function(h){h.compareTo(W.ONE)==0&&u.q.isProbablePrime(10)?setTimeout(a,0):setTimeout(c,0)})})},f=function(){u.p=J(),u.p.fromNumberAsync(t-s,1,i,function(){u.p.subtract(W.ONE).gcda(o,function(h){h.compareTo(W.ONE)==0&&u.p.isProbablePrime(10)?setTimeout(c,0):setTimeout(f,0)})})};setTimeout(f,0)};setTimeout(l,0)},r.prototype.sign=function(t,e,n){var i=Nd(n),s=i+e(t).toString(),o=this.n.bitLength()/4,u=$d(s,o);if(u==null)return null;var l=this.doPrivate(u);if(l==null)return null;for(var a=l.toString(16),c=a.length,f=0;f<o-c;f++)a="0"+a;return a},r.prototype.verify=function(t,e,n){var i=Z(e,16),s=this.doPublic(i);if(s==null)return null;var o=s.toString(16).replace(/^1f+00/,""),u=Id(o);return u==n(t).toString()},r})();function Pd(r,t){for(var e=r.toByteArray(),n=0;n<e.length&&e[n]==0;)++n;if(e.length-n!=t-1||e[n]!=2)return null;for(++n;e[n]!=0;)if(++n>=e.length)return null;for(var i="";++n<e.length;){var s=e[n]&255;s<128?i+=String.fromCharCode(s):s>191&&s<224?(i+=String.fromCharCode((s&31)<<6|e[n+1]&63),++n):(i+=String.fromCharCode((s&15)<<12|(e[n+1]&63)<<6|e[n+2]&63),n+=2)}return i}var ke={md2:"3020300c06082a864886f70d020205000410",md5:"3020300c06082a864886f70d020505000410",sha1:"3021300906052b0e03021a05000414",sha224:"302d300d06096086480165030402040500041c",sha256:"3031300d060960864801650304020105000420",sha384:"3041300d060960864801650304020205000430",sha512:"3051300d060960864801650304020305000440",ripemd160:"3021300906052b2403020105000414"};function Nd(r){return ke[r]||""}function Id(r){for(var t in ke)if(ke.hasOwnProperty(t)){var e=ke[t],n=e.length;if(r.substring(0,n)==e)return r.substring(n)}return r}function tt(r,t,e){if(!t||!r)throw new Error("extend failed, please check that all dependencies are included.");var n=function(){};n.prototype=t.prototype,r.prototype=new n,r.prototype.constructor=r,r.superclass=t.prototype,t.prototype.constructor==Object.prototype.constructor&&(t.prototype.constructor=t)}/**
|
|
26
|
+
`,this.sub!==null){t+=" ";for(var n=0,i=this.sub.length;n<i;++n)e+=this.sub[n].toPrettyString(t)}return e},r.prototype.posStart=function(){return this.stream.pos},r.prototype.posContent=function(){return this.stream.pos+this.header},r.prototype.posEnd=function(){return this.stream.pos+this.header+Math.abs(this.length)},r.prototype.toHexString=function(){return this.stream.hexDump(this.posStart(),this.posEnd(),!0)},r.decodeLength=function(t){var e=t.get(),n=e&127;if(n==e)return n;if(n>6)throw new Error("Length over 48 bits not supported at position "+(t.pos-1));if(n===0)return null;e=0;for(var i=0;i<n;++i)e=e*256+t.get();return e},r.prototype.getHexStringValue=function(){var t=this.toHexString(),e=this.header*2,n=this.length*2;return t.substring(e,e+n)},r.decode=function(t){var e;t instanceof Sr?e=t:e=new Sr(t,0);var n=new Sr(e),i=new Si(e),s=r.decodeLength(e),o=e.pos,u=o-n.pos,l=null,a=function(){var f=[];if(s!==null){for(var h=o+s;e.pos<h;)f[f.length]=r.decode(e);if(e.pos!=h)throw new Error("Content size is not correct for container starting at offset "+o)}else try{for(;;){var p=r.decode(e);if(p.tag.isEOC())break;f[f.length]=p}s=o-e.pos}catch(d){throw new Error("Exception while decoding undefined length content: "+d)}return f};if(i.tagConstructed)l=a();else if(i.isUniversal()&&(i.tagNumber==3||i.tagNumber==4))try{if(i.tagNumber==3&&e.get()!=0)throw new Error("BIT STRINGs with unused bits cannot encapsulate.");l=a();for(var c=0;c<l.length;++c)if(l[c].tag.isEOC())throw new Error("EOC is not supposed to be actual content.")}catch(f){l=null}if(l===null){if(s===null)throw new Error("We can't skip over an invalid tag with undefined length at offset "+o);e.pos=o+Math.abs(s)}return new r(n,u,s,i,l)},r})(),Si=(function(){function r(t){var e=t.get();if(this.tagClass=e>>6,this.tagConstructed=(e&32)!==0,this.tagNumber=e&31,this.tagNumber==31){var n=new me;do e=t.get(),n.mulAdd(128,e&127);while(e&128);this.tagNumber=n.simplify()}}return r.prototype.isUniversal=function(){return this.tagClass===0},r.prototype.isEOC=function(){return this.tagClass===0&&this.tagNumber===0},r})(),Ct,hd=0xdeadbeefcafe,Ti=(hd&16777215)==15715070,st=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997],pd=(1<<26)/st[st.length-1],W=(function(){function r(t,e,n){t!=null&&(typeof t=="number"?this.fromNumber(t,e,n):e==null&&typeof t!="string"?this.fromString(t,256):this.fromString(t,e))}return r.prototype.toString=function(t){if(this.s<0)return"-"+this.negate().toString(t);var e;if(t==16)e=4;else if(t==8)e=3;else if(t==2)e=1;else if(t==32)e=5;else if(t==4)e=2;else return this.toRadix(t);var n=(1<<e)-1,i,s=!1,o="",u=this.t,l=this.DB-u*this.DB%e;if(u-- >0)for(l<this.DB&&(i=this[u]>>l)>0&&(s=!0,o=Rt(i));u>=0;)l<e?(i=(this[u]&(1<<l)-1)<<e-l,i|=this[--u]>>(l+=this.DB-e)):(i=this[u]>>(l-=e)&n,l<=0&&(l+=this.DB,--u)),i>0&&(s=!0),s&&(o+=Rt(i));return s?o:"0"},r.prototype.negate=function(){var t=J();return r.ZERO.subTo(this,t),t},r.prototype.abs=function(){return this.s<0?this.negate():this},r.prototype.compareTo=function(t){var e=this.s-t.s;if(e!=0)return e;var n=this.t;if(e=n-t.t,e!=0)return this.s<0?-e:e;for(;--n>=0;)if((e=this[n]-t[n])!=0)return e;return 0},r.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+Be(this[this.t-1]^this.s&this.DM)},r.prototype.mod=function(t){var e=J();return this.abs().divRemTo(t,null,e),this.s<0&&e.compareTo(r.ZERO)>0&&t.subTo(e,e),e},r.prototype.modPowInt=function(t,e){var n;return t<256||e.isEven()?n=new Ri(e):n=new xi(e),this.exp(t,n)},r.prototype.clone=function(){var t=J();return this.copyTo(t),t},r.prototype.intValue=function(){if(this.s<0){if(this.t==1)return this[0]-this.DV;if(this.t==0)return-1}else{if(this.t==1)return this[0];if(this.t==0)return 0}return(this[1]&(1<<32-this.DB)-1)<<this.DB|this[0]},r.prototype.byteValue=function(){return this.t==0?this.s:this[0]<<24>>24},r.prototype.shortValue=function(){return this.t==0?this.s:this[0]<<16>>16},r.prototype.signum=function(){return this.s<0?-1:this.t<=0||this.t==1&&this[0]<=0?0:1},r.prototype.toByteArray=function(){var t=this.t,e=[];e[0]=this.s;var n=this.DB-t*this.DB%8,i,s=0;if(t-- >0)for(n<this.DB&&(i=this[t]>>n)!=(this.s&this.DM)>>n&&(e[s++]=i|this.s<<this.DB-n);t>=0;)n<8?(i=(this[t]&(1<<n)-1)<<8-n,i|=this[--t]>>(n+=this.DB-8)):(i=this[t]>>(n-=8)&255,n<=0&&(n+=this.DB,--t)),(i&128)!=0&&(i|=-256),s==0&&(this.s&128)!=(i&128)&&++s,(s>0||i!=this.s)&&(e[s++]=i);return e},r.prototype.equals=function(t){return this.compareTo(t)==0},r.prototype.min=function(t){return this.compareTo(t)<0?this:t},r.prototype.max=function(t){return this.compareTo(t)>0?this:t},r.prototype.and=function(t){var e=J();return this.bitwiseTo(t,sd,e),e},r.prototype.or=function(t){var e=J();return this.bitwiseTo(t,Ce,e),e},r.prototype.xor=function(t){var e=J();return this.bitwiseTo(t,_i,e),e},r.prototype.andNot=function(t){var e=J();return this.bitwiseTo(t,wi,e),e},r.prototype.not=function(){for(var t=J(),e=0;e<this.t;++e)t[e]=this.DM&~this[e];return t.t=this.t,t.s=~this.s,t},r.prototype.shiftLeft=function(t){var e=J();return t<0?this.rShiftTo(-t,e):this.lShiftTo(t,e),e},r.prototype.shiftRight=function(t){var e=J();return t<0?this.lShiftTo(-t,e):this.rShiftTo(t,e),e},r.prototype.getLowestSetBit=function(){for(var t=0;t<this.t;++t)if(this[t]!=0)return t*this.DB+od(this[t]);return this.s<0?this.t*this.DB:-1},r.prototype.bitCount=function(){for(var t=0,e=this.s&this.DM,n=0;n<this.t;++n)t+=ad(this[n]^e);return t},r.prototype.testBit=function(t){var e=Math.floor(t/this.DB);return e>=this.t?this.s!=0:(this[e]&1<<t%this.DB)!=0},r.prototype.setBit=function(t){return this.changeBit(t,Ce)},r.prototype.clearBit=function(t){return this.changeBit(t,wi)},r.prototype.flipBit=function(t){return this.changeBit(t,_i)},r.prototype.add=function(t){var e=J();return this.addTo(t,e),e},r.prototype.subtract=function(t){var e=J();return this.subTo(t,e),e},r.prototype.multiply=function(t){var e=J();return this.multiplyTo(t,e),e},r.prototype.divide=function(t){var e=J();return this.divRemTo(t,e,null),e},r.prototype.remainder=function(t){var e=J();return this.divRemTo(t,null,e),e},r.prototype.divideAndRemainder=function(t){var e=J(),n=J();return this.divRemTo(t,e,n),[e,n]},r.prototype.modPow=function(t,e){var n=t.bitLength(),i,s=$t(1),o;if(n<=0)return s;n<18?i=1:n<48?i=3:n<144?i=4:n<768?i=5:i=6,n<8?o=new Ri(e):e.isEven()?o=new gd(e):o=new xi(e);var u=[],l=3,a=i-1,c=(1<<i)-1;if(u[1]=o.convert(this),i>1){var f=J();for(o.sqrTo(u[1],f);l<=c;)u[l]=J(),o.mulTo(f,u[l-2],u[l]),l+=2}var h=t.t-1,p,d=!0,g=J(),y;for(n=Be(t[h])-1;h>=0;){for(n>=a?p=t[h]>>n-a&c:(p=(t[h]&(1<<n+1)-1)<<a-n,h>0&&(p|=t[h-1]>>this.DB+n-a)),l=i;(p&1)==0;)p>>=1,--l;if((n-=l)<0&&(n+=this.DB,--h),d)u[p].copyTo(s),d=!1;else{for(;l>1;)o.sqrTo(s,g),o.sqrTo(g,s),l-=2;l>0?o.sqrTo(s,g):(y=s,s=g,g=y),o.mulTo(g,u[p],s)}for(;h>=0&&(t[h]&1<<n)==0;)o.sqrTo(s,g),y=s,s=g,g=y,--n<0&&(n=this.DB-1,--h)}return o.revert(s)},r.prototype.modInverse=function(t){var e=t.isEven();if(this.isEven()&&e||t.signum()==0)return r.ZERO;for(var n=t.clone(),i=this.clone(),s=$t(1),o=$t(0),u=$t(0),l=$t(1);n.signum()!=0;){for(;n.isEven();)n.rShiftTo(1,n),e?((!s.isEven()||!o.isEven())&&(s.addTo(this,s),o.subTo(t,o)),s.rShiftTo(1,s)):o.isEven()||o.subTo(t,o),o.rShiftTo(1,o);for(;i.isEven();)i.rShiftTo(1,i),e?((!u.isEven()||!l.isEven())&&(u.addTo(this,u),l.subTo(t,l)),u.rShiftTo(1,u)):l.isEven()||l.subTo(t,l),l.rShiftTo(1,l);n.compareTo(i)>=0?(n.subTo(i,n),e&&s.subTo(u,s),o.subTo(l,o)):(i.subTo(n,i),e&&u.subTo(s,u),l.subTo(o,l))}if(i.compareTo(r.ONE)!=0)return r.ZERO;if(l.compareTo(t)>=0)return l.subtract(t);if(l.signum()<0)l.addTo(t,l);else return l;return l.signum()<0?l.add(t):l},r.prototype.pow=function(t){return this.exp(t,new dd)},r.prototype.gcd=function(t){var e=this.s<0?this.negate():this.clone(),n=t.s<0?t.negate():t.clone();if(e.compareTo(n)<0){var i=e;e=n,n=i}var s=e.getLowestSetBit(),o=n.getLowestSetBit();if(o<0)return e;for(s<o&&(o=s),o>0&&(e.rShiftTo(o,e),n.rShiftTo(o,n));e.signum()>0;)(s=e.getLowestSetBit())>0&&e.rShiftTo(s,e),(s=n.getLowestSetBit())>0&&n.rShiftTo(s,n),e.compareTo(n)>=0?(e.subTo(n,e),e.rShiftTo(1,e)):(n.subTo(e,n),n.rShiftTo(1,n));return o>0&&n.lShiftTo(o,n),n},r.prototype.isProbablePrime=function(t){var e,n=this.abs();if(n.t==1&&n[0]<=st[st.length-1]){for(e=0;e<st.length;++e)if(n[0]==st[e])return!0;return!1}if(n.isEven())return!1;for(e=1;e<st.length;){for(var i=st[e],s=e+1;s<st.length&&i<pd;)i*=st[s++];for(i=n.modInt(i);e<s;)if(i%st[e++]==0)return!1}return n.millerRabin(t)},r.prototype.copyTo=function(t){for(var e=this.t-1;e>=0;--e)t[e]=this[e];t.t=this.t,t.s=this.s},r.prototype.fromInt=function(t){this.t=1,this.s=t<0?-1:0,t>0?this[0]=t:t<-1?this[0]=t+this.DV:this.t=0},r.prototype.fromString=function(t,e){var n;if(e==16)n=4;else if(e==8)n=3;else if(e==256)n=8;else if(e==2)n=1;else if(e==32)n=5;else if(e==4)n=2;else{this.fromRadix(t,e);return}this.t=0,this.s=0;for(var i=t.length,s=!1,o=0;--i>=0;){var u=n==8?+t[i]&255:Oi(t,i);if(u<0){t.charAt(i)=="-"&&(s=!0);continue}s=!1,o==0?this[this.t++]=u:o+n>this.DB?(this[this.t-1]|=(u&(1<<this.DB-o)-1)<<o,this[this.t++]=u>>this.DB-o):this[this.t-1]|=u<<o,o+=n,o>=this.DB&&(o-=this.DB)}n==8&&(+t[0]&128)!=0&&(this.s=-1,o>0&&(this[this.t-1]|=(1<<this.DB-o)-1<<o)),this.clamp(),s&&r.ZERO.subTo(this,this)},r.prototype.clamp=function(){for(var t=this.s&this.DM;this.t>0&&this[this.t-1]==t;)--this.t},r.prototype.dlShiftTo=function(t,e){var n;for(n=this.t-1;n>=0;--n)e[n+t]=this[n];for(n=t-1;n>=0;--n)e[n]=0;e.t=this.t+t,e.s=this.s},r.prototype.drShiftTo=function(t,e){for(var n=t;n<this.t;++n)e[n-t]=this[n];e.t=Math.max(this.t-t,0),e.s=this.s},r.prototype.lShiftTo=function(t,e){for(var n=t%this.DB,i=this.DB-n,s=(1<<i)-1,o=Math.floor(t/this.DB),u=this.s<<n&this.DM,l=this.t-1;l>=0;--l)e[l+o+1]=this[l]>>i|u,u=(this[l]&s)<<n;for(var l=o-1;l>=0;--l)e[l]=0;e[o]=u,e.t=this.t+o+1,e.s=this.s,e.clamp()},r.prototype.rShiftTo=function(t,e){e.s=this.s;var n=Math.floor(t/this.DB);if(n>=this.t){e.t=0;return}var i=t%this.DB,s=this.DB-i,o=(1<<i)-1;e[0]=this[n]>>i;for(var u=n+1;u<this.t;++u)e[u-n-1]|=(this[u]&o)<<s,e[u-n]=this[u]>>i;i>0&&(e[this.t-n-1]|=(this.s&o)<<s),e.t=this.t-n,e.clamp()},r.prototype.subTo=function(t,e){for(var n=0,i=0,s=Math.min(t.t,this.t);n<s;)i+=this[n]-t[n],e[n++]=i&this.DM,i>>=this.DB;if(t.t<this.t){for(i-=t.s;n<this.t;)i+=this[n],e[n++]=i&this.DM,i>>=this.DB;i+=this.s}else{for(i+=this.s;n<t.t;)i-=t[n],e[n++]=i&this.DM,i>>=this.DB;i-=t.s}e.s=i<0?-1:0,i<-1?e[n++]=this.DV+i:i>0&&(e[n++]=i),e.t=n,e.clamp()},r.prototype.multiplyTo=function(t,e){var n=this.abs(),i=t.abs(),s=n.t;for(e.t=s+i.t;--s>=0;)e[s]=0;for(s=0;s<i.t;++s)e[s+n.t]=n.am(0,i[s],e,s,0,n.t);e.s=0,e.clamp(),this.s!=t.s&&r.ZERO.subTo(e,e)},r.prototype.squareTo=function(t){for(var e=this.abs(),n=t.t=2*e.t;--n>=0;)t[n]=0;for(n=0;n<e.t-1;++n){var i=e.am(n,e[n],t,2*n,0,1);(t[n+e.t]+=e.am(n+1,2*e[n],t,2*n+1,i,e.t-n-1))>=e.DV&&(t[n+e.t]-=e.DV,t[n+e.t+1]=1)}t.t>0&&(t[t.t-1]+=e.am(n,e[n],t,2*n,0,1)),t.s=0,t.clamp()},r.prototype.divRemTo=function(t,e,n){var i=t.abs();if(!(i.t<=0)){var s=this.abs();if(s.t<i.t){e!=null&&e.fromInt(0),n!=null&&this.copyTo(n);return}n==null&&(n=J());var o=J(),u=this.s,l=t.s,a=this.DB-Be(i[i.t-1]);a>0?(i.lShiftTo(a,o),s.lShiftTo(a,n)):(i.copyTo(o),s.copyTo(n));var c=o.t,f=o[c-1];if(f!=0){var h=f*(1<<this.F1)+(c>1?o[c-2]>>this.F2:0),p=this.FV/h,d=(1<<this.F1)/h,g=1<<this.F2,y=n.t,w=y-c,m=e==null?J():e;for(o.dlShiftTo(w,m),n.compareTo(m)>=0&&(n[n.t++]=1,n.subTo(m,n)),r.ONE.dlShiftTo(c,m),m.subTo(o,o);o.t<c;)o[o.t++]=0;for(;--w>=0;){var b=n[--y]==f?this.DM:Math.floor(n[y]*p+(n[y-1]+g)*d);if((n[y]+=o.am(0,b,n,w,0,c))<b)for(o.dlShiftTo(w,m),n.subTo(m,n);n[y]<--b;)n.subTo(m,n)}e!=null&&(n.drShiftTo(c,e),u!=l&&r.ZERO.subTo(e,e)),n.t=c,n.clamp(),a>0&&n.rShiftTo(a,n),u<0&&r.ZERO.subTo(n,n)}}},r.prototype.invDigit=function(){if(this.t<1)return 0;var t=this[0];if((t&1)==0)return 0;var e=t&3;return e=e*(2-(t&15)*e)&15,e=e*(2-(t&255)*e)&255,e=e*(2-((t&65535)*e&65535))&65535,e=e*(2-t*e%this.DV)%this.DV,e>0?this.DV-e:-e},r.prototype.isEven=function(){return(this.t>0?this[0]&1:this.s)==0},r.prototype.exp=function(t,e){if(t>4294967295||t<1)return r.ONE;var n=J(),i=J(),s=e.convert(this),o=Be(t)-1;for(s.copyTo(n);--o>=0;)if(e.sqrTo(n,i),(t&1<<o)>0)e.mulTo(i,s,n);else{var u=n;n=i,i=u}return e.revert(n)},r.prototype.chunkSize=function(t){return Math.floor(Math.LN2*this.DB/Math.log(t))},r.prototype.toRadix=function(t){if(t==null&&(t=10),this.signum()==0||t<2||t>36)return"0";var e=this.chunkSize(t),n=Math.pow(t,e),i=$t(n),s=J(),o=J(),u="";for(this.divRemTo(i,s,o);s.signum()>0;)u=(n+o.intValue()).toString(t).substring(1)+u,s.divRemTo(i,s,o);return o.intValue().toString(t)+u},r.prototype.fromRadix=function(t,e){this.fromInt(0),e==null&&(e=10);for(var n=this.chunkSize(e),i=Math.pow(e,n),s=!1,o=0,u=0,l=0;l<t.length;++l){var a=Oi(t,l);if(a<0){t.charAt(l)=="-"&&this.signum()==0&&(s=!0);continue}u=e*u+a,++o>=n&&(this.dMultiply(i),this.dAddOffset(u,0),o=0,u=0)}o>0&&(this.dMultiply(Math.pow(e,o)),this.dAddOffset(u,0)),s&&r.ZERO.subTo(this,this)},r.prototype.fromNumber=function(t,e,n){if(typeof e=="number")if(t<2)this.fromInt(1);else for(this.fromNumber(t,n),this.testBit(t-1)||this.bitwiseTo(r.ONE.shiftLeft(t-1),Ce,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(e);)this.dAddOffset(2,0),this.bitLength()>t&&this.subTo(r.ONE.shiftLeft(t-1),this);else{var i=[],s=t&7;i.length=(t>>3)+1,e.nextBytes(i),s>0?i[0]&=(1<<s)-1:i[0]=0,this.fromString(i,256)}},r.prototype.bitwiseTo=function(t,e,n){var i,s,o=Math.min(t.t,this.t);for(i=0;i<o;++i)n[i]=e(this[i],t[i]);if(t.t<this.t){for(s=t.s&this.DM,i=o;i<this.t;++i)n[i]=e(this[i],s);n.t=this.t}else{for(s=this.s&this.DM,i=o;i<t.t;++i)n[i]=e(s,t[i]);n.t=t.t}n.s=e(this.s,t.s),n.clamp()},r.prototype.changeBit=function(t,e){var n=r.ONE.shiftLeft(t);return this.bitwiseTo(n,e,n),n},r.prototype.addTo=function(t,e){for(var n=0,i=0,s=Math.min(t.t,this.t);n<s;)i+=this[n]+t[n],e[n++]=i&this.DM,i>>=this.DB;if(t.t<this.t){for(i+=t.s;n<this.t;)i+=this[n],e[n++]=i&this.DM,i>>=this.DB;i+=this.s}else{for(i+=this.s;n<t.t;)i+=t[n],e[n++]=i&this.DM,i>>=this.DB;i+=t.s}e.s=i<0?-1:0,i>0?e[n++]=i:i<-1&&(e[n++]=this.DV+i),e.t=n,e.clamp()},r.prototype.dMultiply=function(t){this[this.t]=this.am(0,t-1,this,0,0,this.t),++this.t,this.clamp()},r.prototype.dAddOffset=function(t,e){if(t!=0){for(;this.t<=e;)this[this.t++]=0;for(this[e]+=t;this[e]>=this.DV;)this[e]-=this.DV,++e>=this.t&&(this[this.t++]=0),++this[e]}},r.prototype.multiplyLowerTo=function(t,e,n){var i=Math.min(this.t+t.t,e);for(n.s=0,n.t=i;i>0;)n[--i]=0;for(var s=n.t-this.t;i<s;++i)n[i+this.t]=this.am(0,t[i],n,i,0,this.t);for(var s=Math.min(t.t,e);i<s;++i)this.am(0,t[i],n,i,0,e-i);n.clamp()},r.prototype.multiplyUpperTo=function(t,e,n){--e;var i=n.t=this.t+t.t-e;for(n.s=0;--i>=0;)n[i]=0;for(i=Math.max(e-this.t,0);i<t.t;++i)n[this.t+i-e]=this.am(e-i,t[i],n,0,0,this.t+i-e);n.clamp(),n.drShiftTo(1,n)},r.prototype.modInt=function(t){if(t<=0)return 0;var e=this.DV%t,n=this.s<0?t-1:0;if(this.t>0)if(e==0)n=this[0]%t;else for(var i=this.t-1;i>=0;--i)n=(e*n+this[i])%t;return n},r.prototype.millerRabin=function(t){var e=this.subtract(r.ONE),n=e.getLowestSetBit();if(n<=0)return!1;var i=e.shiftRight(n);t=t+1>>1,t>st.length&&(t=st.length);for(var s=J(),o=0;o<t;++o){s.fromInt(st[Math.floor(Math.random()*st.length)]);var u=s.modPow(i,this);if(u.compareTo(r.ONE)!=0&&u.compareTo(e)!=0){for(var l=1;l++<n&&u.compareTo(e)!=0;)if(u=u.modPowInt(2,this),u.compareTo(r.ONE)==0)return!1;if(u.compareTo(e)!=0)return!1}}return!0},r.prototype.square=function(){var t=J();return this.squareTo(t),t},r.prototype.gcda=function(t,e){var n=this.s<0?this.negate():this.clone(),i=t.s<0?t.negate():t.clone();if(n.compareTo(i)<0){var s=n;n=i,i=s}var o=n.getLowestSetBit(),u=i.getLowestSetBit();if(u<0){e(n);return}o<u&&(u=o),u>0&&(n.rShiftTo(u,n),i.rShiftTo(u,i));var l=function(){(o=n.getLowestSetBit())>0&&n.rShiftTo(o,n),(o=i.getLowestSetBit())>0&&i.rShiftTo(o,i),n.compareTo(i)>=0?(n.subTo(i,n),n.rShiftTo(1,n)):(i.subTo(n,i),i.rShiftTo(1,i)),n.signum()>0?setTimeout(l,0):(u>0&&i.lShiftTo(u,i),setTimeout(function(){e(i)},0))};setTimeout(l,10)},r.prototype.fromNumberAsync=function(t,e,n,i){if(typeof e=="number")if(t<2)this.fromInt(1);else{this.fromNumber(t,n),this.testBit(t-1)||this.bitwiseTo(r.ONE.shiftLeft(t-1),Ce,this),this.isEven()&&this.dAddOffset(1,0);var s=this,o=function(){s.dAddOffset(2,0),s.bitLength()>t&&s.subTo(r.ONE.shiftLeft(t-1),s),s.isProbablePrime(e)?setTimeout(function(){i()},0):setTimeout(o,0)};setTimeout(o,0)}else{var u=[],l=t&7;u.length=(t>>3)+1,e.nextBytes(u),l>0?u[0]&=(1<<l)-1:u[0]=0,this.fromString(u,256)}},r})(),dd=(function(){function r(){}return r.prototype.convert=function(t){return t},r.prototype.revert=function(t){return t},r.prototype.mulTo=function(t,e,n){t.multiplyTo(e,n)},r.prototype.sqrTo=function(t,e){t.squareTo(e)},r})(),Ri=(function(){function r(t){this.m=t}return r.prototype.convert=function(t){return t.s<0||t.compareTo(this.m)>=0?t.mod(this.m):t},r.prototype.revert=function(t){return t},r.prototype.reduce=function(t){t.divRemTo(this.m,null,t)},r.prototype.mulTo=function(t,e,n){t.multiplyTo(e,n),this.reduce(n)},r.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)},r})(),xi=(function(){function r(t){this.m=t,this.mp=t.invDigit(),this.mpl=this.mp&32767,this.mph=this.mp>>15,this.um=(1<<t.DB-15)-1,this.mt2=2*t.t}return r.prototype.convert=function(t){var e=J();return t.abs().dlShiftTo(this.m.t,e),e.divRemTo(this.m,null,e),t.s<0&&e.compareTo(W.ZERO)>0&&this.m.subTo(e,e),e},r.prototype.revert=function(t){var e=J();return t.copyTo(e),this.reduce(e),e},r.prototype.reduce=function(t){for(;t.t<=this.mt2;)t[t.t++]=0;for(var e=0;e<this.m.t;++e){var n=t[e]&32767,i=n*this.mpl+((n*this.mph+(t[e]>>15)*this.mpl&this.um)<<15)&t.DM;for(n=e+this.m.t,t[n]+=this.m.am(0,i,t,e,0,this.m.t);t[n]>=t.DV;)t[n]-=t.DV,t[++n]++}t.clamp(),t.drShiftTo(this.m.t,t),t.compareTo(this.m)>=0&&t.subTo(this.m,t)},r.prototype.mulTo=function(t,e,n){t.multiplyTo(e,n),this.reduce(n)},r.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)},r})(),gd=(function(){function r(t){this.m=t,this.r2=J(),this.q3=J(),W.ONE.dlShiftTo(2*t.t,this.r2),this.mu=this.r2.divide(t)}return r.prototype.convert=function(t){if(t.s<0||t.t>2*this.m.t)return t.mod(this.m);if(t.compareTo(this.m)<0)return t;var e=J();return t.copyTo(e),this.reduce(e),e},r.prototype.revert=function(t){return t},r.prototype.reduce=function(t){for(t.drShiftTo(this.m.t-1,this.r2),t.t>this.m.t+1&&(t.t=this.m.t+1,t.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);t.compareTo(this.r2)<0;)t.dAddOffset(1,this.m.t+1);for(t.subTo(this.r2,t);t.compareTo(this.m)>=0;)t.subTo(this.m,t)},r.prototype.mulTo=function(t,e,n){t.multiplyTo(e,n),this.reduce(n)},r.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)},r})();function J(){return new W(null)}function Z(r,t){return new W(r,t)}var Ai=typeof navigator!="undefined";Ai&&Ti&&navigator.appName=="Microsoft Internet Explorer"?(W.prototype.am=function(t,e,n,i,s,o){for(var u=e&32767,l=e>>15;--o>=0;){var a=this[t]&32767,c=this[t++]>>15,f=l*a+c*u;a=u*a+((f&32767)<<15)+n[i]+(s&1073741823),s=(a>>>30)+(f>>>15)+l*c+(s>>>30),n[i++]=a&1073741823}return s},Ct=30):Ai&&Ti&&navigator.appName!="Netscape"?(W.prototype.am=function(t,e,n,i,s,o){for(;--o>=0;){var u=e*this[t++]+n[i]+s;s=Math.floor(u/67108864),n[i++]=u&67108863}return s},Ct=26):(W.prototype.am=function(t,e,n,i,s,o){for(var u=e&16383,l=e>>14;--o>=0;){var a=this[t]&16383,c=this[t++]>>14,f=l*a+c*u;a=u*a+((f&16383)<<14)+n[i]+s,s=(a>>28)+(f>>14)+l*c,n[i++]=a&268435455}return s},Ct=28);W.prototype.DB=Ct;W.prototype.DM=(1<<Ct)-1;W.prototype.DV=1<<Ct;var bn=52;W.prototype.FV=Math.pow(2,bn);W.prototype.F1=bn-Ct;W.prototype.F2=2*Ct-bn;var nr=[],ue,ht;ue=48;for(ht=0;ht<=9;++ht)nr[ue++]=ht;ue=97;for(ht=10;ht<36;++ht)nr[ue++]=ht;ue=65;for(ht=10;ht<36;++ht)nr[ue++]=ht;function Oi(r,t){var e=nr[r.charCodeAt(t)];return e==null?-1:e}function $t(r){var t=J();return t.fromInt(r),t}function Be(r){var t=1,e;return(e=r>>>16)!=0&&(r=e,t+=16),(e=r>>8)!=0&&(r=e,t+=8),(e=r>>4)!=0&&(r=e,t+=4),(e=r>>2)!=0&&(r=e,t+=2),(e=r>>1)!=0&&(r=e,t+=1),t}W.ZERO=$t(0);W.ONE=$t(1);var vd=(function(){function r(){this.i=0,this.j=0,this.S=[]}return r.prototype.init=function(t){var e,n,i;for(e=0;e<256;++e)this.S[e]=e;for(n=0,e=0;e<256;++e)n=n+this.S[e]+t[e%t.length]&255,i=this.S[e],this.S[e]=this.S[n],this.S[n]=i;this.i=0,this.j=0},r.prototype.next=function(){var t;return this.i=this.i+1&255,this.j=this.j+this.S[this.i]&255,t=this.S[this.i],this.S[this.i]=this.S[this.j],this.S[this.j]=t,this.S[t+this.S[this.i]&255]},r})();function md(){return new vd}var go=256,je,Dt=null,gt;if(Dt==null){Dt=[],gt=0;var Pe=void 0;if(typeof window!="undefined"&&self.crypto&&self.crypto.getRandomValues){var Tr=new Uint32Array(256);for(self.crypto.getRandomValues(Tr),Pe=0;Pe<Tr.length;++Pe)Dt[gt++]=Tr[Pe]&255}var Ne=0,Ie=function(r){if(Ne=Ne||0,Ne>=256||gt>=go){self.removeEventListener?self.removeEventListener("mousemove",Ie,!1):self.detachEvent&&self.detachEvent("onmousemove",Ie);return}try{var t=r.x+r.y;Dt[gt++]=t&255,Ne+=1}catch(e){}};typeof window!="undefined"&&(self.addEventListener?self.addEventListener("mousemove",Ie,!1):self.attachEvent&&self.attachEvent("onmousemove",Ie))}function yd(){if(je==null){for(je=md();gt<go;){var r=Math.floor(65536*Math.random());Dt[gt++]=r&255}for(je.init(Dt),gt=0;gt<Dt.length;++gt)Dt[gt]=0;gt=0}return je.next()}var Ge=(function(){function r(){}return r.prototype.nextBytes=function(t){for(var e=0;e<t.length;++e)t[e]=yd()},r})();function Gr(r){return _d(Od(bd(r),r.length*8))}function $i(r){for(var t="0123456789abcdef",e="",n=0;n<r.length;n++){var i=r.charCodeAt(n);e+=t.charAt(i>>>4&15)+t.charAt(i&15)}return e}function bd(r){for(var t=Array(r.length>>2),e=0;e<t.length;e++)t[e]=0;for(var e=0;e<r.length*8;e+=8)t[e>>5]|=(r.charCodeAt(e/8)&255)<<24-e%32;return t}function _d(r){for(var t="",e=0;e<r.length*32;e+=8)t+=String.fromCharCode(r[e>>5]>>>24-e%32&255);return t}function _t(r,t){return r>>>t|r<<32-t}function vo(r,t){return r>>>t}function wd(r,t,e){return r&t^~r&e}function Ed(r,t,e){return r&t^r&e^t&e}function Sd(r){return _t(r,2)^_t(r,13)^_t(r,22)}function Td(r){return _t(r,6)^_t(r,11)^_t(r,25)}function Rd(r){return _t(r,7)^_t(r,18)^vo(r,3)}function xd(r){return _t(r,17)^_t(r,19)^vo(r,10)}var Ad=new Array(1116352408,1899447441,-1245643825,-373957723,961987163,1508970993,-1841331548,-1424204075,-670586216,310598401,607225278,1426881987,1925078388,-2132889090,-1680079193,-1046744716,-459576895,-272742522,264347078,604807628,770255983,1249150122,1555081692,1996064986,-1740746414,-1473132947,-1341970488,-1084653625,-958395405,-710438585,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,-2117940946,-1838011259,-1564481375,-1474664885,-1035236496,-949202525,-778901479,-694614492,-200395387,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,-2067236844,-1933114872,-1866530822,-1538233109,-1090935817,-965641998);function Od(r,t){var e=new Array(1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225),n=new Array(64),i,s,o,u,l,a,c,f,h,p,d,g;for(r[t>>5]|=128<<24-t%32,r[(t+64>>9<<4)+15]=t,h=0;h<r.length;h+=16){for(i=e[0],s=e[1],o=e[2],u=e[3],l=e[4],a=e[5],c=e[6],f=e[7],p=0;p<64;p++)p<16?n[p]=r[p+h]:n[p]=rt(rt(rt(xd(n[p-2]),n[p-7]),Rd(n[p-15])),n[p-16]),d=rt(rt(rt(rt(f,Td(l)),wd(l,a,c)),Ad[p]),n[p]),g=rt(Sd(i),Ed(i,s,o)),f=c,c=a,a=l,l=rt(u,d),u=o,o=s,s=i,i=rt(d,g);e[0]=rt(i,e[0]),e[1]=rt(s,e[1]),e[2]=rt(o,e[2]),e[3]=rt(u,e[3]),e[4]=rt(l,e[4]),e[5]=rt(a,e[5]),e[6]=rt(c,e[6]),e[7]=rt(f,e[7])}return e}function rt(r,t){var e=(r&65535)+(t&65535),n=(r>>16)+(t>>16)+(e>>16);return n<<16|e&65535}function $d(r,t){if(t<r.length+22)return console.error("Message too long for RSA"),null;for(var e=t-r.length-6,n="",i=0;i<e;i+=2)n+="ff";var s="0001"+n+"00"+r;return Z(s,16)}function Dd(r,t){if(t<r.length+11)return console.error("Message too long for RSA"),null;for(var e=[],n=r.length-1;n>=0&&t>0;){var i=r.charCodeAt(n--);i<128?e[--t]=i:i>127&&i<2048?(e[--t]=i&63|128,e[--t]=i>>6|192):(e[--t]=i&63|128,e[--t]=i>>6&63|128,e[--t]=i>>12|224)}e[--t]=0;for(var s=new Ge,o=[];t>2;){for(o[0]=0;o[0]==0;)s.nextBytes(o);e[--t]=o[0]}return e[--t]=2,e[--t]=0,new W(e)}function Di(r,t,e){for(var n="",i=0;n.length<t;)n+=e(String.fromCharCode.apply(String,r.concat([(i&4278190080)>>24,(i&16711680)>>16,(i&65280)>>8,i&255]))),i+=1;return n}var Cd=32;function Bd(r,t){var e=Cd,n=Gr;if(r.length+2*e+2>t)throw"Message too long for RSA";var i="",s;for(s=0;s<t-r.length-2*e-2;s+=1)i+="\0";var o=n("")+i+""+r,u=new Array(e);new Ge().nextBytes(u);var l=Di(u,o.length,n),a=[];for(s=0;s<o.length;s+=1)a[s]=o.charCodeAt(s)^l.charCodeAt(s);var c=Di(a,u.length,n),f=[0];for(s=0;s<u.length;s+=1)f[s+1]=u[s]^c.charCodeAt(s);return new W(f.concat(a))}var jd=(function(){function r(){this.n=null,this.e=0,this.d=null,this.p=null,this.q=null,this.dmp1=null,this.dmq1=null,this.coeff=null}return r.prototype.doPublic=function(t){return t.modPowInt(this.e,this.n)},r.prototype.doPrivate=function(t){if(this.p==null||this.q==null)return t.modPow(this.d,this.n);for(var e=t.mod(this.p).modPow(this.dmp1,this.p),n=t.mod(this.q).modPow(this.dmq1,this.q);e.compareTo(n)<0;)e=e.add(this.p);return e.subtract(n).multiply(this.coeff).mod(this.p).multiply(this.q).add(n)},r.prototype.setPublic=function(t,e){t!=null&&e!=null&&t.length>0&&e.length>0?(this.n=Z(t,16),this.e=parseInt(e,16)):console.error("Invalid RSA public key")},r.prototype.encrypt=function(t,e){typeof e=="undefined"&&(e=Dd);var n=this.n.bitLength()+7>>3,i=e(t,n);if(i==null)return null;var s=this.doPublic(i);if(s==null)return null;for(var o=s.toString(16),u=o.length,l=0;l<n*2-u;l++)o="0"+o;return o},r.prototype.setPrivate=function(t,e,n){t!=null&&e!=null&&t.length>0&&e.length>0?(this.n=Z(t,16),this.e=parseInt(e,16),this.d=Z(n,16)):console.error("Invalid RSA private key")},r.prototype.setPrivateEx=function(t,e,n,i,s,o,u,l){t!=null&&e!=null&&t.length>0&&e.length>0?(this.n=Z(t,16),this.e=parseInt(e,16),this.d=Z(n,16),this.p=Z(i,16),this.q=Z(s,16),this.dmp1=Z(o,16),this.dmq1=Z(u,16),this.coeff=Z(l,16)):console.error("Invalid RSA private key")},r.prototype.generate=function(t,e){var n=new Ge,i=t>>1;this.e=parseInt(e,16);for(var s=new W(e,16);;){for(;this.p=new W(t-i,1,n),!(this.p.subtract(W.ONE).gcd(s).compareTo(W.ONE)==0&&this.p.isProbablePrime(10)););for(;this.q=new W(i,1,n),!(this.q.subtract(W.ONE).gcd(s).compareTo(W.ONE)==0&&this.q.isProbablePrime(10)););if(this.p.compareTo(this.q)<=0){var o=this.p;this.p=this.q,this.q=o}var u=this.p.subtract(W.ONE),l=this.q.subtract(W.ONE),a=u.multiply(l);if(a.gcd(s).compareTo(W.ONE)==0){this.n=this.p.multiply(this.q),this.d=s.modInverse(a),this.dmp1=this.d.mod(u),this.dmq1=this.d.mod(l),this.coeff=this.q.modInverse(this.p);break}}},r.prototype.decrypt=function(t){var e=Z(t,16),n=this.doPrivate(e);return n==null?null:Pd(n,this.n.bitLength()+7>>3)},r.prototype.generateAsync=function(t,e,n){var i=new Ge,s=t>>1;this.e=parseInt(e,16);var o=new W(e,16),u=this,l=function(){var a=function(){if(u.p.compareTo(u.q)<=0){var h=u.p;u.p=u.q,u.q=h}var p=u.p.subtract(W.ONE),d=u.q.subtract(W.ONE),g=p.multiply(d);g.gcd(o).compareTo(W.ONE)==0?(u.n=u.p.multiply(u.q),u.d=o.modInverse(g),u.dmp1=u.d.mod(p),u.dmq1=u.d.mod(d),u.coeff=u.q.modInverse(u.p),setTimeout(function(){n()},0)):setTimeout(l,0)},c=function(){u.q=J(),u.q.fromNumberAsync(s,1,i,function(){u.q.subtract(W.ONE).gcda(o,function(h){h.compareTo(W.ONE)==0&&u.q.isProbablePrime(10)?setTimeout(a,0):setTimeout(c,0)})})},f=function(){u.p=J(),u.p.fromNumberAsync(t-s,1,i,function(){u.p.subtract(W.ONE).gcda(o,function(h){h.compareTo(W.ONE)==0&&u.p.isProbablePrime(10)?setTimeout(c,0):setTimeout(f,0)})})};setTimeout(f,0)};setTimeout(l,0)},r.prototype.sign=function(t,e,n){var i=Nd(n),s=i+e(t).toString(),o=this.n.bitLength()/4,u=$d(s,o);if(u==null)return null;var l=this.doPrivate(u);if(l==null)return null;for(var a=l.toString(16),c=a.length,f=0;f<o-c;f++)a="0"+a;return a},r.prototype.verify=function(t,e,n){var i=Z(e,16),s=this.doPublic(i);if(s==null)return null;var o=s.toString(16).replace(/^1f+00/,""),u=Id(o);return u==n(t).toString()},r})();function Pd(r,t){for(var e=r.toByteArray(),n=0;n<e.length&&e[n]==0;)++n;if(e.length-n!=t-1||e[n]!=2)return null;for(++n;e[n]!=0;)if(++n>=e.length)return null;for(var i="";++n<e.length;){var s=e[n]&255;s<128?i+=String.fromCharCode(s):s>191&&s<224?(i+=String.fromCharCode((s&31)<<6|e[n+1]&63),++n):(i+=String.fromCharCode((s&15)<<12|(e[n+1]&63)<<6|e[n+2]&63),n+=2)}return i}var ke={md2:"3020300c06082a864886f70d020205000410",md5:"3020300c06082a864886f70d020505000410",sha1:"3021300906052b0e03021a05000414",sha224:"302d300d06096086480165030402040500041c",sha256:"3031300d060960864801650304020105000420",sha384:"3041300d060960864801650304020205000430",sha512:"3051300d060960864801650304020305000440",ripemd160:"3021300906052b2403020105000414"};function Nd(r){return ke[r]||""}function Id(r){for(var t in ke)if(ke.hasOwnProperty(t)){var e=ke[t],n=e.length;if(r.substring(0,n)==e)return r.substring(n)}return r}function tt(r,t,e){if(!t||!r)throw new Error("extend failed, please check that all dependencies are included.");var n=function(){};n.prototype=t.prototype,r.prototype=new n,r.prototype.constructor=r,r.superclass=t.prototype,t.prototype.constructor==Object.prototype.constructor&&(t.prototype.constructor=t)}/**
|
|
27
27
|
* @fileOverview
|
|
28
28
|
* @name asn1-1.0.js
|
|
29
29
|
* @author Kenji Urushima kenji.urushima@gmail.com
|
|
30
30
|
* @version asn1 1.0.13 (2017-Jun-02)
|
|
31
31
|
* @since jsrsasign 2.1
|
|
32
32
|
* @license <a href="https://kjur.github.io/jsrsasign/license/">MIT License</a>
|
|
33
|
-
*/var B={};(typeof B.asn1=="undefined"||!B.asn1)&&(B.asn1={});B.asn1.ASN1Util=new function(){this.integerToByteHex=function(r){var t=r.toString(16);return t.length%2==1&&(t="0"+t),t},this.bigIntToMinTwosComplementsHex=function(r){var t=r.toString(16);if(t.substring(0,1)!="-")t.length%2==1?t="0"+t:t.match(/^[0-7]/)||(t="00"+t);else{var e=t.substring(1),n=e.length;n%2==1?n+=1:t.match(/^[0-7]/)||(n+=2);for(var i="",s=0;s<n;s++)i+="f";var o=new W(i,16),u=o.xor(r).add(W.ONE);t=u.toString(16).replace(/^-/,"")}return t},this.getPEMStringFromHex=function(r,t){return hextopem(r,t)},this.newObject=function(r){var t=B,e=t.asn1,n=e.DERBoolean,i=e.DERInteger,s=e.DERBitString,o=e.DEROctetString,u=e.DERNull,l=e.DERObjectIdentifier,a=e.DEREnumerated,c=e.DERUTF8String,f=e.DERNumericString,h=e.DERPrintableString,p=e.DERTeletexString,d=e.DERIA5String,g=e.DERUTCTime,b=e.DERGeneralizedTime,w=e.DERSequence,m=e.DERSet,y=e.DERTaggedObject,_=e.ASN1Util.newObject,S=Object.keys(r);if(S.length!=1)throw"key of param shall be only one.";var v=S[0];if(":bool:int:bitstr:octstr:null:oid:enum:utf8str:numstr:prnstr:telstr:ia5str:utctime:gentime:seq:set:tag:".indexOf(":"+v+":")==-1)throw"undefined key: "+v;if(v=="bool")return new n(r[v]);if(v=="int")return new i(r[v]);if(v=="bitstr")return new s(r[v]);if(v=="octstr")return new o(r[v]);if(v=="null")return new u(r[v]);if(v=="oid")return new l(r[v]);if(v=="enum")return new a(r[v]);if(v=="utf8str")return new c(r[v]);if(v=="numstr")return new f(r[v]);if(v=="prnstr")return new h(r[v]);if(v=="telstr")return new p(r[v]);if(v=="ia5str")return new d(r[v]);if(v=="utctime")return new g(r[v]);if(v=="gentime")return new b(r[v]);if(v=="seq"){for(var T=r[v],A=[],L=0;L<T.length;L++){var E=_(T[L]);A.push(E)}return new w({array:A})}if(v=="set"){for(var T=r[v],A=[],L=0;L<T.length;L++){var E=_(T[L]);A.push(E)}return new m({array:A})}if(v=="tag"){var x=r[v];if(Object.prototype.toString.call(x)==="[object Array]"&&x.length==3){var M=_(x[2]);return new y({tag:x[0],explicit:x[1],obj:M})}else{var C={};if(x.explicit!==void 0&&(C.explicit=x.explicit),x.tag!==void 0&&(C.tag=x.tag),x.obj===void 0)throw"obj shall be specified for 'tag'.";return C.obj=_(x.obj),new y(C)}}},this.jsonToASN1HEX=function(r){var t=this.newObject(r);return t.getEncodedHex()}};B.asn1.ASN1Util.oidHexToInt=function(r){for(var i="",t=parseInt(r.substring(0,2),16),e=Math.floor(t/40),n=t%40,i=e+"."+n,s="",o=2;o<r.length;o+=2){var u=parseInt(r.substring(o,o+2),16),l=("00000000"+u.toString(2)).slice(-8);if(s=s+l.substring(1,8),l.substring(0,1)=="0"){var a=new W(s,2);i=i+"."+a.toString(10),s=""}}return i};B.asn1.ASN1Util.oidIntToHex=function(r){var t=function(u){var l=u.toString(16);return l.length==1&&(l="0"+l),l},e=function(u){var l="",a=new W(u,10),c=a.toString(2),f=7-c.length%7;f==7&&(f=0);for(var h="",p=0;p<f;p++)h+="0";c=h+c;for(var p=0;p<c.length-1;p+=7){var d=c.substring(p,p+7);p!=c.length-7&&(d="1"+d),l+=t(parseInt(d,2))}return l};if(!r.match(/^[0-9.]+$/))throw"malformed oid string: "+r;var n="",i=r.split("."),s=parseInt(i[0])*40+parseInt(i[1]);n+=t(s),i.splice(0,2);for(var o=0;o<i.length;o++)n+=e(i[o]);return n};B.asn1.ASN1Object=function(){var r="";this.getLengthHexFromValue=function(){if(typeof this.hV=="undefined"||this.hV==null)throw"this.hV is null or undefined.";if(this.hV.length%2==1)throw"value hex must be even length: n="+r.length+",v="+this.hV;var t=this.hV.length/2,e=t.toString(16);if(e.length%2==1&&(e="0"+e),t<128)return e;var n=e.length/2;if(n>15)throw"ASN.1 length too long to represent by 8x: n = "+t.toString(16);var i=128+n;return i.toString(16)+e},this.getEncodedHex=function(){return(this.hTLV==null||this.isModified)&&(this.hV=this.getFreshValueHex(),this.hL=this.getLengthHexFromValue(),this.hTLV=this.hT+this.hL+this.hV,this.isModified=!1),this.hTLV},this.getValueHex=function(){return this.getEncodedHex(),this.hV},this.getFreshValueHex=function(){return""}};B.asn1.DERAbstractString=function(r){B.asn1.DERAbstractString.superclass.constructor.call(this),this.getString=function(){return this.s},this.setString=function(t){this.hTLV=null,this.isModified=!0,this.s=t,this.hV=stohex(this.s)},this.setStringHex=function(t){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=t},this.getFreshValueHex=function(){return this.hV},typeof r!="undefined"&&(typeof r=="string"?this.setString(r):typeof r.str!="undefined"?this.setString(r.str):typeof r.hex!="undefined"&&this.setStringHex(r.hex))};tt(B.asn1.DERAbstractString,B.asn1.ASN1Object);B.asn1.DERAbstractTime=function(r){B.asn1.DERAbstractTime.superclass.constructor.call(this),this.localDateToUTC=function(t){utc=t.getTime()+t.getTimezoneOffset()*6e4;var e=new Date(utc);return e},this.formatDate=function(t,e,n){var i=this.zeroPadding,s=this.localDateToUTC(t),o=String(s.getFullYear());e=="utc"&&(o=o.substring(2,4));var u=i(String(s.getMonth()+1),2),l=i(String(s.getDate()),2),a=i(String(s.getHours()),2),c=i(String(s.getMinutes()),2),f=i(String(s.getSeconds()),2),h=o+u+l+a+c+f;if(n===!0){var p=s.getMilliseconds();if(p!=0){var d=i(String(p),3);d=d.replace(/[0]+$/,""),h=h+"."+d}}return h+"Z"},this.zeroPadding=function(t,e){return t.length>=e?t:new Array(e-t.length+1).join("0")+t},this.getString=function(){return this.s},this.setString=function(t){this.hTLV=null,this.isModified=!0,this.s=t,this.hV=stohex(t)},this.setByDateValue=function(t,e,n,i,s,o){var u=new Date(Date.UTC(t,e-1,n,i,s,o,0));this.setByDate(u)},this.getFreshValueHex=function(){return this.hV}};tt(B.asn1.DERAbstractTime,B.asn1.ASN1Object);B.asn1.DERAbstractStructured=function(r){B.asn1.DERAbstractString.superclass.constructor.call(this),this.setByASN1ObjectArray=function(t){this.hTLV=null,this.isModified=!0,this.asn1Array=t},this.appendASN1Object=function(t){this.hTLV=null,this.isModified=!0,this.asn1Array.push(t)},this.asn1Array=new Array,typeof r!="undefined"&&typeof r.array!="undefined"&&(this.asn1Array=r.array)};tt(B.asn1.DERAbstractStructured,B.asn1.ASN1Object);B.asn1.DERBoolean=function(){B.asn1.DERBoolean.superclass.constructor.call(this),this.hT="01",this.hTLV="0101ff"};tt(B.asn1.DERBoolean,B.asn1.ASN1Object);B.asn1.DERInteger=function(r){B.asn1.DERInteger.superclass.constructor.call(this),this.hT="02",this.setByBigInteger=function(t){this.hTLV=null,this.isModified=!0,this.hV=B.asn1.ASN1Util.bigIntToMinTwosComplementsHex(t)},this.setByInteger=function(t){var e=new W(String(t),10);this.setByBigInteger(e)},this.setValueHex=function(t){this.hV=t},this.getFreshValueHex=function(){return this.hV},typeof r!="undefined"&&(typeof r.bigint!="undefined"?this.setByBigInteger(r.bigint):typeof r.int!="undefined"?this.setByInteger(r.int):typeof r=="number"?this.setByInteger(r):typeof r.hex!="undefined"&&this.setValueHex(r.hex))};tt(B.asn1.DERInteger,B.asn1.ASN1Object);B.asn1.DERBitString=function(r){if(r!==void 0&&typeof r.obj!="undefined"){var t=B.asn1.ASN1Util.newObject(r.obj);r.hex="00"+t.getEncodedHex()}B.asn1.DERBitString.superclass.constructor.call(this),this.hT="03",this.setHexValueIncludingUnusedBits=function(e){this.hTLV=null,this.isModified=!0,this.hV=e},this.setUnusedBitsAndHexValue=function(e,n){if(e<0||7<e)throw"unused bits shall be from 0 to 7: u = "+e;var i="0"+e;this.hTLV=null,this.isModified=!0,this.hV=i+n},this.setByBinaryString=function(e){e=e.replace(/0+$/,"");var n=8-e.length%8;n==8&&(n=0);for(var i=0;i<=n;i++)e+="0";for(var s="",i=0;i<e.length-1;i+=8){var o=e.substring(i,i+8),u=parseInt(o,2).toString(16);u.length==1&&(u="0"+u),s+=u}this.hTLV=null,this.isModified=!0,this.hV="0"+n+s},this.setByBooleanArray=function(e){for(var n="",i=0;i<e.length;i++)e[i]==!0?n+="1":n+="0";this.setByBinaryString(n)},this.newFalseArray=function(e){for(var n=new Array(e),i=0;i<e;i++)n[i]=!1;return n},this.getFreshValueHex=function(){return this.hV},typeof r!="undefined"&&(typeof r=="string"&&r.toLowerCase().match(/^[0-9a-f]+$/)?this.setHexValueIncludingUnusedBits(r):typeof r.hex!="undefined"?this.setHexValueIncludingUnusedBits(r.hex):typeof r.bin!="undefined"?this.setByBinaryString(r.bin):typeof r.array!="undefined"&&this.setByBooleanArray(r.array))};tt(B.asn1.DERBitString,B.asn1.ASN1Object);B.asn1.DEROctetString=function(r){if(r!==void 0&&typeof r.obj!="undefined"){var t=B.asn1.ASN1Util.newObject(r.obj);r.hex=t.getEncodedHex()}B.asn1.DEROctetString.superclass.constructor.call(this,r),this.hT="04"};tt(B.asn1.DEROctetString,B.asn1.DERAbstractString);B.asn1.DERNull=function(){B.asn1.DERNull.superclass.constructor.call(this),this.hT="05",this.hTLV="0500"};tt(B.asn1.DERNull,B.asn1.ASN1Object);B.asn1.DERObjectIdentifier=function(r){var t=function(n){var i=n.toString(16);return i.length==1&&(i="0"+i),i},e=function(n){var i="",s=new W(n,10),o=s.toString(2),u=7-o.length%7;u==7&&(u=0);for(var l="",a=0;a<u;a++)l+="0";o=l+o;for(var a=0;a<o.length-1;a+=7){var c=o.substring(a,a+7);a!=o.length-7&&(c="1"+c),i+=t(parseInt(c,2))}return i};B.asn1.DERObjectIdentifier.superclass.constructor.call(this),this.hT="06",this.setValueHex=function(n){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=n},this.setValueOidString=function(n){if(!n.match(/^[0-9.]+$/))throw"malformed oid string: "+n;var i="",s=n.split("."),o=parseInt(s[0])*40+parseInt(s[1]);i+=t(o),s.splice(0,2);for(var u=0;u<s.length;u++)i+=e(s[u]);this.hTLV=null,this.isModified=!0,this.s=null,this.hV=i},this.setValueName=function(n){var i=B.asn1.x509.OID.name2oid(n);if(i!=="")this.setValueOidString(i);else throw"DERObjectIdentifier oidName undefined: "+n},this.getFreshValueHex=function(){return this.hV},r!==void 0&&(typeof r=="string"?r.match(/^[0-2].[0-9.]+$/)?this.setValueOidString(r):this.setValueName(r):r.oid!==void 0?this.setValueOidString(r.oid):r.hex!==void 0?this.setValueHex(r.hex):r.name!==void 0&&this.setValueName(r.name))};tt(B.asn1.DERObjectIdentifier,B.asn1.ASN1Object);B.asn1.DEREnumerated=function(r){B.asn1.DEREnumerated.superclass.constructor.call(this),this.hT="0a",this.setByBigInteger=function(t){this.hTLV=null,this.isModified=!0,this.hV=B.asn1.ASN1Util.bigIntToMinTwosComplementsHex(t)},this.setByInteger=function(t){var e=new W(String(t),10);this.setByBigInteger(e)},this.setValueHex=function(t){this.hV=t},this.getFreshValueHex=function(){return this.hV},typeof r!="undefined"&&(typeof r.int!="undefined"?this.setByInteger(r.int):typeof r=="number"?this.setByInteger(r):typeof r.hex!="undefined"&&this.setValueHex(r.hex))};tt(B.asn1.DEREnumerated,B.asn1.ASN1Object);B.asn1.DERUTF8String=function(r){B.asn1.DERUTF8String.superclass.constructor.call(this,r),this.hT="0c"};tt(B.asn1.DERUTF8String,B.asn1.DERAbstractString);B.asn1.DERNumericString=function(r){B.asn1.DERNumericString.superclass.constructor.call(this,r),this.hT="12"};tt(B.asn1.DERNumericString,B.asn1.DERAbstractString);B.asn1.DERPrintableString=function(r){B.asn1.DERPrintableString.superclass.constructor.call(this,r),this.hT="13"};tt(B.asn1.DERPrintableString,B.asn1.DERAbstractString);B.asn1.DERTeletexString=function(r){B.asn1.DERTeletexString.superclass.constructor.call(this,r),this.hT="14"};tt(B.asn1.DERTeletexString,B.asn1.DERAbstractString);B.asn1.DERIA5String=function(r){B.asn1.DERIA5String.superclass.constructor.call(this,r),this.hT="16"};tt(B.asn1.DERIA5String,B.asn1.DERAbstractString);B.asn1.DERUTCTime=function(r){B.asn1.DERUTCTime.superclass.constructor.call(this,r),this.hT="17",this.setByDate=function(t){this.hTLV=null,this.isModified=!0,this.date=t,this.s=this.formatDate(this.date,"utc"),this.hV=stohex(this.s)},this.getFreshValueHex=function(){return typeof this.date=="undefined"&&typeof this.s=="undefined"&&(this.date=new Date,this.s=this.formatDate(this.date,"utc"),this.hV=stohex(this.s)),this.hV},r!==void 0&&(r.str!==void 0?this.setString(r.str):typeof r=="string"&&r.match(/^[0-9]{12}Z$/)?this.setString(r):r.hex!==void 0?this.setStringHex(r.hex):r.date!==void 0&&this.setByDate(r.date))};tt(B.asn1.DERUTCTime,B.asn1.DERAbstractTime);B.asn1.DERGeneralizedTime=function(r){B.asn1.DERGeneralizedTime.superclass.constructor.call(this,r),this.hT="18",this.withMillis=!1,this.setByDate=function(t){this.hTLV=null,this.isModified=!0,this.date=t,this.s=this.formatDate(this.date,"gen",this.withMillis),this.hV=stohex(this.s)},this.getFreshValueHex=function(){return this.date===void 0&&this.s===void 0&&(this.date=new Date,this.s=this.formatDate(this.date,"gen",this.withMillis),this.hV=stohex(this.s)),this.hV},r!==void 0&&(r.str!==void 0?this.setString(r.str):typeof r=="string"&&r.match(/^[0-9]{14}Z$/)?this.setString(r):r.hex!==void 0?this.setStringHex(r.hex):r.date!==void 0&&this.setByDate(r.date),r.millis===!0&&(this.withMillis=!0))};tt(B.asn1.DERGeneralizedTime,B.asn1.DERAbstractTime);B.asn1.DERSequence=function(r){B.asn1.DERSequence.superclass.constructor.call(this,r),this.hT="30",this.getFreshValueHex=function(){for(var t="",e=0;e<this.asn1Array.length;e++){var n=this.asn1Array[e];t+=n.getEncodedHex()}return this.hV=t,this.hV}};tt(B.asn1.DERSequence,B.asn1.DERAbstractStructured);B.asn1.DERSet=function(r){B.asn1.DERSet.superclass.constructor.call(this,r),this.hT="31",this.sortFlag=!0,this.getFreshValueHex=function(){for(var t=new Array,e=0;e<this.asn1Array.length;e++){var n=this.asn1Array[e];t.push(n.getEncodedHex())}return this.sortFlag==!0&&t.sort(),this.hV=t.join(""),this.hV},typeof r!="undefined"&&typeof r.sortflag!="undefined"&&r.sortflag==!1&&(this.sortFlag=!1)};tt(B.asn1.DERSet,B.asn1.DERAbstractStructured);B.asn1.DERTaggedObject=function(r){B.asn1.DERTaggedObject.superclass.constructor.call(this),this.hT="a0",this.hV="",this.isExplicit=!0,this.asn1Object=null,this.setASN1Object=function(t,e,n){this.hT=e,this.isExplicit=t,this.asn1Object=n,this.isExplicit?(this.hV=this.asn1Object.getEncodedHex(),this.hTLV=null,this.isModified=!0):(this.hV=null,this.hTLV=n.getEncodedHex(),this.hTLV=this.hTLV.replace(/^../,e),this.isModified=!1)},this.getFreshValueHex=function(){return this.hV},typeof r!="undefined"&&(typeof r.tag!="undefined"&&(this.hT=r.tag),typeof r.explicit!="undefined"&&(this.isExplicit=r.explicit),typeof r.obj!="undefined"&&(this.asn1Object=r.obj,this.setASN1Object(this.isExplicit,this.hT,this.asn1Object)))};tt(B.asn1.DERTaggedObject,B.asn1.ASN1Object);var Md=(function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(n[s]=i[s])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}})(),Ci=(function(r){Md(t,r);function t(e){var n=r.call(this)||this;return e&&(typeof e=="string"?n.parseKey(e):(t.hasPrivateKeyProperty(e)||t.hasPublicKeyProperty(e))&&n.parsePropertiesFrom(e)),n}return t.prototype.parseKey=function(e){try{var n=0,i=0,s=/^\s*(?:[0-9A-Fa-f][0-9A-Fa-f]\s*)+$/,o=s.test(e)?ud.decode(e):Jr.unarmor(e),u=fd.decode(o);if(u.sub.length===3&&(u=u.sub[2].sub[0]),u.sub.length===9){n=u.sub[1].getHexStringValue(),this.n=Z(n,16),i=u.sub[2].getHexStringValue(),this.e=parseInt(i,16);var l=u.sub[3].getHexStringValue();this.d=Z(l,16);var a=u.sub[4].getHexStringValue();this.p=Z(a,16);var c=u.sub[5].getHexStringValue();this.q=Z(c,16);var f=u.sub[6].getHexStringValue();this.dmp1=Z(f,16);var h=u.sub[7].getHexStringValue();this.dmq1=Z(h,16);var p=u.sub[8].getHexStringValue();this.coeff=Z(p,16)}else if(u.sub.length===2)if(u.sub[0].sub){var d=u.sub[1],g=d.sub[0];n=g.sub[0].getHexStringValue(),this.n=Z(n,16),i=g.sub[1].getHexStringValue(),this.e=parseInt(i,16)}else n=u.sub[0].getHexStringValue(),this.n=Z(n,16),i=u.sub[1].getHexStringValue(),this.e=parseInt(i,16);else return!1;return!0}catch(b){return!1}},t.prototype.getPrivateBaseKey=function(){var e={array:[new B.asn1.DERInteger({int:0}),new B.asn1.DERInteger({bigint:this.n}),new B.asn1.DERInteger({int:this.e}),new B.asn1.DERInteger({bigint:this.d}),new B.asn1.DERInteger({bigint:this.p}),new B.asn1.DERInteger({bigint:this.q}),new B.asn1.DERInteger({bigint:this.dmp1}),new B.asn1.DERInteger({bigint:this.dmq1}),new B.asn1.DERInteger({bigint:this.coeff})]},n=new B.asn1.DERSequence(e);return n.getEncodedHex()},t.prototype.getPrivateBaseKeyB64=function(){return be(this.getPrivateBaseKey())},t.prototype.getPublicBaseKey=function(){var e=new B.asn1.DERSequence({array:[new B.asn1.DERObjectIdentifier({oid:"1.2.840.113549.1.1.1"}),new B.asn1.DERNull]}),n=new B.asn1.DERSequence({array:[new B.asn1.DERInteger({bigint:this.n}),new B.asn1.DERInteger({int:this.e})]}),i=new B.asn1.DERBitString({hex:"00"+n.getEncodedHex()}),s=new B.asn1.DERSequence({array:[e,i]});return s.getEncodedHex()},t.prototype.getPublicBaseKeyB64=function(){return be(this.getPublicBaseKey())},t.wordwrap=function(e,n){if(n=n||64,!e)return e;var i="(.{1,"+n+`})( +|$
|
|
33
|
+
*/var B={};(typeof B.asn1=="undefined"||!B.asn1)&&(B.asn1={});B.asn1.ASN1Util=new function(){this.integerToByteHex=function(r){var t=r.toString(16);return t.length%2==1&&(t="0"+t),t},this.bigIntToMinTwosComplementsHex=function(r){var t=r.toString(16);if(t.substring(0,1)!="-")t.length%2==1?t="0"+t:t.match(/^[0-7]/)||(t="00"+t);else{var e=t.substring(1),n=e.length;n%2==1?n+=1:t.match(/^[0-7]/)||(n+=2);for(var i="",s=0;s<n;s++)i+="f";var o=new W(i,16),u=o.xor(r).add(W.ONE);t=u.toString(16).replace(/^-/,"")}return t},this.getPEMStringFromHex=function(r,t){return hextopem(r,t)},this.newObject=function(r){var t=B,e=t.asn1,n=e.DERBoolean,i=e.DERInteger,s=e.DERBitString,o=e.DEROctetString,u=e.DERNull,l=e.DERObjectIdentifier,a=e.DEREnumerated,c=e.DERUTF8String,f=e.DERNumericString,h=e.DERPrintableString,p=e.DERTeletexString,d=e.DERIA5String,g=e.DERUTCTime,y=e.DERGeneralizedTime,w=e.DERSequence,m=e.DERSet,b=e.DERTaggedObject,_=e.ASN1Util.newObject,S=Object.keys(r);if(S.length!=1)throw"key of param shall be only one.";var v=S[0];if(":bool:int:bitstr:octstr:null:oid:enum:utf8str:numstr:prnstr:telstr:ia5str:utctime:gentime:seq:set:tag:".indexOf(":"+v+":")==-1)throw"undefined key: "+v;if(v=="bool")return new n(r[v]);if(v=="int")return new i(r[v]);if(v=="bitstr")return new s(r[v]);if(v=="octstr")return new o(r[v]);if(v=="null")return new u(r[v]);if(v=="oid")return new l(r[v]);if(v=="enum")return new a(r[v]);if(v=="utf8str")return new c(r[v]);if(v=="numstr")return new f(r[v]);if(v=="prnstr")return new h(r[v]);if(v=="telstr")return new p(r[v]);if(v=="ia5str")return new d(r[v]);if(v=="utctime")return new g(r[v]);if(v=="gentime")return new y(r[v]);if(v=="seq"){for(var T=r[v],A=[],L=0;L<T.length;L++){var E=_(T[L]);A.push(E)}return new w({array:A})}if(v=="set"){for(var T=r[v],A=[],L=0;L<T.length;L++){var E=_(T[L]);A.push(E)}return new m({array:A})}if(v=="tag"){var x=r[v];if(Object.prototype.toString.call(x)==="[object Array]"&&x.length==3){var M=_(x[2]);return new b({tag:x[0],explicit:x[1],obj:M})}else{var C={};if(x.explicit!==void 0&&(C.explicit=x.explicit),x.tag!==void 0&&(C.tag=x.tag),x.obj===void 0)throw"obj shall be specified for 'tag'.";return C.obj=_(x.obj),new b(C)}}},this.jsonToASN1HEX=function(r){var t=this.newObject(r);return t.getEncodedHex()}};B.asn1.ASN1Util.oidHexToInt=function(r){for(var i="",t=parseInt(r.substring(0,2),16),e=Math.floor(t/40),n=t%40,i=e+"."+n,s="",o=2;o<r.length;o+=2){var u=parseInt(r.substring(o,o+2),16),l=("00000000"+u.toString(2)).slice(-8);if(s=s+l.substring(1,8),l.substring(0,1)=="0"){var a=new W(s,2);i=i+"."+a.toString(10),s=""}}return i};B.asn1.ASN1Util.oidIntToHex=function(r){var t=function(u){var l=u.toString(16);return l.length==1&&(l="0"+l),l},e=function(u){var l="",a=new W(u,10),c=a.toString(2),f=7-c.length%7;f==7&&(f=0);for(var h="",p=0;p<f;p++)h+="0";c=h+c;for(var p=0;p<c.length-1;p+=7){var d=c.substring(p,p+7);p!=c.length-7&&(d="1"+d),l+=t(parseInt(d,2))}return l};if(!r.match(/^[0-9.]+$/))throw"malformed oid string: "+r;var n="",i=r.split("."),s=parseInt(i[0])*40+parseInt(i[1]);n+=t(s),i.splice(0,2);for(var o=0;o<i.length;o++)n+=e(i[o]);return n};B.asn1.ASN1Object=function(){var r="";this.getLengthHexFromValue=function(){if(typeof this.hV=="undefined"||this.hV==null)throw"this.hV is null or undefined.";if(this.hV.length%2==1)throw"value hex must be even length: n="+r.length+",v="+this.hV;var t=this.hV.length/2,e=t.toString(16);if(e.length%2==1&&(e="0"+e),t<128)return e;var n=e.length/2;if(n>15)throw"ASN.1 length too long to represent by 8x: n = "+t.toString(16);var i=128+n;return i.toString(16)+e},this.getEncodedHex=function(){return(this.hTLV==null||this.isModified)&&(this.hV=this.getFreshValueHex(),this.hL=this.getLengthHexFromValue(),this.hTLV=this.hT+this.hL+this.hV,this.isModified=!1),this.hTLV},this.getValueHex=function(){return this.getEncodedHex(),this.hV},this.getFreshValueHex=function(){return""}};B.asn1.DERAbstractString=function(r){B.asn1.DERAbstractString.superclass.constructor.call(this),this.getString=function(){return this.s},this.setString=function(t){this.hTLV=null,this.isModified=!0,this.s=t,this.hV=stohex(this.s)},this.setStringHex=function(t){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=t},this.getFreshValueHex=function(){return this.hV},typeof r!="undefined"&&(typeof r=="string"?this.setString(r):typeof r.str!="undefined"?this.setString(r.str):typeof r.hex!="undefined"&&this.setStringHex(r.hex))};tt(B.asn1.DERAbstractString,B.asn1.ASN1Object);B.asn1.DERAbstractTime=function(r){B.asn1.DERAbstractTime.superclass.constructor.call(this),this.localDateToUTC=function(t){utc=t.getTime()+t.getTimezoneOffset()*6e4;var e=new Date(utc);return e},this.formatDate=function(t,e,n){var i=this.zeroPadding,s=this.localDateToUTC(t),o=String(s.getFullYear());e=="utc"&&(o=o.substring(2,4));var u=i(String(s.getMonth()+1),2),l=i(String(s.getDate()),2),a=i(String(s.getHours()),2),c=i(String(s.getMinutes()),2),f=i(String(s.getSeconds()),2),h=o+u+l+a+c+f;if(n===!0){var p=s.getMilliseconds();if(p!=0){var d=i(String(p),3);d=d.replace(/[0]+$/,""),h=h+"."+d}}return h+"Z"},this.zeroPadding=function(t,e){return t.length>=e?t:new Array(e-t.length+1).join("0")+t},this.getString=function(){return this.s},this.setString=function(t){this.hTLV=null,this.isModified=!0,this.s=t,this.hV=stohex(t)},this.setByDateValue=function(t,e,n,i,s,o){var u=new Date(Date.UTC(t,e-1,n,i,s,o,0));this.setByDate(u)},this.getFreshValueHex=function(){return this.hV}};tt(B.asn1.DERAbstractTime,B.asn1.ASN1Object);B.asn1.DERAbstractStructured=function(r){B.asn1.DERAbstractString.superclass.constructor.call(this),this.setByASN1ObjectArray=function(t){this.hTLV=null,this.isModified=!0,this.asn1Array=t},this.appendASN1Object=function(t){this.hTLV=null,this.isModified=!0,this.asn1Array.push(t)},this.asn1Array=new Array,typeof r!="undefined"&&typeof r.array!="undefined"&&(this.asn1Array=r.array)};tt(B.asn1.DERAbstractStructured,B.asn1.ASN1Object);B.asn1.DERBoolean=function(){B.asn1.DERBoolean.superclass.constructor.call(this),this.hT="01",this.hTLV="0101ff"};tt(B.asn1.DERBoolean,B.asn1.ASN1Object);B.asn1.DERInteger=function(r){B.asn1.DERInteger.superclass.constructor.call(this),this.hT="02",this.setByBigInteger=function(t){this.hTLV=null,this.isModified=!0,this.hV=B.asn1.ASN1Util.bigIntToMinTwosComplementsHex(t)},this.setByInteger=function(t){var e=new W(String(t),10);this.setByBigInteger(e)},this.setValueHex=function(t){this.hV=t},this.getFreshValueHex=function(){return this.hV},typeof r!="undefined"&&(typeof r.bigint!="undefined"?this.setByBigInteger(r.bigint):typeof r.int!="undefined"?this.setByInteger(r.int):typeof r=="number"?this.setByInteger(r):typeof r.hex!="undefined"&&this.setValueHex(r.hex))};tt(B.asn1.DERInteger,B.asn1.ASN1Object);B.asn1.DERBitString=function(r){if(r!==void 0&&typeof r.obj!="undefined"){var t=B.asn1.ASN1Util.newObject(r.obj);r.hex="00"+t.getEncodedHex()}B.asn1.DERBitString.superclass.constructor.call(this),this.hT="03",this.setHexValueIncludingUnusedBits=function(e){this.hTLV=null,this.isModified=!0,this.hV=e},this.setUnusedBitsAndHexValue=function(e,n){if(e<0||7<e)throw"unused bits shall be from 0 to 7: u = "+e;var i="0"+e;this.hTLV=null,this.isModified=!0,this.hV=i+n},this.setByBinaryString=function(e){e=e.replace(/0+$/,"");var n=8-e.length%8;n==8&&(n=0);for(var i=0;i<=n;i++)e+="0";for(var s="",i=0;i<e.length-1;i+=8){var o=e.substring(i,i+8),u=parseInt(o,2).toString(16);u.length==1&&(u="0"+u),s+=u}this.hTLV=null,this.isModified=!0,this.hV="0"+n+s},this.setByBooleanArray=function(e){for(var n="",i=0;i<e.length;i++)e[i]==!0?n+="1":n+="0";this.setByBinaryString(n)},this.newFalseArray=function(e){for(var n=new Array(e),i=0;i<e;i++)n[i]=!1;return n},this.getFreshValueHex=function(){return this.hV},typeof r!="undefined"&&(typeof r=="string"&&r.toLowerCase().match(/^[0-9a-f]+$/)?this.setHexValueIncludingUnusedBits(r):typeof r.hex!="undefined"?this.setHexValueIncludingUnusedBits(r.hex):typeof r.bin!="undefined"?this.setByBinaryString(r.bin):typeof r.array!="undefined"&&this.setByBooleanArray(r.array))};tt(B.asn1.DERBitString,B.asn1.ASN1Object);B.asn1.DEROctetString=function(r){if(r!==void 0&&typeof r.obj!="undefined"){var t=B.asn1.ASN1Util.newObject(r.obj);r.hex=t.getEncodedHex()}B.asn1.DEROctetString.superclass.constructor.call(this,r),this.hT="04"};tt(B.asn1.DEROctetString,B.asn1.DERAbstractString);B.asn1.DERNull=function(){B.asn1.DERNull.superclass.constructor.call(this),this.hT="05",this.hTLV="0500"};tt(B.asn1.DERNull,B.asn1.ASN1Object);B.asn1.DERObjectIdentifier=function(r){var t=function(n){var i=n.toString(16);return i.length==1&&(i="0"+i),i},e=function(n){var i="",s=new W(n,10),o=s.toString(2),u=7-o.length%7;u==7&&(u=0);for(var l="",a=0;a<u;a++)l+="0";o=l+o;for(var a=0;a<o.length-1;a+=7){var c=o.substring(a,a+7);a!=o.length-7&&(c="1"+c),i+=t(parseInt(c,2))}return i};B.asn1.DERObjectIdentifier.superclass.constructor.call(this),this.hT="06",this.setValueHex=function(n){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=n},this.setValueOidString=function(n){if(!n.match(/^[0-9.]+$/))throw"malformed oid string: "+n;var i="",s=n.split("."),o=parseInt(s[0])*40+parseInt(s[1]);i+=t(o),s.splice(0,2);for(var u=0;u<s.length;u++)i+=e(s[u]);this.hTLV=null,this.isModified=!0,this.s=null,this.hV=i},this.setValueName=function(n){var i=B.asn1.x509.OID.name2oid(n);if(i!=="")this.setValueOidString(i);else throw"DERObjectIdentifier oidName undefined: "+n},this.getFreshValueHex=function(){return this.hV},r!==void 0&&(typeof r=="string"?r.match(/^[0-2].[0-9.]+$/)?this.setValueOidString(r):this.setValueName(r):r.oid!==void 0?this.setValueOidString(r.oid):r.hex!==void 0?this.setValueHex(r.hex):r.name!==void 0&&this.setValueName(r.name))};tt(B.asn1.DERObjectIdentifier,B.asn1.ASN1Object);B.asn1.DEREnumerated=function(r){B.asn1.DEREnumerated.superclass.constructor.call(this),this.hT="0a",this.setByBigInteger=function(t){this.hTLV=null,this.isModified=!0,this.hV=B.asn1.ASN1Util.bigIntToMinTwosComplementsHex(t)},this.setByInteger=function(t){var e=new W(String(t),10);this.setByBigInteger(e)},this.setValueHex=function(t){this.hV=t},this.getFreshValueHex=function(){return this.hV},typeof r!="undefined"&&(typeof r.int!="undefined"?this.setByInteger(r.int):typeof r=="number"?this.setByInteger(r):typeof r.hex!="undefined"&&this.setValueHex(r.hex))};tt(B.asn1.DEREnumerated,B.asn1.ASN1Object);B.asn1.DERUTF8String=function(r){B.asn1.DERUTF8String.superclass.constructor.call(this,r),this.hT="0c"};tt(B.asn1.DERUTF8String,B.asn1.DERAbstractString);B.asn1.DERNumericString=function(r){B.asn1.DERNumericString.superclass.constructor.call(this,r),this.hT="12"};tt(B.asn1.DERNumericString,B.asn1.DERAbstractString);B.asn1.DERPrintableString=function(r){B.asn1.DERPrintableString.superclass.constructor.call(this,r),this.hT="13"};tt(B.asn1.DERPrintableString,B.asn1.DERAbstractString);B.asn1.DERTeletexString=function(r){B.asn1.DERTeletexString.superclass.constructor.call(this,r),this.hT="14"};tt(B.asn1.DERTeletexString,B.asn1.DERAbstractString);B.asn1.DERIA5String=function(r){B.asn1.DERIA5String.superclass.constructor.call(this,r),this.hT="16"};tt(B.asn1.DERIA5String,B.asn1.DERAbstractString);B.asn1.DERUTCTime=function(r){B.asn1.DERUTCTime.superclass.constructor.call(this,r),this.hT="17",this.setByDate=function(t){this.hTLV=null,this.isModified=!0,this.date=t,this.s=this.formatDate(this.date,"utc"),this.hV=stohex(this.s)},this.getFreshValueHex=function(){return typeof this.date=="undefined"&&typeof this.s=="undefined"&&(this.date=new Date,this.s=this.formatDate(this.date,"utc"),this.hV=stohex(this.s)),this.hV},r!==void 0&&(r.str!==void 0?this.setString(r.str):typeof r=="string"&&r.match(/^[0-9]{12}Z$/)?this.setString(r):r.hex!==void 0?this.setStringHex(r.hex):r.date!==void 0&&this.setByDate(r.date))};tt(B.asn1.DERUTCTime,B.asn1.DERAbstractTime);B.asn1.DERGeneralizedTime=function(r){B.asn1.DERGeneralizedTime.superclass.constructor.call(this,r),this.hT="18",this.withMillis=!1,this.setByDate=function(t){this.hTLV=null,this.isModified=!0,this.date=t,this.s=this.formatDate(this.date,"gen",this.withMillis),this.hV=stohex(this.s)},this.getFreshValueHex=function(){return this.date===void 0&&this.s===void 0&&(this.date=new Date,this.s=this.formatDate(this.date,"gen",this.withMillis),this.hV=stohex(this.s)),this.hV},r!==void 0&&(r.str!==void 0?this.setString(r.str):typeof r=="string"&&r.match(/^[0-9]{14}Z$/)?this.setString(r):r.hex!==void 0?this.setStringHex(r.hex):r.date!==void 0&&this.setByDate(r.date),r.millis===!0&&(this.withMillis=!0))};tt(B.asn1.DERGeneralizedTime,B.asn1.DERAbstractTime);B.asn1.DERSequence=function(r){B.asn1.DERSequence.superclass.constructor.call(this,r),this.hT="30",this.getFreshValueHex=function(){for(var t="",e=0;e<this.asn1Array.length;e++){var n=this.asn1Array[e];t+=n.getEncodedHex()}return this.hV=t,this.hV}};tt(B.asn1.DERSequence,B.asn1.DERAbstractStructured);B.asn1.DERSet=function(r){B.asn1.DERSet.superclass.constructor.call(this,r),this.hT="31",this.sortFlag=!0,this.getFreshValueHex=function(){for(var t=new Array,e=0;e<this.asn1Array.length;e++){var n=this.asn1Array[e];t.push(n.getEncodedHex())}return this.sortFlag==!0&&t.sort(),this.hV=t.join(""),this.hV},typeof r!="undefined"&&typeof r.sortflag!="undefined"&&r.sortflag==!1&&(this.sortFlag=!1)};tt(B.asn1.DERSet,B.asn1.DERAbstractStructured);B.asn1.DERTaggedObject=function(r){B.asn1.DERTaggedObject.superclass.constructor.call(this),this.hT="a0",this.hV="",this.isExplicit=!0,this.asn1Object=null,this.setASN1Object=function(t,e,n){this.hT=e,this.isExplicit=t,this.asn1Object=n,this.isExplicit?(this.hV=this.asn1Object.getEncodedHex(),this.hTLV=null,this.isModified=!0):(this.hV=null,this.hTLV=n.getEncodedHex(),this.hTLV=this.hTLV.replace(/^../,e),this.isModified=!1)},this.getFreshValueHex=function(){return this.hV},typeof r!="undefined"&&(typeof r.tag!="undefined"&&(this.hT=r.tag),typeof r.explicit!="undefined"&&(this.isExplicit=r.explicit),typeof r.obj!="undefined"&&(this.asn1Object=r.obj,this.setASN1Object(this.isExplicit,this.hT,this.asn1Object)))};tt(B.asn1.DERTaggedObject,B.asn1.ASN1Object);var Md=(function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(n[s]=i[s])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}})(),Ci=(function(r){Md(t,r);function t(e){var n=r.call(this)||this;return e&&(typeof e=="string"?n.parseKey(e):(t.hasPrivateKeyProperty(e)||t.hasPublicKeyProperty(e))&&n.parsePropertiesFrom(e)),n}return t.prototype.parseKey=function(e){try{var n=0,i=0,s=/^\s*(?:[0-9A-Fa-f][0-9A-Fa-f]\s*)+$/,o=s.test(e)?ud.decode(e):Jr.unarmor(e),u=fd.decode(o);if(u.sub.length===3&&(u=u.sub[2].sub[0]),u.sub.length===9){n=u.sub[1].getHexStringValue(),this.n=Z(n,16),i=u.sub[2].getHexStringValue(),this.e=parseInt(i,16);var l=u.sub[3].getHexStringValue();this.d=Z(l,16);var a=u.sub[4].getHexStringValue();this.p=Z(a,16);var c=u.sub[5].getHexStringValue();this.q=Z(c,16);var f=u.sub[6].getHexStringValue();this.dmp1=Z(f,16);var h=u.sub[7].getHexStringValue();this.dmq1=Z(h,16);var p=u.sub[8].getHexStringValue();this.coeff=Z(p,16)}else if(u.sub.length===2)if(u.sub[0].sub){var d=u.sub[1],g=d.sub[0];n=g.sub[0].getHexStringValue(),this.n=Z(n,16),i=g.sub[1].getHexStringValue(),this.e=parseInt(i,16)}else n=u.sub[0].getHexStringValue(),this.n=Z(n,16),i=u.sub[1].getHexStringValue(),this.e=parseInt(i,16);else return!1;return!0}catch(y){return!1}},t.prototype.getPrivateBaseKey=function(){var e={array:[new B.asn1.DERInteger({int:0}),new B.asn1.DERInteger({bigint:this.n}),new B.asn1.DERInteger({int:this.e}),new B.asn1.DERInteger({bigint:this.d}),new B.asn1.DERInteger({bigint:this.p}),new B.asn1.DERInteger({bigint:this.q}),new B.asn1.DERInteger({bigint:this.dmp1}),new B.asn1.DERInteger({bigint:this.dmq1}),new B.asn1.DERInteger({bigint:this.coeff})]},n=new B.asn1.DERSequence(e);return n.getEncodedHex()},t.prototype.getPrivateBaseKeyB64=function(){return be(this.getPrivateBaseKey())},t.prototype.getPublicBaseKey=function(){var e=new B.asn1.DERSequence({array:[new B.asn1.DERObjectIdentifier({oid:"1.2.840.113549.1.1.1"}),new B.asn1.DERNull]}),n=new B.asn1.DERSequence({array:[new B.asn1.DERInteger({bigint:this.n}),new B.asn1.DERInteger({int:this.e})]}),i=new B.asn1.DERBitString({hex:"00"+n.getEncodedHex()}),s=new B.asn1.DERSequence({array:[e,i]});return s.getEncodedHex()},t.prototype.getPublicBaseKeyB64=function(){return be(this.getPublicBaseKey())},t.wordwrap=function(e,n){if(n=n||64,!e)return e;var i="(.{1,"+n+`})( +|$
|
|
34
34
|
?)|(.{1,`+n+"})";return e.match(RegExp(i,"g")).join(`
|
|
35
35
|
`)},t.prototype.getPrivateKey=function(){var e=`-----BEGIN RSA PRIVATE KEY-----
|
|
36
36
|
`;return e+=t.wordwrap(this.getPrivateBaseKeyB64())+`
|
|
@@ -42,33 +42,33 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
42
42
|
* author : Adam Draper
|
|
43
43
|
* license : MIT
|
|
44
44
|
* http://adamwdraper.github.com/Numeral-js/
|
|
45
|
-
*/(function(r){(function(t,e){r.exports?r.exports=e():t.numeral=e()})(ot,function(){var t,e,n="2.0.6",i={},s={},o={currentLocale:"en",zeroFormat:null,nullFormat:null,defaultFormat:"0,0",scalePercentBy100:!0},u={currentLocale:o.currentLocale,zeroFormat:o.zeroFormat,nullFormat:o.nullFormat,defaultFormat:o.defaultFormat,scalePercentBy100:o.scalePercentBy100};function l(a,c){this._input=a,this._value=c}return t=function(a){var c,f,h,p;if(t.isNumeral(a))c=a.value();else if(a===0||typeof a=="undefined")c=0;else if(a===null||e.isNaN(a))c=null;else if(typeof a=="string")if(u.zeroFormat&&a===u.zeroFormat)c=0;else if(u.nullFormat&&a===u.nullFormat||!a.replace(/[^0-9]+/g,"").length)c=null;else{for(f in i)if(p=typeof i[f].regexps.unformat=="function"?i[f].regexps.unformat():i[f].regexps.unformat,p&&a.match(p)){h=i[f].unformat;break}h=h||t._.stringToNumber,c=h(a)}else c=Number(a)||null;return new l(a,c)},t.version=n,t.isNumeral=function(a){return a instanceof l},t._=e={numberToFormat:function(a,c,f){var h=s[t.options.currentLocale],p=!1,d=!1,g=0,b="",w=1e12,m=1e9,y=1e6,_=1e3,S="",v=!1,T,A,L,E,x,M,C;if(a=a||0,A=Math.abs(a),t._.includes(c,"(")?(p=!0,c=c.replace(/[\(|\)]/g,"")):(t._.includes(c,"+")||t._.includes(c,"-"))&&(x=t._.includes(c,"+")?c.indexOf("+"):a<0?c.indexOf("-"):-1,c=c.replace(/[\+|\-]/g,"")),t._.includes(c,"a")&&(T=c.match(/a(k|m|b|t)?/),T=T?T[1]:!1,t._.includes(c," a")&&(b=" "),c=c.replace(new RegExp(b+"a[kmbt]?"),""),A>=w&&!T||T==="t"?(b+=h.abbreviations.trillion,a=a/w):A<w&&A>=m&&!T||T==="b"?(b+=h.abbreviations.billion,a=a/m):A<m&&A>=y&&!T||T==="m"?(b+=h.abbreviations.million,a=a/y):(A<y&&A>=_&&!T||T==="k")&&(b+=h.abbreviations.thousand,a=a/_)),t._.includes(c,"[.]")&&(d=!0,c=c.replace("[.]",".")),L=a.toString().split(".")[0],E=c.split(".")[1],M=c.indexOf(","),g=(c.split(".")[0].split(",")[0].match(/0/g)||[]).length,E?(t._.includes(E,"[")?(E=E.replace("]",""),E=E.split("["),S=t._.toFixed(a,E[0].length+E[1].length,f,E[1].length)):S=t._.toFixed(a,E.length,f),L=S.split(".")[0],t._.includes(S,".")?S=h.delimiters.decimal+S.split(".")[1]:S="",d&&Number(S.slice(1))===0&&(S="")):L=t._.toFixed(a,0,f),b&&!T&&Number(L)>=1e3&&b!==h.abbreviations.trillion)switch(L=String(Number(L)/1e3),b){case h.abbreviations.thousand:b=h.abbreviations.million;break;case h.abbreviations.million:b=h.abbreviations.billion;break;case h.abbreviations.billion:b=h.abbreviations.trillion;break}if(t._.includes(L,"-")&&(L=L.slice(1),v=!0),L.length<g)for(var I=g-L.length;I>0;I--)L="0"+L;return M>-1&&(L=L.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+h.delimiters.thousands)),c.indexOf(".")===0&&(L=""),C=L+S+(b||""),p?C=(p&&v?"(":"")+C+(p&&v?")":""):x>=0?C=x===0?(v?"-":"+")+C:C+(v?"-":"+"):v&&(C="-"+C),C},stringToNumber:function(a){var c=s[u.currentLocale],f=a,h={thousand:3,million:6,billion:9,trillion:12},p,d,g;if(u.zeroFormat&&a===u.zeroFormat)d=0;else if(u.nullFormat&&a===u.nullFormat||!a.replace(/[^0-9]+/g,"").length)d=null;else{d=1,c.delimiters.decimal!=="."&&(a=a.replace(/\./g,"").replace(c.delimiters.decimal,"."));for(p in h)if(g=new RegExp("[^a-zA-Z]"+c.abbreviations[p]+"(?:\\)|(\\"+c.currency.symbol+")?(?:\\))?)?$"),f.match(g)){d*=Math.pow(10,h[p]);break}d*=(a.split("-").length+Math.min(a.split("(").length-1,a.split(")").length-1))%2?1:-1,a=a.replace(/[^0-9\.]+/g,""),d*=Number(a)}return d},isNaN:function(a){return typeof a=="number"&&isNaN(a)},includes:function(a,c){return a.indexOf(c)!==-1},insert:function(a,c,f){return a.slice(0,f)+c+a.slice(f)},reduce:function(a,c){if(this===null)throw new TypeError("Array.prototype.reduce called on null or undefined");if(typeof c!="function")throw new TypeError(c+" is not a function");var f=Object(a),h=f.length>>>0,p=0,d;if(arguments.length===3)d=arguments[2];else{for(;p<h&&!(p in f);)p++;if(p>=h)throw new TypeError("Reduce of empty array with no initial value");d=f[p++]}for(;p<h;p++)p in f&&(d=c(d,f[p],p,f));return d},multiplier:function(a){var c=a.toString().split(".");return c.length<2?1:Math.pow(10,c[1].length)},correctionFactor:function(){var a=Array.prototype.slice.call(arguments);return a.reduce(function(c,f){var h=e.multiplier(f);return c>h?c:h},1)},toFixed:function(a,c,f,h){var p=a.toString().split("."),d=c-(h||0),g,b,w,m;return p.length===2?g=Math.min(Math.max(p[1].length,d),c):g=d,w=Math.pow(10,g),m=(f(a+"e+"+g)/w).toFixed(g),h>c-g&&(b=new RegExp("\\.?0{1,"+(h-(c-g))+"}$"),m=m.replace(b,"")),m}},t.options=u,t.formats=i,t.locales=s,t.locale=function(a){return a&&(u.currentLocale=a.toLowerCase()),u.currentLocale},t.localeData=function(a){if(!a)return s[u.currentLocale];if(a=a.toLowerCase(),!s[a])throw new Error("Unknown locale : "+a);return s[a]},t.reset=function(){for(var a in o)u[a]=o[a]},t.zeroFormat=function(a){u.zeroFormat=typeof a=="string"?a:null},t.nullFormat=function(a){u.nullFormat=typeof a=="string"?a:null},t.defaultFormat=function(a){u.defaultFormat=typeof a=="string"?a:"0.0"},t.register=function(a,c,f){if(c=c.toLowerCase(),this[a+"s"][c])throw new TypeError(c+" "+a+" already registered.");return this[a+"s"][c]=f,f},t.validate=function(a,c){var f,h,p,d,g,b,w,m;if(typeof a!="string"&&(a+="",console.warn&&console.warn("Numeral.js: Value is not string. It has been co-erced to: ",a)),a=a.trim(),a.match(/^\d+$/))return!0;if(a==="")return!1;try{w=t.localeData(c)}catch(y){w=t.localeData(t.locale())}return p=w.currency.symbol,g=w.abbreviations,f=w.delimiters.decimal,w.delimiters.thousands==="."?h="\\.":h=w.delimiters.thousands,m=a.match(/^[^\d]+/),m!==null&&(a=a.substr(1),m[0]!==p)||(m=a.match(/[^\d]+$/),m!==null&&(a=a.slice(0,-1),m[0]!==g.thousand&&m[0]!==g.million&&m[0]!==g.billion&&m[0]!==g.trillion))?!1:(b=new RegExp(h+"{2}"),a.match(/[^\d.,]/g)?!1:(d=a.split(f),d.length>2?!1:d.length<2?!!d[0].match(/^\d+.*\d$/)&&!d[0].match(b):d[0].length===1?!!d[0].match(/^\d+$/)&&!d[0].match(b)&&!!d[1].match(/^\d+$/):!!d[0].match(/^\d+.*\d$/)&&!d[0].match(b)&&!!d[1].match(/^\d+$/)))},t.fn=l.prototype={clone:function(){return t(this)},format:function(a,c){var f=this._value,h=a||u.defaultFormat,p,d,g;if(c=c||Math.round,f===0&&u.zeroFormat!==null)d=u.zeroFormat;else if(f===null&&u.nullFormat!==null)d=u.nullFormat;else{for(p in i)if(h.match(i[p].regexps.format)){g=i[p].format;break}g=g||t._.numberToFormat,d=g(f,h,c)}return d},value:function(){return this._value},input:function(){return this._input},set:function(a){return this._value=Number(a),this},add:function(a){var c=e.correctionFactor.call(null,this._value,a);function f(h,p,d,g){return h+Math.round(c*p)}return this._value=e.reduce([this._value,a],f,0)/c,this},subtract:function(a){var c=e.correctionFactor.call(null,this._value,a);function f(h,p,d,g){return h-Math.round(c*p)}return this._value=e.reduce([a],f,Math.round(this._value*c))/c,this},multiply:function(a){function c(f,h,p,d){var g=e.correctionFactor(f,h);return Math.round(f*g)*Math.round(h*g)/Math.round(g*g)}return this._value=e.reduce([this._value,a],c,1),this},divide:function(a){function c(f,h,p,d){var g=e.correctionFactor(f,h);return Math.round(f*g)/Math.round(h*g)}return this._value=e.reduce([this._value,a],c),this},difference:function(a){return Math.abs(t(this._value).subtract(a).value())}},t.register("locale","en",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(a){var c=a%10;return~~(a%100/10)===1?"th":c===1?"st":c===2?"nd":c===3?"rd":"th"},currency:{symbol:"$"}}),(function(){t.register("format","bps",{regexps:{format:/(BPS)/,unformat:/(BPS)/},format:function(a,c,f){var h=t._.includes(c," BPS")?" ":"",p;return a=a*1e4,c=c.replace(/\s?BPS/,""),p=t._.numberToFormat(a,c,f),t._.includes(p,")")?(p=p.split(""),p.splice(-1,0,h+"BPS"),p=p.join("")):p=p+h+"BPS",p},unformat:function(a){return+(t._.stringToNumber(a)*1e-4).toFixed(15)}})})(),(function(){var a={base:1e3,suffixes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]},c={base:1024,suffixes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},f=a.suffixes.concat(c.suffixes.filter(function(p){return a.suffixes.indexOf(p)<0})),h=f.join("|");h="("+h.replace("B","B(?!PS)")+")",t.register("format","bytes",{regexps:{format:/([0\s]i?b)/,unformat:new RegExp(h)},format:function(p,d,g){var b,w=t._.includes(d,"ib")?c:a,m=t._.includes(d," b")||t._.includes(d," ib")?" ":"",y,_,S;for(d=d.replace(/\s?i?b/,""),y=0;y<=w.suffixes.length;y++)if(_=Math.pow(w.base,y),S=Math.pow(w.base,y+1),p===null||p===0||p>=_&&p<S){m+=w.suffixes[y],_>0&&(p=p/_);break}return b=t._.numberToFormat(p,d,g),b+m},unformat:function(p){var d=t._.stringToNumber(p),g,b;if(d){for(g=a.suffixes.length-1;g>=0;g--){if(t._.includes(p,a.suffixes[g])){b=Math.pow(a.base,g);break}if(t._.includes(p,c.suffixes[g])){b=Math.pow(c.base,g);break}}d*=b||1}return d}})})(),(function(){t.register("format","currency",{regexps:{format:/(\$)/},format:function(a,c,f){var h=t.locales[t.options.currentLocale],p={before:c.match(/^([\+|\-|\(|\s|\$]*)/)[0],after:c.match(/([\+|\-|\)|\s|\$]*)$/)[0]},d,g,b;for(c=c.replace(/\s?\$\s?/,""),d=t._.numberToFormat(a,c,f),a>=0?(p.before=p.before.replace(/[\-\(]/,""),p.after=p.after.replace(/[\-\)]/,"")):a<0&&!t._.includes(p.before,"-")&&!t._.includes(p.before,"(")&&(p.before="-"+p.before),b=0;b<p.before.length;b++)switch(g=p.before[b],g){case"$":d=t._.insert(d,h.currency.symbol,b);break;case" ":d=t._.insert(d," ",b+h.currency.symbol.length-1);break}for(b=p.after.length-1;b>=0;b--)switch(g=p.after[b],g){case"$":d=b===p.after.length-1?d+h.currency.symbol:t._.insert(d,h.currency.symbol,-(p.after.length-(1+b)));break;case" ":d=b===p.after.length-1?d+" ":t._.insert(d," ",-(p.after.length-(1+b)+h.currency.symbol.length-1));break}return d}})})(),(function(){t.register("format","exponential",{regexps:{format:/(e\+|e-)/,unformat:/(e\+|e-)/},format:function(a,c,f){var h,p=typeof a=="number"&&!t._.isNaN(a)?a.toExponential():"0e+0",d=p.split("e");return c=c.replace(/e[\+|\-]{1}0/,""),h=t._.numberToFormat(Number(d[0]),c,f),h+"e"+d[1]},unformat:function(a){var c=t._.includes(a,"e+")?a.split("e+"):a.split("e-"),f=Number(c[0]),h=Number(c[1]);h=t._.includes(a,"e-")?h*=-1:h;function p(d,g,b,w){var m=t._.correctionFactor(d,g),y=d*m*(g*m)/(m*m);return y}return t._.reduce([f,Math.pow(10,h)],p,1)}})})(),(function(){t.register("format","ordinal",{regexps:{format:/(o)/},format:function(a,c,f){var h=t.locales[t.options.currentLocale],p,d=t._.includes(c," o")?" ":"";return c=c.replace(/\s?o/,""),d+=h.ordinal(a),p=t._.numberToFormat(a,c,f),p+d}})})(),(function(){t.register("format","percentage",{regexps:{format:/(%)/,unformat:/(%)/},format:function(a,c,f){var h=t._.includes(c," %")?" ":"",p;return t.options.scalePercentBy100&&(a=a*100),c=c.replace(/\s?\%/,""),p=t._.numberToFormat(a,c,f),t._.includes(p,")")?(p=p.split(""),p.splice(-1,0,h+"%"),p=p.join("")):p=p+h+"%",p},unformat:function(a){var c=t._.stringToNumber(a);return t.options.scalePercentBy100?c*.01:c}})})(),(function(){t.register("format","time",{regexps:{format:/(:)/,unformat:/(:)/},format:function(a,c,f){var h=Math.floor(a/60/60),p=Math.floor((a-h*60*60)/60),d=Math.round(a-h*60*60-p*60);return h+":"+(p<10?"0"+p:p)+":"+(d<10?"0"+d:d)},unformat:function(a){var c=a.split(":"),f=0;return c.length===3?(f=f+Number(c[0])*60*60,f=f+Number(c[1])*60,f=f+Number(c[2])):c.length===2&&(f=f+Number(c[0])*60,f=f+Number(c[1])),Number(f)}})})(),t})})(kd);var yo={exports:{}};(function(r,t){(function(e,n){r.exports=n()})(ot,(function(){var e=1e3,n=6e4,i=36e5,s="millisecond",o="second",u="minute",l="hour",a="day",c="week",f="month",h="quarter",p="year",d="date",g="Invalid Date",b=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,w=/\[([^\]]+)]|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(I){var j=["th","st","nd","rd"],$=I%100;return"["+I+(j[($-20)%10]||j[$]||j[0])+"]"}},y=function(I,j,$){var k=String(I);return!k||k.length>=j?I:""+Array(j+1-k.length).join($)+I},_={s:y,z:function(I){var j=-I.utcOffset(),$=Math.abs(j),k=Math.floor($/60),F=$%60;return(j<=0?"+":"-")+y(k,2,"0")+":"+y(F,2,"0")},m:function I(j,$){if(j.date()<$.date())return-I($,j);var k=12*($.year()-j.year())+($.month()-j.month()),F=j.clone().add(k,f),V=$-F<0,q=j.clone().add(k+(V?-1:1),f);return+(-(k+($-F)/(V?F-q:q-F))||0)},a:function(I){return I<0?Math.ceil(I)||0:Math.floor(I)},p:function(I){return{M:f,y:p,w:c,d:a,D:d,h:l,m:u,s:o,ms:s,Q:h}[I]||String(I||"").toLowerCase().replace(/s$/,"")},u:function(I){return I===void 0}},S="en",v={};v[S]=m;var T="$isDayjsObject",A=function(I){return I instanceof M||!(!I||!I[T])},L=function I(j,$,k){var F;if(!j)return S;if(typeof j=="string"){var V=j.toLowerCase();v[V]&&(F=V),$&&(v[V]=$,F=V);var q=j.split("-");if(!F&&q.length>1)return I(q[0])}else{var O=j.name;v[O]=j,F=O}return!k&&F&&(S=F),F||!k&&S},E=function(I,j){if(A(I))return I.clone();var $=typeof j=="object"?j:{};return $.date=I,$.args=arguments,new M($)},x=_;x.l=L,x.i=A,x.w=function(I,j){return E(I,{locale:j.$L,utc:j.$u,x:j.$x,$offset:j.$offset})};var M=(function(){function I($){this.$L=L($.locale,null,!0),this.parse($),this.$x=this.$x||$.x||{},this[T]=!0}var j=I.prototype;return j.parse=function($){this.$d=(function(k){var F=k.date,V=k.utc;if(F===null)return new Date(NaN);if(x.u(F))return new Date;if(F instanceof Date)return new Date(F);if(typeof F=="string"&&!/Z$/i.test(F)){var q=F.match(b);if(q){var O=q[2]-1||0,D=(q[7]||"0").substring(0,3);return V?new Date(Date.UTC(q[1],O,q[3]||1,q[4]||0,q[5]||0,q[6]||0,D)):new Date(q[1],O,q[3]||1,q[4]||0,q[5]||0,q[6]||0,D)}}return new Date(F)})($),this.init()},j.init=function(){var $=this.$d;this.$y=$.getFullYear(),this.$M=$.getMonth(),this.$D=$.getDate(),this.$W=$.getDay(),this.$H=$.getHours(),this.$m=$.getMinutes(),this.$s=$.getSeconds(),this.$ms=$.getMilliseconds()},j.$utils=function(){return x},j.isValid=function(){return this.$d.toString()!==g},j.isSame=function($,k){var F=E($);return this.startOf(k)<=F&&F<=this.endOf(k)},j.isAfter=function($,k){return E($)<this.startOf(k)},j.isBefore=function($,k){return this.endOf(k)<E($)},j.$g=function($,k,F){return x.u($)?this[k]:this.set(F,$)},j.unix=function(){return Math.floor(this.valueOf()/1e3)},j.valueOf=function(){return this.$d.getTime()},j.startOf=function($,k){var F=this,V=!!x.u(k)||k,q=x.p($),O=function(It,at){var Ot=x.w(F.$u?Date.UTC(F.$y,at,It):new Date(F.$y,at,It),F);return V?Ot:Ot.endOf(a)},D=function(It,at){return x.w(F.toDate()[It].apply(F.toDate("s"),(V?[0,0,0,0]:[23,59,59,999]).slice(at)),F)},P=this.$W,N=this.$M,nt=this.$D,Gt="set"+(this.$u?"UTC":"");switch(q){case p:return V?O(1,0):O(31,11);case f:return V?O(1,N):O(0,N+1);case c:var Nt=this.$locale().weekStart||0,fe=(P<Nt?P+7:P)-Nt;return O(V?nt-fe:nt+(6-fe),N);case a:case d:return D(Gt+"Hours",0);case l:return D(Gt+"Minutes",1);case u:return D(Gt+"Seconds",2);case o:return D(Gt+"Milliseconds",3);default:return this.clone()}},j.endOf=function($){return this.startOf($,!1)},j.$set=function($,k){var F,V=x.p($),q="set"+(this.$u?"UTC":""),O=(F={},F[a]=q+"Date",F[d]=q+"Date",F[f]=q+"Month",F[p]=q+"FullYear",F[l]=q+"Hours",F[u]=q+"Minutes",F[o]=q+"Seconds",F[s]=q+"Milliseconds",F)[V],D=V===a?this.$D+(k-this.$W):k;if(V===f||V===p){var P=this.clone().set(d,1);P.$d[O](D),P.init(),this.$d=P.set(d,Math.min(this.$D,P.daysInMonth())).$d}else O&&this.$d[O](D);return this.init(),this},j.set=function($,k){return this.clone().$set($,k)},j.get=function($){return this[x.p($)]()},j.add=function($,k){var F,V=this;$=Number($);var q=x.p(k),O=function(N){var nt=E(V);return x.w(nt.date(nt.date()+Math.round(N*$)),V)};if(q===f)return this.set(f,this.$M+$);if(q===p)return this.set(p,this.$y+$);if(q===a)return O(1);if(q===c)return O(7);var D=(F={},F[u]=n,F[l]=i,F[o]=e,F)[q]||1,P=this.$d.getTime()+$*D;return x.w(P,this)},j.subtract=function($,k){return this.add(-1*$,k)},j.format=function($){var k=this,F=this.$locale();if(!this.isValid())return F.invalidDate||g;var V=$||"YYYY-MM-DDTHH:mm:ssZ",q=x.z(this),O=this.$H,D=this.$m,P=this.$M,N=F.weekdays,nt=F.months,Gt=F.meridiem,Nt=function(at,Ot,he,$e){return at&&(at[Ot]||at(k,V))||he[Ot].slice(0,$e)},fe=function(at){return x.s(O%12||12,at,"0")},It=Gt||function(at,Ot,he){var $e=at<12?"AM":"PM";return he?$e.toLowerCase():$e};return V.replace(w,(function(at,Ot){return Ot||(function(he){switch(he){case"YY":return String(k.$y).slice(-2);case"YYYY":return x.s(k.$y,4,"0");case"M":return P+1;case"MM":return x.s(P+1,2,"0");case"MMM":return Nt(F.monthsShort,P,nt,3);case"MMMM":return Nt(nt,P);case"D":return k.$D;case"DD":return x.s(k.$D,2,"0");case"d":return String(k.$W);case"dd":return Nt(F.weekdaysMin,k.$W,N,2);case"ddd":return Nt(F.weekdaysShort,k.$W,N,3);case"dddd":return N[k.$W];case"H":return String(O);case"HH":return x.s(O,2,"0");case"h":return fe(1);case"hh":return fe(2);case"a":return It(O,D,!0);case"A":return It(O,D,!1);case"m":return String(D);case"mm":return x.s(D,2,"0");case"s":return String(k.$s);case"ss":return x.s(k.$s,2,"0");case"SSS":return x.s(k.$ms,3,"0");case"Z":return q}return null})(at)||q.replace(":","")}))},j.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},j.diff=function($,k,F){var V,q=this,O=x.p(k),D=E($),P=(D.utcOffset()-this.utcOffset())*n,N=this-D,nt=function(){return x.m(q,D)};switch(O){case p:V=nt()/12;break;case f:V=nt();break;case h:V=nt()/3;break;case c:V=(N-P)/6048e5;break;case a:V=(N-P)/864e5;break;case l:V=N/i;break;case u:V=N/n;break;case o:V=N/e;break;default:V=N}return F?V:x.a(V)},j.daysInMonth=function(){return this.endOf(f).$D},j.$locale=function(){return v[this.$L]},j.locale=function($,k){if(!$)return this.$L;var F=this.clone(),V=L($,k,!0);return V&&(F.$L=V),F},j.clone=function(){return x.w(this.$d,this)},j.toDate=function(){return new Date(this.valueOf())},j.toJSON=function(){return this.isValid()?this.toISOString():null},j.toISOString=function(){return this.$d.toISOString()},j.toString=function(){return this.$d.toUTCString()},I})(),C=M.prototype;return E.prototype=C,[["$ms",s],["$s",o],["$m",u],["$H",l],["$W",a],["$M",f],["$y",p],["$D",d]].forEach((function(I){C[I[1]]=function(j){return this.$g(j,I[0],I[1])}})),E.extend=function(I,j){return I.$i||(I(j,M,E),I.$i=!0),E},E.locale=L,E.isDayjs=A,E.unix=function(I){return E(1e3*I)},E.en=v[S],E.Ls=v,E.p={},E}))})(yo);var bo=yo.exports;const Hd=Gp(bo);var Vd={exports:{}};(function(r,t){(function(e,n){r.exports=n(bo)})(ot,(function(e){function n(o){return o&&typeof o=="object"&&"default"in o?o:{default:o}}var i=n(e),s={name:"zh-cn",weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),ordinal:function(o,u){return u==="W"?o+"周":o+"日"},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},relativeTime:{future:"%s内",past:"%s前",s:"几秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},meridiem:function(o,u){var l=100*o+u;return l<600?"凌晨":l<900?"早上":l<1100?"上午":l<1300?"中午":l<1800?"下午":"晚上"}};return i.default.locale(s,null,!0),s}))})(Vd);Hd.locale("zh-cn");function qd(r=!0){const t="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){const n=Math.random()*16|0;return(e==="x"?n:n&3|8).toString(16)});return r?t.toLowerCase():t.replace(/-/gi,"")}function Ze(r=0){return U(this,null,function*(){return new Promise(t=>{setTimeout(t,r)})})}function zd(r){return[...r.entries()].reduce((t,[e,n])=>(t[e]=n,t),{})}function Wd(r,t){return Array.from(new Set(r))}function ji(r){return r?[].concat(r):[]}function xr(r,t){const e={};if(Array.isArray(t))Object.keys(r).forEach(n=>{t.includes(n)||(e[n]=r[n])});else{const n=t;Object.entries(r).forEach(([i,s])=>{n(i,s)||(e[i]=s)})}return e}function Kd(r,t){const e={};if(Array.isArray(t))Object.keys(r).forEach(n=>{t.includes(n)&&(e[n]=r[n])});else{const n=t;Object.entries(r).forEach(([i,s])=>{n(i,s)&&(e[i]=s)})}return e}var _o={exports:{}};(function(r){var t=(function(){var e=String.fromCharCode,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",s={};function o(l,a){if(!s[l]){s[l]={};for(var c=0;c<l.length;c++)s[l][l.charAt(c)]=c}return s[l][a]}var u={compressToBase64:function(l){if(l==null)return"";var a=u._compress(l,6,function(c){return n.charAt(c)});switch(a.length%4){default:case 0:return a;case 1:return a+"===";case 2:return a+"==";case 3:return a+"="}},decompressFromBase64:function(l){return l==null?"":l==""?null:u._decompress(l.length,32,function(a){return o(n,l.charAt(a))})},compressToUTF16:function(l){return l==null?"":u._compress(l,15,function(a){return e(a+32)})+" "},decompressFromUTF16:function(l){return l==null?"":l==""?null:u._decompress(l.length,16384,function(a){return l.charCodeAt(a)-32})},compressToUint8Array:function(l){for(var a=u.compress(l),c=new Uint8Array(a.length*2),f=0,h=a.length;f<h;f++){var p=a.charCodeAt(f);c[f*2]=p>>>8,c[f*2+1]=p%256}return c},decompressFromUint8Array:function(l){if(l==null)return u.decompress(l);for(var a=new Array(l.length/2),c=0,f=a.length;c<f;c++)a[c]=l[c*2]*256+l[c*2+1];var h=[];return a.forEach(function(p){h.push(e(p))}),u.decompress(h.join(""))},compressToEncodedURIComponent:function(l){return l==null?"":u._compress(l,6,function(a){return i.charAt(a)})},decompressFromEncodedURIComponent:function(l){return l==null?"":l==""?null:(l=l.replace(/ /g,"+"),u._decompress(l.length,32,function(a){return o(i,l.charAt(a))}))},compress:function(l){return u._compress(l,16,function(a){return e(a)})},_compress:function(l,a,c){if(l==null)return"";var f,h,p={},d={},g="",b="",w="",m=2,y=3,_=2,S=[],v=0,T=0,A;for(A=0;A<l.length;A+=1)if(g=l.charAt(A),Object.prototype.hasOwnProperty.call(p,g)||(p[g]=y++,d[g]=!0),b=w+g,Object.prototype.hasOwnProperty.call(p,b))w=b;else{if(Object.prototype.hasOwnProperty.call(d,w)){if(w.charCodeAt(0)<256){for(f=0;f<_;f++)v=v<<1,T==a-1?(T=0,S.push(c(v)),v=0):T++;for(h=w.charCodeAt(0),f=0;f<8;f++)v=v<<1|h&1,T==a-1?(T=0,S.push(c(v)),v=0):T++,h=h>>1}else{for(h=1,f=0;f<_;f++)v=v<<1|h,T==a-1?(T=0,S.push(c(v)),v=0):T++,h=0;for(h=w.charCodeAt(0),f=0;f<16;f++)v=v<<1|h&1,T==a-1?(T=0,S.push(c(v)),v=0):T++,h=h>>1}m--,m==0&&(m=Math.pow(2,_),_++),delete d[w]}else for(h=p[w],f=0;f<_;f++)v=v<<1|h&1,T==a-1?(T=0,S.push(c(v)),v=0):T++,h=h>>1;m--,m==0&&(m=Math.pow(2,_),_++),p[b]=y++,w=String(g)}if(w!==""){if(Object.prototype.hasOwnProperty.call(d,w)){if(w.charCodeAt(0)<256){for(f=0;f<_;f++)v=v<<1,T==a-1?(T=0,S.push(c(v)),v=0):T++;for(h=w.charCodeAt(0),f=0;f<8;f++)v=v<<1|h&1,T==a-1?(T=0,S.push(c(v)),v=0):T++,h=h>>1}else{for(h=1,f=0;f<_;f++)v=v<<1|h,T==a-1?(T=0,S.push(c(v)),v=0):T++,h=0;for(h=w.charCodeAt(0),f=0;f<16;f++)v=v<<1|h&1,T==a-1?(T=0,S.push(c(v)),v=0):T++,h=h>>1}m--,m==0&&(m=Math.pow(2,_),_++),delete d[w]}else for(h=p[w],f=0;f<_;f++)v=v<<1|h&1,T==a-1?(T=0,S.push(c(v)),v=0):T++,h=h>>1;m--,m==0&&(m=Math.pow(2,_),_++)}for(h=2,f=0;f<_;f++)v=v<<1|h&1,T==a-1?(T=0,S.push(c(v)),v=0):T++,h=h>>1;for(;;)if(v=v<<1,T==a-1){S.push(c(v));break}else T++;return S.join("")},decompress:function(l){return l==null?"":l==""?null:u._decompress(l.length,32768,function(a){return l.charCodeAt(a)})},_decompress:function(l,a,c){var f=[],h=4,p=4,d=3,g="",b=[],w,m,y,_,S,v,T,A={val:c(0),position:a,index:1};for(w=0;w<3;w+=1)f[w]=w;for(y=0,S=Math.pow(2,2),v=1;v!=S;)_=A.val&A.position,A.position>>=1,A.position==0&&(A.position=a,A.val=c(A.index++)),y|=(_>0?1:0)*v,v<<=1;switch(y){case 0:for(y=0,S=Math.pow(2,8),v=1;v!=S;)_=A.val&A.position,A.position>>=1,A.position==0&&(A.position=a,A.val=c(A.index++)),y|=(_>0?1:0)*v,v<<=1;T=e(y);break;case 1:for(y=0,S=Math.pow(2,16),v=1;v!=S;)_=A.val&A.position,A.position>>=1,A.position==0&&(A.position=a,A.val=c(A.index++)),y|=(_>0?1:0)*v,v<<=1;T=e(y);break;case 2:return""}for(f[3]=T,m=T,b.push(T);;){if(A.index>l)return"";for(y=0,S=Math.pow(2,d),v=1;v!=S;)_=A.val&A.position,A.position>>=1,A.position==0&&(A.position=a,A.val=c(A.index++)),y|=(_>0?1:0)*v,v<<=1;switch(T=y){case 0:for(y=0,S=Math.pow(2,8),v=1;v!=S;)_=A.val&A.position,A.position>>=1,A.position==0&&(A.position=a,A.val=c(A.index++)),y|=(_>0?1:0)*v,v<<=1;f[p++]=e(y),T=p-1,h--;break;case 1:for(y=0,S=Math.pow(2,16),v=1;v!=S;)_=A.val&A.position,A.position>>=1,A.position==0&&(A.position=a,A.val=c(A.index++)),y|=(_>0?1:0)*v,v<<=1;f[p++]=e(y),T=p-1,h--;break;case 2:return b.join("")}if(h==0&&(h=Math.pow(2,d),d++),f[T])g=f[T];else if(T===p)g=m+m.charAt(0);else return null;b.push(g),f[p++]=m+g.charAt(0),h--,m=g,h==0&&(h=Math.pow(2,d),d++)}}};return u})();r!=null?r.exports=t:typeof angular!="undefined"&&angular!=null&&angular.module("LZString",[]).factory("LZString",function(){return t})})(_o);var wo=_o.exports;function Jd(r){for(var t=[],e=0;e<r.length;){var n=r[e];if(n==="*"||n==="+"||n==="?"){t.push({type:"MODIFIER",index:e,value:r[e++]});continue}if(n==="\\"){t.push({type:"ESCAPED_CHAR",index:e++,value:r[e++]});continue}if(n==="{"){t.push({type:"OPEN",index:e,value:r[e++]});continue}if(n==="}"){t.push({type:"CLOSE",index:e,value:r[e++]});continue}if(n===":"){for(var i="",s=e+1;s<r.length;){var o=r.charCodeAt(s);if(o>=48&&o<=57||o>=65&&o<=90||o>=97&&o<=122||o===95){i+=r[s++];continue}break}if(!i)throw new TypeError("Missing parameter name at ".concat(e));t.push({type:"NAME",index:e,value:i}),e=s;continue}if(n==="("){var u=1,l="",s=e+1;if(r[s]==="?")throw new TypeError('Pattern cannot start with "?" at '.concat(s));for(;s<r.length;){if(r[s]==="\\"){l+=r[s++]+r[s++];continue}if(r[s]===")"){if(u--,u===0){s++;break}}else if(r[s]==="("&&(u++,r[s+1]!=="?"))throw new TypeError("Capturing groups are not allowed at ".concat(s));l+=r[s++]}if(u)throw new TypeError("Unbalanced pattern at ".concat(e));if(!l)throw new TypeError("Missing pattern at ".concat(e));t.push({type:"PATTERN",index:e,value:l}),e=s;continue}t.push({type:"CHAR",index:e,value:r[e++]})}return t.push({type:"END",index:e,value:""}),t}function Eo(r,t){t===void 0&&(t={});for(var e=Jd(r),n=t.prefixes,i=n===void 0?"./":n,s="[^".concat(re(t.delimiter||"/#?"),"]+?"),o=[],u=0,l=0,a="",c=function(v){if(l<e.length&&e[l].type===v)return e[l++].value},f=function(v){var T=c(v);if(T!==void 0)return T;var A=e[l],L=A.type,E=A.index;throw new TypeError("Unexpected ".concat(L," at ").concat(E,", expected ").concat(v))},h=function(){for(var v="",T;T=c("CHAR")||c("ESCAPED_CHAR");)v+=T;return v};l<e.length;){var p=c("CHAR"),d=c("NAME"),g=c("PATTERN");if(d||g){var b=p||"";i.indexOf(b)===-1&&(a+=b,b=""),a&&(o.push(a),a=""),o.push({name:d||u++,prefix:b,suffix:"",pattern:g||s,modifier:c("MODIFIER")||""});continue}var w=p||c("ESCAPED_CHAR");if(w){a+=w;continue}a&&(o.push(a),a="");var m=c("OPEN");if(m){var b=h(),y=c("NAME")||"",_=c("PATTERN")||"",S=h();f("CLOSE"),o.push({name:y||(_?u++:""),pattern:y&&!_?s:_,prefix:b,suffix:S,modifier:c("MODIFIER")||""});continue}f("END")}return o}function Gd(r,t){return Yd(Eo(r,t),t)}function Yd(r,t){t===void 0&&(t={});var e=_n(t),n=t.encode,i=n===void 0?function(l){return l}:n,s=t.validate,o=s===void 0?!0:s,u=r.map(function(l){if(typeof l=="object")return new RegExp("^(?:".concat(l.pattern,")$"),e)});return function(l){for(var a="",c=0;c<r.length;c++){var f=r[c];if(typeof f=="string"){a+=f;continue}var h=l?l[f.name]:void 0,p=f.modifier==="?"||f.modifier==="*",d=f.modifier==="*"||f.modifier==="+";if(Array.isArray(h)){if(!d)throw new TypeError('Expected "'.concat(f.name,'" to not repeat, but got an array'));if(h.length===0){if(p)continue;throw new TypeError('Expected "'.concat(f.name,'" to not be empty'))}for(var g=0;g<h.length;g++){var b=i(h[g],f);if(o&&!u[c].test(b))throw new TypeError('Expected all "'.concat(f.name,'" to match "').concat(f.pattern,'", but got "').concat(b,'"'));a+=f.prefix+b+f.suffix}continue}if(typeof h=="string"||typeof h=="number"){var b=i(String(h),f);if(o&&!u[c].test(b))throw new TypeError('Expected "'.concat(f.name,'" to match "').concat(f.pattern,'", but got "').concat(b,'"'));a+=f.prefix+b+f.suffix;continue}if(!p){var w=d?"an array":"a string";throw new TypeError('Expected "'.concat(f.name,'" to be ').concat(w))}}return a}}function Zd(r,t){var e=[],n=wn(r,e,t);return Qd(n,e,t)}function Qd(r,t,e){e===void 0&&(e={});var n=e.decode,i=n===void 0?function(s){return s}:n;return function(s){var o=r.exec(s);if(!o)return!1;for(var u=o[0],l=o.index,a=Object.create(null),c=function(h){if(o[h]===void 0)return"continue";var p=t[h-1];p.modifier==="*"||p.modifier==="+"?a[p.name]=o[h].split(p.prefix+p.suffix).map(function(d){return i(d,p)}):a[p.name]=i(o[h],p)},f=1;f<o.length;f++)c(f);return{path:u,index:l,params:a}}}function re(r){return r.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function _n(r){return r&&r.sensitive?"":"i"}function Xd(r,t){if(!t)return r;for(var e=/\((?:\?<(.*?)>)?(?!\?)/g,n=0,i=e.exec(r.source);i;)t.push({name:i[1]||n++,prefix:"",suffix:"",modifier:"",pattern:""}),i=e.exec(r.source);return r}function tg(r,t,e){var n=r.map(function(i){return wn(i,t,e).source});return new RegExp("(?:".concat(n.join("|"),")"),_n(e))}function eg(r,t,e){return rg(Eo(r,e),t,e)}function rg(r,t,e){e===void 0&&(e={});for(var n=e.strict,i=n===void 0?!1:n,s=e.start,o=s===void 0?!0:s,u=e.end,l=u===void 0?!0:u,a=e.encode,c=a===void 0?function(E){return E}:a,f=e.delimiter,h=f===void 0?"/#?":f,p=e.endsWith,d=p===void 0?"":p,g="[".concat(re(d),"]|$"),b="[".concat(re(h),"]"),w=o?"^":"",m=0,y=r;m<y.length;m++){var _=y[m];if(typeof _=="string")w+=re(c(_));else{var S=re(c(_.prefix)),v=re(c(_.suffix));if(_.pattern)if(t&&t.push(_),S||v)if(_.modifier==="+"||_.modifier==="*"){var T=_.modifier==="*"?"?":"";w+="(?:".concat(S,"((?:").concat(_.pattern,")(?:").concat(v).concat(S,"(?:").concat(_.pattern,"))*)").concat(v,")").concat(T)}else w+="(?:".concat(S,"(").concat(_.pattern,")").concat(v,")").concat(_.modifier);else _.modifier==="+"||_.modifier==="*"?w+="((?:".concat(_.pattern,")").concat(_.modifier,")"):w+="(".concat(_.pattern,")").concat(_.modifier);else w+="(?:".concat(S).concat(v,")").concat(_.modifier)}}if(l)i||(w+="".concat(b,"?")),w+=e.endsWith?"(?=".concat(g,")"):"$";else{var A=r[r.length-1],L=typeof A=="string"?b.indexOf(A[A.length-1])>-1:A===void 0;i||(w+="(?:".concat(b,"(?=").concat(g,"))?")),L||(w+="(?=".concat(b,"|").concat(g,")"))}return new RegExp(w,_n(e))}function wn(r,t,e){return r instanceof RegExp?Xd(r,t):Array.isArray(r)?tg(r,t,e):eg(r,t,e)}var ng=Object.defineProperty,ig=(r,t,e)=>t in r?ng(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e,de=(r,t,e)=>(ig(r,typeof t!="symbol"?t+"":t,e),e);class sg{constructor(){de(this,"queue",[]),de(this,"isProcessing",!1),de(this,"results",[]),de(this,"cache",new Map),de(this,"pendingTasks",new Map)}add(t,e){const n=this.cache.get(t);if(n)return n.status==="fulfilled"?Promise.resolve(n.value):Promise.reject(n.reason);const i=this.pendingTasks.get(t);if(i)return i;const s=new Promise((o,u)=>{this.queue.push({key:t,task:e,resolve:o,reject:u}),this.isProcessing||this.processQueue()});return this.pendingTasks.set(t,s),s}getAllResults(){return[...this.results]}getResult(t){return this.cache.get(t)}clearCacheForKey(t){this.cache.delete(t)}clearAllCache(){this.cache.clear()}processQueue(){return U(this,null,function*(){if(this.queue.length===0){this.isProcessing=!1;return}this.isProcessing=!0;const{key:t,task:e,resolve:n,reject:i}=this.queue.shift();try{const s=this.cache.get(t);if(s){s.status==="fulfilled"?n(s.value):i(s.reason),this.pendingTasks.delete(t),this.processQueue();return}const o=yield e(),u={key:t,status:"fulfilled",value:o};this.results.push(u),this.cache.set(t,u),n(o),this.pendingTasks.delete(t)}catch(s){const o={key:t,status:"rejected",reason:s};this.results.push(o),this.cache.set(t,o),i(s),this.pendingTasks.delete(t)}finally{this.processQueue()}})}}wo.compress;wo.decompress;/**!
|
|
45
|
+
*/(function(r){(function(t,e){r.exports?r.exports=e():t.numeral=e()})(ot,function(){var t,e,n="2.0.6",i={},s={},o={currentLocale:"en",zeroFormat:null,nullFormat:null,defaultFormat:"0,0",scalePercentBy100:!0},u={currentLocale:o.currentLocale,zeroFormat:o.zeroFormat,nullFormat:o.nullFormat,defaultFormat:o.defaultFormat,scalePercentBy100:o.scalePercentBy100};function l(a,c){this._input=a,this._value=c}return t=function(a){var c,f,h,p;if(t.isNumeral(a))c=a.value();else if(a===0||typeof a=="undefined")c=0;else if(a===null||e.isNaN(a))c=null;else if(typeof a=="string")if(u.zeroFormat&&a===u.zeroFormat)c=0;else if(u.nullFormat&&a===u.nullFormat||!a.replace(/[^0-9]+/g,"").length)c=null;else{for(f in i)if(p=typeof i[f].regexps.unformat=="function"?i[f].regexps.unformat():i[f].regexps.unformat,p&&a.match(p)){h=i[f].unformat;break}h=h||t._.stringToNumber,c=h(a)}else c=Number(a)||null;return new l(a,c)},t.version=n,t.isNumeral=function(a){return a instanceof l},t._=e={numberToFormat:function(a,c,f){var h=s[t.options.currentLocale],p=!1,d=!1,g=0,y="",w=1e12,m=1e9,b=1e6,_=1e3,S="",v=!1,T,A,L,E,x,M,C;if(a=a||0,A=Math.abs(a),t._.includes(c,"(")?(p=!0,c=c.replace(/[\(|\)]/g,"")):(t._.includes(c,"+")||t._.includes(c,"-"))&&(x=t._.includes(c,"+")?c.indexOf("+"):a<0?c.indexOf("-"):-1,c=c.replace(/[\+|\-]/g,"")),t._.includes(c,"a")&&(T=c.match(/a(k|m|b|t)?/),T=T?T[1]:!1,t._.includes(c," a")&&(y=" "),c=c.replace(new RegExp(y+"a[kmbt]?"),""),A>=w&&!T||T==="t"?(y+=h.abbreviations.trillion,a=a/w):A<w&&A>=m&&!T||T==="b"?(y+=h.abbreviations.billion,a=a/m):A<m&&A>=b&&!T||T==="m"?(y+=h.abbreviations.million,a=a/b):(A<b&&A>=_&&!T||T==="k")&&(y+=h.abbreviations.thousand,a=a/_)),t._.includes(c,"[.]")&&(d=!0,c=c.replace("[.]",".")),L=a.toString().split(".")[0],E=c.split(".")[1],M=c.indexOf(","),g=(c.split(".")[0].split(",")[0].match(/0/g)||[]).length,E?(t._.includes(E,"[")?(E=E.replace("]",""),E=E.split("["),S=t._.toFixed(a,E[0].length+E[1].length,f,E[1].length)):S=t._.toFixed(a,E.length,f),L=S.split(".")[0],t._.includes(S,".")?S=h.delimiters.decimal+S.split(".")[1]:S="",d&&Number(S.slice(1))===0&&(S="")):L=t._.toFixed(a,0,f),y&&!T&&Number(L)>=1e3&&y!==h.abbreviations.trillion)switch(L=String(Number(L)/1e3),y){case h.abbreviations.thousand:y=h.abbreviations.million;break;case h.abbreviations.million:y=h.abbreviations.billion;break;case h.abbreviations.billion:y=h.abbreviations.trillion;break}if(t._.includes(L,"-")&&(L=L.slice(1),v=!0),L.length<g)for(var I=g-L.length;I>0;I--)L="0"+L;return M>-1&&(L=L.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+h.delimiters.thousands)),c.indexOf(".")===0&&(L=""),C=L+S+(y||""),p?C=(p&&v?"(":"")+C+(p&&v?")":""):x>=0?C=x===0?(v?"-":"+")+C:C+(v?"-":"+"):v&&(C="-"+C),C},stringToNumber:function(a){var c=s[u.currentLocale],f=a,h={thousand:3,million:6,billion:9,trillion:12},p,d,g;if(u.zeroFormat&&a===u.zeroFormat)d=0;else if(u.nullFormat&&a===u.nullFormat||!a.replace(/[^0-9]+/g,"").length)d=null;else{d=1,c.delimiters.decimal!=="."&&(a=a.replace(/\./g,"").replace(c.delimiters.decimal,"."));for(p in h)if(g=new RegExp("[^a-zA-Z]"+c.abbreviations[p]+"(?:\\)|(\\"+c.currency.symbol+")?(?:\\))?)?$"),f.match(g)){d*=Math.pow(10,h[p]);break}d*=(a.split("-").length+Math.min(a.split("(").length-1,a.split(")").length-1))%2?1:-1,a=a.replace(/[^0-9\.]+/g,""),d*=Number(a)}return d},isNaN:function(a){return typeof a=="number"&&isNaN(a)},includes:function(a,c){return a.indexOf(c)!==-1},insert:function(a,c,f){return a.slice(0,f)+c+a.slice(f)},reduce:function(a,c){if(this===null)throw new TypeError("Array.prototype.reduce called on null or undefined");if(typeof c!="function")throw new TypeError(c+" is not a function");var f=Object(a),h=f.length>>>0,p=0,d;if(arguments.length===3)d=arguments[2];else{for(;p<h&&!(p in f);)p++;if(p>=h)throw new TypeError("Reduce of empty array with no initial value");d=f[p++]}for(;p<h;p++)p in f&&(d=c(d,f[p],p,f));return d},multiplier:function(a){var c=a.toString().split(".");return c.length<2?1:Math.pow(10,c[1].length)},correctionFactor:function(){var a=Array.prototype.slice.call(arguments);return a.reduce(function(c,f){var h=e.multiplier(f);return c>h?c:h},1)},toFixed:function(a,c,f,h){var p=a.toString().split("."),d=c-(h||0),g,y,w,m;return p.length===2?g=Math.min(Math.max(p[1].length,d),c):g=d,w=Math.pow(10,g),m=(f(a+"e+"+g)/w).toFixed(g),h>c-g&&(y=new RegExp("\\.?0{1,"+(h-(c-g))+"}$"),m=m.replace(y,"")),m}},t.options=u,t.formats=i,t.locales=s,t.locale=function(a){return a&&(u.currentLocale=a.toLowerCase()),u.currentLocale},t.localeData=function(a){if(!a)return s[u.currentLocale];if(a=a.toLowerCase(),!s[a])throw new Error("Unknown locale : "+a);return s[a]},t.reset=function(){for(var a in o)u[a]=o[a]},t.zeroFormat=function(a){u.zeroFormat=typeof a=="string"?a:null},t.nullFormat=function(a){u.nullFormat=typeof a=="string"?a:null},t.defaultFormat=function(a){u.defaultFormat=typeof a=="string"?a:"0.0"},t.register=function(a,c,f){if(c=c.toLowerCase(),this[a+"s"][c])throw new TypeError(c+" "+a+" already registered.");return this[a+"s"][c]=f,f},t.validate=function(a,c){var f,h,p,d,g,y,w,m;if(typeof a!="string"&&(a+="",console.warn&&console.warn("Numeral.js: Value is not string. It has been co-erced to: ",a)),a=a.trim(),a.match(/^\d+$/))return!0;if(a==="")return!1;try{w=t.localeData(c)}catch(b){w=t.localeData(t.locale())}return p=w.currency.symbol,g=w.abbreviations,f=w.delimiters.decimal,w.delimiters.thousands==="."?h="\\.":h=w.delimiters.thousands,m=a.match(/^[^\d]+/),m!==null&&(a=a.substr(1),m[0]!==p)||(m=a.match(/[^\d]+$/),m!==null&&(a=a.slice(0,-1),m[0]!==g.thousand&&m[0]!==g.million&&m[0]!==g.billion&&m[0]!==g.trillion))?!1:(y=new RegExp(h+"{2}"),a.match(/[^\d.,]/g)?!1:(d=a.split(f),d.length>2?!1:d.length<2?!!d[0].match(/^\d+.*\d$/)&&!d[0].match(y):d[0].length===1?!!d[0].match(/^\d+$/)&&!d[0].match(y)&&!!d[1].match(/^\d+$/):!!d[0].match(/^\d+.*\d$/)&&!d[0].match(y)&&!!d[1].match(/^\d+$/)))},t.fn=l.prototype={clone:function(){return t(this)},format:function(a,c){var f=this._value,h=a||u.defaultFormat,p,d,g;if(c=c||Math.round,f===0&&u.zeroFormat!==null)d=u.zeroFormat;else if(f===null&&u.nullFormat!==null)d=u.nullFormat;else{for(p in i)if(h.match(i[p].regexps.format)){g=i[p].format;break}g=g||t._.numberToFormat,d=g(f,h,c)}return d},value:function(){return this._value},input:function(){return this._input},set:function(a){return this._value=Number(a),this},add:function(a){var c=e.correctionFactor.call(null,this._value,a);function f(h,p,d,g){return h+Math.round(c*p)}return this._value=e.reduce([this._value,a],f,0)/c,this},subtract:function(a){var c=e.correctionFactor.call(null,this._value,a);function f(h,p,d,g){return h-Math.round(c*p)}return this._value=e.reduce([a],f,Math.round(this._value*c))/c,this},multiply:function(a){function c(f,h,p,d){var g=e.correctionFactor(f,h);return Math.round(f*g)*Math.round(h*g)/Math.round(g*g)}return this._value=e.reduce([this._value,a],c,1),this},divide:function(a){function c(f,h,p,d){var g=e.correctionFactor(f,h);return Math.round(f*g)/Math.round(h*g)}return this._value=e.reduce([this._value,a],c),this},difference:function(a){return Math.abs(t(this._value).subtract(a).value())}},t.register("locale","en",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(a){var c=a%10;return~~(a%100/10)===1?"th":c===1?"st":c===2?"nd":c===3?"rd":"th"},currency:{symbol:"$"}}),(function(){t.register("format","bps",{regexps:{format:/(BPS)/,unformat:/(BPS)/},format:function(a,c,f){var h=t._.includes(c," BPS")?" ":"",p;return a=a*1e4,c=c.replace(/\s?BPS/,""),p=t._.numberToFormat(a,c,f),t._.includes(p,")")?(p=p.split(""),p.splice(-1,0,h+"BPS"),p=p.join("")):p=p+h+"BPS",p},unformat:function(a){return+(t._.stringToNumber(a)*1e-4).toFixed(15)}})})(),(function(){var a={base:1e3,suffixes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]},c={base:1024,suffixes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},f=a.suffixes.concat(c.suffixes.filter(function(p){return a.suffixes.indexOf(p)<0})),h=f.join("|");h="("+h.replace("B","B(?!PS)")+")",t.register("format","bytes",{regexps:{format:/([0\s]i?b)/,unformat:new RegExp(h)},format:function(p,d,g){var y,w=t._.includes(d,"ib")?c:a,m=t._.includes(d," b")||t._.includes(d," ib")?" ":"",b,_,S;for(d=d.replace(/\s?i?b/,""),b=0;b<=w.suffixes.length;b++)if(_=Math.pow(w.base,b),S=Math.pow(w.base,b+1),p===null||p===0||p>=_&&p<S){m+=w.suffixes[b],_>0&&(p=p/_);break}return y=t._.numberToFormat(p,d,g),y+m},unformat:function(p){var d=t._.stringToNumber(p),g,y;if(d){for(g=a.suffixes.length-1;g>=0;g--){if(t._.includes(p,a.suffixes[g])){y=Math.pow(a.base,g);break}if(t._.includes(p,c.suffixes[g])){y=Math.pow(c.base,g);break}}d*=y||1}return d}})})(),(function(){t.register("format","currency",{regexps:{format:/(\$)/},format:function(a,c,f){var h=t.locales[t.options.currentLocale],p={before:c.match(/^([\+|\-|\(|\s|\$]*)/)[0],after:c.match(/([\+|\-|\)|\s|\$]*)$/)[0]},d,g,y;for(c=c.replace(/\s?\$\s?/,""),d=t._.numberToFormat(a,c,f),a>=0?(p.before=p.before.replace(/[\-\(]/,""),p.after=p.after.replace(/[\-\)]/,"")):a<0&&!t._.includes(p.before,"-")&&!t._.includes(p.before,"(")&&(p.before="-"+p.before),y=0;y<p.before.length;y++)switch(g=p.before[y],g){case"$":d=t._.insert(d,h.currency.symbol,y);break;case" ":d=t._.insert(d," ",y+h.currency.symbol.length-1);break}for(y=p.after.length-1;y>=0;y--)switch(g=p.after[y],g){case"$":d=y===p.after.length-1?d+h.currency.symbol:t._.insert(d,h.currency.symbol,-(p.after.length-(1+y)));break;case" ":d=y===p.after.length-1?d+" ":t._.insert(d," ",-(p.after.length-(1+y)+h.currency.symbol.length-1));break}return d}})})(),(function(){t.register("format","exponential",{regexps:{format:/(e\+|e-)/,unformat:/(e\+|e-)/},format:function(a,c,f){var h,p=typeof a=="number"&&!t._.isNaN(a)?a.toExponential():"0e+0",d=p.split("e");return c=c.replace(/e[\+|\-]{1}0/,""),h=t._.numberToFormat(Number(d[0]),c,f),h+"e"+d[1]},unformat:function(a){var c=t._.includes(a,"e+")?a.split("e+"):a.split("e-"),f=Number(c[0]),h=Number(c[1]);h=t._.includes(a,"e-")?h*=-1:h;function p(d,g,y,w){var m=t._.correctionFactor(d,g),b=d*m*(g*m)/(m*m);return b}return t._.reduce([f,Math.pow(10,h)],p,1)}})})(),(function(){t.register("format","ordinal",{regexps:{format:/(o)/},format:function(a,c,f){var h=t.locales[t.options.currentLocale],p,d=t._.includes(c," o")?" ":"";return c=c.replace(/\s?o/,""),d+=h.ordinal(a),p=t._.numberToFormat(a,c,f),p+d}})})(),(function(){t.register("format","percentage",{regexps:{format:/(%)/,unformat:/(%)/},format:function(a,c,f){var h=t._.includes(c," %")?" ":"",p;return t.options.scalePercentBy100&&(a=a*100),c=c.replace(/\s?\%/,""),p=t._.numberToFormat(a,c,f),t._.includes(p,")")?(p=p.split(""),p.splice(-1,0,h+"%"),p=p.join("")):p=p+h+"%",p},unformat:function(a){var c=t._.stringToNumber(a);return t.options.scalePercentBy100?c*.01:c}})})(),(function(){t.register("format","time",{regexps:{format:/(:)/,unformat:/(:)/},format:function(a,c,f){var h=Math.floor(a/60/60),p=Math.floor((a-h*60*60)/60),d=Math.round(a-h*60*60-p*60);return h+":"+(p<10?"0"+p:p)+":"+(d<10?"0"+d:d)},unformat:function(a){var c=a.split(":"),f=0;return c.length===3?(f=f+Number(c[0])*60*60,f=f+Number(c[1])*60,f=f+Number(c[2])):c.length===2&&(f=f+Number(c[0])*60,f=f+Number(c[1])),Number(f)}})})(),t})})(kd);var yo={exports:{}};(function(r,t){(function(e,n){r.exports=n()})(ot,(function(){var e=1e3,n=6e4,i=36e5,s="millisecond",o="second",u="minute",l="hour",a="day",c="week",f="month",h="quarter",p="year",d="date",g="Invalid Date",y=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,w=/\[([^\]]+)]|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(I){var j=["th","st","nd","rd"],$=I%100;return"["+I+(j[($-20)%10]||j[$]||j[0])+"]"}},b=function(I,j,$){var k=String(I);return!k||k.length>=j?I:""+Array(j+1-k.length).join($)+I},_={s:b,z:function(I){var j=-I.utcOffset(),$=Math.abs(j),k=Math.floor($/60),F=$%60;return(j<=0?"+":"-")+b(k,2,"0")+":"+b(F,2,"0")},m:function I(j,$){if(j.date()<$.date())return-I($,j);var k=12*($.year()-j.year())+($.month()-j.month()),F=j.clone().add(k,f),V=$-F<0,q=j.clone().add(k+(V?-1:1),f);return+(-(k+($-F)/(V?F-q:q-F))||0)},a:function(I){return I<0?Math.ceil(I)||0:Math.floor(I)},p:function(I){return{M:f,y:p,w:c,d:a,D:d,h:l,m:u,s:o,ms:s,Q:h}[I]||String(I||"").toLowerCase().replace(/s$/,"")},u:function(I){return I===void 0}},S="en",v={};v[S]=m;var T="$isDayjsObject",A=function(I){return I instanceof M||!(!I||!I[T])},L=function I(j,$,k){var F;if(!j)return S;if(typeof j=="string"){var V=j.toLowerCase();v[V]&&(F=V),$&&(v[V]=$,F=V);var q=j.split("-");if(!F&&q.length>1)return I(q[0])}else{var O=j.name;v[O]=j,F=O}return!k&&F&&(S=F),F||!k&&S},E=function(I,j){if(A(I))return I.clone();var $=typeof j=="object"?j:{};return $.date=I,$.args=arguments,new M($)},x=_;x.l=L,x.i=A,x.w=function(I,j){return E(I,{locale:j.$L,utc:j.$u,x:j.$x,$offset:j.$offset})};var M=(function(){function I($){this.$L=L($.locale,null,!0),this.parse($),this.$x=this.$x||$.x||{},this[T]=!0}var j=I.prototype;return j.parse=function($){this.$d=(function(k){var F=k.date,V=k.utc;if(F===null)return new Date(NaN);if(x.u(F))return new Date;if(F instanceof Date)return new Date(F);if(typeof F=="string"&&!/Z$/i.test(F)){var q=F.match(y);if(q){var O=q[2]-1||0,D=(q[7]||"0").substring(0,3);return V?new Date(Date.UTC(q[1],O,q[3]||1,q[4]||0,q[5]||0,q[6]||0,D)):new Date(q[1],O,q[3]||1,q[4]||0,q[5]||0,q[6]||0,D)}}return new Date(F)})($),this.init()},j.init=function(){var $=this.$d;this.$y=$.getFullYear(),this.$M=$.getMonth(),this.$D=$.getDate(),this.$W=$.getDay(),this.$H=$.getHours(),this.$m=$.getMinutes(),this.$s=$.getSeconds(),this.$ms=$.getMilliseconds()},j.$utils=function(){return x},j.isValid=function(){return this.$d.toString()!==g},j.isSame=function($,k){var F=E($);return this.startOf(k)<=F&&F<=this.endOf(k)},j.isAfter=function($,k){return E($)<this.startOf(k)},j.isBefore=function($,k){return this.endOf(k)<E($)},j.$g=function($,k,F){return x.u($)?this[k]:this.set(F,$)},j.unix=function(){return Math.floor(this.valueOf()/1e3)},j.valueOf=function(){return this.$d.getTime()},j.startOf=function($,k){var F=this,V=!!x.u(k)||k,q=x.p($),O=function(It,at){var Ot=x.w(F.$u?Date.UTC(F.$y,at,It):new Date(F.$y,at,It),F);return V?Ot:Ot.endOf(a)},D=function(It,at){return x.w(F.toDate()[It].apply(F.toDate("s"),(V?[0,0,0,0]:[23,59,59,999]).slice(at)),F)},P=this.$W,N=this.$M,nt=this.$D,Gt="set"+(this.$u?"UTC":"");switch(q){case p:return V?O(1,0):O(31,11);case f:return V?O(1,N):O(0,N+1);case c:var Nt=this.$locale().weekStart||0,fe=(P<Nt?P+7:P)-Nt;return O(V?nt-fe:nt+(6-fe),N);case a:case d:return D(Gt+"Hours",0);case l:return D(Gt+"Minutes",1);case u:return D(Gt+"Seconds",2);case o:return D(Gt+"Milliseconds",3);default:return this.clone()}},j.endOf=function($){return this.startOf($,!1)},j.$set=function($,k){var F,V=x.p($),q="set"+(this.$u?"UTC":""),O=(F={},F[a]=q+"Date",F[d]=q+"Date",F[f]=q+"Month",F[p]=q+"FullYear",F[l]=q+"Hours",F[u]=q+"Minutes",F[o]=q+"Seconds",F[s]=q+"Milliseconds",F)[V],D=V===a?this.$D+(k-this.$W):k;if(V===f||V===p){var P=this.clone().set(d,1);P.$d[O](D),P.init(),this.$d=P.set(d,Math.min(this.$D,P.daysInMonth())).$d}else O&&this.$d[O](D);return this.init(),this},j.set=function($,k){return this.clone().$set($,k)},j.get=function($){return this[x.p($)]()},j.add=function($,k){var F,V=this;$=Number($);var q=x.p(k),O=function(N){var nt=E(V);return x.w(nt.date(nt.date()+Math.round(N*$)),V)};if(q===f)return this.set(f,this.$M+$);if(q===p)return this.set(p,this.$y+$);if(q===a)return O(1);if(q===c)return O(7);var D=(F={},F[u]=n,F[l]=i,F[o]=e,F)[q]||1,P=this.$d.getTime()+$*D;return x.w(P,this)},j.subtract=function($,k){return this.add(-1*$,k)},j.format=function($){var k=this,F=this.$locale();if(!this.isValid())return F.invalidDate||g;var V=$||"YYYY-MM-DDTHH:mm:ssZ",q=x.z(this),O=this.$H,D=this.$m,P=this.$M,N=F.weekdays,nt=F.months,Gt=F.meridiem,Nt=function(at,Ot,he,$e){return at&&(at[Ot]||at(k,V))||he[Ot].slice(0,$e)},fe=function(at){return x.s(O%12||12,at,"0")},It=Gt||function(at,Ot,he){var $e=at<12?"AM":"PM";return he?$e.toLowerCase():$e};return V.replace(w,(function(at,Ot){return Ot||(function(he){switch(he){case"YY":return String(k.$y).slice(-2);case"YYYY":return x.s(k.$y,4,"0");case"M":return P+1;case"MM":return x.s(P+1,2,"0");case"MMM":return Nt(F.monthsShort,P,nt,3);case"MMMM":return Nt(nt,P);case"D":return k.$D;case"DD":return x.s(k.$D,2,"0");case"d":return String(k.$W);case"dd":return Nt(F.weekdaysMin,k.$W,N,2);case"ddd":return Nt(F.weekdaysShort,k.$W,N,3);case"dddd":return N[k.$W];case"H":return String(O);case"HH":return x.s(O,2,"0");case"h":return fe(1);case"hh":return fe(2);case"a":return It(O,D,!0);case"A":return It(O,D,!1);case"m":return String(D);case"mm":return x.s(D,2,"0");case"s":return String(k.$s);case"ss":return x.s(k.$s,2,"0");case"SSS":return x.s(k.$ms,3,"0");case"Z":return q}return null})(at)||q.replace(":","")}))},j.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},j.diff=function($,k,F){var V,q=this,O=x.p(k),D=E($),P=(D.utcOffset()-this.utcOffset())*n,N=this-D,nt=function(){return x.m(q,D)};switch(O){case p:V=nt()/12;break;case f:V=nt();break;case h:V=nt()/3;break;case c:V=(N-P)/6048e5;break;case a:V=(N-P)/864e5;break;case l:V=N/i;break;case u:V=N/n;break;case o:V=N/e;break;default:V=N}return F?V:x.a(V)},j.daysInMonth=function(){return this.endOf(f).$D},j.$locale=function(){return v[this.$L]},j.locale=function($,k){if(!$)return this.$L;var F=this.clone(),V=L($,k,!0);return V&&(F.$L=V),F},j.clone=function(){return x.w(this.$d,this)},j.toDate=function(){return new Date(this.valueOf())},j.toJSON=function(){return this.isValid()?this.toISOString():null},j.toISOString=function(){return this.$d.toISOString()},j.toString=function(){return this.$d.toUTCString()},I})(),C=M.prototype;return E.prototype=C,[["$ms",s],["$s",o],["$m",u],["$H",l],["$W",a],["$M",f],["$y",p],["$D",d]].forEach((function(I){C[I[1]]=function(j){return this.$g(j,I[0],I[1])}})),E.extend=function(I,j){return I.$i||(I(j,M,E),I.$i=!0),E},E.locale=L,E.isDayjs=A,E.unix=function(I){return E(1e3*I)},E.en=v[S],E.Ls=v,E.p={},E}))})(yo);var bo=yo.exports;const Hd=Gp(bo);var Vd={exports:{}};(function(r,t){(function(e,n){r.exports=n(bo)})(ot,(function(e){function n(o){return o&&typeof o=="object"&&"default"in o?o:{default:o}}var i=n(e),s={name:"zh-cn",weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),ordinal:function(o,u){return u==="W"?o+"周":o+"日"},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},relativeTime:{future:"%s内",past:"%s前",s:"几秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},meridiem:function(o,u){var l=100*o+u;return l<600?"凌晨":l<900?"早上":l<1100?"上午":l<1300?"中午":l<1800?"下午":"晚上"}};return i.default.locale(s,null,!0),s}))})(Vd);Hd.locale("zh-cn");function qd(r=!0){const t="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){const n=Math.random()*16|0;return(e==="x"?n:n&3|8).toString(16)});return r?t.toLowerCase():t.replace(/-/gi,"")}function Ze(r=0){return U(this,null,function*(){return new Promise(t=>{setTimeout(t,r)})})}function zd(r){return[...r.entries()].reduce((t,[e,n])=>(t[e]=n,t),{})}function Wd(r,t){return Array.from(new Set(r))}function ji(r){return r?[].concat(r):[]}function xr(r,t){const e={};if(Array.isArray(t))Object.keys(r).forEach(n=>{t.includes(n)||(e[n]=r[n])});else{const n=t;Object.entries(r).forEach(([i,s])=>{n(i,s)||(e[i]=s)})}return e}function Kd(r,t){const e={};if(Array.isArray(t))Object.keys(r).forEach(n=>{t.includes(n)&&(e[n]=r[n])});else{const n=t;Object.entries(r).forEach(([i,s])=>{n(i,s)&&(e[i]=s)})}return e}var _o={exports:{}};(function(r){var t=(function(){var e=String.fromCharCode,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",s={};function o(l,a){if(!s[l]){s[l]={};for(var c=0;c<l.length;c++)s[l][l.charAt(c)]=c}return s[l][a]}var u={compressToBase64:function(l){if(l==null)return"";var a=u._compress(l,6,function(c){return n.charAt(c)});switch(a.length%4){default:case 0:return a;case 1:return a+"===";case 2:return a+"==";case 3:return a+"="}},decompressFromBase64:function(l){return l==null?"":l==""?null:u._decompress(l.length,32,function(a){return o(n,l.charAt(a))})},compressToUTF16:function(l){return l==null?"":u._compress(l,15,function(a){return e(a+32)})+" "},decompressFromUTF16:function(l){return l==null?"":l==""?null:u._decompress(l.length,16384,function(a){return l.charCodeAt(a)-32})},compressToUint8Array:function(l){for(var a=u.compress(l),c=new Uint8Array(a.length*2),f=0,h=a.length;f<h;f++){var p=a.charCodeAt(f);c[f*2]=p>>>8,c[f*2+1]=p%256}return c},decompressFromUint8Array:function(l){if(l==null)return u.decompress(l);for(var a=new Array(l.length/2),c=0,f=a.length;c<f;c++)a[c]=l[c*2]*256+l[c*2+1];var h=[];return a.forEach(function(p){h.push(e(p))}),u.decompress(h.join(""))},compressToEncodedURIComponent:function(l){return l==null?"":u._compress(l,6,function(a){return i.charAt(a)})},decompressFromEncodedURIComponent:function(l){return l==null?"":l==""?null:(l=l.replace(/ /g,"+"),u._decompress(l.length,32,function(a){return o(i,l.charAt(a))}))},compress:function(l){return u._compress(l,16,function(a){return e(a)})},_compress:function(l,a,c){if(l==null)return"";var f,h,p={},d={},g="",y="",w="",m=2,b=3,_=2,S=[],v=0,T=0,A;for(A=0;A<l.length;A+=1)if(g=l.charAt(A),Object.prototype.hasOwnProperty.call(p,g)||(p[g]=b++,d[g]=!0),y=w+g,Object.prototype.hasOwnProperty.call(p,y))w=y;else{if(Object.prototype.hasOwnProperty.call(d,w)){if(w.charCodeAt(0)<256){for(f=0;f<_;f++)v=v<<1,T==a-1?(T=0,S.push(c(v)),v=0):T++;for(h=w.charCodeAt(0),f=0;f<8;f++)v=v<<1|h&1,T==a-1?(T=0,S.push(c(v)),v=0):T++,h=h>>1}else{for(h=1,f=0;f<_;f++)v=v<<1|h,T==a-1?(T=0,S.push(c(v)),v=0):T++,h=0;for(h=w.charCodeAt(0),f=0;f<16;f++)v=v<<1|h&1,T==a-1?(T=0,S.push(c(v)),v=0):T++,h=h>>1}m--,m==0&&(m=Math.pow(2,_),_++),delete d[w]}else for(h=p[w],f=0;f<_;f++)v=v<<1|h&1,T==a-1?(T=0,S.push(c(v)),v=0):T++,h=h>>1;m--,m==0&&(m=Math.pow(2,_),_++),p[y]=b++,w=String(g)}if(w!==""){if(Object.prototype.hasOwnProperty.call(d,w)){if(w.charCodeAt(0)<256){for(f=0;f<_;f++)v=v<<1,T==a-1?(T=0,S.push(c(v)),v=0):T++;for(h=w.charCodeAt(0),f=0;f<8;f++)v=v<<1|h&1,T==a-1?(T=0,S.push(c(v)),v=0):T++,h=h>>1}else{for(h=1,f=0;f<_;f++)v=v<<1|h,T==a-1?(T=0,S.push(c(v)),v=0):T++,h=0;for(h=w.charCodeAt(0),f=0;f<16;f++)v=v<<1|h&1,T==a-1?(T=0,S.push(c(v)),v=0):T++,h=h>>1}m--,m==0&&(m=Math.pow(2,_),_++),delete d[w]}else for(h=p[w],f=0;f<_;f++)v=v<<1|h&1,T==a-1?(T=0,S.push(c(v)),v=0):T++,h=h>>1;m--,m==0&&(m=Math.pow(2,_),_++)}for(h=2,f=0;f<_;f++)v=v<<1|h&1,T==a-1?(T=0,S.push(c(v)),v=0):T++,h=h>>1;for(;;)if(v=v<<1,T==a-1){S.push(c(v));break}else T++;return S.join("")},decompress:function(l){return l==null?"":l==""?null:u._decompress(l.length,32768,function(a){return l.charCodeAt(a)})},_decompress:function(l,a,c){var f=[],h=4,p=4,d=3,g="",y=[],w,m,b,_,S,v,T,A={val:c(0),position:a,index:1};for(w=0;w<3;w+=1)f[w]=w;for(b=0,S=Math.pow(2,2),v=1;v!=S;)_=A.val&A.position,A.position>>=1,A.position==0&&(A.position=a,A.val=c(A.index++)),b|=(_>0?1:0)*v,v<<=1;switch(b){case 0:for(b=0,S=Math.pow(2,8),v=1;v!=S;)_=A.val&A.position,A.position>>=1,A.position==0&&(A.position=a,A.val=c(A.index++)),b|=(_>0?1:0)*v,v<<=1;T=e(b);break;case 1:for(b=0,S=Math.pow(2,16),v=1;v!=S;)_=A.val&A.position,A.position>>=1,A.position==0&&(A.position=a,A.val=c(A.index++)),b|=(_>0?1:0)*v,v<<=1;T=e(b);break;case 2:return""}for(f[3]=T,m=T,y.push(T);;){if(A.index>l)return"";for(b=0,S=Math.pow(2,d),v=1;v!=S;)_=A.val&A.position,A.position>>=1,A.position==0&&(A.position=a,A.val=c(A.index++)),b|=(_>0?1:0)*v,v<<=1;switch(T=b){case 0:for(b=0,S=Math.pow(2,8),v=1;v!=S;)_=A.val&A.position,A.position>>=1,A.position==0&&(A.position=a,A.val=c(A.index++)),b|=(_>0?1:0)*v,v<<=1;f[p++]=e(b),T=p-1,h--;break;case 1:for(b=0,S=Math.pow(2,16),v=1;v!=S;)_=A.val&A.position,A.position>>=1,A.position==0&&(A.position=a,A.val=c(A.index++)),b|=(_>0?1:0)*v,v<<=1;f[p++]=e(b),T=p-1,h--;break;case 2:return y.join("")}if(h==0&&(h=Math.pow(2,d),d++),f[T])g=f[T];else if(T===p)g=m+m.charAt(0);else return null;y.push(g),f[p++]=m+g.charAt(0),h--,m=g,h==0&&(h=Math.pow(2,d),d++)}}};return u})();r!=null?r.exports=t:typeof angular!="undefined"&&angular!=null&&angular.module("LZString",[]).factory("LZString",function(){return t})})(_o);var wo=_o.exports;function Jd(r){for(var t=[],e=0;e<r.length;){var n=r[e];if(n==="*"||n==="+"||n==="?"){t.push({type:"MODIFIER",index:e,value:r[e++]});continue}if(n==="\\"){t.push({type:"ESCAPED_CHAR",index:e++,value:r[e++]});continue}if(n==="{"){t.push({type:"OPEN",index:e,value:r[e++]});continue}if(n==="}"){t.push({type:"CLOSE",index:e,value:r[e++]});continue}if(n===":"){for(var i="",s=e+1;s<r.length;){var o=r.charCodeAt(s);if(o>=48&&o<=57||o>=65&&o<=90||o>=97&&o<=122||o===95){i+=r[s++];continue}break}if(!i)throw new TypeError("Missing parameter name at ".concat(e));t.push({type:"NAME",index:e,value:i}),e=s;continue}if(n==="("){var u=1,l="",s=e+1;if(r[s]==="?")throw new TypeError('Pattern cannot start with "?" at '.concat(s));for(;s<r.length;){if(r[s]==="\\"){l+=r[s++]+r[s++];continue}if(r[s]===")"){if(u--,u===0){s++;break}}else if(r[s]==="("&&(u++,r[s+1]!=="?"))throw new TypeError("Capturing groups are not allowed at ".concat(s));l+=r[s++]}if(u)throw new TypeError("Unbalanced pattern at ".concat(e));if(!l)throw new TypeError("Missing pattern at ".concat(e));t.push({type:"PATTERN",index:e,value:l}),e=s;continue}t.push({type:"CHAR",index:e,value:r[e++]})}return t.push({type:"END",index:e,value:""}),t}function Eo(r,t){t===void 0&&(t={});for(var e=Jd(r),n=t.prefixes,i=n===void 0?"./":n,s="[^".concat(re(t.delimiter||"/#?"),"]+?"),o=[],u=0,l=0,a="",c=function(v){if(l<e.length&&e[l].type===v)return e[l++].value},f=function(v){var T=c(v);if(T!==void 0)return T;var A=e[l],L=A.type,E=A.index;throw new TypeError("Unexpected ".concat(L," at ").concat(E,", expected ").concat(v))},h=function(){for(var v="",T;T=c("CHAR")||c("ESCAPED_CHAR");)v+=T;return v};l<e.length;){var p=c("CHAR"),d=c("NAME"),g=c("PATTERN");if(d||g){var y=p||"";i.indexOf(y)===-1&&(a+=y,y=""),a&&(o.push(a),a=""),o.push({name:d||u++,prefix:y,suffix:"",pattern:g||s,modifier:c("MODIFIER")||""});continue}var w=p||c("ESCAPED_CHAR");if(w){a+=w;continue}a&&(o.push(a),a="");var m=c("OPEN");if(m){var y=h(),b=c("NAME")||"",_=c("PATTERN")||"",S=h();f("CLOSE"),o.push({name:b||(_?u++:""),pattern:b&&!_?s:_,prefix:y,suffix:S,modifier:c("MODIFIER")||""});continue}f("END")}return o}function Gd(r,t){return Yd(Eo(r,t),t)}function Yd(r,t){t===void 0&&(t={});var e=_n(t),n=t.encode,i=n===void 0?function(l){return l}:n,s=t.validate,o=s===void 0?!0:s,u=r.map(function(l){if(typeof l=="object")return new RegExp("^(?:".concat(l.pattern,")$"),e)});return function(l){for(var a="",c=0;c<r.length;c++){var f=r[c];if(typeof f=="string"){a+=f;continue}var h=l?l[f.name]:void 0,p=f.modifier==="?"||f.modifier==="*",d=f.modifier==="*"||f.modifier==="+";if(Array.isArray(h)){if(!d)throw new TypeError('Expected "'.concat(f.name,'" to not repeat, but got an array'));if(h.length===0){if(p)continue;throw new TypeError('Expected "'.concat(f.name,'" to not be empty'))}for(var g=0;g<h.length;g++){var y=i(h[g],f);if(o&&!u[c].test(y))throw new TypeError('Expected all "'.concat(f.name,'" to match "').concat(f.pattern,'", but got "').concat(y,'"'));a+=f.prefix+y+f.suffix}continue}if(typeof h=="string"||typeof h=="number"){var y=i(String(h),f);if(o&&!u[c].test(y))throw new TypeError('Expected "'.concat(f.name,'" to match "').concat(f.pattern,'", but got "').concat(y,'"'));a+=f.prefix+y+f.suffix;continue}if(!p){var w=d?"an array":"a string";throw new TypeError('Expected "'.concat(f.name,'" to be ').concat(w))}}return a}}function Zd(r,t){var e=[],n=wn(r,e,t);return Qd(n,e,t)}function Qd(r,t,e){e===void 0&&(e={});var n=e.decode,i=n===void 0?function(s){return s}:n;return function(s){var o=r.exec(s);if(!o)return!1;for(var u=o[0],l=o.index,a=Object.create(null),c=function(h){if(o[h]===void 0)return"continue";var p=t[h-1];p.modifier==="*"||p.modifier==="+"?a[p.name]=o[h].split(p.prefix+p.suffix).map(function(d){return i(d,p)}):a[p.name]=i(o[h],p)},f=1;f<o.length;f++)c(f);return{path:u,index:l,params:a}}}function re(r){return r.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function _n(r){return r&&r.sensitive?"":"i"}function Xd(r,t){if(!t)return r;for(var e=/\((?:\?<(.*?)>)?(?!\?)/g,n=0,i=e.exec(r.source);i;)t.push({name:i[1]||n++,prefix:"",suffix:"",modifier:"",pattern:""}),i=e.exec(r.source);return r}function tg(r,t,e){var n=r.map(function(i){return wn(i,t,e).source});return new RegExp("(?:".concat(n.join("|"),")"),_n(e))}function eg(r,t,e){return rg(Eo(r,e),t,e)}function rg(r,t,e){e===void 0&&(e={});for(var n=e.strict,i=n===void 0?!1:n,s=e.start,o=s===void 0?!0:s,u=e.end,l=u===void 0?!0:u,a=e.encode,c=a===void 0?function(E){return E}:a,f=e.delimiter,h=f===void 0?"/#?":f,p=e.endsWith,d=p===void 0?"":p,g="[".concat(re(d),"]|$"),y="[".concat(re(h),"]"),w=o?"^":"",m=0,b=r;m<b.length;m++){var _=b[m];if(typeof _=="string")w+=re(c(_));else{var S=re(c(_.prefix)),v=re(c(_.suffix));if(_.pattern)if(t&&t.push(_),S||v)if(_.modifier==="+"||_.modifier==="*"){var T=_.modifier==="*"?"?":"";w+="(?:".concat(S,"((?:").concat(_.pattern,")(?:").concat(v).concat(S,"(?:").concat(_.pattern,"))*)").concat(v,")").concat(T)}else w+="(?:".concat(S,"(").concat(_.pattern,")").concat(v,")").concat(_.modifier);else _.modifier==="+"||_.modifier==="*"?w+="((?:".concat(_.pattern,")").concat(_.modifier,")"):w+="(".concat(_.pattern,")").concat(_.modifier);else w+="(?:".concat(S).concat(v,")").concat(_.modifier)}}if(l)i||(w+="".concat(y,"?")),w+=e.endsWith?"(?=".concat(g,")"):"$";else{var A=r[r.length-1],L=typeof A=="string"?y.indexOf(A[A.length-1])>-1:A===void 0;i||(w+="(?:".concat(y,"(?=").concat(g,"))?")),L||(w+="(?=".concat(y,"|").concat(g,")"))}return new RegExp(w,_n(e))}function wn(r,t,e){return r instanceof RegExp?Xd(r,t):Array.isArray(r)?tg(r,t,e):eg(r,t,e)}var ng=Object.defineProperty,ig=(r,t,e)=>t in r?ng(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e,de=(r,t,e)=>(ig(r,typeof t!="symbol"?t+"":t,e),e);class sg{constructor(){de(this,"queue",[]),de(this,"isProcessing",!1),de(this,"results",[]),de(this,"cache",new Map),de(this,"pendingTasks",new Map)}add(t,e){const n=this.cache.get(t);if(n)return n.status==="fulfilled"?Promise.resolve(n.value):Promise.reject(n.reason);const i=this.pendingTasks.get(t);if(i)return i;const s=new Promise((o,u)=>{this.queue.push({key:t,task:e,resolve:o,reject:u}),this.isProcessing||this.processQueue()});return this.pendingTasks.set(t,s),s}getAllResults(){return[...this.results]}getResult(t){return this.cache.get(t)}clearCacheForKey(t){this.cache.delete(t)}clearAllCache(){this.cache.clear()}processQueue(){return U(this,null,function*(){if(this.queue.length===0){this.isProcessing=!1;return}this.isProcessing=!0;const{key:t,task:e,resolve:n,reject:i}=this.queue.shift();try{const s=this.cache.get(t);if(s){s.status==="fulfilled"?n(s.value):i(s.reason),this.pendingTasks.delete(t),this.processQueue();return}const o=yield e(),u={key:t,status:"fulfilled",value:o};this.results.push(u),this.cache.set(t,u),n(o),this.pendingTasks.delete(t)}catch(s){const o={key:t,status:"rejected",reason:s};this.results.push(o),this.cache.set(t,o),i(s),this.pendingTasks.delete(t)}finally{this.processQueue()}})}}wo.compress;wo.decompress;/**!
|
|
46
46
|
* Copyright (c) 2025, VTJ.PRO All rights reserved.
|
|
47
47
|
* @name @vtj/core
|
|
48
48
|
* @author CHC chenhuachun1549@dingtalk.com
|
|
49
|
-
* @version 0.13.
|
|
49
|
+
* @version 0.13.39
|
|
50
50
|
* @license <a href="https://vtj.pro/license.html">MIT License</a>
|
|
51
|
-
*/const og="VueMaterial",ag="VueRouterMaterial",ug={[og]:["Transition","TransitionGroup","KeepAlive","Teleport","Suspense"],[ag]:["RouterView","RouterLink"]};let cg=class{constructor(){z(this,"listeners",[]);z(this,"isReady",!1)}triggerReady(){this.isReady=!0;for(const t of this.listeners)t();this.listeners=[]}ready(t){this.isReady?t():this.listeners.push(t)}resetReady(){this.isReady=!1}};var lg=Object.defineProperty,fg=(r,t,e)=>t in r?lg(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e,ft=(r,t,e)=>fg(r,typeof t!="symbol"?t+"":t,e);(function(){if(typeof window>"u"||typeof EventTarget>"u")return;const r=EventTarget.prototype.addEventListener;EventTarget.prototype.addEventListener=function(t,e,n){typeof n!="boolean"&&(n=n||{},n.passive=!1),r.call(this,t,e,n)}})();function So(r,t){return function(){return r.apply(t,arguments)}}const{toString:hg}=Object.prototype,{getPrototypeOf:En}=Object,{iterator:ir,toStringTag:To}=Symbol,sr=(r=>t=>{const e=hg.call(t);return r[e]||(r[e]=e.slice(8,-1).toLowerCase())})(Object.create(null)),yt=r=>(r=r.toLowerCase(),t=>sr(t)===r),or=r=>t=>typeof t===r,{isArray:ce}=Array,se=or("undefined");function Re(r){return r!==null&&!se(r)&&r.constructor!==null&&!se(r.constructor)&&ut(r.constructor.isBuffer)&&r.constructor.isBuffer(r)}const Ro=yt("ArrayBuffer");function pg(r){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(r):t=r&&r.buffer&&Ro(r.buffer),t}const dg=or("string"),ut=or("function"),xo=or("number"),xe=r=>r!==null&&typeof r=="object",gg=r=>r===!0||r===!1,He=r=>{if(sr(r)!=="object")return!1;const t=En(r);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(To in r)&&!(ir in r)},vg=r=>{if(!xe(r)||Re(r))return!1;try{return Object.keys(r).length===0&&Object.getPrototypeOf(r)===Object.prototype}catch(t){return!1}},mg=yt("Date"),yg=yt("File"),bg=yt("Blob"),_g=yt("FileList"),wg=r=>xe(r)&&ut(r.pipe),Eg=r=>{let t;return r&&(typeof FormData=="function"&&r instanceof FormData||ut(r.append)&&((t=sr(r))==="formdata"||t==="object"&&ut(r.toString)&&r.toString()==="[object FormData]"))},Sg=yt("URLSearchParams"),[Tg,Rg,xg,Ag]=["ReadableStream","Request","Response","Headers"].map(yt),Og=r=>r.trim?r.trim():r.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Ae(r,t,{allOwnKeys:e=!1}={}){if(r===null||typeof r>"u")return;let n,i;if(typeof r!="object"&&(r=[r]),ce(r))for(n=0,i=r.length;n<i;n++)t.call(null,r[n],n,r);else{if(Re(r))return;const s=e?Object.getOwnPropertyNames(r):Object.keys(r),o=s.length;let u;for(n=0;n<o;n++)u=s[n],t.call(null,r[u],u,r)}}function Ao(r,t){if(Re(r))return null;t=t.toLowerCase();const e=Object.keys(r);let n=e.length,i;for(;n-- >0;)if(i=e[n],t===i.toLowerCase())return i;return null}const Lt=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Oo=r=>!se(r)&&r!==Lt;function Yr(){const{caseless:r,skipUndefined:t}=Oo(this)&&this||{},e={},n=(i,s)=>{const o=r&&Ao(e,s)||s;He(e[o])&&He(i)?e[o]=Yr(e[o],i):He(i)?e[o]=Yr({},i):ce(i)?e[o]=i.slice():(!t||!se(i))&&(e[o]=i)};for(let i=0,s=arguments.length;i<s;i++)arguments[i]&&Ae(arguments[i],n);return e}const $g=(r,t,e,{allOwnKeys:n}={})=>(Ae(t,(i,s)=>{e&&ut(i)?r[s]=So(i,e):r[s]=i},{allOwnKeys:n}),r),Dg=r=>(r.charCodeAt(0)===65279&&(r=r.slice(1)),r),Cg=(r,t,e,n)=>{r.prototype=Object.create(t.prototype,n),r.prototype.constructor=r,Object.defineProperty(r,"super",{value:t.prototype}),e&&Object.assign(r.prototype,e)},Bg=(r,t,e,n)=>{let i,s,o;const u={};if(t=t||{},r==null)return t;do{for(i=Object.getOwnPropertyNames(r),s=i.length;s-- >0;)o=i[s],(!n||n(o,r,t))&&!u[o]&&(t[o]=r[o],u[o]=!0);r=e!==!1&&En(r)}while(r&&(!e||e(r,t))&&r!==Object.prototype);return t},jg=(r,t,e)=>{r=String(r),(e===void 0||e>r.length)&&(e=r.length),e-=t.length;const n=r.indexOf(t,e);return n!==-1&&n===e},Pg=r=>{if(!r)return null;if(ce(r))return r;let t=r.length;if(!xo(t))return null;const e=new Array(t);for(;t-- >0;)e[t]=r[t];return e},Ng=(r=>t=>r&&t instanceof r)(typeof Uint8Array<"u"&&En(Uint8Array)),Ig=(r,t)=>{const e=(r&&r[ir]).call(r);let n;for(;(n=e.next())&&!n.done;){const i=n.value;t.call(r,i[0],i[1])}},Mg=(r,t)=>{let e;const n=[];for(;(e=r.exec(t))!==null;)n.push(e);return n},Fg=yt("HTMLFormElement"),Ug=r=>r.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(t,e,n){return e.toUpperCase()+n}),Pi=(({hasOwnProperty:r})=>(t,e)=>r.call(t,e))(Object.prototype),Lg=yt("RegExp"),$o=(r,t)=>{const e=Object.getOwnPropertyDescriptors(r),n={};Ae(e,(i,s)=>{let o;(o=t(i,s,r))!==!1&&(n[s]=o||i)}),Object.defineProperties(r,n)},kg=r=>{$o(r,(t,e)=>{if(ut(r)&&["arguments","caller","callee"].indexOf(e)!==-1)return!1;const n=r[e];if(ut(n)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+e+"'")})}})},Hg=(r,t)=>{const e={},n=i=>{i.forEach(s=>{e[s]=!0})};return ce(r)?n(r):n(String(r).split(t)),e},Vg=()=>{},qg=(r,t)=>r!=null&&Number.isFinite(r=+r)?r:t;function zg(r){return!!(r&&ut(r.append)&&r[To]==="FormData"&&r[ir])}const Wg=r=>{const t=new Array(10),e=(n,i)=>{if(xe(n)){if(t.indexOf(n)>=0)return;if(Re(n))return n;if(!("toJSON"in n)){t[i]=n;const s=ce(n)?[]:{};return Ae(n,(o,u)=>{const l=e(o,i+1);!se(l)&&(s[u]=l)}),t[i]=void 0,s}}return n};return e(r,0)},Kg=yt("AsyncFunction"),Jg=r=>r&&(xe(r)||ut(r))&&ut(r.then)&&ut(r.catch),Do=((r,t)=>r?setImmediate:t?((e,n)=>(Lt.addEventListener("message",({source:i,data:s})=>{i===Lt&&s===e&&n.length&&n.shift()()},!1),i=>{n.push(i),Lt.postMessage(e,"*")}))(`axios@${Math.random()}`,[]):e=>setTimeout(e))(typeof setImmediate=="function",ut(Lt.postMessage)),Gg=typeof queueMicrotask<"u"?queueMicrotask.bind(Lt):typeof process<"u"&&process.nextTick||Do,Yg=r=>r!=null&&ut(r[ir]),R={isArray:ce,isArrayBuffer:Ro,isBuffer:Re,isFormData:Eg,isArrayBufferView:pg,isString:dg,isNumber:xo,isBoolean:gg,isObject:xe,isPlainObject:He,isEmptyObject:vg,isReadableStream:Tg,isRequest:Rg,isResponse:xg,isHeaders:Ag,isUndefined:se,isDate:mg,isFile:yg,isBlob:bg,isRegExp:Lg,isFunction:ut,isStream:wg,isURLSearchParams:Sg,isTypedArray:Ng,isFileList:_g,forEach:Ae,merge:Yr,extend:$g,trim:Og,stripBOM:Dg,inherits:Cg,toFlatObject:Bg,kindOf:sr,kindOfTest:yt,endsWith:jg,toArray:Pg,forEachEntry:Ig,matchAll:Mg,isHTMLForm:Fg,hasOwnProperty:Pi,hasOwnProp:Pi,reduceDescriptors:$o,freezeMethods:kg,toObjectSet:Hg,toCamelCase:Ug,noop:Vg,toFiniteNumber:qg,findKey:Ao,global:Lt,isContextDefined:Oo,isSpecCompliantForm:zg,toJSONObject:Wg,isAsyncFn:Kg,isThenable:Jg,setImmediate:Do,asap:Gg,isIterable:Yg};function K(r,t,e,n,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=r,this.name="AxiosError",t&&(this.code=t),e&&(this.config=e),n&&(this.request=n),i&&(this.response=i,this.status=i.status?i.status:null)}R.inherits(K,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:R.toJSONObject(this.config),code:this.code,status:this.status}}});const Co=K.prototype,Bo={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(r=>{Bo[r]={value:r}});Object.defineProperties(K,Bo);Object.defineProperty(Co,"isAxiosError",{value:!0});K.from=(r,t,e,n,i,s)=>{const o=Object.create(Co);R.toFlatObject(r,o,function(a){return a!==Error.prototype},a=>a!=="isAxiosError");const u=r&&r.message?r.message:"Error",l=t==null&&r?r.code:t;return K.call(o,u,l,e,n,i),r&&o.cause==null&&Object.defineProperty(o,"cause",{value:r,configurable:!0}),o.name=r&&r.name||"Error",s&&Object.assign(o,s),o};const Zg=null;function Zr(r){return R.isPlainObject(r)||R.isArray(r)}function jo(r){return R.endsWith(r,"[]")?r.slice(0,-2):r}function Ni(r,t,e){return r?r.concat(t).map(function(n,i){return n=jo(n),!e&&i?"["+n+"]":n}).join(e?".":""):t}function Qg(r){return R.isArray(r)&&!r.some(Zr)}const Xg=R.toFlatObject(R,{},null,function(r){return/^is[A-Z]/.test(r)});function ar(r,t,e){if(!R.isObject(r))throw new TypeError("target must be an object");t=t||new FormData,e=R.toFlatObject(e,{metaTokens:!0,dots:!1,indexes:!1},!1,function(p,d){return!R.isUndefined(d[p])});const n=e.metaTokens,i=e.visitor||a,s=e.dots,o=e.indexes,u=(e.Blob||typeof Blob<"u"&&Blob)&&R.isSpecCompliantForm(t);if(!R.isFunction(i))throw new TypeError("visitor must be a function");function l(p){if(p===null)return"";if(R.isDate(p))return p.toISOString();if(R.isBoolean(p))return p.toString();if(!u&&R.isBlob(p))throw new K("Blob is not supported. Use a Buffer instead.");return R.isArrayBuffer(p)||R.isTypedArray(p)?u&&typeof Blob=="function"?new Blob([p]):Buffer.from(p):p}function a(p,d,g){let b=p;if(p&&!g&&typeof p=="object"){if(R.endsWith(d,"{}"))d=n?d:d.slice(0,-2),p=JSON.stringify(p);else if(R.isArray(p)&&Qg(p)||(R.isFileList(p)||R.endsWith(d,"[]"))&&(b=R.toArray(p)))return d=jo(d),b.forEach(function(w,m){!(R.isUndefined(w)||w===null)&&t.append(o===!0?Ni([d],m,s):o===null?d:d+"[]",l(w))}),!1}return Zr(p)?!0:(t.append(Ni(g,d,s),l(p)),!1)}const c=[],f=Object.assign(Xg,{defaultVisitor:a,convertValue:l,isVisitable:Zr});function h(p,d){if(!R.isUndefined(p)){if(c.indexOf(p)!==-1)throw Error("Circular reference detected in "+d.join("."));c.push(p),R.forEach(p,function(g,b){(!(R.isUndefined(g)||g===null)&&i.call(t,g,R.isString(b)?b.trim():b,d,f))===!0&&h(g,d?d.concat(b):[b])}),c.pop()}}if(!R.isObject(r))throw new TypeError("data must be an object");return h(r),t}function Ii(r){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(r).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function Sn(r,t){this._pairs=[],r&&ar(r,this,t)}const Po=Sn.prototype;Po.append=function(r,t){this._pairs.push([r,t])};Po.toString=function(r){const t=r?function(e){return r.call(this,e,Ii)}:Ii;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};function tv(r){return encodeURIComponent(r).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function No(r,t,e){if(!t)return r;const n=e&&e.encode||tv;R.isFunction(e)&&(e={serialize:e});const i=e&&e.serialize;let s;if(i?s=i(t,e):s=R.isURLSearchParams(t)?t.toString():new Sn(t,e).toString(n),s){const o=r.indexOf("#");o!==-1&&(r=r.slice(0,o)),r+=(r.indexOf("?")===-1?"?":"&")+s}return r}class Mi{constructor(){this.handlers=[]}use(t,e,n){return this.handlers.push({fulfilled:t,rejected:e,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){R.forEach(this.handlers,function(e){e!==null&&t(e)})}}const Io={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},ev=typeof URLSearchParams<"u"?URLSearchParams:Sn,rv=typeof FormData<"u"?FormData:null,nv=typeof Blob<"u"?Blob:null,iv={isBrowser:!0,classes:{URLSearchParams:ev,FormData:rv,Blob:nv},protocols:["http","https","file","blob","url","data"]},Tn=typeof window<"u"&&typeof document<"u",Qr=typeof navigator=="object"&&navigator||void 0,sv=Tn&&(!Qr||["ReactNative","NativeScript","NS"].indexOf(Qr.product)<0),ov=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",av=Tn&&window.location.href||"http://localhost",uv=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Tn,hasStandardBrowserEnv:sv,hasStandardBrowserWebWorkerEnv:ov,navigator:Qr,origin:av},Symbol.toStringTag,{value:"Module"})),it=H(H({},uv),iv);function cv(r,t){return ar(r,new it.classes.URLSearchParams,H({visitor:function(e,n,i,s){return it.isNode&&R.isBuffer(e)?(this.append(n,e.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)}},t))}function lv(r){return R.matchAll(/\w+|\[(\w*)]/g,r).map(t=>t[0]==="[]"?"":t[1]||t[0])}function fv(r){const t={},e=Object.keys(r);let n;const i=e.length;let s;for(n=0;n<i;n++)s=e[n],t[s]=r[s];return t}function Mo(r){function t(e,n,i,s){let o=e[s++];if(o==="__proto__")return!0;const u=Number.isFinite(+o),l=s>=e.length;return o=!o&&R.isArray(i)?i.length:o,l?(R.hasOwnProp(i,o)?i[o]=[i[o],n]:i[o]=n,!u):((!i[o]||!R.isObject(i[o]))&&(i[o]=[]),t(e,n,i[o],s)&&R.isArray(i[o])&&(i[o]=fv(i[o])),!u)}if(R.isFormData(r)&&R.isFunction(r.entries)){const e={};return R.forEachEntry(r,(n,i)=>{t(lv(n),i,e,0)}),e}return null}function hv(r,t,e){if(R.isString(r))try{return(t||JSON.parse)(r),R.trim(r)}catch(n){if(n.name!=="SyntaxError")throw n}return(e||JSON.stringify)(r)}const Oe={transitional:Io,adapter:["xhr","http","fetch"],transformRequest:[function(r,t){const e=t.getContentType()||"",n=e.indexOf("application/json")>-1,i=R.isObject(r);if(i&&R.isHTMLForm(r)&&(r=new FormData(r)),R.isFormData(r))return n?JSON.stringify(Mo(r)):r;if(R.isArrayBuffer(r)||R.isBuffer(r)||R.isStream(r)||R.isFile(r)||R.isBlob(r)||R.isReadableStream(r))return r;if(R.isArrayBufferView(r))return r.buffer;if(R.isURLSearchParams(r))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),r.toString();let s;if(i){if(e.indexOf("application/x-www-form-urlencoded")>-1)return cv(r,this.formSerializer).toString();if((s=R.isFileList(r))||e.indexOf("multipart/form-data")>-1){const o=this.env&&this.env.FormData;return ar(s?{"files[]":r}:r,o&&new o,this.formSerializer)}}return i||n?(t.setContentType("application/json",!1),hv(r)):r}],transformResponse:[function(r){const t=this.transitional||Oe.transitional,e=t&&t.forcedJSONParsing,n=this.responseType==="json";if(R.isResponse(r)||R.isReadableStream(r))return r;if(r&&R.isString(r)&&(e&&!this.responseType||n)){const i=!(t&&t.silentJSONParsing)&&n;try{return JSON.parse(r,this.parseReviver)}catch(s){if(i)throw s.name==="SyntaxError"?K.from(s,K.ERR_BAD_RESPONSE,this,null,this.response):s}}return r}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:it.classes.FormData,Blob:it.classes.Blob},validateStatus:function(r){return r>=200&&r<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};R.forEach(["delete","get","head","post","put","patch"],r=>{Oe.headers[r]={}});const pv=R.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),dv=r=>{const t={};let e,n,i;return r&&r.split(`
|
|
51
|
+
*/const og="VueMaterial",ag="VueRouterMaterial",ug={[og]:["Transition","TransitionGroup","KeepAlive","Teleport","Suspense"],[ag]:["RouterView","RouterLink"]};let cg=class{constructor(){z(this,"listeners",[]);z(this,"isReady",!1)}triggerReady(){this.isReady=!0;for(const t of this.listeners)t();this.listeners=[]}ready(t){this.isReady?t():this.listeners.push(t)}resetReady(){this.isReady=!1}};var lg=Object.defineProperty,fg=(r,t,e)=>t in r?lg(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e,ft=(r,t,e)=>fg(r,typeof t!="symbol"?t+"":t,e);(function(){if(typeof window>"u"||typeof EventTarget>"u")return;const r=EventTarget.prototype.addEventListener;EventTarget.prototype.addEventListener=function(t,e,n){typeof n!="boolean"&&(n=n||{},n.passive=!1),r.call(this,t,e,n)}})();function So(r,t){return function(){return r.apply(t,arguments)}}const{toString:hg}=Object.prototype,{getPrototypeOf:En}=Object,{iterator:ir,toStringTag:To}=Symbol,sr=(r=>t=>{const e=hg.call(t);return r[e]||(r[e]=e.slice(8,-1).toLowerCase())})(Object.create(null)),yt=r=>(r=r.toLowerCase(),t=>sr(t)===r),or=r=>t=>typeof t===r,{isArray:ce}=Array,se=or("undefined");function Re(r){return r!==null&&!se(r)&&r.constructor!==null&&!se(r.constructor)&&ut(r.constructor.isBuffer)&&r.constructor.isBuffer(r)}const Ro=yt("ArrayBuffer");function pg(r){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(r):t=r&&r.buffer&&Ro(r.buffer),t}const dg=or("string"),ut=or("function"),xo=or("number"),xe=r=>r!==null&&typeof r=="object",gg=r=>r===!0||r===!1,He=r=>{if(sr(r)!=="object")return!1;const t=En(r);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(To in r)&&!(ir in r)},vg=r=>{if(!xe(r)||Re(r))return!1;try{return Object.keys(r).length===0&&Object.getPrototypeOf(r)===Object.prototype}catch(t){return!1}},mg=yt("Date"),yg=yt("File"),bg=yt("Blob"),_g=yt("FileList"),wg=r=>xe(r)&&ut(r.pipe),Eg=r=>{let t;return r&&(typeof FormData=="function"&&r instanceof FormData||ut(r.append)&&((t=sr(r))==="formdata"||t==="object"&&ut(r.toString)&&r.toString()==="[object FormData]"))},Sg=yt("URLSearchParams"),[Tg,Rg,xg,Ag]=["ReadableStream","Request","Response","Headers"].map(yt),Og=r=>r.trim?r.trim():r.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Ae(r,t,{allOwnKeys:e=!1}={}){if(r===null||typeof r>"u")return;let n,i;if(typeof r!="object"&&(r=[r]),ce(r))for(n=0,i=r.length;n<i;n++)t.call(null,r[n],n,r);else{if(Re(r))return;const s=e?Object.getOwnPropertyNames(r):Object.keys(r),o=s.length;let u;for(n=0;n<o;n++)u=s[n],t.call(null,r[u],u,r)}}function Ao(r,t){if(Re(r))return null;t=t.toLowerCase();const e=Object.keys(r);let n=e.length,i;for(;n-- >0;)if(i=e[n],t===i.toLowerCase())return i;return null}const Lt=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Oo=r=>!se(r)&&r!==Lt;function Yr(){const{caseless:r,skipUndefined:t}=Oo(this)&&this||{},e={},n=(i,s)=>{const o=r&&Ao(e,s)||s;He(e[o])&&He(i)?e[o]=Yr(e[o],i):He(i)?e[o]=Yr({},i):ce(i)?e[o]=i.slice():(!t||!se(i))&&(e[o]=i)};for(let i=0,s=arguments.length;i<s;i++)arguments[i]&&Ae(arguments[i],n);return e}const $g=(r,t,e,{allOwnKeys:n}={})=>(Ae(t,(i,s)=>{e&&ut(i)?r[s]=So(i,e):r[s]=i},{allOwnKeys:n}),r),Dg=r=>(r.charCodeAt(0)===65279&&(r=r.slice(1)),r),Cg=(r,t,e,n)=>{r.prototype=Object.create(t.prototype,n),r.prototype.constructor=r,Object.defineProperty(r,"super",{value:t.prototype}),e&&Object.assign(r.prototype,e)},Bg=(r,t,e,n)=>{let i,s,o;const u={};if(t=t||{},r==null)return t;do{for(i=Object.getOwnPropertyNames(r),s=i.length;s-- >0;)o=i[s],(!n||n(o,r,t))&&!u[o]&&(t[o]=r[o],u[o]=!0);r=e!==!1&&En(r)}while(r&&(!e||e(r,t))&&r!==Object.prototype);return t},jg=(r,t,e)=>{r=String(r),(e===void 0||e>r.length)&&(e=r.length),e-=t.length;const n=r.indexOf(t,e);return n!==-1&&n===e},Pg=r=>{if(!r)return null;if(ce(r))return r;let t=r.length;if(!xo(t))return null;const e=new Array(t);for(;t-- >0;)e[t]=r[t];return e},Ng=(r=>t=>r&&t instanceof r)(typeof Uint8Array<"u"&&En(Uint8Array)),Ig=(r,t)=>{const e=(r&&r[ir]).call(r);let n;for(;(n=e.next())&&!n.done;){const i=n.value;t.call(r,i[0],i[1])}},Mg=(r,t)=>{let e;const n=[];for(;(e=r.exec(t))!==null;)n.push(e);return n},Fg=yt("HTMLFormElement"),Ug=r=>r.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(t,e,n){return e.toUpperCase()+n}),Pi=(({hasOwnProperty:r})=>(t,e)=>r.call(t,e))(Object.prototype),Lg=yt("RegExp"),$o=(r,t)=>{const e=Object.getOwnPropertyDescriptors(r),n={};Ae(e,(i,s)=>{let o;(o=t(i,s,r))!==!1&&(n[s]=o||i)}),Object.defineProperties(r,n)},kg=r=>{$o(r,(t,e)=>{if(ut(r)&&["arguments","caller","callee"].indexOf(e)!==-1)return!1;const n=r[e];if(ut(n)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+e+"'")})}})},Hg=(r,t)=>{const e={},n=i=>{i.forEach(s=>{e[s]=!0})};return ce(r)?n(r):n(String(r).split(t)),e},Vg=()=>{},qg=(r,t)=>r!=null&&Number.isFinite(r=+r)?r:t;function zg(r){return!!(r&&ut(r.append)&&r[To]==="FormData"&&r[ir])}const Wg=r=>{const t=new Array(10),e=(n,i)=>{if(xe(n)){if(t.indexOf(n)>=0)return;if(Re(n))return n;if(!("toJSON"in n)){t[i]=n;const s=ce(n)?[]:{};return Ae(n,(o,u)=>{const l=e(o,i+1);!se(l)&&(s[u]=l)}),t[i]=void 0,s}}return n};return e(r,0)},Kg=yt("AsyncFunction"),Jg=r=>r&&(xe(r)||ut(r))&&ut(r.then)&&ut(r.catch),Do=((r,t)=>r?setImmediate:t?((e,n)=>(Lt.addEventListener("message",({source:i,data:s})=>{i===Lt&&s===e&&n.length&&n.shift()()},!1),i=>{n.push(i),Lt.postMessage(e,"*")}))(`axios@${Math.random()}`,[]):e=>setTimeout(e))(typeof setImmediate=="function",ut(Lt.postMessage)),Gg=typeof queueMicrotask<"u"?queueMicrotask.bind(Lt):typeof process<"u"&&process.nextTick||Do,Yg=r=>r!=null&&ut(r[ir]),R={isArray:ce,isArrayBuffer:Ro,isBuffer:Re,isFormData:Eg,isArrayBufferView:pg,isString:dg,isNumber:xo,isBoolean:gg,isObject:xe,isPlainObject:He,isEmptyObject:vg,isReadableStream:Tg,isRequest:Rg,isResponse:xg,isHeaders:Ag,isUndefined:se,isDate:mg,isFile:yg,isBlob:bg,isRegExp:Lg,isFunction:ut,isStream:wg,isURLSearchParams:Sg,isTypedArray:Ng,isFileList:_g,forEach:Ae,merge:Yr,extend:$g,trim:Og,stripBOM:Dg,inherits:Cg,toFlatObject:Bg,kindOf:sr,kindOfTest:yt,endsWith:jg,toArray:Pg,forEachEntry:Ig,matchAll:Mg,isHTMLForm:Fg,hasOwnProperty:Pi,hasOwnProp:Pi,reduceDescriptors:$o,freezeMethods:kg,toObjectSet:Hg,toCamelCase:Ug,noop:Vg,toFiniteNumber:qg,findKey:Ao,global:Lt,isContextDefined:Oo,isSpecCompliantForm:zg,toJSONObject:Wg,isAsyncFn:Kg,isThenable:Jg,setImmediate:Do,asap:Gg,isIterable:Yg};function K(r,t,e,n,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=r,this.name="AxiosError",t&&(this.code=t),e&&(this.config=e),n&&(this.request=n),i&&(this.response=i,this.status=i.status?i.status:null)}R.inherits(K,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:R.toJSONObject(this.config),code:this.code,status:this.status}}});const Co=K.prototype,Bo={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(r=>{Bo[r]={value:r}});Object.defineProperties(K,Bo);Object.defineProperty(Co,"isAxiosError",{value:!0});K.from=(r,t,e,n,i,s)=>{const o=Object.create(Co);R.toFlatObject(r,o,function(a){return a!==Error.prototype},a=>a!=="isAxiosError");const u=r&&r.message?r.message:"Error",l=t==null&&r?r.code:t;return K.call(o,u,l,e,n,i),r&&o.cause==null&&Object.defineProperty(o,"cause",{value:r,configurable:!0}),o.name=r&&r.name||"Error",s&&Object.assign(o,s),o};const Zg=null;function Zr(r){return R.isPlainObject(r)||R.isArray(r)}function jo(r){return R.endsWith(r,"[]")?r.slice(0,-2):r}function Ni(r,t,e){return r?r.concat(t).map(function(n,i){return n=jo(n),!e&&i?"["+n+"]":n}).join(e?".":""):t}function Qg(r){return R.isArray(r)&&!r.some(Zr)}const Xg=R.toFlatObject(R,{},null,function(r){return/^is[A-Z]/.test(r)});function ar(r,t,e){if(!R.isObject(r))throw new TypeError("target must be an object");t=t||new FormData,e=R.toFlatObject(e,{metaTokens:!0,dots:!1,indexes:!1},!1,function(p,d){return!R.isUndefined(d[p])});const n=e.metaTokens,i=e.visitor||a,s=e.dots,o=e.indexes,u=(e.Blob||typeof Blob<"u"&&Blob)&&R.isSpecCompliantForm(t);if(!R.isFunction(i))throw new TypeError("visitor must be a function");function l(p){if(p===null)return"";if(R.isDate(p))return p.toISOString();if(R.isBoolean(p))return p.toString();if(!u&&R.isBlob(p))throw new K("Blob is not supported. Use a Buffer instead.");return R.isArrayBuffer(p)||R.isTypedArray(p)?u&&typeof Blob=="function"?new Blob([p]):Buffer.from(p):p}function a(p,d,g){let y=p;if(p&&!g&&typeof p=="object"){if(R.endsWith(d,"{}"))d=n?d:d.slice(0,-2),p=JSON.stringify(p);else if(R.isArray(p)&&Qg(p)||(R.isFileList(p)||R.endsWith(d,"[]"))&&(y=R.toArray(p)))return d=jo(d),y.forEach(function(w,m){!(R.isUndefined(w)||w===null)&&t.append(o===!0?Ni([d],m,s):o===null?d:d+"[]",l(w))}),!1}return Zr(p)?!0:(t.append(Ni(g,d,s),l(p)),!1)}const c=[],f=Object.assign(Xg,{defaultVisitor:a,convertValue:l,isVisitable:Zr});function h(p,d){if(!R.isUndefined(p)){if(c.indexOf(p)!==-1)throw Error("Circular reference detected in "+d.join("."));c.push(p),R.forEach(p,function(g,y){(!(R.isUndefined(g)||g===null)&&i.call(t,g,R.isString(y)?y.trim():y,d,f))===!0&&h(g,d?d.concat(y):[y])}),c.pop()}}if(!R.isObject(r))throw new TypeError("data must be an object");return h(r),t}function Ii(r){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(r).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function Sn(r,t){this._pairs=[],r&&ar(r,this,t)}const Po=Sn.prototype;Po.append=function(r,t){this._pairs.push([r,t])};Po.toString=function(r){const t=r?function(e){return r.call(this,e,Ii)}:Ii;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};function tv(r){return encodeURIComponent(r).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function No(r,t,e){if(!t)return r;const n=e&&e.encode||tv;R.isFunction(e)&&(e={serialize:e});const i=e&&e.serialize;let s;if(i?s=i(t,e):s=R.isURLSearchParams(t)?t.toString():new Sn(t,e).toString(n),s){const o=r.indexOf("#");o!==-1&&(r=r.slice(0,o)),r+=(r.indexOf("?")===-1?"?":"&")+s}return r}class Mi{constructor(){this.handlers=[]}use(t,e,n){return this.handlers.push({fulfilled:t,rejected:e,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){R.forEach(this.handlers,function(e){e!==null&&t(e)})}}const Io={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},ev=typeof URLSearchParams<"u"?URLSearchParams:Sn,rv=typeof FormData<"u"?FormData:null,nv=typeof Blob<"u"?Blob:null,iv={isBrowser:!0,classes:{URLSearchParams:ev,FormData:rv,Blob:nv},protocols:["http","https","file","blob","url","data"]},Tn=typeof window<"u"&&typeof document<"u",Qr=typeof navigator=="object"&&navigator||void 0,sv=Tn&&(!Qr||["ReactNative","NativeScript","NS"].indexOf(Qr.product)<0),ov=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",av=Tn&&window.location.href||"http://localhost",uv=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Tn,hasStandardBrowserEnv:sv,hasStandardBrowserWebWorkerEnv:ov,navigator:Qr,origin:av},Symbol.toStringTag,{value:"Module"})),it=H(H({},uv),iv);function cv(r,t){return ar(r,new it.classes.URLSearchParams,H({visitor:function(e,n,i,s){return it.isNode&&R.isBuffer(e)?(this.append(n,e.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)}},t))}function lv(r){return R.matchAll(/\w+|\[(\w*)]/g,r).map(t=>t[0]==="[]"?"":t[1]||t[0])}function fv(r){const t={},e=Object.keys(r);let n;const i=e.length;let s;for(n=0;n<i;n++)s=e[n],t[s]=r[s];return t}function Mo(r){function t(e,n,i,s){let o=e[s++];if(o==="__proto__")return!0;const u=Number.isFinite(+o),l=s>=e.length;return o=!o&&R.isArray(i)?i.length:o,l?(R.hasOwnProp(i,o)?i[o]=[i[o],n]:i[o]=n,!u):((!i[o]||!R.isObject(i[o]))&&(i[o]=[]),t(e,n,i[o],s)&&R.isArray(i[o])&&(i[o]=fv(i[o])),!u)}if(R.isFormData(r)&&R.isFunction(r.entries)){const e={};return R.forEachEntry(r,(n,i)=>{t(lv(n),i,e,0)}),e}return null}function hv(r,t,e){if(R.isString(r))try{return(t||JSON.parse)(r),R.trim(r)}catch(n){if(n.name!=="SyntaxError")throw n}return(e||JSON.stringify)(r)}const Oe={transitional:Io,adapter:["xhr","http","fetch"],transformRequest:[function(r,t){const e=t.getContentType()||"",n=e.indexOf("application/json")>-1,i=R.isObject(r);if(i&&R.isHTMLForm(r)&&(r=new FormData(r)),R.isFormData(r))return n?JSON.stringify(Mo(r)):r;if(R.isArrayBuffer(r)||R.isBuffer(r)||R.isStream(r)||R.isFile(r)||R.isBlob(r)||R.isReadableStream(r))return r;if(R.isArrayBufferView(r))return r.buffer;if(R.isURLSearchParams(r))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),r.toString();let s;if(i){if(e.indexOf("application/x-www-form-urlencoded")>-1)return cv(r,this.formSerializer).toString();if((s=R.isFileList(r))||e.indexOf("multipart/form-data")>-1){const o=this.env&&this.env.FormData;return ar(s?{"files[]":r}:r,o&&new o,this.formSerializer)}}return i||n?(t.setContentType("application/json",!1),hv(r)):r}],transformResponse:[function(r){const t=this.transitional||Oe.transitional,e=t&&t.forcedJSONParsing,n=this.responseType==="json";if(R.isResponse(r)||R.isReadableStream(r))return r;if(r&&R.isString(r)&&(e&&!this.responseType||n)){const i=!(t&&t.silentJSONParsing)&&n;try{return JSON.parse(r,this.parseReviver)}catch(s){if(i)throw s.name==="SyntaxError"?K.from(s,K.ERR_BAD_RESPONSE,this,null,this.response):s}}return r}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:it.classes.FormData,Blob:it.classes.Blob},validateStatus:function(r){return r>=200&&r<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};R.forEach(["delete","get","head","post","put","patch"],r=>{Oe.headers[r]={}});const pv=R.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),dv=r=>{const t={};let e,n,i;return r&&r.split(`
|
|
52
52
|
`).forEach(function(s){i=s.indexOf(":"),e=s.substring(0,i).trim().toLowerCase(),n=s.substring(i+1).trim(),!(!e||t[e]&&pv[e])&&(e==="set-cookie"?t[e]?t[e].push(n):t[e]=[n]:t[e]=t[e]?t[e]+", "+n:n)}),t},Fi=Symbol("internals");function ge(r){return r&&String(r).trim().toLowerCase()}function Ve(r){return r===!1||r==null?r:R.isArray(r)?r.map(Ve):String(r)}function gv(r){const t=Object.create(null),e=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=e.exec(r);)t[n[1]]=n[2];return t}const vv=r=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(r.trim());function Ar(r,t,e,n,i){if(R.isFunction(n))return n.call(this,t,e);if(i&&(t=e),!!R.isString(t)){if(R.isString(n))return t.indexOf(n)!==-1;if(R.isRegExp(n))return n.test(t)}}function mv(r){return r.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,e,n)=>e.toUpperCase()+n)}function yv(r,t){const e=R.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(r,n+e,{value:function(i,s,o){return this[n].call(this,t,i,s,o)},configurable:!0})})}let ct=class{constructor(t){t&&this.set(t)}set(t,e,n){const i=this;function s(u,l,a){const c=ge(l);if(!c)throw new Error("header name must be a non-empty string");const f=R.findKey(i,c);(!f||i[f]===void 0||a===!0||a===void 0&&i[f]!==!1)&&(i[f||l]=Ve(u))}const o=(u,l)=>R.forEach(u,(a,c)=>s(a,c,l));if(R.isPlainObject(t)||t instanceof this.constructor)o(t,e);else if(R.isString(t)&&(t=t.trim())&&!vv(t))o(dv(t),e);else if(R.isObject(t)&&R.isIterable(t)){let u={},l,a;for(const c of t){if(!R.isArray(c))throw TypeError("Object iterator must return a key-value pair");u[a=c[0]]=(l=u[a])?R.isArray(l)?[...l,c[1]]:[l,c[1]]:c[1]}o(u,e)}else t!=null&&s(e,t,n);return this}get(t,e){if(t=ge(t),t){const n=R.findKey(this,t);if(n){const i=this[n];if(!e)return i;if(e===!0)return gv(i);if(R.isFunction(e))return e.call(this,i,n);if(R.isRegExp(e))return e.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,e){if(t=ge(t),t){const n=R.findKey(this,t);return!!(n&&this[n]!==void 0&&(!e||Ar(this,this[n],n,e)))}return!1}delete(t,e){const n=this;let i=!1;function s(o){if(o=ge(o),o){const u=R.findKey(n,o);u&&(!e||Ar(n,n[u],u,e))&&(delete n[u],i=!0)}}return R.isArray(t)?t.forEach(s):s(t),i}clear(t){const e=Object.keys(this);let n=e.length,i=!1;for(;n--;){const s=e[n];(!t||Ar(this,this[s],s,t,!0))&&(delete this[s],i=!0)}return i}normalize(t){const e=this,n={};return R.forEach(this,(i,s)=>{const o=R.findKey(n,s);if(o){e[o]=Ve(i),delete e[s];return}const u=t?mv(s):String(s).trim();u!==s&&delete e[s],e[u]=Ve(i),n[u]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const e=Object.create(null);return R.forEach(this,(n,i)=>{n!=null&&n!==!1&&(e[i]=t&&R.isArray(n)?n.join(", "):n)}),e}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,e])=>t+": "+e).join(`
|
|
53
|
-
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...e){const n=new this(t);return e.forEach(i=>n.set(i)),n}static accessor(t){const e=(this[Fi]=this[Fi]={accessors:{}}).accessors,n=this.prototype;function i(s){const o=ge(s);e[o]||(yv(n,s),e[o]=!0)}return R.isArray(t)?t.forEach(i):i(t),this}};ct.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);R.reduceDescriptors(ct.prototype,({value:r},t)=>{let e=t[0].toUpperCase()+t.slice(1);return{get:()=>r,set(n){this[e]=n}}});R.freezeMethods(ct);function Or(r,t){const e=this||Oe,n=t||e,i=ct.from(n.headers);let s=n.data;return R.forEach(r,function(o){s=o.call(e,s,i.normalize(),t?t.status:void 0)}),i.normalize(),s}function Fo(r){return!!(r&&r.__CANCEL__)}function le(r,t,e){K.call(this,r!=null?r:"canceled",K.ERR_CANCELED,t,e),this.name="CanceledError"}R.inherits(le,K,{__CANCEL__:!0});function Uo(r,t,e){const n=e.config.validateStatus;!e.status||!n||n(e.status)?r(e):t(new K("Request failed with status code "+e.status,[K.ERR_BAD_REQUEST,K.ERR_BAD_RESPONSE][Math.floor(e.status/100)-4],e.config,e.request,e))}function bv(r){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(r);return t&&t[1]||""}function _v(r,t){r=r||10;const e=new Array(r),n=new Array(r);let i=0,s=0,o;return t=t!==void 0?t:1e3,function(u){const l=Date.now(),a=n[s];o||(o=l),e[i]=u,n[i]=l;let c=s,f=0;for(;c!==i;)f+=e[c++],c=c%r;if(i=(i+1)%r,i===s&&(s=(s+1)%r),l-o<t)return;const h=a&&l-a;return h?Math.round(f*1e3/h):void 0}}function wv(r,t){let e=0,n=1e3/t,i,s;const o=(u,l=Date.now())=>{e=l,i=null,s&&(clearTimeout(s),s=null),r(...u)};return[(...u)=>{const l=Date.now(),a=l-e;a>=n?o(u,l):(i=u,s||(s=setTimeout(()=>{s=null,o(i)},n-a)))},()=>i&&o(i)]}const Qe=(r,t,e=3)=>{let n=0;const i=_v(50,250);return wv(s=>{const o=s.loaded,u=s.lengthComputable?s.total:void 0,l=o-n,a=i(l),c=o<=u;n=o;const f={loaded:o,total:u,progress:u?o/u:void 0,bytes:l,rate:a||void 0,estimated:a&&u&&c?(u-o)/a:void 0,event:s,lengthComputable:u!=null,[t?"download":"upload"]:!0};r(f)},e)},Ui=(r,t)=>{const e=r!=null;return[n=>t[0]({lengthComputable:e,total:r,loaded:n}),t[1]]},Li=r=>(...t)=>R.asap(()=>r(...t)),Ev=it.hasStandardBrowserEnv?((r,t)=>e=>(e=new URL(e,it.origin),r.protocol===e.protocol&&r.host===e.host&&(t||r.port===e.port)))(new URL(it.origin),it.navigator&&/(msie|trident)/i.test(it.navigator.userAgent)):()=>!0,Sv=it.hasStandardBrowserEnv?{write(r,t,e,n,i,s,o){if(typeof document>"u")return;const u=[`${r}=${encodeURIComponent(t)}`];R.isNumber(e)&&u.push(`expires=${new Date(e).toUTCString()}`),R.isString(n)&&u.push(`path=${n}`),R.isString(i)&&u.push(`domain=${i}`),s===!0&&u.push("secure"),R.isString(o)&&u.push(`SameSite=${o}`),document.cookie=u.join("; ")},read(r){if(typeof document>"u")return null;const t=document.cookie.match(new RegExp("(?:^|; )"+r+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(r){this.write(r,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function Tv(r){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(r)}function Rv(r,t){return t?r.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):r}function Lo(r,t,e){let n=!Tv(t);return r&&(n||e==!1)?Rv(r,t):t}const ki=r=>r instanceof ct?H({},r):r;function zt(r,t){t=t||{};const e={};function n(a,c,f,h){return R.isPlainObject(a)&&R.isPlainObject(c)?R.merge.call({caseless:h},a,c):R.isPlainObject(c)?R.merge({},c):R.isArray(c)?c.slice():c}function i(a,c,f,h){if(R.isUndefined(c)){if(!R.isUndefined(a))return n(void 0,a,f,h)}else return n(a,c,f,h)}function s(a,c){if(!R.isUndefined(c))return n(void 0,c)}function o(a,c){if(R.isUndefined(c)){if(!R.isUndefined(a))return n(void 0,a)}else return n(void 0,c)}function u(a,c,f){if(f in t)return n(a,c);if(f in r)return n(void 0,a)}const l={url:s,method:s,data:s,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:u,headers:(a,c,f)=>i(ki(a),ki(c),f,!0)};return R.forEach(Object.keys(H(H({},r),t)),function(a){const c=l[a]||i,f=c(r[a],t[a],a);R.isUndefined(f)&&c!==u||(e[a]=f)}),e}const ko=r=>{const t=zt({},r);let{data:e,withXSRFToken:n,xsrfHeaderName:i,xsrfCookieName:s,headers:o,auth:u}=t;if(t.headers=o=ct.from(o),t.url=No(Lo(t.baseURL,t.url,t.allowAbsoluteUrls),r.params,r.paramsSerializer),u&&o.set("Authorization","Basic "+btoa((u.username||"")+":"+(u.password?unescape(encodeURIComponent(u.password)):""))),R.isFormData(e)){if(it.hasStandardBrowserEnv||it.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if(R.isFunction(e.getHeaders)){const l=e.getHeaders(),a=["content-type","content-length"];Object.entries(l).forEach(([c,f])=>{a.includes(c.toLowerCase())&&o.set(c,f)})}}if(it.hasStandardBrowserEnv&&(n&&R.isFunction(n)&&(n=n(t)),n||n!==!1&&Ev(t.url))){const l=i&&s&&Sv.read(s);l&&o.set(i,l)}return t},xv=typeof XMLHttpRequest<"u",Av=xv&&function(r){return new Promise(function(t,e){const n=ko(r);let i=n.data;const s=ct.from(n.headers).normalize();let{responseType:o,onUploadProgress:u,onDownloadProgress:l}=n,a,c,f,h,p;function d(){h&&h(),p&&p(),n.cancelToken&&n.cancelToken.unsubscribe(a),n.signal&&n.signal.removeEventListener("abort",a)}let g=new XMLHttpRequest;g.open(n.method.toUpperCase(),n.url,!0),g.timeout=n.timeout;function b(){if(!g)return;const m=ct.from("getAllResponseHeaders"in g&&g.getAllResponseHeaders()),y={data:!o||o==="text"||o==="json"?g.responseText:g.response,status:g.status,statusText:g.statusText,headers:m,config:r,request:g};Uo(function(_){t(_),d()},function(_){e(_),d()},y),g=null}"onloadend"in g?g.onloadend=b:g.onreadystatechange=function(){!g||g.readyState!==4||g.status===0&&!(g.responseURL&&g.responseURL.indexOf("file:")===0)||setTimeout(b)},g.onabort=function(){g&&(e(new K("Request aborted",K.ECONNABORTED,r,g)),g=null)},g.onerror=function(m){const y=m&&m.message?m.message:"Network Error",_=new K(y,K.ERR_NETWORK,r,g);_.event=m||null,e(_),g=null},g.ontimeout=function(){let m=n.timeout?"timeout of "+n.timeout+"ms exceeded":"timeout exceeded";const y=n.transitional||Io;n.timeoutErrorMessage&&(m=n.timeoutErrorMessage),e(new K(m,y.clarifyTimeoutError?K.ETIMEDOUT:K.ECONNABORTED,r,g)),g=null},i===void 0&&s.setContentType(null),"setRequestHeader"in g&&R.forEach(s.toJSON(),function(m,y){g.setRequestHeader(y,m)}),R.isUndefined(n.withCredentials)||(g.withCredentials=!!n.withCredentials),o&&o!=="json"&&(g.responseType=n.responseType),l&&([f,p]=Qe(l,!0),g.addEventListener("progress",f)),u&&g.upload&&([c,h]=Qe(u),g.upload.addEventListener("progress",c),g.upload.addEventListener("loadend",h)),(n.cancelToken||n.signal)&&(a=m=>{g&&(e(!m||m.type?new le(null,r,g):m),g.abort(),g=null)},n.cancelToken&&n.cancelToken.subscribe(a),n.signal&&(n.signal.aborted?a():n.signal.addEventListener("abort",a)));const w=bv(n.url);if(w&&it.protocols.indexOf(w)===-1){e(new K("Unsupported protocol "+w+":",K.ERR_BAD_REQUEST,r));return}g.send(i||null)})},Ov=(r,t)=>{const{length:e}=r=r?r.filter(Boolean):[];if(t||e){let n=new AbortController,i;const s=function(a){if(!i){i=!0,u();const c=a instanceof Error?a:this.reason;n.abort(c instanceof K?c:new le(c instanceof Error?c.message:c))}};let o=t&&setTimeout(()=>{o=null,s(new K(`timeout ${t} of ms exceeded`,K.ETIMEDOUT))},t);const u=()=>{r&&(o&&clearTimeout(o),o=null,r.forEach(a=>{a.unsubscribe?a.unsubscribe(s):a.removeEventListener("abort",s)}),r=null)};r.forEach(a=>a.addEventListener("abort",s));const{signal:l}=n;return l.unsubscribe=()=>R.asap(u),l}},$v=function*(r,t){let e=r.byteLength;if(e<t){yield r;return}let n=0,i;for(;n<e;)i=n+t,yield r.slice(n,i),n=i},Dv=function(r,t){return pr(this,null,function*(){try{for(var e=$n(Cv(r)),n,i,s;n=!(i=yield new Mt(e.next())).done;n=!1){const o=i.value;yield*dr($v(o,t))}}catch(i){s=[i]}finally{try{n&&(i=e.return)&&(yield new Mt(i.call(e)))}finally{if(s)throw s[0]}}})},Cv=function(r){return pr(this,null,function*(){if(r[Symbol.asyncIterator]){yield*dr(r);return}const t=r.getReader();try{for(;;){const{done:e,value:n}=yield new Mt(t.read());if(e)break;yield n}}finally{yield new Mt(t.cancel())}})},Hi=(r,t,e,n)=>{const i=Dv(r,t);let s=0,o,u=a=>{o||(o=!0,n&&n(a))};return new ReadableStream({pull(a){return U(this,null,function*(){try{const{done:c,value:f}=yield i.next();if(c){u(),a.close();return}let h=f.byteLength;if(e){let p=s+=h;e(p)}a.enqueue(new Uint8Array(f))}catch(c){throw u(c),c}})},cancel(a){return u(a),i.return()}},{highWaterMark:2})},Vi=64*1024,{isFunction:Me}=R,Bv=(({Request:r,Response:t})=>({Request:r,Response:t}))(R.global),{ReadableStream:qi,TextEncoder:zi}=R.global,Wi=(r,...t)=>{try{return!!r(...t)}catch(e){return!1}},jv=r=>{r=R.merge.call({skipUndefined:!0},Bv,r);const{fetch:t,Request:e,Response:n}=r,i=t?Me(t):typeof fetch=="function",s=Me(e),o=Me(n);if(!i)return!1;const u=i&&Me(qi),l=i&&(typeof zi=="function"?(d=>g=>d.encode(g))(new zi):d=>U(null,null,function*(){return new Uint8Array(yield new e(d).arrayBuffer())})),a=s&&u&&Wi(()=>{let d=!1;const g=new e(it.origin,{body:new qi,method:"POST",get duplex(){return d=!0,"half"}}).headers.has("Content-Type");return d&&!g}),c=o&&u&&Wi(()=>R.isReadableStream(new n("").body)),f={stream:c&&(d=>d.body)};i&&["text","arrayBuffer","blob","formData","stream"].forEach(d=>{!f[d]&&(f[d]=(g,b)=>{let w=g&&g[d];if(w)return w.call(g);throw new K(`Response type '${d}' is not supported`,K.ERR_NOT_SUPPORT,b)})});const h=d=>U(null,null,function*(){if(d==null)return 0;if(R.isBlob(d))return d.size;if(R.isSpecCompliantForm(d))return(yield new e(it.origin,{method:"POST",body:d}).arrayBuffer()).byteLength;if(R.isArrayBufferView(d)||R.isArrayBuffer(d))return d.byteLength;if(R.isURLSearchParams(d)&&(d=d+""),R.isString(d))return(yield l(d)).byteLength}),p=(d,g)=>U(null,null,function*(){const b=R.toFiniteNumber(d.getContentLength());return b!=null?b:h(g)});return d=>U(null,null,function*(){let{url:g,method:b,data:w,signal:m,cancelToken:y,timeout:_,onDownloadProgress:S,onUploadProgress:v,responseType:T,headers:A,withCredentials:L="same-origin",fetchOptions:E}=ko(d),x=t||fetch;T=T?(T+"").toLowerCase():"text";let M=Ov([m,y&&y.toAbortSignal()],_),C=null;const I=M&&M.unsubscribe&&(()=>{M.unsubscribe()});let j;try{if(v&&a&&b!=="get"&&b!=="head"&&(j=yield p(A,w))!==0){let O=new e(g,{method:"POST",body:w,duplex:"half"}),D;if(R.isFormData(w)&&(D=O.headers.get("content-type"))&&A.setContentType(D),O.body){const[P,N]=Ui(j,Qe(Li(v)));w=Hi(O.body,Vi,P,N)}}R.isString(L)||(L=L?"include":"omit");const $=s&&"credentials"in e.prototype,k=et(H({},E),{signal:M,method:b.toUpperCase(),headers:A.normalize().toJSON(),body:w,duplex:"half",credentials:$?L:void 0});C=s&&new e(g,k);let F=yield s?x(C,E):x(g,k);const V=c&&(T==="stream"||T==="response");if(c&&(S||V&&I)){const O={};["status","statusText","headers"].forEach(nt=>{O[nt]=F[nt]});const D=R.toFiniteNumber(F.headers.get("content-length")),[P,N]=S&&Ui(D,Qe(Li(S),!0))||[];F=new n(Hi(F.body,Vi,P,()=>{N&&N(),I&&I()}),O)}T=T||"text";let q=yield f[R.findKey(f,T)||"text"](F,d);return!V&&I&&I(),yield new Promise((O,D)=>{Uo(O,D,{data:q,headers:ct.from(F.headers),status:F.status,statusText:F.statusText,config:d,request:C})})}catch($){throw I&&I(),$&&$.name==="TypeError"&&/Load failed|fetch/i.test($.message)?Object.assign(new K("Network Error",K.ERR_NETWORK,d,C),{cause:$.cause||$}):K.from($,$&&$.code,d,C)}})},Pv=new Map,Ho=r=>{let t=r&&r.env||{};const{fetch:e,Request:n,Response:i}=t,s=[n,i,e];let o=s.length,u=o,l,a,c=Pv;for(;u--;)l=s[u],a=c.get(l),a===void 0&&c.set(l,a=u?new Map:jv(t)),c=a;return a};Ho();const Rn={http:Zg,xhr:Av,fetch:{get:Ho}};R.forEach(Rn,(r,t)=>{if(r){try{Object.defineProperty(r,"name",{value:t})}catch(e){}Object.defineProperty(r,"adapterName",{value:t})}});const Ki=r=>`- ${r}`,Nv=r=>R.isFunction(r)||r===null||r===!1;function Iv(r,t){r=R.isArray(r)?r:[r];const{length:e}=r;let n,i;const s={};for(let o=0;o<e;o++){n=r[o];let u;if(i=n,!Nv(n)&&(i=Rn[(u=String(n)).toLowerCase()],i===void 0))throw new K(`Unknown adapter '${u}'`);if(i&&(R.isFunction(i)||(i=i.get(t))))break;s[u||"#"+o]=i}if(!i){const o=Object.entries(s).map(([l,a])=>`adapter ${l} `+(a===!1?"is not supported by the environment":"is not available in the build"));let u=e?o.length>1?`since :
|
|
53
|
+
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...e){const n=new this(t);return e.forEach(i=>n.set(i)),n}static accessor(t){const e=(this[Fi]=this[Fi]={accessors:{}}).accessors,n=this.prototype;function i(s){const o=ge(s);e[o]||(yv(n,s),e[o]=!0)}return R.isArray(t)?t.forEach(i):i(t),this}};ct.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);R.reduceDescriptors(ct.prototype,({value:r},t)=>{let e=t[0].toUpperCase()+t.slice(1);return{get:()=>r,set(n){this[e]=n}}});R.freezeMethods(ct);function Or(r,t){const e=this||Oe,n=t||e,i=ct.from(n.headers);let s=n.data;return R.forEach(r,function(o){s=o.call(e,s,i.normalize(),t?t.status:void 0)}),i.normalize(),s}function Fo(r){return!!(r&&r.__CANCEL__)}function le(r,t,e){K.call(this,r!=null?r:"canceled",K.ERR_CANCELED,t,e),this.name="CanceledError"}R.inherits(le,K,{__CANCEL__:!0});function Uo(r,t,e){const n=e.config.validateStatus;!e.status||!n||n(e.status)?r(e):t(new K("Request failed with status code "+e.status,[K.ERR_BAD_REQUEST,K.ERR_BAD_RESPONSE][Math.floor(e.status/100)-4],e.config,e.request,e))}function bv(r){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(r);return t&&t[1]||""}function _v(r,t){r=r||10;const e=new Array(r),n=new Array(r);let i=0,s=0,o;return t=t!==void 0?t:1e3,function(u){const l=Date.now(),a=n[s];o||(o=l),e[i]=u,n[i]=l;let c=s,f=0;for(;c!==i;)f+=e[c++],c=c%r;if(i=(i+1)%r,i===s&&(s=(s+1)%r),l-o<t)return;const h=a&&l-a;return h?Math.round(f*1e3/h):void 0}}function wv(r,t){let e=0,n=1e3/t,i,s;const o=(u,l=Date.now())=>{e=l,i=null,s&&(clearTimeout(s),s=null),r(...u)};return[(...u)=>{const l=Date.now(),a=l-e;a>=n?o(u,l):(i=u,s||(s=setTimeout(()=>{s=null,o(i)},n-a)))},()=>i&&o(i)]}const Qe=(r,t,e=3)=>{let n=0;const i=_v(50,250);return wv(s=>{const o=s.loaded,u=s.lengthComputable?s.total:void 0,l=o-n,a=i(l),c=o<=u;n=o;const f={loaded:o,total:u,progress:u?o/u:void 0,bytes:l,rate:a||void 0,estimated:a&&u&&c?(u-o)/a:void 0,event:s,lengthComputable:u!=null,[t?"download":"upload"]:!0};r(f)},e)},Ui=(r,t)=>{const e=r!=null;return[n=>t[0]({lengthComputable:e,total:r,loaded:n}),t[1]]},Li=r=>(...t)=>R.asap(()=>r(...t)),Ev=it.hasStandardBrowserEnv?((r,t)=>e=>(e=new URL(e,it.origin),r.protocol===e.protocol&&r.host===e.host&&(t||r.port===e.port)))(new URL(it.origin),it.navigator&&/(msie|trident)/i.test(it.navigator.userAgent)):()=>!0,Sv=it.hasStandardBrowserEnv?{write(r,t,e,n,i,s,o){if(typeof document>"u")return;const u=[`${r}=${encodeURIComponent(t)}`];R.isNumber(e)&&u.push(`expires=${new Date(e).toUTCString()}`),R.isString(n)&&u.push(`path=${n}`),R.isString(i)&&u.push(`domain=${i}`),s===!0&&u.push("secure"),R.isString(o)&&u.push(`SameSite=${o}`),document.cookie=u.join("; ")},read(r){if(typeof document>"u")return null;const t=document.cookie.match(new RegExp("(?:^|; )"+r+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(r){this.write(r,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function Tv(r){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(r)}function Rv(r,t){return t?r.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):r}function Lo(r,t,e){let n=!Tv(t);return r&&(n||e==!1)?Rv(r,t):t}const ki=r=>r instanceof ct?H({},r):r;function zt(r,t){t=t||{};const e={};function n(a,c,f,h){return R.isPlainObject(a)&&R.isPlainObject(c)?R.merge.call({caseless:h},a,c):R.isPlainObject(c)?R.merge({},c):R.isArray(c)?c.slice():c}function i(a,c,f,h){if(R.isUndefined(c)){if(!R.isUndefined(a))return n(void 0,a,f,h)}else return n(a,c,f,h)}function s(a,c){if(!R.isUndefined(c))return n(void 0,c)}function o(a,c){if(R.isUndefined(c)){if(!R.isUndefined(a))return n(void 0,a)}else return n(void 0,c)}function u(a,c,f){if(f in t)return n(a,c);if(f in r)return n(void 0,a)}const l={url:s,method:s,data:s,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:u,headers:(a,c,f)=>i(ki(a),ki(c),f,!0)};return R.forEach(Object.keys(H(H({},r),t)),function(a){const c=l[a]||i,f=c(r[a],t[a],a);R.isUndefined(f)&&c!==u||(e[a]=f)}),e}const ko=r=>{const t=zt({},r);let{data:e,withXSRFToken:n,xsrfHeaderName:i,xsrfCookieName:s,headers:o,auth:u}=t;if(t.headers=o=ct.from(o),t.url=No(Lo(t.baseURL,t.url,t.allowAbsoluteUrls),r.params,r.paramsSerializer),u&&o.set("Authorization","Basic "+btoa((u.username||"")+":"+(u.password?unescape(encodeURIComponent(u.password)):""))),R.isFormData(e)){if(it.hasStandardBrowserEnv||it.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if(R.isFunction(e.getHeaders)){const l=e.getHeaders(),a=["content-type","content-length"];Object.entries(l).forEach(([c,f])=>{a.includes(c.toLowerCase())&&o.set(c,f)})}}if(it.hasStandardBrowserEnv&&(n&&R.isFunction(n)&&(n=n(t)),n||n!==!1&&Ev(t.url))){const l=i&&s&&Sv.read(s);l&&o.set(i,l)}return t},xv=typeof XMLHttpRequest<"u",Av=xv&&function(r){return new Promise(function(t,e){const n=ko(r);let i=n.data;const s=ct.from(n.headers).normalize();let{responseType:o,onUploadProgress:u,onDownloadProgress:l}=n,a,c,f,h,p;function d(){h&&h(),p&&p(),n.cancelToken&&n.cancelToken.unsubscribe(a),n.signal&&n.signal.removeEventListener("abort",a)}let g=new XMLHttpRequest;g.open(n.method.toUpperCase(),n.url,!0),g.timeout=n.timeout;function y(){if(!g)return;const m=ct.from("getAllResponseHeaders"in g&&g.getAllResponseHeaders()),b={data:!o||o==="text"||o==="json"?g.responseText:g.response,status:g.status,statusText:g.statusText,headers:m,config:r,request:g};Uo(function(_){t(_),d()},function(_){e(_),d()},b),g=null}"onloadend"in g?g.onloadend=y:g.onreadystatechange=function(){!g||g.readyState!==4||g.status===0&&!(g.responseURL&&g.responseURL.indexOf("file:")===0)||setTimeout(y)},g.onabort=function(){g&&(e(new K("Request aborted",K.ECONNABORTED,r,g)),g=null)},g.onerror=function(m){const b=m&&m.message?m.message:"Network Error",_=new K(b,K.ERR_NETWORK,r,g);_.event=m||null,e(_),g=null},g.ontimeout=function(){let m=n.timeout?"timeout of "+n.timeout+"ms exceeded":"timeout exceeded";const b=n.transitional||Io;n.timeoutErrorMessage&&(m=n.timeoutErrorMessage),e(new K(m,b.clarifyTimeoutError?K.ETIMEDOUT:K.ECONNABORTED,r,g)),g=null},i===void 0&&s.setContentType(null),"setRequestHeader"in g&&R.forEach(s.toJSON(),function(m,b){g.setRequestHeader(b,m)}),R.isUndefined(n.withCredentials)||(g.withCredentials=!!n.withCredentials),o&&o!=="json"&&(g.responseType=n.responseType),l&&([f,p]=Qe(l,!0),g.addEventListener("progress",f)),u&&g.upload&&([c,h]=Qe(u),g.upload.addEventListener("progress",c),g.upload.addEventListener("loadend",h)),(n.cancelToken||n.signal)&&(a=m=>{g&&(e(!m||m.type?new le(null,r,g):m),g.abort(),g=null)},n.cancelToken&&n.cancelToken.subscribe(a),n.signal&&(n.signal.aborted?a():n.signal.addEventListener("abort",a)));const w=bv(n.url);if(w&&it.protocols.indexOf(w)===-1){e(new K("Unsupported protocol "+w+":",K.ERR_BAD_REQUEST,r));return}g.send(i||null)})},Ov=(r,t)=>{const{length:e}=r=r?r.filter(Boolean):[];if(t||e){let n=new AbortController,i;const s=function(a){if(!i){i=!0,u();const c=a instanceof Error?a:this.reason;n.abort(c instanceof K?c:new le(c instanceof Error?c.message:c))}};let o=t&&setTimeout(()=>{o=null,s(new K(`timeout ${t} of ms exceeded`,K.ETIMEDOUT))},t);const u=()=>{r&&(o&&clearTimeout(o),o=null,r.forEach(a=>{a.unsubscribe?a.unsubscribe(s):a.removeEventListener("abort",s)}),r=null)};r.forEach(a=>a.addEventListener("abort",s));const{signal:l}=n;return l.unsubscribe=()=>R.asap(u),l}},$v=function*(r,t){let e=r.byteLength;if(e<t){yield r;return}let n=0,i;for(;n<e;)i=n+t,yield r.slice(n,i),n=i},Dv=function(r,t){return pr(this,null,function*(){try{for(var e=$n(Cv(r)),n,i,s;n=!(i=yield new Mt(e.next())).done;n=!1){const o=i.value;yield*dr($v(o,t))}}catch(i){s=[i]}finally{try{n&&(i=e.return)&&(yield new Mt(i.call(e)))}finally{if(s)throw s[0]}}})},Cv=function(r){return pr(this,null,function*(){if(r[Symbol.asyncIterator]){yield*dr(r);return}const t=r.getReader();try{for(;;){const{done:e,value:n}=yield new Mt(t.read());if(e)break;yield n}}finally{yield new Mt(t.cancel())}})},Hi=(r,t,e,n)=>{const i=Dv(r,t);let s=0,o,u=a=>{o||(o=!0,n&&n(a))};return new ReadableStream({pull(a){return U(this,null,function*(){try{const{done:c,value:f}=yield i.next();if(c){u(),a.close();return}let h=f.byteLength;if(e){let p=s+=h;e(p)}a.enqueue(new Uint8Array(f))}catch(c){throw u(c),c}})},cancel(a){return u(a),i.return()}},{highWaterMark:2})},Vi=64*1024,{isFunction:Me}=R,Bv=(({Request:r,Response:t})=>({Request:r,Response:t}))(R.global),{ReadableStream:qi,TextEncoder:zi}=R.global,Wi=(r,...t)=>{try{return!!r(...t)}catch(e){return!1}},jv=r=>{r=R.merge.call({skipUndefined:!0},Bv,r);const{fetch:t,Request:e,Response:n}=r,i=t?Me(t):typeof fetch=="function",s=Me(e),o=Me(n);if(!i)return!1;const u=i&&Me(qi),l=i&&(typeof zi=="function"?(d=>g=>d.encode(g))(new zi):d=>U(null,null,function*(){return new Uint8Array(yield new e(d).arrayBuffer())})),a=s&&u&&Wi(()=>{let d=!1;const g=new e(it.origin,{body:new qi,method:"POST",get duplex(){return d=!0,"half"}}).headers.has("Content-Type");return d&&!g}),c=o&&u&&Wi(()=>R.isReadableStream(new n("").body)),f={stream:c&&(d=>d.body)};i&&["text","arrayBuffer","blob","formData","stream"].forEach(d=>{!f[d]&&(f[d]=(g,y)=>{let w=g&&g[d];if(w)return w.call(g);throw new K(`Response type '${d}' is not supported`,K.ERR_NOT_SUPPORT,y)})});const h=d=>U(null,null,function*(){if(d==null)return 0;if(R.isBlob(d))return d.size;if(R.isSpecCompliantForm(d))return(yield new e(it.origin,{method:"POST",body:d}).arrayBuffer()).byteLength;if(R.isArrayBufferView(d)||R.isArrayBuffer(d))return d.byteLength;if(R.isURLSearchParams(d)&&(d=d+""),R.isString(d))return(yield l(d)).byteLength}),p=(d,g)=>U(null,null,function*(){const y=R.toFiniteNumber(d.getContentLength());return y!=null?y:h(g)});return d=>U(null,null,function*(){let{url:g,method:y,data:w,signal:m,cancelToken:b,timeout:_,onDownloadProgress:S,onUploadProgress:v,responseType:T,headers:A,withCredentials:L="same-origin",fetchOptions:E}=ko(d),x=t||fetch;T=T?(T+"").toLowerCase():"text";let M=Ov([m,b&&b.toAbortSignal()],_),C=null;const I=M&&M.unsubscribe&&(()=>{M.unsubscribe()});let j;try{if(v&&a&&y!=="get"&&y!=="head"&&(j=yield p(A,w))!==0){let O=new e(g,{method:"POST",body:w,duplex:"half"}),D;if(R.isFormData(w)&&(D=O.headers.get("content-type"))&&A.setContentType(D),O.body){const[P,N]=Ui(j,Qe(Li(v)));w=Hi(O.body,Vi,P,N)}}R.isString(L)||(L=L?"include":"omit");const $=s&&"credentials"in e.prototype,k=et(H({},E),{signal:M,method:y.toUpperCase(),headers:A.normalize().toJSON(),body:w,duplex:"half",credentials:$?L:void 0});C=s&&new e(g,k);let F=yield s?x(C,E):x(g,k);const V=c&&(T==="stream"||T==="response");if(c&&(S||V&&I)){const O={};["status","statusText","headers"].forEach(nt=>{O[nt]=F[nt]});const D=R.toFiniteNumber(F.headers.get("content-length")),[P,N]=S&&Ui(D,Qe(Li(S),!0))||[];F=new n(Hi(F.body,Vi,P,()=>{N&&N(),I&&I()}),O)}T=T||"text";let q=yield f[R.findKey(f,T)||"text"](F,d);return!V&&I&&I(),yield new Promise((O,D)=>{Uo(O,D,{data:q,headers:ct.from(F.headers),status:F.status,statusText:F.statusText,config:d,request:C})})}catch($){throw I&&I(),$&&$.name==="TypeError"&&/Load failed|fetch/i.test($.message)?Object.assign(new K("Network Error",K.ERR_NETWORK,d,C),{cause:$.cause||$}):K.from($,$&&$.code,d,C)}})},Pv=new Map,Ho=r=>{let t=r&&r.env||{};const{fetch:e,Request:n,Response:i}=t,s=[n,i,e];let o=s.length,u=o,l,a,c=Pv;for(;u--;)l=s[u],a=c.get(l),a===void 0&&c.set(l,a=u?new Map:jv(t)),c=a;return a};Ho();const Rn={http:Zg,xhr:Av,fetch:{get:Ho}};R.forEach(Rn,(r,t)=>{if(r){try{Object.defineProperty(r,"name",{value:t})}catch(e){}Object.defineProperty(r,"adapterName",{value:t})}});const Ki=r=>`- ${r}`,Nv=r=>R.isFunction(r)||r===null||r===!1;function Iv(r,t){r=R.isArray(r)?r:[r];const{length:e}=r;let n,i;const s={};for(let o=0;o<e;o++){n=r[o];let u;if(i=n,!Nv(n)&&(i=Rn[(u=String(n)).toLowerCase()],i===void 0))throw new K(`Unknown adapter '${u}'`);if(i&&(R.isFunction(i)||(i=i.get(t))))break;s[u||"#"+o]=i}if(!i){const o=Object.entries(s).map(([l,a])=>`adapter ${l} `+(a===!1?"is not supported by the environment":"is not available in the build"));let u=e?o.length>1?`since :
|
|
54
54
|
`+o.map(Ki).join(`
|
|
55
55
|
`):" "+Ki(o[0]):"as no adapter specified";throw new K("There is no suitable adapter to dispatch the request "+u,"ERR_NOT_SUPPORT")}return i}const Vo={getAdapter:Iv,adapters:Rn};function $r(r){if(r.cancelToken&&r.cancelToken.throwIfRequested(),r.signal&&r.signal.aborted)throw new le(null,r)}function Ji(r){return $r(r),r.headers=ct.from(r.headers),r.data=Or.call(r,r.transformRequest),["post","put","patch"].indexOf(r.method)!==-1&&r.headers.setContentType("application/x-www-form-urlencoded",!1),Vo.getAdapter(r.adapter||Oe.adapter,r)(r).then(function(t){return $r(r),t.data=Or.call(r,r.transformResponse,t),t.headers=ct.from(t.headers),t},function(t){return Fo(t)||($r(r),t&&t.response&&(t.response.data=Or.call(r,r.transformResponse,t.response),t.response.headers=ct.from(t.response.headers))),Promise.reject(t)})}const qo="1.13.2",ur={};["object","boolean","number","function","string","symbol"].forEach((r,t)=>{ur[r]=function(e){return typeof e===r||"a"+(t<1?"n ":" ")+r}});const Gi={};ur.transitional=function(r,t,e){function n(i,s){return"[Axios v"+qo+"] Transitional option '"+i+"'"+s+(e?". "+e:"")}return(i,s,o)=>{if(r===!1)throw new K(n(s," has been removed"+(t?" in "+t:"")),K.ERR_DEPRECATED);return t&&!Gi[s]&&(Gi[s]=!0,console.warn(n(s," has been deprecated since v"+t+" and will be removed in the near future"))),r?r(i,s,o):!0}};ur.spelling=function(r){return(t,e)=>(console.warn(`${e} is likely a misspelling of ${r}`),!0)};function Mv(r,t,e){if(typeof r!="object")throw new K("options must be an object",K.ERR_BAD_OPTION_VALUE);const n=Object.keys(r);let i=n.length;for(;i-- >0;){const s=n[i],o=t[s];if(o){const u=r[s],l=u===void 0||o(u,s,r);if(l!==!0)throw new K("option "+s+" must be "+l,K.ERR_BAD_OPTION_VALUE);continue}if(e!==!0)throw new K("Unknown option "+s,K.ERR_BAD_OPTION)}}const qe={assertOptions:Mv,validators:ur},bt=qe.validators;let kt=class{constructor(t){this.defaults=t||{},this.interceptors={request:new Mi,response:new Mi}}request(t,e){return U(this,null,function*(){try{return yield this._request(t,e)}catch(n){if(n instanceof Error){let i={};Error.captureStackTrace?Error.captureStackTrace(i):i=new Error;const s=i.stack?i.stack.replace(/^.+\n/,""):"";try{n.stack?s&&!String(n.stack).endsWith(s.replace(/^.+\n.+\n/,""))&&(n.stack+=`
|
|
56
|
-
`+s):n.stack=s}catch(o){}}throw n}})}_request(t,e){typeof t=="string"?(e=e||{},e.url=t):e=t||{},e=zt(this.defaults,e);const{transitional:n,paramsSerializer:i,headers:s}=e;n!==void 0&&qe.assertOptions(n,{silentJSONParsing:bt.transitional(bt.boolean),forcedJSONParsing:bt.transitional(bt.boolean),clarifyTimeoutError:bt.transitional(bt.boolean)},!1),i!=null&&(R.isFunction(i)?e.paramsSerializer={serialize:i}:qe.assertOptions(i,{encode:bt.function,serialize:bt.function},!0)),e.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?e.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:e.allowAbsoluteUrls=!0),qe.assertOptions(e,{baseUrl:bt.spelling("baseURL"),withXsrfToken:bt.spelling("withXSRFToken")},!0),e.method=(e.method||this.defaults.method||"get").toLowerCase();let o=s&&R.merge(s.common,s[e.method]);s&&R.forEach(["delete","get","head","post","put","patch","common"],d=>{delete s[d]}),e.headers=ct.concat(o,s);const u=[];let l=!0;this.interceptors.request.forEach(function(d){typeof d.runWhen=="function"&&d.runWhen(e)===!1||(l=l&&d.synchronous,u.unshift(d.fulfilled,d.rejected))});const a=[];this.interceptors.response.forEach(function(d){a.push(d.fulfilled,d.rejected)});let c,f=0,h;if(!l){const d=[Ji.bind(this),void 0];for(d.unshift(...u),d.push(...a),h=d.length,c=Promise.resolve(e);f<h;)c=c.then(d[f++],d[f++]);return c}h=u.length;let p=e;for(;f<h;){const d=u[f++],g=u[f++];try{p=d(p)}catch(b){g.call(this,b);break}}try{c=Ji.call(this,p)}catch(d){return Promise.reject(d)}for(f=0,h=a.length;f<h;)c=c.then(a[f++],a[f++]);return c}getUri(t){t=zt(this.defaults,t);const e=Lo(t.baseURL,t.url,t.allowAbsoluteUrls);return No(e,t.params,t.paramsSerializer)}};R.forEach(["delete","get","head","options"],function(r){kt.prototype[r]=function(t,e){return this.request(zt(e||{},{method:r,url:t,data:(e||{}).data}))}});R.forEach(["post","put","patch"],function(r){function t(e){return function(n,i,s){return this.request(zt(s||{},{method:r,headers:e?{"Content-Type":"multipart/form-data"}:{},url:n,data:i}))}}kt.prototype[r]=t(),kt.prototype[r+"Form"]=t(!0)});let Fv=class zo{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let e;this.promise=new Promise(function(i){e=i});const n=this;this.promise.then(i=>{if(!n._listeners)return;let s=n._listeners.length;for(;s-- >0;)n._listeners[s](i);n._listeners=null}),this.promise.then=i=>{let s;const o=new Promise(u=>{n.subscribe(u),s=u}).then(i);return o.cancel=function(){n.unsubscribe(s)},o},t(function(i,s,o){n.reason||(n.reason=new le(i,s,o),e(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const e=this._listeners.indexOf(t);e!==-1&&this._listeners.splice(e,1)}toAbortSignal(){const t=new AbortController,e=n=>{t.abort(n)};return this.subscribe(e),t.signal.unsubscribe=()=>this.unsubscribe(e),t.signal}static source(){let t;return{token:new zo(function(e){t=e}),cancel:t}}};function Uv(r){return function(t){return r.apply(null,t)}}function Lv(r){return R.isObject(r)&&r.isAxiosError===!0}const Xr={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(Xr).forEach(([r,t])=>{Xr[t]=r});function Wo(r){const t=new kt(r),e=So(kt.prototype.request,t);return R.extend(e,kt.prototype,t,{allOwnKeys:!0}),R.extend(e,t,null,{allOwnKeys:!0}),e.create=function(n){return Wo(zt(r,n))},e}const Q=Wo(Oe);Q.Axios=kt;Q.CanceledError=le;Q.CancelToken=Fv;Q.isCancel=Fo;Q.VERSION=qo;Q.toFormData=ar;Q.AxiosError=K;Q.Cancel=Q.CanceledError;Q.all=function(r){return Promise.all(r)};Q.spread=Uv;Q.isAxiosError=Lv;Q.mergeConfig=zt;Q.AxiosHeaders=ct;Q.formToJSON=r=>Mo(R.isHTMLForm(r)?new FormData(r):r);Q.getAdapter=Vo.getAdapter;Q.HttpStatusCode=Xr;Q.default=Q;const{Axios:_1,AxiosError:w1,CanceledError:E1,isCancel:S1,CancelToken:T1,VERSION:R1,all:x1,Cancel:A1,isAxiosError:O1,spread:$1,toFormData:D1,AxiosHeaders:C1,HttpStatusCode:B1,formToJSON:j1,getAdapter:P1,mergeConfig:N1}=Q,kv={form:"application/x-www-form-urlencoded",json:"application/json",data:"multipart/form-data"},Hv=["put","post","patch"],Yi="Local-Request-Id",Vv=100,qv=300;class zv{constructor(t={}){ft(this,"axios"),ft(this,"settings"),ft(this,"records",{}),ft(this,"isLoading",!1),ft(this,"stopSkipWarn"),ft(this,"showLoading"),ft(this,"showError"),this.settings=Object.assign({type:"form"},t.settings||{});const e=xr(t,["settings","query"]);this.axios=Q.create(ve({headers:{"Content-Type":"application/x-www-form-urlencoded"},timeout:120*1e3},e)),this.setupSkipWarn(this.settings),this.showLoading=io(this.openLoading.bind(this),Vv),this.showError=Jp(this._showError.bind(this),qv,{leading:!0,trailing:!1})}setConfig(t={}){this.settings=ve(this.settings,t.settings||{});const e=xr(t,["settings","query"]);this.axios.defaults=ve(this.axios.defaults,e),this.setupSkipWarn(this.settings)}cancel(t,e="请求已取消"){if(t){const n=this.records[t];if(!n)return;n.source.cancel(e)}else for(const n of Object.values(this.records))n.source.cancel(e)}createHeaders(t,e,n){const i=e.injectHeaders?typeof e.headers=="function"?e.headers(t,n,e):e.headers||{}:{},s=H(H({"Content-Type":kv[e.type||"form"]},n.headers),i);return e.skipWarn&&(s[Yi]=t),s}isJsonType(t){return Object.entries(t).some(([e,n])=>e.toLowerCase()==="content-type"&&String(n).includes("application/json"))}toFormData(t,e="data"){if(t instanceof FormData||t instanceof URLSearchParams)return t;const n=e==="data"?new FormData:new URLSearchParams;return Object.entries(t).forEach(([i,s])=>{n.append(i,s)}),n}createSendData(t,e,n,i,s={}){const{type:o,skipWarn:u}=t,{name:l="skipWarn"}=u||{};let{data:a,params:c={},method:f="get"}=e;const h=i?{[l]:!0}:{};return Hv.includes(f.toLowerCase())?(a=Object.assign(a||{},h),a=o!=="json"||!this.isJsonType(n)?this.toFormData(a,o):a,c=H({},s)):o==="form"?c=H(H(H({},a||{}),s),h):(a&&(o!=="json"||!this.isJsonType(n))&&(a=this.toFormData(a,o)),c=H(H({},s),h)),{data:a,params:c}}createUrl(t){let{url:e,params:n}=t;if(e){let i=Ye(e)?new URL(e).origin:"";const s=i?e.replace(i,""):e;try{const o=Gd(s,{encode:encodeURIComponent});return i+o(n||{})}catch(o){console.warn("createUrl","pathToRegexpCompile error",e)}}return e}openLoading(t){const{loading:e,showLoading:n}=t;e&&n&&Object.keys(this.records).length>0&&(this.isLoading=!0,n())}closeLoading(t){const{loading:e,hideLoading:n}=t;if(!e)return;this.isLoading=!1;const i=Object.keys(this.records);n&&i.length===0&&(this.isLoading=!1,n())}_showError(t,e){var s;const{failMessage:n,showError:i}=t;if(n&&i){const o=(s=e==null?void 0:e.response)==null?void 0:s.data,u=(o==null?void 0:o.message)||(o==null?void 0:o.msg)||(e==null?void 0:e.message)||(e==null?void 0:e.msg)||"未知错误";i(u,e)}}validResponse(t,e){const{validSuccess:n,validate:i}=t;return n&&i?!!i(e):!0}isSkipWarnResponse(t){return!!t.promise}send(t={},e=!1){const n=ve({},this.settings,t.settings||{}),i=t.query||{},s=xr(t,["settings","query"]),o=qd(!1),u=Q.CancelToken.source();this.records[o]={settings:n,config:s,source:u};const l=this.createUrl(s),a=this.createHeaders(o,n,s),{data:c,params:f}=this.createSendData(n,s,a,e,i);return this.showLoading(n),new Promise((h,p)=>{this.axios(et(H({cancelToken:u.token},s),{url:l,headers:a,data:c,params:f})).then(d=>{var g;return this.isSkipWarnResponse(d)?h(d.promise):this.validResponse(n,d)?h(n.originResponse?d:(g=d.data)==null?void 0:g.data):(this.showError(n,d.data),p(d.data))}).catch(d=>(this.showError(n,d),p(d))).finally(()=>{delete this.records[o],this.closeLoading(n)})})}useResponse(t,e){const{response:n}=this.axios.interceptors,i=n.use(t,e);return()=>n.eject(i)}useRequest(t,e){const{request:n}=this.axios.interceptors,i=n.use(t,e);return()=>n.eject(i)}setupSkipWarn(t){if(this.stopSkipWarn&&(this.stopSkipWarn(),this.stopSkipWarn=void 0),!t.skipWarn)return;const{code:e,executor:n,callback:i,complete:s}=t.skipWarn;this.stopSkipWarn=this.useResponse(o=>{const u=(o.config.headers||{})[Yi],l=this.records[u];if(!l)return o;const{data:a}=o;if(!a||typeof a!="object")return o;if((a==null?void 0:a.code)===e){i&&i(o);const c=new Promise(n).then(()=>this.send(et(H({},l.config),{settings:l.settings}),!0));c.catch(f=>f).finally(()=>{s&&s()}),o.promise=c}return o})}}function xn(r={}){const t=new zv(r),e=t.send.bind(t),n=t.cancel.bind(t),i=t.setConfig.bind(t),s=t.useRequest.bind(t),o=t.useResponse.bind(t);return Object.assign(e,et(H({},t),{instance:t,send:e,cancel:n,setConfig:i,useRequest:s,useResponse:o}))}const tn=xn({settings:{injectHeaders:!0,loading:!0,originResponse:!0}}),en=typeof window<"u";function Wv(r){const t={};return r?(r.forEach((e,n)=>{t[n]=typeof e=="string"?decodeURIComponent(e):e}),t):{}}class Ko{constructor(t={}){ft(this,"options",{type:"cache",expired:0,prefix:"__VTJ_"}),ft(this,"caches",{}),ft(this,"types"),this.types={local:en?window.localStorage:this.caches,session:en?window.sessionStorage:this.caches,cache:this.caches},this.config(t)}config(t={}){this.options=Object.assign(this.options,t)}save(t,e,n={}){const{type:i,expired:s,prefix:o}=H(H({},this.options),n),u=Date.now(),l=o+t,a=this.types[i]||this.caches,c={value:e,timestamp:u,expired:s};a===this.caches?a[l]=c:a.setItem(l,JSON.stringify(c))}get(t,e={}){const{type:n,prefix:i}=H(H({},this.options),e),s=i+t,o=this.types[n]||this.caches;let u;if(o===this.caches)u=o[s];else{const f=o.getItem(s);if(f)try{u=JSON.parse(f)}catch(h){console.warn("[Storage] JSON.parse",h)}}if(!u)return null;const{value:l,timestamp:a,expired:c}=u;return c>0&&a+c<Date.now()?(this.remove(t,e),null):l}remove(t,e={}){const{type:n,prefix:i}=H(H({},this.options),e),s=this.types[n]||this.caches,o=i+t;s===this.caches?delete s[o]:s.removeItem(o)}clear(t={}){const{type:e}=H(H({},this.options),t),n=this.types[e]||this.caches;n===this.caches?this.caches={}:n.clear()}}const Dr=new Ko;function Jo(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var ze={exports:{}},Kv=ze.exports,Zi;function Jv(){return Zi||(Zi=1,(function(r,t){(function(e,n){n(t,r)})(Kv,function(e,n){var i={timeout:5e3,jsonpCallback:"callback"};function s(){return"jsonp_"+Date.now()+"_"+Math.ceil(Math.random()*1e5)}function o(a){try{delete window[a]}catch(c){window[a]=void 0}}function u(a){var c=document.getElementById(a);c&&document.getElementsByTagName("head")[0].removeChild(c)}function l(a){var c=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],f=a,h=c.timeout||i.timeout,p=c.jsonpCallback||i.jsonpCallback,d=void 0;return new Promise(function(g,b){var w=c.jsonpCallbackFunction||s(),m=p+"_"+w;window[w]=function(_){g({ok:!0,json:function(){return Promise.resolve(_)}}),d&&clearTimeout(d),u(m),o(w)},f+=f.indexOf("?")===-1?"?":"&";var y=document.createElement("script");y.setAttribute("src",""+f+p+"="+w),c.charset&&y.setAttribute("charset",c.charset),c.nonce&&y.setAttribute("nonce",c.nonce),c.referrerPolicy&&y.setAttribute("referrerPolicy",c.referrerPolicy),c.crossorigin&&y.setAttribute("crossorigin","true"),y.id=m,document.getElementsByTagName("head")[0].appendChild(y),d=setTimeout(function(){b(new Error("JSONP request to "+a+" timed out")),o(w),u(m),window[w]=function(){o(w)}},h),y.onerror=function(){b(new Error("JSONP request to "+a+" failed")),o(w),u(m),d&&clearTimeout(d)}})}n.exports=l})})(ze,ze.exports)),ze.exports}var Gv=Jv();const Yv=Jo(Gv);function Zv(r){if(en){const{protocol:t,host:e,pathname:n}=location;return`${t}//${e}${r?n:""}`}else return null}function Qv(r=""){const t=r.match(mo);return t?t[0]:""}function Go(r){const t=[];for(const e in r)Object.prototype.hasOwnProperty.call(r,e)&&t.push([e,encodeURIComponent(r[e])].join("="));return t.join("&")}function rn(r,t,e){const n={};r=(r||location.search).replace(/^[^]*\?/,""),t=t||"&",e=e||"=";let i;const s=new RegExp("(?:^|\\"+t+")([^\\"+e+"\\"+t+"]+)(?:\\"+e+"([^\\"+t+"]*))?","g");for(;(i=s.exec(r))!==null;)i[1]!==r&&(n[decodeURIComponent(i[1])]=decodeURIComponent(i[2]||""));return n}function Yo(r,t){t=typeof t=="string"?rn(t):t;const e=r.split("?")[0],n=rn(r),i=Object.assign({},n,t),s=Go(i);return s?[e,s].join("?"):r}const We=Object.freeze(Object.defineProperty({__proto__:null,append:Yo,getCurrentHost:Zv,getHost:Qv,parse:rn,stringify:Go},Symbol.toStringTag,{value:"Module"}));function Zo(e){return U(this,arguments,function*(r,t={}){const{query:n={}}=t;r.includes("${")&&(r=Wp(r)(n||{}));const i=Yo(r,n);return yield(yield Yv(i,t)).json()})}var Cr,Qi;function Xv(){if(Qi)return Cr;Qi=1,Cr=function(n,i,s){var o=document.head||document.getElementsByTagName("head")[0],u=document.createElement("script");typeof i=="function"&&(s=i,i={}),i=i||{},s=s||function(){},u.type=i.type||"text/javascript",u.charset=i.charset||"utf8",u.async="async"in i?!!i.async:!0,u.src=n,i.attrs&&r(u,i.attrs),i.text&&(u.text=""+i.text);var l="onload"in u?t:e;l(u,s),u.onload||t(u,s),o.appendChild(u)};function r(n,i){for(var s in i)n.setAttribute(s,i[s])}function t(n,i){n.onload=function(){this.onerror=this.onload=null,i(null,n)},n.onerror=function(){this.onerror=this.onload=null,i(new Error("Failed to load "+this.src),n)}}function e(n,i){n.onreadystatechange=function(){this.readyState!="complete"&&this.readyState!="loaded"||(this.onreadystatechange=null,i(null,n))}}return Cr}var tm=Xv();const em=Jo(tm);function Xi(r,t={}){return new Promise((e,n)=>{const{library:i}=t;em(r,t,(s,o)=>{s?n(s):e(i?window[i]:void 0)})})}const ts={debug:-1,log:0,info:0,warn:1,error:2},rm=function(r,t,e,n){return function(...i){if(t&&ts[t]<=ts[r]&&console[r].apply&&(n==="*"||e.startsWith(n)))return console[r].apply(console,nm(i,e))}};function nm(r,t){return t!=="*"&&(typeof r[0]=="string"?r[0]=`[${t}] ${r[0]}`:r=["["+t+"]"].concat(r)),r}function im(r,t){if(!r)return{targetLevel:t.level,targetBizName:t.bizName};if(~r.indexOf(":")){const e=r.split(":");return{targetLevel:e[0],targetBizName:e[1]}}return{targetLevel:r,targetBizName:"*"}}const sm={level:"warn",bizName:"*"};class om{constructor(t){ft(this,"config"),ft(this,"options"),this.options=H(H({},sm),t);const e=typeof location<"u"?location:{},n=(/__(?:logConf|logLevel)__=([^#/&]*)/.exec(e.href)||[])[1];this.config=im(n,t)}_log(t){const{targetLevel:e,targetBizName:n}=this.config,{bizName:i}=this.options;return rm(t,e,i,n)}debug(...t){return this._log("debug")(...t)}log(...t){return this._log("log")(...t)}info(...t){return this._log("info")(...t)}warn(...t){return this._log("warn")(...t)}error(...t){return this._log("error")(...t)}}function am(r){return new om(r)}const ie=am({level:"log",bizName:"VTJ"});/*! js-cookie v3.0.5 | MIT */function Fe(r){for(var t=1;t<arguments.length;t++){var e=arguments[t];for(var n in e)r[n]=e[n]}return r}var um={read:function(r){return r[0]==='"'&&(r=r.slice(1,-1)),r.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(r){return encodeURIComponent(r).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function nn(r,t){function e(i,s,o){if(!(typeof document>"u")){o=Fe({},t,o),typeof o.expires=="number"&&(o.expires=new Date(Date.now()+o.expires*864e5)),o.expires&&(o.expires=o.expires.toUTCString()),i=encodeURIComponent(i).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var u="";for(var l in o)o[l]&&(u+="; "+l,o[l]!==!0&&(u+="="+o[l].split(";")[0]));return document.cookie=i+"="+r.write(s,i)+u}}function n(i){if(!(typeof document>"u"||arguments.length&&!i)){for(var s=document.cookie?document.cookie.split("; "):[],o={},u=0;u<s.length;u++){var l=s[u].split("="),a=l.slice(1).join("=");try{var c=decodeURIComponent(l[0]);if(o[c]=r.read(a,c),i===c)break}catch(f){}}return i?o[i]:o}}return Object.create({set:e,get:n,remove:function(i,s){e(i,"",Fe({},s,{expires:-1}))},withAttributes:function(i){return nn(this.converter,Fe({},this.attributes,i))},withConverter:function(i){return nn(Fe({},this.converter,i),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(r)}})}var An=nn(um,{path:"/"});function cm(r,t,e){An.set(r,t,e)}function lm(r){return An.get(r)}function fm(r,t){An.remove(r,t)}const Br=Object.freeze(Object.defineProperty({__proto__:null,get:lm,remove:fm,set:cm},Symbol.toStringTag,{value:"Module"}));/**!
|
|
56
|
+
`+s):n.stack=s}catch(o){}}throw n}})}_request(t,e){typeof t=="string"?(e=e||{},e.url=t):e=t||{},e=zt(this.defaults,e);const{transitional:n,paramsSerializer:i,headers:s}=e;n!==void 0&&qe.assertOptions(n,{silentJSONParsing:bt.transitional(bt.boolean),forcedJSONParsing:bt.transitional(bt.boolean),clarifyTimeoutError:bt.transitional(bt.boolean)},!1),i!=null&&(R.isFunction(i)?e.paramsSerializer={serialize:i}:qe.assertOptions(i,{encode:bt.function,serialize:bt.function},!0)),e.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?e.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:e.allowAbsoluteUrls=!0),qe.assertOptions(e,{baseUrl:bt.spelling("baseURL"),withXsrfToken:bt.spelling("withXSRFToken")},!0),e.method=(e.method||this.defaults.method||"get").toLowerCase();let o=s&&R.merge(s.common,s[e.method]);s&&R.forEach(["delete","get","head","post","put","patch","common"],d=>{delete s[d]}),e.headers=ct.concat(o,s);const u=[];let l=!0;this.interceptors.request.forEach(function(d){typeof d.runWhen=="function"&&d.runWhen(e)===!1||(l=l&&d.synchronous,u.unshift(d.fulfilled,d.rejected))});const a=[];this.interceptors.response.forEach(function(d){a.push(d.fulfilled,d.rejected)});let c,f=0,h;if(!l){const d=[Ji.bind(this),void 0];for(d.unshift(...u),d.push(...a),h=d.length,c=Promise.resolve(e);f<h;)c=c.then(d[f++],d[f++]);return c}h=u.length;let p=e;for(;f<h;){const d=u[f++],g=u[f++];try{p=d(p)}catch(y){g.call(this,y);break}}try{c=Ji.call(this,p)}catch(d){return Promise.reject(d)}for(f=0,h=a.length;f<h;)c=c.then(a[f++],a[f++]);return c}getUri(t){t=zt(this.defaults,t);const e=Lo(t.baseURL,t.url,t.allowAbsoluteUrls);return No(e,t.params,t.paramsSerializer)}};R.forEach(["delete","get","head","options"],function(r){kt.prototype[r]=function(t,e){return this.request(zt(e||{},{method:r,url:t,data:(e||{}).data}))}});R.forEach(["post","put","patch"],function(r){function t(e){return function(n,i,s){return this.request(zt(s||{},{method:r,headers:e?{"Content-Type":"multipart/form-data"}:{},url:n,data:i}))}}kt.prototype[r]=t(),kt.prototype[r+"Form"]=t(!0)});let Fv=class zo{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let e;this.promise=new Promise(function(i){e=i});const n=this;this.promise.then(i=>{if(!n._listeners)return;let s=n._listeners.length;for(;s-- >0;)n._listeners[s](i);n._listeners=null}),this.promise.then=i=>{let s;const o=new Promise(u=>{n.subscribe(u),s=u}).then(i);return o.cancel=function(){n.unsubscribe(s)},o},t(function(i,s,o){n.reason||(n.reason=new le(i,s,o),e(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const e=this._listeners.indexOf(t);e!==-1&&this._listeners.splice(e,1)}toAbortSignal(){const t=new AbortController,e=n=>{t.abort(n)};return this.subscribe(e),t.signal.unsubscribe=()=>this.unsubscribe(e),t.signal}static source(){let t;return{token:new zo(function(e){t=e}),cancel:t}}};function Uv(r){return function(t){return r.apply(null,t)}}function Lv(r){return R.isObject(r)&&r.isAxiosError===!0}const Xr={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(Xr).forEach(([r,t])=>{Xr[t]=r});function Wo(r){const t=new kt(r),e=So(kt.prototype.request,t);return R.extend(e,kt.prototype,t,{allOwnKeys:!0}),R.extend(e,t,null,{allOwnKeys:!0}),e.create=function(n){return Wo(zt(r,n))},e}const Q=Wo(Oe);Q.Axios=kt;Q.CanceledError=le;Q.CancelToken=Fv;Q.isCancel=Fo;Q.VERSION=qo;Q.toFormData=ar;Q.AxiosError=K;Q.Cancel=Q.CanceledError;Q.all=function(r){return Promise.all(r)};Q.spread=Uv;Q.isAxiosError=Lv;Q.mergeConfig=zt;Q.AxiosHeaders=ct;Q.formToJSON=r=>Mo(R.isHTMLForm(r)?new FormData(r):r);Q.getAdapter=Vo.getAdapter;Q.HttpStatusCode=Xr;Q.default=Q;const{Axios:S0,AxiosError:T0,CanceledError:R0,isCancel:x0,CancelToken:A0,VERSION:O0,all:$0,Cancel:D0,isAxiosError:C0,spread:B0,toFormData:j0,AxiosHeaders:P0,HttpStatusCode:N0,formToJSON:I0,getAdapter:M0,mergeConfig:F0}=Q,kv={form:"application/x-www-form-urlencoded",json:"application/json",data:"multipart/form-data"},Hv=["put","post","patch"],Yi="Local-Request-Id",Vv=100,qv=300;class zv{constructor(t={}){ft(this,"axios"),ft(this,"settings"),ft(this,"records",{}),ft(this,"isLoading",!1),ft(this,"stopSkipWarn"),ft(this,"showLoading"),ft(this,"showError"),this.settings=Object.assign({type:"form"},t.settings||{});const e=xr(t,["settings","query"]);this.axios=Q.create(ve({headers:{"Content-Type":"application/x-www-form-urlencoded"},timeout:120*1e3},e)),this.setupSkipWarn(this.settings),this.showLoading=io(this.openLoading.bind(this),Vv),this.showError=Jp(this._showError.bind(this),qv,{leading:!0,trailing:!1})}setConfig(t={}){this.settings=ve(this.settings,t.settings||{});const e=xr(t,["settings","query"]);this.axios.defaults=ve(this.axios.defaults,e),this.setupSkipWarn(this.settings)}cancel(t,e="请求已取消"){if(t){const n=this.records[t];if(!n)return;n.source.cancel(e)}else for(const n of Object.values(this.records))n.source.cancel(e)}createHeaders(t,e,n){const i=e.injectHeaders?typeof e.headers=="function"?e.headers(t,n,e):e.headers||{}:{},s=H(H({"Content-Type":kv[e.type||"form"]},n.headers),i);return e.skipWarn&&(s[Yi]=t),s}isJsonType(t){return Object.entries(t).some(([e,n])=>e.toLowerCase()==="content-type"&&String(n).includes("application/json"))}toFormData(t,e="data"){if(t instanceof FormData||t instanceof URLSearchParams)return t;const n=e==="data"?new FormData:new URLSearchParams;return Object.entries(t).forEach(([i,s])=>{n.append(i,s)}),n}createSendData(t,e,n,i,s={}){const{type:o,skipWarn:u}=t,{name:l="skipWarn"}=u||{};let{data:a,params:c={},method:f="get"}=e;const h=i?{[l]:!0}:{};return Hv.includes(f.toLowerCase())?(a=Object.assign(a||{},h),a=o!=="json"||!this.isJsonType(n)?this.toFormData(a,o):a,c=H({},s)):o==="form"?c=H(H(H({},a||{}),s),h):(a&&(o!=="json"||!this.isJsonType(n))&&(a=this.toFormData(a,o)),c=H(H({},s),h)),{data:a,params:c}}createUrl(t){let{url:e,params:n}=t;if(e){let i=Ye(e)?new URL(e).origin:"";const s=i?e.replace(i,""):e;try{const o=Gd(s,{encode:encodeURIComponent});return i+o(n||{})}catch(o){console.warn("createUrl","pathToRegexpCompile error",e)}}return e}openLoading(t){const{loading:e,showLoading:n}=t;e&&n&&Object.keys(this.records).length>0&&(this.isLoading=!0,n())}closeLoading(t){const{loading:e,hideLoading:n}=t;if(!e)return;this.isLoading=!1;const i=Object.keys(this.records);n&&i.length===0&&(this.isLoading=!1,n())}_showError(t,e){var s;const{failMessage:n,showError:i}=t;if(n&&i){const o=(s=e==null?void 0:e.response)==null?void 0:s.data,u=(o==null?void 0:o.message)||(o==null?void 0:o.msg)||(e==null?void 0:e.message)||(e==null?void 0:e.msg)||"未知错误";i(u,e)}}validResponse(t,e){const{validSuccess:n,validate:i}=t;return n&&i?!!i(e):!0}isSkipWarnResponse(t){return!!t.promise}send(t={},e=!1){const n=ve({},this.settings,t.settings||{}),i=t.query||{},s=xr(t,["settings","query"]),o=qd(!1),u=Q.CancelToken.source();this.records[o]={settings:n,config:s,source:u};const l=this.createUrl(s),a=this.createHeaders(o,n,s),{data:c,params:f}=this.createSendData(n,s,a,e,i);return this.showLoading(n),new Promise((h,p)=>{this.axios(et(H({cancelToken:u.token},s),{url:l,headers:a,data:c,params:f})).then(d=>{var g;return this.isSkipWarnResponse(d)?h(d.promise):this.validResponse(n,d)?h(n.originResponse?d:(g=d.data)==null?void 0:g.data):(this.showError(n,d.data),p(d.data))}).catch(d=>(this.showError(n,d),p(d))).finally(()=>{delete this.records[o],this.closeLoading(n)})})}useResponse(t,e){const{response:n}=this.axios.interceptors,i=n.use(t,e);return()=>n.eject(i)}useRequest(t,e){const{request:n}=this.axios.interceptors,i=n.use(t,e);return()=>n.eject(i)}setupSkipWarn(t){if(this.stopSkipWarn&&(this.stopSkipWarn(),this.stopSkipWarn=void 0),!t.skipWarn)return;const{code:e,executor:n,callback:i,complete:s}=t.skipWarn;this.stopSkipWarn=this.useResponse(o=>{const u=(o.config.headers||{})[Yi],l=this.records[u];if(!l)return o;const{data:a}=o;if(!a||typeof a!="object")return o;if((a==null?void 0:a.code)===e){i&&i(o);const c=new Promise(n).then(()=>this.send(et(H({},l.config),{settings:l.settings}),!0));c.catch(f=>f).finally(()=>{s&&s()}),o.promise=c}return o})}}function xn(r={}){const t=new zv(r),e=t.send.bind(t),n=t.cancel.bind(t),i=t.setConfig.bind(t),s=t.useRequest.bind(t),o=t.useResponse.bind(t);return Object.assign(e,et(H({},t),{instance:t,send:e,cancel:n,setConfig:i,useRequest:s,useResponse:o}))}const tn=xn({settings:{injectHeaders:!0,loading:!0,originResponse:!0}}),en=typeof window<"u";function Wv(r){const t={};return r?(r.forEach((e,n)=>{t[n]=typeof e=="string"?decodeURIComponent(e):e}),t):{}}class Ko{constructor(t={}){ft(this,"options",{type:"cache",expired:0,prefix:"__VTJ_"}),ft(this,"caches",{}),ft(this,"types"),this.types={local:en?window.localStorage:this.caches,session:en?window.sessionStorage:this.caches,cache:this.caches},this.config(t)}config(t={}){this.options=Object.assign(this.options,t)}save(t,e,n={}){const{type:i,expired:s,prefix:o}=H(H({},this.options),n),u=Date.now(),l=o+t,a=this.types[i]||this.caches,c={value:e,timestamp:u,expired:s};a===this.caches?a[l]=c:a.setItem(l,JSON.stringify(c))}get(t,e={}){const{type:n,prefix:i}=H(H({},this.options),e),s=i+t,o=this.types[n]||this.caches;let u;if(o===this.caches)u=o[s];else{const f=o.getItem(s);if(f)try{u=JSON.parse(f)}catch(h){console.warn("[Storage] JSON.parse",h)}}if(!u)return null;const{value:l,timestamp:a,expired:c}=u;return c>0&&a+c<Date.now()?(this.remove(t,e),null):l}remove(t,e={}){const{type:n,prefix:i}=H(H({},this.options),e),s=this.types[n]||this.caches,o=i+t;s===this.caches?delete s[o]:s.removeItem(o)}clear(t={}){const{type:e}=H(H({},this.options),t),n=this.types[e]||this.caches;n===this.caches?this.caches={}:n.clear()}}const Dr=new Ko;function Jo(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var ze={exports:{}},Kv=ze.exports,Zi;function Jv(){return Zi||(Zi=1,(function(r,t){(function(e,n){n(t,r)})(Kv,function(e,n){var i={timeout:5e3,jsonpCallback:"callback"};function s(){return"jsonp_"+Date.now()+"_"+Math.ceil(Math.random()*1e5)}function o(a){try{delete window[a]}catch(c){window[a]=void 0}}function u(a){var c=document.getElementById(a);c&&document.getElementsByTagName("head")[0].removeChild(c)}function l(a){var c=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],f=a,h=c.timeout||i.timeout,p=c.jsonpCallback||i.jsonpCallback,d=void 0;return new Promise(function(g,y){var w=c.jsonpCallbackFunction||s(),m=p+"_"+w;window[w]=function(_){g({ok:!0,json:function(){return Promise.resolve(_)}}),d&&clearTimeout(d),u(m),o(w)},f+=f.indexOf("?")===-1?"?":"&";var b=document.createElement("script");b.setAttribute("src",""+f+p+"="+w),c.charset&&b.setAttribute("charset",c.charset),c.nonce&&b.setAttribute("nonce",c.nonce),c.referrerPolicy&&b.setAttribute("referrerPolicy",c.referrerPolicy),c.crossorigin&&b.setAttribute("crossorigin","true"),b.id=m,document.getElementsByTagName("head")[0].appendChild(b),d=setTimeout(function(){y(new Error("JSONP request to "+a+" timed out")),o(w),u(m),window[w]=function(){o(w)}},h),b.onerror=function(){y(new Error("JSONP request to "+a+" failed")),o(w),u(m),d&&clearTimeout(d)}})}n.exports=l})})(ze,ze.exports)),ze.exports}var Gv=Jv();const Yv=Jo(Gv);function Zv(r){if(en){const{protocol:t,host:e,pathname:n}=location;return`${t}//${e}${r?n:""}`}else return null}function Qv(r=""){const t=r.match(mo);return t?t[0]:""}function Go(r){const t=[];for(const e in r)Object.prototype.hasOwnProperty.call(r,e)&&t.push([e,encodeURIComponent(r[e])].join("="));return t.join("&")}function rn(r,t,e){const n={};r=(r||location.search).replace(/^[^]*\?/,""),t=t||"&",e=e||"=";let i;const s=new RegExp("(?:^|\\"+t+")([^\\"+e+"\\"+t+"]+)(?:\\"+e+"([^\\"+t+"]*))?","g");for(;(i=s.exec(r))!==null;)i[1]!==r&&(n[decodeURIComponent(i[1])]=decodeURIComponent(i[2]||""));return n}function Yo(r,t){t=typeof t=="string"?rn(t):t;const e=r.split("?")[0],n=rn(r),i=Object.assign({},n,t),s=Go(i);return s?[e,s].join("?"):r}const We=Object.freeze(Object.defineProperty({__proto__:null,append:Yo,getCurrentHost:Zv,getHost:Qv,parse:rn,stringify:Go},Symbol.toStringTag,{value:"Module"}));function Zo(e){return U(this,arguments,function*(r,t={}){const{query:n={}}=t;r.includes("${")&&(r=Wp(r)(n||{}));const i=Yo(r,n);return yield(yield Yv(i,t)).json()})}var Cr,Qi;function Xv(){if(Qi)return Cr;Qi=1,Cr=function(n,i,s){var o=document.head||document.getElementsByTagName("head")[0],u=document.createElement("script");typeof i=="function"&&(s=i,i={}),i=i||{},s=s||function(){},u.type=i.type||"text/javascript",u.charset=i.charset||"utf8",u.async="async"in i?!!i.async:!0,u.src=n,i.attrs&&r(u,i.attrs),i.text&&(u.text=""+i.text);var l="onload"in u?t:e;l(u,s),u.onload||t(u,s),o.appendChild(u)};function r(n,i){for(var s in i)n.setAttribute(s,i[s])}function t(n,i){n.onload=function(){this.onerror=this.onload=null,i(null,n)},n.onerror=function(){this.onerror=this.onload=null,i(new Error("Failed to load "+this.src),n)}}function e(n,i){n.onreadystatechange=function(){this.readyState!="complete"&&this.readyState!="loaded"||(this.onreadystatechange=null,i(null,n))}}return Cr}var tm=Xv();const em=Jo(tm);function Xi(r,t={}){return new Promise((e,n)=>{const{library:i}=t;em(r,t,(s,o)=>{s?n(s):e(i?window[i]:void 0)})})}const ts={debug:-1,log:0,info:0,warn:1,error:2},rm=function(r,t,e,n){return function(...i){if(t&&ts[t]<=ts[r]&&console[r].apply&&(n==="*"||e.startsWith(n)))return console[r].apply(console,nm(i,e))}};function nm(r,t){return t!=="*"&&(typeof r[0]=="string"?r[0]=`[${t}] ${r[0]}`:r=["["+t+"]"].concat(r)),r}function im(r,t){if(!r)return{targetLevel:t.level,targetBizName:t.bizName};if(~r.indexOf(":")){const e=r.split(":");return{targetLevel:e[0],targetBizName:e[1]}}return{targetLevel:r,targetBizName:"*"}}const sm={level:"warn",bizName:"*"};class om{constructor(t){ft(this,"config"),ft(this,"options"),this.options=H(H({},sm),t);const e=typeof location<"u"?location:{},n=(/__(?:logConf|logLevel)__=([^#/&]*)/.exec(e.href)||[])[1];this.config=im(n,t)}_log(t){const{targetLevel:e,targetBizName:n}=this.config,{bizName:i}=this.options;return rm(t,e,i,n)}debug(...t){return this._log("debug")(...t)}log(...t){return this._log("log")(...t)}info(...t){return this._log("info")(...t)}warn(...t){return this._log("warn")(...t)}error(...t){return this._log("error")(...t)}}function am(r){return new om(r)}const ie=am({level:"log",bizName:"VTJ"});/*! js-cookie v3.0.5 | MIT */function Fe(r){for(var t=1;t<arguments.length;t++){var e=arguments[t];for(var n in e)r[n]=e[n]}return r}var um={read:function(r){return r[0]==='"'&&(r=r.slice(1,-1)),r.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(r){return encodeURIComponent(r).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function nn(r,t){function e(i,s,o){if(!(typeof document>"u")){o=Fe({},t,o),typeof o.expires=="number"&&(o.expires=new Date(Date.now()+o.expires*864e5)),o.expires&&(o.expires=o.expires.toUTCString()),i=encodeURIComponent(i).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var u="";for(var l in o)o[l]&&(u+="; "+l,o[l]!==!0&&(u+="="+o[l].split(";")[0]));return document.cookie=i+"="+r.write(s,i)+u}}function n(i){if(!(typeof document>"u"||arguments.length&&!i)){for(var s=document.cookie?document.cookie.split("; "):[],o={},u=0;u<s.length;u++){var l=s[u].split("="),a=l.slice(1).join("=");try{var c=decodeURIComponent(l[0]);if(o[c]=r.read(a,c),i===c)break}catch(f){}}return i?o[i]:o}}return Object.create({set:e,get:n,remove:function(i,s){e(i,"",Fe({},s,{expires:-1}))},withAttributes:function(i){return nn(this.converter,Fe({},this.attributes,i))},withConverter:function(i){return nn(Fe({},this.converter,i),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(r)}})}var An=nn(um,{path:"/"});function cm(r,t,e){An.set(r,t,e)}function lm(r){return An.get(r)}function fm(r,t){An.remove(r,t)}const Br=Object.freeze(Object.defineProperty({__proto__:null,get:lm,remove:fm,set:cm},Symbol.toStringTag,{value:"Module"}));/**!
|
|
57
57
|
* Copyright (c) 2025, VTJ.PRO All rights reserved.
|
|
58
58
|
* @name @vtj/renderer
|
|
59
59
|
* @author CHC chenhuachun1549@dingtalk.com
|
|
60
|
-
* @version 0.13.
|
|
60
|
+
* @version 0.13.39
|
|
61
61
|
* @license <a href="https://vtj.pro/license.html">MIT License</a>
|
|
62
|
-
*/const jr="0.13.
|
|
63
|
-
`),c=e(a),f=u(c);return l(f)}catch(a){return console.error("CSS scoping failed:",a),console.error("Input CSS:",r),r.replace(/\/\*[\s\S]*?\*\//g,"").replace(/(@keyframes\s+[^{]+\s*{[^{}]*(?:{[^}]*}[^{}]*)*})/g,c=>c).replace(/([^{}@]+)(?=\s*{)/g,c=>{const f=c.trim();return!f||f.startsWith("@")||f.includes(`[${t}]`)||n(f)?c:`${f}[${t}]`})}}function Qo(r){return jt(r)?r:JSON.stringify(r)}function fr(r,t,e,n=!1){const i=r.CSSStyleSheet,s=n?`data-v-${t}`:t,o=n?wm(
|
|
62
|
+
*/const jr="0.13.39";var X=(r=>(r.Runtime="Runtime",r.Design="Design",r.Raw="Raw",r.VNode="VNode",r))(X||{});const es=["$el","$emit","$nextTick","$parent","$root","$attrs","$slots","$watch","$props","$options","$forceUpdate"],hm=["vIf","vElseIf","vElse","vShow","vModel","vFor","vBind","vHtml"],pm={String,Number,Boolean,Array,Object,Function,Date},Ke="VtjPage",Pr="VtjHomepage",dm="html,body,base,head,link,meta,style,title,address,article,aside,footer,header,hgroup,h1,h2,h3,h4,h5,h6,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template,blockquote,iframe,tfoot,svg".split(","),gm="component,slot".split(",");function Ue(r,t){return r.map(e=>Ye(e)||e.startsWith("/")?e:`${t}${e}`)}function cr(r){return/\.css$/.test(r)}function lr(r){return/\.js$/.test(r)}function vm(r){return/\.json$/.test(r)}function mm(r,t=!1){return t&&r.endsWith(".prod.js")?r.replace(".prod.js",".js"):r}function ym(r,t,e=!1){const n=r.filter(h=>!!h.enabled),i=[],s=[],o=[],u=[],l={},a={},c=[],f={};return n.forEach(({urls:h,assetsUrl:p,library:d,assetsLibrary:g,localeLibrary:y})=>{h==null||h.forEach(w=>{lr(w)&&i.push(mm(w,e)),cr(w)&&s.push(w)}),d&&(u.push(d),l[d]=Ue(h||[],t),y&&(a[d]=y)),p&&o.push(p),g&&c.push(g),d&&g&&(f[g]=d)}),{scripts:Ue(i,t),css:Ue(s,t),materials:Ue(o,t),libraryExports:u,materialExports:Wd(c),materialMapLibrary:f,libraryMap:l,libraryLocaleMap:a}}function bm(r,t){var s;const{name:e,parent:n,alias:i}=r;return n?(s=t[n])==null?void 0:s[i||e]:t[i||e]}function _m(r=[]){const t=r.filter(n=>cr(n)),e=r.filter(n=>lr(n));return{css:t,js:e}}function wm(r,t){const e=a=>{const c=[];let f=0;for(;f<a.length;){if(/\s/.test(a[f])){f++;continue}if(a.substring(f,f+2)==="/*"){const w=a.indexOf("*/",f+2);if(w!==-1){f=w+2;continue}}if(a[f]==="@"){const w=f;for(;f<a.length&&a[f]!=="{"&&a[f]!==";";)f++;const m=a.substring(w,f).trim(),b=m.includes("@keyframes");if(a[f]===";")c.push({type:"simple-at-rule",content:a.substring(w,f+1)}),f++;else if(a[f]==="{"){const _=f+1;let S=1;for(f++;f<a.length&&S>0;)a[f]==="{"?S++:a[f]==="}"&&S--,f++;const v=a.substring(w,f),T=a.substring(_,f-1);c.push({type:b?"keyframes":"at-rule",rule:m,content:v,inner:T})}continue}const h=f;for(;f<a.length&&a[f]!=="{";)f++;if(f>=a.length)break;const p=a.substring(h,f).trim();if(!p){f++;continue}const d=f+1;let g=1;for(f++;f<a.length&&g>0;)a[f]==="{"?g++:a[f]==="}"&&g--,f++;const y=a.substring(d,f-1);c.push({type:"rule",selector:p,content:y.trim()})}return c},n=a=>{const c=a.trim();return/^(from|to|\d+(\.\d+)?%)$/.test(c)},i=a=>a.replace(/::v-deep\(/g,":deep(").replace(/::v-deep\s+/g,":deep(").replace(/\/deep\//g," ").replace(/>>>/g," ").replace(/(.*?):deep\(([^)]+)\)/g,(c,f,h)=>{const p=f.trim(),d=h.trim();return p?`${p}[${t}] ${d}`:d}),s=a=>{const c=a.trim();if(!c||c.includes(`[${t}]`)||/^(:root|:host|html|body)(\s|$|:|\.|\#|\[)/.test(c)||n(c))return c;const f=c.match(/^(.+?)((?:::?[\w-]+(?:\([^)]*\))?)*)\s*$/);if(f){const[,h,p=""]=f,d=h.trim();return d?`${d}[${t}]${p}`:c}return`${c}[${t}]`},o=a=>i(a).split(",").map(c=>s(c)).filter(c=>c.trim()).join(", "),u=a=>a.map(c=>{switch(c.type){case"simple-at-rule":return c.content;case"keyframes":return c.content;case"at-rule":try{const h=e(c.inner),p=u(h);return`${c.rule} { ${p} }`}catch(h){return c.content}case"rule":if(!c.selector||!c.content)return"";const f=o(c.selector);return f.trim()?`${f} { ${c.content} }`:"";default:return""}}).filter(c=>c.trim()).join(" "),l=a=>a.replace(/\s*{\s*/g," { ").replace(/\s*}\s*/g," } ").replace(/\s*;\s*/g,"; ").replace(/\s*,\s*/g,", ").replace(/\s+/g," ").replace(/^\s+|\s+$/g,"").replace(/\s*}\s*}/g," } }").trim();try{const a=r.replace(/\/\*(?!\s*!)[\s\S]*?\*\//g,"").replace(/^\s+|\s+$/gm,"").replace(/\n\s*\n/g,`
|
|
63
|
+
`),c=e(a),f=u(c);return l(f)}catch(a){return console.error("CSS scoping failed:",a),console.error("Input CSS:",r),r.replace(/\/\*[\s\S]*?\*\//g,"").replace(/(@keyframes\s+[^{]+\s*{[^{}]*(?:{[^}]*}[^{}]*)*})/g,c=>c).replace(/([^{}@]+)(?=\s*{)/g,c=>{const f=c.trim();return!f||f.startsWith("@")||f.includes(`[${t}]`)||n(f)?c:`${f}[${t}]`})}}const Em=750;function Sm(r,t,e){let n;typeof r<"u"?n=r.innerWidth||r.document.documentElement.clientWidth:(console.warn("无法获取屏幕宽度,使用默认值375"),n=375);const i=Em;return t*n/i}function Tm(r,t){let e=!1,n=!1,i=!1,s="";for(let o=0;o<t.length;o++){const u=t[o];if(u==="'"&&!n&&!i?e=!e:u==='"'&&!e&&!i?n=!n:t.substr(o,4).toLowerCase()==="url("&&!e&&!n?i=!0:u===")"&&i&&(i=!1),!e&&!n&&!i){const l=t.substr(o).match(/^(-?\d+(?:\.\d+)?)\s*rpx/);if(l){const a=l[1],c=parseFloat(a),f=`${Sm(r,c).toFixed(6).replace(/\.?0+$/,"")}px`;s+=f,o+=l[0].length-1;continue}}s+=u}return s}function Qo(r){return jt(r)?r:JSON.stringify(r)}function fr(r,t,e,n=!1){const i=r.CSSStyleSheet,s=n?`data-v-${t}`:t,o=r.__uniConfig?Tm(r,e):e,u=n?wm(o,s):o;if(i.prototype.replaceSync){const l=new i;l.id=t,l.replaceSync(u);const a=r.document,c=a.adoptedStyleSheets,f=Array.from(c).filter(h=>h.id!==t);a.adoptedStyleSheets=[...f,l]}else{const l=r.document;let a=l.getElementById(t);a?a.innerHTML=u:(a=l.createElement("style"),a.id=t,a.innerHTML=u,l.head.appendChild(a))}}function Rm(r,t){return U(this,null,function*(){const e=yield window.fetch(t).then(n=>n.text()).catch(()=>"");e&&fr(window,r,e)})}function Xo(r,t=window){const e=t.document,n=t.document.head;for(const i of r)if(!e.getElementById(i)){const s=e.createElement("link");s.rel="stylesheet",s.id=i,s.href=i,n.appendChild(s)}}function ta(n,i){return U(this,arguments,function*(r,t,e=window){const s=e.document,o=e.document.head;let u=e[t];return u?u.default||u:new Promise((l,a)=>{for(const c of r){const f=s.createElement("script");f.src=c,f.onload=()=>{u=e[t],u?l(u.default||u):a(null)},f.onerror=h=>{a(h)},o.appendChild(f)}})})}function xm(r){return Vt(r)&&Object.getOwnPropertyNames(r.prototype||{}).length===0||Vt(r==null?void 0:r.install)}function Am(r){return gm.includes(r)}function Om(r){return dm.includes(r)}function Ee(r=window){const t=window==null?void 0:window.Mock;if(t)return t;const e=r==null?void 0:r.Mock;if(e&&window)return window.Mock=e,e}function Se(r,t,e=!1,n=!1,i=!1){var s;try{const o=['"use strict";',"var __self = arguments[0];"];o.push("return ");let u=(r.value||"").trim();i||(u=u.replace(/this(\W|$)/g,(a,c)=>`__self${c}`)),u=o.join(`
|
|
64
64
|
`)+u;const l=i?`
|
|
65
65
|
${u}
|
|
66
|
-
`:`with(${e?"{}":"$scope || {}"}) { ${u} }`;return new Function("$scope",l)(t)}catch(o){if(ie.error("parseExpression.error",o,r,(s=t==null?void 0:t.__self)!=null?s:t),n)throw o}}function pt(r,t,e=!1,n=!1,i=!1){var o;const s=Se(r,t,e,n,i);if(typeof s!="function"&&(ie.error("parseFunction.error","not a function",r,(o=t==null?void 0:t.__self)!=null?o:t),n))throw new Error(`"${r.value}" not a function`);return s}function vt(r){return r&&r.type==="JSExpression"}function dt(r){return typeof r=="object"&&r&&r.type==="JSFunction"}const xm={session:!1,authKey:"Authorization",storageKey:"ACCESS_STORAGE",storagePrefix:"__VTJ_",unauthorized:void 0,auth:"/#/login",redirectParam:"r",unauthorizedCode:401,unauthorizedMessage:"登录已经失效,请重新登录!",noPermissionMessage:"无权限访问该页面",appName:"",statusKey:"code"},Am=Symbol("access");class ea{constructor(t){z(this,"options");z(this,"data",null);z(this,"mode",X.Raw);z(this,"interceptResponse",!0);z(this,"isTipShowing",!1);this.options=Object.assign({},xm,t),this.loadData()}enableIntercept(){this.interceptResponse=!0}disableIntercept(){this.interceptResponse=!1}connect(t){const{mode:e,router:n,request:i}=t;this.mode=e,n&&this.mode!==X.Design&&this.setGuard(n),i&&this.setRequest(i)}login(t){const{storageKey:e,storagePrefix:n,session:i,authKey:s}=this.options;this.setData(t),this.data&&(Dr.save(e,t,{type:"local",prefix:n}),i&&Br.set(s,this.data.token))}clear(){const{storageKey:t,storagePrefix:e,session:n,authKey:i}=this.options;this.data=null,Dr.remove(t,{type:"local",prefix:e}),n&&Br.remove(i)}logout(){this.clear(),this.toLogin()}getData(){return this.data?this.data:(this.loadData(),this.data)}getToken(){var t;return this.data||this.loadData(),(t=this.data)==null?void 0:t.token}can(t){const{appName:e}=this.options,{permissions:n={}}=this.data||{};return typeof t=="function"?t(n):ji(t).every(i=>n[i]||n[e+"."+i])}some(t){const{appName:e}=this.options,{permissions:n={}}=this.data||{};return ji(t).some(i=>n[i]||n[e+"."+i])}install(t){t.config.globalProperties.$access=this,t.provide(Am,this)}isAuthPath(t){const{auth:e,isAuth:n}=this.options;if(n)return n(t);if(t.path&&typeof e=="string"){const i=e.split("#")[1]||e;return t.path===i}return!1}toLogin(){const{auth:t,redirectParam:e}=this.options;if(!t)return;const n=e?`?${e}=${encodeURIComponent(location.href)}`:"";typeof t=="function"?t(n):location.href=e?`${t}${n}`:t}setData(t){const{privateKey:e}=this.options;if(Array.isArray(t)&&e){const n=t.map(i=>Bi(i,e));try{this.data=JSON.parse(n.join(""))}catch(i){console.warn(i)}return}if(typeof t=="string")try{const n=e?Bi(t,e):t;n?this.data=JSON.parse(n):console.warn("RSA解密失败或登录信息缺失")}catch(n){console.warn(n)}else this.data=t}loadData(){const{storageKey:t,storagePrefix:e}=this.options,n=Dr.get(t,{type:"local",prefix:e});this.setData(n||null)}isLogined(){const{session:t,authKey:e}=this.options;return t&&e?!!Br.get(e):!!this.getToken()}hasRoutePermission(t){if(t.name===Ke){const e=t.params.id;return e&&this.can(e)}return t.meta.__vtj__?this.can(t.meta.__vtj__):t.meta.permission?this.can(t.meta.permission):!0}setGuard(t){t.beforeEach((e,n,i)=>this.guard(e,i))}guard(t,e){return U(this,null,function*(){if(this.isWhiteList(t)||this.isAuthPath(t))return e();if(this.isLogined()){if(this.hasRoutePermission(t))return e();{const{noPermissionMessage:n="无权限访问",unauthorized:i=!1}=this.options;return yield this.showTip(n),Vt(i)?(i(),e(!1)):jt(i)?e(i):e(!1)}}e(!1),yield Ze(0),this.toLogin()})}isWhiteList(t){const{whiteList:e}=this.options;return e?Array.isArray(e)?e.some(n=>t.fullPath.startsWith(n)):e(t):!1}isUnauthorized(t){var i;const{unauthorizedCode:e=401,statusKey:n="code"}=this.options;return t.status===e||((i=t.data)==null?void 0:i[n])===e}showUnauthorizedAlert(t){return U(this,null,function*(){const{unauthorizedMessage:e="登录已失效"}=this.options;this.isUnauthorized(t)&&(yield this.showTip(e))&&this.toLogin()})}showTip(t){return U(this,null,function*(){var n,i;const{alert:e}=this.options;return this.isTipShowing?!1:e?(this.isTipShowing=!0,yield Ze(150),yield(i=(n=e(t,{title:"提示",type:"warning"}))==null?void 0:n.catch(()=>!0))==null?void 0:i.finally(()=>{this.isTipShowing=!1})):(window.alert(t),!0)})}setRequest(t){t.useRequest(e=>{var n,i;return(n=this.data)!=null&&n.token&&(e.headers[this.options.authKey]=(i=this.data)==null?void 0:i.token),e}),t.useResponse(e=>U(this,null,function*(){return this.interceptResponse&&(yield this.showUnauthorizedAlert(e)),e}),e=>U(this,null,function*(){if(!this.interceptResponse)return Promise.reject(e);const n=e.response||e||{};return yield this.showUnauthorizedAlert(n),Promise.reject(e)}))}}function Om(r={}){const{notify:t,loading:e,settings:n={},Startup:i,access:s,useTitle:o,alert:u}=r;let l=null;return{request:xn({settings:H({type:"form",validSuccess:!0,originResponse:!1,loading:!0,validate:a=>{var c,f;return((c=a.data)==null?void 0:c.code)===0||!!((f=a.data)!=null&&f.success)},failMessage:!0,showError:a=>{t&&t(a||"未知错误")},showLoading:()=>{l&&l.close(),e&&(l=e())},hideLoading:()=>{l&&(l.close(),l=null)}},n)}),jsonp:Zo,notify:t,loading:e,useTitle:o,alert:u,startupComponent:i,access:s?new ea(H({alert:u},s)):void 0}}function $m(r,t){const{jsonp:e,request:n}=t;if(r.method==="jsonp")return(i={})=>e(r.url,et(H({},r.jsonpOptions),{query:i}));{const i=r.headers?Se(r.headers,{},!0):void 0,s={url:r.url,method:r.method,settings:et(H({},r.settings),{headers:i})};return(o,u)=>(delete s.data,n.send(ve(s,u||{},{data:o})))}}function Dm(r,t){const{metaQuery:e}=t;if(!e)return;const{code:n,queryCode:i}=r;return(s,o)=>{if(!e){console.warn("adapter.metaQuery is not defined!");return}return e(n,i,s,o)}}function Cm(r=[],t=[],e){const n={};for(const i of r){const s=$m(i,e);n[i.id]=s,n[i.name]=s}for(const i of t)n[i.id]=Dm(i,e);return n}function Bm(){return U(this,arguments,function*(r=[],t=window){const e=Ee(t);e&&(ra(t),r.forEach(n=>Pm(e,n)))})}function jm(r,t=window){const e=dt(r.mockTemplate)&&r.mockTemplate.value?pt(r.mockTemplate,{},!0):void 0,n=Ee(t);return(...i)=>U(null,null,function*(){let s={};if(e)try{s=yield e.apply(e,i)}catch(o){ie.warn("模拟数据模版异常",o)}return n==null?void 0:n.mock(s)})}function Pm(r,t){if(!t.mock)return;const{url:e,mockTemplate:n}=t;if(e&&n)try{const i=Ye(e)?new URL(e).pathname:e,s=wn(`(.*)${i}(.*)`),o=Zd(i,{decode:decodeURIComponent}),u=Se(n,{},!0);r.mock(s,l=>{var p;const a=We.parse(l.url)||{},c=l.body instanceof FormData?Wv(l.body):l.body,f=Ye(l.url)?new URL(l.url).pathname:l.url.split("?")[0],h=(p=o(f))==null?void 0:p.params;Object.assign(l,{data:c,params:h,query:a});try{return r.mock(u(l))}catch(d){return console.warn("[mockApi]",s,l,d),null}})}catch(i){console.warn("mockApi",i)}}function ra(r=window){const t=Ee(r);t&&(t._mocked={})}class Nm{constructor(t){z(this,"__id",null);z(this,"__mode");z(this,"__instance",null);z(this,"__contextRefs",{});z(this,"__refs",{});z(this,"context",{});z(this,"state",{});z(this,"props",{});z(this,"$props",{});z(this,"$refs",{});z(this,"$el",null);z(this,"$emit",null);z(this,"$nextTick",null);z(this,"$parent",null);z(this,"$root",null);z(this,"$attrs",null);z(this,"$slots",null);z(this,"$watch",null);z(this,"$options",null);z(this,"$forceUpdate",null);z(this,"$components",{});z(this,"$libs",{});z(this,"$apis",{});z(this,"$provider",null);z(this,"__transform",{});const{mode:e,dsl:n,attrs:i}=t;this.__mode=e,n&&(this.__id=n.id||null,this.__transform=n.transform||{}),i&&Object.assign(this,i)}setup(t,e=Xe){const n=e.getCurrentInstance();if(!n)return;this.__refs={},this.$refs={},this.context={},this.__contextRefs={},this.__instance=n.proxy;const i=n.appContext.config.globalProperties;Object.assign(this,i),Object.assign(this,t||{}),this.__proxy(),e.onMounted(()=>{this.__proxy()}),e.onUnmounted(()=>{this.__cleanup()}),e.onBeforeUpdate(()=>{this.__reset()})}__proxy(){this.__instance&&es.forEach(t=>{var e;this[t]=(e=this.__instance)==null?void 0:e[t]})}__cleanup(){es.forEach(t=>{this[t]=null}),this.__reset()}__reset(){this.__refs={},this.$refs={},this.__contextRefs={},this.context={}}__parseFunction(t){var e;if(t)if(this.__mode===X.Runtime){const{id:n,type:i}=t,s=n&&(e=this.__transform[n])!=null?e:t.value;return pt({type:i,value:s},this)}else return pt(t,this)}__parseExpression(t){var e;if(t)if(this.__mode===X.Runtime){const{id:n,type:i}=t,s=n&&(e=this.__transform[n])!=null?e:t.value;return Se({type:i,value:s},this)}else return Se(t,this)}__ref(t=null,e){if(this.__mode!==X.VNode)return t&&t!==this.__id&&(this.__contextRefs[t]=this),n=>U(this,null,function*(){var s,o;yield Ze(0);let i=(n==null?void 0:n.$vtjEl)||(n==null?void 0:n.$el)||((o=(s=n==null?void 0:n._)==null?void 0:s.vnode)==null?void 0:o.el)||n;if(!i){typeof e=="string"&&(delete this.$refs[e],t&&delete this.__refs[t]);return}return i.nodeType===3&&i.nextSibling&&(i=i.nextSibling),i.__vtj__=t,X.Design===this.__mode&&(i.__context__=this,i.draggable=!0),t&&(this.__refs[t]=this.__getRefEl(this.__refs,t,n)),typeof e=="function"?e(n):e&&(this.$refs[e]=this.__getRefEl(this.$refs,e,n)),n})}__getRefEl(t,e,n){const i=t[e];if(i&&n!==i){const s=new Set([].concat(i,n));return Array.from(s)}else return n}__clone(t={}){const e=H(H({},this.context),t),n=et(H({},e),{context:e});return n.context.__proto__=this.context,n.__proto__=this,n}}function sn(r){var f,h;const{Vue:t=Xe,mode:e=X.Runtime,components:n={},libs:i={},apis:s={},loader:o}=r,u=t.computed(()=>r.dsl),l={$components:n,$libs:i,$apis:s},a=new Nm({mode:e,dsl:u.value,attrs:l}),c=t.defineComponent(H({name:u.value.name,__scopeId:u.value.id?`data-v-${u.value.id}`:void 0,props:H({},Mm((f=u.value.props)!=null?f:[],a)),setup(p){var y,_,S,v;a.$props=p,a.props=p,u.value.id&&fr(r.window||window,u.value.id,u.value.css||"",!0),a.state=Fm(t,(y=u.value.state)!=null?y:{},a);const d=Um(t,(_=u.value.computed)!=null?_:{},a),g=Lm((S=u.value.methods)!=null?S:{},a),b=km(t,u.value.inject,a);for(const[T,A]of Object.entries(b||{}))b[T]=t.inject(T,A);const w=Hm(u.value.dataSources||{},a),m=H(H(H(H({},b),d),g),w);return a.setup(m,t),Vm(t,(v=u.value.watch)!=null?v:[],a),H(H({vtj:a,state:a.state},d),g)},emits:Im(u.value.emits),expose:["vtj",...u.value.expose||[]],render(){if(!u.value.nodes)return null;const p=u.value.nodes||[];return p.length===1?oe(p[0],a,t,o,p):p.map(d=>oe(d,a,t,o,p))}},qm((h=u.value.lifeCycles)!=null?h:{},a)));return{renderer:t.markRaw(c),context:a}}function Im(r=[]){return r.map(t=>jt(t)?t:t.name)}function Mm(r=[],t){const e=n=>n?(Array.isArray(n)?n:[n]).map(i=>pm[i]):void 0;return r.map(n=>jt(n)?{name:n}:{name:n.name,type:n.type,required:n.required,default:vt(n.default)?t.__parseExpression(n.default):n.default}).reduce((n,i)=>(n[i.name]={type:e(i.type),required:i.required,default:i.default},n),{})}function Fm(r,t,e){return r.reactive(Object.keys(t||{}).reduce((n,i)=>{let s=t[i];return vt(s)?s=e.__parseExpression(s):dt(s)&&(s=e.__parseFunction(s)),n[i]=s,n},{}))}function Um(r,t,e){return Object.entries(t!=null?t:{}).reduce((n,[i,s])=>(n[i]=r.computed(e.__parseFunction(s)),n),{})}function Lm(r,t){return Object.entries(r!=null?r:{}).reduce((e,[n,i])=>(e[n]=t.__parseFunction(i),e),{})}function km(r,t=[],e){return t.reduce((n,i)=>{var a;const{name:s,from:o}=i||{};i.default;const u=vt(o)?e.__parseExpression(o)||s:o!=null?o:s,l=vt(i.default)?e.__parseExpression(i.default):(a=i.default)!=null?a:null;return n[s]=r.inject(u,l),n},{})}function Hm(r,t){return Object.keys(r).reduce((e,n)=>{const i=r[n];if(i.type==="mock")e[n]=jm(i);else if(i.ref){const s=t.$apis[i.ref],o=dt(i.transform)?i.transform.value?t.__parseFunction(i.transform):void 0:i.transform;e[n]=(...u)=>U(null,null,function*(){const l=yield s.apply(t,u);return o?o(l):l})}return e},{})}function Vm(r,t=[],e){t.forEach(n=>{r.watch(e.__parseExpression(n.source),e.__parseFunction(n.handler),{deep:n.deep,immediate:n.immediate})})}function qm(r,t){return Object.entries(r!=null?r:{}).reduce((e,[n,i])=>{const s=t.__parseFunction(i);return e[n]=()=>U(null,null,function*(){yield Ze(0),Vt(s)&&s()}),e},{})}const zm=new sg;let Nr=[],Xt={};const Wm=r=>r;function na(e){return U(this,arguments,function*(r,t=window){const{urls:n=[],library:i}=r,s=n.filter(u=>lr(u));if(s.length===0||!i)return null;const o=n.filter(u=>cr(u));return o.length&&Xo(o,t),yield ta(s,i,t).catch(u=>(console.warn("loadScriptUrl error",s,i,u),null))})}function on(r){const{getDsl:t,getDslByUrl:e,options:n}=r;return n.window&&(Nr.forEach(i=>{delete n.window[i]}),Nr=[]),(i,s,o=Xe)=>{if(!s||typeof s=="string")return i;if(s.type==="Schema"&&s.id)return o.defineAsyncComponent(()=>U(null,null,function*(){const u=Xt[s.id]||(yield zm.add(s.id,()=>t(s.id)));return u&&(u.name=i,Xt[s.id]=u),u?sn(et(H({},n),{Vue:o,dsl:li(u),mode:X.Runtime,loader:on(r)})).renderer:null}));if(s.type==="UrlSchema"&&s.url)return o.defineAsyncComponent(()=>U(null,null,function*(){const u=Xt[s.url]||(yield e(s.url));return u&&(u.name=i,Xt[s.url]=u),u?sn(et(H({},n),{Vue:o,dsl:li(u),mode:X.Runtime,loader:on(r)})).renderer:null}));if(s.type==="Plugin"){let u=s.library?Xt[s.library]:null;return u||(s.library&&Nr.push(s.library),u=Xt[s.library||Symbol()]=o.defineAsyncComponent(()=>U(null,null,function*(){return(yield na(s,n.window))||(console.warn("getPlugin result is null",s),null)})),u)}return i}}function oe(r,t,e=Xe,n=Wm,i=[],s=!1){var y;if(!r||!r.name||r.invisible)return null;const o=(y=e.getCurrentInstance())==null?void 0:y.appContext,{id:u=null,directives:l=[]}=r,{vIf:a,vElseIf:c,vElse:f,vFor:h,vShow:p,vModels:d,vBind:g,vHtml:b,others:w}=ia(l);if(!s&&(c||f))return null;if(a&&!Jm(a,t))return Qm(r,t,e,n,i);const m=(_,S=0)=>{var j,$,k,F;const v=_.$components,T=(()=>{var q,O,D,P;if(r.name==="component")return Gm(_,(q=r.props)==null?void 0:q.is);if(r.name==="slot")return r.name;const V=n(r.name,r.from,e);if(jt(V))return Tm(V)||Rm(V)?V:(P=(D=v[V])!=null?D:(O=o==null?void 0:o.app)==null?void 0:O.component(V))!=null?P:V;if(lt(V)&&r.id){const N=`Loader${r.id}_${S}`;return v[N]||(v[N]=V)}return V})(),A=Ym(u,(j=r.props)!=null?j:{},_),L=Zm(e,($=r.events)!=null?$:{},_);if(r.name==="slot")return Xm(e,r,A,_,n);g&&Object.assign(A,_.__parseExpression(g.value)),p&&(A.style=Object.assign((k=A.style)!=null?k:{},e0(p,_))),b&&Object.assign(A,r0(b,_)),d.forEach(V=>{Object.assign(A,n0(e,V,_))});const E=i0(e,(F=r.children)!=null?F:[],_,n,r),x=_!=null&&_.__id?`data-v-${_.__id}`:void 0,M=x?{[x]:""}:{};let C=e.createVNode(T,H(H(H({key:`${u}_${S}`},M),A),L),E);const I=o?Km(o,w,_):[];return I.length&&(C=e.withDirectives(C,I)),C};return h?a0(h,m,t):m(t)}function Km(r,t,e){const n=r.app;return t.map(i=>{const s=typeof i.name=="string"?n.directive(i.name):e.__parseExpression(i.name);if(!s)return null;const o=[s];return i.value&&o.push(e.__parseExpression(i.value)),i.arg&&o.push(i.arg),i.modifiers&&o.push(i.modifiers),o}).filter(i=>!!i)}function ia(r=[]){const t=r.find(c=>Tt(c.name)==="vIf"),e=r.find(c=>Tt(c.name)==="vElseIf"),n=r.find(c=>Tt(c.name)==="vElse"),i=r.find(c=>Tt(c.name)==="vFor"),s=r.find(c=>Tt(c.name)==="vShow"),o=r.find(c=>Tt(c.name)==="vBind"),u=r.find(c=>Tt(c.name)==="vHtml"),l=r.filter(c=>Tt(c.name)==="vModel"),a=r.filter(c=>!hm.includes(Tt(c.name)));return{vIf:t,vElseIf:e,vElse:n,vFor:i,vShow:s,vModels:l,vBind:o,others:a,vHtml:u}}function Jm(r,t){return!!t.__parseExpression(r.value)}function Gm(r,t){return t?vt(t)?r.__parseExpression(t):t:"div"}function Ym(r,t,e){const n=an(t,e);return n.ref=e.__ref(r,n.ref),n}function an(r,t){return vt(r)?t.__parseExpression(r):dt(r)?t.__parseFunction(r):Array.isArray(r)?r.map(e=>an(e,t)):typeof r=="object"?Object.keys(r||{}).reduce((e,n)=>{let i=r[n];return e[n]=an(i,t),e},{}):r}function Zm(r,t,e){const n=["passive","capture","once"],i={capture:"Capture",once:"Once",passive:"OnceCapture"};return Object.keys(t||{}).reduce((s,o)=>{const u=t[o],l=sa(u.modifiers),a=l.find(h=>n.includes(h)),c="on"+Is(o)+(a&&i[a]||""),f=e.__parseFunction(u.handler);return f&&(s[c]=r.withModifiers(f,l)),s},{})}function Qm(r,t,e,n,i=[]){let s=i.findIndex(o=>o.id===r.id);for(let o=++s;o<i.length;o++){const{directives:u=[]}=i[o],{vElseIf:l,vElse:a}=ia(u);if(l){if(t.__parseExpression(l.value))return oe(i[o],t,e,n,i,!0);continue}if(a)return oe(i[o],t,e,n,i,!0)}return null}function sa(r={},t=!1){const e=Object.keys(r);return t?e.map(n=>"."+n):e}function Xm(r,t,e,n,i){var l;const{children:s}=t,o=t0(t,n),u=(l=n.$slots)==null?void 0:l[o.name];return u?u(e):s?jt(s)?r.createTextVNode(s):vt(s)?r.createTextVNode(Qo(n.__parseExpression(s))):Array.isArray(s)?s.map(a=>oe(a,n,r,i,s)):null:null}function t0(r,t){const{props:e}=r,n=(e==null?void 0:e.name)||"default";return{name:vt(n)?t.__parseExpression(n):n,params:[]}}function e0(r,t){return t.__parseExpression(r.value)?{}:{display:"none"}}function r0(r,t){return{innerHTML:t.__parseExpression(r.value)||""}}function n0(r,t,e){var u;const n={type:"JSFunction",value:(u=t.value)!=null&&u.value?`(v) => {
|
|
66
|
+
`:`with(${e?"{}":"$scope || {}"}) { ${u} }`;return new Function("$scope",l)(t)}catch(o){if(ie.error("parseExpression.error",o,r,(s=t==null?void 0:t.__self)!=null?s:t),n)throw o}}function pt(r,t,e=!1,n=!1,i=!1){var o;const s=Se(r,t,e,n,i);if(typeof s!="function"&&(ie.error("parseFunction.error","not a function",r,(o=t==null?void 0:t.__self)!=null?o:t),n))throw new Error(`"${r.value}" not a function`);return s}function vt(r){return r&&r.type==="JSExpression"}function dt(r){return typeof r=="object"&&r&&r.type==="JSFunction"}const $m={session:!1,authKey:"Authorization",storageKey:"ACCESS_STORAGE",storagePrefix:"__VTJ_",unauthorized:void 0,auth:"/#/login",redirectParam:"r",unauthorizedCode:401,unauthorizedMessage:"登录已经失效,请重新登录!",noPermissionMessage:"无权限访问该页面",appName:"",statusKey:"code"},Dm=Symbol("access");class ea{constructor(t){z(this,"options");z(this,"data",null);z(this,"mode",X.Raw);z(this,"interceptResponse",!0);z(this,"isTipShowing",!1);this.options=Object.assign({},$m,t),this.loadData()}enableIntercept(){this.interceptResponse=!0}disableIntercept(){this.interceptResponse=!1}connect(t){const{mode:e,router:n,request:i}=t;this.mode=e,n&&this.mode!==X.Design&&this.setGuard(n),i&&this.setRequest(i)}login(t){const{storageKey:e,storagePrefix:n,session:i,authKey:s}=this.options;this.setData(t),this.data&&(Dr.save(e,t,{type:"local",prefix:n}),i&&Br.set(s,this.data.token))}clear(){const{storageKey:t,storagePrefix:e,session:n,authKey:i}=this.options;this.data=null,Dr.remove(t,{type:"local",prefix:e}),n&&Br.remove(i)}logout(){this.clear(),this.toLogin()}getData(){return this.data?this.data:(this.loadData(),this.data)}getToken(){var t;return this.data||this.loadData(),(t=this.data)==null?void 0:t.token}can(t){const{appName:e}=this.options,{permissions:n={}}=this.data||{};return typeof t=="function"?t(n):ji(t).every(i=>n[i]||n[e+"."+i])}some(t){const{appName:e}=this.options,{permissions:n={}}=this.data||{};return ji(t).some(i=>n[i]||n[e+"."+i])}install(t){t.config.globalProperties.$access=this,t.provide(Dm,this)}isAuthPath(t){const{auth:e,isAuth:n}=this.options;if(n)return n(t);if(t.path&&typeof e=="string"){const i=e.split("#")[1]||e;return t.path===i}return!1}toLogin(){const{auth:t,redirectParam:e}=this.options;if(!t)return;const n=e?`?${e}=${encodeURIComponent(location.href)}`:"";typeof t=="function"?t(n):location.href=e?`${t}${n}`:t}setData(t){const{privateKey:e}=this.options;if(Array.isArray(t)&&e){const n=t.map(i=>Bi(i,e));try{this.data=JSON.parse(n.join(""))}catch(i){console.warn(i)}return}if(typeof t=="string")try{const n=e?Bi(t,e):t;n?this.data=JSON.parse(n):console.warn("RSA解密失败或登录信息缺失")}catch(n){console.warn(n)}else this.data=t}loadData(){const{storageKey:t,storagePrefix:e}=this.options,n=Dr.get(t,{type:"local",prefix:e});this.setData(n||null)}isLogined(){const{session:t,authKey:e}=this.options;return t&&e?!!Br.get(e):!!this.getToken()}hasRoutePermission(t){if(t.name===Ke){const e=t.params.id;return e&&this.can(e)}return t.meta.__vtj__?this.can(t.meta.__vtj__):t.meta.permission?this.can(t.meta.permission):!0}setGuard(t){t.beforeEach((e,n,i)=>this.guard(e,i))}guard(t,e){return U(this,null,function*(){if(this.isWhiteList(t)||this.isAuthPath(t))return e();if(this.isLogined()){if(this.hasRoutePermission(t))return e();{const{noPermissionMessage:n="无权限访问",unauthorized:i=!1}=this.options;return yield this.showTip(n),Vt(i)?(i(),e(!1)):jt(i)?e(i):e(!1)}}e(!1),yield Ze(0),this.toLogin()})}isWhiteList(t){const{whiteList:e}=this.options;return e?Array.isArray(e)?e.some(n=>t.fullPath.startsWith(n)):e(t):!1}isUnauthorized(t){var i;const{unauthorizedCode:e=401,statusKey:n="code"}=this.options;return t.status===e||((i=t.data)==null?void 0:i[n])===e}showUnauthorizedAlert(t){return U(this,null,function*(){const{unauthorizedMessage:e="登录已失效"}=this.options;this.isUnauthorized(t)&&(yield this.showTip(e))&&this.toLogin()})}showTip(t){return U(this,null,function*(){var n,i;const{alert:e}=this.options;return this.isTipShowing?!1:e?(this.isTipShowing=!0,yield Ze(150),yield(i=(n=e(t,{title:"提示",type:"warning"}))==null?void 0:n.catch(()=>!0))==null?void 0:i.finally(()=>{this.isTipShowing=!1})):(window.alert(t),!0)})}setRequest(t){t.useRequest(e=>{var n,i;return(n=this.data)!=null&&n.token&&(e.headers[this.options.authKey]=(i=this.data)==null?void 0:i.token),e}),t.useResponse(e=>U(this,null,function*(){return this.interceptResponse&&(yield this.showUnauthorizedAlert(e)),e}),e=>U(this,null,function*(){if(!this.interceptResponse)return Promise.reject(e);const n=e.response||e||{};return yield this.showUnauthorizedAlert(n),Promise.reject(e)}))}}function Cm(r={}){const{notify:t,loading:e,settings:n={},Startup:i,access:s,useTitle:o,alert:u}=r;let l=null;return{request:xn({settings:H({type:"form",validSuccess:!0,originResponse:!1,loading:!0,validate:a=>{var c,f;return((c=a.data)==null?void 0:c.code)===0||!!((f=a.data)!=null&&f.success)},failMessage:!0,showError:a=>{t&&t(a||"未知错误")},showLoading:()=>{l&&l.close(),e&&(l=e())},hideLoading:()=>{l&&(l.close(),l=null)}},n)}),jsonp:Zo,notify:t,loading:e,useTitle:o,alert:u,startupComponent:i,access:s?new ea(H({alert:u},s)):void 0}}function Bm(r,t){const{jsonp:e,request:n}=t;if(r.method==="jsonp")return(i={})=>e(r.url,et(H({},r.jsonpOptions),{query:i}));{const i=r.headers?Se(r.headers,{},!0):void 0,s={url:r.url,method:r.method,settings:et(H({},r.settings),{headers:i})};return(o,u)=>(delete s.data,n.send(ve(s,u||{},{data:o})))}}function jm(r,t){const{metaQuery:e}=t;if(!e)return;const{code:n,queryCode:i}=r;return(s,o)=>{if(!e){console.warn("adapter.metaQuery is not defined!");return}return e(n,i,s,o)}}function Pm(r=[],t=[],e){const n={};for(const i of r){const s=Bm(i,e);n[i.id]=s,n[i.name]=s}for(const i of t)n[i.id]=jm(i,e);return n}function Nm(){return U(this,arguments,function*(r=[],t=window){const e=Ee(t);e&&(ra(t),r.forEach(n=>Mm(e,n)))})}function Im(r,t=window){const e=dt(r.mockTemplate)&&r.mockTemplate.value?pt(r.mockTemplate,{},!0):void 0,n=Ee(t);return(...i)=>U(null,null,function*(){let s={};if(e)try{s=yield e.apply(e,i)}catch(o){ie.warn("模拟数据模版异常",o)}return n==null?void 0:n.mock(s)})}function Mm(r,t){if(!t.mock)return;const{url:e,mockTemplate:n}=t;if(e&&n)try{const i=Ye(e)?new URL(e).pathname:e,s=wn(`(.*)${i}(.*)`),o=Zd(i,{decode:decodeURIComponent}),u=Se(n,{},!0);r.mock(s,l=>{var p;const a=We.parse(l.url)||{},c=l.body instanceof FormData?Wv(l.body):l.body,f=Ye(l.url)?new URL(l.url).pathname:l.url.split("?")[0],h=(p=o(f))==null?void 0:p.params;Object.assign(l,{data:c,params:h,query:a});try{return r.mock(u(l))}catch(d){return console.warn("[mockApi]",s,l,d),null}})}catch(i){console.warn("mockApi",i)}}function ra(r=window){const t=Ee(r);t&&(t._mocked={})}class Fm{constructor(t){z(this,"__id",null);z(this,"__mode");z(this,"__instance",null);z(this,"__contextRefs",{});z(this,"__refs",{});z(this,"context",{});z(this,"state",{});z(this,"props",{});z(this,"$props",{});z(this,"$refs",{});z(this,"$el",null);z(this,"$emit",null);z(this,"$nextTick",null);z(this,"$parent",null);z(this,"$root",null);z(this,"$attrs",null);z(this,"$slots",null);z(this,"$watch",null);z(this,"$options",null);z(this,"$forceUpdate",null);z(this,"$components",{});z(this,"$libs",{});z(this,"$apis",{});z(this,"$provider",null);z(this,"__transform",{});const{mode:e,dsl:n,attrs:i}=t;this.__mode=e,n&&(this.__id=n.id||null,this.__transform=n.transform||{}),i&&Object.assign(this,i)}setup(t,e=Xe){const n=e.getCurrentInstance();if(!n)return;this.__refs={},this.$refs={},this.context={},this.__contextRefs={},this.__instance=n.proxy;const i=n.appContext.config.globalProperties;Object.assign(this,i),Object.assign(this,t||{}),this.__proxy(),e.onMounted(()=>{this.__proxy()}),e.onUnmounted(()=>{this.__cleanup()}),e.onBeforeUpdate(()=>{this.__reset()})}__proxy(){this.__instance&&es.forEach(t=>{var e;this[t]=(e=this.__instance)==null?void 0:e[t]})}__cleanup(){es.forEach(t=>{this[t]=null}),this.__reset()}__reset(){this.__refs={},this.$refs={},this.__contextRefs={},this.context={}}__parseFunction(t){var e;if(t)if(this.__mode===X.Runtime){const{id:n,type:i}=t,s=n&&(e=this.__transform[n])!=null?e:t.value;return pt({type:i,value:s},this)}else return pt(t,this)}__parseExpression(t){var e;if(t)if(this.__mode===X.Runtime){const{id:n,type:i}=t,s=n&&(e=this.__transform[n])!=null?e:t.value;return Se({type:i,value:s},this)}else return Se(t,this)}__ref(t=null,e){if(this.__mode!==X.VNode)return t&&t!==this.__id&&(this.__contextRefs[t]=this),n=>U(this,null,function*(){var s,o;yield Ze(0);let i=(n==null?void 0:n.$vtjEl)||(n==null?void 0:n.$el)||((o=(s=n==null?void 0:n._)==null?void 0:s.vnode)==null?void 0:o.el)||n;if(!i){typeof e=="string"&&(delete this.$refs[e],t&&delete this.__refs[t]);return}return i.nodeType===3&&i.nextSibling&&(i=i.nextSibling),i.__vtj__=t,X.Design===this.__mode&&(i.__context__=this,i.draggable=!0),t&&(this.__refs[t]=this.__getRefEl(this.__refs,t,n)),typeof e=="function"?e(n):e&&(this.$refs[e]=this.__getRefEl(this.$refs,e,n)),n})}__getRefEl(t,e,n){const i=t[e];if(i&&n!==i){const s=new Set([].concat(i,n));return Array.from(s)}else return n}__clone(t={}){const e=H(H({},this.context),t),n=et(H({},e),{context:e});return n.context.__proto__=this.context,n.__proto__=this,n}}function sn(r){var f,h;const{Vue:t=Xe,mode:e=X.Runtime,components:n={},libs:i={},apis:s={},loader:o}=r,u=t.computed(()=>r.dsl),l={$components:n,$libs:i,$apis:s},a=new Fm({mode:e,dsl:u.value,attrs:l}),c=t.defineComponent(H({name:u.value.name,__scopeId:u.value.id?`data-v-${u.value.id}`:void 0,props:H({},Lm((f=u.value.props)!=null?f:[],a)),setup(p){var b,_,S,v;a.$props=p,a.props=p,u.value.id&&fr(r.window||window,u.value.id,u.value.css||"",!0),a.state=km(t,(b=u.value.state)!=null?b:{},a);const d=Hm(t,(_=u.value.computed)!=null?_:{},a),g=Vm((S=u.value.methods)!=null?S:{},a),y=qm(t,u.value.inject,a);for(const[T,A]of Object.entries(y||{}))y[T]=t.inject(T,A);const w=zm(u.value.dataSources||{},a),m=H(H(H(H({},y),d),g),w);return a.setup(m,t),Wm(t,(v=u.value.watch)!=null?v:[],a),H(H({vtj:a,state:a.state},d),g)},emits:Um(u.value.emits),expose:["vtj",...u.value.expose||[]],render(){if(!u.value.nodes)return null;const p=u.value.nodes||[];return p.length===1?oe(p[0],a,t,o,p):p.map(d=>oe(d,a,t,o,p))}},Km((h=u.value.lifeCycles)!=null?h:{},a)));return{renderer:t.markRaw(c),context:a}}function Um(r=[]){return r.map(t=>jt(t)?t:t.name)}function Lm(r=[],t){const e=n=>n?(Array.isArray(n)?n:[n]).map(i=>pm[i]):void 0;return r.map(n=>jt(n)?{name:n}:{name:n.name,type:n.type,required:n.required,default:vt(n.default)?t.__parseExpression(n.default):n.default}).reduce((n,i)=>(n[i.name]={type:e(i.type),required:i.required,default:i.default},n),{})}function km(r,t,e){return r.reactive(Object.keys(t||{}).reduce((n,i)=>{let s=t[i];return vt(s)?s=e.__parseExpression(s):dt(s)&&(s=e.__parseFunction(s)),n[i]=s,n},{}))}function Hm(r,t,e){return Object.entries(t!=null?t:{}).reduce((n,[i,s])=>(n[i]=r.computed(e.__parseFunction(s)),n),{})}function Vm(r,t){return Object.entries(r!=null?r:{}).reduce((e,[n,i])=>(e[n]=t.__parseFunction(i),e),{})}function qm(r,t=[],e){return t.reduce((n,i)=>{var a;const{name:s,from:o}=i||{};i.default;const u=vt(o)?e.__parseExpression(o)||s:o!=null?o:s,l=vt(i.default)?e.__parseExpression(i.default):(a=i.default)!=null?a:null;return n[s]=r.inject(u,l),n},{})}function zm(r,t){return Object.keys(r).reduce((e,n)=>{const i=r[n];if(i.type==="mock")e[n]=Im(i);else if(i.ref){const s=t.$apis[i.ref],o=dt(i.transform)?i.transform.value?t.__parseFunction(i.transform):void 0:i.transform;e[n]=(...u)=>U(null,null,function*(){const l=yield s.apply(t,u);return o?o(l):l})}return e},{})}function Wm(r,t=[],e){t.forEach(n=>{r.watch(e.__parseExpression(n.source),e.__parseFunction(n.handler),{deep:n.deep,immediate:n.immediate})})}function Km(r,t){return Object.entries(r!=null?r:{}).reduce((e,[n,i])=>{const s=t.__parseFunction(i);return e[n]=()=>U(null,null,function*(){yield Ze(0),Vt(s)&&s()}),e},{})}const Jm=new sg;let Nr=[],Xt={};const Gm=r=>r;function na(e){return U(this,arguments,function*(r,t=window){const{urls:n=[],library:i}=r,s=n.filter(u=>lr(u));if(s.length===0||!i)return null;const o=n.filter(u=>cr(u));return o.length&&Xo(o,t),yield ta(s,i,t).catch(u=>(console.warn("loadScriptUrl error",s,i,u),null))})}function on(r){const{getDsl:t,getDslByUrl:e,options:n}=r;return n.window&&(Nr.forEach(i=>{delete n.window[i]}),Nr=[]),(i,s,o=Xe)=>{if(!s||typeof s=="string")return i;if(s.type==="Schema"&&s.id)return o.defineAsyncComponent(()=>U(null,null,function*(){const u=Xt[s.id]||(yield Jm.add(s.id,()=>t(s.id)));return u&&(u.name=i,Xt[s.id]=u),u?sn(et(H({},n),{Vue:o,dsl:li(u),mode:X.Runtime,loader:on(r)})).renderer:null}));if(s.type==="UrlSchema"&&s.url)return o.defineAsyncComponent(()=>U(null,null,function*(){const u=Xt[s.url]||(yield e(s.url));return u&&(u.name=i,Xt[s.url]=u),u?sn(et(H({},n),{Vue:o,dsl:li(u),mode:X.Runtime,loader:on(r)})).renderer:null}));if(s.type==="Plugin"){let u=s.library?Xt[s.library]:null;return u||(s.library&&Nr.push(s.library),u=Xt[s.library||Symbol()]=o.defineAsyncComponent(()=>U(null,null,function*(){return(yield na(s,n.window))||(console.warn("getPlugin result is null",s),null)})),u)}return i}}function oe(r,t,e=Xe,n=Gm,i=[],s=!1){var b;if(!r||!r.name||r.invisible)return null;const o=(b=e.getCurrentInstance())==null?void 0:b.appContext,{id:u=null,directives:l=[]}=r,{vIf:a,vElseIf:c,vElse:f,vFor:h,vShow:p,vModels:d,vBind:g,vHtml:y,others:w}=ia(l);if(!s&&(c||f))return null;if(a&&!Zm(a,t))return ey(r,t,e,n,i);const m=(_,S=0)=>{var j,$,k,F;const v=_.$components,T=(()=>{var q,O,D,P;if(r.name==="component")return Qm(_,(q=r.props)==null?void 0:q.is);if(r.name==="slot")return r.name;const V=n(r.name,r.from,e);if(jt(V))return Am(V)||Om(V)?V:(P=(D=v[V])!=null?D:(O=o==null?void 0:o.app)==null?void 0:O.component(V))!=null?P:V;if(lt(V)&&r.id){const N=`Loader${r.id}_${S}`;return v[N]||(v[N]=V)}return V})(),A=Xm(u,(j=r.props)!=null?j:{},_),L=ty(e,($=r.events)!=null?$:{},_);if(r.name==="slot")return ry(e,r,A,_,n);g&&Object.assign(A,_.__parseExpression(g.value)),p&&(A.style=Object.assign((k=A.style)!=null?k:{},iy(p,_))),y&&Object.assign(A,sy(y,_)),d.forEach(V=>{Object.assign(A,oy(e,V,_))});const E=ay(e,(F=r.children)!=null?F:[],_,n,r),x=_!=null&&_.__id?`data-v-${_.__id}`:void 0,M=x?{[x]:""}:{};let C=e.createVNode(T,H(H(H({key:`${u}_${S}`},M),A),L),E);const I=o?Ym(o,w,_):[];return I.length&&(C=e.withDirectives(C,I)),C};return h?ly(h,m,t):m(t)}function Ym(r,t,e){const n=r.app;return t.map(i=>{const s=typeof i.name=="string"?n.directive(i.name):e.__parseExpression(i.name);if(!s)return null;const o=[s];return i.value&&o.push(e.__parseExpression(i.value)),i.arg&&o.push(i.arg),i.modifiers&&o.push(i.modifiers),o}).filter(i=>!!i)}function ia(r=[]){const t=r.find(c=>Tt(c.name)==="vIf"),e=r.find(c=>Tt(c.name)==="vElseIf"),n=r.find(c=>Tt(c.name)==="vElse"),i=r.find(c=>Tt(c.name)==="vFor"),s=r.find(c=>Tt(c.name)==="vShow"),o=r.find(c=>Tt(c.name)==="vBind"),u=r.find(c=>Tt(c.name)==="vHtml"),l=r.filter(c=>Tt(c.name)==="vModel"),a=r.filter(c=>!hm.includes(Tt(c.name)));return{vIf:t,vElseIf:e,vElse:n,vFor:i,vShow:s,vModels:l,vBind:o,others:a,vHtml:u}}function Zm(r,t){return!!t.__parseExpression(r.value)}function Qm(r,t){return t?vt(t)?r.__parseExpression(t):t:"div"}function Xm(r,t,e){const n=an(t,e);return n.ref=e.__ref(r,n.ref),n}function an(r,t){return vt(r)?t.__parseExpression(r):dt(r)?t.__parseFunction(r):Array.isArray(r)?r.map(e=>an(e,t)):typeof r=="object"?Object.keys(r||{}).reduce((e,n)=>{let i=r[n];return e[n]=an(i,t),e},{}):r}function ty(r,t,e){const n=["passive","capture","once"],i={capture:"Capture",once:"Once",passive:"OnceCapture"};return Object.keys(t||{}).reduce((s,o)=>{const u=t[o],l=sa(u.modifiers),a=l.find(h=>n.includes(h)),c="on"+Is(o)+(a&&i[a]||""),f=e.__parseFunction(u.handler);return f&&(s[c]=r.withModifiers(f,l)),s},{})}function ey(r,t,e,n,i=[]){let s=i.findIndex(o=>o.id===r.id);for(let o=++s;o<i.length;o++){const{directives:u=[]}=i[o],{vElseIf:l,vElse:a}=ia(u);if(l){if(t.__parseExpression(l.value))return oe(i[o],t,e,n,i,!0);continue}if(a)return oe(i[o],t,e,n,i,!0)}return null}function sa(r={},t=!1){const e=Object.keys(r);return t?e.map(n=>"."+n):e}function ry(r,t,e,n,i){var l;const{children:s}=t,o=ny(t,n),u=(l=n.$slots)==null?void 0:l[o.name];return u?u(e):s?jt(s)?r.createTextVNode(s):vt(s)?r.createTextVNode(Qo(n.__parseExpression(s))):Array.isArray(s)?s.map(a=>oe(a,n,r,i,s)):null:null}function ny(r,t){const{props:e}=r,n=(e==null?void 0:e.name)||"default";return{name:vt(n)?t.__parseExpression(n):n,params:[]}}function iy(r,t){return t.__parseExpression(r.value)?{}:{display:"none"}}function sy(r,t){return{innerHTML:t.__parseExpression(r.value)||""}}function oy(r,t,e){var u;const n={type:"JSFunction",value:(u=t.value)!=null&&u.value?`(v) => {
|
|
67
67
|
${t.value.value} = v;
|
|
68
|
-
}`:"(v) => {}"},i=e.__parseFunction(n),s=sa(vt(t.modifiers)?e.__parseExpression(t.modifiers):t.modifiers),o=vt(t.arg)?e.__parseExpression(t.arg):t.arg||"modelValue";return{[o]:e.__parseExpression(t.value),[`onUpdate:${o}`]:s.length&&i?r.withModifiers(i,s):i}}function i0(r,t,e,n,i){if(!t)return null;if(jt(t))return{default:()=>t};if(vt(t))return{default:()=>Qo(e.__parseExpression(t))};if(Array.isArray(t)&&t.length>0){const s=s0(t),o=(u,l)=>!u||!i?{}:i!=null&&i.id&&Object.keys(u).length?l?{[l]:u}:{[`scope_${i.id}`]:u}:l?{[l]:Object.create(null)}:{};return Object.entries(s).reduce((u,[l,{nodes:a,params:c,scope:f}])=>(u[l]=h=>{const p=c.length?Kd(h!=null?h:{},c):o(h,f);return a.map(d=>oe(d,e.__clone(p),r,n,a))},u),{})}return null}function s0(r){const t={};for(const e of r){const n=o0(e.slot),i=n.name;t[i]?(t[i].nodes.push(e),t[i].params=t[i].params.concat(n.params),t[i].scope=n.scope||""):t[i]={nodes:[e],params:n.params,scope:n.scope||""}}return t}function o0(r="default"){return jt(r)?{name:r,params:[],scope:""}:H({params:[],scope:""},r)}function a0(r,t,e){const{value:n,iterator:i}=r,{item:s="item",index:o="index"}=i||{};let u=e.__parseExpression(n)||[];return Number.isInteger(u)&&(u=new Array(u).fill(!0).map((l,a)=>a+1)),Array.isArray(u)?u.map((l,a)=>t(e.__clone({[s]:l,[o]:a}),a)):(console.warn("[vForRender]:",`${n==null?void 0:n.value} is not a Arrary`),[])}const Ir=is({name:"VtjPageContainer",setup(){return U(this,null,function*(){const r=y0(),t=ba(),e=t.meta.__vtj__||t.params.id,n=e?r.getPage(e):r.getHomepage(),i=n?yield r.getRenderComponent(n.id):null,s=ma(Symbol());if(n){Object.assign(t.meta,n.meta||{},{cache:n.cache});const{useTitle:o}=r==null?void 0:r.adapter;if(o){const u=t.meta.title||n.title||"VTJ.PRO";o(u)}}return{provider:r,component:i,file:n,query:t.query,meta:t.meta,sid:s,route:t}})},render(){const{component:r,query:t,sid:e}=this;return r?Fr(r,et(H({},t),{key:e})):Fr("div","页面不存在")},activated(){this.meta.cache===!1&&(this.sid=Symbol())}}),u0=is({name:"VtjStartupContainer",render(){return Fr("div","page not found!")}});function un(r,t,e=[]){const n=[];for(const i of e){const{id:s,title:o,icon:u,children:l,hidden:a,layout:c}=i;if(c){const f=un(r,t,l||[]);n.push(...f)}else{const f={id:s,title:o,icon:u,hidden:a,url:`${r}/${t}/${s}`,children:l&&l.length?un(r,t,l):void 0};n.push(f)}}return n}function Mr(r,t){const{id:e,title:n,meta:i}=r,{name:s="page",prefix:o="",component:u,routeMeta:l}=t;return{name:e,path:`${o}${s}/${e}`,component:u,meta:et(H(H({title:n},l),i),{__vtj__:e})}}function cn(r){const{name:t="page",prefix:e="",pages:n=[],component:i,loader:s,routeMeta:o,homepage:u}=r,l=[];for(const a of n){const{id:c,title:f,dir:h,layout:p,children:d,meta:g}=a;if(h){const b=cn({name:t,prefix:e,component:i,routeMeta:o,homepage:u,loader:s,pages:d||[]});l.push(...b)}else if(p){const b=cn({name:t,prefix:e,component:i,routeMeta:o,homepage:u,loader:s,pages:d||[]}),w={name:`layout_${c}`,path:e,component:()=>s(c),meta:et(H(H({title:f},o),g),{__vtj__:c}),children:b};l.push(w),l.push(Mr(a,r))}else if(l.push(Mr(a,r)),u===c){const b=Mr(a,r);b.path="",b.name=`home_${c}`,l.push(b)}}return l}function c0(r={},t){const{css:e,store:n,enhance:i}=r,{window:s,app:o,library:u={},adapter:l,mode:a}=t,{Pinia:c}=u;o.config.globalProperties.$libs=u,fr(s,"global-css",e||""),c&&n&&l0(n,o,c),h0(o,l,r),!l.access&&r.access&&f0(r.access,o,a,l),p0(o,r),i&&d0(i,o,u)}function l0(r,t,e){const n=e.createPinia();if(t.use(n),dt(r)&&r.value){const i=pt(r,{},!1,!1,!0),s=e.defineStore("$store",i(t)||{});t.config.globalProperties.$store=s()}}function f0(r,t,e,n){if(dt(r)&&r.value){const i=pt(r,{},!1,!1,!0),{alert:s,request:o}=n,u=new ea(H({alert:s,storagePrefix:"__VTJ_APP_"},i(t))),l=t.config.globalProperties.$router;u.connect({mode:e,router:l,request:o}),t.use(u)}}function h0(r,t,e){if(!t.request)return;const{axios:n,request:i,response:s}=e;if(n&&dt(n)&&n.value){const o=pt(n,{},!1,!1,!0);t.request.setConfig(o(r))}if(i&&dt(i)&&i.value){const o=pt(i,{},!1,!1,!0),u=t.request;u.__unReq&&u.__unReq(),u.__unReq=t.request.useRequest(l=>o(l,r))}if(s&&dt(s)&&s.value){const o=pt(s,{},!1,!1,!0),u=t.request;u.__unRes&&u.__unRes(),u.__unRes=t.request.useResponse(l=>o(l,r))}}function p0(r,t){const{beforeEach:e,afterEach:n}=t,i=r.config.globalProperties.$router;if(e&&dt(e)&&e.value){const s=pt(e,{},!1,!1,!0);i&&i.beforeEach((o,u,l)=>s(o,u,l,r))}if(n&&dt(n)&&n.value){const s=pt(n,{},!1,!1,!0);i&&i.afterEach((o,u,l)=>s(o,u,l,r))}}function d0(r,t,e={}){dt(r)&&r.value&&pt(r,{},!1,!1,!0)(t,e)}function g0(r,t,e){if(!r||!t||!e)return;const{VueI18n:n}=t;if(n){const{locale:i,fallbackLocale:s,messages:o=[]}=e,u={};for(let a of o){const c=Object.keys(a).filter(f=>f!=="key");for(const f of c)u[f]||(u[f]={}),u[f][a.key]=a[f]}const l=n.createI18n({legacy:!1,locale:i,fallbackLocale:s,messages:u});r.use(l)}}const oa=Symbol("Provider");class v0 extends cg{constructor(e){super();z(this,"mode");z(this,"globals",{});z(this,"modules",{});z(this,"adapter",{request:tn,jsonp:Zo});z(this,"apis",{});z(this,"dependencies",{});z(this,"materials",{});z(this,"library",{});z(this,"libraryLocales",{});z(this,"libraryLocaleMap",{});z(this,"service");z(this,"project",null);z(this,"components",{});z(this,"nodeEnv","development");z(this,"env",{});z(this,"router",null);z(this,"materialPath","./");z(this,"urlDslCaches",{});this.options=e;const{service:n,mode:i=X.Raw,dependencies:s,materials:o,project:u={},adapter:l={},globals:a={},modules:c={},router:f=null,materialPath:h="./",nodeEnv:p="development"}=e;this.mode=i,this.modules=c,this.service=n,this.router=f,this.materialPath=h,this.nodeEnv=p,s&&(this.dependencies=s),o&&(this.materials=o),Object.assign(this.globals,a),Object.assign(this.adapter,l);const{access:d,request:g}=this.adapter;d&&d.connect({mode:i,router:f,request:g}),u&&i!==X.Design?this.load(u):this.project=u}createMock(e){return(...n)=>U(null,null,function*(){var s;let i={};if(e)try{i=yield e.apply(e,n)}catch(o){ie.warn("模拟数据模版异常",o)}return(s=Ee())==null?void 0:s.mock(i)})}load(e){return U(this,null,function*(){const{vtjDir:n=".vtj"}=this.options,i=this.modules[`${n}/projects/${e.id}.json`]||this.modules[`/src/${n}/projects/${e.id}.json`];if(this.project=i?yield i():yield this.service.init(e),!this.project)throw new Error("project is null");const{apis:s=[],meta:o=[],env:u=[]}=this.project,l=window;l&&(l.CKEDITOR_VERSION=void 0),this.initEnv(u),this.mode===X.Raw?yield this.loadDependencies(l):yield this.loadAssets(l),this.initMock(l),this.apis=Cm(s,o,this.adapter),ra(l),Bm(s,l),e.platform!=="uniapp"&&this.initRouter(),this.triggerReady()})}initMock(e){const n=Ee(e);n&&n.setup({timeout:"50-500"})}loadDependencies(){return U(this,arguments,function*(e={}){const n=Object.entries(this.dependencies);for(const[i,s]of n)e[i]||(e[i]=this.library[i]=yield s())})}loadAssets(){return U(this,arguments,function*(e={}){const{dependencies:n=[]}=this.project,{dependencies:i,library:s,components:o,materialPath:u,nodeEnv:l,libraryLocales:a}=this,{libraryExports:c,libraryMap:f,materials:h,materialExports:p,materialMapLibrary:d,libraryLocaleMap:g}=ym(n,u,l==="development");Object.assign(this.libraryLocaleMap,g);for(const b of c){const w=i[b],m=e[b];if(m)s[b]=m;else if(w)e[b]=s[b]=yield w();else{const _=f[b]||[];for(const S of _)cr(S)&&(yield Em(S,We.append(S,{v:jr}))),lr(S)&&(yield Xi(We.append(S,{v:jr})));s[b]=e[b]}const y=g[b];if(y){const _=i[y];a[y]=_?yield _():e[y]}}if(l==="development"){for(const w of h)yield Xi(We.append(w,{v:jr}));const b=this.materials||{};for(const w of p){const m=e[d[w]],y=(m==null?void 0:m.default)||m,_=ug[w];if(_)y&&_.forEach(S=>{o[S]=y[S]});else{const S=b[w]?(yield b[w]()).default:e[w];S&&y&&(S.components||[]).forEach(v=>{o[v.name]=bm(v,y)})}}}})}initRouter(){const{router:e,project:n,options:i,adapter:s}=this;if(!e)return;const o=(n==null?void 0:n.platform)==="uniapp"?"pages":"page",{routeAppendTo:u,pageRouteName:l=o,routeMeta:a}=i,c=u?"":"/",f={path:`${c}${l}/:id`,name:Ke,component:Ir},h={path:c,name:Pr,component:n!=null&&n.homepage?Ir:s.startupComponent||u0,meta:a};if(e.hasRoute(Ke)&&e.removeRoute(Ke),e.hasRoute(Pr)&&e.removeRoute(Pr),i.enableStaticRoute){const p=(n==null?void 0:n.pages)||[];cn({name:l,prefix:c,pages:p,component:Ir,loader:this.getRenderComponent.bind(this),homepage:n==null?void 0:n.homepage}).forEach(d=>{u?e.addRoute(u,d):e.addRoute(d)}),n!=null&&n.homepage||(u?e.addRoute(u,h):e.addRoute(h))}else u?(e.addRoute(u,f),e.addRoute(u,h)):(e.addRoute(f),e.addRoute(h))}install(e){var o,u,l,a;const{libraryLocaleMap:n,libraryLocales:i}=this,s=e.config.globalProperties.installed||{};for(const[c,f]of Object.entries(this.library))if(!s[c]&&Sm(f)){const h=i[n[c]];e.use(f,{locale:h}),s[c]=!0}e.provide(oa,this),e.config.globalProperties.$provider=this,e.config.globalProperties.$request=(o=this.adapter)==null?void 0:o.request,this.options.install&&e.use(this.options.install),this.adapter.access&&e.use(this.adapter.access),((u=this.project)==null?void 0:u.platform)!=="uniapp"&&this.mode!==X.Design&&this.initGlobals(((l=this.project)==null?void 0:l.globals)||{},{app:e,window,adapter:this.adapter,library:this.library,mode:this.mode}),this.mode!==X.Design&&((a=this.project)!=null&&a.i18n)&&this.initI18n(e,this.library,this.project.i18n),this.options.enhance&&e.use(this.options.enhance,this),this.mode===X.Design&&(e.config.errorHandler=(c,f,h)=>{const p=f==null?void 0:f.$options.name,d=typeof c=="string"?c:(c==null?void 0:c.message)||(c==null?void 0:c.msg)||"未知错误",g=`[ ${p} ] ${d} ${h}`;console.error("[VTJ Error]:",{err:c,instance:f,info:h},c==null?void 0:c.stack),this.adapter.notify&&this.adapter.notify(g,"组件渲染错误","error")}),e.config.globalProperties.installed=s}getFile(e){const{blocks:n=[]}=this.project||{};return this.getPage(e)||n.find(i=>i.id===e)||null}getPage(e){const{pages:n=[]}=this.project||{},i=(s,o=[])=>{for(const u of o){if(u.id===s)return u;if(u.children&&u.children.length){const l=i(s,u.children);if(l)return l}}};return i(e,n)||null}getMenus(e="page",n=""){var i;return un(n,e,((i=this.project)==null?void 0:i.pages)||[])}getHomepage(){const{homepage:e}=this.project||{};return e?this.getPage(e):null}getDsl(e){return U(this,null,function*(){const{vtjDir:n=".vtj"}=this.options,i=this.modules[`${n}/files/${e}.json`]||this.modules[`/src/${n}/files/${e}.json`];return i?yield i():this.service.getFile(e,this.project||void 0).catch(()=>null)})}getDslByUrl(e){return U(this,null,function*(){return this.urlDslCaches[e]||(this.adapter.request?this.urlDslCaches[e]=this.adapter.request.send({url:e,method:"get",settings:{validSuccess:!1,originResponse:!0}}).then(i=>i.data).catch(()=>null):null)})}createDslRenderer(e,n={}){const{library:i,components:s,mode:o,apis:u}=this,l=H({mode:o,Vue:i.Vue,components:s,libs:i,apis:u,window},n),a=on({getDsl:c=>U(this,null,function*(){return(yield this.getDsl(c))||null}),getDslByUrl:c=>U(this,null,function*(){return(yield this.getDslByUrl(c))||null}),options:l});return sn(et(H({},l),{dsl:e,loader:a}))}getRenderComponent(e,n){return U(this,null,function*(){var o;const i=this.getFile(e);if(!i)return ie.warn(`Can not find file: ${e}`),null;if(n&&n(i),this.mode===X.Raw){const{vtjRawDir:u=".vtj/vue"}=this.options,l=`${u}/${e}.vue`,a=this.modules[l]||this.modules[`/src/pages/${e}.vue`];return a?(o=yield a())==null?void 0:o.default:this.nodeEnv==="development"&&this.adapter.startupComponent||null}const s=yield this.getDsl(i.id);return s?this.createDslRenderer(s).renderer:(ie.warn(`Can not find dsl: ${e}`),null)})}defineUrlSchemaComponent(e,n){return Dn(()=>U(this,null,function*(){const i=yield this.getDslByUrl(e);return i?(i.name=n||i.name,this.createDslRenderer(i).renderer):null}))}definePluginComponent(e){return Dn(()=>U(null,null,function*(){return yield na(e,window)}))}initGlobals(e,n){const i=Object.assign({adapter:this.adapter,window},n);c0(e,i)}initI18n(e,n,i){g0(e,n,i)}initEnv(e=[]){this.env=e.reduce((n,i)=>(n[i.name]=i[this.nodeEnv],n),{})}}function m0(r){const t=new v0(r);return{provider:t,onReady:e=>t.ready(e)}}function y0(r={}){const t=ya(oa,null);if(!t)throw new Error("Can not find provider");if(t.nodeEnv==="development"){const{id:e,version:n}=r;e&&n&&U(null,null,function*(){const i=yield t.getDsl(e);(i==null?void 0:i.__VERSION__)!==n&&t.adapter.notify&&t.adapter.notify(`[ ${i==null?void 0:i.name} ] 组件源码版本与运行时版本不一致,请重新发布组件`,"版本不一致","warning")})}return t}function b0(r,t=""){return U(this,null,function*(){const{name:e,urls:n=[]}=r||{},i=n.map(u=>t+u),{css:s,js:o}=_m(i);if(s.length&&Xo(s),o.length)return yield ta(o,e).catch(()=>{})})}const aa={type:"json",validSuccess:!0,originResponse:!1,failMessage:!0,validate:r=>{var t;return((t=r.data)==null?void 0:t.code)===0}},_0=(r,t="/__vtj__/api/:type.json")=>(e,n,i)=>r.send({url:t,method:"post",params:{type:e},query:i,data:{type:e,data:n},settings:aa}),w0=(r,t="/__vtj__/api/uploader.json")=>(e,n)=>U(null,null,function*(){return yield r.send({url:t,method:"post",data:{files:e,projectId:n},settings:et(H({},aa),{type:"data"})}).then(i=>i&&i[0]?i[0]:null).catch(()=>null)});function E0(r){return xn({settings:{type:"json",validSuccess:!0,originResponse:!1,failMessage:!0,validate:t=>{var e;return((e=t.data)==null?void 0:e.code)===0},showError:t=>{r&&r(t||"未知错误")}}})}class S0{constructor(t=tn){z(this,"api");z(this,"pluginCaches",{});z(this,"uploader");this.req=t,this.api=_0(t),this.uploader=w0(t)}getExtension(){return U(this,null,function*(){console.log("BaseService.getExtension")})}init(t){return U(this,null,function*(){return console.log("BaseService.init",t),{}})}saveProject(t,e){return U(this,null,function*(){return!!(yield this.api("saveProject",t,{type:e}).catch(()=>!1))})}saveMaterials(t,e){return U(this,null,function*(){return console.log("BaseService.saveMaterials",t,e),!1})}saveFile(t){return U(this,null,function*(){return console.log("BaseService.saveFile",t),!1})}getFile(t){return U(this,null,function*(){return console.log("BaseService.getFile",t),{}})}removeFile(t){return U(this,null,function*(){return console.log("BaseService.removeFile",t),!1})}saveHistory(t){return U(this,null,function*(){return console.log("BaseService.saveHistory",t),!1})}removeHistory(t){return U(this,null,function*(){return console.log("BaseService.removeHistory",t),!1})}getHistory(t){return U(this,null,function*(){return console.log("BaseService.getHistory",t),{}})}getHistoryItem(t,e){return U(this,null,function*(){return console.log("BaseService.getHistoryItem",t,e),{}})}saveHistoryItem(t,e){return U(this,null,function*(){return console.log("BaseService.saveHistoryItem",t,e),!1})}removeHistoryItem(t,e){return U(this,null,function*(){return console.log("BaseService.removeHistoryItem",t,e),!1})}publish(t){return U(this,null,function*(){return!!(yield this.api("publish",t).catch(()=>!1))})}publishFile(t,e){return U(this,null,function*(){return!!(yield this.api("publishFile",{project:t,file:e}).catch(()=>!1))})}genVueContent(t,e){return U(this,null,function*(){return yield this.api("genVueContent",{project:t,dsl:e}).catch(()=>"")})}parseVue(t,e){return U(this,null,function*(){return yield this.api("parseVue",H({project:t},e))})}createRawPage(t){return U(this,null,function*(){return yield this.api("createRawPage",t).catch(()=>"")})}removeRawPage(t){return U(this,null,function*(){return yield this.api("removeRawPage",t).catch(()=>"")})}uploadStaticFile(t,e){return U(this,null,function*(){return yield this.uploader(t,e).catch(()=>null)})}getStaticFiles(t){return U(this,null,function*(){return yield this.api("getStaticFiles",t).catch(()=>[])})}removeStaticFile(t,e){return U(this,null,function*(){return yield this.api("removeStaticFile",{name:t,projectId:e}).catch(()=>"")})}clearStaticFiles(t){return U(this,null,function*(){return yield this.api("clearStaticFiles",t).catch(()=>"")})}getPluginMaterial(t){return U(this,null,function*(){const{urls:e=[]}=t,n=e.filter(s=>vm(s))[0];return n?this.pluginCaches[n]||(this.pluginCaches[n]=tn.send({url:n,method:"get",settings:{validSuccess:!1,originResponse:!0}}).then(s=>s.data).catch(()=>null)):null})}genSource(t){return U(this,null,function*(){return console.log("BaseService.genSource",t),""})}}new Ko({type:"local",expired:0,prefix:"__VTJ_"});class T0 extends S0{constructor(){super(...arguments);z(this,"getFileCaches",{})}getExtension(){return U(this,null,function*(){return yield this.api("getExtension",{}).catch(()=>{})})}init(e){return U(this,null,function*(){return(yield this.api("init",e).catch(()=>null))||{}})}saveProject(e,n){return U(this,null,function*(){return!!(yield this.api("saveProject",e,{type:n}).catch(()=>!1))})}saveMaterials(e,n){return U(this,null,function*(){return!!(yield this.api("saveMaterials",{project:e,materials:zd(n)}).catch(()=>!1))})}saveFile(e){return U(this,null,function*(){return!!(yield this.api("saveFile",e).catch(()=>!1))})}getFile(e){return U(this,null,function*(){return this.getFileCaches[e]||(this.getFileCaches[e]=this.api("getFile",e).catch(()=>null)).finally(()=>{delete this.getFileCaches[e]})})}removeFile(e){return U(this,null,function*(){return!!(yield this.api("removeFile",e).catch(()=>!1))})}saveHistory(e){return U(this,null,function*(){return!!(yield this.api("saveHistory",e).catch(()=>!1))})}removeHistory(e){return U(this,null,function*(){return!!(yield this.api("removeHistory",e).catch(()=>!1))})}getHistory(e){return U(this,null,function*(){return(yield this.api("getHistory",e).catch(()=>null))||{}})}getHistoryItem(e,n){return U(this,null,function*(){return(yield this.api("getHistoryItem",{fId:e,id:n}).catch(()=>null))||{}})}saveHistoryItem(e,n){return U(this,null,function*(){return!!(yield this.api("saveHistoryItem",{fId:e,item:n}).catch(()=>!1))})}removeHistoryItem(e,n){return U(this,null,function*(){return!!(yield this.api("removeHistoryItem",{fId:e,ids:n}).catch(()=>!1))})}}/**!
|
|
68
|
+
}`:"(v) => {}"},i=e.__parseFunction(n),s=sa(vt(t.modifiers)?e.__parseExpression(t.modifiers):t.modifiers),o=vt(t.arg)?e.__parseExpression(t.arg):t.arg||"modelValue";return{[o]:e.__parseExpression(t.value),[`onUpdate:${o}`]:s.length&&i?r.withModifiers(i,s):i}}function ay(r,t,e,n,i){if(!t)return null;if(jt(t))return{default:()=>t};if(vt(t))return{default:()=>Qo(e.__parseExpression(t))};if(Array.isArray(t)&&t.length>0){const s=uy(t),o=(u,l)=>!u||!i?{}:i!=null&&i.id&&Object.keys(u).length?l?{[l]:u}:{[`scope_${i.id}`]:u}:l?{[l]:Object.create(null)}:{};return Object.entries(s).reduce((u,[l,{nodes:a,params:c,scope:f}])=>(u[l]=h=>{const p=c.length?Kd(h!=null?h:{},c):o(h,f);return a.map(d=>oe(d,e.__clone(p),r,n,a))},u),{})}return null}function uy(r){const t={};for(const e of r){const n=cy(e.slot),i=n.name;t[i]?(t[i].nodes.push(e),t[i].params=t[i].params.concat(n.params),t[i].scope=n.scope||""):t[i]={nodes:[e],params:n.params,scope:n.scope||""}}return t}function cy(r="default"){return jt(r)?{name:r,params:[],scope:""}:H({params:[],scope:""},r)}function ly(r,t,e){const{value:n,iterator:i}=r,{item:s="item",index:o="index"}=i||{};let u=e.__parseExpression(n)||[];return Number.isInteger(u)&&(u=new Array(u).fill(!0).map((l,a)=>a+1)),Array.isArray(u)?u.map((l,a)=>t(e.__clone({[s]:l,[o]:a}),a)):(console.warn("[vForRender]:",`${n==null?void 0:n.value} is not a Arrary`),[])}const Ir=is({name:"VtjPageContainer",setup(){return U(this,null,function*(){const r=wy(),t=ba(),e=t.meta.__vtj__||t.params.id,n=e?r.getPage(e):r.getHomepage(),i=n?yield r.getRenderComponent(n.id):null,s=ma(Symbol());if(n){Object.assign(t.meta,n.meta||{},{cache:n.cache});const{useTitle:o}=r==null?void 0:r.adapter;if(o){const u=t.meta.title||n.title||"VTJ.PRO";o(u)}}return{provider:r,component:i,file:n,query:t.query,meta:t.meta,sid:s,route:t}})},render(){const{component:r,query:t,sid:e}=this;return r?Fr(r,et(H({},t),{key:e})):Fr("div","页面不存在")},activated(){this.meta.cache===!1&&(this.sid=Symbol())}}),fy=is({name:"VtjStartupContainer",render(){return Fr("div","page not found!")}});function un(r,t,e=[]){const n=[];for(const i of e){const{id:s,title:o,icon:u,children:l,hidden:a,layout:c}=i;if(c){const f=un(r,t,l||[]);n.push(...f)}else{const f={id:s,title:o,icon:u,hidden:a,url:`${r}/${t}/${s}`,children:l&&l.length?un(r,t,l):void 0};n.push(f)}}return n}function Mr(r,t){const{id:e,title:n,meta:i}=r,{name:s="page",prefix:o="",component:u,routeMeta:l}=t;return{name:e,path:`${o}${s}/${e}`,component:u,meta:et(H(H({title:n},l),i),{__vtj__:e})}}function cn(r){const{name:t="page",prefix:e="",pages:n=[],component:i,loader:s,routeMeta:o,homepage:u}=r,l=[];for(const a of n){const{id:c,title:f,dir:h,layout:p,children:d,meta:g}=a;if(h){const y=cn({name:t,prefix:e,component:i,routeMeta:o,homepage:u,loader:s,pages:d||[]});l.push(...y)}else if(p){const y=cn({name:t,prefix:e,component:i,routeMeta:o,homepage:u,loader:s,pages:d||[]}),w={name:`layout_${c}`,path:e,component:()=>s(c),meta:et(H(H({title:f},o),g),{__vtj__:c}),children:y};l.push(w),l.push(Mr(a,r))}else if(l.push(Mr(a,r)),u===c){const y=Mr(a,r);y.path="",y.name=`home_${c}`,l.push(y)}}return l}function hy(r={},t){const{css:e,store:n,enhance:i}=r,{window:s,app:o,library:u={},adapter:l,mode:a}=t,{Pinia:c}=u;o.config.globalProperties.$libs=u,fr(s,"global-css",e||""),c&&n&&py(n,o,c),gy(o,l,r),!l.access&&r.access&&dy(r.access,o,a,l),vy(o,r),i&&my(i,o,u)}function py(r,t,e){const n=e.createPinia();if(t.use(n),dt(r)&&r.value){const i=pt(r,{},!1,!1,!0),s=e.defineStore("$store",i(t)||{});t.config.globalProperties.$store=s()}}function dy(r,t,e,n){if(dt(r)&&r.value){const i=pt(r,{},!1,!1,!0),{alert:s,request:o}=n,u=new ea(H({alert:s,storagePrefix:"__VTJ_APP_"},i(t))),l=t.config.globalProperties.$router;u.connect({mode:e,router:l,request:o}),t.use(u)}}function gy(r,t,e){if(!t.request)return;const{axios:n,request:i,response:s}=e;if(n&&dt(n)&&n.value){const o=pt(n,{},!1,!1,!0);t.request.setConfig(o(r))}if(i&&dt(i)&&i.value){const o=pt(i,{},!1,!1,!0),u=t.request;u.__unReq&&u.__unReq(),u.__unReq=t.request.useRequest(l=>o(l,r))}if(s&&dt(s)&&s.value){const o=pt(s,{},!1,!1,!0),u=t.request;u.__unRes&&u.__unRes(),u.__unRes=t.request.useResponse(l=>o(l,r))}}function vy(r,t){const{beforeEach:e,afterEach:n}=t,i=r.config.globalProperties.$router;if(e&&dt(e)&&e.value){const s=pt(e,{},!1,!1,!0);i&&i.beforeEach((o,u,l)=>s(o,u,l,r))}if(n&&dt(n)&&n.value){const s=pt(n,{},!1,!1,!0);i&&i.afterEach((o,u,l)=>s(o,u,l,r))}}function my(r,t,e={}){dt(r)&&r.value&&pt(r,{},!1,!1,!0)(t,e)}function yy(r,t,e){if(!r||!t||!e)return;const{VueI18n:n}=t;if(n){const{locale:i,fallbackLocale:s,messages:o=[]}=e,u={};for(let a of o){const c=Object.keys(a).filter(f=>f!=="key");for(const f of c)u[f]||(u[f]={}),u[f][a.key]=a[f]}const l=n.createI18n({legacy:!1,locale:i,fallbackLocale:s,messages:u});r.use(l)}}const oa=Symbol("Provider");class by extends cg{constructor(e){super();z(this,"mode");z(this,"globals",{});z(this,"modules",{});z(this,"adapter",{request:tn,jsonp:Zo});z(this,"apis",{});z(this,"dependencies",{});z(this,"materials",{});z(this,"library",{});z(this,"libraryLocales",{});z(this,"libraryLocaleMap",{});z(this,"service");z(this,"project",null);z(this,"components",{});z(this,"nodeEnv","development");z(this,"env",{});z(this,"router",null);z(this,"materialPath","./");z(this,"urlDslCaches",{});this.options=e;const{service:n,mode:i=X.Raw,dependencies:s,materials:o,project:u={},adapter:l={},globals:a={},modules:c={},router:f=null,materialPath:h="./",nodeEnv:p="development"}=e;this.mode=i,this.modules=c,this.service=n,this.router=f,this.materialPath=h,this.nodeEnv=p,s&&(this.dependencies=s),o&&(this.materials=o),Object.assign(this.globals,a),Object.assign(this.adapter,l);const{access:d,request:g}=this.adapter;d&&d.connect({mode:i,router:f,request:g}),u&&i!==X.Design?this.load(u):this.project=u}createMock(e){return(...n)=>U(null,null,function*(){var s;let i={};if(e)try{i=yield e.apply(e,n)}catch(o){ie.warn("模拟数据模版异常",o)}return(s=Ee())==null?void 0:s.mock(i)})}load(e){return U(this,null,function*(){const{vtjDir:n=".vtj"}=this.options,i=this.modules[`${n}/projects/${e.id}.json`]||this.modules[`/src/${n}/projects/${e.id}.json`];if(this.project=i?yield i():yield this.service.init(e),!this.project)throw new Error("project is null");const{apis:s=[],meta:o=[],env:u=[]}=this.project,l=window;l&&(l.CKEDITOR_VERSION=void 0),this.initEnv(u),this.mode===X.Raw?yield this.loadDependencies(l):yield this.loadAssets(l),this.initMock(l),this.apis=Pm(s,o,this.adapter),ra(l),Nm(s,l),e.platform!=="uniapp"&&this.initRouter(),this.triggerReady()})}initMock(e){const n=Ee(e);n&&n.setup({timeout:"50-500"})}loadDependencies(){return U(this,arguments,function*(e={}){const n=Object.entries(this.dependencies);for(const[i,s]of n)e[i]||(e[i]=this.library[i]=yield s())})}loadAssets(){return U(this,arguments,function*(e={}){const{dependencies:n=[]}=this.project,{dependencies:i,library:s,components:o,materialPath:u,nodeEnv:l,libraryLocales:a}=this,{libraryExports:c,libraryMap:f,materials:h,materialExports:p,materialMapLibrary:d,libraryLocaleMap:g}=ym(n,u,l==="development");Object.assign(this.libraryLocaleMap,g);for(const y of c){const w=i[y],m=e[y];if(m)s[y]=m;else if(w)e[y]=s[y]=yield w();else{const _=f[y]||[];for(const S of _)cr(S)&&(yield Rm(S,We.append(S,{v:jr}))),lr(S)&&(yield Xi(We.append(S,{v:jr})));s[y]=e[y]}const b=g[y];if(b){const _=i[b];a[b]=_?yield _():e[b]}}if(l==="development"){for(const w of h)yield Xi(We.append(w,{v:jr}));const y=this.materials||{};for(const w of p){const m=e[d[w]],b=(m==null?void 0:m.default)||m,_=ug[w];if(_)b&&_.forEach(S=>{o[S]=b[S]});else{const S=y[w]?(yield y[w]()).default:e[w];S&&b&&(S.components||[]).forEach(v=>{o[v.name]=bm(v,b)})}}}})}initRouter(){const{router:e,project:n,options:i,adapter:s}=this;if(!e)return;const o=(n==null?void 0:n.platform)==="uniapp"?"pages":"page",{routeAppendTo:u,pageRouteName:l=o,routeMeta:a}=i,c=u?"":"/",f={path:`${c}${l}/:id`,name:Ke,component:Ir},h={path:c,name:Pr,component:n!=null&&n.homepage?Ir:s.startupComponent||fy,meta:a};if(e.hasRoute(Ke)&&e.removeRoute(Ke),e.hasRoute(Pr)&&e.removeRoute(Pr),i.enableStaticRoute){const p=(n==null?void 0:n.pages)||[];cn({name:l,prefix:c,pages:p,component:Ir,loader:this.getRenderComponent.bind(this),homepage:n==null?void 0:n.homepage}).forEach(d=>{u?e.addRoute(u,d):e.addRoute(d)}),n!=null&&n.homepage||(u?e.addRoute(u,h):e.addRoute(h))}else u?(e.addRoute(u,f),e.addRoute(u,h)):(e.addRoute(f),e.addRoute(h))}install(e){var u,l,a,c;const{libraryLocaleMap:n,libraryLocales:i}=this,{libraryOptions:s={}}=this.options,o=e.config.globalProperties.installed||{};for(const[f,h]of Object.entries(this.library))if(!o[f]&&xm(h)){const p={locale:i[n[f]]},d=s[f]||{},g=H(H({},p),d);e.use(h,g),o[f]=!0}e.provide(oa,this),e.config.globalProperties.$provider=this,e.config.globalProperties.$request=(u=this.adapter)==null?void 0:u.request,this.options.install&&e.use(this.options.install),this.adapter.access&&e.use(this.adapter.access),((l=this.project)==null?void 0:l.platform)!=="uniapp"&&this.mode!==X.Design&&this.initGlobals(((a=this.project)==null?void 0:a.globals)||{},{app:e,window,adapter:this.adapter,library:this.library,mode:this.mode}),this.mode!==X.Design&&((c=this.project)!=null&&c.i18n)&&this.initI18n(e,this.library,this.project.i18n),this.options.enhance&&e.use(this.options.enhance,this),this.mode===X.Design&&(e.config.errorHandler=(f,h,p)=>{const d=h==null?void 0:h.$options.name,g=typeof f=="string"?f:(f==null?void 0:f.message)||(f==null?void 0:f.msg)||"未知错误",y=`[ ${d} ] ${g} ${p}`;console.error("[VTJ Error]:",{err:f,instance:h,info:p},f==null?void 0:f.stack),this.adapter.notify&&this.adapter.notify(y,"组件渲染错误","error")}),e.config.globalProperties.installed=o}getFile(e){const{blocks:n=[]}=this.project||{};return this.getPage(e)||n.find(i=>i.id===e)||null}getPage(e){const{pages:n=[]}=this.project||{},i=(s,o=[])=>{for(const u of o){if(u.id===s)return u;if(u.children&&u.children.length){const l=i(s,u.children);if(l)return l}}};return i(e,n)||null}getMenus(e="page",n=""){var i;return un(n,e,((i=this.project)==null?void 0:i.pages)||[])}getHomepage(){const{homepage:e}=this.project||{};return e?this.getPage(e):null}getDsl(e){return U(this,null,function*(){const{vtjDir:n=".vtj"}=this.options,i=this.modules[`${n}/files/${e}.json`]||this.modules[`/src/${n}/files/${e}.json`];return i?yield i():this.service.getFile(e,this.project||void 0).catch(()=>null)})}getDslByUrl(e){return U(this,null,function*(){return this.urlDslCaches[e]||(this.adapter.request?this.urlDslCaches[e]=this.adapter.request.send({url:e,method:"get",settings:{validSuccess:!1,originResponse:!0}}).then(i=>i.data).catch(()=>null):null)})}createDslRenderer(e,n={}){const{library:i,components:s,mode:o,apis:u}=this,l=H({mode:o,Vue:i.Vue,components:s,libs:i,apis:u,window},n),a=on({getDsl:c=>U(this,null,function*(){return(yield this.getDsl(c))||null}),getDslByUrl:c=>U(this,null,function*(){return(yield this.getDslByUrl(c))||null}),options:l});return sn(et(H({},l),{dsl:e,loader:a}))}getRenderComponent(e,n){return U(this,null,function*(){var o;const i=this.getFile(e);if(!i)return ie.warn(`Can not find file: ${e}`),null;if(n&&n(i),this.mode===X.Raw){const{vtjRawDir:u=".vtj/vue"}=this.options,l=`${u}/${e}.vue`,a=this.modules[l]||this.modules[`/src/pages/${e}.vue`];return a?(o=yield a())==null?void 0:o.default:this.nodeEnv==="development"&&this.adapter.startupComponent||null}const s=yield this.getDsl(i.id);return s?this.createDslRenderer(s).renderer:(ie.warn(`Can not find dsl: ${e}`),null)})}defineUrlSchemaComponent(e,n){return Dn(()=>U(this,null,function*(){const i=yield this.getDslByUrl(e);return i?(i.name=n||i.name,this.createDslRenderer(i).renderer):null}))}definePluginComponent(e){return Dn(()=>U(null,null,function*(){return yield na(e,window)}))}initGlobals(e,n){const i=Object.assign({adapter:this.adapter,window},n);hy(e,i)}initI18n(e,n,i){yy(e,n,i)}initEnv(e=[]){this.env=e.reduce((n,i)=>(n[i.name]=i[this.nodeEnv],n),{})}}function _y(r){const t=new by(r);return{provider:t,onReady:e=>t.ready(e)}}function wy(r={}){const t=ya(oa,null);if(!t)throw new Error("Can not find provider");if(t.nodeEnv==="development"){const{id:e,version:n}=r;e&&n&&U(null,null,function*(){const i=yield t.getDsl(e);(i==null?void 0:i.__VERSION__)!==n&&t.adapter.notify&&t.adapter.notify(`[ ${i==null?void 0:i.name} ] 组件源码版本与运行时版本不一致,请重新发布组件`,"版本不一致","warning")})}return t}function Ey(r,t=""){return U(this,null,function*(){const{name:e,urls:n=[]}=r||{},i=n.map(u=>t+u),{css:s,js:o}=_m(i);if(s.length&&Xo(s),o.length)return yield ta(o,e).catch(()=>{})})}const aa={type:"json",validSuccess:!0,originResponse:!1,failMessage:!0,validate:r=>{var t;return((t=r.data)==null?void 0:t.code)===0}},Sy=(r,t="/__vtj__/api/:type.json")=>(e,n,i)=>r.send({url:t,method:"post",params:{type:e},query:i,data:{type:e,data:n},settings:aa}),Ty=(r,t="/__vtj__/api/uploader.json")=>(e,n)=>U(null,null,function*(){return yield r.send({url:t,method:"post",data:{files:e,projectId:n},settings:et(H({},aa),{type:"data"})}).then(i=>i&&i[0]?i[0]:null).catch(()=>null)});function Ry(r){return xn({settings:{type:"json",validSuccess:!0,originResponse:!1,failMessage:!0,validate:t=>{var e;return((e=t.data)==null?void 0:e.code)===0},showError:t=>{r&&r(t||"未知错误")}}})}class xy{constructor(t=tn){z(this,"api");z(this,"pluginCaches",{});z(this,"uploader");this.req=t,this.api=Sy(t),this.uploader=Ty(t)}getExtension(){return U(this,null,function*(){console.log("BaseService.getExtension")})}init(t){return U(this,null,function*(){return console.log("BaseService.init",t),{}})}saveProject(t,e){return U(this,null,function*(){return!!(yield this.api("saveProject",t,{type:e}).catch(()=>!1))})}saveMaterials(t,e){return U(this,null,function*(){return console.log("BaseService.saveMaterials",t,e),!1})}saveFile(t){return U(this,null,function*(){return console.log("BaseService.saveFile",t),!1})}getFile(t){return U(this,null,function*(){return console.log("BaseService.getFile",t),{}})}removeFile(t){return U(this,null,function*(){return console.log("BaseService.removeFile",t),!1})}saveHistory(t){return U(this,null,function*(){return console.log("BaseService.saveHistory",t),!1})}removeHistory(t){return U(this,null,function*(){return console.log("BaseService.removeHistory",t),!1})}getHistory(t){return U(this,null,function*(){return console.log("BaseService.getHistory",t),{}})}getHistoryItem(t,e){return U(this,null,function*(){return console.log("BaseService.getHistoryItem",t,e),{}})}saveHistoryItem(t,e){return U(this,null,function*(){return console.log("BaseService.saveHistoryItem",t,e),!1})}removeHistoryItem(t,e){return U(this,null,function*(){return console.log("BaseService.removeHistoryItem",t,e),!1})}publish(t){return U(this,null,function*(){return!!(yield this.api("publish",t).catch(()=>!1))})}publishFile(t,e){return U(this,null,function*(){return!!(yield this.api("publishFile",{project:t,file:e}).catch(()=>!1))})}genVueContent(t,e){return U(this,null,function*(){return yield this.api("genVueContent",{project:t,dsl:e}).catch(()=>"")})}parseVue(t,e){return U(this,null,function*(){return yield this.api("parseVue",H({project:t},e))})}createRawPage(t){return U(this,null,function*(){return yield this.api("createRawPage",t).catch(()=>"")})}removeRawPage(t){return U(this,null,function*(){return yield this.api("removeRawPage",t).catch(()=>"")})}uploadStaticFile(t,e){return U(this,null,function*(){return yield this.uploader(t,e).catch(()=>null)})}getStaticFiles(t){return U(this,null,function*(){return yield this.api("getStaticFiles",t).catch(()=>[])})}removeStaticFile(t,e){return U(this,null,function*(){return yield this.api("removeStaticFile",{name:t,projectId:e}).catch(()=>"")})}clearStaticFiles(t){return U(this,null,function*(){return yield this.api("clearStaticFiles",t).catch(()=>"")})}getPluginMaterial(t){return U(this,null,function*(){const{urls:e=[]}=t,n=e.filter(s=>vm(s))[0];return n?this.pluginCaches[n]||(this.pluginCaches[n]=tn.send({url:n,method:"get",settings:{validSuccess:!1,originResponse:!0}}).then(s=>s.data).catch(()=>null)):null})}genSource(t){return U(this,null,function*(){return console.log("BaseService.genSource",t),""})}}new Ko({type:"local",expired:0,prefix:"__VTJ_"});class Ay extends xy{constructor(){super(...arguments);z(this,"getFileCaches",{})}getExtension(){return U(this,null,function*(){return yield this.api("getExtension",{}).catch(()=>{})})}init(e){return U(this,null,function*(){return(yield this.api("init",e).catch(()=>null))||{}})}saveProject(e,n){return U(this,null,function*(){return!!(yield this.api("saveProject",e,{type:n}).catch(()=>!1))})}saveMaterials(e,n){return U(this,null,function*(){return!!(yield this.api("saveMaterials",{project:e,materials:zd(n)}).catch(()=>!1))})}saveFile(e){return U(this,null,function*(){return!!(yield this.api("saveFile",e).catch(()=>!1))})}getFile(e){return U(this,null,function*(){return this.getFileCaches[e]||(this.getFileCaches[e]=this.api("getFile",e).catch(()=>null)).finally(()=>{delete this.getFileCaches[e]})})}removeFile(e){return U(this,null,function*(){return!!(yield this.api("removeFile",e).catch(()=>!1))})}saveHistory(e){return U(this,null,function*(){return!!(yield this.api("saveHistory",e).catch(()=>!1))})}removeHistory(e){return U(this,null,function*(){return!!(yield this.api("removeHistory",e).catch(()=>!1))})}getHistory(e){return U(this,null,function*(){return(yield this.api("getHistory",e).catch(()=>null))||{}})}getHistoryItem(e,n){return U(this,null,function*(){return(yield this.api("getHistoryItem",{fId:e,id:n}).catch(()=>null))||{}})}saveHistoryItem(e,n){return U(this,null,function*(){return!!(yield this.api("saveHistoryItem",{fId:e,item:n}).catch(()=>!1))})}removeHistoryItem(e,n){return U(this,null,function*(){return!!(yield this.api("removeHistoryItem",{fId:e,ids:n}).catch(()=>!1))})}}/**!
|
|
69
69
|
* Copyright (c) 2025, VTJ.PRO All rights reserved.
|
|
70
70
|
* @name @vtj/uni
|
|
71
71
|
* @author CHC chenhuachun1549@dingtalk.com
|
|
72
|
-
* @version 0.13.
|
|
72
|
+
* @version 0.13.39
|
|
73
73
|
* @license <a href="https://vtj.pro/license.html">MIT License</a>
|
|
74
|
-
*/const R0=["onLaunch","onShow","onHide","onError","onPageNotFound","onUnhandledRejection","onThemeChange","onPageNotFound","onUniNViewMessage","onExit"],rs="/pages",x0="VTJ",A0="__UNI__1FC118B",O0="VTJ移动跨端项目",$0="1.0.0",D0="100",C0=!1,B0={},j0={enable:!1},P0="3",N0={name:x0,appid:A0,description:O0,versionName:$0,versionCode:D0,transformPx:C0,"app-plus":{usingComponents:!0,nvueStyleCompiler:"uni-app",compilerVersion:3,splashscreen:{alwaysShowBeforeRender:!0,waiting:!0,autoclose:!0,delay:0},modules:{},distribute:{android:{permissions:['<uses-permission android:name="android.permission.CHANGE_NETWORK_STATE"/>','<uses-permission android:name="android.permission.MOUNT_UNMOUNT_FILESYSTEMS"/>','<uses-permission android:name="android.permission.VIBRATE"/>','<uses-permission android:name="android.permission.READ_LOGS"/>','<uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/>','<uses-feature android:name="android.hardware.camera.autofocus"/>','<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>','<uses-permission android:name="android.permission.CAMERA"/>','<uses-permission android:name="android.permission.GET_ACCOUNTS"/>','<uses-permission android:name="android.permission.READ_PHONE_STATE"/>','<uses-permission android:name="android.permission.CHANGE_WIFI_STATE"/>','<uses-permission android:name="android.permission.WAKE_LOCK"/>','<uses-permission android:name="android.permission.FLASHLIGHT"/>','<uses-feature android:name="android.hardware.camera"/>','<uses-permission android:name="android.permission.WRITE_SETTINGS"/>']},ios:{},sdkConfigs:{},icons:{android:{hdpi:"src/static/logo.png",xhdpi:"src/static/logo.png",xxhdpi:"src/static/logo.png",xxxhdpi:"src/static/logo.png"}}}},quickapp:B0,"mp-weixin":{appid:"",setting:{urlCheck:!1},usingComponents:!0},"mp-alipay":{usingComponents:!0},"mp-baidu":{usingComponents:!0},"mp-toutiao":{usingComponents:!0},uniStatistics:j0,vueVersion:P0},I0=[],M0={navigationBarTextStyle:"black",navigationBarTitleText:"uni-app",navigationBarBackgroundColor:"#F8F8F8",backgroundColor:"#F8F8F8"},F0={autoscan:!0,custom:{"^uni-(.*)":"@dcloudio/uni-ui/lib/uni-$1/uni-$1.vue"}},U0={pages:I0,globalStyle:M0,easycom:F0};function L0(r){let{manifestJson:t={},pagesJson:e={},routes:n=[]}=r;const i=n.map(s=>{const{path:o,style:u,needLogin:l}=s;return{path:o,style:u,needLogin:l}});return et(H({},r),{manifestJson:Object.assign({},N0,t),pagesJson:Object.assign({},U0,e,{pages:i})})}const ln={navigationBarBackgroundColor:"backgroundColor",navigationBarTextStyle:"titleColor",navigationBarTitleText:"titleText",navigationStyle:"style",titleImage:"titleImage",titlePenetrate:"titlePenetrate",transparentTitle:"transparentTitle"};function ua(r){const t={},e={black:"#000000",white:"#ffffff"};for(const n in r)ln[n]&&(t[ln[n]]=n==="navigationBarTextStyle"?e[r[n]]||e.black:r[n]);return t}function k0(r){const t={};for(const e in r)ln[e]||(t[e]=r[e]);return t}function H0(r){var t,e;return((e=(t=r.h5)==null?void 0:t.router)==null?void 0:e.mode)||"hash"}function V0(r){var t,e,n;return{topWindow:!!((t=r.topWindow)!=null&&t.path),leftWindow:!!((e=r.leftWindow)!=null&&e.path),rightWindow:!!((n=r.rightWindow)!=null&&n.path)}}function q0(r){const{pagesJson:t={}}=r,{globalStyle:e,pages:n=[]}=t;return!!(e!=null&&e.enablePullDownRefresh||n.find(i=>{var s;return!!((s=i.style)!=null&&s.enablePullDownRefresh)}))}function z0(r){const{pagesJson:t={}}=r,{globalStyle:e,pages:n=[]}=t;let i=!1;return(e==null?void 0:e.navigationStyle)==="custom"?(i=!0,n.find(s=>{var o;return((o=s.style)==null?void 0:o.navigationStyle)==="default"})&&(i=!1)):n.every(s=>{var o;return((o=s.style)==null?void 0:o.navigationStyle)==="custom"})&&(i=!0),i}function W0(r){var u;const t=z0(r),e={navigationBar:!1,navigationBarButtons:!1,navigationBarSearchInput:!1,navigationBarTransparent:!1},{pagesJson:n={}}=r,{globalStyle:i,pages:s=[]}=n;if(t)return e;e.navigationBar=!0;const o=(u=i==null?void 0:i.h5)==null?void 0:u.titleNView;return s.find(l=>{var a,c,f;return!!((f=(c=(a=l.style)==null?void 0:a.h5)==null?void 0:c.titleNView)!=null&&f.buttons.length)})&&(e.navigationBarButtons=!0),(o!=null&&o.searchInput||s.find(l=>{var a,c,f;return!!((f=(c=(a=l.style)==null?void 0:a.h5)==null?void 0:c.titleNView)!=null&&f.searchInput)}))&&(e.navigationBarSearchInput=!0),((o==null?void 0:o.type)==="transparent"||s.find(l=>{var a,c,f;return((f=(c=(a=l.style)==null?void 0:a.h5)==null?void 0:c.titleNView)==null?void 0:f.type)==="transparent"}))&&(e.navigationBarTransparent=!0),e}function K0(r,t=window){var h,p,d,g;const{pagesJson:e={},manifestJson:n={}}=r,{topWindow:i,leftWindow:s,rightWindow:o}=V0(e),{navigationBar:u,navigationBarButtons:l,navigationBarSearchInput:a,navigationBarTransparent:c}=W0(r),f={__VUE_OPTIONS_API__:!0,__VUE_PROD_DEVTOOLS__:!1,__VUE_PROD_HYDRATION_MISMATCH_DETAILS__:!1,__UNI_FEATURE_WX__:!1,__UNI_FEATURE_WXS__:!1,__UNI_FEATURE_RPX__:!1,__UNI_FEATURE_PROMISE__:!1,__UNI_FEATURE_LONGPRESS__:!1,__UNI_FEATURE_I18N_EN__:!1,__UNI_FEATURE_I18N_ES__:!1,__UNI_FEATURE_I18N_FR__:!1,__UNI_FEATURE_I18N_ZH_HANS__:!0,__UNI_FEATURE_I18N_ZH_HANT__:!1,__UNI_FEATURE_UNI_CLOUD__:!1,__UNI_FEATURE_I18N_LOCALE__:!1,__UNI_FEATURE_NVUE__:!1,__UNI_FEATURE_ROUTER_MODE__:H0(n),__UNI_FEATURE_PAGES__:!!((h=e.pages)!=null&&h.length),__UNI_FEATURE_TABBAR__:!!((d=(p=e.tabBar)==null?void 0:p.list)!=null&&d.length),__UNI_FEATURE_TABBAR_MIDBUTTON__:!!((g=e.tabBar)!=null&&g.midButton),__UNI_FEATURE_TOPWINDOW__:i,__UNI_FEATURE_LEFTWINDOW__:s,__UNI_FEATURE_RIGHTWINDOW__:o,__UNI_FEATURE_RESPONSIVE__:!1,__UNI_FEATURE_NAVIGATIONBAR__:u,__UNI_FEATURE_PULL_DOWN_REFRESH__:q0(r),__UNI_FEATURE_NAVIGATIONBAR_BUTTONS__:l,__UNI_FEATURE_NAVIGATIONBAR_SEARCHINPUT__:a,__UNI_FEATURE_NAVIGATIONBAR_TRANSPARENT__:c};Object.entries(f).forEach(([b,w])=>{t[b]=w})}const J0="4.76";function G0(r,t=window){var f,h;const{pagesJson:e={},manifestJson:n={}}=r,{easycom:i={}}=e,{appid:s="",name:o="",versionCode:u="",versionName:l=""}=n,a=e.globalStyle,c=((f=n.h5)==null?void 0:f.router)||{};t.__uniConfig={easycom:i,globalStyle:et(H({},k0(a)),{navigationBar:ua(a),isNVue:!1}),compilerVersion:J0,appId:s,appName:o,appVersion:l,appVersionCode:String(u),async:H({loading:"AsyncLoading",error:"AsyncError",delay:200,timeout:6e4,suspensible:!0},((h=n.h5)==null?void 0:h.async)||{}),debug:!1,networkTimeout:H({request:6e4,connectSocket:6e4,uploadFile:6e4,downloadFile:6e4},n.networkTimeout||{}),sdkConfigs:{},nvue:{"flex-direction":"column"},locale:"",fallbackLocale:"",locales:{},router:H({mode:"hash",base:"/",assets:"assets",routerBase:c.base||"/"},c),darkmode:!1,themeConfig:{},tabBar:e.tabBar?H({position:"bottom",color:"#7A7E83",selectedColor:"#3cc51f",borderStyle:"black",blurEffect:"none",fontSize:"10px",iconWidth:"24px",spacing:"3px",height:"50px",backgroundColor:"#ffffff",selectedIndex:0,shown:!0},e.tabBar):void 0}}function Y0(r,t=window){const{UniServiceJSBridge:e,UniViewJSBridge:n,getApp:i,uni:s,getCurrentPages:o,upx2px:u,setupPage:l}=r;t.UniServiceJSBridge=e,t.UniViewJSBridge=n,t.getApp=i,t.uni=s,t.wx=s,t.getCurrentPages=o,t.upx2px=u,t.__setupPage=a=>l(a)}function Z0(r,t,e){const{openBlock:n,createBlock:i,withCtx:s,createVNode:o}=r,{PageComponent:u,setupPage:l,getApp:a}=t;return{mpType:"page",setup(){return U(this,null,function*(){var g,b;const f=((b=(g=a())==null?void 0:g.$route)==null?void 0:b.query)||{},{loader:h,component:p}=e,d=h?yield h(e):p||{};return()=>(n(),i(u,null,{page:s(()=>[o(l(d),Object.assign({},f,{ref:"page"}),null,512)]),_:1}))})}}}function Q0(r,t,e){var p;const{path:n,style:i={},meta:s={},home:o,id:u}=t,l=((p=r.tabBar)==null?void 0:p.list)||[],a=l.findIndex(d=>{var g;return d.pagePath===n||((g=d.pagePath)==null?void 0:g.endsWith(u))}),c=l[a],f=!!c,h=e===0;return H({isTabBar:f,tabBarIndex:a,isQuit:o!=null?o:h,isEntry:o!=null?o:h,navigationBar:H({type:"default"},ua(i)),isNVue:!1,route:c?c.pagePath:n},s)}function X0(r,t,e,n,i=window){const s=e.map((o,u)=>{const l=Q0(n,o,u),a=Z0(r,t,o),{path:c}=o;return{path:c,alias:c,meta:l,component:{render(){return r.h(r.Suspense,[r.h(a)])}}}});i.__uniRoutes=s,i.__uniLayout={}}function t1(r,t,e=window){fr(e,String(r),t)}function e1(r,t){t&&["View","ScrollView","Swiper","MovableArea","MovableView","CoverView","CoverImage","Icon","Text","RichText","Progress","Button","CheckboxGroup","Checkbox","Editor","Form","Input","Label","Picker","PickerView","RadioGroup","Radio","Slider","Switch","Textarea","Navigator","Image","Video","Map","Canvas","WebView","PickerViewColumn","ResizeSensor","SwiperItem"].forEach(e=>{const n=t[e];r.component(e,n)})}function r1(r){const t=L0(r),{Vue:e,App:n,UniH5:i,routes:s=[],pagesJson:o={},manifestJson:u={},window:l,css:a=""}=t;if(!i)return e.createApp(n);const{plugin:c,setupApp:f}=i;K0(t,l),G0(t,l),Y0(i,l),X0(e,i,s,o,l),t1(u.appid||Date.now(),a,l);const h=e.createApp(f(n));return h.use(e1,i),h.use(c),h}function n1(r,t){const e={};return Object.entries(r).forEach(([n,i])=>{R0.includes(n)&&i&&(e[n]=t(i))}),e}function ns(r,t){return()=>U(null,null,function*(){const e=yield r.getDsl(t);if(e){const{renderer:n}=r.createDslRenderer(e);return n}return null})}function i1(n){return U(this,arguments,function*(r,t=!1,e=rs){var u,l,a;const i=((u=r.project)==null?void 0:u.pages)||[],s=[];for(const c of i){const f=((l=r.project)==null?void 0:l.homepage)===c.id;s.push({id:c.id,path:`${e}/${c.id}`,loader:ns(r,c.id),style:H({navigationBarTitleText:c.title},c.style),needLogin:c.needLogin,home:f})}const o=s.find(c=>!!c.home)||s[0];if(o){const c=e===rs?"/":e;s.unshift(et(H({},o),{path:c}))}if(t){const c=((a=r.project)==null?void 0:a.blocks)||[];for(const f of c)s.push({id:f.id,path:`${e}/${f.id}`,loader:ns(r,f.id),style:{navigationStyle:"custom"}})}return s})}function s1(){var r;return(r=window.uni)!=null&&r.showLoading&&window.uni.showLoading({title:"加载中...",mask:!0}),{close:()=>{var t;(t=window.uni)!=null&&t.hideLoading&&window.uni.hideLoading()}}}function ca(r,t="",e="warning"){return U(this,null,function*(){var n;return(n=window.uni)!=null&&n.showModal?window.uni.showModal({title:t,content:r,showCancel:!1}):Promise.reject(new Error("window.uni.showModal is undefined"))})}function o1(r=X.Runtime){let t={};r===X.Runtime?t=Object.assign({}):t=Object.assign({});let e={};for(const[n,i]of Object.entries(t))e[n]=()=>Promise.resolve(i);return e}const a1=Om({loading:s1,notify:ca}),la=new T0(E0(ca)),u1=o1(),{provider:c1,onReady:l1}=m0({nodeEnv:"production",mode:X.Runtime,modules:u1,materialPath:"../",adapter:a1,service:la,dependencies:{Vue:()=>Bn(()=>import("./@dcloudio-uni-h5-vue-8GkSpuEV.js").then(r=>r.z),__vite__mapDeps([0,1,2]),import.meta.url),VueRouter:()=>Bn(()=>import("./vue-router-eQVOEjEf.js"),__vite__mapDeps([3,0,1,2]),import.meta.url)}}),f1=r=>U(null,null,function*(){const t=(yield la.getExtension().catch(()=>null))||{},e=top||window,n=yield b0(t.enhance,e.location.pathname),{Vue:i,UniH5:s}=window,o=r.project;if(!o)return;const u=o.uniConfig||{},l=n1(u,d=>pt(d,window,!1,!0)),{manifestJson:a,pagesJson:c,css:f}=u,h=yield i1(r,!0),p=r1({Vue:i,App:l,UniH5:s,routes:h,css:f,manifestJson:a,pagesJson:c});p.use(r),n&&p.use(n,r),p.mount(document.body)});l1(()=>f1(c1));
|
|
74
|
+
*/const Oy=["onLaunch","onShow","onHide","onError","onPageNotFound","onUnhandledRejection","onThemeChange","onPageNotFound","onUniNViewMessage","onExit"],rs="/pages",$y="VTJ",Dy="__UNI__1FC118B",Cy="VTJ移动跨端项目",By="1.0.0",jy="100",Py=!1,Ny={},Iy={enable:!1},My="3",Fy={name:$y,appid:Dy,description:Cy,versionName:By,versionCode:jy,transformPx:Py,"app-plus":{usingComponents:!0,nvueStyleCompiler:"uni-app",compilerVersion:3,splashscreen:{alwaysShowBeforeRender:!0,waiting:!0,autoclose:!0,delay:0},modules:{},distribute:{android:{permissions:['<uses-permission android:name="android.permission.CHANGE_NETWORK_STATE"/>','<uses-permission android:name="android.permission.MOUNT_UNMOUNT_FILESYSTEMS"/>','<uses-permission android:name="android.permission.VIBRATE"/>','<uses-permission android:name="android.permission.READ_LOGS"/>','<uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/>','<uses-feature android:name="android.hardware.camera.autofocus"/>','<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>','<uses-permission android:name="android.permission.CAMERA"/>','<uses-permission android:name="android.permission.GET_ACCOUNTS"/>','<uses-permission android:name="android.permission.READ_PHONE_STATE"/>','<uses-permission android:name="android.permission.CHANGE_WIFI_STATE"/>','<uses-permission android:name="android.permission.WAKE_LOCK"/>','<uses-permission android:name="android.permission.FLASHLIGHT"/>','<uses-feature android:name="android.hardware.camera"/>','<uses-permission android:name="android.permission.WRITE_SETTINGS"/>']},ios:{},sdkConfigs:{},icons:{android:{hdpi:"src/static/logo.png",xhdpi:"src/static/logo.png",xxhdpi:"src/static/logo.png",xxxhdpi:"src/static/logo.png"}}}},quickapp:Ny,"mp-weixin":{appid:"",setting:{urlCheck:!1},usingComponents:!0},"mp-alipay":{usingComponents:!0},"mp-baidu":{usingComponents:!0},"mp-toutiao":{usingComponents:!0},uniStatistics:Iy,vueVersion:My},Uy=[],Ly={navigationBarTextStyle:"black",navigationBarTitleText:"uni-app",navigationBarBackgroundColor:"#F8F8F8",backgroundColor:"#F8F8F8"},ky={autoscan:!0,custom:{"^uni-(.*)":"@dcloudio/uni-ui/lib/uni-$1/uni-$1.vue"}},Hy={pages:Uy,globalStyle:Ly,easycom:ky};function Vy(r){let{manifestJson:t={},pagesJson:e={},routes:n=[]}=r;const i=n.map(s=>{const{path:o,style:u,needLogin:l}=s;return{path:o,style:u,needLogin:l}});return et(H({},r),{manifestJson:Object.assign({},Fy,t),pagesJson:Object.assign({},Hy,e,{pages:i})})}const ln={navigationBarBackgroundColor:"backgroundColor",navigationBarTextStyle:"titleColor",navigationBarTitleText:"titleText",navigationStyle:"style",titleImage:"titleImage",titlePenetrate:"titlePenetrate",transparentTitle:"transparentTitle"};function ua(r){const t={},e={black:"#000000",white:"#ffffff"};for(const n in r)ln[n]&&(t[ln[n]]=n==="navigationBarTextStyle"?e[r[n]]||e.black:r[n]);return t}function qy(r){const t={};for(const e in r)ln[e]||(t[e]=r[e]);return t}function zy(r){var t,e;return((e=(t=r.h5)==null?void 0:t.router)==null?void 0:e.mode)||"hash"}function Wy(r){var t,e,n;return{topWindow:!!((t=r.topWindow)!=null&&t.path),leftWindow:!!((e=r.leftWindow)!=null&&e.path),rightWindow:!!((n=r.rightWindow)!=null&&n.path)}}function Ky(r){const{pagesJson:t={}}=r,{globalStyle:e,pages:n=[]}=t;return!!(e!=null&&e.enablePullDownRefresh||n.find(i=>{var s;return!!((s=i.style)!=null&&s.enablePullDownRefresh)}))}function Jy(r){const{pagesJson:t={}}=r,{globalStyle:e,pages:n=[]}=t;let i=!1;return(e==null?void 0:e.navigationStyle)==="custom"?(i=!0,n.find(s=>{var o;return((o=s.style)==null?void 0:o.navigationStyle)==="default"})&&(i=!1)):n.every(s=>{var o;return((o=s.style)==null?void 0:o.navigationStyle)==="custom"})&&(i=!0),i}function Gy(r){var u;const t=Jy(r),e={navigationBar:!1,navigationBarButtons:!1,navigationBarSearchInput:!1,navigationBarTransparent:!1},{pagesJson:n={}}=r,{globalStyle:i,pages:s=[]}=n;if(t)return e;e.navigationBar=!0;const o=(u=i==null?void 0:i.h5)==null?void 0:u.titleNView;return s.find(l=>{var a,c,f;return!!((f=(c=(a=l.style)==null?void 0:a.h5)==null?void 0:c.titleNView)!=null&&f.buttons.length)})&&(e.navigationBarButtons=!0),(o!=null&&o.searchInput||s.find(l=>{var a,c,f;return!!((f=(c=(a=l.style)==null?void 0:a.h5)==null?void 0:c.titleNView)!=null&&f.searchInput)}))&&(e.navigationBarSearchInput=!0),((o==null?void 0:o.type)==="transparent"||s.find(l=>{var a,c,f;return((f=(c=(a=l.style)==null?void 0:a.h5)==null?void 0:c.titleNView)==null?void 0:f.type)==="transparent"}))&&(e.navigationBarTransparent=!0),e}function Yy(r,t=window){var h,p,d,g;const{pagesJson:e={},manifestJson:n={}}=r,{topWindow:i,leftWindow:s,rightWindow:o}=Wy(e),{navigationBar:u,navigationBarButtons:l,navigationBarSearchInput:a,navigationBarTransparent:c}=Gy(r),f={__VUE_OPTIONS_API__:!0,__VUE_PROD_DEVTOOLS__:!1,__VUE_PROD_HYDRATION_MISMATCH_DETAILS__:!1,__UNI_FEATURE_WX__:!1,__UNI_FEATURE_WXS__:!1,__UNI_FEATURE_RPX__:!1,__UNI_FEATURE_PROMISE__:!1,__UNI_FEATURE_LONGPRESS__:!1,__UNI_FEATURE_I18N_EN__:!1,__UNI_FEATURE_I18N_ES__:!1,__UNI_FEATURE_I18N_FR__:!1,__UNI_FEATURE_I18N_ZH_HANS__:!0,__UNI_FEATURE_I18N_ZH_HANT__:!1,__UNI_FEATURE_UNI_CLOUD__:!1,__UNI_FEATURE_I18N_LOCALE__:!1,__UNI_FEATURE_NVUE__:!1,__UNI_FEATURE_ROUTER_MODE__:zy(n),__UNI_FEATURE_PAGES__:!!((h=e.pages)!=null&&h.length),__UNI_FEATURE_TABBAR__:!!((d=(p=e.tabBar)==null?void 0:p.list)!=null&&d.length),__UNI_FEATURE_TABBAR_MIDBUTTON__:!!((g=e.tabBar)!=null&&g.midButton),__UNI_FEATURE_TOPWINDOW__:i,__UNI_FEATURE_LEFTWINDOW__:s,__UNI_FEATURE_RIGHTWINDOW__:o,__UNI_FEATURE_RESPONSIVE__:!1,__UNI_FEATURE_NAVIGATIONBAR__:u,__UNI_FEATURE_PULL_DOWN_REFRESH__:Ky(r),__UNI_FEATURE_NAVIGATIONBAR_BUTTONS__:l,__UNI_FEATURE_NAVIGATIONBAR_SEARCHINPUT__:a,__UNI_FEATURE_NAVIGATIONBAR_TRANSPARENT__:c};Object.entries(f).forEach(([y,w])=>{t[y]=w})}const Zy="4.76";function Qy(r,t=window){var f,h;const{pagesJson:e={},manifestJson:n={}}=r,{easycom:i={}}=e,{appid:s="",name:o="",versionCode:u="",versionName:l=""}=n,a=e.globalStyle,c=((f=n.h5)==null?void 0:f.router)||{};t.__uniConfig={easycom:i,globalStyle:et(H({},qy(a)),{navigationBar:ua(a),isNVue:!1}),compilerVersion:Zy,appId:s,appName:o,appVersion:l,appVersionCode:String(u),async:H({loading:"AsyncLoading",error:"AsyncError",delay:200,timeout:6e4,suspensible:!0},((h=n.h5)==null?void 0:h.async)||{}),debug:!1,networkTimeout:H({request:6e4,connectSocket:6e4,uploadFile:6e4,downloadFile:6e4},n.networkTimeout||{}),sdkConfigs:{},nvue:{"flex-direction":"column"},locale:"",fallbackLocale:"",locales:{},router:H({mode:"hash",base:"/",assets:"assets",routerBase:c.base||"/"},c),darkmode:!1,themeConfig:{},tabBar:e.tabBar?H({position:"bottom",color:"#7A7E83",selectedColor:"#3cc51f",borderStyle:"black",blurEffect:"none",fontSize:"10px",iconWidth:"24px",spacing:"3px",height:"50px",backgroundColor:"#ffffff",selectedIndex:0,shown:!0},e.tabBar):void 0}}function Xy(r,t=window){const{UniServiceJSBridge:e,UniViewJSBridge:n,getApp:i,uni:s,getCurrentPages:o,upx2px:u,setupPage:l}=r;t.UniServiceJSBridge=e,t.UniViewJSBridge=n,t.getApp=i,t.uni=s,t.wx=s,t.getCurrentPages=o,t.upx2px=u,t.__setupPage=a=>l(a)}function t0(r,t,e){const{openBlock:n,createBlock:i,withCtx:s,createVNode:o}=r,{PageComponent:u,setupPage:l,getApp:a}=t;return{mpType:"page",setup(){return U(this,null,function*(){var g,y;const f=((y=(g=a())==null?void 0:g.$route)==null?void 0:y.query)||{},{loader:h,component:p}=e,d=h?yield h(e):p||{};return()=>(n(),i(u,null,{page:s(()=>[o(l(d),Object.assign({},f,{ref:"page"}),null,512)]),_:1}))})}}}function e0(r,t,e){var p;const{path:n,style:i={},meta:s={},home:o,id:u}=t,l=((p=r.tabBar)==null?void 0:p.list)||[],a=l.findIndex(d=>{var g;return d.pagePath===n||((g=d.pagePath)==null?void 0:g.endsWith(u))}),c=l[a],f=!!c,h=e===0;return H({isTabBar:f,tabBarIndex:a,isQuit:o!=null?o:h,isEntry:o!=null?o:h,navigationBar:H({type:"default"},ua(i)),isNVue:!1,route:c?c.pagePath:n},s)}function r0(r,t,e,n,i=window){const s=e.map((o,u)=>{const l=e0(n,o,u),a=t0(r,t,o),{path:c}=o;return{path:c,alias:c,meta:l,component:{render(){return r.h(r.Suspense,[r.h(a)])}}}});i.__uniRoutes=s,i.__uniLayout={}}function n0(r,t,e=window){fr(e,String(r),t)}function i0(r,t){t&&["View","ScrollView","Swiper","MovableArea","MovableView","CoverView","CoverImage","Icon","Text","RichText","Progress","Button","CheckboxGroup","Checkbox","Editor","Form","Input","Label","Picker","PickerView","RadioGroup","Radio","Slider","Switch","Textarea","Navigator","Image","Video","Map","Canvas","WebView","PickerViewColumn","ResizeSensor","SwiperItem"].forEach(e=>{const n=t[e];r.component(e,n)})}function s0(r){const t=Vy(r),{Vue:e,App:n,UniH5:i,routes:s=[],pagesJson:o={},manifestJson:u={},window:l,css:a=""}=t;if(!i)return e.createApp(n);const{plugin:c,setupApp:f}=i;Yy(t,l),Qy(t,l),Xy(i,l),r0(e,i,s,o,l),n0(u.appid||Date.now(),a,l);const h=e.createApp(f(n));return h.use(i0,i),h.use(c),h}function o0(r,t){const e={};return Object.entries(r).forEach(([n,i])=>{Oy.includes(n)&&i&&(e[n]=t(i))}),e}function ns(r,t){return()=>U(null,null,function*(){const e=yield r.getDsl(t);if(e){const{renderer:n}=r.createDslRenderer(e);return n}return null})}function a0(n){return U(this,arguments,function*(r,t=!1,e=rs){var u,l,a;const i=((u=r.project)==null?void 0:u.pages)||[],s=[];for(const c of i){const f=((l=r.project)==null?void 0:l.homepage)===c.id;s.push({id:c.id,path:`${e}/${c.id}`,loader:ns(r,c.id),style:H({navigationBarTitleText:c.title},c.style),needLogin:c.needLogin,home:f})}const o=s.find(c=>!!c.home)||s[0];if(o){const c=e===rs?"/":e;s.unshift(et(H({},o),{path:c}))}if(t){const c=((a=r.project)==null?void 0:a.blocks)||[];for(const f of c)s.push({id:f.id,path:`${e}/${f.id}`,loader:ns(r,f.id),style:{navigationStyle:"custom"}})}return s})}function u0(){var r;return(r=window.uni)!=null&&r.showLoading&&window.uni.showLoading({title:"加载中...",mask:!0}),{close:()=>{var t;(t=window.uni)!=null&&t.hideLoading&&window.uni.hideLoading()}}}function ca(r,t="",e="warning"){return U(this,null,function*(){var n;return(n=window.uni)!=null&&n.showModal?window.uni.showModal({title:t,content:r,showCancel:!1}):window.alert(r)})}function c0(r=X.Runtime){let t={};r===X.Runtime?t=Object.assign({}):t=Object.assign({});let e={};for(const[n,i]of Object.entries(t))e[n]=()=>Promise.resolve(i);return e}const l0=Cm({loading:u0,notify:ca}),la=new Ay(Ry(ca)),f0=c0(),{provider:h0,onReady:p0}=_y({nodeEnv:"production",mode:X.Runtime,modules:f0,materialPath:"../",adapter:l0,service:la,dependencies:{Vue:()=>Bn(()=>import("./@dcloudio-uni-h5-vue-Dxv_ts1w.js").then(r=>r.G),__vite__mapDeps([0,1,2]),import.meta.url),VueRouter:()=>Bn(()=>import("./vue-router-C2iVG-hf.js"),__vite__mapDeps([3,0,1,2]),import.meta.url)}}),d0=r=>U(null,null,function*(){const t=(yield la.getExtension().catch(()=>null))||{},e=top||window,n=yield Ey(t.enhance,e.location.pathname),{Vue:i,UniH5:s}=window,o=r.project;if(!o)return;const u=o.uniConfig||{},l=o0(u,d=>pt(d,window,!1,!0)),{manifestJson:a,pagesJson:c,css:f}=u,h=yield a0(r,!0),p=s0({Vue:i,App:l,UniH5:s,routes:h,css:f,manifestJson:a,pagesJson:c});p.use(r),n&&p.use(n,r),p.mount(document.body)});p0(()=>d0(h0));
|