@vtj/pro 0.16.27 → 0.16.28

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 (27) 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/ui/index.umd.js +2 -2
  12. package/dist/@vtj/materials/deps/@vtj/utils/index.umd.js +2 -2
  13. package/dist/assets/{Editor-Cexcrr8z-Dbg1LRwa.js → Editor-1j6xPW7V-SwYZKX1P.js} +98 -94
  14. package/dist/assets/{auth-B1y31MRi.js → auth-3uEulBqT.js} +1 -1
  15. package/dist/assets/index-BGMOI1x0.js +1 -0
  16. package/dist/assets/{index-CAV2KE4g.js → index-DrYlHksQ.js} +2 -2
  17. package/dist/assets/page-BszTT1Ax.js +2 -0
  18. package/dist/assets/preview-CuRZXjJS.js +2 -0
  19. package/dist/assets/{utils-DH7G9CXQ.js → utils-CwTi1_bC.js} +1 -1
  20. package/dist/index.html +3 -3
  21. package/dist/uni/assets/{index-DuEkQxD9.js → index-DdugrPRo.js} +37 -33
  22. package/dist/uni/index.html +1 -1
  23. package/package.json +11 -11
  24. package/dist/assets/index-D85s0bMY.js +0 -1
  25. package/dist/assets/page-CEEeZYr1.js +0 -2
  26. package/dist/assets/preview-kI4wAwtO.js +0 -2
  27. /package/dist/assets/{Editor-Cexcrr8z-ClyxY6WL.css → Editor-1j6xPW7V-ClyxY6WL.css} +0 -0
@@ -1,6 +1,6 @@
1
1
  const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./@dcloudio-uni-h5-vue-BmOkhsCk.js","./vue-DefuvV9N.js","./@dcloudio-uni-shared-bWpOwtAM.js","./vue-router-BaL-Hp_b.js"])))=>i.map(i=>d[i]);
2
- var Ta=Object.defineProperty,Ra=Object.defineProperties;var Aa=Object.getOwnPropertyDescriptors;var Ln=Object.getOwnPropertySymbols;var xa=Object.prototype.hasOwnProperty,Oa=Object.prototype.propertyIsEnumerable;var Ye=(r,e)=>(e=Symbol[r])?e:Symbol.for("Symbol."+r),$a=r=>{throw TypeError(r)};var br=(r,e,t)=>e in r?Ta(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,V=(r,e)=>{for(var t in e||(e={}))xa.call(e,t)&&br(r,t,e[t]);if(Ln)for(var t of Ln(e))Oa.call(e,t)&&br(r,t,e[t]);return r},re=(r,e)=>Ra(r,Aa(e));var k=(r,e,t)=>br(r,typeof e!="symbol"?e+"":e,t);var U=(r,e,t)=>new Promise((n,i)=>{var s=l=>{try{u(t.next(l))}catch(a){i(a)}},o=l=>{try{u(t.throw(l))}catch(a){i(a)}},u=l=>l.done?n(l.value):Promise.resolve(l.value).then(s,o);u((t=t.apply(r,e)).next())}),Ue=function(r,e){this[0]=r,this[1]=e},_r=(r,e,t)=>{var n=(o,u,l,a)=>{try{var c=t[o](u),f=(u=c.value)instanceof Ue,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 t=t.apply(r,e),s[Ye("asyncIterator")]=()=>s,i("next"),i("throw"),i("return"),s},wr=r=>{var e=r[Ye("asyncIterator")],t=!1,n,i={};return e==null?(e=r[Ye("iterator")](),n=s=>i[s]=o=>e[s](o)):(e=e.call(r),n=s=>i[s]=o=>{if(t){if(t=!1,s==="throw")throw o;return o}return t=!0,{done:!1,value:new Ue(new Promise(u=>{var l=e[s](o);l instanceof Object||$a("Object expected"),u(l)}),1)}}),i[Ye("iterator")]=()=>i,n("next"),"throw"in e?n("throw"):i.throw=s=>{throw s},"return"in e&&n("return"),i},Un=(r,e,t)=>(e=r[Ye("asyncIterator")])?e.call(r):(r=r[Ye("iterator")](),e={},t=(n,i)=>(i=r[n])&&(e[n]=s=>new Promise((o,u,l)=>(s=i.call(r,s),l=s.done,Promise.resolve(s.value).then(a=>o({value:a,done:l}),u)))),t("next"),t("return"),e);import{g as Hn,d as ys,h as Kr,f as Da,W as or,i as Ca}from"./@dcloudio-uni-h5-vue-BmOkhsCk.js";import{useRoute as Ba}from"./vue-router-BaL-Hp_b.js";import"./vue-DefuvV9N.js";import"./@dcloudio-uni-shared-bWpOwtAM.js";(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.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 t(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=t(i);fetch(i.href,s)}})();const Pa="modulepreload",ja=function(r,e){return new URL(r,e).href},Vn={},kn=function(e,t,n){let i=Promise.resolve();if(t&&t.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(t.map(c=>{if(c=ja(c,n),c in Vn)return;Vn[c]=!0;const f=c.endsWith(".css"),h=f?'[rel="stylesheet"]':"";if(!!n)for(let g=u.length-1;g>=0;g--){const v=u[g];if(v.href===c&&(!f||v.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${c}"]${h}`))return;const d=document.createElement("link");if(d.rel=f?"stylesheet":Pa,f||(d.as="script"),d.crossOrigin="",d.href=c,a&&d.setAttribute("nonce",a),document.head.appendChild(d),f)return new Promise((g,v)=>{d.addEventListener("load",g),d.addEventListener("error",()=>v(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 e().catch(s)})};var Na={ENV_TYPE:"live",NODE_ENV:"production"},Ia=typeof global=="object"&&global&&global.Object===Object&&global;const bs=Ia;var Ma=typeof self=="object"&&self&&self.Object===Object&&self,Fa=bs||Ma||Function("return this")();const be=Fa;var La=be.Symbol;const Re=La;var _s=Object.prototype,Ua=_s.hasOwnProperty,Ha=_s.toString,pt=Re?Re.toStringTag:void 0;function Va(r){var e=Ua.call(r,pt),t=r[pt];try{r[pt]=void 0;var n=!0}catch(s){}var i=Ha.call(r);return n&&(e?r[pt]=t:delete r[pt]),i}var ka=Object.prototype,qa=ka.toString;function za(r){return qa.call(r)}var Wa="[object Null]",Ka="[object Undefined]",qn=Re?Re.toStringTag:void 0;function De(r){return r==null?r===void 0?Ka:Wa:qn&&qn in Object(r)?Va(r):za(r)}function ge(r){return r!=null&&typeof r=="object"}var Ja="[object Symbol]";function ws(r){return typeof r=="symbol"||ge(r)&&De(r)==Ja}function Es(r,e){for(var t=-1,n=r==null?0:r.length,i=Array(n);++t<n;)i[t]=e(r[t],t,r);return i}var Ga=Array.isArray;const $e=Ga;var zn=Re?Re.prototype:void 0,Wn=zn?zn.toString:void 0;function Ss(r){if(typeof r=="string")return r;if($e(r))return Es(r,Ss)+"";if(ws(r))return Wn?Wn.call(r):"";var e=r+"";return e=="0"&&1/r==-1/0?"-0":e}var Ya=/\s/;function Za(r){for(var e=r.length;e--&&Ya.test(r.charAt(e)););return e}var Qa=/^\s+/;function Xa(r){return r&&r.slice(0,Za(r)+1).replace(Qa,"")}function ve(r){var e=typeof r;return r!=null&&(e=="object"||e=="function")}var Kn=NaN,eu=/^[-+]0x[0-9a-f]+$/i,tu=/^0b[01]+$/i,ru=/^0o[0-7]+$/i,nu=parseInt;function Jn(r){if(typeof r=="number")return r;if(ws(r))return Kn;if(ve(r)){var e=typeof r.valueOf=="function"?r.valueOf():r;r=ve(e)?e+"":e}if(typeof r!="string")return r===0?r:+r;r=Xa(r);var t=tu.test(r);return t||ru.test(r)?nu(r.slice(2),t?2:8):eu.test(r)?Kn:+r}function Ts(r){return r}var iu="[object AsyncFunction]",su="[object Function]",ou="[object GeneratorFunction]",au="[object Proxy]";function ze(r){if(!ve(r))return!1;var e=De(r);return e==su||e==ou||e==iu||e==au}var uu=be["__core-js_shared__"];const Er=uu;var Gn=(function(){var r=/[^.]+$/.exec(Er&&Er.keys&&Er.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""})();function cu(r){return!!Gn&&Gn in r}var lu=Function.prototype,fu=lu.toString;function Je(r){if(r!=null){try{return fu.call(r)}catch(e){}try{return r+""}catch(e){}}return""}var hu=/[\\^$.*+?()[\]{}|]/g,pu=/^\[object .+?Constructor\]$/,du=Function.prototype,gu=Object.prototype,vu=du.toString,mu=gu.hasOwnProperty,yu=RegExp("^"+vu.call(mu).replace(hu,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function bu(r){if(!ve(r)||cu(r))return!1;var e=ze(r)?yu:pu;return e.test(Je(r))}function _u(r,e){return r==null?void 0:r[e]}function Ge(r,e){var t=_u(r,e);return bu(t)?t:void 0}var wu=Ge(be,"WeakMap");const Jr=wu;var Yn=Object.create,Eu=(function(){function r(){}return function(e){if(!ve(e))return{};if(Yn)return Yn(e);r.prototype=e;var t=new r;return r.prototype=void 0,t}})();const Su=Eu;function Rs(r,e,t){switch(t.length){case 0:return r.call(e);case 1:return r.call(e,t[0]);case 2:return r.call(e,t[0],t[1]);case 3:return r.call(e,t[0],t[1],t[2])}return r.apply(e,t)}function Tu(r,e){var t=-1,n=r.length;for(e||(e=Array(n));++t<n;)e[t]=r[t];return e}var Ru=800,Au=16,xu=Date.now;function Ou(r){var e=0,t=0;return function(){var n=xu(),i=Au-(n-t);if(t=n,i>0){if(++e>=Ru)return arguments[0]}else e=0;return r.apply(void 0,arguments)}}function $u(r){return function(){return r}}var Du=(function(){try{var r=Ge(Object,"defineProperty");return r({},"",{}),r}catch(e){}})();const er=Du;var Cu=er?function(r,e){return er(r,"toString",{configurable:!0,enumerable:!1,value:$u(e),writable:!0})}:Ts;const Bu=Cu;var Pu=Ou(Bu);const ju=Pu;function Nu(r,e){for(var t=-1,n=r==null?0:r.length;++t<n&&e(r[t],t,r)!==!1;);return r}var Iu=9007199254740991,Mu=/^(?:0|[1-9]\d*)$/;function As(r,e){var t=typeof r;return e=e==null?Iu:e,!!e&&(t=="number"||t!="symbol"&&Mu.test(r))&&r>-1&&r%1==0&&r<e}function wn(r,e,t){e=="__proto__"&&er?er(r,e,{configurable:!0,enumerable:!0,value:t,writable:!0}):r[e]=t}function at(r,e){return r===e||r!==r&&e!==e}var Fu=Object.prototype,Lu=Fu.hasOwnProperty;function xs(r,e,t){var n=r[e];(!(Lu.call(r,e)&&at(n,t))||t===void 0&&!(e in r))&&wn(r,e,t)}function Os(r,e,t,n){var i=!t;t||(t={});for(var s=-1,o=e.length;++s<o;){var u=e[s],l=n?n(t[u],r[u],u,t,r):void 0;l===void 0&&(l=r[u]),i?wn(t,u,l):xs(t,u,l)}return t}var Zn=Math.max;function Uu(r,e,t){return e=Zn(e===void 0?r.length-1:e,0),function(){for(var n=arguments,i=-1,s=Zn(n.length-e,0),o=Array(s);++i<s;)o[i]=n[e+i];i=-1;for(var u=Array(e+1);++i<e;)u[i]=n[i];return u[e]=t(o),Rs(r,this,u)}}function $s(r,e){return ju(Uu(r,e,Ts),r+"")}var Hu=9007199254740991;function Ds(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=Hu}function ar(r){return r!=null&&Ds(r.length)&&!ze(r)}function Vu(r,e,t){if(!ve(t))return!1;var n=typeof e;return(n=="number"?ar(t)&&As(e,t.length):n=="string"&&e in t)?at(t[e],r):!1}function Cs(r){return $s(function(e,t){var n=-1,i=t.length,s=i>1?t[i-1]:void 0,o=i>2?t[2]:void 0;for(s=r.length>3&&typeof s=="function"?(i--,s):void 0,o&&Vu(t[0],t[1],o)&&(s=i<3?void 0:s,i=1),e=Object(e);++n<i;){var u=t[n];u&&r(e,u,n,s)}return e})}var ku=Object.prototype;function En(r){var e=r&&r.constructor,t=typeof e=="function"&&e.prototype||ku;return r===t}function qu(r,e){for(var t=-1,n=Array(r);++t<r;)n[t]=e(t);return n}var zu="[object Arguments]";function Qn(r){return ge(r)&&De(r)==zu}var Bs=Object.prototype,Wu=Bs.hasOwnProperty,Ku=Bs.propertyIsEnumerable,Ju=Qn((function(){return arguments})())?Qn:function(r){return ge(r)&&Wu.call(r,"callee")&&!Ku.call(r,"callee")};const Gr=Ju;function Gu(){return!1}var Ps=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Xn=Ps&&typeof module=="object"&&module&&!module.nodeType&&module,Yu=Xn&&Xn.exports===Ps,ei=Yu?be.Buffer:void 0,Zu=ei?ei.isBuffer:void 0,Qu=Zu||Gu;const _t=Qu;var Xu="[object Arguments]",ec="[object Array]",tc="[object Boolean]",rc="[object Date]",nc="[object Error]",ic="[object Function]",sc="[object Map]",oc="[object Number]",ac="[object Object]",uc="[object RegExp]",cc="[object Set]",lc="[object String]",fc="[object WeakMap]",hc="[object ArrayBuffer]",pc="[object DataView]",dc="[object Float32Array]",gc="[object Float64Array]",vc="[object Int8Array]",mc="[object Int16Array]",yc="[object Int32Array]",bc="[object Uint8Array]",_c="[object Uint8ClampedArray]",wc="[object Uint16Array]",Ec="[object Uint32Array]",Y={};Y[dc]=Y[gc]=Y[vc]=Y[mc]=Y[yc]=Y[bc]=Y[_c]=Y[wc]=Y[Ec]=!0;Y[Xu]=Y[ec]=Y[hc]=Y[tc]=Y[pc]=Y[rc]=Y[nc]=Y[ic]=Y[sc]=Y[oc]=Y[ac]=Y[uc]=Y[cc]=Y[lc]=Y[fc]=!1;function Sc(r){return ge(r)&&Ds(r.length)&&!!Y[De(r)]}function Sn(r){return function(e){return r(e)}}var js=typeof exports=="object"&&exports&&!exports.nodeType&&exports,yt=js&&typeof module=="object"&&module&&!module.nodeType&&module,Tc=yt&&yt.exports===js,Sr=Tc&&bs.process,Rc=(function(){try{var r=yt&&yt.require&&yt.require("util").types;return r||Sr&&Sr.binding&&Sr.binding("util")}catch(e){}})();const Ae=Rc;var ti=Ae&&Ae.isTypedArray,Ac=ti?Sn(ti):Sc;const Tn=Ac;var xc=Object.prototype,Oc=xc.hasOwnProperty;function Ns(r,e){var t=$e(r),n=!t&&Gr(r),i=!t&&!n&&_t(r),s=!t&&!n&&!i&&Tn(r),o=t||n||i||s,u=o?qu(r.length,String):[],l=u.length;for(var a in r)(e||Oc.call(r,a))&&!(o&&(a=="length"||i&&(a=="offset"||a=="parent")||s&&(a=="buffer"||a=="byteLength"||a=="byteOffset")||As(a,l)))&&u.push(a);return u}function Is(r,e){return function(t){return r(e(t))}}var $c=Is(Object.keys,Object);const Dc=$c;var Cc=Object.prototype,Bc=Cc.hasOwnProperty;function Pc(r){if(!En(r))return Dc(r);var e=[];for(var t in Object(r))Bc.call(r,t)&&t!="constructor"&&e.push(t);return e}function Ms(r){return ar(r)?Ns(r):Pc(r)}function jc(r){var e=[];if(r!=null)for(var t in Object(r))e.push(t);return e}var Nc=Object.prototype,Ic=Nc.hasOwnProperty;function Mc(r){if(!ve(r))return jc(r);var e=En(r),t=[];for(var n in r)n=="constructor"&&(e||!Ic.call(r,n))||t.push(n);return t}function Rn(r){return ar(r)?Ns(r,!0):Mc(r)}var Fc=Cs(function(r,e,t,n){Os(e,Rn(e),r,n)});const ri=Fc;var Lc=Ge(Object,"create");const wt=Lc;function Uc(){this.__data__=wt?wt(null):{},this.size=0}function Hc(r){var e=this.has(r)&&delete this.__data__[r];return this.size-=e?1:0,e}var Vc="__lodash_hash_undefined__",kc=Object.prototype,qc=kc.hasOwnProperty;function zc(r){var e=this.__data__;if(wt){var t=e[r];return t===Vc?void 0:t}return qc.call(e,r)?e[r]:void 0}var Wc=Object.prototype,Kc=Wc.hasOwnProperty;function Jc(r){var e=this.__data__;return wt?e[r]!==void 0:Kc.call(e,r)}var Gc="__lodash_hash_undefined__";function Yc(r,e){var t=this.__data__;return this.size+=this.has(r)?0:1,t[r]=wt&&e===void 0?Gc:e,this}function We(r){var e=-1,t=r==null?0:r.length;for(this.clear();++e<t;){var n=r[e];this.set(n[0],n[1])}}We.prototype.clear=Uc;We.prototype.delete=Hc;We.prototype.get=zc;We.prototype.has=Jc;We.prototype.set=Yc;function Zc(){this.__data__=[],this.size=0}function ur(r,e){for(var t=r.length;t--;)if(at(r[t][0],e))return t;return-1}var Qc=Array.prototype,Xc=Qc.splice;function el(r){var e=this.__data__,t=ur(e,r);if(t<0)return!1;var n=e.length-1;return t==n?e.pop():Xc.call(e,t,1),--this.size,!0}function tl(r){var e=this.__data__,t=ur(e,r);return t<0?void 0:e[t][1]}function rl(r){return ur(this.__data__,r)>-1}function nl(r,e){var t=this.__data__,n=ur(t,r);return n<0?(++this.size,t.push([r,e])):t[n][1]=e,this}function Ce(r){var e=-1,t=r==null?0:r.length;for(this.clear();++e<t;){var n=r[e];this.set(n[0],n[1])}}Ce.prototype.clear=Zc;Ce.prototype.delete=el;Ce.prototype.get=tl;Ce.prototype.has=rl;Ce.prototype.set=nl;var il=Ge(be,"Map");const Et=il;function sl(){this.size=0,this.__data__={hash:new We,map:new(Et||Ce),string:new We}}function ol(r){var e=typeof r;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?r!=="__proto__":r===null}function cr(r,e){var t=r.__data__;return ol(e)?t[typeof e=="string"?"string":"hash"]:t.map}function al(r){var e=cr(this,r).delete(r);return this.size-=e?1:0,e}function ul(r){return cr(this,r).get(r)}function cl(r){return cr(this,r).has(r)}function ll(r,e){var t=cr(this,r),n=t.size;return t.set(r,e),this.size+=t.size==n?0:1,this}function Be(r){var e=-1,t=r==null?0:r.length;for(this.clear();++e<t;){var n=r[e];this.set(n[0],n[1])}}Be.prototype.clear=sl;Be.prototype.delete=al;Be.prototype.get=ul;Be.prototype.has=cl;Be.prototype.set=ll;var fl="Expected a function";function An(r,e){if(typeof r!="function"||e!=null&&typeof e!="function")throw new TypeError(fl);var t=function(){var n=arguments,i=e?e.apply(this,n):n[0],s=t.cache;if(s.has(i))return s.get(i);var o=r.apply(this,n);return t.cache=s.set(i,o)||s,o};return t.cache=new(An.Cache||Be),t}An.Cache=Be;var hl=500;function pl(r){var e=An(r,function(n){return t.size===hl&&t.clear(),n}),t=e.cache;return e}var dl=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,gl=/\\(\\)?/g;pl(function(r){var e=[];return r.charCodeAt(0)===46&&e.push(""),r.replace(dl,function(t,n,i,s){e.push(i?s.replace(gl,"$1"):n||t)}),e});function ut(r){return r==null?"":Ss(r)}function vl(r,e){for(var t=-1,n=e.length,i=r.length;++t<n;)r[i+t]=e[t];return r}var ml=Is(Object.getPrototypeOf,Object);const Fs=ml;var yl="[object Object]",bl=Function.prototype,_l=Object.prototype,Ls=bl.toString,wl=_l.hasOwnProperty,El=Ls.call(Object);function Us(r){if(!ge(r)||De(r)!=yl)return!1;var e=Fs(r);if(e===null)return!0;var t=wl.call(e,"constructor")&&e.constructor;return typeof t=="function"&&t instanceof t&&Ls.call(t)==El}var Sl="[object DOMException]",Tl="[object Error]";function Hs(r){if(!ge(r))return!1;var e=De(r);return e==Tl||e==Sl||typeof r.message=="string"&&typeof r.name=="string"&&!Us(r)}var Rl=$s(function(r,e){try{return Rs(r,void 0,e)}catch(t){return Hs(t)?t:new Error(t)}});const Al=Rl;function xl(r,e,t){var n=-1,i=r.length;e<0&&(e=-e>i?0:i+e),t=t>i?i:t,t<0&&(t+=i),i=e>t?0:t-e>>>0,e>>>=0;for(var s=Array(i);++n<i;)s[n]=r[n+e];return s}function Ol(r,e,t){var n=r.length;return t=t===void 0?n:t,!e&&t>=n?r:xl(r,e,t)}var $l="\\ud800-\\udfff",Dl="\\u0300-\\u036f",Cl="\\ufe20-\\ufe2f",Bl="\\u20d0-\\u20ff",Pl=Dl+Cl+Bl,jl="\\ufe0e\\ufe0f",Nl="\\u200d",Il=RegExp("["+Nl+$l+Pl+jl+"]");function Vs(r){return Il.test(r)}function Ml(r){return r.split("")}var ks="\\ud800-\\udfff",Fl="\\u0300-\\u036f",Ll="\\ufe20-\\ufe2f",Ul="\\u20d0-\\u20ff",Hl=Fl+Ll+Ul,Vl="\\ufe0e\\ufe0f",kl="["+ks+"]",Yr="["+Hl+"]",Zr="\\ud83c[\\udffb-\\udfff]",ql="(?:"+Yr+"|"+Zr+")",qs="[^"+ks+"]",zs="(?:\\ud83c[\\udde6-\\uddff]){2}",Ws="[\\ud800-\\udbff][\\udc00-\\udfff]",zl="\\u200d",Ks=ql+"?",Js="["+Vl+"]?",Wl="(?:"+zl+"(?:"+[qs,zs,Ws].join("|")+")"+Js+Ks+")*",Kl=Js+Ks+Wl,Jl="(?:"+[qs+Yr+"?",Yr,zs,Ws,kl].join("|")+")",Gl=RegExp(Zr+"(?="+Zr+")|"+Jl+Kl,"g");function Yl(r){return r.match(Gl)||[]}function Zl(r){return Vs(r)?Yl(r):Ml(r)}function Ql(r){return function(e){e=ut(e);var t=Vs(e)?Zl(e):void 0,n=t?t[0]:e.charAt(0),i=t?Ol(t,1).join(""):e.slice(1);return n[r]()+i}}var Xl=Ql("toUpperCase");const Gs=Xl;function ef(r){return Gs(ut(r).toLowerCase())}function tf(r,e,t,n){for(var i=-1,s=r==null?0:r.length;++i<s;)t=e(t,r[i],i,r);return t}function Ys(r){return function(e){return r==null?void 0:r[e]}}var rf={À:"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"},nf=Ys(rf);const sf=nf;var of=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,af="\\u0300-\\u036f",uf="\\ufe20-\\ufe2f",cf="\\u20d0-\\u20ff",lf=af+uf+cf,ff="["+lf+"]",hf=RegExp(ff,"g");function pf(r){return r=ut(r),r&&r.replace(of,sf).replace(hf,"")}var df=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function gf(r){return r.match(df)||[]}var vf=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function mf(r){return vf.test(r)}var Zs="\\ud800-\\udfff",yf="\\u0300-\\u036f",bf="\\ufe20-\\ufe2f",_f="\\u20d0-\\u20ff",wf=yf+bf+_f,Qs="\\u2700-\\u27bf",Xs="a-z\\xdf-\\xf6\\xf8-\\xff",Ef="\\xac\\xb1\\xd7\\xf7",Sf="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Tf="\\u2000-\\u206f",Rf=" \\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",eo="A-Z\\xc0-\\xd6\\xd8-\\xde",Af="\\ufe0e\\ufe0f",to=Ef+Sf+Tf+Rf,ro="['’]",ni="["+to+"]",xf="["+wf+"]",no="\\d+",Of="["+Qs+"]",io="["+Xs+"]",so="[^"+Zs+to+no+Qs+Xs+eo+"]",$f="\\ud83c[\\udffb-\\udfff]",Df="(?:"+xf+"|"+$f+")",Cf="[^"+Zs+"]",oo="(?:\\ud83c[\\udde6-\\uddff]){2}",ao="[\\ud800-\\udbff][\\udc00-\\udfff]",et="["+eo+"]",Bf="\\u200d",ii="(?:"+io+"|"+so+")",Pf="(?:"+et+"|"+so+")",si="(?:"+ro+"(?:d|ll|m|re|s|t|ve))?",oi="(?:"+ro+"(?:D|LL|M|RE|S|T|VE))?",uo=Df+"?",co="["+Af+"]?",jf="(?:"+Bf+"(?:"+[Cf,oo,ao].join("|")+")"+co+uo+")*",Nf="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",If="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Mf=co+uo+jf,Ff="(?:"+[Of,oo,ao].join("|")+")"+Mf,Lf=RegExp([et+"?"+io+"+"+si+"(?="+[ni,et,"$"].join("|")+")",Pf+"+"+oi+"(?="+[ni,et+ii,"$"].join("|")+")",et+"?"+ii+"+"+si,et+"+"+oi,If,Nf,no,Ff].join("|"),"g");function Uf(r){return r.match(Lf)||[]}function Hf(r,e,t){return r=ut(r),e=e,e===void 0?mf(r)?Uf(r):gf(r):r.match(e)||[]}var Vf="['’]",kf=RegExp(Vf,"g");function qf(r){return function(e){return tf(Hf(pf(e).replace(kf,"")),r,"")}}var zf=qf(function(r,e,t){return e=e.toLowerCase(),r+(t?ef(e):e)});const Ee=zf;function Wf(){this.__data__=new Ce,this.size=0}function Kf(r){var e=this.__data__,t=e.delete(r);return this.size=e.size,t}function Jf(r){return this.__data__.get(r)}function Gf(r){return this.__data__.has(r)}var Yf=200;function Zf(r,e){var t=this.__data__;if(t instanceof Ce){var n=t.__data__;if(!Et||n.length<Yf-1)return n.push([r,e]),this.size=++t.size,this;t=this.__data__=new Be(n)}return t.set(r,e),this.size=t.size,this}function Se(r){var e=this.__data__=new Ce(r);this.size=e.size}Se.prototype.clear=Wf;Se.prototype.delete=Kf;Se.prototype.get=Jf;Se.prototype.has=Gf;Se.prototype.set=Zf;var lo=typeof exports=="object"&&exports&&!exports.nodeType&&exports,ai=lo&&typeof module=="object"&&module&&!module.nodeType&&module,Qf=ai&&ai.exports===lo,ui=Qf?be.Buffer:void 0,ci=ui?ui.allocUnsafe:void 0;function fo(r,e){if(e)return r.slice();var t=r.length,n=ci?ci(t):new r.constructor(t);return r.copy(n),n}function Xf(r,e){for(var t=-1,n=r==null?0:r.length,i=0,s=[];++t<n;){var o=r[t];e(o,t,r)&&(s[i++]=o)}return s}function eh(){return[]}var th=Object.prototype,rh=th.propertyIsEnumerable,li=Object.getOwnPropertySymbols,nh=li?function(r){return r==null?[]:(r=Object(r),Xf(li(r),function(e){return rh.call(r,e)}))}:eh;const ih=nh;function sh(r,e,t){var n=e(r);return $e(r)?n:vl(n,t(r))}function Qr(r){return sh(r,Ms,ih)}var oh=Ge(be,"DataView");const Xr=oh;var ah=Ge(be,"Promise");const en=ah;var uh=Ge(be,"Set");const tn=uh;var fi="[object Map]",ch="[object Object]",hi="[object Promise]",pi="[object Set]",di="[object WeakMap]",gi="[object DataView]",lh=Je(Xr),fh=Je(Et),hh=Je(en),ph=Je(tn),dh=Je(Jr),Ve=De;(Xr&&Ve(new Xr(new ArrayBuffer(1)))!=gi||Et&&Ve(new Et)!=fi||en&&Ve(en.resolve())!=hi||tn&&Ve(new tn)!=pi||Jr&&Ve(new Jr)!=di)&&(Ve=function(r){var e=De(r),t=e==ch?r.constructor:void 0,n=t?Je(t):"";if(n)switch(n){case lh:return gi;case fh:return fi;case hh:return hi;case ph:return pi;case dh:return di}return e});const St=Ve;var gh=Object.prototype,vh=gh.hasOwnProperty;function mh(r){var e=r.length,t=new r.constructor(e);return e&&typeof r[0]=="string"&&vh.call(r,"index")&&(t.index=r.index,t.input=r.input),t}var yh=be.Uint8Array;const tr=yh;function xn(r){var e=new r.constructor(r.byteLength);return new tr(e).set(new tr(r)),e}function bh(r,e){var t=xn(r.buffer);return new r.constructor(t,r.byteOffset,r.byteLength)}var _h=/\w*$/;function wh(r){var e=new r.constructor(r.source,_h.exec(r));return e.lastIndex=r.lastIndex,e}var vi=Re?Re.prototype:void 0,mi=vi?vi.valueOf:void 0;function Eh(r){return mi?Object(mi.call(r)):{}}function ho(r,e){var t=e?xn(r.buffer):r.buffer;return new r.constructor(t,r.byteOffset,r.length)}var Sh="[object Boolean]",Th="[object Date]",Rh="[object Map]",Ah="[object Number]",xh="[object RegExp]",Oh="[object Set]",$h="[object String]",Dh="[object Symbol]",Ch="[object ArrayBuffer]",Bh="[object DataView]",Ph="[object Float32Array]",jh="[object Float64Array]",Nh="[object Int8Array]",Ih="[object Int16Array]",Mh="[object Int32Array]",Fh="[object Uint8Array]",Lh="[object Uint8ClampedArray]",Uh="[object Uint16Array]",Hh="[object Uint32Array]";function Vh(r,e,t){var n=r.constructor;switch(e){case Ch:return xn(r);case Sh:case Th:return new n(+r);case Bh:return bh(r);case Ph:case jh:case Nh:case Ih:case Mh:case Fh:case Lh:case Uh:case Hh:return ho(r,t);case Rh:return new n;case Ah:case $h:return new n(r);case xh:return wh(r);case Oh:return new n;case Dh:return Eh(r)}}function po(r){return typeof r.constructor=="function"&&!En(r)?Su(Fs(r)):{}}var kh="[object Map]";function qh(r){return ge(r)&&St(r)==kh}var yi=Ae&&Ae.isMap,zh=yi?Sn(yi):qh;const Wh=zh;var Kh="[object Set]";function Jh(r){return ge(r)&&St(r)==Kh}var bi=Ae&&Ae.isSet,Gh=bi?Sn(bi):Jh;const Yh=Gh;var Zh=1,go="[object Arguments]",Qh="[object Array]",Xh="[object Boolean]",ep="[object Date]",tp="[object Error]",vo="[object Function]",rp="[object GeneratorFunction]",np="[object Map]",ip="[object Number]",mo="[object Object]",sp="[object RegExp]",op="[object Set]",ap="[object String]",up="[object Symbol]",cp="[object WeakMap]",lp="[object ArrayBuffer]",fp="[object DataView]",hp="[object Float32Array]",pp="[object Float64Array]",dp="[object Int8Array]",gp="[object Int16Array]",vp="[object Int32Array]",mp="[object Uint8Array]",yp="[object Uint8ClampedArray]",bp="[object Uint16Array]",_p="[object Uint32Array]",G={};G[go]=G[Qh]=G[lp]=G[fp]=G[Xh]=G[ep]=G[hp]=G[pp]=G[dp]=G[gp]=G[vp]=G[np]=G[ip]=G[mo]=G[sp]=G[op]=G[ap]=G[up]=G[mp]=G[yp]=G[bp]=G[_p]=!0;G[tp]=G[vo]=G[cp]=!1;function Wt(r,e,t,n,i,s){var o,u=e&Zh;if(o!==void 0)return o;if(!ve(r))return r;var l=$e(r);if(l)o=mh(r);else{var a=St(r),c=a==vo||a==rp;if(_t(r))return fo(r,u);if(a==mo||a==go||c&&!i)o=c?{}:po(r);else{if(!G[a])return i?r:{};o=Vh(r,a,u)}}s||(s=new Se);var f=s.get(r);if(f)return f;s.set(r,o),Yh(r)?r.forEach(function(d){o.add(Wt(d,e,t,d,r,s))}):Wh(r)&&r.forEach(function(d,g){o.set(g,Wt(d,e,t,g,r,s))});var h=Qr,p=l?void 0:h(r);return Nu(p||r,function(d,g){p&&(g=d,d=r[g]),xs(o,g,Wt(d,e,t,g,r,s))}),o}var wp=1,Ep=4;function _i(r){return Wt(r,wp|Ep)}var Sp="__lodash_hash_undefined__";function Tp(r){return this.__data__.set(r,Sp),this}function Rp(r){return this.__data__.has(r)}function rr(r){var e=-1,t=r==null?0:r.length;for(this.__data__=new Be;++e<t;)this.add(r[e])}rr.prototype.add=rr.prototype.push=Tp;rr.prototype.has=Rp;function Ap(r,e){for(var t=-1,n=r==null?0:r.length;++t<n;)if(e(r[t],t,r))return!0;return!1}function xp(r,e){return r.has(e)}var Op=1,$p=2;function yo(r,e,t,n,i,s){var o=t&Op,u=r.length,l=e.length;if(u!=l&&!(o&&l>u))return!1;var a=s.get(r),c=s.get(e);if(a&&c)return a==e&&c==r;var f=-1,h=!0,p=t&$p?new rr:void 0;for(s.set(r,e),s.set(e,r);++f<u;){var d=r[f],g=e[f];if(n)var v=o?n(g,d,f,e,r,s):n(d,g,f,r,e,s);if(v!==void 0){if(v)continue;h=!1;break}if(p){if(!Ap(e,function(E,m){if(!xp(p,m)&&(d===E||i(d,E,t,n,s)))return p.push(m)})){h=!1;break}}else if(!(d===g||i(d,g,t,n,s))){h=!1;break}}return s.delete(r),s.delete(e),h}function Dp(r){var e=-1,t=Array(r.size);return r.forEach(function(n,i){t[++e]=[i,n]}),t}function Cp(r){var e=-1,t=Array(r.size);return r.forEach(function(n){t[++e]=n}),t}var Bp=1,Pp=2,jp="[object Boolean]",Np="[object Date]",Ip="[object Error]",Mp="[object Map]",Fp="[object Number]",Lp="[object RegExp]",Up="[object Set]",Hp="[object String]",Vp="[object Symbol]",kp="[object ArrayBuffer]",qp="[object DataView]",wi=Re?Re.prototype:void 0,Tr=wi?wi.valueOf:void 0;function zp(r,e,t,n,i,s,o){switch(t){case qp:if(r.byteLength!=e.byteLength||r.byteOffset!=e.byteOffset)return!1;r=r.buffer,e=e.buffer;case kp:return!(r.byteLength!=e.byteLength||!s(new tr(r),new tr(e)));case jp:case Np:case Fp:return at(+r,+e);case Ip:return r.name==e.name&&r.message==e.message;case Lp:case Hp:return r==e+"";case Mp:var u=Dp;case Up:var l=n&Bp;if(u||(u=Cp),r.size!=e.size&&!l)return!1;var a=o.get(r);if(a)return a==e;n|=Pp,o.set(r,e);var c=yo(u(r),u(e),n,i,s,o);return o.delete(r),c;case Vp:if(Tr)return Tr.call(r)==Tr.call(e)}return!1}var Wp=1,Kp=Object.prototype,Jp=Kp.hasOwnProperty;function Gp(r,e,t,n,i,s){var o=t&Wp,u=Qr(r),l=u.length,a=Qr(e),c=a.length;if(l!=c&&!o)return!1;for(var f=l;f--;){var h=u[f];if(!(o?h in e:Jp.call(e,h)))return!1}var p=s.get(r),d=s.get(e);if(p&&d)return p==e&&d==r;var g=!0;s.set(r,e),s.set(e,r);for(var v=o;++f<l;){h=u[f];var E=r[h],m=e[h];if(n)var b=o?n(m,E,h,e,r,s):n(E,m,h,r,e,s);if(!(b===void 0?E===m||i(E,m,t,n,s):b)){g=!1;break}v||(v=h=="constructor")}if(g&&!v){var _=r.constructor,w=e.constructor;_!=w&&"constructor"in r&&"constructor"in e&&!(typeof _=="function"&&_ instanceof _&&typeof w=="function"&&w instanceof w)&&(g=!1)}return s.delete(r),s.delete(e),g}var Yp=1,Ei="[object Arguments]",Si="[object Array]",Pt="[object Object]",Zp=Object.prototype,Ti=Zp.hasOwnProperty;function Qp(r,e,t,n,i,s){var o=$e(r),u=$e(e),l=o?Si:St(r),a=u?Si:St(e);l=l==Ei?Pt:l,a=a==Ei?Pt:a;var c=l==Pt,f=a==Pt,h=l==a;if(h&&_t(r)){if(!_t(e))return!1;o=!0,c=!1}if(h&&!c)return s||(s=new Se),o||Tn(r)?yo(r,e,t,n,i,s):zp(r,e,l,t,n,i,s);if(!(t&Yp)){var p=c&&Ti.call(r,"__wrapped__"),d=f&&Ti.call(e,"__wrapped__");if(p||d){var g=p?r.value():r,v=d?e.value():e;return s||(s=new Se),i(g,v,t,n,s)}}return h?(s||(s=new Se),Gp(r,e,t,n,i,s)):!1}function bo(r,e,t,n,i){return r===e?!0:r==null||e==null||!ge(r)&&!ge(e)?r!==r&&e!==e:Qp(r,e,t,n,bo,i)}function Xp(r){return function(e,t,n){for(var i=-1,s=Object(e),o=n(e),u=o.length;u--;){var l=o[++i];if(t(s[l],l,s)===!1)break}return e}}var ed=Xp();const td=ed;var rd=function(){return be.Date.now()};const Rr=rd;var nd="Expected a function",id=Math.max,sd=Math.min;function On(r,e,t){var n,i,s,o,u,l,a=0,c=!1,f=!1,h=!0;if(typeof r!="function")throw new TypeError(nd);e=Jn(e)||0,ve(t)&&(c=!!t.leading,f="maxWait"in t,s=f?id(Jn(t.maxWait)||0,e):s,h="trailing"in t?!!t.trailing:h);function p(y){var T=n,O=i;return n=i=void 0,a=y,o=r.apply(O,T),o}function d(y){return a=y,u=setTimeout(E,e),c?p(y):o}function g(y){var T=y-l,O=y-a,L=e-T;return f?sd(L,s-O):L}function v(y){var T=y-l,O=y-a;return l===void 0||T>=e||T<0||f&&O>=s}function E(){var y=Rr();if(v(y))return m(y);u=setTimeout(E,g(y))}function m(y){return u=void 0,h&&n?p(y):(n=i=void 0,o)}function b(){u!==void 0&&clearTimeout(u),a=0,n=l=i=u=void 0}function _(){return u===void 0?o:m(Rr())}function w(){var y=Rr(),T=v(y);if(n=arguments,i=this,l=y,T){if(u===void 0)return d(l);if(f)return clearTimeout(u),u=setTimeout(E,e),p(l)}return u===void 0&&(u=setTimeout(E,e)),o}return w.cancel=b,w.flush=_,w}function rn(r,e,t){(t!==void 0&&!at(r[e],t)||t===void 0&&!(e in r))&&wn(r,e,t)}function od(r){return ge(r)&&ar(r)}function nn(r,e){if(!(e==="constructor"&&typeof r[e]=="function")&&e!="__proto__")return r[e]}function ad(r){return Os(r,Rn(r))}function ud(r,e,t,n,i,s,o){var u=nn(r,t),l=nn(e,t),a=o.get(l);if(a){rn(r,t,a);return}var c=s?s(u,l,t+"",r,e,o):void 0,f=c===void 0;if(f){var h=$e(l),p=!h&&_t(l),d=!h&&!p&&Tn(l);c=l,h||p||d?$e(u)?c=u:od(u)?c=Tu(u):p?(f=!1,c=fo(l,!0)):d?(f=!1,c=ho(l,!0)):c=[]:Us(l)||Gr(l)?(c=u,Gr(u)?c=ad(u):(!ve(u)||ze(u))&&(c=po(l))):f=!1}f&&(o.set(l,c),i(c,l,n,s,o),o.delete(l)),rn(r,t,c)}function _o(r,e,t,n,i){r!==e&&td(e,function(s,o){if(i||(i=new Se),ve(s))ud(r,e,o,t,_o,n,i);else{var u=n?n(nn(r,o),s,o+"",r,e,i):void 0;u===void 0&&(u=s),rn(r,o,u)}},Rn)}var cd={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},ld=Ys(cd);const fd=ld;var wo=/[&<>"']/g,hd=RegExp(wo.source);function pd(r){return r=ut(r),r&&hd.test(r)?r.replace(wo,fd):r}var dd="[object String]";function Me(r){return typeof r=="string"||!$e(r)&&ge(r)&&De(r)==dd}function gd(r,e){return Es(e,function(t){return r[t]})}Ae&&Ae.isArrayBuffer;Ae&&Ae.isDate;function vd(r,e){return bo(r,e)}var md=Cs(function(r,e,t){_o(r,e,t)});const vt=md;var Eo=Object.prototype,yd=Eo.hasOwnProperty;function Ri(r,e,t,n){return r===void 0||at(r,Eo[t])&&!yd.call(n,t)?e:r}var bd={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"};function _d(r){return"\\"+bd[r]}var wd=/<%=([\s\S]+?)%>/g;const So=wd;var Ed=/<%-([\s\S]+?)%>/g;const Sd=Ed;var Td=/<%([\s\S]+?)%>/g;const Rd=Td;var Ad={escape:Sd,evaluate:Rd,interpolate:So,variable:"",imports:{_:{escape:pd}}};const Ai=Ad;var xd="Invalid `variable` option passed into `_.template`",Od=/\b__p \+= '';/g,$d=/\b(__p \+=) '' \+/g,Dd=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Cd=/[()=,{}\[\]\/\s]/,Bd=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,jt=/($^)/,Pd=/['\n\r\u2028\u2029\\]/g,jd=Object.prototype,xi=jd.hasOwnProperty;function Nd(r,e,t){var n=Ai.imports._.templateSettings||Ai;r=ut(r),e=ri({},e,n,Ri);var i=ri({},e.imports,n.imports,Ri),s=Ms(i),o=gd(i,s),u,l,a=0,c=e.interpolate||jt,f="__p += '",h=RegExp((e.escape||jt).source+"|"+c.source+"|"+(c===So?Bd:jt).source+"|"+(e.evaluate||jt).source+"|$","g"),p=xi.call(e,"sourceURL")?"//# sourceURL="+(e.sourceURL+"").replace(/\s/g," ")+`
3
- `:"";r.replace(h,function(v,E,m,b,_,w){return m||(m=b),f+=r.slice(a,w).replace(Pd,_d),E&&(u=!0,f+=`' +
2
+ var Ta=Object.defineProperty,Ra=Object.defineProperties;var Aa=Object.getOwnPropertyDescriptors;var Ln=Object.getOwnPropertySymbols;var xa=Object.prototype.hasOwnProperty,Oa=Object.prototype.propertyIsEnumerable;var Ye=(t,e)=>(e=Symbol[t])?e:Symbol.for("Symbol."+t),$a=t=>{throw TypeError(t)};var br=(t,e,r)=>e in t?Ta(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,V=(t,e)=>{for(var r in e||(e={}))xa.call(e,r)&&br(t,r,e[r]);if(Ln)for(var r of Ln(e))Oa.call(e,r)&&br(t,r,e[r]);return t},re=(t,e)=>Ra(t,Aa(e));var k=(t,e,r)=>br(t,typeof e!="symbol"?e+"":e,r);var U=(t,e,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(t,e)).next())}),Ue=function(t,e){this[0]=t,this[1]=e},_r=(t,e,r)=>{var n=(o,u,l,a)=>{try{var c=r[o](u),f=(u=c.value)instanceof Ue,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(t,e),s[Ye("asyncIterator")]=()=>s,i("next"),i("throw"),i("return"),s},wr=t=>{var e=t[Ye("asyncIterator")],r=!1,n,i={};return e==null?(e=t[Ye("iterator")](),n=s=>i[s]=o=>e[s](o)):(e=e.call(t),n=s=>i[s]=o=>{if(r){if(r=!1,s==="throw")throw o;return o}return r=!0,{done:!1,value:new Ue(new Promise(u=>{var l=e[s](o);l instanceof Object||$a("Object expected"),u(l)}),1)}}),i[Ye("iterator")]=()=>i,n("next"),"throw"in e?n("throw"):i.throw=s=>{throw s},"return"in e&&n("return"),i},Un=(t,e,r)=>(e=t[Ye("asyncIterator")])?e.call(t):(t=t[Ye("iterator")](),e={},r=(n,i)=>(i=t[n])&&(e[n]=s=>new Promise((o,u,l)=>(s=i.call(t,s),l=s.done,Promise.resolve(s.value).then(a=>o({value:a,done:l}),u)))),r("next"),r("return"),e);import{g as Hn,d as ys,h as Kr,f as Da,W as or,i as Ca}from"./@dcloudio-uni-h5-vue-BmOkhsCk.js";import{useRoute as Ba}from"./vue-router-BaL-Hp_b.js";import"./vue-DefuvV9N.js";import"./@dcloudio-uni-shared-bWpOwtAM.js";(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.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 Pa="modulepreload",ja=function(t,e){return new URL(t,e).href},Vn={},kn=function(e,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=ja(c,n),c in Vn)return;Vn[c]=!0;const f=c.endsWith(".css"),h=f?'[rel="stylesheet"]':"";if(!!n)for(let g=u.length-1;g>=0;g--){const v=u[g];if(v.href===c&&(!f||v.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${c}"]${h}`))return;const d=document.createElement("link");if(d.rel=f?"stylesheet":Pa,f||(d.as="script"),d.crossOrigin="",d.href=c,a&&d.setAttribute("nonce",a),document.head.appendChild(d),f)return new Promise((g,v)=>{d.addEventListener("load",g),d.addEventListener("error",()=>v(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 e().catch(s)})};var Na={ENV_TYPE:"live",NODE_ENV:"production"},Ia=typeof global=="object"&&global&&global.Object===Object&&global;const bs=Ia;var Ma=typeof self=="object"&&self&&self.Object===Object&&self,Fa=bs||Ma||Function("return this")();const be=Fa;var La=be.Symbol;const Re=La;var _s=Object.prototype,Ua=_s.hasOwnProperty,Ha=_s.toString,pt=Re?Re.toStringTag:void 0;function Va(t){var e=Ua.call(t,pt),r=t[pt];try{t[pt]=void 0;var n=!0}catch(s){}var i=Ha.call(t);return n&&(e?t[pt]=r:delete t[pt]),i}var ka=Object.prototype,qa=ka.toString;function za(t){return qa.call(t)}var Wa="[object Null]",Ka="[object Undefined]",qn=Re?Re.toStringTag:void 0;function De(t){return t==null?t===void 0?Ka:Wa:qn&&qn in Object(t)?Va(t):za(t)}function ge(t){return t!=null&&typeof t=="object"}var Ja="[object Symbol]";function ws(t){return typeof t=="symbol"||ge(t)&&De(t)==Ja}function Es(t,e){for(var r=-1,n=t==null?0:t.length,i=Array(n);++r<n;)i[r]=e(t[r],r,t);return i}var Ga=Array.isArray;const $e=Ga;var zn=Re?Re.prototype:void 0,Wn=zn?zn.toString:void 0;function Ss(t){if(typeof t=="string")return t;if($e(t))return Es(t,Ss)+"";if(ws(t))return Wn?Wn.call(t):"";var e=t+"";return e=="0"&&1/t==-1/0?"-0":e}var Ya=/\s/;function Za(t){for(var e=t.length;e--&&Ya.test(t.charAt(e)););return e}var Qa=/^\s+/;function Xa(t){return t&&t.slice(0,Za(t)+1).replace(Qa,"")}function ve(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var Kn=NaN,eu=/^[-+]0x[0-9a-f]+$/i,tu=/^0b[01]+$/i,ru=/^0o[0-7]+$/i,nu=parseInt;function Jn(t){if(typeof t=="number")return t;if(ws(t))return Kn;if(ve(t)){var e=typeof t.valueOf=="function"?t.valueOf():t;t=ve(e)?e+"":e}if(typeof t!="string")return t===0?t:+t;t=Xa(t);var r=tu.test(t);return r||ru.test(t)?nu(t.slice(2),r?2:8):eu.test(t)?Kn:+t}function Ts(t){return t}var iu="[object AsyncFunction]",su="[object Function]",ou="[object GeneratorFunction]",au="[object Proxy]";function ze(t){if(!ve(t))return!1;var e=De(t);return e==su||e==ou||e==iu||e==au}var uu=be["__core-js_shared__"];const Er=uu;var Gn=(function(){var t=/[^.]+$/.exec(Er&&Er.keys&&Er.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""})();function cu(t){return!!Gn&&Gn in t}var lu=Function.prototype,fu=lu.toString;function Je(t){if(t!=null){try{return fu.call(t)}catch(e){}try{return t+""}catch(e){}}return""}var hu=/[\\^$.*+?()[\]{}|]/g,pu=/^\[object .+?Constructor\]$/,du=Function.prototype,gu=Object.prototype,vu=du.toString,mu=gu.hasOwnProperty,yu=RegExp("^"+vu.call(mu).replace(hu,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function bu(t){if(!ve(t)||cu(t))return!1;var e=ze(t)?yu:pu;return e.test(Je(t))}function _u(t,e){return t==null?void 0:t[e]}function Ge(t,e){var r=_u(t,e);return bu(r)?r:void 0}var wu=Ge(be,"WeakMap");const Jr=wu;var Yn=Object.create,Eu=(function(){function t(){}return function(e){if(!ve(e))return{};if(Yn)return Yn(e);t.prototype=e;var r=new t;return t.prototype=void 0,r}})();const Su=Eu;function Rs(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)}function Tu(t,e){var r=-1,n=t.length;for(e||(e=Array(n));++r<n;)e[r]=t[r];return e}var Ru=800,Au=16,xu=Date.now;function Ou(t){var e=0,r=0;return function(){var n=xu(),i=Au-(n-r);if(r=n,i>0){if(++e>=Ru)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}function $u(t){return function(){return t}}var Du=(function(){try{var t=Ge(Object,"defineProperty");return t({},"",{}),t}catch(e){}})();const er=Du;var Cu=er?function(t,e){return er(t,"toString",{configurable:!0,enumerable:!1,value:$u(e),writable:!0})}:Ts;const Bu=Cu;var Pu=Ou(Bu);const ju=Pu;function Nu(t,e){for(var r=-1,n=t==null?0:t.length;++r<n&&e(t[r],r,t)!==!1;);return t}var Iu=9007199254740991,Mu=/^(?:0|[1-9]\d*)$/;function As(t,e){var r=typeof t;return e=e==null?Iu:e,!!e&&(r=="number"||r!="symbol"&&Mu.test(t))&&t>-1&&t%1==0&&t<e}function wn(t,e,r){e=="__proto__"&&er?er(t,e,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[e]=r}function at(t,e){return t===e||t!==t&&e!==e}var Fu=Object.prototype,Lu=Fu.hasOwnProperty;function xs(t,e,r){var n=t[e];(!(Lu.call(t,e)&&at(n,r))||r===void 0&&!(e in t))&&wn(t,e,r)}function Os(t,e,r,n){var i=!r;r||(r={});for(var s=-1,o=e.length;++s<o;){var u=e[s],l=n?n(r[u],t[u],u,r,t):void 0;l===void 0&&(l=t[u]),i?wn(r,u,l):xs(r,u,l)}return r}var Zn=Math.max;function Uu(t,e,r){return e=Zn(e===void 0?t.length-1:e,0),function(){for(var n=arguments,i=-1,s=Zn(n.length-e,0),o=Array(s);++i<s;)o[i]=n[e+i];i=-1;for(var u=Array(e+1);++i<e;)u[i]=n[i];return u[e]=r(o),Rs(t,this,u)}}function $s(t,e){return ju(Uu(t,e,Ts),t+"")}var Hu=9007199254740991;function Ds(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=Hu}function ar(t){return t!=null&&Ds(t.length)&&!ze(t)}function Vu(t,e,r){if(!ve(r))return!1;var n=typeof e;return(n=="number"?ar(r)&&As(e,r.length):n=="string"&&e in r)?at(r[e],t):!1}function Cs(t){return $s(function(e,r){var n=-1,i=r.length,s=i>1?r[i-1]:void 0,o=i>2?r[2]:void 0;for(s=t.length>3&&typeof s=="function"?(i--,s):void 0,o&&Vu(r[0],r[1],o)&&(s=i<3?void 0:s,i=1),e=Object(e);++n<i;){var u=r[n];u&&t(e,u,n,s)}return e})}var ku=Object.prototype;function En(t){var e=t&&t.constructor,r=typeof e=="function"&&e.prototype||ku;return t===r}function qu(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}var zu="[object Arguments]";function Qn(t){return ge(t)&&De(t)==zu}var Bs=Object.prototype,Wu=Bs.hasOwnProperty,Ku=Bs.propertyIsEnumerable,Ju=Qn((function(){return arguments})())?Qn:function(t){return ge(t)&&Wu.call(t,"callee")&&!Ku.call(t,"callee")};const Gr=Ju;function Gu(){return!1}var Ps=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Xn=Ps&&typeof module=="object"&&module&&!module.nodeType&&module,Yu=Xn&&Xn.exports===Ps,ei=Yu?be.Buffer:void 0,Zu=ei?ei.isBuffer:void 0,Qu=Zu||Gu;const _t=Qu;var Xu="[object Arguments]",ec="[object Array]",tc="[object Boolean]",rc="[object Date]",nc="[object Error]",ic="[object Function]",sc="[object Map]",oc="[object Number]",ac="[object Object]",uc="[object RegExp]",cc="[object Set]",lc="[object String]",fc="[object WeakMap]",hc="[object ArrayBuffer]",pc="[object DataView]",dc="[object Float32Array]",gc="[object Float64Array]",vc="[object Int8Array]",mc="[object Int16Array]",yc="[object Int32Array]",bc="[object Uint8Array]",_c="[object Uint8ClampedArray]",wc="[object Uint16Array]",Ec="[object Uint32Array]",Y={};Y[dc]=Y[gc]=Y[vc]=Y[mc]=Y[yc]=Y[bc]=Y[_c]=Y[wc]=Y[Ec]=!0;Y[Xu]=Y[ec]=Y[hc]=Y[tc]=Y[pc]=Y[rc]=Y[nc]=Y[ic]=Y[sc]=Y[oc]=Y[ac]=Y[uc]=Y[cc]=Y[lc]=Y[fc]=!1;function Sc(t){return ge(t)&&Ds(t.length)&&!!Y[De(t)]}function Sn(t){return function(e){return t(e)}}var js=typeof exports=="object"&&exports&&!exports.nodeType&&exports,yt=js&&typeof module=="object"&&module&&!module.nodeType&&module,Tc=yt&&yt.exports===js,Sr=Tc&&bs.process,Rc=(function(){try{var t=yt&&yt.require&&yt.require("util").types;return t||Sr&&Sr.binding&&Sr.binding("util")}catch(e){}})();const Ae=Rc;var ti=Ae&&Ae.isTypedArray,Ac=ti?Sn(ti):Sc;const Tn=Ac;var xc=Object.prototype,Oc=xc.hasOwnProperty;function Ns(t,e){var r=$e(t),n=!r&&Gr(t),i=!r&&!n&&_t(t),s=!r&&!n&&!i&&Tn(t),o=r||n||i||s,u=o?qu(t.length,String):[],l=u.length;for(var a in t)(e||Oc.call(t,a))&&!(o&&(a=="length"||i&&(a=="offset"||a=="parent")||s&&(a=="buffer"||a=="byteLength"||a=="byteOffset")||As(a,l)))&&u.push(a);return u}function Is(t,e){return function(r){return t(e(r))}}var $c=Is(Object.keys,Object);const Dc=$c;var Cc=Object.prototype,Bc=Cc.hasOwnProperty;function Pc(t){if(!En(t))return Dc(t);var e=[];for(var r in Object(t))Bc.call(t,r)&&r!="constructor"&&e.push(r);return e}function Ms(t){return ar(t)?Ns(t):Pc(t)}function jc(t){var e=[];if(t!=null)for(var r in Object(t))e.push(r);return e}var Nc=Object.prototype,Ic=Nc.hasOwnProperty;function Mc(t){if(!ve(t))return jc(t);var e=En(t),r=[];for(var n in t)n=="constructor"&&(e||!Ic.call(t,n))||r.push(n);return r}function Rn(t){return ar(t)?Ns(t,!0):Mc(t)}var Fc=Cs(function(t,e,r,n){Os(e,Rn(e),t,n)});const ri=Fc;var Lc=Ge(Object,"create");const wt=Lc;function Uc(){this.__data__=wt?wt(null):{},this.size=0}function Hc(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var Vc="__lodash_hash_undefined__",kc=Object.prototype,qc=kc.hasOwnProperty;function zc(t){var e=this.__data__;if(wt){var r=e[t];return r===Vc?void 0:r}return qc.call(e,t)?e[t]:void 0}var Wc=Object.prototype,Kc=Wc.hasOwnProperty;function Jc(t){var e=this.__data__;return wt?e[t]!==void 0:Kc.call(e,t)}var Gc="__lodash_hash_undefined__";function Yc(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=wt&&e===void 0?Gc:e,this}function We(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}We.prototype.clear=Uc;We.prototype.delete=Hc;We.prototype.get=zc;We.prototype.has=Jc;We.prototype.set=Yc;function Zc(){this.__data__=[],this.size=0}function ur(t,e){for(var r=t.length;r--;)if(at(t[r][0],e))return r;return-1}var Qc=Array.prototype,Xc=Qc.splice;function el(t){var e=this.__data__,r=ur(e,t);if(r<0)return!1;var n=e.length-1;return r==n?e.pop():Xc.call(e,r,1),--this.size,!0}function tl(t){var e=this.__data__,r=ur(e,t);return r<0?void 0:e[r][1]}function rl(t){return ur(this.__data__,t)>-1}function nl(t,e){var r=this.__data__,n=ur(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this}function Ce(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}Ce.prototype.clear=Zc;Ce.prototype.delete=el;Ce.prototype.get=tl;Ce.prototype.has=rl;Ce.prototype.set=nl;var il=Ge(be,"Map");const Et=il;function sl(){this.size=0,this.__data__={hash:new We,map:new(Et||Ce),string:new We}}function ol(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}function cr(t,e){var r=t.__data__;return ol(e)?r[typeof e=="string"?"string":"hash"]:r.map}function al(t){var e=cr(this,t).delete(t);return this.size-=e?1:0,e}function ul(t){return cr(this,t).get(t)}function cl(t){return cr(this,t).has(t)}function ll(t,e){var r=cr(this,t),n=r.size;return r.set(t,e),this.size+=r.size==n?0:1,this}function Be(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}Be.prototype.clear=sl;Be.prototype.delete=al;Be.prototype.get=ul;Be.prototype.has=cl;Be.prototype.set=ll;var fl="Expected a function";function An(t,e){if(typeof t!="function"||e!=null&&typeof e!="function")throw new TypeError(fl);var r=function(){var n=arguments,i=e?e.apply(this,n):n[0],s=r.cache;if(s.has(i))return s.get(i);var o=t.apply(this,n);return r.cache=s.set(i,o)||s,o};return r.cache=new(An.Cache||Be),r}An.Cache=Be;var hl=500;function pl(t){var e=An(t,function(n){return r.size===hl&&r.clear(),n}),r=e.cache;return e}var dl=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,gl=/\\(\\)?/g;pl(function(t){var e=[];return t.charCodeAt(0)===46&&e.push(""),t.replace(dl,function(r,n,i,s){e.push(i?s.replace(gl,"$1"):n||r)}),e});function ut(t){return t==null?"":Ss(t)}function vl(t,e){for(var r=-1,n=e.length,i=t.length;++r<n;)t[i+r]=e[r];return t}var ml=Is(Object.getPrototypeOf,Object);const Fs=ml;var yl="[object Object]",bl=Function.prototype,_l=Object.prototype,Ls=bl.toString,wl=_l.hasOwnProperty,El=Ls.call(Object);function Us(t){if(!ge(t)||De(t)!=yl)return!1;var e=Fs(t);if(e===null)return!0;var r=wl.call(e,"constructor")&&e.constructor;return typeof r=="function"&&r instanceof r&&Ls.call(r)==El}var Sl="[object DOMException]",Tl="[object Error]";function Hs(t){if(!ge(t))return!1;var e=De(t);return e==Tl||e==Sl||typeof t.message=="string"&&typeof t.name=="string"&&!Us(t)}var Rl=$s(function(t,e){try{return Rs(t,void 0,e)}catch(r){return Hs(r)?r:new Error(r)}});const Al=Rl;function xl(t,e,r){var n=-1,i=t.length;e<0&&(e=-e>i?0:i+e),r=r>i?i:r,r<0&&(r+=i),i=e>r?0:r-e>>>0,e>>>=0;for(var s=Array(i);++n<i;)s[n]=t[n+e];return s}function Ol(t,e,r){var n=t.length;return r=r===void 0?n:r,!e&&r>=n?t:xl(t,e,r)}var $l="\\ud800-\\udfff",Dl="\\u0300-\\u036f",Cl="\\ufe20-\\ufe2f",Bl="\\u20d0-\\u20ff",Pl=Dl+Cl+Bl,jl="\\ufe0e\\ufe0f",Nl="\\u200d",Il=RegExp("["+Nl+$l+Pl+jl+"]");function Vs(t){return Il.test(t)}function Ml(t){return t.split("")}var ks="\\ud800-\\udfff",Fl="\\u0300-\\u036f",Ll="\\ufe20-\\ufe2f",Ul="\\u20d0-\\u20ff",Hl=Fl+Ll+Ul,Vl="\\ufe0e\\ufe0f",kl="["+ks+"]",Yr="["+Hl+"]",Zr="\\ud83c[\\udffb-\\udfff]",ql="(?:"+Yr+"|"+Zr+")",qs="[^"+ks+"]",zs="(?:\\ud83c[\\udde6-\\uddff]){2}",Ws="[\\ud800-\\udbff][\\udc00-\\udfff]",zl="\\u200d",Ks=ql+"?",Js="["+Vl+"]?",Wl="(?:"+zl+"(?:"+[qs,zs,Ws].join("|")+")"+Js+Ks+")*",Kl=Js+Ks+Wl,Jl="(?:"+[qs+Yr+"?",Yr,zs,Ws,kl].join("|")+")",Gl=RegExp(Zr+"(?="+Zr+")|"+Jl+Kl,"g");function Yl(t){return t.match(Gl)||[]}function Zl(t){return Vs(t)?Yl(t):Ml(t)}function Ql(t){return function(e){e=ut(e);var r=Vs(e)?Zl(e):void 0,n=r?r[0]:e.charAt(0),i=r?Ol(r,1).join(""):e.slice(1);return n[t]()+i}}var Xl=Ql("toUpperCase");const Gs=Xl;function ef(t){return Gs(ut(t).toLowerCase())}function tf(t,e,r,n){for(var i=-1,s=t==null?0:t.length;++i<s;)r=e(r,t[i],i,t);return r}function Ys(t){return function(e){return t==null?void 0:t[e]}}var rf={À:"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"},nf=Ys(rf);const sf=nf;var of=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,af="\\u0300-\\u036f",uf="\\ufe20-\\ufe2f",cf="\\u20d0-\\u20ff",lf=af+uf+cf,ff="["+lf+"]",hf=RegExp(ff,"g");function pf(t){return t=ut(t),t&&t.replace(of,sf).replace(hf,"")}var df=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function gf(t){return t.match(df)||[]}var vf=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function mf(t){return vf.test(t)}var Zs="\\ud800-\\udfff",yf="\\u0300-\\u036f",bf="\\ufe20-\\ufe2f",_f="\\u20d0-\\u20ff",wf=yf+bf+_f,Qs="\\u2700-\\u27bf",Xs="a-z\\xdf-\\xf6\\xf8-\\xff",Ef="\\xac\\xb1\\xd7\\xf7",Sf="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Tf="\\u2000-\\u206f",Rf=" \\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",eo="A-Z\\xc0-\\xd6\\xd8-\\xde",Af="\\ufe0e\\ufe0f",to=Ef+Sf+Tf+Rf,ro="['’]",ni="["+to+"]",xf="["+wf+"]",no="\\d+",Of="["+Qs+"]",io="["+Xs+"]",so="[^"+Zs+to+no+Qs+Xs+eo+"]",$f="\\ud83c[\\udffb-\\udfff]",Df="(?:"+xf+"|"+$f+")",Cf="[^"+Zs+"]",oo="(?:\\ud83c[\\udde6-\\uddff]){2}",ao="[\\ud800-\\udbff][\\udc00-\\udfff]",et="["+eo+"]",Bf="\\u200d",ii="(?:"+io+"|"+so+")",Pf="(?:"+et+"|"+so+")",si="(?:"+ro+"(?:d|ll|m|re|s|t|ve))?",oi="(?:"+ro+"(?:D|LL|M|RE|S|T|VE))?",uo=Df+"?",co="["+Af+"]?",jf="(?:"+Bf+"(?:"+[Cf,oo,ao].join("|")+")"+co+uo+")*",Nf="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",If="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Mf=co+uo+jf,Ff="(?:"+[Of,oo,ao].join("|")+")"+Mf,Lf=RegExp([et+"?"+io+"+"+si+"(?="+[ni,et,"$"].join("|")+")",Pf+"+"+oi+"(?="+[ni,et+ii,"$"].join("|")+")",et+"?"+ii+"+"+si,et+"+"+oi,If,Nf,no,Ff].join("|"),"g");function Uf(t){return t.match(Lf)||[]}function Hf(t,e,r){return t=ut(t),e=e,e===void 0?mf(t)?Uf(t):gf(t):t.match(e)||[]}var Vf="['’]",kf=RegExp(Vf,"g");function qf(t){return function(e){return tf(Hf(pf(e).replace(kf,"")),t,"")}}var zf=qf(function(t,e,r){return e=e.toLowerCase(),t+(r?ef(e):e)});const Ee=zf;function Wf(){this.__data__=new Ce,this.size=0}function Kf(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r}function Jf(t){return this.__data__.get(t)}function Gf(t){return this.__data__.has(t)}var Yf=200;function Zf(t,e){var r=this.__data__;if(r instanceof Ce){var n=r.__data__;if(!Et||n.length<Yf-1)return n.push([t,e]),this.size=++r.size,this;r=this.__data__=new Be(n)}return r.set(t,e),this.size=r.size,this}function Se(t){var e=this.__data__=new Ce(t);this.size=e.size}Se.prototype.clear=Wf;Se.prototype.delete=Kf;Se.prototype.get=Jf;Se.prototype.has=Gf;Se.prototype.set=Zf;var lo=typeof exports=="object"&&exports&&!exports.nodeType&&exports,ai=lo&&typeof module=="object"&&module&&!module.nodeType&&module,Qf=ai&&ai.exports===lo,ui=Qf?be.Buffer:void 0,ci=ui?ui.allocUnsafe:void 0;function fo(t,e){if(e)return t.slice();var r=t.length,n=ci?ci(r):new t.constructor(r);return t.copy(n),n}function Xf(t,e){for(var r=-1,n=t==null?0:t.length,i=0,s=[];++r<n;){var o=t[r];e(o,r,t)&&(s[i++]=o)}return s}function eh(){return[]}var th=Object.prototype,rh=th.propertyIsEnumerable,li=Object.getOwnPropertySymbols,nh=li?function(t){return t==null?[]:(t=Object(t),Xf(li(t),function(e){return rh.call(t,e)}))}:eh;const ih=nh;function sh(t,e,r){var n=e(t);return $e(t)?n:vl(n,r(t))}function Qr(t){return sh(t,Ms,ih)}var oh=Ge(be,"DataView");const Xr=oh;var ah=Ge(be,"Promise");const en=ah;var uh=Ge(be,"Set");const tn=uh;var fi="[object Map]",ch="[object Object]",hi="[object Promise]",pi="[object Set]",di="[object WeakMap]",gi="[object DataView]",lh=Je(Xr),fh=Je(Et),hh=Je(en),ph=Je(tn),dh=Je(Jr),Ve=De;(Xr&&Ve(new Xr(new ArrayBuffer(1)))!=gi||Et&&Ve(new Et)!=fi||en&&Ve(en.resolve())!=hi||tn&&Ve(new tn)!=pi||Jr&&Ve(new Jr)!=di)&&(Ve=function(t){var e=De(t),r=e==ch?t.constructor:void 0,n=r?Je(r):"";if(n)switch(n){case lh:return gi;case fh:return fi;case hh:return hi;case ph:return pi;case dh:return di}return e});const St=Ve;var gh=Object.prototype,vh=gh.hasOwnProperty;function mh(t){var e=t.length,r=new t.constructor(e);return e&&typeof t[0]=="string"&&vh.call(t,"index")&&(r.index=t.index,r.input=t.input),r}var yh=be.Uint8Array;const tr=yh;function xn(t){var e=new t.constructor(t.byteLength);return new tr(e).set(new tr(t)),e}function bh(t,e){var r=xn(t.buffer);return new t.constructor(r,t.byteOffset,t.byteLength)}var _h=/\w*$/;function wh(t){var e=new t.constructor(t.source,_h.exec(t));return e.lastIndex=t.lastIndex,e}var vi=Re?Re.prototype:void 0,mi=vi?vi.valueOf:void 0;function Eh(t){return mi?Object(mi.call(t)):{}}function ho(t,e){var r=e?xn(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length)}var Sh="[object Boolean]",Th="[object Date]",Rh="[object Map]",Ah="[object Number]",xh="[object RegExp]",Oh="[object Set]",$h="[object String]",Dh="[object Symbol]",Ch="[object ArrayBuffer]",Bh="[object DataView]",Ph="[object Float32Array]",jh="[object Float64Array]",Nh="[object Int8Array]",Ih="[object Int16Array]",Mh="[object Int32Array]",Fh="[object Uint8Array]",Lh="[object Uint8ClampedArray]",Uh="[object Uint16Array]",Hh="[object Uint32Array]";function Vh(t,e,r){var n=t.constructor;switch(e){case Ch:return xn(t);case Sh:case Th:return new n(+t);case Bh:return bh(t);case Ph:case jh:case Nh:case Ih:case Mh:case Fh:case Lh:case Uh:case Hh:return ho(t,r);case Rh:return new n;case Ah:case $h:return new n(t);case xh:return wh(t);case Oh:return new n;case Dh:return Eh(t)}}function po(t){return typeof t.constructor=="function"&&!En(t)?Su(Fs(t)):{}}var kh="[object Map]";function qh(t){return ge(t)&&St(t)==kh}var yi=Ae&&Ae.isMap,zh=yi?Sn(yi):qh;const Wh=zh;var Kh="[object Set]";function Jh(t){return ge(t)&&St(t)==Kh}var bi=Ae&&Ae.isSet,Gh=bi?Sn(bi):Jh;const Yh=Gh;var Zh=1,go="[object Arguments]",Qh="[object Array]",Xh="[object Boolean]",ep="[object Date]",tp="[object Error]",vo="[object Function]",rp="[object GeneratorFunction]",np="[object Map]",ip="[object Number]",mo="[object Object]",sp="[object RegExp]",op="[object Set]",ap="[object String]",up="[object Symbol]",cp="[object WeakMap]",lp="[object ArrayBuffer]",fp="[object DataView]",hp="[object Float32Array]",pp="[object Float64Array]",dp="[object Int8Array]",gp="[object Int16Array]",vp="[object Int32Array]",mp="[object Uint8Array]",yp="[object Uint8ClampedArray]",bp="[object Uint16Array]",_p="[object Uint32Array]",G={};G[go]=G[Qh]=G[lp]=G[fp]=G[Xh]=G[ep]=G[hp]=G[pp]=G[dp]=G[gp]=G[vp]=G[np]=G[ip]=G[mo]=G[sp]=G[op]=G[ap]=G[up]=G[mp]=G[yp]=G[bp]=G[_p]=!0;G[tp]=G[vo]=G[cp]=!1;function Wt(t,e,r,n,i,s){var o,u=e&Zh;if(o!==void 0)return o;if(!ve(t))return t;var l=$e(t);if(l)o=mh(t);else{var a=St(t),c=a==vo||a==rp;if(_t(t))return fo(t,u);if(a==mo||a==go||c&&!i)o=c?{}:po(t);else{if(!G[a])return i?t:{};o=Vh(t,a,u)}}s||(s=new Se);var f=s.get(t);if(f)return f;s.set(t,o),Yh(t)?t.forEach(function(d){o.add(Wt(d,e,r,d,t,s))}):Wh(t)&&t.forEach(function(d,g){o.set(g,Wt(d,e,r,g,t,s))});var h=Qr,p=l?void 0:h(t);return Nu(p||t,function(d,g){p&&(g=d,d=t[g]),xs(o,g,Wt(d,e,r,g,t,s))}),o}var wp=1,Ep=4;function _i(t){return Wt(t,wp|Ep)}var Sp="__lodash_hash_undefined__";function Tp(t){return this.__data__.set(t,Sp),this}function Rp(t){return this.__data__.has(t)}function rr(t){var e=-1,r=t==null?0:t.length;for(this.__data__=new Be;++e<r;)this.add(t[e])}rr.prototype.add=rr.prototype.push=Tp;rr.prototype.has=Rp;function Ap(t,e){for(var r=-1,n=t==null?0:t.length;++r<n;)if(e(t[r],r,t))return!0;return!1}function xp(t,e){return t.has(e)}var Op=1,$p=2;function yo(t,e,r,n,i,s){var o=r&Op,u=t.length,l=e.length;if(u!=l&&!(o&&l>u))return!1;var a=s.get(t),c=s.get(e);if(a&&c)return a==e&&c==t;var f=-1,h=!0,p=r&$p?new rr:void 0;for(s.set(t,e),s.set(e,t);++f<u;){var d=t[f],g=e[f];if(n)var v=o?n(g,d,f,e,t,s):n(d,g,f,t,e,s);if(v!==void 0){if(v)continue;h=!1;break}if(p){if(!Ap(e,function(E,m){if(!xp(p,m)&&(d===E||i(d,E,r,n,s)))return p.push(m)})){h=!1;break}}else if(!(d===g||i(d,g,r,n,s))){h=!1;break}}return s.delete(t),s.delete(e),h}function Dp(t){var e=-1,r=Array(t.size);return t.forEach(function(n,i){r[++e]=[i,n]}),r}function Cp(t){var e=-1,r=Array(t.size);return t.forEach(function(n){r[++e]=n}),r}var Bp=1,Pp=2,jp="[object Boolean]",Np="[object Date]",Ip="[object Error]",Mp="[object Map]",Fp="[object Number]",Lp="[object RegExp]",Up="[object Set]",Hp="[object String]",Vp="[object Symbol]",kp="[object ArrayBuffer]",qp="[object DataView]",wi=Re?Re.prototype:void 0,Tr=wi?wi.valueOf:void 0;function zp(t,e,r,n,i,s,o){switch(r){case qp:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case kp:return!(t.byteLength!=e.byteLength||!s(new tr(t),new tr(e)));case jp:case Np:case Fp:return at(+t,+e);case Ip:return t.name==e.name&&t.message==e.message;case Lp:case Hp:return t==e+"";case Mp:var u=Dp;case Up:var l=n&Bp;if(u||(u=Cp),t.size!=e.size&&!l)return!1;var a=o.get(t);if(a)return a==e;n|=Pp,o.set(t,e);var c=yo(u(t),u(e),n,i,s,o);return o.delete(t),c;case Vp:if(Tr)return Tr.call(t)==Tr.call(e)}return!1}var Wp=1,Kp=Object.prototype,Jp=Kp.hasOwnProperty;function Gp(t,e,r,n,i,s){var o=r&Wp,u=Qr(t),l=u.length,a=Qr(e),c=a.length;if(l!=c&&!o)return!1;for(var f=l;f--;){var h=u[f];if(!(o?h in e:Jp.call(e,h)))return!1}var p=s.get(t),d=s.get(e);if(p&&d)return p==e&&d==t;var g=!0;s.set(t,e),s.set(e,t);for(var v=o;++f<l;){h=u[f];var E=t[h],m=e[h];if(n)var b=o?n(m,E,h,e,t,s):n(E,m,h,t,e,s);if(!(b===void 0?E===m||i(E,m,r,n,s):b)){g=!1;break}v||(v=h=="constructor")}if(g&&!v){var _=t.constructor,w=e.constructor;_!=w&&"constructor"in t&&"constructor"in e&&!(typeof _=="function"&&_ instanceof _&&typeof w=="function"&&w instanceof w)&&(g=!1)}return s.delete(t),s.delete(e),g}var Yp=1,Ei="[object Arguments]",Si="[object Array]",Pt="[object Object]",Zp=Object.prototype,Ti=Zp.hasOwnProperty;function Qp(t,e,r,n,i,s){var o=$e(t),u=$e(e),l=o?Si:St(t),a=u?Si:St(e);l=l==Ei?Pt:l,a=a==Ei?Pt:a;var c=l==Pt,f=a==Pt,h=l==a;if(h&&_t(t)){if(!_t(e))return!1;o=!0,c=!1}if(h&&!c)return s||(s=new Se),o||Tn(t)?yo(t,e,r,n,i,s):zp(t,e,l,r,n,i,s);if(!(r&Yp)){var p=c&&Ti.call(t,"__wrapped__"),d=f&&Ti.call(e,"__wrapped__");if(p||d){var g=p?t.value():t,v=d?e.value():e;return s||(s=new Se),i(g,v,r,n,s)}}return h?(s||(s=new Se),Gp(t,e,r,n,i,s)):!1}function bo(t,e,r,n,i){return t===e?!0:t==null||e==null||!ge(t)&&!ge(e)?t!==t&&e!==e:Qp(t,e,r,n,bo,i)}function Xp(t){return function(e,r,n){for(var i=-1,s=Object(e),o=n(e),u=o.length;u--;){var l=o[++i];if(r(s[l],l,s)===!1)break}return e}}var ed=Xp();const td=ed;var rd=function(){return be.Date.now()};const Rr=rd;var nd="Expected a function",id=Math.max,sd=Math.min;function On(t,e,r){var n,i,s,o,u,l,a=0,c=!1,f=!1,h=!0;if(typeof t!="function")throw new TypeError(nd);e=Jn(e)||0,ve(r)&&(c=!!r.leading,f="maxWait"in r,s=f?id(Jn(r.maxWait)||0,e):s,h="trailing"in r?!!r.trailing:h);function p(y){var T=n,O=i;return n=i=void 0,a=y,o=t.apply(O,T),o}function d(y){return a=y,u=setTimeout(E,e),c?p(y):o}function g(y){var T=y-l,O=y-a,L=e-T;return f?sd(L,s-O):L}function v(y){var T=y-l,O=y-a;return l===void 0||T>=e||T<0||f&&O>=s}function E(){var y=Rr();if(v(y))return m(y);u=setTimeout(E,g(y))}function m(y){return u=void 0,h&&n?p(y):(n=i=void 0,o)}function b(){u!==void 0&&clearTimeout(u),a=0,n=l=i=u=void 0}function _(){return u===void 0?o:m(Rr())}function w(){var y=Rr(),T=v(y);if(n=arguments,i=this,l=y,T){if(u===void 0)return d(l);if(f)return clearTimeout(u),u=setTimeout(E,e),p(l)}return u===void 0&&(u=setTimeout(E,e)),o}return w.cancel=b,w.flush=_,w}function rn(t,e,r){(r!==void 0&&!at(t[e],r)||r===void 0&&!(e in t))&&wn(t,e,r)}function od(t){return ge(t)&&ar(t)}function nn(t,e){if(!(e==="constructor"&&typeof t[e]=="function")&&e!="__proto__")return t[e]}function ad(t){return Os(t,Rn(t))}function ud(t,e,r,n,i,s,o){var u=nn(t,r),l=nn(e,r),a=o.get(l);if(a){rn(t,r,a);return}var c=s?s(u,l,r+"",t,e,o):void 0,f=c===void 0;if(f){var h=$e(l),p=!h&&_t(l),d=!h&&!p&&Tn(l);c=l,h||p||d?$e(u)?c=u:od(u)?c=Tu(u):p?(f=!1,c=fo(l,!0)):d?(f=!1,c=ho(l,!0)):c=[]:Us(l)||Gr(l)?(c=u,Gr(u)?c=ad(u):(!ve(u)||ze(u))&&(c=po(l))):f=!1}f&&(o.set(l,c),i(c,l,n,s,o),o.delete(l)),rn(t,r,c)}function _o(t,e,r,n,i){t!==e&&td(e,function(s,o){if(i||(i=new Se),ve(s))ud(t,e,o,r,_o,n,i);else{var u=n?n(nn(t,o),s,o+"",t,e,i):void 0;u===void 0&&(u=s),rn(t,o,u)}},Rn)}var cd={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},ld=Ys(cd);const fd=ld;var wo=/[&<>"']/g,hd=RegExp(wo.source);function pd(t){return t=ut(t),t&&hd.test(t)?t.replace(wo,fd):t}var dd="[object String]";function Me(t){return typeof t=="string"||!$e(t)&&ge(t)&&De(t)==dd}function gd(t,e){return Es(e,function(r){return t[r]})}Ae&&Ae.isArrayBuffer;Ae&&Ae.isDate;function vd(t,e){return bo(t,e)}var md=Cs(function(t,e,r){_o(t,e,r)});const vt=md;var Eo=Object.prototype,yd=Eo.hasOwnProperty;function Ri(t,e,r,n){return t===void 0||at(t,Eo[r])&&!yd.call(n,r)?e:t}var bd={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"};function _d(t){return"\\"+bd[t]}var wd=/<%=([\s\S]+?)%>/g;const So=wd;var Ed=/<%-([\s\S]+?)%>/g;const Sd=Ed;var Td=/<%([\s\S]+?)%>/g;const Rd=Td;var Ad={escape:Sd,evaluate:Rd,interpolate:So,variable:"",imports:{_:{escape:pd}}};const Ai=Ad;var xd="Invalid `variable` option passed into `_.template`",Od=/\b__p \+= '';/g,$d=/\b(__p \+=) '' \+/g,Dd=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Cd=/[()=,{}\[\]\/\s]/,Bd=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,jt=/($^)/,Pd=/['\n\r\u2028\u2029\\]/g,jd=Object.prototype,xi=jd.hasOwnProperty;function Nd(t,e,r){var n=Ai.imports._.templateSettings||Ai;t=ut(t),e=ri({},e,n,Ri);var i=ri({},e.imports,n.imports,Ri),s=Ms(i),o=gd(i,s),u,l,a=0,c=e.interpolate||jt,f="__p += '",h=RegExp((e.escape||jt).source+"|"+c.source+"|"+(c===So?Bd:jt).source+"|"+(e.evaluate||jt).source+"|$","g"),p=xi.call(e,"sourceURL")?"//# sourceURL="+(e.sourceURL+"").replace(/\s/g," ")+`
3
+ `:"";t.replace(h,function(v,E,m,b,_,w){return m||(m=b),f+=t.slice(a,w).replace(Pd,_d),E&&(u=!0,f+=`' +
4
4
  __e(`+E+`) +
5
5
  '`),_&&(l=!0,f+=`';
6
6
  `+_+`;
@@ -16,61 +16,65 @@ __p += '`),m&&(f+=`' +
16
16
  function print() { __p += __j.call(arguments, '') }
17
17
  `:`;
18
18
  `)+f+`return __p
19
- }`;var g=Al(function(){return Function(s,p+"return "+f).apply(void 0,o)});if(g.source=f,Hs(g))throw g;return g}var Id="Expected a function";function Md(r,e,t){var n=!0,i=!0;if(typeof r!="function")throw new TypeError(Id);return ve(t)&&(n="leading"in t?!0:n,i="trailing"in t?!1:i),On(r,e,{leading:n,maxWait:e,trailing:i})}function Fd(r){return Gs(Ee(r))}var oe=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function Ld(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var To={exports:{}};function Ud(r){throw new Error('Could not dynamically require "'+r+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Ar={exports:{}},Oi;function Fe(){return Oi||(Oi=1,(function(r,e){(function(t,n){r.exports=n()})(oe,function(){var t=t||(function(n,i){var s;if(typeof window!="undefined"&&window.crypto&&(s=window.crypto),typeof self!="undefined"&&self.crypto&&(s=self.crypto),typeof globalThis!="undefined"&&globalThis.crypto&&(s=globalThis.crypto),!s&&typeof window!="undefined"&&window.msCrypto&&(s=window.msCrypto),!s&&typeof oe!="undefined"&&oe.crypto&&(s=oe.crypto),!s&&typeof Ud=="function")try{s=require("crypto")}catch(m){}var o=function(){if(s){if(typeof s.getRandomValues=="function")try{return s.getRandomValues(new Uint32Array(1))[0]}catch(m){}if(typeof s.randomBytes=="function")try{return s.randomBytes(4).readInt32LE()}catch(m){}}throw new Error("Native crypto module could not be used to get secure random number.")},u=Object.create||(function(){function m(){}return function(b){var _;return m.prototype=b,_=new m,m.prototype=null,_}})(),l={},a=l.lib={},c=a.Base=(function(){return{extend:function(m){var b=u(this);return m&&b.mixIn(m),(!b.hasOwnProperty("init")||this.init===b.init)&&(b.init=function(){b.$super.init.apply(this,arguments)}),b.init.prototype=b,b.$super=this,b},create:function(){var m=this.extend();return m.init.apply(m,arguments),m},init:function(){},mixIn:function(m){for(var b in m)m.hasOwnProperty(b)&&(this[b]=m[b]);m.hasOwnProperty("toString")&&(this.toString=m.toString)},clone:function(){return this.init.prototype.extend(this)}}})(),f=a.WordArray=c.extend({init:function(m,b){m=this.words=m||[],b!=i?this.sigBytes=b:this.sigBytes=m.length*4},toString:function(m){return(m||p).stringify(this)},concat:function(m){var b=this.words,_=m.words,w=this.sigBytes,y=m.sigBytes;if(this.clamp(),w%4)for(var T=0;T<y;T++){var O=_[T>>>2]>>>24-T%4*8&255;b[w+T>>>2]|=O<<24-(w+T)%4*8}else for(var L=0;L<y;L+=4)b[w+L>>>2]=_[L>>>2];return this.sigBytes+=y,this},clamp:function(){var m=this.words,b=this.sigBytes;m[b>>>2]&=4294967295<<32-b%4*8,m.length=n.ceil(b/4)},clone:function(){var m=c.clone.call(this);return m.words=this.words.slice(0),m},random:function(m){for(var b=[],_=0;_<m;_+=4)b.push(o());return new f.init(b,m)}}),h=l.enc={},p=h.Hex={stringify:function(m){for(var b=m.words,_=m.sigBytes,w=[],y=0;y<_;y++){var T=b[y>>>2]>>>24-y%4*8&255;w.push((T>>>4).toString(16)),w.push((T&15).toString(16))}return w.join("")},parse:function(m){for(var b=m.length,_=[],w=0;w<b;w+=2)_[w>>>3]|=parseInt(m.substr(w,2),16)<<24-w%8*4;return new f.init(_,b/2)}},d=h.Latin1={stringify:function(m){for(var b=m.words,_=m.sigBytes,w=[],y=0;y<_;y++){var T=b[y>>>2]>>>24-y%4*8&255;w.push(String.fromCharCode(T))}return w.join("")},parse:function(m){for(var b=m.length,_=[],w=0;w<b;w++)_[w>>>2]|=(m.charCodeAt(w)&255)<<24-w%4*8;return new f.init(_,b)}},g=h.Utf8={stringify:function(m){try{return decodeURIComponent(escape(d.stringify(m)))}catch(b){throw new Error("Malformed UTF-8 data")}},parse:function(m){return d.parse(unescape(encodeURIComponent(m)))}},v=a.BufferedBlockAlgorithm=c.extend({reset:function(){this._data=new f.init,this._nDataBytes=0},_append:function(m){typeof m=="string"&&(m=g.parse(m)),this._data.concat(m),this._nDataBytes+=m.sigBytes},_process:function(m){var b,_=this._data,w=_.words,y=_.sigBytes,T=this.blockSize,O=T*4,L=y/O;m?L=n.ceil(L):L=n.max((L|0)-this._minBufferSize,0);var S=L*T,A=n.min(S*4,y);if(S){for(var M=0;M<S;M+=T)this._doProcessBlock(w,M);b=w.splice(0,S),_.sigBytes-=A}return new f.init(b,A)},clone:function(){var m=c.clone.call(this);return m._data=this._data.clone(),m},_minBufferSize:0});a.Hasher=v.extend({cfg:c.extend(),init:function(m){this.cfg=this.cfg.extend(m),this.reset()},reset:function(){v.reset.call(this),this._doReset()},update:function(m){return this._append(m),this._process(),this},finalize:function(m){m&&this._append(m);var b=this._doFinalize();return b},blockSize:16,_createHelper:function(m){return function(b,_){return new m.init(_).finalize(b)}},_createHmacHelper:function(m){return function(b,_){return new E.HMAC.init(m,_).finalize(b)}}});var E=l.algo={};return l})(Math);return t})})(Ar)),Ar.exports}(function(r,e){(function(t,n){r.exports=n(Fe())})(oe,function(t){return(function(n){var i=t,s=i.lib,o=s.WordArray,u=s.Hasher,l=i.algo,a=[];(function(){for(var g=0;g<64;g++)a[g]=n.abs(n.sin(g+1))*4294967296|0})();var c=l.MD5=u.extend({_doReset:function(){this._hash=new o.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(g,v){for(var E=0;E<16;E++){var m=v+E,b=g[m];g[m]=(b<<8|b>>>24)&16711935|(b<<24|b>>>8)&4278255360}var _=this._hash.words,w=g[v+0],y=g[v+1],T=g[v+2],O=g[v+3],L=g[v+4],S=g[v+5],A=g[v+6],M=g[v+7],j=g[v+8],I=g[v+9],B=g[v+10],$=g[v+11],H=g[v+12],F=g[v+13],q=g[v+14],z=g[v+15],x=_[0],C=_[1],D=_[2],N=_[3];x=f(x,C,D,N,w,7,a[0]),N=f(N,x,C,D,y,12,a[1]),D=f(D,N,x,C,T,17,a[2]),C=f(C,D,N,x,O,22,a[3]),x=f(x,C,D,N,L,7,a[4]),N=f(N,x,C,D,S,12,a[5]),D=f(D,N,x,C,A,17,a[6]),C=f(C,D,N,x,M,22,a[7]),x=f(x,C,D,N,j,7,a[8]),N=f(N,x,C,D,I,12,a[9]),D=f(D,N,x,C,B,17,a[10]),C=f(C,D,N,x,$,22,a[11]),x=f(x,C,D,N,H,7,a[12]),N=f(N,x,C,D,F,12,a[13]),D=f(D,N,x,C,q,17,a[14]),C=f(C,D,N,x,z,22,a[15]),x=h(x,C,D,N,y,5,a[16]),N=h(N,x,C,D,A,9,a[17]),D=h(D,N,x,C,$,14,a[18]),C=h(C,D,N,x,w,20,a[19]),x=h(x,C,D,N,S,5,a[20]),N=h(N,x,C,D,B,9,a[21]),D=h(D,N,x,C,z,14,a[22]),C=h(C,D,N,x,L,20,a[23]),x=h(x,C,D,N,I,5,a[24]),N=h(N,x,C,D,q,9,a[25]),D=h(D,N,x,C,O,14,a[26]),C=h(C,D,N,x,j,20,a[27]),x=h(x,C,D,N,F,5,a[28]),N=h(N,x,C,D,T,9,a[29]),D=h(D,N,x,C,M,14,a[30]),C=h(C,D,N,x,H,20,a[31]),x=p(x,C,D,N,S,4,a[32]),N=p(N,x,C,D,j,11,a[33]),D=p(D,N,x,C,$,16,a[34]),C=p(C,D,N,x,q,23,a[35]),x=p(x,C,D,N,y,4,a[36]),N=p(N,x,C,D,L,11,a[37]),D=p(D,N,x,C,M,16,a[38]),C=p(C,D,N,x,B,23,a[39]),x=p(x,C,D,N,F,4,a[40]),N=p(N,x,C,D,w,11,a[41]),D=p(D,N,x,C,O,16,a[42]),C=p(C,D,N,x,A,23,a[43]),x=p(x,C,D,N,I,4,a[44]),N=p(N,x,C,D,H,11,a[45]),D=p(D,N,x,C,z,16,a[46]),C=p(C,D,N,x,T,23,a[47]),x=d(x,C,D,N,w,6,a[48]),N=d(N,x,C,D,M,10,a[49]),D=d(D,N,x,C,q,15,a[50]),C=d(C,D,N,x,S,21,a[51]),x=d(x,C,D,N,H,6,a[52]),N=d(N,x,C,D,O,10,a[53]),D=d(D,N,x,C,B,15,a[54]),C=d(C,D,N,x,y,21,a[55]),x=d(x,C,D,N,j,6,a[56]),N=d(N,x,C,D,z,10,a[57]),D=d(D,N,x,C,A,15,a[58]),C=d(C,D,N,x,F,21,a[59]),x=d(x,C,D,N,L,6,a[60]),N=d(N,x,C,D,$,10,a[61]),D=d(D,N,x,C,T,15,a[62]),C=d(C,D,N,x,I,21,a[63]),_[0]=_[0]+x|0,_[1]=_[1]+C|0,_[2]=_[2]+D|0,_[3]=_[3]+N|0},_doFinalize:function(){var g=this._data,v=g.words,E=this._nDataBytes*8,m=g.sigBytes*8;v[m>>>5]|=128<<24-m%32;var b=n.floor(E/4294967296),_=E;v[(m+64>>>9<<4)+15]=(b<<8|b>>>24)&16711935|(b<<24|b>>>8)&4278255360,v[(m+64>>>9<<4)+14]=(_<<8|_>>>24)&16711935|(_<<24|_>>>8)&4278255360,g.sigBytes=(v.length+1)*4,this._process();for(var w=this._hash,y=w.words,T=0;T<4;T++){var O=y[T];y[T]=(O<<8|O>>>24)&16711935|(O<<24|O>>>8)&4278255360}return w},clone:function(){var g=u.clone.call(this);return g._hash=this._hash.clone(),g}});function f(g,v,E,m,b,_,w){var y=g+(v&E|~v&m)+b+w;return(y<<_|y>>>32-_)+v}function h(g,v,E,m,b,_,w){var y=g+(v&m|E&~m)+b+w;return(y<<_|y>>>32-_)+v}function p(g,v,E,m,b,_,w){var y=g+(v^E^m)+b+w;return(y<<_|y>>>32-_)+v}function d(g,v,E,m,b,_,w){var y=g+(E^(v|~m))+b+w;return(y<<_|y>>>32-_)+v}i.MD5=u._createHelper(c),i.HmacMD5=u._createHmacHelper(c)})(Math),t.MD5})})(To);var Hd=To.exports,Ro={exports:{}};(function(r,e){(function(t,n){r.exports=n(Fe())})(oe,function(t){return(function(){var n=t,i=n.lib,s=i.WordArray,o=n.enc;o.Base64={stringify:function(l){var a=l.words,c=l.sigBytes,f=this._map;l.clamp();for(var h=[],p=0;p<c;p+=3)for(var d=a[p>>>2]>>>24-p%4*8&255,g=a[p+1>>>2]>>>24-(p+1)%4*8&255,v=a[p+2>>>2]>>>24-(p+2)%4*8&255,E=d<<16|g<<8|v,m=0;m<4&&p+m*.75<c;m++)h.push(f.charAt(E>>>6*(3-m)&63));var b=f.charAt(64);if(b)for(;h.length%4;)h.push(b);return h.join("")},parse:function(l){var a=l.length,c=this._map,f=this._reverseMap;if(!f){f=this._reverseMap=[];for(var h=0;h<c.length;h++)f[c.charCodeAt(h)]=h}var p=c.charAt(64);if(p){var d=l.indexOf(p);d!==-1&&(a=d)}return u(l,a,f)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function u(l,a,c){for(var f=[],h=0,p=0;p<a;p++)if(p%4){var d=c[l.charCodeAt(p-1)]<<p%4*2,g=c[l.charCodeAt(p)]>>>6-p%4*2,v=d|g;f[h>>>2]|=v<<24-h%4*8,h++}return s.create(f,h)}})(),t.enc.Base64})})(Ro);var Vd=Ro.exports,kd={exports:{}};(function(r,e){(function(t,n){r.exports=n(Fe())})(oe,function(t){return t.enc.Utf8})})(kd);var qd={exports:{}},xr={exports:{}},Or={exports:{}},$i;function zd(){return $i||($i=1,(function(r,e){(function(t,n){r.exports=n(Fe())})(oe,function(t){return(function(){var n=t,i=n.lib,s=i.WordArray,o=i.Hasher,u=n.algo,l=[],a=u.SHA1=o.extend({_doReset:function(){this._hash=new s.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(c,f){for(var h=this._hash.words,p=h[0],d=h[1],g=h[2],v=h[3],E=h[4],m=0;m<80;m++){if(m<16)l[m]=c[f+m]|0;else{var b=l[m-3]^l[m-8]^l[m-14]^l[m-16];l[m]=b<<1|b>>>31}var _=(p<<5|p>>>27)+E+l[m];m<20?_+=(d&g|~d&v)+1518500249:m<40?_+=(d^g^v)+1859775393:m<60?_+=(d&g|d&v|g&v)-1894007588:_+=(d^g^v)-899497514,E=v,v=g,g=d<<30|d>>>2,d=p,p=_}h[0]=h[0]+p|0,h[1]=h[1]+d|0,h[2]=h[2]+g|0,h[3]=h[3]+v|0,h[4]=h[4]+E|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)})(),t.SHA1})})(Or)),Or.exports}var $r={exports:{}},Di;function Wd(){return Di||(Di=1,(function(r,e){(function(t,n){r.exports=n(Fe())})(oe,function(t){(function(){var n=t,i=n.lib,s=i.Base,o=n.enc,u=o.Utf8,l=n.algo;l.HMAC=s.extend({init:function(a,c){a=this._hasher=new a.init,typeof c=="string"&&(c=u.parse(c));var f=a.blockSize,h=f*4;c.sigBytes>h&&(c=a.finalize(c)),c.clamp();for(var p=this._oKey=c.clone(),d=this._iKey=c.clone(),g=p.words,v=d.words,E=0;E<f;E++)g[E]^=1549556828,v[E]^=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}})})()})})($r)),$r.exports}var Ci;function Ao(){return Ci||(Ci=1,(function(r,e){(function(t,n,i){r.exports=n(Fe(),zd(),Wd())})(oe,function(t){return(function(){var n=t,i=n.lib,s=i.Base,o=i.WordArray,u=n.algo,l=u.MD5,a=u.EvpKDF=s.extend({cfg:s.extend({keySize:128/32,hasher:l,iterations:1}),init:function(c){this.cfg=this.cfg.extend(c)},compute:function(c,f){for(var h,p=this.cfg,d=p.hasher.create(),g=o.create(),v=g.words,E=p.keySize,m=p.iterations;v.length<E;){h&&d.update(h),h=d.update(c).finalize(f),d.reset();for(var b=1;b<m;b++)h=d.finalize(h),d.reset();g.concat(h)}return g.sigBytes=E*4,g}});n.EvpKDF=function(c,f,h){return a.create(h).compute(c,f)}})(),t.EvpKDF})})(xr)),xr.exports}var Dr={exports:{}},Bi;function Kd(){return Bi||(Bi=1,(function(r,e){(function(t,n,i){r.exports=n(Fe(),Ao())})(oe,function(t){t.lib.Cipher||(function(n){var i=t,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(S,A){return this.create(this._ENC_XFORM_MODE,S,A)},createDecryptor:function(S,A){return this.create(this._DEC_XFORM_MODE,S,A)},init:function(S,A,M){this.cfg=this.cfg.extend(M),this._xformMode=S,this._key=A,this.reset()},reset:function(){l.reset.call(this),this._doReset()},process:function(S){return this._append(S),this._process()},finalize:function(S){S&&this._append(S);var A=this._doFinalize();return A},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:(function(){function S(A){return typeof A=="string"?L:y}return function(A){return{encrypt:function(M,j,I){return S(j).encrypt(A,M,j,I)},decrypt:function(M,j,I){return S(j).decrypt(A,M,j,I)}}}})()});s.StreamCipher=p.extend({_doFinalize:function(){var S=this._process(!0);return S},blockSize:1});var d=i.mode={},g=s.BlockCipherMode=o.extend({createEncryptor:function(S,A){return this.Encryptor.create(S,A)},createDecryptor:function(S,A){return this.Decryptor.create(S,A)},init:function(S,A){this._cipher=S,this._iv=A}}),v=d.CBC=(function(){var S=g.extend();S.Encryptor=S.extend({processBlock:function(M,j){var I=this._cipher,B=I.blockSize;A.call(this,M,j,B),I.encryptBlock(M,j),this._prevBlock=M.slice(j,j+B)}}),S.Decryptor=S.extend({processBlock:function(M,j){var I=this._cipher,B=I.blockSize,$=M.slice(j,j+B);I.decryptBlock(M,j),A.call(this,M,j,B),this._prevBlock=$}});function A(M,j,I){var B,$=this._iv;$?(B=$,this._iv=n):B=this._prevBlock;for(var H=0;H<I;H++)M[j+H]^=B[H]}return S})(),E=i.pad={},m=E.Pkcs7={pad:function(S,A){for(var M=A*4,j=M-S.sigBytes%M,I=j<<24|j<<16|j<<8|j,B=[],$=0;$<j;$+=4)B.push(I);var H=u.create(B,j);S.concat(H)},unpad:function(S){var A=S.words[S.sigBytes-1>>>2]&255;S.sigBytes-=A}};s.BlockCipher=p.extend({cfg:p.cfg.extend({mode:v,padding:m}),reset:function(){var S;p.reset.call(this);var A=this.cfg,M=A.iv,j=A.mode;this._xformMode==this._ENC_XFORM_MODE?S=j.createEncryptor:(S=j.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==S?this._mode.init(this,M&&M.words):(this._mode=S.call(j,this,M&&M.words),this._mode.__creator=S)},_doProcessBlock:function(S,A){this._mode.processBlock(S,A)},_doFinalize:function(){var S,A=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(A.pad(this._data,this.blockSize),S=this._process(!0)):(S=this._process(!0),A.unpad(S)),S},blockSize:128/32});var b=s.CipherParams=o.extend({init:function(S){this.mixIn(S)},toString:function(S){return(S||this.formatter).stringify(this)}}),_=i.format={},w=_.OpenSSL={stringify:function(S){var A,M=S.ciphertext,j=S.salt;return j?A=u.create([1398893684,1701076831]).concat(j).concat(M):A=M,A.toString(c)},parse:function(S){var A,M=c.parse(S),j=M.words;return j[0]==1398893684&&j[1]==1701076831&&(A=u.create(j.slice(2,4)),j.splice(0,4),M.sigBytes-=16),b.create({ciphertext:M,salt:A})}},y=s.SerializableCipher=o.extend({cfg:o.extend({format:w}),encrypt:function(S,A,M,j){j=this.cfg.extend(j);var I=S.createEncryptor(M,j),B=I.finalize(A),$=I.cfg;return b.create({ciphertext:B,key:M,iv:$.iv,algorithm:S,mode:$.mode,padding:$.padding,blockSize:S.blockSize,formatter:j.format})},decrypt:function(S,A,M,j){j=this.cfg.extend(j),A=this._parse(A,j.format);var I=S.createDecryptor(M,j).finalize(A.ciphertext);return I},_parse:function(S,A){return typeof S=="string"?A.parse(S,this):S}}),T=i.kdf={},O=T.OpenSSL={execute:function(S,A,M,j,I){if(j||(j=u.random(64/8)),I)var B=h.create({keySize:A+M,hasher:I}).compute(S,j);else var B=h.create({keySize:A+M}).compute(S,j);var $=u.create(B.words.slice(A),M*4);return B.sigBytes=A*4,b.create({key:B,iv:$,salt:j})}},L=s.PasswordBasedCipher=y.extend({cfg:y.cfg.extend({kdf:O}),encrypt:function(S,A,M,j){j=this.cfg.extend(j);var I=j.kdf.execute(M,S.keySize,S.ivSize,j.salt,j.hasher);j.iv=I.iv;var B=y.encrypt.call(this,S,A,I.key,j);return B.mixIn(I),B},decrypt:function(S,A,M,j){j=this.cfg.extend(j),A=this._parse(A,j.format);var I=j.kdf.execute(M,S.keySize,S.ivSize,A.salt,j.hasher);j.iv=I.iv;var B=y.decrypt.call(this,S,A,I.key,j);return B}})})()})})(Dr)),Dr.exports}(function(r,e){(function(t,n,i){r.exports=n(Fe(),Vd,Hd,Ao(),Kd())})(oe,function(t){return(function(){var n=t,i=n.lib,s=i.BlockCipher,o=n.algo,u=[],l=[],a=[],c=[],f=[],h=[],p=[],d=[],g=[],v=[];(function(){for(var b=[],_=0;_<256;_++)_<128?b[_]=_<<1:b[_]=_<<1^283;for(var w=0,y=0,_=0;_<256;_++){var T=y^y<<1^y<<2^y<<3^y<<4;T=T>>>8^T&255^99,u[w]=T,l[T]=w;var O=b[w],L=b[O],S=b[L],A=b[T]*257^T*16843008;a[w]=A<<24|A>>>8,c[w]=A<<16|A>>>16,f[w]=A<<8|A>>>24,h[w]=A;var A=S*16843009^L*65537^O*257^w*16843008;p[T]=A<<24|A>>>8,d[T]=A<<16|A>>>16,g[T]=A<<8|A>>>24,v[T]=A,w?(w=O^b[b[b[S^O]]],y^=b[b[y]]):w=y=1}})();var E=[0,1,2,4,8,16,32,64,128,27,54],m=o.AES=s.extend({_doReset:function(){var b;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var _=this._keyPriorReset=this._key,w=_.words,y=_.sigBytes/4,T=this._nRounds=y+6,O=(T+1)*4,L=this._keySchedule=[],S=0;S<O;S++)S<y?L[S]=w[S]:(b=L[S-1],S%y?y>6&&S%y==4&&(b=u[b>>>24]<<24|u[b>>>16&255]<<16|u[b>>>8&255]<<8|u[b&255]):(b=b<<8|b>>>24,b=u[b>>>24]<<24|u[b>>>16&255]<<16|u[b>>>8&255]<<8|u[b&255],b^=E[S/y|0]<<24),L[S]=L[S-y]^b);for(var A=this._invKeySchedule=[],M=0;M<O;M++){var S=O-M;if(M%4)var b=L[S];else var b=L[S-4];M<4||S<=4?A[M]=b:A[M]=p[u[b>>>24]]^d[u[b>>>16&255]]^g[u[b>>>8&255]]^v[u[b&255]]}}},encryptBlock:function(b,_){this._doCryptBlock(b,_,this._keySchedule,a,c,f,h,u)},decryptBlock:function(b,_){var w=b[_+1];b[_+1]=b[_+3],b[_+3]=w,this._doCryptBlock(b,_,this._invKeySchedule,p,d,g,v,l);var w=b[_+1];b[_+1]=b[_+3],b[_+3]=w},_doCryptBlock:function(b,_,w,y,T,O,L,S){for(var A=this._nRounds,M=b[_]^w[0],j=b[_+1]^w[1],I=b[_+2]^w[2],B=b[_+3]^w[3],$=4,H=1;H<A;H++){var F=y[M>>>24]^T[j>>>16&255]^O[I>>>8&255]^L[B&255]^w[$++],q=y[j>>>24]^T[I>>>16&255]^O[B>>>8&255]^L[M&255]^w[$++],z=y[I>>>24]^T[B>>>16&255]^O[M>>>8&255]^L[j&255]^w[$++],x=y[B>>>24]^T[M>>>16&255]^O[j>>>8&255]^L[I&255]^w[$++];M=F,j=q,I=z,B=x}var F=(S[M>>>24]<<24|S[j>>>16&255]<<16|S[I>>>8&255]<<8|S[B&255])^w[$++],q=(S[j>>>24]<<24|S[I>>>16&255]<<16|S[B>>>8&255]<<8|S[M&255])^w[$++],z=(S[I>>>24]<<24|S[B>>>16&255]<<16|S[M>>>8&255]<<8|S[j&255])^w[$++],x=(S[B>>>24]<<24|S[M>>>16&255]<<16|S[j>>>8&255]<<8|S[I&255])^w[$++];b[_]=F,b[_+1]=q,b[_+2]=z,b[_+3]=x},keySize:256/32});n.AES=s._createHelper(m)})(),t.AES})})(qd);var Jd="0123456789abcdefghijklmnopqrstuvwxyz";function Oe(r){return Jd.charAt(r)}function Gd(r,e){return r&e}function Nt(r,e){return r|e}function Pi(r,e){return r^e}function ji(r,e){return r&~e}function Yd(r){if(r==0)return-1;var e=0;return(r&65535)==0&&(r>>=16,e+=16),(r&255)==0&&(r>>=8,e+=8),(r&15)==0&&(r>>=4,e+=4),(r&3)==0&&(r>>=2,e+=2),(r&1)==0&&++e,e}function Zd(r){for(var e=0;r!=0;)r&=r-1,++e;return e}var tt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",xo="=";function bt(r){var e,t,n="";for(e=0;e+3<=r.length;e+=3)t=parseInt(r.substring(e,e+3),16),n+=tt.charAt(t>>6)+tt.charAt(t&63);for(e+1==r.length?(t=parseInt(r.substring(e,e+1),16),n+=tt.charAt(t<<2)):e+2==r.length&&(t=parseInt(r.substring(e,e+2),16),n+=tt.charAt(t>>2)+tt.charAt((t&3)<<4));(n.length&3)>0;)n+=xo;return n}function Ni(r){var e="",t,n=0,i=0;for(t=0;t<r.length&&r.charAt(t)!=xo;++t){var s=tt.indexOf(r.charAt(t));s<0||(n==0?(e+=Oe(s>>2),i=s&3,n=1):n==1?(e+=Oe(i<<2|s>>4),i=s&15,n=2):n==2?(e+=Oe(i),e+=Oe(s>>2),i=s&3,n=3):(e+=Oe(i<<2|s>>4),e+=Oe(s&15),n=0))}return n==1&&(e+=Oe(i<<2)),e}var Ze,Qd={decode:function(r){var e;if(Ze===void 0){var t="0123456789ABCDEF",n=` \f
20
- \r  \u2028\u2029`;for(Ze={},e=0;e<16;++e)Ze[t.charAt(e)]=e;for(t=t.toLowerCase(),e=10;e<16;++e)Ze[t.charAt(e)]=e;for(e=0;e<n.length;++e)Ze[n.charAt(e)]=-1}var i=[],s=0,o=0;for(e=0;e<r.length;++e){var u=r.charAt(e);if(u=="=")break;if(u=Ze[u],u!=-1){if(u===void 0)throw new Error("Illegal character at offset "+e);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}},He,sn={decode:function(r){var e;if(He===void 0){var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n=`= \f
21
- \r  \u2028\u2029`;for(He=Object.create(null),e=0;e<64;++e)He[t.charAt(e)]=e;for(He["-"]=62,He._=63,e=0;e<n.length;++e)He[n.charAt(e)]=-1}var i=[],s=0,o=0;for(e=0;e<r.length;++e){var u=r.charAt(e);if(u=="=")break;if(u=He[u],u!=-1){if(u===void 0)throw new Error("Illegal character at offset "+e);s|=u,++o>=4?(i[i.length]=s>>16,i[i.length]=s>>8&255,i[i.length]=s&255,s=0,o=0):s<<=6}}switch(o){case 1:throw new Error("Base64 encoding incomplete: at least 2 bits missing");case 2:i[i.length]=s>>10;break;case 3:i[i.length]=s>>16,i[i.length]=s>>8&255;break}return i},re:/-----BEGIN [^-]+-----([A-Za-z0-9+\/=\s]+)-----END [^-]+-----|begin-base64[^\n]+\n([A-Za-z0-9+\/=\s]+)====/,unarmor:function(r){var e=sn.re.exec(r);if(e)if(e[1])r=e[1];else if(e[2])r=e[2];else throw new Error("RegExp out of sync");return sn.decode(r)}},Qe=1e13,mt=(function(){function r(e){this.buf=[+e||0]}return r.prototype.mulAdd=function(e,t){var n=this.buf,i=n.length,s,o;for(s=0;s<i;++s)o=n[s]*e+t,o<Qe?t=0:(t=0|o/Qe,o-=t*Qe),n[s]=o;t>0&&(n[s]=t)},r.prototype.sub=function(e){var t=this.buf,n=t.length,i,s;for(i=0;i<n;++i)s=t[i]-e,s<0?(s+=Qe,e=1):e=0,t[i]=s;for(;t[t.length-1]===0;)t.pop()},r.prototype.toString=function(e){if((e||10)!=10)throw new Error("only base 10 is supported");for(var t=this.buf,n=t[t.length-1].toString(),i=t.length-2;i>=0;--i)n+=(Qe+t[i]).toString().substring(1);return n},r.prototype.valueOf=function(){for(var e=this.buf,t=0,n=e.length-1;n>=0;--n)t=t*Qe+e[n];return t},r.prototype.simplify=function(){var e=this.buf;return e.length==1?e[0]:this},r})(),Oo="…",Xd=/^(\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)?)?$/,eg=/^(\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 nt(r,e){return r.length>e&&(r=r.substring(0,e)+Oo),r}var Cr=(function(){function r(e,t){this.hexDigits="0123456789ABCDEF",e instanceof r?(this.enc=e.enc,this.pos=e.pos):(this.enc=e,this.pos=t)}return r.prototype.get=function(e){if(e===void 0&&(e=this.pos++),e>=this.enc.length)throw new Error("Requesting byte offset ".concat(e," on a stream of length ").concat(this.enc.length));return typeof this.enc=="string"?this.enc.charCodeAt(e):this.enc[e]},r.prototype.hexByte=function(e){return this.hexDigits.charAt(e>>4&15)+this.hexDigits.charAt(e&15)},r.prototype.hexDump=function(e,t,n){for(var i="",s=e;s<t;++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},r.prototype.isASCII=function(e,t){for(var n=e;n<t;++n){var i=this.get(n);if(i<32||i>176)return!1}return!0},r.prototype.parseStringISO=function(e,t){for(var n="",i=e;i<t;++i)n+=String.fromCharCode(this.get(i));return n},r.prototype.parseStringUTF=function(e,t){for(var n="",i=e;i<t;){var s=this.get(i++);s<128?n+=String.fromCharCode(s):s>191&&s<224?n+=String.fromCharCode((s&31)<<6|this.get(i++)&63):n+=String.fromCharCode((s&15)<<12|(this.get(i++)&63)<<6|this.get(i++)&63)}return n},r.prototype.parseStringBMP=function(e,t){for(var n="",i,s,o=e;o<t;)i=this.get(o++),s=this.get(o++),n+=String.fromCharCode(i<<8|s);return n},r.prototype.parseTime=function(e,t,n){var i=this.parseStringISO(e,t),s=(n?Xd:eg).exec(i);return s?(n&&(s[1]=+s[1],s[1]+=+s[1]<70?2e3:1900),i=s[1]+"-"+s[2]+"-"+s[3]+" "+s[4],s[5]&&(i+=":"+s[5],s[6]&&(i+=":"+s[6],s[7]&&(i+="."+s[7]))),s[8]&&(i+=" UTC",s[8]!="Z"&&(i+=s[8],s[9]&&(i+=":"+s[9]))),i):"Unrecognized time: "+i},r.prototype.parseInteger=function(e,t){for(var n=this.get(e),i=n>127,s=i?255:0,o,u="";n==s&&++e<t;)n=this.get(e);if(o=t-e,o===0)return i?-1:0;if(o>4){for(u=n,o<<=3;((+u^s)&128)==0;)u=+u<<1,--o;u="("+o+` bit)
23
- `}i&&(n=n-256);for(var l=new mt(n),a=e+1;a<t;++a)l.mulAdd(256,this.get(a));return u+l.toString()},r.prototype.parseBitString=function(e,t,n){for(var i=this.get(e),s=(t-e-1<<3)-i,o="("+s+` bit)
24
- `,u="",l=e+1;l<t;++l){for(var a=this.get(l),c=l==t-1?i:0,f=7;f>=c;--f)u+=a>>f&1?"1":"0";if(u.length>n)return o+nt(u,n)}return o+u},r.prototype.parseOctetString=function(e,t,n){if(this.isASCII(e,t))return nt(this.parseStringISO(e,t),n);var i=t-e,s="("+i+` byte)
25
- `;n/=2,i>n&&(t=e+n);for(var o=e;o<t;++o)s+=this.hexByte(this.get(o));return i>n&&(s+=Oo),s},r.prototype.parseOID=function(e,t,n){for(var i="",s=new mt,o=0,u=e;u<t;++u){var l=this.get(u);if(s.mulAdd(128,l&127),o+=7,!(l&128)){if(i==="")if(s=s.simplify(),s instanceof mt)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 nt(i,n);s=new mt,o=0}}return o>0&&(i+=".incomplete"),i},r})(),tg=(function(){function r(e,t,n,i,s){if(!(i instanceof Ii))throw new Error("Invalid tag value.");this.stream=e,this.header=t,this.length=n,this.tag=i,this.sub=s}return r.prototype.typeName=function(){switch(this.tag.tagClass){case 0:switch(this.tag.tagNumber){case 0:return"EOC";case 1:return"BOOLEAN";case 2:return"INTEGER";case 3:return"BIT_STRING";case 4:return"OCTET_STRING";case 5:return"NULL";case 6:return"OBJECT_IDENTIFIER";case 7:return"ObjectDescriptor";case 8:return"EXTERNAL";case 9:return"REAL";case 10:return"ENUMERATED";case 11:return"EMBEDDED_PDV";case 12:return"UTF8String";case 16:return"SEQUENCE";case 17:return"SET";case 18:return"NumericString";case 19:return"PrintableString";case 20:return"TeletexString";case 21:return"VideotexString";case 22:return"IA5String";case 23:return"UTCTime";case 24:return"GeneralizedTime";case 25:return"GraphicString";case 26:return"VisibleString";case 27:return"GeneralString";case 28:return"UniversalString";case 30:return"BMPString"}return"Universal_"+this.tag.tagNumber.toString();case 1:return"Application_"+this.tag.tagNumber.toString();case 2:return"["+this.tag.tagNumber.toString()+"]";case 3:return"Private_"+this.tag.tagNumber.toString()}},r.prototype.content=function(e){if(this.tag===void 0)return null;e===void 0&&(e=1/0);var t=this.posContent(),n=Math.abs(this.length);if(!this.tag.isUniversal())return this.sub!==null?"("+this.sub.length+" elem)":this.stream.parseOctetString(t,t+n,e);switch(this.tag.tagNumber){case 1:return this.stream.get(t)===0?"false":"true";case 2:return this.stream.parseInteger(t,t+n);case 3:return this.sub?"("+this.sub.length+" elem)":this.stream.parseBitString(t,t+n,e);case 4:return this.sub?"("+this.sub.length+" elem)":this.stream.parseOctetString(t,t+n,e);case 6:return this.stream.parseOID(t,t+n,e);case 16:case 17:return this.sub!==null?"("+this.sub.length+" elem)":"(no elem)";case 12:return nt(this.stream.parseStringUTF(t,t+n),e);case 18:case 19:case 20:case 21:case 22:case 26:return nt(this.stream.parseStringISO(t,t+n),e);case 30:return nt(this.stream.parseStringBMP(t,t+n),e);case 23:case 24:return this.stream.parseTime(t,t+n,this.tag.tagNumber==23)}return null},r.prototype.toString=function(){return this.typeName()+"@"+this.stream.pos+"[header:"+this.header+",length:"+this.length+",sub:"+(this.sub===null?"null":this.sub.length)+"]"},r.prototype.toPrettyString=function(e){e===void 0&&(e="");var t=e+this.typeName()+" @"+this.stream.pos;if(this.length>=0&&(t+="+"),t+=this.length,this.tag.tagConstructed?t+=" (constructed)":this.tag.isUniversal()&&(this.tag.tagNumber==3||this.tag.tagNumber==4)&&this.sub!==null&&(t+=" (encapsulates)"),t+=`
26
- `,this.sub!==null){e+=" ";for(var n=0,i=this.sub.length;n<i;++n)t+=this.sub[n].toPrettyString(e)}return t},r.prototype.posStart=function(){return this.stream.pos},r.prototype.posContent=function(){return this.stream.pos+this.header},r.prototype.posEnd=function(){return this.stream.pos+this.header+Math.abs(this.length)},r.prototype.toHexString=function(){return this.stream.hexDump(this.posStart(),this.posEnd(),!0)},r.decodeLength=function(e){var t=e.get(),n=t&127;if(n==t)return n;if(n>6)throw new Error("Length over 48 bits not supported at position "+(e.pos-1));if(n===0)return null;t=0;for(var i=0;i<n;++i)t=t*256+e.get();return t},r.prototype.getHexStringValue=function(){var e=this.toHexString(),t=this.header*2,n=this.length*2;return e.substring(t,t+n)},r.decode=function(e){var t;e instanceof Cr?t=e:t=new Cr(e,0);var n=new Cr(t),i=new Ii(t),s=r.decodeLength(t),o=t.pos,u=o-n.pos,l=null,a=function(){var f=[];if(s!==null){for(var h=o+s;t.pos<h;)f[f.length]=r.decode(t);if(t.pos!=h)throw new Error("Content size is not correct for container starting at offset "+o)}else try{for(;;){var p=r.decode(t);if(p.tag.isEOC())break;f[f.length]=p}s=o-t.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&&t.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);t.pos=o+Math.abs(s)}return new r(n,u,s,i,l)},r})(),Ii=(function(){function r(e){var t=e.get();if(this.tagClass=t>>6,this.tagConstructed=(t&32)!==0,this.tagNumber=t&31,this.tagNumber==31){var n=new mt;do t=e.get(),n.mulAdd(128,t&127);while(t&128);this.tagNumber=n.simplify()}}return r.prototype.isUniversal=function(){return this.tagClass===0},r.prototype.isEOC=function(){return this.tagClass===0&&this.tagNumber===0},r})(),Ie,rg=0xdeadbeefcafe,Mi=(rg&16777215)==15715070,se=[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],ng=(1<<26)/se[se.length-1],K=(function(){function r(e,t,n){e!=null&&(typeof e=="number"?this.fromNumber(e,t,n):t==null&&typeof e!="string"?this.fromString(e,256):this.fromString(e,t))}return r.prototype.toString=function(e){if(this.s<0)return"-"+this.negate().toString(e);var t;if(e==16)t=4;else if(e==8)t=3;else if(e==2)t=1;else if(e==32)t=5;else if(e==4)t=2;else return this.toRadix(e);var n=(1<<t)-1,i,s=!1,o="",u=this.t,l=this.DB-u*this.DB%t;if(u-- >0)for(l<this.DB&&(i=this[u]>>l)>0&&(s=!0,o=Oe(i));u>=0;)l<t?(i=(this[u]&(1<<l)-1)<<t-l,i|=this[--u]>>(l+=this.DB-t)):(i=this[u]>>(l-=t)&n,l<=0&&(l+=this.DB,--u)),i>0&&(s=!0),s&&(o+=Oe(i));return s?o:"0"},r.prototype.negate=function(){var e=J();return r.ZERO.subTo(this,e),e},r.prototype.abs=function(){return this.s<0?this.negate():this},r.prototype.compareTo=function(e){var t=this.s-e.s;if(t!=0)return t;var n=this.t;if(t=n-e.t,t!=0)return this.s<0?-t:t;for(;--n>=0;)if((t=this[n]-e[n])!=0)return t;return 0},r.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+It(this[this.t-1]^this.s&this.DM)},r.prototype.mod=function(e){var t=J();return this.abs().divRemTo(e,null,t),this.s<0&&t.compareTo(r.ZERO)>0&&e.subTo(t,t),t},r.prototype.modPowInt=function(e,t){var n;return e<256||t.isEven()?n=new Fi(t):n=new Li(t),this.exp(e,n)},r.prototype.clone=function(){var e=J();return this.copyTo(e),e},r.prototype.intValue=function(){if(this.s<0){if(this.t==1)return this[0]-this.DV;if(this.t==0)return-1}else{if(this.t==1)return this[0];if(this.t==0)return 0}return(this[1]&(1<<32-this.DB)-1)<<this.DB|this[0]},r.prototype.byteValue=function(){return this.t==0?this.s:this[0]<<24>>24},r.prototype.shortValue=function(){return this.t==0?this.s:this[0]<<16>>16},r.prototype.signum=function(){return this.s<0?-1:this.t<=0||this.t==1&&this[0]<=0?0:1},r.prototype.toByteArray=function(){var e=this.t,t=[];t[0]=this.s;var n=this.DB-e*this.DB%8,i,s=0;if(e-- >0)for(n<this.DB&&(i=this[e]>>n)!=(this.s&this.DM)>>n&&(t[s++]=i|this.s<<this.DB-n);e>=0;)n<8?(i=(this[e]&(1<<n)-1)<<8-n,i|=this[--e]>>(n+=this.DB-8)):(i=this[e]>>(n-=8)&255,n<=0&&(n+=this.DB,--e)),(i&128)!=0&&(i|=-256),s==0&&(this.s&128)!=(i&128)&&++s,(s>0||i!=this.s)&&(t[s++]=i);return t},r.prototype.equals=function(e){return this.compareTo(e)==0},r.prototype.min=function(e){return this.compareTo(e)<0?this:e},r.prototype.max=function(e){return this.compareTo(e)>0?this:e},r.prototype.and=function(e){var t=J();return this.bitwiseTo(e,Gd,t),t},r.prototype.or=function(e){var t=J();return this.bitwiseTo(e,Nt,t),t},r.prototype.xor=function(e){var t=J();return this.bitwiseTo(e,Pi,t),t},r.prototype.andNot=function(e){var t=J();return this.bitwiseTo(e,ji,t),t},r.prototype.not=function(){for(var e=J(),t=0;t<this.t;++t)e[t]=this.DM&~this[t];return e.t=this.t,e.s=~this.s,e},r.prototype.shiftLeft=function(e){var t=J();return e<0?this.rShiftTo(-e,t):this.lShiftTo(e,t),t},r.prototype.shiftRight=function(e){var t=J();return e<0?this.lShiftTo(-e,t):this.rShiftTo(e,t),t},r.prototype.getLowestSetBit=function(){for(var e=0;e<this.t;++e)if(this[e]!=0)return e*this.DB+Yd(this[e]);return this.s<0?this.t*this.DB:-1},r.prototype.bitCount=function(){for(var e=0,t=this.s&this.DM,n=0;n<this.t;++n)e+=Zd(this[n]^t);return e},r.prototype.testBit=function(e){var t=Math.floor(e/this.DB);return t>=this.t?this.s!=0:(this[t]&1<<e%this.DB)!=0},r.prototype.setBit=function(e){return this.changeBit(e,Nt)},r.prototype.clearBit=function(e){return this.changeBit(e,ji)},r.prototype.flipBit=function(e){return this.changeBit(e,Pi)},r.prototype.add=function(e){var t=J();return this.addTo(e,t),t},r.prototype.subtract=function(e){var t=J();return this.subTo(e,t),t},r.prototype.multiply=function(e){var t=J();return this.multiplyTo(e,t),t},r.prototype.divide=function(e){var t=J();return this.divRemTo(e,t,null),t},r.prototype.remainder=function(e){var t=J();return this.divRemTo(e,null,t),t},r.prototype.divideAndRemainder=function(e){var t=J(),n=J();return this.divRemTo(e,t,n),[t,n]},r.prototype.modPow=function(e,t){var n=e.bitLength(),i,s=je(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 Fi(t):t.isEven()?o=new sg(t):o=new Li(t);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=e.t-1,p,d=!0,g=J(),v;for(n=It(e[h])-1;h>=0;){for(n>=a?p=e[h]>>n-a&c:(p=(e[h]&(1<<n+1)-1)<<a-n,h>0&&(p|=e[h-1]>>this.DB+n-a)),l=i;(p&1)==0;)p>>=1,--l;if((n-=l)<0&&(n+=this.DB,--h),d)u[p].copyTo(s),d=!1;else{for(;l>1;)o.sqrTo(s,g),o.sqrTo(g,s),l-=2;l>0?o.sqrTo(s,g):(v=s,s=g,g=v),o.mulTo(g,u[p],s)}for(;h>=0&&(e[h]&1<<n)==0;)o.sqrTo(s,g),v=s,s=g,g=v,--n<0&&(n=this.DB-1,--h)}return o.revert(s)},r.prototype.modInverse=function(e){var t=e.isEven();if(this.isEven()&&t||e.signum()==0)return r.ZERO;for(var n=e.clone(),i=this.clone(),s=je(1),o=je(0),u=je(0),l=je(1);n.signum()!=0;){for(;n.isEven();)n.rShiftTo(1,n),t?((!s.isEven()||!o.isEven())&&(s.addTo(this,s),o.subTo(e,o)),s.rShiftTo(1,s)):o.isEven()||o.subTo(e,o),o.rShiftTo(1,o);for(;i.isEven();)i.rShiftTo(1,i),t?((!u.isEven()||!l.isEven())&&(u.addTo(this,u),l.subTo(e,l)),u.rShiftTo(1,u)):l.isEven()||l.subTo(e,l),l.rShiftTo(1,l);n.compareTo(i)>=0?(n.subTo(i,n),t&&s.subTo(u,s),o.subTo(l,o)):(i.subTo(n,i),t&&u.subTo(s,u),l.subTo(o,l))}if(i.compareTo(r.ONE)!=0)return r.ZERO;if(l.compareTo(e)>=0)return l.subtract(e);if(l.signum()<0)l.addTo(e,l);else return l;return l.signum()<0?l.add(e):l},r.prototype.pow=function(e){return this.exp(e,new ig)},r.prototype.gcd=function(e){var t=this.s<0?this.negate():this.clone(),n=e.s<0?e.negate():e.clone();if(t.compareTo(n)<0){var i=t;t=n,n=i}var s=t.getLowestSetBit(),o=n.getLowestSetBit();if(o<0)return t;for(s<o&&(o=s),o>0&&(t.rShiftTo(o,t),n.rShiftTo(o,n));t.signum()>0;)(s=t.getLowestSetBit())>0&&t.rShiftTo(s,t),(s=n.getLowestSetBit())>0&&n.rShiftTo(s,n),t.compareTo(n)>=0?(t.subTo(n,t),t.rShiftTo(1,t)):(n.subTo(t,n),n.rShiftTo(1,n));return o>0&&n.lShiftTo(o,n),n},r.prototype.isProbablePrime=function(e){var t,n=this.abs();if(n.t==1&&n[0]<=se[se.length-1]){for(t=0;t<se.length;++t)if(n[0]==se[t])return!0;return!1}if(n.isEven())return!1;for(t=1;t<se.length;){for(var i=se[t],s=t+1;s<se.length&&i<ng;)i*=se[s++];for(i=n.modInt(i);t<s;)if(i%se[t++]==0)return!1}return n.millerRabin(e)},r.prototype.copyTo=function(e){for(var t=this.t-1;t>=0;--t)e[t]=this[t];e.t=this.t,e.s=this.s},r.prototype.fromInt=function(e){this.t=1,this.s=e<0?-1:0,e>0?this[0]=e:e<-1?this[0]=e+this.DV:this.t=0},r.prototype.fromString=function(e,t){var n;if(t==16)n=4;else if(t==8)n=3;else if(t==256)n=8;else if(t==2)n=1;else if(t==32)n=5;else if(t==4)n=2;else{this.fromRadix(e,t);return}this.t=0,this.s=0;for(var i=e.length,s=!1,o=0;--i>=0;){var u=n==8?+e[i]&255:Hi(e,i);if(u<0){e.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&&(+e[0]&128)!=0&&(this.s=-1,o>0&&(this[this.t-1]|=(1<<this.DB-o)-1<<o)),this.clamp(),s&&r.ZERO.subTo(this,this)},r.prototype.clamp=function(){for(var e=this.s&this.DM;this.t>0&&this[this.t-1]==e;)--this.t},r.prototype.dlShiftTo=function(e,t){var n;for(n=this.t-1;n>=0;--n)t[n+e]=this[n];for(n=e-1;n>=0;--n)t[n]=0;t.t=this.t+e,t.s=this.s},r.prototype.drShiftTo=function(e,t){for(var n=e;n<this.t;++n)t[n-e]=this[n];t.t=Math.max(this.t-e,0),t.s=this.s},r.prototype.lShiftTo=function(e,t){for(var n=e%this.DB,i=this.DB-n,s=(1<<i)-1,o=Math.floor(e/this.DB),u=this.s<<n&this.DM,l=this.t-1;l>=0;--l)t[l+o+1]=this[l]>>i|u,u=(this[l]&s)<<n;for(var l=o-1;l>=0;--l)t[l]=0;t[o]=u,t.t=this.t+o+1,t.s=this.s,t.clamp()},r.prototype.rShiftTo=function(e,t){t.s=this.s;var n=Math.floor(e/this.DB);if(n>=this.t){t.t=0;return}var i=e%this.DB,s=this.DB-i,o=(1<<i)-1;t[0]=this[n]>>i;for(var u=n+1;u<this.t;++u)t[u-n-1]|=(this[u]&o)<<s,t[u-n]=this[u]>>i;i>0&&(t[this.t-n-1]|=(this.s&o)<<s),t.t=this.t-n,t.clamp()},r.prototype.subTo=function(e,t){for(var n=0,i=0,s=Math.min(e.t,this.t);n<s;)i+=this[n]-e[n],t[n++]=i&this.DM,i>>=this.DB;if(e.t<this.t){for(i-=e.s;n<this.t;)i+=this[n],t[n++]=i&this.DM,i>>=this.DB;i+=this.s}else{for(i+=this.s;n<e.t;)i-=e[n],t[n++]=i&this.DM,i>>=this.DB;i-=e.s}t.s=i<0?-1:0,i<-1?t[n++]=this.DV+i:i>0&&(t[n++]=i),t.t=n,t.clamp()},r.prototype.multiplyTo=function(e,t){var n=this.abs(),i=e.abs(),s=n.t;for(t.t=s+i.t;--s>=0;)t[s]=0;for(s=0;s<i.t;++s)t[s+n.t]=n.am(0,i[s],t,s,0,n.t);t.s=0,t.clamp(),this.s!=e.s&&r.ZERO.subTo(t,t)},r.prototype.squareTo=function(e){for(var t=this.abs(),n=e.t=2*t.t;--n>=0;)e[n]=0;for(n=0;n<t.t-1;++n){var i=t.am(n,t[n],e,2*n,0,1);(e[n+t.t]+=t.am(n+1,2*t[n],e,2*n+1,i,t.t-n-1))>=t.DV&&(e[n+t.t]-=t.DV,e[n+t.t+1]=1)}e.t>0&&(e[e.t-1]+=t.am(n,t[n],e,2*n,0,1)),e.s=0,e.clamp()},r.prototype.divRemTo=function(e,t,n){var i=e.abs();if(!(i.t<=0)){var s=this.abs();if(s.t<i.t){t!=null&&t.fromInt(0),n!=null&&this.copyTo(n);return}n==null&&(n=J());var o=J(),u=this.s,l=e.s,a=this.DB-It(i[i.t-1]);a>0?(i.lShiftTo(a,o),s.lShiftTo(a,n)):(i.copyTo(o),s.copyTo(n));var c=o.t,f=o[c-1];if(f!=0){var h=f*(1<<this.F1)+(c>1?o[c-2]>>this.F2:0),p=this.FV/h,d=(1<<this.F1)/h,g=1<<this.F2,v=n.t,E=v-c,m=t==null?J():t;for(o.dlShiftTo(E,m),n.compareTo(m)>=0&&(n[n.t++]=1,n.subTo(m,n)),r.ONE.dlShiftTo(c,m),m.subTo(o,o);o.t<c;)o[o.t++]=0;for(;--E>=0;){var b=n[--v]==f?this.DM:Math.floor(n[v]*p+(n[v-1]+g)*d);if((n[v]+=o.am(0,b,n,E,0,c))<b)for(o.dlShiftTo(E,m),n.subTo(m,n);n[v]<--b;)n.subTo(m,n)}t!=null&&(n.drShiftTo(c,t),u!=l&&r.ZERO.subTo(t,t)),n.t=c,n.clamp(),a>0&&n.rShiftTo(a,n),u<0&&r.ZERO.subTo(n,n)}}},r.prototype.invDigit=function(){if(this.t<1)return 0;var e=this[0];if((e&1)==0)return 0;var t=e&3;return t=t*(2-(e&15)*t)&15,t=t*(2-(e&255)*t)&255,t=t*(2-((e&65535)*t&65535))&65535,t=t*(2-e*t%this.DV)%this.DV,t>0?this.DV-t:-t},r.prototype.isEven=function(){return(this.t>0?this[0]&1:this.s)==0},r.prototype.exp=function(e,t){if(e>4294967295||e<1)return r.ONE;var n=J(),i=J(),s=t.convert(this),o=It(e)-1;for(s.copyTo(n);--o>=0;)if(t.sqrTo(n,i),(e&1<<o)>0)t.mulTo(i,s,n);else{var u=n;n=i,i=u}return t.revert(n)},r.prototype.chunkSize=function(e){return Math.floor(Math.LN2*this.DB/Math.log(e))},r.prototype.toRadix=function(e){if(e==null&&(e=10),this.signum()==0||e<2||e>36)return"0";var t=this.chunkSize(e),n=Math.pow(e,t),i=je(n),s=J(),o=J(),u="";for(this.divRemTo(i,s,o);s.signum()>0;)u=(n+o.intValue()).toString(e).substring(1)+u,s.divRemTo(i,s,o);return o.intValue().toString(e)+u},r.prototype.fromRadix=function(e,t){this.fromInt(0),t==null&&(t=10);for(var n=this.chunkSize(t),i=Math.pow(t,n),s=!1,o=0,u=0,l=0;l<e.length;++l){var a=Hi(e,l);if(a<0){e.charAt(l)=="-"&&this.signum()==0&&(s=!0);continue}u=t*u+a,++o>=n&&(this.dMultiply(i),this.dAddOffset(u,0),o=0,u=0)}o>0&&(this.dMultiply(Math.pow(t,o)),this.dAddOffset(u,0)),s&&r.ZERO.subTo(this,this)},r.prototype.fromNumber=function(e,t,n){if(typeof t=="number")if(e<2)this.fromInt(1);else for(this.fromNumber(e,n),this.testBit(e-1)||this.bitwiseTo(r.ONE.shiftLeft(e-1),Nt,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(t);)this.dAddOffset(2,0),this.bitLength()>e&&this.subTo(r.ONE.shiftLeft(e-1),this);else{var i=[],s=e&7;i.length=(e>>3)+1,t.nextBytes(i),s>0?i[0]&=(1<<s)-1:i[0]=0,this.fromString(i,256)}},r.prototype.bitwiseTo=function(e,t,n){var i,s,o=Math.min(e.t,this.t);for(i=0;i<o;++i)n[i]=t(this[i],e[i]);if(e.t<this.t){for(s=e.s&this.DM,i=o;i<this.t;++i)n[i]=t(this[i],s);n.t=this.t}else{for(s=this.s&this.DM,i=o;i<e.t;++i)n[i]=t(s,e[i]);n.t=e.t}n.s=t(this.s,e.s),n.clamp()},r.prototype.changeBit=function(e,t){var n=r.ONE.shiftLeft(e);return this.bitwiseTo(n,t,n),n},r.prototype.addTo=function(e,t){for(var n=0,i=0,s=Math.min(e.t,this.t);n<s;)i+=this[n]+e[n],t[n++]=i&this.DM,i>>=this.DB;if(e.t<this.t){for(i+=e.s;n<this.t;)i+=this[n],t[n++]=i&this.DM,i>>=this.DB;i+=this.s}else{for(i+=this.s;n<e.t;)i+=e[n],t[n++]=i&this.DM,i>>=this.DB;i+=e.s}t.s=i<0?-1:0,i>0?t[n++]=i:i<-1&&(t[n++]=this.DV+i),t.t=n,t.clamp()},r.prototype.dMultiply=function(e){this[this.t]=this.am(0,e-1,this,0,0,this.t),++this.t,this.clamp()},r.prototype.dAddOffset=function(e,t){if(e!=0){for(;this.t<=t;)this[this.t++]=0;for(this[t]+=e;this[t]>=this.DV;)this[t]-=this.DV,++t>=this.t&&(this[this.t++]=0),++this[t]}},r.prototype.multiplyLowerTo=function(e,t,n){var i=Math.min(this.t+e.t,t);for(n.s=0,n.t=i;i>0;)n[--i]=0;for(var s=n.t-this.t;i<s;++i)n[i+this.t]=this.am(0,e[i],n,i,0,this.t);for(var s=Math.min(e.t,t);i<s;++i)this.am(0,e[i],n,i,0,t-i);n.clamp()},r.prototype.multiplyUpperTo=function(e,t,n){--t;var i=n.t=this.t+e.t-t;for(n.s=0;--i>=0;)n[i]=0;for(i=Math.max(t-this.t,0);i<e.t;++i)n[this.t+i-t]=this.am(t-i,e[i],n,0,0,this.t+i-t);n.clamp(),n.drShiftTo(1,n)},r.prototype.modInt=function(e){if(e<=0)return 0;var t=this.DV%e,n=this.s<0?e-1:0;if(this.t>0)if(t==0)n=this[0]%e;else for(var i=this.t-1;i>=0;--i)n=(t*n+this[i])%e;return n},r.prototype.millerRabin=function(e){var t=this.subtract(r.ONE),n=t.getLowestSetBit();if(n<=0)return!1;var i=t.shiftRight(n);e=e+1>>1,e>se.length&&(e=se.length);for(var s=J(),o=0;o<e;++o){s.fromInt(se[Math.floor(Math.random()*se.length)]);var u=s.modPow(i,this);if(u.compareTo(r.ONE)!=0&&u.compareTo(t)!=0){for(var l=1;l++<n&&u.compareTo(t)!=0;)if(u=u.modPowInt(2,this),u.compareTo(r.ONE)==0)return!1;if(u.compareTo(t)!=0)return!1}}return!0},r.prototype.square=function(){var e=J();return this.squareTo(e),e},r.prototype.gcda=function(e,t){var n=this.s<0?this.negate():this.clone(),i=e.s<0?e.negate():e.clone();if(n.compareTo(i)<0){var s=n;n=i,i=s}var o=n.getLowestSetBit(),u=i.getLowestSetBit();if(u<0){t(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(){t(i)},0))};setTimeout(l,10)},r.prototype.fromNumberAsync=function(e,t,n,i){if(typeof t=="number")if(e<2)this.fromInt(1);else{this.fromNumber(e,n),this.testBit(e-1)||this.bitwiseTo(r.ONE.shiftLeft(e-1),Nt,this),this.isEven()&&this.dAddOffset(1,0);var s=this,o=function(){s.dAddOffset(2,0),s.bitLength()>e&&s.subTo(r.ONE.shiftLeft(e-1),s),s.isProbablePrime(t)?setTimeout(function(){i()},0):setTimeout(o,0)};setTimeout(o,0)}else{var u=[],l=e&7;u.length=(e>>3)+1,t.nextBytes(u),l>0?u[0]&=(1<<l)-1:u[0]=0,this.fromString(u,256)}},r})(),ig=(function(){function r(){}return r.prototype.convert=function(e){return e},r.prototype.revert=function(e){return e},r.prototype.mulTo=function(e,t,n){e.multiplyTo(t,n)},r.prototype.sqrTo=function(e,t){e.squareTo(t)},r})(),Fi=(function(){function r(e){this.m=e}return r.prototype.convert=function(e){return e.s<0||e.compareTo(this.m)>=0?e.mod(this.m):e},r.prototype.revert=function(e){return e},r.prototype.reduce=function(e){e.divRemTo(this.m,null,e)},r.prototype.mulTo=function(e,t,n){e.multiplyTo(t,n),this.reduce(n)},r.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)},r})(),Li=(function(){function r(e){this.m=e,this.mp=e.invDigit(),this.mpl=this.mp&32767,this.mph=this.mp>>15,this.um=(1<<e.DB-15)-1,this.mt2=2*e.t}return r.prototype.convert=function(e){var t=J();return e.abs().dlShiftTo(this.m.t,t),t.divRemTo(this.m,null,t),e.s<0&&t.compareTo(K.ZERO)>0&&this.m.subTo(t,t),t},r.prototype.revert=function(e){var t=J();return e.copyTo(t),this.reduce(t),t},r.prototype.reduce=function(e){for(;e.t<=this.mt2;)e[e.t++]=0;for(var t=0;t<this.m.t;++t){var n=e[t]&32767,i=n*this.mpl+((n*this.mph+(e[t]>>15)*this.mpl&this.um)<<15)&e.DM;for(n=t+this.m.t,e[n]+=this.m.am(0,i,e,t,0,this.m.t);e[n]>=e.DV;)e[n]-=e.DV,e[++n]++}e.clamp(),e.drShiftTo(this.m.t,e),e.compareTo(this.m)>=0&&e.subTo(this.m,e)},r.prototype.mulTo=function(e,t,n){e.multiplyTo(t,n),this.reduce(n)},r.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)},r})(),sg=(function(){function r(e){this.m=e,this.r2=J(),this.q3=J(),K.ONE.dlShiftTo(2*e.t,this.r2),this.mu=this.r2.divide(e)}return r.prototype.convert=function(e){if(e.s<0||e.t>2*this.m.t)return e.mod(this.m);if(e.compareTo(this.m)<0)return e;var t=J();return e.copyTo(t),this.reduce(t),t},r.prototype.revert=function(e){return e},r.prototype.reduce=function(e){for(e.drShiftTo(this.m.t-1,this.r2),e.t>this.m.t+1&&(e.t=this.m.t+1,e.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);e.compareTo(this.r2)<0;)e.dAddOffset(1,this.m.t+1);for(e.subTo(this.r2,e);e.compareTo(this.m)>=0;)e.subTo(this.m,e)},r.prototype.mulTo=function(e,t,n){e.multiplyTo(t,n),this.reduce(n)},r.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)},r})();function J(){return new K(null)}function Z(r,e){return new K(r,e)}var Ui=typeof navigator!="undefined";Ui&&Mi&&navigator.appName=="Microsoft Internet Explorer"?(K.prototype.am=function(e,t,n,i,s,o){for(var u=t&32767,l=t>>15;--o>=0;){var a=this[e]&32767,c=this[e++]>>15,f=l*a+c*u;a=u*a+((f&32767)<<15)+n[i]+(s&1073741823),s=(a>>>30)+(f>>>15)+l*c+(s>>>30),n[i++]=a&1073741823}return s},Ie=30):Ui&&Mi&&navigator.appName!="Netscape"?(K.prototype.am=function(e,t,n,i,s,o){for(;--o>=0;){var u=t*this[e++]+n[i]+s;s=Math.floor(u/67108864),n[i++]=u&67108863}return s},Ie=26):(K.prototype.am=function(e,t,n,i,s,o){for(var u=t&16383,l=t>>14;--o>=0;){var a=this[e]&16383,c=this[e++]>>14,f=l*a+c*u;a=u*a+((f&16383)<<14)+n[i]+s,s=(a>>28)+(f>>14)+l*c,n[i++]=a&268435455}return s},Ie=28);K.prototype.DB=Ie;K.prototype.DM=(1<<Ie)-1;K.prototype.DV=1<<Ie;var $n=52;K.prototype.FV=Math.pow(2,$n);K.prototype.F1=$n-Ie;K.prototype.F2=2*Ie-$n;var lr=[],ct,he;ct=48;for(he=0;he<=9;++he)lr[ct++]=he;ct=97;for(he=10;he<36;++he)lr[ct++]=he;ct=65;for(he=10;he<36;++he)lr[ct++]=he;function Hi(r,e){var t=lr[r.charCodeAt(e)];return t==null?-1:t}function je(r){var e=J();return e.fromInt(r),e}function It(r){var e=1,t;return(t=r>>>16)!=0&&(r=t,e+=16),(t=r>>8)!=0&&(r=t,e+=8),(t=r>>4)!=0&&(r=t,e+=4),(t=r>>2)!=0&&(r=t,e+=2),(t=r>>1)!=0&&(r=t,e+=1),e}K.ZERO=je(0);K.ONE=je(1);var og=(function(){function r(){this.i=0,this.j=0,this.S=[]}return r.prototype.init=function(e){var t,n,i;for(t=0;t<256;++t)this.S[t]=t;for(n=0,t=0;t<256;++t)n=n+this.S[t]+e[t%e.length]&255,i=this.S[t],this.S[t]=this.S[n],this.S[n]=i;this.i=0,this.j=0},r.prototype.next=function(){var e;return this.i=this.i+1&255,this.j=this.j+this.S[this.i]&255,e=this.S[this.i],this.S[this.i]=this.S[this.j],this.S[this.j]=e,this.S[e+this.S[this.i]&255]},r})();function ag(){return new og}var $o=256,Mt,Ne=null,ye;if(Ne==null){Ne=[],ye=0;var Ft=void 0;if(typeof window!="undefined"&&self.crypto&&self.crypto.getRandomValues){var Br=new Uint32Array(256);for(self.crypto.getRandomValues(Br),Ft=0;Ft<Br.length;++Ft)Ne[ye++]=Br[Ft]&255}var Lt=0,Ut=function(r){if(Lt=Lt||0,Lt>=256||ye>=$o){self.removeEventListener?self.removeEventListener("mousemove",Ut,!1):self.detachEvent&&self.detachEvent("onmousemove",Ut);return}try{var e=r.x+r.y;Ne[ye++]=e&255,Lt+=1}catch(t){}};typeof window!="undefined"&&(self.addEventListener?self.addEventListener("mousemove",Ut,!1):self.attachEvent&&self.attachEvent("onmousemove",Ut))}function ug(){if(Mt==null){for(Mt=ag();ye<$o;){var r=Math.floor(65536*Math.random());Ne[ye++]=r&255}for(Mt.init(Ne),ye=0;ye<Ne.length;++ye)Ne[ye]=0;ye=0}return Mt.next()}var nr=(function(){function r(){}return r.prototype.nextBytes=function(e){for(var t=0;t<e.length;++t)e[t]=ug()},r})();function on(r){return lg(yg(cg(r),r.length*8))}function Vi(r){for(var e="0123456789abcdef",t="",n=0;n<r.length;n++){var i=r.charCodeAt(n);t+=e.charAt(i>>>4&15)+e.charAt(i&15)}return t}function cg(r){for(var e=Array(r.length>>2),t=0;t<e.length;t++)e[t]=0;for(var t=0;t<r.length*8;t+=8)e[t>>5]|=(r.charCodeAt(t/8)&255)<<24-t%32;return e}function lg(r){for(var e="",t=0;t<r.length*32;t+=8)e+=String.fromCharCode(r[t>>5]>>>24-t%32&255);return e}function Te(r,e){return r>>>e|r<<32-e}function Do(r,e){return r>>>e}function fg(r,e,t){return r&e^~r&t}function hg(r,e,t){return r&e^r&t^e&t}function pg(r){return Te(r,2)^Te(r,13)^Te(r,22)}function dg(r){return Te(r,6)^Te(r,11)^Te(r,25)}function gg(r){return Te(r,7)^Te(r,18)^Do(r,3)}function vg(r){return Te(r,17)^Te(r,19)^Do(r,10)}var mg=new Array(1116352408,1899447441,-1245643825,-373957723,961987163,1508970993,-1841331548,-1424204075,-670586216,310598401,607225278,1426881987,1925078388,-2132889090,-1680079193,-1046744716,-459576895,-272742522,264347078,604807628,770255983,1249150122,1555081692,1996064986,-1740746414,-1473132947,-1341970488,-1084653625,-958395405,-710438585,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,-2117940946,-1838011259,-1564481375,-1474664885,-1035236496,-949202525,-778901479,-694614492,-200395387,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,-2067236844,-1933114872,-1866530822,-1538233109,-1090935817,-965641998);function yg(r,e){var t=new Array(1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225),n=new Array(64),i,s,o,u,l,a,c,f,h,p,d,g;for(r[e>>5]|=128<<24-e%32,r[(e+64>>9<<4)+15]=e,h=0;h<r.length;h+=16){for(i=t[0],s=t[1],o=t[2],u=t[3],l=t[4],a=t[5],c=t[6],f=t[7],p=0;p<64;p++)p<16?n[p]=r[p+h]:n[p]=ne(ne(ne(vg(n[p-2]),n[p-7]),gg(n[p-15])),n[p-16]),d=ne(ne(ne(ne(f,dg(l)),fg(l,a,c)),mg[p]),n[p]),g=ne(pg(i),hg(i,s,o)),f=c,c=a,a=l,l=ne(u,d),u=o,o=s,s=i,i=ne(d,g);t[0]=ne(i,t[0]),t[1]=ne(s,t[1]),t[2]=ne(o,t[2]),t[3]=ne(u,t[3]),t[4]=ne(l,t[4]),t[5]=ne(a,t[5]),t[6]=ne(c,t[6]),t[7]=ne(f,t[7])}return t}function ne(r,e){var t=(r&65535)+(e&65535),n=(r>>16)+(e>>16)+(t>>16);return n<<16|t&65535}function bg(r,e){if(e<r.length+22)return console.error("Message too long for RSA"),null;for(var t=e-r.length-6,n="",i=0;i<t;i+=2)n+="ff";var s="0001"+n+"00"+r;return Z(s,16)}function _g(r,e){if(e<r.length+11)return console.error("Message too long for RSA"),null;for(var t=[],n=r.length-1;n>=0&&e>0;){var i=r.charCodeAt(n--);i<128?t[--e]=i:i>127&&i<2048?(t[--e]=i&63|128,t[--e]=i>>6|192):(t[--e]=i&63|128,t[--e]=i>>6&63|128,t[--e]=i>>12|224)}t[--e]=0;for(var s=new nr,o=[];e>2;){for(o[0]=0;o[0]==0;)s.nextBytes(o);t[--e]=o[0]}return t[--e]=2,t[--e]=0,new K(t)}function ki(r,e,t){for(var n="",i=0;n.length<e;)n+=t(String.fromCharCode.apply(String,r.concat([(i&4278190080)>>24,(i&16711680)>>16,(i&65280)>>8,i&255]))),i+=1;return n}var wg=32;function Eg(r,e){var t=wg,n=on;if(r.length+2*t+2>e)throw"Message too long for RSA";var i="",s;for(s=0;s<e-r.length-2*t-2;s+=1)i+="\0";var o=n("")+i+""+r,u=new Array(t);new nr().nextBytes(u);var l=ki(u,o.length,n),a=[];for(s=0;s<o.length;s+=1)a[s]=o.charCodeAt(s)^l.charCodeAt(s);var c=ki(a,u.length,n),f=[0];for(s=0;s<u.length;s+=1)f[s+1]=u[s]^c.charCodeAt(s);return new K(f.concat(a))}var Sg=(function(){function r(){this.n=null,this.e=0,this.d=null,this.p=null,this.q=null,this.dmp1=null,this.dmq1=null,this.coeff=null}return r.prototype.doPublic=function(e){return e.modPowInt(this.e,this.n)},r.prototype.doPrivate=function(e){if(this.p==null||this.q==null)return e.modPow(this.d,this.n);for(var t=e.mod(this.p).modPow(this.dmp1,this.p),n=e.mod(this.q).modPow(this.dmq1,this.q);t.compareTo(n)<0;)t=t.add(this.p);return t.subtract(n).multiply(this.coeff).mod(this.p).multiply(this.q).add(n)},r.prototype.setPublic=function(e,t){e!=null&&t!=null&&e.length>0&&t.length>0?(this.n=Z(e,16),this.e=parseInt(t,16)):console.error("Invalid RSA public key")},r.prototype.encrypt=function(e,t){typeof t=="undefined"&&(t=_g);var n=this.n.bitLength()+7>>3,i=t(e,n);if(i==null)return null;var s=this.doPublic(i);if(s==null)return null;for(var o=s.toString(16),u=o.length,l=0;l<n*2-u;l++)o="0"+o;return o},r.prototype.setPrivate=function(e,t,n){e!=null&&t!=null&&e.length>0&&t.length>0?(this.n=Z(e,16),this.e=parseInt(t,16),this.d=Z(n,16)):console.error("Invalid RSA private key")},r.prototype.setPrivateEx=function(e,t,n,i,s,o,u,l){e!=null&&t!=null&&e.length>0&&t.length>0?(this.n=Z(e,16),this.e=parseInt(t,16),this.d=Z(n,16),this.p=Z(i,16),this.q=Z(s,16),this.dmp1=Z(o,16),this.dmq1=Z(u,16),this.coeff=Z(l,16)):console.error("Invalid RSA private key")},r.prototype.generate=function(e,t){var n=new nr,i=e>>1;this.e=parseInt(t,16);for(var s=new K(t,16);;){for(;this.p=new K(e-i,1,n),!(this.p.subtract(K.ONE).gcd(s).compareTo(K.ONE)==0&&this.p.isProbablePrime(10)););for(;this.q=new K(i,1,n),!(this.q.subtract(K.ONE).gcd(s).compareTo(K.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(K.ONE),l=this.q.subtract(K.ONE),a=u.multiply(l);if(a.gcd(s).compareTo(K.ONE)==0){this.n=this.p.multiply(this.q),this.d=s.modInverse(a),this.dmp1=this.d.mod(u),this.dmq1=this.d.mod(l),this.coeff=this.q.modInverse(this.p);break}}},r.prototype.decrypt=function(e){var t=Z(e,16),n=this.doPrivate(t);return n==null?null:Tg(n,this.n.bitLength()+7>>3)},r.prototype.generateAsync=function(e,t,n){var i=new nr,s=e>>1;this.e=parseInt(t,16);var o=new K(t,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(K.ONE),d=u.q.subtract(K.ONE),g=p.multiply(d);g.gcd(o).compareTo(K.ONE)==0?(u.n=u.p.multiply(u.q),u.d=o.modInverse(g),u.dmp1=u.d.mod(p),u.dmq1=u.d.mod(d),u.coeff=u.q.modInverse(u.p),setTimeout(function(){n()},0)):setTimeout(l,0)},c=function(){u.q=J(),u.q.fromNumberAsync(s,1,i,function(){u.q.subtract(K.ONE).gcda(o,function(h){h.compareTo(K.ONE)==0&&u.q.isProbablePrime(10)?setTimeout(a,0):setTimeout(c,0)})})},f=function(){u.p=J(),u.p.fromNumberAsync(e-s,1,i,function(){u.p.subtract(K.ONE).gcda(o,function(h){h.compareTo(K.ONE)==0&&u.p.isProbablePrime(10)?setTimeout(c,0):setTimeout(f,0)})})};setTimeout(f,0)};setTimeout(l,0)},r.prototype.sign=function(e,t,n){var i=Rg(n),s=i+t(e).toString(),o=this.n.bitLength()/4,u=bg(s,o);if(u==null)return null;var l=this.doPrivate(u);if(l==null)return null;for(var a=l.toString(16),c=a.length,f=0;f<o-c;f++)a="0"+a;return a},r.prototype.verify=function(e,t,n){var i=Z(t,16),s=this.doPublic(i);if(s==null)return null;var o=s.toString(16).replace(/^1f+00/,""),u=Ag(o);return u==n(e).toString()},r})();function Tg(r,e){for(var t=r.toByteArray(),n=0;n<t.length&&t[n]==0;)++n;if(t.length-n!=e-1||t[n]!=2)return null;for(++n;t[n]!=0;)if(++n>=t.length)return null;for(var i="";++n<t.length;){var s=t[n]&255;s<128?i+=String.fromCharCode(s):s>191&&s<224?(i+=String.fromCharCode((s&31)<<6|t[n+1]&63),++n):(i+=String.fromCharCode((s&15)<<12|(t[n+1]&63)<<6|t[n+2]&63),n+=2)}return i}var Kt={md2:"3020300c06082a864886f70d020205000410",md5:"3020300c06082a864886f70d020505000410",sha1:"3021300906052b0e03021a05000414",sha224:"302d300d06096086480165030402040500041c",sha256:"3031300d060960864801650304020105000420",sha384:"3041300d060960864801650304020205000430",sha512:"3051300d060960864801650304020305000440",ripemd160:"3021300906052b2403020105000414"};function Rg(r){return Kt[r]||""}function Ag(r){for(var e in Kt)if(Kt.hasOwnProperty(e)){var t=Kt[e],n=t.length;if(r.substring(0,n)==t)return r.substring(n)}return r}function ee(r,e,t){if(!e||!r)throw new Error("extend failed, please check that all dependencies are included.");var n=function(){};n.prototype=e.prototype,r.prototype=new n,r.prototype.constructor=r,r.superclass=e.prototype,e.prototype.constructor==Object.prototype.constructor&&(e.prototype.constructor=e)}/**
19
+ }`;var g=Al(function(){return Function(s,p+"return "+f).apply(void 0,o)});if(g.source=f,Hs(g))throw g;return g}var Id="Expected a function";function Md(t,e,r){var n=!0,i=!0;if(typeof t!="function")throw new TypeError(Id);return ve(r)&&(n="leading"in r?!0:n,i="trailing"in r?!1:i),On(t,e,{leading:n,maxWait:e,trailing:i})}function Fd(t){return Gs(Ee(t))}var oe=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function Ld(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var To={exports:{}};function Ud(t){throw new Error('Could not dynamically require "'+t+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Ar={exports:{}},Oi;function Fe(){return Oi||(Oi=1,(function(t,e){(function(r,n){t.exports=n()})(oe,function(){var r=r||(function(n,i){var s;if(typeof window!="undefined"&&window.crypto&&(s=window.crypto),typeof self!="undefined"&&self.crypto&&(s=self.crypto),typeof globalThis!="undefined"&&globalThis.crypto&&(s=globalThis.crypto),!s&&typeof window!="undefined"&&window.msCrypto&&(s=window.msCrypto),!s&&typeof oe!="undefined"&&oe.crypto&&(s=oe.crypto),!s&&typeof Ud=="function")try{s=require("crypto")}catch(m){}var o=function(){if(s){if(typeof s.getRandomValues=="function")try{return s.getRandomValues(new Uint32Array(1))[0]}catch(m){}if(typeof s.randomBytes=="function")try{return s.randomBytes(4).readInt32LE()}catch(m){}}throw new Error("Native crypto module could not be used to get secure random number.")},u=Object.create||(function(){function m(){}return function(b){var _;return m.prototype=b,_=new m,m.prototype=null,_}})(),l={},a=l.lib={},c=a.Base=(function(){return{extend:function(m){var b=u(this);return m&&b.mixIn(m),(!b.hasOwnProperty("init")||this.init===b.init)&&(b.init=function(){b.$super.init.apply(this,arguments)}),b.init.prototype=b,b.$super=this,b},create:function(){var m=this.extend();return m.init.apply(m,arguments),m},init:function(){},mixIn:function(m){for(var b in m)m.hasOwnProperty(b)&&(this[b]=m[b]);m.hasOwnProperty("toString")&&(this.toString=m.toString)},clone:function(){return this.init.prototype.extend(this)}}})(),f=a.WordArray=c.extend({init:function(m,b){m=this.words=m||[],b!=i?this.sigBytes=b:this.sigBytes=m.length*4},toString:function(m){return(m||p).stringify(this)},concat:function(m){var b=this.words,_=m.words,w=this.sigBytes,y=m.sigBytes;if(this.clamp(),w%4)for(var T=0;T<y;T++){var O=_[T>>>2]>>>24-T%4*8&255;b[w+T>>>2]|=O<<24-(w+T)%4*8}else for(var L=0;L<y;L+=4)b[w+L>>>2]=_[L>>>2];return this.sigBytes+=y,this},clamp:function(){var m=this.words,b=this.sigBytes;m[b>>>2]&=4294967295<<32-b%4*8,m.length=n.ceil(b/4)},clone:function(){var m=c.clone.call(this);return m.words=this.words.slice(0),m},random:function(m){for(var b=[],_=0;_<m;_+=4)b.push(o());return new f.init(b,m)}}),h=l.enc={},p=h.Hex={stringify:function(m){for(var b=m.words,_=m.sigBytes,w=[],y=0;y<_;y++){var T=b[y>>>2]>>>24-y%4*8&255;w.push((T>>>4).toString(16)),w.push((T&15).toString(16))}return w.join("")},parse:function(m){for(var b=m.length,_=[],w=0;w<b;w+=2)_[w>>>3]|=parseInt(m.substr(w,2),16)<<24-w%8*4;return new f.init(_,b/2)}},d=h.Latin1={stringify:function(m){for(var b=m.words,_=m.sigBytes,w=[],y=0;y<_;y++){var T=b[y>>>2]>>>24-y%4*8&255;w.push(String.fromCharCode(T))}return w.join("")},parse:function(m){for(var b=m.length,_=[],w=0;w<b;w++)_[w>>>2]|=(m.charCodeAt(w)&255)<<24-w%4*8;return new f.init(_,b)}},g=h.Utf8={stringify:function(m){try{return decodeURIComponent(escape(d.stringify(m)))}catch(b){throw new Error("Malformed UTF-8 data")}},parse:function(m){return d.parse(unescape(encodeURIComponent(m)))}},v=a.BufferedBlockAlgorithm=c.extend({reset:function(){this._data=new f.init,this._nDataBytes=0},_append:function(m){typeof m=="string"&&(m=g.parse(m)),this._data.concat(m),this._nDataBytes+=m.sigBytes},_process:function(m){var b,_=this._data,w=_.words,y=_.sigBytes,T=this.blockSize,O=T*4,L=y/O;m?L=n.ceil(L):L=n.max((L|0)-this._minBufferSize,0);var S=L*T,A=n.min(S*4,y);if(S){for(var M=0;M<S;M+=T)this._doProcessBlock(w,M);b=w.splice(0,S),_.sigBytes-=A}return new f.init(b,A)},clone:function(){var m=c.clone.call(this);return m._data=this._data.clone(),m},_minBufferSize:0});a.Hasher=v.extend({cfg:c.extend(),init:function(m){this.cfg=this.cfg.extend(m),this.reset()},reset:function(){v.reset.call(this),this._doReset()},update:function(m){return this._append(m),this._process(),this},finalize:function(m){m&&this._append(m);var b=this._doFinalize();return b},blockSize:16,_createHelper:function(m){return function(b,_){return new m.init(_).finalize(b)}},_createHmacHelper:function(m){return function(b,_){return new E.HMAC.init(m,_).finalize(b)}}});var E=l.algo={};return l})(Math);return r})})(Ar)),Ar.exports}(function(t,e){(function(r,n){t.exports=n(Fe())})(oe,function(r){return(function(n){var i=r,s=i.lib,o=s.WordArray,u=s.Hasher,l=i.algo,a=[];(function(){for(var g=0;g<64;g++)a[g]=n.abs(n.sin(g+1))*4294967296|0})();var c=l.MD5=u.extend({_doReset:function(){this._hash=new o.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(g,v){for(var E=0;E<16;E++){var m=v+E,b=g[m];g[m]=(b<<8|b>>>24)&16711935|(b<<24|b>>>8)&4278255360}var _=this._hash.words,w=g[v+0],y=g[v+1],T=g[v+2],O=g[v+3],L=g[v+4],S=g[v+5],A=g[v+6],M=g[v+7],j=g[v+8],I=g[v+9],B=g[v+10],$=g[v+11],H=g[v+12],F=g[v+13],q=g[v+14],z=g[v+15],x=_[0],C=_[1],D=_[2],N=_[3];x=f(x,C,D,N,w,7,a[0]),N=f(N,x,C,D,y,12,a[1]),D=f(D,N,x,C,T,17,a[2]),C=f(C,D,N,x,O,22,a[3]),x=f(x,C,D,N,L,7,a[4]),N=f(N,x,C,D,S,12,a[5]),D=f(D,N,x,C,A,17,a[6]),C=f(C,D,N,x,M,22,a[7]),x=f(x,C,D,N,j,7,a[8]),N=f(N,x,C,D,I,12,a[9]),D=f(D,N,x,C,B,17,a[10]),C=f(C,D,N,x,$,22,a[11]),x=f(x,C,D,N,H,7,a[12]),N=f(N,x,C,D,F,12,a[13]),D=f(D,N,x,C,q,17,a[14]),C=f(C,D,N,x,z,22,a[15]),x=h(x,C,D,N,y,5,a[16]),N=h(N,x,C,D,A,9,a[17]),D=h(D,N,x,C,$,14,a[18]),C=h(C,D,N,x,w,20,a[19]),x=h(x,C,D,N,S,5,a[20]),N=h(N,x,C,D,B,9,a[21]),D=h(D,N,x,C,z,14,a[22]),C=h(C,D,N,x,L,20,a[23]),x=h(x,C,D,N,I,5,a[24]),N=h(N,x,C,D,q,9,a[25]),D=h(D,N,x,C,O,14,a[26]),C=h(C,D,N,x,j,20,a[27]),x=h(x,C,D,N,F,5,a[28]),N=h(N,x,C,D,T,9,a[29]),D=h(D,N,x,C,M,14,a[30]),C=h(C,D,N,x,H,20,a[31]),x=p(x,C,D,N,S,4,a[32]),N=p(N,x,C,D,j,11,a[33]),D=p(D,N,x,C,$,16,a[34]),C=p(C,D,N,x,q,23,a[35]),x=p(x,C,D,N,y,4,a[36]),N=p(N,x,C,D,L,11,a[37]),D=p(D,N,x,C,M,16,a[38]),C=p(C,D,N,x,B,23,a[39]),x=p(x,C,D,N,F,4,a[40]),N=p(N,x,C,D,w,11,a[41]),D=p(D,N,x,C,O,16,a[42]),C=p(C,D,N,x,A,23,a[43]),x=p(x,C,D,N,I,4,a[44]),N=p(N,x,C,D,H,11,a[45]),D=p(D,N,x,C,z,16,a[46]),C=p(C,D,N,x,T,23,a[47]),x=d(x,C,D,N,w,6,a[48]),N=d(N,x,C,D,M,10,a[49]),D=d(D,N,x,C,q,15,a[50]),C=d(C,D,N,x,S,21,a[51]),x=d(x,C,D,N,H,6,a[52]),N=d(N,x,C,D,O,10,a[53]),D=d(D,N,x,C,B,15,a[54]),C=d(C,D,N,x,y,21,a[55]),x=d(x,C,D,N,j,6,a[56]),N=d(N,x,C,D,z,10,a[57]),D=d(D,N,x,C,A,15,a[58]),C=d(C,D,N,x,F,21,a[59]),x=d(x,C,D,N,L,6,a[60]),N=d(N,x,C,D,$,10,a[61]),D=d(D,N,x,C,T,15,a[62]),C=d(C,D,N,x,I,21,a[63]),_[0]=_[0]+x|0,_[1]=_[1]+C|0,_[2]=_[2]+D|0,_[3]=_[3]+N|0},_doFinalize:function(){var g=this._data,v=g.words,E=this._nDataBytes*8,m=g.sigBytes*8;v[m>>>5]|=128<<24-m%32;var b=n.floor(E/4294967296),_=E;v[(m+64>>>9<<4)+15]=(b<<8|b>>>24)&16711935|(b<<24|b>>>8)&4278255360,v[(m+64>>>9<<4)+14]=(_<<8|_>>>24)&16711935|(_<<24|_>>>8)&4278255360,g.sigBytes=(v.length+1)*4,this._process();for(var w=this._hash,y=w.words,T=0;T<4;T++){var O=y[T];y[T]=(O<<8|O>>>24)&16711935|(O<<24|O>>>8)&4278255360}return w},clone:function(){var g=u.clone.call(this);return g._hash=this._hash.clone(),g}});function f(g,v,E,m,b,_,w){var y=g+(v&E|~v&m)+b+w;return(y<<_|y>>>32-_)+v}function h(g,v,E,m,b,_,w){var y=g+(v&m|E&~m)+b+w;return(y<<_|y>>>32-_)+v}function p(g,v,E,m,b,_,w){var y=g+(v^E^m)+b+w;return(y<<_|y>>>32-_)+v}function d(g,v,E,m,b,_,w){var y=g+(E^(v|~m))+b+w;return(y<<_|y>>>32-_)+v}i.MD5=u._createHelper(c),i.HmacMD5=u._createHmacHelper(c)})(Math),r.MD5})})(To);var Hd=To.exports,Ro={exports:{}};(function(t,e){(function(r,n){t.exports=n(Fe())})(oe,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,g=a[p+1>>>2]>>>24-(p+1)%4*8&255,v=a[p+2>>>2]>>>24-(p+2)%4*8&255,E=d<<16|g<<8|v,m=0;m<4&&p+m*.75<c;m++)h.push(f.charAt(E>>>6*(3-m)&63));var b=f.charAt(64);if(b)for(;h.length%4;)h.push(b);return h.join("")},parse:function(l){var a=l.length,c=this._map,f=this._reverseMap;if(!f){f=this._reverseMap=[];for(var h=0;h<c.length;h++)f[c.charCodeAt(h)]=h}var p=c.charAt(64);if(p){var d=l.indexOf(p);d!==-1&&(a=d)}return u(l,a,f)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function u(l,a,c){for(var f=[],h=0,p=0;p<a;p++)if(p%4){var d=c[l.charCodeAt(p-1)]<<p%4*2,g=c[l.charCodeAt(p)]>>>6-p%4*2,v=d|g;f[h>>>2]|=v<<24-h%4*8,h++}return s.create(f,h)}})(),r.enc.Base64})})(Ro);var Vd=Ro.exports,kd={exports:{}};(function(t,e){(function(r,n){t.exports=n(Fe())})(oe,function(r){return r.enc.Utf8})})(kd);var qd={exports:{}},xr={exports:{}},Or={exports:{}},$i;function zd(){return $i||($i=1,(function(t,e){(function(r,n){t.exports=n(Fe())})(oe,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],g=h[2],v=h[3],E=h[4],m=0;m<80;m++){if(m<16)l[m]=c[f+m]|0;else{var b=l[m-3]^l[m-8]^l[m-14]^l[m-16];l[m]=b<<1|b>>>31}var _=(p<<5|p>>>27)+E+l[m];m<20?_+=(d&g|~d&v)+1518500249:m<40?_+=(d^g^v)+1859775393:m<60?_+=(d&g|d&v|g&v)-1894007588:_+=(d^g^v)-899497514,E=v,v=g,g=d<<30|d>>>2,d=p,p=_}h[0]=h[0]+p|0,h[1]=h[1]+d|0,h[2]=h[2]+g|0,h[3]=h[3]+v|0,h[4]=h[4]+E|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})})(Or)),Or.exports}var $r={exports:{}},Di;function Wd(){return Di||(Di=1,(function(t,e){(function(r,n){t.exports=n(Fe())})(oe,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(),g=p.words,v=d.words,E=0;E<f;E++)g[E]^=1549556828,v[E]^=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}})})()})})($r)),$r.exports}var Ci;function Ao(){return Ci||(Ci=1,(function(t,e){(function(r,n,i){t.exports=n(Fe(),zd(),Wd())})(oe,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(),g=o.create(),v=g.words,E=p.keySize,m=p.iterations;v.length<E;){h&&d.update(h),h=d.update(c).finalize(f),d.reset();for(var b=1;b<m;b++)h=d.finalize(h),d.reset();g.concat(h)}return g.sigBytes=E*4,g}});n.EvpKDF=function(c,f,h){return a.create(h).compute(c,f)}})(),r.EvpKDF})})(xr)),xr.exports}var Dr={exports:{}},Bi;function Kd(){return Bi||(Bi=1,(function(t,e){(function(r,n,i){t.exports=n(Fe(),Ao())})(oe,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(S,A){return this.create(this._ENC_XFORM_MODE,S,A)},createDecryptor:function(S,A){return this.create(this._DEC_XFORM_MODE,S,A)},init:function(S,A,M){this.cfg=this.cfg.extend(M),this._xformMode=S,this._key=A,this.reset()},reset:function(){l.reset.call(this),this._doReset()},process:function(S){return this._append(S),this._process()},finalize:function(S){S&&this._append(S);var A=this._doFinalize();return A},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:(function(){function S(A){return typeof A=="string"?L:y}return function(A){return{encrypt:function(M,j,I){return S(j).encrypt(A,M,j,I)},decrypt:function(M,j,I){return S(j).decrypt(A,M,j,I)}}}})()});s.StreamCipher=p.extend({_doFinalize:function(){var S=this._process(!0);return S},blockSize:1});var d=i.mode={},g=s.BlockCipherMode=o.extend({createEncryptor:function(S,A){return this.Encryptor.create(S,A)},createDecryptor:function(S,A){return this.Decryptor.create(S,A)},init:function(S,A){this._cipher=S,this._iv=A}}),v=d.CBC=(function(){var S=g.extend();S.Encryptor=S.extend({processBlock:function(M,j){var I=this._cipher,B=I.blockSize;A.call(this,M,j,B),I.encryptBlock(M,j),this._prevBlock=M.slice(j,j+B)}}),S.Decryptor=S.extend({processBlock:function(M,j){var I=this._cipher,B=I.blockSize,$=M.slice(j,j+B);I.decryptBlock(M,j),A.call(this,M,j,B),this._prevBlock=$}});function A(M,j,I){var B,$=this._iv;$?(B=$,this._iv=n):B=this._prevBlock;for(var H=0;H<I;H++)M[j+H]^=B[H]}return S})(),E=i.pad={},m=E.Pkcs7={pad:function(S,A){for(var M=A*4,j=M-S.sigBytes%M,I=j<<24|j<<16|j<<8|j,B=[],$=0;$<j;$+=4)B.push(I);var H=u.create(B,j);S.concat(H)},unpad:function(S){var A=S.words[S.sigBytes-1>>>2]&255;S.sigBytes-=A}};s.BlockCipher=p.extend({cfg:p.cfg.extend({mode:v,padding:m}),reset:function(){var S;p.reset.call(this);var A=this.cfg,M=A.iv,j=A.mode;this._xformMode==this._ENC_XFORM_MODE?S=j.createEncryptor:(S=j.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==S?this._mode.init(this,M&&M.words):(this._mode=S.call(j,this,M&&M.words),this._mode.__creator=S)},_doProcessBlock:function(S,A){this._mode.processBlock(S,A)},_doFinalize:function(){var S,A=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(A.pad(this._data,this.blockSize),S=this._process(!0)):(S=this._process(!0),A.unpad(S)),S},blockSize:128/32});var b=s.CipherParams=o.extend({init:function(S){this.mixIn(S)},toString:function(S){return(S||this.formatter).stringify(this)}}),_=i.format={},w=_.OpenSSL={stringify:function(S){var A,M=S.ciphertext,j=S.salt;return j?A=u.create([1398893684,1701076831]).concat(j).concat(M):A=M,A.toString(c)},parse:function(S){var A,M=c.parse(S),j=M.words;return j[0]==1398893684&&j[1]==1701076831&&(A=u.create(j.slice(2,4)),j.splice(0,4),M.sigBytes-=16),b.create({ciphertext:M,salt:A})}},y=s.SerializableCipher=o.extend({cfg:o.extend({format:w}),encrypt:function(S,A,M,j){j=this.cfg.extend(j);var I=S.createEncryptor(M,j),B=I.finalize(A),$=I.cfg;return b.create({ciphertext:B,key:M,iv:$.iv,algorithm:S,mode:$.mode,padding:$.padding,blockSize:S.blockSize,formatter:j.format})},decrypt:function(S,A,M,j){j=this.cfg.extend(j),A=this._parse(A,j.format);var I=S.createDecryptor(M,j).finalize(A.ciphertext);return I},_parse:function(S,A){return typeof S=="string"?A.parse(S,this):S}}),T=i.kdf={},O=T.OpenSSL={execute:function(S,A,M,j,I){if(j||(j=u.random(64/8)),I)var B=h.create({keySize:A+M,hasher:I}).compute(S,j);else var B=h.create({keySize:A+M}).compute(S,j);var $=u.create(B.words.slice(A),M*4);return B.sigBytes=A*4,b.create({key:B,iv:$,salt:j})}},L=s.PasswordBasedCipher=y.extend({cfg:y.cfg.extend({kdf:O}),encrypt:function(S,A,M,j){j=this.cfg.extend(j);var I=j.kdf.execute(M,S.keySize,S.ivSize,j.salt,j.hasher);j.iv=I.iv;var B=y.encrypt.call(this,S,A,I.key,j);return B.mixIn(I),B},decrypt:function(S,A,M,j){j=this.cfg.extend(j),A=this._parse(A,j.format);var I=j.kdf.execute(M,S.keySize,S.ivSize,A.salt,j.hasher);j.iv=I.iv;var B=y.decrypt.call(this,S,A,I.key,j);return B}})})()})})(Dr)),Dr.exports}(function(t,e){(function(r,n,i){t.exports=n(Fe(),Vd,Hd,Ao(),Kd())})(oe,function(r){return(function(){var n=r,i=n.lib,s=i.BlockCipher,o=n.algo,u=[],l=[],a=[],c=[],f=[],h=[],p=[],d=[],g=[],v=[];(function(){for(var b=[],_=0;_<256;_++)_<128?b[_]=_<<1:b[_]=_<<1^283;for(var w=0,y=0,_=0;_<256;_++){var T=y^y<<1^y<<2^y<<3^y<<4;T=T>>>8^T&255^99,u[w]=T,l[T]=w;var O=b[w],L=b[O],S=b[L],A=b[T]*257^T*16843008;a[w]=A<<24|A>>>8,c[w]=A<<16|A>>>16,f[w]=A<<8|A>>>24,h[w]=A;var A=S*16843009^L*65537^O*257^w*16843008;p[T]=A<<24|A>>>8,d[T]=A<<16|A>>>16,g[T]=A<<8|A>>>24,v[T]=A,w?(w=O^b[b[b[S^O]]],y^=b[b[y]]):w=y=1}})();var E=[0,1,2,4,8,16,32,64,128,27,54],m=o.AES=s.extend({_doReset:function(){var b;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var _=this._keyPriorReset=this._key,w=_.words,y=_.sigBytes/4,T=this._nRounds=y+6,O=(T+1)*4,L=this._keySchedule=[],S=0;S<O;S++)S<y?L[S]=w[S]:(b=L[S-1],S%y?y>6&&S%y==4&&(b=u[b>>>24]<<24|u[b>>>16&255]<<16|u[b>>>8&255]<<8|u[b&255]):(b=b<<8|b>>>24,b=u[b>>>24]<<24|u[b>>>16&255]<<16|u[b>>>8&255]<<8|u[b&255],b^=E[S/y|0]<<24),L[S]=L[S-y]^b);for(var A=this._invKeySchedule=[],M=0;M<O;M++){var S=O-M;if(M%4)var b=L[S];else var b=L[S-4];M<4||S<=4?A[M]=b:A[M]=p[u[b>>>24]]^d[u[b>>>16&255]]^g[u[b>>>8&255]]^v[u[b&255]]}}},encryptBlock:function(b,_){this._doCryptBlock(b,_,this._keySchedule,a,c,f,h,u)},decryptBlock:function(b,_){var w=b[_+1];b[_+1]=b[_+3],b[_+3]=w,this._doCryptBlock(b,_,this._invKeySchedule,p,d,g,v,l);var w=b[_+1];b[_+1]=b[_+3],b[_+3]=w},_doCryptBlock:function(b,_,w,y,T,O,L,S){for(var A=this._nRounds,M=b[_]^w[0],j=b[_+1]^w[1],I=b[_+2]^w[2],B=b[_+3]^w[3],$=4,H=1;H<A;H++){var F=y[M>>>24]^T[j>>>16&255]^O[I>>>8&255]^L[B&255]^w[$++],q=y[j>>>24]^T[I>>>16&255]^O[B>>>8&255]^L[M&255]^w[$++],z=y[I>>>24]^T[B>>>16&255]^O[M>>>8&255]^L[j&255]^w[$++],x=y[B>>>24]^T[M>>>16&255]^O[j>>>8&255]^L[I&255]^w[$++];M=F,j=q,I=z,B=x}var F=(S[M>>>24]<<24|S[j>>>16&255]<<16|S[I>>>8&255]<<8|S[B&255])^w[$++],q=(S[j>>>24]<<24|S[I>>>16&255]<<16|S[B>>>8&255]<<8|S[M&255])^w[$++],z=(S[I>>>24]<<24|S[B>>>16&255]<<16|S[M>>>8&255]<<8|S[j&255])^w[$++],x=(S[B>>>24]<<24|S[M>>>16&255]<<16|S[j>>>8&255]<<8|S[I&255])^w[$++];b[_]=F,b[_+1]=q,b[_+2]=z,b[_+3]=x},keySize:256/32});n.AES=s._createHelper(m)})(),r.AES})})(qd);var Jd="0123456789abcdefghijklmnopqrstuvwxyz";function Oe(t){return Jd.charAt(t)}function Gd(t,e){return t&e}function Nt(t,e){return t|e}function Pi(t,e){return t^e}function ji(t,e){return t&~e}function Yd(t){if(t==0)return-1;var e=0;return(t&65535)==0&&(t>>=16,e+=16),(t&255)==0&&(t>>=8,e+=8),(t&15)==0&&(t>>=4,e+=4),(t&3)==0&&(t>>=2,e+=2),(t&1)==0&&++e,e}function Zd(t){for(var e=0;t!=0;)t&=t-1,++e;return e}var tt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",xo="=";function bt(t){var e,r,n="";for(e=0;e+3<=t.length;e+=3)r=parseInt(t.substring(e,e+3),16),n+=tt.charAt(r>>6)+tt.charAt(r&63);for(e+1==t.length?(r=parseInt(t.substring(e,e+1),16),n+=tt.charAt(r<<2)):e+2==t.length&&(r=parseInt(t.substring(e,e+2),16),n+=tt.charAt(r>>2)+tt.charAt((r&3)<<4));(n.length&3)>0;)n+=xo;return n}function Ni(t){var e="",r,n=0,i=0;for(r=0;r<t.length&&t.charAt(r)!=xo;++r){var s=tt.indexOf(t.charAt(r));s<0||(n==0?(e+=Oe(s>>2),i=s&3,n=1):n==1?(e+=Oe(i<<2|s>>4),i=s&15,n=2):n==2?(e+=Oe(i),e+=Oe(s>>2),i=s&3,n=3):(e+=Oe(i<<2|s>>4),e+=Oe(s&15),n=0))}return n==1&&(e+=Oe(i<<2)),e}var Ze,Qd={decode:function(t){var e;if(Ze===void 0){var r="0123456789ABCDEF",n=` \f
20
+ \r  \u2028\u2029`;for(Ze={},e=0;e<16;++e)Ze[r.charAt(e)]=e;for(r=r.toLowerCase(),e=10;e<16;++e)Ze[r.charAt(e)]=e;for(e=0;e<n.length;++e)Ze[n.charAt(e)]=-1}var i=[],s=0,o=0;for(e=0;e<t.length;++e){var u=t.charAt(e);if(u=="=")break;if(u=Ze[u],u!=-1){if(u===void 0)throw new Error("Illegal character at offset "+e);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}},He,sn={decode:function(t){var e;if(He===void 0){var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n=`= \f
21
+ \r  \u2028\u2029`;for(He=Object.create(null),e=0;e<64;++e)He[r.charAt(e)]=e;for(He["-"]=62,He._=63,e=0;e<n.length;++e)He[n.charAt(e)]=-1}var i=[],s=0,o=0;for(e=0;e<t.length;++e){var u=t.charAt(e);if(u=="=")break;if(u=He[u],u!=-1){if(u===void 0)throw new Error("Illegal character at offset "+e);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(t){var e=sn.re.exec(t);if(e)if(e[1])t=e[1];else if(e[2])t=e[2];else throw new Error("RegExp out of sync");return sn.decode(t)}},Qe=1e13,mt=(function(){function t(e){this.buf=[+e||0]}return t.prototype.mulAdd=function(e,r){var n=this.buf,i=n.length,s,o;for(s=0;s<i;++s)o=n[s]*e+r,o<Qe?r=0:(r=0|o/Qe,o-=r*Qe),n[s]=o;r>0&&(n[s]=r)},t.prototype.sub=function(e){var r=this.buf,n=r.length,i,s;for(i=0;i<n;++i)s=r[i]-e,s<0?(s+=Qe,e=1):e=0,r[i]=s;for(;r[r.length-1]===0;)r.pop()},t.prototype.toString=function(e){if((e||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+=(Qe+r[i]).toString().substring(1);return n},t.prototype.valueOf=function(){for(var e=this.buf,r=0,n=e.length-1;n>=0;--n)r=r*Qe+e[n];return r},t.prototype.simplify=function(){var e=this.buf;return e.length==1?e[0]:this},t})(),Oo="…",Xd=/^(\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)?)?$/,eg=/^(\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 nt(t,e){return t.length>e&&(t=t.substring(0,e)+Oo),t}var Cr=(function(){function t(e,r){this.hexDigits="0123456789ABCDEF",e instanceof t?(this.enc=e.enc,this.pos=e.pos):(this.enc=e,this.pos=r)}return t.prototype.get=function(e){if(e===void 0&&(e=this.pos++),e>=this.enc.length)throw new Error("Requesting byte offset ".concat(e," on a stream of length ").concat(this.enc.length));return typeof this.enc=="string"?this.enc.charCodeAt(e):this.enc[e]},t.prototype.hexByte=function(e){return this.hexDigits.charAt(e>>4&15)+this.hexDigits.charAt(e&15)},t.prototype.hexDump=function(e,r,n){for(var i="",s=e;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},t.prototype.isASCII=function(e,r){for(var n=e;n<r;++n){var i=this.get(n);if(i<32||i>176)return!1}return!0},t.prototype.parseStringISO=function(e,r){for(var n="",i=e;i<r;++i)n+=String.fromCharCode(this.get(i));return n},t.prototype.parseStringUTF=function(e,r){for(var n="",i=e;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},t.prototype.parseStringBMP=function(e,r){for(var n="",i,s,o=e;o<r;)i=this.get(o++),s=this.get(o++),n+=String.fromCharCode(i<<8|s);return n},t.prototype.parseTime=function(e,r,n){var i=this.parseStringISO(e,r),s=(n?Xd:eg).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},t.prototype.parseInteger=function(e,r){for(var n=this.get(e),i=n>127,s=i?255:0,o,u="";n==s&&++e<r;)n=this.get(e);if(o=r-e,o===0)return i?-1:0;if(o>4){for(u=n,o<<=3;((+u^s)&128)==0;)u=+u<<1,--o;u="("+o+` bit)
23
+ `}i&&(n=n-256);for(var l=new mt(n),a=e+1;a<r;++a)l.mulAdd(256,this.get(a));return u+l.toString()},t.prototype.parseBitString=function(e,r,n){for(var i=this.get(e),s=(r-e-1<<3)-i,o="("+s+` bit)
24
+ `,u="",l=e+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+nt(u,n)}return o+u},t.prototype.parseOctetString=function(e,r,n){if(this.isASCII(e,r))return nt(this.parseStringISO(e,r),n);var i=r-e,s="("+i+` byte)
25
+ `;n/=2,i>n&&(r=e+n);for(var o=e;o<r;++o)s+=this.hexByte(this.get(o));return i>n&&(s+=Oo),s},t.prototype.parseOID=function(e,r,n){for(var i="",s=new mt,o=0,u=e;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 mt)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 nt(i,n);s=new mt,o=0}}return o>0&&(i+=".incomplete"),i},t})(),tg=(function(){function t(e,r,n,i,s){if(!(i instanceof Ii))throw new Error("Invalid tag value.");this.stream=e,this.header=r,this.length=n,this.tag=i,this.sub=s}return t.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()}},t.prototype.content=function(e){if(this.tag===void 0)return null;e===void 0&&(e=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,e);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,e);case 4:return this.sub?"("+this.sub.length+" elem)":this.stream.parseOctetString(r,r+n,e);case 6:return this.stream.parseOID(r,r+n,e);case 16:case 17:return this.sub!==null?"("+this.sub.length+" elem)":"(no elem)";case 12:return nt(this.stream.parseStringUTF(r,r+n),e);case 18:case 19:case 20:case 21:case 22:case 26:return nt(this.stream.parseStringISO(r,r+n),e);case 30:return nt(this.stream.parseStringBMP(r,r+n),e);case 23:case 24:return this.stream.parseTime(r,r+n,this.tag.tagNumber==23)}return null},t.prototype.toString=function(){return this.typeName()+"@"+this.stream.pos+"[header:"+this.header+",length:"+this.length+",sub:"+(this.sub===null?"null":this.sub.length)+"]"},t.prototype.toPrettyString=function(e){e===void 0&&(e="");var r=e+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){e+=" ";for(var n=0,i=this.sub.length;n<i;++n)r+=this.sub[n].toPrettyString(e)}return r},t.prototype.posStart=function(){return this.stream.pos},t.prototype.posContent=function(){return this.stream.pos+this.header},t.prototype.posEnd=function(){return this.stream.pos+this.header+Math.abs(this.length)},t.prototype.toHexString=function(){return this.stream.hexDump(this.posStart(),this.posEnd(),!0)},t.decodeLength=function(e){var r=e.get(),n=r&127;if(n==r)return n;if(n>6)throw new Error("Length over 48 bits not supported at position "+(e.pos-1));if(n===0)return null;r=0;for(var i=0;i<n;++i)r=r*256+e.get();return r},t.prototype.getHexStringValue=function(){var e=this.toHexString(),r=this.header*2,n=this.length*2;return e.substring(r,r+n)},t.decode=function(e){var r;e instanceof Cr?r=e:r=new Cr(e,0);var n=new Cr(r),i=new Ii(r),s=t.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]=t.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=t.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 t(n,u,s,i,l)},t})(),Ii=(function(){function t(e){var r=e.get();if(this.tagClass=r>>6,this.tagConstructed=(r&32)!==0,this.tagNumber=r&31,this.tagNumber==31){var n=new mt;do r=e.get(),n.mulAdd(128,r&127);while(r&128);this.tagNumber=n.simplify()}}return t.prototype.isUniversal=function(){return this.tagClass===0},t.prototype.isEOC=function(){return this.tagClass===0&&this.tagNumber===0},t})(),Ie,rg=0xdeadbeefcafe,Mi=(rg&16777215)==15715070,se=[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],ng=(1<<26)/se[se.length-1],K=(function(){function t(e,r,n){e!=null&&(typeof e=="number"?this.fromNumber(e,r,n):r==null&&typeof e!="string"?this.fromString(e,256):this.fromString(e,r))}return t.prototype.toString=function(e){if(this.s<0)return"-"+this.negate().toString(e);var r;if(e==16)r=4;else if(e==8)r=3;else if(e==2)r=1;else if(e==32)r=5;else if(e==4)r=2;else return this.toRadix(e);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=Oe(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+=Oe(i));return s?o:"0"},t.prototype.negate=function(){var e=J();return t.ZERO.subTo(this,e),e},t.prototype.abs=function(){return this.s<0?this.negate():this},t.prototype.compareTo=function(e){var r=this.s-e.s;if(r!=0)return r;var n=this.t;if(r=n-e.t,r!=0)return this.s<0?-r:r;for(;--n>=0;)if((r=this[n]-e[n])!=0)return r;return 0},t.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+It(this[this.t-1]^this.s&this.DM)},t.prototype.mod=function(e){var r=J();return this.abs().divRemTo(e,null,r),this.s<0&&r.compareTo(t.ZERO)>0&&e.subTo(r,r),r},t.prototype.modPowInt=function(e,r){var n;return e<256||r.isEven()?n=new Fi(r):n=new Li(r),this.exp(e,n)},t.prototype.clone=function(){var e=J();return this.copyTo(e),e},t.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]},t.prototype.byteValue=function(){return this.t==0?this.s:this[0]<<24>>24},t.prototype.shortValue=function(){return this.t==0?this.s:this[0]<<16>>16},t.prototype.signum=function(){return this.s<0?-1:this.t<=0||this.t==1&&this[0]<=0?0:1},t.prototype.toByteArray=function(){var e=this.t,r=[];r[0]=this.s;var n=this.DB-e*this.DB%8,i,s=0;if(e-- >0)for(n<this.DB&&(i=this[e]>>n)!=(this.s&this.DM)>>n&&(r[s++]=i|this.s<<this.DB-n);e>=0;)n<8?(i=(this[e]&(1<<n)-1)<<8-n,i|=this[--e]>>(n+=this.DB-8)):(i=this[e]>>(n-=8)&255,n<=0&&(n+=this.DB,--e)),(i&128)!=0&&(i|=-256),s==0&&(this.s&128)!=(i&128)&&++s,(s>0||i!=this.s)&&(r[s++]=i);return r},t.prototype.equals=function(e){return this.compareTo(e)==0},t.prototype.min=function(e){return this.compareTo(e)<0?this:e},t.prototype.max=function(e){return this.compareTo(e)>0?this:e},t.prototype.and=function(e){var r=J();return this.bitwiseTo(e,Gd,r),r},t.prototype.or=function(e){var r=J();return this.bitwiseTo(e,Nt,r),r},t.prototype.xor=function(e){var r=J();return this.bitwiseTo(e,Pi,r),r},t.prototype.andNot=function(e){var r=J();return this.bitwiseTo(e,ji,r),r},t.prototype.not=function(){for(var e=J(),r=0;r<this.t;++r)e[r]=this.DM&~this[r];return e.t=this.t,e.s=~this.s,e},t.prototype.shiftLeft=function(e){var r=J();return e<0?this.rShiftTo(-e,r):this.lShiftTo(e,r),r},t.prototype.shiftRight=function(e){var r=J();return e<0?this.lShiftTo(-e,r):this.rShiftTo(e,r),r},t.prototype.getLowestSetBit=function(){for(var e=0;e<this.t;++e)if(this[e]!=0)return e*this.DB+Yd(this[e]);return this.s<0?this.t*this.DB:-1},t.prototype.bitCount=function(){for(var e=0,r=this.s&this.DM,n=0;n<this.t;++n)e+=Zd(this[n]^r);return e},t.prototype.testBit=function(e){var r=Math.floor(e/this.DB);return r>=this.t?this.s!=0:(this[r]&1<<e%this.DB)!=0},t.prototype.setBit=function(e){return this.changeBit(e,Nt)},t.prototype.clearBit=function(e){return this.changeBit(e,ji)},t.prototype.flipBit=function(e){return this.changeBit(e,Pi)},t.prototype.add=function(e){var r=J();return this.addTo(e,r),r},t.prototype.subtract=function(e){var r=J();return this.subTo(e,r),r},t.prototype.multiply=function(e){var r=J();return this.multiplyTo(e,r),r},t.prototype.divide=function(e){var r=J();return this.divRemTo(e,r,null),r},t.prototype.remainder=function(e){var r=J();return this.divRemTo(e,null,r),r},t.prototype.divideAndRemainder=function(e){var r=J(),n=J();return this.divRemTo(e,r,n),[r,n]},t.prototype.modPow=function(e,r){var n=e.bitLength(),i,s=je(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 Fi(r):r.isEven()?o=new sg(r):o=new Li(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=e.t-1,p,d=!0,g=J(),v;for(n=It(e[h])-1;h>=0;){for(n>=a?p=e[h]>>n-a&c:(p=(e[h]&(1<<n+1)-1)<<a-n,h>0&&(p|=e[h-1]>>this.DB+n-a)),l=i;(p&1)==0;)p>>=1,--l;if((n-=l)<0&&(n+=this.DB,--h),d)u[p].copyTo(s),d=!1;else{for(;l>1;)o.sqrTo(s,g),o.sqrTo(g,s),l-=2;l>0?o.sqrTo(s,g):(v=s,s=g,g=v),o.mulTo(g,u[p],s)}for(;h>=0&&(e[h]&1<<n)==0;)o.sqrTo(s,g),v=s,s=g,g=v,--n<0&&(n=this.DB-1,--h)}return o.revert(s)},t.prototype.modInverse=function(e){var r=e.isEven();if(this.isEven()&&r||e.signum()==0)return t.ZERO;for(var n=e.clone(),i=this.clone(),s=je(1),o=je(0),u=je(0),l=je(1);n.signum()!=0;){for(;n.isEven();)n.rShiftTo(1,n),r?((!s.isEven()||!o.isEven())&&(s.addTo(this,s),o.subTo(e,o)),s.rShiftTo(1,s)):o.isEven()||o.subTo(e,o),o.rShiftTo(1,o);for(;i.isEven();)i.rShiftTo(1,i),r?((!u.isEven()||!l.isEven())&&(u.addTo(this,u),l.subTo(e,l)),u.rShiftTo(1,u)):l.isEven()||l.subTo(e,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(t.ONE)!=0)return t.ZERO;if(l.compareTo(e)>=0)return l.subtract(e);if(l.signum()<0)l.addTo(e,l);else return l;return l.signum()<0?l.add(e):l},t.prototype.pow=function(e){return this.exp(e,new ig)},t.prototype.gcd=function(e){var r=this.s<0?this.negate():this.clone(),n=e.s<0?e.negate():e.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},t.prototype.isProbablePrime=function(e){var r,n=this.abs();if(n.t==1&&n[0]<=se[se.length-1]){for(r=0;r<se.length;++r)if(n[0]==se[r])return!0;return!1}if(n.isEven())return!1;for(r=1;r<se.length;){for(var i=se[r],s=r+1;s<se.length&&i<ng;)i*=se[s++];for(i=n.modInt(i);r<s;)if(i%se[r++]==0)return!1}return n.millerRabin(e)},t.prototype.copyTo=function(e){for(var r=this.t-1;r>=0;--r)e[r]=this[r];e.t=this.t,e.s=this.s},t.prototype.fromInt=function(e){this.t=1,this.s=e<0?-1:0,e>0?this[0]=e:e<-1?this[0]=e+this.DV:this.t=0},t.prototype.fromString=function(e,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(e,r);return}this.t=0,this.s=0;for(var i=e.length,s=!1,o=0;--i>=0;){var u=n==8?+e[i]&255:Hi(e,i);if(u<0){e.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&&(+e[0]&128)!=0&&(this.s=-1,o>0&&(this[this.t-1]|=(1<<this.DB-o)-1<<o)),this.clamp(),s&&t.ZERO.subTo(this,this)},t.prototype.clamp=function(){for(var e=this.s&this.DM;this.t>0&&this[this.t-1]==e;)--this.t},t.prototype.dlShiftTo=function(e,r){var n;for(n=this.t-1;n>=0;--n)r[n+e]=this[n];for(n=e-1;n>=0;--n)r[n]=0;r.t=this.t+e,r.s=this.s},t.prototype.drShiftTo=function(e,r){for(var n=e;n<this.t;++n)r[n-e]=this[n];r.t=Math.max(this.t-e,0),r.s=this.s},t.prototype.lShiftTo=function(e,r){for(var n=e%this.DB,i=this.DB-n,s=(1<<i)-1,o=Math.floor(e/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()},t.prototype.rShiftTo=function(e,r){r.s=this.s;var n=Math.floor(e/this.DB);if(n>=this.t){r.t=0;return}var i=e%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()},t.prototype.subTo=function(e,r){for(var n=0,i=0,s=Math.min(e.t,this.t);n<s;)i+=this[n]-e[n],r[n++]=i&this.DM,i>>=this.DB;if(e.t<this.t){for(i-=e.s;n<this.t;)i+=this[n],r[n++]=i&this.DM,i>>=this.DB;i+=this.s}else{for(i+=this.s;n<e.t;)i-=e[n],r[n++]=i&this.DM,i>>=this.DB;i-=e.s}r.s=i<0?-1:0,i<-1?r[n++]=this.DV+i:i>0&&(r[n++]=i),r.t=n,r.clamp()},t.prototype.multiplyTo=function(e,r){var n=this.abs(),i=e.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!=e.s&&t.ZERO.subTo(r,r)},t.prototype.squareTo=function(e){for(var r=this.abs(),n=e.t=2*r.t;--n>=0;)e[n]=0;for(n=0;n<r.t-1;++n){var i=r.am(n,r[n],e,2*n,0,1);(e[n+r.t]+=r.am(n+1,2*r[n],e,2*n+1,i,r.t-n-1))>=r.DV&&(e[n+r.t]-=r.DV,e[n+r.t+1]=1)}e.t>0&&(e[e.t-1]+=r.am(n,r[n],e,2*n,0,1)),e.s=0,e.clamp()},t.prototype.divRemTo=function(e,r,n){var i=e.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=e.s,a=this.DB-It(i[i.t-1]);a>0?(i.lShiftTo(a,o),s.lShiftTo(a,n)):(i.copyTo(o),s.copyTo(n));var c=o.t,f=o[c-1];if(f!=0){var h=f*(1<<this.F1)+(c>1?o[c-2]>>this.F2:0),p=this.FV/h,d=(1<<this.F1)/h,g=1<<this.F2,v=n.t,E=v-c,m=r==null?J():r;for(o.dlShiftTo(E,m),n.compareTo(m)>=0&&(n[n.t++]=1,n.subTo(m,n)),t.ONE.dlShiftTo(c,m),m.subTo(o,o);o.t<c;)o[o.t++]=0;for(;--E>=0;){var b=n[--v]==f?this.DM:Math.floor(n[v]*p+(n[v-1]+g)*d);if((n[v]+=o.am(0,b,n,E,0,c))<b)for(o.dlShiftTo(E,m),n.subTo(m,n);n[v]<--b;)n.subTo(m,n)}r!=null&&(n.drShiftTo(c,r),u!=l&&t.ZERO.subTo(r,r)),n.t=c,n.clamp(),a>0&&n.rShiftTo(a,n),u<0&&t.ZERO.subTo(n,n)}}},t.prototype.invDigit=function(){if(this.t<1)return 0;var e=this[0];if((e&1)==0)return 0;var r=e&3;return r=r*(2-(e&15)*r)&15,r=r*(2-(e&255)*r)&255,r=r*(2-((e&65535)*r&65535))&65535,r=r*(2-e*r%this.DV)%this.DV,r>0?this.DV-r:-r},t.prototype.isEven=function(){return(this.t>0?this[0]&1:this.s)==0},t.prototype.exp=function(e,r){if(e>4294967295||e<1)return t.ONE;var n=J(),i=J(),s=r.convert(this),o=It(e)-1;for(s.copyTo(n);--o>=0;)if(r.sqrTo(n,i),(e&1<<o)>0)r.mulTo(i,s,n);else{var u=n;n=i,i=u}return r.revert(n)},t.prototype.chunkSize=function(e){return Math.floor(Math.LN2*this.DB/Math.log(e))},t.prototype.toRadix=function(e){if(e==null&&(e=10),this.signum()==0||e<2||e>36)return"0";var r=this.chunkSize(e),n=Math.pow(e,r),i=je(n),s=J(),o=J(),u="";for(this.divRemTo(i,s,o);s.signum()>0;)u=(n+o.intValue()).toString(e).substring(1)+u,s.divRemTo(i,s,o);return o.intValue().toString(e)+u},t.prototype.fromRadix=function(e,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<e.length;++l){var a=Hi(e,l);if(a<0){e.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&&t.ZERO.subTo(this,this)},t.prototype.fromNumber=function(e,r,n){if(typeof r=="number")if(e<2)this.fromInt(1);else for(this.fromNumber(e,n),this.testBit(e-1)||this.bitwiseTo(t.ONE.shiftLeft(e-1),Nt,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(r);)this.dAddOffset(2,0),this.bitLength()>e&&this.subTo(t.ONE.shiftLeft(e-1),this);else{var i=[],s=e&7;i.length=(e>>3)+1,r.nextBytes(i),s>0?i[0]&=(1<<s)-1:i[0]=0,this.fromString(i,256)}},t.prototype.bitwiseTo=function(e,r,n){var i,s,o=Math.min(e.t,this.t);for(i=0;i<o;++i)n[i]=r(this[i],e[i]);if(e.t<this.t){for(s=e.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<e.t;++i)n[i]=r(s,e[i]);n.t=e.t}n.s=r(this.s,e.s),n.clamp()},t.prototype.changeBit=function(e,r){var n=t.ONE.shiftLeft(e);return this.bitwiseTo(n,r,n),n},t.prototype.addTo=function(e,r){for(var n=0,i=0,s=Math.min(e.t,this.t);n<s;)i+=this[n]+e[n],r[n++]=i&this.DM,i>>=this.DB;if(e.t<this.t){for(i+=e.s;n<this.t;)i+=this[n],r[n++]=i&this.DM,i>>=this.DB;i+=this.s}else{for(i+=this.s;n<e.t;)i+=e[n],r[n++]=i&this.DM,i>>=this.DB;i+=e.s}r.s=i<0?-1:0,i>0?r[n++]=i:i<-1&&(r[n++]=this.DV+i),r.t=n,r.clamp()},t.prototype.dMultiply=function(e){this[this.t]=this.am(0,e-1,this,0,0,this.t),++this.t,this.clamp()},t.prototype.dAddOffset=function(e,r){if(e!=0){for(;this.t<=r;)this[this.t++]=0;for(this[r]+=e;this[r]>=this.DV;)this[r]-=this.DV,++r>=this.t&&(this[this.t++]=0),++this[r]}},t.prototype.multiplyLowerTo=function(e,r,n){var i=Math.min(this.t+e.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,e[i],n,i,0,this.t);for(var s=Math.min(e.t,r);i<s;++i)this.am(0,e[i],n,i,0,r-i);n.clamp()},t.prototype.multiplyUpperTo=function(e,r,n){--r;var i=n.t=this.t+e.t-r;for(n.s=0;--i>=0;)n[i]=0;for(i=Math.max(r-this.t,0);i<e.t;++i)n[this.t+i-r]=this.am(r-i,e[i],n,0,0,this.t+i-r);n.clamp(),n.drShiftTo(1,n)},t.prototype.modInt=function(e){if(e<=0)return 0;var r=this.DV%e,n=this.s<0?e-1:0;if(this.t>0)if(r==0)n=this[0]%e;else for(var i=this.t-1;i>=0;--i)n=(r*n+this[i])%e;return n},t.prototype.millerRabin=function(e){var r=this.subtract(t.ONE),n=r.getLowestSetBit();if(n<=0)return!1;var i=r.shiftRight(n);e=e+1>>1,e>se.length&&(e=se.length);for(var s=J(),o=0;o<e;++o){s.fromInt(se[Math.floor(Math.random()*se.length)]);var u=s.modPow(i,this);if(u.compareTo(t.ONE)!=0&&u.compareTo(r)!=0){for(var l=1;l++<n&&u.compareTo(r)!=0;)if(u=u.modPowInt(2,this),u.compareTo(t.ONE)==0)return!1;if(u.compareTo(r)!=0)return!1}}return!0},t.prototype.square=function(){var e=J();return this.squareTo(e),e},t.prototype.gcda=function(e,r){var n=this.s<0?this.negate():this.clone(),i=e.s<0?e.negate():e.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)},t.prototype.fromNumberAsync=function(e,r,n,i){if(typeof r=="number")if(e<2)this.fromInt(1);else{this.fromNumber(e,n),this.testBit(e-1)||this.bitwiseTo(t.ONE.shiftLeft(e-1),Nt,this),this.isEven()&&this.dAddOffset(1,0);var s=this,o=function(){s.dAddOffset(2,0),s.bitLength()>e&&s.subTo(t.ONE.shiftLeft(e-1),s),s.isProbablePrime(r)?setTimeout(function(){i()},0):setTimeout(o,0)};setTimeout(o,0)}else{var u=[],l=e&7;u.length=(e>>3)+1,r.nextBytes(u),l>0?u[0]&=(1<<l)-1:u[0]=0,this.fromString(u,256)}},t})(),ig=(function(){function t(){}return t.prototype.convert=function(e){return e},t.prototype.revert=function(e){return e},t.prototype.mulTo=function(e,r,n){e.multiplyTo(r,n)},t.prototype.sqrTo=function(e,r){e.squareTo(r)},t})(),Fi=(function(){function t(e){this.m=e}return t.prototype.convert=function(e){return e.s<0||e.compareTo(this.m)>=0?e.mod(this.m):e},t.prototype.revert=function(e){return e},t.prototype.reduce=function(e){e.divRemTo(this.m,null,e)},t.prototype.mulTo=function(e,r,n){e.multiplyTo(r,n),this.reduce(n)},t.prototype.sqrTo=function(e,r){e.squareTo(r),this.reduce(r)},t})(),Li=(function(){function t(e){this.m=e,this.mp=e.invDigit(),this.mpl=this.mp&32767,this.mph=this.mp>>15,this.um=(1<<e.DB-15)-1,this.mt2=2*e.t}return t.prototype.convert=function(e){var r=J();return e.abs().dlShiftTo(this.m.t,r),r.divRemTo(this.m,null,r),e.s<0&&r.compareTo(K.ZERO)>0&&this.m.subTo(r,r),r},t.prototype.revert=function(e){var r=J();return e.copyTo(r),this.reduce(r),r},t.prototype.reduce=function(e){for(;e.t<=this.mt2;)e[e.t++]=0;for(var r=0;r<this.m.t;++r){var n=e[r]&32767,i=n*this.mpl+((n*this.mph+(e[r]>>15)*this.mpl&this.um)<<15)&e.DM;for(n=r+this.m.t,e[n]+=this.m.am(0,i,e,r,0,this.m.t);e[n]>=e.DV;)e[n]-=e.DV,e[++n]++}e.clamp(),e.drShiftTo(this.m.t,e),e.compareTo(this.m)>=0&&e.subTo(this.m,e)},t.prototype.mulTo=function(e,r,n){e.multiplyTo(r,n),this.reduce(n)},t.prototype.sqrTo=function(e,r){e.squareTo(r),this.reduce(r)},t})(),sg=(function(){function t(e){this.m=e,this.r2=J(),this.q3=J(),K.ONE.dlShiftTo(2*e.t,this.r2),this.mu=this.r2.divide(e)}return t.prototype.convert=function(e){if(e.s<0||e.t>2*this.m.t)return e.mod(this.m);if(e.compareTo(this.m)<0)return e;var r=J();return e.copyTo(r),this.reduce(r),r},t.prototype.revert=function(e){return e},t.prototype.reduce=function(e){for(e.drShiftTo(this.m.t-1,this.r2),e.t>this.m.t+1&&(e.t=this.m.t+1,e.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);e.compareTo(this.r2)<0;)e.dAddOffset(1,this.m.t+1);for(e.subTo(this.r2,e);e.compareTo(this.m)>=0;)e.subTo(this.m,e)},t.prototype.mulTo=function(e,r,n){e.multiplyTo(r,n),this.reduce(n)},t.prototype.sqrTo=function(e,r){e.squareTo(r),this.reduce(r)},t})();function J(){return new K(null)}function Z(t,e){return new K(t,e)}var Ui=typeof navigator!="undefined";Ui&&Mi&&navigator.appName=="Microsoft Internet Explorer"?(K.prototype.am=function(e,r,n,i,s,o){for(var u=r&32767,l=r>>15;--o>=0;){var a=this[e]&32767,c=this[e++]>>15,f=l*a+c*u;a=u*a+((f&32767)<<15)+n[i]+(s&1073741823),s=(a>>>30)+(f>>>15)+l*c+(s>>>30),n[i++]=a&1073741823}return s},Ie=30):Ui&&Mi&&navigator.appName!="Netscape"?(K.prototype.am=function(e,r,n,i,s,o){for(;--o>=0;){var u=r*this[e++]+n[i]+s;s=Math.floor(u/67108864),n[i++]=u&67108863}return s},Ie=26):(K.prototype.am=function(e,r,n,i,s,o){for(var u=r&16383,l=r>>14;--o>=0;){var a=this[e]&16383,c=this[e++]>>14,f=l*a+c*u;a=u*a+((f&16383)<<14)+n[i]+s,s=(a>>28)+(f>>14)+l*c,n[i++]=a&268435455}return s},Ie=28);K.prototype.DB=Ie;K.prototype.DM=(1<<Ie)-1;K.prototype.DV=1<<Ie;var $n=52;K.prototype.FV=Math.pow(2,$n);K.prototype.F1=$n-Ie;K.prototype.F2=2*Ie-$n;var lr=[],ct,he;ct=48;for(he=0;he<=9;++he)lr[ct++]=he;ct=97;for(he=10;he<36;++he)lr[ct++]=he;ct=65;for(he=10;he<36;++he)lr[ct++]=he;function Hi(t,e){var r=lr[t.charCodeAt(e)];return r==null?-1:r}function je(t){var e=J();return e.fromInt(t),e}function It(t){var e=1,r;return(r=t>>>16)!=0&&(t=r,e+=16),(r=t>>8)!=0&&(t=r,e+=8),(r=t>>4)!=0&&(t=r,e+=4),(r=t>>2)!=0&&(t=r,e+=2),(r=t>>1)!=0&&(t=r,e+=1),e}K.ZERO=je(0);K.ONE=je(1);var og=(function(){function t(){this.i=0,this.j=0,this.S=[]}return t.prototype.init=function(e){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]+e[r%e.length]&255,i=this.S[r],this.S[r]=this.S[n],this.S[n]=i;this.i=0,this.j=0},t.prototype.next=function(){var e;return this.i=this.i+1&255,this.j=this.j+this.S[this.i]&255,e=this.S[this.i],this.S[this.i]=this.S[this.j],this.S[this.j]=e,this.S[e+this.S[this.i]&255]},t})();function ag(){return new og}var $o=256,Mt,Ne=null,ye;if(Ne==null){Ne=[],ye=0;var Ft=void 0;if(typeof window!="undefined"&&self.crypto&&self.crypto.getRandomValues){var Br=new Uint32Array(256);for(self.crypto.getRandomValues(Br),Ft=0;Ft<Br.length;++Ft)Ne[ye++]=Br[Ft]&255}var Lt=0,Ut=function(t){if(Lt=Lt||0,Lt>=256||ye>=$o){self.removeEventListener?self.removeEventListener("mousemove",Ut,!1):self.detachEvent&&self.detachEvent("onmousemove",Ut);return}try{var e=t.x+t.y;Ne[ye++]=e&255,Lt+=1}catch(r){}};typeof window!="undefined"&&(self.addEventListener?self.addEventListener("mousemove",Ut,!1):self.attachEvent&&self.attachEvent("onmousemove",Ut))}function ug(){if(Mt==null){for(Mt=ag();ye<$o;){var t=Math.floor(65536*Math.random());Ne[ye++]=t&255}for(Mt.init(Ne),ye=0;ye<Ne.length;++ye)Ne[ye]=0;ye=0}return Mt.next()}var nr=(function(){function t(){}return t.prototype.nextBytes=function(e){for(var r=0;r<e.length;++r)e[r]=ug()},t})();function on(t){return lg(yg(cg(t),t.length*8))}function Vi(t){for(var e="0123456789abcdef",r="",n=0;n<t.length;n++){var i=t.charCodeAt(n);r+=e.charAt(i>>>4&15)+e.charAt(i&15)}return r}function cg(t){for(var e=Array(t.length>>2),r=0;r<e.length;r++)e[r]=0;for(var r=0;r<t.length*8;r+=8)e[r>>5]|=(t.charCodeAt(r/8)&255)<<24-r%32;return e}function lg(t){for(var e="",r=0;r<t.length*32;r+=8)e+=String.fromCharCode(t[r>>5]>>>24-r%32&255);return e}function Te(t,e){return t>>>e|t<<32-e}function Do(t,e){return t>>>e}function fg(t,e,r){return t&e^~t&r}function hg(t,e,r){return t&e^t&r^e&r}function pg(t){return Te(t,2)^Te(t,13)^Te(t,22)}function dg(t){return Te(t,6)^Te(t,11)^Te(t,25)}function gg(t){return Te(t,7)^Te(t,18)^Do(t,3)}function vg(t){return Te(t,17)^Te(t,19)^Do(t,10)}var mg=new Array(1116352408,1899447441,-1245643825,-373957723,961987163,1508970993,-1841331548,-1424204075,-670586216,310598401,607225278,1426881987,1925078388,-2132889090,-1680079193,-1046744716,-459576895,-272742522,264347078,604807628,770255983,1249150122,1555081692,1996064986,-1740746414,-1473132947,-1341970488,-1084653625,-958395405,-710438585,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,-2117940946,-1838011259,-1564481375,-1474664885,-1035236496,-949202525,-778901479,-694614492,-200395387,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,-2067236844,-1933114872,-1866530822,-1538233109,-1090935817,-965641998);function yg(t,e){var r=new Array(1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225),n=new Array(64),i,s,o,u,l,a,c,f,h,p,d,g;for(t[e>>5]|=128<<24-e%32,t[(e+64>>9<<4)+15]=e,h=0;h<t.length;h+=16){for(i=r[0],s=r[1],o=r[2],u=r[3],l=r[4],a=r[5],c=r[6],f=r[7],p=0;p<64;p++)p<16?n[p]=t[p+h]:n[p]=ne(ne(ne(vg(n[p-2]),n[p-7]),gg(n[p-15])),n[p-16]),d=ne(ne(ne(ne(f,dg(l)),fg(l,a,c)),mg[p]),n[p]),g=ne(pg(i),hg(i,s,o)),f=c,c=a,a=l,l=ne(u,d),u=o,o=s,s=i,i=ne(d,g);r[0]=ne(i,r[0]),r[1]=ne(s,r[1]),r[2]=ne(o,r[2]),r[3]=ne(u,r[3]),r[4]=ne(l,r[4]),r[5]=ne(a,r[5]),r[6]=ne(c,r[6]),r[7]=ne(f,r[7])}return r}function ne(t,e){var r=(t&65535)+(e&65535),n=(t>>16)+(e>>16)+(r>>16);return n<<16|r&65535}function bg(t,e){if(e<t.length+22)return console.error("Message too long for RSA"),null;for(var r=e-t.length-6,n="",i=0;i<r;i+=2)n+="ff";var s="0001"+n+"00"+t;return Z(s,16)}function _g(t,e){if(e<t.length+11)return console.error("Message too long for RSA"),null;for(var r=[],n=t.length-1;n>=0&&e>0;){var i=t.charCodeAt(n--);i<128?r[--e]=i:i>127&&i<2048?(r[--e]=i&63|128,r[--e]=i>>6|192):(r[--e]=i&63|128,r[--e]=i>>6&63|128,r[--e]=i>>12|224)}r[--e]=0;for(var s=new nr,o=[];e>2;){for(o[0]=0;o[0]==0;)s.nextBytes(o);r[--e]=o[0]}return r[--e]=2,r[--e]=0,new K(r)}function ki(t,e,r){for(var n="",i=0;n.length<e;)n+=r(String.fromCharCode.apply(String,t.concat([(i&4278190080)>>24,(i&16711680)>>16,(i&65280)>>8,i&255]))),i+=1;return n}var wg=32;function Eg(t,e){var r=wg,n=on;if(t.length+2*r+2>e)throw"Message too long for RSA";var i="",s;for(s=0;s<e-t.length-2*r-2;s+=1)i+="\0";var o=n("")+i+""+t,u=new Array(r);new nr().nextBytes(u);var l=ki(u,o.length,n),a=[];for(s=0;s<o.length;s+=1)a[s]=o.charCodeAt(s)^l.charCodeAt(s);var c=ki(a,u.length,n),f=[0];for(s=0;s<u.length;s+=1)f[s+1]=u[s]^c.charCodeAt(s);return new K(f.concat(a))}var Sg=(function(){function t(){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 t.prototype.doPublic=function(e){return e.modPowInt(this.e,this.n)},t.prototype.doPrivate=function(e){if(this.p==null||this.q==null)return e.modPow(this.d,this.n);for(var r=e.mod(this.p).modPow(this.dmp1,this.p),n=e.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)},t.prototype.setPublic=function(e,r){e!=null&&r!=null&&e.length>0&&r.length>0?(this.n=Z(e,16),this.e=parseInt(r,16)):console.error("Invalid RSA public key")},t.prototype.encrypt=function(e,r){typeof r=="undefined"&&(r=_g);var n=this.n.bitLength()+7>>3,i=r(e,n);if(i==null)return null;var s=this.doPublic(i);if(s==null)return null;for(var o=s.toString(16),u=o.length,l=0;l<n*2-u;l++)o="0"+o;return o},t.prototype.setPrivate=function(e,r,n){e!=null&&r!=null&&e.length>0&&r.length>0?(this.n=Z(e,16),this.e=parseInt(r,16),this.d=Z(n,16)):console.error("Invalid RSA private key")},t.prototype.setPrivateEx=function(e,r,n,i,s,o,u,l){e!=null&&r!=null&&e.length>0&&r.length>0?(this.n=Z(e,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")},t.prototype.generate=function(e,r){var n=new nr,i=e>>1;this.e=parseInt(r,16);for(var s=new K(r,16);;){for(;this.p=new K(e-i,1,n),!(this.p.subtract(K.ONE).gcd(s).compareTo(K.ONE)==0&&this.p.isProbablePrime(10)););for(;this.q=new K(i,1,n),!(this.q.subtract(K.ONE).gcd(s).compareTo(K.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(K.ONE),l=this.q.subtract(K.ONE),a=u.multiply(l);if(a.gcd(s).compareTo(K.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}}},t.prototype.decrypt=function(e){var r=Z(e,16),n=this.doPrivate(r);return n==null?null:Tg(n,this.n.bitLength()+7>>3)},t.prototype.generateAsync=function(e,r,n){var i=new nr,s=e>>1;this.e=parseInt(r,16);var o=new K(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(K.ONE),d=u.q.subtract(K.ONE),g=p.multiply(d);g.gcd(o).compareTo(K.ONE)==0?(u.n=u.p.multiply(u.q),u.d=o.modInverse(g),u.dmp1=u.d.mod(p),u.dmq1=u.d.mod(d),u.coeff=u.q.modInverse(u.p),setTimeout(function(){n()},0)):setTimeout(l,0)},c=function(){u.q=J(),u.q.fromNumberAsync(s,1,i,function(){u.q.subtract(K.ONE).gcda(o,function(h){h.compareTo(K.ONE)==0&&u.q.isProbablePrime(10)?setTimeout(a,0):setTimeout(c,0)})})},f=function(){u.p=J(),u.p.fromNumberAsync(e-s,1,i,function(){u.p.subtract(K.ONE).gcda(o,function(h){h.compareTo(K.ONE)==0&&u.p.isProbablePrime(10)?setTimeout(c,0):setTimeout(f,0)})})};setTimeout(f,0)};setTimeout(l,0)},t.prototype.sign=function(e,r,n){var i=Rg(n),s=i+r(e).toString(),o=this.n.bitLength()/4,u=bg(s,o);if(u==null)return null;var l=this.doPrivate(u);if(l==null)return null;for(var a=l.toString(16),c=a.length,f=0;f<o-c;f++)a="0"+a;return a},t.prototype.verify=function(e,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=Ag(o);return u==n(e).toString()},t})();function Tg(t,e){for(var r=t.toByteArray(),n=0;n<r.length&&r[n]==0;)++n;if(r.length-n!=e-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 Kt={md2:"3020300c06082a864886f70d020205000410",md5:"3020300c06082a864886f70d020505000410",sha1:"3021300906052b0e03021a05000414",sha224:"302d300d06096086480165030402040500041c",sha256:"3031300d060960864801650304020105000420",sha384:"3041300d060960864801650304020205000430",sha512:"3051300d060960864801650304020305000440",ripemd160:"3021300906052b2403020105000414"};function Rg(t){return Kt[t]||""}function Ag(t){for(var e in Kt)if(Kt.hasOwnProperty(e)){var r=Kt[e],n=r.length;if(t.substring(0,n)==r)return t.substring(n)}return t}function ee(t,e,r){if(!e||!t)throw new Error("extend failed, please check that all dependencies are included.");var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t,t.superclass=e.prototype,e.prototype.constructor==Object.prototype.constructor&&(e.prototype.constructor=e)}/**
27
27
  * @fileOverview
28
28
  * @name asn1-1.0.js
29
29
  * @author Kenji Urushima kenji.urushima@gmail.com
30
30
  * @version asn1 1.0.13 (2017-Jun-02)
31
31
  * @since jsrsasign 2.1
32
32
  * @license <a href="https://kjur.github.io/jsrsasign/license/">MIT License</a>
33
- */var P={};(typeof P.asn1=="undefined"||!P.asn1)&&(P.asn1={});P.asn1.ASN1Util=new function(){this.integerToByteHex=function(r){var e=r.toString(16);return e.length%2==1&&(e="0"+e),e},this.bigIntToMinTwosComplementsHex=function(r){var e=r.toString(16);if(e.substring(0,1)!="-")e.length%2==1?e="0"+e:e.match(/^[0-7]/)||(e="00"+e);else{var t=e.substring(1),n=t.length;n%2==1?n+=1:e.match(/^[0-7]/)||(n+=2);for(var i="",s=0;s<n;s++)i+="f";var o=new K(i,16),u=o.xor(r).add(K.ONE);e=u.toString(16).replace(/^-/,"")}return e},this.getPEMStringFromHex=function(r,e){return hextopem(r,e)},this.newObject=function(r){var e=P,t=e.asn1,n=t.DERBoolean,i=t.DERInteger,s=t.DERBitString,o=t.DEROctetString,u=t.DERNull,l=t.DERObjectIdentifier,a=t.DEREnumerated,c=t.DERUTF8String,f=t.DERNumericString,h=t.DERPrintableString,p=t.DERTeletexString,d=t.DERIA5String,g=t.DERUTCTime,v=t.DERGeneralizedTime,E=t.DERSequence,m=t.DERSet,b=t.DERTaggedObject,_=t.ASN1Util.newObject,w=Object.keys(r);if(w.length!=1)throw"key of param shall be only one.";var y=w[0];if(":bool:int:bitstr:octstr:null:oid:enum:utf8str:numstr:prnstr:telstr:ia5str:utctime:gentime:seq:set:tag:".indexOf(":"+y+":")==-1)throw"undefined key: "+y;if(y=="bool")return new n(r[y]);if(y=="int")return new i(r[y]);if(y=="bitstr")return new s(r[y]);if(y=="octstr")return new o(r[y]);if(y=="null")return new u(r[y]);if(y=="oid")return new l(r[y]);if(y=="enum")return new a(r[y]);if(y=="utf8str")return new c(r[y]);if(y=="numstr")return new f(r[y]);if(y=="prnstr")return new h(r[y]);if(y=="telstr")return new p(r[y]);if(y=="ia5str")return new d(r[y]);if(y=="utctime")return new g(r[y]);if(y=="gentime")return new v(r[y]);if(y=="seq"){for(var T=r[y],O=[],L=0;L<T.length;L++){var S=_(T[L]);O.push(S)}return new E({array:O})}if(y=="set"){for(var T=r[y],O=[],L=0;L<T.length;L++){var S=_(T[L]);O.push(S)}return new m({array:O})}if(y=="tag"){var A=r[y];if(Object.prototype.toString.call(A)==="[object Array]"&&A.length==3){var M=_(A[2]);return new b({tag:A[0],explicit:A[1],obj:M})}else{var j={};if(A.explicit!==void 0&&(j.explicit=A.explicit),A.tag!==void 0&&(j.tag=A.tag),A.obj===void 0)throw"obj shall be specified for 'tag'.";return j.obj=_(A.obj),new b(j)}}},this.jsonToASN1HEX=function(r){var e=this.newObject(r);return e.getEncodedHex()}};P.asn1.ASN1Util.oidHexToInt=function(r){for(var i="",e=parseInt(r.substring(0,2),16),t=Math.floor(e/40),n=e%40,i=t+"."+n,s="",o=2;o<r.length;o+=2){var u=parseInt(r.substring(o,o+2),16),l=("00000000"+u.toString(2)).slice(-8);if(s=s+l.substring(1,8),l.substring(0,1)=="0"){var a=new K(s,2);i=i+"."+a.toString(10),s=""}}return i};P.asn1.ASN1Util.oidIntToHex=function(r){var e=function(u){var l=u.toString(16);return l.length==1&&(l="0"+l),l},t=function(u){var l="",a=new K(u,10),c=a.toString(2),f=7-c.length%7;f==7&&(f=0);for(var h="",p=0;p<f;p++)h+="0";c=h+c;for(var p=0;p<c.length-1;p+=7){var d=c.substring(p,p+7);p!=c.length-7&&(d="1"+d),l+=e(parseInt(d,2))}return l};if(!r.match(/^[0-9.]+$/))throw"malformed oid string: "+r;var n="",i=r.split("."),s=parseInt(i[0])*40+parseInt(i[1]);n+=e(s),i.splice(0,2);for(var o=0;o<i.length;o++)n+=t(i[o]);return n};P.asn1.ASN1Object=function(){var r="";this.getLengthHexFromValue=function(){if(typeof this.hV=="undefined"||this.hV==null)throw"this.hV is null or undefined.";if(this.hV.length%2==1)throw"value hex must be even length: n="+r.length+",v="+this.hV;var e=this.hV.length/2,t=e.toString(16);if(t.length%2==1&&(t="0"+t),e<128)return t;var n=t.length/2;if(n>15)throw"ASN.1 length too long to represent by 8x: n = "+e.toString(16);var i=128+n;return i.toString(16)+t},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""}};P.asn1.DERAbstractString=function(r){P.asn1.DERAbstractString.superclass.constructor.call(this),this.getString=function(){return this.s},this.setString=function(e){this.hTLV=null,this.isModified=!0,this.s=e,this.hV=stohex(this.s)},this.setStringHex=function(e){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=e},this.getFreshValueHex=function(){return this.hV},typeof r!="undefined"&&(typeof r=="string"?this.setString(r):typeof r.str!="undefined"?this.setString(r.str):typeof r.hex!="undefined"&&this.setStringHex(r.hex))};ee(P.asn1.DERAbstractString,P.asn1.ASN1Object);P.asn1.DERAbstractTime=function(r){P.asn1.DERAbstractTime.superclass.constructor.call(this),this.localDateToUTC=function(e){utc=e.getTime()+e.getTimezoneOffset()*6e4;var t=new Date(utc);return t},this.formatDate=function(e,t,n){var i=this.zeroPadding,s=this.localDateToUTC(e),o=String(s.getFullYear());t=="utc"&&(o=o.substring(2,4));var u=i(String(s.getMonth()+1),2),l=i(String(s.getDate()),2),a=i(String(s.getHours()),2),c=i(String(s.getMinutes()),2),f=i(String(s.getSeconds()),2),h=o+u+l+a+c+f;if(n===!0){var p=s.getMilliseconds();if(p!=0){var d=i(String(p),3);d=d.replace(/[0]+$/,""),h=h+"."+d}}return h+"Z"},this.zeroPadding=function(e,t){return e.length>=t?e:new Array(t-e.length+1).join("0")+e},this.getString=function(){return this.s},this.setString=function(e){this.hTLV=null,this.isModified=!0,this.s=e,this.hV=stohex(e)},this.setByDateValue=function(e,t,n,i,s,o){var u=new Date(Date.UTC(e,t-1,n,i,s,o,0));this.setByDate(u)},this.getFreshValueHex=function(){return this.hV}};ee(P.asn1.DERAbstractTime,P.asn1.ASN1Object);P.asn1.DERAbstractStructured=function(r){P.asn1.DERAbstractString.superclass.constructor.call(this),this.setByASN1ObjectArray=function(e){this.hTLV=null,this.isModified=!0,this.asn1Array=e},this.appendASN1Object=function(e){this.hTLV=null,this.isModified=!0,this.asn1Array.push(e)},this.asn1Array=new Array,typeof r!="undefined"&&typeof r.array!="undefined"&&(this.asn1Array=r.array)};ee(P.asn1.DERAbstractStructured,P.asn1.ASN1Object);P.asn1.DERBoolean=function(){P.asn1.DERBoolean.superclass.constructor.call(this),this.hT="01",this.hTLV="0101ff"};ee(P.asn1.DERBoolean,P.asn1.ASN1Object);P.asn1.DERInteger=function(r){P.asn1.DERInteger.superclass.constructor.call(this),this.hT="02",this.setByBigInteger=function(e){this.hTLV=null,this.isModified=!0,this.hV=P.asn1.ASN1Util.bigIntToMinTwosComplementsHex(e)},this.setByInteger=function(e){var t=new K(String(e),10);this.setByBigInteger(t)},this.setValueHex=function(e){this.hV=e},this.getFreshValueHex=function(){return this.hV},typeof r!="undefined"&&(typeof r.bigint!="undefined"?this.setByBigInteger(r.bigint):typeof r.int!="undefined"?this.setByInteger(r.int):typeof r=="number"?this.setByInteger(r):typeof r.hex!="undefined"&&this.setValueHex(r.hex))};ee(P.asn1.DERInteger,P.asn1.ASN1Object);P.asn1.DERBitString=function(r){if(r!==void 0&&typeof r.obj!="undefined"){var e=P.asn1.ASN1Util.newObject(r.obj);r.hex="00"+e.getEncodedHex()}P.asn1.DERBitString.superclass.constructor.call(this),this.hT="03",this.setHexValueIncludingUnusedBits=function(t){this.hTLV=null,this.isModified=!0,this.hV=t},this.setUnusedBitsAndHexValue=function(t,n){if(t<0||7<t)throw"unused bits shall be from 0 to 7: u = "+t;var i="0"+t;this.hTLV=null,this.isModified=!0,this.hV=i+n},this.setByBinaryString=function(t){t=t.replace(/0+$/,"");var n=8-t.length%8;n==8&&(n=0);for(var i=0;i<=n;i++)t+="0";for(var s="",i=0;i<t.length-1;i+=8){var o=t.substring(i,i+8),u=parseInt(o,2).toString(16);u.length==1&&(u="0"+u),s+=u}this.hTLV=null,this.isModified=!0,this.hV="0"+n+s},this.setByBooleanArray=function(t){for(var n="",i=0;i<t.length;i++)t[i]==!0?n+="1":n+="0";this.setByBinaryString(n)},this.newFalseArray=function(t){for(var n=new Array(t),i=0;i<t;i++)n[i]=!1;return n},this.getFreshValueHex=function(){return this.hV},typeof r!="undefined"&&(typeof r=="string"&&r.toLowerCase().match(/^[0-9a-f]+$/)?this.setHexValueIncludingUnusedBits(r):typeof r.hex!="undefined"?this.setHexValueIncludingUnusedBits(r.hex):typeof r.bin!="undefined"?this.setByBinaryString(r.bin):typeof r.array!="undefined"&&this.setByBooleanArray(r.array))};ee(P.asn1.DERBitString,P.asn1.ASN1Object);P.asn1.DEROctetString=function(r){if(r!==void 0&&typeof r.obj!="undefined"){var e=P.asn1.ASN1Util.newObject(r.obj);r.hex=e.getEncodedHex()}P.asn1.DEROctetString.superclass.constructor.call(this,r),this.hT="04"};ee(P.asn1.DEROctetString,P.asn1.DERAbstractString);P.asn1.DERNull=function(){P.asn1.DERNull.superclass.constructor.call(this),this.hT="05",this.hTLV="0500"};ee(P.asn1.DERNull,P.asn1.ASN1Object);P.asn1.DERObjectIdentifier=function(r){var e=function(n){var i=n.toString(16);return i.length==1&&(i="0"+i),i},t=function(n){var i="",s=new K(n,10),o=s.toString(2),u=7-o.length%7;u==7&&(u=0);for(var l="",a=0;a<u;a++)l+="0";o=l+o;for(var a=0;a<o.length-1;a+=7){var c=o.substring(a,a+7);a!=o.length-7&&(c="1"+c),i+=e(parseInt(c,2))}return i};P.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+=e(o),s.splice(0,2);for(var u=0;u<s.length;u++)i+=t(s[u]);this.hTLV=null,this.isModified=!0,this.s=null,this.hV=i},this.setValueName=function(n){var i=P.asn1.x509.OID.name2oid(n);if(i!=="")this.setValueOidString(i);else throw"DERObjectIdentifier oidName undefined: "+n},this.getFreshValueHex=function(){return this.hV},r!==void 0&&(typeof r=="string"?r.match(/^[0-2].[0-9.]+$/)?this.setValueOidString(r):this.setValueName(r):r.oid!==void 0?this.setValueOidString(r.oid):r.hex!==void 0?this.setValueHex(r.hex):r.name!==void 0&&this.setValueName(r.name))};ee(P.asn1.DERObjectIdentifier,P.asn1.ASN1Object);P.asn1.DEREnumerated=function(r){P.asn1.DEREnumerated.superclass.constructor.call(this),this.hT="0a",this.setByBigInteger=function(e){this.hTLV=null,this.isModified=!0,this.hV=P.asn1.ASN1Util.bigIntToMinTwosComplementsHex(e)},this.setByInteger=function(e){var t=new K(String(e),10);this.setByBigInteger(t)},this.setValueHex=function(e){this.hV=e},this.getFreshValueHex=function(){return this.hV},typeof r!="undefined"&&(typeof r.int!="undefined"?this.setByInteger(r.int):typeof r=="number"?this.setByInteger(r):typeof r.hex!="undefined"&&this.setValueHex(r.hex))};ee(P.asn1.DEREnumerated,P.asn1.ASN1Object);P.asn1.DERUTF8String=function(r){P.asn1.DERUTF8String.superclass.constructor.call(this,r),this.hT="0c"};ee(P.asn1.DERUTF8String,P.asn1.DERAbstractString);P.asn1.DERNumericString=function(r){P.asn1.DERNumericString.superclass.constructor.call(this,r),this.hT="12"};ee(P.asn1.DERNumericString,P.asn1.DERAbstractString);P.asn1.DERPrintableString=function(r){P.asn1.DERPrintableString.superclass.constructor.call(this,r),this.hT="13"};ee(P.asn1.DERPrintableString,P.asn1.DERAbstractString);P.asn1.DERTeletexString=function(r){P.asn1.DERTeletexString.superclass.constructor.call(this,r),this.hT="14"};ee(P.asn1.DERTeletexString,P.asn1.DERAbstractString);P.asn1.DERIA5String=function(r){P.asn1.DERIA5String.superclass.constructor.call(this,r),this.hT="16"};ee(P.asn1.DERIA5String,P.asn1.DERAbstractString);P.asn1.DERUTCTime=function(r){P.asn1.DERUTCTime.superclass.constructor.call(this,r),this.hT="17",this.setByDate=function(e){this.hTLV=null,this.isModified=!0,this.date=e,this.s=this.formatDate(this.date,"utc"),this.hV=stohex(this.s)},this.getFreshValueHex=function(){return typeof this.date=="undefined"&&typeof this.s=="undefined"&&(this.date=new Date,this.s=this.formatDate(this.date,"utc"),this.hV=stohex(this.s)),this.hV},r!==void 0&&(r.str!==void 0?this.setString(r.str):typeof r=="string"&&r.match(/^[0-9]{12}Z$/)?this.setString(r):r.hex!==void 0?this.setStringHex(r.hex):r.date!==void 0&&this.setByDate(r.date))};ee(P.asn1.DERUTCTime,P.asn1.DERAbstractTime);P.asn1.DERGeneralizedTime=function(r){P.asn1.DERGeneralizedTime.superclass.constructor.call(this,r),this.hT="18",this.withMillis=!1,this.setByDate=function(e){this.hTLV=null,this.isModified=!0,this.date=e,this.s=this.formatDate(this.date,"gen",this.withMillis),this.hV=stohex(this.s)},this.getFreshValueHex=function(){return this.date===void 0&&this.s===void 0&&(this.date=new Date,this.s=this.formatDate(this.date,"gen",this.withMillis),this.hV=stohex(this.s)),this.hV},r!==void 0&&(r.str!==void 0?this.setString(r.str):typeof r=="string"&&r.match(/^[0-9]{14}Z$/)?this.setString(r):r.hex!==void 0?this.setStringHex(r.hex):r.date!==void 0&&this.setByDate(r.date),r.millis===!0&&(this.withMillis=!0))};ee(P.asn1.DERGeneralizedTime,P.asn1.DERAbstractTime);P.asn1.DERSequence=function(r){P.asn1.DERSequence.superclass.constructor.call(this,r),this.hT="30",this.getFreshValueHex=function(){for(var e="",t=0;t<this.asn1Array.length;t++){var n=this.asn1Array[t];e+=n.getEncodedHex()}return this.hV=e,this.hV}};ee(P.asn1.DERSequence,P.asn1.DERAbstractStructured);P.asn1.DERSet=function(r){P.asn1.DERSet.superclass.constructor.call(this,r),this.hT="31",this.sortFlag=!0,this.getFreshValueHex=function(){for(var e=new Array,t=0;t<this.asn1Array.length;t++){var n=this.asn1Array[t];e.push(n.getEncodedHex())}return this.sortFlag==!0&&e.sort(),this.hV=e.join(""),this.hV},typeof r!="undefined"&&typeof r.sortflag!="undefined"&&r.sortflag==!1&&(this.sortFlag=!1)};ee(P.asn1.DERSet,P.asn1.DERAbstractStructured);P.asn1.DERTaggedObject=function(r){P.asn1.DERTaggedObject.superclass.constructor.call(this),this.hT="a0",this.hV="",this.isExplicit=!0,this.asn1Object=null,this.setASN1Object=function(e,t,n){this.hT=t,this.isExplicit=e,this.asn1Object=n,this.isExplicit?(this.hV=this.asn1Object.getEncodedHex(),this.hTLV=null,this.isModified=!0):(this.hV=null,this.hTLV=n.getEncodedHex(),this.hTLV=this.hTLV.replace(/^../,t),this.isModified=!1)},this.getFreshValueHex=function(){return this.hV},typeof r!="undefined"&&(typeof r.tag!="undefined"&&(this.hT=r.tag),typeof r.explicit!="undefined"&&(this.isExplicit=r.explicit),typeof r.obj!="undefined"&&(this.asn1Object=r.obj,this.setASN1Object(this.isExplicit,this.hT,this.asn1Object)))};ee(P.asn1.DERTaggedObject,P.asn1.ASN1Object);var xg=(function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(n[s]=i[s])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}})(),qi=(function(r){xg(e,r);function e(t){var n=r.call(this)||this;return t&&(typeof t=="string"?n.parseKey(t):(e.hasPrivateKeyProperty(t)||e.hasPublicKeyProperty(t))&&n.parsePropertiesFrom(t)),n}return e.prototype.parseKey=function(t){try{var n=0,i=0,s=/^\s*(?:[0-9A-Fa-f][0-9A-Fa-f]\s*)+$/,o=s.test(t)?Qd.decode(t):sn.unarmor(t),u=tg.decode(o);if(u.sub.length===3&&(u=u.sub[2].sub[0]),u.sub.length===9){n=u.sub[1].getHexStringValue(),this.n=Z(n,16),i=u.sub[2].getHexStringValue(),this.e=parseInt(i,16);var l=u.sub[3].getHexStringValue();this.d=Z(l,16);var a=u.sub[4].getHexStringValue();this.p=Z(a,16);var c=u.sub[5].getHexStringValue();this.q=Z(c,16);var f=u.sub[6].getHexStringValue();this.dmp1=Z(f,16);var h=u.sub[7].getHexStringValue();this.dmq1=Z(h,16);var p=u.sub[8].getHexStringValue();this.coeff=Z(p,16)}else if(u.sub.length===2)if(u.sub[0].sub){var d=u.sub[1],g=d.sub[0];n=g.sub[0].getHexStringValue(),this.n=Z(n,16),i=g.sub[1].getHexStringValue(),this.e=parseInt(i,16)}else n=u.sub[0].getHexStringValue(),this.n=Z(n,16),i=u.sub[1].getHexStringValue(),this.e=parseInt(i,16);else return!1;return!0}catch(v){return!1}},e.prototype.getPrivateBaseKey=function(){var t={array:[new P.asn1.DERInteger({int:0}),new P.asn1.DERInteger({bigint:this.n}),new P.asn1.DERInteger({int:this.e}),new P.asn1.DERInteger({bigint:this.d}),new P.asn1.DERInteger({bigint:this.p}),new P.asn1.DERInteger({bigint:this.q}),new P.asn1.DERInteger({bigint:this.dmp1}),new P.asn1.DERInteger({bigint:this.dmq1}),new P.asn1.DERInteger({bigint:this.coeff})]},n=new P.asn1.DERSequence(t);return n.getEncodedHex()},e.prototype.getPrivateBaseKeyB64=function(){return bt(this.getPrivateBaseKey())},e.prototype.getPublicBaseKey=function(){var t=new P.asn1.DERSequence({array:[new P.asn1.DERObjectIdentifier({oid:"1.2.840.113549.1.1.1"}),new P.asn1.DERNull]}),n=new P.asn1.DERSequence({array:[new P.asn1.DERInteger({bigint:this.n}),new P.asn1.DERInteger({int:this.e})]}),i=new P.asn1.DERBitString({hex:"00"+n.getEncodedHex()}),s=new P.asn1.DERSequence({array:[t,i]});return s.getEncodedHex()},e.prototype.getPublicBaseKeyB64=function(){return bt(this.getPublicBaseKey())},e.wordwrap=function(t,n){if(n=n||64,!t)return t;var i="(.{1,"+n+`})( +|$
34
- ?)|(.{1,`+n+"})";return t.match(RegExp(i,"g")).join(`
35
- `)},e.prototype.getPrivateKey=function(){var t=`-----BEGIN RSA PRIVATE KEY-----
36
- `;return t+=e.wordwrap(this.getPrivateBaseKeyB64())+`
37
- `,t+="-----END RSA PRIVATE KEY-----",t},e.prototype.getPublicKey=function(){var t=`-----BEGIN PUBLIC KEY-----
38
- `;return t+=e.wordwrap(this.getPublicBaseKeyB64())+`
39
- `,t+="-----END PUBLIC KEY-----",t},e.hasPublicKeyProperty=function(t){return t=t||{},t.hasOwnProperty("n")&&t.hasOwnProperty("e")},e.hasPrivateKeyProperty=function(t){return t=t||{},t.hasOwnProperty("n")&&t.hasOwnProperty("e")&&t.hasOwnProperty("d")&&t.hasOwnProperty("p")&&t.hasOwnProperty("q")&&t.hasOwnProperty("dmp1")&&t.hasOwnProperty("dmq1")&&t.hasOwnProperty("coeff")},e.prototype.parsePropertiesFrom=function(t){this.n=t.n,this.e=t.e,t.hasOwnProperty("d")&&(this.d=t.d,this.p=t.p,this.q=t.q,this.dmp1=t.dmp1,this.dmq1=t.dmq1,this.coeff=t.coeff)},e})(Sg),Pr,Og=typeof process!="undefined"?(Pr=Na)===null||Pr===void 0?void 0:Pr.npm_package_version:void 0,$g=(function(){function r(e){e===void 0&&(e={}),this.default_key_size=e.default_key_size?parseInt(e.default_key_size,10):1024,this.default_public_exponent=e.default_public_exponent||"010001",this.log=e.log||!1,this.key=e.key||null}return r.prototype.setKey=function(e){e?(this.log&&this.key&&console.warn("A key was already set, overriding existing."),this.key=new qi(e)):!this.key&&this.log&&console.error("A key was not set.")},r.prototype.setPrivateKey=function(e){this.setKey(e)},r.prototype.setPublicKey=function(e){this.setKey(e)},r.prototype.decrypt=function(e){try{return this.getKey().decrypt(Ni(e))}catch(t){return!1}},r.prototype.encrypt=function(e){try{return bt(this.getKey().encrypt(e))}catch(t){return!1}},r.prototype.encryptOAEP=function(e){try{return bt(this.getKey().encrypt(e,Eg))}catch(t){return!1}},r.prototype.sign=function(e,t,n){t===void 0&&(t=function(i){return i}),n===void 0&&(n="");try{return bt(this.getKey().sign(e,t,n))}catch(i){return!1}},r.prototype.signSha256=function(e){return this.sign(e,function(t){return Vi(on(t))},"sha256")},r.prototype.verify=function(e,t,n){n===void 0&&(n=function(i){return i});try{return this.getKey().verify(e,Ni(t),n)}catch(i){return!1}},r.prototype.verifySha256=function(e,t){return this.verify(e,t,function(n){return Vi(on(n))})},r.prototype.getKey=function(e){if(!this.key){if(this.key=new qi,e&&{}.toString.call(e)==="[object Function]"){this.key.generateAsync(this.default_key_size,this.default_public_exponent,e);return}this.key.generate(this.default_key_size,this.default_public_exponent)}return this.key},r.prototype.getPrivateKey=function(){return this.getKey().getPrivateKey()},r.prototype.getPrivateKeyB64=function(){return this.getKey().getPrivateBaseKeyB64()},r.prototype.getPublicKey=function(){return this.getKey().getPublicKey()},r.prototype.getPublicKeyB64=function(){return this.getKey().getPublicBaseKeyB64()},r.version=Og,r})();const Dg="MIIBUwIBADANBgkqhkiG9w0BAQEFAASCAT0wggE5AgEAAkEAt3LFMIQHlZwadt5TI3jGfVyzzP7S0Lva+Bt38v32iblNnQ59GpFvpjtEl92KYH0snK+bI/1PU/SNaseSi2ryJQIDAQABAkBGHyXG7MDlbD0lcMhAx9q/cp773fABf70sl3tbM754V+mH8dEiAim398NhhrADz4F4K12H74R39O/0Hjr/VAZlAiEA5+3MoAbnsDOzFP+oT4YZJBjx8MmsukU3AaguPW4tYcMCIQDKfN+Qk/jD3vZlWsUJ23013D2NDSjgcH4gdV71oYb19wIgUMWYhgLhnZPjwmRnEYr6JoApglo6NYT1azZPJEXCuFECIDyQUQYbXCKpw6TZG2oxXigH8dkIgJtwyijHMlnhsE5NAiBxF7HA7U2rDnZ6+VRDXtIg+joD3o1h3bFy2A+QX5yDYA==";function zi(r,e=Dg){const t=new $g;return t.setPrivateKey(e),t.decrypt(r)}const Co=/^(http|https):\/\/[\w.:\-@]*/;function Tt(r){return Co.test(r)}var Cg={exports:{}};/*! @preserve
33
+ */var P={};(typeof P.asn1=="undefined"||!P.asn1)&&(P.asn1={});P.asn1.ASN1Util=new function(){this.integerToByteHex=function(t){var e=t.toString(16);return e.length%2==1&&(e="0"+e),e},this.bigIntToMinTwosComplementsHex=function(t){var e=t.toString(16);if(e.substring(0,1)!="-")e.length%2==1?e="0"+e:e.match(/^[0-7]/)||(e="00"+e);else{var r=e.substring(1),n=r.length;n%2==1?n+=1:e.match(/^[0-7]/)||(n+=2);for(var i="",s=0;s<n;s++)i+="f";var o=new K(i,16),u=o.xor(t).add(K.ONE);e=u.toString(16).replace(/^-/,"")}return e},this.getPEMStringFromHex=function(t,e){return hextopem(t,e)},this.newObject=function(t){var e=P,r=e.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,g=r.DERUTCTime,v=r.DERGeneralizedTime,E=r.DERSequence,m=r.DERSet,b=r.DERTaggedObject,_=r.ASN1Util.newObject,w=Object.keys(t);if(w.length!=1)throw"key of param shall be only one.";var y=w[0];if(":bool:int:bitstr:octstr:null:oid:enum:utf8str:numstr:prnstr:telstr:ia5str:utctime:gentime:seq:set:tag:".indexOf(":"+y+":")==-1)throw"undefined key: "+y;if(y=="bool")return new n(t[y]);if(y=="int")return new i(t[y]);if(y=="bitstr")return new s(t[y]);if(y=="octstr")return new o(t[y]);if(y=="null")return new u(t[y]);if(y=="oid")return new l(t[y]);if(y=="enum")return new a(t[y]);if(y=="utf8str")return new c(t[y]);if(y=="numstr")return new f(t[y]);if(y=="prnstr")return new h(t[y]);if(y=="telstr")return new p(t[y]);if(y=="ia5str")return new d(t[y]);if(y=="utctime")return new g(t[y]);if(y=="gentime")return new v(t[y]);if(y=="seq"){for(var T=t[y],O=[],L=0;L<T.length;L++){var S=_(T[L]);O.push(S)}return new E({array:O})}if(y=="set"){for(var T=t[y],O=[],L=0;L<T.length;L++){var S=_(T[L]);O.push(S)}return new m({array:O})}if(y=="tag"){var A=t[y];if(Object.prototype.toString.call(A)==="[object Array]"&&A.length==3){var M=_(A[2]);return new b({tag:A[0],explicit:A[1],obj:M})}else{var j={};if(A.explicit!==void 0&&(j.explicit=A.explicit),A.tag!==void 0&&(j.tag=A.tag),A.obj===void 0)throw"obj shall be specified for 'tag'.";return j.obj=_(A.obj),new b(j)}}},this.jsonToASN1HEX=function(t){var e=this.newObject(t);return e.getEncodedHex()}};P.asn1.ASN1Util.oidHexToInt=function(t){for(var i="",e=parseInt(t.substring(0,2),16),r=Math.floor(e/40),n=e%40,i=r+"."+n,s="",o=2;o<t.length;o+=2){var u=parseInt(t.substring(o,o+2),16),l=("00000000"+u.toString(2)).slice(-8);if(s=s+l.substring(1,8),l.substring(0,1)=="0"){var a=new K(s,2);i=i+"."+a.toString(10),s=""}}return i};P.asn1.ASN1Util.oidIntToHex=function(t){var e=function(u){var l=u.toString(16);return l.length==1&&(l="0"+l),l},r=function(u){var l="",a=new K(u,10),c=a.toString(2),f=7-c.length%7;f==7&&(f=0);for(var h="",p=0;p<f;p++)h+="0";c=h+c;for(var p=0;p<c.length-1;p+=7){var d=c.substring(p,p+7);p!=c.length-7&&(d="1"+d),l+=e(parseInt(d,2))}return l};if(!t.match(/^[0-9.]+$/))throw"malformed oid string: "+t;var n="",i=t.split("."),s=parseInt(i[0])*40+parseInt(i[1]);n+=e(s),i.splice(0,2);for(var o=0;o<i.length;o++)n+=r(i[o]);return n};P.asn1.ASN1Object=function(){var t="";this.getLengthHexFromValue=function(){if(typeof this.hV=="undefined"||this.hV==null)throw"this.hV is null or undefined.";if(this.hV.length%2==1)throw"value hex must be even length: n="+t.length+",v="+this.hV;var e=this.hV.length/2,r=e.toString(16);if(r.length%2==1&&(r="0"+r),e<128)return r;var n=r.length/2;if(n>15)throw"ASN.1 length too long to represent by 8x: n = "+e.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""}};P.asn1.DERAbstractString=function(t){P.asn1.DERAbstractString.superclass.constructor.call(this),this.getString=function(){return this.s},this.setString=function(e){this.hTLV=null,this.isModified=!0,this.s=e,this.hV=stohex(this.s)},this.setStringHex=function(e){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=e},this.getFreshValueHex=function(){return this.hV},typeof t!="undefined"&&(typeof t=="string"?this.setString(t):typeof t.str!="undefined"?this.setString(t.str):typeof t.hex!="undefined"&&this.setStringHex(t.hex))};ee(P.asn1.DERAbstractString,P.asn1.ASN1Object);P.asn1.DERAbstractTime=function(t){P.asn1.DERAbstractTime.superclass.constructor.call(this),this.localDateToUTC=function(e){utc=e.getTime()+e.getTimezoneOffset()*6e4;var r=new Date(utc);return r},this.formatDate=function(e,r,n){var i=this.zeroPadding,s=this.localDateToUTC(e),o=String(s.getFullYear());r=="utc"&&(o=o.substring(2,4));var u=i(String(s.getMonth()+1),2),l=i(String(s.getDate()),2),a=i(String(s.getHours()),2),c=i(String(s.getMinutes()),2),f=i(String(s.getSeconds()),2),h=o+u+l+a+c+f;if(n===!0){var p=s.getMilliseconds();if(p!=0){var d=i(String(p),3);d=d.replace(/[0]+$/,""),h=h+"."+d}}return h+"Z"},this.zeroPadding=function(e,r){return e.length>=r?e:new Array(r-e.length+1).join("0")+e},this.getString=function(){return this.s},this.setString=function(e){this.hTLV=null,this.isModified=!0,this.s=e,this.hV=stohex(e)},this.setByDateValue=function(e,r,n,i,s,o){var u=new Date(Date.UTC(e,r-1,n,i,s,o,0));this.setByDate(u)},this.getFreshValueHex=function(){return this.hV}};ee(P.asn1.DERAbstractTime,P.asn1.ASN1Object);P.asn1.DERAbstractStructured=function(t){P.asn1.DERAbstractString.superclass.constructor.call(this),this.setByASN1ObjectArray=function(e){this.hTLV=null,this.isModified=!0,this.asn1Array=e},this.appendASN1Object=function(e){this.hTLV=null,this.isModified=!0,this.asn1Array.push(e)},this.asn1Array=new Array,typeof t!="undefined"&&typeof t.array!="undefined"&&(this.asn1Array=t.array)};ee(P.asn1.DERAbstractStructured,P.asn1.ASN1Object);P.asn1.DERBoolean=function(){P.asn1.DERBoolean.superclass.constructor.call(this),this.hT="01",this.hTLV="0101ff"};ee(P.asn1.DERBoolean,P.asn1.ASN1Object);P.asn1.DERInteger=function(t){P.asn1.DERInteger.superclass.constructor.call(this),this.hT="02",this.setByBigInteger=function(e){this.hTLV=null,this.isModified=!0,this.hV=P.asn1.ASN1Util.bigIntToMinTwosComplementsHex(e)},this.setByInteger=function(e){var r=new K(String(e),10);this.setByBigInteger(r)},this.setValueHex=function(e){this.hV=e},this.getFreshValueHex=function(){return this.hV},typeof t!="undefined"&&(typeof t.bigint!="undefined"?this.setByBigInteger(t.bigint):typeof t.int!="undefined"?this.setByInteger(t.int):typeof t=="number"?this.setByInteger(t):typeof t.hex!="undefined"&&this.setValueHex(t.hex))};ee(P.asn1.DERInteger,P.asn1.ASN1Object);P.asn1.DERBitString=function(t){if(t!==void 0&&typeof t.obj!="undefined"){var e=P.asn1.ASN1Util.newObject(t.obj);t.hex="00"+e.getEncodedHex()}P.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.substring(i,i+8),u=parseInt(o,2).toString(16);u.length==1&&(u="0"+u),s+=u}this.hTLV=null,this.isModified=!0,this.hV="0"+n+s},this.setByBooleanArray=function(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 t!="undefined"&&(typeof t=="string"&&t.toLowerCase().match(/^[0-9a-f]+$/)?this.setHexValueIncludingUnusedBits(t):typeof t.hex!="undefined"?this.setHexValueIncludingUnusedBits(t.hex):typeof t.bin!="undefined"?this.setByBinaryString(t.bin):typeof t.array!="undefined"&&this.setByBooleanArray(t.array))};ee(P.asn1.DERBitString,P.asn1.ASN1Object);P.asn1.DEROctetString=function(t){if(t!==void 0&&typeof t.obj!="undefined"){var e=P.asn1.ASN1Util.newObject(t.obj);t.hex=e.getEncodedHex()}P.asn1.DEROctetString.superclass.constructor.call(this,t),this.hT="04"};ee(P.asn1.DEROctetString,P.asn1.DERAbstractString);P.asn1.DERNull=function(){P.asn1.DERNull.superclass.constructor.call(this),this.hT="05",this.hTLV="0500"};ee(P.asn1.DERNull,P.asn1.ASN1Object);P.asn1.DERObjectIdentifier=function(t){var e=function(n){var i=n.toString(16);return i.length==1&&(i="0"+i),i},r=function(n){var i="",s=new K(n,10),o=s.toString(2),u=7-o.length%7;u==7&&(u=0);for(var l="",a=0;a<u;a++)l+="0";o=l+o;for(var a=0;a<o.length-1;a+=7){var c=o.substring(a,a+7);a!=o.length-7&&(c="1"+c),i+=e(parseInt(c,2))}return i};P.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+=e(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=P.asn1.x509.OID.name2oid(n);if(i!=="")this.setValueOidString(i);else throw"DERObjectIdentifier oidName undefined: "+n},this.getFreshValueHex=function(){return this.hV},t!==void 0&&(typeof t=="string"?t.match(/^[0-2].[0-9.]+$/)?this.setValueOidString(t):this.setValueName(t):t.oid!==void 0?this.setValueOidString(t.oid):t.hex!==void 0?this.setValueHex(t.hex):t.name!==void 0&&this.setValueName(t.name))};ee(P.asn1.DERObjectIdentifier,P.asn1.ASN1Object);P.asn1.DEREnumerated=function(t){P.asn1.DEREnumerated.superclass.constructor.call(this),this.hT="0a",this.setByBigInteger=function(e){this.hTLV=null,this.isModified=!0,this.hV=P.asn1.ASN1Util.bigIntToMinTwosComplementsHex(e)},this.setByInteger=function(e){var r=new K(String(e),10);this.setByBigInteger(r)},this.setValueHex=function(e){this.hV=e},this.getFreshValueHex=function(){return this.hV},typeof t!="undefined"&&(typeof t.int!="undefined"?this.setByInteger(t.int):typeof t=="number"?this.setByInteger(t):typeof t.hex!="undefined"&&this.setValueHex(t.hex))};ee(P.asn1.DEREnumerated,P.asn1.ASN1Object);P.asn1.DERUTF8String=function(t){P.asn1.DERUTF8String.superclass.constructor.call(this,t),this.hT="0c"};ee(P.asn1.DERUTF8String,P.asn1.DERAbstractString);P.asn1.DERNumericString=function(t){P.asn1.DERNumericString.superclass.constructor.call(this,t),this.hT="12"};ee(P.asn1.DERNumericString,P.asn1.DERAbstractString);P.asn1.DERPrintableString=function(t){P.asn1.DERPrintableString.superclass.constructor.call(this,t),this.hT="13"};ee(P.asn1.DERPrintableString,P.asn1.DERAbstractString);P.asn1.DERTeletexString=function(t){P.asn1.DERTeletexString.superclass.constructor.call(this,t),this.hT="14"};ee(P.asn1.DERTeletexString,P.asn1.DERAbstractString);P.asn1.DERIA5String=function(t){P.asn1.DERIA5String.superclass.constructor.call(this,t),this.hT="16"};ee(P.asn1.DERIA5String,P.asn1.DERAbstractString);P.asn1.DERUTCTime=function(t){P.asn1.DERUTCTime.superclass.constructor.call(this,t),this.hT="17",this.setByDate=function(e){this.hTLV=null,this.isModified=!0,this.date=e,this.s=this.formatDate(this.date,"utc"),this.hV=stohex(this.s)},this.getFreshValueHex=function(){return typeof this.date=="undefined"&&typeof this.s=="undefined"&&(this.date=new Date,this.s=this.formatDate(this.date,"utc"),this.hV=stohex(this.s)),this.hV},t!==void 0&&(t.str!==void 0?this.setString(t.str):typeof t=="string"&&t.match(/^[0-9]{12}Z$/)?this.setString(t):t.hex!==void 0?this.setStringHex(t.hex):t.date!==void 0&&this.setByDate(t.date))};ee(P.asn1.DERUTCTime,P.asn1.DERAbstractTime);P.asn1.DERGeneralizedTime=function(t){P.asn1.DERGeneralizedTime.superclass.constructor.call(this,t),this.hT="18",this.withMillis=!1,this.setByDate=function(e){this.hTLV=null,this.isModified=!0,this.date=e,this.s=this.formatDate(this.date,"gen",this.withMillis),this.hV=stohex(this.s)},this.getFreshValueHex=function(){return 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},t!==void 0&&(t.str!==void 0?this.setString(t.str):typeof t=="string"&&t.match(/^[0-9]{14}Z$/)?this.setString(t):t.hex!==void 0?this.setStringHex(t.hex):t.date!==void 0&&this.setByDate(t.date),t.millis===!0&&(this.withMillis=!0))};ee(P.asn1.DERGeneralizedTime,P.asn1.DERAbstractTime);P.asn1.DERSequence=function(t){P.asn1.DERSequence.superclass.constructor.call(this,t),this.hT="30",this.getFreshValueHex=function(){for(var e="",r=0;r<this.asn1Array.length;r++){var n=this.asn1Array[r];e+=n.getEncodedHex()}return this.hV=e,this.hV}};ee(P.asn1.DERSequence,P.asn1.DERAbstractStructured);P.asn1.DERSet=function(t){P.asn1.DERSet.superclass.constructor.call(this,t),this.hT="31",this.sortFlag=!0,this.getFreshValueHex=function(){for(var e=new Array,r=0;r<this.asn1Array.length;r++){var n=this.asn1Array[r];e.push(n.getEncodedHex())}return this.sortFlag==!0&&e.sort(),this.hV=e.join(""),this.hV},typeof t!="undefined"&&typeof t.sortflag!="undefined"&&t.sortflag==!1&&(this.sortFlag=!1)};ee(P.asn1.DERSet,P.asn1.DERAbstractStructured);P.asn1.DERTaggedObject=function(t){P.asn1.DERTaggedObject.superclass.constructor.call(this),this.hT="a0",this.hV="",this.isExplicit=!0,this.asn1Object=null,this.setASN1Object=function(e,r,n){this.hT=r,this.isExplicit=e,this.asn1Object=n,this.isExplicit?(this.hV=this.asn1Object.getEncodedHex(),this.hTLV=null,this.isModified=!0):(this.hV=null,this.hTLV=n.getEncodedHex(),this.hTLV=this.hTLV.replace(/^../,r),this.isModified=!1)},this.getFreshValueHex=function(){return this.hV},typeof t!="undefined"&&(typeof t.tag!="undefined"&&(this.hT=t.tag),typeof t.explicit!="undefined"&&(this.isExplicit=t.explicit),typeof t.obj!="undefined"&&(this.asn1Object=t.obj,this.setASN1Object(this.isExplicit,this.hT,this.asn1Object)))};ee(P.asn1.DERTaggedObject,P.asn1.ASN1Object);var xg=(function(){var t=function(e,r){return t=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])},t(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),qi=(function(t){xg(e,t);function e(r){var n=t.call(this)||this;return r&&(typeof r=="string"?n.parseKey(r):(e.hasPrivateKeyProperty(r)||e.hasPublicKeyProperty(r))&&n.parsePropertiesFrom(r)),n}return e.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)?Qd.decode(r):sn.unarmor(r),u=tg.decode(o);if(u.sub.length===3&&(u=u.sub[2].sub[0]),u.sub.length===9){n=u.sub[1].getHexStringValue(),this.n=Z(n,16),i=u.sub[2].getHexStringValue(),this.e=parseInt(i,16);var l=u.sub[3].getHexStringValue();this.d=Z(l,16);var a=u.sub[4].getHexStringValue();this.p=Z(a,16);var c=u.sub[5].getHexStringValue();this.q=Z(c,16);var f=u.sub[6].getHexStringValue();this.dmp1=Z(f,16);var h=u.sub[7].getHexStringValue();this.dmq1=Z(h,16);var p=u.sub[8].getHexStringValue();this.coeff=Z(p,16)}else if(u.sub.length===2)if(u.sub[0].sub){var d=u.sub[1],g=d.sub[0];n=g.sub[0].getHexStringValue(),this.n=Z(n,16),i=g.sub[1].getHexStringValue(),this.e=parseInt(i,16)}else n=u.sub[0].getHexStringValue(),this.n=Z(n,16),i=u.sub[1].getHexStringValue(),this.e=parseInt(i,16);else return!1;return!0}catch(v){return!1}},e.prototype.getPrivateBaseKey=function(){var r={array:[new P.asn1.DERInteger({int:0}),new P.asn1.DERInteger({bigint:this.n}),new P.asn1.DERInteger({int:this.e}),new P.asn1.DERInteger({bigint:this.d}),new P.asn1.DERInteger({bigint:this.p}),new P.asn1.DERInteger({bigint:this.q}),new P.asn1.DERInteger({bigint:this.dmp1}),new P.asn1.DERInteger({bigint:this.dmq1}),new P.asn1.DERInteger({bigint:this.coeff})]},n=new P.asn1.DERSequence(r);return n.getEncodedHex()},e.prototype.getPrivateBaseKeyB64=function(){return bt(this.getPrivateBaseKey())},e.prototype.getPublicBaseKey=function(){var r=new P.asn1.DERSequence({array:[new P.asn1.DERObjectIdentifier({oid:"1.2.840.113549.1.1.1"}),new P.asn1.DERNull]}),n=new P.asn1.DERSequence({array:[new P.asn1.DERInteger({bigint:this.n}),new P.asn1.DERInteger({int:this.e})]}),i=new P.asn1.DERBitString({hex:"00"+n.getEncodedHex()}),s=new P.asn1.DERSequence({array:[r,i]});return s.getEncodedHex()},e.prototype.getPublicBaseKeyB64=function(){return bt(this.getPublicBaseKey())},e.wordwrap=function(r,n){if(n=n||64,!r)return r;var i="(.{1,"+n+`})( +|$
34
+ ?)|(.{1,`+n+"})";return r.match(RegExp(i,"g")).join(`
35
+ `)},e.prototype.getPrivateKey=function(){var r=`-----BEGIN RSA PRIVATE KEY-----
36
+ `;return r+=e.wordwrap(this.getPrivateBaseKeyB64())+`
37
+ `,r+="-----END RSA PRIVATE KEY-----",r},e.prototype.getPublicKey=function(){var r=`-----BEGIN PUBLIC KEY-----
38
+ `;return r+=e.wordwrap(this.getPublicBaseKeyB64())+`
39
+ `,r+="-----END PUBLIC KEY-----",r},e.hasPublicKeyProperty=function(r){return r=r||{},r.hasOwnProperty("n")&&r.hasOwnProperty("e")},e.hasPrivateKeyProperty=function(r){return r=r||{},r.hasOwnProperty("n")&&r.hasOwnProperty("e")&&r.hasOwnProperty("d")&&r.hasOwnProperty("p")&&r.hasOwnProperty("q")&&r.hasOwnProperty("dmp1")&&r.hasOwnProperty("dmq1")&&r.hasOwnProperty("coeff")},e.prototype.parsePropertiesFrom=function(r){this.n=r.n,this.e=r.e,r.hasOwnProperty("d")&&(this.d=r.d,this.p=r.p,this.q=r.q,this.dmp1=r.dmp1,this.dmq1=r.dmq1,this.coeff=r.coeff)},e})(Sg),Pr,Og=typeof process!="undefined"?(Pr=Na)===null||Pr===void 0?void 0:Pr.npm_package_version:void 0,$g=(function(){function t(e){e===void 0&&(e={}),this.default_key_size=e.default_key_size?parseInt(e.default_key_size,10):1024,this.default_public_exponent=e.default_public_exponent||"010001",this.log=e.log||!1,this.key=e.key||null}return t.prototype.setKey=function(e){e?(this.log&&this.key&&console.warn("A key was already set, overriding existing."),this.key=new qi(e)):!this.key&&this.log&&console.error("A key was not set.")},t.prototype.setPrivateKey=function(e){this.setKey(e)},t.prototype.setPublicKey=function(e){this.setKey(e)},t.prototype.decrypt=function(e){try{return this.getKey().decrypt(Ni(e))}catch(r){return!1}},t.prototype.encrypt=function(e){try{return bt(this.getKey().encrypt(e))}catch(r){return!1}},t.prototype.encryptOAEP=function(e){try{return bt(this.getKey().encrypt(e,Eg))}catch(r){return!1}},t.prototype.sign=function(e,r,n){r===void 0&&(r=function(i){return i}),n===void 0&&(n="");try{return bt(this.getKey().sign(e,r,n))}catch(i){return!1}},t.prototype.signSha256=function(e){return this.sign(e,function(r){return Vi(on(r))},"sha256")},t.prototype.verify=function(e,r,n){n===void 0&&(n=function(i){return i});try{return this.getKey().verify(e,Ni(r),n)}catch(i){return!1}},t.prototype.verifySha256=function(e,r){return this.verify(e,r,function(n){return Vi(on(n))})},t.prototype.getKey=function(e){if(!this.key){if(this.key=new qi,e&&{}.toString.call(e)==="[object Function]"){this.key.generateAsync(this.default_key_size,this.default_public_exponent,e);return}this.key.generate(this.default_key_size,this.default_public_exponent)}return this.key},t.prototype.getPrivateKey=function(){return this.getKey().getPrivateKey()},t.prototype.getPrivateKeyB64=function(){return this.getKey().getPrivateBaseKeyB64()},t.prototype.getPublicKey=function(){return this.getKey().getPublicKey()},t.prototype.getPublicKeyB64=function(){return this.getKey().getPublicBaseKeyB64()},t.version=Og,t})();const Dg="MIIBUwIBADANBgkqhkiG9w0BAQEFAASCAT0wggE5AgEAAkEAt3LFMIQHlZwadt5TI3jGfVyzzP7S0Lva+Bt38v32iblNnQ59GpFvpjtEl92KYH0snK+bI/1PU/SNaseSi2ryJQIDAQABAkBGHyXG7MDlbD0lcMhAx9q/cp773fABf70sl3tbM754V+mH8dEiAim398NhhrADz4F4K12H74R39O/0Hjr/VAZlAiEA5+3MoAbnsDOzFP+oT4YZJBjx8MmsukU3AaguPW4tYcMCIQDKfN+Qk/jD3vZlWsUJ23013D2NDSjgcH4gdV71oYb19wIgUMWYhgLhnZPjwmRnEYr6JoApglo6NYT1azZPJEXCuFECIDyQUQYbXCKpw6TZG2oxXigH8dkIgJtwyijHMlnhsE5NAiBxF7HA7U2rDnZ6+VRDXtIg+joD3o1h3bFy2A+QX5yDYA==";function zi(t,e=Dg){const r=new $g;return r.setPrivateKey(e),r.decrypt(t)}const Co=/^(http|https):\/\/[\w.:\-@]*/;function Tt(t){return Co.test(t)}var Cg={exports:{}};/*! @preserve
40
40
  * numeral.js
41
41
  * version : 2.0.6
42
42
  * author : Adam Draper
43
43
  * license : MIT
44
44
  * http://adamwdraper.github.com/Numeral-js/
45
- */(function(r){(function(e,t){r.exports?r.exports=t():e.numeral=t()})(oe,function(){var e,t,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 e=function(a){var c,f,h,p;if(e.isNumeral(a))c=a.value();else if(a===0||typeof a=="undefined")c=0;else if(a===null||t.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||e._.stringToNumber,c=h(a)}else c=Number(a)||null;return new l(a,c)},e.version=n,e.isNumeral=function(a){return a instanceof l},e._=t={numberToFormat:function(a,c,f){var h=s[e.options.currentLocale],p=!1,d=!1,g=0,v="",E=1e12,m=1e9,b=1e6,_=1e3,w="",y=!1,T,O,L,S,A,M,j;if(a=a||0,O=Math.abs(a),e._.includes(c,"(")?(p=!0,c=c.replace(/[\(|\)]/g,"")):(e._.includes(c,"+")||e._.includes(c,"-"))&&(A=e._.includes(c,"+")?c.indexOf("+"):a<0?c.indexOf("-"):-1,c=c.replace(/[\+|\-]/g,"")),e._.includes(c,"a")&&(T=c.match(/a(k|m|b|t)?/),T=T?T[1]:!1,e._.includes(c," a")&&(v=" "),c=c.replace(new RegExp(v+"a[kmbt]?"),""),O>=E&&!T||T==="t"?(v+=h.abbreviations.trillion,a=a/E):O<E&&O>=m&&!T||T==="b"?(v+=h.abbreviations.billion,a=a/m):O<m&&O>=b&&!T||T==="m"?(v+=h.abbreviations.million,a=a/b):(O<b&&O>=_&&!T||T==="k")&&(v+=h.abbreviations.thousand,a=a/_)),e._.includes(c,"[.]")&&(d=!0,c=c.replace("[.]",".")),L=a.toString().split(".")[0],S=c.split(".")[1],M=c.indexOf(","),g=(c.split(".")[0].split(",")[0].match(/0/g)||[]).length,S?(e._.includes(S,"[")?(S=S.replace("]",""),S=S.split("["),w=e._.toFixed(a,S[0].length+S[1].length,f,S[1].length)):w=e._.toFixed(a,S.length,f),L=w.split(".")[0],e._.includes(w,".")?w=h.delimiters.decimal+w.split(".")[1]:w="",d&&Number(w.slice(1))===0&&(w="")):L=e._.toFixed(a,0,f),v&&!T&&Number(L)>=1e3&&v!==h.abbreviations.trillion)switch(L=String(Number(L)/1e3),v){case h.abbreviations.thousand:v=h.abbreviations.million;break;case h.abbreviations.million:v=h.abbreviations.billion;break;case h.abbreviations.billion:v=h.abbreviations.trillion;break}if(e._.includes(L,"-")&&(L=L.slice(1),y=!0),L.length<g)for(var I=g-L.length;I>0;I--)L="0"+L;return M>-1&&(L=L.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+h.delimiters.thousands)),c.indexOf(".")===0&&(L=""),j=L+w+(v||""),p?j=(p&&y?"(":"")+j+(p&&y?")":""):A>=0?j=A===0?(y?"-":"+")+j:j+(y?"-":"+"):y&&(j="-"+j),j},stringToNumber:function(a){var c=s[u.currentLocale],f=a,h={thousand:3,million:6,billion:9,trillion:12},p,d,g;if(u.zeroFormat&&a===u.zeroFormat)d=0;else if(u.nullFormat&&a===u.nullFormat||!a.replace(/[^0-9]+/g,"").length)d=null;else{d=1,c.delimiters.decimal!=="."&&(a=a.replace(/\./g,"").replace(c.delimiters.decimal,"."));for(p in h)if(g=new RegExp("[^a-zA-Z]"+c.abbreviations[p]+"(?:\\)|(\\"+c.currency.symbol+")?(?:\\))?)?$"),f.match(g)){d*=Math.pow(10,h[p]);break}d*=(a.split("-").length+Math.min(a.split("(").length-1,a.split(")").length-1))%2?1:-1,a=a.replace(/[^0-9\.]+/g,""),d*=Number(a)}return d},isNaN:function(a){return typeof a=="number"&&isNaN(a)},includes:function(a,c){return a.indexOf(c)!==-1},insert:function(a,c,f){return a.slice(0,f)+c+a.slice(f)},reduce:function(a,c){if(this===null)throw new TypeError("Array.prototype.reduce called on null or undefined");if(typeof c!="function")throw new TypeError(c+" is not a function");var f=Object(a),h=f.length>>>0,p=0,d;if(arguments.length===3)d=arguments[2];else{for(;p<h&&!(p in f);)p++;if(p>=h)throw new TypeError("Reduce of empty array with no initial value");d=f[p++]}for(;p<h;p++)p in f&&(d=c(d,f[p],p,f));return d},multiplier:function(a){var c=a.toString().split(".");return c.length<2?1:Math.pow(10,c[1].length)},correctionFactor:function(){var a=Array.prototype.slice.call(arguments);return a.reduce(function(c,f){var h=t.multiplier(f);return c>h?c:h},1)},toFixed:function(a,c,f,h){var p=a.toString().split("."),d=c-(h||0),g,v,E,m;return p.length===2?g=Math.min(Math.max(p[1].length,d),c):g=d,E=Math.pow(10,g),m=(f(a+"e+"+g)/E).toFixed(g),h>c-g&&(v=new RegExp("\\.?0{1,"+(h-(c-g))+"}$"),m=m.replace(v,"")),m}},e.options=u,e.formats=i,e.locales=s,e.locale=function(a){return a&&(u.currentLocale=a.toLowerCase()),u.currentLocale},e.localeData=function(a){if(!a)return s[u.currentLocale];if(a=a.toLowerCase(),!s[a])throw new Error("Unknown locale : "+a);return s[a]},e.reset=function(){for(var a in o)u[a]=o[a]},e.zeroFormat=function(a){u.zeroFormat=typeof a=="string"?a:null},e.nullFormat=function(a){u.nullFormat=typeof a=="string"?a:null},e.defaultFormat=function(a){u.defaultFormat=typeof a=="string"?a:"0.0"},e.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},e.validate=function(a,c){var f,h,p,d,g,v,E,m;if(typeof a!="string"&&(a+="",console.warn&&console.warn("Numeral.js: Value is not string. It has been co-erced to: ",a)),a=a.trim(),a.match(/^\d+$/))return!0;if(a==="")return!1;try{E=e.localeData(c)}catch(b){E=e.localeData(e.locale())}return p=E.currency.symbol,g=E.abbreviations,f=E.delimiters.decimal,E.delimiters.thousands==="."?h="\\.":h=E.delimiters.thousands,m=a.match(/^[^\d]+/),m!==null&&(a=a.substr(1),m[0]!==p)||(m=a.match(/[^\d]+$/),m!==null&&(a=a.slice(0,-1),m[0]!==g.thousand&&m[0]!==g.million&&m[0]!==g.billion&&m[0]!==g.trillion))?!1:(v=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(v):d[0].length===1?!!d[0].match(/^\d+$/)&&!d[0].match(v)&&!!d[1].match(/^\d+$/):!!d[0].match(/^\d+.*\d$/)&&!d[0].match(v)&&!!d[1].match(/^\d+$/)))},e.fn=l.prototype={clone:function(){return e(this)},format:function(a,c){var f=this._value,h=a||u.defaultFormat,p,d,g;if(c=c||Math.round,f===0&&u.zeroFormat!==null)d=u.zeroFormat;else if(f===null&&u.nullFormat!==null)d=u.nullFormat;else{for(p in i)if(h.match(i[p].regexps.format)){g=i[p].format;break}g=g||e._.numberToFormat,d=g(f,h,c)}return d},value:function(){return this._value},input:function(){return this._input},set:function(a){return this._value=Number(a),this},add:function(a){var c=t.correctionFactor.call(null,this._value,a);function f(h,p,d,g){return h+Math.round(c*p)}return this._value=t.reduce([this._value,a],f,0)/c,this},subtract:function(a){var c=t.correctionFactor.call(null,this._value,a);function f(h,p,d,g){return h-Math.round(c*p)}return this._value=t.reduce([a],f,Math.round(this._value*c))/c,this},multiply:function(a){function c(f,h,p,d){var g=t.correctionFactor(f,h);return Math.round(f*g)*Math.round(h*g)/Math.round(g*g)}return this._value=t.reduce([this._value,a],c,1),this},divide:function(a){function c(f,h,p,d){var g=t.correctionFactor(f,h);return Math.round(f*g)/Math.round(h*g)}return this._value=t.reduce([this._value,a],c),this},difference:function(a){return Math.abs(e(this._value).subtract(a).value())}},e.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(){e.register("format","bps",{regexps:{format:/(BPS)/,unformat:/(BPS)/},format:function(a,c,f){var h=e._.includes(c," BPS")?" ":"",p;return a=a*1e4,c=c.replace(/\s?BPS/,""),p=e._.numberToFormat(a,c,f),e._.includes(p,")")?(p=p.split(""),p.splice(-1,0,h+"BPS"),p=p.join("")):p=p+h+"BPS",p},unformat:function(a){return+(e._.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)")+")",e.register("format","bytes",{regexps:{format:/([0\s]i?b)/,unformat:new RegExp(h)},format:function(p,d,g){var v,E=e._.includes(d,"ib")?c:a,m=e._.includes(d," b")||e._.includes(d," ib")?" ":"",b,_,w;for(d=d.replace(/\s?i?b/,""),b=0;b<=E.suffixes.length;b++)if(_=Math.pow(E.base,b),w=Math.pow(E.base,b+1),p===null||p===0||p>=_&&p<w){m+=E.suffixes[b],_>0&&(p=p/_);break}return v=e._.numberToFormat(p,d,g),v+m},unformat:function(p){var d=e._.stringToNumber(p),g,v;if(d){for(g=a.suffixes.length-1;g>=0;g--){if(e._.includes(p,a.suffixes[g])){v=Math.pow(a.base,g);break}if(e._.includes(p,c.suffixes[g])){v=Math.pow(c.base,g);break}}d*=v||1}return d}})})(),(function(){e.register("format","currency",{regexps:{format:/(\$)/},format:function(a,c,f){var h=e.locales[e.options.currentLocale],p={before:c.match(/^([\+|\-|\(|\s|\$]*)/)[0],after:c.match(/([\+|\-|\)|\s|\$]*)$/)[0]},d,g,v;for(c=c.replace(/\s?\$\s?/,""),d=e._.numberToFormat(a,c,f),a>=0?(p.before=p.before.replace(/[\-\(]/,""),p.after=p.after.replace(/[\-\)]/,"")):a<0&&!e._.includes(p.before,"-")&&!e._.includes(p.before,"(")&&(p.before="-"+p.before),v=0;v<p.before.length;v++)switch(g=p.before[v],g){case"$":d=e._.insert(d,h.currency.symbol,v);break;case" ":d=e._.insert(d," ",v+h.currency.symbol.length-1);break}for(v=p.after.length-1;v>=0;v--)switch(g=p.after[v],g){case"$":d=v===p.after.length-1?d+h.currency.symbol:e._.insert(d,h.currency.symbol,-(p.after.length-(1+v)));break;case" ":d=v===p.after.length-1?d+" ":e._.insert(d," ",-(p.after.length-(1+v)+h.currency.symbol.length-1));break}return d}})})(),(function(){e.register("format","exponential",{regexps:{format:/(e\+|e-)/,unformat:/(e\+|e-)/},format:function(a,c,f){var h,p=typeof a=="number"&&!e._.isNaN(a)?a.toExponential():"0e+0",d=p.split("e");return c=c.replace(/e[\+|\-]{1}0/,""),h=e._.numberToFormat(Number(d[0]),c,f),h+"e"+d[1]},unformat:function(a){var c=e._.includes(a,"e+")?a.split("e+"):a.split("e-"),f=Number(c[0]),h=Number(c[1]);h=e._.includes(a,"e-")?h*=-1:h;function p(d,g,v,E){var m=e._.correctionFactor(d,g),b=d*m*(g*m)/(m*m);return b}return e._.reduce([f,Math.pow(10,h)],p,1)}})})(),(function(){e.register("format","ordinal",{regexps:{format:/(o)/},format:function(a,c,f){var h=e.locales[e.options.currentLocale],p,d=e._.includes(c," o")?" ":"";return c=c.replace(/\s?o/,""),d+=h.ordinal(a),p=e._.numberToFormat(a,c,f),p+d}})})(),(function(){e.register("format","percentage",{regexps:{format:/(%)/,unformat:/(%)/},format:function(a,c,f){var h=e._.includes(c," %")?" ":"",p;return e.options.scalePercentBy100&&(a=a*100),c=c.replace(/\s?\%/,""),p=e._.numberToFormat(a,c,f),e._.includes(p,")")?(p=p.split(""),p.splice(-1,0,h+"%"),p=p.join("")):p=p+h+"%",p},unformat:function(a){var c=e._.stringToNumber(a);return e.options.scalePercentBy100?c*.01:c}})})(),(function(){e.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)}})})(),e})})(Cg);var Bo={exports:{}};(function(r,e){(function(t,n){r.exports=n()})(oe,(function(){var t=1e3,n=6e4,i=36e5,s="millisecond",o="second",u="minute",l="hour",a="day",c="week",f="month",h="quarter",p="year",d="date",g="Invalid Date",v=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,E=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,m={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(I){var B=["th","st","nd","rd"],$=I%100;return"["+I+(B[($-20)%10]||B[$]||B[0])+"]"}},b=function(I,B,$){var H=String(I);return!H||H.length>=B?I:""+Array(B+1-H.length).join($)+I},_={s:b,z:function(I){var B=-I.utcOffset(),$=Math.abs(B),H=Math.floor($/60),F=$%60;return(B<=0?"+":"-")+b(H,2,"0")+":"+b(F,2,"0")},m:function I(B,$){if(B.date()<$.date())return-I($,B);var H=12*($.year()-B.year())+($.month()-B.month()),F=B.clone().add(H,f),q=$-F<0,z=B.clone().add(H+(q?-1:1),f);return+(-(H+($-F)/(q?F-z:z-F))||0)},a:function(I){return I<0?Math.ceil(I)||0:Math.floor(I)},p:function(I){return{M:f,y:p,w:c,d:a,D:d,h:l,m:u,s:o,ms:s,Q:h}[I]||String(I||"").toLowerCase().replace(/s$/,"")},u:function(I){return I===void 0}},w="en",y={};y[w]=m;var T="$isDayjsObject",O=function(I){return I instanceof M||!(!I||!I[T])},L=function I(B,$,H){var F;if(!B)return w;if(typeof B=="string"){var q=B.toLowerCase();y[q]&&(F=q),$&&(y[q]=$,F=q);var z=B.split("-");if(!F&&z.length>1)return I(z[0])}else{var x=B.name;y[x]=B,F=x}return!H&&F&&(w=F),F||!H&&w},S=function(I,B){if(O(I))return I.clone();var $=typeof B=="object"?B:{};return $.date=I,$.args=arguments,new M($)},A=_;A.l=L,A.i=O,A.w=function(I,B){return S(I,{locale:B.$L,utc:B.$u,x:B.$x,$offset:B.$offset})};var M=(function(){function I($){this.$L=L($.locale,null,!0),this.parse($),this.$x=this.$x||$.x||{},this[T]=!0}var B=I.prototype;return B.parse=function($){this.$d=(function(H){var F=H.date,q=H.utc;if(F===null)return new Date(NaN);if(A.u(F))return new Date;if(F instanceof Date)return new Date(F);if(typeof F=="string"&&!/Z$/i.test(F)){var z=F.match(v);if(z){var x=z[2]-1||0,C=(z[7]||"0").substring(0,3);return q?new Date(Date.UTC(z[1],x,z[3]||1,z[4]||0,z[5]||0,z[6]||0,C)):new Date(z[1],x,z[3]||1,z[4]||0,z[5]||0,z[6]||0,C)}}return new Date(F)})($),this.init()},B.init=function(){var $=this.$d;this.$y=$.getFullYear(),this.$M=$.getMonth(),this.$D=$.getDate(),this.$W=$.getDay(),this.$H=$.getHours(),this.$m=$.getMinutes(),this.$s=$.getSeconds(),this.$ms=$.getMilliseconds()},B.$utils=function(){return A},B.isValid=function(){return this.$d.toString()!==g},B.isSame=function($,H){var F=S($);return this.startOf(H)<=F&&F<=this.endOf(H)},B.isAfter=function($,H){return S($)<this.startOf(H)},B.isBefore=function($,H){return this.endOf(H)<S($)},B.$g=function($,H,F){return A.u($)?this[H]:this.set(F,$)},B.unix=function(){return Math.floor(this.valueOf()/1e3)},B.valueOf=function(){return this.$d.getTime()},B.startOf=function($,H){var F=this,q=!!A.u(H)||H,z=A.p($),x=function(Le,ae){var Pe=A.w(F.$u?Date.UTC(F.$y,ae,Le):new Date(F.$y,ae,Le),F);return q?Pe:Pe.endOf(a)},C=function(Le,ae){return A.w(F.toDate()[Le].apply(F.toDate("s"),(q?[0,0,0,0]:[23,59,59,999]).slice(ae)),F)},D=this.$W,N=this.$M,te=this.$D,xe="set"+(this.$u?"UTC":"");switch(z){case p:return q?x(1,0):x(31,11);case f:return q?x(1,N):x(0,N+1);case c:var we=this.$locale().weekStart||0,ft=(D<we?D+7:D)-we;return x(q?te-ft:te+(6-ft),N);case a:case d:return C(xe+"Hours",0);case l:return C(xe+"Minutes",1);case u:return C(xe+"Seconds",2);case o:return C(xe+"Milliseconds",3);default:return this.clone()}},B.endOf=function($){return this.startOf($,!1)},B.$set=function($,H){var F,q=A.p($),z="set"+(this.$u?"UTC":""),x=(F={},F[a]=z+"Date",F[d]=z+"Date",F[f]=z+"Month",F[p]=z+"FullYear",F[l]=z+"Hours",F[u]=z+"Minutes",F[o]=z+"Seconds",F[s]=z+"Milliseconds",F)[q],C=q===a?this.$D+(H-this.$W):H;if(q===f||q===p){var D=this.clone().set(d,1);D.$d[x](C),D.init(),this.$d=D.set(d,Math.min(this.$D,D.daysInMonth())).$d}else x&&this.$d[x](C);return this.init(),this},B.set=function($,H){return this.clone().$set($,H)},B.get=function($){return this[A.p($)]()},B.add=function($,H){var F,q=this;$=Number($);var z=A.p(H),x=function(N){var te=S(q);return A.w(te.date(te.date()+Math.round(N*$)),q)};if(z===f)return this.set(f,this.$M+$);if(z===p)return this.set(p,this.$y+$);if(z===a)return x(1);if(z===c)return x(7);var C=(F={},F[u]=n,F[l]=i,F[o]=t,F)[z]||1,D=this.$d.getTime()+$*C;return A.w(D,this)},B.subtract=function($,H){return this.add(-1*$,H)},B.format=function($){var H=this,F=this.$locale();if(!this.isValid())return F.invalidDate||g;var q=$||"YYYY-MM-DDTHH:mm:ssZ",z=A.z(this),x=this.$H,C=this.$m,D=this.$M,N=F.weekdays,te=F.months,xe=F.meridiem,we=function(ae,Pe,ht,Bt){return ae&&(ae[Pe]||ae(H,q))||ht[Pe].slice(0,Bt)},ft=function(ae){return A.s(x%12||12,ae,"0")},Le=xe||function(ae,Pe,ht){var Bt=ae<12?"AM":"PM";return ht?Bt.toLowerCase():Bt};return q.replace(E,(function(ae,Pe){return Pe||(function(ht){switch(ht){case"YY":return String(H.$y).slice(-2);case"YYYY":return A.s(H.$y,4,"0");case"M":return D+1;case"MM":return A.s(D+1,2,"0");case"MMM":return we(F.monthsShort,D,te,3);case"MMMM":return we(te,D);case"D":return H.$D;case"DD":return A.s(H.$D,2,"0");case"d":return String(H.$W);case"dd":return we(F.weekdaysMin,H.$W,N,2);case"ddd":return we(F.weekdaysShort,H.$W,N,3);case"dddd":return N[H.$W];case"H":return String(x);case"HH":return A.s(x,2,"0");case"h":return ft(1);case"hh":return ft(2);case"a":return Le(x,C,!0);case"A":return Le(x,C,!1);case"m":return String(C);case"mm":return A.s(C,2,"0");case"s":return String(H.$s);case"ss":return A.s(H.$s,2,"0");case"SSS":return A.s(H.$ms,3,"0");case"Z":return z}return null})(ae)||z.replace(":","")}))},B.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},B.diff=function($,H,F){var q,z=this,x=A.p(H),C=S($),D=(C.utcOffset()-this.utcOffset())*n,N=this-C,te=function(){return A.m(z,C)};switch(x){case p:q=te()/12;break;case f:q=te();break;case h:q=te()/3;break;case c:q=(N-D)/6048e5;break;case a:q=(N-D)/864e5;break;case l:q=N/i;break;case u:q=N/n;break;case o:q=N/t;break;default:q=N}return F?q:A.a(q)},B.daysInMonth=function(){return this.endOf(f).$D},B.$locale=function(){return y[this.$L]},B.locale=function($,H){if(!$)return this.$L;var F=this.clone(),q=L($,H,!0);return q&&(F.$L=q),F},B.clone=function(){return A.w(this.$d,this)},B.toDate=function(){return new Date(this.valueOf())},B.toJSON=function(){return this.isValid()?this.toISOString():null},B.toISOString=function(){return this.$d.toISOString()},B.toString=function(){return this.$d.toUTCString()},I})(),j=M.prototype;return S.prototype=j,[["$ms",s],["$s",o],["$m",u],["$H",l],["$W",a],["$M",f],["$y",p],["$D",d]].forEach((function(I){j[I[1]]=function(B){return this.$g(B,I[0],I[1])}})),S.extend=function(I,B){return I.$i||(I(B,M,S),I.$i=!0),S},S.locale=L,S.isDayjs=O,S.unix=function(I){return S(1e3*I)},S.en=y[w],S.Ls=y,S.p={},S}))})(Bo);var Po=Bo.exports;const Bg=Ld(Po);var Pg={exports:{}};(function(r,e){(function(t,n){r.exports=n(Po)})(oe,(function(t){function n(o){return o&&typeof o=="object"&&"default"in o?o:{default:o}}var i=n(t),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}))})(Pg);Bg.locale("zh-cn");function jg(r=!0){const e="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){const n=Math.random()*16|0;return(t==="x"?n:n&3|8).toString(16)});return r?e.toLowerCase():e.replace(/-/gi,"")}function ir(r=0){return U(this,null,function*(){return new Promise(e=>{setTimeout(e,r)})})}function Ng(r){return[...r.entries()].reduce((e,[t,n])=>(e[t]=n,e),{})}function Ig(r,e){return Array.from(new Set(r))}function Wi(r){return r?[].concat(r):[]}function jr(r,e){const t={};if(Array.isArray(e))Object.keys(r).forEach(n=>{e.includes(n)||(t[n]=r[n])});else{const n=e;Object.entries(r).forEach(([i,s])=>{n(i,s)||(t[i]=s)})}return t}function Mg(r,e){const t={};if(Array.isArray(e))Object.keys(r).forEach(n=>{e.includes(n)&&(t[n]=r[n])});else{const n=e;Object.entries(r).forEach(([i,s])=>{n(i,s)&&(t[i]=s)})}return t}var jo={exports:{}};(function(r){var e=(function(){var t=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 t(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(t(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 t(a)})},_compress:function(l,a,c){if(l==null)return"";var f,h,p={},d={},g="",v="",E="",m=2,b=3,_=2,w=[],y=0,T=0,O;for(O=0;O<l.length;O+=1)if(g=l.charAt(O),Object.prototype.hasOwnProperty.call(p,g)||(p[g]=b++,d[g]=!0),v=E+g,Object.prototype.hasOwnProperty.call(p,v))E=v;else{if(Object.prototype.hasOwnProperty.call(d,E)){if(E.charCodeAt(0)<256){for(f=0;f<_;f++)y=y<<1,T==a-1?(T=0,w.push(c(y)),y=0):T++;for(h=E.charCodeAt(0),f=0;f<8;f++)y=y<<1|h&1,T==a-1?(T=0,w.push(c(y)),y=0):T++,h=h>>1}else{for(h=1,f=0;f<_;f++)y=y<<1|h,T==a-1?(T=0,w.push(c(y)),y=0):T++,h=0;for(h=E.charCodeAt(0),f=0;f<16;f++)y=y<<1|h&1,T==a-1?(T=0,w.push(c(y)),y=0):T++,h=h>>1}m--,m==0&&(m=Math.pow(2,_),_++),delete d[E]}else for(h=p[E],f=0;f<_;f++)y=y<<1|h&1,T==a-1?(T=0,w.push(c(y)),y=0):T++,h=h>>1;m--,m==0&&(m=Math.pow(2,_),_++),p[v]=b++,E=String(g)}if(E!==""){if(Object.prototype.hasOwnProperty.call(d,E)){if(E.charCodeAt(0)<256){for(f=0;f<_;f++)y=y<<1,T==a-1?(T=0,w.push(c(y)),y=0):T++;for(h=E.charCodeAt(0),f=0;f<8;f++)y=y<<1|h&1,T==a-1?(T=0,w.push(c(y)),y=0):T++,h=h>>1}else{for(h=1,f=0;f<_;f++)y=y<<1|h,T==a-1?(T=0,w.push(c(y)),y=0):T++,h=0;for(h=E.charCodeAt(0),f=0;f<16;f++)y=y<<1|h&1,T==a-1?(T=0,w.push(c(y)),y=0):T++,h=h>>1}m--,m==0&&(m=Math.pow(2,_),_++),delete d[E]}else for(h=p[E],f=0;f<_;f++)y=y<<1|h&1,T==a-1?(T=0,w.push(c(y)),y=0):T++,h=h>>1;m--,m==0&&(m=Math.pow(2,_),_++)}for(h=2,f=0;f<_;f++)y=y<<1|h&1,T==a-1?(T=0,w.push(c(y)),y=0):T++,h=h>>1;for(;;)if(y=y<<1,T==a-1){w.push(c(y));break}else T++;return w.join("")},decompress:function(l){return l==null?"":l==""?null:u._decompress(l.length,32768,function(a){return l.charCodeAt(a)})},_decompress:function(l,a,c){var f=[],h=4,p=4,d=3,g="",v=[],E,m,b,_,w,y,T,O={val:c(0),position:a,index:1};for(E=0;E<3;E+=1)f[E]=E;for(b=0,w=Math.pow(2,2),y=1;y!=w;)_=O.val&O.position,O.position>>=1,O.position==0&&(O.position=a,O.val=c(O.index++)),b|=(_>0?1:0)*y,y<<=1;switch(b){case 0:for(b=0,w=Math.pow(2,8),y=1;y!=w;)_=O.val&O.position,O.position>>=1,O.position==0&&(O.position=a,O.val=c(O.index++)),b|=(_>0?1:0)*y,y<<=1;T=t(b);break;case 1:for(b=0,w=Math.pow(2,16),y=1;y!=w;)_=O.val&O.position,O.position>>=1,O.position==0&&(O.position=a,O.val=c(O.index++)),b|=(_>0?1:0)*y,y<<=1;T=t(b);break;case 2:return""}for(f[3]=T,m=T,v.push(T);;){if(O.index>l)return"";for(b=0,w=Math.pow(2,d),y=1;y!=w;)_=O.val&O.position,O.position>>=1,O.position==0&&(O.position=a,O.val=c(O.index++)),b|=(_>0?1:0)*y,y<<=1;switch(T=b){case 0:for(b=0,w=Math.pow(2,8),y=1;y!=w;)_=O.val&O.position,O.position>>=1,O.position==0&&(O.position=a,O.val=c(O.index++)),b|=(_>0?1:0)*y,y<<=1;f[p++]=t(b),T=p-1,h--;break;case 1:for(b=0,w=Math.pow(2,16),y=1;y!=w;)_=O.val&O.position,O.position>>=1,O.position==0&&(O.position=a,O.val=c(O.index++)),b|=(_>0?1:0)*y,y<<=1;f[p++]=t(b),T=p-1,h--;break;case 2:return v.join("")}if(h==0&&(h=Math.pow(2,d),d++),f[T])g=f[T];else if(T===p)g=m+m.charAt(0);else return null;v.push(g),f[p++]=m+g.charAt(0),h--,m=g,h==0&&(h=Math.pow(2,d),d++)}}};return u})();r!=null?r.exports=e:typeof angular!="undefined"&&angular!=null&&angular.module("LZString",[]).factory("LZString",function(){return e})})(jo);var No=jo.exports;function Fg(r){for(var e=[],t=0;t<r.length;){var n=r[t];if(n==="*"||n==="+"||n==="?"){e.push({type:"MODIFIER",index:t,value:r[t++]});continue}if(n==="\\"){e.push({type:"ESCAPED_CHAR",index:t++,value:r[t++]});continue}if(n==="{"){e.push({type:"OPEN",index:t,value:r[t++]});continue}if(n==="}"){e.push({type:"CLOSE",index:t,value:r[t++]});continue}if(n===":"){for(var i="",s=t+1;s<r.length;){var o=r.charCodeAt(s);if(o>=48&&o<=57||o>=65&&o<=90||o>=97&&o<=122||o===95){i+=r[s++];continue}break}if(!i)throw new TypeError("Missing parameter name at ".concat(t));e.push({type:"NAME",index:t,value:i}),t=s;continue}if(n==="("){var u=1,l="",s=t+1;if(r[s]==="?")throw new TypeError('Pattern cannot start with "?" at '.concat(s));for(;s<r.length;){if(r[s]==="\\"){l+=r[s++]+r[s++];continue}if(r[s]===")"){if(u--,u===0){s++;break}}else if(r[s]==="("&&(u++,r[s+1]!=="?"))throw new TypeError("Capturing groups are not allowed at ".concat(s));l+=r[s++]}if(u)throw new TypeError("Unbalanced pattern at ".concat(t));if(!l)throw new TypeError("Missing pattern at ".concat(t));e.push({type:"PATTERN",index:t,value:l}),t=s;continue}e.push({type:"CHAR",index:t,value:r[t++]})}return e.push({type:"END",index:t,value:""}),e}function Io(r,e){e===void 0&&(e={});for(var t=Fg(r),n=e.prefixes,i=n===void 0?"./":n,s="[^".concat(rt(e.delimiter||"/#?"),"]+?"),o=[],u=0,l=0,a="",c=function(y){if(l<t.length&&t[l].type===y)return t[l++].value},f=function(y){var T=c(y);if(T!==void 0)return T;var O=t[l],L=O.type,S=O.index;throw new TypeError("Unexpected ".concat(L," at ").concat(S,", expected ").concat(y))},h=function(){for(var y="",T;T=c("CHAR")||c("ESCAPED_CHAR");)y+=T;return y};l<t.length;){var p=c("CHAR"),d=c("NAME"),g=c("PATTERN");if(d||g){var v=p||"";i.indexOf(v)===-1&&(a+=v,v=""),a&&(o.push(a),a=""),o.push({name:d||u++,prefix:v,suffix:"",pattern:g||s,modifier:c("MODIFIER")||""});continue}var E=p||c("ESCAPED_CHAR");if(E){a+=E;continue}a&&(o.push(a),a="");var m=c("OPEN");if(m){var v=h(),b=c("NAME")||"",_=c("PATTERN")||"",w=h();f("CLOSE"),o.push({name:b||(_?u++:""),pattern:b&&!_?s:_,prefix:v,suffix:w,modifier:c("MODIFIER")||""});continue}f("END")}return o}function Lg(r,e){return Ug(Io(r,e),e)}function Ug(r,e){e===void 0&&(e={});var t=Dn(e),n=e.encode,i=n===void 0?function(l){return l}:n,s=e.validate,o=s===void 0?!0:s,u=r.map(function(l){if(typeof l=="object")return new RegExp("^(?:".concat(l.pattern,")$"),t)});return function(l){for(var a="",c=0;c<r.length;c++){var f=r[c];if(typeof f=="string"){a+=f;continue}var h=l?l[f.name]:void 0,p=f.modifier==="?"||f.modifier==="*",d=f.modifier==="*"||f.modifier==="+";if(Array.isArray(h)){if(!d)throw new TypeError('Expected "'.concat(f.name,'" to not repeat, but got an array'));if(h.length===0){if(p)continue;throw new TypeError('Expected "'.concat(f.name,'" to not be empty'))}for(var g=0;g<h.length;g++){var v=i(h[g],f);if(o&&!u[c].test(v))throw new TypeError('Expected all "'.concat(f.name,'" to match "').concat(f.pattern,'", but got "').concat(v,'"'));a+=f.prefix+v+f.suffix}continue}if(typeof h=="string"||typeof h=="number"){var v=i(String(h),f);if(o&&!u[c].test(v))throw new TypeError('Expected "'.concat(f.name,'" to match "').concat(f.pattern,'", but got "').concat(v,'"'));a+=f.prefix+v+f.suffix;continue}if(!p){var E=d?"an array":"a string";throw new TypeError('Expected "'.concat(f.name,'" to be ').concat(E))}}return a}}function Hg(r,e){var t=[],n=Cn(r,t,e);return Vg(n,t,e)}function Vg(r,e,t){t===void 0&&(t={});var n=t.decode,i=n===void 0?function(s){return s}:n;return function(s){var o=r.exec(s);if(!o)return!1;for(var u=o[0],l=o.index,a=Object.create(null),c=function(h){if(o[h]===void 0)return"continue";var p=e[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 rt(r){return r.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function Dn(r){return r&&r.sensitive?"":"i"}function kg(r,e){if(!e)return r;for(var t=/\((?:\?<(.*?)>)?(?!\?)/g,n=0,i=t.exec(r.source);i;)e.push({name:i[1]||n++,prefix:"",suffix:"",modifier:"",pattern:""}),i=t.exec(r.source);return r}function qg(r,e,t){var n=r.map(function(i){return Cn(i,e,t).source});return new RegExp("(?:".concat(n.join("|"),")"),Dn(t))}function zg(r,e,t){return Wg(Io(r,t),e,t)}function Wg(r,e,t){t===void 0&&(t={});for(var n=t.strict,i=n===void 0?!1:n,s=t.start,o=s===void 0?!0:s,u=t.end,l=u===void 0?!0:u,a=t.encode,c=a===void 0?function(S){return S}:a,f=t.delimiter,h=f===void 0?"/#?":f,p=t.endsWith,d=p===void 0?"":p,g="[".concat(rt(d),"]|$"),v="[".concat(rt(h),"]"),E=o?"^":"",m=0,b=r;m<b.length;m++){var _=b[m];if(typeof _=="string")E+=rt(c(_));else{var w=rt(c(_.prefix)),y=rt(c(_.suffix));if(_.pattern)if(e&&e.push(_),w||y)if(_.modifier==="+"||_.modifier==="*"){var T=_.modifier==="*"?"?":"";E+="(?:".concat(w,"((?:").concat(_.pattern,")(?:").concat(y).concat(w,"(?:").concat(_.pattern,"))*)").concat(y,")").concat(T)}else E+="(?:".concat(w,"(").concat(_.pattern,")").concat(y,")").concat(_.modifier);else _.modifier==="+"||_.modifier==="*"?E+="((?:".concat(_.pattern,")").concat(_.modifier,")"):E+="(".concat(_.pattern,")").concat(_.modifier);else E+="(?:".concat(w).concat(y,")").concat(_.modifier)}}if(l)i||(E+="".concat(v,"?")),E+=t.endsWith?"(?=".concat(g,")"):"$";else{var O=r[r.length-1],L=typeof O=="string"?v.indexOf(O[O.length-1])>-1:O===void 0;i||(E+="(?:".concat(v,"(?=").concat(g,"))?")),L||(E+="(?=".concat(v,"|").concat(g,")"))}return new RegExp(E,Dn(t))}function Cn(r,e,t){return r instanceof RegExp?kg(r,e):Array.isArray(r)?qg(r,e,t):zg(r,e,t)}var Kg=Object.defineProperty,Jg=(r,e,t)=>e in r?Kg(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,dt=(r,e,t)=>(Jg(r,typeof e!="symbol"?e+"":e,t),t);class Gg{constructor(){dt(this,"queue",[]),dt(this,"isProcessing",!1),dt(this,"results",[]),dt(this,"cache",new Map),dt(this,"pendingTasks",new Map)}add(e,t){const n=this.cache.get(e);if(n)return n.status==="fulfilled"?Promise.resolve(n.value):Promise.reject(n.reason);const i=this.pendingTasks.get(e);if(i)return i;const s=new Promise((o,u)=>{this.queue.push({key:e,task:t,resolve:o,reject:u}),this.isProcessing||this.processQueue()});return this.pendingTasks.set(e,s),s}getAllResults(){return[...this.results]}getResult(e){return this.cache.get(e)}clearCacheForKey(e){this.cache.delete(e)}clearAllCache(){this.cache.clear()}processQueue(){return U(this,null,function*(){if(this.queue.length===0){this.isProcessing=!1;return}this.isProcessing=!0;const{key:e,task:t,resolve:n,reject:i}=this.queue.shift();try{const s=this.cache.get(e);if(s){s.status==="fulfilled"?n(s.value):i(s.reason),this.pendingTasks.delete(e),this.processQueue();return}const o=yield t(),u={key:e,status:"fulfilled",value:o};this.results.push(u),this.cache.set(e,u),n(o),this.pendingTasks.delete(e)}catch(s){const o={key:e,status:"rejected",reason:s};this.results.push(o),this.cache.set(e,o),i(s),this.pendingTasks.delete(e)}finally{this.processQueue()}})}}No.compress;No.decompress;/**!
45
+ */(function(t){(function(e,r){t.exports?t.exports=r():e.numeral=r()})(oe,function(){var e,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 e=function(a){var c,f,h,p;if(e.isNumeral(a))c=a.value();else if(a===0||typeof a=="undefined")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||e._.stringToNumber,c=h(a)}else c=Number(a)||null;return new l(a,c)},e.version=n,e.isNumeral=function(a){return a instanceof l},e._=r={numberToFormat:function(a,c,f){var h=s[e.options.currentLocale],p=!1,d=!1,g=0,v="",E=1e12,m=1e9,b=1e6,_=1e3,w="",y=!1,T,O,L,S,A,M,j;if(a=a||0,O=Math.abs(a),e._.includes(c,"(")?(p=!0,c=c.replace(/[\(|\)]/g,"")):(e._.includes(c,"+")||e._.includes(c,"-"))&&(A=e._.includes(c,"+")?c.indexOf("+"):a<0?c.indexOf("-"):-1,c=c.replace(/[\+|\-]/g,"")),e._.includes(c,"a")&&(T=c.match(/a(k|m|b|t)?/),T=T?T[1]:!1,e._.includes(c," a")&&(v=" "),c=c.replace(new RegExp(v+"a[kmbt]?"),""),O>=E&&!T||T==="t"?(v+=h.abbreviations.trillion,a=a/E):O<E&&O>=m&&!T||T==="b"?(v+=h.abbreviations.billion,a=a/m):O<m&&O>=b&&!T||T==="m"?(v+=h.abbreviations.million,a=a/b):(O<b&&O>=_&&!T||T==="k")&&(v+=h.abbreviations.thousand,a=a/_)),e._.includes(c,"[.]")&&(d=!0,c=c.replace("[.]",".")),L=a.toString().split(".")[0],S=c.split(".")[1],M=c.indexOf(","),g=(c.split(".")[0].split(",")[0].match(/0/g)||[]).length,S?(e._.includes(S,"[")?(S=S.replace("]",""),S=S.split("["),w=e._.toFixed(a,S[0].length+S[1].length,f,S[1].length)):w=e._.toFixed(a,S.length,f),L=w.split(".")[0],e._.includes(w,".")?w=h.delimiters.decimal+w.split(".")[1]:w="",d&&Number(w.slice(1))===0&&(w="")):L=e._.toFixed(a,0,f),v&&!T&&Number(L)>=1e3&&v!==h.abbreviations.trillion)switch(L=String(Number(L)/1e3),v){case h.abbreviations.thousand:v=h.abbreviations.million;break;case h.abbreviations.million:v=h.abbreviations.billion;break;case h.abbreviations.billion:v=h.abbreviations.trillion;break}if(e._.includes(L,"-")&&(L=L.slice(1),y=!0),L.length<g)for(var I=g-L.length;I>0;I--)L="0"+L;return M>-1&&(L=L.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+h.delimiters.thousands)),c.indexOf(".")===0&&(L=""),j=L+w+(v||""),p?j=(p&&y?"(":"")+j+(p&&y?")":""):A>=0?j=A===0?(y?"-":"+")+j:j+(y?"-":"+"):y&&(j="-"+j),j},stringToNumber:function(a){var c=s[u.currentLocale],f=a,h={thousand:3,million:6,billion:9,trillion:12},p,d,g;if(u.zeroFormat&&a===u.zeroFormat)d=0;else if(u.nullFormat&&a===u.nullFormat||!a.replace(/[^0-9]+/g,"").length)d=null;else{d=1,c.delimiters.decimal!=="."&&(a=a.replace(/\./g,"").replace(c.delimiters.decimal,"."));for(p in h)if(g=new RegExp("[^a-zA-Z]"+c.abbreviations[p]+"(?:\\)|(\\"+c.currency.symbol+")?(?:\\))?)?$"),f.match(g)){d*=Math.pow(10,h[p]);break}d*=(a.split("-").length+Math.min(a.split("(").length-1,a.split(")").length-1))%2?1:-1,a=a.replace(/[^0-9\.]+/g,""),d*=Number(a)}return d},isNaN:function(a){return typeof a=="number"&&isNaN(a)},includes:function(a,c){return a.indexOf(c)!==-1},insert:function(a,c,f){return a.slice(0,f)+c+a.slice(f)},reduce:function(a,c){if(this===null)throw new TypeError("Array.prototype.reduce called on null or undefined");if(typeof c!="function")throw new TypeError(c+" is not a function");var f=Object(a),h=f.length>>>0,p=0,d;if(arguments.length===3)d=arguments[2];else{for(;p<h&&!(p in f);)p++;if(p>=h)throw new TypeError("Reduce of empty array with no initial value");d=f[p++]}for(;p<h;p++)p in f&&(d=c(d,f[p],p,f));return d},multiplier:function(a){var c=a.toString().split(".");return c.length<2?1:Math.pow(10,c[1].length)},correctionFactor:function(){var a=Array.prototype.slice.call(arguments);return a.reduce(function(c,f){var h=r.multiplier(f);return c>h?c:h},1)},toFixed:function(a,c,f,h){var p=a.toString().split("."),d=c-(h||0),g,v,E,m;return p.length===2?g=Math.min(Math.max(p[1].length,d),c):g=d,E=Math.pow(10,g),m=(f(a+"e+"+g)/E).toFixed(g),h>c-g&&(v=new RegExp("\\.?0{1,"+(h-(c-g))+"}$"),m=m.replace(v,"")),m}},e.options=u,e.formats=i,e.locales=s,e.locale=function(a){return a&&(u.currentLocale=a.toLowerCase()),u.currentLocale},e.localeData=function(a){if(!a)return s[u.currentLocale];if(a=a.toLowerCase(),!s[a])throw new Error("Unknown locale : "+a);return s[a]},e.reset=function(){for(var a in o)u[a]=o[a]},e.zeroFormat=function(a){u.zeroFormat=typeof a=="string"?a:null},e.nullFormat=function(a){u.nullFormat=typeof a=="string"?a:null},e.defaultFormat=function(a){u.defaultFormat=typeof a=="string"?a:"0.0"},e.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},e.validate=function(a,c){var f,h,p,d,g,v,E,m;if(typeof a!="string"&&(a+="",console.warn&&console.warn("Numeral.js: Value is not string. It has been co-erced to: ",a)),a=a.trim(),a.match(/^\d+$/))return!0;if(a==="")return!1;try{E=e.localeData(c)}catch(b){E=e.localeData(e.locale())}return p=E.currency.symbol,g=E.abbreviations,f=E.delimiters.decimal,E.delimiters.thousands==="."?h="\\.":h=E.delimiters.thousands,m=a.match(/^[^\d]+/),m!==null&&(a=a.substr(1),m[0]!==p)||(m=a.match(/[^\d]+$/),m!==null&&(a=a.slice(0,-1),m[0]!==g.thousand&&m[0]!==g.million&&m[0]!==g.billion&&m[0]!==g.trillion))?!1:(v=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(v):d[0].length===1?!!d[0].match(/^\d+$/)&&!d[0].match(v)&&!!d[1].match(/^\d+$/):!!d[0].match(/^\d+.*\d$/)&&!d[0].match(v)&&!!d[1].match(/^\d+$/)))},e.fn=l.prototype={clone:function(){return e(this)},format:function(a,c){var f=this._value,h=a||u.defaultFormat,p,d,g;if(c=c||Math.round,f===0&&u.zeroFormat!==null)d=u.zeroFormat;else if(f===null&&u.nullFormat!==null)d=u.nullFormat;else{for(p in i)if(h.match(i[p].regexps.format)){g=i[p].format;break}g=g||e._.numberToFormat,d=g(f,h,c)}return d},value:function(){return this._value},input:function(){return this._input},set:function(a){return this._value=Number(a),this},add:function(a){var c=r.correctionFactor.call(null,this._value,a);function f(h,p,d,g){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,g){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 g=r.correctionFactor(f,h);return Math.round(f*g)*Math.round(h*g)/Math.round(g*g)}return this._value=r.reduce([this._value,a],c,1),this},divide:function(a){function c(f,h,p,d){var g=r.correctionFactor(f,h);return Math.round(f*g)/Math.round(h*g)}return this._value=r.reduce([this._value,a],c),this},difference:function(a){return Math.abs(e(this._value).subtract(a).value())}},e.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(){e.register("format","bps",{regexps:{format:/(BPS)/,unformat:/(BPS)/},format:function(a,c,f){var h=e._.includes(c," BPS")?" ":"",p;return a=a*1e4,c=c.replace(/\s?BPS/,""),p=e._.numberToFormat(a,c,f),e._.includes(p,")")?(p=p.split(""),p.splice(-1,0,h+"BPS"),p=p.join("")):p=p+h+"BPS",p},unformat:function(a){return+(e._.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)")+")",e.register("format","bytes",{regexps:{format:/([0\s]i?b)/,unformat:new RegExp(h)},format:function(p,d,g){var v,E=e._.includes(d,"ib")?c:a,m=e._.includes(d," b")||e._.includes(d," ib")?" ":"",b,_,w;for(d=d.replace(/\s?i?b/,""),b=0;b<=E.suffixes.length;b++)if(_=Math.pow(E.base,b),w=Math.pow(E.base,b+1),p===null||p===0||p>=_&&p<w){m+=E.suffixes[b],_>0&&(p=p/_);break}return v=e._.numberToFormat(p,d,g),v+m},unformat:function(p){var d=e._.stringToNumber(p),g,v;if(d){for(g=a.suffixes.length-1;g>=0;g--){if(e._.includes(p,a.suffixes[g])){v=Math.pow(a.base,g);break}if(e._.includes(p,c.suffixes[g])){v=Math.pow(c.base,g);break}}d*=v||1}return d}})})(),(function(){e.register("format","currency",{regexps:{format:/(\$)/},format:function(a,c,f){var h=e.locales[e.options.currentLocale],p={before:c.match(/^([\+|\-|\(|\s|\$]*)/)[0],after:c.match(/([\+|\-|\)|\s|\$]*)$/)[0]},d,g,v;for(c=c.replace(/\s?\$\s?/,""),d=e._.numberToFormat(a,c,f),a>=0?(p.before=p.before.replace(/[\-\(]/,""),p.after=p.after.replace(/[\-\)]/,"")):a<0&&!e._.includes(p.before,"-")&&!e._.includes(p.before,"(")&&(p.before="-"+p.before),v=0;v<p.before.length;v++)switch(g=p.before[v],g){case"$":d=e._.insert(d,h.currency.symbol,v);break;case" ":d=e._.insert(d," ",v+h.currency.symbol.length-1);break}for(v=p.after.length-1;v>=0;v--)switch(g=p.after[v],g){case"$":d=v===p.after.length-1?d+h.currency.symbol:e._.insert(d,h.currency.symbol,-(p.after.length-(1+v)));break;case" ":d=v===p.after.length-1?d+" ":e._.insert(d," ",-(p.after.length-(1+v)+h.currency.symbol.length-1));break}return d}})})(),(function(){e.register("format","exponential",{regexps:{format:/(e\+|e-)/,unformat:/(e\+|e-)/},format:function(a,c,f){var h,p=typeof a=="number"&&!e._.isNaN(a)?a.toExponential():"0e+0",d=p.split("e");return c=c.replace(/e[\+|\-]{1}0/,""),h=e._.numberToFormat(Number(d[0]),c,f),h+"e"+d[1]},unformat:function(a){var c=e._.includes(a,"e+")?a.split("e+"):a.split("e-"),f=Number(c[0]),h=Number(c[1]);h=e._.includes(a,"e-")?h*=-1:h;function p(d,g,v,E){var m=e._.correctionFactor(d,g),b=d*m*(g*m)/(m*m);return b}return e._.reduce([f,Math.pow(10,h)],p,1)}})})(),(function(){e.register("format","ordinal",{regexps:{format:/(o)/},format:function(a,c,f){var h=e.locales[e.options.currentLocale],p,d=e._.includes(c," o")?" ":"";return c=c.replace(/\s?o/,""),d+=h.ordinal(a),p=e._.numberToFormat(a,c,f),p+d}})})(),(function(){e.register("format","percentage",{regexps:{format:/(%)/,unformat:/(%)/},format:function(a,c,f){var h=e._.includes(c," %")?" ":"",p;return e.options.scalePercentBy100&&(a=a*100),c=c.replace(/\s?\%/,""),p=e._.numberToFormat(a,c,f),e._.includes(p,")")?(p=p.split(""),p.splice(-1,0,h+"%"),p=p.join("")):p=p+h+"%",p},unformat:function(a){var c=e._.stringToNumber(a);return e.options.scalePercentBy100?c*.01:c}})})(),(function(){e.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)}})})(),e})})(Cg);var Bo={exports:{}};(function(t,e){(function(r,n){t.exports=n()})(oe,(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",g="Invalid Date",v=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,E=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,m={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(I){var B=["th","st","nd","rd"],$=I%100;return"["+I+(B[($-20)%10]||B[$]||B[0])+"]"}},b=function(I,B,$){var H=String(I);return!H||H.length>=B?I:""+Array(B+1-H.length).join($)+I},_={s:b,z:function(I){var B=-I.utcOffset(),$=Math.abs(B),H=Math.floor($/60),F=$%60;return(B<=0?"+":"-")+b(H,2,"0")+":"+b(F,2,"0")},m:function I(B,$){if(B.date()<$.date())return-I($,B);var H=12*($.year()-B.year())+($.month()-B.month()),F=B.clone().add(H,f),q=$-F<0,z=B.clone().add(H+(q?-1:1),f);return+(-(H+($-F)/(q?F-z:z-F))||0)},a:function(I){return I<0?Math.ceil(I)||0:Math.floor(I)},p:function(I){return{M:f,y:p,w:c,d:a,D:d,h:l,m:u,s:o,ms:s,Q:h}[I]||String(I||"").toLowerCase().replace(/s$/,"")},u:function(I){return I===void 0}},w="en",y={};y[w]=m;var T="$isDayjsObject",O=function(I){return I instanceof M||!(!I||!I[T])},L=function I(B,$,H){var F;if(!B)return w;if(typeof B=="string"){var q=B.toLowerCase();y[q]&&(F=q),$&&(y[q]=$,F=q);var z=B.split("-");if(!F&&z.length>1)return I(z[0])}else{var x=B.name;y[x]=B,F=x}return!H&&F&&(w=F),F||!H&&w},S=function(I,B){if(O(I))return I.clone();var $=typeof B=="object"?B:{};return $.date=I,$.args=arguments,new M($)},A=_;A.l=L,A.i=O,A.w=function(I,B){return S(I,{locale:B.$L,utc:B.$u,x:B.$x,$offset:B.$offset})};var M=(function(){function I($){this.$L=L($.locale,null,!0),this.parse($),this.$x=this.$x||$.x||{},this[T]=!0}var B=I.prototype;return B.parse=function($){this.$d=(function(H){var F=H.date,q=H.utc;if(F===null)return new Date(NaN);if(A.u(F))return new Date;if(F instanceof Date)return new Date(F);if(typeof F=="string"&&!/Z$/i.test(F)){var z=F.match(v);if(z){var x=z[2]-1||0,C=(z[7]||"0").substring(0,3);return q?new Date(Date.UTC(z[1],x,z[3]||1,z[4]||0,z[5]||0,z[6]||0,C)):new Date(z[1],x,z[3]||1,z[4]||0,z[5]||0,z[6]||0,C)}}return new Date(F)})($),this.init()},B.init=function(){var $=this.$d;this.$y=$.getFullYear(),this.$M=$.getMonth(),this.$D=$.getDate(),this.$W=$.getDay(),this.$H=$.getHours(),this.$m=$.getMinutes(),this.$s=$.getSeconds(),this.$ms=$.getMilliseconds()},B.$utils=function(){return A},B.isValid=function(){return this.$d.toString()!==g},B.isSame=function($,H){var F=S($);return this.startOf(H)<=F&&F<=this.endOf(H)},B.isAfter=function($,H){return S($)<this.startOf(H)},B.isBefore=function($,H){return this.endOf(H)<S($)},B.$g=function($,H,F){return A.u($)?this[H]:this.set(F,$)},B.unix=function(){return Math.floor(this.valueOf()/1e3)},B.valueOf=function(){return this.$d.getTime()},B.startOf=function($,H){var F=this,q=!!A.u(H)||H,z=A.p($),x=function(Le,ae){var Pe=A.w(F.$u?Date.UTC(F.$y,ae,Le):new Date(F.$y,ae,Le),F);return q?Pe:Pe.endOf(a)},C=function(Le,ae){return A.w(F.toDate()[Le].apply(F.toDate("s"),(q?[0,0,0,0]:[23,59,59,999]).slice(ae)),F)},D=this.$W,N=this.$M,te=this.$D,xe="set"+(this.$u?"UTC":"");switch(z){case p:return q?x(1,0):x(31,11);case f:return q?x(1,N):x(0,N+1);case c:var we=this.$locale().weekStart||0,ft=(D<we?D+7:D)-we;return x(q?te-ft:te+(6-ft),N);case a:case d:return C(xe+"Hours",0);case l:return C(xe+"Minutes",1);case u:return C(xe+"Seconds",2);case o:return C(xe+"Milliseconds",3);default:return this.clone()}},B.endOf=function($){return this.startOf($,!1)},B.$set=function($,H){var F,q=A.p($),z="set"+(this.$u?"UTC":""),x=(F={},F[a]=z+"Date",F[d]=z+"Date",F[f]=z+"Month",F[p]=z+"FullYear",F[l]=z+"Hours",F[u]=z+"Minutes",F[o]=z+"Seconds",F[s]=z+"Milliseconds",F)[q],C=q===a?this.$D+(H-this.$W):H;if(q===f||q===p){var D=this.clone().set(d,1);D.$d[x](C),D.init(),this.$d=D.set(d,Math.min(this.$D,D.daysInMonth())).$d}else x&&this.$d[x](C);return this.init(),this},B.set=function($,H){return this.clone().$set($,H)},B.get=function($){return this[A.p($)]()},B.add=function($,H){var F,q=this;$=Number($);var z=A.p(H),x=function(N){var te=S(q);return A.w(te.date(te.date()+Math.round(N*$)),q)};if(z===f)return this.set(f,this.$M+$);if(z===p)return this.set(p,this.$y+$);if(z===a)return x(1);if(z===c)return x(7);var C=(F={},F[u]=n,F[l]=i,F[o]=r,F)[z]||1,D=this.$d.getTime()+$*C;return A.w(D,this)},B.subtract=function($,H){return this.add(-1*$,H)},B.format=function($){var H=this,F=this.$locale();if(!this.isValid())return F.invalidDate||g;var q=$||"YYYY-MM-DDTHH:mm:ssZ",z=A.z(this),x=this.$H,C=this.$m,D=this.$M,N=F.weekdays,te=F.months,xe=F.meridiem,we=function(ae,Pe,ht,Bt){return ae&&(ae[Pe]||ae(H,q))||ht[Pe].slice(0,Bt)},ft=function(ae){return A.s(x%12||12,ae,"0")},Le=xe||function(ae,Pe,ht){var Bt=ae<12?"AM":"PM";return ht?Bt.toLowerCase():Bt};return q.replace(E,(function(ae,Pe){return Pe||(function(ht){switch(ht){case"YY":return String(H.$y).slice(-2);case"YYYY":return A.s(H.$y,4,"0");case"M":return D+1;case"MM":return A.s(D+1,2,"0");case"MMM":return we(F.monthsShort,D,te,3);case"MMMM":return we(te,D);case"D":return H.$D;case"DD":return A.s(H.$D,2,"0");case"d":return String(H.$W);case"dd":return we(F.weekdaysMin,H.$W,N,2);case"ddd":return we(F.weekdaysShort,H.$W,N,3);case"dddd":return N[H.$W];case"H":return String(x);case"HH":return A.s(x,2,"0");case"h":return ft(1);case"hh":return ft(2);case"a":return Le(x,C,!0);case"A":return Le(x,C,!1);case"m":return String(C);case"mm":return A.s(C,2,"0");case"s":return String(H.$s);case"ss":return A.s(H.$s,2,"0");case"SSS":return A.s(H.$ms,3,"0");case"Z":return z}return null})(ae)||z.replace(":","")}))},B.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},B.diff=function($,H,F){var q,z=this,x=A.p(H),C=S($),D=(C.utcOffset()-this.utcOffset())*n,N=this-C,te=function(){return A.m(z,C)};switch(x){case p:q=te()/12;break;case f:q=te();break;case h:q=te()/3;break;case c:q=(N-D)/6048e5;break;case a:q=(N-D)/864e5;break;case l:q=N/i;break;case u:q=N/n;break;case o:q=N/r;break;default:q=N}return F?q:A.a(q)},B.daysInMonth=function(){return this.endOf(f).$D},B.$locale=function(){return y[this.$L]},B.locale=function($,H){if(!$)return this.$L;var F=this.clone(),q=L($,H,!0);return q&&(F.$L=q),F},B.clone=function(){return A.w(this.$d,this)},B.toDate=function(){return new Date(this.valueOf())},B.toJSON=function(){return this.isValid()?this.toISOString():null},B.toISOString=function(){return this.$d.toISOString()},B.toString=function(){return this.$d.toUTCString()},I})(),j=M.prototype;return S.prototype=j,[["$ms",s],["$s",o],["$m",u],["$H",l],["$W",a],["$M",f],["$y",p],["$D",d]].forEach((function(I){j[I[1]]=function(B){return this.$g(B,I[0],I[1])}})),S.extend=function(I,B){return I.$i||(I(B,M,S),I.$i=!0),S},S.locale=L,S.isDayjs=O,S.unix=function(I){return S(1e3*I)},S.en=y[w],S.Ls=y,S.p={},S}))})(Bo);var Po=Bo.exports;const Bg=Ld(Po);var Pg={exports:{}};(function(t,e){(function(r,n){t.exports=n(Po)})(oe,(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}))})(Pg);Bg.locale("zh-cn");function jg(t=!0){const e="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 t?e.toLowerCase():e.replace(/-/gi,"")}function ir(t=0){return U(this,null,function*(){return new Promise(e=>{setTimeout(e,t)})})}function Ng(t){return[...t.entries()].reduce((e,[r,n])=>(e[r]=n,e),{})}function Ig(t,e){return Array.from(new Set(t))}function Wi(t){return t?[].concat(t):[]}function jr(t,e){const r={};if(Array.isArray(e))Object.keys(t).forEach(n=>{e.includes(n)||(r[n]=t[n])});else{const n=e;Object.entries(t).forEach(([i,s])=>{n(i,s)||(r[i]=s)})}return r}function Mg(t,e){const r={};if(Array.isArray(e))Object.keys(t).forEach(n=>{e.includes(n)&&(r[n]=t[n])});else{const n=e;Object.entries(t).forEach(([i,s])=>{n(i,s)&&(r[i]=s)})}return r}var jo={exports:{}};(function(t){var e=(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={},g="",v="",E="",m=2,b=3,_=2,w=[],y=0,T=0,O;for(O=0;O<l.length;O+=1)if(g=l.charAt(O),Object.prototype.hasOwnProperty.call(p,g)||(p[g]=b++,d[g]=!0),v=E+g,Object.prototype.hasOwnProperty.call(p,v))E=v;else{if(Object.prototype.hasOwnProperty.call(d,E)){if(E.charCodeAt(0)<256){for(f=0;f<_;f++)y=y<<1,T==a-1?(T=0,w.push(c(y)),y=0):T++;for(h=E.charCodeAt(0),f=0;f<8;f++)y=y<<1|h&1,T==a-1?(T=0,w.push(c(y)),y=0):T++,h=h>>1}else{for(h=1,f=0;f<_;f++)y=y<<1|h,T==a-1?(T=0,w.push(c(y)),y=0):T++,h=0;for(h=E.charCodeAt(0),f=0;f<16;f++)y=y<<1|h&1,T==a-1?(T=0,w.push(c(y)),y=0):T++,h=h>>1}m--,m==0&&(m=Math.pow(2,_),_++),delete d[E]}else for(h=p[E],f=0;f<_;f++)y=y<<1|h&1,T==a-1?(T=0,w.push(c(y)),y=0):T++,h=h>>1;m--,m==0&&(m=Math.pow(2,_),_++),p[v]=b++,E=String(g)}if(E!==""){if(Object.prototype.hasOwnProperty.call(d,E)){if(E.charCodeAt(0)<256){for(f=0;f<_;f++)y=y<<1,T==a-1?(T=0,w.push(c(y)),y=0):T++;for(h=E.charCodeAt(0),f=0;f<8;f++)y=y<<1|h&1,T==a-1?(T=0,w.push(c(y)),y=0):T++,h=h>>1}else{for(h=1,f=0;f<_;f++)y=y<<1|h,T==a-1?(T=0,w.push(c(y)),y=0):T++,h=0;for(h=E.charCodeAt(0),f=0;f<16;f++)y=y<<1|h&1,T==a-1?(T=0,w.push(c(y)),y=0):T++,h=h>>1}m--,m==0&&(m=Math.pow(2,_),_++),delete d[E]}else for(h=p[E],f=0;f<_;f++)y=y<<1|h&1,T==a-1?(T=0,w.push(c(y)),y=0):T++,h=h>>1;m--,m==0&&(m=Math.pow(2,_),_++)}for(h=2,f=0;f<_;f++)y=y<<1|h&1,T==a-1?(T=0,w.push(c(y)),y=0):T++,h=h>>1;for(;;)if(y=y<<1,T==a-1){w.push(c(y));break}else T++;return w.join("")},decompress:function(l){return l==null?"":l==""?null:u._decompress(l.length,32768,function(a){return l.charCodeAt(a)})},_decompress:function(l,a,c){var f=[],h=4,p=4,d=3,g="",v=[],E,m,b,_,w,y,T,O={val:c(0),position:a,index:1};for(E=0;E<3;E+=1)f[E]=E;for(b=0,w=Math.pow(2,2),y=1;y!=w;)_=O.val&O.position,O.position>>=1,O.position==0&&(O.position=a,O.val=c(O.index++)),b|=(_>0?1:0)*y,y<<=1;switch(b){case 0:for(b=0,w=Math.pow(2,8),y=1;y!=w;)_=O.val&O.position,O.position>>=1,O.position==0&&(O.position=a,O.val=c(O.index++)),b|=(_>0?1:0)*y,y<<=1;T=r(b);break;case 1:for(b=0,w=Math.pow(2,16),y=1;y!=w;)_=O.val&O.position,O.position>>=1,O.position==0&&(O.position=a,O.val=c(O.index++)),b|=(_>0?1:0)*y,y<<=1;T=r(b);break;case 2:return""}for(f[3]=T,m=T,v.push(T);;){if(O.index>l)return"";for(b=0,w=Math.pow(2,d),y=1;y!=w;)_=O.val&O.position,O.position>>=1,O.position==0&&(O.position=a,O.val=c(O.index++)),b|=(_>0?1:0)*y,y<<=1;switch(T=b){case 0:for(b=0,w=Math.pow(2,8),y=1;y!=w;)_=O.val&O.position,O.position>>=1,O.position==0&&(O.position=a,O.val=c(O.index++)),b|=(_>0?1:0)*y,y<<=1;f[p++]=r(b),T=p-1,h--;break;case 1:for(b=0,w=Math.pow(2,16),y=1;y!=w;)_=O.val&O.position,O.position>>=1,O.position==0&&(O.position=a,O.val=c(O.index++)),b|=(_>0?1:0)*y,y<<=1;f[p++]=r(b),T=p-1,h--;break;case 2:return v.join("")}if(h==0&&(h=Math.pow(2,d),d++),f[T])g=f[T];else if(T===p)g=m+m.charAt(0);else return null;v.push(g),f[p++]=m+g.charAt(0),h--,m=g,h==0&&(h=Math.pow(2,d),d++)}}};return u})();t!=null?t.exports=e:typeof angular!="undefined"&&angular!=null&&angular.module("LZString",[]).factory("LZString",function(){return e})})(jo);var No=jo.exports;function Fg(t){for(var e=[],r=0;r<t.length;){var n=t[r];if(n==="*"||n==="+"||n==="?"){e.push({type:"MODIFIER",index:r,value:t[r++]});continue}if(n==="\\"){e.push({type:"ESCAPED_CHAR",index:r++,value:t[r++]});continue}if(n==="{"){e.push({type:"OPEN",index:r,value:t[r++]});continue}if(n==="}"){e.push({type:"CLOSE",index:r,value:t[r++]});continue}if(n===":"){for(var i="",s=r+1;s<t.length;){var o=t.charCodeAt(s);if(o>=48&&o<=57||o>=65&&o<=90||o>=97&&o<=122||o===95){i+=t[s++];continue}break}if(!i)throw new TypeError("Missing parameter name at ".concat(r));e.push({type:"NAME",index:r,value:i}),r=s;continue}if(n==="("){var u=1,l="",s=r+1;if(t[s]==="?")throw new TypeError('Pattern cannot start with "?" at '.concat(s));for(;s<t.length;){if(t[s]==="\\"){l+=t[s++]+t[s++];continue}if(t[s]===")"){if(u--,u===0){s++;break}}else if(t[s]==="("&&(u++,t[s+1]!=="?"))throw new TypeError("Capturing groups are not allowed at ".concat(s));l+=t[s++]}if(u)throw new TypeError("Unbalanced pattern at ".concat(r));if(!l)throw new TypeError("Missing pattern at ".concat(r));e.push({type:"PATTERN",index:r,value:l}),r=s;continue}e.push({type:"CHAR",index:r,value:t[r++]})}return e.push({type:"END",index:r,value:""}),e}function Io(t,e){e===void 0&&(e={});for(var r=Fg(t),n=e.prefixes,i=n===void 0?"./":n,s="[^".concat(rt(e.delimiter||"/#?"),"]+?"),o=[],u=0,l=0,a="",c=function(y){if(l<r.length&&r[l].type===y)return r[l++].value},f=function(y){var T=c(y);if(T!==void 0)return T;var O=r[l],L=O.type,S=O.index;throw new TypeError("Unexpected ".concat(L," at ").concat(S,", expected ").concat(y))},h=function(){for(var y="",T;T=c("CHAR")||c("ESCAPED_CHAR");)y+=T;return y};l<r.length;){var p=c("CHAR"),d=c("NAME"),g=c("PATTERN");if(d||g){var v=p||"";i.indexOf(v)===-1&&(a+=v,v=""),a&&(o.push(a),a=""),o.push({name:d||u++,prefix:v,suffix:"",pattern:g||s,modifier:c("MODIFIER")||""});continue}var E=p||c("ESCAPED_CHAR");if(E){a+=E;continue}a&&(o.push(a),a="");var m=c("OPEN");if(m){var v=h(),b=c("NAME")||"",_=c("PATTERN")||"",w=h();f("CLOSE"),o.push({name:b||(_?u++:""),pattern:b&&!_?s:_,prefix:v,suffix:w,modifier:c("MODIFIER")||""});continue}f("END")}return o}function Lg(t,e){return Ug(Io(t,e),e)}function Ug(t,e){e===void 0&&(e={});var r=Dn(e),n=e.encode,i=n===void 0?function(l){return l}:n,s=e.validate,o=s===void 0?!0:s,u=t.map(function(l){if(typeof l=="object")return new RegExp("^(?:".concat(l.pattern,")$"),r)});return function(l){for(var a="",c=0;c<t.length;c++){var f=t[c];if(typeof f=="string"){a+=f;continue}var h=l?l[f.name]:void 0,p=f.modifier==="?"||f.modifier==="*",d=f.modifier==="*"||f.modifier==="+";if(Array.isArray(h)){if(!d)throw new TypeError('Expected "'.concat(f.name,'" to not repeat, but got an array'));if(h.length===0){if(p)continue;throw new TypeError('Expected "'.concat(f.name,'" to not be empty'))}for(var g=0;g<h.length;g++){var v=i(h[g],f);if(o&&!u[c].test(v))throw new TypeError('Expected all "'.concat(f.name,'" to match "').concat(f.pattern,'", but got "').concat(v,'"'));a+=f.prefix+v+f.suffix}continue}if(typeof h=="string"||typeof h=="number"){var v=i(String(h),f);if(o&&!u[c].test(v))throw new TypeError('Expected "'.concat(f.name,'" to match "').concat(f.pattern,'", but got "').concat(v,'"'));a+=f.prefix+v+f.suffix;continue}if(!p){var E=d?"an array":"a string";throw new TypeError('Expected "'.concat(f.name,'" to be ').concat(E))}}return a}}function Hg(t,e){var r=[],n=Cn(t,r,e);return Vg(n,r,e)}function Vg(t,e,r){r===void 0&&(r={});var n=r.decode,i=n===void 0?function(s){return s}:n;return function(s){var o=t.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=e[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 rt(t){return t.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function Dn(t){return t&&t.sensitive?"":"i"}function kg(t,e){if(!e)return t;for(var r=/\((?:\?<(.*?)>)?(?!\?)/g,n=0,i=r.exec(t.source);i;)e.push({name:i[1]||n++,prefix:"",suffix:"",modifier:"",pattern:""}),i=r.exec(t.source);return t}function qg(t,e,r){var n=t.map(function(i){return Cn(i,e,r).source});return new RegExp("(?:".concat(n.join("|"),")"),Dn(r))}function zg(t,e,r){return Wg(Io(t,r),e,r)}function Wg(t,e,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(S){return S}:a,f=r.delimiter,h=f===void 0?"/#?":f,p=r.endsWith,d=p===void 0?"":p,g="[".concat(rt(d),"]|$"),v="[".concat(rt(h),"]"),E=o?"^":"",m=0,b=t;m<b.length;m++){var _=b[m];if(typeof _=="string")E+=rt(c(_));else{var w=rt(c(_.prefix)),y=rt(c(_.suffix));if(_.pattern)if(e&&e.push(_),w||y)if(_.modifier==="+"||_.modifier==="*"){var T=_.modifier==="*"?"?":"";E+="(?:".concat(w,"((?:").concat(_.pattern,")(?:").concat(y).concat(w,"(?:").concat(_.pattern,"))*)").concat(y,")").concat(T)}else E+="(?:".concat(w,"(").concat(_.pattern,")").concat(y,")").concat(_.modifier);else _.modifier==="+"||_.modifier==="*"?E+="((?:".concat(_.pattern,")").concat(_.modifier,")"):E+="(".concat(_.pattern,")").concat(_.modifier);else E+="(?:".concat(w).concat(y,")").concat(_.modifier)}}if(l)i||(E+="".concat(v,"?")),E+=r.endsWith?"(?=".concat(g,")"):"$";else{var O=t[t.length-1],L=typeof O=="string"?v.indexOf(O[O.length-1])>-1:O===void 0;i||(E+="(?:".concat(v,"(?=").concat(g,"))?")),L||(E+="(?=".concat(v,"|").concat(g,")"))}return new RegExp(E,Dn(r))}function Cn(t,e,r){return t instanceof RegExp?kg(t,e):Array.isArray(t)?qg(t,e,r):zg(t,e,r)}var Kg=Object.defineProperty,Jg=(t,e,r)=>e in t?Kg(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,dt=(t,e,r)=>(Jg(t,typeof e!="symbol"?e+"":e,r),r);class Gg{constructor(){dt(this,"queue",[]),dt(this,"isProcessing",!1),dt(this,"results",[]),dt(this,"cache",new Map),dt(this,"pendingTasks",new Map)}add(e,r){const n=this.cache.get(e);if(n)return n.status==="fulfilled"?Promise.resolve(n.value):Promise.reject(n.reason);const i=this.pendingTasks.get(e);if(i)return i;const s=new Promise((o,u)=>{this.queue.push({key:e,task:r,resolve:o,reject:u}),this.isProcessing||this.processQueue()});return this.pendingTasks.set(e,s),s}getAllResults(){return[...this.results]}getResult(e){return this.cache.get(e)}clearCacheForKey(e){this.cache.delete(e)}clearAllCache(){this.cache.clear()}processQueue(){return U(this,null,function*(){if(this.queue.length===0){this.isProcessing=!1;return}this.isProcessing=!0;const{key:e,task:r,resolve:n,reject:i}=this.queue.shift();try{const s=this.cache.get(e);if(s){s.status==="fulfilled"?n(s.value):i(s.reason),this.pendingTasks.delete(e),this.processQueue();return}const o=yield r(),u={key:e,status:"fulfilled",value:o};this.results.push(u),this.cache.set(e,u),n(o),this.pendingTasks.delete(e)}catch(s){const o={key:e,status:"rejected",reason:s};this.results.push(o),this.cache.set(e,o),i(s),this.pendingTasks.delete(e)}finally{this.processQueue()}})}}No.compress;No.decompress;/**!
46
46
  * Copyright (c) 2026, VTJ.PRO All rights reserved.
47
47
  * @name @vtj/core
48
48
  * @author CHC chenhuachun1549@dingtalk.com
49
- * @version 0.16.27
49
+ * @version 0.16.28
50
50
  * @license <a href="https://vtj.pro/license.html">MIT License</a>
51
- */const Yg="VueMaterial",Zg="VueRouterMaterial",Qg={[Yg]:["Transition","TransitionGroup","KeepAlive","Teleport","Suspense"],[Zg]:["RouterView","RouterLink"]};let Xg=class{constructor(){k(this,"listeners",[]);k(this,"isReady",!1)}triggerReady(){this.isReady=!0;for(const e of this.listeners)e();this.listeners=[]}ready(e){this.isReady?e():this.listeners.push(e)}resetReady(){this.isReady=!1}};var ev=Object.defineProperty,tv=(r,e,t)=>e in r?ev(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,fe=(r,e,t)=>tv(r,typeof e!="symbol"?e+"":e,t);(function(){if(typeof window>"u"||typeof EventTarget>"u")return;const r=EventTarget.prototype.addEventListener;EventTarget.prototype.addEventListener=function(e,t,n){typeof n!="boolean"&&(n=n||{},n.passive=!1),r.call(this,e,t,n)}})();function Mo(r,e){return function(){return r.apply(e,arguments)}}const{toString:rv}=Object.prototype,{getPrototypeOf:Bn}=Object,{iterator:fr,toStringTag:Fo}=Symbol,hr=(r=>e=>{const t=rv.call(e);return r[t]||(r[t]=t.slice(8,-1).toLowerCase())})(Object.create(null)),_e=r=>(r=r.toLowerCase(),e=>hr(e)===r),pr=r=>e=>typeof e===r,{isArray:lt}=Array,st=pr("undefined");function xt(r){return r!==null&&!st(r)&&r.constructor!==null&&!st(r.constructor)&&ue(r.constructor.isBuffer)&&r.constructor.isBuffer(r)}const Lo=_e("ArrayBuffer");function nv(r){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(r):e=r&&r.buffer&&Lo(r.buffer),e}const iv=pr("string"),ue=pr("function"),Uo=pr("number"),Ot=r=>r!==null&&typeof r=="object",sv=r=>r===!0||r===!1,Jt=r=>{if(hr(r)!=="object")return!1;const e=Bn(r);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Fo in r)&&!(fr in r)},ov=r=>{if(!Ot(r)||xt(r))return!1;try{return Object.keys(r).length===0&&Object.getPrototypeOf(r)===Object.prototype}catch(e){return!1}},av=_e("Date"),uv=_e("File"),cv=r=>!!(r&&typeof r.uri<"u"),lv=r=>r&&typeof r.getParts<"u",fv=_e("Blob"),hv=_e("FileList"),pv=r=>Ot(r)&&ue(r.pipe);function dv(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}const Ki=dv(),Ji=typeof Ki.FormData<"u"?Ki.FormData:void 0,gv=r=>{let e;return r&&(Ji&&r instanceof Ji||ue(r.append)&&((e=hr(r))==="formdata"||e==="object"&&ue(r.toString)&&r.toString()==="[object FormData]"))},vv=_e("URLSearchParams"),[mv,yv,bv,_v]=["ReadableStream","Request","Response","Headers"].map(_e),wv=r=>r.trim?r.trim():r.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function $t(r,e,{allOwnKeys:t=!1}={}){if(r===null||typeof r>"u")return;let n,i;if(typeof r!="object"&&(r=[r]),lt(r))for(n=0,i=r.length;n<i;n++)e.call(null,r[n],n,r);else{if(xt(r))return;const s=t?Object.getOwnPropertyNames(r):Object.keys(r),o=s.length;let u;for(n=0;n<o;n++)u=s[n],e.call(null,r[u],u,r)}}function Ho(r,e){if(xt(r))return null;e=e.toLowerCase();const t=Object.keys(r);let n=t.length,i;for(;n-- >0;)if(i=t[n],e===i.toLowerCase())return i;return null}const ke=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Vo=r=>!st(r)&&r!==ke;function an(){const{caseless:r,skipUndefined:e}=Vo(this)&&this||{},t={},n=(i,s)=>{if(s==="__proto__"||s==="constructor"||s==="prototype")return;const o=r&&Ho(t,s)||s;Jt(t[o])&&Jt(i)?t[o]=an(t[o],i):Jt(i)?t[o]=an({},i):lt(i)?t[o]=i.slice():(!e||!st(i))&&(t[o]=i)};for(let i=0,s=arguments.length;i<s;i++)arguments[i]&&$t(arguments[i],n);return t}const Ev=(r,e,t,{allOwnKeys:n}={})=>($t(e,(i,s)=>{t&&ue(i)?Object.defineProperty(r,s,{value:Mo(i,t),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(r,s,{value:i,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:n}),r),Sv=r=>(r.charCodeAt(0)===65279&&(r=r.slice(1)),r),Tv=(r,e,t,n)=>{r.prototype=Object.create(e.prototype,n),Object.defineProperty(r.prototype,"constructor",{value:r,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(r,"super",{value:e.prototype}),t&&Object.assign(r.prototype,t)},Rv=(r,e,t,n)=>{let i,s,o;const u={};if(e=e||{},r==null)return e;do{for(i=Object.getOwnPropertyNames(r),s=i.length;s-- >0;)o=i[s],(!n||n(o,r,e))&&!u[o]&&(e[o]=r[o],u[o]=!0);r=t!==!1&&Bn(r)}while(r&&(!t||t(r,e))&&r!==Object.prototype);return e},Av=(r,e,t)=>{r=String(r),(t===void 0||t>r.length)&&(t=r.length),t-=e.length;const n=r.indexOf(e,t);return n!==-1&&n===t},xv=r=>{if(!r)return null;if(lt(r))return r;let e=r.length;if(!Uo(e))return null;const t=new Array(e);for(;e-- >0;)t[e]=r[e];return t},Ov=(r=>e=>r&&e instanceof r)(typeof Uint8Array<"u"&&Bn(Uint8Array)),$v=(r,e)=>{const t=(r&&r[fr]).call(r);let n;for(;(n=t.next())&&!n.done;){const i=n.value;e.call(r,i[0],i[1])}},Dv=(r,e)=>{let t;const n=[];for(;(t=r.exec(e))!==null;)n.push(t);return n},Cv=_e("HTMLFormElement"),Bv=r=>r.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,n){return t.toUpperCase()+n}),Gi=(({hasOwnProperty:r})=>(e,t)=>r.call(e,t))(Object.prototype),Pv=_e("RegExp"),ko=(r,e)=>{const t=Object.getOwnPropertyDescriptors(r),n={};$t(t,(i,s)=>{let o;(o=e(i,s,r))!==!1&&(n[s]=o||i)}),Object.defineProperties(r,n)},jv=r=>{ko(r,(e,t)=>{if(ue(r)&&["arguments","caller","callee"].indexOf(t)!==-1)return!1;const n=r[t];if(ue(n)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+t+"'")})}})},Nv=(r,e)=>{const t={},n=i=>{i.forEach(s=>{t[s]=!0})};return lt(r)?n(r):n(String(r).split(e)),t},Iv=()=>{},Mv=(r,e)=>r!=null&&Number.isFinite(r=+r)?r:e;function Fv(r){return!!(r&&ue(r.append)&&r[Fo]==="FormData"&&r[fr])}const Lv=r=>{const e=new Array(10),t=(n,i)=>{if(Ot(n)){if(e.indexOf(n)>=0)return;if(xt(n))return n;if(!("toJSON"in n)){e[i]=n;const s=lt(n)?[]:{};return $t(n,(o,u)=>{const l=t(o,i+1);!st(l)&&(s[u]=l)}),e[i]=void 0,s}}return n};return t(r,0)},Uv=_e("AsyncFunction"),Hv=r=>r&&(Ot(r)||ue(r))&&ue(r.then)&&ue(r.catch),qo=((r,e)=>r?setImmediate:e?((t,n)=>(ke.addEventListener("message",({source:i,data:s})=>{i===ke&&s===t&&n.length&&n.shift()()},!1),i=>{n.push(i),ke.postMessage(t,"*")}))(`axios@${Math.random()}`,[]):t=>setTimeout(t))(typeof setImmediate=="function",ue(ke.postMessage)),Vv=typeof queueMicrotask<"u"?queueMicrotask.bind(ke):typeof process<"u"&&process.nextTick||qo,kv=r=>r!=null&&ue(r[fr]),R={isArray:lt,isArrayBuffer:Lo,isBuffer:xt,isFormData:gv,isArrayBufferView:nv,isString:iv,isNumber:Uo,isBoolean:sv,isObject:Ot,isPlainObject:Jt,isEmptyObject:ov,isReadableStream:mv,isRequest:yv,isResponse:bv,isHeaders:_v,isUndefined:st,isDate:av,isFile:uv,isReactNativeBlob:cv,isReactNative:lv,isBlob:fv,isRegExp:Pv,isFunction:ue,isStream:pv,isURLSearchParams:vv,isTypedArray:Ov,isFileList:hv,forEach:$t,merge:an,extend:Ev,trim:wv,stripBOM:Sv,inherits:Tv,toFlatObject:Rv,kindOf:hr,kindOfTest:_e,endsWith:Av,toArray:xv,forEachEntry:$v,matchAll:Dv,isHTMLForm:Cv,hasOwnProperty:Gi,hasOwnProp:Gi,reduceDescriptors:ko,freezeMethods:jv,toObjectSet:Nv,toCamelCase:Bv,noop:Iv,toFiniteNumber:Mv,findKey:Ho,global:ke,isContextDefined:Vo,isSpecCompliantForm:Fv,toJSONObject:Lv,isAsyncFn:Uv,isThenable:Hv,setImmediate:qo,asap:Vv,isIterable:kv};let W=class zo extends Error{static from(e,t,n,i,s,o){const u=new zo(e.message,t||e.code,n,i,s);return u.cause=e,u.name=e.name,e.status!=null&&u.status==null&&(u.status=e.status),o&&Object.assign(u,o),u}constructor(e,t,n,i,s){super(e),Object.defineProperty(this,"message",{value:e,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,t&&(this.code=t),n&&(this.config=n),i&&(this.request=i),s&&(this.response=s,this.status=s.status)}toJSON(){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}}};W.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";W.ERR_BAD_OPTION="ERR_BAD_OPTION";W.ECONNABORTED="ECONNABORTED";W.ETIMEDOUT="ETIMEDOUT";W.ERR_NETWORK="ERR_NETWORK";W.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";W.ERR_DEPRECATED="ERR_DEPRECATED";W.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";W.ERR_BAD_REQUEST="ERR_BAD_REQUEST";W.ERR_CANCELED="ERR_CANCELED";W.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";W.ERR_INVALID_URL="ERR_INVALID_URL";const qv=null;function un(r){return R.isPlainObject(r)||R.isArray(r)}function Wo(r){return R.endsWith(r,"[]")?r.slice(0,-2):r}function Nr(r,e,t){return r?r.concat(e).map(function(n,i){return n=Wo(n),!t&&i?"["+n+"]":n}).join(t?".":""):e}function zv(r){return R.isArray(r)&&!r.some(un)}const Wv=R.toFlatObject(R,{},null,function(r){return/^is[A-Z]/.test(r)});function dr(r,e,t){if(!R.isObject(r))throw new TypeError("target must be an object");e=e||new FormData,t=R.toFlatObject(t,{metaTokens:!0,dots:!1,indexes:!1},!1,function(p,d){return!R.isUndefined(d[p])});const n=t.metaTokens,i=t.visitor||a,s=t.dots,o=t.indexes,u=(t.Blob||typeof Blob<"u"&&Blob)&&R.isSpecCompliantForm(e);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 W("Blob is not supported. Use a Buffer instead.");return R.isArrayBuffer(p)||R.isTypedArray(p)?u&&typeof Blob=="function"?new Blob([p]):Buffer.from(p):p}function a(p,d,g){let v=p;if(R.isReactNative(e)&&R.isReactNativeBlob(p))return e.append(Nr(g,d,s),l(p)),!1;if(p&&!g&&typeof p=="object"){if(R.endsWith(d,"{}"))d=n?d:d.slice(0,-2),p=JSON.stringify(p);else if(R.isArray(p)&&zv(p)||(R.isFileList(p)||R.endsWith(d,"[]"))&&(v=R.toArray(p)))return d=Wo(d),v.forEach(function(E,m){!(R.isUndefined(E)||E===null)&&e.append(o===!0?Nr([d],m,s):o===null?d:d+"[]",l(E))}),!1}return un(p)?!0:(e.append(Nr(g,d,s),l(p)),!1)}const c=[],f=Object.assign(Wv,{defaultVisitor:a,convertValue:l,isVisitable:un});function h(p,d){if(!R.isUndefined(p)){if(c.indexOf(p)!==-1)throw Error("Circular reference detected in "+d.join("."));c.push(p),R.forEach(p,function(g,v){(!(R.isUndefined(g)||g===null)&&i.call(e,g,R.isString(v)?v.trim():v,d,f))===!0&&h(g,d?d.concat(v):[v])}),c.pop()}}if(!R.isObject(r))throw new TypeError("data must be an object");return h(r),e}function Yi(r){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(r).replace(/[!'()~]|%20|%00/g,function(t){return e[t]})}function Pn(r,e){this._pairs=[],r&&dr(r,this,e)}const Ko=Pn.prototype;Ko.append=function(r,e){this._pairs.push([r,e])};Ko.toString=function(r){const e=r?function(t){return r.call(this,t,Yi)}:Yi;return this._pairs.map(function(t){return e(t[0])+"="+e(t[1])},"").join("&")};function Kv(r){return encodeURIComponent(r).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Jo(r,e,t){if(!e)return r;const n=t&&t.encode||Kv,i=R.isFunction(t)?{serialize:t}:t,s=i&&i.serialize;let o;if(s?o=s(e,i):o=R.isURLSearchParams(e)?e.toString():new Pn(e,i).toString(n),o){const u=r.indexOf("#");u!==-1&&(r=r.slice(0,u)),r+=(r.indexOf("?")===-1?"?":"&")+o}return r}class Zi{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){R.forEach(this.handlers,function(t){t!==null&&e(t)})}}const jn={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},Jv=typeof URLSearchParams<"u"?URLSearchParams:Pn,Gv=typeof FormData<"u"?FormData:null,Yv=typeof Blob<"u"?Blob:null,Zv={isBrowser:!0,classes:{URLSearchParams:Jv,FormData:Gv,Blob:Yv},protocols:["http","https","file","blob","url","data"]},Nn=typeof window<"u"&&typeof document<"u",cn=typeof navigator=="object"&&navigator||void 0,Qv=Nn&&(!cn||["ReactNative","NativeScript","NS"].indexOf(cn.product)<0),Xv=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",em=Nn&&window.location.href||"http://localhost",tm=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Nn,hasStandardBrowserEnv:Qv,hasStandardBrowserWebWorkerEnv:Xv,navigator:cn,origin:em},Symbol.toStringTag,{value:"Module"})),ie=V(V({},tm),Zv);function rm(r,e){return dr(r,new ie.classes.URLSearchParams,V({visitor:function(t,n,i,s){return ie.isNode&&R.isBuffer(t)?(this.append(n,t.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)}},e))}function nm(r){return R.matchAll(/\w+|\[(\w*)]/g,r).map(e=>e[0]==="[]"?"":e[1]||e[0])}function im(r){const e={},t=Object.keys(r);let n;const i=t.length;let s;for(n=0;n<i;n++)s=t[n],e[s]=r[s];return e}function Go(r){function e(t,n,i,s){let o=t[s++];if(o==="__proto__")return!0;const u=Number.isFinite(+o),l=s>=t.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]=[]),e(t,n,i[o],s)&&R.isArray(i[o])&&(i[o]=im(i[o])),!u)}if(R.isFormData(r)&&R.isFunction(r.entries)){const t={};return R.forEachEntry(r,(n,i)=>{e(nm(n),i,t,0)}),t}return null}function sm(r,e,t){if(R.isString(r))try{return(e||JSON.parse)(r),R.trim(r)}catch(n){if(n.name!=="SyntaxError")throw n}return(t||JSON.stringify)(r)}const Dt={transitional:jn,adapter:["xhr","http","fetch"],transformRequest:[function(r,e){const t=e.getContentType()||"",n=t.indexOf("application/json")>-1,i=R.isObject(r);if(i&&R.isHTMLForm(r)&&(r=new FormData(r)),R.isFormData(r))return n?JSON.stringify(Go(r)):r;if(R.isArrayBuffer(r)||R.isBuffer(r)||R.isStream(r)||R.isFile(r)||R.isBlob(r)||R.isReadableStream(r))return r;if(R.isArrayBufferView(r))return r.buffer;if(R.isURLSearchParams(r))return e.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),r.toString();let s;if(i){if(t.indexOf("application/x-www-form-urlencoded")>-1)return rm(r,this.formSerializer).toString();if((s=R.isFileList(r))||t.indexOf("multipart/form-data")>-1){const o=this.env&&this.env.FormData;return dr(s?{"files[]":r}:r,o&&new o,this.formSerializer)}}return i||n?(e.setContentType("application/json",!1),sm(r)):r}],transformResponse:[function(r){const e=this.transitional||Dt.transitional,t=e&&e.forcedJSONParsing,n=this.responseType==="json";if(R.isResponse(r)||R.isReadableStream(r))return r;if(r&&R.isString(r)&&(t&&!this.responseType||n)){const i=!(e&&e.silentJSONParsing)&&n;try{return JSON.parse(r,this.parseReviver)}catch(s){if(i)throw s.name==="SyntaxError"?W.from(s,W.ERR_BAD_RESPONSE,this,null,this.response):s}}return r}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ie.classes.FormData,Blob:ie.classes.Blob},validateStatus:function(r){return r>=200&&r<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};R.forEach(["delete","get","head","post","put","patch"],r=>{Dt.headers[r]={}});const om=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"]),am=r=>{const e={};let t,n,i;return r&&r.split(`
52
- `).forEach(function(s){i=s.indexOf(":"),t=s.substring(0,i).trim().toLowerCase(),n=s.substring(i+1).trim(),!(!t||e[t]&&om[t])&&(t==="set-cookie"?e[t]?e[t].push(n):e[t]=[n]:e[t]=e[t]?e[t]+", "+n:n)}),e},Qi=Symbol("internals");function gt(r){return r&&String(r).trim().toLowerCase()}function Gt(r){return r===!1||r==null?r:R.isArray(r)?r.map(Gt):String(r)}function um(r){const e=Object.create(null),t=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=t.exec(r);)e[n[1]]=n[2];return e}const cm=r=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(r.trim());function Ir(r,e,t,n,i){if(R.isFunction(n))return n.call(this,e,t);if(i&&(e=t),!!R.isString(e)){if(R.isString(n))return e.indexOf(n)!==-1;if(R.isRegExp(n))return n.test(e)}}function lm(r){return r.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n)}function fm(r,e){const t=R.toCamelCase(" "+e);["get","set","has"].forEach(n=>{Object.defineProperty(r,n+t,{value:function(i,s,o){return this[n].call(this,e,i,s,o)},configurable:!0})})}let ce=class{constructor(e){e&&this.set(e)}set(e,t,n){const i=this;function s(u,l,a){const c=gt(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]=Gt(u))}const o=(u,l)=>R.forEach(u,(a,c)=>s(a,c,l));if(R.isPlainObject(e)||e instanceof this.constructor)o(e,t);else if(R.isString(e)&&(e=e.trim())&&!cm(e))o(am(e),t);else if(R.isObject(e)&&R.isIterable(e)){let u={},l,a;for(const c of e){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,t)}else e!=null&&s(t,e,n);return this}get(e,t){if(e=gt(e),e){const n=R.findKey(this,e);if(n){const i=this[n];if(!t)return i;if(t===!0)return um(i);if(R.isFunction(t))return t.call(this,i,n);if(R.isRegExp(t))return t.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=gt(e),e){const n=R.findKey(this,e);return!!(n&&this[n]!==void 0&&(!t||Ir(this,this[n],n,t)))}return!1}delete(e,t){const n=this;let i=!1;function s(o){if(o=gt(o),o){const u=R.findKey(n,o);u&&(!t||Ir(n,n[u],u,t))&&(delete n[u],i=!0)}}return R.isArray(e)?e.forEach(s):s(e),i}clear(e){const t=Object.keys(this);let n=t.length,i=!1;for(;n--;){const s=t[n];(!e||Ir(this,this[s],s,e,!0))&&(delete this[s],i=!0)}return i}normalize(e){const t=this,n={};return R.forEach(this,(i,s)=>{const o=R.findKey(n,s);if(o){t[o]=Gt(i),delete t[s];return}const u=e?lm(s):String(s).trim();u!==s&&delete t[s],t[u]=Gt(i),n[u]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return R.forEach(this,(n,i)=>{n!=null&&n!==!1&&(t[i]=e&&R.isArray(n)?n.join(", "):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join(`
53
- `)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach(i=>n.set(i)),n}static accessor(e){const t=(this[Qi]=this[Qi]={accessors:{}}).accessors,n=this.prototype;function i(s){const o=gt(s);t[o]||(fm(n,s),t[o]=!0)}return R.isArray(e)?e.forEach(i):i(e),this}};ce.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);R.reduceDescriptors(ce.prototype,({value:r},e)=>{let t=e[0].toUpperCase()+e.slice(1);return{get:()=>r,set(n){this[t]=n}}});R.freezeMethods(ce);function Mr(r,e){const t=this||Dt,n=e||t,i=ce.from(n.headers);let s=n.data;return R.forEach(r,function(o){s=o.call(t,s,i.normalize(),e?e.status:void 0)}),i.normalize(),s}function Yo(r){return!!(r&&r.__CANCEL__)}let Ct=class extends W{constructor(e,t,n){super(e!=null?e:"canceled",W.ERR_CANCELED,t,n),this.name="CanceledError",this.__CANCEL__=!0}};function Zo(r,e,t){const n=t.config.validateStatus;!t.status||!n||n(t.status)?r(t):e(new W("Request failed with status code "+t.status,[W.ERR_BAD_REQUEST,W.ERR_BAD_RESPONSE][Math.floor(t.status/100)-4],t.config,t.request,t))}function hm(r){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(r);return e&&e[1]||""}function pm(r,e){r=r||10;const t=new Array(r),n=new Array(r);let i=0,s=0,o;return e=e!==void 0?e:1e3,function(u){const l=Date.now(),a=n[s];o||(o=l),t[i]=u,n[i]=l;let c=s,f=0;for(;c!==i;)f+=t[c++],c=c%r;if(i=(i+1)%r,i===s&&(s=(s+1)%r),l-o<e)return;const h=a&&l-a;return h?Math.round(f*1e3/h):void 0}}function dm(r,e){let t=0,n=1e3/e,i,s;const o=(u,l=Date.now())=>{t=l,i=null,s&&(clearTimeout(s),s=null),r(...u)};return[(...u)=>{const l=Date.now(),a=l-t;a>=n?o(u,l):(i=u,s||(s=setTimeout(()=>{s=null,o(i)},n-a)))},()=>i&&o(i)]}const sr=(r,e,t=3)=>{let n=0;const i=pm(50,250);return dm(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,[e?"download":"upload"]:!0};r(f)},t)},Xi=(r,e)=>{const t=r!=null;return[n=>e[0]({lengthComputable:t,total:r,loaded:n}),e[1]]},es=r=>(...e)=>R.asap(()=>r(...e)),gm=ie.hasStandardBrowserEnv?((r,e)=>t=>(t=new URL(t,ie.origin),r.protocol===t.protocol&&r.host===t.host&&(e||r.port===t.port)))(new URL(ie.origin),ie.navigator&&/(msie|trident)/i.test(ie.navigator.userAgent)):()=>!0,vm=ie.hasStandardBrowserEnv?{write(r,e,t,n,i,s,o){if(typeof document>"u")return;const u=[`${r}=${encodeURIComponent(e)}`];R.isNumber(t)&&u.push(`expires=${new Date(t).toUTCString()}`),R.isString(n)&&u.push(`path=${n}`),R.isString(i)&&u.push(`domain=${i}`),s===!0&&u.push("secure"),R.isString(o)&&u.push(`SameSite=${o}`),document.cookie=u.join("; ")},read(r){if(typeof document>"u")return null;const e=document.cookie.match(new RegExp("(?:^|; )"+r+"=([^;]*)"));return e?decodeURIComponent(e[1]):null},remove(r){this.write(r,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function mm(r){return typeof r!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(r)}function ym(r,e){return e?r.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):r}function Qo(r,e,t){let n=!mm(e);return r&&(n||t==!1)?ym(r,e):e}const ts=r=>r instanceof ce?V({},r):r;function Ke(r,e){e=e||{};const t={};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 e)return n(a,c);if(f in r)return n(void 0,a)}const l={url:s,method:s,data:s,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:u,headers:(a,c,f)=>i(ts(a),ts(c),f,!0)};return R.forEach(Object.keys(V(V({},r),e)),function(a){if(a==="__proto__"||a==="constructor"||a==="prototype")return;const c=R.hasOwnProp(l,a)?l[a]:i,f=c(r[a],e[a],a);R.isUndefined(f)&&c!==u||(t[a]=f)}),t}const Xo=r=>{const e=Ke({},r);let{data:t,withXSRFToken:n,xsrfHeaderName:i,xsrfCookieName:s,headers:o,auth:u}=e;if(e.headers=o=ce.from(o),e.url=Jo(Qo(e.baseURL,e.url,e.allowAbsoluteUrls),r.params,r.paramsSerializer),u&&o.set("Authorization","Basic "+btoa((u.username||"")+":"+(u.password?unescape(encodeURIComponent(u.password)):""))),R.isFormData(t)){if(ie.hasStandardBrowserEnv||ie.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if(R.isFunction(t.getHeaders)){const l=t.getHeaders(),a=["content-type","content-length"];Object.entries(l).forEach(([c,f])=>{a.includes(c.toLowerCase())&&o.set(c,f)})}}if(ie.hasStandardBrowserEnv&&(n&&R.isFunction(n)&&(n=n(e)),n||n!==!1&&gm(e.url))){const l=i&&s&&vm.read(s);l&&o.set(i,l)}return e},bm=typeof XMLHttpRequest<"u",_m=bm&&function(r){return new Promise(function(e,t){const n=Xo(r);let i=n.data;const s=ce.from(n.headers).normalize();let{responseType:o,onUploadProgress:u,onDownloadProgress:l}=n,a,c,f,h,p;function d(){h&&h(),p&&p(),n.cancelToken&&n.cancelToken.unsubscribe(a),n.signal&&n.signal.removeEventListener("abort",a)}let g=new XMLHttpRequest;g.open(n.method.toUpperCase(),n.url,!0),g.timeout=n.timeout;function v(){if(!g)return;const m=ce.from("getAllResponseHeaders"in g&&g.getAllResponseHeaders()),b={data:!o||o==="text"||o==="json"?g.responseText:g.response,status:g.status,statusText:g.statusText,headers:m,config:r,request:g};Zo(function(_){e(_),d()},function(_){t(_),d()},b),g=null}"onloadend"in g?g.onloadend=v:g.onreadystatechange=function(){!g||g.readyState!==4||g.status===0&&!(g.responseURL&&g.responseURL.indexOf("file:")===0)||setTimeout(v)},g.onabort=function(){g&&(t(new W("Request aborted",W.ECONNABORTED,r,g)),g=null)},g.onerror=function(m){const b=m&&m.message?m.message:"Network Error",_=new W(b,W.ERR_NETWORK,r,g);_.event=m||null,t(_),g=null},g.ontimeout=function(){let m=n.timeout?"timeout of "+n.timeout+"ms exceeded":"timeout exceeded";const b=n.transitional||jn;n.timeoutErrorMessage&&(m=n.timeoutErrorMessage),t(new W(m,b.clarifyTimeoutError?W.ETIMEDOUT:W.ECONNABORTED,r,g)),g=null},i===void 0&&s.setContentType(null),"setRequestHeader"in g&&R.forEach(s.toJSON(),function(m,b){g.setRequestHeader(b,m)}),R.isUndefined(n.withCredentials)||(g.withCredentials=!!n.withCredentials),o&&o!=="json"&&(g.responseType=n.responseType),l&&([f,p]=sr(l,!0),g.addEventListener("progress",f)),u&&g.upload&&([c,h]=sr(u),g.upload.addEventListener("progress",c),g.upload.addEventListener("loadend",h)),(n.cancelToken||n.signal)&&(a=m=>{g&&(t(!m||m.type?new Ct(null,r,g):m),g.abort(),g=null)},n.cancelToken&&n.cancelToken.subscribe(a),n.signal&&(n.signal.aborted?a():n.signal.addEventListener("abort",a)));const E=hm(n.url);if(E&&ie.protocols.indexOf(E)===-1){t(new W("Unsupported protocol "+E+":",W.ERR_BAD_REQUEST,r));return}g.send(i||null)})},wm=(r,e)=>{const{length:t}=r=r?r.filter(Boolean):[];if(e||t){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 W?c:new Ct(c instanceof Error?c.message:c))}};let o=e&&setTimeout(()=>{o=null,s(new W(`timeout of ${e}ms exceeded`,W.ETIMEDOUT))},e);const u=()=>{r&&(o&&clearTimeout(o),o=null,r.forEach(a=>{a.unsubscribe?a.unsubscribe(s):a.removeEventListener("abort",s)}),r=null)};r.forEach(a=>a.addEventListener("abort",s));const{signal:l}=n;return l.unsubscribe=()=>R.asap(u),l}},Em=function*(r,e){let t=r.byteLength;if(t<e){yield r;return}let n=0,i;for(;n<t;)i=n+e,yield r.slice(n,i),n=i},Sm=function(r,e){return _r(this,null,function*(){try{for(var t=Un(Tm(r)),n,i,s;n=!(i=yield new Ue(t.next())).done;n=!1){const o=i.value;yield*wr(Em(o,e))}}catch(i){s=[i]}finally{try{n&&(i=t.return)&&(yield new Ue(i.call(t)))}finally{if(s)throw s[0]}}})},Tm=function(r){return _r(this,null,function*(){if(r[Symbol.asyncIterator]){yield*wr(r);return}const e=r.getReader();try{for(;;){const{done:t,value:n}=yield new Ue(e.read());if(t)break;yield n}}finally{yield new Ue(e.cancel())}})},rs=(r,e,t,n)=>{const i=Sm(r,e);let s=0,o,u=a=>{o||(o=!0,n&&n(a))};return new ReadableStream({pull(a){return U(this,null,function*(){try{const{done:c,value:f}=yield i.next();if(c){u(),a.close();return}let h=f.byteLength;if(t){let p=s+=h;t(p)}a.enqueue(new Uint8Array(f))}catch(c){throw u(c),c}})},cancel(a){return u(a),i.return()}},{highWaterMark:2})},ns=64*1024,{isFunction:Ht}=R,Rm=(({Request:r,Response:e})=>({Request:r,Response:e}))(R.global),{ReadableStream:is,TextEncoder:ss}=R.global,os=(r,...e)=>{try{return!!r(...e)}catch(t){return!1}},Am=r=>{r=R.merge.call({skipUndefined:!0},Rm,r);const{fetch:e,Request:t,Response:n}=r,i=e?Ht(e):typeof fetch=="function",s=Ht(t),o=Ht(n);if(!i)return!1;const u=i&&Ht(is),l=i&&(typeof ss=="function"?(d=>g=>d.encode(g))(new ss):d=>U(null,null,function*(){return new Uint8Array(yield new t(d).arrayBuffer())})),a=s&&u&&os(()=>{let d=!1;const g=new t(ie.origin,{body:new is,method:"POST",get duplex(){return d=!0,"half"}}).headers.has("Content-Type");return d&&!g}),c=o&&u&&os(()=>R.isReadableStream(new n("").body)),f={stream:c&&(d=>d.body)};i&&["text","arrayBuffer","blob","formData","stream"].forEach(d=>{!f[d]&&(f[d]=(g,v)=>{let E=g&&g[d];if(E)return E.call(g);throw new W(`Response type '${d}' is not supported`,W.ERR_NOT_SUPPORT,v)})});const h=d=>U(null,null,function*(){if(d==null)return 0;if(R.isBlob(d))return d.size;if(R.isSpecCompliantForm(d))return(yield new t(ie.origin,{method:"POST",body:d}).arrayBuffer()).byteLength;if(R.isArrayBufferView(d)||R.isArrayBuffer(d))return d.byteLength;if(R.isURLSearchParams(d)&&(d=d+""),R.isString(d))return(yield l(d)).byteLength}),p=(d,g)=>U(null,null,function*(){const v=R.toFiniteNumber(d.getContentLength());return v!=null?v:h(g)});return d=>U(null,null,function*(){let{url:g,method:v,data:E,signal:m,cancelToken:b,timeout:_,onDownloadProgress:w,onUploadProgress:y,responseType:T,headers:O,withCredentials:L="same-origin",fetchOptions:S}=Xo(d),A=e||fetch;T=T?(T+"").toLowerCase():"text";let M=wm([m,b&&b.toAbortSignal()],_),j=null;const I=M&&M.unsubscribe&&(()=>{M.unsubscribe()});let B;try{if(y&&a&&v!=="get"&&v!=="head"&&(B=yield p(O,E))!==0){let x=new t(g,{method:"POST",body:E,duplex:"half"}),C;if(R.isFormData(E)&&(C=x.headers.get("content-type"))&&O.setContentType(C),x.body){const[D,N]=Xi(B,sr(es(y)));E=rs(x.body,ns,D,N)}}R.isString(L)||(L=L?"include":"omit");const $=s&&"credentials"in t.prototype,H=re(V({},S),{signal:M,method:v.toUpperCase(),headers:O.normalize().toJSON(),body:E,duplex:"half",credentials:$?L:void 0});j=s&&new t(g,H);let F=yield s?A(j,S):A(g,H);const q=c&&(T==="stream"||T==="response");if(c&&(w||q&&I)){const x={};["status","statusText","headers"].forEach(te=>{x[te]=F[te]});const C=R.toFiniteNumber(F.headers.get("content-length")),[D,N]=w&&Xi(C,sr(es(w),!0))||[];F=new n(rs(F.body,ns,D,()=>{N&&N(),I&&I()}),x)}T=T||"text";let z=yield f[R.findKey(f,T)||"text"](F,d);return!q&&I&&I(),yield new Promise((x,C)=>{Zo(x,C,{data:z,headers:ce.from(F.headers),status:F.status,statusText:F.statusText,config:d,request:j})})}catch($){throw I&&I(),$&&$.name==="TypeError"&&/Load failed|fetch/i.test($.message)?Object.assign(new W("Network Error",W.ERR_NETWORK,d,j,$&&$.response),{cause:$.cause||$}):W.from($,$&&$.code,d,j,$&&$.response)}})},xm=new Map,ea=r=>{let e=r&&r.env||{};const{fetch:t,Request:n,Response:i}=e,s=[n,i,t];let o=s.length,u=o,l,a,c=xm;for(;u--;)l=s[u],a=c.get(l),a===void 0&&c.set(l,a=u?new Map:Am(e)),c=a;return a};ea();const In={http:qv,xhr:_m,fetch:{get:ea}};R.forEach(In,(r,e)=>{if(r){try{Object.defineProperty(r,"name",{value:e})}catch(t){}Object.defineProperty(r,"adapterName",{value:e})}});const as=r=>`- ${r}`,Om=r=>R.isFunction(r)||r===null||r===!1;function $m(r,e){r=R.isArray(r)?r:[r];const{length:t}=r;let n,i;const s={};for(let o=0;o<t;o++){n=r[o];let u;if(i=n,!Om(n)&&(i=In[(u=String(n)).toLowerCase()],i===void 0))throw new W(`Unknown adapter '${u}'`);if(i&&(R.isFunction(i)||(i=i.get(e))))break;s[u||"#"+o]=i}if(!i){const o=Object.entries(s).map(([l,a])=>`adapter ${l} `+(a===!1?"is not supported by the environment":"is not available in the build"));let u=t?o.length>1?`since :
51
+ */const Yg="VueMaterial",Zg="VueRouterMaterial",Qg={[Yg]:["Transition","TransitionGroup","KeepAlive","Teleport","Suspense"],[Zg]:["RouterView","RouterLink"]};let Xg=class{constructor(){k(this,"listeners",[]);k(this,"isReady",!1)}triggerReady(){this.isReady=!0;for(const e of this.listeners)e();this.listeners=[]}ready(e){this.isReady?e():this.listeners.push(e)}resetReady(){this.isReady=!1}};var ev=Object.defineProperty,tv=(t,e,r)=>e in t?ev(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,fe=(t,e,r)=>tv(t,typeof e!="symbol"?e+"":e,r);(function(){if(typeof window>"u"||typeof EventTarget>"u")return;const t=EventTarget.prototype.addEventListener;EventTarget.prototype.addEventListener=function(e,r,n){typeof n!="boolean"&&(n=n||{},n.passive=!1),t.call(this,e,r,n)}})();function Mo(t,e){return function(){return t.apply(e,arguments)}}const{toString:rv}=Object.prototype,{getPrototypeOf:Bn}=Object,{iterator:fr,toStringTag:Fo}=Symbol,hr=(t=>e=>{const r=rv.call(e);return t[r]||(t[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),_e=t=>(t=t.toLowerCase(),e=>hr(e)===t),pr=t=>e=>typeof e===t,{isArray:lt}=Array,st=pr("undefined");function xt(t){return t!==null&&!st(t)&&t.constructor!==null&&!st(t.constructor)&&ue(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const Lo=_e("ArrayBuffer");function nv(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&Lo(t.buffer),e}const iv=pr("string"),ue=pr("function"),Uo=pr("number"),Ot=t=>t!==null&&typeof t=="object",sv=t=>t===!0||t===!1,Jt=t=>{if(hr(t)!=="object")return!1;const e=Bn(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Fo in t)&&!(fr in t)},ov=t=>{if(!Ot(t)||xt(t))return!1;try{return Object.keys(t).length===0&&Object.getPrototypeOf(t)===Object.prototype}catch(e){return!1}},av=_e("Date"),uv=_e("File"),cv=t=>!!(t&&typeof t.uri<"u"),lv=t=>t&&typeof t.getParts<"u",fv=_e("Blob"),hv=_e("FileList"),pv=t=>Ot(t)&&ue(t.pipe);function dv(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}const Ki=dv(),Ji=typeof Ki.FormData<"u"?Ki.FormData:void 0,gv=t=>{let e;return t&&(Ji&&t instanceof Ji||ue(t.append)&&((e=hr(t))==="formdata"||e==="object"&&ue(t.toString)&&t.toString()==="[object FormData]"))},vv=_e("URLSearchParams"),[mv,yv,bv,_v]=["ReadableStream","Request","Response","Headers"].map(_e),wv=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function $t(t,e,{allOwnKeys:r=!1}={}){if(t===null||typeof t>"u")return;let n,i;if(typeof t!="object"&&(t=[t]),lt(t))for(n=0,i=t.length;n<i;n++)e.call(null,t[n],n,t);else{if(xt(t))return;const s=r?Object.getOwnPropertyNames(t):Object.keys(t),o=s.length;let u;for(n=0;n<o;n++)u=s[n],e.call(null,t[u],u,t)}}function Ho(t,e){if(xt(t))return null;e=e.toLowerCase();const r=Object.keys(t);let n=r.length,i;for(;n-- >0;)if(i=r[n],e===i.toLowerCase())return i;return null}const ke=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Vo=t=>!st(t)&&t!==ke;function an(){const{caseless:t,skipUndefined:e}=Vo(this)&&this||{},r={},n=(i,s)=>{if(s==="__proto__"||s==="constructor"||s==="prototype")return;const o=t&&Ho(r,s)||s;Jt(r[o])&&Jt(i)?r[o]=an(r[o],i):Jt(i)?r[o]=an({},i):lt(i)?r[o]=i.slice():(!e||!st(i))&&(r[o]=i)};for(let i=0,s=arguments.length;i<s;i++)arguments[i]&&$t(arguments[i],n);return r}const Ev=(t,e,r,{allOwnKeys:n}={})=>($t(e,(i,s)=>{r&&ue(i)?Object.defineProperty(t,s,{value:Mo(i,r),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(t,s,{value:i,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:n}),t),Sv=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),Tv=(t,e,r,n)=>{t.prototype=Object.create(e.prototype,n),Object.defineProperty(t.prototype,"constructor",{value:t,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(t,"super",{value:e.prototype}),r&&Object.assign(t.prototype,r)},Rv=(t,e,r,n)=>{let i,s,o;const u={};if(e=e||{},t==null)return e;do{for(i=Object.getOwnPropertyNames(t),s=i.length;s-- >0;)o=i[s],(!n||n(o,t,e))&&!u[o]&&(e[o]=t[o],u[o]=!0);t=r!==!1&&Bn(t)}while(t&&(!r||r(t,e))&&t!==Object.prototype);return e},Av=(t,e,r)=>{t=String(t),(r===void 0||r>t.length)&&(r=t.length),r-=e.length;const n=t.indexOf(e,r);return n!==-1&&n===r},xv=t=>{if(!t)return null;if(lt(t))return t;let e=t.length;if(!Uo(e))return null;const r=new Array(e);for(;e-- >0;)r[e]=t[e];return r},Ov=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&Bn(Uint8Array)),$v=(t,e)=>{const r=(t&&t[fr]).call(t);let n;for(;(n=r.next())&&!n.done;){const i=n.value;e.call(t,i[0],i[1])}},Dv=(t,e)=>{let r;const n=[];for(;(r=t.exec(e))!==null;)n.push(r);return n},Cv=_e("HTMLFormElement"),Bv=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,r,n){return r.toUpperCase()+n}),Gi=(({hasOwnProperty:t})=>(e,r)=>t.call(e,r))(Object.prototype),Pv=_e("RegExp"),ko=(t,e)=>{const r=Object.getOwnPropertyDescriptors(t),n={};$t(r,(i,s)=>{let o;(o=e(i,s,t))!==!1&&(n[s]=o||i)}),Object.defineProperties(t,n)},jv=t=>{ko(t,(e,r)=>{if(ue(t)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=t[r];if(ue(n)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},Nv=(t,e)=>{const r={},n=i=>{i.forEach(s=>{r[s]=!0})};return lt(t)?n(t):n(String(t).split(e)),r},Iv=()=>{},Mv=(t,e)=>t!=null&&Number.isFinite(t=+t)?t:e;function Fv(t){return!!(t&&ue(t.append)&&t[Fo]==="FormData"&&t[fr])}const Lv=t=>{const e=new Array(10),r=(n,i)=>{if(Ot(n)){if(e.indexOf(n)>=0)return;if(xt(n))return n;if(!("toJSON"in n)){e[i]=n;const s=lt(n)?[]:{};return $t(n,(o,u)=>{const l=r(o,i+1);!st(l)&&(s[u]=l)}),e[i]=void 0,s}}return n};return r(t,0)},Uv=_e("AsyncFunction"),Hv=t=>t&&(Ot(t)||ue(t))&&ue(t.then)&&ue(t.catch),qo=((t,e)=>t?setImmediate:e?((r,n)=>(ke.addEventListener("message",({source:i,data:s})=>{i===ke&&s===r&&n.length&&n.shift()()},!1),i=>{n.push(i),ke.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",ue(ke.postMessage)),Vv=typeof queueMicrotask<"u"?queueMicrotask.bind(ke):typeof process<"u"&&process.nextTick||qo,kv=t=>t!=null&&ue(t[fr]),R={isArray:lt,isArrayBuffer:Lo,isBuffer:xt,isFormData:gv,isArrayBufferView:nv,isString:iv,isNumber:Uo,isBoolean:sv,isObject:Ot,isPlainObject:Jt,isEmptyObject:ov,isReadableStream:mv,isRequest:yv,isResponse:bv,isHeaders:_v,isUndefined:st,isDate:av,isFile:uv,isReactNativeBlob:cv,isReactNative:lv,isBlob:fv,isRegExp:Pv,isFunction:ue,isStream:pv,isURLSearchParams:vv,isTypedArray:Ov,isFileList:hv,forEach:$t,merge:an,extend:Ev,trim:wv,stripBOM:Sv,inherits:Tv,toFlatObject:Rv,kindOf:hr,kindOfTest:_e,endsWith:Av,toArray:xv,forEachEntry:$v,matchAll:Dv,isHTMLForm:Cv,hasOwnProperty:Gi,hasOwnProp:Gi,reduceDescriptors:ko,freezeMethods:jv,toObjectSet:Nv,toCamelCase:Bv,noop:Iv,toFiniteNumber:Mv,findKey:Ho,global:ke,isContextDefined:Vo,isSpecCompliantForm:Fv,toJSONObject:Lv,isAsyncFn:Uv,isThenable:Hv,setImmediate:qo,asap:Vv,isIterable:kv};let W=class zo extends Error{static from(e,r,n,i,s,o){const u=new zo(e.message,r||e.code,n,i,s);return u.cause=e,u.name=e.name,e.status!=null&&u.status==null&&(u.status=e.status),o&&Object.assign(u,o),u}constructor(e,r,n,i,s){super(e),Object.defineProperty(this,"message",{value:e,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,r&&(this.code=r),n&&(this.config=n),i&&(this.request=i),s&&(this.response=s,this.status=s.status)}toJSON(){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}}};W.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";W.ERR_BAD_OPTION="ERR_BAD_OPTION";W.ECONNABORTED="ECONNABORTED";W.ETIMEDOUT="ETIMEDOUT";W.ERR_NETWORK="ERR_NETWORK";W.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";W.ERR_DEPRECATED="ERR_DEPRECATED";W.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";W.ERR_BAD_REQUEST="ERR_BAD_REQUEST";W.ERR_CANCELED="ERR_CANCELED";W.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";W.ERR_INVALID_URL="ERR_INVALID_URL";const qv=null;function un(t){return R.isPlainObject(t)||R.isArray(t)}function Wo(t){return R.endsWith(t,"[]")?t.slice(0,-2):t}function Nr(t,e,r){return t?t.concat(e).map(function(n,i){return n=Wo(n),!r&&i?"["+n+"]":n}).join(r?".":""):e}function zv(t){return R.isArray(t)&&!t.some(un)}const Wv=R.toFlatObject(R,{},null,function(t){return/^is[A-Z]/.test(t)});function dr(t,e,r){if(!R.isObject(t))throw new TypeError("target must be an object");e=e||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(e);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 W("Blob is not supported. Use a Buffer instead.");return R.isArrayBuffer(p)||R.isTypedArray(p)?u&&typeof Blob=="function"?new Blob([p]):Buffer.from(p):p}function a(p,d,g){let v=p;if(R.isReactNative(e)&&R.isReactNativeBlob(p))return e.append(Nr(g,d,s),l(p)),!1;if(p&&!g&&typeof p=="object"){if(R.endsWith(d,"{}"))d=n?d:d.slice(0,-2),p=JSON.stringify(p);else if(R.isArray(p)&&zv(p)||(R.isFileList(p)||R.endsWith(d,"[]"))&&(v=R.toArray(p)))return d=Wo(d),v.forEach(function(E,m){!(R.isUndefined(E)||E===null)&&e.append(o===!0?Nr([d],m,s):o===null?d:d+"[]",l(E))}),!1}return un(p)?!0:(e.append(Nr(g,d,s),l(p)),!1)}const c=[],f=Object.assign(Wv,{defaultVisitor:a,convertValue:l,isVisitable:un});function h(p,d){if(!R.isUndefined(p)){if(c.indexOf(p)!==-1)throw Error("Circular reference detected in "+d.join("."));c.push(p),R.forEach(p,function(g,v){(!(R.isUndefined(g)||g===null)&&i.call(e,g,R.isString(v)?v.trim():v,d,f))===!0&&h(g,d?d.concat(v):[v])}),c.pop()}}if(!R.isObject(t))throw new TypeError("data must be an object");return h(t),e}function Yi(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(r){return e[r]})}function Pn(t,e){this._pairs=[],t&&dr(t,this,e)}const Ko=Pn.prototype;Ko.append=function(t,e){this._pairs.push([t,e])};Ko.toString=function(t){const e=t?function(r){return t.call(this,r,Yi)}:Yi;return this._pairs.map(function(r){return e(r[0])+"="+e(r[1])},"").join("&")};function Kv(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Jo(t,e,r){if(!e)return t;const n=r&&r.encode||Kv,i=R.isFunction(r)?{serialize:r}:r,s=i&&i.serialize;let o;if(s?o=s(e,i):o=R.isURLSearchParams(e)?e.toString():new Pn(e,i).toString(n),o){const u=t.indexOf("#");u!==-1&&(t=t.slice(0,u)),t+=(t.indexOf("?")===-1?"?":"&")+o}return t}class Zi{constructor(){this.handlers=[]}use(e,r,n){return this.handlers.push({fulfilled:e,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){R.forEach(this.handlers,function(r){r!==null&&e(r)})}}const jn={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},Jv=typeof URLSearchParams<"u"?URLSearchParams:Pn,Gv=typeof FormData<"u"?FormData:null,Yv=typeof Blob<"u"?Blob:null,Zv={isBrowser:!0,classes:{URLSearchParams:Jv,FormData:Gv,Blob:Yv},protocols:["http","https","file","blob","url","data"]},Nn=typeof window<"u"&&typeof document<"u",cn=typeof navigator=="object"&&navigator||void 0,Qv=Nn&&(!cn||["ReactNative","NativeScript","NS"].indexOf(cn.product)<0),Xv=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",em=Nn&&window.location.href||"http://localhost",tm=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Nn,hasStandardBrowserEnv:Qv,hasStandardBrowserWebWorkerEnv:Xv,navigator:cn,origin:em},Symbol.toStringTag,{value:"Module"})),ie=V(V({},tm),Zv);function rm(t,e){return dr(t,new ie.classes.URLSearchParams,V({visitor:function(r,n,i,s){return ie.isNode&&R.isBuffer(r)?(this.append(n,r.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)}},e))}function nm(t){return R.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function im(t){const e={},r=Object.keys(t);let n;const i=r.length;let s;for(n=0;n<i;n++)s=r[n],e[s]=t[s];return e}function Go(t){function e(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]=[]),e(r,n,i[o],s)&&R.isArray(i[o])&&(i[o]=im(i[o])),!u)}if(R.isFormData(t)&&R.isFunction(t.entries)){const r={};return R.forEachEntry(t,(n,i)=>{e(nm(n),i,r,0)}),r}return null}function sm(t,e,r){if(R.isString(t))try{return(e||JSON.parse)(t),R.trim(t)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(t)}const Dt={transitional:jn,adapter:["xhr","http","fetch"],transformRequest:[function(t,e){const r=e.getContentType()||"",n=r.indexOf("application/json")>-1,i=R.isObject(t);if(i&&R.isHTMLForm(t)&&(t=new FormData(t)),R.isFormData(t))return n?JSON.stringify(Go(t)):t;if(R.isArrayBuffer(t)||R.isBuffer(t)||R.isStream(t)||R.isFile(t)||R.isBlob(t)||R.isReadableStream(t))return t;if(R.isArrayBufferView(t))return t.buffer;if(R.isURLSearchParams(t))return e.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return rm(t,this.formSerializer).toString();if((s=R.isFileList(t))||r.indexOf("multipart/form-data")>-1){const o=this.env&&this.env.FormData;return dr(s?{"files[]":t}:t,o&&new o,this.formSerializer)}}return i||n?(e.setContentType("application/json",!1),sm(t)):t}],transformResponse:[function(t){const e=this.transitional||Dt.transitional,r=e&&e.forcedJSONParsing,n=this.responseType==="json";if(R.isResponse(t)||R.isReadableStream(t))return t;if(t&&R.isString(t)&&(r&&!this.responseType||n)){const i=!(e&&e.silentJSONParsing)&&n;try{return JSON.parse(t,this.parseReviver)}catch(s){if(i)throw s.name==="SyntaxError"?W.from(s,W.ERR_BAD_RESPONSE,this,null,this.response):s}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ie.classes.FormData,Blob:ie.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};R.forEach(["delete","get","head","post","put","patch"],t=>{Dt.headers[t]={}});const om=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"]),am=t=>{const e={};let r,n,i;return t&&t.split(`
52
+ `).forEach(function(s){i=s.indexOf(":"),r=s.substring(0,i).trim().toLowerCase(),n=s.substring(i+1).trim(),!(!r||e[r]&&om[r])&&(r==="set-cookie"?e[r]?e[r].push(n):e[r]=[n]:e[r]=e[r]?e[r]+", "+n:n)}),e},Qi=Symbol("internals");function gt(t){return t&&String(t).trim().toLowerCase()}function Gt(t){return t===!1||t==null?t:R.isArray(t)?t.map(Gt):String(t)}function um(t){const e=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(t);)e[n[1]]=n[2];return e}const cm=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function Ir(t,e,r,n,i){if(R.isFunction(n))return n.call(this,e,r);if(i&&(e=r),!!R.isString(e)){if(R.isString(n))return e.indexOf(n)!==-1;if(R.isRegExp(n))return n.test(e)}}function lm(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,r,n)=>r.toUpperCase()+n)}function fm(t,e){const r=R.toCamelCase(" "+e);["get","set","has"].forEach(n=>{Object.defineProperty(t,n+r,{value:function(i,s,o){return this[n].call(this,e,i,s,o)},configurable:!0})})}let ce=class{constructor(e){e&&this.set(e)}set(e,r,n){const i=this;function s(u,l,a){const c=gt(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]=Gt(u))}const o=(u,l)=>R.forEach(u,(a,c)=>s(a,c,l));if(R.isPlainObject(e)||e instanceof this.constructor)o(e,r);else if(R.isString(e)&&(e=e.trim())&&!cm(e))o(am(e),r);else if(R.isObject(e)&&R.isIterable(e)){let u={},l,a;for(const c of e){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 e!=null&&s(r,e,n);return this}get(e,r){if(e=gt(e),e){const n=R.findKey(this,e);if(n){const i=this[n];if(!r)return i;if(r===!0)return um(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(e,r){if(e=gt(e),e){const n=R.findKey(this,e);return!!(n&&this[n]!==void 0&&(!r||Ir(this,this[n],n,r)))}return!1}delete(e,r){const n=this;let i=!1;function s(o){if(o=gt(o),o){const u=R.findKey(n,o);u&&(!r||Ir(n,n[u],u,r))&&(delete n[u],i=!0)}}return R.isArray(e)?e.forEach(s):s(e),i}clear(e){const r=Object.keys(this);let n=r.length,i=!1;for(;n--;){const s=r[n];(!e||Ir(this,this[s],s,e,!0))&&(delete this[s],i=!0)}return i}normalize(e){const r=this,n={};return R.forEach(this,(i,s)=>{const o=R.findKey(n,s);if(o){r[o]=Gt(i),delete r[s];return}const u=e?lm(s):String(s).trim();u!==s&&delete r[s],r[u]=Gt(i),n[u]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const r=Object.create(null);return R.forEach(this,(n,i)=>{n!=null&&n!==!1&&(r[i]=e&&R.isArray(n)?n.join(", "):n)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,r])=>e+": "+r).join(`
53
+ `)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...r){const n=new this(e);return r.forEach(i=>n.set(i)),n}static accessor(e){const r=(this[Qi]=this[Qi]={accessors:{}}).accessors,n=this.prototype;function i(s){const o=gt(s);r[o]||(fm(n,s),r[o]=!0)}return R.isArray(e)?e.forEach(i):i(e),this}};ce.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);R.reduceDescriptors(ce.prototype,({value:t},e)=>{let r=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(n){this[r]=n}}});R.freezeMethods(ce);function Mr(t,e){const r=this||Dt,n=e||r,i=ce.from(n.headers);let s=n.data;return R.forEach(t,function(o){s=o.call(r,s,i.normalize(),e?e.status:void 0)}),i.normalize(),s}function Yo(t){return!!(t&&t.__CANCEL__)}let Ct=class extends W{constructor(e,r,n){super(e!=null?e:"canceled",W.ERR_CANCELED,r,n),this.name="CanceledError",this.__CANCEL__=!0}};function Zo(t,e,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?t(r):e(new W("Request failed with status code "+r.status,[W.ERR_BAD_REQUEST,W.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function hm(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function pm(t,e){t=t||10;const r=new Array(t),n=new Array(t);let i=0,s=0,o;return e=e!==void 0?e: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%t;if(i=(i+1)%t,i===s&&(s=(s+1)%t),l-o<e)return;const h=a&&l-a;return h?Math.round(f*1e3/h):void 0}}function dm(t,e){let r=0,n=1e3/e,i,s;const o=(u,l=Date.now())=>{r=l,i=null,s&&(clearTimeout(s),s=null),t(...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 sr=(t,e,r=3)=>{let n=0;const i=pm(50,250);return dm(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,[e?"download":"upload"]:!0};t(f)},r)},Xi=(t,e)=>{const r=t!=null;return[n=>e[0]({lengthComputable:r,total:t,loaded:n}),e[1]]},es=t=>(...e)=>R.asap(()=>t(...e)),gm=ie.hasStandardBrowserEnv?((t,e)=>r=>(r=new URL(r,ie.origin),t.protocol===r.protocol&&t.host===r.host&&(e||t.port===r.port)))(new URL(ie.origin),ie.navigator&&/(msie|trident)/i.test(ie.navigator.userAgent)):()=>!0,vm=ie.hasStandardBrowserEnv?{write(t,e,r,n,i,s,o){if(typeof document>"u")return;const u=[`${t}=${encodeURIComponent(e)}`];R.isNumber(r)&&u.push(`expires=${new Date(r).toUTCString()}`),R.isString(n)&&u.push(`path=${n}`),R.isString(i)&&u.push(`domain=${i}`),s===!0&&u.push("secure"),R.isString(o)&&u.push(`SameSite=${o}`),document.cookie=u.join("; ")},read(t){if(typeof document>"u")return null;const e=document.cookie.match(new RegExp("(?:^|; )"+t+"=([^;]*)"));return e?decodeURIComponent(e[1]):null},remove(t){this.write(t,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function mm(t){return typeof t!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function ym(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}function Qo(t,e,r){let n=!mm(e);return t&&(n||r==!1)?ym(t,e):e}const ts=t=>t instanceof ce?V({},t):t;function Ke(t,e){e=e||{};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 e)return n(a,c);if(f in t)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(ts(a),ts(c),f,!0)};return R.forEach(Object.keys(V(V({},t),e)),function(a){if(a==="__proto__"||a==="constructor"||a==="prototype")return;const c=R.hasOwnProp(l,a)?l[a]:i,f=c(t[a],e[a],a);R.isUndefined(f)&&c!==u||(r[a]=f)}),r}const Xo=t=>{const e=Ke({},t);let{data:r,withXSRFToken:n,xsrfHeaderName:i,xsrfCookieName:s,headers:o,auth:u}=e;if(e.headers=o=ce.from(o),e.url=Jo(Qo(e.baseURL,e.url,e.allowAbsoluteUrls),t.params,t.paramsSerializer),u&&o.set("Authorization","Basic "+btoa((u.username||"")+":"+(u.password?unescape(encodeURIComponent(u.password)):""))),R.isFormData(r)){if(ie.hasStandardBrowserEnv||ie.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if(R.isFunction(r.getHeaders)){const l=r.getHeaders(),a=["content-type","content-length"];Object.entries(l).forEach(([c,f])=>{a.includes(c.toLowerCase())&&o.set(c,f)})}}if(ie.hasStandardBrowserEnv&&(n&&R.isFunction(n)&&(n=n(e)),n||n!==!1&&gm(e.url))){const l=i&&s&&vm.read(s);l&&o.set(i,l)}return e},bm=typeof XMLHttpRequest<"u",_m=bm&&function(t){return new Promise(function(e,r){const n=Xo(t);let i=n.data;const s=ce.from(n.headers).normalize();let{responseType:o,onUploadProgress:u,onDownloadProgress:l}=n,a,c,f,h,p;function d(){h&&h(),p&&p(),n.cancelToken&&n.cancelToken.unsubscribe(a),n.signal&&n.signal.removeEventListener("abort",a)}let g=new XMLHttpRequest;g.open(n.method.toUpperCase(),n.url,!0),g.timeout=n.timeout;function v(){if(!g)return;const m=ce.from("getAllResponseHeaders"in g&&g.getAllResponseHeaders()),b={data:!o||o==="text"||o==="json"?g.responseText:g.response,status:g.status,statusText:g.statusText,headers:m,config:t,request:g};Zo(function(_){e(_),d()},function(_){r(_),d()},b),g=null}"onloadend"in g?g.onloadend=v:g.onreadystatechange=function(){!g||g.readyState!==4||g.status===0&&!(g.responseURL&&g.responseURL.indexOf("file:")===0)||setTimeout(v)},g.onabort=function(){g&&(r(new W("Request aborted",W.ECONNABORTED,t,g)),g=null)},g.onerror=function(m){const b=m&&m.message?m.message:"Network Error",_=new W(b,W.ERR_NETWORK,t,g);_.event=m||null,r(_),g=null},g.ontimeout=function(){let m=n.timeout?"timeout of "+n.timeout+"ms exceeded":"timeout exceeded";const b=n.transitional||jn;n.timeoutErrorMessage&&(m=n.timeoutErrorMessage),r(new W(m,b.clarifyTimeoutError?W.ETIMEDOUT:W.ECONNABORTED,t,g)),g=null},i===void 0&&s.setContentType(null),"setRequestHeader"in g&&R.forEach(s.toJSON(),function(m,b){g.setRequestHeader(b,m)}),R.isUndefined(n.withCredentials)||(g.withCredentials=!!n.withCredentials),o&&o!=="json"&&(g.responseType=n.responseType),l&&([f,p]=sr(l,!0),g.addEventListener("progress",f)),u&&g.upload&&([c,h]=sr(u),g.upload.addEventListener("progress",c),g.upload.addEventListener("loadend",h)),(n.cancelToken||n.signal)&&(a=m=>{g&&(r(!m||m.type?new Ct(null,t,g):m),g.abort(),g=null)},n.cancelToken&&n.cancelToken.subscribe(a),n.signal&&(n.signal.aborted?a():n.signal.addEventListener("abort",a)));const E=hm(n.url);if(E&&ie.protocols.indexOf(E)===-1){r(new W("Unsupported protocol "+E+":",W.ERR_BAD_REQUEST,t));return}g.send(i||null)})},wm=(t,e)=>{const{length:r}=t=t?t.filter(Boolean):[];if(e||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 W?c:new Ct(c instanceof Error?c.message:c))}};let o=e&&setTimeout(()=>{o=null,s(new W(`timeout of ${e}ms exceeded`,W.ETIMEDOUT))},e);const u=()=>{t&&(o&&clearTimeout(o),o=null,t.forEach(a=>{a.unsubscribe?a.unsubscribe(s):a.removeEventListener("abort",s)}),t=null)};t.forEach(a=>a.addEventListener("abort",s));const{signal:l}=n;return l.unsubscribe=()=>R.asap(u),l}},Em=function*(t,e){let r=t.byteLength;if(r<e){yield t;return}let n=0,i;for(;n<r;)i=n+e,yield t.slice(n,i),n=i},Sm=function(t,e){return _r(this,null,function*(){try{for(var r=Un(Tm(t)),n,i,s;n=!(i=yield new Ue(r.next())).done;n=!1){const o=i.value;yield*wr(Em(o,e))}}catch(i){s=[i]}finally{try{n&&(i=r.return)&&(yield new Ue(i.call(r)))}finally{if(s)throw s[0]}}})},Tm=function(t){return _r(this,null,function*(){if(t[Symbol.asyncIterator]){yield*wr(t);return}const e=t.getReader();try{for(;;){const{done:r,value:n}=yield new Ue(e.read());if(r)break;yield n}}finally{yield new Ue(e.cancel())}})},rs=(t,e,r,n)=>{const i=Sm(t,e);let s=0,o,u=a=>{o||(o=!0,n&&n(a))};return new ReadableStream({pull(a){return U(this,null,function*(){try{const{done:c,value:f}=yield i.next();if(c){u(),a.close();return}let h=f.byteLength;if(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})},ns=64*1024,{isFunction:Ht}=R,Rm=(({Request:t,Response:e})=>({Request:t,Response:e}))(R.global),{ReadableStream:is,TextEncoder:ss}=R.global,os=(t,...e)=>{try{return!!t(...e)}catch(r){return!1}},Am=t=>{t=R.merge.call({skipUndefined:!0},Rm,t);const{fetch:e,Request:r,Response:n}=t,i=e?Ht(e):typeof fetch=="function",s=Ht(r),o=Ht(n);if(!i)return!1;const u=i&&Ht(is),l=i&&(typeof ss=="function"?(d=>g=>d.encode(g))(new ss):d=>U(null,null,function*(){return new Uint8Array(yield new r(d).arrayBuffer())})),a=s&&u&&os(()=>{let d=!1;const g=new r(ie.origin,{body:new is,method:"POST",get duplex(){return d=!0,"half"}}).headers.has("Content-Type");return d&&!g}),c=o&&u&&os(()=>R.isReadableStream(new n("").body)),f={stream:c&&(d=>d.body)};i&&["text","arrayBuffer","blob","formData","stream"].forEach(d=>{!f[d]&&(f[d]=(g,v)=>{let E=g&&g[d];if(E)return E.call(g);throw new W(`Response type '${d}' is not supported`,W.ERR_NOT_SUPPORT,v)})});const h=d=>U(null,null,function*(){if(d==null)return 0;if(R.isBlob(d))return d.size;if(R.isSpecCompliantForm(d))return(yield new r(ie.origin,{method:"POST",body:d}).arrayBuffer()).byteLength;if(R.isArrayBufferView(d)||R.isArrayBuffer(d))return d.byteLength;if(R.isURLSearchParams(d)&&(d=d+""),R.isString(d))return(yield l(d)).byteLength}),p=(d,g)=>U(null,null,function*(){const v=R.toFiniteNumber(d.getContentLength());return v!=null?v:h(g)});return d=>U(null,null,function*(){let{url:g,method:v,data:E,signal:m,cancelToken:b,timeout:_,onDownloadProgress:w,onUploadProgress:y,responseType:T,headers:O,withCredentials:L="same-origin",fetchOptions:S}=Xo(d),A=e||fetch;T=T?(T+"").toLowerCase():"text";let M=wm([m,b&&b.toAbortSignal()],_),j=null;const I=M&&M.unsubscribe&&(()=>{M.unsubscribe()});let B;try{if(y&&a&&v!=="get"&&v!=="head"&&(B=yield p(O,E))!==0){let x=new r(g,{method:"POST",body:E,duplex:"half"}),C;if(R.isFormData(E)&&(C=x.headers.get("content-type"))&&O.setContentType(C),x.body){const[D,N]=Xi(B,sr(es(y)));E=rs(x.body,ns,D,N)}}R.isString(L)||(L=L?"include":"omit");const $=s&&"credentials"in r.prototype,H=re(V({},S),{signal:M,method:v.toUpperCase(),headers:O.normalize().toJSON(),body:E,duplex:"half",credentials:$?L:void 0});j=s&&new r(g,H);let F=yield s?A(j,S):A(g,H);const q=c&&(T==="stream"||T==="response");if(c&&(w||q&&I)){const x={};["status","statusText","headers"].forEach(te=>{x[te]=F[te]});const C=R.toFiniteNumber(F.headers.get("content-length")),[D,N]=w&&Xi(C,sr(es(w),!0))||[];F=new n(rs(F.body,ns,D,()=>{N&&N(),I&&I()}),x)}T=T||"text";let z=yield f[R.findKey(f,T)||"text"](F,d);return!q&&I&&I(),yield new Promise((x,C)=>{Zo(x,C,{data:z,headers:ce.from(F.headers),status:F.status,statusText:F.statusText,config:d,request:j})})}catch($){throw I&&I(),$&&$.name==="TypeError"&&/Load failed|fetch/i.test($.message)?Object.assign(new W("Network Error",W.ERR_NETWORK,d,j,$&&$.response),{cause:$.cause||$}):W.from($,$&&$.code,d,j,$&&$.response)}})},xm=new Map,ea=t=>{let e=t&&t.env||{};const{fetch:r,Request:n,Response:i}=e,s=[n,i,r];let o=s.length,u=o,l,a,c=xm;for(;u--;)l=s[u],a=c.get(l),a===void 0&&c.set(l,a=u?new Map:Am(e)),c=a;return a};ea();const In={http:qv,xhr:_m,fetch:{get:ea}};R.forEach(In,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch(r){}Object.defineProperty(t,"adapterName",{value:e})}});const as=t=>`- ${t}`,Om=t=>R.isFunction(t)||t===null||t===!1;function $m(t,e){t=R.isArray(t)?t:[t];const{length:r}=t;let n,i;const s={};for(let o=0;o<r;o++){n=t[o];let u;if(i=n,!Om(n)&&(i=In[(u=String(n)).toLowerCase()],i===void 0))throw new W(`Unknown adapter '${u}'`);if(i&&(R.isFunction(i)||(i=i.get(e))))break;s[u||"#"+o]=i}if(!i){const o=Object.entries(s).map(([l,a])=>`adapter ${l} `+(a===!1?"is not supported by the environment":"is not available in the build"));let u=r?o.length>1?`since :
54
54
  `+o.map(as).join(`
55
- `):" "+as(o[0]):"as no adapter specified";throw new W("There is no suitable adapter to dispatch the request "+u,"ERR_NOT_SUPPORT")}return i}const ta={getAdapter:$m,adapters:In};function Fr(r){if(r.cancelToken&&r.cancelToken.throwIfRequested(),r.signal&&r.signal.aborted)throw new Ct(null,r)}function us(r){return Fr(r),r.headers=ce.from(r.headers),r.data=Mr.call(r,r.transformRequest),["post","put","patch"].indexOf(r.method)!==-1&&r.headers.setContentType("application/x-www-form-urlencoded",!1),ta.getAdapter(r.adapter||Dt.adapter,r)(r).then(function(e){return Fr(r),e.data=Mr.call(r,r.transformResponse,e),e.headers=ce.from(e.headers),e},function(e){return Yo(e)||(Fr(r),e&&e.response&&(e.response.data=Mr.call(r,r.transformResponse,e.response),e.response.headers=ce.from(e.response.headers))),Promise.reject(e)})}const ra="1.13.6",gr={};["object","boolean","number","function","string","symbol"].forEach((r,e)=>{gr[r]=function(t){return typeof t===r||"a"+(e<1?"n ":" ")+r}});const cs={};gr.transitional=function(r,e,t){function n(i,s){return"[Axios v"+ra+"] Transitional option '"+i+"'"+s+(t?". "+t:"")}return(i,s,o)=>{if(r===!1)throw new W(n(s," has been removed"+(e?" in "+e:"")),W.ERR_DEPRECATED);return e&&!cs[s]&&(cs[s]=!0,console.warn(n(s," has been deprecated since v"+e+" and will be removed in the near future"))),r?r(i,s,o):!0}};gr.spelling=function(r){return(e,t)=>(console.warn(`${t} is likely a misspelling of ${r}`),!0)};function Dm(r,e,t){if(typeof r!="object")throw new W("options must be an object",W.ERR_BAD_OPTION_VALUE);const n=Object.keys(r);let i=n.length;for(;i-- >0;){const s=n[i],o=e[s];if(o){const u=r[s],l=u===void 0||o(u,s,r);if(l!==!0)throw new W("option "+s+" must be "+l,W.ERR_BAD_OPTION_VALUE);continue}if(t!==!0)throw new W("Unknown option "+s,W.ERR_BAD_OPTION)}}const Yt={assertOptions:Dm,validators:gr},le=Yt.validators;let qe=class{constructor(e){this.defaults=e||{},this.interceptors={request:new Zi,response:new Zi}}request(e,t){return U(this,null,function*(){try{return yield this._request(e,t)}catch(n){if(n instanceof Error){let i={};Error.captureStackTrace?Error.captureStackTrace(i):i=new Error;const s=i.stack?i.stack.replace(/^.+\n/,""):"";try{n.stack?s&&!String(n.stack).endsWith(s.replace(/^.+\n.+\n/,""))&&(n.stack+=`
56
- `+s):n.stack=s}catch(o){}}throw n}})}_request(e,t){typeof e=="string"?(t=t||{},t.url=e):t=e||{},t=Ke(this.defaults,t);const{transitional:n,paramsSerializer:i,headers:s}=t;n!==void 0&&Yt.assertOptions(n,{silentJSONParsing:le.transitional(le.boolean),forcedJSONParsing:le.transitional(le.boolean),clarifyTimeoutError:le.transitional(le.boolean),legacyInterceptorReqResOrdering:le.transitional(le.boolean)},!1),i!=null&&(R.isFunction(i)?t.paramsSerializer={serialize:i}:Yt.assertOptions(i,{encode:le.function,serialize:le.function},!0)),t.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),Yt.assertOptions(t,{baseUrl:le.spelling("baseURL"),withXsrfToken:le.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let o=s&&R.merge(s.common,s[t.method]);s&&R.forEach(["delete","get","head","post","put","patch","common"],d=>{delete s[d]}),t.headers=ce.concat(o,s);const u=[];let l=!0;this.interceptors.request.forEach(function(d){if(typeof d.runWhen=="function"&&d.runWhen(t)===!1)return;l=l&&d.synchronous;const g=t.transitional||jn;g&&g.legacyInterceptorReqResOrdering?u.unshift(d.fulfilled,d.rejected):u.push(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=[us.bind(this),void 0];for(d.unshift(...u),d.push(...a),h=d.length,c=Promise.resolve(t);f<h;)c=c.then(d[f++],d[f++]);return c}h=u.length;let p=t;for(;f<h;){const d=u[f++],g=u[f++];try{p=d(p)}catch(v){g.call(this,v);break}}try{c=us.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(e){e=Ke(this.defaults,e);const t=Qo(e.baseURL,e.url,e.allowAbsoluteUrls);return Jo(t,e.params,e.paramsSerializer)}};R.forEach(["delete","get","head","options"],function(r){qe.prototype[r]=function(e,t){return this.request(Ke(t||{},{method:r,url:e,data:(t||{}).data}))}});R.forEach(["post","put","patch"],function(r){function e(t){return function(n,i,s){return this.request(Ke(s||{},{method:r,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:i}))}}qe.prototype[r]=e(),qe.prototype[r+"Form"]=e(!0)});let Cm=class na{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let t;this.promise=new Promise(function(i){t=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},e(function(i,s,o){n.reason||(n.reason=new Ct(i,s,o),t(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);t!==-1&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=n=>{e.abort(n)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new na(function(t){e=t}),cancel:e}}};function Bm(r){return function(e){return r.apply(null,e)}}function Pm(r){return R.isObject(r)&&r.isAxiosError===!0}const ln={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(ln).forEach(([r,e])=>{ln[e]=r});function ia(r){const e=new qe(r),t=Mo(qe.prototype.request,e);return R.extend(t,qe.prototype,e,{allOwnKeys:!0}),R.extend(t,e,null,{allOwnKeys:!0}),t.create=function(n){return ia(Ke(r,n))},t}const Q=ia(Dt);Q.Axios=qe;Q.CanceledError=Ct;Q.CancelToken=Cm;Q.isCancel=Yo;Q.VERSION=ra;Q.toFormData=dr;Q.AxiosError=W;Q.Cancel=Q.CanceledError;Q.all=function(r){return Promise.all(r)};Q.spread=Bm;Q.isAxiosError=Pm;Q.mergeConfig=Ke;Q.AxiosHeaders=ce;Q.formToJSON=r=>Go(R.isHTMLForm(r)?new FormData(r):r);Q.getAdapter=ta.getAdapter;Q.HttpStatusCode=ln;Q.default=Q;const{Axios:w1,AxiosError:E1,CanceledError:S1,isCancel:T1,CancelToken:R1,VERSION:A1,all:x1,Cancel:O1,isAxiosError:$1,spread:D1,toFormData:C1,AxiosHeaders:B1,HttpStatusCode:P1,formToJSON:j1,getAdapter:N1,mergeConfig:I1}=Q,jm={form:"application/x-www-form-urlencoded",json:"application/json",data:"multipart/form-data"},Nm=["put","post","patch"],ls="Local-Request-Id",Im=100,Mm=300,Fm="/api/proxy";class Lm{constructor(e={}){fe(this,"axios"),fe(this,"settings"),fe(this,"records",{}),fe(this,"isLoading",!1),fe(this,"stopSkipWarn"),fe(this,"showLoading"),fe(this,"showError"),this.settings=Object.assign({type:"form"},e.settings||{});const t=jr(e,["settings","query"]);this.axios=Q.create(vt({headers:{"Content-Type":"application/x-www-form-urlencoded"},timeout:120*1e3},t)),this.setupSkipWarn(this.settings),this.showLoading=On(this.openLoading.bind(this),Im),this.showError=Md(this._showError.bind(this),Mm,{leading:!0,trailing:!1})}setConfig(e={}){this.settings=vt(this.settings,e.settings||{});const t=jr(e,["settings","query"]);this.axios.defaults=vt(this.axios.defaults,t),this.setupSkipWarn(this.settings)}cancel(e,t="请求已取消"){if(e){const n=this.records[e];if(!n)return;n.source.cancel(t)}else for(const n of Object.values(this.records))n.source.cancel(t)}createHeaders(e,t,n){const i=t.injectHeaders?typeof t.headers=="function"?t.headers(e,n,t):t.headers||{}:{},s=V(V({"Content-Type":jm[t.type||"form"]},n.headers),i);return t.skipWarn&&(s[ls]=e),s}isJsonType(e){return Object.entries(e).some(([t,n])=>t.toLowerCase()==="content-type"&&String(n).includes("application/json"))}toFormData(e,t="data"){if(e instanceof FormData||e instanceof URLSearchParams)return e;const n=t==="data"?new FormData:new URLSearchParams;return Object.entries(e).forEach(([i,s])=>{n.append(i,s)}),n}createSendData(e,t,n,i,s={}){const{type:o,skipWarn:u}=e,{name:l="skipWarn"}=u||{};let{data:a,params:c={},method:f="get"}=t;const h=i?{[l]:!0}:{};return Nm.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(e){let{url:t,params:n}=e;if(t){let i=Tt(t)?new URL(t).origin:"";const s=i?t.replace(i,""):t;try{const o=Lg(s,{encode:encodeURIComponent});return i+o(n||{})}catch(o){console.warn("createUrl","pathToRegexpCompile error",t)}}return t}createProxy(e,t,n){if(!e.proxy)return{url:t,headers:n};const i=e.proxyPath||Fm,{protocol:s,host:o}=location||{},u=Tt(t)?t:`${s}//${o}${t}`;return n.Target=u,{url:i,headers:n}}openLoading(e){const{loading:t,showLoading:n}=e;t&&n&&Object.keys(this.records).length>0&&(this.isLoading=!0,n())}closeLoading(e){const{loading:t,hideLoading:n}=e;if(!t)return;this.isLoading=!1;const i=Object.keys(this.records);n&&i.length===0&&(this.isLoading=!1,n())}_showError(e,t){var s;const{failMessage:n,showError:i}=e;if(n&&i){const o=(s=t==null?void 0:t.response)==null?void 0:s.data,u=(o==null?void 0:o.message)||(o==null?void 0:o.msg)||(t==null?void 0:t.message)||(t==null?void 0:t.msg)||"未知错误";i(u,t)}}validResponse(e,t){const{validSuccess:n,validate:i}=e;return n&&i?!!i(t):!0}isSkipWarnResponse(e){return!!e.promise}send(e={},t=!1){const n=vt({},this.settings,e.settings||{}),i=e.query||{},s=jr(e,["settings","query"]),o=jg(!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),{url:c,headers:f}=this.createProxy(n,l,a),{data:h,params:p}=this.createSendData(n,s,f,t,i);return this.showLoading(n),new Promise((d,g)=>{this.axios(re(V({cancelToken:u.token},s),{url:c,headers:f,data:h,params:p})).then(v=>{var E;return this.isSkipWarnResponse(v)?d(v.promise):this.validResponse(n,v)?d(n.originResponse?v:(E=v.data)==null?void 0:E.data):(this.showError(n,v.data),g(v.data))}).catch(v=>(this.showError(n,v),g(v))).finally(()=>{delete this.records[o],this.closeLoading(n)})})}useResponse(e,t){const{response:n}=this.axios.interceptors,i=n.use(e,t);return()=>n.eject(i)}useRequest(e,t){const{request:n}=this.axios.interceptors,i=n.use(e,t);return()=>n.eject(i)}setupSkipWarn(e){if(this.stopSkipWarn&&(this.stopSkipWarn(),this.stopSkipWarn=void 0),!e.skipWarn)return;const{code:t,executor:n,callback:i,complete:s}=e.skipWarn;this.stopSkipWarn=this.useResponse(o=>{const u=(o.config.headers||{})[ls],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)===t){i&&i(o);const c=new Promise(n).then(()=>this.send(re(V({},l.config),{settings:l.settings}),!0));c.catch(f=>f).finally(()=>{s&&s()}),o.promise=c}return o})}}function Mn(r={}){const e=new Lm(r),t=e.send.bind(e),n=e.cancel.bind(e),i=e.setConfig.bind(e),s=e.useRequest.bind(e),o=e.useResponse.bind(e);return Object.assign(t,re(V({},e),{instance:e,send:t,cancel:n,setConfig:i,useRequest:s,useResponse:o}))}const fn=Mn({settings:{injectHeaders:!0,loading:!0,originResponse:!0}}),hn=typeof window<"u";function Um(r){const e={};return r?(r.forEach((t,n)=>{e[n]=typeof t=="string"?decodeURIComponent(t):t}),e):{}}class sa{constructor(e={}){fe(this,"options",{type:"cache",expired:0,prefix:"__VTJ_"}),fe(this,"caches",{}),fe(this,"types"),this.types={local:hn?window.localStorage:this.caches,session:hn?window.sessionStorage:this.caches,cache:this.caches},this.config(e)}config(e={}){this.options=Object.assign(this.options,e)}save(e,t,n={}){const{type:i,expired:s,prefix:o}=V(V({},this.options),n),u=Date.now(),l=o+e,a=this.types[i]||this.caches,c={value:t,timestamp:u,expired:s};a===this.caches?a[l]=c:a.setItem(l,JSON.stringify(c))}get(e,t={}){const{type:n,prefix:i}=V(V({},this.options),t),s=i+e,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(e,t),null):l}remove(e,t={}){const{type:n,prefix:i}=V(V({},this.options),t),s=this.types[n]||this.caches,o=i+e;s===this.caches?delete s[o]:s.removeItem(o)}clear(e={}){const{type:t}=V(V({},this.options),e),n=this.types[t]||this.caches;n===this.caches?this.caches={}:n.clear()}}const Lr=new sa;function oa(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var Zt={exports:{}},Hm=Zt.exports,fs;function Vm(){return fs||(fs=1,(function(r,e){(function(t,n){n(e,r)})(Hm,function(t,n){var i={timeout:5e3,jsonpCallback:"callback"};function s(){return"jsonp_"+Date.now()+"_"+Math.ceil(Math.random()*1e5)}function o(a){try{delete window[a]}catch(c){window[a]=void 0}}function u(a){var c=document.getElementById(a);c&&document.getElementsByTagName("head")[0].removeChild(c)}function l(a){var c=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],f=a,h=c.timeout||i.timeout,p=c.jsonpCallback||i.jsonpCallback,d=void 0;return new Promise(function(g,v){var E=c.jsonpCallbackFunction||s(),m=p+"_"+E;window[E]=function(_){g({ok:!0,json:function(){return Promise.resolve(_)}}),d&&clearTimeout(d),u(m),o(E)},f+=f.indexOf("?")===-1?"?":"&";var b=document.createElement("script");b.setAttribute("src",""+f+p+"="+E),c.charset&&b.setAttribute("charset",c.charset),c.nonce&&b.setAttribute("nonce",c.nonce),c.referrerPolicy&&b.setAttribute("referrerPolicy",c.referrerPolicy),c.crossorigin&&b.setAttribute("crossorigin","true"),b.id=m,document.getElementsByTagName("head")[0].appendChild(b),d=setTimeout(function(){v(new Error("JSONP request to "+a+" timed out")),o(E),u(m),window[E]=function(){o(E)}},h),b.onerror=function(){v(new Error("JSONP request to "+a+" failed")),o(E),u(m),d&&clearTimeout(d)}})}n.exports=l})})(Zt,Zt.exports)),Zt.exports}var km=Vm();const qm=oa(km);function zm(r){if(hn){const{protocol:e,host:t,pathname:n}=location;return`${e}//${t}${r?n:""}`}else return null}function Wm(r=""){const e=r.match(Co);return e?e[0]:""}function aa(r){const e=[];for(const t in r)Object.prototype.hasOwnProperty.call(r,t)&&e.push([t,encodeURIComponent(r[t])].join("="));return e.join("&")}function pn(r,e,t){const n={};r=(r||location.search).replace(/^[^]*\?/,""),e=e||"&",t=t||"=";let i;const s=new RegExp("(?:^|\\"+e+")([^\\"+t+"\\"+e+"]+)(?:\\"+t+"([^\\"+e+"]*))?","g");for(;(i=s.exec(r))!==null;)i[1]!==r&&(n[decodeURIComponent(i[1])]=decodeURIComponent(i[2]||""));return n}function ua(r,e){e=typeof e=="string"?pn(e):e;const t=r.split("?")[0],n=pn(r),i=Object.assign({},n,e),s=aa(i);return s?[t,s].join("?"):r}const Qt=Object.freeze(Object.defineProperty({__proto__:null,append:ua,getCurrentHost:zm,getHost:Wm,parse:pn,stringify:aa},Symbol.toStringTag,{value:"Module"}));function ca(t){return U(this,arguments,function*(r,e={}){const{query:n={}}=e;r.includes("${")&&(r=Nd(r)(n||{}));const i=ua(r,n);return yield(yield qm(i,e)).json()})}var Ur,hs;function Km(){if(hs)return Ur;hs=1,Ur=function(n,i,s){var o=document.head||document.getElementsByTagName("head")[0],u=document.createElement("script");typeof i=="function"&&(s=i,i={}),i=i||{},s=s||function(){},u.type=i.type||"text/javascript",u.charset=i.charset||"utf8",u.async="async"in i?!!i.async:!0,u.src=n,i.attrs&&r(u,i.attrs),i.text&&(u.text=""+i.text);var l="onload"in u?e:t;l(u,s),u.onload||e(u,s),o.appendChild(u)};function r(n,i){for(var s in i)n.setAttribute(s,i[s])}function e(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 t(n,i){n.onreadystatechange=function(){this.readyState!="complete"&&this.readyState!="loaded"||(this.onreadystatechange=null,i(null,n))}}return Ur}var Jm=Km();const Gm=oa(Jm);function ps(r,e={}){return new Promise((t,n)=>{const{library:i}=e;Gm(r,e,(s,o)=>{s?n(s):t(i?window[i]:void 0)})})}const ds={debug:-1,log:0,info:0,warn:1,error:2},Ym=function(r,e,t,n){return function(...i){if(e&&ds[e]<=ds[r]&&console[r].apply&&(n==="*"||t.startsWith(n)))return console[r].apply(console,Zm(i,t))}};function Zm(r,e){return e!=="*"&&(typeof r[0]=="string"?r[0]=`[${e}] ${r[0]}`:r=["["+e+"]"].concat(r)),r}function Qm(r,e){if(!r)return{targetLevel:e.level,targetBizName:e.bizName};if(~r.indexOf(":")){const t=r.split(":");return{targetLevel:t[0],targetBizName:t[1]}}return{targetLevel:r,targetBizName:"*"}}const Xm={level:"warn",bizName:"*"};class ey{constructor(e){fe(this,"config"),fe(this,"options"),this.options=V(V({},Xm),e);const t=typeof location<"u"?location:{},n=(/__(?:logConf|logLevel)__=([^#/&]*)/.exec(t.href)||[])[1];this.config=Qm(n,e)}_log(e){const{targetLevel:t,targetBizName:n}=this.config,{bizName:i}=this.options;return Ym(e,t,i,n)}debug(...e){return this._log("debug")(...e)}log(...e){return this._log("log")(...e)}info(...e){return this._log("info")(...e)}warn(...e){return this._log("warn")(...e)}error(...e){return this._log("error")(...e)}}function ty(r){return new ey(r)}const it=ty({level:"log",bizName:"VTJ"});/*! js-cookie v3.0.5 | MIT */function Vt(r){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var n in t)r[n]=t[n]}return r}var ry={read:function(r){return r[0]==='"'&&(r=r.slice(1,-1)),r.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(r){return encodeURIComponent(r).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function dn(r,e){function t(i,s,o){if(!(typeof document>"u")){o=Vt({},e,o),typeof o.expires=="number"&&(o.expires=new Date(Date.now()+o.expires*864e5)),o.expires&&(o.expires=o.expires.toUTCString()),i=encodeURIComponent(i).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var u="";for(var l in o)o[l]&&(u+="; "+l,o[l]!==!0&&(u+="="+o[l].split(";")[0]));return document.cookie=i+"="+r.write(s,i)+u}}function n(i){if(!(typeof document>"u"||arguments.length&&!i)){for(var s=document.cookie?document.cookie.split("; "):[],o={},u=0;u<s.length;u++){var l=s[u].split("="),a=l.slice(1).join("=");try{var c=decodeURIComponent(l[0]);if(o[c]=r.read(a,c),i===c)break}catch(f){}}return i?o[i]:o}}return Object.create({set:t,get:n,remove:function(i,s){t(i,"",Vt({},s,{expires:-1}))},withAttributes:function(i){return dn(this.converter,Vt({},this.attributes,i))},withConverter:function(i){return dn(Vt({},this.converter,i),this.attributes)}},{attributes:{value:Object.freeze(e)},converter:{value:Object.freeze(r)}})}var Fn=dn(ry,{path:"/"});function ny(r,e,t){Fn.set(r,e,t)}function iy(r){return Fn.get(r)}function sy(r,e){Fn.remove(r,e)}const Hr=Object.freeze(Object.defineProperty({__proto__:null,get:iy,remove:sy,set:ny},Symbol.toStringTag,{value:"Module"}));/**!
55
+ `):" "+as(o[0]):"as no adapter specified";throw new W("There is no suitable adapter to dispatch the request "+u,"ERR_NOT_SUPPORT")}return i}const ta={getAdapter:$m,adapters:In};function Fr(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new Ct(null,t)}function us(t){return Fr(t),t.headers=ce.from(t.headers),t.data=Mr.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),ta.getAdapter(t.adapter||Dt.adapter,t)(t).then(function(e){return Fr(t),e.data=Mr.call(t,t.transformResponse,e),e.headers=ce.from(e.headers),e},function(e){return Yo(e)||(Fr(t),e&&e.response&&(e.response.data=Mr.call(t,t.transformResponse,e.response),e.response.headers=ce.from(e.response.headers))),Promise.reject(e)})}const ra="1.13.6",gr={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{gr[t]=function(r){return typeof r===t||"a"+(e<1?"n ":" ")+t}});const cs={};gr.transitional=function(t,e,r){function n(i,s){return"[Axios v"+ra+"] Transitional option '"+i+"'"+s+(r?". "+r:"")}return(i,s,o)=>{if(t===!1)throw new W(n(s," has been removed"+(e?" in "+e:"")),W.ERR_DEPRECATED);return e&&!cs[s]&&(cs[s]=!0,console.warn(n(s," has been deprecated since v"+e+" and will be removed in the near future"))),t?t(i,s,o):!0}};gr.spelling=function(t){return(e,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function Dm(t,e,r){if(typeof t!="object")throw new W("options must be an object",W.ERR_BAD_OPTION_VALUE);const n=Object.keys(t);let i=n.length;for(;i-- >0;){const s=n[i],o=e[s];if(o){const u=t[s],l=u===void 0||o(u,s,t);if(l!==!0)throw new W("option "+s+" must be "+l,W.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new W("Unknown option "+s,W.ERR_BAD_OPTION)}}const Yt={assertOptions:Dm,validators:gr},le=Yt.validators;let qe=class{constructor(e){this.defaults=e||{},this.interceptors={request:new Zi,response:new Zi}}request(e,r){return U(this,null,function*(){try{return yield this._request(e,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+=`
56
+ `+s):n.stack=s}catch(o){}}throw n}})}_request(e,r){typeof e=="string"?(r=r||{},r.url=e):r=e||{},r=Ke(this.defaults,r);const{transitional:n,paramsSerializer:i,headers:s}=r;n!==void 0&&Yt.assertOptions(n,{silentJSONParsing:le.transitional(le.boolean),forcedJSONParsing:le.transitional(le.boolean),clarifyTimeoutError:le.transitional(le.boolean),legacyInterceptorReqResOrdering:le.transitional(le.boolean)},!1),i!=null&&(R.isFunction(i)?r.paramsSerializer={serialize:i}:Yt.assertOptions(i,{encode:le.function,serialize:le.function},!0)),r.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?r.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:r.allowAbsoluteUrls=!0),Yt.assertOptions(r,{baseUrl:le.spelling("baseURL"),withXsrfToken:le.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=ce.concat(o,s);const u=[];let l=!0;this.interceptors.request.forEach(function(d){if(typeof d.runWhen=="function"&&d.runWhen(r)===!1)return;l=l&&d.synchronous;const g=r.transitional||jn;g&&g.legacyInterceptorReqResOrdering?u.unshift(d.fulfilled,d.rejected):u.push(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=[us.bind(this),void 0];for(d.unshift(...u),d.push(...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<h;){const d=u[f++],g=u[f++];try{p=d(p)}catch(v){g.call(this,v);break}}try{c=us.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(e){e=Ke(this.defaults,e);const r=Qo(e.baseURL,e.url,e.allowAbsoluteUrls);return Jo(r,e.params,e.paramsSerializer)}};R.forEach(["delete","get","head","options"],function(t){qe.prototype[t]=function(e,r){return this.request(Ke(r||{},{method:t,url:e,data:(r||{}).data}))}});R.forEach(["post","put","patch"],function(t){function e(r){return function(n,i,s){return this.request(Ke(s||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:n,data:i}))}}qe.prototype[t]=e(),qe.prototype[t+"Form"]=e(!0)});let Cm=class na{constructor(e){if(typeof e!="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},e(function(i,s,o){n.reason||(n.reason=new Ct(i,s,o),r(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const r=this._listeners.indexOf(e);r!==-1&&this._listeners.splice(r,1)}toAbortSignal(){const e=new AbortController,r=n=>{e.abort(n)};return this.subscribe(r),e.signal.unsubscribe=()=>this.unsubscribe(r),e.signal}static source(){let e;return{token:new na(function(r){e=r}),cancel:e}}};function Bm(t){return function(e){return t.apply(null,e)}}function Pm(t){return R.isObject(t)&&t.isAxiosError===!0}const ln={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(ln).forEach(([t,e])=>{ln[e]=t});function ia(t){const e=new qe(t),r=Mo(qe.prototype.request,e);return R.extend(r,qe.prototype,e,{allOwnKeys:!0}),R.extend(r,e,null,{allOwnKeys:!0}),r.create=function(n){return ia(Ke(t,n))},r}const Q=ia(Dt);Q.Axios=qe;Q.CanceledError=Ct;Q.CancelToken=Cm;Q.isCancel=Yo;Q.VERSION=ra;Q.toFormData=dr;Q.AxiosError=W;Q.Cancel=Q.CanceledError;Q.all=function(t){return Promise.all(t)};Q.spread=Bm;Q.isAxiosError=Pm;Q.mergeConfig=Ke;Q.AxiosHeaders=ce;Q.formToJSON=t=>Go(R.isHTMLForm(t)?new FormData(t):t);Q.getAdapter=ta.getAdapter;Q.HttpStatusCode=ln;Q.default=Q;const{Axios:T1,AxiosError:R1,CanceledError:A1,isCancel:x1,CancelToken:O1,VERSION:$1,all:D1,Cancel:C1,isAxiosError:B1,spread:P1,toFormData:j1,AxiosHeaders:N1,HttpStatusCode:I1,formToJSON:M1,getAdapter:F1,mergeConfig:L1}=Q,jm={form:"application/x-www-form-urlencoded",json:"application/json",data:"multipart/form-data"},Nm=["put","post","patch"],ls="Local-Request-Id",Im=100,Mm=300,Fm="/api/proxy";class Lm{constructor(e={}){fe(this,"axios"),fe(this,"settings"),fe(this,"records",{}),fe(this,"isLoading",!1),fe(this,"stopSkipWarn"),fe(this,"showLoading"),fe(this,"showError"),this.settings=Object.assign({type:"form"},e.settings||{});const r=jr(e,["settings","query"]);this.axios=Q.create(vt({headers:{"Content-Type":"application/x-www-form-urlencoded"},timeout:120*1e3},r)),this.setupSkipWarn(this.settings),this.showLoading=On(this.openLoading.bind(this),Im),this.showError=Md(this._showError.bind(this),Mm,{leading:!0,trailing:!1})}setConfig(e={}){this.settings=vt(this.settings,e.settings||{});const r=jr(e,["settings","query"]);this.axios.defaults=vt(this.axios.defaults,r),this.setupSkipWarn(this.settings)}cancel(e,r="请求已取消"){if(e){const n=this.records[e];if(!n)return;n.source.cancel(r)}else for(const n of Object.values(this.records))n.source.cancel(r)}createHeaders(e,r,n){const i=r.injectHeaders?typeof r.headers=="function"?r.headers(e,n,r):r.headers||{}:{},s=V(V({"Content-Type":jm[r.type||"form"]},n.headers),i);return r.skipWarn&&(s[ls]=e),s}isJsonType(e){return Object.entries(e).some(([r,n])=>r.toLowerCase()==="content-type"&&String(n).includes("application/json"))}toFormData(e,r="data"){if(e instanceof FormData||e instanceof URLSearchParams)return e;const n=r==="data"?new FormData:new URLSearchParams;return Object.entries(e).forEach(([i,s])=>{n.append(i,s)}),n}createSendData(e,r,n,i,s={}){const{type:o,skipWarn:u}=e,{name:l="skipWarn"}=u||{};let{data:a,params:c={},method:f="get"}=r;const h=i?{[l]:!0}:{};return Nm.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(e){let{url:r,params:n}=e;if(r){let i=Tt(r)?new URL(r).origin:"";const s=i?r.replace(i,""):r;try{const o=Lg(s,{encode:encodeURIComponent});return i+o(n||{})}catch(o){console.warn("createUrl","pathToRegexpCompile error",r)}}return r}createProxy(e,r,n){if(!e.proxy)return{url:r,headers:n};const i=e.proxyPath||Fm,{protocol:s,host:o}=location||{},u=Tt(r)?r:`${s}//${o}${r}`;return n.Target=u,{url:i,headers:n}}openLoading(e){const{loading:r,showLoading:n}=e;r&&n&&Object.keys(this.records).length>0&&(this.isLoading=!0,n())}closeLoading(e){const{loading:r,hideLoading:n}=e;if(!r)return;this.isLoading=!1;const i=Object.keys(this.records);n&&i.length===0&&(this.isLoading=!1,n())}_showError(e,r){var s;const{failMessage:n,showError:i}=e;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(e,r){const{validSuccess:n,validate:i}=e;return n&&i?!!i(r):!0}isSkipWarnResponse(e){return!!e.promise}send(e={},r=!1){const n=vt({},this.settings,e.settings||{}),i=e.query||{},s=jr(e,["settings","query"]),o=jg(!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),{url:c,headers:f}=this.createProxy(n,l,a),{data:h,params:p}=this.createSendData(n,s,f,r,i);return this.showLoading(n),new Promise((d,g)=>{this.axios(re(V({cancelToken:u.token},s),{url:c,headers:f,data:h,params:p})).then(v=>{var E;return this.isSkipWarnResponse(v)?d(v.promise):this.validResponse(n,v)?d(n.originResponse?v:(E=v.data)==null?void 0:E.data):(this.showError(n,v.data),g(v.data))}).catch(v=>(this.showError(n,v),g(v))).finally(()=>{delete this.records[o],this.closeLoading(n)})})}useResponse(e,r){const{response:n}=this.axios.interceptors,i=n.use(e,r);return()=>n.eject(i)}useRequest(e,r){const{request:n}=this.axios.interceptors,i=n.use(e,r);return()=>n.eject(i)}setupSkipWarn(e){if(this.stopSkipWarn&&(this.stopSkipWarn(),this.stopSkipWarn=void 0),!e.skipWarn)return;const{code:r,executor:n,callback:i,complete:s}=e.skipWarn;this.stopSkipWarn=this.useResponse(o=>{const u=(o.config.headers||{})[ls],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(re(V({},l.config),{settings:l.settings}),!0));c.catch(f=>f).finally(()=>{s&&s()}),o.promise=c}return o})}}function Mn(t={}){const e=new Lm(t),r=e.send.bind(e),n=e.cancel.bind(e),i=e.setConfig.bind(e),s=e.useRequest.bind(e),o=e.useResponse.bind(e);return Object.assign(r,re(V({},e),{instance:e,send:r,cancel:n,setConfig:i,useRequest:s,useResponse:o}))}const fn=Mn({settings:{injectHeaders:!0,loading:!0,originResponse:!0}}),hn=typeof window<"u";function Um(t){const e={};return t?(t.forEach((r,n)=>{e[n]=typeof r=="string"?decodeURIComponent(r):r}),e):{}}class sa{constructor(e={}){fe(this,"options",{type:"cache",expired:0,prefix:"__VTJ_"}),fe(this,"caches",{}),fe(this,"types"),this.types={local:hn?window.localStorage:this.caches,session:hn?window.sessionStorage:this.caches,cache:this.caches},this.config(e)}config(e={}){this.options=Object.assign(this.options,e)}save(e,r,n={}){const{type:i,expired:s,prefix:o}=V(V({},this.options),n),u=Date.now(),l=o+e,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(e,r={}){const{type:n,prefix:i}=V(V({},this.options),r),s=i+e,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(e,r),null):l}remove(e,r={}){const{type:n,prefix:i}=V(V({},this.options),r),s=this.types[n]||this.caches,o=i+e;s===this.caches?delete s[o]:s.removeItem(o)}clear(e={}){const{type:r}=V(V({},this.options),e),n=this.types[r]||this.caches;n===this.caches?this.caches={}:n.clear()}}const Lr=new sa;function oa(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Zt={exports:{}},Hm=Zt.exports,fs;function Vm(){return fs||(fs=1,(function(t,e){(function(r,n){n(e,t)})(Hm,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(g,v){var E=c.jsonpCallbackFunction||s(),m=p+"_"+E;window[E]=function(_){g({ok:!0,json:function(){return Promise.resolve(_)}}),d&&clearTimeout(d),u(m),o(E)},f+=f.indexOf("?")===-1?"?":"&";var b=document.createElement("script");b.setAttribute("src",""+f+p+"="+E),c.charset&&b.setAttribute("charset",c.charset),c.nonce&&b.setAttribute("nonce",c.nonce),c.referrerPolicy&&b.setAttribute("referrerPolicy",c.referrerPolicy),c.crossorigin&&b.setAttribute("crossorigin","true"),b.id=m,document.getElementsByTagName("head")[0].appendChild(b),d=setTimeout(function(){v(new Error("JSONP request to "+a+" timed out")),o(E),u(m),window[E]=function(){o(E)}},h),b.onerror=function(){v(new Error("JSONP request to "+a+" failed")),o(E),u(m),d&&clearTimeout(d)}})}n.exports=l})})(Zt,Zt.exports)),Zt.exports}var km=Vm();const qm=oa(km);function zm(t){if(hn){const{protocol:e,host:r,pathname:n}=location;return`${e}//${r}${t?n:""}`}else return null}function Wm(t=""){const e=t.match(Co);return e?e[0]:""}function aa(t){const e=[];for(const r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.push([r,encodeURIComponent(t[r])].join("="));return e.join("&")}function pn(t,e,r){const n={};t=(t||location.search).replace(/^[^]*\?/,""),e=e||"&",r=r||"=";let i;const s=new RegExp("(?:^|\\"+e+")([^\\"+r+"\\"+e+"]+)(?:\\"+r+"([^\\"+e+"]*))?","g");for(;(i=s.exec(t))!==null;)i[1]!==t&&(n[decodeURIComponent(i[1])]=decodeURIComponent(i[2]||""));return n}function ua(t,e){e=typeof e=="string"?pn(e):e;const r=t.split("?")[0],n=pn(t),i=Object.assign({},n,e),s=aa(i);return s?[r,s].join("?"):t}const Qt=Object.freeze(Object.defineProperty({__proto__:null,append:ua,getCurrentHost:zm,getHost:Wm,parse:pn,stringify:aa},Symbol.toStringTag,{value:"Module"}));function ca(r){return U(this,arguments,function*(t,e={}){const{query:n={}}=e;t.includes("${")&&(t=Nd(t)(n||{}));const i=ua(t,n);return yield(yield qm(i,e)).json()})}var Ur,hs;function Km(){if(hs)return Ur;hs=1,Ur=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&&t(u,i.attrs),i.text&&(u.text=""+i.text);var l="onload"in u?e:r;l(u,s),u.onload||e(u,s),o.appendChild(u)};function t(n,i){for(var s in i)n.setAttribute(s,i[s])}function e(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 Ur}var Jm=Km();const Gm=oa(Jm);function ps(t,e={}){return new Promise((r,n)=>{const{library:i}=e;Gm(t,e,(s,o)=>{s?n(s):r(i?window[i]:void 0)})})}const ds={debug:-1,log:0,info:0,warn:1,error:2},Ym=function(t,e,r,n){return function(...i){if(e&&ds[e]<=ds[t]&&console[t].apply&&(n==="*"||r.startsWith(n)))return console[t].apply(console,Zm(i,r))}};function Zm(t,e){return e!=="*"&&(typeof t[0]=="string"?t[0]=`[${e}] ${t[0]}`:t=["["+e+"]"].concat(t)),t}function Qm(t,e){if(!t)return{targetLevel:e.level,targetBizName:e.bizName};if(~t.indexOf(":")){const r=t.split(":");return{targetLevel:r[0],targetBizName:r[1]}}return{targetLevel:t,targetBizName:"*"}}const Xm={level:"warn",bizName:"*"};class ey{constructor(e){fe(this,"config"),fe(this,"options"),this.options=V(V({},Xm),e);const r=typeof location<"u"?location:{},n=(/__(?:logConf|logLevel)__=([^#/&]*)/.exec(r.href)||[])[1];this.config=Qm(n,e)}_log(e){const{targetLevel:r,targetBizName:n}=this.config,{bizName:i}=this.options;return Ym(e,r,i,n)}debug(...e){return this._log("debug")(...e)}log(...e){return this._log("log")(...e)}info(...e){return this._log("info")(...e)}warn(...e){return this._log("warn")(...e)}error(...e){return this._log("error")(...e)}}function ty(t){return new ey(t)}const it=ty({level:"log",bizName:"VTJ"});/*! js-cookie v3.0.5 | MIT */function Vt(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)t[n]=r[n]}return t}var ry={read:function(t){return t[0]==='"'&&(t=t.slice(1,-1)),t.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(t){return encodeURIComponent(t).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function dn(t,e){function r(i,s,o){if(!(typeof document>"u")){o=Vt({},e,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+"="+t.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]=t.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,"",Vt({},s,{expires:-1}))},withAttributes:function(i){return dn(this.converter,Vt({},this.attributes,i))},withConverter:function(i){return dn(Vt({},this.converter,i),this.attributes)}},{attributes:{value:Object.freeze(e)},converter:{value:Object.freeze(t)}})}var Fn=dn(ry,{path:"/"});function ny(t,e,r){Fn.set(t,e,r)}function iy(t){return Fn.get(t)}function sy(t,e){Fn.remove(t,e)}const Hr=Object.freeze(Object.defineProperty({__proto__:null,get:iy,remove:sy,set:ny},Symbol.toStringTag,{value:"Module"}));/**!
57
57
  * Copyright (c) 2026, VTJ.PRO All rights reserved.
58
58
  * @name @vtj/renderer
59
59
  * @author CHC chenhuachun1549@dingtalk.com
60
- * @version 0.16.27
60
+ * @version 0.16.28
61
61
  * @license <a href="https://vtj.pro/license.html">MIT License</a>
62
- */const Vr="0.16.27";var X=(r=>(r.Runtime="Runtime",r.Design="Design",r.Raw="Raw",r.VNode="VNode",r))(X||{});const gs=["$el","$emit","$nextTick","$parent","$root","$attrs","$slots","$watch","$props","$options","$forceUpdate"],oy=["vIf","vElseIf","vElse","vShow","vModel","vFor","vBind","vHtml"],ay={String,Number,Boolean,Array,Object,Function,Date},Xt="VtjPage",kr="VtjHomepage",la="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(","),uy="component,slot".split(",");function kt(r,e){return r.map(t=>Tt(t)||t.startsWith("/")?t:`${e}${t}`)}function vr(r){return/\.css$/.test(r)}function mr(r){return/\.js$/.test(r)}function cy(r){return/\.json$/.test(r)}function ly(r,e=!1){return e&&r.endsWith(".prod.js")?r.replace(".prod.js",".js"):r}function fy(r,e,t=!1){const n=r.filter(h=>!!h.enabled),i=[],s=[],o=[],u=[],l={},a={},c=[],f={};return n.forEach(({urls:h,assetsUrl:p,library:d,assetsLibrary:g,localeLibrary:v})=>{h==null||h.forEach(E=>{mr(E)&&i.push(ly(E,t)),vr(E)&&s.push(E)}),d&&(u.push(d),l[d]=kt(h||[],e),v&&(a[d]=v)),p&&o.push(p),g&&c.push(g),d&&g&&(f[g]=d)}),{scripts:kt(i,e),css:kt(s,e),materials:kt(o,e),libraryExports:u,materialExports:Ig(c),materialMapLibrary:f,libraryMap:l,libraryLocaleMap:a}}function hy(r,e){var s;const{name:t,parent:n,alias:i}=r;return n?(s=e[n])==null?void 0:s[i||t]:e[i||t]}function py(r=[]){const e=r.filter(n=>vr(n)),t=r.filter(n=>mr(n));return{css:e,js:t}}function dy(r,e){const t=a=>{const c=[];let f=0;for(;f<a.length;){if(/\s/.test(a[f])){f++;continue}if(a.substring(f,f+2)==="/*"){const E=a.indexOf("*/",f+2);if(E!==-1){f=E+2;continue}}if(a[f]==="@"){const E=f;for(;f<a.length&&a[f]!=="{"&&a[f]!==";";)f++;const m=a.substring(E,f).trim(),b=m.includes("@keyframes");if(a[f]===";")c.push({type:"simple-at-rule",content:a.substring(E,f+1)}),f++;else if(a[f]==="{"){const _=f+1;let w=1;for(f++;f<a.length&&w>0;)a[f]==="{"?w++:a[f]==="}"&&w--,f++;const y=a.substring(E,f),T=a.substring(_,f-1);c.push({type:b?"keyframes":"at-rule",rule:m,content:y,inner:T})}continue}const h=f;for(;f<a.length&&a[f]!=="{";)f++;if(f>=a.length)break;const p=a.substring(h,f).trim();if(!p){f++;continue}const d=f+1;let g=1;for(f++;f<a.length&&g>0;)a[f]==="{"?g++:a[f]==="}"&&g--,f++;const v=a.substring(d,f-1);c.push({type:"rule",selector:p,content:v.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}[${e}] ${d}`:d}),s=a=>{const c=a.trim();if(!c||c.includes(`[${e}]`)||/^(: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}[${e}]${p}`:c}return`${c}[${e}]`},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=t(c.inner),p=u(h);return`${c.rule} { ${p} }`}catch(h){return c.content}case"rule":if(!c.selector||!c.content)return"";const f=o(c.selector);return f.trim()?`${f} { ${c.content} }`:"";default:return""}}).filter(c=>c.trim()).join(" "),l=a=>a.replace(/\s*{\s*/g," { ").replace(/\s*}\s*/g," } ").replace(/\s*;\s*/g,"; ").replace(/\s*,\s*/g,", ").replace(/\s+/g," ").replace(/^\s+|\s+$/g,"").replace(/\s*}\s*}/g," } }").trim();try{const a=r.replace(/\/\*(?!\s*!)[\s\S]*?\*\//g,"").replace(/^\s+|\s+$/gm,"").replace(/\n\s*\n/g,`
63
- `),c=t(a),f=u(c);return l(f)}catch(a){return console.error("CSS scoping failed:",a),console.error("Input CSS:",r),r.replace(/\/\*[\s\S]*?\*\//g,"").replace(/(@keyframes\s+[^{]+\s*{[^{}]*(?:{[^}]*}[^{}]*)*})/g,c=>c).replace(/([^{}@]+)(?=\s*{)/g,c=>{const f=c.trim();return!f||f.startsWith("@")||f.includes(`[${e}]`)||n(f)?c:`${f}[${e}]`})}}const gy=750;function vy(r,e,t){let n;typeof r<"u"?n=r.innerWidth||r.document.documentElement.clientWidth:(console.warn("无法获取屏幕宽度,使用默认值375"),n=375);const i=gy;return e*n/i}function my(r,e){let t=!1,n=!1,i=!1,s="";for(let o=0;o<e.length;o++){const u=e[o];if(u==="'"&&!n&&!i?t=!t:u==='"'&&!t&&!i?n=!n:e.substr(o,4).toLowerCase()==="url("&&!t&&!n?i=!0:u===")"&&i&&(i=!1),!t&&!n&&!i){const l=e.substr(o).match(/^(-?\d+(?:\.\d+)?)\s*rpx/);if(l){const a=l[1],c=parseFloat(a),f=`${vy(r,c).toFixed(6).replace(/\.?0+$/,"")}px`;s+=f,o+=l[0].length-1;continue}}s+=u}return s}function fa(r){return Me(r)?r:JSON.stringify(r)}function yr(r,e,t,n=!1){const i=r.CSSStyleSheet,s=n?`data-v-${e}`:e,o=r.__uniConfig?my(r,t):t,u=n?dy(o,s):o,l=!!r.__uniConfig;if(i.prototype.replaceSync&&!l){const a=new i;a.id=e,a.replaceSync(u);const c=r.document,f=c.adoptedStyleSheets,h=Array.from(f).filter(p=>p.id!==e);c.adoptedStyleSheets=[...h,a]}else{const a=r.document;let c=a.getElementById(e);c?c.innerHTML=u:(c=a.createElement("style"),c.id=e,c.innerHTML=u,a.head.appendChild(c))}}function yy(r,e){return U(this,null,function*(){const t=yield window.fetch(e).then(n=>n.text()).catch(()=>"");t&&yr(window,r,t)})}function ha(r,e=window){const t=e.document,n=e.document.head;for(const i of r)if(!t.getElementById(i)){const s=t.createElement("link");s.rel="stylesheet",s.id=i,s.href=i,n.appendChild(s)}}function pa(n,i){return U(this,arguments,function*(r,e,t=window){const s=t.document,o=t.document.head;let u=t[e];return u?u.default||u:new Promise((l,a)=>{for(const c of r){const f=s.createElement("script");f.src=c,f.onload=()=>{u=t[e],u?l(u.default||u):a(null)},f.onerror=h=>{a(h)},o.appendChild(f)}})})}function by(r){return ze(r)&&Object.getOwnPropertyNames(r.prototype||{}).length===0||ze(r==null?void 0:r.install)}function _y(r){return uy.includes(r)}function wy(r){return la.includes(r)}function Rt(r=window){const e=window==null?void 0:window.Mock;if(e)return e;const t=r==null?void 0:r.Mock;if(t&&window)return window.Mock=t,t}function Ey(r){if(typeof window>"u")return;const e=window[0]||window;if(e.__simulator__)try{const t=e.__simulator__.engine.provider.errorHandler;t&&t(r)}catch(t){}}function At(r,e,t=!1,n=!1,i=!1){var s;try{const o=['"use strict";',"var __self = arguments[0];"];o.push("return ");let u=(r.value||"").trim();i||(u=u.replace(/this(\W|$)/g,(a,c)=>`__self${c}`)),u=o.join(`
62
+ */const Vr="0.16.28";var X=(t=>(t.Runtime="Runtime",t.Design="Design",t.Raw="Raw",t.VNode="VNode",t))(X||{});const gs=["$el","$emit","$nextTick","$parent","$root","$attrs","$slots","$watch","$props","$options","$forceUpdate"],oy=["vIf","vElseIf","vElse","vShow","vModel","vFor","vBind","vHtml"],ay={String,Number,Boolean,Array,Object,Function,Date},Xt="VtjPage",kr="VtjHomepage",la="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(","),uy="component,slot".split(",");function kt(t,e){return t.map(r=>Tt(r)||r.startsWith("/")?r:`${e}${r}`)}function vr(t){return/\.css$/.test(t)}function mr(t){return/\.js$/.test(t)}function cy(t){return/\.json$/.test(t)}function ly(t,e=!1){return e&&t.endsWith(".prod.js")?t.replace(".prod.js",".js"):t}function fy(t,e,r=!1){const n=t.filter(h=>!!h.enabled),i=[],s=[],o=[],u=[],l={},a={},c=[],f={};return n.forEach(({urls:h,assetsUrl:p,library:d,assetsLibrary:g,localeLibrary:v})=>{h==null||h.forEach(E=>{mr(E)&&i.push(ly(E,r)),vr(E)&&s.push(E)}),d&&(u.push(d),l[d]=kt(h||[],e),v&&(a[d]=v)),p&&o.push(p),g&&c.push(g),d&&g&&(f[g]=d)}),{scripts:kt(i,e),css:kt(s,e),materials:kt(o,e),libraryExports:u,materialExports:Ig(c),materialMapLibrary:f,libraryMap:l,libraryLocaleMap:a}}function hy(t,e){var s;const{name:r,parent:n,alias:i}=t;return n?(s=e[n])==null?void 0:s[i||r]:e[i||r]}function py(t=[]){const e=t.filter(n=>vr(n)),r=t.filter(n=>mr(n));return{css:e,js:r}}function dy(t,e){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 E=a.indexOf("*/",f+2);if(E!==-1){f=E+2;continue}}if(a[f]==="@"){const E=f;for(;f<a.length&&a[f]!=="{"&&a[f]!==";";)f++;const m=a.substring(E,f).trim(),b=m.includes("@keyframes");if(a[f]===";")c.push({type:"simple-at-rule",content:a.substring(E,f+1)}),f++;else if(a[f]==="{"){const _=f+1;let w=1;for(f++;f<a.length&&w>0;)a[f]==="{"?w++:a[f]==="}"&&w--,f++;const y=a.substring(E,f),T=a.substring(_,f-1);c.push({type:b?"keyframes":"at-rule",rule:m,content:y,inner:T})}continue}const h=f;for(;f<a.length&&a[f]!=="{";)f++;if(f>=a.length)break;const p=a.substring(h,f).trim();if(!p){f++;continue}const d=f+1;let g=1;for(f++;f<a.length&&g>0;)a[f]==="{"?g++:a[f]==="}"&&g--,f++;const v=a.substring(d,f-1);c.push({type:"rule",selector:p,content:v.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}[${e}] ${d}`:d}),s=a=>{const c=a.trim();if(!c||c.includes(`[${e}]`)||/^(: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}[${e}]${p}`:c}return`${c}[${e}]`},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=t.replace(/\/\*(?!\s*!)[\s\S]*?\*\//g,"").replace(/^\s+|\s+$/gm,"").replace(/\n\s*\n/g,`
63
+ `),c=r(a),f=u(c);return l(f)}catch(a){return console.error("CSS scoping failed:",a),console.error("Input CSS:",t),t.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(`[${e}]`)||n(f)?c:`${f}[${e}]`})}}const gy=750;function vy(t,e,r){let n;typeof t<"u"?n=t.innerWidth||t.document.documentElement.clientWidth:(console.warn("无法获取屏幕宽度,使用默认值375"),n=375);const i=gy;return e*n/i}function my(t,e){let r=!1,n=!1,i=!1,s="";for(let o=0;o<e.length;o++){const u=e[o];if(u==="'"&&!n&&!i?r=!r:u==='"'&&!r&&!i?n=!n:e.substr(o,4).toLowerCase()==="url("&&!r&&!n?i=!0:u===")"&&i&&(i=!1),!r&&!n&&!i){const l=e.substr(o).match(/^(-?\d+(?:\.\d+)?)\s*rpx/);if(l){const a=l[1],c=parseFloat(a),f=`${vy(t,c).toFixed(6).replace(/\.?0+$/,"")}px`;s+=f,o+=l[0].length-1;continue}}s+=u}return s}function fa(t){return Me(t)?t:JSON.stringify(t)}function yr(t,e,r,n=!1){const i=t.CSSStyleSheet,s=n?`data-v-${e}`:e,o=t.__uniConfig?my(t,r):r,u=n?dy(o,s):o,l=!!t.__uniConfig;if(i.prototype.replaceSync&&!l){const a=new i;a.id=e,a.replaceSync(u);const c=t.document,f=c.adoptedStyleSheets,h=Array.from(f).filter(p=>p.id!==e);c.adoptedStyleSheets=[...h,a]}else{const a=t.document;let c=a.getElementById(e);c?c.innerHTML=u:(c=a.createElement("style"),c.id=e,c.innerHTML=u,a.head.appendChild(c))}}function yy(t,e){return U(this,null,function*(){const r=yield window.fetch(e).then(n=>n.text()).catch(()=>"");r&&yr(window,t,r)})}function ha(t,e=window){const r=e.document,n=e.document.head;for(const i of t)if(!r.getElementById(i)){const s=r.createElement("link");s.rel="stylesheet",s.id=i,s.href=i,n.appendChild(s)}}function pa(n,i){return U(this,arguments,function*(t,e,r=window){const s=r.document,o=r.document.head;let u=r[e];return u?u.default||u:new Promise((l,a)=>{for(const c of t){const f=s.createElement("script");f.src=c,f.onload=()=>{u=r[e],u?l(u.default||u):a(null)},f.onerror=h=>{a(h)},o.appendChild(f)}})})}function by(t){return ze(t)&&Object.getOwnPropertyNames(t.prototype||{}).length===0||ze(t==null?void 0:t.install)}function _y(t){return uy.includes(t)}function wy(t){return la.includes(t)}function Rt(t=window){const e=window==null?void 0:window.Mock;if(e)return e;const r=t==null?void 0:t.Mock;if(r&&window)return window.Mock=r,r}function Ey(t){return/^\([\s\S]*\)/.test(t.trim())}function Sy(t){return/\w+\([\s\S]*\)$/.test(t.trim())}function Ty(t){if(typeof window>"u")return;const e=window[0]||window;if(e.__simulator__)try{const r=e.__simulator__.engine.provider.errorHandler;r&&r(t)}catch(r){}}function At(t,e,r=!1,n=!1,i=!1){var s;try{const o=['"use strict";',"var __self = arguments[0];"];o.push("return ");let u=(t.value||"").trim();i||(u=u.replace(/this(\W|$)/g,(a,c)=>`__self${c}`)),u=o.join(`
64
64
  `)+u;const l=i?`
65
65
  ${u}
66
- `:`with(${t?"{}":"$scope || {}"}) { ${u} }`;return new Function("$scope",l)(e)}catch(o){if(it.error("parseExpression.error",o,r,(s=e==null?void 0:e.__self)!=null?s:e),Ey(o),n)throw o}}function pe(r,e,t=!1,n=!1,i=!1){var o;const s=At(r,e,t,n,i);if(typeof s!="function"&&(it.error("parseFunction.error","not a function",r,(o=e==null?void 0:e.__self)!=null?o:e),n))throw new Error(`"${r.value}" not a function`);return s}function me(r){return r&&r.type==="JSExpression"}function de(r){return typeof r=="object"&&r&&r.type==="JSFunction"}const Sy={session:!1,authKey:"Authorization",storageKey:"ACCESS_STORAGE",storagePrefix:"__VTJ_",unauthorized:void 0,auth:"/#/login",redirectParam:"r",unauthorizedCode:401,unauthorizedMessage:"登录已经失效,请重新登录!",noPermissionMessage:"无权限访问该页面",appName:"",statusKey:"code"},Ty=Symbol("access");class da{constructor(e){k(this,"options");k(this,"data",null);k(this,"mode",X.Raw);k(this,"interceptResponse",!0);k(this,"isTipShowing",!1);this.options=Object.assign({},Sy,e),this.loadData()}enableIntercept(){this.interceptResponse=!0}disableIntercept(){this.interceptResponse=!1}connect(e){const{mode:t,router:n,request:i}=e;this.mode=t,n&&this.mode!==X.Design&&this.setGuard(n),i&&this.setRequest(i)}login(e){const{storageKey:t,storagePrefix:n,session:i,authKey:s}=this.options;this.setData(e),this.data&&(Lr.save(t,e,{type:"local",prefix:n}),i&&Hr.set(s,this.data.token))}clear(){const{storageKey:e,storagePrefix:t,session:n,authKey:i}=this.options;this.data=null,Lr.remove(e,{type:"local",prefix:t}),n&&Hr.remove(i)}logout(){this.clear(),this.toLogin()}getData(){return this.data?this.data:(this.loadData(),this.data)}getToken(){var e;return this.data||this.loadData(),(e=this.data)==null?void 0:e.token}can(e){const{appName:t}=this.options,{permissions:n={}}=this.data||{};return typeof e=="function"?e(n):Wi(e).every(i=>n[i]||n[t+"."+i])}some(e){const{appName:t}=this.options,{permissions:n={}}=this.data||{};return Wi(e).some(i=>n[i]||n[t+"."+i])}install(e){e.config.globalProperties.$access=this,e.provide(Ty,this)}isAuthPath(e){const{auth:t,isAuth:n}=this.options;if(n)return n(e);if(e.path&&typeof t=="string"){const i=t.split("#")[1]||t;return e.path===i}return!1}toLogin(){const{auth:e,redirectParam:t}=this.options;if(!e)return;const n=t?`?${t}=${encodeURIComponent(location.href)}`:"";typeof e=="function"?e(n):location.href=t?`${e}${n}`:e}setData(e){const{privateKey:t}=this.options;if(Array.isArray(e)&&t){const n=e.map(i=>zi(i,t));try{this.data=JSON.parse(n.join(""))}catch(i){console.warn(i)}return}if(typeof e=="string")try{const n=t?zi(e,t):e;n?this.data=JSON.parse(n):console.warn("RSA解密失败或登录信息缺失")}catch(n){console.warn(n)}else this.data=e}loadData(){const{storageKey:e,storagePrefix:t}=this.options,n=Lr.get(e,{type:"local",prefix:t});this.setData(n||null)}isLogined(){const{session:e,authKey:t}=this.options;return e&&t?!!Hr.get(t):!!this.getToken()}hasRoutePermission(e){if(e.name===Xt){const t=e.params.id;return t&&this.can(t)}return e.meta.__vtj__?this.can(e.meta.__vtj__):e.meta.permission?this.can(e.meta.permission):!0}setGuard(e){e.beforeEach((t,n,i)=>this.guard(t,i))}guard(e,t){return U(this,null,function*(){if(this.isWhiteList(e)||this.isAuthPath(e))return t();if(this.isLogined()){if(this.hasRoutePermission(e))return t();{const{noPermissionMessage:n="无权限访问",unauthorized:i=!1}=this.options;return yield this.showTip(n),ze(i)?(i(),t(!1)):Me(i)?t(i):t(!1)}}t(!1),yield ir(0),this.toLogin()})}isWhiteList(e){const{whiteList:t}=this.options;return t?Array.isArray(t)?t.some(n=>e.fullPath.startsWith(n)):t(e):!1}isUnauthorized(e){var i;const{unauthorizedCode:t=401,statusKey:n="code"}=this.options;return e.status===t||((i=e.data)==null?void 0:i[n])===t}showUnauthorizedAlert(e){return U(this,null,function*(){const{unauthorizedMessage:t="登录已失效"}=this.options;this.isUnauthorized(e)&&(yield this.showTip(t))&&this.toLogin()})}showTip(e){return U(this,null,function*(){var n,i;const{alert:t}=this.options;return this.isTipShowing?!1:t?(this.isTipShowing=!0,yield ir(150),yield(i=(n=t(e,{title:"提示",type:"warning"}))==null?void 0:n.catch(()=>!0))==null?void 0:i.finally(()=>{this.isTipShowing=!1})):(window.alert(e),!0)})}setRequest(e){e.useRequest(t=>{var n,i;return(n=this.data)!=null&&n.token&&(t.headers[this.options.authKey]=(i=this.data)==null?void 0:i.token),t}),e.useResponse(t=>U(this,null,function*(){return this.interceptResponse&&(yield this.showUnauthorizedAlert(t)),t}),t=>U(this,null,function*(){if(!this.interceptResponse)return Promise.reject(t);const n=t.response||t||{};return yield this.showUnauthorizedAlert(n),Promise.reject(t)}))}}function Ry(r={}){const{notify:e,loading:t,settings:n={},Startup:i,access:s,useTitle:o,alert:u}=r;let l=null;return{request:Mn({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=>{e&&e(a||"未知错误")},showLoading:()=>{l&&l.close(),t&&(l=t())},hideLoading:()=>{l&&(l.close(),l=null)}},n)}),jsonp:ca,notify:e,loading:t,useTitle:o,alert:u,startupComponent:i,access:s?new da(V({alert:u},s)):void 0}}function Ay(r,e){const{jsonp:t,request:n}=e;if(r.method==="jsonp")return(i={})=>t(r.url,re(V({},r.jsonpOptions),{query:i}));{const i=r.headers?At(r.headers,{},!0):void 0,s={url:r.url,method:r.method,settings:re(V({},r.settings),{headers:i})};return(o,u)=>(delete s.data,n.send(vt(s,u||{},{data:o})))}}function xy(r,e){const{metaQuery:t}=e;if(!t)return;const{code:n,queryCode:i}=r;return(s,o)=>{if(!t){console.warn("adapter.metaQuery is not defined!");return}return t(n,i,s,o)}}function Oy(r=[],e=[],t){const n={};for(const i of r){const s=Ay(i,t);n[i.id]=s,n[i.name]=s}for(const i of e)n[i.id]=xy(i,t);return n}function $y(){return U(this,arguments,function*(r=[],e=window){const t=Rt(e);t&&(ga(e),r.forEach(n=>Cy(t,n)))})}function Dy(r,e=window){const t=de(r.mockTemplate)&&r.mockTemplate.value?pe(r.mockTemplate,{},!0):void 0,n=Rt(e);return(...i)=>U(null,null,function*(){let s={};if(t)try{s=yield t.apply(t,i)}catch(o){it.warn("模拟数据模版异常",o)}return n==null?void 0:n.mock(s)})}function Cy(r,e){if(!e.mock)return;const{url:t,mockTemplate:n}=e;if(t&&n)try{const i=Tt(t)?new URL(t).pathname:t,s=Cn(`(.*)${i}(.*)`),o=Hg(i,{decode:decodeURIComponent}),u=At(n,{},!0);r.mock(s,l=>{var p;const a=Qt.parse(l.url)||{},c=l.body instanceof FormData?Um(l.body):l.body,f=Tt(l.url)?new URL(l.url).pathname:l.url.split("?")[0],h=(p=o(f))==null?void 0:p.params;Object.assign(l,{data:c,params:h,query:a});try{return r.mock(u(l))}catch(d){return console.warn("[mockApi]",s,l,d),null}})}catch(i){console.warn("mockApi",i)}}function ga(r=window){const e=Rt(r);e&&(e._mocked={})}class By{constructor(e){k(this,"__id",null);k(this,"__mode");k(this,"__instance",null);k(this,"__contextRefs",{});k(this,"__refs",{});k(this,"__refCaches",{});k(this,"context",{});k(this,"state",{});k(this,"props",{});k(this,"$props",{});k(this,"$refs",{});k(this,"$el",null);k(this,"$emit",null);k(this,"$nextTick",null);k(this,"$parent",null);k(this,"$root",null);k(this,"$attrs",null);k(this,"$slots",null);k(this,"$watch",null);k(this,"$options",null);k(this,"$forceUpdate",null);k(this,"$components",{});k(this,"$libs",{});k(this,"$apis",{});k(this,"$provider",null);k(this,"__transform",{});const{mode:t,dsl:n,attrs:i}=e;this.__mode=t,n&&(this.__id=n.id||null,this.__transform=n.transform||{}),i&&Object.assign(this,i)}setup(e,t=or){const n=t.getCurrentInstance();if(!n)return;this.__refs={},this.__refCaches={},this.$refs={},this.context={},this.__contextRefs={},this.__instance=n.proxy;const i=n.appContext.config.globalProperties;Object.assign(this,i),Object.assign(this,e||{}),this.__proxy(),t.onMounted(()=>{this.__proxy()}),t.onUnmounted(()=>{this.__cleanup()}),t.onBeforeUpdate(()=>{this.__reset()})}__proxy(){this.__instance&&gs.forEach(e=>{var t;this[e]=(t=this.__instance)==null?void 0:t[e]})}__cleanup(){gs.forEach(e=>{this[e]=null}),this.__reset()}__reset(){this.__refs={},this.__refCaches={},this.$refs={},this.__contextRefs={},this.context={}}__parseFunction(e){var t;if(e)if(this.__mode===X.Runtime){const{id:n,type:i}=e,s=n&&(t=this.__transform[n])!=null?t:e.value;return pe({type:i,value:s},this)}else return pe(e,this)}__parseExpression(e){var t;if(e)if(this.__mode===X.Runtime){const{id:n,type:i}=e,s=n&&(t=this.__transform[n])!=null?t:e.value;return At({type:i,value:s},this)}else return At(e,this)}__ref(e=null,t){if(this.__mode===X.VNode)return;e&&e!==this.__id&&(this.__contextRefs[e]=this);let n=e?this.__refCaches[e]:null;return n||(n=i=>U(this,null,function*(){var o,u;yield ir(0);let s=(i==null?void 0:i.$vtjEl)||(i==null?void 0:i.$el)||((u=(o=i==null?void 0:i._)==null?void 0:o.vnode)==null?void 0:u.el)||i;if(!s){typeof t=="string"&&(delete this.$refs[t],e&&delete this.__refs[e]);return}return s.nodeType===3&&s.nextSibling&&(s=s.nextSibling),s.__vtj__=e,X.Design===this.__mode&&(s.__context__=this,s.draggable=!0),e&&(this.__refs[e]=this.__getRefEl(this.__refs,e,i)),typeof t=="function"?t(i):t&&(this.$refs[t]=this.__getRefEl(this.$refs,t,i)),i}),e&&(this.__refCaches[e]=n),n)}__getRefEl(e,t,n){const i=e[t];if(i&&n!==i){const s=new Set([].concat(i,n));return Array.from(s)}else return n}__clone(e={}){const t=V(V({},this.context),e),n=re(V({},t),{context:t});return n.context.__proto__=this.context,n.__proto__=this,n}}function gn(r){var f,p;const{Vue:e=or,mode:t=X.Runtime,components:n={},libs:i={},apis:s={},loader:o}=r,u=e.computed(()=>r.dsl),l={$components:n,$libs:i,$apis:s},a=new By({mode:t,dsl:u.value,attrs:l}),c=e.defineComponent(V({name:u.value.name,__scopeId:u.value.id?`data-v-${u.value.id}`:void 0,props:V({},jy((f=u.value.props)!=null?f:[],a)),setup(){return U(this,arguments,function*(d={}){var _,w,y,T;a.$props=d,a.props=d,u.value.id&&yr(r.window||window,u.value.id,u.value.css||"",!0),a.state=Ny(e,(_=u.value.state)!=null?_:{},a);const g=Iy(e,(w=u.value.computed)!=null?w:{},a),v=My((y=u.value.methods)!=null?y:{},a),E=Fy(e,u.value.inject,a);for(const[O,L]of Object.entries(E||{}))E[O]=e.inject(O,L);const m=Ly(u.value.dataSources||{},a),b=V(V(V(V({},E),g),v),m);return a.setup(b,e),Uy(e,(T=u.value.watch)!=null?T:[],a),V(V(V({vtj:a,state:a.state},d),g),v)})},emits:Py(u.value.emits),expose:["vtj",...u.value.expose||[]],render(){if(!u.value.nodes)return null;const d=u.value.nodes||[];if(d.length===1)return ot(d[0],a,e,o,d);{const g=d.map(v=>ot(v,a,e,o,d));return e.createVNode("div",{},g)}}},Hy((p=u.value.lifeCycles)!=null?p:{},a)));return{renderer:e.markRaw(c),context:a}}function Py(r=[]){return r.map(e=>Me(e)?e:e.name)}function jy(r=[],e){const t=n=>n?(Array.isArray(n)?n:[n]).map(i=>ay[i]):void 0;return r.map(n=>Me(n)?{name:n}:{name:n.name,type:n.type,required:n.required,default:me(n.default)?e.__parseExpression(n.default):n.default}).reduce((n,i)=>(n[i.name]={type:t(i.type),required:i.required,default:i.default},n),{})}function Ny(r,e,t){return r.reactive(Object.keys(e||{}).reduce((n,i)=>{let s=e[i];return me(s)?s=t.__parseExpression(s):de(s)&&(s=t.__parseFunction(s)),n[i]=s,n},{}))}function Iy(r,e,t){return Object.entries(e!=null?e:{}).reduce((n,[i,s])=>(n[i]=r.computed(t.__parseFunction(s)),n),{})}function My(r,e){return Object.entries(r!=null?r:{}).reduce((t,[n,i])=>(t[n]=e.__parseFunction(i),t),{})}function Fy(r,e=[],t){return e.reduce((n,i)=>{var a;const{name:s,from:o}=i||{};i.default;const u=me(o)?t.__parseExpression(o)||s:o!=null?o:s,l=me(i.default)?t.__parseExpression(i.default):(a=i.default)!=null?a:null;return n[s]=r.inject(u,l),n},{})}function Ly(r,e){return Object.keys(r).reduce((t,n)=>{const i=r[n];if(i.type==="mock")t[n]=Dy(i);else if(i.ref){const s=e.$apis[i.ref],o=de(i.transform)?i.transform.value?e.__parseFunction(i.transform):void 0:i.transform;t[n]=(...u)=>U(null,null,function*(){const l=yield s.apply(e,u);return o?o(l):l})}return t},{})}function Uy(r,e=[],t){e.forEach(n=>{r.watch(t.__parseExpression(n.source),t.__parseFunction(n.handler),{deep:n.deep,immediate:n.immediate})})}function Hy(r,e){return Object.entries(r!=null?r:{}).reduce((t,[n,i])=>{const s=e.__parseFunction(i);return t[n]=()=>U(null,null,function*(){ze(s)&&(yield ir(0),yield s())}),t},{})}class Vy{constructor(){k(this,"__props",{});k(this,"__events",{});k(this,"__nodes",{})}setProps(e,t){this.__props[e]=t}getProps(e){return this.__props[e]}loadProps(e,t){return(e?this.getProps(e):null)||(e&&this.setProps(e,t),t)}setEvents(e,t){}getEvents(e){return this.__events[e]}loadEvents(e,t){return(e?this.getEvents(e):null)||(e&&this.setEvents(e,t),t)}setNode(e,t){this.__nodes[e]=t}getNode(e){return this.__nodes[e]}loadNode(e,t){return(e?this.getNode(e):null)||(e&&this.setNode(e,t),t)}isEqual(e,t){return vd(e,t)}clear(){this.__props={},this.__events={},this.__nodes={}}}const qt=new Vy,ky=new Gg;let qr=[],Xe={},zt={};const qy=(r,e)=>e;function va(t){return U(this,arguments,function*(r,e=window){const{urls:n=[],library:i}=r,s=n.filter(u=>mr(u));if(s.length===0||!i)return null;const o=n.filter(u=>vr(u));return o.length&&ha(o,e),yield pa(s,i,e).catch(u=>(console.warn("loadScriptUrl error",s,i,u),null))})}function vn(r){const{getDsl:e,getDslByUrl:t,options:n}=r;return n.window&&(qr.forEach(i=>{delete n.window[i]}),qr=[]),(i,s,o,u=or)=>{if(!o||typeof o=="string")return s;let l="";if(o.type==="Schema"&&o.id)return l=o.id+"_"+i,zt[l]||(zt[l]=u.defineAsyncComponent(()=>U(null,null,function*(){const a=Xe[o.id]||(yield ky.add(o.id,()=>e(o.id)));return a&&(a.name=s,Xe[o.id]=a),a?gn(re(V({Vue:u,mode:X.Runtime},n),{dsl:_i(a),loader:vn(r)})).renderer:null})));if(o.type==="UrlSchema"&&o.url)return l=o.url+"_"+i,zt[l]||(zt[l]=u.defineAsyncComponent(()=>U(null,null,function*(){const a=Xe[o.url]||(yield t(o.url));return a&&(a.name=s,Xe[o.url]=a),a?gn(re(V({},n),{Vue:u,dsl:_i(a),mode:X.Runtime,loader:vn(r)})).renderer:null})));if(o.type==="Plugin"){let a=o.library?Xe[o.library]:null;return a||(o.library&&qr.push(o.library),a=Xe[o.library||Symbol()]=u.defineAsyncComponent(()=>U(null,null,function*(){return(yield va(o,n.window))||(console.warn("getPlugin result is null",o),null)})),a)}return s}}function ot(r,e,t=or,n=qy,i=[],s=!1,o=0){var _;if(!r||!r.name||r.invisible)return null;const u=(_=t.getCurrentInstance())==null?void 0:_.appContext,{id:l=null,directives:a=[]}=r,{vIf:c,vElseIf:f,vElse:h,vFor:p,vShow:d,vModels:g,vBind:v,vHtml:E,others:m}=ma(a);if(!s&&(f||h))return null;if(c&&!Wy(c,e))return Zy(r,e,t,n,i);const b=(w,y=0)=>{var q,z,x,C;const T=w.$components,O=(()=>{var N,te,xe,we;if(r.name==="component")return Ky(w,(N=r.props)==null?void 0:N.is);if(r.name==="slot")return r.name;const D=n(`${r.id}_${y}`,r.name,r.from,t);return Me(D)?_y(D)||wy(D)?D:(we=(xe=T[D])!=null?xe:(te=u==null?void 0:u.app)==null?void 0:te.component(D))!=null?we:D:D})(),L=Jy(l,(q=r.props)!=null?q:{},w),S=Yy(t,r.id,(z=r.events)!=null?z:{},w);if(r.name==="slot")return Qy(t,r,L,w,n);v&&Object.assign(L,w.__parseExpression(v.value)),d&&(L.style=Object.assign((x=L.style)!=null?x:{},e0(d,w))),E&&Object.assign(L,t0(E,w)),g.forEach(D=>{la.includes(r.name)?Object.assign(L,r0(D,w)):Object.assign(L,n0(t,D,w))});const A=i0(t,(C=r.children)!=null?C:[],w,n,r),M=w!=null&&w.__id?`data-v-${w.__id}`:void 0,j=M?{[M]:""}:{},I=w.__mode===X.Design?{"data-vtj":l}:{},B=`${l}_${y}`,$=V(V(V(V({key:B},j),I),L),S);qt.isEqual($,qt.getNode(B))||qt.setNode(B,$);let H=t.createVNode(O,qt.getNode(B)||$||{},A);const F=u?zy(u,m,w):[];return F.length&&(H=t.withDirectives(H,F)),H};return p?a0(p,b,e):b(e,o)}function zy(r,e,t){const n=r.app;return e.map(i=>{const s=typeof i.name=="string"?n.directive(i.name):t.__parseExpression(i.name);if(!s)return null;const o=[s];return i.value&&o.push(t.__parseExpression(i.value)),i.arg&&o.push(i.arg),i.modifiers&&o.push(i.modifiers),o}).filter(i=>!!i)}function ma(r=[]){const e=r.find(c=>Ee(c.name)==="vIf"),t=r.find(c=>Ee(c.name)==="vElseIf"),n=r.find(c=>Ee(c.name)==="vElse"),i=r.find(c=>Ee(c.name)==="vFor"),s=r.find(c=>Ee(c.name)==="vShow"),o=r.find(c=>Ee(c.name)==="vBind"),u=r.find(c=>Ee(c.name)==="vHtml"),l=r.filter(c=>Ee(c.name)==="vModel"),a=r.filter(c=>!oy.includes(Ee(c.name)));return{vIf:e,vElseIf:t,vElse:n,vFor:i,vShow:s,vModels:l,vBind:o,others:a,vHtml:u}}function Wy(r,e){return!!e.__parseExpression(r.value)}function Ky(r,e){return e?me(e)?r.__parseExpression(e):e:"div"}function Jy(r,e,t){const n=mn(e,t);return n.ref=t.__ref(r,n.ref),n}function mn(r,e){return me(r)?e.__parseExpression(r):de(r)?e.__parseFunction(r):Array.isArray(r)?r.map(t=>mn(t,e)):typeof r=="object"?Object.keys(r||{}).reduce((t,n)=>{let i=r[n];return t[n]=mn(i,e),t},{}):r}function Gy(r,e){return t=>{var n;((n=t==null?void 0:t.key)==null?void 0:n.toLowerCase())===e.toLowerCase()&&r(t)}}function Yy(r,e,t,n){const i=["passive","capture","once"],s={capture:"Capture",once:"Once",passive:"OnceCapture"};return Object.keys(t||{}).reduce((o,u)=>{const l=t[u],a=ya(l.modifiers),c=a.find(p=>i.includes(p)),f="on"+Fd(u)+(c&&s[c]||""),h=n.__parseFunction(l.handler);return h&&(o[f]=r.withModifiers(a.includes("enter")?Gy(h,"enter"):h,a)),o},{})}function Zy(r,e,t,n,i=[]){let s=i.findIndex(o=>o.id===r.id);for(let o=++s;o<i.length;o++){const{directives:u=[]}=i[o],{vElseIf:l,vElse:a}=ma(u);if(l){if(e.__parseExpression(l.value))return ot(i[o],e,t,n,i,!0);continue}if(a)return ot(i[o],e,t,n,i,!0)}return null}function ya(r={},e=!1){const t=Object.keys(r);return e?t.map(n=>"."+n):t}function Qy(r,e,t,n,i){var l;const{children:s}=e,o=Xy(e,n),u=(l=n.$slots)==null?void 0:l[o.name];return u?u(t):s?Me(s)?r.createTextVNode(s):me(s)?r.createTextVNode(fa(n.__parseExpression(s))):Array.isArray(s)?s.map((a,c)=>ot(a,n,r,i,s,!1,c)):null:null}function Xy(r,e){const{props:t}=r,n=(t==null?void 0:t.name)||"default";return{name:me(n)?e.__parseExpression(n):n,params:[]}}function e0(r,e){return e.__parseExpression(r.value)?{}:{display:"none"}}function t0(r,e){return{innerHTML:e.__parseExpression(r.value)||""}}function r0(r,e){var n;const t={type:"JSFunction",value:(n=r.value)!=null&&n.value?`(v) => {
67
- ${r.value.value} = v?.target.value;
68
- }`:"(v) => {}"};return{[me(r.arg)?e.__parseExpression(r.arg):r.arg||"value"]:e.__parseExpression(r.value),onInput:e.__parseFunction(t)}}function n0(r,e,t){var u;const n={type:"JSFunction",value:(u=e.value)!=null&&u.value?`(v) => {
66
+ `:`with(${r?"{}":"$scope || {}"}) { ${u} }`;return new Function("$scope",l)(e)}catch(o){if(it.error("parseExpression.error",o,t,(s=e==null?void 0:e.__self)!=null?s:e),Ty(o),n)throw o}}function pe(t,e,r=!1,n=!1,i=!1){var o;const s=At(t,e,r,n,i);if(typeof s!="function"&&(it.error("parseFunction.error","not a function",t,(o=e==null?void 0:e.__self)!=null?o:e),n))throw new Error(`"${t.value}" not a function`);return s}function me(t){return t&&t.type==="JSExpression"}function de(t){return typeof t=="object"&&t&&t.type==="JSFunction"}const Ry={session:!1,authKey:"Authorization",storageKey:"ACCESS_STORAGE",storagePrefix:"__VTJ_",unauthorized:void 0,auth:"/#/login",redirectParam:"r",unauthorizedCode:401,unauthorizedMessage:"登录已经失效,请重新登录!",noPermissionMessage:"无权限访问该页面",appName:"",statusKey:"code"},Ay=Symbol("access");class da{constructor(e){k(this,"options");k(this,"data",null);k(this,"mode",X.Raw);k(this,"interceptResponse",!0);k(this,"isTipShowing",!1);this.options=Object.assign({},Ry,e),this.loadData()}enableIntercept(){this.interceptResponse=!0}disableIntercept(){this.interceptResponse=!1}connect(e){const{mode:r,router:n,request:i}=e;this.mode=r,n&&this.mode!==X.Design&&this.setGuard(n),i&&this.setRequest(i)}login(e){const{storageKey:r,storagePrefix:n,session:i,authKey:s}=this.options;this.setData(e),this.data&&(Lr.save(r,e,{type:"local",prefix:n}),i&&Hr.set(s,this.data.token))}clear(){const{storageKey:e,storagePrefix:r,session:n,authKey:i}=this.options;this.data=null,Lr.remove(e,{type:"local",prefix:r}),n&&Hr.remove(i)}logout(){this.clear(),this.toLogin()}getData(){return this.data?this.data:(this.loadData(),this.data)}getToken(){var e;return this.data||this.loadData(),(e=this.data)==null?void 0:e.token}can(e){const{appName:r}=this.options,{permissions:n={}}=this.data||{};return typeof e=="function"?e(n):Wi(e).every(i=>n[i]||n[r+"."+i])}some(e){const{appName:r}=this.options,{permissions:n={}}=this.data||{};return Wi(e).some(i=>n[i]||n[r+"."+i])}install(e){e.config.globalProperties.$access=this,e.provide(Ay,this)}isAuthPath(e){const{auth:r,isAuth:n}=this.options;if(n)return n(e);if(e.path&&typeof r=="string"){const i=r.split("#")[1]||r;return e.path===i}return!1}toLogin(){const{auth:e,redirectParam:r}=this.options;if(!e)return;const n=r?`?${r}=${encodeURIComponent(location.href)}`:"";typeof e=="function"?e(n):location.href=r?`${e}${n}`:e}setData(e){const{privateKey:r}=this.options;if(Array.isArray(e)&&r){const n=e.map(i=>zi(i,r));try{this.data=JSON.parse(n.join(""))}catch(i){console.warn(i)}return}if(typeof e=="string")try{const n=r?zi(e,r):e;n?this.data=JSON.parse(n):console.warn("RSA解密失败或登录信息缺失")}catch(n){console.warn(n)}else this.data=e}loadData(){const{storageKey:e,storagePrefix:r}=this.options,n=Lr.get(e,{type:"local",prefix:r});this.setData(n||null)}isLogined(){const{session:e,authKey:r}=this.options;return e&&r?!!Hr.get(r):!!this.getToken()}hasRoutePermission(e){if(e.name===Xt){const r=e.params.id;return r&&this.can(r)}return e.meta.__vtj__?this.can(e.meta.__vtj__):e.meta.permission?this.can(e.meta.permission):!0}setGuard(e){e.beforeEach((r,n,i)=>this.guard(r,i))}guard(e,r){return U(this,null,function*(){if(this.isWhiteList(e)||this.isAuthPath(e))return r();if(this.isLogined()){if(this.hasRoutePermission(e))return r();{const{noPermissionMessage:n="无权限访问",unauthorized:i=!1}=this.options;return yield this.showTip(n),ze(i)?(i(),r(!1)):Me(i)?r(i):r(!1)}}r(!1),yield ir(0),this.toLogin()})}isWhiteList(e){const{whiteList:r}=this.options;return r?Array.isArray(r)?r.some(n=>e.fullPath.startsWith(n)):r(e):!1}isUnauthorized(e){var i;const{unauthorizedCode:r=401,statusKey:n="code"}=this.options;return e.status===r||((i=e.data)==null?void 0:i[n])===r}showUnauthorizedAlert(e){return U(this,null,function*(){const{unauthorizedMessage:r="登录已失效"}=this.options;this.isUnauthorized(e)&&(yield this.showTip(r))&&this.toLogin()})}showTip(e){return U(this,null,function*(){var n,i;const{alert:r}=this.options;return this.isTipShowing?!1:r?(this.isTipShowing=!0,yield ir(150),yield(i=(n=r(e,{title:"提示",type:"warning"}))==null?void 0:n.catch(()=>!0))==null?void 0:i.finally(()=>{this.isTipShowing=!1})):(window.alert(e),!0)})}setRequest(e){e.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}),e.useResponse(r=>U(this,null,function*(){return this.interceptResponse&&(yield this.showUnauthorizedAlert(r)),r}),r=>U(this,null,function*(){if(!this.interceptResponse)return Promise.reject(r);const n=r.response||r||{};return yield this.showUnauthorizedAlert(n),Promise.reject(r)}))}}function xy(t={}){const{notify:e,loading:r,settings:n={},Startup:i,access:s,useTitle:o,alert:u}=t;let l=null;return{request:Mn({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=>{e&&e(a||"未知错误")},showLoading:()=>{l&&l.close(),r&&(l=r())},hideLoading:()=>{l&&(l.close(),l=null)}},n)}),jsonp:ca,notify:e,loading:r,useTitle:o,alert:u,startupComponent:i,access:s?new da(V({alert:u},s)):void 0}}function Oy(t,e){const{jsonp:r,request:n}=e;if(t.method==="jsonp")return(i={})=>r(t.url,re(V({},t.jsonpOptions),{query:i}));{const i=t.headers?At(t.headers,{},!0):void 0,s={url:t.url,method:t.method,settings:re(V({},t.settings),{headers:i})};return(o,u)=>(delete s.data,n.send(vt(s,u||{},{data:o})))}}function $y(t,e){const{metaQuery:r}=e;if(!r)return;const{code:n,queryCode:i}=t;return(s,o)=>{if(!r){console.warn("adapter.metaQuery is not defined!");return}return r(n,i,s,o)}}function Dy(t=[],e=[],r){const n={};for(const i of t){const s=Oy(i,r);n[i.id]=s,n[i.name]=s}for(const i of e)n[i.id]=$y(i,r);return n}function Cy(){return U(this,arguments,function*(t=[],e=window){const r=Rt(e);r&&(ga(e),t.forEach(n=>Py(r,n)))})}function By(t,e=window){const r=de(t.mockTemplate)&&t.mockTemplate.value?pe(t.mockTemplate,{},!0):void 0,n=Rt(e);return(...i)=>U(null,null,function*(){let s={};if(r)try{s=yield r.apply(r,i)}catch(o){it.warn("模拟数据模版异常",o)}return n==null?void 0:n.mock(s)})}function Py(t,e){if(!e.mock)return;const{url:r,mockTemplate:n}=e;if(r&&n)try{const i=Tt(r)?new URL(r).pathname:r,s=Cn(`(.*)${i}(.*)`),o=Hg(i,{decode:decodeURIComponent}),u=At(n,{},!0);t.mock(s,l=>{var p;const a=Qt.parse(l.url)||{},c=l.body instanceof FormData?Um(l.body):l.body,f=Tt(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 t.mock(u(l))}catch(d){return console.warn("[mockApi]",s,l,d),null}})}catch(i){console.warn("mockApi",i)}}function ga(t=window){const e=Rt(t);e&&(e._mocked={})}class jy{constructor(e){k(this,"__id",null);k(this,"__mode");k(this,"__instance",null);k(this,"__contextRefs",{});k(this,"__refs",{});k(this,"__refCaches",{});k(this,"context",{});k(this,"state",{});k(this,"props",{});k(this,"$props",{});k(this,"$refs",{});k(this,"$el",null);k(this,"$emit",null);k(this,"$nextTick",null);k(this,"$parent",null);k(this,"$root",null);k(this,"$attrs",null);k(this,"$slots",null);k(this,"$watch",null);k(this,"$options",null);k(this,"$forceUpdate",null);k(this,"$components",{});k(this,"$libs",{});k(this,"$apis",{});k(this,"$provider",null);k(this,"__transform",{});const{mode:r,dsl:n,attrs:i}=e;this.__mode=r,n&&(this.__id=n.id||null,this.__transform=n.transform||{}),i&&Object.assign(this,i)}setup(e,r=or){const n=r.getCurrentInstance();if(!n)return;this.__refs={},this.__refCaches={},this.$refs={},this.context={},this.__contextRefs={},this.__instance=n.proxy;const i=n.appContext.config.globalProperties;Object.assign(this,i),Object.assign(this,e||{}),this.__proxy(),r.onMounted(()=>{this.__proxy()}),r.onUnmounted(()=>{this.__cleanup()}),r.onBeforeUpdate(()=>{this.__reset()})}__proxy(){this.__instance&&gs.forEach(e=>{var r;this[e]=(r=this.__instance)==null?void 0:r[e]})}__cleanup(){gs.forEach(e=>{this[e]=null}),this.__reset()}__reset(){this.__refs={},this.__refCaches={},this.$refs={},this.__contextRefs={},this.context={}}__parseFunction(e){var r;if(e)if(this.__mode===X.Runtime){const{id:n,type:i}=e,s=n&&(r=this.__transform[n])!=null?r:e.value;return pe({type:i,value:s},this)}else return pe(e,this)}__parseExpression(e){var r;if(e)if(this.__mode===X.Runtime){const{id:n,type:i}=e,s=n&&(r=this.__transform[n])!=null?r:e.value;return At({type:i,value:s},this)}else return At(e,this)}__ref(e=null,r){if(this.__mode===X.VNode)return;e&&e!==this.__id&&(this.__contextRefs[e]=this);let n=e?this.__refCaches[e]:null;return n||(n=i=>U(this,null,function*(){var o,u;yield ir(0);let s=(i==null?void 0:i.$vtjEl)||(i==null?void 0:i.$el)||((u=(o=i==null?void 0:i._)==null?void 0:o.vnode)==null?void 0:u.el)||i;if(!s){typeof r=="string"&&(delete this.$refs[r],e&&delete this.__refs[e]);return}return s.nodeType===3&&s.nextSibling&&(s=s.nextSibling),s.__vtj__=e,X.Design===this.__mode&&(s.__context__=this,s.draggable=!0),e&&(this.__refs[e]=this.__getRefEl(this.__refs,e,i)),typeof r=="function"?r(i):r&&(this.$refs[r]=this.__getRefEl(this.$refs,r,i)),i}),e&&(this.__refCaches[e]=n),n)}__getRefEl(e,r,n){const i=e[r];if(i&&n!==i){const s=new Set([].concat(i,n));return Array.from(s)}else return n}__clone(e={}){const r=V(V({},this.context),e),n=re(V({},r),{context:r});return n.context.__proto__=this.context,n.__proto__=this,n}}function gn(t){var f,p;const{Vue:e=or,mode:r=X.Runtime,components:n={},libs:i={},apis:s={},loader:o}=t,u=e.computed(()=>t.dsl),l={$components:n,$libs:i,$apis:s},a=new jy({mode:r,dsl:u.value,attrs:l}),c=e.defineComponent(V({name:u.value.name,__scopeId:u.value.id?`data-v-${u.value.id}`:void 0,props:V({},Iy((f=u.value.props)!=null?f:[],a)),setup(){return U(this,arguments,function*(d={}){var _,w,y,T;a.$props=d,a.props=d,u.value.id&&yr(t.window||window,u.value.id,u.value.css||"",!0),a.state=My(e,(_=u.value.state)!=null?_:{},a);const g=Fy(e,(w=u.value.computed)!=null?w:{},a),v=Ly((y=u.value.methods)!=null?y:{},a),E=Uy(e,u.value.inject,a);for(const[O,L]of Object.entries(E||{}))E[O]=e.inject(O,L);const m=Hy(u.value.dataSources||{},a),b=V(V(V(V({},E),g),v),m);return a.setup(b,e),Vy(e,(T=u.value.watch)!=null?T:[],a),V(V(V({vtj:a,state:a.state},d),g),v)})},emits:Ny(u.value.emits),expose:["vtj",...u.value.expose||[]],render(){if(!u.value.nodes)return null;const d=u.value.nodes||[];if(d.length===1)return ot(d[0],a,e,o,d);{const g=d.map(v=>ot(v,a,e,o,d));return e.createVNode("div",{},g)}}},ky((p=u.value.lifeCycles)!=null?p:{},a)));return{renderer:e.markRaw(c),context:a}}function Ny(t=[]){return t.map(e=>Me(e)?e:e.name)}function Iy(t=[],e){const r=n=>n?(Array.isArray(n)?n:[n]).map(i=>ay[i]):void 0;return t.map(n=>Me(n)?{name:n}:{name:n.name,type:n.type,required:n.required,default:me(n.default)?e.__parseExpression(n.default):n.default}).reduce((n,i)=>(n[i.name]={type:r(i.type),required:i.required,default:i.default},n),{})}function My(t,e,r){return t.reactive(Object.keys(e||{}).reduce((n,i)=>{let s=e[i];return me(s)?s=r.__parseExpression(s):de(s)&&(s=r.__parseFunction(s)),n[i]=s,n},{}))}function Fy(t,e,r){return Object.entries(e!=null?e:{}).reduce((n,[i,s])=>(n[i]=t.computed(r.__parseFunction(s)),n),{})}function Ly(t,e){return Object.entries(t!=null?t:{}).reduce((r,[n,i])=>(r[n]=e.__parseFunction(i),r),{})}function Uy(t,e=[],r){return e.reduce((n,i)=>{var a;const{name:s,from:o}=i||{};i.default;const u=me(o)?r.__parseExpression(o)||s:o!=null?o:s,l=me(i.default)?r.__parseExpression(i.default):(a=i.default)!=null?a:null;return n[s]=t.inject(u,l),n},{})}function Hy(t,e){return Object.keys(t).reduce((r,n)=>{const i=t[n];if(i.type==="mock")r[n]=By(i);else if(i.ref){const s=e.$apis[i.ref],o=de(i.transform)?i.transform.value?e.__parseFunction(i.transform):void 0:i.transform;r[n]=(...u)=>U(null,null,function*(){const l=yield s.apply(e,u);return o?o(l):l})}return r},{})}function Vy(t,e=[],r){e.forEach(n=>{t.watch(r.__parseExpression(n.source),r.__parseFunction(n.handler),{deep:n.deep,immediate:n.immediate})})}function ky(t,e){return Object.entries(t!=null?t:{}).reduce((r,[n,i])=>{const s=e.__parseFunction(i);return r[n]=()=>U(null,null,function*(){ze(s)&&(yield ir(0),yield s())}),r},{})}class qy{constructor(){k(this,"__props",{});k(this,"__events",{});k(this,"__nodes",{})}setProps(e,r){this.__props[e]=r}getProps(e){return this.__props[e]}loadProps(e,r){return(e?this.getProps(e):null)||(e&&this.setProps(e,r),r)}setEvents(e,r){}getEvents(e){return this.__events[e]}loadEvents(e,r){return(e?this.getEvents(e):null)||(e&&this.setEvents(e,r),r)}setNode(e,r){this.__nodes[e]=r}getNode(e){return this.__nodes[e]}loadNode(e,r){return(e?this.getNode(e):null)||(e&&this.setNode(e,r),r)}isEqual(e,r){return vd(e,r)}clear(){this.__props={},this.__events={},this.__nodes={}}}const qt=new qy,zy=new Gg;let qr=[],Xe={},zt={};const Wy=(t,e)=>e;function va(r){return U(this,arguments,function*(t,e=window){const{urls:n=[],library:i}=t,s=n.filter(u=>mr(u));if(s.length===0||!i)return null;const o=n.filter(u=>vr(u));return o.length&&ha(o,e),yield pa(s,i,e).catch(u=>(console.warn("loadScriptUrl error",s,i,u),null))})}function vn(t){const{getDsl:e,getDslByUrl:r,options:n}=t;return n.window&&(qr.forEach(i=>{delete n.window[i]}),qr=[]),(i,s,o,u=or)=>{if(!o||typeof o=="string")return s;let l="";if(o.type==="Schema"&&o.id)return l=o.id+"_"+i,zt[l]||(zt[l]=u.defineAsyncComponent(()=>U(null,null,function*(){const a=Xe[o.id]||(yield zy.add(o.id,()=>e(o.id)));return a&&(a.name=s,Xe[o.id]=a),a?gn(re(V({Vue:u,mode:X.Runtime},n),{dsl:_i(a),loader:vn(t)})).renderer:null})));if(o.type==="UrlSchema"&&o.url)return l=o.url+"_"+i,zt[l]||(zt[l]=u.defineAsyncComponent(()=>U(null,null,function*(){const a=Xe[o.url]||(yield r(o.url));return a&&(a.name=s,Xe[o.url]=a),a?gn(re(V({},n),{Vue:u,dsl:_i(a),mode:X.Runtime,loader:vn(t)})).renderer:null})));if(o.type==="Plugin"){let a=o.library?Xe[o.library]:null;return a||(o.library&&qr.push(o.library),a=Xe[o.library||Symbol()]=u.defineAsyncComponent(()=>U(null,null,function*(){return(yield va(o,n.window))||(console.warn("getPlugin result is null",o),null)})),a)}return s}}function ot(t,e,r=or,n=Wy,i=[],s=!1,o=0){var _;if(!t||!t.name||t.invisible)return null;const u=(_=r.getCurrentInstance())==null?void 0:_.appContext,{id:l=null,directives:a=[]}=t,{vIf:c,vElseIf:f,vElse:h,vFor:p,vShow:d,vModels:g,vBind:v,vHtml:E,others:m}=ma(a);if(!s&&(f||h))return null;if(c&&!Jy(c,e))return e0(t,e,r,n,i);const b=(w,y=0)=>{var q,z,x,C;const T=w.$components,O=(()=>{var N,te,xe,we;if(t.name==="component")return Gy(w,(N=t.props)==null?void 0:N.is);if(t.name==="slot")return t.name;const D=n(`${t.id}_${y}`,t.name,t.from,r);return Me(D)?_y(D)||wy(D)?D:(we=(xe=T[D])!=null?xe:(te=u==null?void 0:u.app)==null?void 0:te.component(D))!=null?we:D:D})(),L=Yy(l,(q=t.props)!=null?q:{},w),S=Xy(r,t.id,(z=t.events)!=null?z:{},w);if(t.name==="slot")return t0(r,t,L,w,n);v&&Object.assign(L,w.__parseExpression(v.value)),d&&(L.style=Object.assign((x=L.style)!=null?x:{},n0(d,w))),E&&Object.assign(L,i0(E,w)),g.forEach(D=>{la.includes(t.name)?Object.assign(L,s0(D,w)):Object.assign(L,o0(r,D,w))});const A=a0(r,(C=t.children)!=null?C:[],w,n,t),M=w!=null&&w.__id?`data-v-${w.__id}`:void 0,j=M?{[M]:""}:{},I=w.__mode===X.Design?{"data-vtj":l}:{},B=`${l}_${y}`,$=V(V(V(V({key:B},j),I),L),S);qt.isEqual($,qt.getNode(B))||qt.setNode(B,$);let H=r.createVNode(O,qt.getNode(B)||$||{},A);const F=u?Ky(u,m,w):[];return F.length&&(H=r.withDirectives(H,F)),H};return p?l0(p,b,e):b(e,o)}function Ky(t,e,r){const n=t.app;return e.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 ma(t=[]){const e=t.find(c=>Ee(c.name)==="vIf"),r=t.find(c=>Ee(c.name)==="vElseIf"),n=t.find(c=>Ee(c.name)==="vElse"),i=t.find(c=>Ee(c.name)==="vFor"),s=t.find(c=>Ee(c.name)==="vShow"),o=t.find(c=>Ee(c.name)==="vBind"),u=t.find(c=>Ee(c.name)==="vHtml"),l=t.filter(c=>Ee(c.name)==="vModel"),a=t.filter(c=>!oy.includes(Ee(c.name)));return{vIf:e,vElseIf:r,vElse:n,vFor:i,vShow:s,vModels:l,vBind:o,others:a,vHtml:u}}function Jy(t,e){return!!e.__parseExpression(t.value)}function Gy(t,e){return e?me(e)?t.__parseExpression(e):e:"div"}function Yy(t,e,r){const n=mn(e,r);return n.ref=r.__ref(t,n.ref),n}function mn(t,e){return me(t)?e.__parseExpression(t):de(t)?e.__parseFunction(t):Array.isArray(t)?t.map(r=>mn(r,e)):typeof t=="object"?Object.keys(t||{}).reduce((r,n)=>{let i=t[n];return r[n]=mn(i,e),r},{}):t}function Zy(t,e){return r=>{var n;((n=r==null?void 0:r.key)==null?void 0:n.toLowerCase())===e.toLowerCase()&&t(r)}}function Qy(t){return Ey(t.value)?t:Sy(t.value)?{type:"JSFunction",value:`(...args) => (() => {
67
+ return (($event) => {
68
+ ${t.value}
69
+ }).apply(this, args);
70
+ })()`}:t}function Xy(t,e,r,n){const i=["passive","capture","once"],s={capture:"Capture",once:"Once",passive:"OnceCapture"};return Object.keys(r||{}).reduce((o,u)=>{const l=r[u],a=ya(l.modifiers),c=a.find(p=>i.includes(p)),f="on"+Fd(u)+(c&&s[c]||""),h=l.handler?n.__parseFunction(Qy(l.handler)):null;return h&&(o[f]=t.withModifiers(a.includes("enter")?Zy(h,"enter"):h,a)),o},{})}function e0(t,e,r,n,i=[]){let s=i.findIndex(o=>o.id===t.id);for(let o=++s;o<i.length;o++){const{directives:u=[]}=i[o],{vElseIf:l,vElse:a}=ma(u);if(l){if(e.__parseExpression(l.value))return ot(i[o],e,r,n,i,!0);continue}if(a)return ot(i[o],e,r,n,i,!0)}return null}function ya(t={},e=!1){const r=Object.keys(t);return e?r.map(n=>"."+n):r}function t0(t,e,r,n,i){var l;const{children:s}=e,o=r0(e,n),u=(l=n.$slots)==null?void 0:l[o.name];return u?u(r):s?Me(s)?t.createTextVNode(s):me(s)?t.createTextVNode(fa(n.__parseExpression(s))):Array.isArray(s)?s.map((a,c)=>ot(a,n,t,i,s,!1,c)):null:null}function r0(t,e){const{props:r}=t,n=(r==null?void 0:r.name)||"default";return{name:me(n)?e.__parseExpression(n):n,params:[]}}function n0(t,e){return e.__parseExpression(t.value)?{}:{display:"none"}}function i0(t,e){return{innerHTML:e.__parseExpression(t.value)||""}}function s0(t,e){var n;const r={type:"JSFunction",value:(n=t.value)!=null&&n.value?`(v) => {
71
+ ${t.value.value} = v?.target.value;
72
+ }`:"(v) => {}"};return{[me(t.arg)?e.__parseExpression(t.arg):t.arg||"value"]:e.__parseExpression(t.value),onInput:e.__parseFunction(r)}}function o0(t,e,r){var u;const n={type:"JSFunction",value:(u=e.value)!=null&&u.value?`(v) => {
69
73
  ${e.value.value} = v;
70
- }`:"(v) => {}"},i=t.__parseFunction(n),s=ya(me(e.modifiers)?t.__parseExpression(e.modifiers):e.modifiers),o=me(e.arg)?t.__parseExpression(e.arg):e.arg||"modelValue";return{[o]:t.__parseExpression(e.value),[`onUpdate:${o}`]:s.length&&i?r.withModifiers(i,s):i}}function i0(r,e,t,n,i){if(!e)return null;if(Me(e))return{default:()=>e};if(me(e))return{default:()=>fa(t.__parseExpression(e))};if(Array.isArray(e)&&e.length>0){const s=s0(e),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?Mg(h!=null?h:{},c):o(h,f);return a.map((d,g)=>ot(d,t.__clone(p),r,n,a,!1,g))},u),{})}return null}function s0(r){const e={};for(const t of r){const n=o0(t.slot),i=n.name;e[i]?(e[i].nodes.push(t),e[i].params=e[i].params.concat(n.params),e[i].scope=n.scope||""):e[i]={nodes:[t],params:n.params,scope:n.scope||""}}return e}function o0(r="default"){return Me(r)?{name:r,params:[],scope:""}:V({params:[],scope:""},r)}function a0(r,e,t){const{value:n,iterator:i}=r,{item:s="item",index:o="index"}=i||{};let u=t.__parseExpression(n)||[];return Number.isInteger(u)&&(u=new Array(u).fill(!0).map((l,a)=>a+1)),Array.isArray(u)?u.map((l,a)=>e(t.__clone({[s]:l,[o]:a}),a)):(console.warn("[vForRender]:",`${n==null?void 0:n.value} is not a Arrary`),[])}const zr=ys({name:"VtjPageContainer",setup(){return U(this,null,function*(){const r=y0(),e=Ba(),t=e.meta.__vtj__||e.params.id,n=t?r.getPage(t):r.getHomepage(),i=n?yield r.getRenderComponent(n.id):null,s=Da(Symbol());if(n){Object.assign(e.meta,n.meta||{},{cache:n.cache});const{useTitle:o}=r==null?void 0:r.adapter;if(o){const u=e.meta.title||n.title||"VTJ.PRO";o(u)}}return{provider:r,component:i,file:n,query:e.query,meta:e.meta,sid:s,route:e}})},render(){const{component:r,query:e,sid:t}=this;return r?Kr(r,re(V({},e),{key:t})):Kr("div",{style:{padding:"10px"}},"找不到组件,组件不存在或未发布!")},activated(){this.meta.cache===!1&&(this.sid=Symbol())}}),u0=ys({name:"VtjStartupContainer",render(){return Kr("div","page not found!")}});function yn(r,e,t=[]){const n=[];for(const i of t){const{id:s,title:o,icon:u,children:l,hidden:a,layout:c}=i;if(c){const f=yn(r,e,l||[]);n.push(...f)}else{const f={id:s,title:o,icon:u,hidden:a,url:`${r}/${e}/${s}`,children:l&&l.length?yn(r,e,l):void 0};n.push(f)}}return n}function Wr(r,e){const{id:t,title:n,meta:i}=r,{name:s="page",prefix:o="",component:u,routeMeta:l}=e;return{name:t,path:`${o}${s}/${t}`,component:u,meta:re(V(V({title:n},l),i),{__vtj__:t})}}function bn(r){const{name:e="page",prefix:t="",pages:n=[],component:i,loader:s,routeMeta:o,homepage:u}=r,l=[];for(const a of n){const{id:c,title:f,dir:h,layout:p,children:d,meta:g}=a;if(h){const v=bn({name:e,prefix:t,component:i,routeMeta:o,homepage:u,loader:s,pages:d||[]});l.push(...v)}else if(p){const v=bn({name:e,prefix:t,component:i,routeMeta:o,homepage:u,loader:s,pages:d||[]}),E={name:`layout_${c}`,path:t,component:()=>s(c),meta:re(V(V({title:f},o),g),{__vtj__:c}),children:v};l.push(E),l.push(Wr(a,r))}else if(l.push(Wr(a,r)),u===c){const v=Wr(a,r);v.path="",v.name=`home_${c}`,l.push(v)}}return l}function c0(r={},e){const{css:t,store:n,enhance:i}=r,{window:s,app:o,library:u={},adapter:l,mode:a}=e,{Pinia:c}=u;o.config.globalProperties.$libs=u,yr(s,"global-css",t||""),c&&n&&l0(n,o,c),h0(o,l,r),!l.access&&r.access&&f0(r.access,o,a,l),p0(o,r),i&&d0(i,o,u)}function l0(r,e,t){const n=t.createPinia();if(e.use(n),de(r)&&r.value){const i=pe(r,{},!1,!1,!0),s=t.defineStore("$store",i(e)||{});e.config.globalProperties.$store=s()}}function f0(r,e,t,n){if(de(r)&&r.value){const i=pe(r,{},!1,!1,!0),{alert:s,request:o}=n,u=new da(V({alert:s,storagePrefix:"__VTJ_APP_"},i(e))),l=e.config.globalProperties.$router;u.connect({mode:t,router:l,request:o}),e.use(u)}}function h0(r,e,t){if(!e.request)return;const{axios:n,request:i,response:s}=t;if(n&&de(n)&&n.value){const o=pe(n,{},!1,!1,!0);e.request.setConfig(o(r))}if(i&&de(i)&&i.value){const o=pe(i,{},!1,!1,!0),u=e.request;u.__unReq&&u.__unReq(),u.__unReq=e.request.useRequest(l=>o(l,r))}if(s&&de(s)&&s.value){const o=pe(s,{},!1,!1,!0),u=e.request;u.__unRes&&u.__unRes(),u.__unRes=e.request.useResponse(l=>o(l,r))}}function p0(r,e){const{beforeEach:t,afterEach:n}=e,i=r.config.globalProperties.$router;if(t&&de(t)&&t.value){const s=pe(t,{},!1,!1,!0);i&&i.beforeEach((o,u,l)=>s(o,u,l,r))}if(n&&de(n)&&n.value){const s=pe(n,{},!1,!1,!0);i&&i.afterEach((o,u,l)=>s(o,u,l,r))}}function d0(r,e,t={}){de(r)&&r.value&&pe(r,{},!1,!1,!0)(e,t)}function g0(r,e,t){if(!r||!e||!t)return;const{VueI18n:n}=e;if(n){const{locale:i,fallbackLocale:s,messages:o=[]}=t,u={};for(let a of o){const c=Object.keys(a).filter(f=>f!=="key");for(const f of c)u[f]||(u[f]={}),u[f][a.key]=a[f]}const l=n.createI18n({legacy:!1,locale:i,fallbackLocale:s,messages:u});r.use(l)}}const ba=Symbol("Provider");class v0 extends Xg{constructor(t){super();k(this,"mode");k(this,"globals",{});k(this,"modules",{});k(this,"adapter",{request:fn,jsonp:ca});k(this,"apis",{});k(this,"dependencies",{});k(this,"materials",{});k(this,"library",{});k(this,"libraryLocales",{});k(this,"libraryLocaleMap",{});k(this,"service");k(this,"project",null);k(this,"components",{});k(this,"nodeEnv","development");k(this,"env",{});k(this,"router",null);k(this,"materialPath","./");k(this,"urlDslCaches",{});k(this,"errorHandler",null);this.options=t;const{service:n,mode:i=X.Raw,dependencies:s,materials:o,project:u={},adapter:l={},globals:a={},modules:c={},router:f=null,materialPath:h="./",nodeEnv:p="development"}=t;this.mode=i,this.modules=c,this.service=n,this.router=f,this.materialPath=h,this.nodeEnv=p,s&&(this.dependencies=s),o&&(this.materials=o),Object.assign(this.globals,a),Object.assign(this.adapter,l);const{access:d,request:g}=this.adapter;d&&d.connect({mode:i,router:f,request:g}),u&&i!==X.Design?this.load(u):this.project=u}createMock(t){return(...n)=>U(null,null,function*(){var s;let i={};if(t)try{i=yield t.apply(t,n)}catch(o){it.warn("模拟数据模版异常",o)}return(s=Rt())==null?void 0:s.mock(i)})}load(t){return U(this,null,function*(){const{vtjDir:n=".vtj"}=this.options,i=this.modules[`${n}/projects/${t.id}.json`]||this.modules[`/src/${n}/projects/${t.id}.json`];if(this.project=i?yield i():yield this.service.init(t),!this.project)throw new Error("project is null");const{apis:s=[],meta:o=[],env:u=[]}=this.project,l=window;l&&(l.CKEDITOR_VERSION=void 0),this.initEnv(u),this.mode===X.Raw?yield this.loadDependencies(l):yield this.loadAssets(l),this.initMock(l),this.apis=Oy(s,o,this.adapter),ga(l),$y(s,l),t.platform!=="uniapp"&&this.initRouter(),this.triggerReady()})}initMock(t){const n=Rt(t);n&&n.setup({timeout:"50-500"})}loadDependencies(){return U(this,arguments,function*(t={}){const n=Object.entries(this.dependencies);for(const[i,s]of n)t[i]||(t[i]=this.library[i]=yield s())})}loadAssets(){return U(this,arguments,function*(t={}){const{dependencies:n=[]}=this.project,{dependencies:i,library:s,components:o,materialPath:u,nodeEnv:l,libraryLocales:a}=this,{libraryExports:c,libraryMap:f,materials:h,materialExports:p,materialMapLibrary:d,libraryLocaleMap:g}=fy(n,u,l==="development");Object.assign(this.libraryLocaleMap,g);for(const v of c){const E=i[v],m=t[v];if(m)s[v]=m;else if(E)t[v]=s[v]=yield E();else{const _=f[v]||[];for(const w of _)vr(w)&&(yield yy(w,Qt.append(w,{v:Vr}))),mr(w)&&(yield ps(Qt.append(w,{v:Vr})));s[v]=t[v]}const b=g[v];if(b){const _=i[b];a[b]=_?yield _():t[b]}}if(l==="development"){for(const E of h)yield ps(Qt.append(E,{v:Vr}));const v=this.materials||{};for(const E of p){const m=t[d[E]],b=(m==null?void 0:m.default)||m,_=Qg[E];if(_)b&&_.forEach(w=>{o[w]=b[w]});else{const w=v[E]?(yield v[E]()).default:t[E];w&&b&&(w.components||[]).forEach(y=>{o[y.name]=hy(y,b)})}}}})}initRouter(){const{router:t,project:n,options:i,adapter:s}=this;if(!t)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:Xt,component:zr},h=this.getHomepage(),p={path:c,name:kr,component:h?zr:s.startupComponent||u0,meta:a};if(t.hasRoute(Xt)&&t.removeRoute(Xt),t.hasRoute(kr)&&t.removeRoute(kr),i.enableStaticRoute){const d=(n==null?void 0:n.pages)||[];bn({name:l,prefix:c,pages:d,component:zr,loader:this.getRenderComponent.bind(this),homepage:h==null?void 0:h.id}).forEach(g=>{u?t.addRoute(u,g):t.addRoute(g)}),h||(u?t.addRoute(u,p):t.addRoute(p))}else u?(t.addRoute(u,f),t.addRoute(u,p)):(t.addRoute(f),t.addRoute(p))}setErrorHandler(t){t.config.errorHandler=On((n,i,s)=>{const o=i==null?void 0:i.$options.name,u=typeof n=="string"?n:(n==null?void 0:n.message)||(n==null?void 0:n.msg)||"未知错误",l=`[ ${o} ] ${u} ${s}`;["getComputedStyle","ResizeObserver"].some(a=>l.includes(a))||(console.error("[VTJ Error]:",{err:n,instance:i,info:s},n==null?void 0:n.stack),this.errorHandler&&this.errorHandler(n),this.adapter.notify&&this.adapter.notify(l,"组件渲染错误","error"))},300)}install(t){var u,l,a,c;const{libraryLocaleMap:n,libraryLocales:i}=this,{libraryOptions:s={}}=this.options,o=t.config.globalProperties.installed||{};for(const[f,h]of Object.entries(this.library))if(!o[f]&&by(h)){const p={locale:i[n[f]]},d=s[f]||{},g=V(V({},p),d);t.use(h,g),o[f]=!0}t.provide(ba,this),t.config.globalProperties.$provider=this,t.config.globalProperties.$request=(u=this.adapter)==null?void 0:u.request,this.options.install&&t.use(this.options.install),this.adapter.access&&t.use(this.adapter.access),((l=this.project)==null?void 0:l.platform)!=="uniapp"&&this.mode!==X.Design&&this.initGlobals(((a=this.project)==null?void 0:a.globals)||{},{app:t,window,adapter:this.adapter,library:this.library,mode:this.mode}),this.mode!==X.Design&&((c=this.project)!=null&&c.i18n)&&this.initI18n(t,this.library,this.project.i18n),this.options.enhance&&t.use(this.options.enhance,this),this.mode===X.Design&&this.setErrorHandler(t),t.config.globalProperties.installed=o}getFile(t){const{blocks:n=[]}=this.project||{};return this.getPage(t)||n.find(i=>i.id===t)||null}getPage(t){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(t,n)||null}getFirstPage(){const{pages:t=[]}=this.project||{};if(!t.length)return null;const n=(i=[])=>{for(const s of i){if(s.type==="page"&&!s.dir&&!s.layout)return s;if(s.children&&s.children.length){const o=n(s.children);if(o)return o}}};return n(t)||null}getMenus(t="page",n=""){var i;return yn(n,t,((i=this.project)==null?void 0:i.pages)||[])}getHomepage(){const{homepage:t}=this.project||{};return t?this.getPage(t):this.getFirstPage()}getDsl(t){return U(this,null,function*(){const{vtjDir:n=".vtj"}=this.options,i=this.modules[`${n}/files/${t}.json`]||this.modules[`/src/${n}/files/${t}.json`];return i?yield i():this.service.getFile(t,this.project||void 0).catch(()=>null)})}getDslByUrl(t){return U(this,null,function*(){return this.urlDslCaches[t]||(this.adapter.request?this.urlDslCaches[t]=this.adapter.request.send({url:t,method:"get",settings:{validSuccess:!1,originResponse:!0}}).then(i=>i.data).catch(()=>null):null)})}createDslRenderer(t,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=vn({getDsl:c=>U(this,null,function*(){return(yield this.getDsl(c))||null}),getDslByUrl:c=>U(this,null,function*(){return(yield this.getDslByUrl(c))||null}),options:l});return gn(re(V({},l),{dsl:t,loader:a}))}getRenderComponent(t,n){return U(this,null,function*(){var o;const i=this.getFile(t);if(!i)return it.warn(`Can not find file: ${t}`),null;if(n&&n(i),this.mode===X.Raw){const{vtjRawDir:u=".vtj/vue"}=this.options,l=`${u}/${t}.vue`,a=this.modules[l]||this.modules[`/src/pages/${t}.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:(it.warn(`Can not find dsl: ${t}`),null)})}defineUrlSchemaComponent(t,n){return Hn(()=>U(this,null,function*(){const i=yield this.getDslByUrl(t);return i?(i.name=n||i.name,this.createDslRenderer(i).renderer):null}))}definePluginComponent(t){return Hn(()=>U(null,null,function*(){return yield va(t,window)}))}initGlobals(t,n){const i=Object.assign({adapter:this.adapter,window},n);c0(t,i)}initI18n(t,n,i){g0(t,n,i)}initEnv(t=[]){this.env=t.reduce((n,i)=>(n[i.name]=i[this.nodeEnv],n),{})}}function m0(r){const e=new v0(r);return{provider:e,onReady:t=>e.ready(t)}}function y0(r={}){const e=Ca(ba,null);if(!e)throw new Error("Can not find provider");if(e.nodeEnv==="development"){const{id:t,version:n}=r;t&&n&&U(null,null,function*(){const i=yield e.getDsl(t);(i==null?void 0:i.__VERSION__)!==n&&e.adapter.notify&&e.adapter.notify(`[ ${i==null?void 0:i.name} ] 组件源码版本与运行时版本不一致,请重新发布组件`,"版本不一致","warning")})}return e}function b0(r,e=""){return U(this,null,function*(){const{name:t,urls:n=[]}=r||{},i=n.map(u=>e+u),{css:s,js:o}=py(i);if(s.length&&ha(s),o.length)return yield pa(o,t).catch(()=>{})})}const _a={type:"json",validSuccess:!0,originResponse:!1,failMessage:!0,validate:r=>{var e;return((e=r.data)==null?void 0:e.code)===0}},_0=(r,e="/__vtj__/api/:type.json")=>(t,n,i)=>r.send({url:e,method:"post",params:{type:t},query:i,data:{type:t,data:n},settings:_a}),w0=(r,e="/__vtj__/api/uploader.json")=>(t,n)=>U(null,null,function*(){return yield r.send({url:e,method:"post",data:{files:t,projectId:n},settings:re(V({},_a),{type:"data"})}).then(i=>i&&i[0]?i[0]:null).catch(()=>null)});function E0(r){return Mn({settings:{type:"json",validSuccess:!0,originResponse:!1,failMessage:!0,validate:e=>{var t;return((t=e.data)==null?void 0:t.code)===0},showError:e=>{r&&r(e||"未知错误")}}})}class S0{constructor(e=fn){k(this,"api");k(this,"pluginCaches",{});k(this,"uploader");this.req=e,this.api=_0(e),this.uploader=w0(e)}getExtension(){return U(this,null,function*(){console.log("BaseService.getExtension")})}init(e){return U(this,null,function*(){return console.log("BaseService.init",e),{}})}saveProject(e,t){return U(this,null,function*(){return!!(yield this.api("saveProject",e,{type:t}).catch(()=>!1))})}saveMaterials(e,t){return U(this,null,function*(){return console.log("BaseService.saveMaterials",e,t),!1})}saveFile(e){return U(this,null,function*(){return console.log("BaseService.saveFile",e),!1})}getFile(e){return U(this,null,function*(){return console.log("BaseService.getFile",e),{}})}removeFile(e){return U(this,null,function*(){return console.log("BaseService.removeFile",e),!1})}saveHistory(e){return U(this,null,function*(){return console.log("BaseService.saveHistory",e),!1})}removeHistory(e){return U(this,null,function*(){return console.log("BaseService.removeHistory",e),!1})}getHistory(e){return U(this,null,function*(){return console.log("BaseService.getHistory",e),{}})}getHistoryItem(e,t){return U(this,null,function*(){return console.log("BaseService.getHistoryItem",e,t),{}})}saveHistoryItem(e,t){return U(this,null,function*(){return console.log("BaseService.saveHistoryItem",e,t),!1})}removeHistoryItem(e,t){return U(this,null,function*(){return console.log("BaseService.removeHistoryItem",e,t),!1})}publish(e){return U(this,null,function*(){return!!(yield this.api("publish",e).catch(()=>!1))})}publishFile(e,t){return U(this,null,function*(){return!!(yield this.api("publishFile",{project:e,file:t}).catch(()=>!1))})}genVueContent(e,t){return U(this,null,function*(){return yield this.api("genVueContent",{project:e,dsl:t}).catch(()=>"")})}parseVue(e,t){return U(this,null,function*(){return yield this.api("parseVue",V({project:e},t))})}createRawPage(e){return U(this,null,function*(){return yield this.api("createRawPage",e).catch(()=>"")})}removeRawPage(e){return U(this,null,function*(){return yield this.api("removeRawPage",e).catch(()=>"")})}uploadStaticFile(e,t){return U(this,null,function*(){return yield this.uploader(e,t).catch(()=>null)})}getStaticFiles(e){return U(this,null,function*(){return yield this.api("getStaticFiles",e).catch(()=>[])})}removeStaticFile(e,t){return U(this,null,function*(){return yield this.api("removeStaticFile",{name:e,projectId:t}).catch(()=>"")})}clearStaticFiles(e){return U(this,null,function*(){return yield this.api("clearStaticFiles",e).catch(()=>"")})}getPluginMaterial(e){return U(this,null,function*(){const{urls:t=[]}=e,n=t.filter(s=>cy(s))[0];return n?this.pluginCaches[n]||(this.pluginCaches[n]=fn.send({url:n,method:"get",settings:{validSuccess:!1,originResponse:!0}}).then(s=>s.data).catch(()=>null)):null})}genSource(e){return U(this,null,function*(){return console.log("BaseService.genSource",e),""})}}new sa({type:"local",expired:0,prefix:"__VTJ_"});class T0 extends S0{constructor(){super(...arguments);k(this,"getFileCaches",{})}getExtension(){return U(this,null,function*(){return yield this.api("getExtension",{}).catch(()=>{})})}init(t){return U(this,null,function*(){return(yield this.api("init",t).catch(()=>null))||{}})}saveProject(t,n){return U(this,null,function*(){return!!(yield this.api("saveProject",t,{type:n}).catch(()=>!1))})}saveMaterials(t,n){return U(this,null,function*(){return!!(yield this.api("saveMaterials",{project:t,materials:Ng(n)}).catch(()=>!1))})}saveFile(t){return U(this,null,function*(){return!!(yield this.api("saveFile",t).catch(()=>!1))})}getFile(t){return U(this,null,function*(){return this.getFileCaches[t]||(this.getFileCaches[t]=this.api("getFile",t).catch(()=>null)).finally(()=>{delete this.getFileCaches[t]})})}removeFile(t){return U(this,null,function*(){return!!(yield this.api("removeFile",t).catch(()=>!1))})}saveHistory(t){return U(this,null,function*(){return!!(yield this.api("saveHistory",t).catch(()=>!1))})}removeHistory(t){return U(this,null,function*(){return!!(yield this.api("removeHistory",t).catch(()=>!1))})}getHistory(t){return U(this,null,function*(){return(yield this.api("getHistory",t).catch(()=>null))||{}})}getHistoryItem(t,n){return U(this,null,function*(){return(yield this.api("getHistoryItem",{fId:t,id:n}).catch(()=>null))||{}})}saveHistoryItem(t,n){return U(this,null,function*(){return!!(yield this.api("saveHistoryItem",{fId:t,item:n}).catch(()=>!1))})}removeHistoryItem(t,n){return U(this,null,function*(){return!!(yield this.api("removeHistoryItem",{fId:t,ids:n}).catch(()=>!1))})}}/**!
74
+ }`:"(v) => {}"},i=r.__parseFunction(n),s=ya(me(e.modifiers)?r.__parseExpression(e.modifiers):e.modifiers),o=me(e.arg)?r.__parseExpression(e.arg):e.arg||"modelValue";return{[o]:r.__parseExpression(e.value),[`onUpdate:${o}`]:s.length&&i?t.withModifiers(i,s):i}}function a0(t,e,r,n,i){if(!e)return null;if(Me(e))return{default:()=>e};if(me(e))return{default:()=>fa(r.__parseExpression(e))};if(Array.isArray(e)&&e.length>0){const s=u0(e),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?Mg(h!=null?h:{},c):o(h,f);return a.map((d,g)=>ot(d,r.__clone(p),t,n,a,!1,g))},u),{})}return null}function u0(t){const e={};for(const r of t){const n=c0(r.slot),i=n.name;e[i]?(e[i].nodes.push(r),e[i].params=e[i].params.concat(n.params),e[i].scope=n.scope||""):e[i]={nodes:[r],params:n.params,scope:n.scope||""}}return e}function c0(t="default"){return Me(t)?{name:t,params:[],scope:""}:V({params:[],scope:""},t)}function l0(t,e,r){const{value:n,iterator:i}=t,{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)=>e(r.__clone({[s]:l,[o]:a}),a)):(console.warn("[vForRender]:",`${n==null?void 0:n.value} is not a Arrary`),[])}const zr=ys({name:"VtjPageContainer",setup(){return U(this,null,function*(){const t=w0(),e=Ba(),r=e.meta.__vtj__||e.params.id,n=r?t.getPage(r):t.getHomepage(),i=n?yield t.getRenderComponent(n.id):null,s=Da(Symbol());if(n){Object.assign(e.meta,n.meta||{},{cache:n.cache});const{useTitle:o}=t==null?void 0:t.adapter;if(o){const u=e.meta.title||n.title||"VTJ.PRO";o(u)}}return{provider:t,component:i,file:n,query:e.query,meta:e.meta,sid:s,route:e}})},render(){const{component:t,query:e,sid:r}=this;return t?Kr(t,re(V({},e),{key:r})):Kr("div",{style:{padding:"10px"}},"找不到组件,组件不存在或未发布!")},activated(){this.meta.cache===!1&&(this.sid=Symbol())}}),f0=ys({name:"VtjStartupContainer",render(){return Kr("div","page not found!")}});function yn(t,e,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=yn(t,e,l||[]);n.push(...f)}else{const f={id:s,title:o,icon:u,hidden:a,url:`${t}/${e}/${s}`,children:l&&l.length?yn(t,e,l):void 0};n.push(f)}}return n}function Wr(t,e){const{id:r,title:n,meta:i}=t,{name:s="page",prefix:o="",component:u,routeMeta:l}=e;return{name:r,path:`${o}${s}/${r}`,component:u,meta:re(V(V({title:n},l),i),{__vtj__:r})}}function bn(t){const{name:e="page",prefix:r="",pages:n=[],component:i,loader:s,routeMeta:o,homepage:u}=t,l=[];for(const a of n){const{id:c,title:f,dir:h,layout:p,children:d,meta:g}=a;if(h){const v=bn({name:e,prefix:r,component:i,routeMeta:o,homepage:u,loader:s,pages:d||[]});l.push(...v)}else if(p){const v=bn({name:e,prefix:r,component:i,routeMeta:o,homepage:u,loader:s,pages:d||[]}),E={name:`layout_${c}`,path:r,component:()=>s(c),meta:re(V(V({title:f},o),g),{__vtj__:c}),children:v};l.push(E),l.push(Wr(a,t))}else if(l.push(Wr(a,t)),u===c){const v=Wr(a,t);v.path="",v.name=`home_${c}`,l.push(v)}}return l}function h0(t={},e){const{css:r,store:n,enhance:i}=t,{window:s,app:o,library:u={},adapter:l,mode:a}=e,{Pinia:c}=u;o.config.globalProperties.$libs=u,yr(s,"global-css",r||""),c&&n&&p0(n,o,c),g0(o,l,t),!l.access&&t.access&&d0(t.access,o,a,l),v0(o,t),i&&m0(i,o,u)}function p0(t,e,r){const n=r.createPinia();if(e.use(n),de(t)&&t.value){const i=pe(t,{},!1,!1,!0),s=r.defineStore("$store",i(e)||{});e.config.globalProperties.$store=s()}}function d0(t,e,r,n){if(de(t)&&t.value){const i=pe(t,{},!1,!1,!0),{alert:s,request:o}=n,u=new da(V({alert:s,storagePrefix:"__VTJ_APP_"},i(e))),l=e.config.globalProperties.$router;u.connect({mode:r,router:l,request:o}),e.use(u)}}function g0(t,e,r){if(!e.request)return;const{axios:n,request:i,response:s}=r;if(n&&de(n)&&n.value){const o=pe(n,{},!1,!1,!0);e.request.setConfig(o(t))}if(i&&de(i)&&i.value){const o=pe(i,{},!1,!1,!0),u=e.request;u.__unReq&&u.__unReq(),u.__unReq=e.request.useRequest(l=>o(l,t))}if(s&&de(s)&&s.value){const o=pe(s,{},!1,!1,!0),u=e.request;u.__unRes&&u.__unRes(),u.__unRes=e.request.useResponse(l=>o(l,t))}}function v0(t,e){const{beforeEach:r,afterEach:n}=e,i=t.config.globalProperties.$router;if(r&&de(r)&&r.value){const s=pe(r,{},!1,!1,!0);i&&i.beforeEach((o,u,l)=>s(o,u,l,t))}if(n&&de(n)&&n.value){const s=pe(n,{},!1,!1,!0);i&&i.afterEach((o,u,l)=>s(o,u,l,t))}}function m0(t,e,r={}){de(t)&&t.value&&pe(t,{},!1,!1,!0)(e,r)}function y0(t,e,r){if(!t||!e||!r)return;const{VueI18n:n}=e;if(n){const{locale:i,fallbackLocale:s,messages:o=[]}=r,u={};for(let a of o){const c=Object.keys(a).filter(f=>f!=="key");for(const f of c)u[f]||(u[f]={}),u[f][a.key]=a[f]}const l=n.createI18n({legacy:!1,locale:i,fallbackLocale:s,messages:u});t.use(l)}}const ba=Symbol("Provider");class b0 extends Xg{constructor(r){super();k(this,"mode");k(this,"globals",{});k(this,"modules",{});k(this,"adapter",{request:fn,jsonp:ca});k(this,"apis",{});k(this,"dependencies",{});k(this,"materials",{});k(this,"library",{});k(this,"libraryLocales",{});k(this,"libraryLocaleMap",{});k(this,"service");k(this,"project",null);k(this,"components",{});k(this,"nodeEnv","development");k(this,"env",{});k(this,"router",null);k(this,"materialPath","./");k(this,"urlDslCaches",{});k(this,"errorHandler",null);this.options=r;const{service:n,mode:i=X.Raw,dependencies:s,materials:o,project:u={},adapter:l={},globals:a={},modules:c={},router:f=null,materialPath:h="./",nodeEnv:p="development"}=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:g}=this.adapter;d&&d.connect({mode:i,router:f,request:g}),u&&i!==X.Design?this.load(u):this.project=u}createMock(r){return(...n)=>U(null,null,function*(){var s;let i={};if(r)try{i=yield r.apply(r,n)}catch(o){it.warn("模拟数据模版异常",o)}return(s=Rt())==null?void 0:s.mock(i)})}load(r){return U(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=[],env:u=[]}=this.project,l=window;l&&(l.CKEDITOR_VERSION=void 0),this.initEnv(u),this.mode===X.Raw?yield this.loadDependencies(l):yield this.loadAssets(l),this.initMock(l),this.apis=Dy(s,o,this.adapter),ga(l),Cy(s,l),r.platform!=="uniapp"&&this.initRouter(),this.triggerReady()})}initMock(r){const n=Rt(r);n&&n.setup({timeout:"50-500"})}loadDependencies(){return U(this,arguments,function*(r={}){const n=Object.entries(this.dependencies);for(const[i,s]of n)r[i]||(r[i]=this.library[i]=yield s())})}loadAssets(){return U(this,arguments,function*(r={}){const{dependencies:n=[]}=this.project,{dependencies:i,library:s,components:o,materialPath:u,nodeEnv:l,libraryLocales:a}=this,{libraryExports:c,libraryMap:f,materials:h,materialExports:p,materialMapLibrary:d,libraryLocaleMap:g}=fy(n,u,l==="development");Object.assign(this.libraryLocaleMap,g);for(const v of c){const E=i[v],m=r[v];if(m)s[v]=m;else if(E)r[v]=s[v]=yield E();else{const _=f[v]||[];for(const w of _)vr(w)&&(yield yy(w,Qt.append(w,{v:Vr}))),mr(w)&&(yield ps(Qt.append(w,{v:Vr})));s[v]=r[v]}const b=g[v];if(b){const _=i[b];a[b]=_?yield _():r[b]}}if(l==="development"){for(const E of h)yield ps(Qt.append(E,{v:Vr}));const v=this.materials||{};for(const E of p){const m=r[d[E]],b=(m==null?void 0:m.default)||m,_=Qg[E];if(_)b&&_.forEach(w=>{o[w]=b[w]});else{const w=v[E]?(yield v[E]()).default:r[E];w&&b&&(w.components||[]).forEach(y=>{o[y.name]=hy(y,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:Xt,component:zr},h=this.getHomepage(),p={path:c,name:kr,component:h?zr:s.startupComponent||f0,meta:a};if(r.hasRoute(Xt)&&r.removeRoute(Xt),r.hasRoute(kr)&&r.removeRoute(kr),i.enableStaticRoute){const d=(n==null?void 0:n.pages)||[];bn({name:l,prefix:c,pages:d,component:zr,loader:this.getRenderComponent.bind(this),homepage:h==null?void 0:h.id}).forEach(g=>{u?r.addRoute(u,g):r.addRoute(g)}),h||(u?r.addRoute(u,p):r.addRoute(p))}else u?(r.addRoute(u,f),r.addRoute(u,p)):(r.addRoute(f),r.addRoute(p))}setErrorHandler(r){r.config.errorHandler=On((n,i,s)=>{const o=i==null?void 0:i.$options.name,u=typeof n=="string"?n:(n==null?void 0:n.message)||(n==null?void 0:n.msg)||"未知错误",l=`[ ${o} ] ${u} ${s}`;["getComputedStyle","ResizeObserver"].some(a=>l.includes(a))||(console.error("[VTJ Error]:",{err:n,instance:i,info:s},n==null?void 0:n.stack),this.errorHandler&&this.errorHandler(n),this.adapter.notify&&this.adapter.notify(l,"组件渲染错误","error"))},300)}install(r){var u,l,a,c;const{libraryLocaleMap:n,libraryLocales:i}=this,{libraryOptions:s={}}=this.options,o=r.config.globalProperties.installed||{};for(const[f,h]of Object.entries(this.library))if(!o[f]&&by(h)){const p={locale:i[n[f]]},d=s[f]||{},g=V(V({},p),d);r.use(h,g),o[f]=!0}r.provide(ba,this),r.config.globalProperties.$provider=this,r.config.globalProperties.$request=(u=this.adapter)==null?void 0:u.request,this.options.install&&r.use(this.options.install),this.adapter.access&&r.use(this.adapter.access),((l=this.project)==null?void 0:l.platform)!=="uniapp"&&this.mode!==X.Design&&this.initGlobals(((a=this.project)==null?void 0:a.globals)||{},{app:r,window,adapter:this.adapter,library:this.library,mode:this.mode}),this.mode!==X.Design&&((c=this.project)!=null&&c.i18n)&&this.initI18n(r,this.library,this.project.i18n),this.options.enhance&&r.use(this.options.enhance,this),this.mode===X.Design&&this.setErrorHandler(r),r.config.globalProperties.installed=o}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}getFirstPage(){const{pages:r=[]}=this.project||{};if(!r.length)return null;const n=(i=[])=>{for(const s of i){if(s.type==="page"&&!s.dir&&!s.layout)return s;if(s.children&&s.children.length){const o=n(s.children);if(o)return o}}};return n(r)||null}getMenus(r="page",n=""){var i;return yn(n,r,((i=this.project)==null?void 0:i.pages)||[])}getHomepage(){const{homepage:r}=this.project||{};return r?this.getPage(r):this.getFirstPage()}getDsl(r){return U(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 U(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=vn({getDsl:c=>U(this,null,function*(){return(yield this.getDsl(c))||null}),getDslByUrl:c=>U(this,null,function*(){return(yield this.getDslByUrl(c))||null}),options:l});return gn(re(V({},l),{dsl:r,loader:a}))}getRenderComponent(r,n){return U(this,null,function*(){var o;const i=this.getFile(r);if(!i)return it.warn(`Can not find file: ${r}`),null;if(n&&n(i),this.mode===X.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:(it.warn(`Can not find dsl: ${r}`),null)})}defineUrlSchemaComponent(r,n){return Hn(()=>U(this,null,function*(){const i=yield this.getDslByUrl(r);return i?(i.name=n||i.name,this.createDslRenderer(i).renderer):null}))}definePluginComponent(r){return Hn(()=>U(null,null,function*(){return yield va(r,window)}))}initGlobals(r,n){const i=Object.assign({adapter:this.adapter,window},n);h0(r,i)}initI18n(r,n,i){y0(r,n,i)}initEnv(r=[]){this.env=r.reduce((n,i)=>(n[i.name]=i[this.nodeEnv],n),{})}}function _0(t){const e=new b0(t);return{provider:e,onReady:r=>e.ready(r)}}function w0(t={}){const e=Ca(ba,null);if(!e)throw new Error("Can not find provider");if(e.nodeEnv==="development"){const{id:r,version:n}=t;r&&n&&U(null,null,function*(){const i=yield e.getDsl(r);(i==null?void 0:i.__VERSION__)!==n&&e.adapter.notify&&e.adapter.notify(`[ ${i==null?void 0:i.name} ] 组件源码版本与运行时版本不一致,请重新发布组件`,"版本不一致","warning")})}return e}function E0(t,e=""){return U(this,null,function*(){const{name:r,urls:n=[]}=t||{},i=n.map(u=>e+u),{css:s,js:o}=py(i);if(s.length&&ha(s),o.length)return yield pa(o,r).catch(()=>{})})}const _a={type:"json",validSuccess:!0,originResponse:!1,failMessage:!0,validate:t=>{var e;return((e=t.data)==null?void 0:e.code)===0}},S0=(t,e="/__vtj__/api/:type.json")=>(r,n,i)=>t.send({url:e,method:"post",params:{type:r},query:i,data:{type:r,data:n},settings:_a}),T0=(t,e="/__vtj__/api/uploader.json")=>(r,n)=>U(null,null,function*(){return yield t.send({url:e,method:"post",data:{files:r,projectId:n},settings:re(V({},_a),{type:"data"})}).then(i=>i&&i[0]?i[0]:null).catch(()=>null)});function R0(t){return Mn({settings:{type:"json",validSuccess:!0,originResponse:!1,failMessage:!0,validate:e=>{var r;return((r=e.data)==null?void 0:r.code)===0},showError:e=>{t&&t(e||"未知错误")}}})}class A0{constructor(e=fn){k(this,"api");k(this,"pluginCaches",{});k(this,"uploader");this.req=e,this.api=S0(e),this.uploader=T0(e)}getExtension(){return U(this,null,function*(){console.log("BaseService.getExtension")})}init(e){return U(this,null,function*(){return console.log("BaseService.init",e),{}})}saveProject(e,r){return U(this,null,function*(){return!!(yield this.api("saveProject",e,{type:r}).catch(()=>!1))})}saveMaterials(e,r){return U(this,null,function*(){return console.log("BaseService.saveMaterials",e,r),!1})}saveFile(e){return U(this,null,function*(){return console.log("BaseService.saveFile",e),!1})}getFile(e){return U(this,null,function*(){return console.log("BaseService.getFile",e),{}})}removeFile(e){return U(this,null,function*(){return console.log("BaseService.removeFile",e),!1})}saveHistory(e){return U(this,null,function*(){return console.log("BaseService.saveHistory",e),!1})}removeHistory(e){return U(this,null,function*(){return console.log("BaseService.removeHistory",e),!1})}getHistory(e){return U(this,null,function*(){return console.log("BaseService.getHistory",e),{}})}getHistoryItem(e,r){return U(this,null,function*(){return console.log("BaseService.getHistoryItem",e,r),{}})}saveHistoryItem(e,r){return U(this,null,function*(){return console.log("BaseService.saveHistoryItem",e,r),!1})}removeHistoryItem(e,r){return U(this,null,function*(){return console.log("BaseService.removeHistoryItem",e,r),!1})}publish(e){return U(this,null,function*(){return!!(yield this.api("publish",e).catch(()=>!1))})}publishFile(e,r){return U(this,null,function*(){return!!(yield this.api("publishFile",{project:e,file:r}).catch(()=>!1))})}genVueContent(e,r){return U(this,null,function*(){return yield this.api("genVueContent",{project:e,dsl:r}).catch(()=>"")})}parseVue(e,r){return U(this,null,function*(){return yield this.api("parseVue",V({project:e},r))})}createRawPage(e){return U(this,null,function*(){return yield this.api("createRawPage",e).catch(()=>"")})}removeRawPage(e){return U(this,null,function*(){return yield this.api("removeRawPage",e).catch(()=>"")})}uploadStaticFile(e,r){return U(this,null,function*(){return yield this.uploader(e,r).catch(()=>null)})}getStaticFiles(e){return U(this,null,function*(){return yield this.api("getStaticFiles",e).catch(()=>[])})}removeStaticFile(e,r){return U(this,null,function*(){return yield this.api("removeStaticFile",{name:e,projectId:r}).catch(()=>"")})}clearStaticFiles(e){return U(this,null,function*(){return yield this.api("clearStaticFiles",e).catch(()=>"")})}getPluginMaterial(e){return U(this,null,function*(){const{urls:r=[]}=e,n=r.filter(s=>cy(s))[0];return n?this.pluginCaches[n]||(this.pluginCaches[n]=fn.send({url:n,method:"get",settings:{validSuccess:!1,originResponse:!0}}).then(s=>s.data).catch(()=>null)):null})}genSource(e){return U(this,null,function*(){return console.log("BaseService.genSource",e),""})}}new sa({type:"local",expired:0,prefix:"__VTJ_"});class x0 extends A0{constructor(){super(...arguments);k(this,"getFileCaches",{})}getExtension(){return U(this,null,function*(){return yield this.api("getExtension",{}).catch(()=>{})})}init(r){return U(this,null,function*(){return(yield this.api("init",r).catch(()=>null))||{}})}saveProject(r,n){return U(this,null,function*(){return!!(yield this.api("saveProject",r,{type:n}).catch(()=>!1))})}saveMaterials(r,n){return U(this,null,function*(){return!!(yield this.api("saveMaterials",{project:r,materials:Ng(n)}).catch(()=>!1))})}saveFile(r){return U(this,null,function*(){return!!(yield this.api("saveFile",r).catch(()=>!1))})}getFile(r){return U(this,null,function*(){return this.getFileCaches[r]||(this.getFileCaches[r]=this.api("getFile",r).catch(()=>null)).finally(()=>{delete this.getFileCaches[r]})})}removeFile(r){return U(this,null,function*(){return!!(yield this.api("removeFile",r).catch(()=>!1))})}saveHistory(r){return U(this,null,function*(){return!!(yield this.api("saveHistory",r).catch(()=>!1))})}removeHistory(r){return U(this,null,function*(){return!!(yield this.api("removeHistory",r).catch(()=>!1))})}getHistory(r){return U(this,null,function*(){return(yield this.api("getHistory",r).catch(()=>null))||{}})}getHistoryItem(r,n){return U(this,null,function*(){return(yield this.api("getHistoryItem",{fId:r,id:n}).catch(()=>null))||{}})}saveHistoryItem(r,n){return U(this,null,function*(){return!!(yield this.api("saveHistoryItem",{fId:r,item:n}).catch(()=>!1))})}removeHistoryItem(r,n){return U(this,null,function*(){return!!(yield this.api("removeHistoryItem",{fId:r,ids:n}).catch(()=>!1))})}}/**!
71
75
  * Copyright (c) 2026, VTJ.PRO All rights reserved.
72
76
  * @name @vtj/uni
73
77
  * @author CHC chenhuachun1549@dingtalk.com
74
- * @version 0.16.27
78
+ * @version 0.16.28
75
79
  * @license <a href="https://vtj.pro/license.html">MIT License</a>
76
- */const R0=["onLaunch","onShow","onHide","onError","onPageNotFound","onUnhandledRejection","onThemeChange","onPageNotFound","onUniNViewMessage","onExit"],vs="/pages",A0="VTJ",x0="__UNI__1FC118B",O0="VTJ移动跨端项目",$0="1.0.0",D0="100",C0=!1,B0={},P0={enable:!1},j0="3",N0={name:A0,appid:x0,description:O0,versionName:$0,versionCode:D0,transformPx:C0,"app-plus":{usingComponents:!0,nvueStyleCompiler:"uni-app",compilerVersion:3,splashscreen:{alwaysShowBeforeRender:!0,waiting:!0,autoclose:!0,delay:0},modules:{},distribute:{android:{permissions:['<uses-permission android:name="android.permission.CHANGE_NETWORK_STATE"/>','<uses-permission android:name="android.permission.MOUNT_UNMOUNT_FILESYSTEMS"/>','<uses-permission android:name="android.permission.VIBRATE"/>','<uses-permission android:name="android.permission.READ_LOGS"/>','<uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/>','<uses-feature android:name="android.hardware.camera.autofocus"/>','<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>','<uses-permission android:name="android.permission.CAMERA"/>','<uses-permission android:name="android.permission.GET_ACCOUNTS"/>','<uses-permission android:name="android.permission.READ_PHONE_STATE"/>','<uses-permission android:name="android.permission.CHANGE_WIFI_STATE"/>','<uses-permission android:name="android.permission.WAKE_LOCK"/>','<uses-permission android:name="android.permission.FLASHLIGHT"/>','<uses-feature android:name="android.hardware.camera"/>','<uses-permission android:name="android.permission.WRITE_SETTINGS"/>']},ios:{},sdkConfigs:{},icons:{android:{hdpi:"src/static/logo.png",xhdpi:"src/static/logo.png",xxhdpi:"src/static/logo.png",xxxhdpi:"src/static/logo.png"}}}},quickapp:B0,"mp-weixin":{appid:"",setting:{urlCheck:!1},usingComponents:!0},"mp-alipay":{usingComponents:!0},"mp-baidu":{usingComponents:!0},"mp-toutiao":{usingComponents:!0},uniStatistics:P0,vueVersion:j0},I0=[],M0={navigationBarTextStyle:"black",navigationBarTitleText:"uni-app",navigationBarBackgroundColor:"#F8F8F8",backgroundColor:"#F8F8F8"},F0={autoscan:!0,custom:{"^uni-(.*)":"@dcloudio/uni-ui/lib/uni-$1/uni-$1.vue"}},L0={pages:I0,globalStyle:M0,easycom:F0};function U0(r){let{manifestJson:e={},pagesJson:t={},routes:n=[]}=r;const i=n.map(s=>{const{path:o,style:u,needLogin:l}=s;return{path:o,style:u,needLogin:l}});return re(V({},r),{manifestJson:Object.assign({},N0,e),pagesJson:Object.assign({},L0,t,{pages:i})})}const _n={navigationBarBackgroundColor:"backgroundColor",navigationBarTextStyle:"titleColor",navigationBarTitleText:"titleText",navigationStyle:"style",titleImage:"titleImage",titlePenetrate:"titlePenetrate",transparentTitle:"transparentTitle"};function wa(r){const e={},t={black:"#000000",white:"#ffffff"};for(const n in r)_n[n]&&(e[_n[n]]=n==="navigationBarTextStyle"?t[r[n]]||t.black:r[n]);return e}function H0(r){const e={};for(const t in r)_n[t]||(e[t]=r[t]);return e}function V0(r){var e,t;return((t=(e=r.h5)==null?void 0:e.router)==null?void 0:t.mode)||"hash"}function k0(r){var e,t,n;return{topWindow:!!((e=r.topWindow)!=null&&e.path),leftWindow:!!((t=r.leftWindow)!=null&&t.path),rightWindow:!!((n=r.rightWindow)!=null&&n.path)}}function q0(r){const{pagesJson:e={}}=r,{globalStyle:t,pages:n=[]}=e;return!!(t!=null&&t.enablePullDownRefresh||n.find(i=>{var s;return!!((s=i.style)!=null&&s.enablePullDownRefresh)}))}function z0(r){const{pagesJson:e={}}=r,{globalStyle:t,pages:n=[]}=e;let i=!1;return(t==null?void 0:t.navigationStyle)==="custom"?(i=!0,n.find(s=>{var o;return((o=s.style)==null?void 0:o.navigationStyle)==="default"})&&(i=!1)):n.every(s=>{var o;return((o=s.style)==null?void 0:o.navigationStyle)==="custom"})&&(i=!0),i}function W0(r){var u;const e=z0(r),t={navigationBar:!1,navigationBarButtons:!1,navigationBarSearchInput:!1,navigationBarTransparent:!1},{pagesJson:n={}}=r,{globalStyle:i,pages:s=[]}=n;if(e)return t;t.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)})&&(t.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)}))&&(t.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"}))&&(t.navigationBarTransparent=!0),t}function K0(r,e=window){var h,p,d,g;const{pagesJson:t={},manifestJson:n={}}=r,{topWindow:i,leftWindow:s,rightWindow:o}=k0(t),{navigationBar:u,navigationBarButtons:l,navigationBarSearchInput:a,navigationBarTransparent:c}=W0(r),f={__VUE_OPTIONS_API__:!0,__VUE_PROD_DEVTOOLS__:!1,__VUE_PROD_HYDRATION_MISMATCH_DETAILS__:!1,__UNI_FEATURE_WX__:!1,__UNI_FEATURE_WXS__:!1,__UNI_FEATURE_RPX__:!1,__UNI_FEATURE_PROMISE__:!1,__UNI_FEATURE_LONGPRESS__:!1,__UNI_FEATURE_I18N_EN__:!1,__UNI_FEATURE_I18N_ES__:!1,__UNI_FEATURE_I18N_FR__:!1,__UNI_FEATURE_I18N_ZH_HANS__:!0,__UNI_FEATURE_I18N_ZH_HANT__:!1,__UNI_FEATURE_UNI_CLOUD__:!1,__UNI_FEATURE_I18N_LOCALE__:!1,__UNI_FEATURE_NVUE__:!1,__UNI_FEATURE_ROUTER_MODE__:V0(n),__UNI_FEATURE_PAGES__:!!((h=t.pages)!=null&&h.length),__UNI_FEATURE_TABBAR__:!!((d=(p=t.tabBar)==null?void 0:p.list)!=null&&d.length),__UNI_FEATURE_TABBAR_MIDBUTTON__:!!((g=t.tabBar)!=null&&g.midButton),__UNI_FEATURE_TOPWINDOW__:i,__UNI_FEATURE_LEFTWINDOW__:s,__UNI_FEATURE_RIGHTWINDOW__:o,__UNI_FEATURE_RESPONSIVE__:!1,__UNI_FEATURE_NAVIGATIONBAR__:u,__UNI_FEATURE_PULL_DOWN_REFRESH__:q0(r),__UNI_FEATURE_NAVIGATIONBAR_BUTTONS__:l,__UNI_FEATURE_NAVIGATIONBAR_SEARCHINPUT__:a,__UNI_FEATURE_NAVIGATIONBAR_TRANSPARENT__:c};Object.entries(f).forEach(([v,E])=>{e[v]=E})}const J0="4.76";function G0(r,e=window){var f,h;const{pagesJson:t={},manifestJson:n={}}=r,{easycom:i={}}=t,{appid:s="",name:o="",versionCode:u="",versionName:l=""}=n,a=t.globalStyle,c=((f=n.h5)==null?void 0:f.router)||{};e.__uniConfig={easycom:i,globalStyle:re(V({},H0(a)),{navigationBar:wa(a),isNVue:!1}),compilerVersion:J0,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:t.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},t.tabBar):void 0}}function Y0(r,e=window){const{UniServiceJSBridge:t,UniViewJSBridge:n,getApp:i,uni:s,getCurrentPages:o,upx2px:u,setupPage:l}=r;e.UniServiceJSBridge=t,e.UniViewJSBridge=n,e.getApp=i,e.uni=s,e.wx=s,e.getCurrentPages=o,e.upx2px=u,e.__setupPage=a=>l(a)}function Z0(r,e,t){const{openBlock:n,createBlock:i,withCtx:s,createVNode:o}=r,{PageComponent:u,setupPage:l,getApp:a}=e;return{mpType:"page",setup(){return U(this,null,function*(){var g,v;const f=((v=(g=a())==null?void 0:g.$route)==null?void 0:v.query)||{},{loader:h,component:p}=t,d=h?yield h(t):p||{};return()=>(n(),i(u,null,{page:s(()=>[o(l(d),Object.assign({},f,{ref:"page"}),null,512)]),_:1}))})}}}function Q0(r,e,t){var p;const{path:n,style:i={},meta:s={},home:o,id:u}=e,l=((p=r.tabBar)==null?void 0:p.list)||[],a=l.findIndex(d=>{var g;return d.pagePath===n||((g=d.pagePath)==null?void 0:g.endsWith(u))}),c=l[a],f=!!c,h=t===0;return V({isTabBar:f,tabBarIndex:a,isQuit:o!=null?o:h,isEntry:o!=null?o:h,navigationBar:V({type:"default"},wa(i)),isNVue:!1,route:c?c.pagePath:n},s)}function X0(r,e,t,n,i=window){const s=t.map((o,u)=>{const l=Q0(n,o,u),a=Z0(r,e,o),{path:c}=o;return{path:c,alias:c,meta:l,component:{render(){return r.h(r.Suspense,[r.h(a)])}}}});i.__uniRoutes=s,i.__uniLayout={}}function e1(r,e,t=window){yr(t,String(r),e)}function t1(r,e){e&&["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(t=>{const n=e[t];r.component(t,n)})}function r1(r){const e=U0(r),{Vue:t,App:n,UniH5:i,routes:s=[],pagesJson:o={},manifestJson:u={},window:l,css:a=""}=e;if(!i)return t.createApp(n);const{plugin:c,setupApp:f}=i;K0(e,l),G0(e,l),Y0(i,l),X0(t,i,s,o,l),e1(u.appid||Date.now(),a,l);const h=t.createApp(f(n));return h.use(t1,i),h.use(c),h}function n1(r,e){const t={};return Object.entries(r).forEach(([n,i])=>{R0.includes(n)&&i&&(t[n]=e(i))}),t}function ms(r,e){return()=>U(null,null,function*(){const t=yield r.getDsl(e);if(t){const{renderer:n}=r.createDslRenderer(t);return n}return null})}function i1(n){return U(this,arguments,function*(r,e=!1,t=vs){var u,l,a;const i=((u=r.project)==null?void 0:u.pages)||[],s=[];for(const c of i){const f=((l=r.project)==null?void 0:l.homepage)===c.id;s.push({id:c.id,path:`${t}/${c.id}`,loader:ms(r,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=t===vs?"/":t;s.unshift(re(V({},o),{path:c}))}if(e){const c=((a=r.project)==null?void 0:a.blocks)||[];for(const f of c)s.push({id:f.id,path:`${t}/${f.id}`,loader:ms(r,f.id),style:{navigationStyle:"custom"}})}return s})}function s1(){var r;return(r=window.uni)!=null&&r.showLoading&&window.uni.showLoading({title:"加载中...",mask:!0}),{close:()=>{var e;(e=window.uni)!=null&&e.hideLoading&&window.uni.hideLoading()}}}function Ea(r,e="",t="warning"){return U(this,null,function*(){var n;return(n=window.uni)!=null&&n.showModal?window.uni.showModal({title:e,content:r,showCancel:!1}):(window.alert(r),!0)})}function o1(r=X.Runtime){let e={};r===X.Runtime?e=Object.assign({}):e=Object.assign({});let t={};for(const[n,i]of Object.entries(e))t[n]=()=>Promise.resolve(i);return t}const a1=Ry({loading:s1,notify:Ea}),Sa=new T0(E0(Ea)),u1=o1(),{provider:c1,onReady:l1}=m0({nodeEnv:"production",mode:X.Runtime,modules:u1,materialPath:"../",adapter:a1,service:Sa,dependencies:{Vue:()=>kn(()=>import("./@dcloudio-uni-h5-vue-BmOkhsCk.js").then(r=>r.W),__vite__mapDeps([0,1,2]),import.meta.url),VueRouter:()=>kn(()=>import("./vue-router-BaL-Hp_b.js"),__vite__mapDeps([3,0,1,2]),import.meta.url)}}),f1=r=>U(null,null,function*(){const e=(yield Sa.getExtension().catch(()=>null))||{},t=top||window,n=yield b0(e.enhance,t.location.pathname),{Vue:i,UniH5:s}=window,o=r.project;if(!o)return;const u=o.uniConfig||{},l=n1(u,d=>pe(d,window,!1,!0)),{manifestJson:a,pagesJson:c,css:f}=u,h=yield i1(r,!0),p=r1({Vue:i,App:l,UniH5:s,routes:h,css:f,manifestJson:a,pagesJson:c});p.use(r),n&&p.use(n,r),p.mount(document.body)});l1(()=>f1(c1));
80
+ */const O0=["onLaunch","onShow","onHide","onError","onPageNotFound","onUnhandledRejection","onThemeChange","onPageNotFound","onUniNViewMessage","onExit"],vs="/pages",$0="VTJ",D0="__UNI__1FC118B",C0="VTJ移动跨端项目",B0="1.0.0",P0="100",j0=!1,N0={},I0={enable:!1},M0="3",F0={name:$0,appid:D0,description:C0,versionName:B0,versionCode:P0,transformPx:j0,"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:N0,"mp-weixin":{appid:"",setting:{urlCheck:!1},usingComponents:!0},"mp-alipay":{usingComponents:!0},"mp-baidu":{usingComponents:!0},"mp-toutiao":{usingComponents:!0},uniStatistics:I0,vueVersion:M0},L0=[],U0={navigationBarTextStyle:"black",navigationBarTitleText:"uni-app",navigationBarBackgroundColor:"#F8F8F8",backgroundColor:"#F8F8F8"},H0={autoscan:!0,custom:{"^uni-(.*)":"@dcloudio/uni-ui/lib/uni-$1/uni-$1.vue"}},V0={pages:L0,globalStyle:U0,easycom:H0};function k0(t){let{manifestJson:e={},pagesJson:r={},routes:n=[]}=t;const i=n.map(s=>{const{path:o,style:u,needLogin:l}=s;return{path:o,style:u,needLogin:l}});return re(V({},t),{manifestJson:Object.assign({},F0,e),pagesJson:Object.assign({},V0,r,{pages:i})})}const _n={navigationBarBackgroundColor:"backgroundColor",navigationBarTextStyle:"titleColor",navigationBarTitleText:"titleText",navigationStyle:"style",titleImage:"titleImage",titlePenetrate:"titlePenetrate",transparentTitle:"transparentTitle"};function wa(t){const e={},r={black:"#000000",white:"#ffffff"};for(const n in t)_n[n]&&(e[_n[n]]=n==="navigationBarTextStyle"?r[t[n]]||r.black:t[n]);return e}function q0(t){const e={};for(const r in t)_n[r]||(e[r]=t[r]);return e}function z0(t){var e,r;return((r=(e=t.h5)==null?void 0:e.router)==null?void 0:r.mode)||"hash"}function W0(t){var e,r,n;return{topWindow:!!((e=t.topWindow)!=null&&e.path),leftWindow:!!((r=t.leftWindow)!=null&&r.path),rightWindow:!!((n=t.rightWindow)!=null&&n.path)}}function K0(t){const{pagesJson:e={}}=t,{globalStyle:r,pages:n=[]}=e;return!!(r!=null&&r.enablePullDownRefresh||n.find(i=>{var s;return!!((s=i.style)!=null&&s.enablePullDownRefresh)}))}function J0(t){const{pagesJson:e={}}=t,{globalStyle:r,pages:n=[]}=e;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 G0(t){var u;const e=J0(t),r={navigationBar:!1,navigationBarButtons:!1,navigationBarSearchInput:!1,navigationBarTransparent:!1},{pagesJson:n={}}=t,{globalStyle:i,pages:s=[]}=n;if(e)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 Y0(t,e=window){var h,p,d,g;const{pagesJson:r={},manifestJson:n={}}=t,{topWindow:i,leftWindow:s,rightWindow:o}=W0(r),{navigationBar:u,navigationBarButtons:l,navigationBarSearchInput:a,navigationBarTransparent:c}=G0(t),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__:z0(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__:!!((g=r.tabBar)!=null&&g.midButton),__UNI_FEATURE_TOPWINDOW__:i,__UNI_FEATURE_LEFTWINDOW__:s,__UNI_FEATURE_RIGHTWINDOW__:o,__UNI_FEATURE_RESPONSIVE__:!1,__UNI_FEATURE_NAVIGATIONBAR__:u,__UNI_FEATURE_PULL_DOWN_REFRESH__:K0(t),__UNI_FEATURE_NAVIGATIONBAR_BUTTONS__:l,__UNI_FEATURE_NAVIGATIONBAR_SEARCHINPUT__:a,__UNI_FEATURE_NAVIGATIONBAR_TRANSPARENT__:c};Object.entries(f).forEach(([v,E])=>{e[v]=E})}const Z0="4.76";function Q0(t,e=window){var f,h;const{pagesJson:r={},manifestJson:n={}}=t,{easycom:i={}}=r,{appid:s="",name:o="",versionCode:u="",versionName:l=""}=n,a=r.globalStyle,c=((f=n.h5)==null?void 0:f.router)||{};e.__uniConfig={easycom:i,globalStyle:re(V({},q0(a)),{navigationBar:wa(a),isNVue:!1}),compilerVersion:Z0,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 X0(t,e=window){const{UniServiceJSBridge:r,UniViewJSBridge:n,getApp:i,uni:s,getCurrentPages:o,upx2px:u,setupPage:l}=t;e.UniServiceJSBridge=r,e.UniViewJSBridge=n,e.getApp=i,e.uni=s,e.wx=s,e.getCurrentPages=o,e.upx2px=u,e.__setupPage=a=>l(a)}function e1(t,e,r){const{openBlock:n,createBlock:i,withCtx:s,createVNode:o}=t,{PageComponent:u,setupPage:l,getApp:a}=e;return{mpType:"page",setup(){return U(this,null,function*(){var g,v;const f=((v=(g=a())==null?void 0:g.$route)==null?void 0:v.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 t1(t,e,r){var p;const{path:n,style:i={},meta:s={},home:o,id:u}=e,l=((p=t.tabBar)==null?void 0:p.list)||[],a=l.findIndex(d=>{var g;return d.pagePath===n||((g=d.pagePath)==null?void 0:g.endsWith(u))}),c=l[a],f=!!c,h=r===0;return V({isTabBar:f,tabBarIndex:a,isQuit:o!=null?o:h,isEntry:o!=null?o:h,navigationBar:V({type:"default"},wa(i)),isNVue:!1,route:c?c.pagePath:n},s)}function r1(t,e,r,n,i=window){const s=r.map((o,u)=>{const l=t1(n,o,u),a=e1(t,e,o),{path:c}=o;return{path:c,alias:c,meta:l,component:{render(){return t.h(t.Suspense,[t.h(a)])}}}});i.__uniRoutes=s,i.__uniLayout={}}function n1(t,e,r=window){yr(r,String(t),e)}function i1(t,e){e&&["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=e[r];t.component(r,n)})}function s1(t){const e=k0(t),{Vue:r,App:n,UniH5:i,routes:s=[],pagesJson:o={},manifestJson:u={},window:l,css:a=""}=e;if(!i)return r.createApp(n);const{plugin:c,setupApp:f}=i;Y0(e,l),Q0(e,l),X0(i,l),r1(r,i,s,o,l),n1(u.appid||Date.now(),a,l);const h=r.createApp(f(n));return h.use(i1,i),h.use(c),h}function o1(t,e){const r={};return Object.entries(t).forEach(([n,i])=>{O0.includes(n)&&i&&(r[n]=e(i))}),r}function ms(t,e){return()=>U(null,null,function*(){const r=yield t.getDsl(e);if(r){const{renderer:n}=t.createDslRenderer(r);return n}return null})}function a1(n){return U(this,arguments,function*(t,e=!1,r=vs){var u,l,a;const i=((u=t.project)==null?void 0:u.pages)||[],s=[];for(const c of i){const f=((l=t.project)==null?void 0:l.homepage)===c.id;s.push({id:c.id,path:`${r}/${c.id}`,loader:ms(t,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===vs?"/":r;s.unshift(re(V({},o),{path:c}))}if(e){const c=((a=t.project)==null?void 0:a.blocks)||[];for(const f of c)s.push({id:f.id,path:`${r}/${f.id}`,loader:ms(t,f.id),style:{navigationStyle:"custom"}})}return s})}function u1(){var t;return(t=window.uni)!=null&&t.showLoading&&window.uni.showLoading({title:"加载中...",mask:!0}),{close:()=>{var e;(e=window.uni)!=null&&e.hideLoading&&window.uni.hideLoading()}}}function Ea(t,e="",r="warning"){return U(this,null,function*(){var n;return(n=window.uni)!=null&&n.showModal?window.uni.showModal({title:e,content:t,showCancel:!1}):(window.alert(t),!0)})}function c1(t=X.Runtime){let e={};t===X.Runtime?e=Object.assign({}):e=Object.assign({});let r={};for(const[n,i]of Object.entries(e))r[n]=()=>Promise.resolve(i);return r}const l1=xy({loading:u1,notify:Ea}),Sa=new x0(R0(Ea)),f1=c1(),{provider:h1,onReady:p1}=_0({nodeEnv:"production",mode:X.Runtime,modules:f1,materialPath:"../",adapter:l1,service:Sa,dependencies:{Vue:()=>kn(()=>import("./@dcloudio-uni-h5-vue-BmOkhsCk.js").then(t=>t.W),__vite__mapDeps([0,1,2]),import.meta.url),VueRouter:()=>kn(()=>import("./vue-router-BaL-Hp_b.js"),__vite__mapDeps([3,0,1,2]),import.meta.url)}}),d1=t=>U(null,null,function*(){const e=(yield Sa.getExtension().catch(()=>null))||{},r=top||window,n=yield E0(e.enhance,r.location.pathname),{Vue:i,UniH5:s}=window,o=t.project;if(!o)return;const u=o.uniConfig||{},l=o1(u,d=>pe(d,window,!1,!0)),{manifestJson:a,pagesJson:c,css:f}=u,h=yield a1(t,!0),p=s1({Vue:i,App:l,UniH5:s,routes:h,css:f,manifestJson:a,pagesJson:c});p.use(t),n&&p.use(n,t),p.mount(document.body)});p1(()=>d1(h1));