@vtj/pro 0.17.6 → 0.17.8

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 (33) hide show
  1. package/README.md +2 -2
  2. package/dist/@vtj/materials/assets/antdv/index.umd.js +2 -2
  3. package/dist/@vtj/materials/assets/charts/index.umd.js +2 -2
  4. package/dist/@vtj/materials/assets/element/index.umd.js +2 -2
  5. package/dist/@vtj/materials/assets/icons/index.umd.js +2 -2
  6. package/dist/@vtj/materials/assets/ui/index.umd.js +2 -2
  7. package/dist/@vtj/materials/assets/uni-h5/index.umd.js +2 -2
  8. package/dist/@vtj/materials/assets/uni-ui/index.umd.js +2 -2
  9. package/dist/@vtj/materials/assets/vant/index.umd.js +2 -2
  10. package/dist/@vtj/materials/deps/@vtj/charts/index.umd.js +2 -2
  11. package/dist/@vtj/materials/deps/@vtj/icons/index.umd.js +2 -2
  12. package/dist/@vtj/materials/deps/@vtj/ui/index.umd.js +2 -2
  13. package/dist/@vtj/materials/deps/@vtj/utils/index.umd.js +2 -2
  14. package/dist/assets/Editor-CPtl6CLF-CZK-iRjd.js +546 -0
  15. package/dist/assets/auth-DPcwTwML.js +1 -0
  16. package/dist/assets/{index-th3c9OdM.js → index-B4KQg9YW.js} +1 -1
  17. package/dist/assets/{index-BuGNkP-C.js → index-DoeCvv0h.js} +2 -2
  18. package/dist/assets/page-DC0UpU2I.js +2 -0
  19. package/dist/assets/preview-BPqKBjpN.js +2 -0
  20. package/dist/assets/utils-BjOPfXIU.js +1 -0
  21. package/dist/index.html +3 -3
  22. package/dist/uni/assets/{@dcloudio-uni-h5-vue-BmOkhsCk.js → @dcloudio-uni-h5-vue-CKVTfNUF.js} +2 -2
  23. package/dist/uni/assets/index-n3NvAQNA.js +91 -0
  24. package/dist/uni/assets/{vue-router-BaL-Hp_b.js → vue-router-BuyipnGj.js} +1 -1
  25. package/dist/uni/index.html +3 -3
  26. package/package.json +12 -12
  27. package/dist/assets/Editor-C3o0jtM2-SS6YQFnK.js +0 -538
  28. package/dist/assets/auth-MwmnBWEv.js +0 -1
  29. package/dist/assets/page-DfQNNxIl.js +0 -2
  30. package/dist/assets/preview-D6c64CQx.js +0 -2
  31. package/dist/assets/utils-C71Ycgsp.js +0 -1
  32. package/dist/uni/assets/index-BT50bWB7.js +0 -83
  33. /package/dist/assets/{Editor-C3o0jtM2-NMmAvvAr.css → Editor-CPtl6CLF-NMmAvvAr.css} +0 -0
@@ -1,83 +0,0 @@
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 Aa=Object.defineProperty,xa=Object.defineProperties;var Oa=Object.getOwnPropertyDescriptors;var qn=Object.getOwnPropertySymbols;var $a=Object.prototype.hasOwnProperty,Da=Object.prototype.propertyIsEnumerable;var Xe=(t,e)=>(e=Symbol[t])?e:Symbol.for("Symbol."+t),Ca=t=>{throw TypeError(t)};var Er=(t,e,r)=>e in t?Aa(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,k=(t,e)=>{for(var r in e||(e={}))$a.call(e,r)&&Er(t,r,e[r]);if(qn)for(var r of qn(e))Da.call(e,r)&&Er(t,r,e[r]);return t},se=(t,e)=>xa(t,Oa(e));var W=(t,e,r)=>Er(t,typeof e!="symbol"?e+"":e,r);var F=(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())}),ke=function(t,e){this[0]=t,this[1]=e},Sr=(t,e,r)=>{var n=(o,u,l,a)=>{try{var c=r[o](u),f=(u=c.value)instanceof ke,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[Xe("asyncIterator")]=()=>s,i("next"),i("throw"),i("return"),s},Tr=t=>{var e=t[Xe("asyncIterator")],r=!1,n,i={};return e==null?(e=t[Xe("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 ke(new Promise(u=>{var l=e[s](o);l instanceof Object||Ca("Object expected"),u(l)}),1)}}),i[Xe("iterator")]=()=>i,n("next"),"throw"in e?n("throw"):i.throw=s=>{throw s},"return"in e&&n("return"),i},zn=(t,e,r)=>(e=t[Xe("asyncIterator")])?e.call(t):(t=t[Xe("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 Wn,d as _s,h as Yr,f as Ba,W as ur,i as Pa}from"./@dcloudio-uni-h5-vue-BmOkhsCk.js";import{useRoute as ja}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 Na="modulepreload",Ia=function(t,e){return new URL(t,e).href},Kn={},Jn=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=Ia(c,n),c in Kn)return;Kn[c]=!0;const f=c.endsWith(".css"),h=f?'[rel="stylesheet"]':"";if(!!n)for(let d=u.length-1;d>=0;d--){const m=u[d];if(m.href===c&&(!f||m.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${c}"]${h}`))return;const g=document.createElement("link");if(g.rel=f?"stylesheet":Na,f||(g.as="script"),g.crossOrigin="",g.href=c,a&&g.setAttribute("nonce",a),document.head.appendChild(g),f)return new Promise((d,m)=>{g.addEventListener("load",d),g.addEventListener("error",()=>m(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 Ma={ENV_TYPE:"live",NODE_ENV:"production"},Fa=typeof global=="object"&&global&&global.Object===Object&&global;const ws=Fa;var La=typeof self=="object"&&self&&self.Object===Object&&self,Ua=ws||La||Function("return this")();const Te=Ua;var Ha=Te.Symbol;const $e=Ha;var Es=Object.prototype,ka=Es.hasOwnProperty,Va=Es.toString,vt=$e?$e.toStringTag:void 0;function qa(t){var e=ka.call(t,vt),r=t[vt];try{t[vt]=void 0;var n=!0}catch(s){}var i=Va.call(t);return n&&(e?t[vt]=r:delete t[vt]),i}var za=Object.prototype,Wa=za.toString;function Ka(t){return Wa.call(t)}var Ja="[object Null]",Ga="[object Undefined]",Gn=$e?$e.toStringTag:void 0;function Pe(t){return t==null?t===void 0?Ga:Ja:Gn&&Gn in Object(t)?qa(t):Ka(t)}function _e(t){return t!=null&&typeof t=="object"}var Ya="[object Symbol]";function Ss(t){return typeof t=="symbol"||_e(t)&&Pe(t)==Ya}function Ts(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 Za=Array.isArray;const Be=Za;var Yn=$e?$e.prototype:void 0,Zn=Yn?Yn.toString:void 0;function Rs(t){if(typeof t=="string")return t;if(Be(t))return Ts(t,Rs)+"";if(Ss(t))return Zn?Zn.call(t):"";var e=t+"";return e=="0"&&1/t==-1/0?"-0":e}var Qa=/\s/;function Xa(t){for(var e=t.length;e--&&Qa.test(t.charAt(e)););return e}var eu=/^\s+/;function tu(t){return t&&t.slice(0,Xa(t)+1).replace(eu,"")}function we(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var Qn=NaN,ru=/^[-+]0x[0-9a-f]+$/i,nu=/^0b[01]+$/i,iu=/^0o[0-7]+$/i,su=parseInt;function Xn(t){if(typeof t=="number")return t;if(Ss(t))return Qn;if(we(t)){var e=typeof t.valueOf=="function"?t.valueOf():t;t=we(e)?e+"":e}if(typeof t!="string")return t===0?t:+t;t=tu(t);var r=nu.test(t);return r||iu.test(t)?su(t.slice(2),r?2:8):ru.test(t)?Qn:+t}function As(t){return t}var ou="[object AsyncFunction]",au="[object Function]",uu="[object GeneratorFunction]",cu="[object Proxy]";function Ke(t){if(!we(t))return!1;var e=Pe(t);return e==au||e==uu||e==ou||e==cu}var lu=Te["__core-js_shared__"];const Rr=lu;var ei=(function(){var t=/[^.]+$/.exec(Rr&&Rr.keys&&Rr.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""})();function fu(t){return!!ei&&ei in t}var hu=Function.prototype,pu=hu.toString;function Ye(t){if(t!=null){try{return pu.call(t)}catch(e){}try{return t+""}catch(e){}}return""}var du=/[\\^$.*+?()[\]{}|]/g,gu=/^\[object .+?Constructor\]$/,vu=Function.prototype,mu=Object.prototype,yu=vu.toString,bu=mu.hasOwnProperty,_u=RegExp("^"+yu.call(bu).replace(du,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function wu(t){if(!we(t)||fu(t))return!1;var e=Ke(t)?_u:gu;return e.test(Ye(t))}function Eu(t,e){return t==null?void 0:t[e]}function Ze(t,e){var r=Eu(t,e);return wu(r)?r:void 0}var Su=Ze(Te,"WeakMap");const Zr=Su;var ti=Object.create,Tu=(function(){function t(){}return function(e){if(!we(e))return{};if(ti)return ti(e);t.prototype=e;var r=new t;return t.prototype=void 0,r}})();const Ru=Tu;function xs(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 Au(t,e){var r=-1,n=t.length;for(e||(e=Array(n));++r<n;)e[r]=t[r];return e}var xu=800,Ou=16,$u=Date.now;function Du(t){var e=0,r=0;return function(){var n=$u(),i=Ou-(n-r);if(r=n,i>0){if(++e>=xu)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}function Cu(t){return function(){return t}}var Bu=(function(){try{var t=Ze(Object,"defineProperty");return t({},"",{}),t}catch(e){}})();const rr=Bu;var Pu=rr?function(t,e){return rr(t,"toString",{configurable:!0,enumerable:!1,value:Cu(e),writable:!0})}:As;const ju=Pu;var Nu=Du(ju);const Iu=Nu;function Mu(t,e){for(var r=-1,n=t==null?0:t.length;++r<n&&e(t[r],r,t)!==!1;);return t}var Fu=9007199254740991,Lu=/^(?:0|[1-9]\d*)$/;function Os(t,e){var r=typeof t;return e=e==null?Fu:e,!!e&&(r=="number"||r!="symbol"&&Lu.test(t))&&t>-1&&t%1==0&&t<e}function Rn(t,e,r){e=="__proto__"&&rr?rr(t,e,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[e]=r}function ft(t,e){return t===e||t!==t&&e!==e}var Uu=Object.prototype,Hu=Uu.hasOwnProperty;function $s(t,e,r){var n=t[e];(!(Hu.call(t,e)&&ft(n,r))||r===void 0&&!(e in t))&&Rn(t,e,r)}function Ds(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?Rn(r,u,l):$s(r,u,l)}return r}var ri=Math.max;function ku(t,e,r){return e=ri(e===void 0?t.length-1:e,0),function(){for(var n=arguments,i=-1,s=ri(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),xs(t,this,u)}}function Cs(t,e){return Iu(ku(t,e,As),t+"")}var Vu=9007199254740991;function Bs(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=Vu}function cr(t){return t!=null&&Bs(t.length)&&!Ke(t)}function qu(t,e,r){if(!we(r))return!1;var n=typeof e;return(n=="number"?cr(r)&&Os(e,r.length):n=="string"&&e in r)?ft(r[e],t):!1}function Ps(t){return Cs(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&&qu(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 zu=Object.prototype;function An(t){var e=t&&t.constructor,r=typeof e=="function"&&e.prototype||zu;return t===r}function Wu(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}var Ku="[object Arguments]";function ni(t){return _e(t)&&Pe(t)==Ku}var js=Object.prototype,Ju=js.hasOwnProperty,Gu=js.propertyIsEnumerable,Yu=ni((function(){return arguments})())?ni:function(t){return _e(t)&&Ju.call(t,"callee")&&!Gu.call(t,"callee")};const Qr=Yu;function Zu(){return!1}var Ns=typeof exports=="object"&&exports&&!exports.nodeType&&exports,ii=Ns&&typeof module=="object"&&module&&!module.nodeType&&module,Qu=ii&&ii.exports===Ns,si=Qu?Te.Buffer:void 0,Xu=si?si.isBuffer:void 0,ec=Xu||Zu;const St=ec;var tc="[object Arguments]",rc="[object Array]",nc="[object Boolean]",ic="[object Date]",sc="[object Error]",oc="[object Function]",ac="[object Map]",uc="[object Number]",cc="[object Object]",lc="[object RegExp]",fc="[object Set]",hc="[object String]",pc="[object WeakMap]",dc="[object ArrayBuffer]",gc="[object DataView]",vc="[object Float32Array]",mc="[object Float64Array]",yc="[object Int8Array]",bc="[object Int16Array]",_c="[object Int32Array]",wc="[object Uint8Array]",Ec="[object Uint8ClampedArray]",Sc="[object Uint16Array]",Tc="[object Uint32Array]",Q={};Q[vc]=Q[mc]=Q[yc]=Q[bc]=Q[_c]=Q[wc]=Q[Ec]=Q[Sc]=Q[Tc]=!0;Q[tc]=Q[rc]=Q[dc]=Q[nc]=Q[gc]=Q[ic]=Q[sc]=Q[oc]=Q[ac]=Q[uc]=Q[cc]=Q[lc]=Q[fc]=Q[hc]=Q[pc]=!1;function Rc(t){return _e(t)&&Bs(t.length)&&!!Q[Pe(t)]}function xn(t){return function(e){return t(e)}}var Is=typeof exports=="object"&&exports&&!exports.nodeType&&exports,wt=Is&&typeof module=="object"&&module&&!module.nodeType&&module,Ac=wt&&wt.exports===Is,Ar=Ac&&ws.process,xc=(function(){try{var t=wt&&wt.require&&wt.require("util").types;return t||Ar&&Ar.binding&&Ar.binding("util")}catch(e){}})();const De=xc;var oi=De&&De.isTypedArray,Oc=oi?xn(oi):Rc;const On=Oc;var $c=Object.prototype,Dc=$c.hasOwnProperty;function Ms(t,e){var r=Be(t),n=!r&&Qr(t),i=!r&&!n&&St(t),s=!r&&!n&&!i&&On(t),o=r||n||i||s,u=o?Wu(t.length,String):[],l=u.length;for(var a in t)(e||Dc.call(t,a))&&!(o&&(a=="length"||i&&(a=="offset"||a=="parent")||s&&(a=="buffer"||a=="byteLength"||a=="byteOffset")||Os(a,l)))&&u.push(a);return u}function Fs(t,e){return function(r){return t(e(r))}}var Cc=Fs(Object.keys,Object);const Bc=Cc;var Pc=Object.prototype,jc=Pc.hasOwnProperty;function Nc(t){if(!An(t))return Bc(t);var e=[];for(var r in Object(t))jc.call(t,r)&&r!="constructor"&&e.push(r);return e}function Ls(t){return cr(t)?Ms(t):Nc(t)}function Ic(t){var e=[];if(t!=null)for(var r in Object(t))e.push(r);return e}var Mc=Object.prototype,Fc=Mc.hasOwnProperty;function Lc(t){if(!we(t))return Ic(t);var e=An(t),r=[];for(var n in t)n=="constructor"&&(e||!Fc.call(t,n))||r.push(n);return r}function $n(t){return cr(t)?Ms(t,!0):Lc(t)}var Uc=Ps(function(t,e,r,n){Ds(e,$n(e),t,n)});const ai=Uc;var Hc=Ze(Object,"create");const Tt=Hc;function kc(){this.__data__=Tt?Tt(null):{},this.size=0}function Vc(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var qc="__lodash_hash_undefined__",zc=Object.prototype,Wc=zc.hasOwnProperty;function Kc(t){var e=this.__data__;if(Tt){var r=e[t];return r===qc?void 0:r}return Wc.call(e,t)?e[t]:void 0}var Jc=Object.prototype,Gc=Jc.hasOwnProperty;function Yc(t){var e=this.__data__;return Tt?e[t]!==void 0:Gc.call(e,t)}var Zc="__lodash_hash_undefined__";function Qc(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=Tt&&e===void 0?Zc:e,this}function Je(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])}}Je.prototype.clear=kc;Je.prototype.delete=Vc;Je.prototype.get=Kc;Je.prototype.has=Yc;Je.prototype.set=Qc;function Xc(){this.__data__=[],this.size=0}function lr(t,e){for(var r=t.length;r--;)if(ft(t[r][0],e))return r;return-1}var el=Array.prototype,tl=el.splice;function rl(t){var e=this.__data__,r=lr(e,t);if(r<0)return!1;var n=e.length-1;return r==n?e.pop():tl.call(e,r,1),--this.size,!0}function nl(t){var e=this.__data__,r=lr(e,t);return r<0?void 0:e[r][1]}function il(t){return lr(this.__data__,t)>-1}function sl(t,e){var r=this.__data__,n=lr(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this}function je(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])}}je.prototype.clear=Xc;je.prototype.delete=rl;je.prototype.get=nl;je.prototype.has=il;je.prototype.set=sl;var ol=Ze(Te,"Map");const Rt=ol;function al(){this.size=0,this.__data__={hash:new Je,map:new(Rt||je),string:new Je}}function ul(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}function fr(t,e){var r=t.__data__;return ul(e)?r[typeof e=="string"?"string":"hash"]:r.map}function cl(t){var e=fr(this,t).delete(t);return this.size-=e?1:0,e}function ll(t){return fr(this,t).get(t)}function fl(t){return fr(this,t).has(t)}function hl(t,e){var r=fr(this,t),n=r.size;return r.set(t,e),this.size+=r.size==n?0:1,this}function Ne(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])}}Ne.prototype.clear=al;Ne.prototype.delete=cl;Ne.prototype.get=ll;Ne.prototype.has=fl;Ne.prototype.set=hl;var pl="Expected a function";function Dn(t,e){if(typeof t!="function"||e!=null&&typeof e!="function")throw new TypeError(pl);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(Dn.Cache||Ne),r}Dn.Cache=Ne;var dl=500;function gl(t){var e=Dn(t,function(n){return r.size===dl&&r.clear(),n}),r=e.cache;return e}var vl=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ml=/\\(\\)?/g;gl(function(t){var e=[];return t.charCodeAt(0)===46&&e.push(""),t.replace(vl,function(r,n,i,s){e.push(i?s.replace(ml,"$1"):n||r)}),e});function ht(t){return t==null?"":Rs(t)}function yl(t,e){for(var r=-1,n=e.length,i=t.length;++r<n;)t[i+r]=e[r];return t}var bl=Fs(Object.getPrototypeOf,Object);const Us=bl;var _l="[object Object]",wl=Function.prototype,El=Object.prototype,Hs=wl.toString,Sl=El.hasOwnProperty,Tl=Hs.call(Object);function ks(t){if(!_e(t)||Pe(t)!=_l)return!1;var e=Us(t);if(e===null)return!0;var r=Sl.call(e,"constructor")&&e.constructor;return typeof r=="function"&&r instanceof r&&Hs.call(r)==Tl}var Rl="[object DOMException]",Al="[object Error]";function Vs(t){if(!_e(t))return!1;var e=Pe(t);return e==Al||e==Rl||typeof t.message=="string"&&typeof t.name=="string"&&!ks(t)}var xl=Cs(function(t,e){try{return xs(t,void 0,e)}catch(r){return Vs(r)?r:new Error(r)}});const Ol=xl;function $l(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 Dl(t,e,r){var n=t.length;return r=r===void 0?n:r,!e&&r>=n?t:$l(t,e,r)}var Cl="\\ud800-\\udfff",Bl="\\u0300-\\u036f",Pl="\\ufe20-\\ufe2f",jl="\\u20d0-\\u20ff",Nl=Bl+Pl+jl,Il="\\ufe0e\\ufe0f",Ml="\\u200d",Fl=RegExp("["+Ml+Cl+Nl+Il+"]");function qs(t){return Fl.test(t)}function Ll(t){return t.split("")}var zs="\\ud800-\\udfff",Ul="\\u0300-\\u036f",Hl="\\ufe20-\\ufe2f",kl="\\u20d0-\\u20ff",Vl=Ul+Hl+kl,ql="\\ufe0e\\ufe0f",zl="["+zs+"]",Xr="["+Vl+"]",en="\\ud83c[\\udffb-\\udfff]",Wl="(?:"+Xr+"|"+en+")",Ws="[^"+zs+"]",Ks="(?:\\ud83c[\\udde6-\\uddff]){2}",Js="[\\ud800-\\udbff][\\udc00-\\udfff]",Kl="\\u200d",Gs=Wl+"?",Ys="["+ql+"]?",Jl="(?:"+Kl+"(?:"+[Ws,Ks,Js].join("|")+")"+Ys+Gs+")*",Gl=Ys+Gs+Jl,Yl="(?:"+[Ws+Xr+"?",Xr,Ks,Js,zl].join("|")+")",Zl=RegExp(en+"(?="+en+")|"+Yl+Gl,"g");function Ql(t){return t.match(Zl)||[]}function Xl(t){return qs(t)?Ql(t):Ll(t)}function ef(t){return function(e){e=ht(e);var r=qs(e)?Xl(e):void 0,n=r?r[0]:e.charAt(0),i=r?Dl(r,1).join(""):e.slice(1);return n[t]()+i}}var tf=ef("toUpperCase");const Zs=tf;function rf(t){return Zs(ht(t).toLowerCase())}function nf(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 Qs(t){return function(e){return t==null?void 0:t[e]}}var sf={À:"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"},of=Qs(sf);const af=of;var uf=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,cf="\\u0300-\\u036f",lf="\\ufe20-\\ufe2f",ff="\\u20d0-\\u20ff",hf=cf+lf+ff,pf="["+hf+"]",df=RegExp(pf,"g");function gf(t){return t=ht(t),t&&t.replace(uf,af).replace(df,"")}var vf=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function mf(t){return t.match(vf)||[]}var yf=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function bf(t){return yf.test(t)}var Xs="\\ud800-\\udfff",_f="\\u0300-\\u036f",wf="\\ufe20-\\ufe2f",Ef="\\u20d0-\\u20ff",Sf=_f+wf+Ef,eo="\\u2700-\\u27bf",to="a-z\\xdf-\\xf6\\xf8-\\xff",Tf="\\xac\\xb1\\xd7\\xf7",Rf="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Af="\\u2000-\\u206f",xf=" \\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",ro="A-Z\\xc0-\\xd6\\xd8-\\xde",Of="\\ufe0e\\ufe0f",no=Tf+Rf+Af+xf,io="['’]",ui="["+no+"]",$f="["+Sf+"]",so="\\d+",Df="["+eo+"]",oo="["+to+"]",ao="[^"+Xs+no+so+eo+to+ro+"]",Cf="\\ud83c[\\udffb-\\udfff]",Bf="(?:"+$f+"|"+Cf+")",Pf="[^"+Xs+"]",uo="(?:\\ud83c[\\udde6-\\uddff]){2}",co="[\\ud800-\\udbff][\\udc00-\\udfff]",it="["+ro+"]",jf="\\u200d",ci="(?:"+oo+"|"+ao+")",Nf="(?:"+it+"|"+ao+")",li="(?:"+io+"(?:d|ll|m|re|s|t|ve))?",fi="(?:"+io+"(?:D|LL|M|RE|S|T|VE))?",lo=Bf+"?",fo="["+Of+"]?",If="(?:"+jf+"(?:"+[Pf,uo,co].join("|")+")"+fo+lo+")*",Mf="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Ff="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Lf=fo+lo+If,Uf="(?:"+[Df,uo,co].join("|")+")"+Lf,Hf=RegExp([it+"?"+oo+"+"+li+"(?="+[ui,it,"$"].join("|")+")",Nf+"+"+fi+"(?="+[ui,it+ci,"$"].join("|")+")",it+"?"+ci+"+"+li,it+"+"+fi,Ff,Mf,so,Uf].join("|"),"g");function kf(t){return t.match(Hf)||[]}function Vf(t,e,r){return t=ht(t),e=e,e===void 0?bf(t)?kf(t):mf(t):t.match(e)||[]}var qf="['’]",zf=RegExp(qf,"g");function Wf(t){return function(e){return nf(Vf(gf(e).replace(zf,"")),t,"")}}var Kf=Wf(function(t,e,r){return e=e.toLowerCase(),t+(r?rf(e):e)});const Ae=Kf;function Jf(){this.__data__=new je,this.size=0}function Gf(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r}function Yf(t){return this.__data__.get(t)}function Zf(t){return this.__data__.has(t)}var Qf=200;function Xf(t,e){var r=this.__data__;if(r instanceof je){var n=r.__data__;if(!Rt||n.length<Qf-1)return n.push([t,e]),this.size=++r.size,this;r=this.__data__=new Ne(n)}return r.set(t,e),this.size=r.size,this}function xe(t){var e=this.__data__=new je(t);this.size=e.size}xe.prototype.clear=Jf;xe.prototype.delete=Gf;xe.prototype.get=Yf;xe.prototype.has=Zf;xe.prototype.set=Xf;var ho=typeof exports=="object"&&exports&&!exports.nodeType&&exports,hi=ho&&typeof module=="object"&&module&&!module.nodeType&&module,eh=hi&&hi.exports===ho,pi=eh?Te.Buffer:void 0,di=pi?pi.allocUnsafe:void 0;function po(t,e){if(e)return t.slice();var r=t.length,n=di?di(r):new t.constructor(r);return t.copy(n),n}function th(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 rh(){return[]}var nh=Object.prototype,ih=nh.propertyIsEnumerable,gi=Object.getOwnPropertySymbols,sh=gi?function(t){return t==null?[]:(t=Object(t),th(gi(t),function(e){return ih.call(t,e)}))}:rh;const oh=sh;function ah(t,e,r){var n=e(t);return Be(t)?n:yl(n,r(t))}function tn(t){return ah(t,Ls,oh)}var uh=Ze(Te,"DataView");const rn=uh;var ch=Ze(Te,"Promise");const nn=ch;var lh=Ze(Te,"Set");const sn=lh;var vi="[object Map]",fh="[object Object]",mi="[object Promise]",yi="[object Set]",bi="[object WeakMap]",_i="[object DataView]",hh=Ye(rn),ph=Ye(Rt),dh=Ye(nn),gh=Ye(sn),vh=Ye(Zr),qe=Pe;(rn&&qe(new rn(new ArrayBuffer(1)))!=_i||Rt&&qe(new Rt)!=vi||nn&&qe(nn.resolve())!=mi||sn&&qe(new sn)!=yi||Zr&&qe(new Zr)!=bi)&&(qe=function(t){var e=Pe(t),r=e==fh?t.constructor:void 0,n=r?Ye(r):"";if(n)switch(n){case hh:return _i;case ph:return vi;case dh:return mi;case gh:return yi;case vh:return bi}return e});const At=qe;var mh=Object.prototype,yh=mh.hasOwnProperty;function bh(t){var e=t.length,r=new t.constructor(e);return e&&typeof t[0]=="string"&&yh.call(t,"index")&&(r.index=t.index,r.input=t.input),r}var _h=Te.Uint8Array;const nr=_h;function Cn(t){var e=new t.constructor(t.byteLength);return new nr(e).set(new nr(t)),e}function wh(t,e){var r=Cn(t.buffer);return new t.constructor(r,t.byteOffset,t.byteLength)}var Eh=/\w*$/;function Sh(t){var e=new t.constructor(t.source,Eh.exec(t));return e.lastIndex=t.lastIndex,e}var wi=$e?$e.prototype:void 0,Ei=wi?wi.valueOf:void 0;function Th(t){return Ei?Object(Ei.call(t)):{}}function go(t,e){var r=e?Cn(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length)}var Rh="[object Boolean]",Ah="[object Date]",xh="[object Map]",Oh="[object Number]",$h="[object RegExp]",Dh="[object Set]",Ch="[object String]",Bh="[object Symbol]",Ph="[object ArrayBuffer]",jh="[object DataView]",Nh="[object Float32Array]",Ih="[object Float64Array]",Mh="[object Int8Array]",Fh="[object Int16Array]",Lh="[object Int32Array]",Uh="[object Uint8Array]",Hh="[object Uint8ClampedArray]",kh="[object Uint16Array]",Vh="[object Uint32Array]";function qh(t,e,r){var n=t.constructor;switch(e){case Ph:return Cn(t);case Rh:case Ah:return new n(+t);case jh:return wh(t);case Nh:case Ih:case Mh:case Fh:case Lh:case Uh:case Hh:case kh:case Vh:return go(t,r);case xh:return new n;case Oh:case Ch:return new n(t);case $h:return Sh(t);case Dh:return new n;case Bh:return Th(t)}}function vo(t){return typeof t.constructor=="function"&&!An(t)?Ru(Us(t)):{}}var zh="[object Map]";function Wh(t){return _e(t)&&At(t)==zh}var Si=De&&De.isMap,Kh=Si?xn(Si):Wh;const Jh=Kh;var Gh="[object Set]";function Yh(t){return _e(t)&&At(t)==Gh}var Ti=De&&De.isSet,Zh=Ti?xn(Ti):Yh;const Qh=Zh;var Xh=1,mo="[object Arguments]",ep="[object Array]",tp="[object Boolean]",rp="[object Date]",np="[object Error]",yo="[object Function]",ip="[object GeneratorFunction]",sp="[object Map]",op="[object Number]",bo="[object Object]",ap="[object RegExp]",up="[object Set]",cp="[object String]",lp="[object Symbol]",fp="[object WeakMap]",hp="[object ArrayBuffer]",pp="[object DataView]",dp="[object Float32Array]",gp="[object Float64Array]",vp="[object Int8Array]",mp="[object Int16Array]",yp="[object Int32Array]",bp="[object Uint8Array]",_p="[object Uint8ClampedArray]",wp="[object Uint16Array]",Ep="[object Uint32Array]",Z={};Z[mo]=Z[ep]=Z[hp]=Z[pp]=Z[tp]=Z[rp]=Z[dp]=Z[gp]=Z[vp]=Z[mp]=Z[yp]=Z[sp]=Z[op]=Z[bo]=Z[ap]=Z[up]=Z[cp]=Z[lp]=Z[bp]=Z[_p]=Z[wp]=Z[Ep]=!0;Z[np]=Z[yo]=Z[fp]=!1;function Jt(t,e,r,n,i,s){var o,u=e&Xh;if(o!==void 0)return o;if(!we(t))return t;var l=Be(t);if(l)o=bh(t);else{var a=At(t),c=a==yo||a==ip;if(St(t))return po(t,u);if(a==bo||a==mo||c&&!i)o=c?{}:vo(t);else{if(!Z[a])return i?t:{};o=qh(t,a,u)}}s||(s=new xe);var f=s.get(t);if(f)return f;s.set(t,o),Qh(t)?t.forEach(function(g){o.add(Jt(g,e,r,g,t,s))}):Jh(t)&&t.forEach(function(g,d){o.set(d,Jt(g,e,r,d,t,s))});var h=tn,p=l?void 0:h(t);return Mu(p||t,function(g,d){p&&(d=g,g=t[d]),$s(o,d,Jt(g,e,r,d,t,s))}),o}var Sp=1,Tp=4;function Ri(t){return Jt(t,Sp|Tp)}var Rp="__lodash_hash_undefined__";function Ap(t){return this.__data__.set(t,Rp),this}function xp(t){return this.__data__.has(t)}function ir(t){var e=-1,r=t==null?0:t.length;for(this.__data__=new Ne;++e<r;)this.add(t[e])}ir.prototype.add=ir.prototype.push=Ap;ir.prototype.has=xp;function Op(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 $p(t,e){return t.has(e)}var Dp=1,Cp=2;function _o(t,e,r,n,i,s){var o=r&Dp,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&Cp?new ir:void 0;for(s.set(t,e),s.set(e,t);++f<u;){var g=t[f],d=e[f];if(n)var m=o?n(d,g,f,e,t,s):n(g,d,f,t,e,s);if(m!==void 0){if(m)continue;h=!1;break}if(p){if(!Op(e,function(_,v){if(!$p(p,v)&&(g===_||i(g,_,r,n,s)))return p.push(v)})){h=!1;break}}else if(!(g===d||i(g,d,r,n,s))){h=!1;break}}return s.delete(t),s.delete(e),h}function Bp(t){var e=-1,r=Array(t.size);return t.forEach(function(n,i){r[++e]=[i,n]}),r}function Pp(t){var e=-1,r=Array(t.size);return t.forEach(function(n){r[++e]=n}),r}var jp=1,Np=2,Ip="[object Boolean]",Mp="[object Date]",Fp="[object Error]",Lp="[object Map]",Up="[object Number]",Hp="[object RegExp]",kp="[object Set]",Vp="[object String]",qp="[object Symbol]",zp="[object ArrayBuffer]",Wp="[object DataView]",Ai=$e?$e.prototype:void 0,xr=Ai?Ai.valueOf:void 0;function Kp(t,e,r,n,i,s,o){switch(r){case Wp:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case zp:return!(t.byteLength!=e.byteLength||!s(new nr(t),new nr(e)));case Ip:case Mp:case Up:return ft(+t,+e);case Fp:return t.name==e.name&&t.message==e.message;case Hp:case Vp:return t==e+"";case Lp:var u=Bp;case kp:var l=n&jp;if(u||(u=Pp),t.size!=e.size&&!l)return!1;var a=o.get(t);if(a)return a==e;n|=Np,o.set(t,e);var c=_o(u(t),u(e),n,i,s,o);return o.delete(t),c;case qp:if(xr)return xr.call(t)==xr.call(e)}return!1}var Jp=1,Gp=Object.prototype,Yp=Gp.hasOwnProperty;function Zp(t,e,r,n,i,s){var o=r&Jp,u=tn(t),l=u.length,a=tn(e),c=a.length;if(l!=c&&!o)return!1;for(var f=l;f--;){var h=u[f];if(!(o?h in e:Yp.call(e,h)))return!1}var p=s.get(t),g=s.get(e);if(p&&g)return p==e&&g==t;var d=!0;s.set(t,e),s.set(e,t);for(var m=o;++f<l;){h=u[f];var _=t[h],v=e[h];if(n)var y=o?n(v,_,h,e,t,s):n(_,v,h,t,e,s);if(!(y===void 0?_===v||i(_,v,r,n,s):y)){d=!1;break}m||(m=h=="constructor")}if(d&&!m){var w=t.constructor,E=e.constructor;w!=E&&"constructor"in t&&"constructor"in e&&!(typeof w=="function"&&w instanceof w&&typeof E=="function"&&E instanceof E)&&(d=!1)}return s.delete(t),s.delete(e),d}var Qp=1,xi="[object Arguments]",Oi="[object Array]",Nt="[object Object]",Xp=Object.prototype,$i=Xp.hasOwnProperty;function ed(t,e,r,n,i,s){var o=Be(t),u=Be(e),l=o?Oi:At(t),a=u?Oi:At(e);l=l==xi?Nt:l,a=a==xi?Nt:a;var c=l==Nt,f=a==Nt,h=l==a;if(h&&St(t)){if(!St(e))return!1;o=!0,c=!1}if(h&&!c)return s||(s=new xe),o||On(t)?_o(t,e,r,n,i,s):Kp(t,e,l,r,n,i,s);if(!(r&Qp)){var p=c&&$i.call(t,"__wrapped__"),g=f&&$i.call(e,"__wrapped__");if(p||g){var d=p?t.value():t,m=g?e.value():e;return s||(s=new xe),i(d,m,r,n,s)}}return h?(s||(s=new xe),Zp(t,e,r,n,i,s)):!1}function wo(t,e,r,n,i){return t===e?!0:t==null||e==null||!_e(t)&&!_e(e)?t!==t&&e!==e:ed(t,e,r,n,wo,i)}function td(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 rd=td();const nd=rd;var id=function(){return Te.Date.now()};const Or=id;var sd="Expected a function",od=Math.max,ad=Math.min;function Bn(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(sd);e=Xn(e)||0,we(r)&&(c=!!r.leading,f="maxWait"in r,s=f?od(Xn(r.maxWait)||0,e):s,h="trailing"in r?!!r.trailing:h);function p(b){var A=n,$=i;return n=i=void 0,a=b,o=t.apply($,A),o}function g(b){return a=b,u=setTimeout(_,e),c?p(b):o}function d(b){var A=b-l,$=b-a,L=e-A;return f?ad(L,s-$):L}function m(b){var A=b-l,$=b-a;return l===void 0||A>=e||A<0||f&&$>=s}function _(){var b=Or();if(m(b))return v(b);u=setTimeout(_,d(b))}function v(b){return u=void 0,h&&n?p(b):(n=i=void 0,o)}function y(){u!==void 0&&clearTimeout(u),a=0,n=l=i=u=void 0}function w(){return u===void 0?o:v(Or())}function E(){var b=Or(),A=m(b);if(n=arguments,i=this,l=b,A){if(u===void 0)return g(l);if(f)return clearTimeout(u),u=setTimeout(_,e),p(l)}return u===void 0&&(u=setTimeout(_,e)),o}return E.cancel=y,E.flush=w,E}function on(t,e,r){(r!==void 0&&!ft(t[e],r)||r===void 0&&!(e in t))&&Rn(t,e,r)}function ud(t){return _e(t)&&cr(t)}function an(t,e){if(!(e==="constructor"&&typeof t[e]=="function")&&e!="__proto__")return t[e]}function cd(t){return Ds(t,$n(t))}function ld(t,e,r,n,i,s,o){var u=an(t,r),l=an(e,r),a=o.get(l);if(a){on(t,r,a);return}var c=s?s(u,l,r+"",t,e,o):void 0,f=c===void 0;if(f){var h=Be(l),p=!h&&St(l),g=!h&&!p&&On(l);c=l,h||p||g?Be(u)?c=u:ud(u)?c=Au(u):p?(f=!1,c=po(l,!0)):g?(f=!1,c=go(l,!0)):c=[]:ks(l)||Qr(l)?(c=u,Qr(u)?c=cd(u):(!we(u)||Ke(u))&&(c=vo(l))):f=!1}f&&(o.set(l,c),i(c,l,n,s,o),o.delete(l)),on(t,r,c)}function Eo(t,e,r,n,i){t!==e&&nd(e,function(s,o){if(i||(i=new xe),we(s))ld(t,e,o,r,Eo,n,i);else{var u=n?n(an(t,o),s,o+"",t,e,i):void 0;u===void 0&&(u=s),on(t,o,u)}},$n)}var fd={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},hd=Qs(fd);const pd=hd;var So=/[&<>"']/g,dd=RegExp(So.source);function gd(t){return t=ht(t),t&&dd.test(t)?t.replace(So,pd):t}var vd="[object String]";function Ue(t){return typeof t=="string"||!Be(t)&&_e(t)&&Pe(t)==vd}function md(t,e){return Ts(e,function(r){return t[r]})}De&&De.isArrayBuffer;De&&De.isDate;function yd(t,e){return wo(t,e)}var bd=Ps(function(t,e,r){Eo(t,e,r)});const bt=bd;var To=Object.prototype,_d=To.hasOwnProperty;function Di(t,e,r,n){return t===void 0||ft(t,To[r])&&!_d.call(n,r)?e:t}var wd={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"};function Ed(t){return"\\"+wd[t]}var Sd=/<%=([\s\S]+?)%>/g;const Ro=Sd;var Td=/<%-([\s\S]+?)%>/g;const Rd=Td;var Ad=/<%([\s\S]+?)%>/g;const xd=Ad;var Od={escape:Rd,evaluate:xd,interpolate:Ro,variable:"",imports:{_:{escape:gd}}};const Ci=Od;var $d="Invalid `variable` option passed into `_.template`",Dd=/\b__p \+= '';/g,Cd=/\b(__p \+=) '' \+/g,Bd=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Pd=/[()=,{}\[\]\/\s]/,jd=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,It=/($^)/,Nd=/['\n\r\u2028\u2029\\]/g,Id=Object.prototype,Bi=Id.hasOwnProperty;function Md(t,e,r){var n=Ci.imports._.templateSettings||Ci;t=ht(t),e=ai({},e,n,Di);var i=ai({},e.imports,n.imports,Di),s=Ls(i),o=md(i,s),u,l,a=0,c=e.interpolate||It,f="__p += '",h=RegExp((e.escape||It).source+"|"+c.source+"|"+(c===Ro?jd:It).source+"|"+(e.evaluate||It).source+"|$","g"),p=Bi.call(e,"sourceURL")?"//# sourceURL="+(e.sourceURL+"").replace(/\s/g," ")+`
3
- `:"";t.replace(h,function(m,_,v,y,w,E){return v||(v=y),f+=t.slice(a,E).replace(Nd,Ed),_&&(u=!0,f+=`' +
4
- __e(`+_+`) +
5
- '`),w&&(l=!0,f+=`';
6
- `+w+`;
7
- __p += '`),v&&(f+=`' +
8
- ((__t = (`+v+`)) == null ? '' : __t) +
9
- '`),a=E+m.length,m}),f+=`';
10
- `;var g=Bi.call(e,"variable")&&e.variable;if(!g)f=`with (obj) {
11
- `+f+`
12
- }
13
- `;else if(Pd.test(g))throw new Error($d);f=(l?f.replace(Dd,""):f).replace(Cd,"$1").replace(Bd,"$1;"),f="function("+(g||"obj")+`) {
14
- `+(g?"":`obj || (obj = {});
15
- `)+"var __t, __p = ''"+(u?", __e = _.escape":"")+(l?`, __j = Array.prototype.join;
16
- function print() { __p += __j.call(arguments, '') }
17
- `:`;
18
- `)+f+`return __p
19
- }`;var d=Ol(function(){return Function(s,p+"return "+f).apply(void 0,o)});if(d.source=f,Vs(d))throw d;return d}var Fd="Expected a function";function Ld(t,e,r){var n=!0,i=!0;if(typeof t!="function")throw new TypeError(Fd);return we(r)&&(n="leading"in r?!0:n,i="trailing"in r?!1:i),Bn(t,e,{leading:n,maxWait:e,trailing:i})}function Ud(t){return Zs(Ae(t))}var ce=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function Hd(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Ao={exports:{}};function kd(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 $r={exports:{}},Pi;function He(){return Pi||(Pi=1,(function(t,e){(function(r,n){t.exports=n()})(ce,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 ce!="undefined"&&ce.crypto&&(s=ce.crypto),!s&&typeof kd=="function")try{s=require("crypto")}catch(v){}var o=function(){if(s){if(typeof s.getRandomValues=="function")try{return s.getRandomValues(new Uint32Array(1))[0]}catch(v){}if(typeof s.randomBytes=="function")try{return s.randomBytes(4).readInt32LE()}catch(v){}}throw new Error("Native crypto module could not be used to get secure random number.")},u=Object.create||(function(){function v(){}return function(y){var w;return v.prototype=y,w=new v,v.prototype=null,w}})(),l={},a=l.lib={},c=a.Base=(function(){return{extend:function(v){var y=u(this);return v&&y.mixIn(v),(!y.hasOwnProperty("init")||this.init===y.init)&&(y.init=function(){y.$super.init.apply(this,arguments)}),y.init.prototype=y,y.$super=this,y},create:function(){var v=this.extend();return v.init.apply(v,arguments),v},init:function(){},mixIn:function(v){for(var y in v)v.hasOwnProperty(y)&&(this[y]=v[y]);v.hasOwnProperty("toString")&&(this.toString=v.toString)},clone:function(){return this.init.prototype.extend(this)}}})(),f=a.WordArray=c.extend({init:function(v,y){v=this.words=v||[],y!=i?this.sigBytes=y:this.sigBytes=v.length*4},toString:function(v){return(v||p).stringify(this)},concat:function(v){var y=this.words,w=v.words,E=this.sigBytes,b=v.sigBytes;if(this.clamp(),E%4)for(var A=0;A<b;A++){var $=w[A>>>2]>>>24-A%4*8&255;y[E+A>>>2]|=$<<24-(E+A)%4*8}else for(var L=0;L<b;L+=4)y[E+L>>>2]=w[L>>>2];return this.sigBytes+=b,this},clamp:function(){var v=this.words,y=this.sigBytes;v[y>>>2]&=4294967295<<32-y%4*8,v.length=n.ceil(y/4)},clone:function(){var v=c.clone.call(this);return v.words=this.words.slice(0),v},random:function(v){for(var y=[],w=0;w<v;w+=4)y.push(o());return new f.init(y,v)}}),h=l.enc={},p=h.Hex={stringify:function(v){for(var y=v.words,w=v.sigBytes,E=[],b=0;b<w;b++){var A=y[b>>>2]>>>24-b%4*8&255;E.push((A>>>4).toString(16)),E.push((A&15).toString(16))}return E.join("")},parse:function(v){for(var y=v.length,w=[],E=0;E<y;E+=2)w[E>>>3]|=parseInt(v.substr(E,2),16)<<24-E%8*4;return new f.init(w,y/2)}},g=h.Latin1={stringify:function(v){for(var y=v.words,w=v.sigBytes,E=[],b=0;b<w;b++){var A=y[b>>>2]>>>24-b%4*8&255;E.push(String.fromCharCode(A))}return E.join("")},parse:function(v){for(var y=v.length,w=[],E=0;E<y;E++)w[E>>>2]|=(v.charCodeAt(E)&255)<<24-E%4*8;return new f.init(w,y)}},d=h.Utf8={stringify:function(v){try{return decodeURIComponent(escape(g.stringify(v)))}catch(y){throw new Error("Malformed UTF-8 data")}},parse:function(v){return g.parse(unescape(encodeURIComponent(v)))}},m=a.BufferedBlockAlgorithm=c.extend({reset:function(){this._data=new f.init,this._nDataBytes=0},_append:function(v){typeof v=="string"&&(v=d.parse(v)),this._data.concat(v),this._nDataBytes+=v.sigBytes},_process:function(v){var y,w=this._data,E=w.words,b=w.sigBytes,A=this.blockSize,$=A*4,L=b/$;v?L=n.ceil(L):L=n.max((L|0)-this._minBufferSize,0);var S=L*A,R=n.min(S*4,b);if(S){for(var M=0;M<S;M+=A)this._doProcessBlock(E,M);y=E.splice(0,S),w.sigBytes-=R}return new f.init(y,R)},clone:function(){var v=c.clone.call(this);return v._data=this._data.clone(),v},_minBufferSize:0});a.Hasher=m.extend({cfg:c.extend(),init:function(v){this.cfg=this.cfg.extend(v),this.reset()},reset:function(){m.reset.call(this),this._doReset()},update:function(v){return this._append(v),this._process(),this},finalize:function(v){v&&this._append(v);var y=this._doFinalize();return y},blockSize:16,_createHelper:function(v){return function(y,w){return new v.init(w).finalize(y)}},_createHmacHelper:function(v){return function(y,w){return new _.HMAC.init(v,w).finalize(y)}}});var _=l.algo={};return l})(Math);return r})})($r)),$r.exports}(function(t,e){(function(r,n){t.exports=n(He())})(ce,function(r){return(function(n){var i=r,s=i.lib,o=s.WordArray,u=s.Hasher,l=i.algo,a=[];(function(){for(var d=0;d<64;d++)a[d]=n.abs(n.sin(d+1))*4294967296|0})();var c=l.MD5=u.extend({_doReset:function(){this._hash=new o.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(d,m){for(var _=0;_<16;_++){var v=m+_,y=d[v];d[v]=(y<<8|y>>>24)&16711935|(y<<24|y>>>8)&4278255360}var w=this._hash.words,E=d[m+0],b=d[m+1],A=d[m+2],$=d[m+3],L=d[m+4],S=d[m+5],R=d[m+6],M=d[m+7],N=d[m+8],I=d[m+9],D=d[m+10],P=d[m+11],H=d[m+12],U=d[m+13],z=d[m+14],V=d[m+15],O=w[0],j=w[1],x=w[2],B=w[3];O=f(O,j,x,B,E,7,a[0]),B=f(B,O,j,x,b,12,a[1]),x=f(x,B,O,j,A,17,a[2]),j=f(j,x,B,O,$,22,a[3]),O=f(O,j,x,B,L,7,a[4]),B=f(B,O,j,x,S,12,a[5]),x=f(x,B,O,j,R,17,a[6]),j=f(j,x,B,O,M,22,a[7]),O=f(O,j,x,B,N,7,a[8]),B=f(B,O,j,x,I,12,a[9]),x=f(x,B,O,j,D,17,a[10]),j=f(j,x,B,O,P,22,a[11]),O=f(O,j,x,B,H,7,a[12]),B=f(B,O,j,x,U,12,a[13]),x=f(x,B,O,j,z,17,a[14]),j=f(j,x,B,O,V,22,a[15]),O=h(O,j,x,B,b,5,a[16]),B=h(B,O,j,x,R,9,a[17]),x=h(x,B,O,j,P,14,a[18]),j=h(j,x,B,O,E,20,a[19]),O=h(O,j,x,B,S,5,a[20]),B=h(B,O,j,x,D,9,a[21]),x=h(x,B,O,j,V,14,a[22]),j=h(j,x,B,O,L,20,a[23]),O=h(O,j,x,B,I,5,a[24]),B=h(B,O,j,x,z,9,a[25]),x=h(x,B,O,j,$,14,a[26]),j=h(j,x,B,O,N,20,a[27]),O=h(O,j,x,B,U,5,a[28]),B=h(B,O,j,x,A,9,a[29]),x=h(x,B,O,j,M,14,a[30]),j=h(j,x,B,O,H,20,a[31]),O=p(O,j,x,B,S,4,a[32]),B=p(B,O,j,x,N,11,a[33]),x=p(x,B,O,j,P,16,a[34]),j=p(j,x,B,O,z,23,a[35]),O=p(O,j,x,B,b,4,a[36]),B=p(B,O,j,x,L,11,a[37]),x=p(x,B,O,j,M,16,a[38]),j=p(j,x,B,O,D,23,a[39]),O=p(O,j,x,B,U,4,a[40]),B=p(B,O,j,x,E,11,a[41]),x=p(x,B,O,j,$,16,a[42]),j=p(j,x,B,O,R,23,a[43]),O=p(O,j,x,B,I,4,a[44]),B=p(B,O,j,x,H,11,a[45]),x=p(x,B,O,j,V,16,a[46]),j=p(j,x,B,O,A,23,a[47]),O=g(O,j,x,B,E,6,a[48]),B=g(B,O,j,x,M,10,a[49]),x=g(x,B,O,j,z,15,a[50]),j=g(j,x,B,O,S,21,a[51]),O=g(O,j,x,B,H,6,a[52]),B=g(B,O,j,x,$,10,a[53]),x=g(x,B,O,j,D,15,a[54]),j=g(j,x,B,O,b,21,a[55]),O=g(O,j,x,B,N,6,a[56]),B=g(B,O,j,x,V,10,a[57]),x=g(x,B,O,j,R,15,a[58]),j=g(j,x,B,O,U,21,a[59]),O=g(O,j,x,B,L,6,a[60]),B=g(B,O,j,x,P,10,a[61]),x=g(x,B,O,j,A,15,a[62]),j=g(j,x,B,O,I,21,a[63]),w[0]=w[0]+O|0,w[1]=w[1]+j|0,w[2]=w[2]+x|0,w[3]=w[3]+B|0},_doFinalize:function(){var d=this._data,m=d.words,_=this._nDataBytes*8,v=d.sigBytes*8;m[v>>>5]|=128<<24-v%32;var y=n.floor(_/4294967296),w=_;m[(v+64>>>9<<4)+15]=(y<<8|y>>>24)&16711935|(y<<24|y>>>8)&4278255360,m[(v+64>>>9<<4)+14]=(w<<8|w>>>24)&16711935|(w<<24|w>>>8)&4278255360,d.sigBytes=(m.length+1)*4,this._process();for(var E=this._hash,b=E.words,A=0;A<4;A++){var $=b[A];b[A]=($<<8|$>>>24)&16711935|($<<24|$>>>8)&4278255360}return E},clone:function(){var d=u.clone.call(this);return d._hash=this._hash.clone(),d}});function f(d,m,_,v,y,w,E){var b=d+(m&_|~m&v)+y+E;return(b<<w|b>>>32-w)+m}function h(d,m,_,v,y,w,E){var b=d+(m&v|_&~v)+y+E;return(b<<w|b>>>32-w)+m}function p(d,m,_,v,y,w,E){var b=d+(m^_^v)+y+E;return(b<<w|b>>>32-w)+m}function g(d,m,_,v,y,w,E){var b=d+(_^(m|~v))+y+E;return(b<<w|b>>>32-w)+m}i.MD5=u._createHelper(c),i.HmacMD5=u._createHmacHelper(c)})(Math),r.MD5})})(Ao);var Vd=Ao.exports,xo={exports:{}};(function(t,e){(function(r,n){t.exports=n(He())})(ce,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 g=a[p>>>2]>>>24-p%4*8&255,d=a[p+1>>>2]>>>24-(p+1)%4*8&255,m=a[p+2>>>2]>>>24-(p+2)%4*8&255,_=g<<16|d<<8|m,v=0;v<4&&p+v*.75<c;v++)h.push(f.charAt(_>>>6*(3-v)&63));var y=f.charAt(64);if(y)for(;h.length%4;)h.push(y);return h.join("")},parse:function(l){var a=l.length,c=this._map,f=this._reverseMap;if(!f){f=this._reverseMap=[];for(var h=0;h<c.length;h++)f[c.charCodeAt(h)]=h}var p=c.charAt(64);if(p){var g=l.indexOf(p);g!==-1&&(a=g)}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 g=c[l.charCodeAt(p-1)]<<p%4*2,d=c[l.charCodeAt(p)]>>>6-p%4*2,m=g|d;f[h>>>2]|=m<<24-h%4*8,h++}return s.create(f,h)}})(),r.enc.Base64})})(xo);var qd=xo.exports,zd={exports:{}};(function(t,e){(function(r,n){t.exports=n(He())})(ce,function(r){return r.enc.Utf8})})(zd);var Wd={exports:{}},Dr={exports:{}},Cr={exports:{}},ji;function Kd(){return ji||(ji=1,(function(t,e){(function(r,n){t.exports=n(He())})(ce,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],g=h[1],d=h[2],m=h[3],_=h[4],v=0;v<80;v++){if(v<16)l[v]=c[f+v]|0;else{var y=l[v-3]^l[v-8]^l[v-14]^l[v-16];l[v]=y<<1|y>>>31}var w=(p<<5|p>>>27)+_+l[v];v<20?w+=(g&d|~g&m)+1518500249:v<40?w+=(g^d^m)+1859775393:v<60?w+=(g&d|g&m|d&m)-1894007588:w+=(g^d^m)-899497514,_=m,m=d,d=g<<30|g>>>2,g=p,p=w}h[0]=h[0]+p|0,h[1]=h[1]+g|0,h[2]=h[2]+d|0,h[3]=h[3]+m|0,h[4]=h[4]+_|0},_doFinalize:function(){var c=this._data,f=c.words,h=this._nDataBytes*8,p=c.sigBytes*8;return f[p>>>5]|=128<<24-p%32,f[(p+64>>>9<<4)+14]=Math.floor(h/4294967296),f[(p+64>>>9<<4)+15]=h,c.sigBytes=f.length*4,this._process(),this._hash},clone:function(){var c=o.clone.call(this);return c._hash=this._hash.clone(),c}});n.SHA1=o._createHelper(a),n.HmacSHA1=o._createHmacHelper(a)})(),r.SHA1})})(Cr)),Cr.exports}var Br={exports:{}},Ni;function Jd(){return Ni||(Ni=1,(function(t,e){(function(r,n){t.exports=n(He())})(ce,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(),g=this._iKey=c.clone(),d=p.words,m=g.words,_=0;_<f;_++)d[_]^=1549556828,m[_]^=909522486;p.sigBytes=g.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}})})()})})(Br)),Br.exports}var Ii;function Oo(){return Ii||(Ii=1,(function(t,e){(function(r,n,i){t.exports=n(He(),Kd(),Jd())})(ce,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,g=p.hasher.create(),d=o.create(),m=d.words,_=p.keySize,v=p.iterations;m.length<_;){h&&g.update(h),h=g.update(c).finalize(f),g.reset();for(var y=1;y<v;y++)h=g.finalize(h),g.reset();d.concat(h)}return d.sigBytes=_*4,d}});n.EvpKDF=function(c,f,h){return a.create(h).compute(c,f)}})(),r.EvpKDF})})(Dr)),Dr.exports}var Pr={exports:{}},Mi;function Gd(){return Mi||(Mi=1,(function(t,e){(function(r,n,i){t.exports=n(He(),Oo())})(ce,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,R){return this.create(this._ENC_XFORM_MODE,S,R)},createDecryptor:function(S,R){return this.create(this._DEC_XFORM_MODE,S,R)},init:function(S,R,M){this.cfg=this.cfg.extend(M),this._xformMode=S,this._key=R,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 R=this._doFinalize();return R},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:(function(){function S(R){return typeof R=="string"?L:b}return function(R){return{encrypt:function(M,N,I){return S(N).encrypt(R,M,N,I)},decrypt:function(M,N,I){return S(N).decrypt(R,M,N,I)}}}})()});s.StreamCipher=p.extend({_doFinalize:function(){var S=this._process(!0);return S},blockSize:1});var g=i.mode={},d=s.BlockCipherMode=o.extend({createEncryptor:function(S,R){return this.Encryptor.create(S,R)},createDecryptor:function(S,R){return this.Decryptor.create(S,R)},init:function(S,R){this._cipher=S,this._iv=R}}),m=g.CBC=(function(){var S=d.extend();S.Encryptor=S.extend({processBlock:function(M,N){var I=this._cipher,D=I.blockSize;R.call(this,M,N,D),I.encryptBlock(M,N),this._prevBlock=M.slice(N,N+D)}}),S.Decryptor=S.extend({processBlock:function(M,N){var I=this._cipher,D=I.blockSize,P=M.slice(N,N+D);I.decryptBlock(M,N),R.call(this,M,N,D),this._prevBlock=P}});function R(M,N,I){var D,P=this._iv;P?(D=P,this._iv=n):D=this._prevBlock;for(var H=0;H<I;H++)M[N+H]^=D[H]}return S})(),_=i.pad={},v=_.Pkcs7={pad:function(S,R){for(var M=R*4,N=M-S.sigBytes%M,I=N<<24|N<<16|N<<8|N,D=[],P=0;P<N;P+=4)D.push(I);var H=u.create(D,N);S.concat(H)},unpad:function(S){var R=S.words[S.sigBytes-1>>>2]&255;S.sigBytes-=R}};s.BlockCipher=p.extend({cfg:p.cfg.extend({mode:m,padding:v}),reset:function(){var S;p.reset.call(this);var R=this.cfg,M=R.iv,N=R.mode;this._xformMode==this._ENC_XFORM_MODE?S=N.createEncryptor:(S=N.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==S?this._mode.init(this,M&&M.words):(this._mode=S.call(N,this,M&&M.words),this._mode.__creator=S)},_doProcessBlock:function(S,R){this._mode.processBlock(S,R)},_doFinalize:function(){var S,R=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(R.pad(this._data,this.blockSize),S=this._process(!0)):(S=this._process(!0),R.unpad(S)),S},blockSize:128/32});var y=s.CipherParams=o.extend({init:function(S){this.mixIn(S)},toString:function(S){return(S||this.formatter).stringify(this)}}),w=i.format={},E=w.OpenSSL={stringify:function(S){var R,M=S.ciphertext,N=S.salt;return N?R=u.create([1398893684,1701076831]).concat(N).concat(M):R=M,R.toString(c)},parse:function(S){var R,M=c.parse(S),N=M.words;return N[0]==1398893684&&N[1]==1701076831&&(R=u.create(N.slice(2,4)),N.splice(0,4),M.sigBytes-=16),y.create({ciphertext:M,salt:R})}},b=s.SerializableCipher=o.extend({cfg:o.extend({format:E}),encrypt:function(S,R,M,N){N=this.cfg.extend(N);var I=S.createEncryptor(M,N),D=I.finalize(R),P=I.cfg;return y.create({ciphertext:D,key:M,iv:P.iv,algorithm:S,mode:P.mode,padding:P.padding,blockSize:S.blockSize,formatter:N.format})},decrypt:function(S,R,M,N){N=this.cfg.extend(N),R=this._parse(R,N.format);var I=S.createDecryptor(M,N).finalize(R.ciphertext);return I},_parse:function(S,R){return typeof S=="string"?R.parse(S,this):S}}),A=i.kdf={},$=A.OpenSSL={execute:function(S,R,M,N,I){if(N||(N=u.random(64/8)),I)var D=h.create({keySize:R+M,hasher:I}).compute(S,N);else var D=h.create({keySize:R+M}).compute(S,N);var P=u.create(D.words.slice(R),M*4);return D.sigBytes=R*4,y.create({key:D,iv:P,salt:N})}},L=s.PasswordBasedCipher=b.extend({cfg:b.cfg.extend({kdf:$}),encrypt:function(S,R,M,N){N=this.cfg.extend(N);var I=N.kdf.execute(M,S.keySize,S.ivSize,N.salt,N.hasher);N.iv=I.iv;var D=b.encrypt.call(this,S,R,I.key,N);return D.mixIn(I),D},decrypt:function(S,R,M,N){N=this.cfg.extend(N),R=this._parse(R,N.format);var I=N.kdf.execute(M,S.keySize,S.ivSize,R.salt,N.hasher);N.iv=I.iv;var D=b.decrypt.call(this,S,R,I.key,N);return D}})})()})})(Pr)),Pr.exports}(function(t,e){(function(r,n,i){t.exports=n(He(),qd,Vd,Oo(),Gd())})(ce,function(r){return(function(){var n=r,i=n.lib,s=i.BlockCipher,o=n.algo,u=[],l=[],a=[],c=[],f=[],h=[],p=[],g=[],d=[],m=[];(function(){for(var y=[],w=0;w<256;w++)w<128?y[w]=w<<1:y[w]=w<<1^283;for(var E=0,b=0,w=0;w<256;w++){var A=b^b<<1^b<<2^b<<3^b<<4;A=A>>>8^A&255^99,u[E]=A,l[A]=E;var $=y[E],L=y[$],S=y[L],R=y[A]*257^A*16843008;a[E]=R<<24|R>>>8,c[E]=R<<16|R>>>16,f[E]=R<<8|R>>>24,h[E]=R;var R=S*16843009^L*65537^$*257^E*16843008;p[A]=R<<24|R>>>8,g[A]=R<<16|R>>>16,d[A]=R<<8|R>>>24,m[A]=R,E?(E=$^y[y[y[S^$]]],b^=y[y[b]]):E=b=1}})();var _=[0,1,2,4,8,16,32,64,128,27,54],v=o.AES=s.extend({_doReset:function(){var y;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var w=this._keyPriorReset=this._key,E=w.words,b=w.sigBytes/4,A=this._nRounds=b+6,$=(A+1)*4,L=this._keySchedule=[],S=0;S<$;S++)S<b?L[S]=E[S]:(y=L[S-1],S%b?b>6&&S%b==4&&(y=u[y>>>24]<<24|u[y>>>16&255]<<16|u[y>>>8&255]<<8|u[y&255]):(y=y<<8|y>>>24,y=u[y>>>24]<<24|u[y>>>16&255]<<16|u[y>>>8&255]<<8|u[y&255],y^=_[S/b|0]<<24),L[S]=L[S-b]^y);for(var R=this._invKeySchedule=[],M=0;M<$;M++){var S=$-M;if(M%4)var y=L[S];else var y=L[S-4];M<4||S<=4?R[M]=y:R[M]=p[u[y>>>24]]^g[u[y>>>16&255]]^d[u[y>>>8&255]]^m[u[y&255]]}}},encryptBlock:function(y,w){this._doCryptBlock(y,w,this._keySchedule,a,c,f,h,u)},decryptBlock:function(y,w){var E=y[w+1];y[w+1]=y[w+3],y[w+3]=E,this._doCryptBlock(y,w,this._invKeySchedule,p,g,d,m,l);var E=y[w+1];y[w+1]=y[w+3],y[w+3]=E},_doCryptBlock:function(y,w,E,b,A,$,L,S){for(var R=this._nRounds,M=y[w]^E[0],N=y[w+1]^E[1],I=y[w+2]^E[2],D=y[w+3]^E[3],P=4,H=1;H<R;H++){var U=b[M>>>24]^A[N>>>16&255]^$[I>>>8&255]^L[D&255]^E[P++],z=b[N>>>24]^A[I>>>16&255]^$[D>>>8&255]^L[M&255]^E[P++],V=b[I>>>24]^A[D>>>16&255]^$[M>>>8&255]^L[N&255]^E[P++],O=b[D>>>24]^A[M>>>16&255]^$[N>>>8&255]^L[I&255]^E[P++];M=U,N=z,I=V,D=O}var U=(S[M>>>24]<<24|S[N>>>16&255]<<16|S[I>>>8&255]<<8|S[D&255])^E[P++],z=(S[N>>>24]<<24|S[I>>>16&255]<<16|S[D>>>8&255]<<8|S[M&255])^E[P++],V=(S[I>>>24]<<24|S[D>>>16&255]<<16|S[M>>>8&255]<<8|S[N&255])^E[P++],O=(S[D>>>24]<<24|S[M>>>16&255]<<16|S[N>>>8&255]<<8|S[I&255])^E[P++];y[w]=U,y[w+1]=z,y[w+2]=V,y[w+3]=O},keySize:256/32});n.AES=s._createHelper(v)})(),r.AES})})(Wd);var Yd="0123456789abcdefghijklmnopqrstuvwxyz";function Ce(t){return Yd.charAt(t)}function Zd(t,e){return t&e}function Mt(t,e){return t|e}function Fi(t,e){return t^e}function Li(t,e){return t&~e}function Qd(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 Xd(t){for(var e=0;t!=0;)t&=t-1,++e;return e}var st="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",$o="=";function Et(t){var e,r,n="";for(e=0;e+3<=t.length;e+=3)r=parseInt(t.substring(e,e+3),16),n+=st.charAt(r>>6)+st.charAt(r&63);for(e+1==t.length?(r=parseInt(t.substring(e,e+1),16),n+=st.charAt(r<<2)):e+2==t.length&&(r=parseInt(t.substring(e,e+2),16),n+=st.charAt(r>>2)+st.charAt((r&3)<<4));(n.length&3)>0;)n+=$o;return n}function Ui(t){var e="",r,n=0,i=0;for(r=0;r<t.length&&t.charAt(r)!=$o;++r){var s=st.indexOf(t.charAt(r));s<0||(n==0?(e+=Ce(s>>2),i=s&3,n=1):n==1?(e+=Ce(i<<2|s>>4),i=s&15,n=2):n==2?(e+=Ce(i),e+=Ce(s>>2),i=s&3,n=3):(e+=Ce(i<<2|s>>4),e+=Ce(s&15),n=0))}return n==1&&(e+=Ce(i<<2)),e}var et,eg={decode:function(t){var e;if(et===void 0){var r="0123456789ABCDEF",n=` \f
20
- \r  \u2028\u2029`;for(et={},e=0;e<16;++e)et[r.charAt(e)]=e;for(r=r.toLowerCase(),e=10;e<16;++e)et[r.charAt(e)]=e;for(e=0;e<n.length;++e)et[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=et[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}},Ve,un={decode:function(t){var e;if(Ve===void 0){var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n=`= \f
21
- \r  \u2028\u2029`;for(Ve=Object.create(null),e=0;e<64;++e)Ve[r.charAt(e)]=e;for(Ve["-"]=62,Ve._=63,e=0;e<n.length;++e)Ve[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=Ve[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=un.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 un.decode(t)}},tt=1e13,_t=(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<tt?r=0:(r=0|o/tt,o-=r*tt),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+=tt,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+=(tt+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*tt+e[n];return r},t.prototype.simplify=function(){var e=this.buf;return e.length==1?e[0]:this},t})(),Do="…",tg=/^(\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)?)?$/,rg=/^(\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 at(t,e){return t.length>e&&(t=t.substring(0,e)+Do),t}var jr=(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?tg:rg).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 _t(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+at(u,n)}return o+u},t.prototype.parseOctetString=function(e,r,n){if(this.isASCII(e,r))return at(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+=Do),s},t.prototype.parseOID=function(e,r,n){for(var i="",s=new _t,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 _t)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 at(i,n);s=new _t,o=0}}return o>0&&(i+=".incomplete"),i},t})(),ng=(function(){function t(e,r,n,i,s){if(!(i instanceof Hi))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 at(this.stream.parseStringUTF(r,r+n),e);case 18:case 19:case 20:case 21:case 22:case 26:return at(this.stream.parseStringISO(r,r+n),e);case 30:return at(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 jr?r=e:r=new jr(e,0);var n=new jr(r),i=new Hi(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(g){throw new Error("Exception while decoding undefined length content: "+g)}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})(),Hi=(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 _t;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})(),Le,ig=0xdeadbeefcafe,ki=(ig&16777215)==15715070,ue=[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],sg=(1<<26)/ue[ue.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=Ce(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+=Ce(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)+Ft(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 Vi(r):n=new qi(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,Zd,r),r},t.prototype.or=function(e){var r=J();return this.bitwiseTo(e,Mt,r),r},t.prototype.xor=function(e){var r=J();return this.bitwiseTo(e,Fi,r),r},t.prototype.andNot=function(e){var r=J();return this.bitwiseTo(e,Li,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+Qd(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+=Xd(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,Mt)},t.prototype.clearBit=function(e){return this.changeBit(e,Li)},t.prototype.flipBit=function(e){return this.changeBit(e,Fi)},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=Me(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 Vi(r):r.isEven()?o=new ag(r):o=new qi(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,g=!0,d=J(),m;for(n=Ft(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),g)u[p].copyTo(s),g=!1;else{for(;l>1;)o.sqrTo(s,d),o.sqrTo(d,s),l-=2;l>0?o.sqrTo(s,d):(m=s,s=d,d=m),o.mulTo(d,u[p],s)}for(;h>=0&&(e[h]&1<<n)==0;)o.sqrTo(s,d),m=s,s=d,d=m,--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=Me(1),o=Me(0),u=Me(0),l=Me(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 og)},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]<=ue[ue.length-1]){for(r=0;r<ue.length;++r)if(n[0]==ue[r])return!0;return!1}if(n.isEven())return!1;for(r=1;r<ue.length;){for(var i=ue[r],s=r+1;s<ue.length&&i<sg;)i*=ue[s++];for(i=n.modInt(i);r<s;)if(i%ue[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:Wi(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-Ft(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,g=(1<<this.F1)/h,d=1<<this.F2,m=n.t,_=m-c,v=r==null?J():r;for(o.dlShiftTo(_,v),n.compareTo(v)>=0&&(n[n.t++]=1,n.subTo(v,n)),t.ONE.dlShiftTo(c,v),v.subTo(o,o);o.t<c;)o[o.t++]=0;for(;--_>=0;){var y=n[--m]==f?this.DM:Math.floor(n[m]*p+(n[m-1]+d)*g);if((n[m]+=o.am(0,y,n,_,0,c))<y)for(o.dlShiftTo(_,v),n.subTo(v,n);n[m]<--y;)n.subTo(v,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=Ft(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=Me(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=Wi(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),Mt,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>ue.length&&(e=ue.length);for(var s=J(),o=0;o<e;++o){s.fromInt(ue[Math.floor(Math.random()*ue.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),Mt,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})(),og=(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})(),Vi=(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})(),qi=(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})(),ag=(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 X(t,e){return new K(t,e)}var zi=typeof navigator!="undefined";zi&&ki&&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},Le=30):zi&&ki&&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},Le=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},Le=28);K.prototype.DB=Le;K.prototype.DM=(1<<Le)-1;K.prototype.DV=1<<Le;var Pn=52;K.prototype.FV=Math.pow(2,Pn);K.prototype.F1=Pn-Le;K.prototype.F2=2*Le-Pn;var hr=[],pt,me;pt=48;for(me=0;me<=9;++me)hr[pt++]=me;pt=97;for(me=10;me<36;++me)hr[pt++]=me;pt=65;for(me=10;me<36;++me)hr[pt++]=me;function Wi(t,e){var r=hr[t.charCodeAt(e)];return r==null?-1:r}function Me(t){var e=J();return e.fromInt(t),e}function Ft(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=Me(0);K.ONE=Me(1);var ug=(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 cg(){return new ug}var Co=256,Lt,Fe=null,Se;if(Fe==null){Fe=[],Se=0;var Ut=void 0;if(typeof window!="undefined"&&self.crypto&&self.crypto.getRandomValues){var Nr=new Uint32Array(256);for(self.crypto.getRandomValues(Nr),Ut=0;Ut<Nr.length;++Ut)Fe[Se++]=Nr[Ut]&255}var Ht=0,kt=function(t){if(Ht=Ht||0,Ht>=256||Se>=Co){self.removeEventListener?self.removeEventListener("mousemove",kt,!1):self.detachEvent&&self.detachEvent("onmousemove",kt);return}try{var e=t.x+t.y;Fe[Se++]=e&255,Ht+=1}catch(r){}};typeof window!="undefined"&&(self.addEventListener?self.addEventListener("mousemove",kt,!1):self.attachEvent&&self.attachEvent("onmousemove",kt))}function lg(){if(Lt==null){for(Lt=cg();Se<Co;){var t=Math.floor(65536*Math.random());Fe[Se++]=t&255}for(Lt.init(Fe),Se=0;Se<Fe.length;++Se)Fe[Se]=0;Se=0}return Lt.next()}var sr=(function(){function t(){}return t.prototype.nextBytes=function(e){for(var r=0;r<e.length;++r)e[r]=lg()},t})();function cn(t){return hg(_g(fg(t),t.length*8))}function Ki(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 fg(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 hg(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 Oe(t,e){return t>>>e|t<<32-e}function Bo(t,e){return t>>>e}function pg(t,e,r){return t&e^~t&r}function dg(t,e,r){return t&e^t&r^e&r}function gg(t){return Oe(t,2)^Oe(t,13)^Oe(t,22)}function vg(t){return Oe(t,6)^Oe(t,11)^Oe(t,25)}function mg(t){return Oe(t,7)^Oe(t,18)^Bo(t,3)}function yg(t){return Oe(t,17)^Oe(t,19)^Bo(t,10)}var bg=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 _g(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,g,d;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]=oe(oe(oe(yg(n[p-2]),n[p-7]),mg(n[p-15])),n[p-16]),g=oe(oe(oe(oe(f,vg(l)),pg(l,a,c)),bg[p]),n[p]),d=oe(gg(i),dg(i,s,o)),f=c,c=a,a=l,l=oe(u,g),u=o,o=s,s=i,i=oe(g,d);r[0]=oe(i,r[0]),r[1]=oe(s,r[1]),r[2]=oe(o,r[2]),r[3]=oe(u,r[3]),r[4]=oe(l,r[4]),r[5]=oe(a,r[5]),r[6]=oe(c,r[6]),r[7]=oe(f,r[7])}return r}function oe(t,e){var r=(t&65535)+(e&65535),n=(t>>16)+(e>>16)+(r>>16);return n<<16|r&65535}function wg(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 X(s,16)}function Eg(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 sr,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 Ji(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 Sg=32;function Tg(t,e){var r=Sg,n=cn;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 sr().nextBytes(u);var l=Ji(u,o.length,n),a=[];for(s=0;s<o.length;s+=1)a[s]=o.charCodeAt(s)^l.charCodeAt(s);var c=Ji(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 Rg=(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=X(e,16),this.e=parseInt(r,16)):console.error("Invalid RSA public key")},t.prototype.encrypt=function(e,r){typeof r=="undefined"&&(r=Eg);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=X(e,16),this.e=parseInt(r,16),this.d=X(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=X(e,16),this.e=parseInt(r,16),this.d=X(n,16),this.p=X(i,16),this.q=X(s,16),this.dmp1=X(o,16),this.dmq1=X(u,16),this.coeff=X(l,16)):console.error("Invalid RSA private key")},t.prototype.generate=function(e,r){var n=new sr,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=X(e,16),n=this.doPrivate(r);return n==null?null:Ag(n,this.n.bitLength()+7>>3)},t.prototype.generateAsync=function(e,r,n){var i=new sr,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),g=u.q.subtract(K.ONE),d=p.multiply(g);d.gcd(o).compareTo(K.ONE)==0?(u.n=u.p.multiply(u.q),u.d=o.modInverse(d),u.dmp1=u.d.mod(p),u.dmq1=u.d.mod(g),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=xg(n),s=i+r(e).toString(),o=this.n.bitLength()/4,u=wg(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=X(r,16),s=this.doPublic(i);if(s==null)return null;var o=s.toString(16).replace(/^1f+00/,""),u=Og(o);return u==n(e).toString()},t})();function Ag(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 Gt={md2:"3020300c06082a864886f70d020205000410",md5:"3020300c06082a864886f70d020505000410",sha1:"3021300906052b0e03021a05000414",sha224:"302d300d06096086480165030402040500041c",sha256:"3031300d060960864801650304020105000420",sha384:"3041300d060960864801650304020205000430",sha512:"3051300d060960864801650304020305000440",ripemd160:"3021300906052b2403020105000414"};function xg(t){return Gt[t]||""}function Og(t){for(var e in Gt)if(Gt.hasOwnProperty(e)){var r=Gt[e],n=r.length;if(t.substring(0,n)==r)return t.substring(n)}return t}function ne(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
- * @fileOverview
28
- * @name asn1-1.0.js
29
- * @author Kenji Urushima kenji.urushima@gmail.com
30
- * @version asn1 1.0.13 (2017-Jun-02)
31
- * @since jsrsasign 2.1
32
- * @license <a href="https://kjur.github.io/jsrsasign/license/">MIT License</a>
33
- */var C={};(typeof C.asn1=="undefined"||!C.asn1)&&(C.asn1={});C.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=C,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,g=r.DERIA5String,d=r.DERUTCTime,m=r.DERGeneralizedTime,_=r.DERSequence,v=r.DERSet,y=r.DERTaggedObject,w=r.ASN1Util.newObject,E=Object.keys(t);if(E.length!=1)throw"key of param shall be only one.";var b=E[0];if(":bool:int:bitstr:octstr:null:oid:enum:utf8str:numstr:prnstr:telstr:ia5str:utctime:gentime:seq:set:tag:".indexOf(":"+b+":")==-1)throw"undefined key: "+b;if(b=="bool")return new n(t[b]);if(b=="int")return new i(t[b]);if(b=="bitstr")return new s(t[b]);if(b=="octstr")return new o(t[b]);if(b=="null")return new u(t[b]);if(b=="oid")return new l(t[b]);if(b=="enum")return new a(t[b]);if(b=="utf8str")return new c(t[b]);if(b=="numstr")return new f(t[b]);if(b=="prnstr")return new h(t[b]);if(b=="telstr")return new p(t[b]);if(b=="ia5str")return new g(t[b]);if(b=="utctime")return new d(t[b]);if(b=="gentime")return new m(t[b]);if(b=="seq"){for(var A=t[b],$=[],L=0;L<A.length;L++){var S=w(A[L]);$.push(S)}return new _({array:$})}if(b=="set"){for(var A=t[b],$=[],L=0;L<A.length;L++){var S=w(A[L]);$.push(S)}return new v({array:$})}if(b=="tag"){var R=t[b];if(Object.prototype.toString.call(R)==="[object Array]"&&R.length==3){var M=w(R[2]);return new y({tag:R[0],explicit:R[1],obj:M})}else{var N={};if(R.explicit!==void 0&&(N.explicit=R.explicit),R.tag!==void 0&&(N.tag=R.tag),R.obj===void 0)throw"obj shall be specified for 'tag'.";return N.obj=w(R.obj),new y(N)}}},this.jsonToASN1HEX=function(t){var e=this.newObject(t);return e.getEncodedHex()}};C.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};C.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 g=c.substring(p,p+7);p!=c.length-7&&(g="1"+g),l+=e(parseInt(g,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};C.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""}};C.asn1.DERAbstractString=function(t){C.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))};ne(C.asn1.DERAbstractString,C.asn1.ASN1Object);C.asn1.DERAbstractTime=function(t){C.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 g=i(String(p),3);g=g.replace(/[0]+$/,""),h=h+"."+g}}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}};ne(C.asn1.DERAbstractTime,C.asn1.ASN1Object);C.asn1.DERAbstractStructured=function(t){C.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)};ne(C.asn1.DERAbstractStructured,C.asn1.ASN1Object);C.asn1.DERBoolean=function(){C.asn1.DERBoolean.superclass.constructor.call(this),this.hT="01",this.hTLV="0101ff"};ne(C.asn1.DERBoolean,C.asn1.ASN1Object);C.asn1.DERInteger=function(t){C.asn1.DERInteger.superclass.constructor.call(this),this.hT="02",this.setByBigInteger=function(e){this.hTLV=null,this.isModified=!0,this.hV=C.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))};ne(C.asn1.DERInteger,C.asn1.ASN1Object);C.asn1.DERBitString=function(t){if(t!==void 0&&typeof t.obj!="undefined"){var e=C.asn1.ASN1Util.newObject(t.obj);t.hex="00"+e.getEncodedHex()}C.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))};ne(C.asn1.DERBitString,C.asn1.ASN1Object);C.asn1.DEROctetString=function(t){if(t!==void 0&&typeof t.obj!="undefined"){var e=C.asn1.ASN1Util.newObject(t.obj);t.hex=e.getEncodedHex()}C.asn1.DEROctetString.superclass.constructor.call(this,t),this.hT="04"};ne(C.asn1.DEROctetString,C.asn1.DERAbstractString);C.asn1.DERNull=function(){C.asn1.DERNull.superclass.constructor.call(this),this.hT="05",this.hTLV="0500"};ne(C.asn1.DERNull,C.asn1.ASN1Object);C.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};C.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=C.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))};ne(C.asn1.DERObjectIdentifier,C.asn1.ASN1Object);C.asn1.DEREnumerated=function(t){C.asn1.DEREnumerated.superclass.constructor.call(this),this.hT="0a",this.setByBigInteger=function(e){this.hTLV=null,this.isModified=!0,this.hV=C.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))};ne(C.asn1.DEREnumerated,C.asn1.ASN1Object);C.asn1.DERUTF8String=function(t){C.asn1.DERUTF8String.superclass.constructor.call(this,t),this.hT="0c"};ne(C.asn1.DERUTF8String,C.asn1.DERAbstractString);C.asn1.DERNumericString=function(t){C.asn1.DERNumericString.superclass.constructor.call(this,t),this.hT="12"};ne(C.asn1.DERNumericString,C.asn1.DERAbstractString);C.asn1.DERPrintableString=function(t){C.asn1.DERPrintableString.superclass.constructor.call(this,t),this.hT="13"};ne(C.asn1.DERPrintableString,C.asn1.DERAbstractString);C.asn1.DERTeletexString=function(t){C.asn1.DERTeletexString.superclass.constructor.call(this,t),this.hT="14"};ne(C.asn1.DERTeletexString,C.asn1.DERAbstractString);C.asn1.DERIA5String=function(t){C.asn1.DERIA5String.superclass.constructor.call(this,t),this.hT="16"};ne(C.asn1.DERIA5String,C.asn1.DERAbstractString);C.asn1.DERUTCTime=function(t){C.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))};ne(C.asn1.DERUTCTime,C.asn1.DERAbstractTime);C.asn1.DERGeneralizedTime=function(t){C.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))};ne(C.asn1.DERGeneralizedTime,C.asn1.DERAbstractTime);C.asn1.DERSequence=function(t){C.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}};ne(C.asn1.DERSequence,C.asn1.DERAbstractStructured);C.asn1.DERSet=function(t){C.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)};ne(C.asn1.DERSet,C.asn1.DERAbstractStructured);C.asn1.DERTaggedObject=function(t){C.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)))};ne(C.asn1.DERTaggedObject,C.asn1.ASN1Object);var $g=(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)}})(),Gi=(function(t){$g(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)?eg.decode(r):un.unarmor(r),u=ng.decode(o);if(u.sub.length===3&&(u=u.sub[2].sub[0]),u.sub.length===9){n=u.sub[1].getHexStringValue(),this.n=X(n,16),i=u.sub[2].getHexStringValue(),this.e=parseInt(i,16);var l=u.sub[3].getHexStringValue();this.d=X(l,16);var a=u.sub[4].getHexStringValue();this.p=X(a,16);var c=u.sub[5].getHexStringValue();this.q=X(c,16);var f=u.sub[6].getHexStringValue();this.dmp1=X(f,16);var h=u.sub[7].getHexStringValue();this.dmq1=X(h,16);var p=u.sub[8].getHexStringValue();this.coeff=X(p,16)}else if(u.sub.length===2)if(u.sub[0].sub){var g=u.sub[1],d=g.sub[0];n=d.sub[0].getHexStringValue(),this.n=X(n,16),i=d.sub[1].getHexStringValue(),this.e=parseInt(i,16)}else n=u.sub[0].getHexStringValue(),this.n=X(n,16),i=u.sub[1].getHexStringValue(),this.e=parseInt(i,16);else return!1;return!0}catch(m){return!1}},e.prototype.getPrivateBaseKey=function(){var r={array:[new C.asn1.DERInteger({int:0}),new C.asn1.DERInteger({bigint:this.n}),new C.asn1.DERInteger({int:this.e}),new C.asn1.DERInteger({bigint:this.d}),new C.asn1.DERInteger({bigint:this.p}),new C.asn1.DERInteger({bigint:this.q}),new C.asn1.DERInteger({bigint:this.dmp1}),new C.asn1.DERInteger({bigint:this.dmq1}),new C.asn1.DERInteger({bigint:this.coeff})]},n=new C.asn1.DERSequence(r);return n.getEncodedHex()},e.prototype.getPrivateBaseKeyB64=function(){return Et(this.getPrivateBaseKey())},e.prototype.getPublicBaseKey=function(){var r=new C.asn1.DERSequence({array:[new C.asn1.DERObjectIdentifier({oid:"1.2.840.113549.1.1.1"}),new C.asn1.DERNull]}),n=new C.asn1.DERSequence({array:[new C.asn1.DERInteger({bigint:this.n}),new C.asn1.DERInteger({int:this.e})]}),i=new C.asn1.DERBitString({hex:"00"+n.getEncodedHex()}),s=new C.asn1.DERSequence({array:[r,i]});return s.getEncodedHex()},e.prototype.getPublicBaseKeyB64=function(){return Et(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})(Rg),Ir,Dg=typeof process!="undefined"?(Ir=Ma)===null||Ir===void 0?void 0:Ir.npm_package_version:void 0,Cg=(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 Gi(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(Ui(e))}catch(r){return!1}},t.prototype.encrypt=function(e){try{return Et(this.getKey().encrypt(e))}catch(r){return!1}},t.prototype.encryptOAEP=function(e){try{return Et(this.getKey().encrypt(e,Tg))}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 Et(this.getKey().sign(e,r,n))}catch(i){return!1}},t.prototype.signSha256=function(e){return this.sign(e,function(r){return Ki(cn(r))},"sha256")},t.prototype.verify=function(e,r,n){n===void 0&&(n=function(i){return i});try{return this.getKey().verify(e,Ui(r),n)}catch(i){return!1}},t.prototype.verifySha256=function(e,r){return this.verify(e,r,function(n){return Ki(cn(n))})},t.prototype.getKey=function(e){if(!this.key){if(this.key=new Gi,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=Dg,t})();const Bg="MIIBUwIBADANBgkqhkiG9w0BAQEFAASCAT0wggE5AgEAAkEAt3LFMIQHlZwadt5TI3jGfVyzzP7S0Lva+Bt38v32iblNnQ59GpFvpjtEl92KYH0snK+bI/1PU/SNaseSi2ryJQIDAQABAkBGHyXG7MDlbD0lcMhAx9q/cp773fABf70sl3tbM754V+mH8dEiAim398NhhrADz4F4K12H74R39O/0Hjr/VAZlAiEA5+3MoAbnsDOzFP+oT4YZJBjx8MmsukU3AaguPW4tYcMCIQDKfN+Qk/jD3vZlWsUJ23013D2NDSjgcH4gdV71oYb19wIgUMWYhgLhnZPjwmRnEYr6JoApglo6NYT1azZPJEXCuFECIDyQUQYbXCKpw6TZG2oxXigH8dkIgJtwyijHMlnhsE5NAiBxF7HA7U2rDnZ6+VRDXtIg+joD3o1h3bFy2A+QX5yDYA==";function Yi(t,e=Bg){const r=new Cg;return r.setPrivateKey(e),r.decrypt(t)}const Po=/^(http|https):\/\/[\w.:\-@]*/;function xt(t){return Po.test(t)}var Pg={exports:{}};/*! @preserve
40
- * numeral.js
41
- * version : 2.0.6
42
- * author : Adam Draper
43
- * license : MIT
44
- * http://adamwdraper.github.com/Numeral-js/
45
- */(function(t){(function(e,r){t.exports?t.exports=r():e.numeral=r()})(ce,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,g=!1,d=0,m="",_=1e12,v=1e9,y=1e6,w=1e3,E="",b=!1,A,$,L,S,R,M,N;if(a=a||0,$=Math.abs(a),e._.includes(c,"(")?(p=!0,c=c.replace(/[\(|\)]/g,"")):(e._.includes(c,"+")||e._.includes(c,"-"))&&(R=e._.includes(c,"+")?c.indexOf("+"):a<0?c.indexOf("-"):-1,c=c.replace(/[\+|\-]/g,"")),e._.includes(c,"a")&&(A=c.match(/a(k|m|b|t)?/),A=A?A[1]:!1,e._.includes(c," a")&&(m=" "),c=c.replace(new RegExp(m+"a[kmbt]?"),""),$>=_&&!A||A==="t"?(m+=h.abbreviations.trillion,a=a/_):$<_&&$>=v&&!A||A==="b"?(m+=h.abbreviations.billion,a=a/v):$<v&&$>=y&&!A||A==="m"?(m+=h.abbreviations.million,a=a/y):($<y&&$>=w&&!A||A==="k")&&(m+=h.abbreviations.thousand,a=a/w)),e._.includes(c,"[.]")&&(g=!0,c=c.replace("[.]",".")),L=a.toString().split(".")[0],S=c.split(".")[1],M=c.indexOf(","),d=(c.split(".")[0].split(",")[0].match(/0/g)||[]).length,S?(e._.includes(S,"[")?(S=S.replace("]",""),S=S.split("["),E=e._.toFixed(a,S[0].length+S[1].length,f,S[1].length)):E=e._.toFixed(a,S.length,f),L=E.split(".")[0],e._.includes(E,".")?E=h.delimiters.decimal+E.split(".")[1]:E="",g&&Number(E.slice(1))===0&&(E="")):L=e._.toFixed(a,0,f),m&&!A&&Number(L)>=1e3&&m!==h.abbreviations.trillion)switch(L=String(Number(L)/1e3),m){case h.abbreviations.thousand:m=h.abbreviations.million;break;case h.abbreviations.million:m=h.abbreviations.billion;break;case h.abbreviations.billion:m=h.abbreviations.trillion;break}if(e._.includes(L,"-")&&(L=L.slice(1),b=!0),L.length<d)for(var I=d-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=""),N=L+E+(m||""),p?N=(p&&b?"(":"")+N+(p&&b?")":""):R>=0?N=R===0?(b?"-":"+")+N:N+(b?"-":"+"):b&&(N="-"+N),N},stringToNumber:function(a){var c=s[u.currentLocale],f=a,h={thousand:3,million:6,billion:9,trillion:12},p,g,d;if(u.zeroFormat&&a===u.zeroFormat)g=0;else if(u.nullFormat&&a===u.nullFormat||!a.replace(/[^0-9]+/g,"").length)g=null;else{g=1,c.delimiters.decimal!=="."&&(a=a.replace(/\./g,"").replace(c.delimiters.decimal,"."));for(p in h)if(d=new RegExp("[^a-zA-Z]"+c.abbreviations[p]+"(?:\\)|(\\"+c.currency.symbol+")?(?:\\))?)?$"),f.match(d)){g*=Math.pow(10,h[p]);break}g*=(a.split("-").length+Math.min(a.split("(").length-1,a.split(")").length-1))%2?1:-1,a=a.replace(/[^0-9\.]+/g,""),g*=Number(a)}return g},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,g;if(arguments.length===3)g=arguments[2];else{for(;p<h&&!(p in f);)p++;if(p>=h)throw new TypeError("Reduce of empty array with no initial value");g=f[p++]}for(;p<h;p++)p in f&&(g=c(g,f[p],p,f));return g},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("."),g=c-(h||0),d,m,_,v;return p.length===2?d=Math.min(Math.max(p[1].length,g),c):d=g,_=Math.pow(10,d),v=(f(a+"e+"+d)/_).toFixed(d),h>c-d&&(m=new RegExp("\\.?0{1,"+(h-(c-d))+"}$"),v=v.replace(m,"")),v}},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,g,d,m,_,v;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.localeData(c)}catch(y){_=e.localeData(e.locale())}return p=_.currency.symbol,d=_.abbreviations,f=_.delimiters.decimal,_.delimiters.thousands==="."?h="\\.":h=_.delimiters.thousands,v=a.match(/^[^\d]+/),v!==null&&(a=a.substr(1),v[0]!==p)||(v=a.match(/[^\d]+$/),v!==null&&(a=a.slice(0,-1),v[0]!==d.thousand&&v[0]!==d.million&&v[0]!==d.billion&&v[0]!==d.trillion))?!1:(m=new RegExp(h+"{2}"),a.match(/[^\d.,]/g)?!1:(g=a.split(f),g.length>2?!1:g.length<2?!!g[0].match(/^\d+.*\d$/)&&!g[0].match(m):g[0].length===1?!!g[0].match(/^\d+$/)&&!g[0].match(m)&&!!g[1].match(/^\d+$/):!!g[0].match(/^\d+.*\d$/)&&!g[0].match(m)&&!!g[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,g,d;if(c=c||Math.round,f===0&&u.zeroFormat!==null)g=u.zeroFormat;else if(f===null&&u.nullFormat!==null)g=u.nullFormat;else{for(p in i)if(h.match(i[p].regexps.format)){d=i[p].format;break}d=d||e._.numberToFormat,g=d(f,h,c)}return g},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,g,d){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,g,d){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,g){var d=r.correctionFactor(f,h);return Math.round(f*d)*Math.round(h*d)/Math.round(d*d)}return this._value=r.reduce([this._value,a],c,1),this},divide:function(a){function c(f,h,p,g){var d=r.correctionFactor(f,h);return Math.round(f*d)/Math.round(h*d)}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,g,d){var m,_=e._.includes(g,"ib")?c:a,v=e._.includes(g," b")||e._.includes(g," ib")?" ":"",y,w,E;for(g=g.replace(/\s?i?b/,""),y=0;y<=_.suffixes.length;y++)if(w=Math.pow(_.base,y),E=Math.pow(_.base,y+1),p===null||p===0||p>=w&&p<E){v+=_.suffixes[y],w>0&&(p=p/w);break}return m=e._.numberToFormat(p,g,d),m+v},unformat:function(p){var g=e._.stringToNumber(p),d,m;if(g){for(d=a.suffixes.length-1;d>=0;d--){if(e._.includes(p,a.suffixes[d])){m=Math.pow(a.base,d);break}if(e._.includes(p,c.suffixes[d])){m=Math.pow(c.base,d);break}}g*=m||1}return g}})})(),(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]},g,d,m;for(c=c.replace(/\s?\$\s?/,""),g=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),m=0;m<p.before.length;m++)switch(d=p.before[m],d){case"$":g=e._.insert(g,h.currency.symbol,m);break;case" ":g=e._.insert(g," ",m+h.currency.symbol.length-1);break}for(m=p.after.length-1;m>=0;m--)switch(d=p.after[m],d){case"$":g=m===p.after.length-1?g+h.currency.symbol:e._.insert(g,h.currency.symbol,-(p.after.length-(1+m)));break;case" ":g=m===p.after.length-1?g+" ":e._.insert(g," ",-(p.after.length-(1+m)+h.currency.symbol.length-1));break}return g}})})(),(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",g=p.split("e");return c=c.replace(/e[\+|\-]{1}0/,""),h=e._.numberToFormat(Number(g[0]),c,f),h+"e"+g[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(g,d,m,_){var v=e._.correctionFactor(g,d),y=g*v*(d*v)/(v*v);return y}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,g=e._.includes(c," o")?" ":"";return c=c.replace(/\s?o/,""),g+=h.ordinal(a),p=e._.numberToFormat(a,c,f),p+g}})})(),(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),g=Math.round(a-h*60*60-p*60);return h+":"+(p<10?"0"+p:p)+":"+(g<10?"0"+g:g)},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})})(Pg);var jo={exports:{}};(function(t,e){(function(r,n){t.exports=n()})(ce,(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",g="date",d="Invalid Date",m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,_=/\[([^\]]+)]|YYYY|YY|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,v={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 D=["th","st","nd","rd"],P=I%100;return"["+I+(D[(P-20)%10]||D[P]||D[0])+"]"}},y=function(I,D,P){var H=String(I);return!H||H.length>=D?I:""+Array(D+1-H.length).join(P)+I},w={s:y,z:function(I){var D=-I.utcOffset(),P=Math.abs(D),H=Math.floor(P/60),U=P%60;return(D<=0?"+":"-")+y(H,2,"0")+":"+y(U,2,"0")},m:function I(D,P){if(D.date()<P.date())return-I(P,D);var H=12*(P.year()-D.year())+(P.month()-D.month()),U=D.clone().add(H,f),z=P-U<0,V=D.clone().add(H+(z?-1:1),f);return+(-(H+(P-U)/(z?U-V:V-U))||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:g,h:l,m:u,s:o,ms:s,Q:h}[I]||String(I||"").toLowerCase().replace(/s$/,"")},u:function(I){return I===void 0}},E="en",b={};b[E]=v;var A="$isDayjsObject",$=function(I){return I instanceof M||!(!I||!I[A])},L=function I(D,P,H){var U;if(!D)return E;if(typeof D=="string"){var z=D.toLowerCase();b[z]&&(U=z),P&&(b[z]=P,U=z);var V=D.split("-");if(!U&&V.length>1)return I(V[0])}else{var O=D.name;b[O]=D,U=O}return!H&&U&&(E=U),U||!H&&E},S=function(I,D){if($(I))return I.clone();var P=typeof D=="object"?D:{};return P.date=I,P.args=arguments,new M(P)},R=w;R.l=L,R.i=$,R.w=function(I,D){return S(I,{locale:D.$L,utc:D.$u,x:D.$x,$offset:D.$offset})};var M=(function(){function I(P){this.$L=L(P.locale,null,!0),this.parse(P),this.$x=this.$x||P.x||{},this[A]=!0}var D=I.prototype;return D.parse=function(P){this.$d=(function(H){var U=H.date,z=H.utc;if(U===null)return new Date(NaN);if(R.u(U))return new Date;if(U instanceof Date)return new Date(U);if(typeof U=="string"&&!/Z$/i.test(U)){var V=U.match(m);if(V){var O=V[2]-1||0,j=(V[7]||"0").substring(0,3);return z?new Date(Date.UTC(V[1],O,V[3]||1,V[4]||0,V[5]||0,V[6]||0,j)):new Date(V[1],O,V[3]||1,V[4]||0,V[5]||0,V[6]||0,j)}}return new Date(U)})(P),this.init()},D.init=function(){var P=this.$d;this.$y=P.getFullYear(),this.$M=P.getMonth(),this.$D=P.getDate(),this.$W=P.getDay(),this.$H=P.getHours(),this.$m=P.getMinutes(),this.$s=P.getSeconds(),this.$ms=P.getMilliseconds()},D.$utils=function(){return R},D.isValid=function(){return this.$d.toString()!==d},D.isSame=function(P,H){var U=S(P);return this.startOf(H)<=U&&U<=this.endOf(H)},D.isAfter=function(P,H){return S(P)<this.startOf(H)},D.isBefore=function(P,H){return this.endOf(H)<S(P)},D.$g=function(P,H,U){return R.u(P)?this[H]:this.set(U,P)},D.unix=function(){return Math.floor(this.valueOf()/1e3)},D.valueOf=function(){return this.$d.getTime()},D.startOf=function(P,H){var U=this,z=!!R.u(H)||H,V=R.p(P),O=function(fe,ie){var de=R.w(U.$u?Date.UTC(U.$y,ie,fe):new Date(U.$y,ie,fe),U);return z?de:de.endOf(a)},j=function(fe,ie){return R.w(U.toDate()[fe].apply(U.toDate("s"),(z?[0,0,0,0]:[23,59,59,999]).slice(ie)),U)},x=this.$W,B=this.$M,Y=this.$D,pe="set"+(this.$u?"UTC":"");switch(V){case p:return z?O(1,0):O(31,11);case f:return z?O(1,B):O(0,B+1);case c:var re=this.$locale().weekStart||0,G=(x<re?x+7:x)-re;return O(z?Y-G:Y+(6-G),B);case a:case g:return j(pe+"Hours",0);case l:return j(pe+"Minutes",1);case u:return j(pe+"Seconds",2);case o:return j(pe+"Milliseconds",3);default:return this.clone()}},D.endOf=function(P){return this.startOf(P,!1)},D.$set=function(P,H){var U,z=R.p(P),V="set"+(this.$u?"UTC":""),O=(U={},U[a]=V+"Date",U[g]=V+"Date",U[f]=V+"Month",U[p]=V+"FullYear",U[l]=V+"Hours",U[u]=V+"Minutes",U[o]=V+"Seconds",U[s]=V+"Milliseconds",U)[z],j=z===a?this.$D+(H-this.$W):H;if(z===f||z===p){var x=this.clone().set(g,1);x.$d[O](j),x.init(),this.$d=x.set(g,Math.min(this.$D,x.daysInMonth())).$d}else O&&this.$d[O](j);return this.init(),this},D.set=function(P,H){return this.clone().$set(P,H)},D.get=function(P){return this[R.p(P)]()},D.add=function(P,H){var U,z=this;P=Number(P);var V=R.p(H),O=function(B){var Y=S(z);return R.w(Y.date(Y.date()+Math.round(B*P)),z)};if(V===f)return this.set(f,this.$M+P);if(V===p)return this.set(p,this.$y+P);if(V===a)return O(1);if(V===c)return O(7);var j=(U={},U[u]=n,U[l]=i,U[o]=r,U)[V]||1,x=this.$d.getTime()+P*j;return R.w(x,this)},D.subtract=function(P,H){return this.add(-1*P,H)},D.format=function(P){var H=this,U=this.$locale();if(!this.isValid())return U.invalidDate||d;var z=P||"YYYY-MM-DDTHH:mm:ssZ",V=R.z(this),O=this.$H,j=this.$m,x=this.$M,B=U.weekdays,Y=U.months,pe=U.meridiem,re=function(ie,de,Ie,Qe){return ie&&(ie[de]||ie(H,z))||Ie[de].slice(0,Qe)},G=function(ie){return R.s(O%12||12,ie,"0")},fe=pe||function(ie,de,Ie){var Qe=ie<12?"AM":"PM";return Ie?Qe.toLowerCase():Qe};return z.replace(_,(function(ie,de){return de||(function(Ie){switch(Ie){case"YY":return String(H.$y).slice(-2);case"YYYY":return R.s(H.$y,4,"0");case"M":return x+1;case"MM":return R.s(x+1,2,"0");case"MMM":return re(U.monthsShort,x,Y,3);case"MMMM":return re(Y,x);case"D":return H.$D;case"DD":return R.s(H.$D,2,"0");case"d":return String(H.$W);case"dd":return re(U.weekdaysMin,H.$W,B,2);case"ddd":return re(U.weekdaysShort,H.$W,B,3);case"dddd":return B[H.$W];case"H":return String(O);case"HH":return R.s(O,2,"0");case"h":return G(1);case"hh":return G(2);case"a":return fe(O,j,!0);case"A":return fe(O,j,!1);case"m":return String(j);case"mm":return R.s(j,2,"0");case"s":return String(H.$s);case"ss":return R.s(H.$s,2,"0");case"SSS":return R.s(H.$ms,3,"0");case"Z":return V}return null})(ie)||V.replace(":","")}))},D.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},D.diff=function(P,H,U){var z,V=this,O=R.p(H),j=S(P),x=(j.utcOffset()-this.utcOffset())*n,B=this-j,Y=function(){return R.m(V,j)};switch(O){case p:z=Y()/12;break;case f:z=Y();break;case h:z=Y()/3;break;case c:z=(B-x)/6048e5;break;case a:z=(B-x)/864e5;break;case l:z=B/i;break;case u:z=B/n;break;case o:z=B/r;break;default:z=B}return U?z:R.a(z)},D.daysInMonth=function(){return this.endOf(f).$D},D.$locale=function(){return b[this.$L]},D.locale=function(P,H){if(!P)return this.$L;var U=this.clone(),z=L(P,H,!0);return z&&(U.$L=z),U},D.clone=function(){return R.w(this.$d,this)},D.toDate=function(){return new Date(this.valueOf())},D.toJSON=function(){return this.isValid()?this.toISOString():null},D.toISOString=function(){return this.$d.toISOString()},D.toString=function(){return this.$d.toUTCString()},I})(),N=M.prototype;return S.prototype=N,[["$ms",s],["$s",o],["$m",u],["$H",l],["$W",a],["$M",f],["$y",p],["$D",g]].forEach((function(I){N[I[1]]=function(D){return this.$g(D,I[0],I[1])}})),S.extend=function(I,D){return I.$i||(I(D,M,S),I.$i=!0),S},S.locale=L,S.isDayjs=$,S.unix=function(I){return S(1e3*I)},S.en=b[E],S.Ls=b,S.p={},S}))})(jo);var No=jo.exports;const jg=Hd(No);var Ng={exports:{}};(function(t,e){(function(r,n){t.exports=n(No)})(ce,(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}))})(Ng);jg.locale("zh-cn");function Ig(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 or(t=0){return F(this,null,function*(){return new Promise(e=>{setTimeout(e,t)})})}function Mg(t){return[...t.entries()].reduce((e,[r,n])=>(e[r]=n,e),{})}function Fg(t,e){return Array.from(new Set(t))}function Zi(t){return t?[].concat(t):[]}function Mr(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 Lg(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 Io={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={},g={},d="",m="",_="",v=2,y=3,w=2,E=[],b=0,A=0,$;for($=0;$<l.length;$+=1)if(d=l.charAt($),Object.prototype.hasOwnProperty.call(p,d)||(p[d]=y++,g[d]=!0),m=_+d,Object.prototype.hasOwnProperty.call(p,m))_=m;else{if(Object.prototype.hasOwnProperty.call(g,_)){if(_.charCodeAt(0)<256){for(f=0;f<w;f++)b=b<<1,A==a-1?(A=0,E.push(c(b)),b=0):A++;for(h=_.charCodeAt(0),f=0;f<8;f++)b=b<<1|h&1,A==a-1?(A=0,E.push(c(b)),b=0):A++,h=h>>1}else{for(h=1,f=0;f<w;f++)b=b<<1|h,A==a-1?(A=0,E.push(c(b)),b=0):A++,h=0;for(h=_.charCodeAt(0),f=0;f<16;f++)b=b<<1|h&1,A==a-1?(A=0,E.push(c(b)),b=0):A++,h=h>>1}v--,v==0&&(v=Math.pow(2,w),w++),delete g[_]}else for(h=p[_],f=0;f<w;f++)b=b<<1|h&1,A==a-1?(A=0,E.push(c(b)),b=0):A++,h=h>>1;v--,v==0&&(v=Math.pow(2,w),w++),p[m]=y++,_=String(d)}if(_!==""){if(Object.prototype.hasOwnProperty.call(g,_)){if(_.charCodeAt(0)<256){for(f=0;f<w;f++)b=b<<1,A==a-1?(A=0,E.push(c(b)),b=0):A++;for(h=_.charCodeAt(0),f=0;f<8;f++)b=b<<1|h&1,A==a-1?(A=0,E.push(c(b)),b=0):A++,h=h>>1}else{for(h=1,f=0;f<w;f++)b=b<<1|h,A==a-1?(A=0,E.push(c(b)),b=0):A++,h=0;for(h=_.charCodeAt(0),f=0;f<16;f++)b=b<<1|h&1,A==a-1?(A=0,E.push(c(b)),b=0):A++,h=h>>1}v--,v==0&&(v=Math.pow(2,w),w++),delete g[_]}else for(h=p[_],f=0;f<w;f++)b=b<<1|h&1,A==a-1?(A=0,E.push(c(b)),b=0):A++,h=h>>1;v--,v==0&&(v=Math.pow(2,w),w++)}for(h=2,f=0;f<w;f++)b=b<<1|h&1,A==a-1?(A=0,E.push(c(b)),b=0):A++,h=h>>1;for(;;)if(b=b<<1,A==a-1){E.push(c(b));break}else A++;return E.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,g=3,d="",m=[],_,v,y,w,E,b,A,$={val:c(0),position:a,index:1};for(_=0;_<3;_+=1)f[_]=_;for(y=0,E=Math.pow(2,2),b=1;b!=E;)w=$.val&$.position,$.position>>=1,$.position==0&&($.position=a,$.val=c($.index++)),y|=(w>0?1:0)*b,b<<=1;switch(y){case 0:for(y=0,E=Math.pow(2,8),b=1;b!=E;)w=$.val&$.position,$.position>>=1,$.position==0&&($.position=a,$.val=c($.index++)),y|=(w>0?1:0)*b,b<<=1;A=r(y);break;case 1:for(y=0,E=Math.pow(2,16),b=1;b!=E;)w=$.val&$.position,$.position>>=1,$.position==0&&($.position=a,$.val=c($.index++)),y|=(w>0?1:0)*b,b<<=1;A=r(y);break;case 2:return""}for(f[3]=A,v=A,m.push(A);;){if($.index>l)return"";for(y=0,E=Math.pow(2,g),b=1;b!=E;)w=$.val&$.position,$.position>>=1,$.position==0&&($.position=a,$.val=c($.index++)),y|=(w>0?1:0)*b,b<<=1;switch(A=y){case 0:for(y=0,E=Math.pow(2,8),b=1;b!=E;)w=$.val&$.position,$.position>>=1,$.position==0&&($.position=a,$.val=c($.index++)),y|=(w>0?1:0)*b,b<<=1;f[p++]=r(y),A=p-1,h--;break;case 1:for(y=0,E=Math.pow(2,16),b=1;b!=E;)w=$.val&$.position,$.position>>=1,$.position==0&&($.position=a,$.val=c($.index++)),y|=(w>0?1:0)*b,b<<=1;f[p++]=r(y),A=p-1,h--;break;case 2:return m.join("")}if(h==0&&(h=Math.pow(2,g),g++),f[A])d=f[A];else if(A===p)d=v+v.charAt(0);else return null;m.push(d),f[p++]=v+d.charAt(0),h--,v=d,h==0&&(h=Math.pow(2,g),g++)}}};return u})();t!=null?t.exports=e:typeof angular!="undefined"&&angular!=null&&angular.module("LZString",[]).factory("LZString",function(){return e})})(Io);var Mo=Io.exports;function Ug(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 Fo(t,e){e===void 0&&(e={});for(var r=Ug(t),n=e.prefixes,i=n===void 0?"./":n,s="[^".concat(ot(e.delimiter||"/#?"),"]+?"),o=[],u=0,l=0,a="",c=function(b){if(l<r.length&&r[l].type===b)return r[l++].value},f=function(b){var A=c(b);if(A!==void 0)return A;var $=r[l],L=$.type,S=$.index;throw new TypeError("Unexpected ".concat(L," at ").concat(S,", expected ").concat(b))},h=function(){for(var b="",A;A=c("CHAR")||c("ESCAPED_CHAR");)b+=A;return b};l<r.length;){var p=c("CHAR"),g=c("NAME"),d=c("PATTERN");if(g||d){var m=p||"";i.indexOf(m)===-1&&(a+=m,m=""),a&&(o.push(a),a=""),o.push({name:g||u++,prefix:m,suffix:"",pattern:d||s,modifier:c("MODIFIER")||""});continue}var _=p||c("ESCAPED_CHAR");if(_){a+=_;continue}a&&(o.push(a),a="");var v=c("OPEN");if(v){var m=h(),y=c("NAME")||"",w=c("PATTERN")||"",E=h();f("CLOSE"),o.push({name:y||(w?u++:""),pattern:y&&!w?s:w,prefix:m,suffix:E,modifier:c("MODIFIER")||""});continue}f("END")}return o}function Hg(t,e){return kg(Fo(t,e),e)}function kg(t,e){e===void 0&&(e={});var r=jn(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==="*",g=f.modifier==="*"||f.modifier==="+";if(Array.isArray(h)){if(!g)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 d=0;d<h.length;d++){var m=i(h[d],f);if(o&&!u[c].test(m))throw new TypeError('Expected all "'.concat(f.name,'" to match "').concat(f.pattern,'", but got "').concat(m,'"'));a+=f.prefix+m+f.suffix}continue}if(typeof h=="string"||typeof h=="number"){var m=i(String(h),f);if(o&&!u[c].test(m))throw new TypeError('Expected "'.concat(f.name,'" to match "').concat(f.pattern,'", but got "').concat(m,'"'));a+=f.prefix+m+f.suffix;continue}if(!p){var _=g?"an array":"a string";throw new TypeError('Expected "'.concat(f.name,'" to be ').concat(_))}}return a}}function Vg(t,e){var r=[],n=Nn(t,r,e);return qg(n,r,e)}function qg(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(g){return i(g,p)}):a[p.name]=i(o[h],p)},f=1;f<o.length;f++)c(f);return{path:u,index:l,params:a}}}function ot(t){return t.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function jn(t){return t&&t.sensitive?"":"i"}function zg(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 Wg(t,e,r){var n=t.map(function(i){return Nn(i,e,r).source});return new RegExp("(?:".concat(n.join("|"),")"),jn(r))}function Kg(t,e,r){return Jg(Fo(t,r),e,r)}function Jg(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,g=p===void 0?"":p,d="[".concat(ot(g),"]|$"),m="[".concat(ot(h),"]"),_=o?"^":"",v=0,y=t;v<y.length;v++){var w=y[v];if(typeof w=="string")_+=ot(c(w));else{var E=ot(c(w.prefix)),b=ot(c(w.suffix));if(w.pattern)if(e&&e.push(w),E||b)if(w.modifier==="+"||w.modifier==="*"){var A=w.modifier==="*"?"?":"";_+="(?:".concat(E,"((?:").concat(w.pattern,")(?:").concat(b).concat(E,"(?:").concat(w.pattern,"))*)").concat(b,")").concat(A)}else _+="(?:".concat(E,"(").concat(w.pattern,")").concat(b,")").concat(w.modifier);else w.modifier==="+"||w.modifier==="*"?_+="((?:".concat(w.pattern,")").concat(w.modifier,")"):_+="(".concat(w.pattern,")").concat(w.modifier);else _+="(?:".concat(E).concat(b,")").concat(w.modifier)}}if(l)i||(_+="".concat(m,"?")),_+=r.endsWith?"(?=".concat(d,")"):"$";else{var $=t[t.length-1],L=typeof $=="string"?m.indexOf($[$.length-1])>-1:$===void 0;i||(_+="(?:".concat(m,"(?=").concat(d,"))?")),L||(_+="(?=".concat(m,"|").concat(d,")"))}return new RegExp(_,jn(r))}function Nn(t,e,r){return t instanceof RegExp?zg(t,e):Array.isArray(t)?Wg(t,e,r):Kg(t,e,r)}var Gg=Object.defineProperty,Yg=(t,e,r)=>e in t?Gg(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,mt=(t,e,r)=>(Yg(t,typeof e!="symbol"?e+"":e,r),r);class Zg{constructor(){mt(this,"queue",[]),mt(this,"isProcessing",!1),mt(this,"results",[]),mt(this,"cache",new Map),mt(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 F(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()}})}}Mo.compress;Mo.decompress;/**!
46
- * Copyright (c) 2026, VTJ.PRO All rights reserved.
47
- * @name @vtj/core
48
- * @author CHC chenhuachun1549@dingtalk.com
49
- * @version 0.17.6
50
- * @license <a href="https://vtj.pro/license.html">MIT License</a>
51
- */const Qg="VueMaterial",Xg="VueRouterMaterial",ev={[Qg]:["Transition","TransitionGroup","KeepAlive","Teleport","Suspense"],[Xg]:["RouterView","RouterLink"]};let tv=class{constructor(){W(this,"listeners",[]);W(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 rv=Object.defineProperty,nv=(t,e,r)=>e in t?rv(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,ve=(t,e,r)=>nv(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 Lo(t,e){return function(){return t.apply(e,arguments)}}const{toString:iv}=Object.prototype,{getPrototypeOf:pr}=Object,{iterator:dr,toStringTag:Uo}=Symbol,gr=(t=>e=>{const r=iv.call(e);return t[r]||(t[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),Re=t=>(t=t.toLowerCase(),e=>gr(e)===t),vr=t=>e=>typeof e===t,{isArray:dt}=Array,ct=vr("undefined");function Dt(t){return t!==null&&!ct(t)&&t.constructor!==null&&!ct(t.constructor)&&he(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const Ho=Re("ArrayBuffer");function sv(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&Ho(t.buffer),e}const ov=vr("string"),he=vr("function"),ko=vr("number"),Ct=t=>t!==null&&typeof t=="object",av=t=>t===!0||t===!1,Yt=t=>{if(gr(t)!=="object")return!1;const e=pr(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Uo in t)&&!(dr in t)},uv=t=>{if(!Ct(t)||Dt(t))return!1;try{return Object.keys(t).length===0&&Object.getPrototypeOf(t)===Object.prototype}catch(e){return!1}},cv=Re("Date"),lv=Re("File"),fv=t=>!!(t&&typeof t.uri<"u"),hv=t=>t&&typeof t.getParts<"u",pv=Re("Blob"),dv=Re("FileList"),gv=t=>Ct(t)&&he(t.pipe);function vv(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}const Qi=vv(),Xi=typeof Qi.FormData<"u"?Qi.FormData:void 0,mv=t=>{if(!t)return!1;if(Xi&&t instanceof Xi)return!0;const e=pr(t);if(!e||e===Object.prototype||!he(t.append))return!1;const r=gr(t);return r==="formdata"||r==="object"&&he(t.toString)&&t.toString()==="[object FormData]"},yv=Re("URLSearchParams"),[bv,_v,wv,Ev]=["ReadableStream","Request","Response","Headers"].map(Re),Sv=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Bt(t,e,{allOwnKeys:r=!1}={}){if(t===null||typeof t>"u")return;let n,i;if(typeof t!="object"&&(t=[t]),dt(t))for(n=0,i=t.length;n<i;n++)e.call(null,t[n],n,t);else{if(Dt(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 Vo(t,e){if(Dt(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 ze=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,qo=t=>!ct(t)&&t!==ze;function ln(...t){const{caseless:e,skipUndefined:r}=qo(this)&&this||{},n={},i=(s,o)=>{if(o==="__proto__"||o==="constructor"||o==="prototype")return;const u=e&&Vo(n,o)||o,l=fn(n,u)?n[u]:void 0;Yt(l)&&Yt(s)?n[u]=ln(l,s):Yt(s)?n[u]=ln({},s):dt(s)?n[u]=s.slice():(!r||!ct(s))&&(n[u]=s)};for(let s=0,o=t.length;s<o;s++)t[s]&&Bt(t[s],i);return n}const Tv=(t,e,r,{allOwnKeys:n}={})=>(Bt(e,(i,s)=>{r&&he(i)?Object.defineProperty(t,s,{__proto__:null,value:Lo(i,r),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(t,s,{__proto__:null,value:i,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:n}),t),Rv=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),Av=(t,e,r,n)=>{t.prototype=Object.create(e.prototype,n),Object.defineProperty(t.prototype,"constructor",{__proto__:null,value:t,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(t,"super",{__proto__:null,value:e.prototype}),r&&Object.assign(t.prototype,r)},xv=(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&&pr(t)}while(t&&(!r||r(t,e))&&t!==Object.prototype);return e},Ov=(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},$v=t=>{if(!t)return null;if(dt(t))return t;let e=t.length;if(!ko(e))return null;const r=new Array(e);for(;e-- >0;)r[e]=t[e];return r},Dv=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&pr(Uint8Array)),Cv=(t,e)=>{const r=(t&&t[dr]).call(t);let n;for(;(n=r.next())&&!n.done;){const i=n.value;e.call(t,i[0],i[1])}},Bv=(t,e)=>{let r;const n=[];for(;(r=t.exec(e))!==null;)n.push(r);return n},Pv=Re("HTMLFormElement"),jv=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,r,n){return r.toUpperCase()+n}),fn=(({hasOwnProperty:t})=>(e,r)=>t.call(e,r))(Object.prototype),Nv=Re("RegExp"),zo=(t,e)=>{const r=Object.getOwnPropertyDescriptors(t),n={};Bt(r,(i,s)=>{let o;(o=e(i,s,t))!==!1&&(n[s]=o||i)}),Object.defineProperties(t,n)},Iv=t=>{zo(t,(e,r)=>{if(he(t)&&["arguments","caller","callee"].includes(r))return!1;const n=t[r];if(he(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+"'")})}})},Mv=(t,e)=>{const r={},n=i=>{i.forEach(s=>{r[s]=!0})};return dt(t)?n(t):n(String(t).split(e)),r},Fv=()=>{},Lv=(t,e)=>t!=null&&Number.isFinite(t=+t)?t:e;function Uv(t){return!!(t&&he(t.append)&&t[Uo]==="FormData"&&t[dr])}const Hv=t=>{const e=new WeakSet,r=n=>{if(Ct(n)){if(e.has(n))return;if(Dt(n))return n;if(!("toJSON"in n)){e.add(n);const i=dt(n)?[]:{};return Bt(n,(s,o)=>{const u=r(s);!ct(u)&&(i[o]=u)}),e.delete(n),i}}return n};return r(t)},kv=Re("AsyncFunction"),Vv=t=>t&&(Ct(t)||he(t))&&he(t.then)&&he(t.catch),Wo=((t,e)=>t?setImmediate:e?((r,n)=>(ze.addEventListener("message",({source:i,data:s})=>{i===ze&&s===r&&n.length&&n.shift()()},!1),i=>{n.push(i),ze.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",he(ze.postMessage)),qv=typeof queueMicrotask<"u"?queueMicrotask.bind(ze):typeof process<"u"&&process.nextTick||Wo,zv=t=>t!=null&&he(t[dr]),T={isArray:dt,isArrayBuffer:Ho,isBuffer:Dt,isFormData:mv,isArrayBufferView:sv,isString:ov,isNumber:ko,isBoolean:av,isObject:Ct,isPlainObject:Yt,isEmptyObject:uv,isReadableStream:bv,isRequest:_v,isResponse:wv,isHeaders:Ev,isUndefined:ct,isDate:cv,isFile:lv,isReactNativeBlob:fv,isReactNative:hv,isBlob:pv,isRegExp:Nv,isFunction:he,isStream:gv,isURLSearchParams:yv,isTypedArray:Dv,isFileList:dv,forEach:Bt,merge:ln,extend:Tv,trim:Sv,stripBOM:Rv,inherits:Av,toFlatObject:xv,kindOf:gr,kindOfTest:Re,endsWith:Ov,toArray:$v,forEachEntry:Cv,matchAll:Bv,isHTMLForm:Pv,hasOwnProperty:fn,hasOwnProp:fn,reduceDescriptors:zo,freezeMethods:Iv,toObjectSet:Mv,toCamelCase:jv,noop:Fv,toFiniteNumber:Lv,findKey:Vo,global:ze,isContextDefined:qo,isSpecCompliantForm:Uv,toJSONObject:Hv,isAsyncFn:kv,isThenable:Vv,setImmediate:Wo,asap:qv,isIterable:zv},Wv=T.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"]),Kv=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]&&Wv[r])&&(r==="set-cookie"?e[r]?e[r].push(n):e[r]=[n]:e[r]=e[r]?e[r]+", "+n:n)}),e};function Jv(t){let e=0,r=t.length;for(;e<r;){const n=t.charCodeAt(e);if(n!==9&&n!==32)break;e+=1}for(;r>e;){const n=t.charCodeAt(r-1);if(n!==9&&n!==32)break;r-=1}return e===0&&r===t.length?t:t.slice(e,r)}const Gv=new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),Yv=new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function In(t,e){return T.isArray(t)?t.map(r=>In(r,e)):Jv(String(t).replace(e,""))}const Zv=t=>In(t,Gv),Qv=t=>In(t,Yv);function Ko(t){const e=Object.create(null);return T.forEach(t.toJSON(),(r,n)=>{e[n]=Qv(r)}),e}const es=Symbol("internals");function yt(t){return t&&String(t).trim().toLowerCase()}function Zt(t){return t===!1||t==null?t:T.isArray(t)?t.map(Zt):Zv(String(t))}function Xv(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 em=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function Fr(t,e,r,n,i){if(T.isFunction(n))return n.call(this,e,r);if(i&&(e=r),!!T.isString(e)){if(T.isString(n))return e.indexOf(n)!==-1;if(T.isRegExp(n))return n.test(e)}}function tm(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,r,n)=>r.toUpperCase()+n)}function rm(t,e){const r=T.toCamelCase(" "+e);["get","set","has"].forEach(n=>{Object.defineProperty(t,n+r,{__proto__:null,value:function(i,s,o){return this[n].call(this,e,i,s,o)},configurable:!0})})}let le=class{constructor(e){e&&this.set(e)}set(e,r,n){const i=this;function s(u,l,a){const c=yt(l);if(!c)throw new Error("header name must be a non-empty string");const f=T.findKey(i,c);(!f||i[f]===void 0||a===!0||a===void 0&&i[f]!==!1)&&(i[f||l]=Zt(u))}const o=(u,l)=>T.forEach(u,(a,c)=>s(a,c,l));if(T.isPlainObject(e)||e instanceof this.constructor)o(e,r);else if(T.isString(e)&&(e=e.trim())&&!em(e))o(Kv(e),r);else if(T.isObject(e)&&T.isIterable(e)){let u={},l,a;for(const c of e){if(!T.isArray(c))throw TypeError("Object iterator must return a key-value pair");u[a=c[0]]=(l=u[a])?T.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=yt(e),e){const n=T.findKey(this,e);if(n){const i=this[n];if(!r)return i;if(r===!0)return Xv(i);if(T.isFunction(r))return r.call(this,i,n);if(T.isRegExp(r))return r.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,r){if(e=yt(e),e){const n=T.findKey(this,e);return!!(n&&this[n]!==void 0&&(!r||Fr(this,this[n],n,r)))}return!1}delete(e,r){const n=this;let i=!1;function s(o){if(o=yt(o),o){const u=T.findKey(n,o);u&&(!r||Fr(n,n[u],u,r))&&(delete n[u],i=!0)}}return T.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||Fr(this,this[s],s,e,!0))&&(delete this[s],i=!0)}return i}normalize(e){const r=this,n={};return T.forEach(this,(i,s)=>{const o=T.findKey(n,s);if(o){r[o]=Zt(i),delete r[s];return}const u=e?tm(s):String(s).trim();u!==s&&delete r[s],r[u]=Zt(i),n[u]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const r=Object.create(null);return T.forEach(this,(n,i)=>{n!=null&&n!==!1&&(r[i]=e&&T.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[es]=this[es]={accessors:{}}).accessors,n=this.prototype;function i(s){const o=yt(s);r[o]||(rm(n,s),r[o]=!0)}return T.isArray(e)?e.forEach(i):i(e),this}};le.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);T.reduceDescriptors(le.prototype,({value:t},e)=>{let r=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(n){this[r]=n}}});T.freezeMethods(le);const nm="[REDACTED ****]";function im(t){if(T.hasOwnProp(t,"toJSON"))return!0;let e=Object.getPrototypeOf(t);for(;e&&e!==Object.prototype;){if(T.hasOwnProp(e,"toJSON"))return!0;e=Object.getPrototypeOf(e)}return!1}function sm(t,e){const r=new Set(e.map(s=>String(s).toLowerCase())),n=[],i=s=>{if(s===null||typeof s!="object"||T.isBuffer(s))return s;if(n.indexOf(s)!==-1)return;s instanceof le&&(s=s.toJSON()),n.push(s);let o;if(T.isArray(s))o=[],s.forEach((u,l)=>{const a=i(u);T.isUndefined(a)||(o[l]=a)});else{if(!T.isPlainObject(s)&&im(s))return n.pop(),s;o=Object.create(null);for(const[u,l]of Object.entries(s)){const a=r.has(u.toLowerCase())?nm:i(l);T.isUndefined(a)||(o[u]=a)}}return n.pop(),o};return i(t)}let q=class Jo extends Error{static from(e,r,n,i,s,o){const u=new Jo(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",{__proto__:null,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(){const e=this.config,r=e&&T.hasOwnProp(e,"redact")?e.redact:void 0,n=T.isArray(r)&&r.length>0?sm(e,r):T.toJSONObject(e);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:n,code:this.code,status:this.status}}};q.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";q.ERR_BAD_OPTION="ERR_BAD_OPTION";q.ECONNABORTED="ECONNABORTED";q.ETIMEDOUT="ETIMEDOUT";q.ECONNREFUSED="ECONNREFUSED";q.ERR_NETWORK="ERR_NETWORK";q.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";q.ERR_DEPRECATED="ERR_DEPRECATED";q.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";q.ERR_BAD_REQUEST="ERR_BAD_REQUEST";q.ERR_CANCELED="ERR_CANCELED";q.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";q.ERR_INVALID_URL="ERR_INVALID_URL";q.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";const om=null;function hn(t){return T.isPlainObject(t)||T.isArray(t)}function Go(t){return T.endsWith(t,"[]")?t.slice(0,-2):t}function Lr(t,e,r){return t?t.concat(e).map(function(n,i){return n=Go(n),!r&&i?"["+n+"]":n}).join(r?".":""):e}function am(t){return T.isArray(t)&&!t.some(hn)}const um=T.toFlatObject(T,{},null,function(t){return/^is[A-Z]/.test(t)});function mr(t,e,r){if(!T.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,r=T.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(d,m){return!T.isUndefined(m[d])});const n=r.metaTokens,i=r.visitor||f,s=r.dots,o=r.indexes,u=r.Blob||typeof Blob<"u"&&Blob,l=r.maxDepth===void 0?100:r.maxDepth,a=u&&T.isSpecCompliantForm(e);if(!T.isFunction(i))throw new TypeError("visitor must be a function");function c(d){if(d===null)return"";if(T.isDate(d))return d.toISOString();if(T.isBoolean(d))return d.toString();if(!a&&T.isBlob(d))throw new q("Blob is not supported. Use a Buffer instead.");return T.isArrayBuffer(d)||T.isTypedArray(d)?a&&typeof Blob=="function"?new Blob([d]):Buffer.from(d):d}function f(d,m,_){let v=d;if(T.isReactNative(e)&&T.isReactNativeBlob(d))return e.append(Lr(_,m,s),c(d)),!1;if(d&&!_&&typeof d=="object"){if(T.endsWith(m,"{}"))m=n?m:m.slice(0,-2),d=JSON.stringify(d);else if(T.isArray(d)&&am(d)||(T.isFileList(d)||T.endsWith(m,"[]"))&&(v=T.toArray(d)))return m=Go(m),v.forEach(function(y,w){!(T.isUndefined(y)||y===null)&&e.append(o===!0?Lr([m],w,s):o===null?m:m+"[]",c(y))}),!1}return hn(d)?!0:(e.append(Lr(_,m,s),c(d)),!1)}const h=[],p=Object.assign(um,{defaultVisitor:f,convertValue:c,isVisitable:hn});function g(d,m,_=0){if(!T.isUndefined(d)){if(_>l)throw new q("Object is too deeply nested ("+_+" levels). Max depth: "+l,q.ERR_FORM_DATA_DEPTH_EXCEEDED);if(h.indexOf(d)!==-1)throw Error("Circular reference detected in "+m.join("."));h.push(d),T.forEach(d,function(v,y){(!(T.isUndefined(v)||v===null)&&i.call(e,v,T.isString(y)?y.trim():y,m,p))===!0&&g(v,m?m.concat(y):[y],_+1)}),h.pop()}}if(!T.isObject(t))throw new TypeError("data must be an object");return g(t),e}function ts(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(t).replace(/[!'()~]|%20/g,function(r){return e[r]})}function Mn(t,e){this._pairs=[],t&&mr(t,this,e)}const Yo=Mn.prototype;Yo.append=function(t,e){this._pairs.push([t,e])};Yo.toString=function(t){const e=t?function(r){return t.call(this,r,ts)}:ts;return this._pairs.map(function(r){return e(r[0])+"="+e(r[1])},"").join("&")};function cm(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Zo(t,e,r){if(!e)return t;const n=r&&r.encode||cm,i=T.isFunction(r)?{serialize:r}:r,s=i&&i.serialize;let o;if(s?o=s(e,i):o=T.isURLSearchParams(e)?e.toString():new Mn(e,i).toString(n),o){const u=t.indexOf("#");u!==-1&&(t=t.slice(0,u)),t+=(t.indexOf("?")===-1?"?":"&")+o}return t}class rs{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){T.forEach(this.handlers,function(r){r!==null&&e(r)})}}const Fn={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},lm=typeof URLSearchParams<"u"?URLSearchParams:Mn,fm=typeof FormData<"u"?FormData:null,hm=typeof Blob<"u"?Blob:null,pm={isBrowser:!0,classes:{URLSearchParams:lm,FormData:fm,Blob:hm},protocols:["http","https","file","blob","url","data"]},Ln=typeof window<"u"&&typeof document<"u",pn=typeof navigator=="object"&&navigator||void 0,dm=Ln&&(!pn||["ReactNative","NativeScript","NS"].indexOf(pn.product)<0),gm=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",vm=Ln&&window.location.href||"http://localhost",mm=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Ln,hasStandardBrowserEnv:dm,hasStandardBrowserWebWorkerEnv:gm,navigator:pn,origin:vm},Symbol.toStringTag,{value:"Module"})),ae=k(k({},mm),pm);function ym(t,e){return mr(t,new ae.classes.URLSearchParams,k({visitor:function(r,n,i,s){return ae.isNode&&T.isBuffer(r)?(this.append(n,r.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)}},e))}function bm(t){return T.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function _m(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 Qo(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&&T.isArray(i)?i.length:o,l?(T.hasOwnProp(i,o)?i[o]=T.isArray(i[o])?i[o].concat(n):[i[o],n]:i[o]=n,!u):((!T.hasOwnProp(i,o)||!T.isObject(i[o]))&&(i[o]=[]),e(r,n,i[o],s)&&T.isArray(i[o])&&(i[o]=_m(i[o])),!u)}if(T.isFormData(t)&&T.isFunction(t.entries)){const r={};return T.forEachEntry(t,(n,i)=>{e(bm(n),i,r,0)}),r}return null}const rt=(t,e)=>t!=null&&T.hasOwnProp(t,e)?t[e]:void 0;function wm(t,e,r){if(T.isString(t))try{return(e||JSON.parse)(t),T.trim(t)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(t)}const Pt={transitional:Fn,adapter:["xhr","http","fetch"],transformRequest:[function(t,e){const r=e.getContentType()||"",n=r.indexOf("application/json")>-1,i=T.isObject(t);if(i&&T.isHTMLForm(t)&&(t=new FormData(t)),T.isFormData(t))return n?JSON.stringify(Qo(t)):t;if(T.isArrayBuffer(t)||T.isBuffer(t)||T.isStream(t)||T.isFile(t)||T.isBlob(t)||T.isReadableStream(t))return t;if(T.isArrayBufferView(t))return t.buffer;if(T.isURLSearchParams(t))return e.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(i){const o=rt(this,"formSerializer");if(r.indexOf("application/x-www-form-urlencoded")>-1)return ym(t,o).toString();if((s=T.isFileList(t))||r.indexOf("multipart/form-data")>-1){const u=rt(this,"env"),l=u&&u.FormData;return mr(s?{"files[]":t}:t,l&&new l,o)}}return i||n?(e.setContentType("application/json",!1),wm(t)):t}],transformResponse:[function(t){const e=rt(this,"transitional")||Pt.transitional,r=e&&e.forcedJSONParsing,n=rt(this,"responseType"),i=n==="json";if(T.isResponse(t)||T.isReadableStream(t))return t;if(t&&T.isString(t)&&(r&&!n||i)){const s=!(e&&e.silentJSONParsing)&&i;try{return JSON.parse(t,rt(this,"parseReviver"))}catch(o){if(s)throw o.name==="SyntaxError"?q.from(o,q.ERR_BAD_RESPONSE,this,null,rt(this,"response")):o}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ae.classes.FormData,Blob:ae.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};T.forEach(["delete","get","head","post","put","patch","query"],t=>{Pt.headers[t]={}});function Ur(t,e){const r=this||Pt,n=e||r,i=le.from(n.headers);let s=n.data;return T.forEach(t,function(o){s=o.call(r,s,i.normalize(),e?e.status:void 0)}),i.normalize(),s}function Xo(t){return!!(t&&t.__CANCEL__)}let jt=class extends q{constructor(e,r,n){super(e!=null?e:"canceled",q.ERR_CANCELED,r,n),this.name="CanceledError",this.__CANCEL__=!0}};function ea(t,e,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?t(r):e(new q("Request failed with status code "+r.status,r.status>=400&&r.status<500?q.ERR_BAD_REQUEST:q.ERR_BAD_RESPONSE,r.config,r.request,r))}function Em(t){const e=/^([-+\w]{1,25}):(?:\/\/)?/.exec(t);return e&&e[1]||""}function Sm(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 Tm(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 ar=(t,e,r=3)=>{let n=0;const i=Sm(50,250);return Tm(s=>{if(!s||typeof s.loaded!="number")return;const o=s.loaded,u=s.lengthComputable?s.total:void 0,l=u!=null?Math.min(o,u):o,a=Math.max(0,l-n),c=i(a);n=Math.max(n,l);const f={loaded:l,total:u,progress:u?l/u:void 0,bytes:a,rate:c||void 0,estimated:c&&u?(u-l)/c:void 0,event:s,lengthComputable:u!=null,[e?"download":"upload"]:!0};t(f)},r)},ns=(t,e)=>{const r=t!=null;return[n=>e[0]({lengthComputable:r,total:t,loaded:n}),e[1]]},is=t=>(...e)=>T.asap(()=>t(...e)),Rm=ae.hasStandardBrowserEnv?((t,e)=>r=>(r=new URL(r,ae.origin),t.protocol===r.protocol&&t.host===r.host&&(e||t.port===r.port)))(new URL(ae.origin),ae.navigator&&/(msie|trident)/i.test(ae.navigator.userAgent)):()=>!0,Am=ae.hasStandardBrowserEnv?{write(t,e,r,n,i,s,o){if(typeof document>"u")return;const u=[`${t}=${encodeURIComponent(e)}`];T.isNumber(r)&&u.push(`expires=${new Date(r).toUTCString()}`),T.isString(n)&&u.push(`path=${n}`),T.isString(i)&&u.push(`domain=${i}`),s===!0&&u.push("secure"),T.isString(o)&&u.push(`SameSite=${o}`),document.cookie=u.join("; ")},read(t){if(typeof document>"u")return null;const e=document.cookie.split(";");for(let r=0;r<e.length;r++){const n=e[r].replace(/^\s+/,""),i=n.indexOf("=");if(i!==-1&&n.slice(0,i)===t)return decodeURIComponent(n.slice(i+1))}return null},remove(t){this.write(t,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function xm(t){return typeof t!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function Om(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}function ta(t,e,r){let n=!xm(e);return t&&(n||r===!1)?Om(t,e):e}const ss=t=>t instanceof le?k({},t):t;function Ge(t,e){e=e||{};const r=Object.create(null);Object.defineProperty(r,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});function n(a,c,f,h){return T.isPlainObject(a)&&T.isPlainObject(c)?T.merge.call({caseless:h},a,c):T.isPlainObject(c)?T.merge({},c):T.isArray(c)?c.slice():c}function i(a,c,f,h){if(T.isUndefined(c)){if(!T.isUndefined(a))return n(void 0,a,f,h)}else return n(a,c,f,h)}function s(a,c){if(!T.isUndefined(c))return n(void 0,c)}function o(a,c){if(T.isUndefined(c)){if(!T.isUndefined(a))return n(void 0,a)}else return n(void 0,c)}function u(a,c,f){if(T.hasOwnProp(e,f))return n(a,c);if(T.hasOwnProp(t,f))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,allowedSocketPaths:o,responseEncoding:o,validateStatus:u,headers:(a,c,f)=>i(ss(a),ss(c),f,!0)};return T.forEach(Object.keys(k(k({},t),e)),function(a){if(a==="__proto__"||a==="constructor"||a==="prototype")return;const c=T.hasOwnProp(l,a)?l[a]:i,f=T.hasOwnProp(t,a)?t[a]:void 0,h=T.hasOwnProp(e,a)?e[a]:void 0,p=c(f,h,a);T.isUndefined(p)&&c!==u||(r[a]=p)}),r}const $m=["content-type","content-length"];function Dm(t,e,r){if(r!=="content-only"){t.set(e);return}Object.entries(e).forEach(([n,i])=>{$m.includes(n.toLowerCase())&&t.set(n,i)})}const Cm=t=>encodeURIComponent(t).replace(/%([0-9A-F]{2})/gi,(e,r)=>String.fromCharCode(parseInt(r,16))),ra=t=>{const e=Ge({},t),r=h=>T.hasOwnProp(e,h)?e[h]:void 0,n=r("data");let i=r("withXSRFToken");const s=r("xsrfHeaderName"),o=r("xsrfCookieName");let u=r("headers");const l=r("auth"),a=r("baseURL"),c=r("allowAbsoluteUrls"),f=r("url");if(e.headers=u=le.from(u),e.url=Zo(ta(a,f,c),t.params,t.paramsSerializer),l&&u.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?Cm(l.password):""))),T.isFormData(n)&&(ae.hasStandardBrowserEnv||ae.hasStandardBrowserWebWorkerEnv?u.setContentType(void 0):T.isFunction(n.getHeaders)&&Dm(u,n.getHeaders(),r("formDataHeaderPolicy"))),ae.hasStandardBrowserEnv&&(T.isFunction(i)&&(i=i(e)),i===!0||i==null&&Rm(e.url))){const h=s&&o&&Am.read(o);h&&u.set(s,h)}return e},Bm=typeof XMLHttpRequest<"u",Pm=Bm&&function(t){return new Promise(function(e,r){const n=ra(t);let i=n.data;const s=le.from(n.headers).normalize();let{responseType:o,onUploadProgress:u,onDownloadProgress:l}=n,a,c,f,h,p;function g(){h&&h(),p&&p(),n.cancelToken&&n.cancelToken.unsubscribe(a),n.signal&&n.signal.removeEventListener("abort",a)}let d=new XMLHttpRequest;d.open(n.method.toUpperCase(),n.url,!0),d.timeout=n.timeout;function m(){if(!d)return;const v=le.from("getAllResponseHeaders"in d&&d.getAllResponseHeaders()),y={data:!o||o==="text"||o==="json"?d.responseText:d.response,status:d.status,statusText:d.statusText,headers:v,config:t,request:d};ea(function(w){e(w),g()},function(w){r(w),g()},y),d=null}"onloadend"in d?d.onloadend=m:d.onreadystatechange=function(){!d||d.readyState!==4||d.status===0&&!(d.responseURL&&d.responseURL.startsWith("file:"))||setTimeout(m)},d.onabort=function(){d&&(r(new q("Request aborted",q.ECONNABORTED,t,d)),g(),d=null)},d.onerror=function(v){const y=v&&v.message?v.message:"Network Error",w=new q(y,q.ERR_NETWORK,t,d);w.event=v||null,r(w),g(),d=null},d.ontimeout=function(){let v=n.timeout?"timeout of "+n.timeout+"ms exceeded":"timeout exceeded";const y=n.transitional||Fn;n.timeoutErrorMessage&&(v=n.timeoutErrorMessage),r(new q(v,y.clarifyTimeoutError?q.ETIMEDOUT:q.ECONNABORTED,t,d)),g(),d=null},i===void 0&&s.setContentType(null),"setRequestHeader"in d&&T.forEach(Ko(s),function(v,y){d.setRequestHeader(y,v)}),T.isUndefined(n.withCredentials)||(d.withCredentials=!!n.withCredentials),o&&o!=="json"&&(d.responseType=n.responseType),l&&([f,p]=ar(l,!0),d.addEventListener("progress",f)),u&&d.upload&&([c,h]=ar(u),d.upload.addEventListener("progress",c),d.upload.addEventListener("loadend",h)),(n.cancelToken||n.signal)&&(a=v=>{d&&(r(!v||v.type?new jt(null,t,d):v),d.abort(),g(),d=null)},n.cancelToken&&n.cancelToken.subscribe(a),n.signal&&(n.signal.aborted?a():n.signal.addEventListener("abort",a)));const _=Em(n.url);if(_&&!ae.protocols.includes(_)){r(new q("Unsupported protocol "+_+":",q.ERR_BAD_REQUEST,t));return}d.send(i||null)})},jm=(t,e)=>{if(t=t?t.filter(Boolean):[],!e&&!t.length)return;const r=new AbortController;let n=!1;const i=function(l){if(!n){n=!0,o();const a=l instanceof Error?l:this.reason;r.abort(a instanceof q?a:new jt(a instanceof Error?a.message:a))}};let s=e&&setTimeout(()=>{s=null,i(new q(`timeout of ${e}ms exceeded`,q.ETIMEDOUT))},e);const o=()=>{t&&(s&&clearTimeout(s),s=null,t.forEach(l=>{l.unsubscribe?l.unsubscribe(i):l.removeEventListener("abort",i)}),t=null)};t.forEach(l=>l.addEventListener("abort",i));const{signal:u}=r;return u.unsubscribe=()=>T.asap(o),u},Nm=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},Im=function(t,e){return Sr(this,null,function*(){try{for(var r=zn(Mm(t)),n,i,s;n=!(i=yield new ke(r.next())).done;n=!1){const o=i.value;yield*Tr(Nm(o,e))}}catch(i){s=[i]}finally{try{n&&(i=r.return)&&(yield new ke(i.call(r)))}finally{if(s)throw s[0]}}})},Mm=function(t){return Sr(this,null,function*(){if(t[Symbol.asyncIterator]){yield*Tr(t);return}const e=t.getReader();try{for(;;){const{done:r,value:n}=yield new ke(e.read());if(r)break;yield n}}finally{yield new ke(e.cancel())}})},os=(t,e,r,n)=>{const i=Im(t,e);let s=0,o,u=a=>{o||(o=!0,n&&n(a))};return new ReadableStream({pull(a){return F(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})};function Fm(t){if(!t||typeof t!="string"||!t.startsWith("data:"))return 0;const e=t.indexOf(",");if(e<0)return 0;const r=t.slice(5,e),n=t.slice(e+1);if(/;base64/i.test(r)){let s=n.length;const o=n.length;for(let f=0;f<o;f++)if(n.charCodeAt(f)===37&&f+2<o){const h=n.charCodeAt(f+1),p=n.charCodeAt(f+2);(h>=48&&h<=57||h>=65&&h<=70||h>=97&&h<=102)&&(p>=48&&p<=57||p>=65&&p<=70||p>=97&&p<=102)&&(s-=2,f+=2)}let u=0,l=o-1;const a=f=>f>=2&&n.charCodeAt(f-2)===37&&n.charCodeAt(f-1)===51&&(n.charCodeAt(f)===68||n.charCodeAt(f)===100);l>=0&&(n.charCodeAt(l)===61?(u++,l--):a(l)&&(u++,l-=3)),u===1&&l>=0&&(n.charCodeAt(l)===61||a(l))&&u++;const c=Math.floor(s/4)*3-(u||0);return c>0?c:0}if(typeof Buffer<"u"&&typeof Buffer.byteLength=="function")return Buffer.byteLength(n,"utf8");let i=0;for(let s=0,o=n.length;s<o;s++){const u=n.charCodeAt(s);if(u<128)i+=1;else if(u<2048)i+=2;else if(u>=55296&&u<=56319&&s+1<o){const l=n.charCodeAt(s+1);l>=56320&&l<=57343?(i+=4,s++):i+=3}else i+=3}return i}const Un="1.16.1",as=64*1024,{isFunction:Vt}=T,us=(t,...e)=>{try{return!!t(...e)}catch(r){return!1}},Lm=t=>{const e=T.global!==void 0&&T.global!==null?T.global:globalThis,{ReadableStream:r,TextEncoder:n}=e;t=T.merge.call({skipUndefined:!0},{Request:e.Request,Response:e.Response},t);const{fetch:i,Request:s,Response:o}=t,u=i?Vt(i):typeof fetch=="function",l=Vt(s),a=Vt(o);if(!u)return!1;const c=u&&Vt(r),f=u&&(typeof n=="function"?(_=>v=>_.encode(v))(new n):_=>F(null,null,function*(){return new Uint8Array(yield new s(_).arrayBuffer())})),h=l&&c&&us(()=>{let _=!1;const v=new s(ae.origin,{body:new r,method:"POST",get duplex(){return _=!0,"half"}}),y=v.headers.has("Content-Type");return v.body!=null&&v.body.cancel(),_&&!y}),p=a&&c&&us(()=>T.isReadableStream(new o("").body)),g={stream:p&&(_=>_.body)};u&&["text","arrayBuffer","blob","formData","stream"].forEach(_=>{!g[_]&&(g[_]=(v,y)=>{let w=v&&v[_];if(w)return w.call(v);throw new q(`Response type '${_}' is not supported`,q.ERR_NOT_SUPPORT,y)})});const d=_=>F(null,null,function*(){if(_==null)return 0;if(T.isBlob(_))return _.size;if(T.isSpecCompliantForm(_))return(yield new s(ae.origin,{method:"POST",body:_}).arrayBuffer()).byteLength;if(T.isArrayBufferView(_)||T.isArrayBuffer(_))return _.byteLength;if(T.isURLSearchParams(_)&&(_=_+""),T.isString(_))return(yield f(_)).byteLength}),m=(_,v)=>F(null,null,function*(){const y=T.toFiniteNumber(_.getContentLength());return y!=null?y:d(v)});return _=>F(null,null,function*(){let{url:v,method:y,data:w,signal:E,cancelToken:b,timeout:A,onDownloadProgress:$,onUploadProgress:L,responseType:S,headers:R,withCredentials:M="same-origin",fetchOptions:N,maxContentLength:I,maxBodyLength:D}=ra(_);const P=T.isNumber(I)&&I>-1,H=T.isNumber(D)&&D>-1;let U=i||fetch;S=S?(S+"").toLowerCase():"text";let z=jm([E,b&&b.toAbortSignal()],A),V=null;const O=z&&z.unsubscribe&&(()=>{z.unsubscribe()});let j;try{if(P&&typeof v=="string"&&v.startsWith("data:")&&Fm(v)>I)throw new q("maxContentLength size of "+I+" exceeded",q.ERR_BAD_RESPONSE,_,V);if(H&&y!=="get"&&y!=="head"){const G=yield m(R,w);if(typeof G=="number"&&isFinite(G)&&G>D)throw new q("Request body larger than maxBodyLength limit",q.ERR_BAD_REQUEST,_,V)}if(L&&h&&y!=="get"&&y!=="head"&&(j=yield m(R,w))!==0){let G=new s(v,{method:"POST",body:w,duplex:"half"}),fe;if(T.isFormData(w)&&(fe=G.headers.get("content-type"))&&R.setContentType(fe),G.body){const[ie,de]=ns(j,ar(is(L)));w=os(G.body,as,ie,de)}}T.isString(M)||(M=M?"include":"omit");const x=l&&"credentials"in s.prototype;if(T.isFormData(w)){const G=R.getContentType();G&&/^multipart\/form-data/i.test(G)&&!/boundary=/i.test(G)&&R.delete("content-type")}R.set("User-Agent","axios/"+Un,!1);const B=se(k({},N),{signal:z,method:y.toUpperCase(),headers:Ko(R.normalize()),body:w,duplex:"half",credentials:x?M:void 0});V=l&&new s(v,B);let Y=yield l?U(V,N):U(v,B);if(P){const G=T.toFiniteNumber(Y.headers.get("content-length"));if(G!=null&&G>I)throw new q("maxContentLength size of "+I+" exceeded",q.ERR_BAD_RESPONSE,_,V)}const pe=p&&(S==="stream"||S==="response");if(p&&Y.body&&($||P||pe&&O)){const G={};["status","statusText","headers"].forEach(gt=>{G[gt]=Y[gt]});const fe=T.toFiniteNumber(Y.headers.get("content-length")),[ie,de]=$&&ns(fe,ar(is($),!0))||[];let Ie=0;const Qe=gt=>{if(P&&(Ie=gt,Ie>I))throw new q("maxContentLength size of "+I+" exceeded",q.ERR_BAD_RESPONSE,_,V);ie&&ie(gt)};Y=new o(os(Y.body,as,Qe,()=>{de&&de(),O&&O()}),G)}S=S||"text";let re=yield g[T.findKey(g,S)||"text"](Y,_);if(P&&!p&&!pe){let G;if(re!=null&&(typeof re.byteLength=="number"?G=re.byteLength:typeof re.size=="number"?G=re.size:typeof re=="string"&&(G=typeof n=="function"?new n().encode(re).byteLength:re.length)),typeof G=="number"&&G>I)throw new q("maxContentLength size of "+I+" exceeded",q.ERR_BAD_RESPONSE,_,V)}return!pe&&O&&O(),yield new Promise((G,fe)=>{ea(G,fe,{data:re,headers:le.from(Y.headers),status:Y.status,statusText:Y.statusText,config:_,request:V})})}catch(x){if(O&&O(),z&&z.aborted&&z.reason instanceof q){const B=z.reason;throw B.config=_,V&&(B.request=V),x!==B&&(B.cause=x),B}throw x&&x.name==="TypeError"&&/Load failed|fetch/i.test(x.message)?Object.assign(new q("Network Error",q.ERR_NETWORK,_,V,x&&x.response),{cause:x.cause||x}):q.from(x,x&&x.code,_,V,x&&x.response)}})},Um=new Map,na=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=Um;for(;u--;)l=s[u],a=c.get(l),a===void 0&&c.set(l,a=u?new Map:Lm(e)),c=a;return a};na();const Hn={http:om,xhr:Pm,fetch:{get:na}};T.forEach(Hn,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{__proto__:null,value:e})}catch(r){}Object.defineProperty(t,"adapterName",{__proto__:null,value:e})}});const cs=t=>`- ${t}`,Hm=t=>T.isFunction(t)||t===null||t===!1;function km(t,e){t=T.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,!Hm(n)&&(i=Hn[(u=String(n)).toLowerCase()],i===void 0))throw new q(`Unknown adapter '${u}'`);if(i&&(T.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
- `+o.map(cs).join(`
55
- `):" "+cs(o[0]):"as no adapter specified";throw new q("There is no suitable adapter to dispatch the request "+u,"ERR_NOT_SUPPORT")}return i}const ia={getAdapter:km,adapters:Hn};function Hr(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new jt(null,t)}function ls(t){return Hr(t),t.headers=le.from(t.headers),t.data=Ur.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),ia.getAdapter(t.adapter||Pt.adapter,t)(t).then(function(e){Hr(t),t.response=e;try{e.data=Ur.call(t,t.transformResponse,e)}finally{delete t.response}return e.headers=le.from(e.headers),e},function(e){if(!Xo(e)&&(Hr(t),e&&e.response)){t.response=e.response;try{e.response.data=Ur.call(t,t.transformResponse,e.response)}finally{delete t.response}e.response.headers=le.from(e.response.headers)}return Promise.reject(e)})}const yr={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{yr[t]=function(r){return typeof r===t||"a"+(e<1?"n ":" ")+t}});const fs={};yr.transitional=function(t,e,r){function n(i,s){return"[Axios v"+Un+"] Transitional option '"+i+"'"+s+(r?". "+r:"")}return(i,s,o)=>{if(t===!1)throw new q(n(s," has been removed"+(e?" in "+e:"")),q.ERR_DEPRECATED);return e&&!fs[s]&&(fs[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}};yr.spelling=function(t){return(e,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function Vm(t,e,r){if(typeof t!="object")throw new q("options must be an object",q.ERR_BAD_OPTION_VALUE);const n=Object.keys(t);let i=n.length;for(;i-- >0;){const s=n[i],o=Object.prototype.hasOwnProperty.call(e,s)?e[s]:void 0;if(o){const u=t[s],l=u===void 0||o(u,s,t);if(l!==!0)throw new q("option "+s+" must be "+l,q.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new q("Unknown option "+s,q.ERR_BAD_OPTION)}}const Qt={assertOptions:Vm,validators:yr},ge=Qt.validators;let We=class{constructor(e){this.defaults=e||{},this.interceptors={request:new rs,response:new rs}}request(e,r){return F(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=(()=>{if(!i.stack)return"";const o=i.stack.indexOf(`
56
- `);return o===-1?"":i.stack.slice(o+1)})();try{if(!n.stack)n.stack=s;else if(s){const o=s.indexOf(`
57
- `),u=o===-1?-1:s.indexOf(`
58
- `,o+1),l=u===-1?"":s.slice(u+1);String(n.stack).endsWith(l)||(n.stack+=`
59
- `+s)}}catch(o){}}throw n}})}_request(e,r){typeof e=="string"?(r=r||{},r.url=e):r=e||{},r=Ge(this.defaults,r);const{transitional:n,paramsSerializer:i,headers:s}=r;n!==void 0&&Qt.assertOptions(n,{silentJSONParsing:ge.transitional(ge.boolean),forcedJSONParsing:ge.transitional(ge.boolean),clarifyTimeoutError:ge.transitional(ge.boolean),legacyInterceptorReqResOrdering:ge.transitional(ge.boolean)},!1),i!=null&&(T.isFunction(i)?r.paramsSerializer={serialize:i}:Qt.assertOptions(i,{encode:ge.function,serialize:ge.function},!0)),r.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?r.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:r.allowAbsoluteUrls=!0),Qt.assertOptions(r,{baseUrl:ge.spelling("baseURL"),withXsrfToken:ge.spelling("withXSRFToken")},!0),r.method=(r.method||this.defaults.method||"get").toLowerCase();let o=s&&T.merge(s.common,s[r.method]);s&&T.forEach(["delete","get","head","post","put","patch","query","common"],g=>{delete s[g]}),r.headers=le.concat(o,s);const u=[];let l=!0;this.interceptors.request.forEach(function(g){if(typeof g.runWhen=="function"&&g.runWhen(r)===!1)return;l=l&&g.synchronous;const d=r.transitional||Fn;d&&d.legacyInterceptorReqResOrdering?u.unshift(g.fulfilled,g.rejected):u.push(g.fulfilled,g.rejected)});const a=[];this.interceptors.response.forEach(function(g){a.push(g.fulfilled,g.rejected)});let c,f=0,h;if(!l){const g=[ls.bind(this),void 0];for(g.unshift(...u),g.push(...a),h=g.length,c=Promise.resolve(r);f<h;)c=c.then(g[f++],g[f++]);return c}h=u.length;let p=r;for(;f<h;){const g=u[f++],d=u[f++];try{p=g(p)}catch(m){d.call(this,m);break}}try{c=ls.call(this,p)}catch(g){return Promise.reject(g)}for(f=0,h=a.length;f<h;)c=c.then(a[f++],a[f++]);return c}getUri(e){e=Ge(this.defaults,e);const r=ta(e.baseURL,e.url,e.allowAbsoluteUrls);return Zo(r,e.params,e.paramsSerializer)}};T.forEach(["delete","get","head","options"],function(t){We.prototype[t]=function(e,r){return this.request(Ge(r||{},{method:t,url:e,data:(r||{}).data}))}});T.forEach(["post","put","patch","query"],function(t){function e(r){return function(n,i,s){return this.request(Ge(s||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:n,data:i}))}}We.prototype[t]=e(),t!=="query"&&(We.prototype[t+"Form"]=e(!0))});let qm=class sa{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 jt(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 sa(function(r){e=r}),cancel:e}}};function zm(t){return function(e){return t.apply(null,e)}}function Wm(t){return T.isObject(t)&&t.isAxiosError===!0}const dn={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(dn).forEach(([t,e])=>{dn[e]=t});function oa(t){const e=new We(t),r=Lo(We.prototype.request,e);return T.extend(r,We.prototype,e,{allOwnKeys:!0}),T.extend(r,e,null,{allOwnKeys:!0}),r.create=function(n){return oa(Ge(t,n))},r}const ee=oa(Pt);ee.Axios=We;ee.CanceledError=jt;ee.CancelToken=qm;ee.isCancel=Xo;ee.VERSION=Un;ee.toFormData=mr;ee.AxiosError=q;ee.Cancel=ee.CanceledError;ee.all=function(t){return Promise.all(t)};ee.spread=zm;ee.isAxiosError=Wm;ee.mergeConfig=Ge;ee.AxiosHeaders=le;ee.formToJSON=t=>Qo(T.isHTMLForm(t)?new FormData(t):t);ee.getAdapter=ia.getAdapter;ee.HttpStatusCode=dn;ee.default=ee;const{Axios:F1,AxiosError:L1,CanceledError:U1,isCancel:H1,CancelToken:k1,VERSION:V1,all:q1,Cancel:z1,isAxiosError:W1,spread:K1,toFormData:J1,AxiosHeaders:G1,HttpStatusCode:Y1,formToJSON:Z1,getAdapter:Q1,mergeConfig:X1,create:eb}=ee,Km={form:"application/x-www-form-urlencoded",json:"application/json",data:"multipart/form-data"},Jm=["put","post","patch"],hs="Local-Request-Id",Gm=100,Ym=300,Zm="/api/proxy";class Qm{constructor(e={}){ve(this,"axios"),ve(this,"settings"),ve(this,"records",{}),ve(this,"isLoading",!1),ve(this,"stopSkipWarn"),ve(this,"showLoading"),ve(this,"showError"),this.settings=Object.assign({type:"form"},e.settings||{});const r=Mr(e,["settings","query"]);this.axios=ee.create(bt({headers:{"Content-Type":"application/x-www-form-urlencoded"},timeout:120*1e3},r)),this.setupSkipWarn(this.settings),this.showLoading=Bn(this.openLoading.bind(this),Gm),this.showError=Ld(this._showError.bind(this),Ym,{leading:!0,trailing:!1})}setConfig(e={}){this.settings=bt(this.settings,e.settings||{});const r=Mr(e,["settings","query"]);this.axios.defaults=bt(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=k(k({"Content-Type":Km[r.type||"form"]},n.headers),i);return r.skipWarn&&(s[hs]=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 Jm.includes(f.toLowerCase())?(a=Object.assign(a||{},h),a=o!=="json"||!this.isJsonType(n)?this.toFormData(a,o):a,c=k({},s)):o==="form"?c=k(k(k({},a||{}),s),h):(a&&(o!=="json"||!this.isJsonType(n))&&(a=this.toFormData(a,o)),c=k(k({},s),h)),{data:a,params:c}}createUrl(e){let{url:r,params:n}=e;if(r){let i=xt(r)?new URL(r).origin:"";const s=i?r.replace(i,""):r;try{const o=Hg(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||Zm,{protocol:s,host:o}=location||{},u=xt(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{hideLoading:r}=e;this.isLoading=!1;const n=Object.keys(this.records);r&&n.length===0&&(this.isLoading=!1,r())}_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=bt({},this.settings,e.settings||{}),i=e.query||{},s=Mr(e,["settings","query"]),o=Ig(!1),u=ee.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((g,d)=>{this.axios(se(k({cancelToken:u.token},s),{url:c,headers:f,data:h,params:p})).then(m=>{var _;return this.isSkipWarnResponse(m)?g(m.promise):this.validResponse(n,m)?g(n.originResponse?m:(_=m.data)==null?void 0:_.data):(this.showError(n,m.data),d(m.data))}).catch(m=>(this.showError(n,m),d(m))).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||{})[hs],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(se(k({},l.config),{settings:l.settings}),!0));c.catch(f=>f).finally(()=>{s&&s()}),o.promise=c}return o})}}function kn(t={}){const e=new Qm(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,se(k({},e),{instance:e,send:r,cancel:n,setConfig:i,useRequest:s,useResponse:o}))}const gn=kn({settings:{injectHeaders:!0,loading:!0,originResponse:!0}}),vn=typeof window<"u";function Xm(t){const e={};return t?(t.forEach((r,n)=>{e[n]=typeof r=="string"?decodeURIComponent(r):r}),e):{}}class aa{constructor(e={}){ve(this,"options",{type:"cache",expired:0,prefix:"__VTJ_"}),ve(this,"caches",{}),ve(this,"types"),this.types={local:vn?window.localStorage:this.caches,session:vn?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}=k(k({},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}=k(k({},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}=k(k({},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}=k(k({},this.options),e),n=this.types[r]||this.caches;n===this.caches?this.caches={}:n.clear()}}const kr=new aa;function ua(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Xt={exports:{}},ey=Xt.exports,ps;function ty(){return ps||(ps=1,(function(t,e){(function(r,n){n(e,t)})(ey,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,g=void 0;return new Promise(function(d,m){var _=c.jsonpCallbackFunction||s(),v=p+"_"+_;window[_]=function(w){d({ok:!0,json:function(){return Promise.resolve(w)}}),g&&clearTimeout(g),u(v),o(_)},f+=f.indexOf("?")===-1?"?":"&";var y=document.createElement("script");y.setAttribute("src",""+f+p+"="+_),c.charset&&y.setAttribute("charset",c.charset),c.nonce&&y.setAttribute("nonce",c.nonce),c.referrerPolicy&&y.setAttribute("referrerPolicy",c.referrerPolicy),c.crossorigin&&y.setAttribute("crossorigin","true"),y.id=v,document.getElementsByTagName("head")[0].appendChild(y),g=setTimeout(function(){m(new Error("JSONP request to "+a+" timed out")),o(_),u(v),window[_]=function(){o(_)}},h),y.onerror=function(){m(new Error("JSONP request to "+a+" failed")),o(_),u(v),g&&clearTimeout(g)}})}n.exports=l})})(Xt,Xt.exports)),Xt.exports}var ry=ty();const ny=ua(ry);function iy(t){if(vn){const{protocol:e,host:r,pathname:n}=location;return`${e}//${r}${t?n:""}`}else return null}function sy(t=""){const e=t.match(Po);return e?e[0]:""}function ca(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 mn(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 la(t,e){e=typeof e=="string"?mn(e):e;const r=t.split("?")[0],n=mn(t),i=Object.assign({},n,e),s=ca(i);return s?[r,s].join("?"):t}const er=Object.freeze(Object.defineProperty({__proto__:null,append:la,getCurrentHost:iy,getHost:sy,parse:mn,stringify:ca},Symbol.toStringTag,{value:"Module"}));function fa(r){return F(this,arguments,function*(t,e={}){const{query:n={}}=e;t.includes("${")&&(t=Md(t)(n||{}));const i=la(t,n);return yield(yield ny(i,e)).json()})}var Vr,ds;function oy(){if(ds)return Vr;ds=1,Vr=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 Vr}var ay=oy();const uy=ua(ay);function gs(t,e={}){return new Promise((r,n)=>{const{library:i}=e;uy(t,e,(s,o)=>{s?n(s):r(i?window[i]:void 0)})})}const vs={debug:-1,log:0,info:0,warn:1,error:2},cy=function(t,e,r,n){return function(...i){if(e&&vs[e]<=vs[t]&&console[t].apply&&(n==="*"||r.startsWith(n)))return console[t].apply(console,ly(i,r))}};function ly(t,e){return e!=="*"&&(typeof t[0]=="string"?t[0]=`[${e}] ${t[0]}`:t=["["+e+"]"].concat(t)),t}function fy(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 hy={level:"warn",bizName:"*"};class py{constructor(e){ve(this,"config"),ve(this,"options"),this.options=k(k({},hy),e);const r=typeof location<"u"?location:{},n=(/__(?:logConf|logLevel)__=([^#/&]*)/.exec(r.href)||[])[1];this.config=fy(n,e)}_log(e){const{targetLevel:r,targetBizName:n}=this.config,{bizName:i}=this.options;return cy(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 dy(t){return new py(t)}const ut=dy({level:"log",bizName:"VTJ"});/*! js-cookie v3.0.8 | MIT */function qt(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)n!=="__proto__"&&(t[n]=r[n])}return t}var gy={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 yn(t,e){function r(i,s,o){if(!(typeof document>"u")){o=qt({},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(c in o||(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,"",qt({},s,{expires:-1}))},withAttributes:function(i){return yn(this.converter,qt({},this.attributes,i))},withConverter:function(i){return yn(qt({},this.converter,i),this.attributes)}},{attributes:{value:Object.freeze(e)},converter:{value:Object.freeze(t)}})}var Vn=yn(gy,{path:"/"});function vy(t,e,r){Vn.set(t,e,r)}function my(t){return Vn.get(t)}function yy(t,e){Vn.remove(t,e)}const qr=Object.freeze(Object.defineProperty({__proto__:null,get:my,remove:yy,set:vy},Symbol.toStringTag,{value:"Module"}));/**!
60
- * Copyright (c) 2026, VTJ.PRO All rights reserved.
61
- * @name @vtj/renderer
62
- * @author CHC chenhuachun1549@dingtalk.com
63
- * @version 0.17.6
64
- * @license <a href="https://vtj.pro/license.html">MIT License</a>
65
- */const zr="0.17.6";var te=(t=>(t.Runtime="Runtime",t.Design="Design",t.Raw="Raw",t.VNode="VNode",t))(te||{});const ms=["$el","$emit","$nextTick","$parent","$root","$attrs","$slots","$watch","$props","$options","$forceUpdate"],by=["vIf","vElseIf","vElse","vShow","vModel","vFor","vBind","vHtml"],_y={String,Number,Boolean,Array,Object,Function,Date},tr="VtjPage",Wr="VtjHomepage",ha="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(","),wy="component,slot".split(",");function zt(t,e){return t.map(r=>xt(r)||r.startsWith("/")?r:`${e}${r}`)}function br(t){return/\.css$/.test(t)}function _r(t){return/\.js$/.test(t)}function Ey(t){return/\.json$/.test(t)}function Sy(t,e=!1){return e&&t.endsWith(".prod.js")?t.replace(".prod.js",".js"):t}function Ty(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:g,assetsLibrary:d,localeLibrary:m})=>{h==null||h.forEach(_=>{_r(_)&&i.push(Sy(_,r)),br(_)&&s.push(_)}),g&&(u.push(g),l[g]=zt(h||[],e),m&&(a[g]=m)),p&&o.push(p),d&&c.push(d),g&&d&&(f[d]=g)}),{scripts:zt(i,e),css:zt(s,e),materials:zt(o,e),libraryExports:u,materialExports:Fg(c),materialMapLibrary:f,libraryMap:l,libraryLocaleMap:a}}function Ry(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 Ay(t=[]){const e=t.filter(n=>br(n)),r=t.filter(n=>_r(n));return{css:e,js:r}}function xy(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 _=a.indexOf("*/",f+2);if(_!==-1){f=_+2;continue}}if(a[f]==="@"){const _=f;for(;f<a.length&&a[f]!=="{"&&a[f]!==";";)f++;const v=a.substring(_,f).trim(),y=v.includes("@keyframes");if(a[f]===";")c.push({type:"simple-at-rule",content:a.substring(_,f+1)}),f++;else if(a[f]==="{"){const w=f+1;let E=1;for(f++;f<a.length&&E>0;)a[f]==="{"?E++:a[f]==="}"&&E--,f++;const b=a.substring(_,f),A=a.substring(w,f-1);c.push({type:y?"keyframes":"at-rule",rule:v,content:b,inner:A})}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 g=f+1;let d=1;for(f++;f<a.length&&d>0;)a[f]==="{"?d++:a[f]==="}"&&d--,f++;const m=a.substring(g,f-1);c.push({type:"rule",selector:p,content:m.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(),g=h.trim();return p?`${p}[${e}] ${g}`:g}),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,g=h.trim();return g?`${g}[${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,`
66
- `),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 Oy=750;function $y(t,e,r){let n;typeof t<"u"?n=t.innerWidth||t.document.documentElement.clientWidth:(console.warn("无法获取屏幕宽度,使用默认值375"),n=375);const i=Oy;return e*n/i}function Dy(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=`${$y(t,c).toFixed(6).replace(/\.?0+$/,"")}px`;s+=f,o+=l[0].length-1;continue}}s+=u}return s}function pa(t){return Ue(t)?t:JSON.stringify(t)}function wr(t,e,r,n=!1){const i=t.CSSStyleSheet,s=n?`data-v-${e}`:e,o=t.__uniConfig?Dy(t,r):r,u=n?xy(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 Cy(t,e){return F(this,null,function*(){const r=yield window.fetch(e).then(n=>n.text()).catch(()=>"");r&&wr(window,t,r)})}function da(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 ga(n,i){return F(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 Ke(t)&&Object.getOwnPropertyNames(t.prototype||{}).length===0||Ke(t==null?void 0:t.install)}function Py(t){return wy.includes(t)}function jy(t){return ha.includes(t)}function Ot(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 Ny(t){return/^\([\s\S]*\)/.test(t.trim())}function Iy(t){return/\w+\([\s\S]*\)$/.test(t.trim())}function My(t){return t.includes("=")}function Fy(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 $t(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(`
67
- `)+u;const l=i?`
68
- ${u}
69
- `:`with(${r?"{}":"$scope || {}"}) { ${u} }`;return new Function("$scope",l)(e)}catch(o){if(ut.error("parseExpression.error",o,t,(s=e==null?void 0:e.__self)!=null?s:e),Fy(o),n)throw o}}function ye(t,e,r=!1,n=!1,i=!1){var o;const s=$t(t,e,r,n,i);if(typeof s!="function"&&(ut.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 Ee(t){return t&&t.type==="JSExpression"}function be(t){return typeof t=="object"&&t&&t.type==="JSFunction"}const Ly={session:!1,authKey:"Authorization",storageKey:"ACCESS_STORAGE",storagePrefix:"__VTJ_",unauthorized:void 0,auth:"/#/login",redirectParam:"r",unauthorizedCode:401,unauthorizedMessage:"登录已经失效,请重新登录!",noPermissionMessage:"无权限访问该页面",appName:"",statusKey:"code"},Uy=Symbol("access");class va{constructor(e){W(this,"options");W(this,"data",null);W(this,"mode",te.Raw);W(this,"interceptResponse",!0);W(this,"isTipShowing",!1);this.options=Object.assign({},Ly,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!==te.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&&(kr.save(r,e,{type:"local",prefix:n}),i&&qr.set(s,this.data.token))}clear(){const{storageKey:e,storagePrefix:r,session:n,authKey:i}=this.options;this.data=null,kr.remove(e,{type:"local",prefix:r}),n&&qr.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):Zi(e).every(i=>n[i]||n[r+"."+i])}some(e){const{appName:r}=this.options,{permissions:n={}}=this.data||{};return Zi(e).some(i=>n[i]||n[r+"."+i])}install(e){e.config.globalProperties.$access=this,e.provide(Uy,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=>Yi(i,r));try{this.data=JSON.parse(n.join(""))}catch(i){console.warn(i)}return}if(typeof e=="string")try{const n=r?Yi(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=kr.get(e,{type:"local",prefix:r});this.setData(n||null)}isLogined(){const{session:e,authKey:r}=this.options;return e&&r?!!qr.get(r):!!this.getToken()}hasRoutePermission(e){if(e.name===tr){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 F(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),Ke(i)?(i(),r(!1)):Ue(i)?r(i):r(!1)}}r(!1),yield or(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 F(this,null,function*(){const{unauthorizedMessage:r="登录已失效"}=this.options;this.isUnauthorized(e)&&(yield this.showTip(r))&&this.toLogin()})}showTip(e){return F(this,null,function*(){var n,i;const{alert:r}=this.options;return this.isTipShowing?!1:r?(this.isTipShowing=!0,yield or(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=>F(this,null,function*(){return this.interceptResponse&&(yield this.showUnauthorizedAlert(r)),r}),r=>F(this,null,function*(){if(!this.interceptResponse)return Promise.reject(r);const n=r.response||r||{};return yield this.showUnauthorizedAlert(n),Promise.reject(r)}))}}function Hy(t={}){const{notify:e,loading:r,settings:n={},Startup:i,access:s,useTitle:o,alert:u}=t;let l=null;return{request:kn({adapter:t.axiosAdapter,settings:k({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:fa,notify:e,loading:r,useTitle:o,alert:u,startupComponent:i,access:s?new va(k({alert:u},s)):void 0}}function ky(t,e){const{jsonp:r,request:n}=e;if(t.method==="jsonp")return(i={})=>r(t.url,se(k({},t.jsonpOptions),{query:i}));{const i=t.headers?$t(t.headers,{},!0):void 0,s={url:t.url,method:t.method,settings:se(k({},t.settings),{headers:i})};return(o,u)=>(delete s.data,n.send(bt(s,u||{},{data:o})))}}function Vy(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 qy(t=[],e=[],r){const n={};for(const i of t){const s=ky(i,r);n[i.id]=s,n[i.name]=s}for(const i of e)n[i.id]=Vy(i,r);return n}function zy(){return F(this,arguments,function*(t=[],e=window){const r=Ot(e);r&&(ma(e),t.forEach(n=>Ky(r,n)))})}function Wy(t,e=window){const r=be(t.mockTemplate)&&t.mockTemplate.value?ye(t.mockTemplate,{},!0):void 0,n=Ot(e);return(...i)=>F(null,null,function*(){let s={};if(r)try{s=yield r.apply(r,i)}catch(o){ut.warn("模拟数据模版异常",o)}return n==null?void 0:n.mock(s)})}function Ky(t,e){if(!e.mock)return;const{url:r,mockTemplate:n,method:i="get"}=e;if(r&&n)try{const s=xt(r)?new URL(r).pathname:r,o=Nn(`(.*)${s}(.*)`),u=Vg(s,{decode:decodeURIComponent}),l=$t(n,{},!0);t.mock(o,i.toLowerCase(),a=>{var g;const c=er.parse(a.url)||{},f=a.body instanceof FormData?Xm(a.body):a.body,h=xt(a.url)?new URL(a.url).pathname:a.url.split("?")[0],p=(g=u(h))==null?void 0:g.params;Object.assign(a,{data:f,params:p,query:c});try{return t.mock(l(a))}catch(d){return console.warn("[mockApi]",o,a,d),null}})}catch(s){console.warn("mockApi",s)}}function ma(t=window){const e=Ot(t);e&&(e._mocked={})}class Jy{constructor(e){W(this,"__id",null);W(this,"__mode");W(this,"__instance",null);W(this,"__contextRefs",{});W(this,"__refs",{});W(this,"__refCaches",{});W(this,"context",{});W(this,"state",{});W(this,"props",{});W(this,"$props",{});W(this,"$refs",{});W(this,"$el",null);W(this,"$emit",null);W(this,"$nextTick",null);W(this,"$parent",null);W(this,"$root",null);W(this,"$attrs",null);W(this,"$slots",null);W(this,"$watch",null);W(this,"$options",null);W(this,"$forceUpdate",null);W(this,"$components",{});W(this,"$libs",{});W(this,"$apis",{});W(this,"$provider",null);W(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=ur){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(){if(!this.__instance)return;const e=this.__instance;ms.forEach(r=>{var n;this[r]=e[r]||((n=e._)==null?void 0:n[r.replace("$","")])||null})}__cleanup(){ms.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===te.Runtime){const{id:n,type:i}=e,s=n&&(r=this.__transform[n])!=null?r:e.value;return ye({type:i,value:s},this)}else return ye(e,this)}__parseExpression(e){var r;if(e)if(this.__mode===te.Runtime){const{id:n,type:i}=e,s=n&&(r=this.__transform[n])!=null?r:e.value;return $t({type:i,value:s},this)}else return $t(e,this)}__ref(e=null,r){if(this.__mode===te.VNode)return;e&&e!==this.__id&&(this.__contextRefs[e]=this);let n=e?this.__refCaches[e]:null;return n||(n=i=>F(this,null,function*(){var o,u;yield or(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,te.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=k(k({},this.context),e),n=se(k({},r),{context:r});return n.context.__proto__=this.context,n.__proto__=this,n}}function bn(t){var f,p;const{Vue:e=ur,mode:r=te.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(k({name:u.value.name,__scopeId:u.value.id?`data-v-${u.value.id}`:void 0,props:k({},Yy((f=u.value.props)!=null?f:[],a)),setup(){return F(this,arguments,function*(g={}){var w,E,b,A;a.$props=g,a.props=g,u.value.id&&wr(t.window||window,u.value.id,u.value.css||"",!0),a.state=Zy(e,(w=u.value.state)!=null?w:{},a);const d=Qy(e,(E=u.value.computed)!=null?E:{},a),m=Xy((b=u.value.methods)!=null?b:{},a),_=e0(e,u.value.inject,a);for(const[$,L]of Object.entries(_||{}))_[$]=e.inject($,L);const v=t0(u.value.dataSources||{},a),y=k(k(k(k({},_),d),m),v);return a.setup(y,e),r0(e,(A=u.value.watch)!=null?A:[],a),k(k(k({vtj:a,state:a.state},g),d),m)})},emits:Gy(u.value.emits),expose:["vtj",...u.value.expose||[]],render(){if(!u.value.nodes)return null;const g=u.value.nodes||[];if(g.length===1)return lt(g[0],a,e,o,g);{const d=g.map(m=>lt(m,a,e,o,g));return e.createVNode("div",{},d)}}},n0((p=u.value.lifeCycles)!=null?p:{},a)));return{renderer:e.markRaw(c),context:a}}function Gy(t=[]){return t.map(e=>Ue(e)?e:e.name)}function Yy(t=[],e){const r=n=>n?(Array.isArray(n)?n:[n]).map(i=>_y[i]):void 0;return t.map(n=>Ue(n)?{name:n}:{name:n.name,type:n.type,required:n.required,default:Ee(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 Zy(t,e,r){return t.reactive(Object.keys(e||{}).reduce((n,i)=>{let s=e[i];return Ee(s)?s=r.__parseExpression(s):be(s)&&(s=r.__parseFunction(s)),n[i]=s,n},{}))}function Qy(t,e,r){return Object.entries(e!=null?e:{}).reduce((n,[i,s])=>(n[i]=t.computed(r.__parseFunction(s)),n),{})}function Xy(t,e){return Object.entries(t!=null?t:{}).reduce((r,[n,i])=>(r[n]=e.__parseFunction(i),r),{})}function e0(t,e=[],r){return e.reduce((n,i)=>{var a;const{name:s,from:o}=i||{};i.default;const u=Ee(o)?r.__parseExpression(o)||s:o!=null?o:s,l=Ee(i.default)?r.__parseExpression(i.default):(a=i.default)!=null?a:null;return n[s]=t.inject(u,l),n},{})}function t0(t,e){return Object.keys(t).reduce((r,n)=>{const i=t[n];if(i.type==="mock")r[n]=Wy(i);else if(i.ref){const s=e.$apis[i.ref],o=be(i.transform)?i.transform.value?e.__parseFunction(i.transform):void 0:i.transform;r[n]=(...u)=>F(null,null,function*(){const l=yield s.apply(e,u);return o?o(l):l})}return r},{})}function r0(t,e=[],r){e.forEach(n=>{t.watch(r.__parseExpression(n.source),r.__parseFunction(n.handler),{deep:n.deep,immediate:n.immediate})})}function n0(t,e){return Object.entries(t!=null?t:{}).reduce((r,[n,i])=>{const s=e.__parseFunction(i);return r[n]=()=>F(null,null,function*(){Ke(s)&&(yield or(0),yield s())}),r},{})}class i0{constructor(){W(this,"__props",{});W(this,"__events",{});W(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 yd(e,r)}clear(){this.__props={},this.__events={},this.__nodes={}}}const Wt=new i0,s0=new Zg;let Kr=[],nt={},Kt={};const o0=(t,e)=>e;function ya(r){return F(this,arguments,function*(t,e=window){const{urls:n=[],library:i}=t,s=n.filter(u=>_r(u));if(s.length===0||!i)return null;const o=n.filter(u=>br(u));return o.length&&da(o,e),yield ga(s,i,e).catch(u=>(console.warn("loadScriptUrl error",s,i,u),null))})}function _n(t){const{getDsl:e,getDslByUrl:r,options:n}=t;return n.window&&(Kr.forEach(i=>{delete n.window[i]}),Kr=[]),(i,s,o,u=ur)=>{if(!o||typeof o=="string")return s;let l="";if(o.type==="Schema"&&o.id)return l=o.id+"_"+i,Kt[l]||(Kt[l]=u.defineAsyncComponent(()=>F(null,null,function*(){const a=nt[o.id]||(yield s0.add(o.id,()=>e(o.id)));return a&&(a.name=s,nt[o.id]=a),a?bn(se(k({Vue:u,mode:te.Runtime},n),{dsl:Ri(a),loader:_n(t)})).renderer:null})));if(o.type==="UrlSchema"&&o.url)return l=o.url+"_"+i,Kt[l]||(Kt[l]=u.defineAsyncComponent(()=>F(null,null,function*(){const a=nt[o.url]||(yield r(o.url));return a&&(a.name=s,nt[o.url]=a),a?bn(se(k({},n),{Vue:u,dsl:Ri(a),mode:te.Runtime,loader:_n(t)})).renderer:null})));if(o.type==="Plugin"){let a=o.library?nt[o.library]:null;return a||(o.library&&Kr.push(o.library),a=nt[o.library||Symbol()]=u.defineAsyncComponent(()=>F(null,null,function*(){return(yield ya(o,n.window))||(console.warn("getPlugin result is null",o),null)})),a)}return s}}function lt(t,e,r=ur,n=o0,i=[],s=!1,o=0){var w;if(!t||!t.name||t.invisible)return null;const u=(w=r.getCurrentInstance())==null?void 0:w.appContext,{id:l=null,directives:a=[]}=t,{vIf:c,vElseIf:f,vElse:h,vFor:p,vShow:g,vModels:d,vBind:m,vHtml:_,others:v}=ba(a);if(!s&&(f||h))return null;if(c&&!u0(c,e))return d0(t,e,r,n,i);const y=(E,b=0)=>{var z,V,O,j;const A=E.$components,$=(()=>{var B,Y,pe,re;if(t.name==="component")return c0(E,(B=t.props)==null?void 0:B.is);if(t.name==="slot")return t.name;const x=n(`${t.id}_${b}`,t.name,t.from,r);return Ue(x)?Py(x)||jy(x)?x:(re=(pe=A[x])!=null?pe:(Y=u==null?void 0:u.app)==null?void 0:Y.component(x))!=null?re:x:x})(),L=l0(l,(z=t.props)!=null?z:{},E),S=p0(r,t.id,(V=t.events)!=null?V:{},E);if(t.name==="slot")return g0(r,t,L,E,n);m&&Object.assign(L,E.__parseExpression(m.value)),g&&(L.style=Object.assign((O=L.style)!=null?O:{},m0(g,E))),_&&Object.assign(L,y0(_,E)),d.forEach(x=>{ha.includes(t.name)?Object.assign(L,b0(x,E)):Object.assign(L,_0(r,x,E))});const R=w0(r,(j=t.children)!=null?j:[],E,n,t),M=E!=null&&E.__id?`data-v-${E.__id}`:void 0,N=M?{[M]:""}:{},I=E.__mode===te.Design?{"data-vtj":l}:{},D=`${l}_${b}`,P=k(k(k(k({key:D},N),I),L),S);Wt.isEqual(P,Wt.getNode(D))||Wt.setNode(D,P);let H=r.createVNode($,Wt.getNode(D)||P||{},R);const U=u?a0(u,v,E):[];return U.length&&(H=r.withDirectives(H,U)),H};return p?T0(p,y,e):y(e,o)}function a0(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 ba(t=[]){const e=t.find(c=>Ae(c.name)==="vIf"),r=t.find(c=>Ae(c.name)==="vElseIf"),n=t.find(c=>Ae(c.name)==="vElse"),i=t.find(c=>Ae(c.name)==="vFor"),s=t.find(c=>Ae(c.name)==="vShow"),o=t.find(c=>Ae(c.name)==="vBind"),u=t.find(c=>Ae(c.name)==="vHtml"),l=t.filter(c=>Ae(c.name)==="vModel"),a=t.filter(c=>!by.includes(Ae(c.name)));return{vIf:e,vElseIf:r,vElse:n,vFor:i,vShow:s,vModels:l,vBind:o,others:a,vHtml:u}}function u0(t,e){return!!e.__parseExpression(t.value)}function c0(t,e){return e?Ee(e)?t.__parseExpression(e):e:"div"}function l0(t,e,r){const n=wn(e,r);return n.ref=r.__ref(t,n.ref),n}function wn(t,e){return Ee(t)?e.__parseExpression(t):be(t)?e.__parseFunction(t):Array.isArray(t)?t.map(r=>wn(r,e)):typeof t=="object"?Object.keys(t||{}).reduce((r,n)=>{let i=t[n];return r[n]=wn(i,e),r},{}):t}function f0(t,e){return r=>{var n;((n=r==null?void 0:r.key)==null?void 0:n.toLowerCase())===e.toLowerCase()&&t(r)}}function h0(t){return Ny(t.value)?t:Iy(t.value)?{type:"JSFunction",value:`(...args) => (() => {
70
- return (($event) => {
71
- ${t.value}
72
- }).apply(this, args);
73
- })()`}:My(t.value)?{type:"JSFunction",value:`() => { ${t.value}}`}:t}function p0(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=_a(l.modifiers),c=a.find(p=>i.includes(p)),f="on"+Ud(u)+(c&&s[c]||""),h=l.handler?n.__parseFunction(h0(l.handler)):null;return h&&(o[f]=t.withModifiers(a.includes("enter")?f0(h,"enter"):h,a)),o},{})}function d0(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}=ba(u);if(l){if(e.__parseExpression(l.value))return lt(i[o],e,r,n,i,!0);continue}if(a)return lt(i[o],e,r,n,i,!0)}return null}function _a(t={},e=!1){const r=Object.keys(t);return e?r.map(n=>"."+n):r}function g0(t,e,r,n,i){var l;const{children:s}=e,o=v0(e,n),u=(l=n.$slots)==null?void 0:l[o.name];return u?u(r):s?Ue(s)?t.createTextVNode(s):Ee(s)?t.createTextVNode(pa(n.__parseExpression(s))):Array.isArray(s)?s.map((a,c)=>lt(a,n,t,i,s,!1,c)):null:null}function v0(t,e){const{props:r}=t,n=(r==null?void 0:r.name)||"default";return{name:Ee(n)?e.__parseExpression(n):n,params:[]}}function m0(t,e){return e.__parseExpression(t.value)?{}:{display:"none"}}function y0(t,e){return{innerHTML:e.__parseExpression(t.value)||""}}function b0(t,e){var n;const r={type:"JSFunction",value:(n=t.value)!=null&&n.value?`(v) => {
74
- ${t.value.value} = v?.target.value;
75
- }`:"(v) => {}"};return{[Ee(t.arg)?e.__parseExpression(t.arg):t.arg||"value"]:e.__parseExpression(t.value),onInput:e.__parseFunction(r)}}function _0(t,e,r){var u;const n={type:"JSFunction",value:(u=e.value)!=null&&u.value?`(v) => {
76
- ${e.value.value} = v;
77
- }`:"(v) => {}"},i=r.__parseFunction(n),s=_a(Ee(e.modifiers)?r.__parseExpression(e.modifiers):e.modifiers),o=Ee(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 w0(t,e,r,n,i){if(!e)return null;if(Ue(e))return{default:()=>e};if(Ee(e))return{default:()=>pa(r.__parseExpression(e))};if(Array.isArray(e)&&e.length>0){const s=E0(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?Lg(h!=null?h:{},c):o(h,f);return a.map((g,d)=>lt(g,r.__clone(p),t,n,a,!1,d))},u),{})}return null}function E0(t){const e={};for(const r of t){const n=S0(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 S0(t="default"){return Ue(t)?{name:t,params:[],scope:""}:k({params:[],scope:""},t)}function T0(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 Jr=_s({name:"VtjPageContainer",setup(){return F(this,null,function*(){const t=N0(),e=ja(),r=e.meta.__vtj__||e.params.id,n=r?t.getPage(r):t.getHomepage(),i=n?yield t.getRenderComponent(n.id):null,s=Ba(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?Yr(t,se(k({},e),{key:r})):Yr("div",{style:{padding:"10px"}},"找不到组件,组件不存在或未发布!")},activated(){this.meta.cache===!1&&(this.sid=Symbol())}}),R0=_s({name:"VtjStartupContainer",render(){return Yr("div","page not found!")}});function En(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=En(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?En(t,e,l):void 0};n.push(f)}}return n}function Gr(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:se(k(k({title:n},l),i),{__vtj__:r})}}function Sn(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:g,meta:d}=a;if(h){const m=Sn({name:e,prefix:r,component:i,routeMeta:o,homepage:u,loader:s,pages:g||[]});l.push(...m)}else if(p){const m=Sn({name:e,prefix:r,component:i,routeMeta:o,homepage:u,loader:s,pages:g||[]}),_={name:`layout_${c}`,path:r,component:()=>s(c),meta:se(k(k({title:f},o),d),{__vtj__:c}),children:m};l.push(_),l.push(Gr(a,t))}else if(l.push(Gr(a,t)),u===c){const m=Gr(a,t);m.path="",m.name=`home_${c}`,l.push(m)}}return l}function A0(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,wr(s,"global-css",r||""),c&&n&&x0(n,o,c),$0(o,l,t),!l.access&&t.access&&O0(t.access,o,a,l),D0(o,t),i&&C0(i,o,u)}function x0(t,e,r){const n=r.createPinia();if(e.use(n),be(t)&&t.value){const i=ye(t,{},!1,!1,!0),s=r.defineStore("$store",i(e)||{});e.config.globalProperties.$store=s()}}function O0(t,e,r,n){if(be(t)&&t.value){const i=ye(t,{},!1,!1,!0),{alert:s,request:o}=n,u=new va(k({alert:s,storagePrefix:"__VTJ_APP_"},i(e))),l=e.config.globalProperties.$router;u.connect({mode:r,router:l,request:o}),e.use(u)}}function $0(t,e,r){if(!e.request)return;const{axios:n,request:i,response:s}=r;if(n&&be(n)&&n.value){const o=ye(n,{},!1,!1,!0);e.request.setConfig(o(t))}if(i&&be(i)&&i.value){const o=ye(i,{},!1,!1,!0),u=e.request;u.__unReq&&u.__unReq(),u.__unReq=e.request.useRequest(l=>o(l,t))}if(s&&be(s)&&s.value){const o=ye(s,{},!1,!1,!0),u=e.request;u.__unRes&&u.__unRes(),u.__unRes=e.request.useResponse(l=>o(l,t))}}function D0(t,e){const{beforeEach:r,afterEach:n}=e,i=t.config.globalProperties.$router;if(r&&be(r)&&r.value){const s=ye(r,{},!1,!1,!0);i&&i.beforeEach((o,u,l)=>s(o,u,l,t))}if(n&&be(n)&&n.value){const s=ye(n,{},!1,!1,!0);i&&i.afterEach((o,u,l)=>s(o,u,l,t))}}function C0(t,e,r={}){be(t)&&t.value&&ye(t,{},!1,!1,!0)(e,r)}function B0(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 wa=Symbol("Provider");class P0 extends tv{constructor(r){super();W(this,"mode");W(this,"globals",{});W(this,"modules",{});W(this,"adapter",{request:gn,jsonp:fa});W(this,"apis",{});W(this,"dependencies",{});W(this,"materials",{});W(this,"library",{});W(this,"libraryLocales",{});W(this,"libraryLocaleMap",{});W(this,"service");W(this,"project",null);W(this,"components",{});W(this,"nodeEnv","development");W(this,"env",{});W(this,"router",null);W(this,"materialPath","./");W(this,"urlDslCaches",{});W(this,"errorHandler",null);this.options=r;const{service:n,mode:i=te.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:g,request:d}=this.adapter;g&&g.connect({mode:i,router:f,request:d}),u&&i!==te.Design?this.load(u):this.project=u}createMock(r){return(...n)=>F(null,null,function*(){var s;let i={};if(r)try{i=yield r.apply(r,n)}catch(o){ut.warn("模拟数据模版异常",o)}return(s=Ot())==null?void 0:s.mock(i)})}load(r){return F(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===te.Raw?yield this.loadDependencies(l):yield this.loadAssets(l),this.initMock(l),this.apis=qy(s,o,this.adapter),ma(l),zy(s,l),r.platform!=="uniapp"&&this.initRouter(),this.triggerReady()})}initMock(r){const n=Ot(r);n&&n.setup({timeout:"50-500"})}loadDependencies(){return F(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 F(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:g,libraryLocaleMap:d}=Ty(n,u,l==="development");Object.assign(this.libraryLocaleMap,d);for(const m of c){const _=i[m],v=r[m];if(v)s[m]=v;else if(_)r[m]=s[m]=yield _();else{const w=f[m]||[];for(const E of w)br(E)&&(yield Cy(E,er.append(E,{v:zr}))),_r(E)&&(yield gs(er.append(E,{v:zr})));s[m]=r[m]}const y=d[m];if(y){const w=i[y];a[y]=w?yield w():r[y]}}if(l==="development"){for(const _ of h)yield gs(er.append(_,{v:zr}));const m=this.materials||{};for(const _ of p){const v=r[g[_]],y=(v==null?void 0:v.default)||v,w=ev[_];if(w)y&&w.forEach(E=>{o[E]=y[E]});else{const E=m[_]?(yield m[_]()).default:r[_];E&&y&&(E.components||[]).forEach(b=>{o[b.name]=Ry(b,y)})}}}})}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:tr,component:Jr},h=this.getHomepage(),p={path:c,name:Wr,component:h?Jr:s.startupComponent||R0,meta:a};if(r.hasRoute(tr)&&r.removeRoute(tr),r.hasRoute(Wr)&&r.removeRoute(Wr),i.enableStaticRoute){const g=(n==null?void 0:n.pages)||[];Sn({name:l,prefix:c,pages:g,component:Jr,loader:this.getRenderComponent.bind(this),homepage:h==null?void 0:h.id}).forEach(d=>{u?r.addRoute(u,d):r.addRoute(d)}),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=Bn((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]]},g=s[f]||{},d=k(k({},p),g);r.use(h,d),o[f]=!0}r.provide(wa,this),r.config.globalProperties.$provider=this,r.config.globalProperties.$apis=this.apis,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!==te.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!==te.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===te.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 En(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 F(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 F(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=k({mode:o,Vue:i.Vue,components:s,libs:i,apis:u,window},n),a=_n({getDsl:c=>F(this,null,function*(){return(yield this.getDsl(c))||null}),getDslByUrl:c=>F(this,null,function*(){return(yield this.getDslByUrl(c))||null}),options:l});return bn(se(k({},l),{dsl:r,loader:a}))}getRenderComponent(r,n){return F(this,null,function*(){var o;const i=this.getFile(r);if(!i)return ut.warn(`Can not find file: ${r}`),null;if(n&&n(i),this.mode===te.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:(ut.warn(`Can not find dsl: ${r}`),null)})}defineUrlSchemaComponent(r,n){return Wn(()=>F(this,null,function*(){const i=yield this.getDslByUrl(r);return i?(i.name=n||i.name,this.createDslRenderer(i).renderer):null}))}definePluginComponent(r){return Wn(()=>F(null,null,function*(){return yield ya(r,window)}))}initGlobals(r,n){const i=Object.assign({adapter:this.adapter,window},n);A0(r,i)}initI18n(r,n,i){B0(r,n,i)}initEnv(r=[]){this.env=r.reduce((n,i)=>(n[i.name]=i[this.nodeEnv],n),{})}}function j0(t){const e=new P0(t);return{provider:e,onReady:r=>e.ready(r)}}function N0(t={}){const e=Pa(wa,null);if(!e)throw new Error("Can not find provider");if(e.nodeEnv==="development"){const{id:r,version:n}=t;r&&n&&F(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 I0(t,e=""){return F(this,null,function*(){const{name:r,urls:n=[]}=t||{},i=n.map(u=>e+u),{css:s,js:o}=Ay(i);if(s.length&&da(s),o.length)return yield ga(o,r).catch(()=>{})})}const Ea={type:"json",validSuccess:!0,originResponse:!1,failMessage:!0,validate:t=>{var e;return((e=t.data)==null?void 0:e.code)===0}},M0=(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:Ea}),F0=(t,e="/__vtj__/api/uploader.json")=>(r,n)=>F(null,null,function*(){return yield t.send({url:e,method:"post",data:{files:r,projectId:n},settings:se(k({},Ea),{type:"data"})}).then(i=>i&&i[0]?i[0]:null).catch(()=>null)});function L0(t){return kn({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 U0{constructor(e=gn){W(this,"api");W(this,"pluginCaches",{});W(this,"uploader");this.req=e,this.api=M0(e),this.uploader=F0(e)}getExtension(){return F(this,null,function*(){console.log("BaseService.getExtension")})}init(e){return F(this,null,function*(){return console.log("BaseService.init",e),{}})}saveProject(e,r){return F(this,null,function*(){return!!(yield this.api("saveProject",e,{type:r}).catch(()=>!1))})}saveMaterials(e,r){return F(this,null,function*(){return console.log("BaseService.saveMaterials",e,r),!1})}saveFile(e){return F(this,null,function*(){return console.log("BaseService.saveFile",e),!1})}getFile(e){return F(this,null,function*(){return console.log("BaseService.getFile",e),{}})}removeFile(e){return F(this,null,function*(){return console.log("BaseService.removeFile",e),!1})}saveHistory(e){return F(this,null,function*(){return console.log("BaseService.saveHistory",e),!1})}removeHistory(e){return F(this,null,function*(){return console.log("BaseService.removeHistory",e),!1})}getHistory(e){return F(this,null,function*(){return console.log("BaseService.getHistory",e),{}})}getHistoryItem(e,r){return F(this,null,function*(){return console.log("BaseService.getHistoryItem",e,r),{}})}saveHistoryItem(e,r){return F(this,null,function*(){return console.log("BaseService.saveHistoryItem",e,r),!1})}removeHistoryItem(e,r){return F(this,null,function*(){return console.log("BaseService.removeHistoryItem",e,r),!1})}publish(e){return F(this,null,function*(){return!!(yield this.api("publish",e).catch(()=>!1))})}publishFile(e,r){return F(this,null,function*(){return!!(yield this.api("publishFile",{project:e,file:r}).catch(()=>!1))})}genVueContent(e,r){return F(this,null,function*(){return yield this.api("genVueContent",{project:e,dsl:r}).catch(()=>"")})}parseVue(e,r){return F(this,null,function*(){return yield this.api("parseVue",k({project:e},r))})}createRawPage(e){return F(this,null,function*(){return yield this.api("createRawPage",e).catch(()=>"")})}removeRawPage(e){return F(this,null,function*(){return yield this.api("removeRawPage",e).catch(()=>"")})}uploadStaticFile(e,r){return F(this,null,function*(){return yield this.uploader(e,r).catch(()=>null)})}getStaticFiles(e){return F(this,null,function*(){return yield this.api("getStaticFiles",e).catch(()=>[])})}removeStaticFile(e,r){return F(this,null,function*(){return yield this.api("removeStaticFile",{name:e,projectId:r}).catch(()=>"")})}clearStaticFiles(e){return F(this,null,function*(){return yield this.api("clearStaticFiles",e).catch(()=>"")})}getPluginMaterial(e){return F(this,null,function*(){const{urls:r=[]}=e,n=r.filter(s=>Ey(s))[0];return n?this.pluginCaches[n]||(this.pluginCaches[n]=gn.send({url:n,method:"get",settings:{validSuccess:!1,originResponse:!0}}).then(s=>s.data).catch(()=>null)):null})}genSource(e){return F(this,null,function*(){return console.log("BaseService.genSource",e),""})}}new aa({type:"local",expired:0,prefix:"__VTJ_"});class H0 extends U0{constructor(){super(...arguments);W(this,"getFileCaches",{})}getExtension(){return F(this,null,function*(){return yield this.api("getExtension",{}).catch(()=>{})})}init(r){return F(this,null,function*(){return(yield this.api("init",r).catch(()=>null))||{}})}saveProject(r,n){return F(this,null,function*(){return!!(yield this.api("saveProject",r,{type:n}).catch(()=>!1))})}saveMaterials(r,n){return F(this,null,function*(){return!!(yield this.api("saveMaterials",{project:r,materials:Mg(n)}).catch(()=>!1))})}saveFile(r){return F(this,null,function*(){return!!(yield this.api("saveFile",r).catch(()=>!1))})}getFile(r){return F(this,null,function*(){return this.getFileCaches[r]||(this.getFileCaches[r]=this.api("getFile",r).catch(()=>null)).finally(()=>{delete this.getFileCaches[r]})})}removeFile(r){return F(this,null,function*(){return!!(yield this.api("removeFile",r).catch(()=>!1))})}saveHistory(r){return F(this,null,function*(){return!!(yield this.api("saveHistory",r).catch(()=>!1))})}removeHistory(r){return F(this,null,function*(){return!!(yield this.api("removeHistory",r).catch(()=>!1))})}getHistory(r){return F(this,null,function*(){return(yield this.api("getHistory",r).catch(()=>null))||{}})}getHistoryItem(r,n){return F(this,null,function*(){return(yield this.api("getHistoryItem",{fId:r,id:n}).catch(()=>null))||{}})}saveHistoryItem(r,n){return F(this,null,function*(){return!!(yield this.api("saveHistoryItem",{fId:r,item:n}).catch(()=>!1))})}removeHistoryItem(r,n){return F(this,null,function*(){return!!(yield this.api("removeHistoryItem",{fId:r,ids:n}).catch(()=>!1))})}}/**!
78
- * Copyright (c) 2026, VTJ.PRO All rights reserved.
79
- * @name @vtj/uni
80
- * @author CHC chenhuachun1549@dingtalk.com
81
- * @version 0.17.6
82
- * @license <a href="https://vtj.pro/license.html">MIT License</a>
83
- */const k0=["onLaunch","onShow","onHide","onError","onPageNotFound","onUnhandledRejection","onThemeChange","onPageNotFound","onUniNViewMessage","onExit"],ys="/pages",V0="VTJ",q0="__UNI__1FC118B",z0="VTJ移动跨端项目",W0="1.0.0",K0="100",J0=!1,G0={},Y0={enable:!1},Z0="3",Q0={name:V0,appid:q0,description:z0,versionName:W0,versionCode:K0,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:G0,"mp-weixin":{appid:"",setting:{urlCheck:!1},usingComponents:!0},"mp-alipay":{usingComponents:!0},"mp-baidu":{usingComponents:!0},"mp-toutiao":{usingComponents:!0},uniStatistics:Y0,vueVersion:Z0},X0=[],e1={navigationBarTextStyle:"black",navigationBarTitleText:"uni-app",navigationBarBackgroundColor:"#F8F8F8",backgroundColor:"#F8F8F8"},t1={autoscan:!0,custom:{"^uni-(.*)":"@dcloudio/uni-ui/lib/uni-$1/uni-$1.vue"}},r1={pages:X0,globalStyle:e1,easycom:t1};function n1(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 se(k({},t),{manifestJson:Object.assign({},Q0,e),pagesJson:Object.assign({},r1,r,{pages:i})})}const Tn={navigationBarBackgroundColor:"backgroundColor",navigationBarTextStyle:"titleColor",navigationBarTitleText:"titleText",navigationStyle:"style",titleImage:"titleImage",titlePenetrate:"titlePenetrate",transparentTitle:"transparentTitle"};function Sa(t){const e={},r={black:"#000000",white:"#ffffff"};for(const n in t)Tn[n]&&(e[Tn[n]]=n==="navigationBarTextStyle"?r[t[n]]||r.black:t[n]);return e}function i1(t){const e={};for(const r in t)Tn[r]||(e[r]=t[r]);return e}function s1(t){var e,r;return((r=(e=t.h5)==null?void 0:e.router)==null?void 0:r.mode)||"hash"}function o1(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 a1(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 u1(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 c1(t){var u;const e=u1(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 l1(t,e=window){var h,p,g,d;const{pagesJson:r={},manifestJson:n={}}=t,{topWindow:i,leftWindow:s,rightWindow:o}=o1(r),{navigationBar:u,navigationBarButtons:l,navigationBarSearchInput:a,navigationBarTransparent:c}=c1(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__:s1(n),__UNI_FEATURE_PAGES__:!!((h=r.pages)!=null&&h.length),__UNI_FEATURE_TABBAR__:!!((g=(p=r.tabBar)==null?void 0:p.list)!=null&&g.length),__UNI_FEATURE_TABBAR_MIDBUTTON__:!!((d=r.tabBar)!=null&&d.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__:a1(t),__UNI_FEATURE_NAVIGATIONBAR_BUTTONS__:l,__UNI_FEATURE_NAVIGATIONBAR_SEARCHINPUT__:a,__UNI_FEATURE_NAVIGATIONBAR_TRANSPARENT__:c};Object.entries(f).forEach(([m,_])=>{e[m]=_})}const f1="4.76";function h1(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:se(k({},i1(a)),{navigationBar:Sa(a),isNVue:!1}),compilerVersion:f1,appId:s,appName:o,appVersion:l,appVersionCode:String(u),async:k({loading:"AsyncLoading",error:"AsyncError",delay:200,timeout:6e4,suspensible:!0},((h=n.h5)==null?void 0:h.async)||{}),debug:!1,networkTimeout:k({request:6e4,connectSocket:6e4,uploadFile:6e4,downloadFile:6e4},n.networkTimeout||{}),sdkConfigs:{},nvue:{"flex-direction":"column"},locale:"",fallbackLocale:"",locales:{},router:k({mode:"hash",base:"/",assets:"assets",routerBase:c.base||"/"},c),darkmode:!1,themeConfig:{},tabBar:r.tabBar?k({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 p1(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 d1(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 F(this,null,function*(){var d,m;const f=((m=(d=a())==null?void 0:d.$route)==null?void 0:m.query)||{},{loader:h,component:p}=r,g=h?yield h(r):p||{};return()=>(n(),i(u,null,{page:s(()=>[o(l(g),Object.assign({},f,{ref:"page"}),null,512)]),_:1}))})}}}function g1(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(g=>{var d;return g.pagePath===n||((d=g.pagePath)==null?void 0:d.endsWith(u))}),c=l[a],f=!!c,h=r===0;return k({isTabBar:f,tabBarIndex:a,isQuit:o!=null?o:h,isEntry:o!=null?o:h,navigationBar:k({type:"default"},Sa(i)),isNVue:!1,route:c?c.pagePath:n},s)}function v1(t,e,r,n,i=window){const s=r.map((o,u)=>{const l=g1(n,o,u),a=d1(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 m1(t,e,r=window){wr(r,String(t),e)}function y1(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 b1(t){const e=n1(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;l1(e,l),h1(e,l),p1(i,l),v1(r,i,s,o,l),m1(u.appid||Date.now(),a,l);const h=r.createApp(f(n));return h.use(y1,i),h.use(c),h}function _1(t,e){const r={};return Object.entries(t).forEach(([n,i])=>{k0.includes(n)&&i&&(r[n]=e(i))}),r}function bs(t,e){return()=>F(null,null,function*(){const r=yield t.getDsl(e);if(r){const{renderer:n}=t.createDslRenderer(r);return n}return null})}function w1(n){return F(this,arguments,function*(t,e=!1,r=ys){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:bs(t,c.id),style:k({navigationBarTitleText:c.title},c.style),needLogin:c.needLogin,home:f})}const o=s.find(c=>!!c.home)||s[0];if(o){const c=r===ys?"/":r;s.unshift(se(k({},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:bs(t,f.id),style:{navigationStyle:"custom"}})}return s})}function E1(){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 Ta(t,e="",r="warning"){return F(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 S1(t=te.Runtime){let e={};t===te.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 T1=Hy({loading:E1,notify:Ta}),Ra=new H0(L0(Ta)),R1=S1(),{provider:A1,onReady:x1}=j0({nodeEnv:"production",mode:te.Runtime,modules:R1,materialPath:"../",adapter:T1,service:Ra,dependencies:{Vue:()=>Jn(()=>import("./@dcloudio-uni-h5-vue-BmOkhsCk.js").then(t=>t.W),__vite__mapDeps([0,1,2]),import.meta.url),VueRouter:()=>Jn(()=>import("./vue-router-BaL-Hp_b.js"),__vite__mapDeps([3,0,1,2]),import.meta.url)}}),O1=t=>F(null,null,function*(){const e=(yield Ra.getExtension().catch(()=>null))||{},r=top||window,n=yield I0(e.enhance,r.location.pathname),{Vue:i,UniH5:s}=window,o=t.project;if(!o)return;const u=o.uniConfig||{},l=_1(u,g=>ye(g,window,!1,!0)),{manifestJson:a,pagesJson:c,css:f}=u,h=yield w1(t,!0),p=b1({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)});x1(()=>O1(A1));