@vtj/pro 0.13.14 → 0.13.15

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.
Files changed (35) hide show
  1. package/dist/@vtj/materials/assets/antdv/index.umd.js +2 -2
  2. package/dist/@vtj/materials/assets/charts/index.umd.js +2 -2
  3. package/dist/@vtj/materials/assets/element/index.umd.js +2 -2
  4. package/dist/@vtj/materials/assets/icons/index.umd.js +2 -2
  5. package/dist/@vtj/materials/assets/ui/index.umd.js +2 -2
  6. package/dist/@vtj/materials/assets/uni-h5/index.umd.js +2 -2
  7. package/dist/@vtj/materials/assets/uni-ui/index.umd.js +2 -2
  8. package/dist/@vtj/materials/assets/vant/index.umd.js +2 -2
  9. package/dist/@vtj/materials/deps/@vtj/charts/index.umd.js +2 -2
  10. package/dist/@vtj/materials/deps/@vtj/icons/index.umd.js +2 -2
  11. package/dist/@vtj/materials/deps/@vtj/icons/style.css +1 -1
  12. package/dist/@vtj/materials/deps/@vtj/ui/index.umd.js +2 -2
  13. package/dist/@vtj/materials/deps/@vtj/utils/index.umd.js +2 -2
  14. package/dist/@vtj/materials/deps/vue-i18n/vue-i18n.global.js +6197 -0
  15. package/dist/@vtj/materials/deps/vue-i18n/vue-i18n.global.prod.js +6 -0
  16. package/dist/assets/Editor-Cz8yc4Be-C5Cx8zyv.css +1 -0
  17. package/dist/assets/Editor-Cz8yc4Be-CJ6QIyZd.js +302 -0
  18. package/dist/assets/auth-rz7RA39c.js +1 -0
  19. package/dist/assets/index-C-QbgK75.js +1 -0
  20. package/dist/assets/{index-CZcMFlK2.js → index-Cuu7uClp.js} +2 -2
  21. package/dist/assets/{mockjs-CBX8QfCC.js → mockjs-DhpLkc3z.js} +1 -1
  22. package/dist/assets/page-iscKEHqz.js +2 -0
  23. package/dist/assets/preview-BIPNn20h.js +2 -0
  24. package/dist/assets/utils-B3xHoT-f.js +1 -0
  25. package/dist/index.html +3 -3
  26. package/dist/uni/assets/{index-DsaNk-Sl.js → index-BKfu2Ore.js} +30 -30
  27. package/dist/uni/index.html +1 -1
  28. package/package.json +11 -11
  29. package/dist/assets/Editor-aW8OJBwm-B5qbujr2.js +0 -302
  30. package/dist/assets/Editor-aW8OJBwm-BBidmUzu.css +0 -1
  31. package/dist/assets/auth-CFzo0N05.js +0 -1
  32. package/dist/assets/index-D6kdtgrb.js +0 -1
  33. package/dist/assets/page-CAr9Uia9.js +0 -2
  34. package/dist/assets/preview-DnOOX7ZI.js +0 -2
  35. package/dist/assets/utils-TVkozFJc.js +0 -1
@@ -1,41 +1,41 @@
1
1
  const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./@dcloudio-uni-h5-vue-Dkyr-yjK.js","./vue-BK7aLblh.js","./@dcloudio-uni-shared-Cc-Ey1iB.js","./vue-router-BPElbjFz.js"])))=>i.map(i=>d[i]);
2
- var la=Object.defineProperty,fa=Object.defineProperties;var ha=Object.getOwnPropertyDescriptors;var En=Object.getOwnPropertySymbols;var pa=Object.prototype.hasOwnProperty,da=Object.prototype.propertyIsEnumerable;var Jt=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),ma=e=>{throw TypeError(e)};var lr=(e,t,r)=>t in e?la(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,V=(e,t)=>{for(var r in t||(t={}))pa.call(t,r)&&lr(e,r,t[r]);if(En)for(var r of En(t))da.call(t,r)&&lr(e,r,t[r]);return e},tt=(e,t)=>fa(e,ha(t));var z=(e,t,r)=>lr(e,typeof t!="symbol"?t+"":t,r);var k=(e,t,r)=>new Promise((n,i)=>{var s=l=>{try{u(r.next(l))}catch(a){i(a)}},o=l=>{try{u(r.throw(l))}catch(a){i(a)}},u=l=>l.done?n(l.value):Promise.resolve(l.value).then(s,o);u((r=r.apply(e,t)).next())}),It=function(e,t){this[0]=e,this[1]=t},fr=(e,t,r)=>{var n=(o,u,l,a)=>{try{var c=r[o](u),f=(u=c.value)instanceof It,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 r=r.apply(e,t),s[Jt("asyncIterator")]=()=>s,i("next"),i("throw"),i("return"),s},hr=e=>{var t=e[Jt("asyncIterator")],r=!1,n,i={};return t==null?(t=e[Jt("iterator")](),n=s=>i[s]=o=>t[s](o)):(t=t.call(e),n=s=>i[s]=o=>{if(r){if(r=!1,s==="throw")throw o;return o}return r=!0,{done:!1,value:new It(new Promise(u=>{var l=t[s](o);l instanceof Object||ma("Object expected"),u(l)}),1)}}),i[Jt("iterator")]=()=>i,n("next"),"throw"in t?n("throw"):i.throw=s=>{throw s},"return"in t&&n("return"),i},Sn=(e,t,r)=>(t=e[Jt("asyncIterator")])?t.call(e):(e=e[Jt("iterator")](),t={},r=(n,i)=>(i=e[n])&&(t[n]=s=>new Promise((o,u,l)=>(s=i.call(e,s),l=s.done,Promise.resolve(s.value).then(a=>o({value:a,done:l}),u)))),r("next"),r("return"),t);import{d as Qi,g as xn,h as Br,r as ga,z as Ye,i as ya}from"./@dcloudio-uni-h5-vue-Dkyr-yjK.js";import{useRoute as va}from"./vue-router-BPElbjFz.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 r(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=r(i);fetch(i.href,s)}})();const ba="modulepreload",wa=function(e,t){return new URL(e,t).href},Tn={},Rn=function(t,r,n){let i=Promise.resolve();if(r&&r.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(r.map(c=>{if(c=wa(c,n),c in Tn)return;Tn[c]=!0;const f=c.endsWith(".css"),h=f?'[rel="stylesheet"]':"";if(!!n)for(let m=u.length-1;m>=0;m--){const b=u[m];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":ba,f||(d.as="script"),d.crossOrigin="",d.href=c,a&&d.setAttribute("nonce",a),document.head.appendChild(d),f)return new Promise((m,b)=>{d.addEventListener("load",m),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 _a={ENV_TYPE:"live",NODE_ENV:"production"},Ea=typeof global=="object"&&global&&global.Object===Object&&global;const Xi=Ea;var Sa=typeof self=="object"&&self&&self.Object===Object&&self,xa=Xi||Sa||Function("return this")();const gt=xa;var Ta=gt.Symbol;const bt=Ta;var ts=Object.prototype,Ra=ts.hasOwnProperty,Aa=ts.toString,fe=bt?bt.toStringTag:void 0;function $a(e){var t=Ra.call(e,fe),r=e[fe];try{e[fe]=void 0;var n=!0}catch(s){}var i=Aa.call(e);return n&&(t?e[fe]=r:delete e[fe]),i}var Oa=Object.prototype,ja=Oa.toString;function Da(e){return ja.call(e)}var Ba="[object Null]",Ca="[object Undefined]",An=bt?bt.toStringTag:void 0;function Tt(e){return e==null?e===void 0?Ca:Ba:An&&An in Object(e)?$a(e):Da(e)}function _t(e){return e!=null&&typeof e=="object"}var Na="[object Symbol]";function es(e){return typeof e=="symbol"||_t(e)&&Tt(e)==Na}function rs(e,t){for(var r=-1,n=e==null?0:e.length,i=Array(n);++r<n;)i[r]=t(e[r],r,e);return i}var Ia=Array.isArray;const Vt=Ia;var $n=bt?bt.prototype:void 0,On=$n?$n.toString:void 0;function ns(e){if(typeof e=="string")return e;if(Vt(e))return rs(e,ns)+"";if(es(e))return On?On.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var Pa=/\s/;function ka(e){for(var t=e.length;t--&&Pa.test(e.charAt(t)););return t}var Fa=/^\s+/;function Ma(e){return e&&e.slice(0,ka(e)+1).replace(Fa,"")}function ct(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var jn=NaN,Ua=/^[-+]0x[0-9a-f]+$/i,La=/^0b[01]+$/i,Va=/^0o[0-7]+$/i,Ha=parseInt;function Dn(e){if(typeof e=="number")return e;if(es(e))return jn;if(ct(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=ct(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=Ma(e);var r=La.test(e);return r||Va.test(e)?Ha(e.slice(2),r?2:8):Ua.test(e)?jn:+e}function is(e){return e}var qa="[object AsyncFunction]",za="[object Function]",Ka="[object GeneratorFunction]",Wa="[object Proxy]";function Ht(e){if(!ct(e))return!1;var t=Tt(e);return t==za||t==Ka||t==qa||t==Wa}var Ja=gt["__core-js_shared__"];const pr=Ja;var Bn=(function(){var e=/[^.]+$/.exec(pr&&pr.keys&&pr.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})();function Ya(e){return!!Bn&&Bn in e}var Ga=Function.prototype,Za=Ga.toString;function zt(e){if(e!=null){try{return Za.call(e)}catch(t){}try{return e+""}catch(t){}}return""}var Qa=/[\\^$.*+?()[\]{}|]/g,Xa=/^\[object .+?Constructor\]$/,tu=Function.prototype,eu=Object.prototype,ru=tu.toString,nu=eu.hasOwnProperty,iu=RegExp("^"+ru.call(nu).replace(Qa,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function su(e){if(!ct(e)||Ya(e))return!1;var t=Ht(e)?iu:Xa;return t.test(zt(e))}function ou(e,t){return e==null?void 0:e[t]}function Kt(e,t){var r=ou(e,t);return su(r)?r:void 0}var au=Kt(gt,"WeakMap");const Cr=au;var Cn=Object.create,uu=(function(){function e(){}return function(t){if(!ct(t))return{};if(Cn)return Cn(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}})();const cu=uu;function ss(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}function lu(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}var fu=800,hu=16,pu=Date.now;function du(e){var t=0,r=0;return function(){var n=pu(),i=hu-(n-r);if(r=n,i>0){if(++t>=fu)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function mu(e){return function(){return e}}var gu=(function(){try{var e=Kt(Object,"defineProperty");return e({},"",{}),e}catch(t){}})();const He=gu;var yu=He?function(e,t){return He(e,"toString",{configurable:!0,enumerable:!1,value:mu(t),writable:!0})}:is;const vu=yu;var bu=du(vu);const wu=bu;function _u(e,t){for(var r=-1,n=e==null?0:e.length;++r<n&&t(e[r],r,e)!==!1;);return e}var Eu=9007199254740991,Su=/^(?:0|[1-9]\d*)$/;function os(e,t){var r=typeof e;return t=t!=null?t:Eu,!!t&&(r=="number"||r!="symbol"&&Su.test(e))&&e>-1&&e%1==0&&e<t}function an(e,t,r){t=="__proto__"&&He?He(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function Ee(e,t){return e===t||e!==e&&t!==t}var xu=Object.prototype,Tu=xu.hasOwnProperty;function as(e,t,r){var n=e[t];(!(Tu.call(e,t)&&Ee(n,r))||r===void 0&&!(t in e))&&an(e,t,r)}function us(e,t,r,n){var i=!r;r||(r={});for(var s=-1,o=t.length;++s<o;){var u=t[s],l=n?n(r[u],e[u],u,r,e):void 0;l===void 0&&(l=e[u]),i?an(r,u,l):as(r,u,l)}return r}var Nn=Math.max;function Ru(e,t,r){return t=Nn(t===void 0?e.length-1:t,0),function(){for(var n=arguments,i=-1,s=Nn(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]=r(o),ss(e,this,u)}}function cs(e,t){return wu(Ru(e,t,is),e+"")}var Au=9007199254740991;function ls(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Au}function Ge(e){return e!=null&&ls(e.length)&&!Ht(e)}function $u(e,t,r){if(!ct(r))return!1;var n=typeof t;return(n=="number"?Ge(r)&&os(t,r.length):n=="string"&&t in r)?Ee(r[t],e):!1}function fs(e){return cs(function(t,r){var n=-1,i=r.length,s=i>1?r[i-1]:void 0,o=i>2?r[2]:void 0;for(s=e.length>3&&typeof s=="function"?(i--,s):void 0,o&&$u(r[0],r[1],o)&&(s=i<3?void 0:s,i=1),t=Object(t);++n<i;){var u=r[n];u&&e(t,u,n,s)}return t})}var Ou=Object.prototype;function un(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||Ou;return e===r}function ju(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var Du="[object Arguments]";function In(e){return _t(e)&&Tt(e)==Du}var hs=Object.prototype,Bu=hs.hasOwnProperty,Cu=hs.propertyIsEnumerable,Nu=In((function(){return arguments})())?In:function(e){return _t(e)&&Bu.call(e,"callee")&&!Cu.call(e,"callee")};const Nr=Nu;function Iu(){return!1}var ps=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Pn=ps&&typeof module=="object"&&module&&!module.nodeType&&module,Pu=Pn&&Pn.exports===ps,kn=Pu?gt.Buffer:void 0,ku=kn?kn.isBuffer:void 0,Fu=ku||Iu;const cn=Fu;var Mu="[object Arguments]",Uu="[object Array]",Lu="[object Boolean]",Vu="[object Date]",Hu="[object Error]",qu="[object Function]",zu="[object Map]",Ku="[object Number]",Wu="[object Object]",Ju="[object RegExp]",Yu="[object Set]",Gu="[object String]",Zu="[object WeakMap]",Qu="[object ArrayBuffer]",Xu="[object DataView]",tc="[object Float32Array]",ec="[object Float64Array]",rc="[object Int8Array]",nc="[object Int16Array]",ic="[object Int32Array]",sc="[object Uint8Array]",oc="[object Uint8ClampedArray]",ac="[object Uint16Array]",uc="[object Uint32Array]",G={};G[tc]=G[ec]=G[rc]=G[nc]=G[ic]=G[sc]=G[oc]=G[ac]=G[uc]=!0,G[Mu]=G[Uu]=G[Qu]=G[Lu]=G[Xu]=G[Vu]=G[Hu]=G[qu]=G[zu]=G[Ku]=G[Wu]=G[Ju]=G[Yu]=G[Gu]=G[Zu]=!1;function cc(e){return _t(e)&&ls(e.length)&&!!G[Tt(e)]}function ln(e){return function(t){return e(t)}}var ds=typeof exports=="object"&&exports&&!exports.nodeType&&exports,ge=ds&&typeof module=="object"&&module&&!module.nodeType&&module,lc=ge&&ge.exports===ds,dr=lc&&Xi.process,fc=(function(){try{var e=ge&&ge.require&&ge.require("util").types;return e||dr&&dr.binding&&dr.binding("util")}catch(t){}})();const wt=fc;var Fn=wt&&wt.isTypedArray,hc=Fn?ln(Fn):cc;const ms=hc;var pc=Object.prototype,dc=pc.hasOwnProperty;function gs(e,t){var r=Vt(e),n=!r&&Nr(e),i=!r&&!n&&cn(e),s=!r&&!n&&!i&&ms(e),o=r||n||i||s,u=o?ju(e.length,String):[],l=u.length;for(var a in e)(t||dc.call(e,a))&&!(o&&(a=="length"||i&&(a=="offset"||a=="parent")||s&&(a=="buffer"||a=="byteLength"||a=="byteOffset")||os(a,l)))&&u.push(a);return u}function ys(e,t){return function(r){return e(t(r))}}var mc=ys(Object.keys,Object);const gc=mc;var yc=Object.prototype,vc=yc.hasOwnProperty;function bc(e){if(!un(e))return gc(e);var t=[];for(var r in Object(e))vc.call(e,r)&&r!="constructor"&&t.push(r);return t}function vs(e){return Ge(e)?gs(e):bc(e)}function wc(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var _c=Object.prototype,Ec=_c.hasOwnProperty;function Sc(e){if(!ct(e))return wc(e);var t=un(e),r=[];for(var n in e)n=="constructor"&&(t||!Ec.call(e,n))||r.push(n);return r}function fn(e){return Ge(e)?gs(e,!0):Sc(e)}var xc=fs(function(e,t,r,n){us(t,fn(t),e,n)});const Mn=xc;var Tc=Kt(Object,"create");const ye=Tc;function Rc(){this.__data__=ye?ye(null):{},this.size=0}function Ac(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var $c="__lodash_hash_undefined__",Oc=Object.prototype,jc=Oc.hasOwnProperty;function Dc(e){var t=this.__data__;if(ye){var r=t[e];return r===$c?void 0:r}return jc.call(t,e)?t[e]:void 0}var Bc=Object.prototype,Cc=Bc.hasOwnProperty;function Nc(e){var t=this.__data__;return ye?t[e]!==void 0:Cc.call(t,e)}var Ic="__lodash_hash_undefined__";function Pc(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=ye&&t===void 0?Ic:t,this}function Ft(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Ft.prototype.clear=Rc,Ft.prototype.delete=Ac,Ft.prototype.get=Dc,Ft.prototype.has=Nc,Ft.prototype.set=Pc;function kc(){this.__data__=[],this.size=0}function Ze(e,t){for(var r=e.length;r--;)if(Ee(e[r][0],t))return r;return-1}var Fc=Array.prototype,Mc=Fc.splice;function Uc(e){var t=this.__data__,r=Ze(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():Mc.call(t,r,1),--this.size,!0}function Lc(e){var t=this.__data__,r=Ze(t,e);return r<0?void 0:t[r][1]}function Vc(e){return Ze(this.__data__,e)>-1}function Hc(e,t){var r=this.__data__,n=Ze(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}function xt(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}xt.prototype.clear=kc,xt.prototype.delete=Uc,xt.prototype.get=Lc,xt.prototype.has=Vc,xt.prototype.set=Hc;var qc=Kt(gt,"Map");const ve=qc;function zc(){this.size=0,this.__data__={hash:new Ft,map:new(ve||xt),string:new Ft}}function Kc(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Qe(e,t){var r=e.__data__;return Kc(t)?r[typeof t=="string"?"string":"hash"]:r.map}function Wc(e){var t=Qe(this,e).delete(e);return this.size-=t?1:0,t}function Jc(e){return Qe(this,e).get(e)}function Yc(e){return Qe(this,e).has(e)}function Gc(e,t){var r=Qe(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}function Ot(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Ot.prototype.clear=zc,Ot.prototype.delete=Wc,Ot.prototype.get=Jc,Ot.prototype.has=Yc,Ot.prototype.set=Gc;var Zc="Expected a function";function hn(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(Zc);var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],s=r.cache;if(s.has(i))return s.get(i);var o=e.apply(this,n);return r.cache=s.set(i,o)||s,o};return r.cache=new(hn.Cache||Ot),r}hn.Cache=Ot;var Qc=500;function Xc(e){var t=hn(e,function(n){return r.size===Qc&&r.clear(),n}),r=t.cache;return t}var tl=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,el=/\\(\\)?/g;Xc(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(tl,function(r,n,i,s){t.push(i?s.replace(el,"$1"):n||r)}),t});function se(e){return e==null?"":ns(e)}function rl(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}var nl=ys(Object.getPrototypeOf,Object);const bs=nl;var il="[object Object]",sl=Function.prototype,ol=Object.prototype,ws=sl.toString,al=ol.hasOwnProperty,ul=ws.call(Object);function _s(e){if(!_t(e)||Tt(e)!=il)return!1;var t=bs(e);if(t===null)return!0;var r=al.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&ws.call(r)==ul}var cl="[object DOMException]",ll="[object Error]";function Es(e){if(!_t(e))return!1;var t=Tt(e);return t==ll||t==cl||typeof e.message=="string"&&typeof e.name=="string"&&!_s(e)}var fl=cs(function(e,t){try{return ss(e,void 0,t)}catch(r){return Es(r)?r:new Error(r)}});const hl=fl;function pl(e,t,r){var n=-1,i=e.length;t<0&&(t=-t>i?0:i+t),r=r>i?i:r,r<0&&(r+=i),i=t>r?0:r-t>>>0,t>>>=0;for(var s=Array(i);++n<i;)s[n]=e[n+t];return s}function dl(e,t,r){var n=e.length;return r=r===void 0?n:r,!t&&r>=n?e:pl(e,t,r)}var ml="\\ud800-\\udfff",gl="\\u0300-\\u036f",yl="\\ufe20-\\ufe2f",vl="\\u20d0-\\u20ff",bl=gl+yl+vl,wl="\\ufe0e\\ufe0f",_l="\\u200d",El=RegExp("["+_l+ml+bl+wl+"]");function Ss(e){return El.test(e)}function Sl(e){return e.split("")}var xs="\\ud800-\\udfff",xl="\\u0300-\\u036f",Tl="\\ufe20-\\ufe2f",Rl="\\u20d0-\\u20ff",Al=xl+Tl+Rl,$l="\\ufe0e\\ufe0f",Ol="["+xs+"]",Ir="["+Al+"]",Pr="\\ud83c[\\udffb-\\udfff]",jl="(?:"+Ir+"|"+Pr+")",Ts="[^"+xs+"]",Rs="(?:\\ud83c[\\udde6-\\uddff]){2}",As="[\\ud800-\\udbff][\\udc00-\\udfff]",Dl="\\u200d",$s=jl+"?",Os="["+$l+"]?",Bl="(?:"+Dl+"(?:"+[Ts,Rs,As].join("|")+")"+Os+$s+")*",Cl=Os+$s+Bl,Nl="(?:"+[Ts+Ir+"?",Ir,Rs,As,Ol].join("|")+")",Il=RegExp(Pr+"(?="+Pr+")|"+Nl+Cl,"g");function Pl(e){return e.match(Il)||[]}function kl(e){return Ss(e)?Pl(e):Sl(e)}function Fl(e){return function(t){t=se(t);var r=Ss(t)?kl(t):void 0,n=r?r[0]:t.charAt(0),i=r?dl(r,1).join(""):t.slice(1);return n[e]()+i}}var Ml=Fl("toUpperCase");const js=Ml;function Ul(e){return js(se(e).toLowerCase())}function Ll(e,t,r,n){var i=-1,s=e==null?0:e.length;for(n;++i<s;)r=t(r,e[i],i,e);return r}function Ds(e){return function(t){return e==null?void 0:e[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"},Hl=Ds(Vl);const ql=Hl;var zl=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Kl="\\u0300-\\u036f",Wl="\\ufe20-\\ufe2f",Jl="\\u20d0-\\u20ff",Yl=Kl+Wl+Jl,Gl="["+Yl+"]",Zl=RegExp(Gl,"g");function Ql(e){return e=se(e),e&&e.replace(zl,ql).replace(Zl,"")}var Xl=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function tf(e){return e.match(Xl)||[]}var ef=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function rf(e){return ef.test(e)}var Bs="\\ud800-\\udfff",nf="\\u0300-\\u036f",sf="\\ufe20-\\ufe2f",of="\\u20d0-\\u20ff",af=nf+sf+of,Cs="\\u2700-\\u27bf",Ns="a-z\\xdf-\\xf6\\xf8-\\xff",uf="\\xac\\xb1\\xd7\\xf7",cf="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",lf="\\u2000-\\u206f",ff=" \\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",Is="A-Z\\xc0-\\xd6\\xd8-\\xde",hf="\\ufe0e\\ufe0f",Ps=uf+cf+lf+ff,ks="['’]",Un="["+Ps+"]",pf="["+af+"]",Fs="\\d+",df="["+Cs+"]",Ms="["+Ns+"]",Us="[^"+Bs+Ps+Fs+Cs+Ns+Is+"]",mf="\\ud83c[\\udffb-\\udfff]",gf="(?:"+pf+"|"+mf+")",yf="[^"+Bs+"]",Ls="(?:\\ud83c[\\udde6-\\uddff]){2}",Vs="[\\ud800-\\udbff][\\udc00-\\udfff]",Qt="["+Is+"]",vf="\\u200d",Ln="(?:"+Ms+"|"+Us+")",bf="(?:"+Qt+"|"+Us+")",Vn="(?:"+ks+"(?:d|ll|m|re|s|t|ve))?",Hn="(?:"+ks+"(?:D|LL|M|RE|S|T|VE))?",Hs=gf+"?",qs="["+hf+"]?",wf="(?:"+vf+"(?:"+[yf,Ls,Vs].join("|")+")"+qs+Hs+")*",_f="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Ef="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Sf=qs+Hs+wf,xf="(?:"+[df,Ls,Vs].join("|")+")"+Sf,Tf=RegExp([Qt+"?"+Ms+"+"+Vn+"(?="+[Un,Qt,"$"].join("|")+")",bf+"+"+Hn+"(?="+[Un,Qt+Ln,"$"].join("|")+")",Qt+"?"+Ln+"+"+Vn,Qt+"+"+Hn,Ef,_f,Fs,xf].join("|"),"g");function Rf(e){return e.match(Tf)||[]}function Af(e,t,r){return e=se(e),t=t,t===void 0?rf(e)?Rf(e):tf(e):e.match(t)||[]}var $f="['’]",Of=RegExp($f,"g");function jf(e){return function(t){return Ll(Af(Ql(t).replace(Of,"")),e,"")}}var Df=jf(function(e,t,r){return t=t.toLowerCase(),e+(r?Ul(t):t)});const Et=Df;function Bf(){this.__data__=new xt,this.size=0}function Cf(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function Nf(e){return this.__data__.get(e)}function If(e){return this.__data__.has(e)}var Pf=200;function kf(e,t){var r=this.__data__;if(r instanceof xt){var n=r.__data__;if(!ve||n.length<Pf-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new Ot(n)}return r.set(e,t),this.size=r.size,this}function Mt(e){var t=this.__data__=new xt(e);this.size=t.size}Mt.prototype.clear=Bf,Mt.prototype.delete=Cf,Mt.prototype.get=Nf,Mt.prototype.has=If,Mt.prototype.set=kf;var zs=typeof exports=="object"&&exports&&!exports.nodeType&&exports,qn=zs&&typeof module=="object"&&module&&!module.nodeType&&module,Ff=qn&&qn.exports===zs,zn=Ff?gt.Buffer:void 0,Kn=zn?zn.allocUnsafe:void 0;function Ks(e,t){if(t)return e.slice();var r=e.length,n=Kn?Kn(r):new e.constructor(r);return e.copy(n),n}function Mf(e,t){for(var r=-1,n=e==null?0:e.length,i=0,s=[];++r<n;){var o=e[r];t(o,r,e)&&(s[i++]=o)}return s}function Uf(){return[]}var Lf=Object.prototype,Vf=Lf.propertyIsEnumerable,Wn=Object.getOwnPropertySymbols,Hf=Wn?function(e){return e==null?[]:(e=Object(e),Mf(Wn(e),function(t){return Vf.call(e,t)}))}:Uf;const qf=Hf;function zf(e,t,r){var n=t(e);return Vt(e)?n:rl(n,r(e))}function Kf(e){return zf(e,vs,qf)}var Wf=Kt(gt,"DataView");const kr=Wf;var Jf=Kt(gt,"Promise");const Fr=Jf;var Yf=Kt(gt,"Set");const Mr=Yf;var Jn="[object Map]",Gf="[object Object]",Yn="[object Promise]",Gn="[object Set]",Zn="[object WeakMap]",Qn="[object DataView]",Zf=zt(kr),Qf=zt(ve),Xf=zt(Fr),th=zt(Mr),eh=zt(Cr),kt=Tt;(kr&&kt(new kr(new ArrayBuffer(1)))!=Qn||ve&&kt(new ve)!=Jn||Fr&&kt(Fr.resolve())!=Yn||Mr&&kt(new Mr)!=Gn||Cr&&kt(new Cr)!=Zn)&&(kt=function(e){var t=Tt(e),r=t==Gf?e.constructor:void 0,n=r?zt(r):"";if(n)switch(n){case Zf:return Qn;case Qf:return Jn;case Xf:return Yn;case th:return Gn;case eh:return Zn}return t});const pn=kt;var rh=Object.prototype,nh=rh.hasOwnProperty;function ih(e){var t=e.length,r=new e.constructor(t);return t&&typeof e[0]=="string"&&nh.call(e,"index")&&(r.index=e.index,r.input=e.input),r}var sh=gt.Uint8Array;const Xn=sh;function dn(e){var t=new e.constructor(e.byteLength);return new Xn(t).set(new Xn(e)),t}function oh(e,t){var r=dn(e.buffer);return new e.constructor(r,e.byteOffset,e.byteLength)}var ah=/\w*$/;function uh(e){var t=new e.constructor(e.source,ah.exec(e));return t.lastIndex=e.lastIndex,t}var ti=bt?bt.prototype:void 0,ei=ti?ti.valueOf:void 0;function ch(e){return ei?Object(ei.call(e)):{}}function Ws(e,t){var r=t?dn(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}var lh="[object Boolean]",fh="[object Date]",hh="[object Map]",ph="[object Number]",dh="[object RegExp]",mh="[object Set]",gh="[object String]",yh="[object Symbol]",vh="[object ArrayBuffer]",bh="[object DataView]",wh="[object Float32Array]",_h="[object Float64Array]",Eh="[object Int8Array]",Sh="[object Int16Array]",xh="[object Int32Array]",Th="[object Uint8Array]",Rh="[object Uint8ClampedArray]",Ah="[object Uint16Array]",$h="[object Uint32Array]";function Oh(e,t,r){var n=e.constructor;switch(t){case vh:return dn(e);case lh:case fh:return new n(+e);case bh:return oh(e);case wh:case _h:case Eh:case Sh:case xh:case Th:case Rh:case Ah:case $h:return Ws(e,r);case hh:return new n;case ph:case gh:return new n(e);case dh:return uh(e);case mh:return new n;case yh:return ch(e)}}function Js(e){return typeof e.constructor=="function"&&!un(e)?cu(bs(e)):{}}var jh="[object Map]";function Dh(e){return _t(e)&&pn(e)==jh}var ri=wt&&wt.isMap,Bh=ri?ln(ri):Dh;const Ch=Bh;var Nh="[object Set]";function Ih(e){return _t(e)&&pn(e)==Nh}var ni=wt&&wt.isSet,Ph=ni?ln(ni):Ih;const kh=Ph;var Fh=1,Ys="[object Arguments]",Mh="[object Array]",Uh="[object Boolean]",Lh="[object Date]",Vh="[object Error]",Gs="[object Function]",Hh="[object GeneratorFunction]",qh="[object Map]",zh="[object Number]",Zs="[object Object]",Kh="[object RegExp]",Wh="[object Set]",Jh="[object String]",Yh="[object Symbol]",Gh="[object WeakMap]",Zh="[object ArrayBuffer]",Qh="[object DataView]",Xh="[object Float32Array]",tp="[object Float64Array]",ep="[object Int8Array]",rp="[object Int16Array]",np="[object Int32Array]",ip="[object Uint8Array]",sp="[object Uint8ClampedArray]",op="[object Uint16Array]",ap="[object Uint32Array]",Y={};Y[Ys]=Y[Mh]=Y[Zh]=Y[Qh]=Y[Uh]=Y[Lh]=Y[Xh]=Y[tp]=Y[ep]=Y[rp]=Y[np]=Y[qh]=Y[zh]=Y[Zs]=Y[Kh]=Y[Wh]=Y[Jh]=Y[Yh]=Y[ip]=Y[sp]=Y[op]=Y[ap]=!0,Y[Vh]=Y[Gs]=Y[Gh]=!1;function Ie(e,t,r,n,i,s){var o,u=t&Fh;if(o!==void 0)return o;if(!ct(e))return e;var l=Vt(e);if(l)o=ih(e);else{var a=pn(e),c=a==Gs||a==Hh;if(cn(e))return Ks(e,u);if(a==Zs||a==Ys||c&&!i)o=c?{}:Js(e);else{if(!Y[a])return i?e:{};o=Oh(e,a,u)}}s||(s=new Mt);var f=s.get(e);if(f)return f;s.set(e,o),kh(e)?e.forEach(function(d){o.add(Ie(d,t,r,d,e,s))}):Ch(e)&&e.forEach(function(d,m){o.set(m,Ie(d,t,r,m,e,s))});var h=Kf,p=l?void 0:h(e);return _u(p||e,function(d,m){p&&(m=d,d=e[m]),as(o,m,Ie(d,t,r,m,e,s))}),o}var up=1,cp=4;function ii(e){return Ie(e,up|cp)}var si=bt?bt.prototype:void 0;si&&si.valueOf;function lp(e){return function(t,r,n){for(var i=-1,s=Object(t),o=n(t),u=o.length;u--;){var l=o[++i];if(r(s[l],l,s)===!1)break}return t}}var fp=lp();const hp=fp;var pp=function(){return gt.Date.now()};const mr=pp;var dp="Expected a function",mp=Math.max,gp=Math.min;function Qs(e,t,r){var n,i,s,o,u,l,a=0,c=!1,f=!1,h=!0;if(typeof e!="function")throw new TypeError(dp);t=Dn(t)||0,ct(r)&&(c=!!r.leading,f="maxWait"in r,s=f?mp(Dn(r.maxWait)||0,t):s,h="trailing"in r?!!r.trailing:h);function p(g){var x=n,A=i;return n=i=void 0,a=g,o=e.apply(A,x),o}function d(g){return a=g,u=setTimeout(_,t),c?p(g):o}function m(g){var x=g-l,A=g-a,U=t-x;return f?gp(U,s-A):U}function b(g){var x=g-l,A=g-a;return l===void 0||x>=t||x<0||f&&A>=s}function _(){var g=mr();if(b(g))return y(g);u=setTimeout(_,m(g))}function y(g){return u=void 0,h&&n?p(g):(n=i=void 0,o)}function v(){u!==void 0&&clearTimeout(u),a=0,n=l=i=u=void 0}function w(){return u===void 0?o:y(mr())}function S(){var g=mr(),x=b(g);if(n=arguments,i=this,l=g,x){if(u===void 0)return d(l);if(f)return clearTimeout(u),u=setTimeout(_,t),p(l)}return u===void 0&&(u=setTimeout(_,t)),o}return S.cancel=v,S.flush=w,S}function Ur(e,t,r){(r!==void 0&&!Ee(e[t],r)||r===void 0&&!(t in e))&&an(e,t,r)}function yp(e){return _t(e)&&Ge(e)}function Lr(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}function vp(e){return us(e,fn(e))}function bp(e,t,r,n,i,s,o){var u=Lr(e,r),l=Lr(t,r),a=o.get(l);if(a){Ur(e,r,a);return}var c=s?s(u,l,r+"",e,t,o):void 0,f=c===void 0;if(f){var h=Vt(l),p=!h&&cn(l),d=!h&&!p&&ms(l);c=l,h||p||d?Vt(u)?c=u:yp(u)?c=lu(u):p?(f=!1,c=Ks(l,!0)):d?(f=!1,c=Ws(l,!0)):c=[]:_s(l)||Nr(l)?(c=u,Nr(u)?c=vp(u):(!ct(u)||Ht(u))&&(c=Js(l))):f=!1}f&&(o.set(l,c),i(c,l,n,s,o),o.delete(l)),Ur(e,r,c)}function Xs(e,t,r,n,i){e!==t&&hp(t,function(s,o){if(i||(i=new Mt),ct(s))bp(e,t,o,r,Xs,n,i);else{var u=n?n(Lr(e,o),s,o+"",e,t,i):void 0;u===void 0&&(u=s),Ur(e,o,u)}},fn)}var wp={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},_p=Ds(wp);const Ep=_p;var to=/[&<>"']/g,Sp=RegExp(to.source);function xp(e){return e=se(e),e&&Sp.test(e)?e.replace(to,Ep):e}var Tp="[object String]";function Dt(e){return typeof e=="string"||!Vt(e)&&_t(e)&&Tt(e)==Tp}function Rp(e,t){return rs(t,function(r){return e[r]})}wt&&wt.isArrayBuffer;wt&&wt.isDate;var Ap=fs(function(e,t,r){Xs(e,t,r)});const de=Ap;var eo=Object.prototype,$p=eo.hasOwnProperty;function oi(e,t,r,n){return e===void 0||Ee(e,eo[r])&&!$p.call(n,r)?t:e}var Op={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"};function jp(e){return"\\"+Op[e]}var Dp=/<%=([\s\S]+?)%>/g;const ro=Dp;var Bp=/<%-([\s\S]+?)%>/g;const Cp=Bp;var Np=/<%([\s\S]+?)%>/g;const Ip=Np;var Pp={escape:Cp,evaluate:Ip,interpolate:ro,variable:"",imports:{_:{escape:xp}}};const ai=Pp;var kp="Invalid `variable` option passed into `_.template`",Fp=/\b__p \+= '';/g,Mp=/\b(__p \+=) '' \+/g,Up=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Lp=/[()=,{}\[\]\/\s]/,Vp=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Re=/($^)/,Hp=/['\n\r\u2028\u2029\\]/g,qp=Object.prototype,ui=qp.hasOwnProperty;function zp(e,t,r){var n=ai.imports._.templateSettings||ai;e=se(e),t=Mn({},t,n,oi);var i=Mn({},t.imports,n.imports,oi),s=vs(i),o=Rp(i,s),u,l,a=0,c=t.interpolate||Re,f="__p += '",h=RegExp((t.escape||Re).source+"|"+c.source+"|"+(c===ro?Vp:Re).source+"|"+(t.evaluate||Re).source+"|$","g"),p=ui.call(t,"sourceURL")?"//# sourceURL="+(t.sourceURL+"").replace(/\s/g," ")+`
3
- `:"";e.replace(h,function(b,_,y,v,w,S){return y||(y=v),f+=e.slice(a,S).replace(Hp,jp),_&&(u=!0,f+=`' +
2
+ var la=Object.defineProperty,fa=Object.defineProperties;var ha=Object.getOwnPropertyDescriptors;var En=Object.getOwnPropertySymbols;var pa=Object.prototype.hasOwnProperty,da=Object.prototype.propertyIsEnumerable;var Jt=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),ma=e=>{throw TypeError(e)};var lr=(e,t,r)=>t in e?la(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,V=(e,t)=>{for(var r in t||(t={}))pa.call(t,r)&&lr(e,r,t[r]);if(En)for(var r of En(t))da.call(t,r)&&lr(e,r,t[r]);return e},et=(e,t)=>fa(e,ha(t));var z=(e,t,r)=>lr(e,typeof t!="symbol"?t+"":t,r);var k=(e,t,r)=>new Promise((n,i)=>{var s=l=>{try{a(r.next(l))}catch(u){i(u)}},o=l=>{try{a(r.throw(l))}catch(u){i(u)}},a=l=>l.done?n(l.value):Promise.resolve(l.value).then(s,o);a((r=r.apply(e,t)).next())}),It=function(e,t){this[0]=e,this[1]=t},fr=(e,t,r)=>{var n=(o,a,l,u)=>{try{var c=r[o](a),f=(a=c.value)instanceof It,h=c.done;Promise.resolve(f?a[0]:a).then(p=>f?n(o==="return"?o:"next",a[1]?{done:p.done,value:p.value}:p,l,u):l({value:p,done:h})).catch(p=>n("throw",p,l,u))}catch(p){u(p)}},i=o=>s[o]=a=>new Promise((l,u)=>n(o,a,l,u)),s={};return r=r.apply(e,t),s[Jt("asyncIterator")]=()=>s,i("next"),i("throw"),i("return"),s},hr=e=>{var t=e[Jt("asyncIterator")],r=!1,n,i={};return t==null?(t=e[Jt("iterator")](),n=s=>i[s]=o=>t[s](o)):(t=t.call(e),n=s=>i[s]=o=>{if(r){if(r=!1,s==="throw")throw o;return o}return r=!0,{done:!1,value:new It(new Promise(a=>{var l=t[s](o);l instanceof Object||ma("Object expected"),a(l)}),1)}}),i[Jt("iterator")]=()=>i,n("next"),"throw"in t?n("throw"):i.throw=s=>{throw s},"return"in t&&n("return"),i},Sn=(e,t,r)=>(t=e[Jt("asyncIterator")])?t.call(e):(e=e[Jt("iterator")](),t={},r=(n,i)=>(i=e[n])&&(t[n]=s=>new Promise((o,a,l)=>(s=i.call(e,s),l=s.done,Promise.resolve(s.value).then(u=>o({value:u,done:l}),a)))),r("next"),r("return"),t);import{d as Qi,g as xn,h as Br,r as ga,z as Ye,i as ya}from"./@dcloudio-uni-h5-vue-Dkyr-yjK.js";import{useRoute as va}from"./vue-router-BPElbjFz.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 r(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=r(i);fetch(i.href,s)}})();const ba="modulepreload",wa=function(e,t){return new URL(e,t).href},Tn={},Rn=function(t,r,n){let i=Promise.resolve();if(r&&r.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 a=document.getElementsByTagName("link"),l=document.querySelector("meta[property=csp-nonce]"),u=(l==null?void 0:l.nonce)||(l==null?void 0:l.getAttribute("nonce"));i=o(r.map(c=>{if(c=wa(c,n),c in Tn)return;Tn[c]=!0;const f=c.endsWith(".css"),h=f?'[rel="stylesheet"]':"";if(!!n)for(let m=a.length-1;m>=0;m--){const b=a[m];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":ba,f||(d.as="script"),d.crossOrigin="",d.href=c,u&&d.setAttribute("nonce",u),document.head.appendChild(d),f)return new Promise((m,b)=>{d.addEventListener("load",m),d.addEventListener("error",()=>b(new Error(`Unable to preload CSS for ${c}`)))})}))}function s(o){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=o,window.dispatchEvent(a),!a.defaultPrevented)throw o}return i.then(o=>{for(const a of o||[])a.status==="rejected"&&s(a.reason);return t().catch(s)})};var _a={ENV_TYPE:"live",NODE_ENV:"production"},Ea=typeof global=="object"&&global&&global.Object===Object&&global;const Xi=Ea;var Sa=typeof self=="object"&&self&&self.Object===Object&&self,xa=Xi||Sa||Function("return this")();const gt=xa;var Ta=gt.Symbol;const bt=Ta;var ts=Object.prototype,Ra=ts.hasOwnProperty,Aa=ts.toString,fe=bt?bt.toStringTag:void 0;function $a(e){var t=Ra.call(e,fe),r=e[fe];try{e[fe]=void 0;var n=!0}catch(s){}var i=Aa.call(e);return n&&(t?e[fe]=r:delete e[fe]),i}var Oa=Object.prototype,ja=Oa.toString;function Da(e){return ja.call(e)}var Ba="[object Null]",Ca="[object Undefined]",An=bt?bt.toStringTag:void 0;function Tt(e){return e==null?e===void 0?Ca:Ba:An&&An in Object(e)?$a(e):Da(e)}function _t(e){return e!=null&&typeof e=="object"}var Na="[object Symbol]";function es(e){return typeof e=="symbol"||_t(e)&&Tt(e)==Na}function rs(e,t){for(var r=-1,n=e==null?0:e.length,i=Array(n);++r<n;)i[r]=t(e[r],r,e);return i}var Ia=Array.isArray;const Vt=Ia;var $n=bt?bt.prototype:void 0,On=$n?$n.toString:void 0;function ns(e){if(typeof e=="string")return e;if(Vt(e))return rs(e,ns)+"";if(es(e))return On?On.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var Pa=/\s/;function ka(e){for(var t=e.length;t--&&Pa.test(e.charAt(t)););return t}var Fa=/^\s+/;function Ma(e){return e&&e.slice(0,ka(e)+1).replace(Fa,"")}function ct(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var jn=NaN,Ua=/^[-+]0x[0-9a-f]+$/i,La=/^0b[01]+$/i,Va=/^0o[0-7]+$/i,Ha=parseInt;function Dn(e){if(typeof e=="number")return e;if(es(e))return jn;if(ct(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=ct(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=Ma(e);var r=La.test(e);return r||Va.test(e)?Ha(e.slice(2),r?2:8):Ua.test(e)?jn:+e}function is(e){return e}var qa="[object AsyncFunction]",za="[object Function]",Ka="[object GeneratorFunction]",Wa="[object Proxy]";function Ht(e){if(!ct(e))return!1;var t=Tt(e);return t==za||t==Ka||t==qa||t==Wa}var Ja=gt["__core-js_shared__"];const pr=Ja;var Bn=(function(){var e=/[^.]+$/.exec(pr&&pr.keys&&pr.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})();function Ya(e){return!!Bn&&Bn in e}var Ga=Function.prototype,Za=Ga.toString;function zt(e){if(e!=null){try{return Za.call(e)}catch(t){}try{return e+""}catch(t){}}return""}var Qa=/[\\^$.*+?()[\]{}|]/g,Xa=/^\[object .+?Constructor\]$/,tu=Function.prototype,eu=Object.prototype,ru=tu.toString,nu=eu.hasOwnProperty,iu=RegExp("^"+ru.call(nu).replace(Qa,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function su(e){if(!ct(e)||Ya(e))return!1;var t=Ht(e)?iu:Xa;return t.test(zt(e))}function ou(e,t){return e==null?void 0:e[t]}function Kt(e,t){var r=ou(e,t);return su(r)?r:void 0}var au=Kt(gt,"WeakMap");const Cr=au;var Cn=Object.create,uu=(function(){function e(){}return function(t){if(!ct(t))return{};if(Cn)return Cn(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}})();const cu=uu;function ss(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}function lu(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}var fu=800,hu=16,pu=Date.now;function du(e){var t=0,r=0;return function(){var n=pu(),i=hu-(n-r);if(r=n,i>0){if(++t>=fu)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function mu(e){return function(){return e}}var gu=(function(){try{var e=Kt(Object,"defineProperty");return e({},"",{}),e}catch(t){}})();const He=gu;var yu=He?function(e,t){return He(e,"toString",{configurable:!0,enumerable:!1,value:mu(t),writable:!0})}:is;const vu=yu;var bu=du(vu);const wu=bu;function _u(e,t){for(var r=-1,n=e==null?0:e.length;++r<n&&t(e[r],r,e)!==!1;);return e}var Eu=9007199254740991,Su=/^(?:0|[1-9]\d*)$/;function os(e,t){var r=typeof e;return t=t!=null?t:Eu,!!t&&(r=="number"||r!="symbol"&&Su.test(e))&&e>-1&&e%1==0&&e<t}function an(e,t,r){t=="__proto__"&&He?He(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function Ee(e,t){return e===t||e!==e&&t!==t}var xu=Object.prototype,Tu=xu.hasOwnProperty;function as(e,t,r){var n=e[t];(!(Tu.call(e,t)&&Ee(n,r))||r===void 0&&!(t in e))&&an(e,t,r)}function us(e,t,r,n){var i=!r;r||(r={});for(var s=-1,o=t.length;++s<o;){var a=t[s],l=n?n(r[a],e[a],a,r,e):void 0;l===void 0&&(l=e[a]),i?an(r,a,l):as(r,a,l)}return r}var Nn=Math.max;function Ru(e,t,r){return t=Nn(t===void 0?e.length-1:t,0),function(){for(var n=arguments,i=-1,s=Nn(n.length-t,0),o=Array(s);++i<s;)o[i]=n[t+i];i=-1;for(var a=Array(t+1);++i<t;)a[i]=n[i];return a[t]=r(o),ss(e,this,a)}}function cs(e,t){return wu(Ru(e,t,is),e+"")}var Au=9007199254740991;function ls(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Au}function Ge(e){return e!=null&&ls(e.length)&&!Ht(e)}function $u(e,t,r){if(!ct(r))return!1;var n=typeof t;return(n=="number"?Ge(r)&&os(t,r.length):n=="string"&&t in r)?Ee(r[t],e):!1}function fs(e){return cs(function(t,r){var n=-1,i=r.length,s=i>1?r[i-1]:void 0,o=i>2?r[2]:void 0;for(s=e.length>3&&typeof s=="function"?(i--,s):void 0,o&&$u(r[0],r[1],o)&&(s=i<3?void 0:s,i=1),t=Object(t);++n<i;){var a=r[n];a&&e(t,a,n,s)}return t})}var Ou=Object.prototype;function un(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||Ou;return e===r}function ju(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var Du="[object Arguments]";function In(e){return _t(e)&&Tt(e)==Du}var hs=Object.prototype,Bu=hs.hasOwnProperty,Cu=hs.propertyIsEnumerable,Nu=In((function(){return arguments})())?In:function(e){return _t(e)&&Bu.call(e,"callee")&&!Cu.call(e,"callee")};const Nr=Nu;function Iu(){return!1}var ps=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Pn=ps&&typeof module=="object"&&module&&!module.nodeType&&module,Pu=Pn&&Pn.exports===ps,kn=Pu?gt.Buffer:void 0,ku=kn?kn.isBuffer:void 0,Fu=ku||Iu;const cn=Fu;var Mu="[object Arguments]",Uu="[object Array]",Lu="[object Boolean]",Vu="[object Date]",Hu="[object Error]",qu="[object Function]",zu="[object Map]",Ku="[object Number]",Wu="[object Object]",Ju="[object RegExp]",Yu="[object Set]",Gu="[object String]",Zu="[object WeakMap]",Qu="[object ArrayBuffer]",Xu="[object DataView]",tc="[object Float32Array]",ec="[object Float64Array]",rc="[object Int8Array]",nc="[object Int16Array]",ic="[object Int32Array]",sc="[object Uint8Array]",oc="[object Uint8ClampedArray]",ac="[object Uint16Array]",uc="[object Uint32Array]",G={};G[tc]=G[ec]=G[rc]=G[nc]=G[ic]=G[sc]=G[oc]=G[ac]=G[uc]=!0,G[Mu]=G[Uu]=G[Qu]=G[Lu]=G[Xu]=G[Vu]=G[Hu]=G[qu]=G[zu]=G[Ku]=G[Wu]=G[Ju]=G[Yu]=G[Gu]=G[Zu]=!1;function cc(e){return _t(e)&&ls(e.length)&&!!G[Tt(e)]}function ln(e){return function(t){return e(t)}}var ds=typeof exports=="object"&&exports&&!exports.nodeType&&exports,ge=ds&&typeof module=="object"&&module&&!module.nodeType&&module,lc=ge&&ge.exports===ds,dr=lc&&Xi.process,fc=(function(){try{var e=ge&&ge.require&&ge.require("util").types;return e||dr&&dr.binding&&dr.binding("util")}catch(t){}})();const wt=fc;var Fn=wt&&wt.isTypedArray,hc=Fn?ln(Fn):cc;const ms=hc;var pc=Object.prototype,dc=pc.hasOwnProperty;function gs(e,t){var r=Vt(e),n=!r&&Nr(e),i=!r&&!n&&cn(e),s=!r&&!n&&!i&&ms(e),o=r||n||i||s,a=o?ju(e.length,String):[],l=a.length;for(var u in e)(t||dc.call(e,u))&&!(o&&(u=="length"||i&&(u=="offset"||u=="parent")||s&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||os(u,l)))&&a.push(u);return a}function ys(e,t){return function(r){return e(t(r))}}var mc=ys(Object.keys,Object);const gc=mc;var yc=Object.prototype,vc=yc.hasOwnProperty;function bc(e){if(!un(e))return gc(e);var t=[];for(var r in Object(e))vc.call(e,r)&&r!="constructor"&&t.push(r);return t}function vs(e){return Ge(e)?gs(e):bc(e)}function wc(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var _c=Object.prototype,Ec=_c.hasOwnProperty;function Sc(e){if(!ct(e))return wc(e);var t=un(e),r=[];for(var n in e)n=="constructor"&&(t||!Ec.call(e,n))||r.push(n);return r}function fn(e){return Ge(e)?gs(e,!0):Sc(e)}var xc=fs(function(e,t,r,n){us(t,fn(t),e,n)});const Mn=xc;var Tc=Kt(Object,"create");const ye=Tc;function Rc(){this.__data__=ye?ye(null):{},this.size=0}function Ac(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var $c="__lodash_hash_undefined__",Oc=Object.prototype,jc=Oc.hasOwnProperty;function Dc(e){var t=this.__data__;if(ye){var r=t[e];return r===$c?void 0:r}return jc.call(t,e)?t[e]:void 0}var Bc=Object.prototype,Cc=Bc.hasOwnProperty;function Nc(e){var t=this.__data__;return ye?t[e]!==void 0:Cc.call(t,e)}var Ic="__lodash_hash_undefined__";function Pc(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=ye&&t===void 0?Ic:t,this}function Ft(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Ft.prototype.clear=Rc,Ft.prototype.delete=Ac,Ft.prototype.get=Dc,Ft.prototype.has=Nc,Ft.prototype.set=Pc;function kc(){this.__data__=[],this.size=0}function Ze(e,t){for(var r=e.length;r--;)if(Ee(e[r][0],t))return r;return-1}var Fc=Array.prototype,Mc=Fc.splice;function Uc(e){var t=this.__data__,r=Ze(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():Mc.call(t,r,1),--this.size,!0}function Lc(e){var t=this.__data__,r=Ze(t,e);return r<0?void 0:t[r][1]}function Vc(e){return Ze(this.__data__,e)>-1}function Hc(e,t){var r=this.__data__,n=Ze(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}function xt(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}xt.prototype.clear=kc,xt.prototype.delete=Uc,xt.prototype.get=Lc,xt.prototype.has=Vc,xt.prototype.set=Hc;var qc=Kt(gt,"Map");const ve=qc;function zc(){this.size=0,this.__data__={hash:new Ft,map:new(ve||xt),string:new Ft}}function Kc(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Qe(e,t){var r=e.__data__;return Kc(t)?r[typeof t=="string"?"string":"hash"]:r.map}function Wc(e){var t=Qe(this,e).delete(e);return this.size-=t?1:0,t}function Jc(e){return Qe(this,e).get(e)}function Yc(e){return Qe(this,e).has(e)}function Gc(e,t){var r=Qe(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}function Ot(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Ot.prototype.clear=zc,Ot.prototype.delete=Wc,Ot.prototype.get=Jc,Ot.prototype.has=Yc,Ot.prototype.set=Gc;var Zc="Expected a function";function hn(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(Zc);var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],s=r.cache;if(s.has(i))return s.get(i);var o=e.apply(this,n);return r.cache=s.set(i,o)||s,o};return r.cache=new(hn.Cache||Ot),r}hn.Cache=Ot;var Qc=500;function Xc(e){var t=hn(e,function(n){return r.size===Qc&&r.clear(),n}),r=t.cache;return t}var tl=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,el=/\\(\\)?/g;Xc(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(tl,function(r,n,i,s){t.push(i?s.replace(el,"$1"):n||r)}),t});function se(e){return e==null?"":ns(e)}function rl(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}var nl=ys(Object.getPrototypeOf,Object);const bs=nl;var il="[object Object]",sl=Function.prototype,ol=Object.prototype,ws=sl.toString,al=ol.hasOwnProperty,ul=ws.call(Object);function _s(e){if(!_t(e)||Tt(e)!=il)return!1;var t=bs(e);if(t===null)return!0;var r=al.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&ws.call(r)==ul}var cl="[object DOMException]",ll="[object Error]";function Es(e){if(!_t(e))return!1;var t=Tt(e);return t==ll||t==cl||typeof e.message=="string"&&typeof e.name=="string"&&!_s(e)}var fl=cs(function(e,t){try{return ss(e,void 0,t)}catch(r){return Es(r)?r:new Error(r)}});const hl=fl;function pl(e,t,r){var n=-1,i=e.length;t<0&&(t=-t>i?0:i+t),r=r>i?i:r,r<0&&(r+=i),i=t>r?0:r-t>>>0,t>>>=0;for(var s=Array(i);++n<i;)s[n]=e[n+t];return s}function dl(e,t,r){var n=e.length;return r=r===void 0?n:r,!t&&r>=n?e:pl(e,t,r)}var ml="\\ud800-\\udfff",gl="\\u0300-\\u036f",yl="\\ufe20-\\ufe2f",vl="\\u20d0-\\u20ff",bl=gl+yl+vl,wl="\\ufe0e\\ufe0f",_l="\\u200d",El=RegExp("["+_l+ml+bl+wl+"]");function Ss(e){return El.test(e)}function Sl(e){return e.split("")}var xs="\\ud800-\\udfff",xl="\\u0300-\\u036f",Tl="\\ufe20-\\ufe2f",Rl="\\u20d0-\\u20ff",Al=xl+Tl+Rl,$l="\\ufe0e\\ufe0f",Ol="["+xs+"]",Ir="["+Al+"]",Pr="\\ud83c[\\udffb-\\udfff]",jl="(?:"+Ir+"|"+Pr+")",Ts="[^"+xs+"]",Rs="(?:\\ud83c[\\udde6-\\uddff]){2}",As="[\\ud800-\\udbff][\\udc00-\\udfff]",Dl="\\u200d",$s=jl+"?",Os="["+$l+"]?",Bl="(?:"+Dl+"(?:"+[Ts,Rs,As].join("|")+")"+Os+$s+")*",Cl=Os+$s+Bl,Nl="(?:"+[Ts+Ir+"?",Ir,Rs,As,Ol].join("|")+")",Il=RegExp(Pr+"(?="+Pr+")|"+Nl+Cl,"g");function Pl(e){return e.match(Il)||[]}function kl(e){return Ss(e)?Pl(e):Sl(e)}function Fl(e){return function(t){t=se(t);var r=Ss(t)?kl(t):void 0,n=r?r[0]:t.charAt(0),i=r?dl(r,1).join(""):t.slice(1);return n[e]()+i}}var Ml=Fl("toUpperCase");const js=Ml;function Ul(e){return js(se(e).toLowerCase())}function Ll(e,t,r,n){var i=-1,s=e==null?0:e.length;for(n;++i<s;)r=t(r,e[i],i,e);return r}function Ds(e){return function(t){return e==null?void 0:e[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"},Hl=Ds(Vl);const ql=Hl;var zl=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Kl="\\u0300-\\u036f",Wl="\\ufe20-\\ufe2f",Jl="\\u20d0-\\u20ff",Yl=Kl+Wl+Jl,Gl="["+Yl+"]",Zl=RegExp(Gl,"g");function Ql(e){return e=se(e),e&&e.replace(zl,ql).replace(Zl,"")}var Xl=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function tf(e){return e.match(Xl)||[]}var ef=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function rf(e){return ef.test(e)}var Bs="\\ud800-\\udfff",nf="\\u0300-\\u036f",sf="\\ufe20-\\ufe2f",of="\\u20d0-\\u20ff",af=nf+sf+of,Cs="\\u2700-\\u27bf",Ns="a-z\\xdf-\\xf6\\xf8-\\xff",uf="\\xac\\xb1\\xd7\\xf7",cf="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",lf="\\u2000-\\u206f",ff=" \\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",Is="A-Z\\xc0-\\xd6\\xd8-\\xde",hf="\\ufe0e\\ufe0f",Ps=uf+cf+lf+ff,ks="['’]",Un="["+Ps+"]",pf="["+af+"]",Fs="\\d+",df="["+Cs+"]",Ms="["+Ns+"]",Us="[^"+Bs+Ps+Fs+Cs+Ns+Is+"]",mf="\\ud83c[\\udffb-\\udfff]",gf="(?:"+pf+"|"+mf+")",yf="[^"+Bs+"]",Ls="(?:\\ud83c[\\udde6-\\uddff]){2}",Vs="[\\ud800-\\udbff][\\udc00-\\udfff]",Qt="["+Is+"]",vf="\\u200d",Ln="(?:"+Ms+"|"+Us+")",bf="(?:"+Qt+"|"+Us+")",Vn="(?:"+ks+"(?:d|ll|m|re|s|t|ve))?",Hn="(?:"+ks+"(?:D|LL|M|RE|S|T|VE))?",Hs=gf+"?",qs="["+hf+"]?",wf="(?:"+vf+"(?:"+[yf,Ls,Vs].join("|")+")"+qs+Hs+")*",_f="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Ef="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Sf=qs+Hs+wf,xf="(?:"+[df,Ls,Vs].join("|")+")"+Sf,Tf=RegExp([Qt+"?"+Ms+"+"+Vn+"(?="+[Un,Qt,"$"].join("|")+")",bf+"+"+Hn+"(?="+[Un,Qt+Ln,"$"].join("|")+")",Qt+"?"+Ln+"+"+Vn,Qt+"+"+Hn,Ef,_f,Fs,xf].join("|"),"g");function Rf(e){return e.match(Tf)||[]}function Af(e,t,r){return e=se(e),t=t,t===void 0?rf(e)?Rf(e):tf(e):e.match(t)||[]}var $f="['’]",Of=RegExp($f,"g");function jf(e){return function(t){return Ll(Af(Ql(t).replace(Of,"")),e,"")}}var Df=jf(function(e,t,r){return t=t.toLowerCase(),e+(r?Ul(t):t)});const Et=Df;function Bf(){this.__data__=new xt,this.size=0}function Cf(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function Nf(e){return this.__data__.get(e)}function If(e){return this.__data__.has(e)}var Pf=200;function kf(e,t){var r=this.__data__;if(r instanceof xt){var n=r.__data__;if(!ve||n.length<Pf-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new Ot(n)}return r.set(e,t),this.size=r.size,this}function Mt(e){var t=this.__data__=new xt(e);this.size=t.size}Mt.prototype.clear=Bf,Mt.prototype.delete=Cf,Mt.prototype.get=Nf,Mt.prototype.has=If,Mt.prototype.set=kf;var zs=typeof exports=="object"&&exports&&!exports.nodeType&&exports,qn=zs&&typeof module=="object"&&module&&!module.nodeType&&module,Ff=qn&&qn.exports===zs,zn=Ff?gt.Buffer:void 0,Kn=zn?zn.allocUnsafe:void 0;function Ks(e,t){if(t)return e.slice();var r=e.length,n=Kn?Kn(r):new e.constructor(r);return e.copy(n),n}function Mf(e,t){for(var r=-1,n=e==null?0:e.length,i=0,s=[];++r<n;){var o=e[r];t(o,r,e)&&(s[i++]=o)}return s}function Uf(){return[]}var Lf=Object.prototype,Vf=Lf.propertyIsEnumerable,Wn=Object.getOwnPropertySymbols,Hf=Wn?function(e){return e==null?[]:(e=Object(e),Mf(Wn(e),function(t){return Vf.call(e,t)}))}:Uf;const qf=Hf;function zf(e,t,r){var n=t(e);return Vt(e)?n:rl(n,r(e))}function Kf(e){return zf(e,vs,qf)}var Wf=Kt(gt,"DataView");const kr=Wf;var Jf=Kt(gt,"Promise");const Fr=Jf;var Yf=Kt(gt,"Set");const Mr=Yf;var Jn="[object Map]",Gf="[object Object]",Yn="[object Promise]",Gn="[object Set]",Zn="[object WeakMap]",Qn="[object DataView]",Zf=zt(kr),Qf=zt(ve),Xf=zt(Fr),th=zt(Mr),eh=zt(Cr),kt=Tt;(kr&&kt(new kr(new ArrayBuffer(1)))!=Qn||ve&&kt(new ve)!=Jn||Fr&&kt(Fr.resolve())!=Yn||Mr&&kt(new Mr)!=Gn||Cr&&kt(new Cr)!=Zn)&&(kt=function(e){var t=Tt(e),r=t==Gf?e.constructor:void 0,n=r?zt(r):"";if(n)switch(n){case Zf:return Qn;case Qf:return Jn;case Xf:return Yn;case th:return Gn;case eh:return Zn}return t});const pn=kt;var rh=Object.prototype,nh=rh.hasOwnProperty;function ih(e){var t=e.length,r=new e.constructor(t);return t&&typeof e[0]=="string"&&nh.call(e,"index")&&(r.index=e.index,r.input=e.input),r}var sh=gt.Uint8Array;const Xn=sh;function dn(e){var t=new e.constructor(e.byteLength);return new Xn(t).set(new Xn(e)),t}function oh(e,t){var r=dn(e.buffer);return new e.constructor(r,e.byteOffset,e.byteLength)}var ah=/\w*$/;function uh(e){var t=new e.constructor(e.source,ah.exec(e));return t.lastIndex=e.lastIndex,t}var ti=bt?bt.prototype:void 0,ei=ti?ti.valueOf:void 0;function ch(e){return ei?Object(ei.call(e)):{}}function Ws(e,t){var r=t?dn(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}var lh="[object Boolean]",fh="[object Date]",hh="[object Map]",ph="[object Number]",dh="[object RegExp]",mh="[object Set]",gh="[object String]",yh="[object Symbol]",vh="[object ArrayBuffer]",bh="[object DataView]",wh="[object Float32Array]",_h="[object Float64Array]",Eh="[object Int8Array]",Sh="[object Int16Array]",xh="[object Int32Array]",Th="[object Uint8Array]",Rh="[object Uint8ClampedArray]",Ah="[object Uint16Array]",$h="[object Uint32Array]";function Oh(e,t,r){var n=e.constructor;switch(t){case vh:return dn(e);case lh:case fh:return new n(+e);case bh:return oh(e);case wh:case _h:case Eh:case Sh:case xh:case Th:case Rh:case Ah:case $h:return Ws(e,r);case hh:return new n;case ph:case gh:return new n(e);case dh:return uh(e);case mh:return new n;case yh:return ch(e)}}function Js(e){return typeof e.constructor=="function"&&!un(e)?cu(bs(e)):{}}var jh="[object Map]";function Dh(e){return _t(e)&&pn(e)==jh}var ri=wt&&wt.isMap,Bh=ri?ln(ri):Dh;const Ch=Bh;var Nh="[object Set]";function Ih(e){return _t(e)&&pn(e)==Nh}var ni=wt&&wt.isSet,Ph=ni?ln(ni):Ih;const kh=Ph;var Fh=1,Ys="[object Arguments]",Mh="[object Array]",Uh="[object Boolean]",Lh="[object Date]",Vh="[object Error]",Gs="[object Function]",Hh="[object GeneratorFunction]",qh="[object Map]",zh="[object Number]",Zs="[object Object]",Kh="[object RegExp]",Wh="[object Set]",Jh="[object String]",Yh="[object Symbol]",Gh="[object WeakMap]",Zh="[object ArrayBuffer]",Qh="[object DataView]",Xh="[object Float32Array]",tp="[object Float64Array]",ep="[object Int8Array]",rp="[object Int16Array]",np="[object Int32Array]",ip="[object Uint8Array]",sp="[object Uint8ClampedArray]",op="[object Uint16Array]",ap="[object Uint32Array]",Y={};Y[Ys]=Y[Mh]=Y[Zh]=Y[Qh]=Y[Uh]=Y[Lh]=Y[Xh]=Y[tp]=Y[ep]=Y[rp]=Y[np]=Y[qh]=Y[zh]=Y[Zs]=Y[Kh]=Y[Wh]=Y[Jh]=Y[Yh]=Y[ip]=Y[sp]=Y[op]=Y[ap]=!0,Y[Vh]=Y[Gs]=Y[Gh]=!1;function Ie(e,t,r,n,i,s){var o,a=t&Fh;if(o!==void 0)return o;if(!ct(e))return e;var l=Vt(e);if(l)o=ih(e);else{var u=pn(e),c=u==Gs||u==Hh;if(cn(e))return Ks(e,a);if(u==Zs||u==Ys||c&&!i)o=c?{}:Js(e);else{if(!Y[u])return i?e:{};o=Oh(e,u,a)}}s||(s=new Mt);var f=s.get(e);if(f)return f;s.set(e,o),kh(e)?e.forEach(function(d){o.add(Ie(d,t,r,d,e,s))}):Ch(e)&&e.forEach(function(d,m){o.set(m,Ie(d,t,r,m,e,s))});var h=Kf,p=l?void 0:h(e);return _u(p||e,function(d,m){p&&(m=d,d=e[m]),as(o,m,Ie(d,t,r,m,e,s))}),o}var up=1,cp=4;function ii(e){return Ie(e,up|cp)}var si=bt?bt.prototype:void 0;si&&si.valueOf;function lp(e){return function(t,r,n){for(var i=-1,s=Object(t),o=n(t),a=o.length;a--;){var l=o[++i];if(r(s[l],l,s)===!1)break}return t}}var fp=lp();const hp=fp;var pp=function(){return gt.Date.now()};const mr=pp;var dp="Expected a function",mp=Math.max,gp=Math.min;function Qs(e,t,r){var n,i,s,o,a,l,u=0,c=!1,f=!1,h=!0;if(typeof e!="function")throw new TypeError(dp);t=Dn(t)||0,ct(r)&&(c=!!r.leading,f="maxWait"in r,s=f?mp(Dn(r.maxWait)||0,t):s,h="trailing"in r?!!r.trailing:h);function p(g){var x=n,A=i;return n=i=void 0,u=g,o=e.apply(A,x),o}function d(g){return u=g,a=setTimeout(_,t),c?p(g):o}function m(g){var x=g-l,A=g-u,U=t-x;return f?gp(U,s-A):U}function b(g){var x=g-l,A=g-u;return l===void 0||x>=t||x<0||f&&A>=s}function _(){var g=mr();if(b(g))return y(g);a=setTimeout(_,m(g))}function y(g){return a=void 0,h&&n?p(g):(n=i=void 0,o)}function v(){a!==void 0&&clearTimeout(a),u=0,n=l=i=a=void 0}function w(){return a===void 0?o:y(mr())}function S(){var g=mr(),x=b(g);if(n=arguments,i=this,l=g,x){if(a===void 0)return d(l);if(f)return clearTimeout(a),a=setTimeout(_,t),p(l)}return a===void 0&&(a=setTimeout(_,t)),o}return S.cancel=v,S.flush=w,S}function Ur(e,t,r){(r!==void 0&&!Ee(e[t],r)||r===void 0&&!(t in e))&&an(e,t,r)}function yp(e){return _t(e)&&Ge(e)}function Lr(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}function vp(e){return us(e,fn(e))}function bp(e,t,r,n,i,s,o){var a=Lr(e,r),l=Lr(t,r),u=o.get(l);if(u){Ur(e,r,u);return}var c=s?s(a,l,r+"",e,t,o):void 0,f=c===void 0;if(f){var h=Vt(l),p=!h&&cn(l),d=!h&&!p&&ms(l);c=l,h||p||d?Vt(a)?c=a:yp(a)?c=lu(a):p?(f=!1,c=Ks(l,!0)):d?(f=!1,c=Ws(l,!0)):c=[]:_s(l)||Nr(l)?(c=a,Nr(a)?c=vp(a):(!ct(a)||Ht(a))&&(c=Js(l))):f=!1}f&&(o.set(l,c),i(c,l,n,s,o),o.delete(l)),Ur(e,r,c)}function Xs(e,t,r,n,i){e!==t&&hp(t,function(s,o){if(i||(i=new Mt),ct(s))bp(e,t,o,r,Xs,n,i);else{var a=n?n(Lr(e,o),s,o+"",e,t,i):void 0;a===void 0&&(a=s),Ur(e,o,a)}},fn)}var wp={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},_p=Ds(wp);const Ep=_p;var to=/[&<>"']/g,Sp=RegExp(to.source);function xp(e){return e=se(e),e&&Sp.test(e)?e.replace(to,Ep):e}var Tp="[object String]";function Dt(e){return typeof e=="string"||!Vt(e)&&_t(e)&&Tt(e)==Tp}function Rp(e,t){return rs(t,function(r){return e[r]})}wt&&wt.isArrayBuffer;wt&&wt.isDate;var Ap=fs(function(e,t,r){Xs(e,t,r)});const de=Ap;var eo=Object.prototype,$p=eo.hasOwnProperty;function oi(e,t,r,n){return e===void 0||Ee(e,eo[r])&&!$p.call(n,r)?t:e}var Op={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"};function jp(e){return"\\"+Op[e]}var Dp=/<%=([\s\S]+?)%>/g;const ro=Dp;var Bp=/<%-([\s\S]+?)%>/g;const Cp=Bp;var Np=/<%([\s\S]+?)%>/g;const Ip=Np;var Pp={escape:Cp,evaluate:Ip,interpolate:ro,variable:"",imports:{_:{escape:xp}}};const ai=Pp;var kp="Invalid `variable` option passed into `_.template`",Fp=/\b__p \+= '';/g,Mp=/\b(__p \+=) '' \+/g,Up=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Lp=/[()=,{}\[\]\/\s]/,Vp=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Re=/($^)/,Hp=/['\n\r\u2028\u2029\\]/g,qp=Object.prototype,ui=qp.hasOwnProperty;function zp(e,t,r){var n=ai.imports._.templateSettings||ai;e=se(e),t=Mn({},t,n,oi);var i=Mn({},t.imports,n.imports,oi),s=vs(i),o=Rp(i,s),a,l,u=0,c=t.interpolate||Re,f="__p += '",h=RegExp((t.escape||Re).source+"|"+c.source+"|"+(c===ro?Vp:Re).source+"|"+(t.evaluate||Re).source+"|$","g"),p=ui.call(t,"sourceURL")?"//# sourceURL="+(t.sourceURL+"").replace(/\s/g," ")+`
3
+ `:"";e.replace(h,function(b,_,y,v,w,S){return y||(y=v),f+=e.slice(u,S).replace(Hp,jp),_&&(a=!0,f+=`' +
4
4
  __e(`+_+`) +
5
5
  '`),w&&(l=!0,f+=`';
6
6
  `+w+`;
7
7
  __p += '`),y&&(f+=`' +
8
8
  ((__t = (`+y+`)) == null ? '' : __t) +
9
- '`),a=S+b.length,b}),f+=`';
9
+ '`),u=S+b.length,b}),f+=`';
10
10
  `;var d=ui.call(t,"variable")&&t.variable;if(!d)f=`with (obj) {
11
11
  `+f+`
12
12
  }
13
13
  `;else if(Lp.test(d))throw new Error(kp);f=(l?f.replace(Fp,""):f).replace(Mp,"$1").replace(Up,"$1;"),f="function("+(d||"obj")+`) {
14
14
  `+(d?"":`obj || (obj = {});
15
- `)+"var __t, __p = ''"+(u?", __e = _.escape":"")+(l?`, __j = Array.prototype.join;
15
+ `)+"var __t, __p = ''"+(a?", __e = _.escape":"")+(l?`, __j = Array.prototype.join;
16
16
  function print() { __p += __j.call(arguments, '') }
17
17
  `:`;
18
18
  `)+f+`return __p
19
- }`;var m=hl(function(){return Function(s,p+"return "+f).apply(void 0,o)});if(m.source=f,Es(m))throw m;return m}var Kp="Expected a function";function Wp(e,t,r){var n=!0,i=!0;if(typeof e!="function")throw new TypeError(Kp);return ct(r)&&(n="leading"in r?!0:n,i="trailing"in r?!1:i),Qs(e,t,{leading:n,maxWait:t,trailing:i})}var it=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function oe(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var no={exports:{}};function Jp(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var ci={exports:{}},li;function Bt(){return li||(li=1,(function(e,t){(function(r,n){e.exports=n()})(it,function(){var r=r||(function(n,i){var s;if(typeof window<"u"&&window.crypto&&(s=window.crypto),typeof self<"u"&&self.crypto&&(s=self.crypto),typeof globalThis<"u"&&globalThis.crypto&&(s=globalThis.crypto),!s&&typeof window<"u"&&window.msCrypto&&(s=window.msCrypto),!s&&typeof it<"u"&&it.crypto&&(s=it.crypto),!s&&typeof Jp=="function")try{s=require("crypto")}catch(y){}var o=function(){if(s){if(typeof s.getRandomValues=="function")try{return s.getRandomValues(new Uint32Array(1))[0]}catch(y){}if(typeof s.randomBytes=="function")try{return s.randomBytes(4).readInt32LE()}catch(y){}}throw new Error("Native crypto module could not be used to get secure random number.")},u=Object.create||(function(){function y(){}return function(v){var w;return y.prototype=v,w=new y,y.prototype=null,w}})(),l={},a=l.lib={},c=a.Base=(function(){return{extend:function(y){var v=u(this);return y&&v.mixIn(y),(!v.hasOwnProperty("init")||this.init===v.init)&&(v.init=function(){v.$super.init.apply(this,arguments)}),v.init.prototype=v,v.$super=this,v},create:function(){var y=this.extend();return y.init.apply(y,arguments),y},init:function(){},mixIn:function(y){for(var v in y)y.hasOwnProperty(v)&&(this[v]=y[v]);y.hasOwnProperty("toString")&&(this.toString=y.toString)},clone:function(){return this.init.prototype.extend(this)}}})(),f=a.WordArray=c.extend({init:function(y,v){y=this.words=y||[],v!=i?this.sigBytes=v:this.sigBytes=y.length*4},toString:function(y){return(y||p).stringify(this)},concat:function(y){var v=this.words,w=y.words,S=this.sigBytes,g=y.sigBytes;if(this.clamp(),S%4)for(var x=0;x<g;x++){var A=w[x>>>2]>>>24-x%4*8&255;v[S+x>>>2]|=A<<24-(S+x)%4*8}else for(var U=0;U<g;U+=4)v[S+U>>>2]=w[U>>>2];return this.sigBytes+=g,this},clamp:function(){var y=this.words,v=this.sigBytes;y[v>>>2]&=4294967295<<32-v%4*8,y.length=n.ceil(v/4)},clone:function(){var y=c.clone.call(this);return y.words=this.words.slice(0),y},random:function(y){for(var v=[],w=0;w<y;w+=4)v.push(o());return new f.init(v,y)}}),h=l.enc={},p=h.Hex={stringify:function(y){for(var v=y.words,w=y.sigBytes,S=[],g=0;g<w;g++){var x=v[g>>>2]>>>24-g%4*8&255;S.push((x>>>4).toString(16)),S.push((x&15).toString(16))}return S.join("")},parse:function(y){for(var v=y.length,w=[],S=0;S<v;S+=2)w[S>>>3]|=parseInt(y.substr(S,2),16)<<24-S%8*4;return new f.init(w,v/2)}},d=h.Latin1={stringify:function(y){for(var v=y.words,w=y.sigBytes,S=[],g=0;g<w;g++){var x=v[g>>>2]>>>24-g%4*8&255;S.push(String.fromCharCode(x))}return S.join("")},parse:function(y){for(var v=y.length,w=[],S=0;S<v;S++)w[S>>>2]|=(y.charCodeAt(S)&255)<<24-S%4*8;return new f.init(w,v)}},m=h.Utf8={stringify:function(y){try{return decodeURIComponent(escape(d.stringify(y)))}catch(v){throw new Error("Malformed UTF-8 data")}},parse:function(y){return d.parse(unescape(encodeURIComponent(y)))}},b=a.BufferedBlockAlgorithm=c.extend({reset:function(){this._data=new f.init,this._nDataBytes=0},_append:function(y){typeof y=="string"&&(y=m.parse(y)),this._data.concat(y),this._nDataBytes+=y.sigBytes},_process:function(y){var v,w=this._data,S=w.words,g=w.sigBytes,x=this.blockSize,A=x*4,U=g/A;y?U=n.ceil(U):U=n.max((U|0)-this._minBufferSize,0);var E=U*x,T=n.min(E*4,g);if(E){for(var F=0;F<E;F+=x)this._doProcessBlock(S,F);v=S.splice(0,E),w.sigBytes-=T}return new f.init(v,T)},clone:function(){var y=c.clone.call(this);return y._data=this._data.clone(),y},_minBufferSize:0});a.Hasher=b.extend({cfg:c.extend(),init:function(y){this.cfg=this.cfg.extend(y),this.reset()},reset:function(){b.reset.call(this),this._doReset()},update:function(y){return this._append(y),this._process(),this},finalize:function(y){y&&this._append(y);var v=this._doFinalize();return v},blockSize:16,_createHelper:function(y){return function(v,w){return new y.init(w).finalize(v)}},_createHmacHelper:function(y){return function(v,w){return new _.HMAC.init(y,w).finalize(v)}}});var _=l.algo={};return l})(Math);return r})})(ci)),ci.exports}(function(e,t){(function(r,n){e.exports=n(Bt())})(it,function(r){return(function(n){var i=r,s=i.lib,o=s.WordArray,u=s.Hasher,l=i.algo,a=[];(function(){for(var m=0;m<64;m++)a[m]=n.abs(n.sin(m+1))*4294967296|0})();var c=l.MD5=u.extend({_doReset:function(){this._hash=new o.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(m,b){for(var _=0;_<16;_++){var y=b+_,v=m[y];m[y]=(v<<8|v>>>24)&16711935|(v<<24|v>>>8)&4278255360}var w=this._hash.words,S=m[b+0],g=m[b+1],x=m[b+2],A=m[b+3],U=m[b+4],E=m[b+5],T=m[b+6],F=m[b+7],B=m[b+8],P=m[b+9],j=m[b+10],N=m[b+11],L=m[b+12],M=m[b+13],H=m[b+14],q=m[b+15],$=w[0],D=w[1],C=w[2],I=w[3];$=f($,D,C,I,S,7,a[0]),I=f(I,$,D,C,g,12,a[1]),C=f(C,I,$,D,x,17,a[2]),D=f(D,C,I,$,A,22,a[3]),$=f($,D,C,I,U,7,a[4]),I=f(I,$,D,C,E,12,a[5]),C=f(C,I,$,D,T,17,a[6]),D=f(D,C,I,$,F,22,a[7]),$=f($,D,C,I,B,7,a[8]),I=f(I,$,D,C,P,12,a[9]),C=f(C,I,$,D,j,17,a[10]),D=f(D,C,I,$,N,22,a[11]),$=f($,D,C,I,L,7,a[12]),I=f(I,$,D,C,M,12,a[13]),C=f(C,I,$,D,H,17,a[14]),D=f(D,C,I,$,q,22,a[15]),$=h($,D,C,I,g,5,a[16]),I=h(I,$,D,C,T,9,a[17]),C=h(C,I,$,D,N,14,a[18]),D=h(D,C,I,$,S,20,a[19]),$=h($,D,C,I,E,5,a[20]),I=h(I,$,D,C,j,9,a[21]),C=h(C,I,$,D,q,14,a[22]),D=h(D,C,I,$,U,20,a[23]),$=h($,D,C,I,P,5,a[24]),I=h(I,$,D,C,H,9,a[25]),C=h(C,I,$,D,A,14,a[26]),D=h(D,C,I,$,B,20,a[27]),$=h($,D,C,I,M,5,a[28]),I=h(I,$,D,C,x,9,a[29]),C=h(C,I,$,D,F,14,a[30]),D=h(D,C,I,$,L,20,a[31]),$=p($,D,C,I,E,4,a[32]),I=p(I,$,D,C,B,11,a[33]),C=p(C,I,$,D,N,16,a[34]),D=p(D,C,I,$,H,23,a[35]),$=p($,D,C,I,g,4,a[36]),I=p(I,$,D,C,U,11,a[37]),C=p(C,I,$,D,F,16,a[38]),D=p(D,C,I,$,j,23,a[39]),$=p($,D,C,I,M,4,a[40]),I=p(I,$,D,C,S,11,a[41]),C=p(C,I,$,D,A,16,a[42]),D=p(D,C,I,$,T,23,a[43]),$=p($,D,C,I,P,4,a[44]),I=p(I,$,D,C,L,11,a[45]),C=p(C,I,$,D,q,16,a[46]),D=p(D,C,I,$,x,23,a[47]),$=d($,D,C,I,S,6,a[48]),I=d(I,$,D,C,F,10,a[49]),C=d(C,I,$,D,H,15,a[50]),D=d(D,C,I,$,E,21,a[51]),$=d($,D,C,I,L,6,a[52]),I=d(I,$,D,C,A,10,a[53]),C=d(C,I,$,D,j,15,a[54]),D=d(D,C,I,$,g,21,a[55]),$=d($,D,C,I,B,6,a[56]),I=d(I,$,D,C,q,10,a[57]),C=d(C,I,$,D,T,15,a[58]),D=d(D,C,I,$,M,21,a[59]),$=d($,D,C,I,U,6,a[60]),I=d(I,$,D,C,N,10,a[61]),C=d(C,I,$,D,x,15,a[62]),D=d(D,C,I,$,P,21,a[63]),w[0]=w[0]+$|0,w[1]=w[1]+D|0,w[2]=w[2]+C|0,w[3]=w[3]+I|0},_doFinalize:function(){var m=this._data,b=m.words,_=this._nDataBytes*8,y=m.sigBytes*8;b[y>>>5]|=128<<24-y%32;var v=n.floor(_/4294967296),w=_;b[(y+64>>>9<<4)+15]=(v<<8|v>>>24)&16711935|(v<<24|v>>>8)&4278255360,b[(y+64>>>9<<4)+14]=(w<<8|w>>>24)&16711935|(w<<24|w>>>8)&4278255360,m.sigBytes=(b.length+1)*4,this._process();for(var S=this._hash,g=S.words,x=0;x<4;x++){var A=g[x];g[x]=(A<<8|A>>>24)&16711935|(A<<24|A>>>8)&4278255360}return S},clone:function(){var m=u.clone.call(this);return m._hash=this._hash.clone(),m}});function f(m,b,_,y,v,w,S){var g=m+(b&_|~b&y)+v+S;return(g<<w|g>>>32-w)+b}function h(m,b,_,y,v,w,S){var g=m+(b&y|_&~y)+v+S;return(g<<w|g>>>32-w)+b}function p(m,b,_,y,v,w,S){var g=m+(b^_^y)+v+S;return(g<<w|g>>>32-w)+b}function d(m,b,_,y,v,w,S){var g=m+(_^(b|~y))+v+S;return(g<<w|g>>>32-w)+b}i.MD5=u._createHelper(c),i.HmacMD5=u._createHmacHelper(c)})(Math),r.MD5})})(no);var io=no.exports;oe(io);var so={exports:{}};(function(e,t){(function(r,n){e.exports=n(Bt())})(it,function(r){return(function(){var n=r,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,m=a[p+1>>>2]>>>24-(p+1)%4*8&255,b=a[p+2>>>2]>>>24-(p+2)%4*8&255,_=d<<16|m<<8|b,y=0;y<4&&p+y*.75<c;y++)h.push(f.charAt(_>>>6*(3-y)&63));var v=f.charAt(64);if(v)for(;h.length%4;)h.push(v);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,m=c[l.charCodeAt(p)]>>>6-p%4*2,b=d|m;f[h>>>2]|=b<<24-h%4*8,h++}return s.create(f,h)}})(),r.enc.Base64})})(so);var oo=so.exports;oe(oo);var ao={exports:{}};(function(e,t){(function(r,n){e.exports=n(Bt())})(it,function(r){return r.enc.Utf8})})(ao);var Yp=ao.exports;oe(Yp);var uo={exports:{}},fi={exports:{}},hi={exports:{}},pi;function Gp(){return pi||(pi=1,(function(e,t){(function(r,n){e.exports=n(Bt())})(it,function(r){return(function(){var n=r,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],m=h[2],b=h[3],_=h[4],y=0;y<80;y++){if(y<16)l[y]=c[f+y]|0;else{var v=l[y-3]^l[y-8]^l[y-14]^l[y-16];l[y]=v<<1|v>>>31}var w=(p<<5|p>>>27)+_+l[y];y<20?w+=(d&m|~d&b)+1518500249:y<40?w+=(d^m^b)+1859775393:y<60?w+=(d&m|d&b|m&b)-1894007588:w+=(d^m^b)-899497514,_=b,b=m,m=d<<30|d>>>2,d=p,p=w}h[0]=h[0]+p|0,h[1]=h[1]+d|0,h[2]=h[2]+m|0,h[3]=h[3]+b|0,h[4]=h[4]+_|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)})(),r.SHA1})})(hi)),hi.exports}var di={exports:{}},mi;function Zp(){return mi||(mi=1,(function(e,t){(function(r,n){e.exports=n(Bt())})(it,function(r){(function(){var n=r,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(),m=p.words,b=d.words,_=0;_<f;_++)m[_]^=1549556828,b[_]^=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}})})()})})(di)),di.exports}var gi;function co(){return gi||(gi=1,(function(e,t){(function(r,n,i){e.exports=n(Bt(),Gp(),Zp())})(it,function(r){return(function(){var n=r,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(),m=o.create(),b=m.words,_=p.keySize,y=p.iterations;b.length<_;){h&&d.update(h),h=d.update(c).finalize(f),d.reset();for(var v=1;v<y;v++)h=d.finalize(h),d.reset();m.concat(h)}return m.sigBytes=_*4,m}});n.EvpKDF=function(c,f,h){return a.create(h).compute(c,f)}})(),r.EvpKDF})})(fi)),fi.exports}var yi={exports:{}},vi;function Qp(){return vi||(vi=1,(function(e,t){(function(r,n,i){e.exports=n(Bt(),co())})(it,function(r){r.lib.Cipher||(function(n){var i=r,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,T){return this.create(this._ENC_XFORM_MODE,E,T)},createDecryptor:function(E,T){return this.create(this._DEC_XFORM_MODE,E,T)},init:function(E,T,F){this.cfg=this.cfg.extend(F),this._xformMode=E,this._key=T,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 T=this._doFinalize();return T},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:(function(){function E(T){return typeof T=="string"?U:g}return function(T){return{encrypt:function(F,B,P){return E(B).encrypt(T,F,B,P)},decrypt:function(F,B,P){return E(B).decrypt(T,F,B,P)}}}})()});s.StreamCipher=p.extend({_doFinalize:function(){var E=this._process(!0);return E},blockSize:1});var d=i.mode={},m=s.BlockCipherMode=o.extend({createEncryptor:function(E,T){return this.Encryptor.create(E,T)},createDecryptor:function(E,T){return this.Decryptor.create(E,T)},init:function(E,T){this._cipher=E,this._iv=T}}),b=d.CBC=(function(){var E=m.extend();E.Encryptor=E.extend({processBlock:function(F,B){var P=this._cipher,j=P.blockSize;T.call(this,F,B,j),P.encryptBlock(F,B),this._prevBlock=F.slice(B,B+j)}}),E.Decryptor=E.extend({processBlock:function(F,B){var P=this._cipher,j=P.blockSize,N=F.slice(B,B+j);P.decryptBlock(F,B),T.call(this,F,B,j),this._prevBlock=N}});function T(F,B,P){var j,N=this._iv;N?(j=N,this._iv=n):j=this._prevBlock;for(var L=0;L<P;L++)F[B+L]^=j[L]}return E})(),_=i.pad={},y=_.Pkcs7={pad:function(E,T){for(var F=T*4,B=F-E.sigBytes%F,P=B<<24|B<<16|B<<8|B,j=[],N=0;N<B;N+=4)j.push(P);var L=u.create(j,B);E.concat(L)},unpad:function(E){var T=E.words[E.sigBytes-1>>>2]&255;E.sigBytes-=T}};s.BlockCipher=p.extend({cfg:p.cfg.extend({mode:b,padding:y}),reset:function(){var E;p.reset.call(this);var T=this.cfg,F=T.iv,B=T.mode;this._xformMode==this._ENC_XFORM_MODE?E=B.createEncryptor:(E=B.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==E?this._mode.init(this,F&&F.words):(this._mode=E.call(B,this,F&&F.words),this._mode.__creator=E)},_doProcessBlock:function(E,T){this._mode.processBlock(E,T)},_doFinalize:function(){var E,T=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(T.pad(this._data,this.blockSize),E=this._process(!0)):(E=this._process(!0),T.unpad(E)),E},blockSize:128/32});var v=s.CipherParams=o.extend({init:function(E){this.mixIn(E)},toString:function(E){return(E||this.formatter).stringify(this)}}),w=i.format={},S=w.OpenSSL={stringify:function(E){var T,F=E.ciphertext,B=E.salt;return B?T=u.create([1398893684,1701076831]).concat(B).concat(F):T=F,T.toString(c)},parse:function(E){var T,F=c.parse(E),B=F.words;return B[0]==1398893684&&B[1]==1701076831&&(T=u.create(B.slice(2,4)),B.splice(0,4),F.sigBytes-=16),v.create({ciphertext:F,salt:T})}},g=s.SerializableCipher=o.extend({cfg:o.extend({format:S}),encrypt:function(E,T,F,B){B=this.cfg.extend(B);var P=E.createEncryptor(F,B),j=P.finalize(T),N=P.cfg;return v.create({ciphertext:j,key:F,iv:N.iv,algorithm:E,mode:N.mode,padding:N.padding,blockSize:E.blockSize,formatter:B.format})},decrypt:function(E,T,F,B){B=this.cfg.extend(B),T=this._parse(T,B.format);var P=E.createDecryptor(F,B).finalize(T.ciphertext);return P},_parse:function(E,T){return typeof E=="string"?T.parse(E,this):E}}),x=i.kdf={},A=x.OpenSSL={execute:function(E,T,F,B,P){if(B||(B=u.random(64/8)),P)var j=h.create({keySize:T+F,hasher:P}).compute(E,B);else var j=h.create({keySize:T+F}).compute(E,B);var N=u.create(j.words.slice(T),F*4);return j.sigBytes=T*4,v.create({key:j,iv:N,salt:B})}},U=s.PasswordBasedCipher=g.extend({cfg:g.cfg.extend({kdf:A}),encrypt:function(E,T,F,B){B=this.cfg.extend(B);var P=B.kdf.execute(F,E.keySize,E.ivSize,B.salt,B.hasher);B.iv=P.iv;var j=g.encrypt.call(this,E,T,P.key,B);return j.mixIn(P),j},decrypt:function(E,T,F,B){B=this.cfg.extend(B),T=this._parse(T,B.format);var P=B.kdf.execute(F,E.keySize,E.ivSize,T.salt,B.hasher);B.iv=P.iv;var j=g.decrypt.call(this,E,T,P.key,B);return j}})})()})})(yi)),yi.exports}(function(e,t){(function(r,n,i){e.exports=n(Bt(),oo,io,co(),Qp())})(it,function(r){return(function(){var n=r,i=n.lib,s=i.BlockCipher,o=n.algo,u=[],l=[],a=[],c=[],f=[],h=[],p=[],d=[],m=[],b=[];(function(){for(var v=[],w=0;w<256;w++)w<128?v[w]=w<<1:v[w]=w<<1^283;for(var S=0,g=0,w=0;w<256;w++){var x=g^g<<1^g<<2^g<<3^g<<4;x=x>>>8^x&255^99,u[S]=x,l[x]=S;var A=v[S],U=v[A],E=v[U],T=v[x]*257^x*16843008;a[S]=T<<24|T>>>8,c[S]=T<<16|T>>>16,f[S]=T<<8|T>>>24,h[S]=T;var T=E*16843009^U*65537^A*257^S*16843008;p[x]=T<<24|T>>>8,d[x]=T<<16|T>>>16,m[x]=T<<8|T>>>24,b[x]=T,S?(S=A^v[v[v[E^A]]],g^=v[v[g]]):S=g=1}})();var _=[0,1,2,4,8,16,32,64,128,27,54],y=o.AES=s.extend({_doReset:function(){var v;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var w=this._keyPriorReset=this._key,S=w.words,g=w.sigBytes/4,x=this._nRounds=g+6,A=(x+1)*4,U=this._keySchedule=[],E=0;E<A;E++)E<g?U[E]=S[E]:(v=U[E-1],E%g?g>6&&E%g==4&&(v=u[v>>>24]<<24|u[v>>>16&255]<<16|u[v>>>8&255]<<8|u[v&255]):(v=v<<8|v>>>24,v=u[v>>>24]<<24|u[v>>>16&255]<<16|u[v>>>8&255]<<8|u[v&255],v^=_[E/g|0]<<24),U[E]=U[E-g]^v);for(var T=this._invKeySchedule=[],F=0;F<A;F++){var E=A-F;if(F%4)var v=U[E];else var v=U[E-4];F<4||E<=4?T[F]=v:T[F]=p[u[v>>>24]]^d[u[v>>>16&255]]^m[u[v>>>8&255]]^b[u[v&255]]}}},encryptBlock:function(v,w){this._doCryptBlock(v,w,this._keySchedule,a,c,f,h,u)},decryptBlock:function(v,w){var S=v[w+1];v[w+1]=v[w+3],v[w+3]=S,this._doCryptBlock(v,w,this._invKeySchedule,p,d,m,b,l);var S=v[w+1];v[w+1]=v[w+3],v[w+3]=S},_doCryptBlock:function(v,w,S,g,x,A,U,E){for(var T=this._nRounds,F=v[w]^S[0],B=v[w+1]^S[1],P=v[w+2]^S[2],j=v[w+3]^S[3],N=4,L=1;L<T;L++){var M=g[F>>>24]^x[B>>>16&255]^A[P>>>8&255]^U[j&255]^S[N++],H=g[B>>>24]^x[P>>>16&255]^A[j>>>8&255]^U[F&255]^S[N++],q=g[P>>>24]^x[j>>>16&255]^A[F>>>8&255]^U[B&255]^S[N++],$=g[j>>>24]^x[F>>>16&255]^A[B>>>8&255]^U[P&255]^S[N++];F=M,B=H,P=q,j=$}var M=(E[F>>>24]<<24|E[B>>>16&255]<<16|E[P>>>8&255]<<8|E[j&255])^S[N++],H=(E[B>>>24]<<24|E[P>>>16&255]<<16|E[j>>>8&255]<<8|E[F&255])^S[N++],q=(E[P>>>24]<<24|E[j>>>16&255]<<16|E[F>>>8&255]<<8|E[B&255])^S[N++],$=(E[j>>>24]<<24|E[F>>>16&255]<<16|E[B>>>8&255]<<8|E[P&255])^S[N++];v[w]=M,v[w+1]=H,v[w+2]=q,v[w+3]=$},keySize:256/32});n.AES=s._createHelper(y)})(),r.AES})})(uo);var Xp=uo.exports;oe(Xp);var td="0123456789abcdefghijklmnopqrstuvwxyz";function St(e){return td.charAt(e)}function ed(e,t){return e&t}function Ae(e,t){return e|t}function bi(e,t){return e^t}function wi(e,t){return e&~t}function rd(e){if(e==0)return-1;var t=0;return e&65535||(e>>=16,t+=16),e&255||(e>>=8,t+=8),e&15||(e>>=4,t+=4),e&3||(e>>=2,t+=2),e&1||++t,t}function nd(e){for(var t=0;e!=0;)e&=e-1,++t;return t}var Xt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",lo="=";function qe(e){var t,r,n="";for(t=0;t+3<=e.length;t+=3)r=parseInt(e.substring(t,t+3),16),n+=Xt.charAt(r>>6)+Xt.charAt(r&63);for(t+1==e.length?(r=parseInt(e.substring(t,t+1),16),n+=Xt.charAt(r<<2)):t+2==e.length&&(r=parseInt(e.substring(t,t+2),16),n+=Xt.charAt(r>>2)+Xt.charAt((r&3)<<4));(n.length&3)>0;)n+=lo;return n}function _i(e){var t="",r,n=0,i=0;for(r=0;r<e.length&&e.charAt(r)!=lo;++r){var s=Xt.indexOf(e.charAt(r));s<0||(n==0?(t+=St(s>>2),i=s&3,n=1):n==1?(t+=St(i<<2|s>>4),i=s&15,n=2):n==2?(t+=St(i),t+=St(s>>2),i=s&3,n=3):(t+=St(i<<2|s>>4),t+=St(s&15),n=0))}return n==1&&(t+=St(i<<2)),t}var Yt,id={decode:function(e){var t;if(Yt===void 0){var r="0123456789ABCDEF",n=` \f
20
- \r  \u2028\u2029`;for(Yt={},t=0;t<16;++t)Yt[r.charAt(t)]=t;for(r=r.toLowerCase(),t=10;t<16;++t)Yt[r.charAt(t)]=t;for(t=0;t<n.length;++t)Yt[n.charAt(t)]=-1}var i=[],s=0,o=0;for(t=0;t<e.length;++t){var u=e.charAt(t);if(u=="=")break;if(u=Yt[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}},Pt,Vr={decode:function(e){var t;if(Pt===void 0){var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n=`= \f
21
- \r  \u2028\u2029`;for(Pt=Object.create(null),t=0;t<64;++t)Pt[r.charAt(t)]=t;for(Pt["-"]=62,Pt._=63,t=0;t<n.length;++t)Pt[n.charAt(t)]=-1}var i=[],s=0,o=0;for(t=0;t<e.length;++t){var u=e.charAt(t);if(u=="=")break;if(u=Pt[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(e){var t=Vr.re.exec(e);if(t)if(t[1])e=t[1];else if(t[2])e=t[2];else throw new Error("RegExp out of sync");return Vr.decode(e)}},Gt=1e13,me=(function(){function e(t){this.buf=[+t||0]}return e.prototype.mulAdd=function(t,r){var n=this.buf,i=n.length,s,o;for(s=0;s<i;++s)o=n[s]*t+r,o<Gt?r=0:(r=0|o/Gt,o-=r*Gt),n[s]=o;r>0&&(n[s]=r)},e.prototype.sub=function(t){var r=this.buf,n=r.length,i,s;for(i=0;i<n;++i)s=r[i]-t,s<0?(s+=Gt,t=1):t=0,r[i]=s;for(;r[r.length-1]===0;)r.pop()},e.prototype.toString=function(t){if((t||10)!=10)throw new Error("only base 10 is supported");for(var r=this.buf,n=r[r.length-1].toString(),i=r.length-2;i>=0;--i)n+=(Gt+r[i]).toString().substring(1);return n},e.prototype.valueOf=function(){for(var t=this.buf,r=0,n=t.length-1;n>=0;--n)r=r*Gt+t[n];return r},e.prototype.simplify=function(){var t=this.buf;return t.length==1?t[0]:this},e})(),fo="…",sd=/^(\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)?)?$/,od=/^(\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 ee(e,t){return e.length>t&&(e=e.substring(0,t)+fo),e}var gr=(function(){function e(t,r){this.hexDigits="0123456789ABCDEF",t instanceof e?(this.enc=t.enc,this.pos=t.pos):(this.enc=t,this.pos=r)}return e.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]},e.prototype.hexByte=function(t){return this.hexDigits.charAt(t>>4&15)+this.hexDigits.charAt(t&15)},e.prototype.hexDump=function(t,r,n){for(var i="",s=t;s<r;++s)if(i+=this.hexByte(this.get(s)),n!==!0)switch(s&15){case 7:i+=" ";break;case 15:i+=`
22
- `;break;default:i+=" "}return i},e.prototype.isASCII=function(t,r){for(var n=t;n<r;++n){var i=this.get(n);if(i<32||i>176)return!1}return!0},e.prototype.parseStringISO=function(t,r){for(var n="",i=t;i<r;++i)n+=String.fromCharCode(this.get(i));return n},e.prototype.parseStringUTF=function(t,r){for(var n="",i=t;i<r;){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},e.prototype.parseStringBMP=function(t,r){for(var n="",i,s,o=t;o<r;)i=this.get(o++),s=this.get(o++),n+=String.fromCharCode(i<<8|s);return n},e.prototype.parseTime=function(t,r,n){var i=this.parseStringISO(t,r),s=(n?sd:od).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},e.prototype.parseInteger=function(t,r){for(var n=this.get(t),i=n>127,s=i?255:0,o,u="";n==s&&++t<r;)n=this.get(t);if(o=r-t,o===0)return i?-1:0;if(o>4){for(u=n,o<<=3;!((+u^s)&128);)u=+u<<1,--o;u="("+o+` bit)
23
- `}i&&(n=n-256);for(var l=new me(n),a=t+1;a<r;++a)l.mulAdd(256,this.get(a));return u+l.toString()},e.prototype.parseBitString=function(t,r,n){for(var i=this.get(t),s=(r-t-1<<3)-i,o="("+s+` bit)
24
- `,u="",l=t+1;l<r;++l){for(var a=this.get(l),c=l==r-1?i:0,f=7;f>=c;--f)u+=a>>f&1?"1":"0";if(u.length>n)return o+ee(u,n)}return o+u},e.prototype.parseOctetString=function(t,r,n){if(this.isASCII(t,r))return ee(this.parseStringISO(t,r),n);var i=r-t,s="("+i+` byte)
25
- `;n/=2,i>n&&(r=t+n);for(var o=t;o<r;++o)s+=this.hexByte(this.get(o));return i>n&&(s+=fo),s},e.prototype.parseOID=function(t,r,n){for(var i="",s=new me,o=0,u=t;u<r;++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 ee(i,n);s=new me,o=0}}return o>0&&(i+=".incomplete"),i},e})(),ad=(function(){function e(t,r,n,i,s){if(!(i instanceof Ei))throw new Error("Invalid tag value.");this.stream=t,this.header=r,this.length=n,this.tag=i,this.sub=s}return e.prototype.typeName=function(){switch(this.tag.tagClass){case 0:switch(this.tag.tagNumber){case 0:return"EOC";case 1:return"BOOLEAN";case 2:return"INTEGER";case 3:return"BIT_STRING";case 4:return"OCTET_STRING";case 5:return"NULL";case 6:return"OBJECT_IDENTIFIER";case 7:return"ObjectDescriptor";case 8:return"EXTERNAL";case 9:return"REAL";case 10:return"ENUMERATED";case 11:return"EMBEDDED_PDV";case 12:return"UTF8String";case 16:return"SEQUENCE";case 17:return"SET";case 18:return"NumericString";case 19:return"PrintableString";case 20:return"TeletexString";case 21:return"VideotexString";case 22:return"IA5String";case 23:return"UTCTime";case 24:return"GeneralizedTime";case 25:return"GraphicString";case 26:return"VisibleString";case 27:return"GeneralString";case 28:return"UniversalString";case 30:return"BMPString"}return"Universal_"+this.tag.tagNumber.toString();case 1:return"Application_"+this.tag.tagNumber.toString();case 2:return"["+this.tag.tagNumber.toString()+"]";case 3:return"Private_"+this.tag.tagNumber.toString()}},e.prototype.content=function(t){if(this.tag===void 0)return null;t===void 0&&(t=1/0);var r=this.posContent(),n=Math.abs(this.length);if(!this.tag.isUniversal())return this.sub!==null?"("+this.sub.length+" elem)":this.stream.parseOctetString(r,r+n,t);switch(this.tag.tagNumber){case 1:return this.stream.get(r)===0?"false":"true";case 2:return this.stream.parseInteger(r,r+n);case 3:return this.sub?"("+this.sub.length+" elem)":this.stream.parseBitString(r,r+n,t);case 4:return this.sub?"("+this.sub.length+" elem)":this.stream.parseOctetString(r,r+n,t);case 6:return this.stream.parseOID(r,r+n,t);case 16:case 17:return this.sub!==null?"("+this.sub.length+" elem)":"(no elem)";case 12:return ee(this.stream.parseStringUTF(r,r+n),t);case 18:case 19:case 20:case 21:case 22:case 26:return ee(this.stream.parseStringISO(r,r+n),t);case 30:return ee(this.stream.parseStringBMP(r,r+n),t);case 23:case 24:return this.stream.parseTime(r,r+n,this.tag.tagNumber==23)}return null},e.prototype.toString=function(){return this.typeName()+"@"+this.stream.pos+"[header:"+this.header+",length:"+this.length+",sub:"+(this.sub===null?"null":this.sub.length)+"]"},e.prototype.toPrettyString=function(t){t===void 0&&(t="");var r=t+this.typeName()+" @"+this.stream.pos;if(this.length>=0&&(r+="+"),r+=this.length,this.tag.tagConstructed?r+=" (constructed)":this.tag.isUniversal()&&(this.tag.tagNumber==3||this.tag.tagNumber==4)&&this.sub!==null&&(r+=" (encapsulates)"),r+=`
26
- `,this.sub!==null){t+=" ";for(var n=0,i=this.sub.length;n<i;++n)r+=this.sub[n].toPrettyString(t)}return r},e.prototype.posStart=function(){return this.stream.pos},e.prototype.posContent=function(){return this.stream.pos+this.header},e.prototype.posEnd=function(){return this.stream.pos+this.header+Math.abs(this.length)},e.prototype.toHexString=function(){return this.stream.hexDump(this.posStart(),this.posEnd(),!0)},e.decodeLength=function(t){var r=t.get(),n=r&127;if(n==r)return n;if(n>6)throw new Error("Length over 48 bits not supported at position "+(t.pos-1));if(n===0)return null;r=0;for(var i=0;i<n;++i)r=r*256+t.get();return r},e.prototype.getHexStringValue=function(){var t=this.toHexString(),r=this.header*2,n=this.length*2;return t.substr(r,n)},e.decode=function(t){var r;t instanceof gr?r=t:r=new gr(t,0);var n=new gr(r),i=new Ei(r),s=e.decodeLength(r),o=r.pos,u=o-n.pos,l=null,a=function(){var f=[];if(s!==null){for(var h=o+s;r.pos<h;)f[f.length]=e.decode(r);if(r.pos!=h)throw new Error("Content size is not correct for container starting at offset "+o)}else try{for(;;){var p=e.decode(r);if(p.tag.isEOC())break;f[f.length]=p}s=o-r.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&&r.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);r.pos=o+Math.abs(s)}return new e(n,u,s,i,l)},e})(),Ei=(function(){function e(t){var r=t.get();if(this.tagClass=r>>6,this.tagConstructed=(r&32)!==0,this.tagNumber=r&31,this.tagNumber==31){var n=new me;do r=t.get(),n.mulAdd(128,r&127);while(r&128);this.tagNumber=n.simplify()}}return e.prototype.isUniversal=function(){return this.tagClass===0},e.prototype.isEOC=function(){return this.tagClass===0&&this.tagNumber===0},e})(),At,ud=0xdeadbeefcafe,Si=(ud&16777215)==15715070,nt=[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],cd=(1<<26)/nt[nt.length-1],W=(function(){function e(t,r,n){t!=null&&(typeof t=="number"?this.fromNumber(t,r,n):r==null&&typeof t!="string"?this.fromString(t,256):this.fromString(t,r))}return e.prototype.toString=function(t){if(this.s<0)return"-"+this.negate().toString(t);var r;if(t==16)r=4;else if(t==8)r=3;else if(t==2)r=1;else if(t==32)r=5;else if(t==4)r=2;else return this.toRadix(t);var n=(1<<r)-1,i,s=!1,o="",u=this.t,l=this.DB-u*this.DB%r;if(u-- >0)for(l<this.DB&&(i=this[u]>>l)>0&&(s=!0,o=St(i));u>=0;)l<r?(i=(this[u]&(1<<l)-1)<<r-l,i|=this[--u]>>(l+=this.DB-r)):(i=this[u]>>(l-=r)&n,l<=0&&(l+=this.DB,--u)),i>0&&(s=!0),s&&(o+=St(i));return s?o:"0"},e.prototype.negate=function(){var t=J();return e.ZERO.subTo(this,t),t},e.prototype.abs=function(){return this.s<0?this.negate():this},e.prototype.compareTo=function(t){var r=this.s-t.s;if(r!=0)return r;var n=this.t;if(r=n-t.t,r!=0)return this.s<0?-r:r;for(;--n>=0;)if((r=this[n]-t[n])!=0)return r;return 0},e.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+$e(this[this.t-1]^this.s&this.DM)},e.prototype.mod=function(t){var r=J();return this.abs().divRemTo(t,null,r),this.s<0&&r.compareTo(e.ZERO)>0&&t.subTo(r,r),r},e.prototype.modPowInt=function(t,r){var n;return t<256||r.isEven()?n=new xi(r):n=new Ti(r),this.exp(t,n)},e.prototype.clone=function(){var t=J();return this.copyTo(t),t},e.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]},e.prototype.byteValue=function(){return this.t==0?this.s:this[0]<<24>>24},e.prototype.shortValue=function(){return this.t==0?this.s:this[0]<<16>>16},e.prototype.signum=function(){return this.s<0?-1:this.t<=0||this.t==1&&this[0]<=0?0:1},e.prototype.toByteArray=function(){var t=this.t,r=[];r[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&&(r[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&&(i|=-256),s==0&&(this.s&128)!=(i&128)&&++s,(s>0||i!=this.s)&&(r[s++]=i);return r},e.prototype.equals=function(t){return this.compareTo(t)==0},e.prototype.min=function(t){return this.compareTo(t)<0?this:t},e.prototype.max=function(t){return this.compareTo(t)>0?this:t},e.prototype.and=function(t){var r=J();return this.bitwiseTo(t,ed,r),r},e.prototype.or=function(t){var r=J();return this.bitwiseTo(t,Ae,r),r},e.prototype.xor=function(t){var r=J();return this.bitwiseTo(t,bi,r),r},e.prototype.andNot=function(t){var r=J();return this.bitwiseTo(t,wi,r),r},e.prototype.not=function(){for(var t=J(),r=0;r<this.t;++r)t[r]=this.DM&~this[r];return t.t=this.t,t.s=~this.s,t},e.prototype.shiftLeft=function(t){var r=J();return t<0?this.rShiftTo(-t,r):this.lShiftTo(t,r),r},e.prototype.shiftRight=function(t){var r=J();return t<0?this.lShiftTo(-t,r):this.rShiftTo(t,r),r},e.prototype.getLowestSetBit=function(){for(var t=0;t<this.t;++t)if(this[t]!=0)return t*this.DB+rd(this[t]);return this.s<0?this.t*this.DB:-1},e.prototype.bitCount=function(){for(var t=0,r=this.s&this.DM,n=0;n<this.t;++n)t+=nd(this[n]^r);return t},e.prototype.testBit=function(t){var r=Math.floor(t/this.DB);return r>=this.t?this.s!=0:(this[r]&1<<t%this.DB)!=0},e.prototype.setBit=function(t){return this.changeBit(t,Ae)},e.prototype.clearBit=function(t){return this.changeBit(t,wi)},e.prototype.flipBit=function(t){return this.changeBit(t,bi)},e.prototype.add=function(t){var r=J();return this.addTo(t,r),r},e.prototype.subtract=function(t){var r=J();return this.subTo(t,r),r},e.prototype.multiply=function(t){var r=J();return this.multiplyTo(t,r),r},e.prototype.divide=function(t){var r=J();return this.divRemTo(t,r,null),r},e.prototype.remainder=function(t){var r=J();return this.divRemTo(t,null,r),r},e.prototype.divideAndRemainder=function(t){var r=J(),n=J();return this.divRemTo(t,r,n),[r,n]},e.prototype.modPow=function(t,r){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 xi(r):r.isEven()?o=new fd(r):o=new Ti(r);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,m=J(),b;for(n=$e(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);)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,m),o.sqrTo(m,s),l-=2;l>0?o.sqrTo(s,m):(b=s,s=m,m=b),o.mulTo(m,u[p],s)}for(;h>=0&&!(t[h]&1<<n);)o.sqrTo(s,m),b=s,s=m,m=b,--n<0&&(n=this.DB-1,--h)}return o.revert(s)},e.prototype.modInverse=function(t){var r=t.isEven();if(this.isEven()&&r||t.signum()==0)return e.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),r?((!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),r?((!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),r&&s.subTo(u,s),o.subTo(l,o)):(i.subTo(n,i),r&&u.subTo(s,u),l.subTo(o,l))}if(i.compareTo(e.ONE)!=0)return e.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},e.prototype.pow=function(t){return this.exp(t,new ld)},e.prototype.gcd=function(t){var r=this.s<0?this.negate():this.clone(),n=t.s<0?t.negate():t.clone();if(r.compareTo(n)<0){var i=r;r=n,n=i}var s=r.getLowestSetBit(),o=n.getLowestSetBit();if(o<0)return r;for(s<o&&(o=s),o>0&&(r.rShiftTo(o,r),n.rShiftTo(o,n));r.signum()>0;)(s=r.getLowestSetBit())>0&&r.rShiftTo(s,r),(s=n.getLowestSetBit())>0&&n.rShiftTo(s,n),r.compareTo(n)>=0?(r.subTo(n,r),r.rShiftTo(1,r)):(n.subTo(r,n),n.rShiftTo(1,n));return o>0&&n.lShiftTo(o,n),n},e.prototype.isProbablePrime=function(t){var r,n=this.abs();if(n.t==1&&n[0]<=nt[nt.length-1]){for(r=0;r<nt.length;++r)if(n[0]==nt[r])return!0;return!1}if(n.isEven())return!1;for(r=1;r<nt.length;){for(var i=nt[r],s=r+1;s<nt.length&&i<cd;)i*=nt[s++];for(i=n.modInt(i);r<s;)if(i%nt[r++]==0)return!1}return n.millerRabin(t)},e.prototype.copyTo=function(t){for(var r=this.t-1;r>=0;--r)t[r]=this[r];t.t=this.t,t.s=this.s},e.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},e.prototype.fromString=function(t,r){var n;if(r==16)n=4;else if(r==8)n=3;else if(r==256)n=8;else if(r==2)n=1;else if(r==32)n=5;else if(r==4)n=2;else{this.fromRadix(t,r);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:Ai(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&&(this.s=-1,o>0&&(this[this.t-1]|=(1<<this.DB-o)-1<<o)),this.clamp(),s&&e.ZERO.subTo(this,this)},e.prototype.clamp=function(){for(var t=this.s&this.DM;this.t>0&&this[this.t-1]==t;)--this.t},e.prototype.dlShiftTo=function(t,r){var n;for(n=this.t-1;n>=0;--n)r[n+t]=this[n];for(n=t-1;n>=0;--n)r[n]=0;r.t=this.t+t,r.s=this.s},e.prototype.drShiftTo=function(t,r){for(var n=t;n<this.t;++n)r[n-t]=this[n];r.t=Math.max(this.t-t,0),r.s=this.s},e.prototype.lShiftTo=function(t,r){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)r[l+o+1]=this[l]>>i|u,u=(this[l]&s)<<n;for(var l=o-1;l>=0;--l)r[l]=0;r[o]=u,r.t=this.t+o+1,r.s=this.s,r.clamp()},e.prototype.rShiftTo=function(t,r){r.s=this.s;var n=Math.floor(t/this.DB);if(n>=this.t){r.t=0;return}var i=t%this.DB,s=this.DB-i,o=(1<<i)-1;r[0]=this[n]>>i;for(var u=n+1;u<this.t;++u)r[u-n-1]|=(this[u]&o)<<s,r[u-n]=this[u]>>i;i>0&&(r[this.t-n-1]|=(this.s&o)<<s),r.t=this.t-n,r.clamp()},e.prototype.subTo=function(t,r){for(var n=0,i=0,s=Math.min(t.t,this.t);n<s;)i+=this[n]-t[n],r[n++]=i&this.DM,i>>=this.DB;if(t.t<this.t){for(i-=t.s;n<this.t;)i+=this[n],r[n++]=i&this.DM,i>>=this.DB;i+=this.s}else{for(i+=this.s;n<t.t;)i-=t[n],r[n++]=i&this.DM,i>>=this.DB;i-=t.s}r.s=i<0?-1:0,i<-1?r[n++]=this.DV+i:i>0&&(r[n++]=i),r.t=n,r.clamp()},e.prototype.multiplyTo=function(t,r){var n=this.abs(),i=t.abs(),s=n.t;for(r.t=s+i.t;--s>=0;)r[s]=0;for(s=0;s<i.t;++s)r[s+n.t]=n.am(0,i[s],r,s,0,n.t);r.s=0,r.clamp(),this.s!=t.s&&e.ZERO.subTo(r,r)},e.prototype.squareTo=function(t){for(var r=this.abs(),n=t.t=2*r.t;--n>=0;)t[n]=0;for(n=0;n<r.t-1;++n){var i=r.am(n,r[n],t,2*n,0,1);(t[n+r.t]+=r.am(n+1,2*r[n],t,2*n+1,i,r.t-n-1))>=r.DV&&(t[n+r.t]-=r.DV,t[n+r.t+1]=1)}t.t>0&&(t[t.t-1]+=r.am(n,r[n],t,2*n,0,1)),t.s=0,t.clamp()},e.prototype.divRemTo=function(t,r,n){var i=t.abs();if(!(i.t<=0)){var s=this.abs();if(s.t<i.t){r==null||r.fromInt(0),n!=null&&this.copyTo(n);return}n==null&&(n=J());var o=J(),u=this.s,l=t.s,a=this.DB-$e(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,m=1<<this.F2,b=n.t,_=b-c,y=r!=null?r:J();for(o.dlShiftTo(_,y),n.compareTo(y)>=0&&(n[n.t++]=1,n.subTo(y,n)),e.ONE.dlShiftTo(c,y),y.subTo(o,o);o.t<c;)o[o.t++]=0;for(;--_>=0;){var v=n[--b]==f?this.DM:Math.floor(n[b]*p+(n[b-1]+m)*d);if((n[b]+=o.am(0,v,n,_,0,c))<v)for(o.dlShiftTo(_,y),n.subTo(y,n);n[b]<--v;)n.subTo(y,n)}r!=null&&(n.drShiftTo(c,r),u!=l&&e.ZERO.subTo(r,r)),n.t=c,n.clamp(),a>0&&n.rShiftTo(a,n),u<0&&e.ZERO.subTo(n,n)}}},e.prototype.invDigit=function(){if(this.t<1)return 0;var t=this[0];if(!(t&1))return 0;var r=t&3;return r=r*(2-(t&15)*r)&15,r=r*(2-(t&255)*r)&255,r=r*(2-((t&65535)*r&65535))&65535,r=r*(2-t*r%this.DV)%this.DV,r>0?this.DV-r:-r},e.prototype.isEven=function(){return(this.t>0?this[0]&1:this.s)==0},e.prototype.exp=function(t,r){if(t>4294967295||t<1)return e.ONE;var n=J(),i=J(),s=r.convert(this),o=$e(t)-1;for(s.copyTo(n);--o>=0;)if(r.sqrTo(n,i),(t&1<<o)>0)r.mulTo(i,s,n);else{var u=n;n=i,i=u}return r.revert(n)},e.prototype.chunkSize=function(t){return Math.floor(Math.LN2*this.DB/Math.log(t))},e.prototype.toRadix=function(t){if(t==null&&(t=10),this.signum()==0||t<2||t>36)return"0";var r=this.chunkSize(t),n=Math.pow(t,r),i=$t(n),s=J(),o=J(),u="";for(this.divRemTo(i,s,o);s.signum()>0;)u=(n+o.intValue()).toString(t).substr(1)+u,s.divRemTo(i,s,o);return o.intValue().toString(t)+u},e.prototype.fromRadix=function(t,r){this.fromInt(0),r==null&&(r=10);for(var n=this.chunkSize(r),i=Math.pow(r,n),s=!1,o=0,u=0,l=0;l<t.length;++l){var a=Ai(t,l);if(a<0){t.charAt(l)=="-"&&this.signum()==0&&(s=!0);continue}u=r*u+a,++o>=n&&(this.dMultiply(i),this.dAddOffset(u,0),o=0,u=0)}o>0&&(this.dMultiply(Math.pow(r,o)),this.dAddOffset(u,0)),s&&e.ZERO.subTo(this,this)},e.prototype.fromNumber=function(t,r,n){if(typeof r=="number")if(t<2)this.fromInt(1);else for(this.fromNumber(t,n),this.testBit(t-1)||this.bitwiseTo(e.ONE.shiftLeft(t-1),Ae,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(r);)this.dAddOffset(2,0),this.bitLength()>t&&this.subTo(e.ONE.shiftLeft(t-1),this);else{var i=[],s=t&7;i.length=(t>>3)+1,r.nextBytes(i),s>0?i[0]&=(1<<s)-1:i[0]=0,this.fromString(i,256)}},e.prototype.bitwiseTo=function(t,r,n){var i,s,o=Math.min(t.t,this.t);for(i=0;i<o;++i)n[i]=r(this[i],t[i]);if(t.t<this.t){for(s=t.s&this.DM,i=o;i<this.t;++i)n[i]=r(this[i],s);n.t=this.t}else{for(s=this.s&this.DM,i=o;i<t.t;++i)n[i]=r(s,t[i]);n.t=t.t}n.s=r(this.s,t.s),n.clamp()},e.prototype.changeBit=function(t,r){var n=e.ONE.shiftLeft(t);return this.bitwiseTo(n,r,n),n},e.prototype.addTo=function(t,r){for(var n=0,i=0,s=Math.min(t.t,this.t);n<s;)i+=this[n]+t[n],r[n++]=i&this.DM,i>>=this.DB;if(t.t<this.t){for(i+=t.s;n<this.t;)i+=this[n],r[n++]=i&this.DM,i>>=this.DB;i+=this.s}else{for(i+=this.s;n<t.t;)i+=t[n],r[n++]=i&this.DM,i>>=this.DB;i+=t.s}r.s=i<0?-1:0,i>0?r[n++]=i:i<-1&&(r[n++]=this.DV+i),r.t=n,r.clamp()},e.prototype.dMultiply=function(t){this[this.t]=this.am(0,t-1,this,0,0,this.t),++this.t,this.clamp()},e.prototype.dAddOffset=function(t,r){if(t!=0){for(;this.t<=r;)this[this.t++]=0;for(this[r]+=t;this[r]>=this.DV;)this[r]-=this.DV,++r>=this.t&&(this[this.t++]=0),++this[r]}},e.prototype.multiplyLowerTo=function(t,r,n){var i=Math.min(this.t+t.t,r);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,r);i<s;++i)this.am(0,t[i],n,i,0,r-i);n.clamp()},e.prototype.multiplyUpperTo=function(t,r,n){--r;var i=n.t=this.t+t.t-r;for(n.s=0;--i>=0;)n[i]=0;for(i=Math.max(r-this.t,0);i<t.t;++i)n[this.t+i-r]=this.am(r-i,t[i],n,0,0,this.t+i-r);n.clamp(),n.drShiftTo(1,n)},e.prototype.modInt=function(t){if(t<=0)return 0;var r=this.DV%t,n=this.s<0?t-1:0;if(this.t>0)if(r==0)n=this[0]%t;else for(var i=this.t-1;i>=0;--i)n=(r*n+this[i])%t;return n},e.prototype.millerRabin=function(t){var r=this.subtract(e.ONE),n=r.getLowestSetBit();if(n<=0)return!1;var i=r.shiftRight(n);t=t+1>>1,t>nt.length&&(t=nt.length);for(var s=J(),o=0;o<t;++o){s.fromInt(nt[Math.floor(Math.random()*nt.length)]);var u=s.modPow(i,this);if(u.compareTo(e.ONE)!=0&&u.compareTo(r)!=0){for(var l=1;l++<n&&u.compareTo(r)!=0;)if(u=u.modPowInt(2,this),u.compareTo(e.ONE)==0)return!1;if(u.compareTo(r)!=0)return!1}}return!0},e.prototype.square=function(){var t=J();return this.squareTo(t),t},e.prototype.gcda=function(t,r){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){r(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(){r(i)},0))};setTimeout(l,10)},e.prototype.fromNumberAsync=function(t,r,n,i){if(typeof r=="number")if(t<2)this.fromInt(1);else{this.fromNumber(t,n),this.testBit(t-1)||this.bitwiseTo(e.ONE.shiftLeft(t-1),Ae,this),this.isEven()&&this.dAddOffset(1,0);var s=this,o=function(){s.dAddOffset(2,0),s.bitLength()>t&&s.subTo(e.ONE.shiftLeft(t-1),s),s.isProbablePrime(r)?setTimeout(function(){i()},0):setTimeout(o,0)};setTimeout(o,0)}else{var u=[],l=t&7;u.length=(t>>3)+1,r.nextBytes(u),l>0?u[0]&=(1<<l)-1:u[0]=0,this.fromString(u,256)}},e})(),ld=(function(){function e(){}return e.prototype.convert=function(t){return t},e.prototype.revert=function(t){return t},e.prototype.mulTo=function(t,r,n){t.multiplyTo(r,n)},e.prototype.sqrTo=function(t,r){t.squareTo(r)},e})(),xi=(function(){function e(t){this.m=t}return e.prototype.convert=function(t){return t.s<0||t.compareTo(this.m)>=0?t.mod(this.m):t},e.prototype.revert=function(t){return t},e.prototype.reduce=function(t){t.divRemTo(this.m,null,t)},e.prototype.mulTo=function(t,r,n){t.multiplyTo(r,n),this.reduce(n)},e.prototype.sqrTo=function(t,r){t.squareTo(r),this.reduce(r)},e})(),Ti=(function(){function e(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 e.prototype.convert=function(t){var r=J();return t.abs().dlShiftTo(this.m.t,r),r.divRemTo(this.m,null,r),t.s<0&&r.compareTo(W.ZERO)>0&&this.m.subTo(r,r),r},e.prototype.revert=function(t){var r=J();return t.copyTo(r),this.reduce(r),r},e.prototype.reduce=function(t){for(;t.t<=this.mt2;)t[t.t++]=0;for(var r=0;r<this.m.t;++r){var n=t[r]&32767,i=n*this.mpl+((n*this.mph+(t[r]>>15)*this.mpl&this.um)<<15)&t.DM;for(n=r+this.m.t,t[n]+=this.m.am(0,i,t,r,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)},e.prototype.mulTo=function(t,r,n){t.multiplyTo(r,n),this.reduce(n)},e.prototype.sqrTo=function(t,r){t.squareTo(r),this.reduce(r)},e})(),fd=(function(){function e(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 e.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 r=J();return t.copyTo(r),this.reduce(r),r},e.prototype.revert=function(t){return t},e.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)},e.prototype.mulTo=function(t,r,n){t.multiplyTo(r,n),this.reduce(n)},e.prototype.sqrTo=function(t,r){t.squareTo(r),this.reduce(r)},e})();function J(){return new W(null)}function Z(e,t){return new W(e,t)}var Ri=typeof navigator<"u";Ri&&Si&&navigator.appName=="Microsoft Internet Explorer"?(W.prototype.am=function(e,t,r,n,i,s){for(var o=t&32767,u=t>>15;--s>=0;){var l=this[e]&32767,a=this[e++]>>15,c=u*l+a*o;l=o*l+((c&32767)<<15)+r[n]+(i&1073741823),i=(l>>>30)+(c>>>15)+u*a+(i>>>30),r[n++]=l&1073741823}return i},At=30):Ri&&Si&&navigator.appName!="Netscape"?(W.prototype.am=function(e,t,r,n,i,s){for(;--s>=0;){var o=t*this[e++]+r[n]+i;i=Math.floor(o/67108864),r[n++]=o&67108863}return i},At=26):(W.prototype.am=function(e,t,r,n,i,s){for(var o=t&16383,u=t>>14;--s>=0;){var l=this[e]&16383,a=this[e++]>>14,c=u*l+a*o;l=o*l+((c&16383)<<14)+r[n]+i,i=(l>>28)+(c>>14)+u*a,r[n++]=l&268435455}return i},At=28),W.prototype.DB=At,W.prototype.DM=(1<<At)-1,W.prototype.DV=1<<At;var yr=52;W.prototype.FV=Math.pow(2,yr),W.prototype.F1=yr-At,W.prototype.F2=2*At-yr;var Xe=[],ne,ft;for(ne=48,ft=0;ft<=9;++ft)Xe[ne++]=ft;for(ne=97,ft=10;ft<36;++ft)Xe[ne++]=ft;for(ne=65,ft=10;ft<36;++ft)Xe[ne++]=ft;function Ai(e,t){var r=Xe[e.charCodeAt(t)];return r!=null?r:-1}function $t(e){var t=J();return t.fromInt(e),t}function $e(e){var t=1,r;return(r=e>>>16)!=0&&(e=r,t+=16),(r=e>>8)!=0&&(e=r,t+=8),(r=e>>4)!=0&&(e=r,t+=4),(r=e>>2)!=0&&(e=r,t+=2),(r=e>>1)!=0&&(e=r,t+=1),t}W.ZERO=$t(0),W.ONE=$t(1);var hd=(function(){function e(){this.i=0,this.j=0,this.S=[]}return e.prototype.init=function(t){var r,n,i;for(r=0;r<256;++r)this.S[r]=r;for(n=0,r=0;r<256;++r)n=n+this.S[r]+t[r%t.length]&255,i=this.S[r],this.S[r]=this.S[n],this.S[n]=i;this.i=0,this.j=0},e.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]},e})();function pd(){return new hd}var ho=256,Oe,jt=null,dt;if(jt==null){jt=[],dt=0;var je=void 0;if(typeof window<"u"&&window.crypto&&window.crypto.getRandomValues){var vr=new Uint32Array(256);for(window.crypto.getRandomValues(vr),je=0;je<vr.length;++je)jt[dt++]=vr[je]&255}var De=0,Be=function(e){if(De=De||0,De>=256||dt>=ho){window.removeEventListener?window.removeEventListener("mousemove",Be,!1):window.detachEvent&&window.detachEvent("onmousemove",Be);return}try{var t=e.x+e.y;jt[dt++]=t&255,De+=1}catch(r){}};typeof window<"u"&&(window.addEventListener?window.addEventListener("mousemove",Be,!1):window.attachEvent&&window.attachEvent("onmousemove",Be))}function dd(){if(Oe==null){for(Oe=pd();dt<ho;){var e=Math.floor(65536*Math.random());jt[dt++]=e&255}for(Oe.init(jt),dt=0;dt<jt.length;++dt)jt[dt]=0;dt=0}return Oe.next()}var Hr=(function(){function e(){}return e.prototype.nextBytes=function(t){for(var r=0;r<t.length;++r)t[r]=dd()},e})();function md(e,t){if(t<e.length+22)return console.error("Message too long for RSA"),null;for(var r=t-e.length-6,n="",i=0;i<r;i+=2)n+="ff";var s="0001"+n+"00"+e;return Z(s,16)}function gd(e,t){if(t<e.length+11)return console.error("Message too long for RSA"),null;for(var r=[],n=e.length-1;n>=0&&t>0;){var i=e.charCodeAt(n--);i<128?r[--t]=i:i>127&&i<2048?(r[--t]=i&63|128,r[--t]=i>>6|192):(r[--t]=i&63|128,r[--t]=i>>6&63|128,r[--t]=i>>12|224)}r[--t]=0;for(var s=new Hr,o=[];t>2;){for(o[0]=0;o[0]==0;)s.nextBytes(o);r[--t]=o[0]}return r[--t]=2,r[--t]=0,new W(r)}var yd=(function(){function e(){this.n=null,this.e=0,this.d=null,this.p=null,this.q=null,this.dmp1=null,this.dmq1=null,this.coeff=null}return e.prototype.doPublic=function(t){return t.modPowInt(this.e,this.n)},e.prototype.doPrivate=function(t){if(this.p==null||this.q==null)return t.modPow(this.d,this.n);for(var r=t.mod(this.p).modPow(this.dmp1,this.p),n=t.mod(this.q).modPow(this.dmq1,this.q);r.compareTo(n)<0;)r=r.add(this.p);return r.subtract(n).multiply(this.coeff).mod(this.p).multiply(this.q).add(n)},e.prototype.setPublic=function(t,r){t!=null&&r!=null&&t.length>0&&r.length>0?(this.n=Z(t,16),this.e=parseInt(r,16)):console.error("Invalid RSA public key")},e.prototype.encrypt=function(t){var r=this.n.bitLength()+7>>3,n=gd(t,r);if(n==null)return null;var i=this.doPublic(n);if(i==null)return null;for(var s=i.toString(16),o=s.length,u=0;u<r*2-o;u++)s="0"+s;return s},e.prototype.setPrivate=function(t,r,n){t!=null&&r!=null&&t.length>0&&r.length>0?(this.n=Z(t,16),this.e=parseInt(r,16),this.d=Z(n,16)):console.error("Invalid RSA private key")},e.prototype.setPrivateEx=function(t,r,n,i,s,o,u,l){t!=null&&r!=null&&t.length>0&&r.length>0?(this.n=Z(t,16),this.e=parseInt(r,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")},e.prototype.generate=function(t,r){var n=new Hr,i=t>>1;this.e=parseInt(r,16);for(var s=new W(r,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}}},e.prototype.decrypt=function(t){var r=Z(t,16),n=this.doPrivate(r);return n==null?null:vd(n,this.n.bitLength()+7>>3)},e.prototype.generateAsync=function(t,r,n){var i=new Hr,s=t>>1;this.e=parseInt(r,16);var o=new W(r,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),m=p.multiply(d);m.gcd(o).compareTo(W.ONE)==0?(u.n=u.p.multiply(u.q),u.d=o.modInverse(m),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)},e.prototype.sign=function(t,r,n){var i=bd(n),s=i+r(t).toString(),o=md(s,this.n.bitLength()/4);if(o==null)return null;var u=this.doPrivate(o);if(u==null)return null;var l=u.toString(16);return l.length&1?"0"+l:l},e.prototype.verify=function(t,r,n){var i=Z(r,16),s=this.doPublic(i);if(s==null)return null;var o=s.toString(16).replace(/^1f+00/,""),u=wd(o);return u==n(t).toString()},e})();function vd(e,t){for(var r=e.toByteArray(),n=0;n<r.length&&r[n]==0;)++n;if(r.length-n!=t-1||r[n]!=2)return null;for(++n;r[n]!=0;)if(++n>=r.length)return null;for(var i="";++n<r.length;){var s=r[n]&255;s<128?i+=String.fromCharCode(s):s>191&&s<224?(i+=String.fromCharCode((s&31)<<6|r[n+1]&63),++n):(i+=String.fromCharCode((s&15)<<12|(r[n+1]&63)<<6|r[n+2]&63),n+=2)}return i}var Pe={md2:"3020300c06082a864886f70d020205000410",md5:"3020300c06082a864886f70d020505000410",sha1:"3021300906052b0e03021a05000414",sha224:"302d300d06096086480165030402040500041c",sha256:"3031300d060960864801650304020105000420",sha384:"3041300d060960864801650304020205000430",sha512:"3051300d060960864801650304020305000440",ripemd160:"3021300906052b2403020105000414"};function bd(e){return Pe[e]||""}function wd(e){for(var t in Pe)if(Pe.hasOwnProperty(t)){var r=Pe[t],n=r.length;if(e.substr(0,n)==r)return e.substr(n)}return e}/*!
19
+ }`;var m=hl(function(){return Function(s,p+"return "+f).apply(void 0,o)});if(m.source=f,Es(m))throw m;return m}var Kp="Expected a function";function Wp(e,t,r){var n=!0,i=!0;if(typeof e!="function")throw new TypeError(Kp);return ct(r)&&(n="leading"in r?!0:n,i="trailing"in r?!1:i),Qs(e,t,{leading:n,maxWait:t,trailing:i})}var it=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function oe(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var no={exports:{}};function Jp(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var ci={exports:{}},li;function Bt(){return li||(li=1,(function(e,t){(function(r,n){e.exports=n()})(it,function(){var r=r||(function(n,i){var s;if(typeof window<"u"&&window.crypto&&(s=window.crypto),typeof self<"u"&&self.crypto&&(s=self.crypto),typeof globalThis<"u"&&globalThis.crypto&&(s=globalThis.crypto),!s&&typeof window<"u"&&window.msCrypto&&(s=window.msCrypto),!s&&typeof it<"u"&&it.crypto&&(s=it.crypto),!s&&typeof Jp=="function")try{s=require("crypto")}catch(y){}var o=function(){if(s){if(typeof s.getRandomValues=="function")try{return s.getRandomValues(new Uint32Array(1))[0]}catch(y){}if(typeof s.randomBytes=="function")try{return s.randomBytes(4).readInt32LE()}catch(y){}}throw new Error("Native crypto module could not be used to get secure random number.")},a=Object.create||(function(){function y(){}return function(v){var w;return y.prototype=v,w=new y,y.prototype=null,w}})(),l={},u=l.lib={},c=u.Base=(function(){return{extend:function(y){var v=a(this);return y&&v.mixIn(y),(!v.hasOwnProperty("init")||this.init===v.init)&&(v.init=function(){v.$super.init.apply(this,arguments)}),v.init.prototype=v,v.$super=this,v},create:function(){var y=this.extend();return y.init.apply(y,arguments),y},init:function(){},mixIn:function(y){for(var v in y)y.hasOwnProperty(v)&&(this[v]=y[v]);y.hasOwnProperty("toString")&&(this.toString=y.toString)},clone:function(){return this.init.prototype.extend(this)}}})(),f=u.WordArray=c.extend({init:function(y,v){y=this.words=y||[],v!=i?this.sigBytes=v:this.sigBytes=y.length*4},toString:function(y){return(y||p).stringify(this)},concat:function(y){var v=this.words,w=y.words,S=this.sigBytes,g=y.sigBytes;if(this.clamp(),S%4)for(var x=0;x<g;x++){var A=w[x>>>2]>>>24-x%4*8&255;v[S+x>>>2]|=A<<24-(S+x)%4*8}else for(var U=0;U<g;U+=4)v[S+U>>>2]=w[U>>>2];return this.sigBytes+=g,this},clamp:function(){var y=this.words,v=this.sigBytes;y[v>>>2]&=4294967295<<32-v%4*8,y.length=n.ceil(v/4)},clone:function(){var y=c.clone.call(this);return y.words=this.words.slice(0),y},random:function(y){for(var v=[],w=0;w<y;w+=4)v.push(o());return new f.init(v,y)}}),h=l.enc={},p=h.Hex={stringify:function(y){for(var v=y.words,w=y.sigBytes,S=[],g=0;g<w;g++){var x=v[g>>>2]>>>24-g%4*8&255;S.push((x>>>4).toString(16)),S.push((x&15).toString(16))}return S.join("")},parse:function(y){for(var v=y.length,w=[],S=0;S<v;S+=2)w[S>>>3]|=parseInt(y.substr(S,2),16)<<24-S%8*4;return new f.init(w,v/2)}},d=h.Latin1={stringify:function(y){for(var v=y.words,w=y.sigBytes,S=[],g=0;g<w;g++){var x=v[g>>>2]>>>24-g%4*8&255;S.push(String.fromCharCode(x))}return S.join("")},parse:function(y){for(var v=y.length,w=[],S=0;S<v;S++)w[S>>>2]|=(y.charCodeAt(S)&255)<<24-S%4*8;return new f.init(w,v)}},m=h.Utf8={stringify:function(y){try{return decodeURIComponent(escape(d.stringify(y)))}catch(v){throw new Error("Malformed UTF-8 data")}},parse:function(y){return d.parse(unescape(encodeURIComponent(y)))}},b=u.BufferedBlockAlgorithm=c.extend({reset:function(){this._data=new f.init,this._nDataBytes=0},_append:function(y){typeof y=="string"&&(y=m.parse(y)),this._data.concat(y),this._nDataBytes+=y.sigBytes},_process:function(y){var v,w=this._data,S=w.words,g=w.sigBytes,x=this.blockSize,A=x*4,U=g/A;y?U=n.ceil(U):U=n.max((U|0)-this._minBufferSize,0);var E=U*x,T=n.min(E*4,g);if(E){for(var F=0;F<E;F+=x)this._doProcessBlock(S,F);v=S.splice(0,E),w.sigBytes-=T}return new f.init(v,T)},clone:function(){var y=c.clone.call(this);return y._data=this._data.clone(),y},_minBufferSize:0});u.Hasher=b.extend({cfg:c.extend(),init:function(y){this.cfg=this.cfg.extend(y),this.reset()},reset:function(){b.reset.call(this),this._doReset()},update:function(y){return this._append(y),this._process(),this},finalize:function(y){y&&this._append(y);var v=this._doFinalize();return v},blockSize:16,_createHelper:function(y){return function(v,w){return new y.init(w).finalize(v)}},_createHmacHelper:function(y){return function(v,w){return new _.HMAC.init(y,w).finalize(v)}}});var _=l.algo={};return l})(Math);return r})})(ci)),ci.exports}(function(e,t){(function(r,n){e.exports=n(Bt())})(it,function(r){return(function(n){var i=r,s=i.lib,o=s.WordArray,a=s.Hasher,l=i.algo,u=[];(function(){for(var m=0;m<64;m++)u[m]=n.abs(n.sin(m+1))*4294967296|0})();var c=l.MD5=a.extend({_doReset:function(){this._hash=new o.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(m,b){for(var _=0;_<16;_++){var y=b+_,v=m[y];m[y]=(v<<8|v>>>24)&16711935|(v<<24|v>>>8)&4278255360}var w=this._hash.words,S=m[b+0],g=m[b+1],x=m[b+2],A=m[b+3],U=m[b+4],E=m[b+5],T=m[b+6],F=m[b+7],B=m[b+8],P=m[b+9],j=m[b+10],N=m[b+11],L=m[b+12],M=m[b+13],H=m[b+14],q=m[b+15],$=w[0],D=w[1],C=w[2],I=w[3];$=f($,D,C,I,S,7,u[0]),I=f(I,$,D,C,g,12,u[1]),C=f(C,I,$,D,x,17,u[2]),D=f(D,C,I,$,A,22,u[3]),$=f($,D,C,I,U,7,u[4]),I=f(I,$,D,C,E,12,u[5]),C=f(C,I,$,D,T,17,u[6]),D=f(D,C,I,$,F,22,u[7]),$=f($,D,C,I,B,7,u[8]),I=f(I,$,D,C,P,12,u[9]),C=f(C,I,$,D,j,17,u[10]),D=f(D,C,I,$,N,22,u[11]),$=f($,D,C,I,L,7,u[12]),I=f(I,$,D,C,M,12,u[13]),C=f(C,I,$,D,H,17,u[14]),D=f(D,C,I,$,q,22,u[15]),$=h($,D,C,I,g,5,u[16]),I=h(I,$,D,C,T,9,u[17]),C=h(C,I,$,D,N,14,u[18]),D=h(D,C,I,$,S,20,u[19]),$=h($,D,C,I,E,5,u[20]),I=h(I,$,D,C,j,9,u[21]),C=h(C,I,$,D,q,14,u[22]),D=h(D,C,I,$,U,20,u[23]),$=h($,D,C,I,P,5,u[24]),I=h(I,$,D,C,H,9,u[25]),C=h(C,I,$,D,A,14,u[26]),D=h(D,C,I,$,B,20,u[27]),$=h($,D,C,I,M,5,u[28]),I=h(I,$,D,C,x,9,u[29]),C=h(C,I,$,D,F,14,u[30]),D=h(D,C,I,$,L,20,u[31]),$=p($,D,C,I,E,4,u[32]),I=p(I,$,D,C,B,11,u[33]),C=p(C,I,$,D,N,16,u[34]),D=p(D,C,I,$,H,23,u[35]),$=p($,D,C,I,g,4,u[36]),I=p(I,$,D,C,U,11,u[37]),C=p(C,I,$,D,F,16,u[38]),D=p(D,C,I,$,j,23,u[39]),$=p($,D,C,I,M,4,u[40]),I=p(I,$,D,C,S,11,u[41]),C=p(C,I,$,D,A,16,u[42]),D=p(D,C,I,$,T,23,u[43]),$=p($,D,C,I,P,4,u[44]),I=p(I,$,D,C,L,11,u[45]),C=p(C,I,$,D,q,16,u[46]),D=p(D,C,I,$,x,23,u[47]),$=d($,D,C,I,S,6,u[48]),I=d(I,$,D,C,F,10,u[49]),C=d(C,I,$,D,H,15,u[50]),D=d(D,C,I,$,E,21,u[51]),$=d($,D,C,I,L,6,u[52]),I=d(I,$,D,C,A,10,u[53]),C=d(C,I,$,D,j,15,u[54]),D=d(D,C,I,$,g,21,u[55]),$=d($,D,C,I,B,6,u[56]),I=d(I,$,D,C,q,10,u[57]),C=d(C,I,$,D,T,15,u[58]),D=d(D,C,I,$,M,21,u[59]),$=d($,D,C,I,U,6,u[60]),I=d(I,$,D,C,N,10,u[61]),C=d(C,I,$,D,x,15,u[62]),D=d(D,C,I,$,P,21,u[63]),w[0]=w[0]+$|0,w[1]=w[1]+D|0,w[2]=w[2]+C|0,w[3]=w[3]+I|0},_doFinalize:function(){var m=this._data,b=m.words,_=this._nDataBytes*8,y=m.sigBytes*8;b[y>>>5]|=128<<24-y%32;var v=n.floor(_/4294967296),w=_;b[(y+64>>>9<<4)+15]=(v<<8|v>>>24)&16711935|(v<<24|v>>>8)&4278255360,b[(y+64>>>9<<4)+14]=(w<<8|w>>>24)&16711935|(w<<24|w>>>8)&4278255360,m.sigBytes=(b.length+1)*4,this._process();for(var S=this._hash,g=S.words,x=0;x<4;x++){var A=g[x];g[x]=(A<<8|A>>>24)&16711935|(A<<24|A>>>8)&4278255360}return S},clone:function(){var m=a.clone.call(this);return m._hash=this._hash.clone(),m}});function f(m,b,_,y,v,w,S){var g=m+(b&_|~b&y)+v+S;return(g<<w|g>>>32-w)+b}function h(m,b,_,y,v,w,S){var g=m+(b&y|_&~y)+v+S;return(g<<w|g>>>32-w)+b}function p(m,b,_,y,v,w,S){var g=m+(b^_^y)+v+S;return(g<<w|g>>>32-w)+b}function d(m,b,_,y,v,w,S){var g=m+(_^(b|~y))+v+S;return(g<<w|g>>>32-w)+b}i.MD5=a._createHelper(c),i.HmacMD5=a._createHmacHelper(c)})(Math),r.MD5})})(no);var io=no.exports;oe(io);var so={exports:{}};(function(e,t){(function(r,n){e.exports=n(Bt())})(it,function(r){return(function(){var n=r,i=n.lib,s=i.WordArray,o=n.enc;o.Base64={stringify:function(l){var u=l.words,c=l.sigBytes,f=this._map;l.clamp();for(var h=[],p=0;p<c;p+=3)for(var d=u[p>>>2]>>>24-p%4*8&255,m=u[p+1>>>2]>>>24-(p+1)%4*8&255,b=u[p+2>>>2]>>>24-(p+2)%4*8&255,_=d<<16|m<<8|b,y=0;y<4&&p+y*.75<c;y++)h.push(f.charAt(_>>>6*(3-y)&63));var v=f.charAt(64);if(v)for(;h.length%4;)h.push(v);return h.join("")},parse:function(l){var u=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&&(u=d)}return a(l,u,f)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function a(l,u,c){for(var f=[],h=0,p=0;p<u;p++)if(p%4){var d=c[l.charCodeAt(p-1)]<<p%4*2,m=c[l.charCodeAt(p)]>>>6-p%4*2,b=d|m;f[h>>>2]|=b<<24-h%4*8,h++}return s.create(f,h)}})(),r.enc.Base64})})(so);var oo=so.exports;oe(oo);var ao={exports:{}};(function(e,t){(function(r,n){e.exports=n(Bt())})(it,function(r){return r.enc.Utf8})})(ao);var Yp=ao.exports;oe(Yp);var uo={exports:{}},fi={exports:{}},hi={exports:{}},pi;function Gp(){return pi||(pi=1,(function(e,t){(function(r,n){e.exports=n(Bt())})(it,function(r){return(function(){var n=r,i=n.lib,s=i.WordArray,o=i.Hasher,a=n.algo,l=[],u=a.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],m=h[2],b=h[3],_=h[4],y=0;y<80;y++){if(y<16)l[y]=c[f+y]|0;else{var v=l[y-3]^l[y-8]^l[y-14]^l[y-16];l[y]=v<<1|v>>>31}var w=(p<<5|p>>>27)+_+l[y];y<20?w+=(d&m|~d&b)+1518500249:y<40?w+=(d^m^b)+1859775393:y<60?w+=(d&m|d&b|m&b)-1894007588:w+=(d^m^b)-899497514,_=b,b=m,m=d<<30|d>>>2,d=p,p=w}h[0]=h[0]+p|0,h[1]=h[1]+d|0,h[2]=h[2]+m|0,h[3]=h[3]+b|0,h[4]=h[4]+_|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(u),n.HmacSHA1=o._createHmacHelper(u)})(),r.SHA1})})(hi)),hi.exports}var di={exports:{}},mi;function Zp(){return mi||(mi=1,(function(e,t){(function(r,n){e.exports=n(Bt())})(it,function(r){(function(){var n=r,i=n.lib,s=i.Base,o=n.enc,a=o.Utf8,l=n.algo;l.HMAC=s.extend({init:function(u,c){u=this._hasher=new u.init,typeof c=="string"&&(c=a.parse(c));var f=u.blockSize,h=f*4;c.sigBytes>h&&(c=u.finalize(c)),c.clamp();for(var p=this._oKey=c.clone(),d=this._iKey=c.clone(),m=p.words,b=d.words,_=0;_<f;_++)m[_]^=1549556828,b[_]^=909522486;p.sigBytes=d.sigBytes=h,this.reset()},reset:function(){var u=this._hasher;u.reset(),u.update(this._iKey)},update:function(u){return this._hasher.update(u),this},finalize:function(u){var c=this._hasher,f=c.finalize(u);c.reset();var h=c.finalize(this._oKey.clone().concat(f));return h}})})()})})(di)),di.exports}var gi;function co(){return gi||(gi=1,(function(e,t){(function(r,n,i){e.exports=n(Bt(),Gp(),Zp())})(it,function(r){return(function(){var n=r,i=n.lib,s=i.Base,o=i.WordArray,a=n.algo,l=a.MD5,u=a.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(),m=o.create(),b=m.words,_=p.keySize,y=p.iterations;b.length<_;){h&&d.update(h),h=d.update(c).finalize(f),d.reset();for(var v=1;v<y;v++)h=d.finalize(h),d.reset();m.concat(h)}return m.sigBytes=_*4,m}});n.EvpKDF=function(c,f,h){return u.create(h).compute(c,f)}})(),r.EvpKDF})})(fi)),fi.exports}var yi={exports:{}},vi;function Qp(){return vi||(vi=1,(function(e,t){(function(r,n,i){e.exports=n(Bt(),co())})(it,function(r){r.lib.Cipher||(function(n){var i=r,s=i.lib,o=s.Base,a=s.WordArray,l=s.BufferedBlockAlgorithm,u=i.enc;u.Utf8;var c=u.Base64,f=i.algo,h=f.EvpKDF,p=s.Cipher=l.extend({cfg:o.extend(),createEncryptor:function(E,T){return this.create(this._ENC_XFORM_MODE,E,T)},createDecryptor:function(E,T){return this.create(this._DEC_XFORM_MODE,E,T)},init:function(E,T,F){this.cfg=this.cfg.extend(F),this._xformMode=E,this._key=T,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 T=this._doFinalize();return T},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:(function(){function E(T){return typeof T=="string"?U:g}return function(T){return{encrypt:function(F,B,P){return E(B).encrypt(T,F,B,P)},decrypt:function(F,B,P){return E(B).decrypt(T,F,B,P)}}}})()});s.StreamCipher=p.extend({_doFinalize:function(){var E=this._process(!0);return E},blockSize:1});var d=i.mode={},m=s.BlockCipherMode=o.extend({createEncryptor:function(E,T){return this.Encryptor.create(E,T)},createDecryptor:function(E,T){return this.Decryptor.create(E,T)},init:function(E,T){this._cipher=E,this._iv=T}}),b=d.CBC=(function(){var E=m.extend();E.Encryptor=E.extend({processBlock:function(F,B){var P=this._cipher,j=P.blockSize;T.call(this,F,B,j),P.encryptBlock(F,B),this._prevBlock=F.slice(B,B+j)}}),E.Decryptor=E.extend({processBlock:function(F,B){var P=this._cipher,j=P.blockSize,N=F.slice(B,B+j);P.decryptBlock(F,B),T.call(this,F,B,j),this._prevBlock=N}});function T(F,B,P){var j,N=this._iv;N?(j=N,this._iv=n):j=this._prevBlock;for(var L=0;L<P;L++)F[B+L]^=j[L]}return E})(),_=i.pad={},y=_.Pkcs7={pad:function(E,T){for(var F=T*4,B=F-E.sigBytes%F,P=B<<24|B<<16|B<<8|B,j=[],N=0;N<B;N+=4)j.push(P);var L=a.create(j,B);E.concat(L)},unpad:function(E){var T=E.words[E.sigBytes-1>>>2]&255;E.sigBytes-=T}};s.BlockCipher=p.extend({cfg:p.cfg.extend({mode:b,padding:y}),reset:function(){var E;p.reset.call(this);var T=this.cfg,F=T.iv,B=T.mode;this._xformMode==this._ENC_XFORM_MODE?E=B.createEncryptor:(E=B.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==E?this._mode.init(this,F&&F.words):(this._mode=E.call(B,this,F&&F.words),this._mode.__creator=E)},_doProcessBlock:function(E,T){this._mode.processBlock(E,T)},_doFinalize:function(){var E,T=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(T.pad(this._data,this.blockSize),E=this._process(!0)):(E=this._process(!0),T.unpad(E)),E},blockSize:128/32});var v=s.CipherParams=o.extend({init:function(E){this.mixIn(E)},toString:function(E){return(E||this.formatter).stringify(this)}}),w=i.format={},S=w.OpenSSL={stringify:function(E){var T,F=E.ciphertext,B=E.salt;return B?T=a.create([1398893684,1701076831]).concat(B).concat(F):T=F,T.toString(c)},parse:function(E){var T,F=c.parse(E),B=F.words;return B[0]==1398893684&&B[1]==1701076831&&(T=a.create(B.slice(2,4)),B.splice(0,4),F.sigBytes-=16),v.create({ciphertext:F,salt:T})}},g=s.SerializableCipher=o.extend({cfg:o.extend({format:S}),encrypt:function(E,T,F,B){B=this.cfg.extend(B);var P=E.createEncryptor(F,B),j=P.finalize(T),N=P.cfg;return v.create({ciphertext:j,key:F,iv:N.iv,algorithm:E,mode:N.mode,padding:N.padding,blockSize:E.blockSize,formatter:B.format})},decrypt:function(E,T,F,B){B=this.cfg.extend(B),T=this._parse(T,B.format);var P=E.createDecryptor(F,B).finalize(T.ciphertext);return P},_parse:function(E,T){return typeof E=="string"?T.parse(E,this):E}}),x=i.kdf={},A=x.OpenSSL={execute:function(E,T,F,B,P){if(B||(B=a.random(64/8)),P)var j=h.create({keySize:T+F,hasher:P}).compute(E,B);else var j=h.create({keySize:T+F}).compute(E,B);var N=a.create(j.words.slice(T),F*4);return j.sigBytes=T*4,v.create({key:j,iv:N,salt:B})}},U=s.PasswordBasedCipher=g.extend({cfg:g.cfg.extend({kdf:A}),encrypt:function(E,T,F,B){B=this.cfg.extend(B);var P=B.kdf.execute(F,E.keySize,E.ivSize,B.salt,B.hasher);B.iv=P.iv;var j=g.encrypt.call(this,E,T,P.key,B);return j.mixIn(P),j},decrypt:function(E,T,F,B){B=this.cfg.extend(B),T=this._parse(T,B.format);var P=B.kdf.execute(F,E.keySize,E.ivSize,T.salt,B.hasher);B.iv=P.iv;var j=g.decrypt.call(this,E,T,P.key,B);return j}})})()})})(yi)),yi.exports}(function(e,t){(function(r,n,i){e.exports=n(Bt(),oo,io,co(),Qp())})(it,function(r){return(function(){var n=r,i=n.lib,s=i.BlockCipher,o=n.algo,a=[],l=[],u=[],c=[],f=[],h=[],p=[],d=[],m=[],b=[];(function(){for(var v=[],w=0;w<256;w++)w<128?v[w]=w<<1:v[w]=w<<1^283;for(var S=0,g=0,w=0;w<256;w++){var x=g^g<<1^g<<2^g<<3^g<<4;x=x>>>8^x&255^99,a[S]=x,l[x]=S;var A=v[S],U=v[A],E=v[U],T=v[x]*257^x*16843008;u[S]=T<<24|T>>>8,c[S]=T<<16|T>>>16,f[S]=T<<8|T>>>24,h[S]=T;var T=E*16843009^U*65537^A*257^S*16843008;p[x]=T<<24|T>>>8,d[x]=T<<16|T>>>16,m[x]=T<<8|T>>>24,b[x]=T,S?(S=A^v[v[v[E^A]]],g^=v[v[g]]):S=g=1}})();var _=[0,1,2,4,8,16,32,64,128,27,54],y=o.AES=s.extend({_doReset:function(){var v;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var w=this._keyPriorReset=this._key,S=w.words,g=w.sigBytes/4,x=this._nRounds=g+6,A=(x+1)*4,U=this._keySchedule=[],E=0;E<A;E++)E<g?U[E]=S[E]:(v=U[E-1],E%g?g>6&&E%g==4&&(v=a[v>>>24]<<24|a[v>>>16&255]<<16|a[v>>>8&255]<<8|a[v&255]):(v=v<<8|v>>>24,v=a[v>>>24]<<24|a[v>>>16&255]<<16|a[v>>>8&255]<<8|a[v&255],v^=_[E/g|0]<<24),U[E]=U[E-g]^v);for(var T=this._invKeySchedule=[],F=0;F<A;F++){var E=A-F;if(F%4)var v=U[E];else var v=U[E-4];F<4||E<=4?T[F]=v:T[F]=p[a[v>>>24]]^d[a[v>>>16&255]]^m[a[v>>>8&255]]^b[a[v&255]]}}},encryptBlock:function(v,w){this._doCryptBlock(v,w,this._keySchedule,u,c,f,h,a)},decryptBlock:function(v,w){var S=v[w+1];v[w+1]=v[w+3],v[w+3]=S,this._doCryptBlock(v,w,this._invKeySchedule,p,d,m,b,l);var S=v[w+1];v[w+1]=v[w+3],v[w+3]=S},_doCryptBlock:function(v,w,S,g,x,A,U,E){for(var T=this._nRounds,F=v[w]^S[0],B=v[w+1]^S[1],P=v[w+2]^S[2],j=v[w+3]^S[3],N=4,L=1;L<T;L++){var M=g[F>>>24]^x[B>>>16&255]^A[P>>>8&255]^U[j&255]^S[N++],H=g[B>>>24]^x[P>>>16&255]^A[j>>>8&255]^U[F&255]^S[N++],q=g[P>>>24]^x[j>>>16&255]^A[F>>>8&255]^U[B&255]^S[N++],$=g[j>>>24]^x[F>>>16&255]^A[B>>>8&255]^U[P&255]^S[N++];F=M,B=H,P=q,j=$}var M=(E[F>>>24]<<24|E[B>>>16&255]<<16|E[P>>>8&255]<<8|E[j&255])^S[N++],H=(E[B>>>24]<<24|E[P>>>16&255]<<16|E[j>>>8&255]<<8|E[F&255])^S[N++],q=(E[P>>>24]<<24|E[j>>>16&255]<<16|E[F>>>8&255]<<8|E[B&255])^S[N++],$=(E[j>>>24]<<24|E[F>>>16&255]<<16|E[B>>>8&255]<<8|E[P&255])^S[N++];v[w]=M,v[w+1]=H,v[w+2]=q,v[w+3]=$},keySize:256/32});n.AES=s._createHelper(y)})(),r.AES})})(uo);var Xp=uo.exports;oe(Xp);var td="0123456789abcdefghijklmnopqrstuvwxyz";function St(e){return td.charAt(e)}function ed(e,t){return e&t}function Ae(e,t){return e|t}function bi(e,t){return e^t}function wi(e,t){return e&~t}function rd(e){if(e==0)return-1;var t=0;return e&65535||(e>>=16,t+=16),e&255||(e>>=8,t+=8),e&15||(e>>=4,t+=4),e&3||(e>>=2,t+=2),e&1||++t,t}function nd(e){for(var t=0;e!=0;)e&=e-1,++t;return t}var Xt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",lo="=";function qe(e){var t,r,n="";for(t=0;t+3<=e.length;t+=3)r=parseInt(e.substring(t,t+3),16),n+=Xt.charAt(r>>6)+Xt.charAt(r&63);for(t+1==e.length?(r=parseInt(e.substring(t,t+1),16),n+=Xt.charAt(r<<2)):t+2==e.length&&(r=parseInt(e.substring(t,t+2),16),n+=Xt.charAt(r>>2)+Xt.charAt((r&3)<<4));(n.length&3)>0;)n+=lo;return n}function _i(e){var t="",r,n=0,i=0;for(r=0;r<e.length&&e.charAt(r)!=lo;++r){var s=Xt.indexOf(e.charAt(r));s<0||(n==0?(t+=St(s>>2),i=s&3,n=1):n==1?(t+=St(i<<2|s>>4),i=s&15,n=2):n==2?(t+=St(i),t+=St(s>>2),i=s&3,n=3):(t+=St(i<<2|s>>4),t+=St(s&15),n=0))}return n==1&&(t+=St(i<<2)),t}var Yt,id={decode:function(e){var t;if(Yt===void 0){var r="0123456789ABCDEF",n=` \f
20
+ \r  \u2028\u2029`;for(Yt={},t=0;t<16;++t)Yt[r.charAt(t)]=t;for(r=r.toLowerCase(),t=10;t<16;++t)Yt[r.charAt(t)]=t;for(t=0;t<n.length;++t)Yt[n.charAt(t)]=-1}var i=[],s=0,o=0;for(t=0;t<e.length;++t){var a=e.charAt(t);if(a=="=")break;if(a=Yt[a],a!=-1){if(a===void 0)throw new Error("Illegal character at offset "+t);s|=a,++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}},Pt,Vr={decode:function(e){var t;if(Pt===void 0){var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n=`= \f
21
+ \r  \u2028\u2029`;for(Pt=Object.create(null),t=0;t<64;++t)Pt[r.charAt(t)]=t;for(Pt["-"]=62,Pt._=63,t=0;t<n.length;++t)Pt[n.charAt(t)]=-1}var i=[],s=0,o=0;for(t=0;t<e.length;++t){var a=e.charAt(t);if(a=="=")break;if(a=Pt[a],a!=-1){if(a===void 0)throw new Error("Illegal character at offset "+t);s|=a,++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(e){var t=Vr.re.exec(e);if(t)if(t[1])e=t[1];else if(t[2])e=t[2];else throw new Error("RegExp out of sync");return Vr.decode(e)}},Gt=1e13,me=(function(){function e(t){this.buf=[+t||0]}return e.prototype.mulAdd=function(t,r){var n=this.buf,i=n.length,s,o;for(s=0;s<i;++s)o=n[s]*t+r,o<Gt?r=0:(r=0|o/Gt,o-=r*Gt),n[s]=o;r>0&&(n[s]=r)},e.prototype.sub=function(t){var r=this.buf,n=r.length,i,s;for(i=0;i<n;++i)s=r[i]-t,s<0?(s+=Gt,t=1):t=0,r[i]=s;for(;r[r.length-1]===0;)r.pop()},e.prototype.toString=function(t){if((t||10)!=10)throw new Error("only base 10 is supported");for(var r=this.buf,n=r[r.length-1].toString(),i=r.length-2;i>=0;--i)n+=(Gt+r[i]).toString().substring(1);return n},e.prototype.valueOf=function(){for(var t=this.buf,r=0,n=t.length-1;n>=0;--n)r=r*Gt+t[n];return r},e.prototype.simplify=function(){var t=this.buf;return t.length==1?t[0]:this},e})(),fo="…",sd=/^(\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)?)?$/,od=/^(\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 ee(e,t){return e.length>t&&(e=e.substring(0,t)+fo),e}var gr=(function(){function e(t,r){this.hexDigits="0123456789ABCDEF",t instanceof e?(this.enc=t.enc,this.pos=t.pos):(this.enc=t,this.pos=r)}return e.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]},e.prototype.hexByte=function(t){return this.hexDigits.charAt(t>>4&15)+this.hexDigits.charAt(t&15)},e.prototype.hexDump=function(t,r,n){for(var i="",s=t;s<r;++s)if(i+=this.hexByte(this.get(s)),n!==!0)switch(s&15){case 7:i+=" ";break;case 15:i+=`
22
+ `;break;default:i+=" "}return i},e.prototype.isASCII=function(t,r){for(var n=t;n<r;++n){var i=this.get(n);if(i<32||i>176)return!1}return!0},e.prototype.parseStringISO=function(t,r){for(var n="",i=t;i<r;++i)n+=String.fromCharCode(this.get(i));return n},e.prototype.parseStringUTF=function(t,r){for(var n="",i=t;i<r;){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},e.prototype.parseStringBMP=function(t,r){for(var n="",i,s,o=t;o<r;)i=this.get(o++),s=this.get(o++),n+=String.fromCharCode(i<<8|s);return n},e.prototype.parseTime=function(t,r,n){var i=this.parseStringISO(t,r),s=(n?sd:od).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},e.prototype.parseInteger=function(t,r){for(var n=this.get(t),i=n>127,s=i?255:0,o,a="";n==s&&++t<r;)n=this.get(t);if(o=r-t,o===0)return i?-1:0;if(o>4){for(a=n,o<<=3;!((+a^s)&128);)a=+a<<1,--o;a="("+o+` bit)
23
+ `}i&&(n=n-256);for(var l=new me(n),u=t+1;u<r;++u)l.mulAdd(256,this.get(u));return a+l.toString()},e.prototype.parseBitString=function(t,r,n){for(var i=this.get(t),s=(r-t-1<<3)-i,o="("+s+` bit)
24
+ `,a="",l=t+1;l<r;++l){for(var u=this.get(l),c=l==r-1?i:0,f=7;f>=c;--f)a+=u>>f&1?"1":"0";if(a.length>n)return o+ee(a,n)}return o+a},e.prototype.parseOctetString=function(t,r,n){if(this.isASCII(t,r))return ee(this.parseStringISO(t,r),n);var i=r-t,s="("+i+` byte)
25
+ `;n/=2,i>n&&(r=t+n);for(var o=t;o<r;++o)s+=this.hexByte(this.get(o));return i>n&&(s+=fo),s},e.prototype.parseOID=function(t,r,n){for(var i="",s=new me,o=0,a=t;a<r;++a){var l=this.get(a);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 u=s<80?s<40?0:1:2;i=u+"."+(s-u*40)}else i+="."+s.toString();if(i.length>n)return ee(i,n);s=new me,o=0}}return o>0&&(i+=".incomplete"),i},e})(),ad=(function(){function e(t,r,n,i,s){if(!(i instanceof Ei))throw new Error("Invalid tag value.");this.stream=t,this.header=r,this.length=n,this.tag=i,this.sub=s}return e.prototype.typeName=function(){switch(this.tag.tagClass){case 0:switch(this.tag.tagNumber){case 0:return"EOC";case 1:return"BOOLEAN";case 2:return"INTEGER";case 3:return"BIT_STRING";case 4:return"OCTET_STRING";case 5:return"NULL";case 6:return"OBJECT_IDENTIFIER";case 7:return"ObjectDescriptor";case 8:return"EXTERNAL";case 9:return"REAL";case 10:return"ENUMERATED";case 11:return"EMBEDDED_PDV";case 12:return"UTF8String";case 16:return"SEQUENCE";case 17:return"SET";case 18:return"NumericString";case 19:return"PrintableString";case 20:return"TeletexString";case 21:return"VideotexString";case 22:return"IA5String";case 23:return"UTCTime";case 24:return"GeneralizedTime";case 25:return"GraphicString";case 26:return"VisibleString";case 27:return"GeneralString";case 28:return"UniversalString";case 30:return"BMPString"}return"Universal_"+this.tag.tagNumber.toString();case 1:return"Application_"+this.tag.tagNumber.toString();case 2:return"["+this.tag.tagNumber.toString()+"]";case 3:return"Private_"+this.tag.tagNumber.toString()}},e.prototype.content=function(t){if(this.tag===void 0)return null;t===void 0&&(t=1/0);var r=this.posContent(),n=Math.abs(this.length);if(!this.tag.isUniversal())return this.sub!==null?"("+this.sub.length+" elem)":this.stream.parseOctetString(r,r+n,t);switch(this.tag.tagNumber){case 1:return this.stream.get(r)===0?"false":"true";case 2:return this.stream.parseInteger(r,r+n);case 3:return this.sub?"("+this.sub.length+" elem)":this.stream.parseBitString(r,r+n,t);case 4:return this.sub?"("+this.sub.length+" elem)":this.stream.parseOctetString(r,r+n,t);case 6:return this.stream.parseOID(r,r+n,t);case 16:case 17:return this.sub!==null?"("+this.sub.length+" elem)":"(no elem)";case 12:return ee(this.stream.parseStringUTF(r,r+n),t);case 18:case 19:case 20:case 21:case 22:case 26:return ee(this.stream.parseStringISO(r,r+n),t);case 30:return ee(this.stream.parseStringBMP(r,r+n),t);case 23:case 24:return this.stream.parseTime(r,r+n,this.tag.tagNumber==23)}return null},e.prototype.toString=function(){return this.typeName()+"@"+this.stream.pos+"[header:"+this.header+",length:"+this.length+",sub:"+(this.sub===null?"null":this.sub.length)+"]"},e.prototype.toPrettyString=function(t){t===void 0&&(t="");var r=t+this.typeName()+" @"+this.stream.pos;if(this.length>=0&&(r+="+"),r+=this.length,this.tag.tagConstructed?r+=" (constructed)":this.tag.isUniversal()&&(this.tag.tagNumber==3||this.tag.tagNumber==4)&&this.sub!==null&&(r+=" (encapsulates)"),r+=`
26
+ `,this.sub!==null){t+=" ";for(var n=0,i=this.sub.length;n<i;++n)r+=this.sub[n].toPrettyString(t)}return r},e.prototype.posStart=function(){return this.stream.pos},e.prototype.posContent=function(){return this.stream.pos+this.header},e.prototype.posEnd=function(){return this.stream.pos+this.header+Math.abs(this.length)},e.prototype.toHexString=function(){return this.stream.hexDump(this.posStart(),this.posEnd(),!0)},e.decodeLength=function(t){var r=t.get(),n=r&127;if(n==r)return n;if(n>6)throw new Error("Length over 48 bits not supported at position "+(t.pos-1));if(n===0)return null;r=0;for(var i=0;i<n;++i)r=r*256+t.get();return r},e.prototype.getHexStringValue=function(){var t=this.toHexString(),r=this.header*2,n=this.length*2;return t.substr(r,n)},e.decode=function(t){var r;t instanceof gr?r=t:r=new gr(t,0);var n=new gr(r),i=new Ei(r),s=e.decodeLength(r),o=r.pos,a=o-n.pos,l=null,u=function(){var f=[];if(s!==null){for(var h=o+s;r.pos<h;)f[f.length]=e.decode(r);if(r.pos!=h)throw new Error("Content size is not correct for container starting at offset "+o)}else try{for(;;){var p=e.decode(r);if(p.tag.isEOC())break;f[f.length]=p}s=o-r.pos}catch(d){throw new Error("Exception while decoding undefined length content: "+d)}return f};if(i.tagConstructed)l=u();else if(i.isUniversal()&&(i.tagNumber==3||i.tagNumber==4))try{if(i.tagNumber==3&&r.get()!=0)throw new Error("BIT STRINGs with unused bits cannot encapsulate.");l=u();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);r.pos=o+Math.abs(s)}return new e(n,a,s,i,l)},e})(),Ei=(function(){function e(t){var r=t.get();if(this.tagClass=r>>6,this.tagConstructed=(r&32)!==0,this.tagNumber=r&31,this.tagNumber==31){var n=new me;do r=t.get(),n.mulAdd(128,r&127);while(r&128);this.tagNumber=n.simplify()}}return e.prototype.isUniversal=function(){return this.tagClass===0},e.prototype.isEOC=function(){return this.tagClass===0&&this.tagNumber===0},e})(),At,ud=0xdeadbeefcafe,Si=(ud&16777215)==15715070,nt=[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],cd=(1<<26)/nt[nt.length-1],W=(function(){function e(t,r,n){t!=null&&(typeof t=="number"?this.fromNumber(t,r,n):r==null&&typeof t!="string"?this.fromString(t,256):this.fromString(t,r))}return e.prototype.toString=function(t){if(this.s<0)return"-"+this.negate().toString(t);var r;if(t==16)r=4;else if(t==8)r=3;else if(t==2)r=1;else if(t==32)r=5;else if(t==4)r=2;else return this.toRadix(t);var n=(1<<r)-1,i,s=!1,o="",a=this.t,l=this.DB-a*this.DB%r;if(a-- >0)for(l<this.DB&&(i=this[a]>>l)>0&&(s=!0,o=St(i));a>=0;)l<r?(i=(this[a]&(1<<l)-1)<<r-l,i|=this[--a]>>(l+=this.DB-r)):(i=this[a]>>(l-=r)&n,l<=0&&(l+=this.DB,--a)),i>0&&(s=!0),s&&(o+=St(i));return s?o:"0"},e.prototype.negate=function(){var t=J();return e.ZERO.subTo(this,t),t},e.prototype.abs=function(){return this.s<0?this.negate():this},e.prototype.compareTo=function(t){var r=this.s-t.s;if(r!=0)return r;var n=this.t;if(r=n-t.t,r!=0)return this.s<0?-r:r;for(;--n>=0;)if((r=this[n]-t[n])!=0)return r;return 0},e.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+$e(this[this.t-1]^this.s&this.DM)},e.prototype.mod=function(t){var r=J();return this.abs().divRemTo(t,null,r),this.s<0&&r.compareTo(e.ZERO)>0&&t.subTo(r,r),r},e.prototype.modPowInt=function(t,r){var n;return t<256||r.isEven()?n=new xi(r):n=new Ti(r),this.exp(t,n)},e.prototype.clone=function(){var t=J();return this.copyTo(t),t},e.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]},e.prototype.byteValue=function(){return this.t==0?this.s:this[0]<<24>>24},e.prototype.shortValue=function(){return this.t==0?this.s:this[0]<<16>>16},e.prototype.signum=function(){return this.s<0?-1:this.t<=0||this.t==1&&this[0]<=0?0:1},e.prototype.toByteArray=function(){var t=this.t,r=[];r[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&&(r[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&&(i|=-256),s==0&&(this.s&128)!=(i&128)&&++s,(s>0||i!=this.s)&&(r[s++]=i);return r},e.prototype.equals=function(t){return this.compareTo(t)==0},e.prototype.min=function(t){return this.compareTo(t)<0?this:t},e.prototype.max=function(t){return this.compareTo(t)>0?this:t},e.prototype.and=function(t){var r=J();return this.bitwiseTo(t,ed,r),r},e.prototype.or=function(t){var r=J();return this.bitwiseTo(t,Ae,r),r},e.prototype.xor=function(t){var r=J();return this.bitwiseTo(t,bi,r),r},e.prototype.andNot=function(t){var r=J();return this.bitwiseTo(t,wi,r),r},e.prototype.not=function(){for(var t=J(),r=0;r<this.t;++r)t[r]=this.DM&~this[r];return t.t=this.t,t.s=~this.s,t},e.prototype.shiftLeft=function(t){var r=J();return t<0?this.rShiftTo(-t,r):this.lShiftTo(t,r),r},e.prototype.shiftRight=function(t){var r=J();return t<0?this.lShiftTo(-t,r):this.rShiftTo(t,r),r},e.prototype.getLowestSetBit=function(){for(var t=0;t<this.t;++t)if(this[t]!=0)return t*this.DB+rd(this[t]);return this.s<0?this.t*this.DB:-1},e.prototype.bitCount=function(){for(var t=0,r=this.s&this.DM,n=0;n<this.t;++n)t+=nd(this[n]^r);return t},e.prototype.testBit=function(t){var r=Math.floor(t/this.DB);return r>=this.t?this.s!=0:(this[r]&1<<t%this.DB)!=0},e.prototype.setBit=function(t){return this.changeBit(t,Ae)},e.prototype.clearBit=function(t){return this.changeBit(t,wi)},e.prototype.flipBit=function(t){return this.changeBit(t,bi)},e.prototype.add=function(t){var r=J();return this.addTo(t,r),r},e.prototype.subtract=function(t){var r=J();return this.subTo(t,r),r},e.prototype.multiply=function(t){var r=J();return this.multiplyTo(t,r),r},e.prototype.divide=function(t){var r=J();return this.divRemTo(t,r,null),r},e.prototype.remainder=function(t){var r=J();return this.divRemTo(t,null,r),r},e.prototype.divideAndRemainder=function(t){var r=J(),n=J();return this.divRemTo(t,r,n),[r,n]},e.prototype.modPow=function(t,r){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 xi(r):r.isEven()?o=new fd(r):o=new Ti(r);var a=[],l=3,u=i-1,c=(1<<i)-1;if(a[1]=o.convert(this),i>1){var f=J();for(o.sqrTo(a[1],f);l<=c;)a[l]=J(),o.mulTo(f,a[l-2],a[l]),l+=2}var h=t.t-1,p,d=!0,m=J(),b;for(n=$e(t[h])-1;h>=0;){for(n>=u?p=t[h]>>n-u&c:(p=(t[h]&(1<<n+1)-1)<<u-n,h>0&&(p|=t[h-1]>>this.DB+n-u)),l=i;!(p&1);)p>>=1,--l;if((n-=l)<0&&(n+=this.DB,--h),d)a[p].copyTo(s),d=!1;else{for(;l>1;)o.sqrTo(s,m),o.sqrTo(m,s),l-=2;l>0?o.sqrTo(s,m):(b=s,s=m,m=b),o.mulTo(m,a[p],s)}for(;h>=0&&!(t[h]&1<<n);)o.sqrTo(s,m),b=s,s=m,m=b,--n<0&&(n=this.DB-1,--h)}return o.revert(s)},e.prototype.modInverse=function(t){var r=t.isEven();if(this.isEven()&&r||t.signum()==0)return e.ZERO;for(var n=t.clone(),i=this.clone(),s=$t(1),o=$t(0),a=$t(0),l=$t(1);n.signum()!=0;){for(;n.isEven();)n.rShiftTo(1,n),r?((!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),r?((!a.isEven()||!l.isEven())&&(a.addTo(this,a),l.subTo(t,l)),a.rShiftTo(1,a)):l.isEven()||l.subTo(t,l),l.rShiftTo(1,l);n.compareTo(i)>=0?(n.subTo(i,n),r&&s.subTo(a,s),o.subTo(l,o)):(i.subTo(n,i),r&&a.subTo(s,a),l.subTo(o,l))}if(i.compareTo(e.ONE)!=0)return e.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},e.prototype.pow=function(t){return this.exp(t,new ld)},e.prototype.gcd=function(t){var r=this.s<0?this.negate():this.clone(),n=t.s<0?t.negate():t.clone();if(r.compareTo(n)<0){var i=r;r=n,n=i}var s=r.getLowestSetBit(),o=n.getLowestSetBit();if(o<0)return r;for(s<o&&(o=s),o>0&&(r.rShiftTo(o,r),n.rShiftTo(o,n));r.signum()>0;)(s=r.getLowestSetBit())>0&&r.rShiftTo(s,r),(s=n.getLowestSetBit())>0&&n.rShiftTo(s,n),r.compareTo(n)>=0?(r.subTo(n,r),r.rShiftTo(1,r)):(n.subTo(r,n),n.rShiftTo(1,n));return o>0&&n.lShiftTo(o,n),n},e.prototype.isProbablePrime=function(t){var r,n=this.abs();if(n.t==1&&n[0]<=nt[nt.length-1]){for(r=0;r<nt.length;++r)if(n[0]==nt[r])return!0;return!1}if(n.isEven())return!1;for(r=1;r<nt.length;){for(var i=nt[r],s=r+1;s<nt.length&&i<cd;)i*=nt[s++];for(i=n.modInt(i);r<s;)if(i%nt[r++]==0)return!1}return n.millerRabin(t)},e.prototype.copyTo=function(t){for(var r=this.t-1;r>=0;--r)t[r]=this[r];t.t=this.t,t.s=this.s},e.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},e.prototype.fromString=function(t,r){var n;if(r==16)n=4;else if(r==8)n=3;else if(r==256)n=8;else if(r==2)n=1;else if(r==32)n=5;else if(r==4)n=2;else{this.fromRadix(t,r);return}this.t=0,this.s=0;for(var i=t.length,s=!1,o=0;--i>=0;){var a=n==8?+t[i]&255:Ai(t,i);if(a<0){t.charAt(i)=="-"&&(s=!0);continue}s=!1,o==0?this[this.t++]=a:o+n>this.DB?(this[this.t-1]|=(a&(1<<this.DB-o)-1)<<o,this[this.t++]=a>>this.DB-o):this[this.t-1]|=a<<o,o+=n,o>=this.DB&&(o-=this.DB)}n==8&&+t[0]&128&&(this.s=-1,o>0&&(this[this.t-1]|=(1<<this.DB-o)-1<<o)),this.clamp(),s&&e.ZERO.subTo(this,this)},e.prototype.clamp=function(){for(var t=this.s&this.DM;this.t>0&&this[this.t-1]==t;)--this.t},e.prototype.dlShiftTo=function(t,r){var n;for(n=this.t-1;n>=0;--n)r[n+t]=this[n];for(n=t-1;n>=0;--n)r[n]=0;r.t=this.t+t,r.s=this.s},e.prototype.drShiftTo=function(t,r){for(var n=t;n<this.t;++n)r[n-t]=this[n];r.t=Math.max(this.t-t,0),r.s=this.s},e.prototype.lShiftTo=function(t,r){for(var n=t%this.DB,i=this.DB-n,s=(1<<i)-1,o=Math.floor(t/this.DB),a=this.s<<n&this.DM,l=this.t-1;l>=0;--l)r[l+o+1]=this[l]>>i|a,a=(this[l]&s)<<n;for(var l=o-1;l>=0;--l)r[l]=0;r[o]=a,r.t=this.t+o+1,r.s=this.s,r.clamp()},e.prototype.rShiftTo=function(t,r){r.s=this.s;var n=Math.floor(t/this.DB);if(n>=this.t){r.t=0;return}var i=t%this.DB,s=this.DB-i,o=(1<<i)-1;r[0]=this[n]>>i;for(var a=n+1;a<this.t;++a)r[a-n-1]|=(this[a]&o)<<s,r[a-n]=this[a]>>i;i>0&&(r[this.t-n-1]|=(this.s&o)<<s),r.t=this.t-n,r.clamp()},e.prototype.subTo=function(t,r){for(var n=0,i=0,s=Math.min(t.t,this.t);n<s;)i+=this[n]-t[n],r[n++]=i&this.DM,i>>=this.DB;if(t.t<this.t){for(i-=t.s;n<this.t;)i+=this[n],r[n++]=i&this.DM,i>>=this.DB;i+=this.s}else{for(i+=this.s;n<t.t;)i-=t[n],r[n++]=i&this.DM,i>>=this.DB;i-=t.s}r.s=i<0?-1:0,i<-1?r[n++]=this.DV+i:i>0&&(r[n++]=i),r.t=n,r.clamp()},e.prototype.multiplyTo=function(t,r){var n=this.abs(),i=t.abs(),s=n.t;for(r.t=s+i.t;--s>=0;)r[s]=0;for(s=0;s<i.t;++s)r[s+n.t]=n.am(0,i[s],r,s,0,n.t);r.s=0,r.clamp(),this.s!=t.s&&e.ZERO.subTo(r,r)},e.prototype.squareTo=function(t){for(var r=this.abs(),n=t.t=2*r.t;--n>=0;)t[n]=0;for(n=0;n<r.t-1;++n){var i=r.am(n,r[n],t,2*n,0,1);(t[n+r.t]+=r.am(n+1,2*r[n],t,2*n+1,i,r.t-n-1))>=r.DV&&(t[n+r.t]-=r.DV,t[n+r.t+1]=1)}t.t>0&&(t[t.t-1]+=r.am(n,r[n],t,2*n,0,1)),t.s=0,t.clamp()},e.prototype.divRemTo=function(t,r,n){var i=t.abs();if(!(i.t<=0)){var s=this.abs();if(s.t<i.t){r==null||r.fromInt(0),n!=null&&this.copyTo(n);return}n==null&&(n=J());var o=J(),a=this.s,l=t.s,u=this.DB-$e(i[i.t-1]);u>0?(i.lShiftTo(u,o),s.lShiftTo(u,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,m=1<<this.F2,b=n.t,_=b-c,y=r!=null?r:J();for(o.dlShiftTo(_,y),n.compareTo(y)>=0&&(n[n.t++]=1,n.subTo(y,n)),e.ONE.dlShiftTo(c,y),y.subTo(o,o);o.t<c;)o[o.t++]=0;for(;--_>=0;){var v=n[--b]==f?this.DM:Math.floor(n[b]*p+(n[b-1]+m)*d);if((n[b]+=o.am(0,v,n,_,0,c))<v)for(o.dlShiftTo(_,y),n.subTo(y,n);n[b]<--v;)n.subTo(y,n)}r!=null&&(n.drShiftTo(c,r),a!=l&&e.ZERO.subTo(r,r)),n.t=c,n.clamp(),u>0&&n.rShiftTo(u,n),a<0&&e.ZERO.subTo(n,n)}}},e.prototype.invDigit=function(){if(this.t<1)return 0;var t=this[0];if(!(t&1))return 0;var r=t&3;return r=r*(2-(t&15)*r)&15,r=r*(2-(t&255)*r)&255,r=r*(2-((t&65535)*r&65535))&65535,r=r*(2-t*r%this.DV)%this.DV,r>0?this.DV-r:-r},e.prototype.isEven=function(){return(this.t>0?this[0]&1:this.s)==0},e.prototype.exp=function(t,r){if(t>4294967295||t<1)return e.ONE;var n=J(),i=J(),s=r.convert(this),o=$e(t)-1;for(s.copyTo(n);--o>=0;)if(r.sqrTo(n,i),(t&1<<o)>0)r.mulTo(i,s,n);else{var a=n;n=i,i=a}return r.revert(n)},e.prototype.chunkSize=function(t){return Math.floor(Math.LN2*this.DB/Math.log(t))},e.prototype.toRadix=function(t){if(t==null&&(t=10),this.signum()==0||t<2||t>36)return"0";var r=this.chunkSize(t),n=Math.pow(t,r),i=$t(n),s=J(),o=J(),a="";for(this.divRemTo(i,s,o);s.signum()>0;)a=(n+o.intValue()).toString(t).substr(1)+a,s.divRemTo(i,s,o);return o.intValue().toString(t)+a},e.prototype.fromRadix=function(t,r){this.fromInt(0),r==null&&(r=10);for(var n=this.chunkSize(r),i=Math.pow(r,n),s=!1,o=0,a=0,l=0;l<t.length;++l){var u=Ai(t,l);if(u<0){t.charAt(l)=="-"&&this.signum()==0&&(s=!0);continue}a=r*a+u,++o>=n&&(this.dMultiply(i),this.dAddOffset(a,0),o=0,a=0)}o>0&&(this.dMultiply(Math.pow(r,o)),this.dAddOffset(a,0)),s&&e.ZERO.subTo(this,this)},e.prototype.fromNumber=function(t,r,n){if(typeof r=="number")if(t<2)this.fromInt(1);else for(this.fromNumber(t,n),this.testBit(t-1)||this.bitwiseTo(e.ONE.shiftLeft(t-1),Ae,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(r);)this.dAddOffset(2,0),this.bitLength()>t&&this.subTo(e.ONE.shiftLeft(t-1),this);else{var i=[],s=t&7;i.length=(t>>3)+1,r.nextBytes(i),s>0?i[0]&=(1<<s)-1:i[0]=0,this.fromString(i,256)}},e.prototype.bitwiseTo=function(t,r,n){var i,s,o=Math.min(t.t,this.t);for(i=0;i<o;++i)n[i]=r(this[i],t[i]);if(t.t<this.t){for(s=t.s&this.DM,i=o;i<this.t;++i)n[i]=r(this[i],s);n.t=this.t}else{for(s=this.s&this.DM,i=o;i<t.t;++i)n[i]=r(s,t[i]);n.t=t.t}n.s=r(this.s,t.s),n.clamp()},e.prototype.changeBit=function(t,r){var n=e.ONE.shiftLeft(t);return this.bitwiseTo(n,r,n),n},e.prototype.addTo=function(t,r){for(var n=0,i=0,s=Math.min(t.t,this.t);n<s;)i+=this[n]+t[n],r[n++]=i&this.DM,i>>=this.DB;if(t.t<this.t){for(i+=t.s;n<this.t;)i+=this[n],r[n++]=i&this.DM,i>>=this.DB;i+=this.s}else{for(i+=this.s;n<t.t;)i+=t[n],r[n++]=i&this.DM,i>>=this.DB;i+=t.s}r.s=i<0?-1:0,i>0?r[n++]=i:i<-1&&(r[n++]=this.DV+i),r.t=n,r.clamp()},e.prototype.dMultiply=function(t){this[this.t]=this.am(0,t-1,this,0,0,this.t),++this.t,this.clamp()},e.prototype.dAddOffset=function(t,r){if(t!=0){for(;this.t<=r;)this[this.t++]=0;for(this[r]+=t;this[r]>=this.DV;)this[r]-=this.DV,++r>=this.t&&(this[this.t++]=0),++this[r]}},e.prototype.multiplyLowerTo=function(t,r,n){var i=Math.min(this.t+t.t,r);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,r);i<s;++i)this.am(0,t[i],n,i,0,r-i);n.clamp()},e.prototype.multiplyUpperTo=function(t,r,n){--r;var i=n.t=this.t+t.t-r;for(n.s=0;--i>=0;)n[i]=0;for(i=Math.max(r-this.t,0);i<t.t;++i)n[this.t+i-r]=this.am(r-i,t[i],n,0,0,this.t+i-r);n.clamp(),n.drShiftTo(1,n)},e.prototype.modInt=function(t){if(t<=0)return 0;var r=this.DV%t,n=this.s<0?t-1:0;if(this.t>0)if(r==0)n=this[0]%t;else for(var i=this.t-1;i>=0;--i)n=(r*n+this[i])%t;return n},e.prototype.millerRabin=function(t){var r=this.subtract(e.ONE),n=r.getLowestSetBit();if(n<=0)return!1;var i=r.shiftRight(n);t=t+1>>1,t>nt.length&&(t=nt.length);for(var s=J(),o=0;o<t;++o){s.fromInt(nt[Math.floor(Math.random()*nt.length)]);var a=s.modPow(i,this);if(a.compareTo(e.ONE)!=0&&a.compareTo(r)!=0){for(var l=1;l++<n&&a.compareTo(r)!=0;)if(a=a.modPowInt(2,this),a.compareTo(e.ONE)==0)return!1;if(a.compareTo(r)!=0)return!1}}return!0},e.prototype.square=function(){var t=J();return this.squareTo(t),t},e.prototype.gcda=function(t,r){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(),a=i.getLowestSetBit();if(a<0){r(n);return}o<a&&(a=o),a>0&&(n.rShiftTo(a,n),i.rShiftTo(a,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):(a>0&&i.lShiftTo(a,i),setTimeout(function(){r(i)},0))};setTimeout(l,10)},e.prototype.fromNumberAsync=function(t,r,n,i){if(typeof r=="number")if(t<2)this.fromInt(1);else{this.fromNumber(t,n),this.testBit(t-1)||this.bitwiseTo(e.ONE.shiftLeft(t-1),Ae,this),this.isEven()&&this.dAddOffset(1,0);var s=this,o=function(){s.dAddOffset(2,0),s.bitLength()>t&&s.subTo(e.ONE.shiftLeft(t-1),s),s.isProbablePrime(r)?setTimeout(function(){i()},0):setTimeout(o,0)};setTimeout(o,0)}else{var a=[],l=t&7;a.length=(t>>3)+1,r.nextBytes(a),l>0?a[0]&=(1<<l)-1:a[0]=0,this.fromString(a,256)}},e})(),ld=(function(){function e(){}return e.prototype.convert=function(t){return t},e.prototype.revert=function(t){return t},e.prototype.mulTo=function(t,r,n){t.multiplyTo(r,n)},e.prototype.sqrTo=function(t,r){t.squareTo(r)},e})(),xi=(function(){function e(t){this.m=t}return e.prototype.convert=function(t){return t.s<0||t.compareTo(this.m)>=0?t.mod(this.m):t},e.prototype.revert=function(t){return t},e.prototype.reduce=function(t){t.divRemTo(this.m,null,t)},e.prototype.mulTo=function(t,r,n){t.multiplyTo(r,n),this.reduce(n)},e.prototype.sqrTo=function(t,r){t.squareTo(r),this.reduce(r)},e})(),Ti=(function(){function e(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 e.prototype.convert=function(t){var r=J();return t.abs().dlShiftTo(this.m.t,r),r.divRemTo(this.m,null,r),t.s<0&&r.compareTo(W.ZERO)>0&&this.m.subTo(r,r),r},e.prototype.revert=function(t){var r=J();return t.copyTo(r),this.reduce(r),r},e.prototype.reduce=function(t){for(;t.t<=this.mt2;)t[t.t++]=0;for(var r=0;r<this.m.t;++r){var n=t[r]&32767,i=n*this.mpl+((n*this.mph+(t[r]>>15)*this.mpl&this.um)<<15)&t.DM;for(n=r+this.m.t,t[n]+=this.m.am(0,i,t,r,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)},e.prototype.mulTo=function(t,r,n){t.multiplyTo(r,n),this.reduce(n)},e.prototype.sqrTo=function(t,r){t.squareTo(r),this.reduce(r)},e})(),fd=(function(){function e(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 e.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 r=J();return t.copyTo(r),this.reduce(r),r},e.prototype.revert=function(t){return t},e.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)},e.prototype.mulTo=function(t,r,n){t.multiplyTo(r,n),this.reduce(n)},e.prototype.sqrTo=function(t,r){t.squareTo(r),this.reduce(r)},e})();function J(){return new W(null)}function Z(e,t){return new W(e,t)}var Ri=typeof navigator<"u";Ri&&Si&&navigator.appName=="Microsoft Internet Explorer"?(W.prototype.am=function(e,t,r,n,i,s){for(var o=t&32767,a=t>>15;--s>=0;){var l=this[e]&32767,u=this[e++]>>15,c=a*l+u*o;l=o*l+((c&32767)<<15)+r[n]+(i&1073741823),i=(l>>>30)+(c>>>15)+a*u+(i>>>30),r[n++]=l&1073741823}return i},At=30):Ri&&Si&&navigator.appName!="Netscape"?(W.prototype.am=function(e,t,r,n,i,s){for(;--s>=0;){var o=t*this[e++]+r[n]+i;i=Math.floor(o/67108864),r[n++]=o&67108863}return i},At=26):(W.prototype.am=function(e,t,r,n,i,s){for(var o=t&16383,a=t>>14;--s>=0;){var l=this[e]&16383,u=this[e++]>>14,c=a*l+u*o;l=o*l+((c&16383)<<14)+r[n]+i,i=(l>>28)+(c>>14)+a*u,r[n++]=l&268435455}return i},At=28),W.prototype.DB=At,W.prototype.DM=(1<<At)-1,W.prototype.DV=1<<At;var yr=52;W.prototype.FV=Math.pow(2,yr),W.prototype.F1=yr-At,W.prototype.F2=2*At-yr;var Xe=[],ne,ft;for(ne=48,ft=0;ft<=9;++ft)Xe[ne++]=ft;for(ne=97,ft=10;ft<36;++ft)Xe[ne++]=ft;for(ne=65,ft=10;ft<36;++ft)Xe[ne++]=ft;function Ai(e,t){var r=Xe[e.charCodeAt(t)];return r!=null?r:-1}function $t(e){var t=J();return t.fromInt(e),t}function $e(e){var t=1,r;return(r=e>>>16)!=0&&(e=r,t+=16),(r=e>>8)!=0&&(e=r,t+=8),(r=e>>4)!=0&&(e=r,t+=4),(r=e>>2)!=0&&(e=r,t+=2),(r=e>>1)!=0&&(e=r,t+=1),t}W.ZERO=$t(0),W.ONE=$t(1);var hd=(function(){function e(){this.i=0,this.j=0,this.S=[]}return e.prototype.init=function(t){var r,n,i;for(r=0;r<256;++r)this.S[r]=r;for(n=0,r=0;r<256;++r)n=n+this.S[r]+t[r%t.length]&255,i=this.S[r],this.S[r]=this.S[n],this.S[n]=i;this.i=0,this.j=0},e.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]},e})();function pd(){return new hd}var ho=256,Oe,jt=null,dt;if(jt==null){jt=[],dt=0;var je=void 0;if(typeof window<"u"&&window.crypto&&window.crypto.getRandomValues){var vr=new Uint32Array(256);for(window.crypto.getRandomValues(vr),je=0;je<vr.length;++je)jt[dt++]=vr[je]&255}var De=0,Be=function(e){if(De=De||0,De>=256||dt>=ho){window.removeEventListener?window.removeEventListener("mousemove",Be,!1):window.detachEvent&&window.detachEvent("onmousemove",Be);return}try{var t=e.x+e.y;jt[dt++]=t&255,De+=1}catch(r){}};typeof window<"u"&&(window.addEventListener?window.addEventListener("mousemove",Be,!1):window.attachEvent&&window.attachEvent("onmousemove",Be))}function dd(){if(Oe==null){for(Oe=pd();dt<ho;){var e=Math.floor(65536*Math.random());jt[dt++]=e&255}for(Oe.init(jt),dt=0;dt<jt.length;++dt)jt[dt]=0;dt=0}return Oe.next()}var Hr=(function(){function e(){}return e.prototype.nextBytes=function(t){for(var r=0;r<t.length;++r)t[r]=dd()},e})();function md(e,t){if(t<e.length+22)return console.error("Message too long for RSA"),null;for(var r=t-e.length-6,n="",i=0;i<r;i+=2)n+="ff";var s="0001"+n+"00"+e;return Z(s,16)}function gd(e,t){if(t<e.length+11)return console.error("Message too long for RSA"),null;for(var r=[],n=e.length-1;n>=0&&t>0;){var i=e.charCodeAt(n--);i<128?r[--t]=i:i>127&&i<2048?(r[--t]=i&63|128,r[--t]=i>>6|192):(r[--t]=i&63|128,r[--t]=i>>6&63|128,r[--t]=i>>12|224)}r[--t]=0;for(var s=new Hr,o=[];t>2;){for(o[0]=0;o[0]==0;)s.nextBytes(o);r[--t]=o[0]}return r[--t]=2,r[--t]=0,new W(r)}var yd=(function(){function e(){this.n=null,this.e=0,this.d=null,this.p=null,this.q=null,this.dmp1=null,this.dmq1=null,this.coeff=null}return e.prototype.doPublic=function(t){return t.modPowInt(this.e,this.n)},e.prototype.doPrivate=function(t){if(this.p==null||this.q==null)return t.modPow(this.d,this.n);for(var r=t.mod(this.p).modPow(this.dmp1,this.p),n=t.mod(this.q).modPow(this.dmq1,this.q);r.compareTo(n)<0;)r=r.add(this.p);return r.subtract(n).multiply(this.coeff).mod(this.p).multiply(this.q).add(n)},e.prototype.setPublic=function(t,r){t!=null&&r!=null&&t.length>0&&r.length>0?(this.n=Z(t,16),this.e=parseInt(r,16)):console.error("Invalid RSA public key")},e.prototype.encrypt=function(t){var r=this.n.bitLength()+7>>3,n=gd(t,r);if(n==null)return null;var i=this.doPublic(n);if(i==null)return null;for(var s=i.toString(16),o=s.length,a=0;a<r*2-o;a++)s="0"+s;return s},e.prototype.setPrivate=function(t,r,n){t!=null&&r!=null&&t.length>0&&r.length>0?(this.n=Z(t,16),this.e=parseInt(r,16),this.d=Z(n,16)):console.error("Invalid RSA private key")},e.prototype.setPrivateEx=function(t,r,n,i,s,o,a,l){t!=null&&r!=null&&t.length>0&&r.length>0?(this.n=Z(t,16),this.e=parseInt(r,16),this.d=Z(n,16),this.p=Z(i,16),this.q=Z(s,16),this.dmp1=Z(o,16),this.dmq1=Z(a,16),this.coeff=Z(l,16)):console.error("Invalid RSA private key")},e.prototype.generate=function(t,r){var n=new Hr,i=t>>1;this.e=parseInt(r,16);for(var s=new W(r,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 a=this.p.subtract(W.ONE),l=this.q.subtract(W.ONE),u=a.multiply(l);if(u.gcd(s).compareTo(W.ONE)==0){this.n=this.p.multiply(this.q),this.d=s.modInverse(u),this.dmp1=this.d.mod(a),this.dmq1=this.d.mod(l),this.coeff=this.q.modInverse(this.p);break}}},e.prototype.decrypt=function(t){var r=Z(t,16),n=this.doPrivate(r);return n==null?null:vd(n,this.n.bitLength()+7>>3)},e.prototype.generateAsync=function(t,r,n){var i=new Hr,s=t>>1;this.e=parseInt(r,16);var o=new W(r,16),a=this,l=function(){var u=function(){if(a.p.compareTo(a.q)<=0){var h=a.p;a.p=a.q,a.q=h}var p=a.p.subtract(W.ONE),d=a.q.subtract(W.ONE),m=p.multiply(d);m.gcd(o).compareTo(W.ONE)==0?(a.n=a.p.multiply(a.q),a.d=o.modInverse(m),a.dmp1=a.d.mod(p),a.dmq1=a.d.mod(d),a.coeff=a.q.modInverse(a.p),setTimeout(function(){n()},0)):setTimeout(l,0)},c=function(){a.q=J(),a.q.fromNumberAsync(s,1,i,function(){a.q.subtract(W.ONE).gcda(o,function(h){h.compareTo(W.ONE)==0&&a.q.isProbablePrime(10)?setTimeout(u,0):setTimeout(c,0)})})},f=function(){a.p=J(),a.p.fromNumberAsync(t-s,1,i,function(){a.p.subtract(W.ONE).gcda(o,function(h){h.compareTo(W.ONE)==0&&a.p.isProbablePrime(10)?setTimeout(c,0):setTimeout(f,0)})})};setTimeout(f,0)};setTimeout(l,0)},e.prototype.sign=function(t,r,n){var i=bd(n),s=i+r(t).toString(),o=md(s,this.n.bitLength()/4);if(o==null)return null;var a=this.doPrivate(o);if(a==null)return null;var l=a.toString(16);return l.length&1?"0"+l:l},e.prototype.verify=function(t,r,n){var i=Z(r,16),s=this.doPublic(i);if(s==null)return null;var o=s.toString(16).replace(/^1f+00/,""),a=wd(o);return a==n(t).toString()},e})();function vd(e,t){for(var r=e.toByteArray(),n=0;n<r.length&&r[n]==0;)++n;if(r.length-n!=t-1||r[n]!=2)return null;for(++n;r[n]!=0;)if(++n>=r.length)return null;for(var i="";++n<r.length;){var s=r[n]&255;s<128?i+=String.fromCharCode(s):s>191&&s<224?(i+=String.fromCharCode((s&31)<<6|r[n+1]&63),++n):(i+=String.fromCharCode((s&15)<<12|(r[n+1]&63)<<6|r[n+2]&63),n+=2)}return i}var Pe={md2:"3020300c06082a864886f70d020205000410",md5:"3020300c06082a864886f70d020505000410",sha1:"3021300906052b0e03021a05000414",sha224:"302d300d06096086480165030402040500041c",sha256:"3031300d060960864801650304020105000420",sha384:"3041300d060960864801650304020205000430",sha512:"3051300d060960864801650304020305000440",ripemd160:"3021300906052b2403020105000414"};function bd(e){return Pe[e]||""}function wd(e){for(var t in Pe)if(Pe.hasOwnProperty(t)){var r=Pe[t],n=r.length;if(e.substr(0,n)==r)return e.substr(n)}return e}/*!
27
27
  Copyright (c) 2011, Yahoo! Inc. All rights reserved.
28
28
  Code licensed under the BSD License:
29
29
  http://developer.yahoo.com/yui/license.html
30
30
  version: 2.9.0
31
- */var X={};X.lang={extend:function(e,t,r){if(!t||!e)throw new Error("YAHOO.lang.extend failed, please check that all dependencies are included.");var n=function(){};if(n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e,e.superclass=t.prototype,t.prototype.constructor==Object.prototype.constructor&&(t.prototype.constructor=t),r){var i;for(i in r)e.prototype[i]=r[i];var s=function(){},o=["toString","valueOf"];try{/MSIE/.test(navigator.userAgent)&&(s=function(u,l){for(i=0;i<o.length;i=i+1){var a=o[i],c=l[a];typeof c=="function"&&c!=Object.prototype[a]&&(u[a]=c)}})}catch(u){}s(e.prototype,r)}}};/**
31
+ */var X={};X.lang={extend:function(e,t,r){if(!t||!e)throw new Error("YAHOO.lang.extend failed, please check that all dependencies are included.");var n=function(){};if(n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e,e.superclass=t.prototype,t.prototype.constructor==Object.prototype.constructor&&(t.prototype.constructor=t),r){var i;for(i in r)e.prototype[i]=r[i];var s=function(){},o=["toString","valueOf"];try{/MSIE/.test(navigator.userAgent)&&(s=function(a,l){for(i=0;i<o.length;i=i+1){var u=o[i],c=l[u];typeof c=="function"&&c!=Object.prototype[u]&&(a[u]=c)}})}catch(a){}s(e.prototype,r)}}};/**
32
32
  * @fileOverview
33
33
  * @name asn1-1.0.js
34
34
  * @author Kenji Urushima kenji.urushima@gmail.com
35
35
  * @version asn1 1.0.13 (2017-Jun-02)
36
36
  * @since jsrsasign 2.1
37
37
  * @license <a href="https://kjur.github.io/jsrsasign/license/">MIT License</a>
38
- */var O={};(typeof O.asn1>"u"||!O.asn1)&&(O.asn1={}),O.asn1.ASN1Util=new function(){this.integerToByteHex=function(e){var t=e.toString(16);return t.length%2==1&&(t="0"+t),t},this.bigIntToMinTwosComplementsHex=function(e){var t=e.toString(16);if(t.substr(0,1)!="-")t.length%2==1?t="0"+t:t.match(/^[0-7]/)||(t="00"+t);else{var r=t.substr(1),n=r.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(e).add(W.ONE);t=u.toString(16).replace(/^-/,"")}return t},this.getPEMStringFromHex=function(e,t){return hextopem(e,t)},this.newObject=function(e){var t=O,r=t.asn1,n=r.DERBoolean,i=r.DERInteger,s=r.DERBitString,o=r.DEROctetString,u=r.DERNull,l=r.DERObjectIdentifier,a=r.DEREnumerated,c=r.DERUTF8String,f=r.DERNumericString,h=r.DERPrintableString,p=r.DERTeletexString,d=r.DERIA5String,m=r.DERUTCTime,b=r.DERGeneralizedTime,_=r.DERSequence,y=r.DERSet,v=r.DERTaggedObject,w=r.ASN1Util.newObject,S=Object.keys(e);if(S.length!=1)throw"key of param shall be only one.";var g=S[0];if(":bool:int:bitstr:octstr:null:oid:enum:utf8str:numstr:prnstr:telstr:ia5str:utctime:gentime:seq:set:tag:".indexOf(":"+g+":")==-1)throw"undefined key: "+g;if(g=="bool")return new n(e[g]);if(g=="int")return new i(e[g]);if(g=="bitstr")return new s(e[g]);if(g=="octstr")return new o(e[g]);if(g=="null")return new u(e[g]);if(g=="oid")return new l(e[g]);if(g=="enum")return new a(e[g]);if(g=="utf8str")return new c(e[g]);if(g=="numstr")return new f(e[g]);if(g=="prnstr")return new h(e[g]);if(g=="telstr")return new p(e[g]);if(g=="ia5str")return new d(e[g]);if(g=="utctime")return new m(e[g]);if(g=="gentime")return new b(e[g]);if(g=="seq"){for(var x=e[g],A=[],U=0;U<x.length;U++){var E=w(x[U]);A.push(E)}return new _({array:A})}if(g=="set"){for(var x=e[g],A=[],U=0;U<x.length;U++){var E=w(x[U]);A.push(E)}return new y({array:A})}if(g=="tag"){var T=e[g];if(Object.prototype.toString.call(T)==="[object Array]"&&T.length==3){var F=w(T[2]);return new v({tag:T[0],explicit:T[1],obj:F})}else{var B={};if(T.explicit!==void 0&&(B.explicit=T.explicit),T.tag!==void 0&&(B.tag=T.tag),T.obj===void 0)throw"obj shall be specified for 'tag'.";return B.obj=w(T.obj),new v(B)}}},this.jsonToASN1HEX=function(e){var t=this.newObject(e);return t.getEncodedHex()}},O.asn1.ASN1Util.oidHexToInt=function(e){for(var i="",t=parseInt(e.substr(0,2),16),r=Math.floor(t/40),n=t%40,i=r+"."+n,s="",o=2;o<e.length;o+=2){var u=parseInt(e.substr(o,2),16),l=("00000000"+u.toString(2)).slice(-8);if(s=s+l.substr(1,7),l.substr(0,1)=="0"){var a=new W(s,2);i=i+"."+a.toString(10),s=""}}return i},O.asn1.ASN1Util.oidIntToHex=function(e){var t=function(u){var l=u.toString(16);return l.length==1&&(l="0"+l),l},r=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.substr(p,7);p!=c.length-7&&(d="1"+d),l+=t(parseInt(d,2))}return l};if(!e.match(/^[0-9.]+$/))throw"malformed oid string: "+e;var n="",i=e.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+=r(i[o]);return n},O.asn1.ASN1Object=function(){var e="";this.getLengthHexFromValue=function(){if(typeof this.hV>"u"||this.hV==null)throw"this.hV is null or undefined.";if(this.hV.length%2==1)throw"value hex must be even length: n="+e.length+",v="+this.hV;var t=this.hV.length/2,r=t.toString(16);if(r.length%2==1&&(r="0"+r),t<128)return r;var n=r.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)+r},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""}},O.asn1.DERAbstractString=function(e){O.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 e<"u"&&(typeof e=="string"?this.setString(e):typeof e.str<"u"?this.setString(e.str):typeof e.hex<"u"&&this.setStringHex(e.hex))},X.lang.extend(O.asn1.DERAbstractString,O.asn1.ASN1Object),O.asn1.DERAbstractTime=function(e){O.asn1.DERAbstractTime.superclass.constructor.call(this),this.localDateToUTC=function(t){utc=t.getTime()+t.getTimezoneOffset()*6e4;var r=new Date(utc);return r},this.formatDate=function(t,r,n){var i=this.zeroPadding,s=this.localDateToUTC(t),o=String(s.getFullYear());r=="utc"&&(o=o.substr(2,2));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,r){return t.length>=r?t:new Array(r-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,r,n,i,s,o){var u=new Date(Date.UTC(t,r-1,n,i,s,o,0));this.setByDate(u)},this.getFreshValueHex=function(){return this.hV}},X.lang.extend(O.asn1.DERAbstractTime,O.asn1.ASN1Object),O.asn1.DERAbstractStructured=function(e){O.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 e<"u"&&typeof e.array<"u"&&(this.asn1Array=e.array)},X.lang.extend(O.asn1.DERAbstractStructured,O.asn1.ASN1Object),O.asn1.DERBoolean=function(){O.asn1.DERBoolean.superclass.constructor.call(this),this.hT="01",this.hTLV="0101ff"},X.lang.extend(O.asn1.DERBoolean,O.asn1.ASN1Object),O.asn1.DERInteger=function(e){O.asn1.DERInteger.superclass.constructor.call(this),this.hT="02",this.setByBigInteger=function(t){this.hTLV=null,this.isModified=!0,this.hV=O.asn1.ASN1Util.bigIntToMinTwosComplementsHex(t)},this.setByInteger=function(t){var r=new W(String(t),10);this.setByBigInteger(r)},this.setValueHex=function(t){this.hV=t},this.getFreshValueHex=function(){return this.hV},typeof e<"u"&&(typeof e.bigint<"u"?this.setByBigInteger(e.bigint):typeof e.int<"u"?this.setByInteger(e.int):typeof e=="number"?this.setByInteger(e):typeof e.hex<"u"&&this.setValueHex(e.hex))},X.lang.extend(O.asn1.DERInteger,O.asn1.ASN1Object),O.asn1.DERBitString=function(e){if(e!==void 0&&typeof e.obj<"u"){var t=O.asn1.ASN1Util.newObject(e.obj);e.hex="00"+t.getEncodedHex()}O.asn1.DERBitString.superclass.constructor.call(this),this.hT="03",this.setHexValueIncludingUnusedBits=function(r){this.hTLV=null,this.isModified=!0,this.hV=r},this.setUnusedBitsAndHexValue=function(r,n){if(r<0||7<r)throw"unused bits shall be from 0 to 7: u = "+r;var i="0"+r;this.hTLV=null,this.isModified=!0,this.hV=i+n},this.setByBinaryString=function(r){r=r.replace(/0+$/,"");var n=8-r.length%8;n==8&&(n=0);for(var i=0;i<=n;i++)r+="0";for(var s="",i=0;i<r.length-1;i+=8){var o=r.substr(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(r){for(var n="",i=0;i<r.length;i++)r[i]==!0?n+="1":n+="0";this.setByBinaryString(n)},this.newFalseArray=function(r){for(var n=new Array(r),i=0;i<r;i++)n[i]=!1;return n},this.getFreshValueHex=function(){return this.hV},typeof e<"u"&&(typeof e=="string"&&e.toLowerCase().match(/^[0-9a-f]+$/)?this.setHexValueIncludingUnusedBits(e):typeof e.hex<"u"?this.setHexValueIncludingUnusedBits(e.hex):typeof e.bin<"u"?this.setByBinaryString(e.bin):typeof e.array<"u"&&this.setByBooleanArray(e.array))},X.lang.extend(O.asn1.DERBitString,O.asn1.ASN1Object),O.asn1.DEROctetString=function(e){if(e!==void 0&&typeof e.obj<"u"){var t=O.asn1.ASN1Util.newObject(e.obj);e.hex=t.getEncodedHex()}O.asn1.DEROctetString.superclass.constructor.call(this,e),this.hT="04"},X.lang.extend(O.asn1.DEROctetString,O.asn1.DERAbstractString),O.asn1.DERNull=function(){O.asn1.DERNull.superclass.constructor.call(this),this.hT="05",this.hTLV="0500"},X.lang.extend(O.asn1.DERNull,O.asn1.ASN1Object),O.asn1.DERObjectIdentifier=function(e){var t=function(n){var i=n.toString(16);return i.length==1&&(i="0"+i),i},r=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.substr(a,7);a!=o.length-7&&(c="1"+c),i+=t(parseInt(c,2))}return i};O.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+=r(s[u]);this.hTLV=null,this.isModified=!0,this.s=null,this.hV=i},this.setValueName=function(n){var i=O.asn1.x509.OID.name2oid(n);if(i!=="")this.setValueOidString(i);else throw"DERObjectIdentifier oidName undefined: "+n},this.getFreshValueHex=function(){return this.hV},e!==void 0&&(typeof e=="string"?e.match(/^[0-2].[0-9.]+$/)?this.setValueOidString(e):this.setValueName(e):e.oid!==void 0?this.setValueOidString(e.oid):e.hex!==void 0?this.setValueHex(e.hex):e.name!==void 0&&this.setValueName(e.name))},X.lang.extend(O.asn1.DERObjectIdentifier,O.asn1.ASN1Object),O.asn1.DEREnumerated=function(e){O.asn1.DEREnumerated.superclass.constructor.call(this),this.hT="0a",this.setByBigInteger=function(t){this.hTLV=null,this.isModified=!0,this.hV=O.asn1.ASN1Util.bigIntToMinTwosComplementsHex(t)},this.setByInteger=function(t){var r=new W(String(t),10);this.setByBigInteger(r)},this.setValueHex=function(t){this.hV=t},this.getFreshValueHex=function(){return this.hV},typeof e<"u"&&(typeof e.int<"u"?this.setByInteger(e.int):typeof e=="number"?this.setByInteger(e):typeof e.hex<"u"&&this.setValueHex(e.hex))},X.lang.extend(O.asn1.DEREnumerated,O.asn1.ASN1Object),O.asn1.DERUTF8String=function(e){O.asn1.DERUTF8String.superclass.constructor.call(this,e),this.hT="0c"},X.lang.extend(O.asn1.DERUTF8String,O.asn1.DERAbstractString),O.asn1.DERNumericString=function(e){O.asn1.DERNumericString.superclass.constructor.call(this,e),this.hT="12"},X.lang.extend(O.asn1.DERNumericString,O.asn1.DERAbstractString),O.asn1.DERPrintableString=function(e){O.asn1.DERPrintableString.superclass.constructor.call(this,e),this.hT="13"},X.lang.extend(O.asn1.DERPrintableString,O.asn1.DERAbstractString),O.asn1.DERTeletexString=function(e){O.asn1.DERTeletexString.superclass.constructor.call(this,e),this.hT="14"},X.lang.extend(O.asn1.DERTeletexString,O.asn1.DERAbstractString),O.asn1.DERIA5String=function(e){O.asn1.DERIA5String.superclass.constructor.call(this,e),this.hT="16"},X.lang.extend(O.asn1.DERIA5String,O.asn1.DERAbstractString),O.asn1.DERUTCTime=function(e){O.asn1.DERUTCTime.superclass.constructor.call(this,e),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>"u"&&typeof this.s>"u"&&(this.date=new Date,this.s=this.formatDate(this.date,"utc"),this.hV=stohex(this.s)),this.hV},e!==void 0&&(e.str!==void 0?this.setString(e.str):typeof e=="string"&&e.match(/^[0-9]{12}Z$/)?this.setString(e):e.hex!==void 0?this.setStringHex(e.hex):e.date!==void 0&&this.setByDate(e.date))},X.lang.extend(O.asn1.DERUTCTime,O.asn1.DERAbstractTime),O.asn1.DERGeneralizedTime=function(e){O.asn1.DERGeneralizedTime.superclass.constructor.call(this,e),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},e!==void 0&&(e.str!==void 0?this.setString(e.str):typeof e=="string"&&e.match(/^[0-9]{14}Z$/)?this.setString(e):e.hex!==void 0?this.setStringHex(e.hex):e.date!==void 0&&this.setByDate(e.date),e.millis===!0&&(this.withMillis=!0))},X.lang.extend(O.asn1.DERGeneralizedTime,O.asn1.DERAbstractTime),O.asn1.DERSequence=function(e){O.asn1.DERSequence.superclass.constructor.call(this,e),this.hT="30",this.getFreshValueHex=function(){for(var t="",r=0;r<this.asn1Array.length;r++){var n=this.asn1Array[r];t+=n.getEncodedHex()}return this.hV=t,this.hV}},X.lang.extend(O.asn1.DERSequence,O.asn1.DERAbstractStructured),O.asn1.DERSet=function(e){O.asn1.DERSet.superclass.constructor.call(this,e),this.hT="31",this.sortFlag=!0,this.getFreshValueHex=function(){for(var t=new Array,r=0;r<this.asn1Array.length;r++){var n=this.asn1Array[r];t.push(n.getEncodedHex())}return this.sortFlag==!0&&t.sort(),this.hV=t.join(""),this.hV},typeof e<"u"&&typeof e.sortflag<"u"&&e.sortflag==!1&&(this.sortFlag=!1)},X.lang.extend(O.asn1.DERSet,O.asn1.DERAbstractStructured),O.asn1.DERTaggedObject=function(e){O.asn1.DERTaggedObject.superclass.constructor.call(this),this.hT="a0",this.hV="",this.isExplicit=!0,this.asn1Object=null,this.setASN1Object=function(t,r,n){this.hT=r,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(/^../,r),this.isModified=!1)},this.getFreshValueHex=function(){return this.hV},typeof e<"u"&&(typeof e.tag<"u"&&(this.hT=e.tag),typeof e.explicit<"u"&&(this.isExplicit=e.explicit),typeof e.obj<"u"&&(this.asn1Object=e.obj,this.setASN1Object(this.isExplicit,this.hT,this.asn1Object)))},X.lang.extend(O.asn1.DERTaggedObject,O.asn1.ASN1Object);var _d=(function(){var e=function(t,r){return e=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])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),$i=(function(e){_d(t,e);function t(r){var n=e.call(this)||this;return r&&(typeof r=="string"?n.parseKey(r):(t.hasPrivateKeyProperty(r)||t.hasPublicKeyProperty(r))&&n.parsePropertiesFrom(r)),n}return t.prototype.parseKey=function(r){try{var n=0,i=0,s=/^\s*(?:[0-9A-Fa-f][0-9A-Fa-f]\s*)+$/,o=s.test(r)?id.decode(r):Vr.unarmor(r),u=ad.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],m=d.sub[0];n=m.sub[0].getHexStringValue(),this.n=Z(n,16),i=m.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 r={array:[new O.asn1.DERInteger({int:0}),new O.asn1.DERInteger({bigint:this.n}),new O.asn1.DERInteger({int:this.e}),new O.asn1.DERInteger({bigint:this.d}),new O.asn1.DERInteger({bigint:this.p}),new O.asn1.DERInteger({bigint:this.q}),new O.asn1.DERInteger({bigint:this.dmp1}),new O.asn1.DERInteger({bigint:this.dmq1}),new O.asn1.DERInteger({bigint:this.coeff})]},n=new O.asn1.DERSequence(r);return n.getEncodedHex()},t.prototype.getPrivateBaseKeyB64=function(){return qe(this.getPrivateBaseKey())},t.prototype.getPublicBaseKey=function(){var r=new O.asn1.DERSequence({array:[new O.asn1.DERObjectIdentifier({oid:"1.2.840.113549.1.1.1"}),new O.asn1.DERNull]}),n=new O.asn1.DERSequence({array:[new O.asn1.DERInteger({bigint:this.n}),new O.asn1.DERInteger({int:this.e})]}),i=new O.asn1.DERBitString({hex:"00"+n.getEncodedHex()}),s=new O.asn1.DERSequence({array:[r,i]});return s.getEncodedHex()},t.prototype.getPublicBaseKeyB64=function(){return qe(this.getPublicBaseKey())},t.wordwrap=function(r,n){if(n=n||64,!r)return r;var i="(.{1,"+n+`})( +|$
38
+ */var O={};(typeof O.asn1>"u"||!O.asn1)&&(O.asn1={}),O.asn1.ASN1Util=new function(){this.integerToByteHex=function(e){var t=e.toString(16);return t.length%2==1&&(t="0"+t),t},this.bigIntToMinTwosComplementsHex=function(e){var t=e.toString(16);if(t.substr(0,1)!="-")t.length%2==1?t="0"+t:t.match(/^[0-7]/)||(t="00"+t);else{var r=t.substr(1),n=r.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),a=o.xor(e).add(W.ONE);t=a.toString(16).replace(/^-/,"")}return t},this.getPEMStringFromHex=function(e,t){return hextopem(e,t)},this.newObject=function(e){var t=O,r=t.asn1,n=r.DERBoolean,i=r.DERInteger,s=r.DERBitString,o=r.DEROctetString,a=r.DERNull,l=r.DERObjectIdentifier,u=r.DEREnumerated,c=r.DERUTF8String,f=r.DERNumericString,h=r.DERPrintableString,p=r.DERTeletexString,d=r.DERIA5String,m=r.DERUTCTime,b=r.DERGeneralizedTime,_=r.DERSequence,y=r.DERSet,v=r.DERTaggedObject,w=r.ASN1Util.newObject,S=Object.keys(e);if(S.length!=1)throw"key of param shall be only one.";var g=S[0];if(":bool:int:bitstr:octstr:null:oid:enum:utf8str:numstr:prnstr:telstr:ia5str:utctime:gentime:seq:set:tag:".indexOf(":"+g+":")==-1)throw"undefined key: "+g;if(g=="bool")return new n(e[g]);if(g=="int")return new i(e[g]);if(g=="bitstr")return new s(e[g]);if(g=="octstr")return new o(e[g]);if(g=="null")return new a(e[g]);if(g=="oid")return new l(e[g]);if(g=="enum")return new u(e[g]);if(g=="utf8str")return new c(e[g]);if(g=="numstr")return new f(e[g]);if(g=="prnstr")return new h(e[g]);if(g=="telstr")return new p(e[g]);if(g=="ia5str")return new d(e[g]);if(g=="utctime")return new m(e[g]);if(g=="gentime")return new b(e[g]);if(g=="seq"){for(var x=e[g],A=[],U=0;U<x.length;U++){var E=w(x[U]);A.push(E)}return new _({array:A})}if(g=="set"){for(var x=e[g],A=[],U=0;U<x.length;U++){var E=w(x[U]);A.push(E)}return new y({array:A})}if(g=="tag"){var T=e[g];if(Object.prototype.toString.call(T)==="[object Array]"&&T.length==3){var F=w(T[2]);return new v({tag:T[0],explicit:T[1],obj:F})}else{var B={};if(T.explicit!==void 0&&(B.explicit=T.explicit),T.tag!==void 0&&(B.tag=T.tag),T.obj===void 0)throw"obj shall be specified for 'tag'.";return B.obj=w(T.obj),new v(B)}}},this.jsonToASN1HEX=function(e){var t=this.newObject(e);return t.getEncodedHex()}},O.asn1.ASN1Util.oidHexToInt=function(e){for(var i="",t=parseInt(e.substr(0,2),16),r=Math.floor(t/40),n=t%40,i=r+"."+n,s="",o=2;o<e.length;o+=2){var a=parseInt(e.substr(o,2),16),l=("00000000"+a.toString(2)).slice(-8);if(s=s+l.substr(1,7),l.substr(0,1)=="0"){var u=new W(s,2);i=i+"."+u.toString(10),s=""}}return i},O.asn1.ASN1Util.oidIntToHex=function(e){var t=function(a){var l=a.toString(16);return l.length==1&&(l="0"+l),l},r=function(a){var l="",u=new W(a,10),c=u.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.substr(p,7);p!=c.length-7&&(d="1"+d),l+=t(parseInt(d,2))}return l};if(!e.match(/^[0-9.]+$/))throw"malformed oid string: "+e;var n="",i=e.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+=r(i[o]);return n},O.asn1.ASN1Object=function(){var e="";this.getLengthHexFromValue=function(){if(typeof this.hV>"u"||this.hV==null)throw"this.hV is null or undefined.";if(this.hV.length%2==1)throw"value hex must be even length: n="+e.length+",v="+this.hV;var t=this.hV.length/2,r=t.toString(16);if(r.length%2==1&&(r="0"+r),t<128)return r;var n=r.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)+r},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""}},O.asn1.DERAbstractString=function(e){O.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 e<"u"&&(typeof e=="string"?this.setString(e):typeof e.str<"u"?this.setString(e.str):typeof e.hex<"u"&&this.setStringHex(e.hex))},X.lang.extend(O.asn1.DERAbstractString,O.asn1.ASN1Object),O.asn1.DERAbstractTime=function(e){O.asn1.DERAbstractTime.superclass.constructor.call(this),this.localDateToUTC=function(t){utc=t.getTime()+t.getTimezoneOffset()*6e4;var r=new Date(utc);return r},this.formatDate=function(t,r,n){var i=this.zeroPadding,s=this.localDateToUTC(t),o=String(s.getFullYear());r=="utc"&&(o=o.substr(2,2));var a=i(String(s.getMonth()+1),2),l=i(String(s.getDate()),2),u=i(String(s.getHours()),2),c=i(String(s.getMinutes()),2),f=i(String(s.getSeconds()),2),h=o+a+l+u+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,r){return t.length>=r?t:new Array(r-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,r,n,i,s,o){var a=new Date(Date.UTC(t,r-1,n,i,s,o,0));this.setByDate(a)},this.getFreshValueHex=function(){return this.hV}},X.lang.extend(O.asn1.DERAbstractTime,O.asn1.ASN1Object),O.asn1.DERAbstractStructured=function(e){O.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 e<"u"&&typeof e.array<"u"&&(this.asn1Array=e.array)},X.lang.extend(O.asn1.DERAbstractStructured,O.asn1.ASN1Object),O.asn1.DERBoolean=function(){O.asn1.DERBoolean.superclass.constructor.call(this),this.hT="01",this.hTLV="0101ff"},X.lang.extend(O.asn1.DERBoolean,O.asn1.ASN1Object),O.asn1.DERInteger=function(e){O.asn1.DERInteger.superclass.constructor.call(this),this.hT="02",this.setByBigInteger=function(t){this.hTLV=null,this.isModified=!0,this.hV=O.asn1.ASN1Util.bigIntToMinTwosComplementsHex(t)},this.setByInteger=function(t){var r=new W(String(t),10);this.setByBigInteger(r)},this.setValueHex=function(t){this.hV=t},this.getFreshValueHex=function(){return this.hV},typeof e<"u"&&(typeof e.bigint<"u"?this.setByBigInteger(e.bigint):typeof e.int<"u"?this.setByInteger(e.int):typeof e=="number"?this.setByInteger(e):typeof e.hex<"u"&&this.setValueHex(e.hex))},X.lang.extend(O.asn1.DERInteger,O.asn1.ASN1Object),O.asn1.DERBitString=function(e){if(e!==void 0&&typeof e.obj<"u"){var t=O.asn1.ASN1Util.newObject(e.obj);e.hex="00"+t.getEncodedHex()}O.asn1.DERBitString.superclass.constructor.call(this),this.hT="03",this.setHexValueIncludingUnusedBits=function(r){this.hTLV=null,this.isModified=!0,this.hV=r},this.setUnusedBitsAndHexValue=function(r,n){if(r<0||7<r)throw"unused bits shall be from 0 to 7: u = "+r;var i="0"+r;this.hTLV=null,this.isModified=!0,this.hV=i+n},this.setByBinaryString=function(r){r=r.replace(/0+$/,"");var n=8-r.length%8;n==8&&(n=0);for(var i=0;i<=n;i++)r+="0";for(var s="",i=0;i<r.length-1;i+=8){var o=r.substr(i,8),a=parseInt(o,2).toString(16);a.length==1&&(a="0"+a),s+=a}this.hTLV=null,this.isModified=!0,this.hV="0"+n+s},this.setByBooleanArray=function(r){for(var n="",i=0;i<r.length;i++)r[i]==!0?n+="1":n+="0";this.setByBinaryString(n)},this.newFalseArray=function(r){for(var n=new Array(r),i=0;i<r;i++)n[i]=!1;return n},this.getFreshValueHex=function(){return this.hV},typeof e<"u"&&(typeof e=="string"&&e.toLowerCase().match(/^[0-9a-f]+$/)?this.setHexValueIncludingUnusedBits(e):typeof e.hex<"u"?this.setHexValueIncludingUnusedBits(e.hex):typeof e.bin<"u"?this.setByBinaryString(e.bin):typeof e.array<"u"&&this.setByBooleanArray(e.array))},X.lang.extend(O.asn1.DERBitString,O.asn1.ASN1Object),O.asn1.DEROctetString=function(e){if(e!==void 0&&typeof e.obj<"u"){var t=O.asn1.ASN1Util.newObject(e.obj);e.hex=t.getEncodedHex()}O.asn1.DEROctetString.superclass.constructor.call(this,e),this.hT="04"},X.lang.extend(O.asn1.DEROctetString,O.asn1.DERAbstractString),O.asn1.DERNull=function(){O.asn1.DERNull.superclass.constructor.call(this),this.hT="05",this.hTLV="0500"},X.lang.extend(O.asn1.DERNull,O.asn1.ASN1Object),O.asn1.DERObjectIdentifier=function(e){var t=function(n){var i=n.toString(16);return i.length==1&&(i="0"+i),i},r=function(n){var i="",s=new W(n,10),o=s.toString(2),a=7-o.length%7;a==7&&(a=0);for(var l="",u=0;u<a;u++)l+="0";o=l+o;for(var u=0;u<o.length-1;u+=7){var c=o.substr(u,7);u!=o.length-7&&(c="1"+c),i+=t(parseInt(c,2))}return i};O.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 a=0;a<s.length;a++)i+=r(s[a]);this.hTLV=null,this.isModified=!0,this.s=null,this.hV=i},this.setValueName=function(n){var i=O.asn1.x509.OID.name2oid(n);if(i!=="")this.setValueOidString(i);else throw"DERObjectIdentifier oidName undefined: "+n},this.getFreshValueHex=function(){return this.hV},e!==void 0&&(typeof e=="string"?e.match(/^[0-2].[0-9.]+$/)?this.setValueOidString(e):this.setValueName(e):e.oid!==void 0?this.setValueOidString(e.oid):e.hex!==void 0?this.setValueHex(e.hex):e.name!==void 0&&this.setValueName(e.name))},X.lang.extend(O.asn1.DERObjectIdentifier,O.asn1.ASN1Object),O.asn1.DEREnumerated=function(e){O.asn1.DEREnumerated.superclass.constructor.call(this),this.hT="0a",this.setByBigInteger=function(t){this.hTLV=null,this.isModified=!0,this.hV=O.asn1.ASN1Util.bigIntToMinTwosComplementsHex(t)},this.setByInteger=function(t){var r=new W(String(t),10);this.setByBigInteger(r)},this.setValueHex=function(t){this.hV=t},this.getFreshValueHex=function(){return this.hV},typeof e<"u"&&(typeof e.int<"u"?this.setByInteger(e.int):typeof e=="number"?this.setByInteger(e):typeof e.hex<"u"&&this.setValueHex(e.hex))},X.lang.extend(O.asn1.DEREnumerated,O.asn1.ASN1Object),O.asn1.DERUTF8String=function(e){O.asn1.DERUTF8String.superclass.constructor.call(this,e),this.hT="0c"},X.lang.extend(O.asn1.DERUTF8String,O.asn1.DERAbstractString),O.asn1.DERNumericString=function(e){O.asn1.DERNumericString.superclass.constructor.call(this,e),this.hT="12"},X.lang.extend(O.asn1.DERNumericString,O.asn1.DERAbstractString),O.asn1.DERPrintableString=function(e){O.asn1.DERPrintableString.superclass.constructor.call(this,e),this.hT="13"},X.lang.extend(O.asn1.DERPrintableString,O.asn1.DERAbstractString),O.asn1.DERTeletexString=function(e){O.asn1.DERTeletexString.superclass.constructor.call(this,e),this.hT="14"},X.lang.extend(O.asn1.DERTeletexString,O.asn1.DERAbstractString),O.asn1.DERIA5String=function(e){O.asn1.DERIA5String.superclass.constructor.call(this,e),this.hT="16"},X.lang.extend(O.asn1.DERIA5String,O.asn1.DERAbstractString),O.asn1.DERUTCTime=function(e){O.asn1.DERUTCTime.superclass.constructor.call(this,e),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>"u"&&typeof this.s>"u"&&(this.date=new Date,this.s=this.formatDate(this.date,"utc"),this.hV=stohex(this.s)),this.hV},e!==void 0&&(e.str!==void 0?this.setString(e.str):typeof e=="string"&&e.match(/^[0-9]{12}Z$/)?this.setString(e):e.hex!==void 0?this.setStringHex(e.hex):e.date!==void 0&&this.setByDate(e.date))},X.lang.extend(O.asn1.DERUTCTime,O.asn1.DERAbstractTime),O.asn1.DERGeneralizedTime=function(e){O.asn1.DERGeneralizedTime.superclass.constructor.call(this,e),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},e!==void 0&&(e.str!==void 0?this.setString(e.str):typeof e=="string"&&e.match(/^[0-9]{14}Z$/)?this.setString(e):e.hex!==void 0?this.setStringHex(e.hex):e.date!==void 0&&this.setByDate(e.date),e.millis===!0&&(this.withMillis=!0))},X.lang.extend(O.asn1.DERGeneralizedTime,O.asn1.DERAbstractTime),O.asn1.DERSequence=function(e){O.asn1.DERSequence.superclass.constructor.call(this,e),this.hT="30",this.getFreshValueHex=function(){for(var t="",r=0;r<this.asn1Array.length;r++){var n=this.asn1Array[r];t+=n.getEncodedHex()}return this.hV=t,this.hV}},X.lang.extend(O.asn1.DERSequence,O.asn1.DERAbstractStructured),O.asn1.DERSet=function(e){O.asn1.DERSet.superclass.constructor.call(this,e),this.hT="31",this.sortFlag=!0,this.getFreshValueHex=function(){for(var t=new Array,r=0;r<this.asn1Array.length;r++){var n=this.asn1Array[r];t.push(n.getEncodedHex())}return this.sortFlag==!0&&t.sort(),this.hV=t.join(""),this.hV},typeof e<"u"&&typeof e.sortflag<"u"&&e.sortflag==!1&&(this.sortFlag=!1)},X.lang.extend(O.asn1.DERSet,O.asn1.DERAbstractStructured),O.asn1.DERTaggedObject=function(e){O.asn1.DERTaggedObject.superclass.constructor.call(this),this.hT="a0",this.hV="",this.isExplicit=!0,this.asn1Object=null,this.setASN1Object=function(t,r,n){this.hT=r,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(/^../,r),this.isModified=!1)},this.getFreshValueHex=function(){return this.hV},typeof e<"u"&&(typeof e.tag<"u"&&(this.hT=e.tag),typeof e.explicit<"u"&&(this.isExplicit=e.explicit),typeof e.obj<"u"&&(this.asn1Object=e.obj,this.setASN1Object(this.isExplicit,this.hT,this.asn1Object)))},X.lang.extend(O.asn1.DERTaggedObject,O.asn1.ASN1Object);var _d=(function(){var e=function(t,r){return e=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])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),$i=(function(e){_d(t,e);function t(r){var n=e.call(this)||this;return r&&(typeof r=="string"?n.parseKey(r):(t.hasPrivateKeyProperty(r)||t.hasPublicKeyProperty(r))&&n.parsePropertiesFrom(r)),n}return t.prototype.parseKey=function(r){try{var n=0,i=0,s=/^\s*(?:[0-9A-Fa-f][0-9A-Fa-f]\s*)+$/,o=s.test(r)?id.decode(r):Vr.unarmor(r),a=ad.decode(o);if(a.sub.length===3&&(a=a.sub[2].sub[0]),a.sub.length===9){n=a.sub[1].getHexStringValue(),this.n=Z(n,16),i=a.sub[2].getHexStringValue(),this.e=parseInt(i,16);var l=a.sub[3].getHexStringValue();this.d=Z(l,16);var u=a.sub[4].getHexStringValue();this.p=Z(u,16);var c=a.sub[5].getHexStringValue();this.q=Z(c,16);var f=a.sub[6].getHexStringValue();this.dmp1=Z(f,16);var h=a.sub[7].getHexStringValue();this.dmq1=Z(h,16);var p=a.sub[8].getHexStringValue();this.coeff=Z(p,16)}else if(a.sub.length===2)if(a.sub[0].sub){var d=a.sub[1],m=d.sub[0];n=m.sub[0].getHexStringValue(),this.n=Z(n,16),i=m.sub[1].getHexStringValue(),this.e=parseInt(i,16)}else n=a.sub[0].getHexStringValue(),this.n=Z(n,16),i=a.sub[1].getHexStringValue(),this.e=parseInt(i,16);else return!1;return!0}catch(b){return!1}},t.prototype.getPrivateBaseKey=function(){var r={array:[new O.asn1.DERInteger({int:0}),new O.asn1.DERInteger({bigint:this.n}),new O.asn1.DERInteger({int:this.e}),new O.asn1.DERInteger({bigint:this.d}),new O.asn1.DERInteger({bigint:this.p}),new O.asn1.DERInteger({bigint:this.q}),new O.asn1.DERInteger({bigint:this.dmp1}),new O.asn1.DERInteger({bigint:this.dmq1}),new O.asn1.DERInteger({bigint:this.coeff})]},n=new O.asn1.DERSequence(r);return n.getEncodedHex()},t.prototype.getPrivateBaseKeyB64=function(){return qe(this.getPrivateBaseKey())},t.prototype.getPublicBaseKey=function(){var r=new O.asn1.DERSequence({array:[new O.asn1.DERObjectIdentifier({oid:"1.2.840.113549.1.1.1"}),new O.asn1.DERNull]}),n=new O.asn1.DERSequence({array:[new O.asn1.DERInteger({bigint:this.n}),new O.asn1.DERInteger({int:this.e})]}),i=new O.asn1.DERBitString({hex:"00"+n.getEncodedHex()}),s=new O.asn1.DERSequence({array:[r,i]});return s.getEncodedHex()},t.prototype.getPublicBaseKeyB64=function(){return qe(this.getPublicBaseKey())},t.wordwrap=function(r,n){if(n=n||64,!r)return r;var i="(.{1,"+n+`})( +|$
39
39
  ?)|(.{1,`+n+"})";return r.match(RegExp(i,"g")).join(`
40
40
  `)},t.prototype.getPrivateKey=function(){var r=`-----BEGIN RSA PRIVATE KEY-----
41
41
  `;return r+=t.wordwrap(this.getPrivateBaseKeyB64())+`
@@ -47,33 +47,33 @@ version: 2.9.0
47
47
  * author : Adam Draper
48
48
  * license : MIT
49
49
  * http://adamwdraper.github.com/Numeral-js/
50
- */(function(e){(function(t,r){e.exports?e.exports=r():t.numeral=r()})(it,function(){var t,r,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>"u")c=0;else if(a===null||r.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._=r={numberToFormat:function(a,c,f){var h=s[t.options.currentLocale],p=!1,d=!1,m=0,b="",_=1e12,y=1e9,v=1e6,w=1e3,S="",g=!1,x,A,U,E,T,F,B;if(a=a||0,A=Math.abs(a),t._.includes(c,"(")?(p=!0,c=c.replace(/[\(|\)]/g,"")):(t._.includes(c,"+")||t._.includes(c,"-"))&&(T=t._.includes(c,"+")?c.indexOf("+"):a<0?c.indexOf("-"):-1,c=c.replace(/[\+|\-]/g,"")),t._.includes(c,"a")&&(x=c.match(/a(k|m|b|t)?/),x=x?x[1]:!1,t._.includes(c," a")&&(b=" "),c=c.replace(new RegExp(b+"a[kmbt]?"),""),A>=_&&!x||x==="t"?(b+=h.abbreviations.trillion,a=a/_):A<_&&A>=y&&!x||x==="b"?(b+=h.abbreviations.billion,a=a/y):A<y&&A>=v&&!x||x==="m"?(b+=h.abbreviations.million,a=a/v):(A<v&&A>=w&&!x||x==="k")&&(b+=h.abbreviations.thousand,a=a/w)),t._.includes(c,"[.]")&&(d=!0,c=c.replace("[.]",".")),U=a.toString().split(".")[0],E=c.split(".")[1],F=c.indexOf(","),m=(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),U=S.split(".")[0],t._.includes(S,".")?S=h.delimiters.decimal+S.split(".")[1]:S="",d&&Number(S.slice(1))===0&&(S="")):U=t._.toFixed(a,0,f),b&&!x&&Number(U)>=1e3&&b!==h.abbreviations.trillion)switch(U=String(Number(U)/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(U,"-")&&(U=U.slice(1),g=!0),U.length<m)for(var P=m-U.length;P>0;P--)U="0"+U;return F>-1&&(U=U.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+h.delimiters.thousands)),c.indexOf(".")===0&&(U=""),B=U+S+(b||""),p?B=(p&&g?"(":"")+B+(p&&g?")":""):T>=0?B=T===0?(g?"-":"+")+B:B+(g?"-":"+"):g&&(B="-"+B),B},stringToNumber:function(a){var c=s[u.currentLocale],f=a,h={thousand:3,million:6,billion:9,trillion:12},p,d,m;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(m=new RegExp("[^a-zA-Z]"+c.abbreviations[p]+"(?:\\)|(\\"+c.currency.symbol+")?(?:\\))?)?$"),f.match(m)){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=r.multiplier(f);return c>h?c:h},1)},toFixed:function(a,c,f,h){var p=a.toString().split("."),d=c-(h||0),m,b,_,y;return p.length===2?m=Math.min(Math.max(p[1].length,d),c):m=d,_=Math.pow(10,m),y=(f(a+"e+"+m)/_).toFixed(m),h>c-m&&(b=new RegExp("\\.?0{1,"+(h-(c-m))+"}$"),y=y.replace(b,"")),y}},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,m,b,_,y;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{_=t.localeData(c)}catch(v){_=t.localeData(t.locale())}return p=_.currency.symbol,m=_.abbreviations,f=_.delimiters.decimal,_.delimiters.thousands==="."?h="\\.":h=_.delimiters.thousands,y=a.match(/^[^\d]+/),y!==null&&(a=a.substr(1),y[0]!==p)||(y=a.match(/[^\d]+$/),y!==null&&(a=a.slice(0,-1),y[0]!==m.thousand&&y[0]!==m.million&&y[0]!==m.billion&&y[0]!==m.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,m;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)){m=i[p].format;break}m=m||t._.numberToFormat,d=m(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=r.correctionFactor.call(null,this._value,a);function f(h,p,d,m){return h+Math.round(c*p)}return this._value=r.reduce([this._value,a],f,0)/c,this},subtract:function(a){var c=r.correctionFactor.call(null,this._value,a);function f(h,p,d,m){return h-Math.round(c*p)}return this._value=r.reduce([a],f,Math.round(this._value*c))/c,this},multiply:function(a){function c(f,h,p,d){var m=r.correctionFactor(f,h);return Math.round(f*m)*Math.round(h*m)/Math.round(m*m)}return this._value=r.reduce([this._value,a],c,1),this},divide:function(a){function c(f,h,p,d){var m=r.correctionFactor(f,h);return Math.round(f*m)/Math.round(h*m)}return this._value=r.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,m){var b,_=t._.includes(d,"ib")?c:a,y=t._.includes(d," b")||t._.includes(d," ib")?" ":"",v,w,S;for(d=d.replace(/\s?i?b/,""),v=0;v<=_.suffixes.length;v++)if(w=Math.pow(_.base,v),S=Math.pow(_.base,v+1),p===null||p===0||p>=w&&p<S){y+=_.suffixes[v],w>0&&(p=p/w);break}return b=t._.numberToFormat(p,d,m),b+y},unformat:function(p){var d=t._.stringToNumber(p),m,b;if(d){for(m=a.suffixes.length-1;m>=0;m--){if(t._.includes(p,a.suffixes[m])){b=Math.pow(a.base,m);break}if(t._.includes(p,c.suffixes[m])){b=Math.pow(c.base,m);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,m,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(m=p.before[b],m){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(m=p.after[b],m){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,m,b,_){var y=t._.correctionFactor(d,m),v=d*y*(m*y)/(y*y);return v}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})})(mo);var Td=mo.exports;oe(Td);var go={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(it,function(){var r=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",m="Invalid Date",b=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,_=/\[([^\]]+)]|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,y={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(P){var j=["th","st","nd","rd"],N=P%100;return"["+P+(j[(N-20)%10]||j[N]||j[0])+"]"}},v=function(P,j,N){var L=String(P);return!L||L.length>=j?P:""+Array(j+1-L.length).join(N)+P},w={s:v,z:function(P){var j=-P.utcOffset(),N=Math.abs(j),L=Math.floor(N/60),M=N%60;return(j<=0?"+":"-")+v(L,2,"0")+":"+v(M,2,"0")},m:function P(j,N){if(j.date()<N.date())return-P(N,j);var L=12*(N.year()-j.year())+(N.month()-j.month()),M=j.clone().add(L,f),H=N-M<0,q=j.clone().add(L+(H?-1:1),f);return+(-(L+(N-M)/(H?M-q:q-M))||0)},a:function(P){return P<0?Math.ceil(P)||0:Math.floor(P)},p:function(P){return{M:f,y:p,w:c,d:a,D:d,h:l,m:u,s:o,ms:s,Q:h}[P]||String(P||"").toLowerCase().replace(/s$/,"")},u:function(P){return P===void 0}},S="en",g={};g[S]=y;var x="$isDayjsObject",A=function(P){return P instanceof F||!(!P||!P[x])},U=function P(j,N,L){var M;if(!j)return S;if(typeof j=="string"){var H=j.toLowerCase();g[H]&&(M=H),N&&(g[H]=N,M=H);var q=j.split("-");if(!M&&q.length>1)return P(q[0])}else{var $=j.name;g[$]=j,M=$}return!L&&M&&(S=M),M||!L&&S},E=function(P,j){if(A(P))return P.clone();var N=typeof j=="object"?j:{};return N.date=P,N.args=arguments,new F(N)},T=w;T.l=U,T.i=A,T.w=function(P,j){return E(P,{locale:j.$L,utc:j.$u,x:j.$x,$offset:j.$offset})};var F=(function(){function P(N){this.$L=U(N.locale,null,!0),this.parse(N),this.$x=this.$x||N.x||{},this[x]=!0}var j=P.prototype;return j.parse=function(N){this.$d=(function(L){var M=L.date,H=L.utc;if(M===null)return new Date(NaN);if(T.u(M))return new Date;if(M instanceof Date)return new Date(M);if(typeof M=="string"&&!/Z$/i.test(M)){var q=M.match(b);if(q){var $=q[2]-1||0,D=(q[7]||"0").substring(0,3);return H?new Date(Date.UTC(q[1],$,q[3]||1,q[4]||0,q[5]||0,q[6]||0,D)):new Date(q[1],$,q[3]||1,q[4]||0,q[5]||0,q[6]||0,D)}}return new Date(M)})(N),this.init()},j.init=function(){var N=this.$d;this.$y=N.getFullYear(),this.$M=N.getMonth(),this.$D=N.getDate(),this.$W=N.getDay(),this.$H=N.getHours(),this.$m=N.getMinutes(),this.$s=N.getSeconds(),this.$ms=N.getMilliseconds()},j.$utils=function(){return T},j.isValid=function(){return this.$d.toString()!==m},j.isSame=function(N,L){var M=E(N);return this.startOf(L)<=M&&M<=this.endOf(L)},j.isAfter=function(N,L){return E(N)<this.startOf(L)},j.isBefore=function(N,L){return this.endOf(L)<E(N)},j.$g=function(N,L,M){return T.u(N)?this[L]:this.set(M,N)},j.unix=function(){return Math.floor(this.valueOf()/1e3)},j.valueOf=function(){return this.$d.getTime()},j.startOf=function(N,L){var M=this,H=!!T.u(L)||L,q=T.p(N),$=function(Nt,st){var Rt=T.w(M.$u?Date.UTC(M.$y,st,Nt):new Date(M.$y,st,Nt),M);return H?Rt:Rt.endOf(a)},D=function(Nt,st){return T.w(M.toDate()[Nt].apply(M.toDate("s"),(H?[0,0,0,0]:[23,59,59,999]).slice(st)),M)},C=this.$W,I=this.$M,ut=this.$D,Wt="set"+(this.$u?"UTC":"");switch(q){case p:return H?$(1,0):$(31,11);case f:return H?$(1,I):$(0,I+1);case c:var Ct=this.$locale().weekStart||0,ce=(C<Ct?C+7:C)-Ct;return $(H?ut-ce:ut+(6-ce),I);case a:case d:return D(Wt+"Hours",0);case l:return D(Wt+"Minutes",1);case u:return D(Wt+"Seconds",2);case o:return D(Wt+"Milliseconds",3);default:return this.clone()}},j.endOf=function(N){return this.startOf(N,!1)},j.$set=function(N,L){var M,H=T.p(N),q="set"+(this.$u?"UTC":""),$=(M={},M[a]=q+"Date",M[d]=q+"Date",M[f]=q+"Month",M[p]=q+"FullYear",M[l]=q+"Hours",M[u]=q+"Minutes",M[o]=q+"Seconds",M[s]=q+"Milliseconds",M)[H],D=H===a?this.$D+(L-this.$W):L;if(H===f||H===p){var C=this.clone().set(d,1);C.$d[$](D),C.init(),this.$d=C.set(d,Math.min(this.$D,C.daysInMonth())).$d}else $&&this.$d[$](D);return this.init(),this},j.set=function(N,L){return this.clone().$set(N,L)},j.get=function(N){return this[T.p(N)]()},j.add=function(N,L){var M,H=this;N=Number(N);var q=T.p(L),$=function(I){var ut=E(H);return T.w(ut.date(ut.date()+Math.round(I*N)),H)};if(q===f)return this.set(f,this.$M+N);if(q===p)return this.set(p,this.$y+N);if(q===a)return $(1);if(q===c)return $(7);var D=(M={},M[u]=n,M[l]=i,M[o]=r,M)[q]||1,C=this.$d.getTime()+N*D;return T.w(C,this)},j.subtract=function(N,L){return this.add(-1*N,L)},j.format=function(N){var L=this,M=this.$locale();if(!this.isValid())return M.invalidDate||m;var H=N||"YYYY-MM-DDTHH:mm:ssZ",q=T.z(this),$=this.$H,D=this.$m,C=this.$M,I=M.weekdays,ut=M.months,Wt=M.meridiem,Ct=function(st,Rt,le,Te){return st&&(st[Rt]||st(L,H))||le[Rt].slice(0,Te)},ce=function(st){return T.s($%12||12,st,"0")},Nt=Wt||function(st,Rt,le){var Te=st<12?"AM":"PM";return le?Te.toLowerCase():Te};return H.replace(_,function(st,Rt){return Rt||(function(le){switch(le){case"YY":return String(L.$y).slice(-2);case"YYYY":return T.s(L.$y,4,"0");case"M":return C+1;case"MM":return T.s(C+1,2,"0");case"MMM":return Ct(M.monthsShort,C,ut,3);case"MMMM":return Ct(ut,C);case"D":return L.$D;case"DD":return T.s(L.$D,2,"0");case"d":return String(L.$W);case"dd":return Ct(M.weekdaysMin,L.$W,I,2);case"ddd":return Ct(M.weekdaysShort,L.$W,I,3);case"dddd":return I[L.$W];case"H":return String($);case"HH":return T.s($,2,"0");case"h":return ce(1);case"hh":return ce(2);case"a":return Nt($,D,!0);case"A":return Nt($,D,!1);case"m":return String(D);case"mm":return T.s(D,2,"0");case"s":return String(L.$s);case"ss":return T.s(L.$s,2,"0");case"SSS":return T.s(L.$ms,3,"0");case"Z":return q}return null})(st)||q.replace(":","")})},j.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},j.diff=function(N,L,M){var H,q=this,$=T.p(L),D=E(N),C=(D.utcOffset()-this.utcOffset())*n,I=this-D,ut=function(){return T.m(q,D)};switch($){case p:H=ut()/12;break;case f:H=ut();break;case h:H=ut()/3;break;case c:H=(I-C)/6048e5;break;case a:H=(I-C)/864e5;break;case l:H=I/i;break;case u:H=I/n;break;case o:H=I/r;break;default:H=I}return M?H:T.a(H)},j.daysInMonth=function(){return this.endOf(f).$D},j.$locale=function(){return g[this.$L]},j.locale=function(N,L){if(!N)return this.$L;var M=this.clone(),H=U(N,L,!0);return H&&(M.$L=H),M},j.clone=function(){return T.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()},P})(),B=F.prototype;return E.prototype=B,[["$ms",s],["$s",o],["$m",u],["$H",l],["$W",a],["$M",f],["$y",p],["$D",d]].forEach(function(P){B[P[1]]=function(j){return this.$g(j,P[0],P[1])}}),E.extend=function(P,j){return P.$i||(P(j,F,E),P.$i=!0),E},E.locale=U,E.isDayjs=A,E.unix=function(P){return E(1e3*P)},E.en=g[S],E.Ls=g,E.p={},E})})(go);var yo=go.exports;const Rd=oe(yo);var Ad={exports:{}};(function(e,t){(function(r,n){e.exports=n(yo)})(it,function(r){function n(o){return o&&typeof o=="object"&&"default"in o?o:{default:o}}var i=n(r),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})})(Ad),Rd.locale("zh-cn");function $d(e=!0){const t="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(r){const n=Math.random()*16|0;return(r==="x"?n:n&3|8).toString(16)});return e?t.toLowerCase():t.replace(/-/gi,"")}function Ke(e=0){return k(this,null,function*(){return new Promise(t=>{setTimeout(t,e)})})}function Od(e){return[...e.entries()].reduce((t,[r,n])=>(t[r]=n,t),{})}function jd(e,t){return Array.from(new Set(e))}function ji(e){return e?[].concat(e):[]}function wr(e,t){const r={};if(Array.isArray(t))Object.keys(e).forEach(n=>{t.includes(n)||(r[n]=e[n])});else{const n=t;Object.entries(e).forEach(([i,s])=>{n(i,s)||(r[i]=s)})}return r}function Dd(e,t){const r={};if(Array.isArray(t))Object.keys(e).forEach(n=>{t.includes(n)&&(r[n]=e[n])});else{const n=t;Object.entries(e).forEach(([i,s])=>{n(i,s)&&(r[i]=s)})}return r}var vo={exports:{}};(function(e){var t=(function(){var r=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 r(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(r(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 r(a)})},_compress:function(l,a,c){if(l==null)return"";var f,h,p={},d={},m="",b="",_="",y=2,v=3,w=2,S=[],g=0,x=0,A;for(A=0;A<l.length;A+=1)if(m=l.charAt(A),Object.prototype.hasOwnProperty.call(p,m)||(p[m]=v++,d[m]=!0),b=_+m,Object.prototype.hasOwnProperty.call(p,b))_=b;else{if(Object.prototype.hasOwnProperty.call(d,_)){if(_.charCodeAt(0)<256){for(f=0;f<w;f++)g=g<<1,x==a-1?(x=0,S.push(c(g)),g=0):x++;for(h=_.charCodeAt(0),f=0;f<8;f++)g=g<<1|h&1,x==a-1?(x=0,S.push(c(g)),g=0):x++,h=h>>1}else{for(h=1,f=0;f<w;f++)g=g<<1|h,x==a-1?(x=0,S.push(c(g)),g=0):x++,h=0;for(h=_.charCodeAt(0),f=0;f<16;f++)g=g<<1|h&1,x==a-1?(x=0,S.push(c(g)),g=0):x++,h=h>>1}y--,y==0&&(y=Math.pow(2,w),w++),delete d[_]}else for(h=p[_],f=0;f<w;f++)g=g<<1|h&1,x==a-1?(x=0,S.push(c(g)),g=0):x++,h=h>>1;y--,y==0&&(y=Math.pow(2,w),w++),p[b]=v++,_=String(m)}if(_!==""){if(Object.prototype.hasOwnProperty.call(d,_)){if(_.charCodeAt(0)<256){for(f=0;f<w;f++)g=g<<1,x==a-1?(x=0,S.push(c(g)),g=0):x++;for(h=_.charCodeAt(0),f=0;f<8;f++)g=g<<1|h&1,x==a-1?(x=0,S.push(c(g)),g=0):x++,h=h>>1}else{for(h=1,f=0;f<w;f++)g=g<<1|h,x==a-1?(x=0,S.push(c(g)),g=0):x++,h=0;for(h=_.charCodeAt(0),f=0;f<16;f++)g=g<<1|h&1,x==a-1?(x=0,S.push(c(g)),g=0):x++,h=h>>1}y--,y==0&&(y=Math.pow(2,w),w++),delete d[_]}else for(h=p[_],f=0;f<w;f++)g=g<<1|h&1,x==a-1?(x=0,S.push(c(g)),g=0):x++,h=h>>1;y--,y==0&&(y=Math.pow(2,w),w++)}for(h=2,f=0;f<w;f++)g=g<<1|h&1,x==a-1?(x=0,S.push(c(g)),g=0):x++,h=h>>1;for(;;)if(g=g<<1,x==a-1){S.push(c(g));break}else x++;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,m="",b=[],_,y,v,w,S,g,x,A={val:c(0),position:a,index:1};for(_=0;_<3;_+=1)f[_]=_;for(v=0,S=Math.pow(2,2),g=1;g!=S;)w=A.val&A.position,A.position>>=1,A.position==0&&(A.position=a,A.val=c(A.index++)),v|=(w>0?1:0)*g,g<<=1;switch(v){case 0:for(v=0,S=Math.pow(2,8),g=1;g!=S;)w=A.val&A.position,A.position>>=1,A.position==0&&(A.position=a,A.val=c(A.index++)),v|=(w>0?1:0)*g,g<<=1;x=r(v);break;case 1:for(v=0,S=Math.pow(2,16),g=1;g!=S;)w=A.val&A.position,A.position>>=1,A.position==0&&(A.position=a,A.val=c(A.index++)),v|=(w>0?1:0)*g,g<<=1;x=r(v);break;case 2:return""}for(f[3]=x,y=x,b.push(x);;){if(A.index>l)return"";for(v=0,S=Math.pow(2,d),g=1;g!=S;)w=A.val&A.position,A.position>>=1,A.position==0&&(A.position=a,A.val=c(A.index++)),v|=(w>0?1:0)*g,g<<=1;switch(x=v){case 0:for(v=0,S=Math.pow(2,8),g=1;g!=S;)w=A.val&A.position,A.position>>=1,A.position==0&&(A.position=a,A.val=c(A.index++)),v|=(w>0?1:0)*g,g<<=1;f[p++]=r(v),x=p-1,h--;break;case 1:for(v=0,S=Math.pow(2,16),g=1;g!=S;)w=A.val&A.position,A.position>>=1,A.position==0&&(A.position=a,A.val=c(A.index++)),v|=(w>0?1:0)*g,g<<=1;f[p++]=r(v),x=p-1,h--;break;case 2:return b.join("")}if(h==0&&(h=Math.pow(2,d),d++),f[x])m=f[x];else if(x===p)m=y+y.charAt(0);else return null;b.push(m),f[p++]=y+m.charAt(0),h--,y=m,h==0&&(h=Math.pow(2,d),d++)}}};return u})();e!=null?e.exports=t:typeof angular<"u"&&angular!=null&&angular.module("LZString",[]).factory("LZString",function(){return t})})(vo);var bo=vo.exports;function Bd(e){for(var t=[],r=0;r<e.length;){var n=e[r];if(n==="*"||n==="+"||n==="?"){t.push({type:"MODIFIER",index:r,value:e[r++]});continue}if(n==="\\"){t.push({type:"ESCAPED_CHAR",index:r++,value:e[r++]});continue}if(n==="{"){t.push({type:"OPEN",index:r,value:e[r++]});continue}if(n==="}"){t.push({type:"CLOSE",index:r,value:e[r++]});continue}if(n===":"){for(var i="",s=r+1;s<e.length;){var o=e.charCodeAt(s);if(o>=48&&o<=57||o>=65&&o<=90||o>=97&&o<=122||o===95){i+=e[s++];continue}break}if(!i)throw new TypeError("Missing parameter name at ".concat(r));t.push({type:"NAME",index:r,value:i}),r=s;continue}if(n==="("){var u=1,l="",s=r+1;if(e[s]==="?")throw new TypeError('Pattern cannot start with "?" at '.concat(s));for(;s<e.length;){if(e[s]==="\\"){l+=e[s++]+e[s++];continue}if(e[s]===")"){if(u--,u===0){s++;break}}else if(e[s]==="("&&(u++,e[s+1]!=="?"))throw new TypeError("Capturing groups are not allowed at ".concat(s));l+=e[s++]}if(u)throw new TypeError("Unbalanced pattern at ".concat(r));if(!l)throw new TypeError("Missing pattern at ".concat(r));t.push({type:"PATTERN",index:r,value:l}),r=s;continue}t.push({type:"CHAR",index:r,value:e[r++]})}return t.push({type:"END",index:r,value:""}),t}function wo(e,t){t===void 0&&(t={});for(var r=Bd(e),n=t.prefixes,i=n===void 0?"./":n,s="[^".concat(te(t.delimiter||"/#?"),"]+?"),o=[],u=0,l=0,a="",c=function(g){if(l<r.length&&r[l].type===g)return r[l++].value},f=function(g){var x=c(g);if(x!==void 0)return x;var A=r[l],U=A.type,E=A.index;throw new TypeError("Unexpected ".concat(U," at ").concat(E,", expected ").concat(g))},h=function(){for(var g="",x;x=c("CHAR")||c("ESCAPED_CHAR");)g+=x;return g};l<r.length;){var p=c("CHAR"),d=c("NAME"),m=c("PATTERN");if(d||m){var b=p||"";i.indexOf(b)===-1&&(a+=b,b=""),a&&(o.push(a),a=""),o.push({name:d||u++,prefix:b,suffix:"",pattern:m||s,modifier:c("MODIFIER")||""});continue}var _=p||c("ESCAPED_CHAR");if(_){a+=_;continue}a&&(o.push(a),a="");var y=c("OPEN");if(y){var b=h(),v=c("NAME")||"",w=c("PATTERN")||"",S=h();f("CLOSE"),o.push({name:v||(w?u++:""),pattern:v&&!w?s:w,prefix:b,suffix:S,modifier:c("MODIFIER")||""});continue}f("END")}return o}function Cd(e,t){return Nd(wo(e,t),t)}function Nd(e,t){t===void 0&&(t={});var r=mn(t),n=t.encode,i=n===void 0?function(l){return l}:n,s=t.validate,o=s===void 0?!0:s,u=e.map(function(l){if(typeof l=="object")return new RegExp("^(?:".concat(l.pattern,")$"),r)});return function(l){for(var a="",c=0;c<e.length;c++){var f=e[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 m=0;m<h.length;m++){var b=i(h[m],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 _=d?"an array":"a string";throw new TypeError('Expected "'.concat(f.name,'" to be ').concat(_))}}return a}}function Id(e,t){var r=[],n=gn(e,r,t);return Pd(n,r,t)}function Pd(e,t,r){r===void 0&&(r={});var n=r.decode,i=n===void 0?function(s){return s}:n;return function(s){var o=e.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 te(e){return e.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function mn(e){return e&&e.sensitive?"":"i"}function kd(e,t){if(!t)return e;for(var r=/\((?:\?<(.*?)>)?(?!\?)/g,n=0,i=r.exec(e.source);i;)t.push({name:i[1]||n++,prefix:"",suffix:"",modifier:"",pattern:""}),i=r.exec(e.source);return e}function Fd(e,t,r){var n=e.map(function(i){return gn(i,t,r).source});return new RegExp("(?:".concat(n.join("|"),")"),mn(r))}function Md(e,t,r){return Ud(wo(e,r),t,r)}function Ud(e,t,r){r===void 0&&(r={});for(var n=r.strict,i=n===void 0?!1:n,s=r.start,o=s===void 0?!0:s,u=r.end,l=u===void 0?!0:u,a=r.encode,c=a===void 0?function(E){return E}:a,f=r.delimiter,h=f===void 0?"/#?":f,p=r.endsWith,d=p===void 0?"":p,m="[".concat(te(d),"]|$"),b="[".concat(te(h),"]"),_=o?"^":"",y=0,v=e;y<v.length;y++){var w=v[y];if(typeof w=="string")_+=te(c(w));else{var S=te(c(w.prefix)),g=te(c(w.suffix));if(w.pattern)if(t&&t.push(w),S||g)if(w.modifier==="+"||w.modifier==="*"){var x=w.modifier==="*"?"?":"";_+="(?:".concat(S,"((?:").concat(w.pattern,")(?:").concat(g).concat(S,"(?:").concat(w.pattern,"))*)").concat(g,")").concat(x)}else _+="(?:".concat(S,"(").concat(w.pattern,")").concat(g,")").concat(w.modifier);else w.modifier==="+"||w.modifier==="*"?_+="((?:".concat(w.pattern,")").concat(w.modifier,")"):_+="(".concat(w.pattern,")").concat(w.modifier);else _+="(?:".concat(S).concat(g,")").concat(w.modifier)}}if(l)i||(_+="".concat(b,"?")),_+=r.endsWith?"(?=".concat(m,")"):"$";else{var A=e[e.length-1],U=typeof A=="string"?b.indexOf(A[A.length-1])>-1:A===void 0;i||(_+="(?:".concat(b,"(?=").concat(m,"))?")),U||(_+="(?=".concat(b,"|").concat(m,")"))}return new RegExp(_,mn(r))}function gn(e,t,r){return e instanceof RegExp?kd(e,t):Array.isArray(e)?Fd(e,t,r):Md(e,t,r)}var Ld=Object.defineProperty,Vd=(e,t,r)=>t in e?Ld(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,he=(e,t,r)=>(Vd(e,typeof t!="symbol"?t+"":t,r),r);class Hd{constructor(){he(this,"queue",[]),he(this,"isProcessing",!1),he(this,"results",[]),he(this,"cache",new Map),he(this,"pendingTasks",new Map)}add(t,r){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:r,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 k(this,null,function*(){if(this.queue.length===0){this.isProcessing=!1;return}this.isProcessing=!0;const{key:t,task:r,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 r(),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()}})}}bo.compress;bo.decompress;/**!
50
+ */(function(e){(function(t,r){e.exports?e.exports=r():t.numeral=r()})(it,function(){var t,r,n="2.0.6",i={},s={},o={currentLocale:"en",zeroFormat:null,nullFormat:null,defaultFormat:"0,0",scalePercentBy100:!0},a={currentLocale:o.currentLocale,zeroFormat:o.zeroFormat,nullFormat:o.nullFormat,defaultFormat:o.defaultFormat,scalePercentBy100:o.scalePercentBy100};function l(u,c){this._input=u,this._value=c}return t=function(u){var c,f,h,p;if(t.isNumeral(u))c=u.value();else if(u===0||typeof u>"u")c=0;else if(u===null||r.isNaN(u))c=null;else if(typeof u=="string")if(a.zeroFormat&&u===a.zeroFormat)c=0;else if(a.nullFormat&&u===a.nullFormat||!u.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&&u.match(p)){h=i[f].unformat;break}h=h||t._.stringToNumber,c=h(u)}else c=Number(u)||null;return new l(u,c)},t.version=n,t.isNumeral=function(u){return u instanceof l},t._=r={numberToFormat:function(u,c,f){var h=s[t.options.currentLocale],p=!1,d=!1,m=0,b="",_=1e12,y=1e9,v=1e6,w=1e3,S="",g=!1,x,A,U,E,T,F,B;if(u=u||0,A=Math.abs(u),t._.includes(c,"(")?(p=!0,c=c.replace(/[\(|\)]/g,"")):(t._.includes(c,"+")||t._.includes(c,"-"))&&(T=t._.includes(c,"+")?c.indexOf("+"):u<0?c.indexOf("-"):-1,c=c.replace(/[\+|\-]/g,"")),t._.includes(c,"a")&&(x=c.match(/a(k|m|b|t)?/),x=x?x[1]:!1,t._.includes(c," a")&&(b=" "),c=c.replace(new RegExp(b+"a[kmbt]?"),""),A>=_&&!x||x==="t"?(b+=h.abbreviations.trillion,u=u/_):A<_&&A>=y&&!x||x==="b"?(b+=h.abbreviations.billion,u=u/y):A<y&&A>=v&&!x||x==="m"?(b+=h.abbreviations.million,u=u/v):(A<v&&A>=w&&!x||x==="k")&&(b+=h.abbreviations.thousand,u=u/w)),t._.includes(c,"[.]")&&(d=!0,c=c.replace("[.]",".")),U=u.toString().split(".")[0],E=c.split(".")[1],F=c.indexOf(","),m=(c.split(".")[0].split(",")[0].match(/0/g)||[]).length,E?(t._.includes(E,"[")?(E=E.replace("]",""),E=E.split("["),S=t._.toFixed(u,E[0].length+E[1].length,f,E[1].length)):S=t._.toFixed(u,E.length,f),U=S.split(".")[0],t._.includes(S,".")?S=h.delimiters.decimal+S.split(".")[1]:S="",d&&Number(S.slice(1))===0&&(S="")):U=t._.toFixed(u,0,f),b&&!x&&Number(U)>=1e3&&b!==h.abbreviations.trillion)switch(U=String(Number(U)/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(U,"-")&&(U=U.slice(1),g=!0),U.length<m)for(var P=m-U.length;P>0;P--)U="0"+U;return F>-1&&(U=U.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+h.delimiters.thousands)),c.indexOf(".")===0&&(U=""),B=U+S+(b||""),p?B=(p&&g?"(":"")+B+(p&&g?")":""):T>=0?B=T===0?(g?"-":"+")+B:B+(g?"-":"+"):g&&(B="-"+B),B},stringToNumber:function(u){var c=s[a.currentLocale],f=u,h={thousand:3,million:6,billion:9,trillion:12},p,d,m;if(a.zeroFormat&&u===a.zeroFormat)d=0;else if(a.nullFormat&&u===a.nullFormat||!u.replace(/[^0-9]+/g,"").length)d=null;else{d=1,c.delimiters.decimal!=="."&&(u=u.replace(/\./g,"").replace(c.delimiters.decimal,"."));for(p in h)if(m=new RegExp("[^a-zA-Z]"+c.abbreviations[p]+"(?:\\)|(\\"+c.currency.symbol+")?(?:\\))?)?$"),f.match(m)){d*=Math.pow(10,h[p]);break}d*=(u.split("-").length+Math.min(u.split("(").length-1,u.split(")").length-1))%2?1:-1,u=u.replace(/[^0-9\.]+/g,""),d*=Number(u)}return d},isNaN:function(u){return typeof u=="number"&&isNaN(u)},includes:function(u,c){return u.indexOf(c)!==-1},insert:function(u,c,f){return u.slice(0,f)+c+u.slice(f)},reduce:function(u,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(u),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(u){var c=u.toString().split(".");return c.length<2?1:Math.pow(10,c[1].length)},correctionFactor:function(){var u=Array.prototype.slice.call(arguments);return u.reduce(function(c,f){var h=r.multiplier(f);return c>h?c:h},1)},toFixed:function(u,c,f,h){var p=u.toString().split("."),d=c-(h||0),m,b,_,y;return p.length===2?m=Math.min(Math.max(p[1].length,d),c):m=d,_=Math.pow(10,m),y=(f(u+"e+"+m)/_).toFixed(m),h>c-m&&(b=new RegExp("\\.?0{1,"+(h-(c-m))+"}$"),y=y.replace(b,"")),y}},t.options=a,t.formats=i,t.locales=s,t.locale=function(u){return u&&(a.currentLocale=u.toLowerCase()),a.currentLocale},t.localeData=function(u){if(!u)return s[a.currentLocale];if(u=u.toLowerCase(),!s[u])throw new Error("Unknown locale : "+u);return s[u]},t.reset=function(){for(var u in o)a[u]=o[u]},t.zeroFormat=function(u){a.zeroFormat=typeof u=="string"?u:null},t.nullFormat=function(u){a.nullFormat=typeof u=="string"?u:null},t.defaultFormat=function(u){a.defaultFormat=typeof u=="string"?u:"0.0"},t.register=function(u,c,f){if(c=c.toLowerCase(),this[u+"s"][c])throw new TypeError(c+" "+u+" already registered.");return this[u+"s"][c]=f,f},t.validate=function(u,c){var f,h,p,d,m,b,_,y;if(typeof u!="string"&&(u+="",console.warn&&console.warn("Numeral.js: Value is not string. It has been co-erced to: ",u)),u=u.trim(),u.match(/^\d+$/))return!0;if(u==="")return!1;try{_=t.localeData(c)}catch(v){_=t.localeData(t.locale())}return p=_.currency.symbol,m=_.abbreviations,f=_.delimiters.decimal,_.delimiters.thousands==="."?h="\\.":h=_.delimiters.thousands,y=u.match(/^[^\d]+/),y!==null&&(u=u.substr(1),y[0]!==p)||(y=u.match(/[^\d]+$/),y!==null&&(u=u.slice(0,-1),y[0]!==m.thousand&&y[0]!==m.million&&y[0]!==m.billion&&y[0]!==m.trillion))?!1:(b=new RegExp(h+"{2}"),u.match(/[^\d.,]/g)?!1:(d=u.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(u,c){var f=this._value,h=u||a.defaultFormat,p,d,m;if(c=c||Math.round,f===0&&a.zeroFormat!==null)d=a.zeroFormat;else if(f===null&&a.nullFormat!==null)d=a.nullFormat;else{for(p in i)if(h.match(i[p].regexps.format)){m=i[p].format;break}m=m||t._.numberToFormat,d=m(f,h,c)}return d},value:function(){return this._value},input:function(){return this._input},set:function(u){return this._value=Number(u),this},add:function(u){var c=r.correctionFactor.call(null,this._value,u);function f(h,p,d,m){return h+Math.round(c*p)}return this._value=r.reduce([this._value,u],f,0)/c,this},subtract:function(u){var c=r.correctionFactor.call(null,this._value,u);function f(h,p,d,m){return h-Math.round(c*p)}return this._value=r.reduce([u],f,Math.round(this._value*c))/c,this},multiply:function(u){function c(f,h,p,d){var m=r.correctionFactor(f,h);return Math.round(f*m)*Math.round(h*m)/Math.round(m*m)}return this._value=r.reduce([this._value,u],c,1),this},divide:function(u){function c(f,h,p,d){var m=r.correctionFactor(f,h);return Math.round(f*m)/Math.round(h*m)}return this._value=r.reduce([this._value,u],c),this},difference:function(u){return Math.abs(t(this._value).subtract(u).value())}},t.register("locale","en",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(u){var c=u%10;return~~(u%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(u,c,f){var h=t._.includes(c," BPS")?" ":"",p;return u=u*1e4,c=c.replace(/\s?BPS/,""),p=t._.numberToFormat(u,c,f),t._.includes(p,")")?(p=p.split(""),p.splice(-1,0,h+"BPS"),p=p.join("")):p=p+h+"BPS",p},unformat:function(u){return+(t._.stringToNumber(u)*1e-4).toFixed(15)}})})(),(function(){var u={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=u.suffixes.concat(c.suffixes.filter(function(p){return u.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,m){var b,_=t._.includes(d,"ib")?c:u,y=t._.includes(d," b")||t._.includes(d," ib")?" ":"",v,w,S;for(d=d.replace(/\s?i?b/,""),v=0;v<=_.suffixes.length;v++)if(w=Math.pow(_.base,v),S=Math.pow(_.base,v+1),p===null||p===0||p>=w&&p<S){y+=_.suffixes[v],w>0&&(p=p/w);break}return b=t._.numberToFormat(p,d,m),b+y},unformat:function(p){var d=t._.stringToNumber(p),m,b;if(d){for(m=u.suffixes.length-1;m>=0;m--){if(t._.includes(p,u.suffixes[m])){b=Math.pow(u.base,m);break}if(t._.includes(p,c.suffixes[m])){b=Math.pow(c.base,m);break}}d*=b||1}return d}})})(),(function(){t.register("format","currency",{regexps:{format:/(\$)/},format:function(u,c,f){var h=t.locales[t.options.currentLocale],p={before:c.match(/^([\+|\-|\(|\s|\$]*)/)[0],after:c.match(/([\+|\-|\)|\s|\$]*)$/)[0]},d,m,b;for(c=c.replace(/\s?\$\s?/,""),d=t._.numberToFormat(u,c,f),u>=0?(p.before=p.before.replace(/[\-\(]/,""),p.after=p.after.replace(/[\-\)]/,"")):u<0&&!t._.includes(p.before,"-")&&!t._.includes(p.before,"(")&&(p.before="-"+p.before),b=0;b<p.before.length;b++)switch(m=p.before[b],m){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(m=p.after[b],m){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(u,c,f){var h,p=typeof u=="number"&&!t._.isNaN(u)?u.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(u){var c=t._.includes(u,"e+")?u.split("e+"):u.split("e-"),f=Number(c[0]),h=Number(c[1]);h=t._.includes(u,"e-")?h*=-1:h;function p(d,m,b,_){var y=t._.correctionFactor(d,m),v=d*y*(m*y)/(y*y);return v}return t._.reduce([f,Math.pow(10,h)],p,1)}})})(),(function(){t.register("format","ordinal",{regexps:{format:/(o)/},format:function(u,c,f){var h=t.locales[t.options.currentLocale],p,d=t._.includes(c," o")?" ":"";return c=c.replace(/\s?o/,""),d+=h.ordinal(u),p=t._.numberToFormat(u,c,f),p+d}})})(),(function(){t.register("format","percentage",{regexps:{format:/(%)/,unformat:/(%)/},format:function(u,c,f){var h=t._.includes(c," %")?" ":"",p;return t.options.scalePercentBy100&&(u=u*100),c=c.replace(/\s?\%/,""),p=t._.numberToFormat(u,c,f),t._.includes(p,")")?(p=p.split(""),p.splice(-1,0,h+"%"),p=p.join("")):p=p+h+"%",p},unformat:function(u){var c=t._.stringToNumber(u);return t.options.scalePercentBy100?c*.01:c}})})(),(function(){t.register("format","time",{regexps:{format:/(:)/,unformat:/(:)/},format:function(u,c,f){var h=Math.floor(u/60/60),p=Math.floor((u-h*60*60)/60),d=Math.round(u-h*60*60-p*60);return h+":"+(p<10?"0"+p:p)+":"+(d<10?"0"+d:d)},unformat:function(u){var c=u.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})})(mo);var Td=mo.exports;oe(Td);var go={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(it,function(){var r=1e3,n=6e4,i=36e5,s="millisecond",o="second",a="minute",l="hour",u="day",c="week",f="month",h="quarter",p="year",d="date",m="Invalid Date",b=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,_=/\[([^\]]+)]|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,y={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(P){var j=["th","st","nd","rd"],N=P%100;return"["+P+(j[(N-20)%10]||j[N]||j[0])+"]"}},v=function(P,j,N){var L=String(P);return!L||L.length>=j?P:""+Array(j+1-L.length).join(N)+P},w={s:v,z:function(P){var j=-P.utcOffset(),N=Math.abs(j),L=Math.floor(N/60),M=N%60;return(j<=0?"+":"-")+v(L,2,"0")+":"+v(M,2,"0")},m:function P(j,N){if(j.date()<N.date())return-P(N,j);var L=12*(N.year()-j.year())+(N.month()-j.month()),M=j.clone().add(L,f),H=N-M<0,q=j.clone().add(L+(H?-1:1),f);return+(-(L+(N-M)/(H?M-q:q-M))||0)},a:function(P){return P<0?Math.ceil(P)||0:Math.floor(P)},p:function(P){return{M:f,y:p,w:c,d:u,D:d,h:l,m:a,s:o,ms:s,Q:h}[P]||String(P||"").toLowerCase().replace(/s$/,"")},u:function(P){return P===void 0}},S="en",g={};g[S]=y;var x="$isDayjsObject",A=function(P){return P instanceof F||!(!P||!P[x])},U=function P(j,N,L){var M;if(!j)return S;if(typeof j=="string"){var H=j.toLowerCase();g[H]&&(M=H),N&&(g[H]=N,M=H);var q=j.split("-");if(!M&&q.length>1)return P(q[0])}else{var $=j.name;g[$]=j,M=$}return!L&&M&&(S=M),M||!L&&S},E=function(P,j){if(A(P))return P.clone();var N=typeof j=="object"?j:{};return N.date=P,N.args=arguments,new F(N)},T=w;T.l=U,T.i=A,T.w=function(P,j){return E(P,{locale:j.$L,utc:j.$u,x:j.$x,$offset:j.$offset})};var F=(function(){function P(N){this.$L=U(N.locale,null,!0),this.parse(N),this.$x=this.$x||N.x||{},this[x]=!0}var j=P.prototype;return j.parse=function(N){this.$d=(function(L){var M=L.date,H=L.utc;if(M===null)return new Date(NaN);if(T.u(M))return new Date;if(M instanceof Date)return new Date(M);if(typeof M=="string"&&!/Z$/i.test(M)){var q=M.match(b);if(q){var $=q[2]-1||0,D=(q[7]||"0").substring(0,3);return H?new Date(Date.UTC(q[1],$,q[3]||1,q[4]||0,q[5]||0,q[6]||0,D)):new Date(q[1],$,q[3]||1,q[4]||0,q[5]||0,q[6]||0,D)}}return new Date(M)})(N),this.init()},j.init=function(){var N=this.$d;this.$y=N.getFullYear(),this.$M=N.getMonth(),this.$D=N.getDate(),this.$W=N.getDay(),this.$H=N.getHours(),this.$m=N.getMinutes(),this.$s=N.getSeconds(),this.$ms=N.getMilliseconds()},j.$utils=function(){return T},j.isValid=function(){return this.$d.toString()!==m},j.isSame=function(N,L){var M=E(N);return this.startOf(L)<=M&&M<=this.endOf(L)},j.isAfter=function(N,L){return E(N)<this.startOf(L)},j.isBefore=function(N,L){return this.endOf(L)<E(N)},j.$g=function(N,L,M){return T.u(N)?this[L]:this.set(M,N)},j.unix=function(){return Math.floor(this.valueOf()/1e3)},j.valueOf=function(){return this.$d.getTime()},j.startOf=function(N,L){var M=this,H=!!T.u(L)||L,q=T.p(N),$=function(Nt,st){var Rt=T.w(M.$u?Date.UTC(M.$y,st,Nt):new Date(M.$y,st,Nt),M);return H?Rt:Rt.endOf(u)},D=function(Nt,st){return T.w(M.toDate()[Nt].apply(M.toDate("s"),(H?[0,0,0,0]:[23,59,59,999]).slice(st)),M)},C=this.$W,I=this.$M,ut=this.$D,Wt="set"+(this.$u?"UTC":"");switch(q){case p:return H?$(1,0):$(31,11);case f:return H?$(1,I):$(0,I+1);case c:var Ct=this.$locale().weekStart||0,ce=(C<Ct?C+7:C)-Ct;return $(H?ut-ce:ut+(6-ce),I);case u:case d:return D(Wt+"Hours",0);case l:return D(Wt+"Minutes",1);case a:return D(Wt+"Seconds",2);case o:return D(Wt+"Milliseconds",3);default:return this.clone()}},j.endOf=function(N){return this.startOf(N,!1)},j.$set=function(N,L){var M,H=T.p(N),q="set"+(this.$u?"UTC":""),$=(M={},M[u]=q+"Date",M[d]=q+"Date",M[f]=q+"Month",M[p]=q+"FullYear",M[l]=q+"Hours",M[a]=q+"Minutes",M[o]=q+"Seconds",M[s]=q+"Milliseconds",M)[H],D=H===u?this.$D+(L-this.$W):L;if(H===f||H===p){var C=this.clone().set(d,1);C.$d[$](D),C.init(),this.$d=C.set(d,Math.min(this.$D,C.daysInMonth())).$d}else $&&this.$d[$](D);return this.init(),this},j.set=function(N,L){return this.clone().$set(N,L)},j.get=function(N){return this[T.p(N)]()},j.add=function(N,L){var M,H=this;N=Number(N);var q=T.p(L),$=function(I){var ut=E(H);return T.w(ut.date(ut.date()+Math.round(I*N)),H)};if(q===f)return this.set(f,this.$M+N);if(q===p)return this.set(p,this.$y+N);if(q===u)return $(1);if(q===c)return $(7);var D=(M={},M[a]=n,M[l]=i,M[o]=r,M)[q]||1,C=this.$d.getTime()+N*D;return T.w(C,this)},j.subtract=function(N,L){return this.add(-1*N,L)},j.format=function(N){var L=this,M=this.$locale();if(!this.isValid())return M.invalidDate||m;var H=N||"YYYY-MM-DDTHH:mm:ssZ",q=T.z(this),$=this.$H,D=this.$m,C=this.$M,I=M.weekdays,ut=M.months,Wt=M.meridiem,Ct=function(st,Rt,le,Te){return st&&(st[Rt]||st(L,H))||le[Rt].slice(0,Te)},ce=function(st){return T.s($%12||12,st,"0")},Nt=Wt||function(st,Rt,le){var Te=st<12?"AM":"PM";return le?Te.toLowerCase():Te};return H.replace(_,function(st,Rt){return Rt||(function(le){switch(le){case"YY":return String(L.$y).slice(-2);case"YYYY":return T.s(L.$y,4,"0");case"M":return C+1;case"MM":return T.s(C+1,2,"0");case"MMM":return Ct(M.monthsShort,C,ut,3);case"MMMM":return Ct(ut,C);case"D":return L.$D;case"DD":return T.s(L.$D,2,"0");case"d":return String(L.$W);case"dd":return Ct(M.weekdaysMin,L.$W,I,2);case"ddd":return Ct(M.weekdaysShort,L.$W,I,3);case"dddd":return I[L.$W];case"H":return String($);case"HH":return T.s($,2,"0");case"h":return ce(1);case"hh":return ce(2);case"a":return Nt($,D,!0);case"A":return Nt($,D,!1);case"m":return String(D);case"mm":return T.s(D,2,"0");case"s":return String(L.$s);case"ss":return T.s(L.$s,2,"0");case"SSS":return T.s(L.$ms,3,"0");case"Z":return q}return null})(st)||q.replace(":","")})},j.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},j.diff=function(N,L,M){var H,q=this,$=T.p(L),D=E(N),C=(D.utcOffset()-this.utcOffset())*n,I=this-D,ut=function(){return T.m(q,D)};switch($){case p:H=ut()/12;break;case f:H=ut();break;case h:H=ut()/3;break;case c:H=(I-C)/6048e5;break;case u:H=(I-C)/864e5;break;case l:H=I/i;break;case a:H=I/n;break;case o:H=I/r;break;default:H=I}return M?H:T.a(H)},j.daysInMonth=function(){return this.endOf(f).$D},j.$locale=function(){return g[this.$L]},j.locale=function(N,L){if(!N)return this.$L;var M=this.clone(),H=U(N,L,!0);return H&&(M.$L=H),M},j.clone=function(){return T.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()},P})(),B=F.prototype;return E.prototype=B,[["$ms",s],["$s",o],["$m",a],["$H",l],["$W",u],["$M",f],["$y",p],["$D",d]].forEach(function(P){B[P[1]]=function(j){return this.$g(j,P[0],P[1])}}),E.extend=function(P,j){return P.$i||(P(j,F,E),P.$i=!0),E},E.locale=U,E.isDayjs=A,E.unix=function(P){return E(1e3*P)},E.en=g[S],E.Ls=g,E.p={},E})})(go);var yo=go.exports;const Rd=oe(yo);var Ad={exports:{}};(function(e,t){(function(r,n){e.exports=n(yo)})(it,function(r){function n(o){return o&&typeof o=="object"&&"default"in o?o:{default:o}}var i=n(r),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,a){return a==="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,a){var l=100*o+a;return l<600?"凌晨":l<900?"早上":l<1100?"上午":l<1300?"中午":l<1800?"下午":"晚上"}};return i.default.locale(s,null,!0),s})})(Ad),Rd.locale("zh-cn");function $d(e=!0){const t="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(r){const n=Math.random()*16|0;return(r==="x"?n:n&3|8).toString(16)});return e?t.toLowerCase():t.replace(/-/gi,"")}function Ke(e=0){return k(this,null,function*(){return new Promise(t=>{setTimeout(t,e)})})}function Od(e){return[...e.entries()].reduce((t,[r,n])=>(t[r]=n,t),{})}function jd(e,t){return Array.from(new Set(e))}function ji(e){return e?[].concat(e):[]}function wr(e,t){const r={};if(Array.isArray(t))Object.keys(e).forEach(n=>{t.includes(n)||(r[n]=e[n])});else{const n=t;Object.entries(e).forEach(([i,s])=>{n(i,s)||(r[i]=s)})}return r}function Dd(e,t){const r={};if(Array.isArray(t))Object.keys(e).forEach(n=>{t.includes(n)&&(r[n]=e[n])});else{const n=t;Object.entries(e).forEach(([i,s])=>{n(i,s)&&(r[i]=s)})}return r}var vo={exports:{}};(function(e){var t=(function(){var r=String.fromCharCode,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",s={};function o(l,u){if(!s[l]){s[l]={};for(var c=0;c<l.length;c++)s[l][l.charAt(c)]=c}return s[l][u]}var a={compressToBase64:function(l){if(l==null)return"";var u=a._compress(l,6,function(c){return n.charAt(c)});switch(u.length%4){default:case 0:return u;case 1:return u+"===";case 2:return u+"==";case 3:return u+"="}},decompressFromBase64:function(l){return l==null?"":l==""?null:a._decompress(l.length,32,function(u){return o(n,l.charAt(u))})},compressToUTF16:function(l){return l==null?"":a._compress(l,15,function(u){return r(u+32)})+" "},decompressFromUTF16:function(l){return l==null?"":l==""?null:a._decompress(l.length,16384,function(u){return l.charCodeAt(u)-32})},compressToUint8Array:function(l){for(var u=a.compress(l),c=new Uint8Array(u.length*2),f=0,h=u.length;f<h;f++){var p=u.charCodeAt(f);c[f*2]=p>>>8,c[f*2+1]=p%256}return c},decompressFromUint8Array:function(l){if(l==null)return a.decompress(l);for(var u=new Array(l.length/2),c=0,f=u.length;c<f;c++)u[c]=l[c*2]*256+l[c*2+1];var h=[];return u.forEach(function(p){h.push(r(p))}),a.decompress(h.join(""))},compressToEncodedURIComponent:function(l){return l==null?"":a._compress(l,6,function(u){return i.charAt(u)})},decompressFromEncodedURIComponent:function(l){return l==null?"":l==""?null:(l=l.replace(/ /g,"+"),a._decompress(l.length,32,function(u){return o(i,l.charAt(u))}))},compress:function(l){return a._compress(l,16,function(u){return r(u)})},_compress:function(l,u,c){if(l==null)return"";var f,h,p={},d={},m="",b="",_="",y=2,v=3,w=2,S=[],g=0,x=0,A;for(A=0;A<l.length;A+=1)if(m=l.charAt(A),Object.prototype.hasOwnProperty.call(p,m)||(p[m]=v++,d[m]=!0),b=_+m,Object.prototype.hasOwnProperty.call(p,b))_=b;else{if(Object.prototype.hasOwnProperty.call(d,_)){if(_.charCodeAt(0)<256){for(f=0;f<w;f++)g=g<<1,x==u-1?(x=0,S.push(c(g)),g=0):x++;for(h=_.charCodeAt(0),f=0;f<8;f++)g=g<<1|h&1,x==u-1?(x=0,S.push(c(g)),g=0):x++,h=h>>1}else{for(h=1,f=0;f<w;f++)g=g<<1|h,x==u-1?(x=0,S.push(c(g)),g=0):x++,h=0;for(h=_.charCodeAt(0),f=0;f<16;f++)g=g<<1|h&1,x==u-1?(x=0,S.push(c(g)),g=0):x++,h=h>>1}y--,y==0&&(y=Math.pow(2,w),w++),delete d[_]}else for(h=p[_],f=0;f<w;f++)g=g<<1|h&1,x==u-1?(x=0,S.push(c(g)),g=0):x++,h=h>>1;y--,y==0&&(y=Math.pow(2,w),w++),p[b]=v++,_=String(m)}if(_!==""){if(Object.prototype.hasOwnProperty.call(d,_)){if(_.charCodeAt(0)<256){for(f=0;f<w;f++)g=g<<1,x==u-1?(x=0,S.push(c(g)),g=0):x++;for(h=_.charCodeAt(0),f=0;f<8;f++)g=g<<1|h&1,x==u-1?(x=0,S.push(c(g)),g=0):x++,h=h>>1}else{for(h=1,f=0;f<w;f++)g=g<<1|h,x==u-1?(x=0,S.push(c(g)),g=0):x++,h=0;for(h=_.charCodeAt(0),f=0;f<16;f++)g=g<<1|h&1,x==u-1?(x=0,S.push(c(g)),g=0):x++,h=h>>1}y--,y==0&&(y=Math.pow(2,w),w++),delete d[_]}else for(h=p[_],f=0;f<w;f++)g=g<<1|h&1,x==u-1?(x=0,S.push(c(g)),g=0):x++,h=h>>1;y--,y==0&&(y=Math.pow(2,w),w++)}for(h=2,f=0;f<w;f++)g=g<<1|h&1,x==u-1?(x=0,S.push(c(g)),g=0):x++,h=h>>1;for(;;)if(g=g<<1,x==u-1){S.push(c(g));break}else x++;return S.join("")},decompress:function(l){return l==null?"":l==""?null:a._decompress(l.length,32768,function(u){return l.charCodeAt(u)})},_decompress:function(l,u,c){var f=[],h=4,p=4,d=3,m="",b=[],_,y,v,w,S,g,x,A={val:c(0),position:u,index:1};for(_=0;_<3;_+=1)f[_]=_;for(v=0,S=Math.pow(2,2),g=1;g!=S;)w=A.val&A.position,A.position>>=1,A.position==0&&(A.position=u,A.val=c(A.index++)),v|=(w>0?1:0)*g,g<<=1;switch(v){case 0:for(v=0,S=Math.pow(2,8),g=1;g!=S;)w=A.val&A.position,A.position>>=1,A.position==0&&(A.position=u,A.val=c(A.index++)),v|=(w>0?1:0)*g,g<<=1;x=r(v);break;case 1:for(v=0,S=Math.pow(2,16),g=1;g!=S;)w=A.val&A.position,A.position>>=1,A.position==0&&(A.position=u,A.val=c(A.index++)),v|=(w>0?1:0)*g,g<<=1;x=r(v);break;case 2:return""}for(f[3]=x,y=x,b.push(x);;){if(A.index>l)return"";for(v=0,S=Math.pow(2,d),g=1;g!=S;)w=A.val&A.position,A.position>>=1,A.position==0&&(A.position=u,A.val=c(A.index++)),v|=(w>0?1:0)*g,g<<=1;switch(x=v){case 0:for(v=0,S=Math.pow(2,8),g=1;g!=S;)w=A.val&A.position,A.position>>=1,A.position==0&&(A.position=u,A.val=c(A.index++)),v|=(w>0?1:0)*g,g<<=1;f[p++]=r(v),x=p-1,h--;break;case 1:for(v=0,S=Math.pow(2,16),g=1;g!=S;)w=A.val&A.position,A.position>>=1,A.position==0&&(A.position=u,A.val=c(A.index++)),v|=(w>0?1:0)*g,g<<=1;f[p++]=r(v),x=p-1,h--;break;case 2:return b.join("")}if(h==0&&(h=Math.pow(2,d),d++),f[x])m=f[x];else if(x===p)m=y+y.charAt(0);else return null;b.push(m),f[p++]=y+m.charAt(0),h--,y=m,h==0&&(h=Math.pow(2,d),d++)}}};return a})();e!=null?e.exports=t:typeof angular<"u"&&angular!=null&&angular.module("LZString",[]).factory("LZString",function(){return t})})(vo);var bo=vo.exports;function Bd(e){for(var t=[],r=0;r<e.length;){var n=e[r];if(n==="*"||n==="+"||n==="?"){t.push({type:"MODIFIER",index:r,value:e[r++]});continue}if(n==="\\"){t.push({type:"ESCAPED_CHAR",index:r++,value:e[r++]});continue}if(n==="{"){t.push({type:"OPEN",index:r,value:e[r++]});continue}if(n==="}"){t.push({type:"CLOSE",index:r,value:e[r++]});continue}if(n===":"){for(var i="",s=r+1;s<e.length;){var o=e.charCodeAt(s);if(o>=48&&o<=57||o>=65&&o<=90||o>=97&&o<=122||o===95){i+=e[s++];continue}break}if(!i)throw new TypeError("Missing parameter name at ".concat(r));t.push({type:"NAME",index:r,value:i}),r=s;continue}if(n==="("){var a=1,l="",s=r+1;if(e[s]==="?")throw new TypeError('Pattern cannot start with "?" at '.concat(s));for(;s<e.length;){if(e[s]==="\\"){l+=e[s++]+e[s++];continue}if(e[s]===")"){if(a--,a===0){s++;break}}else if(e[s]==="("&&(a++,e[s+1]!=="?"))throw new TypeError("Capturing groups are not allowed at ".concat(s));l+=e[s++]}if(a)throw new TypeError("Unbalanced pattern at ".concat(r));if(!l)throw new TypeError("Missing pattern at ".concat(r));t.push({type:"PATTERN",index:r,value:l}),r=s;continue}t.push({type:"CHAR",index:r,value:e[r++]})}return t.push({type:"END",index:r,value:""}),t}function wo(e,t){t===void 0&&(t={});for(var r=Bd(e),n=t.prefixes,i=n===void 0?"./":n,s="[^".concat(te(t.delimiter||"/#?"),"]+?"),o=[],a=0,l=0,u="",c=function(g){if(l<r.length&&r[l].type===g)return r[l++].value},f=function(g){var x=c(g);if(x!==void 0)return x;var A=r[l],U=A.type,E=A.index;throw new TypeError("Unexpected ".concat(U," at ").concat(E,", expected ").concat(g))},h=function(){for(var g="",x;x=c("CHAR")||c("ESCAPED_CHAR");)g+=x;return g};l<r.length;){var p=c("CHAR"),d=c("NAME"),m=c("PATTERN");if(d||m){var b=p||"";i.indexOf(b)===-1&&(u+=b,b=""),u&&(o.push(u),u=""),o.push({name:d||a++,prefix:b,suffix:"",pattern:m||s,modifier:c("MODIFIER")||""});continue}var _=p||c("ESCAPED_CHAR");if(_){u+=_;continue}u&&(o.push(u),u="");var y=c("OPEN");if(y){var b=h(),v=c("NAME")||"",w=c("PATTERN")||"",S=h();f("CLOSE"),o.push({name:v||(w?a++:""),pattern:v&&!w?s:w,prefix:b,suffix:S,modifier:c("MODIFIER")||""});continue}f("END")}return o}function Cd(e,t){return Nd(wo(e,t),t)}function Nd(e,t){t===void 0&&(t={});var r=mn(t),n=t.encode,i=n===void 0?function(l){return l}:n,s=t.validate,o=s===void 0?!0:s,a=e.map(function(l){if(typeof l=="object")return new RegExp("^(?:".concat(l.pattern,")$"),r)});return function(l){for(var u="",c=0;c<e.length;c++){var f=e[c];if(typeof f=="string"){u+=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 m=0;m<h.length;m++){var b=i(h[m],f);if(o&&!a[c].test(b))throw new TypeError('Expected all "'.concat(f.name,'" to match "').concat(f.pattern,'", but got "').concat(b,'"'));u+=f.prefix+b+f.suffix}continue}if(typeof h=="string"||typeof h=="number"){var b=i(String(h),f);if(o&&!a[c].test(b))throw new TypeError('Expected "'.concat(f.name,'" to match "').concat(f.pattern,'", but got "').concat(b,'"'));u+=f.prefix+b+f.suffix;continue}if(!p){var _=d?"an array":"a string";throw new TypeError('Expected "'.concat(f.name,'" to be ').concat(_))}}return u}}function Id(e,t){var r=[],n=gn(e,r,t);return Pd(n,r,t)}function Pd(e,t,r){r===void 0&&(r={});var n=r.decode,i=n===void 0?function(s){return s}:n;return function(s){var o=e.exec(s);if(!o)return!1;for(var a=o[0],l=o.index,u=Object.create(null),c=function(h){if(o[h]===void 0)return"continue";var p=t[h-1];p.modifier==="*"||p.modifier==="+"?u[p.name]=o[h].split(p.prefix+p.suffix).map(function(d){return i(d,p)}):u[p.name]=i(o[h],p)},f=1;f<o.length;f++)c(f);return{path:a,index:l,params:u}}}function te(e){return e.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function mn(e){return e&&e.sensitive?"":"i"}function kd(e,t){if(!t)return e;for(var r=/\((?:\?<(.*?)>)?(?!\?)/g,n=0,i=r.exec(e.source);i;)t.push({name:i[1]||n++,prefix:"",suffix:"",modifier:"",pattern:""}),i=r.exec(e.source);return e}function Fd(e,t,r){var n=e.map(function(i){return gn(i,t,r).source});return new RegExp("(?:".concat(n.join("|"),")"),mn(r))}function Md(e,t,r){return Ud(wo(e,r),t,r)}function Ud(e,t,r){r===void 0&&(r={});for(var n=r.strict,i=n===void 0?!1:n,s=r.start,o=s===void 0?!0:s,a=r.end,l=a===void 0?!0:a,u=r.encode,c=u===void 0?function(E){return E}:u,f=r.delimiter,h=f===void 0?"/#?":f,p=r.endsWith,d=p===void 0?"":p,m="[".concat(te(d),"]|$"),b="[".concat(te(h),"]"),_=o?"^":"",y=0,v=e;y<v.length;y++){var w=v[y];if(typeof w=="string")_+=te(c(w));else{var S=te(c(w.prefix)),g=te(c(w.suffix));if(w.pattern)if(t&&t.push(w),S||g)if(w.modifier==="+"||w.modifier==="*"){var x=w.modifier==="*"?"?":"";_+="(?:".concat(S,"((?:").concat(w.pattern,")(?:").concat(g).concat(S,"(?:").concat(w.pattern,"))*)").concat(g,")").concat(x)}else _+="(?:".concat(S,"(").concat(w.pattern,")").concat(g,")").concat(w.modifier);else w.modifier==="+"||w.modifier==="*"?_+="((?:".concat(w.pattern,")").concat(w.modifier,")"):_+="(".concat(w.pattern,")").concat(w.modifier);else _+="(?:".concat(S).concat(g,")").concat(w.modifier)}}if(l)i||(_+="".concat(b,"?")),_+=r.endsWith?"(?=".concat(m,")"):"$";else{var A=e[e.length-1],U=typeof A=="string"?b.indexOf(A[A.length-1])>-1:A===void 0;i||(_+="(?:".concat(b,"(?=").concat(m,"))?")),U||(_+="(?=".concat(b,"|").concat(m,")"))}return new RegExp(_,mn(r))}function gn(e,t,r){return e instanceof RegExp?kd(e,t):Array.isArray(e)?Fd(e,t,r):Md(e,t,r)}var Ld=Object.defineProperty,Vd=(e,t,r)=>t in e?Ld(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,he=(e,t,r)=>(Vd(e,typeof t!="symbol"?t+"":t,r),r);class Hd{constructor(){he(this,"queue",[]),he(this,"isProcessing",!1),he(this,"results",[]),he(this,"cache",new Map),he(this,"pendingTasks",new Map)}add(t,r){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,a)=>{this.queue.push({key:t,task:r,resolve:o,reject:a}),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 k(this,null,function*(){if(this.queue.length===0){this.isProcessing=!1;return}this.isProcessing=!0;const{key:t,task:r,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 r(),a={key:t,status:"fulfilled",value:o};this.results.push(a),this.cache.set(t,a),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()}})}}bo.compress;bo.decompress;/**!
51
51
  * Copyright (c) 2025, VTJ.PRO All rights reserved.
52
52
  * @name @vtj/core
53
53
  * @author CHC chenhuachun1549@dingtalk.com
54
- * @version 0.13.14
54
+ * @version 0.13.15
55
55
  * @license <a href="https://vtj.pro/license.html">MIT License</a>
56
- */const qd="VueMaterial",zd="VueRouterMaterial",Kd={[qd]:["Transition","TransitionGroup","KeepAlive","Teleport","Suspense"],[zd]:["RouterView","RouterLink"]};let Wd=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 Jd=Object.defineProperty,Yd=(e,t,r)=>t in e?Jd(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,lt=(e,t,r)=>Yd(e,typeof t!="symbol"?t+"":t,r);(function(){if(typeof window>"u"||typeof EventTarget>"u")return;const e=EventTarget.prototype.addEventListener;EventTarget.prototype.addEventListener=function(t,r,n){typeof n!="boolean"&&(n=n||{},n.passive=!1),e.call(this,t,r,n)}})();const Gd=e=>typeof e=="symbol";new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Gd));function _o(e,t){return function(){return e.apply(t,arguments)}}const{toString:Zd}=Object.prototype,{getPrototypeOf:yn}=Object,{iterator:tr,toStringTag:Eo}=Symbol,er=(e=>t=>{const r=Zd.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),yt=e=>(e=e.toLowerCase(),t=>er(t)===e),rr=e=>t=>typeof t===e,{isArray:ae}=Array,be=rr("undefined");function Qd(e){return e!==null&&!be(e)&&e.constructor!==null&&!be(e.constructor)&&ot(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const So=yt("ArrayBuffer");function Xd(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&So(e.buffer),t}const tm=rr("string"),ot=rr("function"),xo=rr("number"),nr=e=>e!==null&&typeof e=="object",em=e=>e===!0||e===!1,ke=e=>{if(er(e)!=="object")return!1;const t=yn(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Eo in e)&&!(tr in e)},rm=yt("Date"),nm=yt("File"),im=yt("Blob"),sm=yt("FileList"),om=e=>nr(e)&&ot(e.pipe),am=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||ot(e.append)&&((t=er(e))==="formdata"||t==="object"&&ot(e.toString)&&e.toString()==="[object FormData]"))},um=yt("URLSearchParams"),[cm,lm,fm,hm]=["ReadableStream","Request","Response","Headers"].map(yt),pm=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Se(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,i;if(typeof e!="object"&&(e=[e]),ae(e))for(n=0,i=e.length;n<i;n++)t.call(null,e[n],n,e);else{const s=r?Object.getOwnPropertyNames(e):Object.keys(e),o=s.length;let u;for(n=0;n<o;n++)u=s[n],t.call(null,e[u],u,e)}}function To(e,t){t=t.toLowerCase();const r=Object.keys(e);let n=r.length,i;for(;n-- >0;)if(i=r[n],t===i.toLowerCase())return i;return null}const Ut=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Ro=e=>!be(e)&&e!==Ut;function qr(){const{caseless:e}=Ro(this)&&this||{},t={},r=(n,i)=>{const s=e&&To(t,i)||i;ke(t[s])&&ke(n)?t[s]=qr(t[s],n):ke(n)?t[s]=qr({},n):ae(n)?t[s]=n.slice():t[s]=n};for(let n=0,i=arguments.length;n<i;n++)arguments[n]&&Se(arguments[n],r);return t}const dm=(e,t,r,{allOwnKeys:n}={})=>(Se(t,(i,s)=>{r&&ot(i)?e[s]=_o(i,r):e[s]=i},{allOwnKeys:n}),e),mm=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),gm=(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},ym=(e,t,r,n)=>{let i,s,o;const u={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),s=i.length;s-- >0;)o=i[s],(!n||n(o,e,t))&&!u[o]&&(t[o]=e[o],u[o]=!0);e=r!==!1&&yn(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},vm=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return n!==-1&&n===r},bm=e=>{if(!e)return null;if(ae(e))return e;let t=e.length;if(!xo(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},wm=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&yn(Uint8Array)),_m=(e,t)=>{const r=(e&&e[tr]).call(e);let n;for(;(n=r.next())&&!n.done;){const i=n.value;t.call(e,i[0],i[1])}},Em=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},Sm=yt("HTMLFormElement"),xm=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(t,r,n){return r.toUpperCase()+n}),Di=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),Tm=yt("RegExp"),Ao=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};Se(r,(i,s)=>{let o;(o=t(i,s,e))!==!1&&(n[s]=o||i)}),Object.defineProperties(e,n)},Rm=e=>{Ao(e,(t,r)=>{if(ot(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=e[r];if(ot(n)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},Am=(e,t)=>{const r={},n=i=>{i.forEach(s=>{r[s]=!0})};return ae(e)?n(e):n(String(e).split(t)),r},$m=()=>{},Om=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function jm(e){return!!(e&&ot(e.append)&&e[Eo]==="FormData"&&e[tr])}const Dm=e=>{const t=new Array(10),r=(n,i)=>{if(nr(n)){if(t.indexOf(n)>=0)return;if(!("toJSON"in n)){t[i]=n;const s=ae(n)?[]:{};return Se(n,(o,u)=>{const l=r(o,i+1);!be(l)&&(s[u]=l)}),t[i]=void 0,s}}return n};return r(e,0)},Bm=yt("AsyncFunction"),Cm=e=>e&&(nr(e)||ot(e))&&ot(e.then)&&ot(e.catch),$o=((e,t)=>e?setImmediate:t?((r,n)=>(Ut.addEventListener("message",({source:i,data:s})=>{i===Ut&&s===r&&n.length&&n.shift()()},!1),i=>{n.push(i),Ut.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",ot(Ut.postMessage)),Nm=typeof queueMicrotask<"u"?queueMicrotask.bind(Ut):typeof process<"u"&&process.nextTick||$o,Im=e=>e!=null&&ot(e[tr]),R={isArray:ae,isArrayBuffer:So,isBuffer:Qd,isFormData:am,isArrayBufferView:Xd,isString:tm,isNumber:xo,isBoolean:em,isObject:nr,isPlainObject:ke,isReadableStream:cm,isRequest:lm,isResponse:fm,isHeaders:hm,isUndefined:be,isDate:rm,isFile:nm,isBlob:im,isRegExp:Tm,isFunction:ot,isStream:om,isURLSearchParams:um,isTypedArray:wm,isFileList:sm,forEach:Se,merge:qr,extend:dm,trim:pm,stripBOM:mm,inherits:gm,toFlatObject:ym,kindOf:er,kindOfTest:yt,endsWith:vm,toArray:bm,forEachEntry:_m,matchAll:Em,isHTMLForm:Sm,hasOwnProperty:Di,hasOwnProp:Di,reduceDescriptors:Ao,freezeMethods:Rm,toObjectSet:Am,toCamelCase:xm,noop:$m,toFiniteNumber:Om,findKey:To,global:Ut,isContextDefined:Ro,isSpecCompliantForm:jm,toJSONObject:Dm,isAsyncFn:Bm,isThenable:Cm,setImmediate:$o,asap:Nm,isIterable:Im};function K(e,t,r,n,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),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 Oo=K.prototype,jo={};["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(e=>{jo[e]={value:e}});Object.defineProperties(K,jo);Object.defineProperty(Oo,"isAxiosError",{value:!0});K.from=(e,t,r,n,i,s)=>{const o=Object.create(Oo);return R.toFlatObject(e,o,function(u){return u!==Error.prototype},u=>u!=="isAxiosError"),K.call(o,e.message,t,r,n,i),o.cause=e,o.name=e.name,s&&Object.assign(o,s),o};const Pm=null;function zr(e){return R.isPlainObject(e)||R.isArray(e)}function Do(e){return R.endsWith(e,"[]")?e.slice(0,-2):e}function Bi(e,t,r){return e?e.concat(t).map(function(n,i){return n=Do(n),!r&&i?"["+n+"]":n}).join(r?".":""):t}function km(e){return R.isArray(e)&&!e.some(zr)}const Fm=R.toFlatObject(R,{},null,function(e){return/^is[A-Z]/.test(e)});function ir(e,t,r){if(!R.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=R.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(p,d){return!R.isUndefined(d[p])});const n=r.metaTokens,i=r.visitor||a,s=r.dots,o=r.indexes,u=(r.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,m){let b=p;if(p&&!m&&typeof p=="object"){if(R.endsWith(d,"{}"))d=n?d:d.slice(0,-2),p=JSON.stringify(p);else if(R.isArray(p)&&km(p)||(R.isFileList(p)||R.endsWith(d,"[]"))&&(b=R.toArray(p)))return d=Do(d),b.forEach(function(_,y){!(R.isUndefined(_)||_===null)&&t.append(o===!0?Bi([d],y,s):o===null?d:d+"[]",l(_))}),!1}return zr(p)?!0:(t.append(Bi(m,d,s),l(p)),!1)}const c=[],f=Object.assign(Fm,{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(m,b){(!(R.isUndefined(m)||m===null)&&i.call(t,m,R.isString(b)?b.trim():b,d,f))===!0&&h(m,d?d.concat(b):[b])}),c.pop()}}if(!R.isObject(e))throw new TypeError("data must be an object");return h(e),t}function Ci(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function vn(e,t){this._pairs=[],e&&ir(e,this,t)}const Bo=vn.prototype;Bo.append=function(e,t){this._pairs.push([e,t])};Bo.toString=function(e){const t=e?function(r){return e.call(this,r,Ci)}:Ci;return this._pairs.map(function(r){return t(r[0])+"="+t(r[1])},"").join("&")};function Mm(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Co(e,t,r){if(!t)return e;const n=r&&r.encode||Mm;R.isFunction(r)&&(r={serialize:r});const i=r&&r.serialize;let s;if(i?s=i(t,r):s=R.isURLSearchParams(t)?t.toString():new vn(t,r).toString(n),s){const o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+s}return e}let Ni=class{constructor(){this.handlers=[]}use(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,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(r){r!==null&&t(r)})}};const No={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Um=typeof URLSearchParams<"u"?URLSearchParams:vn,Lm=typeof FormData<"u"?FormData:null,Vm=typeof Blob<"u"?Blob:null,Hm={isBrowser:!0,classes:{URLSearchParams:Um,FormData:Lm,Blob:Vm},protocols:["http","https","file","blob","url","data"]},bn=typeof window<"u"&&typeof document<"u",Kr=typeof navigator=="object"&&navigator||void 0,qm=bn&&(!Kr||["ReactNative","NativeScript","NS"].indexOf(Kr.product)<0),zm=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Km=bn&&window.location.href||"http://localhost",Wm=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:bn,hasStandardBrowserEnv:qm,hasStandardBrowserWebWorkerEnv:zm,navigator:Kr,origin:Km},Symbol.toStringTag,{value:"Module"})),rt=V(V({},Wm),Hm);function Jm(e,t){return ir(e,new rt.classes.URLSearchParams,Object.assign({visitor:function(r,n,i,s){return rt.isNode&&R.isBuffer(r)?(this.append(n,r.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)}},t))}function Ym(e){return R.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Gm(e){const t={},r=Object.keys(e);let n;const i=r.length;let s;for(n=0;n<i;n++)s=r[n],t[s]=e[s];return t}function Io(e){function t(r,n,i,s){let o=r[s++];if(o==="__proto__")return!0;const u=Number.isFinite(+o),l=s>=r.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(r,n,i[o],s)&&R.isArray(i[o])&&(i[o]=Gm(i[o])),!u)}if(R.isFormData(e)&&R.isFunction(e.entries)){const r={};return R.forEachEntry(e,(n,i)=>{t(Ym(n),i,r,0)}),r}return null}function Zm(e,t,r){if(R.isString(e))try{return(t||JSON.parse)(e),R.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}const xe={transitional:No,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const r=t.getContentType()||"",n=r.indexOf("application/json")>-1,i=R.isObject(e);if(i&&R.isHTMLForm(e)&&(e=new FormData(e)),R.isFormData(e))return n?JSON.stringify(Io(e)):e;if(R.isArrayBuffer(e)||R.isBuffer(e)||R.isStream(e)||R.isFile(e)||R.isBlob(e)||R.isReadableStream(e))return e;if(R.isArrayBufferView(e))return e.buffer;if(R.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let s;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return Jm(e,this.formSerializer).toString();if((s=R.isFileList(e))||r.indexOf("multipart/form-data")>-1){const o=this.env&&this.env.FormData;return ir(s?{"files[]":e}:e,o&&new o,this.formSerializer)}}return i||n?(t.setContentType("application/json",!1),Zm(e)):e}],transformResponse:[function(e){const t=this.transitional||xe.transitional,r=t&&t.forcedJSONParsing,n=this.responseType==="json";if(R.isResponse(e)||R.isReadableStream(e))return e;if(e&&R.isString(e)&&(r&&!this.responseType||n)){const i=!(t&&t.silentJSONParsing)&&n;try{return JSON.parse(e)}catch(s){if(i)throw s.name==="SyntaxError"?K.from(s,K.ERR_BAD_RESPONSE,this,null,this.response):s}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:rt.classes.FormData,Blob:rt.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};R.forEach(["delete","get","head","post","put","patch"],e=>{xe.headers[e]={}});const Qm=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"]),Xm=e=>{const t={};let r,n,i;return e&&e.split(`
57
- `).forEach(function(s){i=s.indexOf(":"),r=s.substring(0,i).trim().toLowerCase(),n=s.substring(i+1).trim(),!(!r||t[r]&&Qm[r])&&(r==="set-cookie"?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t},Ii=Symbol("internals");function pe(e){return e&&String(e).trim().toLowerCase()}function Fe(e){return e===!1||e==null?e:R.isArray(e)?e.map(Fe):String(e)}function tg(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}const eg=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function _r(e,t,r,n,i){if(R.isFunction(n))return n.call(this,t,r);if(i&&(t=r),!!R.isString(t)){if(R.isString(n))return t.indexOf(n)!==-1;if(R.isRegExp(n))return n.test(t)}}function rg(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}function ng(e,t){const r=R.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(i,s,o){return this[n].call(this,t,i,s,o)},configurable:!0})})}let at=class{constructor(t){t&&this.set(t)}set(t,r,n){const i=this;function s(u,l,a){const c=pe(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]=Fe(u))}const o=(u,l)=>R.forEach(u,(a,c)=>s(a,c,l));if(R.isPlainObject(t)||t instanceof this.constructor)o(t,r);else if(R.isString(t)&&(t=t.trim())&&!eg(t))o(Xm(t),r);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,r)}else t!=null&&s(r,t,n);return this}get(t,r){if(t=pe(t),t){const n=R.findKey(this,t);if(n){const i=this[n];if(!r)return i;if(r===!0)return tg(i);if(R.isFunction(r))return r.call(this,i,n);if(R.isRegExp(r))return r.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=pe(t),t){const n=R.findKey(this,t);return!!(n&&this[n]!==void 0&&(!r||_r(this,this[n],n,r)))}return!1}delete(t,r){const n=this;let i=!1;function s(o){if(o=pe(o),o){const u=R.findKey(n,o);u&&(!r||_r(n,n[u],u,r))&&(delete n[u],i=!0)}}return R.isArray(t)?t.forEach(s):s(t),i}clear(t){const r=Object.keys(this);let n=r.length,i=!1;for(;n--;){const s=r[n];(!t||_r(this,this[s],s,t,!0))&&(delete this[s],i=!0)}return i}normalize(t){const r=this,n={};return R.forEach(this,(i,s)=>{const o=R.findKey(n,s);if(o){r[o]=Fe(i),delete r[s];return}const u=t?rg(s):String(s).trim();u!==s&&delete r[s],r[u]=Fe(i),n[u]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const r=Object.create(null);return R.forEach(this,(n,i)=>{n!=null&&n!==!1&&(r[i]=t&&R.isArray(n)?n.join(", "):n)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,r])=>t+": "+r).join(`
58
- `)}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,...r){const n=new this(t);return r.forEach(i=>n.set(i)),n}static accessor(t){const r=(this[Ii]=this[Ii]={accessors:{}}).accessors,n=this.prototype;function i(s){const o=pe(s);r[o]||(ng(n,s),r[o]=!0)}return R.isArray(t)?t.forEach(i):i(t),this}};at.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);R.reduceDescriptors(at.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[r]=n}}});R.freezeMethods(at);function Er(e,t){const r=this||xe,n=t||r,i=at.from(n.headers);let s=n.data;return R.forEach(e,function(o){s=o.call(r,s,i.normalize(),t?t.status:void 0)}),i.normalize(),s}function Po(e){return!!(e&&e.__CANCEL__)}function ue(e,t,r){K.call(this,e!=null?e:"canceled",K.ERR_CANCELED,t,r),this.name="CanceledError"}R.inherits(ue,K,{__CANCEL__:!0});function ko(e,t,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new K("Request failed with status code "+r.status,[K.ERR_BAD_REQUEST,K.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function ig(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function sg(e,t){e=e||10;const r=new Array(e),n=new Array(e);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),r[i]=u,n[i]=l;let c=s,f=0;for(;c!==i;)f+=r[c++],c=c%e;if(i=(i+1)%e,i===s&&(s=(s+1)%e),l-o<t)return;const h=a&&l-a;return h?Math.round(f*1e3/h):void 0}}function og(e,t){let r=0,n=1e3/t,i,s;const o=(u,l=Date.now())=>{r=l,i=null,s&&(clearTimeout(s),s=null),e.apply(null,u)};return[(...u)=>{const l=Date.now(),a=l-r;a>=n?o(u,l):(i=u,s||(s=setTimeout(()=>{s=null,o(i)},n-a)))},()=>i&&o(i)]}const We=(e,t,r=3)=>{let n=0;const i=sg(50,250);return og(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};e(f)},r)},Pi=(e,t)=>{const r=e!=null;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},ki=e=>(...t)=>R.asap(()=>e(...t)),ag=rt.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,rt.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(rt.origin),rt.navigator&&/(msie|trident)/i.test(rt.navigator.userAgent)):()=>!0,ug=rt.hasStandardBrowserEnv?{write(e,t,r,n,i,s){const o=[e+"="+encodeURIComponent(t)];R.isNumber(r)&&o.push("expires="+new Date(r).toGMTString()),R.isString(n)&&o.push("path="+n),R.isString(i)&&o.push("domain="+i),s===!0&&o.push("secure"),document.cookie=o.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function cg(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function lg(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Fo(e,t,r){let n=!cg(t);return e&&(n||r==!1)?lg(e,t):t}const Fi=e=>e instanceof at?V({},e):e;function qt(e,t){t=t||{};const r={};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 e)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(Fi(a),Fi(c),f,!0)};return R.forEach(Object.keys(Object.assign({},e,t)),function(a){const c=l[a]||i,f=c(e[a],t[a],a);R.isUndefined(f)&&c!==u||(r[a]=f)}),r}const Mo=e=>{const t=qt({},e);let{data:r,withXSRFToken:n,xsrfHeaderName:i,xsrfCookieName:s,headers:o,auth:u}=t;t.headers=o=at.from(o),t.url=Co(Fo(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),u&&o.set("Authorization","Basic "+btoa((u.username||"")+":"+(u.password?unescape(encodeURIComponent(u.password)):"")));let l;if(R.isFormData(r)){if(rt.hasStandardBrowserEnv||rt.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if((l=o.getContentType())!==!1){const[a,...c]=l?l.split(";").map(f=>f.trim()).filter(Boolean):[];o.setContentType([a||"multipart/form-data",...c].join("; "))}}if(rt.hasStandardBrowserEnv&&(n&&R.isFunction(n)&&(n=n(t)),n||n!==!1&&ag(t.url))){const a=i&&s&&ug.read(s);a&&o.set(i,a)}return t},fg=typeof XMLHttpRequest<"u",hg=fg&&function(e){return new Promise(function(t,r){const n=Mo(e);let i=n.data;const s=at.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 m=new XMLHttpRequest;m.open(n.method.toUpperCase(),n.url,!0),m.timeout=n.timeout;function b(){if(!m)return;const y=at.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders()),v={data:!o||o==="text"||o==="json"?m.responseText:m.response,status:m.status,statusText:m.statusText,headers:y,config:e,request:m};ko(function(w){t(w),d()},function(w){r(w),d()},v),m=null}"onloadend"in m?m.onloadend=b:m.onreadystatechange=function(){!m||m.readyState!==4||m.status===0&&!(m.responseURL&&m.responseURL.indexOf("file:")===0)||setTimeout(b)},m.onabort=function(){m&&(r(new K("Request aborted",K.ECONNABORTED,e,m)),m=null)},m.onerror=function(){r(new K("Network Error",K.ERR_NETWORK,e,m)),m=null},m.ontimeout=function(){let y=n.timeout?"timeout of "+n.timeout+"ms exceeded":"timeout exceeded";const v=n.transitional||No;n.timeoutErrorMessage&&(y=n.timeoutErrorMessage),r(new K(y,v.clarifyTimeoutError?K.ETIMEDOUT:K.ECONNABORTED,e,m)),m=null},i===void 0&&s.setContentType(null),"setRequestHeader"in m&&R.forEach(s.toJSON(),function(y,v){m.setRequestHeader(v,y)}),R.isUndefined(n.withCredentials)||(m.withCredentials=!!n.withCredentials),o&&o!=="json"&&(m.responseType=n.responseType),l&&([f,p]=We(l,!0),m.addEventListener("progress",f)),u&&m.upload&&([c,h]=We(u),m.upload.addEventListener("progress",c),m.upload.addEventListener("loadend",h)),(n.cancelToken||n.signal)&&(a=y=>{m&&(r(!y||y.type?new ue(null,e,m):y),m.abort(),m=null)},n.cancelToken&&n.cancelToken.subscribe(a),n.signal&&(n.signal.aborted?a():n.signal.addEventListener("abort",a)));const _=ig(n.url);if(_&&rt.protocols.indexOf(_)===-1){r(new K("Unsupported protocol "+_+":",K.ERR_BAD_REQUEST,e));return}m.send(i||null)})},pg=(e,t)=>{const{length:r}=e=e?e.filter(Boolean):[];if(t||r){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 ue(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=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach(a=>{a.unsubscribe?a.unsubscribe(s):a.removeEventListener("abort",s)}),e=null)};e.forEach(a=>a.addEventListener("abort",s));const{signal:l}=n;return l.unsubscribe=()=>R.asap(u),l}},dg=function*(e,t){let r=e.byteLength;if(r<t){yield e;return}let n=0,i;for(;n<r;)i=n+t,yield e.slice(n,i),n=i},mg=function(e,t){return fr(this,null,function*(){try{for(var r=Sn(gg(e)),n,i,s;n=!(i=yield new It(r.next())).done;n=!1){const o=i.value;yield*hr(dg(o,t))}}catch(i){s=[i]}finally{try{n&&(i=r.return)&&(yield new It(i.call(r)))}finally{if(s)throw s[0]}}})},gg=function(e){return fr(this,null,function*(){if(e[Symbol.asyncIterator]){yield*hr(e);return}const t=e.getReader();try{for(;;){const{done:r,value:n}=yield new It(t.read());if(r)break;yield n}}finally{yield new It(t.cancel())}})},Mi=(e,t,r,n)=>{const i=mg(e,t);let s=0,o,u=a=>{o||(o=!0,n&&n(a))};return new ReadableStream({pull(a){return k(this,null,function*(){try{const{done:c,value:f}=yield i.next();if(c){u(),a.close();return}let h=f.byteLength;if(r){let p=s+=h;r(p)}a.enqueue(new Uint8Array(f))}catch(c){throw u(c),c}})},cancel(a){return u(a),i.return()}},{highWaterMark:2})},sr=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Uo=sr&&typeof ReadableStream=="function",yg=sr&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):e=>k(null,null,function*(){return new Uint8Array(yield new Response(e).arrayBuffer())})),Lo=(e,...t)=>{try{return!!e(...t)}catch(r){return!1}},vg=Uo&&Lo(()=>{let e=!1;const t=new Request(rt.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),Ui=64*1024,Wr=Uo&&Lo(()=>R.isReadableStream(new Response("").body)),Je={stream:Wr&&(e=>e.body)};sr&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!Je[t]&&(Je[t]=R.isFunction(e[t])?r=>r[t]():(r,n)=>{throw new K(`Response type '${t}' is not supported`,K.ERR_NOT_SUPPORT,n)})})})(new Response);const bg=e=>k(null,null,function*(){if(e==null)return 0;if(R.isBlob(e))return e.size;if(R.isSpecCompliantForm(e))return(yield new Request(rt.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(R.isArrayBufferView(e)||R.isArrayBuffer(e))return e.byteLength;if(R.isURLSearchParams(e)&&(e=e+""),R.isString(e))return(yield yg(e)).byteLength}),wg=(e,t)=>k(null,null,function*(){const r=R.toFiniteNumber(e.getContentLength());return r!=null?r:bg(t)}),_g=sr&&(e=>k(null,null,function*(){let{url:t,method:r,data:n,signal:i,cancelToken:s,timeout:o,onDownloadProgress:u,onUploadProgress:l,responseType:a,headers:c,withCredentials:f="same-origin",fetchOptions:h}=Mo(e);a=a?(a+"").toLowerCase():"text";let p=pg([i,s&&s.toAbortSignal()],o),d;const m=p&&p.unsubscribe&&(()=>{p.unsubscribe()});let b;try{if(l&&vg&&r!=="get"&&r!=="head"&&(b=yield wg(c,n))!==0){let S=new Request(t,{method:"POST",body:n,duplex:"half"}),g;if(R.isFormData(n)&&(g=S.headers.get("content-type"))&&c.setContentType(g),S.body){const[x,A]=Pi(b,We(ki(l)));n=Mi(S.body,Ui,x,A)}}R.isString(f)||(f=f?"include":"omit");const _="credentials"in Request.prototype;d=new Request(t,tt(V({},h),{signal:p,method:r.toUpperCase(),headers:c.normalize().toJSON(),body:n,duplex:"half",credentials:_?f:void 0}));let y=yield fetch(d,h);const v=Wr&&(a==="stream"||a==="response");if(Wr&&(u||v&&m)){const S={};["status","statusText","headers"].forEach(U=>{S[U]=y[U]});const g=R.toFiniteNumber(y.headers.get("content-length")),[x,A]=u&&Pi(g,We(ki(u),!0))||[];y=new Response(Mi(y.body,Ui,x,()=>{A&&A(),m&&m()}),S)}a=a||"text";let w=yield Je[R.findKey(Je,a)||"text"](y,e);return!v&&m&&m(),yield new Promise((S,g)=>{ko(S,g,{data:w,headers:at.from(y.headers),status:y.status,statusText:y.statusText,config:e,request:d})})}catch(_){throw m&&m(),_&&_.name==="TypeError"&&/Load failed|fetch/i.test(_.message)?Object.assign(new K("Network Error",K.ERR_NETWORK,e,d),{cause:_.cause||_}):K.from(_,_&&_.code,e,d)}})),Jr={http:Pm,xhr:hg,fetch:_g};R.forEach(Jr,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(r){}Object.defineProperty(e,"adapterName",{value:t})}});const Li=e=>`- ${e}`,Eg=e=>R.isFunction(e)||e===null||e===!1,Vo={getAdapter:e=>{e=R.isArray(e)?e:[e];const{length:t}=e;let r,n;const i={};for(let s=0;s<t;s++){r=e[s];let o;if(n=r,!Eg(r)&&(n=Jr[(o=String(r)).toLowerCase()],n===void 0))throw new K(`Unknown adapter '${o}'`);if(n)break;i[o||"#"+s]=n}if(!n){const s=Object.entries(i).map(([u,l])=>`adapter ${u} `+(l===!1?"is not supported by the environment":"is not available in the build"));let o=t?s.length>1?`since :
56
+ */const qd="VueMaterial",zd="VueRouterMaterial",Kd={[qd]:["Transition","TransitionGroup","KeepAlive","Teleport","Suspense"],[zd]:["RouterView","RouterLink"]};let Wd=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 Jd=Object.defineProperty,Yd=(e,t,r)=>t in e?Jd(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,lt=(e,t,r)=>Yd(e,typeof t!="symbol"?t+"":t,r);(function(){if(typeof window>"u"||typeof EventTarget>"u")return;const e=EventTarget.prototype.addEventListener;EventTarget.prototype.addEventListener=function(t,r,n){typeof n!="boolean"&&(n=n||{},n.passive=!1),e.call(this,t,r,n)}})();const Gd=e=>typeof e=="symbol";new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Gd));function _o(e,t){return function(){return e.apply(t,arguments)}}const{toString:Zd}=Object.prototype,{getPrototypeOf:yn}=Object,{iterator:tr,toStringTag:Eo}=Symbol,er=(e=>t=>{const r=Zd.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),yt=e=>(e=e.toLowerCase(),t=>er(t)===e),rr=e=>t=>typeof t===e,{isArray:ae}=Array,be=rr("undefined");function Qd(e){return e!==null&&!be(e)&&e.constructor!==null&&!be(e.constructor)&&ot(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const So=yt("ArrayBuffer");function Xd(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&So(e.buffer),t}const tm=rr("string"),ot=rr("function"),xo=rr("number"),nr=e=>e!==null&&typeof e=="object",em=e=>e===!0||e===!1,ke=e=>{if(er(e)!=="object")return!1;const t=yn(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Eo in e)&&!(tr in e)},rm=yt("Date"),nm=yt("File"),im=yt("Blob"),sm=yt("FileList"),om=e=>nr(e)&&ot(e.pipe),am=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||ot(e.append)&&((t=er(e))==="formdata"||t==="object"&&ot(e.toString)&&e.toString()==="[object FormData]"))},um=yt("URLSearchParams"),[cm,lm,fm,hm]=["ReadableStream","Request","Response","Headers"].map(yt),pm=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Se(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,i;if(typeof e!="object"&&(e=[e]),ae(e))for(n=0,i=e.length;n<i;n++)t.call(null,e[n],n,e);else{const s=r?Object.getOwnPropertyNames(e):Object.keys(e),o=s.length;let a;for(n=0;n<o;n++)a=s[n],t.call(null,e[a],a,e)}}function To(e,t){t=t.toLowerCase();const r=Object.keys(e);let n=r.length,i;for(;n-- >0;)if(i=r[n],t===i.toLowerCase())return i;return null}const Ut=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Ro=e=>!be(e)&&e!==Ut;function qr(){const{caseless:e}=Ro(this)&&this||{},t={},r=(n,i)=>{const s=e&&To(t,i)||i;ke(t[s])&&ke(n)?t[s]=qr(t[s],n):ke(n)?t[s]=qr({},n):ae(n)?t[s]=n.slice():t[s]=n};for(let n=0,i=arguments.length;n<i;n++)arguments[n]&&Se(arguments[n],r);return t}const dm=(e,t,r,{allOwnKeys:n}={})=>(Se(t,(i,s)=>{r&&ot(i)?e[s]=_o(i,r):e[s]=i},{allOwnKeys:n}),e),mm=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),gm=(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},ym=(e,t,r,n)=>{let i,s,o;const a={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),s=i.length;s-- >0;)o=i[s],(!n||n(o,e,t))&&!a[o]&&(t[o]=e[o],a[o]=!0);e=r!==!1&&yn(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},vm=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return n!==-1&&n===r},bm=e=>{if(!e)return null;if(ae(e))return e;let t=e.length;if(!xo(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},wm=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&yn(Uint8Array)),_m=(e,t)=>{const r=(e&&e[tr]).call(e);let n;for(;(n=r.next())&&!n.done;){const i=n.value;t.call(e,i[0],i[1])}},Em=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},Sm=yt("HTMLFormElement"),xm=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(t,r,n){return r.toUpperCase()+n}),Di=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),Tm=yt("RegExp"),Ao=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};Se(r,(i,s)=>{let o;(o=t(i,s,e))!==!1&&(n[s]=o||i)}),Object.defineProperties(e,n)},Rm=e=>{Ao(e,(t,r)=>{if(ot(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=e[r];if(ot(n)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},Am=(e,t)=>{const r={},n=i=>{i.forEach(s=>{r[s]=!0})};return ae(e)?n(e):n(String(e).split(t)),r},$m=()=>{},Om=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function jm(e){return!!(e&&ot(e.append)&&e[Eo]==="FormData"&&e[tr])}const Dm=e=>{const t=new Array(10),r=(n,i)=>{if(nr(n)){if(t.indexOf(n)>=0)return;if(!("toJSON"in n)){t[i]=n;const s=ae(n)?[]:{};return Se(n,(o,a)=>{const l=r(o,i+1);!be(l)&&(s[a]=l)}),t[i]=void 0,s}}return n};return r(e,0)},Bm=yt("AsyncFunction"),Cm=e=>e&&(nr(e)||ot(e))&&ot(e.then)&&ot(e.catch),$o=((e,t)=>e?setImmediate:t?((r,n)=>(Ut.addEventListener("message",({source:i,data:s})=>{i===Ut&&s===r&&n.length&&n.shift()()},!1),i=>{n.push(i),Ut.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",ot(Ut.postMessage)),Nm=typeof queueMicrotask<"u"?queueMicrotask.bind(Ut):typeof process<"u"&&process.nextTick||$o,Im=e=>e!=null&&ot(e[tr]),R={isArray:ae,isArrayBuffer:So,isBuffer:Qd,isFormData:am,isArrayBufferView:Xd,isString:tm,isNumber:xo,isBoolean:em,isObject:nr,isPlainObject:ke,isReadableStream:cm,isRequest:lm,isResponse:fm,isHeaders:hm,isUndefined:be,isDate:rm,isFile:nm,isBlob:im,isRegExp:Tm,isFunction:ot,isStream:om,isURLSearchParams:um,isTypedArray:wm,isFileList:sm,forEach:Se,merge:qr,extend:dm,trim:pm,stripBOM:mm,inherits:gm,toFlatObject:ym,kindOf:er,kindOfTest:yt,endsWith:vm,toArray:bm,forEachEntry:_m,matchAll:Em,isHTMLForm:Sm,hasOwnProperty:Di,hasOwnProp:Di,reduceDescriptors:Ao,freezeMethods:Rm,toObjectSet:Am,toCamelCase:xm,noop:$m,toFiniteNumber:Om,findKey:To,global:Ut,isContextDefined:Ro,isSpecCompliantForm:jm,toJSONObject:Dm,isAsyncFn:Bm,isThenable:Cm,setImmediate:$o,asap:Nm,isIterable:Im};function K(e,t,r,n,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),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 Oo=K.prototype,jo={};["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(e=>{jo[e]={value:e}});Object.defineProperties(K,jo);Object.defineProperty(Oo,"isAxiosError",{value:!0});K.from=(e,t,r,n,i,s)=>{const o=Object.create(Oo);return R.toFlatObject(e,o,function(a){return a!==Error.prototype},a=>a!=="isAxiosError"),K.call(o,e.message,t,r,n,i),o.cause=e,o.name=e.name,s&&Object.assign(o,s),o};const Pm=null;function zr(e){return R.isPlainObject(e)||R.isArray(e)}function Do(e){return R.endsWith(e,"[]")?e.slice(0,-2):e}function Bi(e,t,r){return e?e.concat(t).map(function(n,i){return n=Do(n),!r&&i?"["+n+"]":n}).join(r?".":""):t}function km(e){return R.isArray(e)&&!e.some(zr)}const Fm=R.toFlatObject(R,{},null,function(e){return/^is[A-Z]/.test(e)});function ir(e,t,r){if(!R.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=R.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(p,d){return!R.isUndefined(d[p])});const n=r.metaTokens,i=r.visitor||u,s=r.dots,o=r.indexes,a=(r.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(!a&&R.isBlob(p))throw new K("Blob is not supported. Use a Buffer instead.");return R.isArrayBuffer(p)||R.isTypedArray(p)?a&&typeof Blob=="function"?new Blob([p]):Buffer.from(p):p}function u(p,d,m){let b=p;if(p&&!m&&typeof p=="object"){if(R.endsWith(d,"{}"))d=n?d:d.slice(0,-2),p=JSON.stringify(p);else if(R.isArray(p)&&km(p)||(R.isFileList(p)||R.endsWith(d,"[]"))&&(b=R.toArray(p)))return d=Do(d),b.forEach(function(_,y){!(R.isUndefined(_)||_===null)&&t.append(o===!0?Bi([d],y,s):o===null?d:d+"[]",l(_))}),!1}return zr(p)?!0:(t.append(Bi(m,d,s),l(p)),!1)}const c=[],f=Object.assign(Fm,{defaultVisitor:u,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(m,b){(!(R.isUndefined(m)||m===null)&&i.call(t,m,R.isString(b)?b.trim():b,d,f))===!0&&h(m,d?d.concat(b):[b])}),c.pop()}}if(!R.isObject(e))throw new TypeError("data must be an object");return h(e),t}function Ci(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function vn(e,t){this._pairs=[],e&&ir(e,this,t)}const Bo=vn.prototype;Bo.append=function(e,t){this._pairs.push([e,t])};Bo.toString=function(e){const t=e?function(r){return e.call(this,r,Ci)}:Ci;return this._pairs.map(function(r){return t(r[0])+"="+t(r[1])},"").join("&")};function Mm(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Co(e,t,r){if(!t)return e;const n=r&&r.encode||Mm;R.isFunction(r)&&(r={serialize:r});const i=r&&r.serialize;let s;if(i?s=i(t,r):s=R.isURLSearchParams(t)?t.toString():new vn(t,r).toString(n),s){const o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+s}return e}let Ni=class{constructor(){this.handlers=[]}use(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,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(r){r!==null&&t(r)})}};const No={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Um=typeof URLSearchParams<"u"?URLSearchParams:vn,Lm=typeof FormData<"u"?FormData:null,Vm=typeof Blob<"u"?Blob:null,Hm={isBrowser:!0,classes:{URLSearchParams:Um,FormData:Lm,Blob:Vm},protocols:["http","https","file","blob","url","data"]},bn=typeof window<"u"&&typeof document<"u",Kr=typeof navigator=="object"&&navigator||void 0,qm=bn&&(!Kr||["ReactNative","NativeScript","NS"].indexOf(Kr.product)<0),zm=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Km=bn&&window.location.href||"http://localhost",Wm=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:bn,hasStandardBrowserEnv:qm,hasStandardBrowserWebWorkerEnv:zm,navigator:Kr,origin:Km},Symbol.toStringTag,{value:"Module"})),rt=V(V({},Wm),Hm);function Jm(e,t){return ir(e,new rt.classes.URLSearchParams,Object.assign({visitor:function(r,n,i,s){return rt.isNode&&R.isBuffer(r)?(this.append(n,r.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)}},t))}function Ym(e){return R.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Gm(e){const t={},r=Object.keys(e);let n;const i=r.length;let s;for(n=0;n<i;n++)s=r[n],t[s]=e[s];return t}function Io(e){function t(r,n,i,s){let o=r[s++];if(o==="__proto__")return!0;const a=Number.isFinite(+o),l=s>=r.length;return o=!o&&R.isArray(i)?i.length:o,l?(R.hasOwnProp(i,o)?i[o]=[i[o],n]:i[o]=n,!a):((!i[o]||!R.isObject(i[o]))&&(i[o]=[]),t(r,n,i[o],s)&&R.isArray(i[o])&&(i[o]=Gm(i[o])),!a)}if(R.isFormData(e)&&R.isFunction(e.entries)){const r={};return R.forEachEntry(e,(n,i)=>{t(Ym(n),i,r,0)}),r}return null}function Zm(e,t,r){if(R.isString(e))try{return(t||JSON.parse)(e),R.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}const xe={transitional:No,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const r=t.getContentType()||"",n=r.indexOf("application/json")>-1,i=R.isObject(e);if(i&&R.isHTMLForm(e)&&(e=new FormData(e)),R.isFormData(e))return n?JSON.stringify(Io(e)):e;if(R.isArrayBuffer(e)||R.isBuffer(e)||R.isStream(e)||R.isFile(e)||R.isBlob(e)||R.isReadableStream(e))return e;if(R.isArrayBufferView(e))return e.buffer;if(R.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let s;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return Jm(e,this.formSerializer).toString();if((s=R.isFileList(e))||r.indexOf("multipart/form-data")>-1){const o=this.env&&this.env.FormData;return ir(s?{"files[]":e}:e,o&&new o,this.formSerializer)}}return i||n?(t.setContentType("application/json",!1),Zm(e)):e}],transformResponse:[function(e){const t=this.transitional||xe.transitional,r=t&&t.forcedJSONParsing,n=this.responseType==="json";if(R.isResponse(e)||R.isReadableStream(e))return e;if(e&&R.isString(e)&&(r&&!this.responseType||n)){const i=!(t&&t.silentJSONParsing)&&n;try{return JSON.parse(e)}catch(s){if(i)throw s.name==="SyntaxError"?K.from(s,K.ERR_BAD_RESPONSE,this,null,this.response):s}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:rt.classes.FormData,Blob:rt.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};R.forEach(["delete","get","head","post","put","patch"],e=>{xe.headers[e]={}});const Qm=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"]),Xm=e=>{const t={};let r,n,i;return e&&e.split(`
57
+ `).forEach(function(s){i=s.indexOf(":"),r=s.substring(0,i).trim().toLowerCase(),n=s.substring(i+1).trim(),!(!r||t[r]&&Qm[r])&&(r==="set-cookie"?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t},Ii=Symbol("internals");function pe(e){return e&&String(e).trim().toLowerCase()}function Fe(e){return e===!1||e==null?e:R.isArray(e)?e.map(Fe):String(e)}function tg(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}const eg=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function _r(e,t,r,n,i){if(R.isFunction(n))return n.call(this,t,r);if(i&&(t=r),!!R.isString(t)){if(R.isString(n))return t.indexOf(n)!==-1;if(R.isRegExp(n))return n.test(t)}}function rg(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}function ng(e,t){const r=R.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(i,s,o){return this[n].call(this,t,i,s,o)},configurable:!0})})}let at=class{constructor(t){t&&this.set(t)}set(t,r,n){const i=this;function s(a,l,u){const c=pe(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||u===!0||u===void 0&&i[f]!==!1)&&(i[f||l]=Fe(a))}const o=(a,l)=>R.forEach(a,(u,c)=>s(u,c,l));if(R.isPlainObject(t)||t instanceof this.constructor)o(t,r);else if(R.isString(t)&&(t=t.trim())&&!eg(t))o(Xm(t),r);else if(R.isObject(t)&&R.isIterable(t)){let a={},l,u;for(const c of t){if(!R.isArray(c))throw TypeError("Object iterator must return a key-value pair");a[u=c[0]]=(l=a[u])?R.isArray(l)?[...l,c[1]]:[l,c[1]]:c[1]}o(a,r)}else t!=null&&s(r,t,n);return this}get(t,r){if(t=pe(t),t){const n=R.findKey(this,t);if(n){const i=this[n];if(!r)return i;if(r===!0)return tg(i);if(R.isFunction(r))return r.call(this,i,n);if(R.isRegExp(r))return r.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=pe(t),t){const n=R.findKey(this,t);return!!(n&&this[n]!==void 0&&(!r||_r(this,this[n],n,r)))}return!1}delete(t,r){const n=this;let i=!1;function s(o){if(o=pe(o),o){const a=R.findKey(n,o);a&&(!r||_r(n,n[a],a,r))&&(delete n[a],i=!0)}}return R.isArray(t)?t.forEach(s):s(t),i}clear(t){const r=Object.keys(this);let n=r.length,i=!1;for(;n--;){const s=r[n];(!t||_r(this,this[s],s,t,!0))&&(delete this[s],i=!0)}return i}normalize(t){const r=this,n={};return R.forEach(this,(i,s)=>{const o=R.findKey(n,s);if(o){r[o]=Fe(i),delete r[s];return}const a=t?rg(s):String(s).trim();a!==s&&delete r[s],r[a]=Fe(i),n[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const r=Object.create(null);return R.forEach(this,(n,i)=>{n!=null&&n!==!1&&(r[i]=t&&R.isArray(n)?n.join(", "):n)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,r])=>t+": "+r).join(`
58
+ `)}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,...r){const n=new this(t);return r.forEach(i=>n.set(i)),n}static accessor(t){const r=(this[Ii]=this[Ii]={accessors:{}}).accessors,n=this.prototype;function i(s){const o=pe(s);r[o]||(ng(n,s),r[o]=!0)}return R.isArray(t)?t.forEach(i):i(t),this}};at.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);R.reduceDescriptors(at.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[r]=n}}});R.freezeMethods(at);function Er(e,t){const r=this||xe,n=t||r,i=at.from(n.headers);let s=n.data;return R.forEach(e,function(o){s=o.call(r,s,i.normalize(),t?t.status:void 0)}),i.normalize(),s}function Po(e){return!!(e&&e.__CANCEL__)}function ue(e,t,r){K.call(this,e!=null?e:"canceled",K.ERR_CANCELED,t,r),this.name="CanceledError"}R.inherits(ue,K,{__CANCEL__:!0});function ko(e,t,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new K("Request failed with status code "+r.status,[K.ERR_BAD_REQUEST,K.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function ig(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function sg(e,t){e=e||10;const r=new Array(e),n=new Array(e);let i=0,s=0,o;return t=t!==void 0?t:1e3,function(a){const l=Date.now(),u=n[s];o||(o=l),r[i]=a,n[i]=l;let c=s,f=0;for(;c!==i;)f+=r[c++],c=c%e;if(i=(i+1)%e,i===s&&(s=(s+1)%e),l-o<t)return;const h=u&&l-u;return h?Math.round(f*1e3/h):void 0}}function og(e,t){let r=0,n=1e3/t,i,s;const o=(a,l=Date.now())=>{r=l,i=null,s&&(clearTimeout(s),s=null),e.apply(null,a)};return[(...a)=>{const l=Date.now(),u=l-r;u>=n?o(a,l):(i=a,s||(s=setTimeout(()=>{s=null,o(i)},n-u)))},()=>i&&o(i)]}const We=(e,t,r=3)=>{let n=0;const i=sg(50,250);return og(s=>{const o=s.loaded,a=s.lengthComputable?s.total:void 0,l=o-n,u=i(l),c=o<=a;n=o;const f={loaded:o,total:a,progress:a?o/a:void 0,bytes:l,rate:u||void 0,estimated:u&&a&&c?(a-o)/u:void 0,event:s,lengthComputable:a!=null,[t?"download":"upload"]:!0};e(f)},r)},Pi=(e,t)=>{const r=e!=null;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},ki=e=>(...t)=>R.asap(()=>e(...t)),ag=rt.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,rt.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(rt.origin),rt.navigator&&/(msie|trident)/i.test(rt.navigator.userAgent)):()=>!0,ug=rt.hasStandardBrowserEnv?{write(e,t,r,n,i,s){const o=[e+"="+encodeURIComponent(t)];R.isNumber(r)&&o.push("expires="+new Date(r).toGMTString()),R.isString(n)&&o.push("path="+n),R.isString(i)&&o.push("domain="+i),s===!0&&o.push("secure"),document.cookie=o.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function cg(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function lg(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Fo(e,t,r){let n=!cg(t);return e&&(n||r==!1)?lg(e,t):t}const Fi=e=>e instanceof at?V({},e):e;function qt(e,t){t=t||{};const r={};function n(u,c,f,h){return R.isPlainObject(u)&&R.isPlainObject(c)?R.merge.call({caseless:h},u,c):R.isPlainObject(c)?R.merge({},c):R.isArray(c)?c.slice():c}function i(u,c,f,h){if(R.isUndefined(c)){if(!R.isUndefined(u))return n(void 0,u,f,h)}else return n(u,c,f,h)}function s(u,c){if(!R.isUndefined(c))return n(void 0,c)}function o(u,c){if(R.isUndefined(c)){if(!R.isUndefined(u))return n(void 0,u)}else return n(void 0,c)}function a(u,c,f){if(f in t)return n(u,c);if(f in e)return n(void 0,u)}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:a,headers:(u,c,f)=>i(Fi(u),Fi(c),f,!0)};return R.forEach(Object.keys(Object.assign({},e,t)),function(u){const c=l[u]||i,f=c(e[u],t[u],u);R.isUndefined(f)&&c!==a||(r[u]=f)}),r}const Mo=e=>{const t=qt({},e);let{data:r,withXSRFToken:n,xsrfHeaderName:i,xsrfCookieName:s,headers:o,auth:a}=t;t.headers=o=at.from(o),t.url=Co(Fo(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),a&&o.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):"")));let l;if(R.isFormData(r)){if(rt.hasStandardBrowserEnv||rt.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if((l=o.getContentType())!==!1){const[u,...c]=l?l.split(";").map(f=>f.trim()).filter(Boolean):[];o.setContentType([u||"multipart/form-data",...c].join("; "))}}if(rt.hasStandardBrowserEnv&&(n&&R.isFunction(n)&&(n=n(t)),n||n!==!1&&ag(t.url))){const u=i&&s&&ug.read(s);u&&o.set(i,u)}return t},fg=typeof XMLHttpRequest<"u",hg=fg&&function(e){return new Promise(function(t,r){const n=Mo(e);let i=n.data;const s=at.from(n.headers).normalize();let{responseType:o,onUploadProgress:a,onDownloadProgress:l}=n,u,c,f,h,p;function d(){h&&h(),p&&p(),n.cancelToken&&n.cancelToken.unsubscribe(u),n.signal&&n.signal.removeEventListener("abort",u)}let m=new XMLHttpRequest;m.open(n.method.toUpperCase(),n.url,!0),m.timeout=n.timeout;function b(){if(!m)return;const y=at.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders()),v={data:!o||o==="text"||o==="json"?m.responseText:m.response,status:m.status,statusText:m.statusText,headers:y,config:e,request:m};ko(function(w){t(w),d()},function(w){r(w),d()},v),m=null}"onloadend"in m?m.onloadend=b:m.onreadystatechange=function(){!m||m.readyState!==4||m.status===0&&!(m.responseURL&&m.responseURL.indexOf("file:")===0)||setTimeout(b)},m.onabort=function(){m&&(r(new K("Request aborted",K.ECONNABORTED,e,m)),m=null)},m.onerror=function(){r(new K("Network Error",K.ERR_NETWORK,e,m)),m=null},m.ontimeout=function(){let y=n.timeout?"timeout of "+n.timeout+"ms exceeded":"timeout exceeded";const v=n.transitional||No;n.timeoutErrorMessage&&(y=n.timeoutErrorMessage),r(new K(y,v.clarifyTimeoutError?K.ETIMEDOUT:K.ECONNABORTED,e,m)),m=null},i===void 0&&s.setContentType(null),"setRequestHeader"in m&&R.forEach(s.toJSON(),function(y,v){m.setRequestHeader(v,y)}),R.isUndefined(n.withCredentials)||(m.withCredentials=!!n.withCredentials),o&&o!=="json"&&(m.responseType=n.responseType),l&&([f,p]=We(l,!0),m.addEventListener("progress",f)),a&&m.upload&&([c,h]=We(a),m.upload.addEventListener("progress",c),m.upload.addEventListener("loadend",h)),(n.cancelToken||n.signal)&&(u=y=>{m&&(r(!y||y.type?new ue(null,e,m):y),m.abort(),m=null)},n.cancelToken&&n.cancelToken.subscribe(u),n.signal&&(n.signal.aborted?u():n.signal.addEventListener("abort",u)));const _=ig(n.url);if(_&&rt.protocols.indexOf(_)===-1){r(new K("Unsupported protocol "+_+":",K.ERR_BAD_REQUEST,e));return}m.send(i||null)})},pg=(e,t)=>{const{length:r}=e=e?e.filter(Boolean):[];if(t||r){let n=new AbortController,i;const s=function(u){if(!i){i=!0,a();const c=u instanceof Error?u:this.reason;n.abort(c instanceof K?c:new ue(c instanceof Error?c.message:c))}};let o=t&&setTimeout(()=>{o=null,s(new K(`timeout ${t} of ms exceeded`,K.ETIMEDOUT))},t);const a=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach(u=>{u.unsubscribe?u.unsubscribe(s):u.removeEventListener("abort",s)}),e=null)};e.forEach(u=>u.addEventListener("abort",s));const{signal:l}=n;return l.unsubscribe=()=>R.asap(a),l}},dg=function*(e,t){let r=e.byteLength;if(r<t){yield e;return}let n=0,i;for(;n<r;)i=n+t,yield e.slice(n,i),n=i},mg=function(e,t){return fr(this,null,function*(){try{for(var r=Sn(gg(e)),n,i,s;n=!(i=yield new It(r.next())).done;n=!1){const o=i.value;yield*hr(dg(o,t))}}catch(i){s=[i]}finally{try{n&&(i=r.return)&&(yield new It(i.call(r)))}finally{if(s)throw s[0]}}})},gg=function(e){return fr(this,null,function*(){if(e[Symbol.asyncIterator]){yield*hr(e);return}const t=e.getReader();try{for(;;){const{done:r,value:n}=yield new It(t.read());if(r)break;yield n}}finally{yield new It(t.cancel())}})},Mi=(e,t,r,n)=>{const i=mg(e,t);let s=0,o,a=u=>{o||(o=!0,n&&n(u))};return new ReadableStream({pull(u){return k(this,null,function*(){try{const{done:c,value:f}=yield i.next();if(c){a(),u.close();return}let h=f.byteLength;if(r){let p=s+=h;r(p)}u.enqueue(new Uint8Array(f))}catch(c){throw a(c),c}})},cancel(u){return a(u),i.return()}},{highWaterMark:2})},sr=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Uo=sr&&typeof ReadableStream=="function",yg=sr&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):e=>k(null,null,function*(){return new Uint8Array(yield new Response(e).arrayBuffer())})),Lo=(e,...t)=>{try{return!!e(...t)}catch(r){return!1}},vg=Uo&&Lo(()=>{let e=!1;const t=new Request(rt.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),Ui=64*1024,Wr=Uo&&Lo(()=>R.isReadableStream(new Response("").body)),Je={stream:Wr&&(e=>e.body)};sr&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!Je[t]&&(Je[t]=R.isFunction(e[t])?r=>r[t]():(r,n)=>{throw new K(`Response type '${t}' is not supported`,K.ERR_NOT_SUPPORT,n)})})})(new Response);const bg=e=>k(null,null,function*(){if(e==null)return 0;if(R.isBlob(e))return e.size;if(R.isSpecCompliantForm(e))return(yield new Request(rt.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(R.isArrayBufferView(e)||R.isArrayBuffer(e))return e.byteLength;if(R.isURLSearchParams(e)&&(e=e+""),R.isString(e))return(yield yg(e)).byteLength}),wg=(e,t)=>k(null,null,function*(){const r=R.toFiniteNumber(e.getContentLength());return r!=null?r:bg(t)}),_g=sr&&(e=>k(null,null,function*(){let{url:t,method:r,data:n,signal:i,cancelToken:s,timeout:o,onDownloadProgress:a,onUploadProgress:l,responseType:u,headers:c,withCredentials:f="same-origin",fetchOptions:h}=Mo(e);u=u?(u+"").toLowerCase():"text";let p=pg([i,s&&s.toAbortSignal()],o),d;const m=p&&p.unsubscribe&&(()=>{p.unsubscribe()});let b;try{if(l&&vg&&r!=="get"&&r!=="head"&&(b=yield wg(c,n))!==0){let S=new Request(t,{method:"POST",body:n,duplex:"half"}),g;if(R.isFormData(n)&&(g=S.headers.get("content-type"))&&c.setContentType(g),S.body){const[x,A]=Pi(b,We(ki(l)));n=Mi(S.body,Ui,x,A)}}R.isString(f)||(f=f?"include":"omit");const _="credentials"in Request.prototype;d=new Request(t,et(V({},h),{signal:p,method:r.toUpperCase(),headers:c.normalize().toJSON(),body:n,duplex:"half",credentials:_?f:void 0}));let y=yield fetch(d,h);const v=Wr&&(u==="stream"||u==="response");if(Wr&&(a||v&&m)){const S={};["status","statusText","headers"].forEach(U=>{S[U]=y[U]});const g=R.toFiniteNumber(y.headers.get("content-length")),[x,A]=a&&Pi(g,We(ki(a),!0))||[];y=new Response(Mi(y.body,Ui,x,()=>{A&&A(),m&&m()}),S)}u=u||"text";let w=yield Je[R.findKey(Je,u)||"text"](y,e);return!v&&m&&m(),yield new Promise((S,g)=>{ko(S,g,{data:w,headers:at.from(y.headers),status:y.status,statusText:y.statusText,config:e,request:d})})}catch(_){throw m&&m(),_&&_.name==="TypeError"&&/Load failed|fetch/i.test(_.message)?Object.assign(new K("Network Error",K.ERR_NETWORK,e,d),{cause:_.cause||_}):K.from(_,_&&_.code,e,d)}})),Jr={http:Pm,xhr:hg,fetch:_g};R.forEach(Jr,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(r){}Object.defineProperty(e,"adapterName",{value:t})}});const Li=e=>`- ${e}`,Eg=e=>R.isFunction(e)||e===null||e===!1,Vo={getAdapter:e=>{e=R.isArray(e)?e:[e];const{length:t}=e;let r,n;const i={};for(let s=0;s<t;s++){r=e[s];let o;if(n=r,!Eg(r)&&(n=Jr[(o=String(r)).toLowerCase()],n===void 0))throw new K(`Unknown adapter '${o}'`);if(n)break;i[o||"#"+s]=n}if(!n){const s=Object.entries(i).map(([a,l])=>`adapter ${a} `+(l===!1?"is not supported by the environment":"is not available in the build"));let o=t?s.length>1?`since :
59
59
  `+s.map(Li).join(`
60
- `):" "+Li(s[0]):"as no adapter specified";throw new K("There is no suitable adapter to dispatch the request "+o,"ERR_NOT_SUPPORT")}return n},adapters:Jr};function Sr(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new ue(null,e)}function Vi(e){return Sr(e),e.headers=at.from(e.headers),e.data=Er.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Vo.getAdapter(e.adapter||xe.adapter)(e).then(function(t){return Sr(e),t.data=Er.call(e,e.transformResponse,t),t.headers=at.from(t.headers),t},function(t){return Po(t)||(Sr(e),t&&t.response&&(t.response.data=Er.call(e,e.transformResponse,t.response),t.response.headers=at.from(t.response.headers))),Promise.reject(t)})}const Ho="1.10.0",or={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{or[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Hi={};or.transitional=function(e,t,r){function n(i,s){return"[Axios v"+Ho+"] Transitional option '"+i+"'"+s+(r?". "+r:"")}return(i,s,o)=>{if(e===!1)throw new K(n(s," has been removed"+(t?" in "+t:"")),K.ERR_DEPRECATED);return t&&!Hi[s]&&(Hi[s]=!0,console.warn(n(s," has been deprecated since v"+t+" and will be removed in the near future"))),e?e(i,s,o):!0}};or.spelling=function(e){return(t,r)=>(console.warn(`${r} is likely a misspelling of ${e}`),!0)};function Sg(e,t,r){if(typeof e!="object")throw new K("options must be an object",K.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let i=n.length;for(;i-- >0;){const s=n[i],o=t[s];if(o){const u=e[s],l=u===void 0||o(u,s,e);if(l!==!0)throw new K("option "+s+" must be "+l,K.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new K("Unknown option "+s,K.ERR_BAD_OPTION)}}const Me={assertOptions:Sg,validators:or},vt=Me.validators;let Lt=class{constructor(t){this.defaults=t||{},this.interceptors={request:new Ni,response:new Ni}}request(t,r){return k(this,null,function*(){try{return yield this._request(t,r)}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+=`
61
- `+s):n.stack=s}catch(o){}}throw n}})}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=qt(this.defaults,r);const{transitional:n,paramsSerializer:i,headers:s}=r;n!==void 0&&Me.assertOptions(n,{silentJSONParsing:vt.transitional(vt.boolean),forcedJSONParsing:vt.transitional(vt.boolean),clarifyTimeoutError:vt.transitional(vt.boolean)},!1),i!=null&&(R.isFunction(i)?r.paramsSerializer={serialize:i}:Me.assertOptions(i,{encode:vt.function,serialize:vt.function},!0)),r.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?r.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:r.allowAbsoluteUrls=!0),Me.assertOptions(r,{baseUrl:vt.spelling("baseURL"),withXsrfToken:vt.spelling("withXSRFToken")},!0),r.method=(r.method||this.defaults.method||"get").toLowerCase();let o=s&&R.merge(s.common,s[r.method]);s&&R.forEach(["delete","get","head","post","put","patch","common"],d=>{delete s[d]}),r.headers=at.concat(o,s);const u=[];let l=!0;this.interceptors.request.forEach(function(d){typeof d.runWhen=="function"&&d.runWhen(r)===!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=[Vi.bind(this),void 0];for(d.unshift.apply(d,u),d.push.apply(d,a),h=d.length,c=Promise.resolve(r);f<h;)c=c.then(d[f++],d[f++]);return c}h=u.length;let p=r;for(f=0;f<h;){const d=u[f++],m=u[f++];try{p=d(p)}catch(b){m.call(this,b);break}}try{c=Vi.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=qt(this.defaults,t);const r=Fo(t.baseURL,t.url,t.allowAbsoluteUrls);return Co(r,t.params,t.paramsSerializer)}};R.forEach(["delete","get","head","options"],function(e){Lt.prototype[e]=function(t,r){return this.request(qt(r||{},{method:e,url:t,data:(r||{}).data}))}});R.forEach(["post","put","patch"],function(e){function t(r){return function(n,i,s){return this.request(qt(s||{},{method:e,headers:r?{"Content-Type":"multipart/form-data"}:{},url:n,data:i}))}}Lt.prototype[e]=t(),Lt.prototype[e+"Form"]=t(!0)});let xg=class qo{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(i){r=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 ue(i,s,o),r(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 r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}toAbortSignal(){const t=new AbortController,r=n=>{t.abort(n)};return this.subscribe(r),t.signal.unsubscribe=()=>this.unsubscribe(r),t.signal}static source(){let t;return{token:new qo(function(r){t=r}),cancel:t}}};function Tg(e){return function(t){return e.apply(null,t)}}function Rg(e){return R.isObject(e)&&e.isAxiosError===!0}const Yr={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};Object.entries(Yr).forEach(([e,t])=>{Yr[t]=e});function zo(e){const t=new Lt(e),r=_o(Lt.prototype.request,t);return R.extend(r,Lt.prototype,t,{allOwnKeys:!0}),R.extend(r,t,null,{allOwnKeys:!0}),r.create=function(n){return zo(qt(e,n))},r}const Q=zo(xe);Q.Axios=Lt;Q.CanceledError=ue;Q.CancelToken=xg;Q.isCancel=Po;Q.VERSION=Ho;Q.toFormData=ir;Q.AxiosError=K;Q.Cancel=Q.CanceledError;Q.all=function(e){return Promise.all(e)};Q.spread=Tg;Q.isAxiosError=Rg;Q.mergeConfig=qt;Q.AxiosHeaders=at;Q.formToJSON=e=>Io(R.isHTMLForm(e)?new FormData(e):e);Q.getAdapter=Vo.getAdapter;Q.HttpStatusCode=Yr;Q.default=Q;const{Axios:o1,AxiosError:a1,CanceledError:u1,isCancel:c1,CancelToken:l1,VERSION:f1,all:h1,Cancel:p1,isAxiosError:d1,spread:m1,toFormData:g1,AxiosHeaders:y1,HttpStatusCode:v1,formToJSON:b1,getAdapter:w1,mergeConfig:_1}=Q,Ag={form:"application/x-www-form-urlencoded",json:"application/json",data:"multipart/form-data"},$g=["put","post","patch"],qi="Local-Request-Id",Og=100,jg=300;let Dg=class{constructor(t={}){lt(this,"axios"),lt(this,"settings"),lt(this,"records",{}),lt(this,"isLoading",!1),lt(this,"stopSkipWarn"),lt(this,"showLoading"),lt(this,"showError"),this.settings=Object.assign({type:"form"},t.settings||{});const r=wr(t,["settings","query"]);this.axios=Q.create(de({headers:{"Content-Type":"application/x-www-form-urlencoded"},timeout:120*1e3},r)),this.setupSkipWarn(this.settings),this.showLoading=Qs(this.openLoading.bind(this),Og),this.showError=Wp(this._showError.bind(this),jg,{leading:!0,trailing:!1})}setConfig(t={}){this.settings=de(this.settings,t.settings||{});const r=wr(t,["settings","query"]);this.axios.defaults=de(this.axios.defaults,r),this.setupSkipWarn(this.settings)}cancel(t,r="请求已取消"){if(t){const n=this.records[t];if(!n)return;n.source.cancel(r)}else for(const n of Object.values(this.records))n.source.cancel(r)}createHeaders(t,r,n){const i=r.injectHeaders?typeof r.headers=="function"?r.headers(t,n,r):r.headers||{}:{},s=V(V({"Content-Type":Ag[r.type||"form"]},n.headers),i);return r.skipWarn&&(s[qi]=t),s}isJsonType(t){return Object.entries(t).some(([r,n])=>r.toLowerCase()==="content-type"&&String(n).includes("application/json"))}toFormData(t,r="data"){if(t instanceof FormData||t instanceof URLSearchParams)return t;const n=r==="data"?new FormData:new URLSearchParams;return Object.entries(t).forEach(([i,s])=>{n.append(i,s)}),n}createSendData(t,r,n,i,s={}){const{type:o,skipWarn:u}=t,{name:l="skipWarn"}=u||{};let{data:a,params:c={},method:f="get"}=r;const h=i?{[l]:!0}:{};return $g.includes(f.toLowerCase())?(a=Object.assign(a||{},h),a=o!=="json"||!this.isJsonType(n)?this.toFormData(a,o):a,c=V({},s)):o==="form"?c=V(V(V({},a||{}),s),h):(a&&(o!=="json"||!this.isJsonType(n))&&(a=this.toFormData(a,o)),c=V(V({},s),h)),{data:a,params:c}}createUrl(t){let{url:r,params:n}=t;if(r){let i=ze(r)?new URL(r).origin:"";const s=i?r.replace(i,""):r;try{const o=Cd(s,{encode:encodeURIComponent});return i+o(n||{})}catch(o){console.warn("createUrl","pathToRegexpCompile error",r)}}return r}openLoading(t){const{loading:r,showLoading:n}=t;r&&n&&Object.keys(this.records).length>0&&(this.isLoading=!0,n())}closeLoading(t){const{loading:r,hideLoading:n}=t;if(!r)return;this.isLoading=!1;const i=Object.keys(this.records);n&&i.length===0&&(this.isLoading=!1,n())}_showError(t,r){var s;const{failMessage:n,showError:i}=t;if(n&&i){const o=(s=r==null?void 0:r.response)==null?void 0:s.data,u=(o==null?void 0:o.message)||(o==null?void 0:o.msg)||(r==null?void 0:r.message)||(r==null?void 0:r.msg)||"未知错误";i(u,r)}}validResponse(t,r){const{validSuccess:n,validate:i}=t;return n&&i?!!i(r):!0}isSkipWarnResponse(t){return!!t.promise}send(t={},r=!1){const n=de({},this.settings,t.settings||{}),i=t.query||{},s=wr(t,["settings","query"]),o=$d(!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,r,i);return this.showLoading(n),new Promise((h,p)=>{this.axios(tt(V({cancelToken:u.token},s),{url:l,headers:a,data:c,params:f})).then(d=>{var m;return this.isSkipWarnResponse(d)?h(d.promise):this.validResponse(n,d)?h(n.originResponse?d:(m=d.data)==null?void 0:m.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,r){const{response:n}=this.axios.interceptors,i=n.use(t,r);return()=>n.eject(i)}useRequest(t,r){const{request:n}=this.axios.interceptors,i=n.use(t,r);return()=>n.eject(i)}setupSkipWarn(t){if(this.stopSkipWarn&&(this.stopSkipWarn(),this.stopSkipWarn=void 0),!t.skipWarn)return;const{code:r,executor:n,callback:i,complete:s}=t.skipWarn;this.stopSkipWarn=this.useResponse(o=>{const u=(o.config.headers||{})[qi],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)===r){i&&i(o);const c=new Promise(n).then(()=>this.send(tt(V({},l.config),{settings:l.settings}),!0));c.catch(f=>f).finally(()=>{s&&s()}),o.promise=c}return o})}};function wn(e={}){const t=new Dg(e),r=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(r,tt(V({},t),{instance:t,send:r,cancel:n,setConfig:i,useRequest:s,useResponse:o}))}const Gr=wn({settings:{injectHeaders:!0,loading:!0,originResponse:!0}}),Zr=typeof window<"u";function Bg(e){const t={};return e?(e.forEach((r,n)=>{t[n]=typeof r=="string"?decodeURIComponent(r):r}),t):{}}let Ko=class{constructor(t={}){lt(this,"options",{type:"cache",expired:0,prefix:"__VTJ_"}),lt(this,"caches",{}),lt(this,"types"),this.types={local:Zr?window.localStorage:this.caches,session:Zr?window.sessionStorage:this.caches,cache:this.caches},this.config(t)}config(t={}){this.options=Object.assign(this.options,t)}save(t,r,n={}){const{type:i,expired:s,prefix:o}=V(V({},this.options),n),u=Date.now(),l=o+t,a=this.types[i]||this.caches,c={value:r,timestamp:u,expired:s};a===this.caches?a[l]=c:a.setItem(l,JSON.stringify(c))}get(t,r={}){const{type:n,prefix:i}=V(V({},this.options),r),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,r),null):l}remove(t,r={}){const{type:n,prefix:i}=V(V({},this.options),r),s=this.types[n]||this.caches,o=i+t;s===this.caches?delete s[o]:s.removeItem(o)}clear(t={}){const{type:r}=V(V({},this.options),t),n=this.types[r]||this.caches;n===this.caches?this.caches={}:n.clear()}};const xr=new Ko;function Wo(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ue={exports:{}},Cg=Ue.exports,zi;function Ng(){return zi||(zi=1,(function(e,t){(function(r,n){n(t,e)})(Cg,function(r,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(m,b){var _=c.jsonpCallbackFunction||s(),y=p+"_"+_;window[_]=function(w){m({ok:!0,json:function(){return Promise.resolve(w)}}),d&&clearTimeout(d),u(y),o(_)},f+=f.indexOf("?")===-1?"?":"&";var v=document.createElement("script");v.setAttribute("src",""+f+p+"="+_),c.charset&&v.setAttribute("charset",c.charset),c.nonce&&v.setAttribute("nonce",c.nonce),c.referrerPolicy&&v.setAttribute("referrerPolicy",c.referrerPolicy),c.crossorigin&&v.setAttribute("crossorigin","true"),v.id=y,document.getElementsByTagName("head")[0].appendChild(v),d=setTimeout(function(){b(new Error("JSONP request to "+a+" timed out")),o(_),u(y),window[_]=function(){o(_)}},h),v.onerror=function(){b(new Error("JSONP request to "+a+" failed")),o(_),u(y),d&&clearTimeout(d)}})}n.exports=l})})(Ue,Ue.exports)),Ue.exports}var Ig=Ng();const Pg=Wo(Ig);function kg(e){if(Zr){const{protocol:t,host:r,pathname:n}=location;return`${t}//${r}${e?n:""}`}else return null}function Fg(e=""){const t=e.match(po);return t?t[0]:""}function Jo(e){const t=[];for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.push([r,encodeURIComponent(e[r])].join("="));return t.join("&")}function Qr(e,t,r){const n={};e=(e||location.search).replace(/^[^]*\?/,""),t=t||"&",r=r||"=";let i;const s=new RegExp("(?:^|\\"+t+")([^\\"+r+"\\"+t+"]+)(?:\\"+r+"([^\\"+t+"]*))?","g");for(;(i=s.exec(e))!==null;)i[1]!==e&&(n[decodeURIComponent(i[1])]=decodeURIComponent(i[2]||""));return n}function Yo(e,t){t=typeof t=="string"?Qr(t):t;const r=e.split("?")[0],n=Qr(e),i=Object.assign({},n,t),s=Jo(i);return s?[r,s].join("?"):e}const Le=Object.freeze(Object.defineProperty({__proto__:null,append:Yo,getCurrentHost:kg,getHost:Fg,parse:Qr,stringify:Jo},Symbol.toStringTag,{value:"Module"}));function Go(r){return k(this,arguments,function*(e,t={}){const{query:n={}}=t;e.includes("${")&&(e=zp(e)(n||{}));const i=Yo(e,n);return yield(yield Pg(i,t)).json()})}var Tr,Ki;function Mg(){if(Ki)return Tr;Ki=1,Tr=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&&e(u,i.attrs),i.text&&(u.text=""+i.text);var l="onload"in u?t:r;l(u,s),u.onload||t(u,s),o.appendChild(u)};function e(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 r(n,i){n.onreadystatechange=function(){this.readyState!="complete"&&this.readyState!="loaded"||(this.onreadystatechange=null,i(null,n))}}return Tr}var Ug=Mg();const Lg=Wo(Ug);function Wi(e,t={}){return new Promise((r,n)=>{const{library:i}=t;Lg(e,t,(s,o)=>{s?n(s):r(i?window[i]:void 0)})})}const Ji={debug:-1,log:0,info:0,warn:1,error:2},Vg=function(e,t,r,n){return function(...i){if(t&&Ji[t]<=Ji[e]&&console[e].apply&&(n==="*"||r.startsWith(n)))return console[e].apply(console,Hg(i,r))}};function Hg(e,t){return t!=="*"&&(typeof e[0]=="string"?e[0]=`[${t}] ${e[0]}`:e=["["+t+"]"].concat(e)),e}function qg(e,t){if(!e)return{targetLevel:t.level,targetBizName:t.bizName};if(~e.indexOf(":")){const r=e.split(":");return{targetLevel:r[0],targetBizName:r[1]}}return{targetLevel:e,targetBizName:"*"}}const zg={level:"warn",bizName:"*"};class Kg{constructor(t){lt(this,"config"),lt(this,"options"),this.options=V(V({},zg),t);const r=typeof location<"u"?location:{},n=(/__(?:logConf|logLevel)__=([^#/&]*)/.exec(r.href)||[])[1];this.config=qg(n,t)}_log(t){const{targetLevel:r,targetBizName:n}=this.config,{bizName:i}=this.options;return Vg(t,r,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 Wg(e){return new Kg(e)}const re=Wg({level:"log",bizName:"VTJ"});/*! js-cookie v3.0.5 | MIT */function Ce(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)e[n]=r[n]}return e}var Jg={read:function(e){return e[0]==='"'&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function Xr(e,t){function r(i,s,o){if(!(typeof document>"u")){o=Ce({},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+"="+e.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]=e.read(a,c),i===c)break}catch(f){}}return i?o[i]:o}}return Object.create({set:r,get:n,remove:function(i,s){r(i,"",Ce({},s,{expires:-1}))},withAttributes:function(i){return Xr(this.converter,Ce({},this.attributes,i))},withConverter:function(i){return Xr(Ce({},this.converter,i),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var _n=Xr(Jg,{path:"/"});function Yg(e,t,r){_n.set(e,t,r)}function Gg(e){return _n.get(e)}function Zg(e,t){_n.remove(e,t)}const Rr=Object.freeze(Object.defineProperty({__proto__:null,get:Gg,remove:Zg,set:Yg},Symbol.toStringTag,{value:"Module"}));/**!
60
+ `):" "+Li(s[0]):"as no adapter specified";throw new K("There is no suitable adapter to dispatch the request "+o,"ERR_NOT_SUPPORT")}return n},adapters:Jr};function Sr(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new ue(null,e)}function Vi(e){return Sr(e),e.headers=at.from(e.headers),e.data=Er.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Vo.getAdapter(e.adapter||xe.adapter)(e).then(function(t){return Sr(e),t.data=Er.call(e,e.transformResponse,t),t.headers=at.from(t.headers),t},function(t){return Po(t)||(Sr(e),t&&t.response&&(t.response.data=Er.call(e,e.transformResponse,t.response),t.response.headers=at.from(t.response.headers))),Promise.reject(t)})}const Ho="1.10.0",or={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{or[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Hi={};or.transitional=function(e,t,r){function n(i,s){return"[Axios v"+Ho+"] Transitional option '"+i+"'"+s+(r?". "+r:"")}return(i,s,o)=>{if(e===!1)throw new K(n(s," has been removed"+(t?" in "+t:"")),K.ERR_DEPRECATED);return t&&!Hi[s]&&(Hi[s]=!0,console.warn(n(s," has been deprecated since v"+t+" and will be removed in the near future"))),e?e(i,s,o):!0}};or.spelling=function(e){return(t,r)=>(console.warn(`${r} is likely a misspelling of ${e}`),!0)};function Sg(e,t,r){if(typeof e!="object")throw new K("options must be an object",K.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let i=n.length;for(;i-- >0;){const s=n[i],o=t[s];if(o){const a=e[s],l=a===void 0||o(a,s,e);if(l!==!0)throw new K("option "+s+" must be "+l,K.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new K("Unknown option "+s,K.ERR_BAD_OPTION)}}const Me={assertOptions:Sg,validators:or},vt=Me.validators;let Lt=class{constructor(t){this.defaults=t||{},this.interceptors={request:new Ni,response:new Ni}}request(t,r){return k(this,null,function*(){try{return yield this._request(t,r)}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+=`
61
+ `+s):n.stack=s}catch(o){}}throw n}})}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=qt(this.defaults,r);const{transitional:n,paramsSerializer:i,headers:s}=r;n!==void 0&&Me.assertOptions(n,{silentJSONParsing:vt.transitional(vt.boolean),forcedJSONParsing:vt.transitional(vt.boolean),clarifyTimeoutError:vt.transitional(vt.boolean)},!1),i!=null&&(R.isFunction(i)?r.paramsSerializer={serialize:i}:Me.assertOptions(i,{encode:vt.function,serialize:vt.function},!0)),r.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?r.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:r.allowAbsoluteUrls=!0),Me.assertOptions(r,{baseUrl:vt.spelling("baseURL"),withXsrfToken:vt.spelling("withXSRFToken")},!0),r.method=(r.method||this.defaults.method||"get").toLowerCase();let o=s&&R.merge(s.common,s[r.method]);s&&R.forEach(["delete","get","head","post","put","patch","common"],d=>{delete s[d]}),r.headers=at.concat(o,s);const a=[];let l=!0;this.interceptors.request.forEach(function(d){typeof d.runWhen=="function"&&d.runWhen(r)===!1||(l=l&&d.synchronous,a.unshift(d.fulfilled,d.rejected))});const u=[];this.interceptors.response.forEach(function(d){u.push(d.fulfilled,d.rejected)});let c,f=0,h;if(!l){const d=[Vi.bind(this),void 0];for(d.unshift.apply(d,a),d.push.apply(d,u),h=d.length,c=Promise.resolve(r);f<h;)c=c.then(d[f++],d[f++]);return c}h=a.length;let p=r;for(f=0;f<h;){const d=a[f++],m=a[f++];try{p=d(p)}catch(b){m.call(this,b);break}}try{c=Vi.call(this,p)}catch(d){return Promise.reject(d)}for(f=0,h=u.length;f<h;)c=c.then(u[f++],u[f++]);return c}getUri(t){t=qt(this.defaults,t);const r=Fo(t.baseURL,t.url,t.allowAbsoluteUrls);return Co(r,t.params,t.paramsSerializer)}};R.forEach(["delete","get","head","options"],function(e){Lt.prototype[e]=function(t,r){return this.request(qt(r||{},{method:e,url:t,data:(r||{}).data}))}});R.forEach(["post","put","patch"],function(e){function t(r){return function(n,i,s){return this.request(qt(s||{},{method:e,headers:r?{"Content-Type":"multipart/form-data"}:{},url:n,data:i}))}}Lt.prototype[e]=t(),Lt.prototype[e+"Form"]=t(!0)});let xg=class qo{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(i){r=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(a=>{n.subscribe(a),s=a}).then(i);return o.cancel=function(){n.unsubscribe(s)},o},t(function(i,s,o){n.reason||(n.reason=new ue(i,s,o),r(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 r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}toAbortSignal(){const t=new AbortController,r=n=>{t.abort(n)};return this.subscribe(r),t.signal.unsubscribe=()=>this.unsubscribe(r),t.signal}static source(){let t;return{token:new qo(function(r){t=r}),cancel:t}}};function Tg(e){return function(t){return e.apply(null,t)}}function Rg(e){return R.isObject(e)&&e.isAxiosError===!0}const Yr={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};Object.entries(Yr).forEach(([e,t])=>{Yr[t]=e});function zo(e){const t=new Lt(e),r=_o(Lt.prototype.request,t);return R.extend(r,Lt.prototype,t,{allOwnKeys:!0}),R.extend(r,t,null,{allOwnKeys:!0}),r.create=function(n){return zo(qt(e,n))},r}const Q=zo(xe);Q.Axios=Lt;Q.CanceledError=ue;Q.CancelToken=xg;Q.isCancel=Po;Q.VERSION=Ho;Q.toFormData=ir;Q.AxiosError=K;Q.Cancel=Q.CanceledError;Q.all=function(e){return Promise.all(e)};Q.spread=Tg;Q.isAxiosError=Rg;Q.mergeConfig=qt;Q.AxiosHeaders=at;Q.formToJSON=e=>Io(R.isHTMLForm(e)?new FormData(e):e);Q.getAdapter=Vo.getAdapter;Q.HttpStatusCode=Yr;Q.default=Q;const{Axios:a1,AxiosError:u1,CanceledError:c1,isCancel:l1,CancelToken:f1,VERSION:h1,all:p1,Cancel:d1,isAxiosError:m1,spread:g1,toFormData:y1,AxiosHeaders:v1,HttpStatusCode:b1,formToJSON:w1,getAdapter:_1,mergeConfig:E1}=Q,Ag={form:"application/x-www-form-urlencoded",json:"application/json",data:"multipart/form-data"},$g=["put","post","patch"],qi="Local-Request-Id",Og=100,jg=300;let Dg=class{constructor(t={}){lt(this,"axios"),lt(this,"settings"),lt(this,"records",{}),lt(this,"isLoading",!1),lt(this,"stopSkipWarn"),lt(this,"showLoading"),lt(this,"showError"),this.settings=Object.assign({type:"form"},t.settings||{});const r=wr(t,["settings","query"]);this.axios=Q.create(de({headers:{"Content-Type":"application/x-www-form-urlencoded"},timeout:120*1e3},r)),this.setupSkipWarn(this.settings),this.showLoading=Qs(this.openLoading.bind(this),Og),this.showError=Wp(this._showError.bind(this),jg,{leading:!0,trailing:!1})}setConfig(t={}){this.settings=de(this.settings,t.settings||{});const r=wr(t,["settings","query"]);this.axios.defaults=de(this.axios.defaults,r),this.setupSkipWarn(this.settings)}cancel(t,r="请求已取消"){if(t){const n=this.records[t];if(!n)return;n.source.cancel(r)}else for(const n of Object.values(this.records))n.source.cancel(r)}createHeaders(t,r,n){const i=r.injectHeaders?typeof r.headers=="function"?r.headers(t,n,r):r.headers||{}:{},s=V(V({"Content-Type":Ag[r.type||"form"]},n.headers),i);return r.skipWarn&&(s[qi]=t),s}isJsonType(t){return Object.entries(t).some(([r,n])=>r.toLowerCase()==="content-type"&&String(n).includes("application/json"))}toFormData(t,r="data"){if(t instanceof FormData||t instanceof URLSearchParams)return t;const n=r==="data"?new FormData:new URLSearchParams;return Object.entries(t).forEach(([i,s])=>{n.append(i,s)}),n}createSendData(t,r,n,i,s={}){const{type:o,skipWarn:a}=t,{name:l="skipWarn"}=a||{};let{data:u,params:c={},method:f="get"}=r;const h=i?{[l]:!0}:{};return $g.includes(f.toLowerCase())?(u=Object.assign(u||{},h),u=o!=="json"||!this.isJsonType(n)?this.toFormData(u,o):u,c=V({},s)):o==="form"?c=V(V(V({},u||{}),s),h):(u&&(o!=="json"||!this.isJsonType(n))&&(u=this.toFormData(u,o)),c=V(V({},s),h)),{data:u,params:c}}createUrl(t){let{url:r,params:n}=t;if(r){let i=ze(r)?new URL(r).origin:"";const s=i?r.replace(i,""):r;try{const o=Cd(s,{encode:encodeURIComponent});return i+o(n||{})}catch(o){console.warn("createUrl","pathToRegexpCompile error",r)}}return r}openLoading(t){const{loading:r,showLoading:n}=t;r&&n&&Object.keys(this.records).length>0&&(this.isLoading=!0,n())}closeLoading(t){const{loading:r,hideLoading:n}=t;if(!r)return;this.isLoading=!1;const i=Object.keys(this.records);n&&i.length===0&&(this.isLoading=!1,n())}_showError(t,r){var s;const{failMessage:n,showError:i}=t;if(n&&i){const o=(s=r==null?void 0:r.response)==null?void 0:s.data,a=(o==null?void 0:o.message)||(o==null?void 0:o.msg)||(r==null?void 0:r.message)||(r==null?void 0:r.msg)||"未知错误";i(a,r)}}validResponse(t,r){const{validSuccess:n,validate:i}=t;return n&&i?!!i(r):!0}isSkipWarnResponse(t){return!!t.promise}send(t={},r=!1){const n=de({},this.settings,t.settings||{}),i=t.query||{},s=wr(t,["settings","query"]),o=$d(!1),a=Q.CancelToken.source();this.records[o]={settings:n,config:s,source:a};const l=this.createUrl(s),u=this.createHeaders(o,n,s),{data:c,params:f}=this.createSendData(n,s,u,r,i);return this.showLoading(n),new Promise((h,p)=>{this.axios(et(V({cancelToken:a.token},s),{url:l,headers:u,data:c,params:f})).then(d=>{var m;return this.isSkipWarnResponse(d)?h(d.promise):this.validResponse(n,d)?h(n.originResponse?d:(m=d.data)==null?void 0:m.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,r){const{response:n}=this.axios.interceptors,i=n.use(t,r);return()=>n.eject(i)}useRequest(t,r){const{request:n}=this.axios.interceptors,i=n.use(t,r);return()=>n.eject(i)}setupSkipWarn(t){if(this.stopSkipWarn&&(this.stopSkipWarn(),this.stopSkipWarn=void 0),!t.skipWarn)return;const{code:r,executor:n,callback:i,complete:s}=t.skipWarn;this.stopSkipWarn=this.useResponse(o=>{const a=(o.config.headers||{})[qi],l=this.records[a];if(!l)return o;const{data:u}=o;if(!u||typeof u!="object")return o;if((u==null?void 0:u.code)===r){i&&i(o);const c=new Promise(n).then(()=>this.send(et(V({},l.config),{settings:l.settings}),!0));c.catch(f=>f).finally(()=>{s&&s()}),o.promise=c}return o})}};function wn(e={}){const t=new Dg(e),r=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(r,et(V({},t),{instance:t,send:r,cancel:n,setConfig:i,useRequest:s,useResponse:o}))}const Gr=wn({settings:{injectHeaders:!0,loading:!0,originResponse:!0}}),Zr=typeof window<"u";function Bg(e){const t={};return e?(e.forEach((r,n)=>{t[n]=typeof r=="string"?decodeURIComponent(r):r}),t):{}}class Ko{constructor(t={}){lt(this,"options",{type:"cache",expired:0,prefix:"__VTJ_"}),lt(this,"caches",{}),lt(this,"types"),this.types={local:Zr?window.localStorage:this.caches,session:Zr?window.sessionStorage:this.caches,cache:this.caches},this.config(t)}config(t={}){this.options=Object.assign(this.options,t)}save(t,r,n={}){const{type:i,expired:s,prefix:o}=V(V({},this.options),n),a=Date.now(),l=o+t,u=this.types[i]||this.caches,c={value:r,timestamp:a,expired:s};u===this.caches?u[l]=c:u.setItem(l,JSON.stringify(c))}get(t,r={}){const{type:n,prefix:i}=V(V({},this.options),r),s=i+t,o=this.types[n]||this.caches;let a;if(o===this.caches)a=o[s];else{const f=o.getItem(s);if(f)try{a=JSON.parse(f)}catch(h){console.warn("[Storage] JSON.parse",h)}}if(!a)return null;const{value:l,timestamp:u,expired:c}=a;return c>0&&u+c<Date.now()?(this.remove(t,r),null):l}remove(t,r={}){const{type:n,prefix:i}=V(V({},this.options),r),s=this.types[n]||this.caches,o=i+t;s===this.caches?delete s[o]:s.removeItem(o)}clear(t={}){const{type:r}=V(V({},this.options),t),n=this.types[r]||this.caches;n===this.caches?this.caches={}:n.clear()}}const xr=new Ko;function Wo(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ue={exports:{}},Cg=Ue.exports,zi;function Ng(){return zi||(zi=1,(function(e,t){(function(r,n){n(t,e)})(Cg,function(r,n){var i={timeout:5e3,jsonpCallback:"callback"};function s(){return"jsonp_"+Date.now()+"_"+Math.ceil(Math.random()*1e5)}function o(u){try{delete window[u]}catch(c){window[u]=void 0}}function a(u){var c=document.getElementById(u);c&&document.getElementsByTagName("head")[0].removeChild(c)}function l(u){var c=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],f=u,h=c.timeout||i.timeout,p=c.jsonpCallback||i.jsonpCallback,d=void 0;return new Promise(function(m,b){var _=c.jsonpCallbackFunction||s(),y=p+"_"+_;window[_]=function(w){m({ok:!0,json:function(){return Promise.resolve(w)}}),d&&clearTimeout(d),a(y),o(_)},f+=f.indexOf("?")===-1?"?":"&";var v=document.createElement("script");v.setAttribute("src",""+f+p+"="+_),c.charset&&v.setAttribute("charset",c.charset),c.nonce&&v.setAttribute("nonce",c.nonce),c.referrerPolicy&&v.setAttribute("referrerPolicy",c.referrerPolicy),c.crossorigin&&v.setAttribute("crossorigin","true"),v.id=y,document.getElementsByTagName("head")[0].appendChild(v),d=setTimeout(function(){b(new Error("JSONP request to "+u+" timed out")),o(_),a(y),window[_]=function(){o(_)}},h),v.onerror=function(){b(new Error("JSONP request to "+u+" failed")),o(_),a(y),d&&clearTimeout(d)}})}n.exports=l})})(Ue,Ue.exports)),Ue.exports}var Ig=Ng();const Pg=Wo(Ig);function kg(e){if(Zr){const{protocol:t,host:r,pathname:n}=location;return`${t}//${r}${e?n:""}`}else return null}function Fg(e=""){const t=e.match(po);return t?t[0]:""}function Jo(e){const t=[];for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.push([r,encodeURIComponent(e[r])].join("="));return t.join("&")}function Qr(e,t,r){const n={};e=(e||location.search).replace(/^[^]*\?/,""),t=t||"&",r=r||"=";let i;const s=new RegExp("(?:^|\\"+t+")([^\\"+r+"\\"+t+"]+)(?:\\"+r+"([^\\"+t+"]*))?","g");for(;(i=s.exec(e))!==null;)i[1]!==e&&(n[decodeURIComponent(i[1])]=decodeURIComponent(i[2]||""));return n}function Yo(e,t){t=typeof t=="string"?Qr(t):t;const r=e.split("?")[0],n=Qr(e),i=Object.assign({},n,t),s=Jo(i);return s?[r,s].join("?"):e}const Le=Object.freeze(Object.defineProperty({__proto__:null,append:Yo,getCurrentHost:kg,getHost:Fg,parse:Qr,stringify:Jo},Symbol.toStringTag,{value:"Module"}));function Go(r){return k(this,arguments,function*(e,t={}){const{query:n={}}=t;e.includes("${")&&(e=zp(e)(n||{}));const i=Yo(e,n);return yield(yield Pg(i,t)).json()})}var Tr,Ki;function Mg(){if(Ki)return Tr;Ki=1,Tr=function(n,i,s){var o=document.head||document.getElementsByTagName("head")[0],a=document.createElement("script");typeof i=="function"&&(s=i,i={}),i=i||{},s=s||function(){},a.type=i.type||"text/javascript",a.charset=i.charset||"utf8",a.async="async"in i?!!i.async:!0,a.src=n,i.attrs&&e(a,i.attrs),i.text&&(a.text=""+i.text);var l="onload"in a?t:r;l(a,s),a.onload||t(a,s),o.appendChild(a)};function e(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 r(n,i){n.onreadystatechange=function(){this.readyState!="complete"&&this.readyState!="loaded"||(this.onreadystatechange=null,i(null,n))}}return Tr}var Ug=Mg();const Lg=Wo(Ug);function Wi(e,t={}){return new Promise((r,n)=>{const{library:i}=t;Lg(e,t,(s,o)=>{s?n(s):r(i?window[i]:void 0)})})}const Ji={debug:-1,log:0,info:0,warn:1,error:2},Vg=function(e,t,r,n){return function(...i){if(t&&Ji[t]<=Ji[e]&&console[e].apply&&(n==="*"||r.startsWith(n)))return console[e].apply(console,Hg(i,r))}};function Hg(e,t){return t!=="*"&&(typeof e[0]=="string"?e[0]=`[${t}] ${e[0]}`:e=["["+t+"]"].concat(e)),e}function qg(e,t){if(!e)return{targetLevel:t.level,targetBizName:t.bizName};if(~e.indexOf(":")){const r=e.split(":");return{targetLevel:r[0],targetBizName:r[1]}}return{targetLevel:e,targetBizName:"*"}}const zg={level:"warn",bizName:"*"};class Kg{constructor(t){lt(this,"config"),lt(this,"options"),this.options=V(V({},zg),t);const r=typeof location<"u"?location:{},n=(/__(?:logConf|logLevel)__=([^#/&]*)/.exec(r.href)||[])[1];this.config=qg(n,t)}_log(t){const{targetLevel:r,targetBizName:n}=this.config,{bizName:i}=this.options;return Vg(t,r,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 Wg(e){return new Kg(e)}const re=Wg({level:"log",bizName:"VTJ"});/*! js-cookie v3.0.5 | MIT */function Ce(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)e[n]=r[n]}return e}var Jg={read:function(e){return e[0]==='"'&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function Xr(e,t){function r(i,s,o){if(!(typeof document>"u")){o=Ce({},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 a="";for(var l in o)o[l]&&(a+="; "+l,o[l]!==!0&&(a+="="+o[l].split(";")[0]));return document.cookie=i+"="+e.write(s,i)+a}}function n(i){if(!(typeof document>"u"||arguments.length&&!i)){for(var s=document.cookie?document.cookie.split("; "):[],o={},a=0;a<s.length;a++){var l=s[a].split("="),u=l.slice(1).join("=");try{var c=decodeURIComponent(l[0]);if(o[c]=e.read(u,c),i===c)break}catch(f){}}return i?o[i]:o}}return Object.create({set:r,get:n,remove:function(i,s){r(i,"",Ce({},s,{expires:-1}))},withAttributes:function(i){return Xr(this.converter,Ce({},this.attributes,i))},withConverter:function(i){return Xr(Ce({},this.converter,i),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var _n=Xr(Jg,{path:"/"});function Yg(e,t,r){_n.set(e,t,r)}function Gg(e){return _n.get(e)}function Zg(e,t){_n.remove(e,t)}const Rr=Object.freeze(Object.defineProperty({__proto__:null,get:Gg,remove:Zg,set:Yg},Symbol.toStringTag,{value:"Module"}));/**!
62
62
  * Copyright (c) 2025, VTJ.PRO All rights reserved.
63
63
  * @name @vtj/renderer
64
64
  * @author CHC chenhuachun1549@dingtalk.com
65
- * @version 0.13.14
65
+ * @version 0.13.15
66
66
  * @license <a href="https://vtj.pro/license.html">MIT License</a>
67
- */const Ar="0.13.14";var et=(e=>(e.Runtime="Runtime",e.Design="Design",e.Raw="Raw",e.VNode="VNode",e))(et||{});const Yi=["$el","$emit","$nextTick","$parent","$root","$attrs","$slots","$watch","$props","$options","$forceUpdate"],Qg=["vIf","vElseIf","vElse","vShow","vModel","vFor","vBind","vHtml"],Xg={String,Number,Boolean,Array,Object,Function,Date},Ve="VtjPage",$r="VtjHomepage",t0="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(","),e0="component,slot".split(",");function Ne(e,t){return e.map(r=>ze(r)||r.startsWith("/")?r:`${t}${r}`)}function ar(e){return/\.css$/.test(e)}function ur(e){return/\.js$/.test(e)}function r0(e){return/\.json$/.test(e)}function n0(e,t=!1){return t&&e.endsWith(".prod.js")?e.replace(".prod.js",".js"):e}function i0(e,t,r=!1){const n=e.filter(h=>!!h.enabled),i=[],s=[],o=[],u=[],l={},a={},c=[],f={};return n.forEach(({urls:h,assetsUrl:p,library:d,assetsLibrary:m,localeLibrary:b})=>{h==null||h.forEach(_=>{ur(_)&&i.push(n0(_,r)),ar(_)&&s.push(_)}),d&&(u.push(d),l[d]=Ne(h||[],t),b&&(a[d]=b)),p&&o.push(p),m&&c.push(m),d&&m&&(f[m]=d)}),{scripts:Ne(i,t),css:Ne(s,t),materials:Ne(o,t),libraryExports:u,materialExports:jd(c),materialMapLibrary:f,libraryMap:l,libraryLocaleMap:a}}function s0(e,t){var s;const{name:r,parent:n,alias:i}=e;return n?(s=t[n])==null?void 0:s[i||r]:t[i||r]}function o0(e=[]){const t=e.filter(n=>ar(n)),r=e.filter(n=>ur(n));return{css:t,js:r}}function a0(e,t){const r=a=>{const c=[];let f=0;for(;f<a.length;){if(/\s/.test(a[f])){f++;continue}if(a.substring(f,f+2)==="/*"){const _=a.indexOf("*/",f+2);if(_!==-1){f=_+2;continue}}if(a[f]==="@"){const _=f;for(;f<a.length&&a[f]!=="{"&&a[f]!==";";)f++;const y=a.substring(_,f).trim(),v=y.includes("@keyframes");if(a[f]===";")c.push({type:"simple-at-rule",content:a.substring(_,f+1)}),f++;else if(a[f]==="{"){const w=f+1;let S=1;for(f++;f<a.length&&S>0;)a[f]==="{"?S++:a[f]==="}"&&S--,f++;const g=a.substring(_,f),x=a.substring(w,f-1);c.push({type:v?"keyframes":"at-rule",rule:y,content:g,inner:x})}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 m=1;for(f++;f<a.length&&m>0;)a[f]==="{"?m++:a[f]==="}"&&m--,f++;const b=a.substring(d,f-1);c.push({type:"rule",selector:p,content:b.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=r(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=e.replace(/\/\*(?!\s*!)[\s\S]*?\*\//g,"").replace(/^\s+|\s+$/gm,"").replace(/\n\s*\n/g,`
68
- `),c=r(a),f=u(c);return l(f)}catch(a){return console.error("CSS scoping failed:",a),console.error("Input CSS:",e),e.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 Zo(e){return Dt(e)?e:JSON.stringify(e)}function cr(e,t,r,n=!1){const i=e.CSSStyleSheet,s=n?`data-v-${t}`:t,o=n?a0(r,s):r;if(i.prototype.replaceSync){const u=new i;u.id=t,u.replaceSync(o);const l=e.document,a=l.adoptedStyleSheets,c=Array.from(a).filter(f=>f.id!==t);l.adoptedStyleSheets=[...c,u]}else{const u=e.document;let l=u.getElementById(t);l?l.innerHTML=o:(l=u.createElement("style"),l.id=t,l.innerHTML=o,u.head.appendChild(l))}}function u0(e,t){return k(this,null,function*(){const r=yield window.fetch(t).then(n=>n.text()).catch(()=>"");r&&cr(window,e,r)})}function Qo(e,t=window){const r=t.document,n=t.document.head;for(const i of e)if(!r.getElementById(i)){const s=r.createElement("link");s.rel="stylesheet",s.id=i,s.href=i,n.appendChild(s)}}function Xo(n,i){return k(this,arguments,function*(e,t,r=window){const s=r.document,o=r.document.head;let u=r[t];return u?u.default||u:new Promise((l,a)=>{for(const c of e){const f=s.createElement("script");f.src=c,f.onload=()=>{u=r[t],u?l(u.default||u):a(null)},f.onerror=h=>{a(h)},o.appendChild(f)}})})}function c0(e){return Ht(e)||Ht(e==null?void 0:e.install)}function l0(e){return e0.includes(e)}function f0(e){return t0.includes(e)}function we(e=window){const t=window==null?void 0:window.Mock;if(t)return t;const r=e==null?void 0:e.Mock;if(r&&window)return window.Mock=r,r}function _e(e,t,r=!1,n=!1,i=!1){var s;try{const o=['"use strict";',"var __self = arguments[0];"];o.push("return ");let u=(e.value||"").trim();i||(u=u.replace(/this(\W|$)/g,(a,c)=>`__self${c}`)),u=o.join(`
69
- `)+u;const l=i?`
70
- ${u}
71
- `:`with(${r?"{}":"$scope || {}"}) { ${u} }`;return new Function("$scope",l)(t)}catch(o){if(re.error("parseExpression.error",o,e,(s=t==null?void 0:t.__self)!=null?s:t),n)throw o}}function ht(e,t,r=!1,n=!1,i=!1){var o;const s=_e(e,t,r,n,i);if(typeof s!="function"&&(re.error("parseFunction.error","not a function",e,(o=t==null?void 0:t.__self)!=null?o:t),n))throw new Error(`"${e.value}" not a function`);return s}function mt(e){return e&&e.type==="JSExpression"}function pt(e){return typeof e=="object"&&e&&e.type==="JSFunction"}const h0={session:!1,authKey:"Authorization",storageKey:"ACCESS_STORAGE",storagePrefix:"__VTJ_",unauthorized:void 0,auth:"/#/login",redirectParam:"r",unauthorizedCode:401,unauthorizedMessage:"登录已经失效,请重新登录!",noPermissionMessage:"无权限访问该页面",appName:"",statusKey:"code"},p0=Symbol("access");class ta{constructor(t){z(this,"options");z(this,"data",null);z(this,"mode",et.Raw);z(this,"interceptResponse",!0);this.options=Object.assign({},h0,t),this.loadData()}enableIntercept(){this.interceptResponse=!0}disableIntercept(){this.interceptResponse=!1}connect(t){const{mode:r,router:n,request:i}=t;this.mode=r,n&&this.mode!==et.Design&&this.setGuard(n),i&&this.setRequest(i)}login(t){const{storageKey:r,storagePrefix:n,session:i,authKey:s}=this.options;this.setData(t),this.data&&(xr.save(r,t,{type:"local",prefix:n}),i&&Rr.set(s,this.data.token))}clear(){const{storageKey:t,storagePrefix:r,session:n,authKey:i}=this.options;this.data=null,xr.remove(t,{type:"local",prefix:r}),n&&Rr.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:r}=this.options,{permissions:n={}}=this.data||{};return typeof t=="function"?t(n):ji(t).every(i=>n[i]||n[r+"."+i])}some(t){const{appName:r}=this.options,{permissions:n={}}=this.data||{};return ji(t).some(i=>n[i]||n[r+"."+i])}install(t){t.config.globalProperties.$access=this,t.provide(p0,this)}isAuthPath(t){const{auth:r,isAuth:n}=this.options;if(n)return n(t);if(t.path&&typeof r=="string"){const i=r.split("#")[1]||r;return t.path===i}return!1}toLogin(){const{auth:t,redirectParam:r}=this.options;if(!t)return;const n=r?`?${r}=${encodeURIComponent(location.href)}`:"";typeof t=="function"?t(n):location.href=r?`${t}${n}`:t}setData(t){const{privateKey:r}=this.options;if(Array.isArray(t)&&r){const n=t.map(i=>Oi(i,r));try{this.data=JSON.parse(n.join(""))}catch(i){console.warn(i)}return}if(typeof t=="string")try{const n=r?Oi(t,r):t;n?this.data=JSON.parse(n):console.warn("RSA解密失败或登录信息缺失")}catch(n){console.warn(n)}else this.data=t}loadData(){const{storageKey:t,storagePrefix:r}=this.options,n=xr.get(t,{type:"local",prefix:r});this.setData(n||null)}isLogined(){const{session:t,authKey:r}=this.options;return t&&r?!!Rr.get(r):!!this.getToken()}hasRoutePermission(t){if(t.name===Ve){const r=t.params.id;return r&&this.can(r)}return t.meta.__vtj__?this.can(t.meta.__vtj__):!0}setGuard(t){t.beforeEach((r,n,i)=>this.guard(r,i))}guard(t,r){return k(this,null,function*(){if(this.isWhiteList(t)||this.isAuthPath(t))return r();if(this.isLogined()){if(this.hasRoutePermission(t))return r();{const{noPermissionMessage:n="无权限访问",unauthorized:i=!1}=this.options;return yield this.showTip(n),Ht(i)?(i(),r(!1)):Dt(i)?r(i):r(!1)}}r(!1),yield Ke(0),this.toLogin()})}isWhiteList(t){const{whiteList:r}=this.options;return r?Array.isArray(r)?r.some(n=>t.fullPath.startsWith(n)):r(t):!1}isUnauthorized(t){var i;const{unauthorizedCode:r=401,statusKey:n="code"}=this.options;return t.status===r||((i=t.data)==null?void 0:i[n])===r}showUnauthorizedAlert(t){return k(this,null,function*(){const{unauthorizedMessage:r="登录已失效"}=this.options;this.isUnauthorized(t)&&(yield this.showTip(r),this.toLogin())})}showTip(t){return k(this,null,function*(){var n;const{alert:r}=this.options;return r?(yield Ke(150),yield(n=r(t,{title:"提示",type:"warning"}))==null?void 0:n.catch(()=>!1)):(window.alert(t),!1)})}setRequest(t){t.useRequest(r=>{var n,i;return(n=this.data)!=null&&n.token&&(r.headers[this.options.authKey]=(i=this.data)==null?void 0:i.token),r}),t.useResponse(r=>k(this,null,function*(){return this.interceptResponse&&(yield this.showUnauthorizedAlert(r)),r}),r=>k(this,null,function*(){if(!this.interceptResponse)return Promise.reject(r);const n=r.response||r||{};return yield this.showUnauthorizedAlert(n),Promise.reject(r)}))}}function d0(e={}){const{notify:t,loading:r,settings:n={},Startup:i,access:s,useTitle:o,alert:u}=e;let l=null;return{request:wn({settings:V({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(),r&&(l=r())},hideLoading:()=>{l&&(l.close(),l=null)}},n)}),jsonp:Go,notify:t,loading:r,useTitle:o,alert:u,startupComponent:i,access:s?new ta(V({alert:u},s)):void 0}}function m0(e,t){const{jsonp:r,request:n}=t;if(e.method==="jsonp")return(i={})=>r(e.url,tt(V({},e.jsonpOptions),{query:i}));{const i=e.headers?_e(e.headers,{},!0):void 0,s={url:e.url,method:e.method,settings:tt(V({},e.settings),{headers:i})};return(o,u)=>(delete s.data,n.send(de(s,u||{},{data:o})))}}function g0(e,t){const{metaQuery:r}=t;if(!r)return;const{code:n,queryCode:i}=e;return(s,o)=>{if(!r){console.warn("adapter.metaQuery is not defined!");return}return r(n,i,s,o)}}function y0(e=[],t=[],r){const n={};for(const i of e)n[i.id]=m0(i,r);for(const i of t)n[i.id]=g0(i,r);return n}function v0(){return k(this,arguments,function*(e=[],t=window){const r=we(t);r&&(ea(t),e.forEach(n=>w0(r,n)))})}function b0(e,t=window){const r=pt(e.mockTemplate)&&e.mockTemplate.value?ht(e.mockTemplate,{},!0):void 0,n=we(t);return(...i)=>k(null,null,function*(){let s={};if(r)try{s=yield r.apply(r,i)}catch(o){re.warn("模拟数据模版异常",o)}return n==null?void 0:n.mock(s)})}function w0(e,t){if(!t.mock)return;const{url:r,mockTemplate:n}=t;if(r&&n)try{const i=ze(r)?new URL(r).pathname:r,s=gn(`(.*)${i}(.*)`),o=Id(i,{decode:decodeURIComponent}),u=_e(n,{},!0);e.mock(s,l=>{var p;const a=Le.parse(l.url)||{},c=l.body instanceof FormData?Bg(l.body):l.body,f=ze(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 e.mock(u(l))}catch(d){return console.warn("[mockApi]",s,l,d),null}})}catch(i){console.warn("mockApi",i)}}function ea(e=window){const t=we(e);t&&(t._mocked={})}class _0{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,"__transform",{});const{mode:r,dsl:n,attrs:i}=t;this.__mode=r,n&&(this.__id=n.id||null,this.__transform=n.transform||{}),i&&Object.assign(this,i)}setup(t,r=Ye){const n=r.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(),r.onMounted(()=>{this.__proxy()}),r.onUnmounted(()=>{this.__cleanup()}),r.onBeforeUpdate(()=>{this.__reset()})}__proxy(){this.__instance&&Yi.forEach(t=>{var r;this[t]=(r=this.__instance)==null?void 0:r[t]})}__cleanup(){Yi.forEach(t=>{this[t]=null}),this.__reset()}__reset(){this.__refs={},this.$refs={},this.__contextRefs={},this.context={}}__parseFunction(t){var r;if(t)if(this.__mode===et.Runtime){const{id:n,type:i}=t,s=n&&(r=this.__transform[n])!=null?r:t.value;return ht({type:i,value:s},this)}else return ht(t,this)}__parseExpression(t){var r;if(t)if(this.__mode===et.Runtime){const{id:n,type:i}=t,s=n&&(r=this.__transform[n])!=null?r:t.value;return _e({type:i,value:s},this)}else return _e(t,this)}__ref(t=null,r){if(this.__mode!==et.VNode)return t&&t!==this.__id&&(this.__contextRefs[t]=this),n=>k(this,null,function*(){var s,o;yield Ke(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 r=="string"&&(delete this.$refs[r],t&&delete this.__refs[t]);return}return i.nodeType===3&&i.nextSibling&&(i=i.nextSibling),i.__vtj__=t,et.Design===this.__mode&&(i.__context__=this,i.draggable=!0),t&&(this.__refs[t]=this.__getRefEl(this.__refs,t,n)),typeof r=="function"?r(n):r&&(this.$refs[r]=this.__getRefEl(this.$refs,r,n)),n})}__getRefEl(t,r,n){const i=t[r];if(i&&n!==i){const s=new Set([].concat(i,n));return Array.from(s)}else return n}__clone(t={}){const r=V(V({},this.context),t),n=tt(V({},r),{context:r});return n.context.__proto__=this.context,n.__proto__=this,n}}function tn(e){var f,h;const{Vue:t=Ye,mode:r=et.Runtime,components:n={},libs:i={},apis:s={},loader:o}=e,u=t.computed(()=>e.dsl),l={$components:n,$libs:i,$apis:s},a=new _0({mode:r,dsl:u.value,attrs:l}),c=t.defineComponent(V({name:u.value.name,__scopeId:u.value.id?`data-v-${u.value.id}`:void 0,props:V({},S0((f=u.value.props)!=null?f:[],a)),setup(p){var v,w,S,g;a.$props=p,a.props=p,u.value.id&&cr(e.window||window,u.value.id,u.value.css||"",!0),a.state=x0(t,(v=u.value.state)!=null?v:{},a);const d=T0(t,(w=u.value.computed)!=null?w:{},a),m=R0((S=u.value.methods)!=null?S:{},a),b=A0(t,u.value.inject,a);for(const[x,A]of Object.entries(b||{}))b[x]=t.inject(x,A);const _=$0(u.value.dataSources||{},a),y=V(V(V(V({},b),d),m),_);return a.setup(y,t),O0(t,(g=u.value.watch)!=null?g:[],a),{vtj:a}},emits:E0(u.value.emits),expose:["vtj"],render(){if(!u.value.nodes)return null;const p=u.value.nodes||[];return p.length===1?ie(p[0],a,t,o,p):p.map(d=>ie(d,a,t,o,p))}},j0((h=u.value.lifeCycles)!=null?h:{},a)));return{renderer:t.markRaw(c),context:a}}function E0(e=[]){return e.map(t=>Dt(t)?t:t.name)}function S0(e=[],t){const r=n=>n?(Array.isArray(n)?n:[n]).map(i=>Xg[i]):void 0;return e.map(n=>Dt(n)?{name:n}:{name:n.name,type:n.type,required:n.required,default:mt(n.default)?t.__parseExpression(n.default):n.default}).reduce((n,i)=>(n[i.name]={type:r(i.type),required:i.required,default:i.default},n),{})}function x0(e,t,r){return e.reactive(Object.keys(t||{}).reduce((n,i)=>{let s=t[i];return mt(s)?s=r.__parseExpression(s):pt(s)&&(s=r.__parseFunction(s)),n[i]=s,n},{}))}function T0(e,t,r){return Object.entries(t!=null?t:{}).reduce((n,[i,s])=>(n[i]=e.computed(r.__parseFunction(s)),n),{})}function R0(e,t){return Object.entries(e!=null?e:{}).reduce((r,[n,i])=>(r[n]=t.__parseFunction(i),r),{})}function A0(e,t=[],r){return t.reduce((n,i)=>{var a;const{name:s,from:o}=i||{};i.default;const u=mt(o)?r.__parseExpression(o)||s:o!=null?o:s,l=mt(i.default)?r.__parseExpression(i.default):(a=i.default)!=null?a:null;return n[s]=e.inject(u,l),n},{})}function $0(e,t){return Object.keys(e).reduce((r,n)=>{const i=e[n];if(i.type==="mock")r[n]=b0(i);else if(i.ref){const s=t.$apis[i.ref],o=pt(i.transform)?i.transform.value?t.__parseFunction(i.transform):void 0:i.transform;r[n]=(...u)=>k(null,null,function*(){const l=yield s.apply(t,u);return o?o(l):l})}return r},{})}function O0(e,t=[],r){t.forEach(n=>{e.watch(r.__parseExpression(n.source),r.__parseFunction(n.handler),{deep:n.deep,immediate:n.immediate})})}function j0(e,t){return Object.entries(e!=null?e:{}).reduce((r,[n,i])=>{const s=t.__parseFunction(i);return r[n]=()=>k(null,null,function*(){yield Ke(0),Ht(s)&&s()}),r},{})}const D0=new Hd;let Or=[],Zt={};const B0=e=>e;function ra(r){return k(this,arguments,function*(e,t=window){const{urls:n=[],library:i}=e,s=n.filter(u=>ur(u));if(s.length===0||!i)return null;const o=n.filter(u=>ar(u));return o.length&&Qo(o,t),yield Xo(s,i,t).catch(u=>(console.warn("loadScriptUrl error",s,i,u),null))})}function en(e){const{getDsl:t,getDslByUrl:r,options:n}=e;return n.window&&(Or.forEach(i=>{delete n.window[i]}),Or=[]),(i,s,o=Ye)=>{if(!s||typeof s=="string")return i;if(s.type==="Schema"&&s.id)return o.defineAsyncComponent(()=>k(null,null,function*(){const u=Zt[s.id]||(yield D0.add(s.id,()=>t(s.id)));return u&&(u.name=i,Zt[s.id]=u),u?tn(tt(V({},n),{Vue:o,dsl:ii(u),mode:et.Runtime,loader:en(e)})).renderer:null}));if(s.type==="UrlSchema"&&s.url)return o.defineAsyncComponent(()=>k(null,null,function*(){const u=Zt[s.url]||(yield r(s.url));return u&&(u.name=i,Zt[s.url]=u),u?tn(tt(V({},n),{Vue:o,dsl:ii(u),mode:et.Runtime,loader:en(e)})).renderer:null}));if(s.type==="Plugin"){let u=s.library?Zt[s.library]:null;return u||(s.library&&Or.push(s.library),u=Zt[s.library||Symbol()]=o.defineAsyncComponent(()=>k(null,null,function*(){return(yield ra(s,n.window))||(console.warn("getPlugin result is null",s),null)})),u)}return i}}function ie(e,t,r=Ye,n=B0,i=[],s=!1){var v;if(!e||!e.name||e.invisible)return null;const o=(v=r.getCurrentInstance())==null?void 0:v.appContext,{id:u=null,directives:l=[]}=e,{vIf:a,vElseIf:c,vElse:f,vFor:h,vShow:p,vModels:d,vBind:m,vHtml:b,others:_}=na(l);if(!s&&(c||f))return null;if(a&&!N0(a,t))return F0(e,t,r,n,i);const y=(w,S=0)=>{var j,N,L,M;const g=w.$components,x=(()=>{var q,$,D,C;if(e.name==="component")return I0(w,(q=e.props)==null?void 0:q.is);if(e.name==="slot")return e.name;const H=n(e.name,e.from,r);if(Dt(H))return l0(H)||f0(H)?H:(C=(D=g[H])!=null?D:($=o==null?void 0:o.app)==null?void 0:$.component(H))!=null?C:H;if(ct(H)&&e.id){const I=`Loader${e.id}_${S}`;return g[I]||(g[I]=H)}return H})(),A=P0(u,(j=e.props)!=null?j:{},w),U=k0(r,(N=e.events)!=null?N:{},w);if(e.name==="slot")return M0(r,e,A,w,n);m&&Object.assign(A,w.__parseExpression(m.value)),p&&(A.style=Object.assign((L=A.style)!=null?L:{},L0(p,w))),b&&Object.assign(A,V0(b,w)),d.forEach(H=>{Object.assign(A,H0(r,H,w))});const E=q0(r,(M=e.children)!=null?M:[],w,n,e),T=w!=null&&w.__id?`data-v-${w.__id}`:void 0,F=T?{[T]:""}:{};let B=r.createVNode(x,V(V(V({key:`${u}_${S}`},F),A),U),E);const P=o?C0(o,_,w):[];return P.length&&(B=r.withDirectives(B,P)),B};return h?W0(h,y,t):y(t)}function C0(e,t,r){const n=e.app;return t.map(i=>{const s=typeof i.name=="string"?n.directive(i.name):r.__parseExpression(i.name);if(!s)return null;const o=[s];return i.value&&o.push(r.__parseExpression(i.value)),i.arg&&o.push(i.arg),i.modifiers&&o.push(i.modifiers),o}).filter(i=>!!i)}function na(e=[]){const t=e.find(c=>Et(c.name)==="vIf"),r=e.find(c=>Et(c.name)==="vElseIf"),n=e.find(c=>Et(c.name)==="vElse"),i=e.find(c=>Et(c.name)==="vFor"),s=e.find(c=>Et(c.name)==="vShow"),o=e.find(c=>Et(c.name)==="vBind"),u=e.find(c=>Et(c.name)==="vHtml"),l=e.filter(c=>Et(c.name)==="vModel"),a=e.filter(c=>!Qg.includes(Et(c.name)));return{vIf:t,vElseIf:r,vElse:n,vFor:i,vShow:s,vModels:l,vBind:o,others:a,vHtml:u}}function N0(e,t){return!!t.__parseExpression(e.value)}function I0(e,t){return t?mt(t)?e.__parseExpression(t):t:"div"}function P0(e,t,r){const n=rn(t,r);return n.ref=r.__ref(e,n.ref),n}function rn(e,t){return mt(e)?t.__parseExpression(e):pt(e)?t.__parseFunction(e):Array.isArray(e)?e.map(r=>rn(r,t)):typeof e=="object"?Object.keys(e||{}).reduce((r,n)=>{let i=e[n];return r[n]=rn(i,t),r},{}):e}function k0(e,t,r){const n=["passive","capture","once"],i={capture:"Capture",once:"Once",passive:"OnceCapture"};return Object.keys(t||{}).reduce((s,o)=>{const u=t[o],l=ia(u.modifiers),a=l.find(h=>n.includes(h)),c="on"+js(o)+(a&&i[a]||""),f=r.__parseFunction(u.handler);return f&&(s[c]=e.withModifiers(f,l)),s},{})}function F0(e,t,r,n,i=[]){let s=i.findIndex(o=>o.id===e.id);for(let o=++s;o<i.length;o++){const{directives:u=[]}=i[o],{vElseIf:l,vElse:a}=na(u);if(l){if(t.__parseExpression(l.value))return ie(i[o],t,r,n,i,!0);continue}if(a)return ie(i[o],t,r,n,i,!0)}return null}function ia(e={},t=!1){const r=Object.keys(e);return t?r.map(n=>"."+n):r}function M0(e,t,r,n,i){var l;const{children:s}=t,o=U0(t,n),u=(l=n.$slots)==null?void 0:l[o.name];return u?u(r):s?Dt(s)?e.createTextVNode(s):mt(s)?e.createTextVNode(Zo(n.__parseExpression(s))):Array.isArray(s)?s.map(a=>ie(a,n,e,i,s)):null:null}function U0(e,t){const{props:r}=e,n=(r==null?void 0:r.name)||"default";return{name:mt(n)?t.__parseExpression(n):n,params:[]}}function L0(e,t){return t.__parseExpression(e.value)?{}:{display:"none"}}function V0(e,t){return{innerHTML:t.__parseExpression(e.value)||""}}function H0(e,t,r){var u;const n={type:"JSFunction",value:(u=t.value)!=null&&u.value?`(v) => {
67
+ */const Ar="0.13.15";var tt=(e=>(e.Runtime="Runtime",e.Design="Design",e.Raw="Raw",e.VNode="VNode",e))(tt||{});const Yi=["$el","$emit","$nextTick","$parent","$root","$attrs","$slots","$watch","$props","$options","$forceUpdate"],Qg=["vIf","vElseIf","vElse","vShow","vModel","vFor","vBind","vHtml"],Xg={String,Number,Boolean,Array,Object,Function,Date},Ve="VtjPage",$r="VtjHomepage",ty="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(","),ey="component,slot".split(",");function Ne(e,t){return e.map(r=>ze(r)||r.startsWith("/")?r:`${t}${r}`)}function ar(e){return/\.css$/.test(e)}function ur(e){return/\.js$/.test(e)}function ry(e){return/\.json$/.test(e)}function ny(e,t=!1){return t&&e.endsWith(".prod.js")?e.replace(".prod.js",".js"):e}function iy(e,t,r=!1){const n=e.filter(h=>!!h.enabled),i=[],s=[],o=[],a=[],l={},u={},c=[],f={};return n.forEach(({urls:h,assetsUrl:p,library:d,assetsLibrary:m,localeLibrary:b})=>{h==null||h.forEach(_=>{ur(_)&&i.push(ny(_,r)),ar(_)&&s.push(_)}),d&&(a.push(d),l[d]=Ne(h||[],t),b&&(u[d]=b)),p&&o.push(p),m&&c.push(m),d&&m&&(f[m]=d)}),{scripts:Ne(i,t),css:Ne(s,t),materials:Ne(o,t),libraryExports:a,materialExports:jd(c),materialMapLibrary:f,libraryMap:l,libraryLocaleMap:u}}function sy(e,t){var s;const{name:r,parent:n,alias:i}=e;return n?(s=t[n])==null?void 0:s[i||r]:t[i||r]}function oy(e=[]){const t=e.filter(n=>ar(n)),r=e.filter(n=>ur(n));return{css:t,js:r}}function ay(e,t){const r=u=>{const c=[];let f=0;for(;f<u.length;){if(/\s/.test(u[f])){f++;continue}if(u.substring(f,f+2)==="/*"){const _=u.indexOf("*/",f+2);if(_!==-1){f=_+2;continue}}if(u[f]==="@"){const _=f;for(;f<u.length&&u[f]!=="{"&&u[f]!==";";)f++;const y=u.substring(_,f).trim(),v=y.includes("@keyframes");if(u[f]===";")c.push({type:"simple-at-rule",content:u.substring(_,f+1)}),f++;else if(u[f]==="{"){const w=f+1;let S=1;for(f++;f<u.length&&S>0;)u[f]==="{"?S++:u[f]==="}"&&S--,f++;const g=u.substring(_,f),x=u.substring(w,f-1);c.push({type:v?"keyframes":"at-rule",rule:y,content:g,inner:x})}continue}const h=f;for(;f<u.length&&u[f]!=="{";)f++;if(f>=u.length)break;const p=u.substring(h,f).trim();if(!p){f++;continue}const d=f+1;let m=1;for(f++;f<u.length&&m>0;)u[f]==="{"?m++:u[f]==="}"&&m--,f++;const b=u.substring(d,f-1);c.push({type:"rule",selector:p,content:b.trim()})}return c},n=u=>{const c=u.trim();return/^(from|to|\d+(\.\d+)?%)$/.test(c)},i=u=>u.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=u=>{const c=u.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=u=>i(u).split(",").map(c=>s(c)).filter(c=>c.trim()).join(", "),a=u=>u.map(c=>{switch(c.type){case"simple-at-rule":return c.content;case"keyframes":return c.content;case"at-rule":try{const h=r(c.inner),p=a(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=u=>u.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 u=e.replace(/\/\*(?!\s*!)[\s\S]*?\*\//g,"").replace(/^\s+|\s+$/gm,"").replace(/\n\s*\n/g,`
68
+ `),c=r(u),f=a(c);return l(f)}catch(u){return console.error("CSS scoping failed:",u),console.error("Input CSS:",e),e.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 Zo(e){return Dt(e)?e:JSON.stringify(e)}function cr(e,t,r,n=!1){const i=e.CSSStyleSheet,s=n?`data-v-${t}`:t,o=n?ay(r,s):r;if(i.prototype.replaceSync){const a=new i;a.id=t,a.replaceSync(o);const l=e.document,u=l.adoptedStyleSheets,c=Array.from(u).filter(f=>f.id!==t);l.adoptedStyleSheets=[...c,a]}else{const a=e.document;let l=a.getElementById(t);l?l.innerHTML=o:(l=a.createElement("style"),l.id=t,l.innerHTML=o,a.head.appendChild(l))}}function uy(e,t){return k(this,null,function*(){const r=yield window.fetch(t).then(n=>n.text()).catch(()=>"");r&&cr(window,e,r)})}function Qo(e,t=window){const r=t.document,n=t.document.head;for(const i of e)if(!r.getElementById(i)){const s=r.createElement("link");s.rel="stylesheet",s.id=i,s.href=i,n.appendChild(s)}}function Xo(n,i){return k(this,arguments,function*(e,t,r=window){const s=r.document,o=r.document.head;let a=r[t];return a?a.default||a:new Promise((l,u)=>{for(const c of e){const f=s.createElement("script");f.src=c,f.onload=()=>{a=r[t],a?l(a.default||a):u(null)},f.onerror=h=>{u(h)},o.appendChild(f)}})})}function cy(e){return Ht(e)||Ht(e==null?void 0:e.install)}function ly(e){return ey.includes(e)}function fy(e){return ty.includes(e)}function we(e=window){const t=window==null?void 0:window.Mock;if(t)return t;const r=e==null?void 0:e.Mock;if(r&&window)return window.Mock=r,r}function _e(e,t,r=!1,n=!1,i=!1){var s;try{const o=['"use strict";',"var __self = arguments[0];"];o.push("return ");let a=(e.value||"").trim();i||(a=a.replace(/this(\W|$)/g,(u,c)=>`__self${c}`)),a=o.join(`
69
+ `)+a;const l=i?`
70
+ ${a}
71
+ `:`with(${r?"{}":"$scope || {}"}) { ${a} }`;return new Function("$scope",l)(t)}catch(o){if(re.error("parseExpression.error",o,e,(s=t==null?void 0:t.__self)!=null?s:t),n)throw o}}function ht(e,t,r=!1,n=!1,i=!1){var o;const s=_e(e,t,r,n,i);if(typeof s!="function"&&(re.error("parseFunction.error","not a function",e,(o=t==null?void 0:t.__self)!=null?o:t),n))throw new Error(`"${e.value}" not a function`);return s}function mt(e){return e&&e.type==="JSExpression"}function pt(e){return typeof e=="object"&&e&&e.type==="JSFunction"}const hy={session:!1,authKey:"Authorization",storageKey:"ACCESS_STORAGE",storagePrefix:"__VTJ_",unauthorized:void 0,auth:"/#/login",redirectParam:"r",unauthorizedCode:401,unauthorizedMessage:"登录已经失效,请重新登录!",noPermissionMessage:"无权限访问该页面",appName:"",statusKey:"code"},py=Symbol("access");class ta{constructor(t){z(this,"options");z(this,"data",null);z(this,"mode",tt.Raw);z(this,"interceptResponse",!0);this.options=Object.assign({},hy,t),this.loadData()}enableIntercept(){this.interceptResponse=!0}disableIntercept(){this.interceptResponse=!1}connect(t){const{mode:r,router:n,request:i}=t;this.mode=r,n&&this.mode!==tt.Design&&this.setGuard(n),i&&this.setRequest(i)}login(t){const{storageKey:r,storagePrefix:n,session:i,authKey:s}=this.options;this.setData(t),this.data&&(xr.save(r,t,{type:"local",prefix:n}),i&&Rr.set(s,this.data.token))}clear(){const{storageKey:t,storagePrefix:r,session:n,authKey:i}=this.options;this.data=null,xr.remove(t,{type:"local",prefix:r}),n&&Rr.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:r}=this.options,{permissions:n={}}=this.data||{};return typeof t=="function"?t(n):ji(t).every(i=>n[i]||n[r+"."+i])}some(t){const{appName:r}=this.options,{permissions:n={}}=this.data||{};return ji(t).some(i=>n[i]||n[r+"."+i])}install(t){t.config.globalProperties.$access=this,t.provide(py,this)}isAuthPath(t){const{auth:r,isAuth:n}=this.options;if(n)return n(t);if(t.path&&typeof r=="string"){const i=r.split("#")[1]||r;return t.path===i}return!1}toLogin(){const{auth:t,redirectParam:r}=this.options;if(!t)return;const n=r?`?${r}=${encodeURIComponent(location.href)}`:"";typeof t=="function"?t(n):location.href=r?`${t}${n}`:t}setData(t){const{privateKey:r}=this.options;if(Array.isArray(t)&&r){const n=t.map(i=>Oi(i,r));try{this.data=JSON.parse(n.join(""))}catch(i){console.warn(i)}return}if(typeof t=="string")try{const n=r?Oi(t,r):t;n?this.data=JSON.parse(n):console.warn("RSA解密失败或登录信息缺失")}catch(n){console.warn(n)}else this.data=t}loadData(){const{storageKey:t,storagePrefix:r}=this.options,n=xr.get(t,{type:"local",prefix:r});this.setData(n||null)}isLogined(){const{session:t,authKey:r}=this.options;return t&&r?!!Rr.get(r):!!this.getToken()}hasRoutePermission(t){if(t.name===Ve){const r=t.params.id;return r&&this.can(r)}return t.meta.__vtj__?this.can(t.meta.__vtj__):!0}setGuard(t){t.beforeEach((r,n,i)=>this.guard(r,i))}guard(t,r){return k(this,null,function*(){if(this.isWhiteList(t)||this.isAuthPath(t))return r();if(this.isLogined()){if(this.hasRoutePermission(t))return r();{const{noPermissionMessage:n="无权限访问",unauthorized:i=!1}=this.options;return yield this.showTip(n),Ht(i)?(i(),r(!1)):Dt(i)?r(i):r(!1)}}r(!1),yield Ke(0),this.toLogin()})}isWhiteList(t){const{whiteList:r}=this.options;return r?Array.isArray(r)?r.some(n=>t.fullPath.startsWith(n)):r(t):!1}isUnauthorized(t){var i;const{unauthorizedCode:r=401,statusKey:n="code"}=this.options;return t.status===r||((i=t.data)==null?void 0:i[n])===r}showUnauthorizedAlert(t){return k(this,null,function*(){const{unauthorizedMessage:r="登录已失效"}=this.options;this.isUnauthorized(t)&&(yield this.showTip(r),this.toLogin())})}showTip(t){return k(this,null,function*(){var n;const{alert:r}=this.options;return r?(yield Ke(150),yield(n=r(t,{title:"提示",type:"warning"}))==null?void 0:n.catch(()=>!1)):(window.alert(t),!1)})}setRequest(t){t.useRequest(r=>{var n,i;return(n=this.data)!=null&&n.token&&(r.headers[this.options.authKey]=(i=this.data)==null?void 0:i.token),r}),t.useResponse(r=>k(this,null,function*(){return this.interceptResponse&&(yield this.showUnauthorizedAlert(r)),r}),r=>k(this,null,function*(){if(!this.interceptResponse)return Promise.reject(r);const n=r.response||r||{};return yield this.showUnauthorizedAlert(n),Promise.reject(r)}))}}function dy(e={}){const{notify:t,loading:r,settings:n={},Startup:i,access:s,useTitle:o,alert:a}=e;let l=null;return{request:wn({settings:V({type:"form",validSuccess:!0,originResponse:!1,loading:!0,validate:u=>{var c,f;return((c=u.data)==null?void 0:c.code)===0||!!((f=u.data)!=null&&f.success)},failMessage:!0,showError:u=>{t&&t(u||"未知错误")},showLoading:()=>{l&&l.close(),r&&(l=r())},hideLoading:()=>{l&&(l.close(),l=null)}},n)}),jsonp:Go,notify:t,loading:r,useTitle:o,alert:a,startupComponent:i,access:s?new ta(V({alert:a},s)):void 0}}function my(e,t){const{jsonp:r,request:n}=t;if(e.method==="jsonp")return(i={})=>r(e.url,et(V({},e.jsonpOptions),{query:i}));{const i=e.headers?_e(e.headers,{},!0):void 0,s={url:e.url,method:e.method,settings:et(V({},e.settings),{headers:i})};return(o,a)=>(delete s.data,n.send(de(s,a||{},{data:o})))}}function gy(e,t){const{metaQuery:r}=t;if(!r)return;const{code:n,queryCode:i}=e;return(s,o)=>{if(!r){console.warn("adapter.metaQuery is not defined!");return}return r(n,i,s,o)}}function yy(e=[],t=[],r){const n={};for(const i of e)n[i.id]=my(i,r);for(const i of t)n[i.id]=gy(i,r);return n}function vy(){return k(this,arguments,function*(e=[],t=window){const r=we(t);r&&(ea(t),e.forEach(n=>wy(r,n)))})}function by(e,t=window){const r=pt(e.mockTemplate)&&e.mockTemplate.value?ht(e.mockTemplate,{},!0):void 0,n=we(t);return(...i)=>k(null,null,function*(){let s={};if(r)try{s=yield r.apply(r,i)}catch(o){re.warn("模拟数据模版异常",o)}return n==null?void 0:n.mock(s)})}function wy(e,t){if(!t.mock)return;const{url:r,mockTemplate:n}=t;if(r&&n)try{const i=ze(r)?new URL(r).pathname:r,s=gn(`(.*)${i}(.*)`),o=Id(i,{decode:decodeURIComponent}),a=_e(n,{},!0);e.mock(s,l=>{var p;const u=Le.parse(l.url)||{},c=l.body instanceof FormData?Bg(l.body):l.body,f=ze(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:u});try{return e.mock(a(l))}catch(d){return console.warn("[mockApi]",s,l,d),null}})}catch(i){console.warn("mockApi",i)}}function ea(e=window){const t=we(e);t&&(t._mocked={})}class _y{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,"__transform",{});const{mode:r,dsl:n,attrs:i}=t;this.__mode=r,n&&(this.__id=n.id||null,this.__transform=n.transform||{}),i&&Object.assign(this,i)}setup(t,r=Ye){const n=r.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(),r.onMounted(()=>{this.__proxy()}),r.onUnmounted(()=>{this.__cleanup()}),r.onBeforeUpdate(()=>{this.__reset()})}__proxy(){this.__instance&&Yi.forEach(t=>{var r;this[t]=(r=this.__instance)==null?void 0:r[t]})}__cleanup(){Yi.forEach(t=>{this[t]=null}),this.__reset()}__reset(){this.__refs={},this.$refs={},this.__contextRefs={},this.context={}}__parseFunction(t){var r;if(t)if(this.__mode===tt.Runtime){const{id:n,type:i}=t,s=n&&(r=this.__transform[n])!=null?r:t.value;return ht({type:i,value:s},this)}else return ht(t,this)}__parseExpression(t){var r;if(t)if(this.__mode===tt.Runtime){const{id:n,type:i}=t,s=n&&(r=this.__transform[n])!=null?r:t.value;return _e({type:i,value:s},this)}else return _e(t,this)}__ref(t=null,r){if(this.__mode!==tt.VNode)return t&&t!==this.__id&&(this.__contextRefs[t]=this),n=>k(this,null,function*(){var s,o;yield Ke(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 r=="string"&&(delete this.$refs[r],t&&delete this.__refs[t]);return}return i.nodeType===3&&i.nextSibling&&(i=i.nextSibling),i.__vtj__=t,tt.Design===this.__mode&&(i.__context__=this,i.draggable=!0),t&&(this.__refs[t]=this.__getRefEl(this.__refs,t,n)),typeof r=="function"?r(n):r&&(this.$refs[r]=this.__getRefEl(this.$refs,r,n)),n})}__getRefEl(t,r,n){const i=t[r];if(i&&n!==i){const s=new Set([].concat(i,n));return Array.from(s)}else return n}__clone(t={}){const r=V(V({},this.context),t),n=et(V({},r),{context:r});return n.context.__proto__=this.context,n.__proto__=this,n}}function tn(e){var f,h;const{Vue:t=Ye,mode:r=tt.Runtime,components:n={},libs:i={},apis:s={},loader:o}=e,a=t.computed(()=>e.dsl),l={$components:n,$libs:i,$apis:s},u=new _y({mode:r,dsl:a.value,attrs:l}),c=t.defineComponent(V({name:a.value.name,__scopeId:a.value.id?`data-v-${a.value.id}`:void 0,props:V({},Sy((f=a.value.props)!=null?f:[],u)),setup(p){var v,w,S,g;u.$props=p,u.props=p,a.value.id&&cr(e.window||window,a.value.id,a.value.css||"",!0),u.state=xy(t,(v=a.value.state)!=null?v:{},u);const d=Ty(t,(w=a.value.computed)!=null?w:{},u),m=Ry((S=a.value.methods)!=null?S:{},u),b=Ay(t,a.value.inject,u);for(const[x,A]of Object.entries(b||{}))b[x]=t.inject(x,A);const _=$y(a.value.dataSources||{},u),y=V(V(V(V({},b),d),m),_);return u.setup(y,t),Oy(t,(g=a.value.watch)!=null?g:[],u),{vtj:u}},emits:Ey(a.value.emits),expose:["vtj"],render(){if(!a.value.nodes)return null;const p=a.value.nodes||[];return p.length===1?ie(p[0],u,t,o,p):p.map(d=>ie(d,u,t,o,p))}},jy((h=a.value.lifeCycles)!=null?h:{},u)));return{renderer:t.markRaw(c),context:u}}function Ey(e=[]){return e.map(t=>Dt(t)?t:t.name)}function Sy(e=[],t){const r=n=>n?(Array.isArray(n)?n:[n]).map(i=>Xg[i]):void 0;return e.map(n=>Dt(n)?{name:n}:{name:n.name,type:n.type,required:n.required,default:mt(n.default)?t.__parseExpression(n.default):n.default}).reduce((n,i)=>(n[i.name]={type:r(i.type),required:i.required,default:i.default},n),{})}function xy(e,t,r){return e.reactive(Object.keys(t||{}).reduce((n,i)=>{let s=t[i];return mt(s)?s=r.__parseExpression(s):pt(s)&&(s=r.__parseFunction(s)),n[i]=s,n},{}))}function Ty(e,t,r){return Object.entries(t!=null?t:{}).reduce((n,[i,s])=>(n[i]=e.computed(r.__parseFunction(s)),n),{})}function Ry(e,t){return Object.entries(e!=null?e:{}).reduce((r,[n,i])=>(r[n]=t.__parseFunction(i),r),{})}function Ay(e,t=[],r){return t.reduce((n,i)=>{var u;const{name:s,from:o}=i||{};i.default;const a=mt(o)?r.__parseExpression(o)||s:o!=null?o:s,l=mt(i.default)?r.__parseExpression(i.default):(u=i.default)!=null?u:null;return n[s]=e.inject(a,l),n},{})}function $y(e,t){return Object.keys(e).reduce((r,n)=>{const i=e[n];if(i.type==="mock")r[n]=by(i);else if(i.ref){const s=t.$apis[i.ref],o=pt(i.transform)?i.transform.value?t.__parseFunction(i.transform):void 0:i.transform;r[n]=(...a)=>k(null,null,function*(){const l=yield s.apply(t,a);return o?o(l):l})}return r},{})}function Oy(e,t=[],r){t.forEach(n=>{e.watch(r.__parseExpression(n.source),r.__parseFunction(n.handler),{deep:n.deep,immediate:n.immediate})})}function jy(e,t){return Object.entries(e!=null?e:{}).reduce((r,[n,i])=>{const s=t.__parseFunction(i);return r[n]=()=>k(null,null,function*(){yield Ke(0),Ht(s)&&s()}),r},{})}const Dy=new Hd;let Or=[],Zt={};const By=e=>e;function ra(r){return k(this,arguments,function*(e,t=window){const{urls:n=[],library:i}=e,s=n.filter(a=>ur(a));if(s.length===0||!i)return null;const o=n.filter(a=>ar(a));return o.length&&Qo(o,t),yield Xo(s,i,t).catch(a=>(console.warn("loadScriptUrl error",s,i,a),null))})}function en(e){const{getDsl:t,getDslByUrl:r,options:n}=e;return n.window&&(Or.forEach(i=>{delete n.window[i]}),Or=[]),(i,s,o=Ye)=>{if(!s||typeof s=="string")return i;if(s.type==="Schema"&&s.id)return o.defineAsyncComponent(()=>k(null,null,function*(){const a=Zt[s.id]||(yield Dy.add(s.id,()=>t(s.id)));return a&&(a.name=i,Zt[s.id]=a),a?tn(et(V({},n),{Vue:o,dsl:ii(a),mode:tt.Runtime,loader:en(e)})).renderer:null}));if(s.type==="UrlSchema"&&s.url)return o.defineAsyncComponent(()=>k(null,null,function*(){const a=Zt[s.url]||(yield r(s.url));return a&&(a.name=i,Zt[s.url]=a),a?tn(et(V({},n),{Vue:o,dsl:ii(a),mode:tt.Runtime,loader:en(e)})).renderer:null}));if(s.type==="Plugin"){let a=s.library?Zt[s.library]:null;return a||(s.library&&Or.push(s.library),a=Zt[s.library||Symbol()]=o.defineAsyncComponent(()=>k(null,null,function*(){return(yield ra(s,n.window))||(console.warn("getPlugin result is null",s),null)})),a)}return i}}function ie(e,t,r=Ye,n=By,i=[],s=!1){var v;if(!e||!e.name||e.invisible)return null;const o=(v=r.getCurrentInstance())==null?void 0:v.appContext,{id:a=null,directives:l=[]}=e,{vIf:u,vElseIf:c,vElse:f,vFor:h,vShow:p,vModels:d,vBind:m,vHtml:b,others:_}=na(l);if(!s&&(c||f))return null;if(u&&!Ny(u,t))return Fy(e,t,r,n,i);const y=(w,S=0)=>{var j,N,L,M;const g=w.$components,x=(()=>{var q,$,D,C;if(e.name==="component")return Iy(w,(q=e.props)==null?void 0:q.is);if(e.name==="slot")return e.name;const H=n(e.name,e.from,r);if(Dt(H))return ly(H)||fy(H)?H:(C=(D=g[H])!=null?D:($=o==null?void 0:o.app)==null?void 0:$.component(H))!=null?C:H;if(ct(H)&&e.id){const I=`Loader${e.id}_${S}`;return g[I]||(g[I]=H)}return H})(),A=Py(a,(j=e.props)!=null?j:{},w),U=ky(r,(N=e.events)!=null?N:{},w);if(e.name==="slot")return My(r,e,A,w,n);m&&Object.assign(A,w.__parseExpression(m.value)),p&&(A.style=Object.assign((L=A.style)!=null?L:{},Ly(p,w))),b&&Object.assign(A,Vy(b,w)),d.forEach(H=>{Object.assign(A,Hy(r,H,w))});const E=qy(r,(M=e.children)!=null?M:[],w,n,e),T=w!=null&&w.__id?`data-v-${w.__id}`:void 0,F=T?{[T]:""}:{};let B=r.createVNode(x,V(V(V({key:`${a}_${S}`},F),A),U),E);const P=o?Cy(o,_,w):[];return P.length&&(B=r.withDirectives(B,P)),B};return h?Wy(h,y,t):y(t)}function Cy(e,t,r){const n=e.app;return t.map(i=>{const s=typeof i.name=="string"?n.directive(i.name):r.__parseExpression(i.name);if(!s)return null;const o=[s];return i.value&&o.push(r.__parseExpression(i.value)),i.arg&&o.push(i.arg),i.modifiers&&o.push(i.modifiers),o}).filter(i=>!!i)}function na(e=[]){const t=e.find(c=>Et(c.name)==="vIf"),r=e.find(c=>Et(c.name)==="vElseIf"),n=e.find(c=>Et(c.name)==="vElse"),i=e.find(c=>Et(c.name)==="vFor"),s=e.find(c=>Et(c.name)==="vShow"),o=e.find(c=>Et(c.name)==="vBind"),a=e.find(c=>Et(c.name)==="vHtml"),l=e.filter(c=>Et(c.name)==="vModel"),u=e.filter(c=>!Qg.includes(Et(c.name)));return{vIf:t,vElseIf:r,vElse:n,vFor:i,vShow:s,vModels:l,vBind:o,others:u,vHtml:a}}function Ny(e,t){return!!t.__parseExpression(e.value)}function Iy(e,t){return t?mt(t)?e.__parseExpression(t):t:"div"}function Py(e,t,r){const n=rn(t,r);return n.ref=r.__ref(e,n.ref),n}function rn(e,t){return mt(e)?t.__parseExpression(e):pt(e)?t.__parseFunction(e):Array.isArray(e)?e.map(r=>rn(r,t)):typeof e=="object"?Object.keys(e||{}).reduce((r,n)=>{let i=e[n];return r[n]=rn(i,t),r},{}):e}function ky(e,t,r){const n=["passive","capture","once"],i={capture:"Capture",once:"Once",passive:"OnceCapture"};return Object.keys(t||{}).reduce((s,o)=>{const a=t[o],l=ia(a.modifiers),u=l.find(h=>n.includes(h)),c="on"+js(o)+(u&&i[u]||""),f=r.__parseFunction(a.handler);return f&&(s[c]=e.withModifiers(f,l)),s},{})}function Fy(e,t,r,n,i=[]){let s=i.findIndex(o=>o.id===e.id);for(let o=++s;o<i.length;o++){const{directives:a=[]}=i[o],{vElseIf:l,vElse:u}=na(a);if(l){if(t.__parseExpression(l.value))return ie(i[o],t,r,n,i,!0);continue}if(u)return ie(i[o],t,r,n,i,!0)}return null}function ia(e={},t=!1){const r=Object.keys(e);return t?r.map(n=>"."+n):r}function My(e,t,r,n,i){var l;const{children:s}=t,o=Uy(t,n),a=(l=n.$slots)==null?void 0:l[o.name];return a?a(r):s?Dt(s)?e.createTextVNode(s):mt(s)?e.createTextVNode(Zo(n.__parseExpression(s))):Array.isArray(s)?s.map(u=>ie(u,n,e,i,s)):null:null}function Uy(e,t){const{props:r}=e,n=(r==null?void 0:r.name)||"default";return{name:mt(n)?t.__parseExpression(n):n,params:[]}}function Ly(e,t){return t.__parseExpression(e.value)?{}:{display:"none"}}function Vy(e,t){return{innerHTML:t.__parseExpression(e.value)||""}}function Hy(e,t,r){var a;const n={type:"JSFunction",value:(a=t.value)!=null&&a.value?`(v) => {
72
72
  ${t.value.value} = v;
73
- }`:"(v) => {}"},i=r.__parseFunction(n),s=ia(mt(t.modifiers)?r.__parseExpression(t.modifiers):t.modifiers),o=mt(t.arg)?r.__parseExpression(t.arg):t.arg||"modelValue";return{[o]:r.__parseExpression(t.value),[`onUpdate:${o}`]:s.length&&i?e.withModifiers(i,s):i}}function q0(e,t,r,n,i){if(!t)return null;if(Dt(t))return{default:()=>t};if(mt(t))return{default:()=>Zo(r.__parseExpression(t))};if(Array.isArray(t)&&t.length>0){const s=z0(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?Dd(h!=null?h:{},c):o(h,f);return a.map(d=>ie(d,r.__clone(p),e,n,a))},u),{})}return null}function z0(e){const t={};for(const r of e){const n=K0(r.slot),i=n.name;t[i]?(t[i].nodes.push(r),t[i].params=t[i].params.concat(n.params),t[i].scope=n.scope||""):t[i]={nodes:[r],params:n.params,scope:n.scope||""}}return t}function K0(e="default"){return Dt(e)?{name:e,params:[],scope:""}:V({params:[],scope:""},e)}function W0(e,t,r){const{value:n,iterator:i}=e,{item:s="item",index:o="index"}=i||{};let u=r.__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(r.__clone({[s]:l,[o]:a}),a)):(console.warn("[vForRender]:",`${n==null?void 0:n.value} is not a Arrary`),[])}const jr=Qi({name:"VtjPageContainer",setup(){return k(this,null,function*(){const e=ny(),t=va(),r=t.meta.__vtj__||t.params.id,n=r?e.getPage(r):e.getHomepage(),i=n?yield e.getRenderComponent(n.id):null,s=ga(Symbol());if(n){Object.assign(t.meta,n.meta||{},{cache:n.cache});const{useTitle:o}=e==null?void 0:e.adapter;o&&o(n.title||"VTJ")}return{provider:e,component:i,file:n,query:t.query,meta:t.meta,sid:s,route:t}})},render(){const{component:e,query:t,sid:r}=this;return e?Br(e,tt(V({},t),{key:r})):Br("div","页面不存在")},activated(){this.meta.cache===!1&&(this.sid=Symbol())}}),J0=Qi({name:"VtjStartupContainer",render(){return Br("div","page not found!")}});function nn(e,t,r=[]){const n=[];for(const i of r){const{id:s,title:o,icon:u,children:l,hidden:a,layout:c}=i;if(c){const f=nn(e,t,l||[]);n.push(...f)}else{const f={id:s,title:o,icon:u,hidden:a,url:`${e}/${t}/${s}`,children:l&&l.length?nn(e,t,l):void 0};n.push(f)}}return n}function Dr(e,t){const{id:r,title:n,meta:i}=e,{name:s="page",prefix:o="",component:u,routeMeta:l}=t;return{name:r,path:`${o}${s}/${r}`,component:u,meta:tt(V(V({title:n},l),i),{__vtj__:r})}}function sn(e){const{name:t="page",prefix:r="",pages:n=[],component:i,loader:s,routeMeta:o,homepage:u}=e,l=[];for(const a of n){const{id:c,title:f,dir:h,layout:p,children:d,meta:m}=a;if(h){const b=sn({name:t,prefix:r,component:i,routeMeta:o,homepage:u,loader:s,pages:d||[]});l.push(...b)}else if(p){const b=sn({name:t,prefix:r,component:i,routeMeta:o,homepage:u,loader:s,pages:d||[]}),_={name:`layout_${c}`,path:r,component:()=>s(c),meta:tt(V(V({title:f},o),m),{__vtj__:c}),children:b};l.push(_),l.push(Dr(a,e))}else if(l.push(Dr(a,e)),u===c){const b=Dr(a,e);b.path="",b.name=`home_${c}`,l.push(b)}}return l}function Y0(e={},t){const{css:r,store:n,enhance:i}=e,{window:s,app:o,library:u={},adapter:l,mode:a}=t,{Pinia:c}=u;cr(s,"global-css",r||""),c&&n&&G0(n,o,c),Q0(o,l,e),!l.access&&e.access&&Z0(e.access,o,a,l),X0(o,e),i&&ty(i,o)}function G0(e,t,r){const n=r.createPinia();if(t.use(n),pt(e)&&e.value){const i=ht(e,{},!1,!1,!0),s=r.defineStore("$store",i(t)||{});t.config.globalProperties.$store=s()}}function Z0(e,t,r,n){if(pt(e)&&e.value){const i=ht(e,{},!1,!1,!0),{alert:s,request:o}=n,u=new ta(V({alert:s,storagePrefix:"__VTJ_APP_"},i(t))),l=t.config.globalProperties.$router;u.connect({mode:r,router:l,request:o}),t.use(u)}}function Q0(e,t,r){if(!t.request)return;const{axios:n,request:i,response:s}=r;if(n&&pt(n)&&n.value){const o=ht(n,{},!1,!1,!0);t.request.setConfig(o(e))}if(i&&pt(i)&&i.value){const o=ht(i,{},!1,!1,!0);t.request.useRequest(u=>o(u,e))}if(s&&pt(s)&&s.value){const o=ht(s,{},!1,!1,!0);t.request.useResponse(u=>o(u,e))}}function X0(e,t){const{beforeEach:r,afterEach:n}=t,i=e.config.globalProperties.$router;if(r&&pt(r)&&r.value){const s=ht(r,{},!1,!1,!0);i&&i.beforeEach((o,u,l)=>s(o,u,l,e))}if(n&&pt(n)&&n.value){const s=ht(n,{},!1,!1,!0);i&&i.afterEach((o,u,l)=>s(o,u,l,e))}}function ty(e,t){pt(e)&&e.value&&ht(e,{},!1,!1,!0)(t)}const sa=Symbol("Provider");class ey extends Wd{constructor(r){super();z(this,"mode");z(this,"globals",{});z(this,"modules",{});z(this,"adapter",{request:Gr,jsonp:Go});z(this,"apis",{});z(this,"dependencies",{});z(this,"materials",{});z(this,"library",{});z(this,"service");z(this,"project",null);z(this,"components",{});z(this,"nodeEnv","development");z(this,"router",null);z(this,"materialPath","./");z(this,"urlDslCaches",{});this.options=r;const{service:n,mode:i=et.Raw,dependencies:s,materials:o,project:u={},adapter:l={},globals:a={},modules:c={},router:f=null,materialPath:h="./",nodeEnv:p="development"}=r;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:m}=this.adapter;d&&d.connect({mode:i,router:f,request:m}),u&&i!==et.Design?this.load(u):this.project=u}createMock(r){return(...n)=>k(null,null,function*(){var s;let i={};if(r)try{i=yield r.apply(r,n)}catch(o){re.warn("模拟数据模版异常",o)}return(s=we())==null?void 0:s.mock(i)})}load(r){return k(this,null,function*(){const{vtjDir:n=".vtj"}=this.options,i=this.modules[`${n}/projects/${r.id}.json`]||this.modules[`/src/${n}/projects/${r.id}.json`];if(this.project=i?yield i():yield this.service.init(r),!this.project)throw new Error("project is null");const{apis:s=[],meta:o=[]}=this.project,u=window;u&&(u.CKEDITOR_VERSION=void 0),this.mode===et.Raw?yield this.loadDependencies(u):yield this.loadAssets(u),this.initMock(u),this.apis=y0(s,o,this.adapter),ea(u),v0(s,u),r.platform!=="uniapp"&&this.initRouter(),this.triggerReady()})}initMock(r){const n=we(r);n&&n.setup({timeout:"50-500"})}loadDependencies(r){return k(this,null,function*(){const n=Object.entries(this.dependencies);for(const[i,s]of n)r[i]||(r[i]=this.library[i]=yield s())})}loadAssets(r){return k(this,null,function*(){const{dependencies:n=[]}=this.project,{dependencies:i,library:s,components:o,materialPath:u,nodeEnv:l}=this,{libraryExports:a,libraryMap:c,materials:f,materialExports:h,materialMapLibrary:p}=i0(n,u,l==="development");for(const d of a){const m=i[d],b=r[d];if(b)s[d]=b;else if(m)r[d]=s[d]=yield m();else{const _=c[d]||[];for(const y of _)ar(y)&&(yield u0(y,Le.append(y,{v:Ar}))),ur(y)&&(yield Wi(Le.append(y,{v:Ar})));s[d]=r[d]}}if(l==="development"){for(const m of f)yield Wi(Le.append(m,{v:Ar}));const d=this.materials||{};for(const m of h){const b=r[p[m]],_=Kd[m];if(_)b&&_.forEach(y=>{o[y]=b[y]});else{const y=d[m]?(yield d[m]()).default:r[m];y&&b&&(y.components||[]).forEach(v=>{o[v.name]=s0(v,b)})}}}})}initRouter(){const{router:r,project:n,options:i,adapter:s}=this;if(!r)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:Ve,component:jr},h={path:c,name:$r,component:n!=null&&n.homepage?jr:s.startupComponent||J0,meta:a};if(r.hasRoute(Ve)&&r.removeRoute(Ve),r.hasRoute($r)&&r.removeRoute($r),i.enableStaticRoute){const p=(n==null?void 0:n.pages)||[];sn({name:l,prefix:c,pages:p,component:jr,loader:this.getRenderComponent.bind(this),homepage:n==null?void 0:n.homepage}).forEach(d=>{u?r.addRoute(u,d):r.addRoute(d)}),n!=null&&n.homepage||(u?r.addRoute(u,h):r.addRoute(h))}else u?(r.addRoute(u,f),r.addRoute(u,h)):(r.addRoute(f),r.addRoute(h))}install(r){var i,s;const n=r.config.globalProperties.installed||{};for(const[o,u]of Object.entries(this.library))!n[o]&&c0(u)&&(r.use(u),n[o]=!0);this.options.install&&r.use(this.options.install),this.adapter.access&&r.use(this.adapter.access),r.provide(sa,this),r.config.globalProperties.$provider=this,((i=this.project)==null?void 0:i.platform)!=="uniapp"&&this.initGlobals(((s=this.project)==null?void 0:s.globals)||{},{app:r,window,adapter:this.adapter,library:this.library,mode:this.mode}),this.options.enhance&&r.use(this.options.enhance,this),this.mode===et.Design&&(r.config.errorHandler=(o,u,l)=>{const a=u==null?void 0:u.$options.name,c=typeof o=="string"?o:(o==null?void 0:o.message)||(o==null?void 0:o.msg)||"未知错误",f=`[ ${a} ] ${c} ${l}`;console.error("[VTJ Error]:",{err:o,instance:u,info:l},o==null?void 0:o.stack),this.adapter.notify&&this.adapter.notify(f,"组件渲染错误","error")}),r.config.globalProperties.installed=n}getFile(r){const{blocks:n=[]}=this.project||{};return this.getPage(r)||n.find(i=>i.id===r)||null}getPage(r){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(r,n)||null}getMenus(r="page",n=""){var i;return nn(n,r,((i=this.project)==null?void 0:i.pages)||[])}getHomepage(){const{homepage:r}=this.project||{};return r?this.getPage(r):null}getDsl(r){return k(this,null,function*(){const{vtjDir:n=".vtj"}=this.options,i=this.modules[`${n}/files/${r}.json`]||this.modules[`/src/${n}/files/${r}.json`];return i?yield i():this.service.getFile(r,this.project||void 0).catch(()=>null)})}getDslByUrl(r){return k(this,null,function*(){return this.urlDslCaches[r]||(this.adapter.request?this.urlDslCaches[r]=this.adapter.request.send({url:r,method:"get",settings:{validSuccess:!1,originResponse:!0}}).then(i=>i.data).catch(()=>null):null)})}createDslRenderer(r,n={}){const{library:i,components:s,mode:o,apis:u}=this,l=V({mode:o,Vue:i.Vue,components:s,libs:i,apis:u,window},n),a=en({getDsl:c=>k(this,null,function*(){return(yield this.getDsl(c))||null}),getDslByUrl:c=>k(this,null,function*(){return(yield this.getDslByUrl(c))||null}),options:l});return tn(tt(V({},l),{dsl:r,loader:a}))}getRenderComponent(r,n){return k(this,null,function*(){var o;const i=this.getFile(r);if(!i)return re.warn(`Can not find file: ${r}`),null;if(n&&n(i),this.mode===et.Raw){const{vtjRawDir:u=".vtj/vue"}=this.options,l=`${u}/${r}.vue`,a=this.modules[l]||this.modules[`/src/pages/${r}.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:(re.warn(`Can not find dsl: ${r}`),null)})}defineUrlSchemaComponent(r,n){return xn(()=>k(this,null,function*(){const i=yield this.getDslByUrl(r);return i?(i.name=n||i.name,this.createDslRenderer(i).renderer):null}))}definePluginComponent(r){return xn(()=>k(null,null,function*(){return yield ra(r,window)}))}initGlobals(r,n){const i=Object.assign({adapter:this.adapter,window},n);Y0(r,i)}}function ry(e){const t=new ey(e);return{provider:t,onReady:r=>t.ready(r)}}function ny(e={}){const t=ya(sa,null);if(!t)throw new Error("Can not find provider");if(t.nodeEnv==="development"){const{id:r,version:n}=e;r&&n&&k(null,null,function*(){const i=yield t.getDsl(r);(i==null?void 0:i.__VERSION__)!==n&&t.adapter.notify&&t.adapter.notify(`[ ${i==null?void 0:i.name} ] 组件源码版本与运行时版本不一致,请重新发布组件`,"版本不一致","warning")})}return t}function iy(e,t=""){return k(this,null,function*(){const{name:r,urls:n=[]}=e||{},i=n.map(u=>t+u),{css:s,js:o}=o0(i);if(s.length&&Qo(s),o.length)return yield Xo(o,r).catch(()=>{})})}const oa={type:"json",validSuccess:!0,originResponse:!1,failMessage:!0,validate:e=>{var t;return((t=e.data)==null?void 0:t.code)===0}},sy=(e,t="/__vtj__/api/:type.json")=>(r,n,i)=>e.send({url:t,method:"post",params:{type:r},query:i,data:{type:r,data:n},settings:oa}),oy=(e,t="/__vtj__/api/uploader.json")=>(r,n)=>k(null,null,function*(){return yield e.send({url:t,method:"post",data:{files:r,projectId:n},settings:tt(V({},oa),{type:"data"})}).then(i=>i&&i[0]?i[0]:null).catch(()=>null)});function ay(e){return wn({settings:{type:"json",validSuccess:!0,originResponse:!1,failMessage:!0,validate:t=>{var r;return((r=t.data)==null?void 0:r.code)===0},showError:t=>{e&&e(t||"未知错误")}}})}class uy{constructor(t=Gr){z(this,"api");z(this,"pluginCaches",{});z(this,"uploader");this.req=t,this.api=sy(t),this.uploader=oy(t)}getExtension(){return k(this,null,function*(){console.log("BaseService.getExtension")})}init(t){return k(this,null,function*(){return console.log("BaseService.init",t),{}})}saveProject(t,r){return k(this,null,function*(){return!!(yield this.api("saveProject",t,{type:r}).catch(()=>!1))})}saveMaterials(t,r){return k(this,null,function*(){return console.log("BaseService.saveMaterials",t,r),!1})}saveFile(t){return k(this,null,function*(){return console.log("BaseService.saveFile",t),!1})}getFile(t){return k(this,null,function*(){return console.log("BaseService.getFile",t),{}})}removeFile(t){return k(this,null,function*(){return console.log("BaseService.removeFile",t),!1})}saveHistory(t){return k(this,null,function*(){return console.log("BaseService.saveHistory",t),!1})}removeHistory(t){return k(this,null,function*(){return console.log("BaseService.removeHistory",t),!1})}getHistory(t){return k(this,null,function*(){return console.log("BaseService.getHistory",t),{}})}getHistoryItem(t,r){return k(this,null,function*(){return console.log("BaseService.getHistoryItem",t,r),{}})}saveHistoryItem(t,r){return k(this,null,function*(){return console.log("BaseService.saveHistoryItem",t,r),!1})}removeHistoryItem(t,r){return k(this,null,function*(){return console.log("BaseService.removeHistoryItem",t,r),!1})}publish(t){return k(this,null,function*(){return!!(yield this.api("publish",t).catch(()=>!1))})}publishFile(t,r){return k(this,null,function*(){return!!(yield this.api("publishFile",{project:t,file:r}).catch(()=>!1))})}genVueContent(t,r){return k(this,null,function*(){return yield this.api("genVueContent",{project:t,dsl:r}).catch(()=>"")})}parseVue(t,r){return k(this,null,function*(){return yield this.api("parseVue",V({project:t},r))})}createRawPage(t){return k(this,null,function*(){return yield this.api("createRawPage",t).catch(()=>"")})}removeRawPage(t){return k(this,null,function*(){return yield this.api("removeRawPage",t).catch(()=>"")})}uploadStaticFile(t,r){return k(this,null,function*(){return yield this.uploader(t,r).catch(()=>null)})}getStaticFiles(t){return k(this,null,function*(){return yield this.api("getStaticFiles",t).catch(()=>[])})}removeStaticFile(t,r){return k(this,null,function*(){return yield this.api("removeStaticFile",{name:t,projectId:r}).catch(()=>"")})}clearStaticFiles(t){return k(this,null,function*(){return yield this.api("clearStaticFiles",t).catch(()=>"")})}getPluginMaterial(t){return k(this,null,function*(){const{urls:r=[]}=t,n=r.filter(s=>r0(s))[0];return n?this.pluginCaches[n]||(this.pluginCaches[n]=Gr.send({url:n,method:"get",settings:{validSuccess:!1,originResponse:!0}}).then(s=>s.data).catch(()=>null)):null})}genSource(t){return k(this,null,function*(){return console.log("BaseService.genSource",t),""})}}new Ko({type:"local",expired:0,prefix:"__VTJ_"});class cy extends uy{constructor(){super(...arguments);z(this,"getFileCaches",{})}getExtension(){return k(this,null,function*(){return yield this.api("getExtension",{}).catch(()=>{})})}init(r){return k(this,null,function*(){return(yield this.api("init",r).catch(()=>null))||{}})}saveProject(r,n){return k(this,null,function*(){return!!(yield this.api("saveProject",r,{type:n}).catch(()=>!1))})}saveMaterials(r,n){return k(this,null,function*(){return!!(yield this.api("saveMaterials",{project:r,materials:Od(n)}).catch(()=>!1))})}saveFile(r){return k(this,null,function*(){return!!(yield this.api("saveFile",r).catch(()=>!1))})}getFile(r){return k(this,null,function*(){return this.getFileCaches[r]||(this.getFileCaches[r]=this.api("getFile",r).catch(()=>null)).finally(()=>{delete this.getFileCaches[r]})})}removeFile(r){return k(this,null,function*(){return!!(yield this.api("removeFile",r).catch(()=>!1))})}saveHistory(r){return k(this,null,function*(){return!!(yield this.api("saveHistory",r).catch(()=>!1))})}removeHistory(r){return k(this,null,function*(){return!!(yield this.api("removeHistory",r).catch(()=>!1))})}getHistory(r){return k(this,null,function*(){return(yield this.api("getHistory",r).catch(()=>null))||{}})}getHistoryItem(r,n){return k(this,null,function*(){return(yield this.api("getHistoryItem",{fId:r,id:n}).catch(()=>null))||{}})}saveHistoryItem(r,n){return k(this,null,function*(){return!!(yield this.api("saveHistoryItem",{fId:r,item:n}).catch(()=>!1))})}removeHistoryItem(r,n){return k(this,null,function*(){return!!(yield this.api("removeHistoryItem",{fId:r,ids:n}).catch(()=>!1))})}}/**!
73
+ }`:"(v) => {}"},i=r.__parseFunction(n),s=ia(mt(t.modifiers)?r.__parseExpression(t.modifiers):t.modifiers),o=mt(t.arg)?r.__parseExpression(t.arg):t.arg||"modelValue";return{[o]:r.__parseExpression(t.value),[`onUpdate:${o}`]:s.length&&i?e.withModifiers(i,s):i}}function qy(e,t,r,n,i){if(!t)return null;if(Dt(t))return{default:()=>t};if(mt(t))return{default:()=>Zo(r.__parseExpression(t))};if(Array.isArray(t)&&t.length>0){const s=zy(t),o=(a,l)=>!a||!i?{}:i!=null&&i.id&&Object.keys(a).length?l?{[l]:a}:{[`scope_${i.id}`]:a}:l?{[l]:Object.create(null)}:{};return Object.entries(s).reduce((a,[l,{nodes:u,params:c,scope:f}])=>(a[l]=h=>{const p=c.length?Dd(h!=null?h:{},c):o(h,f);return u.map(d=>ie(d,r.__clone(p),e,n,u))},a),{})}return null}function zy(e){const t={};for(const r of e){const n=Ky(r.slot),i=n.name;t[i]?(t[i].nodes.push(r),t[i].params=t[i].params.concat(n.params),t[i].scope=n.scope||""):t[i]={nodes:[r],params:n.params,scope:n.scope||""}}return t}function Ky(e="default"){return Dt(e)?{name:e,params:[],scope:""}:V({params:[],scope:""},e)}function Wy(e,t,r){const{value:n,iterator:i}=e,{item:s="item",index:o="index"}=i||{};let a=r.__parseExpression(n)||[];return Number.isInteger(a)&&(a=new Array(a).fill(!0).map((l,u)=>u+1)),Array.isArray(a)?a.map((l,u)=>t(r.__clone({[s]:l,[o]:u}),u)):(console.warn("[vForRender]:",`${n==null?void 0:n.value} is not a Arrary`),[])}const jr=Qi({name:"VtjPageContainer",setup(){return k(this,null,function*(){const e=i0(),t=va(),r=t.meta.__vtj__||t.params.id,n=r?e.getPage(r):e.getHomepage(),i=n?yield e.getRenderComponent(n.id):null,s=ga(Symbol());if(n){Object.assign(t.meta,n.meta||{},{cache:n.cache});const{useTitle:o}=e==null?void 0:e.adapter;o&&o(n.title||"VTJ")}return{provider:e,component:i,file:n,query:t.query,meta:t.meta,sid:s,route:t}})},render(){const{component:e,query:t,sid:r}=this;return e?Br(e,et(V({},t),{key:r})):Br("div","页面不存在")},activated(){this.meta.cache===!1&&(this.sid=Symbol())}}),Jy=Qi({name:"VtjStartupContainer",render(){return Br("div","page not found!")}});function nn(e,t,r=[]){const n=[];for(const i of r){const{id:s,title:o,icon:a,children:l,hidden:u,layout:c}=i;if(c){const f=nn(e,t,l||[]);n.push(...f)}else{const f={id:s,title:o,icon:a,hidden:u,url:`${e}/${t}/${s}`,children:l&&l.length?nn(e,t,l):void 0};n.push(f)}}return n}function Dr(e,t){const{id:r,title:n,meta:i}=e,{name:s="page",prefix:o="",component:a,routeMeta:l}=t;return{name:r,path:`${o}${s}/${r}`,component:a,meta:et(V(V({title:n},l),i),{__vtj__:r})}}function sn(e){const{name:t="page",prefix:r="",pages:n=[],component:i,loader:s,routeMeta:o,homepage:a}=e,l=[];for(const u of n){const{id:c,title:f,dir:h,layout:p,children:d,meta:m}=u;if(h){const b=sn({name:t,prefix:r,component:i,routeMeta:o,homepage:a,loader:s,pages:d||[]});l.push(...b)}else if(p){const b=sn({name:t,prefix:r,component:i,routeMeta:o,homepage:a,loader:s,pages:d||[]}),_={name:`layout_${c}`,path:r,component:()=>s(c),meta:et(V(V({title:f},o),m),{__vtj__:c}),children:b};l.push(_),l.push(Dr(u,e))}else if(l.push(Dr(u,e)),a===c){const b=Dr(u,e);b.path="",b.name=`home_${c}`,l.push(b)}}return l}function Yy(e={},t){const{css:r,store:n,enhance:i}=e,{window:s,app:o,library:a={},adapter:l,mode:u}=t,{Pinia:c}=a;cr(s,"global-css",r||""),c&&n&&Gy(n,o,c),Qy(o,l,e),!l.access&&e.access&&Zy(e.access,o,u,l),Xy(o,e),i&&t0(i,o,a)}function Gy(e,t,r){const n=r.createPinia();if(t.use(n),pt(e)&&e.value){const i=ht(e,{},!1,!1,!0),s=r.defineStore("$store",i(t)||{});t.config.globalProperties.$store=s()}}function Zy(e,t,r,n){if(pt(e)&&e.value){const i=ht(e,{},!1,!1,!0),{alert:s,request:o}=n,a=new ta(V({alert:s,storagePrefix:"__VTJ_APP_"},i(t))),l=t.config.globalProperties.$router;a.connect({mode:r,router:l,request:o}),t.use(a)}}function Qy(e,t,r){if(!t.request)return;const{axios:n,request:i,response:s}=r;if(n&&pt(n)&&n.value){const o=ht(n,{},!1,!1,!0);t.request.setConfig(o(e))}if(i&&pt(i)&&i.value){const o=ht(i,{},!1,!1,!0);t.request.useRequest(a=>o(a,e))}if(s&&pt(s)&&s.value){const o=ht(s,{},!1,!1,!0);t.request.useResponse(a=>o(a,e))}}function Xy(e,t){const{beforeEach:r,afterEach:n}=t,i=e.config.globalProperties.$router;if(r&&pt(r)&&r.value){const s=ht(r,{},!1,!1,!0);i&&i.beforeEach((o,a,l)=>s(o,a,l,e))}if(n&&pt(n)&&n.value){const s=ht(n,{},!1,!1,!0);i&&i.afterEach((o,a,l)=>s(o,a,l,e))}}function t0(e,t,r={}){pt(e)&&e.value&&ht(e,{},!1,!1,!0)(t,r)}function e0(e,t,r){if(!e||!t||!r)return;const{VueI18n:n}=t;if(n){const{locale:i,fallbackLocale:s,messages:o=[]}=r,a={};for(let u of o){const c=Object.keys(u).filter(f=>f!=="key");for(const f of c)a[f]||(a[f]={}),a[f][u.key]=u[f]}const l=n.createI18n({legacy:!1,locale:i,fallbackLocale:s,messages:a});e.use(l)}}const sa=Symbol("Provider");class r0 extends Wd{constructor(r){super();z(this,"mode");z(this,"globals",{});z(this,"modules",{});z(this,"adapter",{request:Gr,jsonp:Go});z(this,"apis",{});z(this,"dependencies",{});z(this,"materials",{});z(this,"library",{});z(this,"service");z(this,"project",null);z(this,"components",{});z(this,"nodeEnv","development");z(this,"router",null);z(this,"materialPath","./");z(this,"urlDslCaches",{});this.options=r;const{service:n,mode:i=tt.Raw,dependencies:s,materials:o,project:a={},adapter:l={},globals:u={},modules:c={},router:f=null,materialPath:h="./",nodeEnv:p="development"}=r;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,u),Object.assign(this.adapter,l);const{access:d,request:m}=this.adapter;d&&d.connect({mode:i,router:f,request:m}),a&&i!==tt.Design?this.load(a):this.project=a}createMock(r){return(...n)=>k(null,null,function*(){var s;let i={};if(r)try{i=yield r.apply(r,n)}catch(o){re.warn("模拟数据模版异常",o)}return(s=we())==null?void 0:s.mock(i)})}load(r){return k(this,null,function*(){const{vtjDir:n=".vtj"}=this.options,i=this.modules[`${n}/projects/${r.id}.json`]||this.modules[`/src/${n}/projects/${r.id}.json`];if(this.project=i?yield i():yield this.service.init(r),!this.project)throw new Error("project is null");const{apis:s=[],meta:o=[]}=this.project,a=window;a&&(a.CKEDITOR_VERSION=void 0),this.mode===tt.Raw?yield this.loadDependencies(a):yield this.loadAssets(a),this.initMock(a),this.apis=yy(s,o,this.adapter),ea(a),vy(s,a),r.platform!=="uniapp"&&this.initRouter(),this.triggerReady()})}initMock(r){const n=we(r);n&&n.setup({timeout:"50-500"})}loadDependencies(r){return k(this,null,function*(){const n=Object.entries(this.dependencies);for(const[i,s]of n)r[i]||(r[i]=this.library[i]=yield s())})}loadAssets(r){return k(this,null,function*(){const{dependencies:n=[]}=this.project,{dependencies:i,library:s,components:o,materialPath:a,nodeEnv:l}=this,{libraryExports:u,libraryMap:c,materials:f,materialExports:h,materialMapLibrary:p}=iy(n,a,l==="development");for(const d of u){const m=i[d],b=r[d];if(b)s[d]=b;else if(m)r[d]=s[d]=yield m();else{const _=c[d]||[];for(const y of _)ar(y)&&(yield uy(y,Le.append(y,{v:Ar}))),ur(y)&&(yield Wi(Le.append(y,{v:Ar})));s[d]=r[d]}}if(l==="development"){for(const m of f)yield Wi(Le.append(m,{v:Ar}));const d=this.materials||{};for(const m of h){const b=r[p[m]],_=Kd[m];if(_)b&&_.forEach(y=>{o[y]=b[y]});else{const y=d[m]?(yield d[m]()).default:r[m];y&&b&&(y.components||[]).forEach(v=>{o[v.name]=sy(v,b)})}}}})}initRouter(){const{router:r,project:n,options:i,adapter:s}=this;if(!r)return;const o=(n==null?void 0:n.platform)==="uniapp"?"pages":"page",{routeAppendTo:a,pageRouteName:l=o,routeMeta:u}=i,c=a?"":"/",f={path:`${c}${l}/:id`,name:Ve,component:jr},h={path:c,name:$r,component:n!=null&&n.homepage?jr:s.startupComponent||Jy,meta:u};if(r.hasRoute(Ve)&&r.removeRoute(Ve),r.hasRoute($r)&&r.removeRoute($r),i.enableStaticRoute){const p=(n==null?void 0:n.pages)||[];sn({name:l,prefix:c,pages:p,component:jr,loader:this.getRenderComponent.bind(this),homepage:n==null?void 0:n.homepage}).forEach(d=>{a?r.addRoute(a,d):r.addRoute(d)}),n!=null&&n.homepage||(a?r.addRoute(a,h):r.addRoute(h))}else a?(r.addRoute(a,f),r.addRoute(a,h)):(r.addRoute(f),r.addRoute(h))}install(r){var i,s,o;const n=r.config.globalProperties.installed||{};for(const[a,l]of Object.entries(this.library))!n[a]&&cy(l)&&(r.use(l),n[a]=!0);this.options.install&&r.use(this.options.install),this.adapter.access&&r.use(this.adapter.access),((i=this.project)==null?void 0:i.platform)!=="uniapp"&&this.mode!==tt.Design&&this.initGlobals(((s=this.project)==null?void 0:s.globals)||{},{app:r,window,adapter:this.adapter,library:this.library,mode:this.mode}),this.mode!==tt.Design&&((o=this.project)!=null&&o.i18n)&&this.initI18n(r,this.library,this.project.i18n),r.provide(sa,this),r.config.globalProperties.$provider=this,this.options.enhance&&r.use(this.options.enhance,this),this.mode===tt.Design&&(r.config.errorHandler=(a,l,u)=>{const c=l==null?void 0:l.$options.name,f=typeof a=="string"?a:(a==null?void 0:a.message)||(a==null?void 0:a.msg)||"未知错误",h=`[ ${c} ] ${f} ${u}`;console.error("[VTJ Error]:",{err:a,instance:l,info:u},a==null?void 0:a.stack),this.adapter.notify&&this.adapter.notify(h,"组件渲染错误","error")}),r.config.globalProperties.installed=n}getFile(r){const{blocks:n=[]}=this.project||{};return this.getPage(r)||n.find(i=>i.id===r)||null}getPage(r){const{pages:n=[]}=this.project||{},i=(s,o=[])=>{for(const a of o){if(a.id===s)return a;if(a.children&&a.children.length){const l=i(s,a.children);if(l)return l}}};return i(r,n)||null}getMenus(r="page",n=""){var i;return nn(n,r,((i=this.project)==null?void 0:i.pages)||[])}getHomepage(){const{homepage:r}=this.project||{};return r?this.getPage(r):null}getDsl(r){return k(this,null,function*(){const{vtjDir:n=".vtj"}=this.options,i=this.modules[`${n}/files/${r}.json`]||this.modules[`/src/${n}/files/${r}.json`];return i?yield i():this.service.getFile(r,this.project||void 0).catch(()=>null)})}getDslByUrl(r){return k(this,null,function*(){return this.urlDslCaches[r]||(this.adapter.request?this.urlDslCaches[r]=this.adapter.request.send({url:r,method:"get",settings:{validSuccess:!1,originResponse:!0}}).then(i=>i.data).catch(()=>null):null)})}createDslRenderer(r,n={}){const{library:i,components:s,mode:o,apis:a}=this,l=V({mode:o,Vue:i.Vue,components:s,libs:i,apis:a,window},n),u=en({getDsl:c=>k(this,null,function*(){return(yield this.getDsl(c))||null}),getDslByUrl:c=>k(this,null,function*(){return(yield this.getDslByUrl(c))||null}),options:l});return tn(et(V({},l),{dsl:r,loader:u}))}getRenderComponent(r,n){return k(this,null,function*(){var o;const i=this.getFile(r);if(!i)return re.warn(`Can not find file: ${r}`),null;if(n&&n(i),this.mode===tt.Raw){const{vtjRawDir:a=".vtj/vue"}=this.options,l=`${a}/${r}.vue`,u=this.modules[l]||this.modules[`/src/pages/${r}.vue`];return u?(o=yield u())==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:(re.warn(`Can not find dsl: ${r}`),null)})}defineUrlSchemaComponent(r,n){return xn(()=>k(this,null,function*(){const i=yield this.getDslByUrl(r);return i?(i.name=n||i.name,this.createDslRenderer(i).renderer):null}))}definePluginComponent(r){return xn(()=>k(null,null,function*(){return yield ra(r,window)}))}initGlobals(r,n){const i=Object.assign({adapter:this.adapter,window},n);Yy(r,i)}initI18n(r,n,i){e0(r,n,i)}}function n0(e){const t=new r0(e);return{provider:t,onReady:r=>t.ready(r)}}function i0(e={}){const t=ya(sa,null);if(!t)throw new Error("Can not find provider");if(t.nodeEnv==="development"){const{id:r,version:n}=e;r&&n&&k(null,null,function*(){const i=yield t.getDsl(r);(i==null?void 0:i.__VERSION__)!==n&&t.adapter.notify&&t.adapter.notify(`[ ${i==null?void 0:i.name} ] 组件源码版本与运行时版本不一致,请重新发布组件`,"版本不一致","warning")})}return t}function s0(e,t=""){return k(this,null,function*(){const{name:r,urls:n=[]}=e||{},i=n.map(a=>t+a),{css:s,js:o}=oy(i);if(s.length&&Qo(s),o.length)return yield Xo(o,r).catch(()=>{})})}const oa={type:"json",validSuccess:!0,originResponse:!1,failMessage:!0,validate:e=>{var t;return((t=e.data)==null?void 0:t.code)===0}},o0=(e,t="/__vtj__/api/:type.json")=>(r,n,i)=>e.send({url:t,method:"post",params:{type:r},query:i,data:{type:r,data:n},settings:oa}),a0=(e,t="/__vtj__/api/uploader.json")=>(r,n)=>k(null,null,function*(){return yield e.send({url:t,method:"post",data:{files:r,projectId:n},settings:et(V({},oa),{type:"data"})}).then(i=>i&&i[0]?i[0]:null).catch(()=>null)});function u0(e){return wn({settings:{type:"json",validSuccess:!0,originResponse:!1,failMessage:!0,validate:t=>{var r;return((r=t.data)==null?void 0:r.code)===0},showError:t=>{e&&e(t||"未知错误")}}})}class c0{constructor(t=Gr){z(this,"api");z(this,"pluginCaches",{});z(this,"uploader");this.req=t,this.api=o0(t),this.uploader=a0(t)}getExtension(){return k(this,null,function*(){console.log("BaseService.getExtension")})}init(t){return k(this,null,function*(){return console.log("BaseService.init",t),{}})}saveProject(t,r){return k(this,null,function*(){return!!(yield this.api("saveProject",t,{type:r}).catch(()=>!1))})}saveMaterials(t,r){return k(this,null,function*(){return console.log("BaseService.saveMaterials",t,r),!1})}saveFile(t){return k(this,null,function*(){return console.log("BaseService.saveFile",t),!1})}getFile(t){return k(this,null,function*(){return console.log("BaseService.getFile",t),{}})}removeFile(t){return k(this,null,function*(){return console.log("BaseService.removeFile",t),!1})}saveHistory(t){return k(this,null,function*(){return console.log("BaseService.saveHistory",t),!1})}removeHistory(t){return k(this,null,function*(){return console.log("BaseService.removeHistory",t),!1})}getHistory(t){return k(this,null,function*(){return console.log("BaseService.getHistory",t),{}})}getHistoryItem(t,r){return k(this,null,function*(){return console.log("BaseService.getHistoryItem",t,r),{}})}saveHistoryItem(t,r){return k(this,null,function*(){return console.log("BaseService.saveHistoryItem",t,r),!1})}removeHistoryItem(t,r){return k(this,null,function*(){return console.log("BaseService.removeHistoryItem",t,r),!1})}publish(t){return k(this,null,function*(){return!!(yield this.api("publish",t).catch(()=>!1))})}publishFile(t,r){return k(this,null,function*(){return!!(yield this.api("publishFile",{project:t,file:r}).catch(()=>!1))})}genVueContent(t,r){return k(this,null,function*(){return yield this.api("genVueContent",{project:t,dsl:r}).catch(()=>"")})}parseVue(t,r){return k(this,null,function*(){return yield this.api("parseVue",V({project:t},r))})}createRawPage(t){return k(this,null,function*(){return yield this.api("createRawPage",t).catch(()=>"")})}removeRawPage(t){return k(this,null,function*(){return yield this.api("removeRawPage",t).catch(()=>"")})}uploadStaticFile(t,r){return k(this,null,function*(){return yield this.uploader(t,r).catch(()=>null)})}getStaticFiles(t){return k(this,null,function*(){return yield this.api("getStaticFiles",t).catch(()=>[])})}removeStaticFile(t,r){return k(this,null,function*(){return yield this.api("removeStaticFile",{name:t,projectId:r}).catch(()=>"")})}clearStaticFiles(t){return k(this,null,function*(){return yield this.api("clearStaticFiles",t).catch(()=>"")})}getPluginMaterial(t){return k(this,null,function*(){const{urls:r=[]}=t,n=r.filter(s=>ry(s))[0];return n?this.pluginCaches[n]||(this.pluginCaches[n]=Gr.send({url:n,method:"get",settings:{validSuccess:!1,originResponse:!0}}).then(s=>s.data).catch(()=>null)):null})}genSource(t){return k(this,null,function*(){return console.log("BaseService.genSource",t),""})}}new Ko({type:"local",expired:0,prefix:"__VTJ_"});class l0 extends c0{constructor(){super(...arguments);z(this,"getFileCaches",{})}getExtension(){return k(this,null,function*(){return yield this.api("getExtension",{}).catch(()=>{})})}init(r){return k(this,null,function*(){return(yield this.api("init",r).catch(()=>null))||{}})}saveProject(r,n){return k(this,null,function*(){return!!(yield this.api("saveProject",r,{type:n}).catch(()=>!1))})}saveMaterials(r,n){return k(this,null,function*(){return!!(yield this.api("saveMaterials",{project:r,materials:Od(n)}).catch(()=>!1))})}saveFile(r){return k(this,null,function*(){return!!(yield this.api("saveFile",r).catch(()=>!1))})}getFile(r){return k(this,null,function*(){return this.getFileCaches[r]||(this.getFileCaches[r]=this.api("getFile",r).catch(()=>null)).finally(()=>{delete this.getFileCaches[r]})})}removeFile(r){return k(this,null,function*(){return!!(yield this.api("removeFile",r).catch(()=>!1))})}saveHistory(r){return k(this,null,function*(){return!!(yield this.api("saveHistory",r).catch(()=>!1))})}removeHistory(r){return k(this,null,function*(){return!!(yield this.api("removeHistory",r).catch(()=>!1))})}getHistory(r){return k(this,null,function*(){return(yield this.api("getHistory",r).catch(()=>null))||{}})}getHistoryItem(r,n){return k(this,null,function*(){return(yield this.api("getHistoryItem",{fId:r,id:n}).catch(()=>null))||{}})}saveHistoryItem(r,n){return k(this,null,function*(){return!!(yield this.api("saveHistoryItem",{fId:r,item:n}).catch(()=>!1))})}removeHistoryItem(r,n){return k(this,null,function*(){return!!(yield this.api("removeHistoryItem",{fId:r,ids:n}).catch(()=>!1))})}}/**!
74
74
  * Copyright (c) 2025, VTJ.PRO All rights reserved.
75
75
  * @name @vtj/uni
76
76
  * @author CHC chenhuachun1549@dingtalk.com
77
- * @version 0.13.14
77
+ * @version 0.13.15
78
78
  * @license <a href="https://vtj.pro/license.html">MIT License</a>
79
- */const ly=["onLaunch","onShow","onHide","onError","onPageNotFound","onUnhandledRejection","onThemeChange","onPageNotFound","onUniNViewMessage","onExit"],Gi="/pages",fy="VTJ",hy="__UNI__1FC118B",py="VTJ移动跨端项目",dy="1.0.0",my="100",gy=!1,yy={},vy={enable:!1},by="3",wy={name:fy,appid:hy,description:py,versionName:dy,versionCode:my,transformPx:gy,"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:yy,"mp-weixin":{appid:"",setting:{urlCheck:!1},usingComponents:!0},"mp-alipay":{usingComponents:!0},"mp-baidu":{usingComponents:!0},"mp-toutiao":{usingComponents:!0},uniStatistics:vy,vueVersion:by},_y=[],Ey={navigationBarTextStyle:"black",navigationBarTitleText:"uni-app",navigationBarBackgroundColor:"#F8F8F8",backgroundColor:"#F8F8F8"},Sy={autoscan:!0,custom:{"^uni-(.*)":"@dcloudio/uni-ui/lib/uni-$1/uni-$1.vue"}},xy={pages:_y,globalStyle:Ey,easycom:Sy};function Ty(e){let{manifestJson:t={},pagesJson:r={},routes:n=[]}=e;const i=n.map(s=>{const{path:o,style:u,needLogin:l}=s;return{path:o,style:u,needLogin:l}});return tt(V({},e),{manifestJson:Object.assign({},wy,t),pagesJson:Object.assign({},xy,r,{pages:i})})}const on={navigationBarBackgroundColor:"backgroundColor",navigationBarTextStyle:"titleColor",navigationBarTitleText:"titleText",navigationStyle:"style",titleImage:"titleImage",titlePenetrate:"titlePenetrate",transparentTitle:"transparentTitle"};function aa(e){const t={},r={black:"#000000",white:"#ffffff"};for(const n in e)on[n]&&(t[on[n]]=n==="navigationBarTextStyle"?r[e[n]]||r.black:e[n]);return t}function Ry(e){const t={};for(const r in e)on[r]||(t[r]=e[r]);return t}function Ay(e){var t,r;return((r=(t=e.h5)==null?void 0:t.router)==null?void 0:r.mode)||"hash"}function $y(e){var t,r,n;return{topWindow:!!((t=e.topWindow)!=null&&t.path),leftWindow:!!((r=e.leftWindow)!=null&&r.path),rightWindow:!!((n=e.rightWindow)!=null&&n.path)}}function Oy(e){const{pagesJson:t={}}=e,{globalStyle:r,pages:n=[]}=t;return!!(r!=null&&r.enablePullDownRefresh||n.find(i=>{var s;return!!((s=i.style)!=null&&s.enablePullDownRefresh)}))}function jy(e){const{pagesJson:t={}}=e,{globalStyle:r,pages:n=[]}=t;let i=!1;return(r==null?void 0:r.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 Dy(e){var u;const t=jy(e),r={navigationBar:!1,navigationBarButtons:!1,navigationBarSearchInput:!1,navigationBarTransparent:!1},{pagesJson:n={}}=e,{globalStyle:i,pages:s=[]}=n;if(t)return r;r.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)})&&(r.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)}))&&(r.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"}))&&(r.navigationBarTransparent=!0),r}function By(e,t=window){var h,p,d,m;const{pagesJson:r={},manifestJson:n={}}=e,{topWindow:i,leftWindow:s,rightWindow:o}=$y(r),{navigationBar:u,navigationBarButtons:l,navigationBarSearchInput:a,navigationBarTransparent:c}=Dy(e),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__:Ay(n),__UNI_FEATURE_PAGES__:!!((h=r.pages)!=null&&h.length),__UNI_FEATURE_TABBAR__:!!((d=(p=r.tabBar)==null?void 0:p.list)!=null&&d.length),__UNI_FEATURE_TABBAR_MIDBUTTON__:!!((m=r.tabBar)!=null&&m.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__:Oy(e),__UNI_FEATURE_NAVIGATIONBAR_BUTTONS__:l,__UNI_FEATURE_NAVIGATIONBAR_SEARCHINPUT__:a,__UNI_FEATURE_NAVIGATIONBAR_TRANSPARENT__:c};Object.entries(f).forEach(([b,_])=>{t[b]=_})}const Cy="4.57";function Ny(e,t=window){var f,h;const{pagesJson:r={},manifestJson:n={}}=e,{easycom:i={}}=r,{appid:s="",name:o="",versionCode:u="",versionName:l=""}=n,a=r.globalStyle,c=((f=n.h5)==null?void 0:f.router)||{};t.__uniConfig={easycom:i,globalStyle:tt(V({},Ry(a)),{navigationBar:aa(a),isNVue:!1}),compilerVersion:Cy,appId:s,appName:o,appVersion:l,appVersionCode:String(u),async:V({loading:"AsyncLoading",error:"AsyncError",delay:200,timeout:6e4,suspensible:!0},((h=n.h5)==null?void 0:h.async)||{}),debug:!1,networkTimeout:V({request:6e4,connectSocket:6e4,uploadFile:6e4,downloadFile:6e4},n.networkTimeout||{}),sdkConfigs:{},nvue:{"flex-direction":"column"},locale:"",fallbackLocale:"",locales:{},router:V({mode:"hash",base:"/",assets:"assets",routerBase:c.base||"/"},c),darkmode:!1,themeConfig:{},tabBar:r.tabBar?V({position:"bottom",color:"#7A7E83",selectedColor:"#3cc51f",borderStyle:"black",blurEffect:"none",fontSize:"10px",iconWidth:"24px",spacing:"3px",height:"50px",backgroundColor:"#ffffff",selectedIndex:0,shown:!0},r.tabBar):void 0}}function Iy(e,t=window){const{UniServiceJSBridge:r,UniViewJSBridge:n,getApp:i,uni:s,getCurrentPages:o,upx2px:u,setupPage:l}=e;t.UniServiceJSBridge=r,t.UniViewJSBridge=n,t.getApp=i,t.uni=s,t.wx=s,t.getCurrentPages=o,t.upx2px=u,t.__setupPage=a=>l(a)}function Py(e,t,r){const{openBlock:n,createBlock:i,withCtx:s,createVNode:o}=e,{PageComponent:u,setupPage:l,getApp:a}=t;return{mpType:"page",setup(){return k(this,null,function*(){var m,b;const f=((b=(m=a())==null?void 0:m.$route)==null?void 0:b.query)||{},{loader:h,component:p}=r,d=h?yield h(r):p||{};return()=>(n(),i(u,null,{page:s(()=>[o(l(d),Object.assign({},f,{ref:"page"}),null,512)]),_:1}))})}}}function ky(e,t,r){var p;const{path:n,style:i={},meta:s={},home:o,id:u}=t,l=((p=e.tabBar)==null?void 0:p.list)||[],a=l.findIndex(d=>{var m;return d.pagePath===n||((m=d.pagePath)==null?void 0:m.endsWith(u))}),c=l[a],f=!!c,h=r===0;return V({isTabBar:f,tabBarIndex:a,isQuit:o!=null?o:h,isEntry:o!=null?o:h,navigationBar:V({type:"default"},aa(i)),isNVue:!1,route:c?c.pagePath:n},s)}function Fy(e,t,r,n,i=window){const s=r.map((o,u)=>{const l=ky(n,o,u),a=Py(e,t,o),{path:c}=o;return{path:c,alias:c,meta:l,component:{render(){return e.h(e.Suspense,[e.h(a)])}}}});i.__uniRoutes=s,i.__uniLayout={}}function My(e,t,r=window){cr(r,String(e),t)}function Uy(e,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(r=>{const n=t[r];e.component(r,n)})}function Ly(e){const t=Ty(e),{Vue:r,App:n,UniH5:i,routes:s=[],pagesJson:o={},manifestJson:u={},window:l,css:a=""}=t;if(!i)return r.createApp(n);const{plugin:c,setupApp:f}=i;By(t,l),Ny(t,l),Iy(i,l),Fy(r,i,s,o,l),My(u.appid||Date.now(),a,l);const h=r.createApp(f(n));return h.use(Uy,i),h.use(c),h}function Vy(e,t){const r={};return Object.entries(e).forEach(([n,i])=>{ly.includes(n)&&i&&(r[n]=t(i))}),r}function Zi(e,t){return()=>k(null,null,function*(){const r=yield e.getDsl(t);if(r){const{renderer:n}=e.createDslRenderer(r);return n}return null})}function Hy(n){return k(this,arguments,function*(e,t=!1,r=Gi){var u,l,a;const i=((u=e.project)==null?void 0:u.pages)||[],s=[];for(const c of i){const f=((l=e.project)==null?void 0:l.homepage)===c.id;s.push({id:c.id,path:`${r}/${c.id}`,loader:Zi(e,c.id),style:V({navigationBarTitleText:c.title},c.style),needLogin:c.needLogin,home:f})}const o=s.find(c=>!!c.home)||s[0];if(o){const c=r===Gi?"/":r;s.unshift(tt(V({},o),{path:c}))}if(t){const c=((a=e.project)==null?void 0:a.blocks)||[];for(const f of c)s.push({id:f.id,path:`${r}/${f.id}`,loader:Zi(e,f.id),style:{navigationStyle:"custom"}})}return s})}function qy(){var e;return(e=window.uni)!=null&&e.showLoading&&window.uni.showLoading({title:"加载中...",mask:!0}),{close:()=>{var t;(t=window.uni)!=null&&t.hideLoading&&window.uni.hideLoading()}}}function ua(e,t="",r="warning"){return k(this,null,function*(){var n;return(n=window.uni)!=null&&n.showModal?window.uni.showModal({title:t,content:e,showCancel:!1}):Promise.reject(new Error("window.uni.showModal is undefined"))})}function zy(e=et.Runtime){return e===et.Runtime?Object.assign({}):Object.assign({})}const Ky=d0({loading:qy,notify:ua}),ca=new cy(ay(ua)),Wy=zy(),{provider:Jy,onReady:Yy}=ry({nodeEnv:"production",mode:et.Runtime,modules:Wy,materialPath:"../",adapter:Ky,service:ca,dependencies:{Vue:()=>Rn(()=>import("./@dcloudio-uni-h5-vue-Dkyr-yjK.js").then(e=>e.z),__vite__mapDeps([0,1,2]),import.meta.url),VueRouter:()=>Rn(()=>import("./vue-router-BPElbjFz.js"),__vite__mapDeps([3,0,1,2]),import.meta.url)}}),Gy=e=>k(null,null,function*(){const t=(yield ca.getExtension().catch(()=>null))||{},r=top||window,n=yield iy(t.enhance,r.location.pathname),{Vue:i,UniH5:s}=window,o=e.project;if(!o)return;const u=o.uniConfig||{},l=Vy(u,d=>ht(d,window,!1,!0)),{manifestJson:a,pagesJson:c,css:f}=u,h=yield Hy(e,!0),p=Ly({Vue:i,App:l,UniH5:s,routes:h,css:f,manifestJson:a,pagesJson:c});p.use(e),n&&p.use(n,e),p.mount(document.body)});Yy(()=>Gy(Jy));
79
+ */const f0=["onLaunch","onShow","onHide","onError","onPageNotFound","onUnhandledRejection","onThemeChange","onPageNotFound","onUniNViewMessage","onExit"],Gi="/pages",h0="VTJ",p0="__UNI__1FC118B",d0="VTJ移动跨端项目",m0="1.0.0",g0="100",y0=!1,v0={},b0={enable:!1},w0="3",_0={name:h0,appid:p0,description:d0,versionName:m0,versionCode:g0,transformPx:y0,"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:v0,"mp-weixin":{appid:"",setting:{urlCheck:!1},usingComponents:!0},"mp-alipay":{usingComponents:!0},"mp-baidu":{usingComponents:!0},"mp-toutiao":{usingComponents:!0},uniStatistics:b0,vueVersion:w0},E0=[],S0={navigationBarTextStyle:"black",navigationBarTitleText:"uni-app",navigationBarBackgroundColor:"#F8F8F8",backgroundColor:"#F8F8F8"},x0={autoscan:!0,custom:{"^uni-(.*)":"@dcloudio/uni-ui/lib/uni-$1/uni-$1.vue"}},T0={pages:E0,globalStyle:S0,easycom:x0};function R0(e){let{manifestJson:t={},pagesJson:r={},routes:n=[]}=e;const i=n.map(s=>{const{path:o,style:a,needLogin:l}=s;return{path:o,style:a,needLogin:l}});return et(V({},e),{manifestJson:Object.assign({},_0,t),pagesJson:Object.assign({},T0,r,{pages:i})})}const on={navigationBarBackgroundColor:"backgroundColor",navigationBarTextStyle:"titleColor",navigationBarTitleText:"titleText",navigationStyle:"style",titleImage:"titleImage",titlePenetrate:"titlePenetrate",transparentTitle:"transparentTitle"};function aa(e){const t={},r={black:"#000000",white:"#ffffff"};for(const n in e)on[n]&&(t[on[n]]=n==="navigationBarTextStyle"?r[e[n]]||r.black:e[n]);return t}function A0(e){const t={};for(const r in e)on[r]||(t[r]=e[r]);return t}function $0(e){var t,r;return((r=(t=e.h5)==null?void 0:t.router)==null?void 0:r.mode)||"hash"}function O0(e){var t,r,n;return{topWindow:!!((t=e.topWindow)!=null&&t.path),leftWindow:!!((r=e.leftWindow)!=null&&r.path),rightWindow:!!((n=e.rightWindow)!=null&&n.path)}}function j0(e){const{pagesJson:t={}}=e,{globalStyle:r,pages:n=[]}=t;return!!(r!=null&&r.enablePullDownRefresh||n.find(i=>{var s;return!!((s=i.style)!=null&&s.enablePullDownRefresh)}))}function D0(e){const{pagesJson:t={}}=e,{globalStyle:r,pages:n=[]}=t;let i=!1;return(r==null?void 0:r.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 B0(e){var a;const t=D0(e),r={navigationBar:!1,navigationBarButtons:!1,navigationBarSearchInput:!1,navigationBarTransparent:!1},{pagesJson:n={}}=e,{globalStyle:i,pages:s=[]}=n;if(t)return r;r.navigationBar=!0;const o=(a=i==null?void 0:i.h5)==null?void 0:a.titleNView;return s.find(l=>{var u,c,f;return!!((f=(c=(u=l.style)==null?void 0:u.h5)==null?void 0:c.titleNView)!=null&&f.buttons.length)})&&(r.navigationBarButtons=!0),(o!=null&&o.searchInput||s.find(l=>{var u,c,f;return!!((f=(c=(u=l.style)==null?void 0:u.h5)==null?void 0:c.titleNView)!=null&&f.searchInput)}))&&(r.navigationBarSearchInput=!0),((o==null?void 0:o.type)==="transparent"||s.find(l=>{var u,c,f;return((f=(c=(u=l.style)==null?void 0:u.h5)==null?void 0:c.titleNView)==null?void 0:f.type)==="transparent"}))&&(r.navigationBarTransparent=!0),r}function C0(e,t=window){var h,p,d,m;const{pagesJson:r={},manifestJson:n={}}=e,{topWindow:i,leftWindow:s,rightWindow:o}=O0(r),{navigationBar:a,navigationBarButtons:l,navigationBarSearchInput:u,navigationBarTransparent:c}=B0(e),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__:$0(n),__UNI_FEATURE_PAGES__:!!((h=r.pages)!=null&&h.length),__UNI_FEATURE_TABBAR__:!!((d=(p=r.tabBar)==null?void 0:p.list)!=null&&d.length),__UNI_FEATURE_TABBAR_MIDBUTTON__:!!((m=r.tabBar)!=null&&m.midButton),__UNI_FEATURE_TOPWINDOW__:i,__UNI_FEATURE_LEFTWINDOW__:s,__UNI_FEATURE_RIGHTWINDOW__:o,__UNI_FEATURE_RESPONSIVE__:!1,__UNI_FEATURE_NAVIGATIONBAR__:a,__UNI_FEATURE_PULL_DOWN_REFRESH__:j0(e),__UNI_FEATURE_NAVIGATIONBAR_BUTTONS__:l,__UNI_FEATURE_NAVIGATIONBAR_SEARCHINPUT__:u,__UNI_FEATURE_NAVIGATIONBAR_TRANSPARENT__:c};Object.entries(f).forEach(([b,_])=>{t[b]=_})}const N0="4.57";function I0(e,t=window){var f,h;const{pagesJson:r={},manifestJson:n={}}=e,{easycom:i={}}=r,{appid:s="",name:o="",versionCode:a="",versionName:l=""}=n,u=r.globalStyle,c=((f=n.h5)==null?void 0:f.router)||{};t.__uniConfig={easycom:i,globalStyle:et(V({},A0(u)),{navigationBar:aa(u),isNVue:!1}),compilerVersion:N0,appId:s,appName:o,appVersion:l,appVersionCode:String(a),async:V({loading:"AsyncLoading",error:"AsyncError",delay:200,timeout:6e4,suspensible:!0},((h=n.h5)==null?void 0:h.async)||{}),debug:!1,networkTimeout:V({request:6e4,connectSocket:6e4,uploadFile:6e4,downloadFile:6e4},n.networkTimeout||{}),sdkConfigs:{},nvue:{"flex-direction":"column"},locale:"",fallbackLocale:"",locales:{},router:V({mode:"hash",base:"/",assets:"assets",routerBase:c.base||"/"},c),darkmode:!1,themeConfig:{},tabBar:r.tabBar?V({position:"bottom",color:"#7A7E83",selectedColor:"#3cc51f",borderStyle:"black",blurEffect:"none",fontSize:"10px",iconWidth:"24px",spacing:"3px",height:"50px",backgroundColor:"#ffffff",selectedIndex:0,shown:!0},r.tabBar):void 0}}function P0(e,t=window){const{UniServiceJSBridge:r,UniViewJSBridge:n,getApp:i,uni:s,getCurrentPages:o,upx2px:a,setupPage:l}=e;t.UniServiceJSBridge=r,t.UniViewJSBridge=n,t.getApp=i,t.uni=s,t.wx=s,t.getCurrentPages=o,t.upx2px=a,t.__setupPage=u=>l(u)}function k0(e,t,r){const{openBlock:n,createBlock:i,withCtx:s,createVNode:o}=e,{PageComponent:a,setupPage:l,getApp:u}=t;return{mpType:"page",setup(){return k(this,null,function*(){var m,b;const f=((b=(m=u())==null?void 0:m.$route)==null?void 0:b.query)||{},{loader:h,component:p}=r,d=h?yield h(r):p||{};return()=>(n(),i(a,null,{page:s(()=>[o(l(d),Object.assign({},f,{ref:"page"}),null,512)]),_:1}))})}}}function F0(e,t,r){var p;const{path:n,style:i={},meta:s={},home:o,id:a}=t,l=((p=e.tabBar)==null?void 0:p.list)||[],u=l.findIndex(d=>{var m;return d.pagePath===n||((m=d.pagePath)==null?void 0:m.endsWith(a))}),c=l[u],f=!!c,h=r===0;return V({isTabBar:f,tabBarIndex:u,isQuit:o!=null?o:h,isEntry:o!=null?o:h,navigationBar:V({type:"default"},aa(i)),isNVue:!1,route:c?c.pagePath:n},s)}function M0(e,t,r,n,i=window){const s=r.map((o,a)=>{const l=F0(n,o,a),u=k0(e,t,o),{path:c}=o;return{path:c,alias:c,meta:l,component:{render(){return e.h(e.Suspense,[e.h(u)])}}}});i.__uniRoutes=s,i.__uniLayout={}}function U0(e,t,r=window){cr(r,String(e),t)}function L0(e,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(r=>{const n=t[r];e.component(r,n)})}function V0(e){const t=R0(e),{Vue:r,App:n,UniH5:i,routes:s=[],pagesJson:o={},manifestJson:a={},window:l,css:u=""}=t;if(!i)return r.createApp(n);const{plugin:c,setupApp:f}=i;C0(t,l),I0(t,l),P0(i,l),M0(r,i,s,o,l),U0(a.appid||Date.now(),u,l);const h=r.createApp(f(n));return h.use(L0,i),h.use(c),h}function H0(e,t){const r={};return Object.entries(e).forEach(([n,i])=>{f0.includes(n)&&i&&(r[n]=t(i))}),r}function Zi(e,t){return()=>k(null,null,function*(){const r=yield e.getDsl(t);if(r){const{renderer:n}=e.createDslRenderer(r);return n}return null})}function q0(n){return k(this,arguments,function*(e,t=!1,r=Gi){var a,l,u;const i=((a=e.project)==null?void 0:a.pages)||[],s=[];for(const c of i){const f=((l=e.project)==null?void 0:l.homepage)===c.id;s.push({id:c.id,path:`${r}/${c.id}`,loader:Zi(e,c.id),style:V({navigationBarTitleText:c.title},c.style),needLogin:c.needLogin,home:f})}const o=s.find(c=>!!c.home)||s[0];if(o){const c=r===Gi?"/":r;s.unshift(et(V({},o),{path:c}))}if(t){const c=((u=e.project)==null?void 0:u.blocks)||[];for(const f of c)s.push({id:f.id,path:`${r}/${f.id}`,loader:Zi(e,f.id),style:{navigationStyle:"custom"}})}return s})}function z0(){var e;return(e=window.uni)!=null&&e.showLoading&&window.uni.showLoading({title:"加载中...",mask:!0}),{close:()=>{var t;(t=window.uni)!=null&&t.hideLoading&&window.uni.hideLoading()}}}function ua(e,t="",r="warning"){return k(this,null,function*(){var n;return(n=window.uni)!=null&&n.showModal?window.uni.showModal({title:t,content:e,showCancel:!1}):Promise.reject(new Error("window.uni.showModal is undefined"))})}function K0(e=tt.Runtime){return e===tt.Runtime?Object.assign({}):Object.assign({})}const W0=dy({loading:z0,notify:ua}),ca=new l0(u0(ua)),J0=K0(),{provider:Y0,onReady:G0}=n0({nodeEnv:"production",mode:tt.Runtime,modules:J0,materialPath:"../",adapter:W0,service:ca,dependencies:{Vue:()=>Rn(()=>import("./@dcloudio-uni-h5-vue-Dkyr-yjK.js").then(e=>e.z),__vite__mapDeps([0,1,2]),import.meta.url),VueRouter:()=>Rn(()=>import("./vue-router-BPElbjFz.js"),__vite__mapDeps([3,0,1,2]),import.meta.url)}}),Z0=e=>k(null,null,function*(){const t=(yield ca.getExtension().catch(()=>null))||{},r=top||window,n=yield s0(t.enhance,r.location.pathname),{Vue:i,UniH5:s}=window,o=e.project;if(!o)return;const a=o.uniConfig||{},l=H0(a,d=>ht(d,window,!1,!0)),{manifestJson:u,pagesJson:c,css:f}=a,h=yield q0(e,!0),p=V0({Vue:i,App:l,UniH5:s,routes:h,css:f,manifestJson:u,pagesJson:c});p.use(e),n&&p.use(n,e),p.mount(document.body)});G0(()=>Z0(Y0));