@vtj/pro 0.10.12 → 0.10.13

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 (39) hide show
  1. package/dist/@vtj/materials/assets/antdv/index.umd.js +2 -2
  2. package/dist/@vtj/materials/assets/charts/index.umd.js +2 -2
  3. package/dist/@vtj/materials/assets/element/index.umd.js +2 -2
  4. package/dist/@vtj/materials/assets/ui/index.umd.js +2 -2
  5. package/dist/@vtj/materials/assets/uni-h5/index.umd.js +2 -2
  6. package/dist/@vtj/materials/assets/uni-ui/index.umd.js +2 -2
  7. package/dist/@vtj/materials/assets/vant/index.umd.js +9 -9
  8. package/dist/@vtj/materials/deps/@vtj/charts/index.umd.js +2 -2
  9. package/dist/@vtj/materials/deps/@vtj/icons/index.umd.js +2 -2
  10. package/dist/@vtj/materials/deps/@vtj/ui/index.umd.js +2 -2
  11. package/dist/@vtj/materials/deps/@vtj/utils/index.umd.js +4 -4
  12. package/dist/assets/{@element-plus-icons-vue-CRZvKNrz.js → @element-plus-icons-vue-CKT2Xck5.js} +1 -1
  13. package/dist/assets/{@vueuse-dS-W09Vv.js → @vueuse-B2Ln5mIU.js} +1 -1
  14. package/dist/assets/{Editor-7SLplEph-lPDo8mjp.js → Editor-7SLplEph-XiU5RCA1.js} +1 -1
  15. package/dist/assets/auth-BNKonXq_.js +1 -0
  16. package/dist/assets/{element-plus-BK-hs3-c.js → element-plus-Bd2bW04a.js} +1 -1
  17. package/dist/assets/{extension-FEBgdJgd.js → extension-C0o-vGA_.js} +10 -10
  18. package/dist/assets/index-DVr_v5KA.js +1 -0
  19. package/dist/assets/{index-CSI9UPqe.js → index-Dq6nvnm8.js} +24 -24
  20. package/dist/assets/page-B0jtXeSQ.js +2 -0
  21. package/dist/assets/preview-Bnmb9ETc.js +2 -0
  22. package/dist/assets/{uni-page-ByIXJ059.js → uni-page-Bjgk97mC.js} +1 -1
  23. package/dist/assets/{utils-CqFMRwm6.js → utils-wPzCLnUa.js} +1 -1
  24. package/dist/assets/{vue-DpQa2Qs4.js → vue-DnfbZNhx.js} +1 -1
  25. package/dist/assets/{vue-router-Dv428VRb.js → vue-router-D8EXeL0F.js} +1 -1
  26. package/dist/assets/{vxe-DEIHqUXR.js → vxe-CFTIhv1S.js} +1 -1
  27. package/dist/index.html +8 -8
  28. package/dist/uni/assets/{@dcloudio-uni-h5-vue-BAS6KGFt.js → @dcloudio-uni-h5-vue-DzUn8GQh.js} +1 -1
  29. package/dist/uni/assets/index-BBofSJhT.js +76 -0
  30. package/dist/uni/assets/{vue-router-Dw1LzioT.js → vue-router-pF46KwvV.js} +1 -1
  31. package/dist/uni/index.html +3 -3
  32. package/package.json +11 -11
  33. package/src/Auth.vue +46 -0
  34. package/src/index.ts +4 -0
  35. package/dist/assets/auth-DyfherFL.js +0 -1
  36. package/dist/assets/index-DX9cw63j.js +0 -1
  37. package/dist/assets/page-Db4iyZjl.js +0 -2
  38. package/dist/assets/preview-D7O5WV4s.js +0 -2
  39. package/dist/uni/assets/index-B00slR6a.js +0 -70
@@ -1,5 +1,5 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index-DX9cw63j.js","./vue-router-Dv428VRb.js","./vue-DpQa2Qs4.js","./element-plus-BK-hs3-c.js","./lodash-es-BL-d_OSa.js","./@vueuse-dS-W09Vv.js","./@element-plus-icons-vue-CRZvKNrz.js","./shared-CFJLz5mK.js","./dayjs-DO-COJPZ.js","./element-plus-CfFwvTok.css","./vxe-DEIHqUXR.js","./vxe-BAb1d5vW.css","./extension-FEBgdJgd.js","./monaco-editor-B8dwQNlP.js","./monaco-editor-Cpw7ccEV.css","./html2canvas-CIV5arX1.js","./mockjs-BEvXV3hb.js","./extension-BjjqxGHx.css","./utils-CqFMRwm6.js","./_plugin-vue_export-helper-DlAUqK2U.js","./index-qxxdDj8s.css","./preview-D7O5WV4s.js","./page-Db4iyZjl.js","./uni-page-ByIXJ059.js","./uni-page-Diqmj53r.css","./auth-DyfherFL.js","./auth-rAe8S_7e.css"])))=>i.map(i=>d[i]);
2
- var pl=Object.defineProperty,dl=Object.defineProperties;var ml=Object.getOwnPropertyDescriptors;var gr=Object.getOwnPropertySymbols;var vs=Object.prototype.hasOwnProperty,ys=Object.prototype.propertyIsEnumerable;var de=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),gl=e=>{throw TypeError(e)};var wn=(e,t,r)=>t in e?pl(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,z=(e,t)=>{for(var r in t||(t={}))vs.call(t,r)&&wn(e,r,t[r]);if(gr)for(var r of gr(t))ys.call(t,r)&&wn(e,r,t[r]);return e},st=(e,t)=>dl(e,ml(t));var bs=(e,t)=>{var r={};for(var n in e)vs.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&gr)for(var n of gr(e))t.indexOf(n)<0&&ys.call(e,n)&&(r[n]=e[n]);return r};var A=(e,t,r)=>wn(e,typeof t!="symbol"?t+"":t,r);var L=(e,t,r)=>new Promise((n,i)=>{var s=u=>{try{a(r.next(u))}catch(c){i(c)}},o=u=>{try{a(r.throw(u))}catch(c){i(c)}},a=u=>u.done?n(u.value):Promise.resolve(u.value).then(s,o);a((r=r.apply(e,t)).next())}),Gt=function(e,t){this[0]=e,this[1]=t},En=(e,t,r)=>{var n=(o,a,u,c)=>{try{var l=r[o](a),f=(a=l.value)instanceof Gt,p=l.done;Promise.resolve(f?a[0]:a).then(h=>f?n(o==="return"?o:"next",a[1]?{done:h.done,value:h.value}:h,u,c):u({value:h,done:p})).catch(h=>n("throw",h,u,c))}catch(h){c(h)}},i=o=>s[o]=a=>new Promise((u,c)=>n(o,a,u,c)),s={};return r=r.apply(e,t),s[de("asyncIterator")]=()=>s,i("next"),i("throw"),i("return"),s},Sn=e=>{var t=e[de("asyncIterator")],r=!1,n,i={};return t==null?(t=e[de("iterator")](),n=s=>i[s]=o=>t[s](o)):(t=t.call(e),n=s=>i[s]=o=>{if(r){if(r=!1,s==="throw")throw o;return o}return r=!0,{done:!1,value:new Gt(new Promise(a=>{var u=t[s](o);u instanceof Object||gl("Object expected"),a(u)}),1)}}),i[de("iterator")]=()=>i,n("next"),"throw"in t?n("throw"):i.throw=s=>{throw s},"return"in t&&n("return"),i},_s=(e,t,r)=>(t=e[de("asyncIterator")])?t.call(e):(e=e[de("iterator")](),t={},r=(n,i)=>(i=e[n])&&(t[n]=s=>new Promise((o,a,u)=>(s=i.call(e,s),u=s.done,Promise.resolve(s.value).then(c=>o({value:c,done:u}),a)))),r("next"),r("return"),t);import{ay as Xr,az as xn,d as Oi,aA as ws,v as Go,e as Hn,w as vl,ah as zn,K as Es,u as Ss,ai as yl,o as xs,L as Ts,aB as bl,T as _l,av as wl}from"./vue-DpQa2Qs4.js";import{useRoute as Zo,createRouter as El,createWebHashHistory as Sl}from"./vue-router-Dv428VRb.js";import{z as xl,E as Tl}from"./element-plus-BK-hs3-c.js";import{_ as Ve}from"./monaco-editor-B8dwQNlP.js";import"./lodash-es-BL-d_OSa.js";import"./@vueuse-dS-W09Vv.js";import"./@element-plus-icons-vue-CRZvKNrz.js";import"./shared-CFJLz5mK.js";import"./dayjs-DO-COJPZ.js";(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))n(i);new MutationObserver(i=>{for(const s of i)if(s.type==="childList")for(const o of s.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&n(o)}).observe(document,{childList:!0,subtree:!0});function r(i){const s={};return i.integrity&&(s.integrity=i.integrity),i.referrerPolicy&&(s.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?s.credentials="include":i.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function n(i){if(i.ep)return;i.ep=!0;const s=r(i);fetch(i.href,s)}})();var Ol={ENV_TYPE:"live",NODE_ENV:"production"},$l=typeof global=="object"&&global&&global.Object===Object&&global;const Xo=$l;var Al=typeof self=="object"&&self&&self.Object===Object&&self,Rl=Xo||Al||Function("return this")();const At=Rl;var jl=At.Symbol;const Ct=jl;var Qo=Object.prototype,Dl=Qo.hasOwnProperty,Cl=Qo.toString,Ue=Ct?Ct.toStringTag:void 0;function Pl(e){var t=Dl.call(e,Ue),r=e[Ue];try{e[Ue]=void 0;var n=!0}catch(s){}var i=Cl.call(e);return n&&(t?e[Ue]=r:delete e[Ue]),i}var Nl=Object.prototype,Bl=Nl.toString;function kl(e){return Bl.call(e)}var Ml="[object Null]",Il="[object Undefined]",Os=Ct?Ct.toStringTag:void 0;function Et(e){return e==null?e===void 0?Il:Ml:Os&&Os in Object(e)?Pl(e):kl(e)}function at(e){return e!=null&&typeof e=="object"}var Fl="[object Symbol]";function cr(e){return typeof e=="symbol"||at(e)&&Et(e)==Fl}function ta(e,t){for(var r=-1,n=e==null?0:e.length,i=Array(n);++r<n;)i[r]=t(e[r],r,e);return i}var Ll=Array.isArray;const pt=Ll;var $s=Ct?Ct.prototype:void 0,As=$s?$s.toString:void 0;function ea(e){if(typeof e=="string")return e;if(pt(e))return ta(e,ea)+"";if(cr(e))return As?As.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var Vl=/\s/;function Ul(e){for(var t=e.length;t--&&Vl.test(e.charAt(t)););return t}var Hl=/^\s+/;function zl(e){return e&&e.slice(0,Ul(e)+1).replace(Hl,"")}function ct(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Rs=NaN,ql=/^[-+]0x[0-9a-f]+$/i,Kl=/^0b[01]+$/i,Jl=/^0o[0-7]+$/i,Wl=parseInt;function js(e){if(typeof e=="number")return e;if(cr(e))return Rs;if(ct(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=ct(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=zl(e);var r=Kl.test(e);return r||Jl.test(e)?Wl(e.slice(2),r?2:8):ql.test(e)?Rs:+e}function $i(e){return e}var Yl="[object AsyncFunction]",Gl="[object Function]",Zl="[object GeneratorFunction]",Xl="[object Proxy]";function ae(e){if(!ct(e))return!1;var t=Et(e);return t==Gl||t==Zl||t==Yl||t==Xl}var Ql=At["__core-js_shared__"];const Tn=Ql;var Ds=function(){var e=/[^.]+$/.exec(Tn&&Tn.keys&&Tn.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function tf(e){return!!Ds&&Ds in e}var ef=Function.prototype,rf=ef.toString;function le(e){if(e!=null){try{return rf.call(e)}catch(t){}try{return e+""}catch(t){}}return""}var nf=/[\\^$.*+?()[\]{}|]/g,sf=/^\[object .+?Constructor\]$/,of=Function.prototype,af=Object.prototype,cf=of.toString,uf=af.hasOwnProperty,lf=RegExp("^"+cf.call(uf).replace(nf,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function ff(e){if(!ct(e)||tf(e))return!1;var t=ae(e)?lf:sf;return t.test(le(e))}function hf(e,t){return e==null?void 0:e[t]}function fe(e,t){var r=hf(e,t);return ff(r)?r:void 0}var pf=fe(At,"WeakMap");const qn=pf;var Cs=Object.create,df=function(){function e(){}return function(t){if(!ct(t))return{};if(Cs)return Cs(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();const mf=df;function ra(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}function gf(){}function vf(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}var yf=800,bf=16,_f=Date.now;function wf(e){var t=0,r=0;return function(){var n=_f(),i=bf-(n-r);if(r=n,i>0){if(++t>=yf)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function Ef(e){return function(){return e}}var Sf=function(){try{var e=fe(Object,"defineProperty");return e({},"",{}),e}catch(t){}}();const Vr=Sf;var xf=Vr?function(e,t){return Vr(e,"toString",{configurable:!0,enumerable:!1,value:Ef(t),writable:!0})}:$i;const Tf=xf;var Of=wf(Tf);const $f=Of;function Af(e,t){for(var r=-1,n=e==null?0:e.length;++r<n&&t(e[r],r,e)!==!1;);return e}var Rf=9007199254740991,jf=/^(?:0|[1-9]\d*)$/;function Qr(e,t){var r=typeof e;return t=t!=null?t:Rf,!!t&&(r=="number"||r!="symbol"&&jf.test(e))&&e>-1&&e%1==0&&e<t}function tn(e,t,r){t=="__proto__"&&Vr?Vr(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function Ne(e,t){return e===t||e!==e&&t!==t}var Df=Object.prototype,Cf=Df.hasOwnProperty;function Ai(e,t,r){var n=e[t];(!(Cf.call(e,t)&&Ne(n,r))||r===void 0&&!(t in e))&&tn(e,t,r)}function na(e,t,r,n){var i=!r;r||(r={});for(var s=-1,o=t.length;++s<o;){var a=t[s],u=n?n(r[a],e[a],a,r,e):void 0;u===void 0&&(u=e[a]),i?tn(r,a,u):Ai(r,a,u)}return r}var Ps=Math.max;function Pf(e,t,r){return t=Ps(t===void 0?e.length-1:t,0),function(){for(var n=arguments,i=-1,s=Ps(n.length-t,0),o=Array(s);++i<s;)o[i]=n[t+i];i=-1;for(var a=Array(t+1);++i<t;)a[i]=n[i];return a[t]=r(o),ra(e,this,a)}}function ia(e,t){return $f(Pf(e,t,$i),e+"")}var Nf=9007199254740991;function Ri(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Nf}function ur(e){return e!=null&&Ri(e.length)&&!ae(e)}function sa(e,t,r){if(!ct(r))return!1;var n=typeof t;return(n=="number"?ur(r)&&Qr(t,r.length):n=="string"&&t in r)?Ne(r[t],e):!1}function oa(e){return ia(function(t,r){var n=-1,i=r.length,s=i>1?r[i-1]:void 0,o=i>2?r[2]:void 0;for(s=e.length>3&&typeof s=="function"?(i--,s):void 0,o&&sa(r[0],r[1],o)&&(s=i<3?void 0:s,i=1),t=Object(t);++n<i;){var a=r[n];a&&e(t,a,n,s)}return t})}var Bf=Object.prototype;function ji(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||Bf;return e===r}function kf(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var Mf="[object Arguments]";function Ns(e){return at(e)&&Et(e)==Mf}var aa=Object.prototype,If=aa.hasOwnProperty,Ff=aa.propertyIsEnumerable,Lf=Ns(function(){return arguments}())?Ns:function(e){return at(e)&&If.call(e,"callee")&&!Ff.call(e,"callee")};const Ur=Lf;function Vf(){return!1}var ca=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Bs=ca&&typeof module=="object"&&module&&!module.nodeType&&module,Uf=Bs&&Bs.exports===ca,ks=Uf?At.Buffer:void 0,Hf=ks?ks.isBuffer:void 0,zf=Hf||Vf;const Ae=zf;var qf="[object Arguments]",Kf="[object Array]",Jf="[object Boolean]",Wf="[object Date]",Yf="[object Error]",Gf="[object Function]",Zf="[object Map]",Xf="[object Number]",Qf="[object Object]",th="[object RegExp]",eh="[object Set]",rh="[object String]",nh="[object WeakMap]",ih="[object ArrayBuffer]",sh="[object DataView]",oh="[object Float32Array]",ah="[object Float64Array]",ch="[object Int8Array]",uh="[object Int16Array]",lh="[object Int32Array]",fh="[object Uint8Array]",hh="[object Uint8ClampedArray]",ph="[object Uint16Array]",dh="[object Uint32Array]",Q={};Q[oh]=Q[ah]=Q[ch]=Q[uh]=Q[lh]=Q[fh]=Q[hh]=Q[ph]=Q[dh]=!0,Q[qf]=Q[Kf]=Q[ih]=Q[Jf]=Q[sh]=Q[Wf]=Q[Yf]=Q[Gf]=Q[Zf]=Q[Xf]=Q[Qf]=Q[th]=Q[eh]=Q[rh]=Q[nh]=!1;function mh(e){return at(e)&&Ri(e.length)&&!!Q[Et(e)]}function lr(e){return function(t){return e(t)}}var ua=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Ge=ua&&typeof module=="object"&&module&&!module.nodeType&&module,gh=Ge&&Ge.exports===ua,On=gh&&Xo.process,vh=function(){try{var e=Ge&&Ge.require&&Ge.require("util").types;return e||On&&On.binding&&On.binding("util")}catch(t){}}();const Pt=vh;var Ms=Pt&&Pt.isTypedArray,yh=Ms?lr(Ms):mh;const Di=yh;var bh=Object.prototype,_h=bh.hasOwnProperty;function la(e,t){var r=pt(e),n=!r&&Ur(e),i=!r&&!n&&Ae(e),s=!r&&!n&&!i&&Di(e),o=r||n||i||s,a=o?kf(e.length,String):[],u=a.length;for(var c in e)(t||_h.call(e,c))&&!(o&&(c=="length"||i&&(c=="offset"||c=="parent")||s&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||Qr(c,u)))&&a.push(c);return a}function fa(e,t){return function(r){return e(t(r))}}var wh=fa(Object.keys,Object);const Eh=wh;var Sh=Object.prototype,xh=Sh.hasOwnProperty;function Th(e){if(!ji(e))return Eh(e);var t=[];for(var r in Object(e))xh.call(e,r)&&r!="constructor"&&t.push(r);return t}function en(e){return ur(e)?la(e):Th(e)}function Oh(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var $h=Object.prototype,Ah=$h.hasOwnProperty;function Rh(e){if(!ct(e))return Oh(e);var t=ji(e),r=[];for(var n in e)n=="constructor"&&(t||!Ah.call(e,n))||r.push(n);return r}function Ci(e){return ur(e)?la(e,!0):Rh(e)}var jh=oa(function(e,t,r,n){na(t,Ci(t),e,n)});const Is=jh;var Dh=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ch=/^\w*$/;function Pi(e,t){if(pt(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||cr(e)?!0:Ch.test(e)||!Dh.test(e)||t!=null&&e in Object(t)}var Ph=fe(Object,"create");const tr=Ph;function Nh(){this.__data__=tr?tr(null):{},this.size=0}function Bh(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var kh="__lodash_hash_undefined__",Mh=Object.prototype,Ih=Mh.hasOwnProperty;function Fh(e){var t=this.__data__;if(tr){var r=t[e];return r===kh?void 0:r}return Ih.call(t,e)?t[e]:void 0}var Lh=Object.prototype,Vh=Lh.hasOwnProperty;function Uh(e){var t=this.__data__;return tr?t[e]!==void 0:Vh.call(t,e)}var Hh="__lodash_hash_undefined__";function zh(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=tr&&t===void 0?Hh:t,this}function te(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}te.prototype.clear=Nh,te.prototype.delete=Bh,te.prototype.get=Fh,te.prototype.has=Uh,te.prototype.set=zh;function qh(){this.__data__=[],this.size=0}function rn(e,t){for(var r=e.length;r--;)if(Ne(e[r][0],t))return r;return-1}var Kh=Array.prototype,Jh=Kh.splice;function Wh(e){var t=this.__data__,r=rn(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():Jh.call(t,r,1),--this.size,!0}function Yh(e){var t=this.__data__,r=rn(t,e);return r<0?void 0:t[r][1]}function Gh(e){return rn(this.__data__,e)>-1}function Zh(e,t){var r=this.__data__,n=rn(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}function Mt(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Mt.prototype.clear=qh,Mt.prototype.delete=Wh,Mt.prototype.get=Yh,Mt.prototype.has=Gh,Mt.prototype.set=Zh;var Xh=fe(At,"Map");const er=Xh;function Qh(){this.size=0,this.__data__={hash:new te,map:new(er||Mt),string:new te}}function tp(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function nn(e,t){var r=e.__data__;return tp(t)?r[typeof t=="string"?"string":"hash"]:r.map}function ep(e){var t=nn(this,e).delete(e);return this.size-=t?1:0,t}function rp(e){return nn(this,e).get(e)}function np(e){return nn(this,e).has(e)}function ip(e,t){var r=nn(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}function It(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}It.prototype.clear=Qh,It.prototype.delete=ep,It.prototype.get=rp,It.prototype.has=np,It.prototype.set=ip;var sp="Expected a function";function Ni(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(sp);var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],s=r.cache;if(s.has(i))return s.get(i);var o=e.apply(this,n);return r.cache=s.set(i,o)||s,o};return r.cache=new(Ni.Cache||It),r}Ni.Cache=It;var op=500;function ap(e){var t=Ni(e,function(n){return r.size===op&&r.clear(),n}),r=t.cache;return t}var cp=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,up=/\\(\\)?/g,lp=ap(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(cp,function(r,n,i,s){t.push(i?s.replace(up,"$1"):n||r)}),t});const fp=lp;function he(e){return e==null?"":ea(e)}function Bi(e,t){return pt(e)?e:Pi(e,t)?[e]:fp(he(e))}function fr(e){if(typeof e=="string"||cr(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function ha(e,t){t=Bi(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[fr(t[r++])];return r&&r==n?e:void 0}function pa(e,t,r){var n=e==null?void 0:ha(e,t);return n===void 0?r:n}function hp(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}var pp=fa(Object.getPrototypeOf,Object);const da=pp;var dp="[object Object]",mp=Function.prototype,gp=Object.prototype,ma=mp.toString,vp=gp.hasOwnProperty,yp=ma.call(Object);function ki(e){if(!at(e)||Et(e)!=dp)return!1;var t=da(e);if(t===null)return!0;var r=vp.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&ma.call(r)==yp}var bp="[object DOMException]",_p="[object Error]";function ga(e){if(!at(e))return!1;var t=Et(e);return t==_p||t==bp||typeof e.message=="string"&&typeof e.name=="string"&&!ki(e)}var wp=ia(function(e,t){try{return ra(e,void 0,t)}catch(r){return ga(r)?r:new Error(r)}});const Ep=wp;function Sp(e,t,r){var n=-1,i=e.length;t<0&&(t=-t>i?0:i+t),r=r>i?i:r,r<0&&(r+=i),i=t>r?0:r-t>>>0,t>>>=0;for(var s=Array(i);++n<i;)s[n]=e[n+t];return s}function xp(e,t,r){var n=e.length;return r=r===void 0?n:r,Sp(e,t,r)}var Tp="\\ud800-\\udfff",Op="\\u0300-\\u036f",$p="\\ufe20-\\ufe2f",Ap="\\u20d0-\\u20ff",Rp=Op+$p+Ap,jp="\\ufe0e\\ufe0f",Dp="\\u200d",Cp=RegExp("["+Dp+Tp+Rp+jp+"]");function va(e){return Cp.test(e)}function Pp(e){return e.split("")}var ya="\\ud800-\\udfff",Np="\\u0300-\\u036f",Bp="\\ufe20-\\ufe2f",kp="\\u20d0-\\u20ff",Mp=Np+Bp+kp,Ip="\\ufe0e\\ufe0f",Fp="["+ya+"]",Kn="["+Mp+"]",Jn="\\ud83c[\\udffb-\\udfff]",Lp="(?:"+Kn+"|"+Jn+")",ba="[^"+ya+"]",_a="(?:\\ud83c[\\udde6-\\uddff]){2}",wa="[\\ud800-\\udbff][\\udc00-\\udfff]",Vp="\\u200d",Ea=Lp+"?",Sa="["+Ip+"]?",Up="(?:"+Vp+"(?:"+[ba,_a,wa].join("|")+")"+Sa+Ea+")*",Hp=Sa+Ea+Up,zp="(?:"+[ba+Kn+"?",Kn,_a,wa,Fp].join("|")+")",qp=RegExp(Jn+"(?="+Jn+")|"+zp+Hp,"g");function Kp(e){return e.match(qp)||[]}function Jp(e){return va(e)?Kp(e):Pp(e)}function xa(e){return function(t){t=he(t);var r=va(t)?Jp(t):void 0,n=r?r[0]:t.charAt(0),i=r?xp(r,1).join(""):t.slice(1);return n[e]()+i}}var Wp=xa("toUpperCase");const sn=Wp;function Yp(e){return sn(he(e).toLowerCase())}function Gp(e,t,r,n){var i=-1,s=e==null?0:e.length;for(n;++i<s;)r=t(r,e[i],i,e);return r}function Ta(e){return function(t){return e==null?void 0:e[t]}}var Zp={À:"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"},Xp=Ta(Zp);const Qp=Xp;var td=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ed="\\u0300-\\u036f",rd="\\ufe20-\\ufe2f",nd="\\u20d0-\\u20ff",id=ed+rd+nd,sd="["+id+"]",od=RegExp(sd,"g");function ad(e){return e=he(e),e&&e.replace(td,Qp).replace(od,"")}var cd=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function ud(e){return e.match(cd)||[]}var ld=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function fd(e){return ld.test(e)}var Oa="\\ud800-\\udfff",hd="\\u0300-\\u036f",pd="\\ufe20-\\ufe2f",dd="\\u20d0-\\u20ff",md=hd+pd+dd,$a="\\u2700-\\u27bf",Aa="a-z\\xdf-\\xf6\\xf8-\\xff",gd="\\xac\\xb1\\xd7\\xf7",vd="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",yd="\\u2000-\\u206f",bd=" \\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",Ra="A-Z\\xc0-\\xd6\\xd8-\\xde",_d="\\ufe0e\\ufe0f",ja=gd+vd+yd+bd,Da="['’]",Fs="["+ja+"]",wd="["+md+"]",Ca="\\d+",Ed="["+$a+"]",Pa="["+Aa+"]",Na="[^"+Oa+ja+Ca+$a+Aa+Ra+"]",Sd="\\ud83c[\\udffb-\\udfff]",xd="(?:"+wd+"|"+Sd+")",Td="[^"+Oa+"]",Ba="(?:\\ud83c[\\udde6-\\uddff]){2}",ka="[\\ud800-\\udbff][\\udc00-\\udfff]",ye="["+Ra+"]",Od="\\u200d",Ls="(?:"+Pa+"|"+Na+")",$d="(?:"+ye+"|"+Na+")",Vs="(?:"+Da+"(?:d|ll|m|re|s|t|ve))?",Us="(?:"+Da+"(?:D|LL|M|RE|S|T|VE))?",Ma=xd+"?",Ia="["+_d+"]?",Ad="(?:"+Od+"(?:"+[Td,Ba,ka].join("|")+")"+Ia+Ma+")*",Rd="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",jd="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Dd=Ia+Ma+Ad,Cd="(?:"+[Ed,Ba,ka].join("|")+")"+Dd,Pd=RegExp([ye+"?"+Pa+"+"+Vs+"(?="+[Fs,ye,"$"].join("|")+")",$d+"+"+Us+"(?="+[Fs,ye+Ls,"$"].join("|")+")",ye+"?"+Ls+"+"+Vs,ye+"+"+Us,jd,Rd,Ca,Cd].join("|"),"g");function Nd(e){return e.match(Pd)||[]}function Bd(e,t,r){return e=he(e),t=t,t===void 0?fd(e)?Nd(e):ud(e):e.match(t)||[]}var kd="['’]",Md=RegExp(kd,"g");function Mi(e){return function(t){return Gp(Bd(ad(t).replace(Md,"")),e,"")}}var Id=Mi(function(e,t,r){return t=t.toLowerCase(),e+(r?Yp(t):t)});const Bt=Id;function Fd(){this.__data__=new Mt,this.size=0}function Ld(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function Vd(e){return this.__data__.get(e)}function Ud(e){return this.__data__.has(e)}var Hd=200;function zd(e,t){var r=this.__data__;if(r instanceof Mt){var n=r.__data__;if(!er||n.length<Hd-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new It(n)}return r.set(e,t),this.size=r.size,this}function $t(e){var t=this.__data__=new Mt(e);this.size=t.size}$t.prototype.clear=Fd,$t.prototype.delete=Ld,$t.prototype.get=Vd,$t.prototype.has=Ud,$t.prototype.set=zd;var Fa=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Hs=Fa&&typeof module=="object"&&module&&!module.nodeType&&module,qd=Hs&&Hs.exports===Fa,zs=qd?At.Buffer:void 0,qs=zs?zs.allocUnsafe:void 0;function La(e,t){if(t)return e.slice();var r=e.length,n=qs?qs(r):new e.constructor(r);return e.copy(n),n}function Kd(e,t){for(var r=-1,n=e==null?0:e.length,i=0,s=[];++r<n;){var o=e[r];t(o,r,e)&&(s[i++]=o)}return s}function Jd(){return[]}var Wd=Object.prototype,Yd=Wd.propertyIsEnumerable,Ks=Object.getOwnPropertySymbols,Gd=Ks?function(e){return e==null?[]:(e=Object(e),Kd(Ks(e),function(t){return Yd.call(e,t)}))}:Jd;const Zd=Gd;function Xd(e,t,r){var n=t(e);return pt(e)?n:hp(n,r(e))}function Wn(e){return Xd(e,en,Zd)}var Qd=fe(At,"DataView");const Yn=Qd;var tm=fe(At,"Promise");const Gn=tm;var em=fe(At,"Set");const Zn=em;var Js="[object Map]",rm="[object Object]",Ws="[object Promise]",Ys="[object Set]",Gs="[object WeakMap]",Zs="[object DataView]",nm=le(Yn),im=le(er),sm=le(Gn),om=le(Zn),am=le(qn),Xt=Et;(Yn&&Xt(new Yn(new ArrayBuffer(1)))!=Zs||er&&Xt(new er)!=Js||Gn&&Xt(Gn.resolve())!=Ws||Zn&&Xt(new Zn)!=Ys||qn&&Xt(new qn)!=Gs)&&(Xt=function(e){var t=Et(e),r=t==rm?e.constructor:void 0,n=r?le(r):"";if(n)switch(n){case nm:return Zs;case im:return Js;case sm:return Ws;case om:return Ys;case am:return Gs}return t});const rr=Xt;var cm=Object.prototype,um=cm.hasOwnProperty;function lm(e){var t=e.length,r=new e.constructor(t);return t&&typeof e[0]=="string"&&um.call(e,"index")&&(r.index=e.index,r.input=e.input),r}var fm=At.Uint8Array;const Hr=fm;function Ii(e){var t=new e.constructor(e.byteLength);return new Hr(t).set(new Hr(e)),t}function hm(e,t){var r=Ii(e.buffer);return new e.constructor(r,e.byteOffset,e.byteLength)}var pm=/\w*$/;function dm(e){var t=new e.constructor(e.source,pm.exec(e));return t.lastIndex=e.lastIndex,t}var Xs=Ct?Ct.prototype:void 0,Qs=Xs?Xs.valueOf:void 0;function mm(e){return Qs?Object(Qs.call(e)):{}}function Va(e,t){var r=t?Ii(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}var gm="[object Boolean]",vm="[object Date]",ym="[object Map]",bm="[object Number]",_m="[object RegExp]",wm="[object Set]",Em="[object String]",Sm="[object Symbol]",xm="[object ArrayBuffer]",Tm="[object DataView]",Om="[object Float32Array]",$m="[object Float64Array]",Am="[object Int8Array]",Rm="[object Int16Array]",jm="[object Int32Array]",Dm="[object Uint8Array]",Cm="[object Uint8ClampedArray]",Pm="[object Uint16Array]",Nm="[object Uint32Array]";function Bm(e,t,r){var n=e.constructor;switch(t){case xm:return Ii(e);case gm:case vm:return new n(+e);case Tm:return hm(e);case Om:case $m:case Am:case Rm:case jm:case Dm:case Cm:case Pm:case Nm:return Va(e,r);case ym:return new n;case bm:case Em:return new n(e);case _m:return dm(e);case wm:return new n;case Sm:return mm(e)}}function Ua(e){return typeof e.constructor=="function"&&!ji(e)?mf(da(e)):{}}var km="[object Map]";function Mm(e){return at(e)&&rr(e)==km}var to=Pt&&Pt.isMap,Im=to?lr(to):Mm;const Fm=Im;var Lm="[object Set]";function Vm(e){return at(e)&&rr(e)==Lm}var eo=Pt&&Pt.isSet,Um=eo?lr(eo):Vm;const Hm=Um;var zm=1,Ha="[object Arguments]",qm="[object Array]",Km="[object Boolean]",Jm="[object Date]",Wm="[object Error]",za="[object Function]",Ym="[object GeneratorFunction]",Gm="[object Map]",Zm="[object Number]",qa="[object Object]",Xm="[object RegExp]",Qm="[object Set]",tg="[object String]",eg="[object Symbol]",rg="[object WeakMap]",ng="[object ArrayBuffer]",ig="[object DataView]",sg="[object Float32Array]",og="[object Float64Array]",ag="[object Int8Array]",cg="[object Int16Array]",ug="[object Int32Array]",lg="[object Uint8Array]",fg="[object Uint8ClampedArray]",hg="[object Uint16Array]",pg="[object Uint32Array]",X={};X[Ha]=X[qm]=X[ng]=X[ig]=X[Km]=X[Jm]=X[sg]=X[og]=X[ag]=X[cg]=X[ug]=X[Gm]=X[Zm]=X[qa]=X[Xm]=X[Qm]=X[tg]=X[eg]=X[lg]=X[fg]=X[hg]=X[pg]=!0,X[Wm]=X[za]=X[rg]=!1;function Ar(e,t,r,n,i,s){var o,a=t&zm;if(o!==void 0)return o;if(!ct(e))return e;var u=pt(e);if(u)o=lm(e);else{var c=rr(e),l=c==za||c==Ym;if(Ae(e))return La(e,a);if(c==qa||c==Ha||l&&!i)o=l?{}:Ua(e);else{if(!X[c])return i?e:{};o=Bm(e,c,a)}}s||(s=new $t);var f=s.get(e);if(f)return f;s.set(e,o),Hm(e)?e.forEach(function(m){o.add(Ar(m,t,r,m,e,s))}):Fm(e)&&e.forEach(function(m,d){o.set(d,Ar(m,t,r,d,e,s))});var p=Wn,h=u?void 0:p(e);return Af(h||e,function(m,d){h&&(d=m,m=e[d]),Ai(o,d,Ar(m,t,r,d,e,s))}),o}var dg=1,mg=4;function nr(e){return Ar(e,dg|mg)}var gg="__lodash_hash_undefined__";function vg(e){return this.__data__.set(e,gg),this}function yg(e){return this.__data__.has(e)}function Rr(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new It;++t<r;)this.add(e[t])}Rr.prototype.add=Rr.prototype.push=vg,Rr.prototype.has=yg;function bg(e,t){for(var r=-1,n=e==null?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}function _g(e,t){return e.has(t)}var wg=1,Eg=2;function Ka(e,t,r,n,i,s){var o=r&wg,a=e.length,u=t.length;if(a!=u&&!(o&&u>a))return!1;var c=s.get(e),l=s.get(t);if(c&&l)return c==t&&l==e;var f=-1,p=!0,h=r&Eg?new Rr:void 0;for(s.set(e,t),s.set(t,e);++f<a;){var m=e[f],d=t[f];if(n)var b=o?n(d,m,f,t,e,s):n(m,d,f,e,t,s);if(b!==void 0){if(b)continue;p=!1;break}if(h){if(!bg(t,function(E,g){if(!_g(h,g)&&(m===E||i(m,E,r,n,s)))return h.push(g)})){p=!1;break}}else if(!(m===d||i(m,d,r,n,s))){p=!1;break}}return s.delete(e),s.delete(t),p}function Sg(e){var t=-1,r=Array(e.size);return e.forEach(function(n,i){r[++t]=[i,n]}),r}function xg(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var Tg=1,Og=2,$g="[object Boolean]",Ag="[object Date]",Rg="[object Error]",jg="[object Map]",Dg="[object Number]",Cg="[object RegExp]",Pg="[object Set]",Ng="[object String]",Bg="[object Symbol]",kg="[object ArrayBuffer]",Mg="[object DataView]",ro=Ct?Ct.prototype:void 0,$n=ro?ro.valueOf:void 0;function Ig(e,t,r,n,i,s,o){switch(r){case Mg:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case kg:return!(e.byteLength!=t.byteLength||!s(new Hr(e),new Hr(t)));case $g:case Ag:case Dg:return Ne(+e,+t);case Rg:return e.name==t.name&&e.message==t.message;case Cg:case Ng:return e==t+"";case jg:var a=Sg;case Pg:var u=n&Tg;if(a||(a=xg),e.size!=t.size&&!u)return!1;var c=o.get(e);if(c)return c==t;n|=Og,o.set(e,t);var l=Ka(a(e),a(t),n,i,s,o);return o.delete(e),l;case Bg:if($n)return $n.call(e)==$n.call(t)}return!1}var Fg=1,Lg=Object.prototype,Vg=Lg.hasOwnProperty;function Ug(e,t,r,n,i,s){var o=r&Fg,a=Wn(e),u=a.length,c=Wn(t),l=c.length;if(u!=l&&!o)return!1;for(var f=u;f--;){var p=a[f];if(!(o?p in t:Vg.call(t,p)))return!1}var h=s.get(e),m=s.get(t);if(h&&m)return h==t&&m==e;var d=!0;s.set(e,t),s.set(t,e);for(var b=o;++f<u;){p=a[f];var E=e[p],g=t[p];if(n)var y=o?n(g,E,p,t,e,s):n(E,g,p,e,t,s);if(!(y===void 0?E===g||i(E,g,r,n,s):y)){d=!1;break}b||(b=p=="constructor")}if(d&&!b){var _=e.constructor,S=t.constructor;_!=S&&"constructor"in e&&"constructor"in t&&!(typeof _=="function"&&_ instanceof _&&typeof S=="function"&&S instanceof S)&&(d=!1)}return s.delete(e),s.delete(t),d}var Hg=1,no="[object Arguments]",io="[object Array]",vr="[object Object]",zg=Object.prototype,so=zg.hasOwnProperty;function qg(e,t,r,n,i,s){var o=pt(e),a=pt(t),u=o?io:rr(e),c=a?io:rr(t);u=u==no?vr:u,c=c==no?vr:c;var l=u==vr,f=c==vr,p=u==c;if(p&&Ae(e)){if(!Ae(t))return!1;o=!0,l=!1}if(p&&!l)return s||(s=new $t),o||Di(e)?Ka(e,t,r,n,i,s):Ig(e,t,u,r,n,i,s);if(!(r&Hg)){var h=l&&so.call(e,"__wrapped__"),m=f&&so.call(t,"__wrapped__");if(h||m){var d=h?e.value():e,b=m?t.value():t;return s||(s=new $t),i(d,b,r,n,s)}}return p?(s||(s=new $t),Ug(e,t,r,n,i,s)):!1}function on(e,t,r,n,i){return e===t?!0:e==null||t==null||!at(e)&&!at(t)?e!==e&&t!==t:qg(e,t,r,n,on,i)}var Kg=1,Jg=2;function Wg(e,t,r,n){var i=r.length,s=i;if(e==null)return!s;for(e=Object(e);i--;){var o=r[i];if(o[2]?o[1]!==e[o[0]]:!(o[0]in e))return!1}for(;++i<s;){o=r[i];var a=o[0],u=e[a],c=o[1];if(o[2]){if(u===void 0&&!(a in e))return!1}else{var l=new $t,f;if(!(f===void 0?on(c,u,Kg|Jg,n,l):f))return!1}}return!0}function Ja(e){return e===e&&!ct(e)}function Yg(e){for(var t=en(e),r=t.length;r--;){var n=t[r],i=e[n];t[r]=[n,i,Ja(i)]}return t}function Wa(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}function Gg(e){var t=Yg(e);return t.length==1&&t[0][2]?Wa(t[0][0],t[0][1]):function(r){return r===e||Wg(r,e,t)}}function Zg(e,t){return e!=null&&t in Object(e)}function Xg(e,t,r){t=Bi(t,e);for(var n=-1,i=t.length,s=!1;++n<i;){var o=fr(t[n]);if(!(s=e!=null&&r(e,o)))break;e=e[o]}return s||++n!=i?s:(i=e==null?0:e.length,!!i&&Ri(i)&&Qr(o,i)&&(pt(e)||Ur(e)))}function Qg(e,t){return e!=null&&Xg(e,t,Zg)}var tv=1,ev=2;function rv(e,t){return Pi(e)&&Ja(t)?Wa(fr(e),t):function(r){var n=pa(r,e);return n===void 0&&n===t?Qg(r,e):on(t,n,tv|ev)}}function nv(e){return function(t){return t==null?void 0:t[e]}}function iv(e){return function(t){return ha(t,e)}}function sv(e){return Pi(e)?nv(fr(e)):iv(e)}function ov(e){return typeof e=="function"?e:e==null?$i:typeof e=="object"?pt(e)?rv(e[0],e[1]):Gg(e):sv(e)}function av(e,t,r,n){for(var i=-1,s=e==null?0:e.length;++i<s;){var o=e[i];t(n,o,r(o),e)}return n}function cv(e){return function(t,r,n){for(var i=-1,s=Object(t),o=n(t),a=o.length;a--;){var u=o[++i];if(r(s[u],u,s)===!1)break}return t}}var uv=cv();const Ya=uv;function lv(e,t){return e&&Ya(e,t,en)}function fv(e,t){return function(r,n){if(r==null)return r;if(!ur(r))return e(r,n);for(var i=r.length,s=-1,o=Object(r);++s<i&&n(o[s],s,o)!==!1;);return r}}var hv=fv(lv);const pv=hv;function dv(e,t,r,n){return pv(e,function(i,s,o){t(n,i,r(i),o)}),n}function mv(e,t){return function(r,n){var i=pt(r)?av:dv,s={};return i(r,e,ov(n),s)}}var gv=function(){return At.Date.now()};const An=gv;var vv="Expected a function",yv=Math.max,bv=Math.min;function Fi(e,t,r){var n,i,s,o,a,u,c=0,l=!1,f=!1,p=!0;if(typeof e!="function")throw new TypeError(vv);t=js(t)||0,ct(r)&&(l=!!r.leading,f="maxWait"in r,s=f?yv(js(r.maxWait)||0,t):s,p="trailing"in r?!!r.trailing:p);function h(v){var x=n,$=i;return n=i=void 0,c=v,o=e.apply($,x),o}function m(v){return c=v,a=setTimeout(E,t),l?h(v):o}function d(v){var x=v-u,$=v-c,V=t-x;return f?bv(V,s-$):V}function b(v){var x=v-u,$=v-c;return u===void 0||x>=t||x<0||f&&$>=s}function E(){var v=An();if(b(v))return g(v);a=setTimeout(E,d(v))}function g(v){return a=void 0,p&&n?h(v):(n=i=void 0,o)}function y(){a!==void 0&&clearTimeout(a),c=0,n=u=i=a=void 0}function _(){return a===void 0?o:g(An())}function S(){var v=An(),x=b(v);if(n=arguments,i=this,u=v,x){if(a===void 0)return m(u);if(f)return clearTimeout(a),a=setTimeout(E,t),h(u)}return a===void 0&&(a=setTimeout(E,t)),o}return S.cancel=y,S.flush=_,S}function Xn(e,t,r){(r!==void 0&&!Ne(e[t],r)||r===void 0&&!(t in e))&&tn(e,t,r)}function _v(e){return at(e)&&ur(e)}function Qn(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}function wv(e){return na(e,Ci(e))}function Ev(e,t,r,n,i,s,o){var a=Qn(e,r),u=Qn(t,r),c=o.get(u);if(c){Xn(e,r,c);return}var l=s?s(a,u,r+"",e,t,o):void 0,f=l===void 0;if(f){var p=pt(u),h=!p&&Ae(u),m=!p&&!h&&Di(u);l=u,p||h||m?pt(a)?l=a:_v(a)?l=vf(a):h?(f=!1,l=La(u,!0)):m?(f=!1,l=Va(u,!0)):l=[]:ki(u)||Ur(u)?(l=a,Ur(a)?l=wv(a):(!ct(a)||ae(a))&&(l=Ua(u))):f=!1}f&&(o.set(u,l),i(l,u,n,s,o),o.delete(u)),Xn(e,r,l)}function Ga(e,t,r,n,i){e!==t&&Ya(t,function(s,o){if(i||(i=new $t),ct(s))Ev(e,t,o,r,Ga,n,i);else{var a=n?n(Qn(e,o),s,o+"",e,t,i):void 0;a===void 0&&(a=s),Xn(e,o,a)}},Ci)}var Sv={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},xv=Ta(Sv);const Tv=xv;var Za=/[&<>"']/g,Ov=RegExp(Za.source);function $v(e){return e=he(e),e&&Ov.test(e)?e.replace(Za,Tv):e}var Av=Object.prototype,Rv=Av.hasOwnProperty,jv=mv(function(e,t,r){Rv.call(e,r)?e[r].push(t):tn(e,r,[t])});const Xa=jv;var Dv="[object String]";function bt(e){return typeof e=="string"||!pt(e)&&at(e)&&Et(e)==Dv}function Cv(e,t){return ta(t,function(r){return e[r]})}var Pv="[object ArrayBuffer]";function Nv(e){return at(e)&&Et(e)==Pv}var oo=Pt&&Pt.isArrayBuffer,Bv=oo?lr(oo):Nv;const kv=Bv;var Mv="[object Boolean]";function Iv(e){return e===!0||e===!1||at(e)&&Et(e)==Mv}var Fv="[object Date]";function Lv(e){return at(e)&&Et(e)==Fv}var ao=Pt&&Pt.isDate,Vv=ao?lr(ao):Lv;const Uv=Vv;function Hv(e,t){return on(e,t)}var zv="[object Number]";function Qa(e){return typeof e=="number"||at(e)&&Et(e)==zv}function qv(e){return Qa(e)&&e!=+e}function Kv(e){return e===null}function Jv(e){return e===void 0}var Wv=Mi(function(e,t,r){return e+(r?"-":"")+t.toLowerCase()});const Yv=Wv;var Gv=xa("toLowerCase");const Zv=Gv;var Xv=oa(function(e,t,r){Ga(e,t,r)});const Dt=Xv;function Qv(e,t,r,n){if(!ct(e))return e;t=Bi(t,e);for(var i=-1,s=t.length,o=s-1,a=e;a!=null&&++i<s;){var u=fr(t[i]),c=r;if(u==="__proto__"||u==="constructor"||u==="prototype")return e;if(i!=o){var l=a[u];c=void 0,c===void 0&&(c=ct(l)?l:Qr(t[i+1])?[]:{})}Ai(a,u,c),a=a[u]}return e}function ty(e,t,r){return e==null?e:Qv(e,t,r)}var ey=Mi(function(e,t,r){return e+(r?"_":"")+t.toLowerCase()});const ry=ey;var tc=Object.prototype,ny=tc.hasOwnProperty;function co(e,t,r,n){return e===void 0||Ne(e,tc[r])&&!ny.call(n,r)?t:e}var iy={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"};function sy(e){return"\\"+iy[e]}var oy=/<%=([\s\S]+?)%>/g;const ec=oy;var ay=/<%-([\s\S]+?)%>/g;const cy=ay;var uy=/<%([\s\S]+?)%>/g;const ly=uy;var fy={escape:cy,evaluate:ly,interpolate:ec,variable:"",imports:{_:{escape:$v}}};const uo=fy;var hy="Invalid `variable` option passed into `_.template`",py=/\b__p \+= '';/g,dy=/\b(__p \+=) '' \+/g,my=/(__e\(.*?\)|\b__t\)) \+\n'';/g,gy=/[()=,{}\[\]\/\s]/,vy=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,yr=/($^)/,yy=/['\n\r\u2028\u2029\\]/g,by=Object.prototype,lo=by.hasOwnProperty;function rc(e,t,r){var n=uo.imports._.templateSettings||uo;r&&sa(e,t,r)&&(t=void 0),e=he(e),t=Is({},t,n,co);var i=Is({},t.imports,n.imports,co),s=en(i),o=Cv(i,s),a,u,c=0,l=t.interpolate||yr,f="__p += '",p=RegExp((t.escape||yr).source+"|"+l.source+"|"+(l===ec?vy:yr).source+"|"+(t.evaluate||yr).source+"|$","g"),h=lo.call(t,"sourceURL")?"//# sourceURL="+(t.sourceURL+"").replace(/\s/g," ")+`
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index-DVr_v5KA.js","./vue-router-D8EXeL0F.js","./vue-DnfbZNhx.js","./element-plus-Bd2bW04a.js","./lodash-es-BL-d_OSa.js","./@vueuse-B2Ln5mIU.js","./@element-plus-icons-vue-CKT2Xck5.js","./shared-CFJLz5mK.js","./dayjs-DO-COJPZ.js","./element-plus-CfFwvTok.css","./vxe-CFTIhv1S.js","./vxe-BAb1d5vW.css","./extension-C0o-vGA_.js","./monaco-editor-B8dwQNlP.js","./monaco-editor-Cpw7ccEV.css","./html2canvas-CIV5arX1.js","./mockjs-BEvXV3hb.js","./extension-BjjqxGHx.css","./utils-wPzCLnUa.js","./_plugin-vue_export-helper-DlAUqK2U.js","./index-qxxdDj8s.css","./preview-Bnmb9ETc.js","./page-B0jtXeSQ.js","./uni-page-Bjgk97mC.js","./uni-page-Diqmj53r.css","./auth-BNKonXq_.js","./auth-rAe8S_7e.css"])))=>i.map(i=>d[i]);
2
+ var pl=Object.defineProperty,dl=Object.defineProperties;var ml=Object.getOwnPropertyDescriptors;var vr=Object.getOwnPropertySymbols;var vs=Object.prototype.hasOwnProperty,ys=Object.prototype.propertyIsEnumerable;var de=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),gl=e=>{throw TypeError(e)};var En=(e,t,r)=>t in e?pl(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,z=(e,t)=>{for(var r in t||(t={}))vs.call(t,r)&&En(e,r,t[r]);if(vr)for(var r of vr(t))ys.call(t,r)&&En(e,r,t[r]);return e},st=(e,t)=>dl(e,ml(t));var bs=(e,t)=>{var r={};for(var n in e)vs.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&vr)for(var n of vr(e))t.indexOf(n)<0&&ys.call(e,n)&&(r[n]=e[n]);return r};var $=(e,t,r)=>En(e,typeof t!="symbol"?t+"":t,r);var L=(e,t,r)=>new Promise((n,i)=>{var s=u=>{try{a(r.next(u))}catch(c){i(c)}},o=u=>{try{a(r.throw(u))}catch(c){i(c)}},a=u=>u.done?n(u.value):Promise.resolve(u.value).then(s,o);a((r=r.apply(e,t)).next())}),Gt=function(e,t){this[0]=e,this[1]=t},Sn=(e,t,r)=>{var n=(o,a,u,c)=>{try{var l=r[o](a),f=(a=l.value)instanceof Gt,p=l.done;Promise.resolve(f?a[0]:a).then(h=>f?n(o==="return"?o:"next",a[1]?{done:h.done,value:h.value}:h,u,c):u({value:h,done:p})).catch(h=>n("throw",h,u,c))}catch(h){c(h)}},i=o=>s[o]=a=>new Promise((u,c)=>n(o,a,u,c)),s={};return r=r.apply(e,t),s[de("asyncIterator")]=()=>s,i("next"),i("throw"),i("return"),s},xn=e=>{var t=e[de("asyncIterator")],r=!1,n,i={};return t==null?(t=e[de("iterator")](),n=s=>i[s]=o=>t[s](o)):(t=t.call(e),n=s=>i[s]=o=>{if(r){if(r=!1,s==="throw")throw o;return o}return r=!0,{done:!1,value:new Gt(new Promise(a=>{var u=t[s](o);u instanceof Object||gl("Object expected"),a(u)}),1)}}),i[de("iterator")]=()=>i,n("next"),"throw"in t?n("throw"):i.throw=s=>{throw s},"return"in t&&n("return"),i},_s=(e,t,r)=>(t=e[de("asyncIterator")])?t.call(e):(e=e[de("iterator")](),t={},r=(n,i)=>(i=e[n])&&(t[n]=s=>new Promise((o,a,u)=>(s=i.call(e,s),u=s.done,Promise.resolve(s.value).then(c=>o({value:c,done:u}),a)))),r("next"),r("return"),t);import{ay as Xr,d as Oi,az as ws,v as Go,e as Hn,w as vl,ah as zn,K as Es,u as Ss,ai as yl,o as xs,L as Ts,aA as bl,T as _l,av as wl}from"./vue-DnfbZNhx.js";import{useRoute as Zo,createRouter as El,createWebHashHistory as Sl}from"./vue-router-D8EXeL0F.js";import{z as xl,E as Tl}from"./element-plus-Bd2bW04a.js";import{_ as Ue}from"./monaco-editor-B8dwQNlP.js";import"./lodash-es-BL-d_OSa.js";import"./@vueuse-B2Ln5mIU.js";import"./@element-plus-icons-vue-CKT2Xck5.js";import"./shared-CFJLz5mK.js";import"./dayjs-DO-COJPZ.js";(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))n(i);new MutationObserver(i=>{for(const s of i)if(s.type==="childList")for(const o of s.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&n(o)}).observe(document,{childList:!0,subtree:!0});function r(i){const s={};return i.integrity&&(s.integrity=i.integrity),i.referrerPolicy&&(s.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?s.credentials="include":i.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function n(i){if(i.ep)return;i.ep=!0;const s=r(i);fetch(i.href,s)}})();var Ol={ENV_TYPE:"live",NODE_ENV:"production"},Al=typeof global=="object"&&global&&global.Object===Object&&global;const Qo=Al;var $l=typeof self=="object"&&self&&self.Object===Object&&self,Rl=Qo||$l||Function("return this")();const $t=Rl;var jl=$t.Symbol;const Ct=jl;var Xo=Object.prototype,Dl=Xo.hasOwnProperty,Cl=Xo.toString,He=Ct?Ct.toStringTag:void 0;function Pl(e){var t=Dl.call(e,He),r=e[He];try{e[He]=void 0;var n=!0}catch(s){}var i=Cl.call(e);return n&&(t?e[He]=r:delete e[He]),i}var Bl=Object.prototype,Nl=Bl.toString;function kl(e){return Nl.call(e)}var Il="[object Null]",Ml="[object Undefined]",Os=Ct?Ct.toStringTag:void 0;function Et(e){return e==null?e===void 0?Ml:Il:Os&&Os in Object(e)?Pl(e):kl(e)}function at(e){return e!=null&&typeof e=="object"}var Fl="[object Symbol]";function ur(e){return typeof e=="symbol"||at(e)&&Et(e)==Fl}function ta(e,t){for(var r=-1,n=e==null?0:e.length,i=Array(n);++r<n;)i[r]=t(e[r],r,e);return i}var Ll=Array.isArray;const pt=Ll;var As=Ct?Ct.prototype:void 0,$s=As?As.toString:void 0;function ea(e){if(typeof e=="string")return e;if(pt(e))return ta(e,ea)+"";if(ur(e))return $s?$s.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var Vl=/\s/;function Ul(e){for(var t=e.length;t--&&Vl.test(e.charAt(t)););return t}var Hl=/^\s+/;function zl(e){return e&&e.slice(0,Ul(e)+1).replace(Hl,"")}function ct(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Rs=NaN,ql=/^[-+]0x[0-9a-f]+$/i,Kl=/^0b[01]+$/i,Jl=/^0o[0-7]+$/i,Wl=parseInt;function js(e){if(typeof e=="number")return e;if(ur(e))return Rs;if(ct(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=ct(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=zl(e);var r=Kl.test(e);return r||Jl.test(e)?Wl(e.slice(2),r?2:8):ql.test(e)?Rs:+e}function Ai(e){return e}var Yl="[object AsyncFunction]",Gl="[object Function]",Zl="[object GeneratorFunction]",Ql="[object Proxy]";function ae(e){if(!ct(e))return!1;var t=Et(e);return t==Gl||t==Zl||t==Yl||t==Ql}var Xl=$t["__core-js_shared__"];const Tn=Xl;var Ds=function(){var e=/[^.]+$/.exec(Tn&&Tn.keys&&Tn.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function tf(e){return!!Ds&&Ds in e}var ef=Function.prototype,rf=ef.toString;function le(e){if(e!=null){try{return rf.call(e)}catch(t){}try{return e+""}catch(t){}}return""}var nf=/[\\^$.*+?()[\]{}|]/g,sf=/^\[object .+?Constructor\]$/,of=Function.prototype,af=Object.prototype,cf=of.toString,uf=af.hasOwnProperty,lf=RegExp("^"+cf.call(uf).replace(nf,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function ff(e){if(!ct(e)||tf(e))return!1;var t=ae(e)?lf:sf;return t.test(le(e))}function hf(e,t){return e==null?void 0:e[t]}function fe(e,t){var r=hf(e,t);return ff(r)?r:void 0}var pf=fe($t,"WeakMap");const qn=pf;var Cs=Object.create,df=function(){function e(){}return function(t){if(!ct(t))return{};if(Cs)return Cs(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();const mf=df;function ra(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}function gf(){}function vf(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}var yf=800,bf=16,_f=Date.now;function wf(e){var t=0,r=0;return function(){var n=_f(),i=bf-(n-r);if(r=n,i>0){if(++t>=yf)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function Ef(e){return function(){return e}}var Sf=function(){try{var e=fe(Object,"defineProperty");return e({},"",{}),e}catch(t){}}();const Ur=Sf;var xf=Ur?function(e,t){return Ur(e,"toString",{configurable:!0,enumerable:!1,value:Ef(t),writable:!0})}:Ai;const Tf=xf;var Of=wf(Tf);const Af=Of;function $f(e,t){for(var r=-1,n=e==null?0:e.length;++r<n&&t(e[r],r,e)!==!1;);return e}var Rf=9007199254740991,jf=/^(?:0|[1-9]\d*)$/;function tn(e,t){var r=typeof e;return t=t!=null?t:Rf,!!t&&(r=="number"||r!="symbol"&&jf.test(e))&&e>-1&&e%1==0&&e<t}function en(e,t,r){t=="__proto__"&&Ur?Ur(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function Ne(e,t){return e===t||e!==e&&t!==t}var Df=Object.prototype,Cf=Df.hasOwnProperty;function $i(e,t,r){var n=e[t];(!(Cf.call(e,t)&&Ne(n,r))||r===void 0&&!(t in e))&&en(e,t,r)}function na(e,t,r,n){var i=!r;r||(r={});for(var s=-1,o=t.length;++s<o;){var a=t[s],u=n?n(r[a],e[a],a,r,e):void 0;u===void 0&&(u=e[a]),i?en(r,a,u):$i(r,a,u)}return r}var Ps=Math.max;function Pf(e,t,r){return t=Ps(t===void 0?e.length-1:t,0),function(){for(var n=arguments,i=-1,s=Ps(n.length-t,0),o=Array(s);++i<s;)o[i]=n[t+i];i=-1;for(var a=Array(t+1);++i<t;)a[i]=n[i];return a[t]=r(o),ra(e,this,a)}}function ia(e,t){return Af(Pf(e,t,Ai),e+"")}var Bf=9007199254740991;function Ri(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Bf}function lr(e){return e!=null&&Ri(e.length)&&!ae(e)}function sa(e,t,r){if(!ct(r))return!1;var n=typeof t;return(n=="number"?lr(r)&&tn(t,r.length):n=="string"&&t in r)?Ne(r[t],e):!1}function oa(e){return ia(function(t,r){var n=-1,i=r.length,s=i>1?r[i-1]:void 0,o=i>2?r[2]:void 0;for(s=e.length>3&&typeof s=="function"?(i--,s):void 0,o&&sa(r[0],r[1],o)&&(s=i<3?void 0:s,i=1),t=Object(t);++n<i;){var a=r[n];a&&e(t,a,n,s)}return t})}var Nf=Object.prototype;function ji(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||Nf;return e===r}function kf(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var If="[object Arguments]";function Bs(e){return at(e)&&Et(e)==If}var aa=Object.prototype,Mf=aa.hasOwnProperty,Ff=aa.propertyIsEnumerable,Lf=Bs(function(){return arguments}())?Bs:function(e){return at(e)&&Mf.call(e,"callee")&&!Ff.call(e,"callee")};const Hr=Lf;function Vf(){return!1}var ca=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Ns=ca&&typeof module=="object"&&module&&!module.nodeType&&module,Uf=Ns&&Ns.exports===ca,ks=Uf?$t.Buffer:void 0,Hf=ks?ks.isBuffer:void 0,zf=Hf||Vf;const Re=zf;var qf="[object Arguments]",Kf="[object Array]",Jf="[object Boolean]",Wf="[object Date]",Yf="[object Error]",Gf="[object Function]",Zf="[object Map]",Qf="[object Number]",Xf="[object Object]",th="[object RegExp]",eh="[object Set]",rh="[object String]",nh="[object WeakMap]",ih="[object ArrayBuffer]",sh="[object DataView]",oh="[object Float32Array]",ah="[object Float64Array]",ch="[object Int8Array]",uh="[object Int16Array]",lh="[object Int32Array]",fh="[object Uint8Array]",hh="[object Uint8ClampedArray]",ph="[object Uint16Array]",dh="[object Uint32Array]",X={};X[oh]=X[ah]=X[ch]=X[uh]=X[lh]=X[fh]=X[hh]=X[ph]=X[dh]=!0,X[qf]=X[Kf]=X[ih]=X[Jf]=X[sh]=X[Wf]=X[Yf]=X[Gf]=X[Zf]=X[Qf]=X[Xf]=X[th]=X[eh]=X[rh]=X[nh]=!1;function mh(e){return at(e)&&Ri(e.length)&&!!X[Et(e)]}function fr(e){return function(t){return e(t)}}var ua=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Ze=ua&&typeof module=="object"&&module&&!module.nodeType&&module,gh=Ze&&Ze.exports===ua,On=gh&&Qo.process,vh=function(){try{var e=Ze&&Ze.require&&Ze.require("util").types;return e||On&&On.binding&&On.binding("util")}catch(t){}}();const Pt=vh;var Is=Pt&&Pt.isTypedArray,yh=Is?fr(Is):mh;const Di=yh;var bh=Object.prototype,_h=bh.hasOwnProperty;function la(e,t){var r=pt(e),n=!r&&Hr(e),i=!r&&!n&&Re(e),s=!r&&!n&&!i&&Di(e),o=r||n||i||s,a=o?kf(e.length,String):[],u=a.length;for(var c in e)(t||_h.call(e,c))&&!(o&&(c=="length"||i&&(c=="offset"||c=="parent")||s&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||tn(c,u)))&&a.push(c);return a}function fa(e,t){return function(r){return e(t(r))}}var wh=fa(Object.keys,Object);const Eh=wh;var Sh=Object.prototype,xh=Sh.hasOwnProperty;function Th(e){if(!ji(e))return Eh(e);var t=[];for(var r in Object(e))xh.call(e,r)&&r!="constructor"&&t.push(r);return t}function rn(e){return lr(e)?la(e):Th(e)}function Oh(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var Ah=Object.prototype,$h=Ah.hasOwnProperty;function Rh(e){if(!ct(e))return Oh(e);var t=ji(e),r=[];for(var n in e)n=="constructor"&&(t||!$h.call(e,n))||r.push(n);return r}function Ci(e){return lr(e)?la(e,!0):Rh(e)}var jh=oa(function(e,t,r,n){na(t,Ci(t),e,n)});const Ms=jh;var Dh=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ch=/^\w*$/;function Pi(e,t){if(pt(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||ur(e)?!0:Ch.test(e)||!Dh.test(e)||t!=null&&e in Object(t)}var Ph=fe(Object,"create");const er=Ph;function Bh(){this.__data__=er?er(null):{},this.size=0}function Nh(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var kh="__lodash_hash_undefined__",Ih=Object.prototype,Mh=Ih.hasOwnProperty;function Fh(e){var t=this.__data__;if(er){var r=t[e];return r===kh?void 0:r}return Mh.call(t,e)?t[e]:void 0}var Lh=Object.prototype,Vh=Lh.hasOwnProperty;function Uh(e){var t=this.__data__;return er?t[e]!==void 0:Vh.call(t,e)}var Hh="__lodash_hash_undefined__";function zh(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=er&&t===void 0?Hh:t,this}function te(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}te.prototype.clear=Bh,te.prototype.delete=Nh,te.prototype.get=Fh,te.prototype.has=Uh,te.prototype.set=zh;function qh(){this.__data__=[],this.size=0}function nn(e,t){for(var r=e.length;r--;)if(Ne(e[r][0],t))return r;return-1}var Kh=Array.prototype,Jh=Kh.splice;function Wh(e){var t=this.__data__,r=nn(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():Jh.call(t,r,1),--this.size,!0}function Yh(e){var t=this.__data__,r=nn(t,e);return r<0?void 0:t[r][1]}function Gh(e){return nn(this.__data__,e)>-1}function Zh(e,t){var r=this.__data__,n=nn(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}function It(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}It.prototype.clear=qh,It.prototype.delete=Wh,It.prototype.get=Yh,It.prototype.has=Gh,It.prototype.set=Zh;var Qh=fe($t,"Map");const rr=Qh;function Xh(){this.size=0,this.__data__={hash:new te,map:new(rr||It),string:new te}}function tp(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function sn(e,t){var r=e.__data__;return tp(t)?r[typeof t=="string"?"string":"hash"]:r.map}function ep(e){var t=sn(this,e).delete(e);return this.size-=t?1:0,t}function rp(e){return sn(this,e).get(e)}function np(e){return sn(this,e).has(e)}function ip(e,t){var r=sn(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}function Mt(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Mt.prototype.clear=Xh,Mt.prototype.delete=ep,Mt.prototype.get=rp,Mt.prototype.has=np,Mt.prototype.set=ip;var sp="Expected a function";function Bi(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(sp);var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],s=r.cache;if(s.has(i))return s.get(i);var o=e.apply(this,n);return r.cache=s.set(i,o)||s,o};return r.cache=new(Bi.Cache||Mt),r}Bi.Cache=Mt;var op=500;function ap(e){var t=Bi(e,function(n){return r.size===op&&r.clear(),n}),r=t.cache;return t}var cp=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,up=/\\(\\)?/g,lp=ap(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(cp,function(r,n,i,s){t.push(i?s.replace(up,"$1"):n||r)}),t});const fp=lp;function he(e){return e==null?"":ea(e)}function Ni(e,t){return pt(e)?e:Pi(e,t)?[e]:fp(he(e))}function hr(e){if(typeof e=="string"||ur(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function ha(e,t){t=Ni(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[hr(t[r++])];return r&&r==n?e:void 0}function pa(e,t,r){var n=e==null?void 0:ha(e,t);return n===void 0?r:n}function hp(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}var pp=fa(Object.getPrototypeOf,Object);const da=pp;var dp="[object Object]",mp=Function.prototype,gp=Object.prototype,ma=mp.toString,vp=gp.hasOwnProperty,yp=ma.call(Object);function ki(e){if(!at(e)||Et(e)!=dp)return!1;var t=da(e);if(t===null)return!0;var r=vp.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&ma.call(r)==yp}var bp="[object DOMException]",_p="[object Error]";function ga(e){if(!at(e))return!1;var t=Et(e);return t==_p||t==bp||typeof e.message=="string"&&typeof e.name=="string"&&!ki(e)}var wp=ia(function(e,t){try{return ra(e,void 0,t)}catch(r){return ga(r)?r:new Error(r)}});const Ep=wp;function Sp(e,t,r){var n=-1,i=e.length;t<0&&(t=-t>i?0:i+t),r=r>i?i:r,r<0&&(r+=i),i=t>r?0:r-t>>>0,t>>>=0;for(var s=Array(i);++n<i;)s[n]=e[n+t];return s}function xp(e,t,r){var n=e.length;return r=r===void 0?n:r,Sp(e,t,r)}var Tp="\\ud800-\\udfff",Op="\\u0300-\\u036f",Ap="\\ufe20-\\ufe2f",$p="\\u20d0-\\u20ff",Rp=Op+Ap+$p,jp="\\ufe0e\\ufe0f",Dp="\\u200d",Cp=RegExp("["+Dp+Tp+Rp+jp+"]");function va(e){return Cp.test(e)}function Pp(e){return e.split("")}var ya="\\ud800-\\udfff",Bp="\\u0300-\\u036f",Np="\\ufe20-\\ufe2f",kp="\\u20d0-\\u20ff",Ip=Bp+Np+kp,Mp="\\ufe0e\\ufe0f",Fp="["+ya+"]",Kn="["+Ip+"]",Jn="\\ud83c[\\udffb-\\udfff]",Lp="(?:"+Kn+"|"+Jn+")",ba="[^"+ya+"]",_a="(?:\\ud83c[\\udde6-\\uddff]){2}",wa="[\\ud800-\\udbff][\\udc00-\\udfff]",Vp="\\u200d",Ea=Lp+"?",Sa="["+Mp+"]?",Up="(?:"+Vp+"(?:"+[ba,_a,wa].join("|")+")"+Sa+Ea+")*",Hp=Sa+Ea+Up,zp="(?:"+[ba+Kn+"?",Kn,_a,wa,Fp].join("|")+")",qp=RegExp(Jn+"(?="+Jn+")|"+zp+Hp,"g");function Kp(e){return e.match(qp)||[]}function Jp(e){return va(e)?Kp(e):Pp(e)}function xa(e){return function(t){t=he(t);var r=va(t)?Jp(t):void 0,n=r?r[0]:t.charAt(0),i=r?xp(r,1).join(""):t.slice(1);return n[e]()+i}}var Wp=xa("toUpperCase");const on=Wp;function Yp(e){return on(he(e).toLowerCase())}function Gp(e,t,r,n){var i=-1,s=e==null?0:e.length;for(n;++i<s;)r=t(r,e[i],i,e);return r}function Ta(e){return function(t){return e==null?void 0:e[t]}}var Zp={À:"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"},Qp=Ta(Zp);const Xp=Qp;var td=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ed="\\u0300-\\u036f",rd="\\ufe20-\\ufe2f",nd="\\u20d0-\\u20ff",id=ed+rd+nd,sd="["+id+"]",od=RegExp(sd,"g");function ad(e){return e=he(e),e&&e.replace(td,Xp).replace(od,"")}var cd=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function ud(e){return e.match(cd)||[]}var ld=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function fd(e){return ld.test(e)}var Oa="\\ud800-\\udfff",hd="\\u0300-\\u036f",pd="\\ufe20-\\ufe2f",dd="\\u20d0-\\u20ff",md=hd+pd+dd,Aa="\\u2700-\\u27bf",$a="a-z\\xdf-\\xf6\\xf8-\\xff",gd="\\xac\\xb1\\xd7\\xf7",vd="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",yd="\\u2000-\\u206f",bd=" \\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",Ra="A-Z\\xc0-\\xd6\\xd8-\\xde",_d="\\ufe0e\\ufe0f",ja=gd+vd+yd+bd,Da="['’]",Fs="["+ja+"]",wd="["+md+"]",Ca="\\d+",Ed="["+Aa+"]",Pa="["+$a+"]",Ba="[^"+Oa+ja+Ca+Aa+$a+Ra+"]",Sd="\\ud83c[\\udffb-\\udfff]",xd="(?:"+wd+"|"+Sd+")",Td="[^"+Oa+"]",Na="(?:\\ud83c[\\udde6-\\uddff]){2}",ka="[\\ud800-\\udbff][\\udc00-\\udfff]",ye="["+Ra+"]",Od="\\u200d",Ls="(?:"+Pa+"|"+Ba+")",Ad="(?:"+ye+"|"+Ba+")",Vs="(?:"+Da+"(?:d|ll|m|re|s|t|ve))?",Us="(?:"+Da+"(?:D|LL|M|RE|S|T|VE))?",Ia=xd+"?",Ma="["+_d+"]?",$d="(?:"+Od+"(?:"+[Td,Na,ka].join("|")+")"+Ma+Ia+")*",Rd="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",jd="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Dd=Ma+Ia+$d,Cd="(?:"+[Ed,Na,ka].join("|")+")"+Dd,Pd=RegExp([ye+"?"+Pa+"+"+Vs+"(?="+[Fs,ye,"$"].join("|")+")",Ad+"+"+Us+"(?="+[Fs,ye+Ls,"$"].join("|")+")",ye+"?"+Ls+"+"+Vs,ye+"+"+Us,jd,Rd,Ca,Cd].join("|"),"g");function Bd(e){return e.match(Pd)||[]}function Nd(e,t,r){return e=he(e),t=t,t===void 0?fd(e)?Bd(e):ud(e):e.match(t)||[]}var kd="['’]",Id=RegExp(kd,"g");function Ii(e){return function(t){return Gp(Nd(ad(t).replace(Id,"")),e,"")}}var Md=Ii(function(e,t,r){return t=t.toLowerCase(),e+(r?Yp(t):t)});const Nt=Md;function Fd(){this.__data__=new It,this.size=0}function Ld(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function Vd(e){return this.__data__.get(e)}function Ud(e){return this.__data__.has(e)}var Hd=200;function zd(e,t){var r=this.__data__;if(r instanceof It){var n=r.__data__;if(!rr||n.length<Hd-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new Mt(n)}return r.set(e,t),this.size=r.size,this}function At(e){var t=this.__data__=new It(e);this.size=t.size}At.prototype.clear=Fd,At.prototype.delete=Ld,At.prototype.get=Vd,At.prototype.has=Ud,At.prototype.set=zd;var Fa=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Hs=Fa&&typeof module=="object"&&module&&!module.nodeType&&module,qd=Hs&&Hs.exports===Fa,zs=qd?$t.Buffer:void 0,qs=zs?zs.allocUnsafe:void 0;function La(e,t){if(t)return e.slice();var r=e.length,n=qs?qs(r):new e.constructor(r);return e.copy(n),n}function Kd(e,t){for(var r=-1,n=e==null?0:e.length,i=0,s=[];++r<n;){var o=e[r];t(o,r,e)&&(s[i++]=o)}return s}function Jd(){return[]}var Wd=Object.prototype,Yd=Wd.propertyIsEnumerable,Ks=Object.getOwnPropertySymbols,Gd=Ks?function(e){return e==null?[]:(e=Object(e),Kd(Ks(e),function(t){return Yd.call(e,t)}))}:Jd;const Zd=Gd;function Qd(e,t,r){var n=t(e);return pt(e)?n:hp(n,r(e))}function Wn(e){return Qd(e,rn,Zd)}var Xd=fe($t,"DataView");const Yn=Xd;var tm=fe($t,"Promise");const Gn=tm;var em=fe($t,"Set");const Zn=em;var Js="[object Map]",rm="[object Object]",Ws="[object Promise]",Ys="[object Set]",Gs="[object WeakMap]",Zs="[object DataView]",nm=le(Yn),im=le(rr),sm=le(Gn),om=le(Zn),am=le(qn),Qt=Et;(Yn&&Qt(new Yn(new ArrayBuffer(1)))!=Zs||rr&&Qt(new rr)!=Js||Gn&&Qt(Gn.resolve())!=Ws||Zn&&Qt(new Zn)!=Ys||qn&&Qt(new qn)!=Gs)&&(Qt=function(e){var t=Et(e),r=t==rm?e.constructor:void 0,n=r?le(r):"";if(n)switch(n){case nm:return Zs;case im:return Js;case sm:return Ws;case om:return Ys;case am:return Gs}return t});const nr=Qt;var cm=Object.prototype,um=cm.hasOwnProperty;function lm(e){var t=e.length,r=new e.constructor(t);return t&&typeof e[0]=="string"&&um.call(e,"index")&&(r.index=e.index,r.input=e.input),r}var fm=$t.Uint8Array;const zr=fm;function Mi(e){var t=new e.constructor(e.byteLength);return new zr(t).set(new zr(e)),t}function hm(e,t){var r=Mi(e.buffer);return new e.constructor(r,e.byteOffset,e.byteLength)}var pm=/\w*$/;function dm(e){var t=new e.constructor(e.source,pm.exec(e));return t.lastIndex=e.lastIndex,t}var Qs=Ct?Ct.prototype:void 0,Xs=Qs?Qs.valueOf:void 0;function mm(e){return Xs?Object(Xs.call(e)):{}}function Va(e,t){var r=t?Mi(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}var gm="[object Boolean]",vm="[object Date]",ym="[object Map]",bm="[object Number]",_m="[object RegExp]",wm="[object Set]",Em="[object String]",Sm="[object Symbol]",xm="[object ArrayBuffer]",Tm="[object DataView]",Om="[object Float32Array]",Am="[object Float64Array]",$m="[object Int8Array]",Rm="[object Int16Array]",jm="[object Int32Array]",Dm="[object Uint8Array]",Cm="[object Uint8ClampedArray]",Pm="[object Uint16Array]",Bm="[object Uint32Array]";function Nm(e,t,r){var n=e.constructor;switch(t){case xm:return Mi(e);case gm:case vm:return new n(+e);case Tm:return hm(e);case Om:case Am:case $m:case Rm:case jm:case Dm:case Cm:case Pm:case Bm:return Va(e,r);case ym:return new n;case bm:case Em:return new n(e);case _m:return dm(e);case wm:return new n;case Sm:return mm(e)}}function Ua(e){return typeof e.constructor=="function"&&!ji(e)?mf(da(e)):{}}var km="[object Map]";function Im(e){return at(e)&&nr(e)==km}var to=Pt&&Pt.isMap,Mm=to?fr(to):Im;const Fm=Mm;var Lm="[object Set]";function Vm(e){return at(e)&&nr(e)==Lm}var eo=Pt&&Pt.isSet,Um=eo?fr(eo):Vm;const Hm=Um;var zm=1,Ha="[object Arguments]",qm="[object Array]",Km="[object Boolean]",Jm="[object Date]",Wm="[object Error]",za="[object Function]",Ym="[object GeneratorFunction]",Gm="[object Map]",Zm="[object Number]",qa="[object Object]",Qm="[object RegExp]",Xm="[object Set]",tg="[object String]",eg="[object Symbol]",rg="[object WeakMap]",ng="[object ArrayBuffer]",ig="[object DataView]",sg="[object Float32Array]",og="[object Float64Array]",ag="[object Int8Array]",cg="[object Int16Array]",ug="[object Int32Array]",lg="[object Uint8Array]",fg="[object Uint8ClampedArray]",hg="[object Uint16Array]",pg="[object Uint32Array]",Q={};Q[Ha]=Q[qm]=Q[ng]=Q[ig]=Q[Km]=Q[Jm]=Q[sg]=Q[og]=Q[ag]=Q[cg]=Q[ug]=Q[Gm]=Q[Zm]=Q[qa]=Q[Qm]=Q[Xm]=Q[tg]=Q[eg]=Q[lg]=Q[fg]=Q[hg]=Q[pg]=!0,Q[Wm]=Q[za]=Q[rg]=!1;function Rr(e,t,r,n,i,s){var o,a=t&zm;if(o!==void 0)return o;if(!ct(e))return e;var u=pt(e);if(u)o=lm(e);else{var c=nr(e),l=c==za||c==Ym;if(Re(e))return La(e,a);if(c==qa||c==Ha||l&&!i)o=l?{}:Ua(e);else{if(!Q[c])return i?e:{};o=Nm(e,c,a)}}s||(s=new At);var f=s.get(e);if(f)return f;s.set(e,o),Hm(e)?e.forEach(function(m){o.add(Rr(m,t,r,m,e,s))}):Fm(e)&&e.forEach(function(m,d){o.set(d,Rr(m,t,r,d,e,s))});var p=Wn,h=u?void 0:p(e);return $f(h||e,function(m,d){h&&(d=m,m=e[d]),$i(o,d,Rr(m,t,r,d,e,s))}),o}var dg=1,mg=4;function ir(e){return Rr(e,dg|mg)}var gg="__lodash_hash_undefined__";function vg(e){return this.__data__.set(e,gg),this}function yg(e){return this.__data__.has(e)}function jr(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new Mt;++t<r;)this.add(e[t])}jr.prototype.add=jr.prototype.push=vg,jr.prototype.has=yg;function bg(e,t){for(var r=-1,n=e==null?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}function _g(e,t){return e.has(t)}var wg=1,Eg=2;function Ka(e,t,r,n,i,s){var o=r&wg,a=e.length,u=t.length;if(a!=u&&!(o&&u>a))return!1;var c=s.get(e),l=s.get(t);if(c&&l)return c==t&&l==e;var f=-1,p=!0,h=r&Eg?new jr:void 0;for(s.set(e,t),s.set(t,e);++f<a;){var m=e[f],d=t[f];if(n)var b=o?n(d,m,f,t,e,s):n(m,d,f,e,t,s);if(b!==void 0){if(b)continue;p=!1;break}if(h){if(!bg(t,function(E,g){if(!_g(h,g)&&(m===E||i(m,E,r,n,s)))return h.push(g)})){p=!1;break}}else if(!(m===d||i(m,d,r,n,s))){p=!1;break}}return s.delete(e),s.delete(t),p}function Sg(e){var t=-1,r=Array(e.size);return e.forEach(function(n,i){r[++t]=[i,n]}),r}function xg(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var Tg=1,Og=2,Ag="[object Boolean]",$g="[object Date]",Rg="[object Error]",jg="[object Map]",Dg="[object Number]",Cg="[object RegExp]",Pg="[object Set]",Bg="[object String]",Ng="[object Symbol]",kg="[object ArrayBuffer]",Ig="[object DataView]",ro=Ct?Ct.prototype:void 0,An=ro?ro.valueOf:void 0;function Mg(e,t,r,n,i,s,o){switch(r){case Ig:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case kg:return!(e.byteLength!=t.byteLength||!s(new zr(e),new zr(t)));case Ag:case $g:case Dg:return Ne(+e,+t);case Rg:return e.name==t.name&&e.message==t.message;case Cg:case Bg:return e==t+"";case jg:var a=Sg;case Pg:var u=n&Tg;if(a||(a=xg),e.size!=t.size&&!u)return!1;var c=o.get(e);if(c)return c==t;n|=Og,o.set(e,t);var l=Ka(a(e),a(t),n,i,s,o);return o.delete(e),l;case Ng:if(An)return An.call(e)==An.call(t)}return!1}var Fg=1,Lg=Object.prototype,Vg=Lg.hasOwnProperty;function Ug(e,t,r,n,i,s){var o=r&Fg,a=Wn(e),u=a.length,c=Wn(t),l=c.length;if(u!=l&&!o)return!1;for(var f=u;f--;){var p=a[f];if(!(o?p in t:Vg.call(t,p)))return!1}var h=s.get(e),m=s.get(t);if(h&&m)return h==t&&m==e;var d=!0;s.set(e,t),s.set(t,e);for(var b=o;++f<u;){p=a[f];var E=e[p],g=t[p];if(n)var y=o?n(g,E,p,t,e,s):n(E,g,p,e,t,s);if(!(y===void 0?E===g||i(E,g,r,n,s):y)){d=!1;break}b||(b=p=="constructor")}if(d&&!b){var _=e.constructor,S=t.constructor;_!=S&&"constructor"in e&&"constructor"in t&&!(typeof _=="function"&&_ instanceof _&&typeof S=="function"&&S instanceof S)&&(d=!1)}return s.delete(e),s.delete(t),d}var Hg=1,no="[object Arguments]",io="[object Array]",yr="[object Object]",zg=Object.prototype,so=zg.hasOwnProperty;function qg(e,t,r,n,i,s){var o=pt(e),a=pt(t),u=o?io:nr(e),c=a?io:nr(t);u=u==no?yr:u,c=c==no?yr:c;var l=u==yr,f=c==yr,p=u==c;if(p&&Re(e)){if(!Re(t))return!1;o=!0,l=!1}if(p&&!l)return s||(s=new At),o||Di(e)?Ka(e,t,r,n,i,s):Mg(e,t,u,r,n,i,s);if(!(r&Hg)){var h=l&&so.call(e,"__wrapped__"),m=f&&so.call(t,"__wrapped__");if(h||m){var d=h?e.value():e,b=m?t.value():t;return s||(s=new At),i(d,b,r,n,s)}}return p?(s||(s=new At),Ug(e,t,r,n,i,s)):!1}function an(e,t,r,n,i){return e===t?!0:e==null||t==null||!at(e)&&!at(t)?e!==e&&t!==t:qg(e,t,r,n,an,i)}var Kg=1,Jg=2;function Wg(e,t,r,n){var i=r.length,s=i;if(e==null)return!s;for(e=Object(e);i--;){var o=r[i];if(o[2]?o[1]!==e[o[0]]:!(o[0]in e))return!1}for(;++i<s;){o=r[i];var a=o[0],u=e[a],c=o[1];if(o[2]){if(u===void 0&&!(a in e))return!1}else{var l=new At,f;if(!(f===void 0?an(c,u,Kg|Jg,n,l):f))return!1}}return!0}function Ja(e){return e===e&&!ct(e)}function Yg(e){for(var t=rn(e),r=t.length;r--;){var n=t[r],i=e[n];t[r]=[n,i,Ja(i)]}return t}function Wa(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}function Gg(e){var t=Yg(e);return t.length==1&&t[0][2]?Wa(t[0][0],t[0][1]):function(r){return r===e||Wg(r,e,t)}}function Zg(e,t){return e!=null&&t in Object(e)}function Qg(e,t,r){t=Ni(t,e);for(var n=-1,i=t.length,s=!1;++n<i;){var o=hr(t[n]);if(!(s=e!=null&&r(e,o)))break;e=e[o]}return s||++n!=i?s:(i=e==null?0:e.length,!!i&&Ri(i)&&tn(o,i)&&(pt(e)||Hr(e)))}function Xg(e,t){return e!=null&&Qg(e,t,Zg)}var tv=1,ev=2;function rv(e,t){return Pi(e)&&Ja(t)?Wa(hr(e),t):function(r){var n=pa(r,e);return n===void 0&&n===t?Xg(r,e):an(t,n,tv|ev)}}function nv(e){return function(t){return t==null?void 0:t[e]}}function iv(e){return function(t){return ha(t,e)}}function sv(e){return Pi(e)?nv(hr(e)):iv(e)}function ov(e){return typeof e=="function"?e:e==null?Ai:typeof e=="object"?pt(e)?rv(e[0],e[1]):Gg(e):sv(e)}function av(e,t,r,n){for(var i=-1,s=e==null?0:e.length;++i<s;){var o=e[i];t(n,o,r(o),e)}return n}function cv(e){return function(t,r,n){for(var i=-1,s=Object(t),o=n(t),a=o.length;a--;){var u=o[++i];if(r(s[u],u,s)===!1)break}return t}}var uv=cv();const Ya=uv;function lv(e,t){return e&&Ya(e,t,rn)}function fv(e,t){return function(r,n){if(r==null)return r;if(!lr(r))return e(r,n);for(var i=r.length,s=-1,o=Object(r);++s<i&&n(o[s],s,o)!==!1;);return r}}var hv=fv(lv);const pv=hv;function dv(e,t,r,n){return pv(e,function(i,s,o){t(n,i,r(i),o)}),n}function mv(e,t){return function(r,n){var i=pt(r)?av:dv,s={};return i(r,e,ov(n),s)}}var gv=function(){return $t.Date.now()};const $n=gv;var vv="Expected a function",yv=Math.max,bv=Math.min;function Fi(e,t,r){var n,i,s,o,a,u,c=0,l=!1,f=!1,p=!0;if(typeof e!="function")throw new TypeError(vv);t=js(t)||0,ct(r)&&(l=!!r.leading,f="maxWait"in r,s=f?yv(js(r.maxWait)||0,t):s,p="trailing"in r?!!r.trailing:p);function h(v){var x=n,A=i;return n=i=void 0,c=v,o=e.apply(A,x),o}function m(v){return c=v,a=setTimeout(E,t),l?h(v):o}function d(v){var x=v-u,A=v-c,V=t-x;return f?bv(V,s-A):V}function b(v){var x=v-u,A=v-c;return u===void 0||x>=t||x<0||f&&A>=s}function E(){var v=$n();if(b(v))return g(v);a=setTimeout(E,d(v))}function g(v){return a=void 0,p&&n?h(v):(n=i=void 0,o)}function y(){a!==void 0&&clearTimeout(a),c=0,n=u=i=a=void 0}function _(){return a===void 0?o:g($n())}function S(){var v=$n(),x=b(v);if(n=arguments,i=this,u=v,x){if(a===void 0)return m(u);if(f)return clearTimeout(a),a=setTimeout(E,t),h(u)}return a===void 0&&(a=setTimeout(E,t)),o}return S.cancel=y,S.flush=_,S}function Qn(e,t,r){(r!==void 0&&!Ne(e[t],r)||r===void 0&&!(t in e))&&en(e,t,r)}function _v(e){return at(e)&&lr(e)}function Xn(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}function wv(e){return na(e,Ci(e))}function Ev(e,t,r,n,i,s,o){var a=Xn(e,r),u=Xn(t,r),c=o.get(u);if(c){Qn(e,r,c);return}var l=s?s(a,u,r+"",e,t,o):void 0,f=l===void 0;if(f){var p=pt(u),h=!p&&Re(u),m=!p&&!h&&Di(u);l=u,p||h||m?pt(a)?l=a:_v(a)?l=vf(a):h?(f=!1,l=La(u,!0)):m?(f=!1,l=Va(u,!0)):l=[]:ki(u)||Hr(u)?(l=a,Hr(a)?l=wv(a):(!ct(a)||ae(a))&&(l=Ua(u))):f=!1}f&&(o.set(u,l),i(l,u,n,s,o),o.delete(u)),Qn(e,r,l)}function Ga(e,t,r,n,i){e!==t&&Ya(t,function(s,o){if(i||(i=new At),ct(s))Ev(e,t,o,r,Ga,n,i);else{var a=n?n(Xn(e,o),s,o+"",e,t,i):void 0;a===void 0&&(a=s),Qn(e,o,a)}},Ci)}var Sv={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},xv=Ta(Sv);const Tv=xv;var Za=/[&<>"']/g,Ov=RegExp(Za.source);function Av(e){return e=he(e),e&&Ov.test(e)?e.replace(Za,Tv):e}var $v=Object.prototype,Rv=$v.hasOwnProperty,jv=mv(function(e,t,r){Rv.call(e,r)?e[r].push(t):en(e,r,[t])});const Qa=jv;var Dv="[object String]";function bt(e){return typeof e=="string"||!pt(e)&&at(e)&&Et(e)==Dv}function Cv(e,t){return ta(t,function(r){return e[r]})}var Pv="[object ArrayBuffer]";function Bv(e){return at(e)&&Et(e)==Pv}var oo=Pt&&Pt.isArrayBuffer,Nv=oo?fr(oo):Bv;const kv=Nv;var Iv="[object Boolean]";function Mv(e){return e===!0||e===!1||at(e)&&Et(e)==Iv}var Fv="[object Date]";function Lv(e){return at(e)&&Et(e)==Fv}var ao=Pt&&Pt.isDate,Vv=ao?fr(ao):Lv;const Uv=Vv;function Hv(e,t){return an(e,t)}var zv="[object Number]";function Xa(e){return typeof e=="number"||at(e)&&Et(e)==zv}function qv(e){return Xa(e)&&e!=+e}function Kv(e){return e===null}function Jv(e){return e===void 0}var Wv=Ii(function(e,t,r){return e+(r?"-":"")+t.toLowerCase()});const Yv=Wv;var Gv=xa("toLowerCase");const Zv=Gv;var Qv=oa(function(e,t,r){Ga(e,t,r)});const Dt=Qv;function Xv(e,t,r,n){if(!ct(e))return e;t=Ni(t,e);for(var i=-1,s=t.length,o=s-1,a=e;a!=null&&++i<s;){var u=hr(t[i]),c=r;if(u==="__proto__"||u==="constructor"||u==="prototype")return e;if(i!=o){var l=a[u];c=void 0,c===void 0&&(c=ct(l)?l:tn(t[i+1])?[]:{})}$i(a,u,c),a=a[u]}return e}function ty(e,t,r){return e==null?e:Xv(e,t,r)}var ey=Ii(function(e,t,r){return e+(r?"_":"")+t.toLowerCase()});const ry=ey;var tc=Object.prototype,ny=tc.hasOwnProperty;function co(e,t,r,n){return e===void 0||Ne(e,tc[r])&&!ny.call(n,r)?t:e}var iy={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"};function sy(e){return"\\"+iy[e]}var oy=/<%=([\s\S]+?)%>/g;const ec=oy;var ay=/<%-([\s\S]+?)%>/g;const cy=ay;var uy=/<%([\s\S]+?)%>/g;const ly=uy;var fy={escape:cy,evaluate:ly,interpolate:ec,variable:"",imports:{_:{escape:Av}}};const uo=fy;var hy="Invalid `variable` option passed into `_.template`",py=/\b__p \+= '';/g,dy=/\b(__p \+=) '' \+/g,my=/(__e\(.*?\)|\b__t\)) \+\n'';/g,gy=/[()=,{}\[\]\/\s]/,vy=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,br=/($^)/,yy=/['\n\r\u2028\u2029\\]/g,by=Object.prototype,lo=by.hasOwnProperty;function rc(e,t,r){var n=uo.imports._.templateSettings||uo;r&&sa(e,t,r)&&(t=void 0),e=he(e),t=Ms({},t,n,co);var i=Ms({},t.imports,n.imports,co),s=rn(i),o=Cv(i,s),a,u,c=0,l=t.interpolate||br,f="__p += '",p=RegExp((t.escape||br).source+"|"+l.source+"|"+(l===ec?vy:br).source+"|"+(t.evaluate||br).source+"|$","g"),h=lo.call(t,"sourceURL")?"//# sourceURL="+(t.sourceURL+"").replace(/\s/g," ")+`
3
3
  `:"";e.replace(p,function(b,E,g,y,_,S){return g||(g=y),f+=e.slice(c,S).replace(yy,sy),E&&(a=!0,f+=`' +
4
4
  __e(`+E+`) +
5
5
  '`),_&&(u=!0,f+=`';
@@ -16,14 +16,14 @@ __p += '`),g&&(f+=`' +
16
16
  function print() { __p += __j.call(arguments, '') }
17
17
  `:`;
18
18
  `)+f+`return __p
19
- }`;var d=Ep(function(){return Function(s,h+"return "+f).apply(void 0,o)});if(d.source=f,ga(d))throw d;return d}var _y="Expected a function";function nc(e,t,r){var n=!0,i=!0;if(typeof e!="function")throw new TypeError(_y);return ct(r)&&(n="leading"in r?!!r.leading:n,i="trailing"in r?!!r.trailing:i),Fi(e,t,{leading:n,maxWait:t,trailing:i})}function ti(e){return sn(Bt(e))}var ft=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Be(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ic={exports:{}};function wy(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var fo={exports:{}},ho;function Jt(){return ho||(ho=1,function(e,t){(function(r,n){e.exports=n()})(ft,function(){var r=r||function(n,i){var s;if(typeof window<"u"&&window.crypto&&(s=window.crypto),typeof self<"u"&&self.crypto&&(s=self.crypto),typeof globalThis<"u"&&globalThis.crypto&&(s=globalThis.crypto),!s&&typeof window<"u"&&window.msCrypto&&(s=window.msCrypto),!s&&typeof ft<"u"&&ft.crypto&&(s=ft.crypto),!s&&typeof wy=="function")try{s=require("crypto")}catch(g){}var o=function(){if(s){if(typeof s.getRandomValues=="function")try{return s.getRandomValues(new Uint32Array(1))[0]}catch(g){}if(typeof s.randomBytes=="function")try{return s.randomBytes(4).readInt32LE()}catch(g){}}throw new Error("Native crypto module could not be used to get secure random number.")},a=Object.create||function(){function g(){}return function(y){var _;return g.prototype=y,_=new g,g.prototype=null,_}}(),u={},c=u.lib={},l=c.Base=function(){return{extend:function(g){var y=a(this);return g&&y.mixIn(g),(!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 g=this.extend();return g.init.apply(g,arguments),g},init:function(){},mixIn:function(g){for(var y in g)g.hasOwnProperty(y)&&(this[y]=g[y]);g.hasOwnProperty("toString")&&(this.toString=g.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),f=c.WordArray=l.extend({init:function(g,y){g=this.words=g||[],y!=i?this.sigBytes=y:this.sigBytes=g.length*4},toString:function(g){return(g||h).stringify(this)},concat:function(g){var y=this.words,_=g.words,S=this.sigBytes,v=g.sigBytes;if(this.clamp(),S%4)for(var x=0;x<v;x++){var $=_[x>>>2]>>>24-x%4*8&255;y[S+x>>>2]|=$<<24-(S+x)%4*8}else for(var V=0;V<v;V+=4)y[S+V>>>2]=_[V>>>2];return this.sigBytes+=v,this},clamp:function(){var g=this.words,y=this.sigBytes;g[y>>>2]&=4294967295<<32-y%4*8,g.length=n.ceil(y/4)},clone:function(){var g=l.clone.call(this);return g.words=this.words.slice(0),g},random:function(g){for(var y=[],_=0;_<g;_+=4)y.push(o());return new f.init(y,g)}}),p=u.enc={},h=p.Hex={stringify:function(g){for(var y=g.words,_=g.sigBytes,S=[],v=0;v<_;v++){var x=y[v>>>2]>>>24-v%4*8&255;S.push((x>>>4).toString(16)),S.push((x&15).toString(16))}return S.join("")},parse:function(g){for(var y=g.length,_=[],S=0;S<y;S+=2)_[S>>>3]|=parseInt(g.substr(S,2),16)<<24-S%8*4;return new f.init(_,y/2)}},m=p.Latin1={stringify:function(g){for(var y=g.words,_=g.sigBytes,S=[],v=0;v<_;v++){var x=y[v>>>2]>>>24-v%4*8&255;S.push(String.fromCharCode(x))}return S.join("")},parse:function(g){for(var y=g.length,_=[],S=0;S<y;S++)_[S>>>2]|=(g.charCodeAt(S)&255)<<24-S%4*8;return new f.init(_,y)}},d=p.Utf8={stringify:function(g){try{return decodeURIComponent(escape(m.stringify(g)))}catch(y){throw new Error("Malformed UTF-8 data")}},parse:function(g){return m.parse(unescape(encodeURIComponent(g)))}},b=c.BufferedBlockAlgorithm=l.extend({reset:function(){this._data=new f.init,this._nDataBytes=0},_append:function(g){typeof g=="string"&&(g=d.parse(g)),this._data.concat(g),this._nDataBytes+=g.sigBytes},_process:function(g){var y,_=this._data,S=_.words,v=_.sigBytes,x=this.blockSize,$=x*4,V=v/$;g?V=n.ceil(V):V=n.max((V|0)-this._minBufferSize,0);var w=V*x,T=n.min(w*4,v);if(w){for(var F=0;F<w;F+=x)this._doProcessBlock(S,F);y=S.splice(0,w),_.sigBytes-=T}return new f.init(y,T)},clone:function(){var g=l.clone.call(this);return g._data=this._data.clone(),g},_minBufferSize:0});c.Hasher=b.extend({cfg:l.extend(),init:function(g){this.cfg=this.cfg.extend(g),this.reset()},reset:function(){b.reset.call(this),this._doReset()},update:function(g){return this._append(g),this._process(),this},finalize:function(g){g&&this._append(g);var y=this._doFinalize();return y},blockSize:16,_createHelper:function(g){return function(y,_){return new g.init(_).finalize(y)}},_createHmacHelper:function(g){return function(y,_){return new E.HMAC.init(g,_).finalize(y)}}});var E=u.algo={};return u}(Math);return r})}(fo)),fo.exports}(function(e,t){(function(r,n){e.exports=n(Jt())})(ft,function(r){return function(n){var i=r,s=i.lib,o=s.WordArray,a=s.Hasher,u=i.algo,c=[];(function(){for(var d=0;d<64;d++)c[d]=n.abs(n.sin(d+1))*4294967296|0})();var l=u.MD5=a.extend({_doReset:function(){this._hash=new o.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(d,b){for(var E=0;E<16;E++){var g=b+E,y=d[g];d[g]=(y<<8|y>>>24)&16711935|(y<<24|y>>>8)&4278255360}var _=this._hash.words,S=d[b+0],v=d[b+1],x=d[b+2],$=d[b+3],V=d[b+4],w=d[b+5],T=d[b+6],F=d[b+7],C=d[b+8],M=d[b+9],D=d[b+10],N=d[b+11],H=d[b+12],U=d[b+13],q=d[b+14],K=d[b+15],R=_[0],P=_[1],B=_[2],k=_[3];R=f(R,P,B,k,S,7,c[0]),k=f(k,R,P,B,v,12,c[1]),B=f(B,k,R,P,x,17,c[2]),P=f(P,B,k,R,$,22,c[3]),R=f(R,P,B,k,V,7,c[4]),k=f(k,R,P,B,w,12,c[5]),B=f(B,k,R,P,T,17,c[6]),P=f(P,B,k,R,F,22,c[7]),R=f(R,P,B,k,C,7,c[8]),k=f(k,R,P,B,M,12,c[9]),B=f(B,k,R,P,D,17,c[10]),P=f(P,B,k,R,N,22,c[11]),R=f(R,P,B,k,H,7,c[12]),k=f(k,R,P,B,U,12,c[13]),B=f(B,k,R,P,q,17,c[14]),P=f(P,B,k,R,K,22,c[15]),R=p(R,P,B,k,v,5,c[16]),k=p(k,R,P,B,T,9,c[17]),B=p(B,k,R,P,N,14,c[18]),P=p(P,B,k,R,S,20,c[19]),R=p(R,P,B,k,w,5,c[20]),k=p(k,R,P,B,D,9,c[21]),B=p(B,k,R,P,K,14,c[22]),P=p(P,B,k,R,V,20,c[23]),R=p(R,P,B,k,M,5,c[24]),k=p(k,R,P,B,q,9,c[25]),B=p(B,k,R,P,$,14,c[26]),P=p(P,B,k,R,C,20,c[27]),R=p(R,P,B,k,U,5,c[28]),k=p(k,R,P,B,x,9,c[29]),B=p(B,k,R,P,F,14,c[30]),P=p(P,B,k,R,H,20,c[31]),R=h(R,P,B,k,w,4,c[32]),k=h(k,R,P,B,C,11,c[33]),B=h(B,k,R,P,N,16,c[34]),P=h(P,B,k,R,q,23,c[35]),R=h(R,P,B,k,v,4,c[36]),k=h(k,R,P,B,V,11,c[37]),B=h(B,k,R,P,F,16,c[38]),P=h(P,B,k,R,D,23,c[39]),R=h(R,P,B,k,U,4,c[40]),k=h(k,R,P,B,S,11,c[41]),B=h(B,k,R,P,$,16,c[42]),P=h(P,B,k,R,T,23,c[43]),R=h(R,P,B,k,M,4,c[44]),k=h(k,R,P,B,H,11,c[45]),B=h(B,k,R,P,K,16,c[46]),P=h(P,B,k,R,x,23,c[47]),R=m(R,P,B,k,S,6,c[48]),k=m(k,R,P,B,F,10,c[49]),B=m(B,k,R,P,q,15,c[50]),P=m(P,B,k,R,w,21,c[51]),R=m(R,P,B,k,H,6,c[52]),k=m(k,R,P,B,$,10,c[53]),B=m(B,k,R,P,D,15,c[54]),P=m(P,B,k,R,v,21,c[55]),R=m(R,P,B,k,C,6,c[56]),k=m(k,R,P,B,K,10,c[57]),B=m(B,k,R,P,T,15,c[58]),P=m(P,B,k,R,U,21,c[59]),R=m(R,P,B,k,V,6,c[60]),k=m(k,R,P,B,N,10,c[61]),B=m(B,k,R,P,x,15,c[62]),P=m(P,B,k,R,M,21,c[63]),_[0]=_[0]+R|0,_[1]=_[1]+P|0,_[2]=_[2]+B|0,_[3]=_[3]+k|0},_doFinalize:function(){var d=this._data,b=d.words,E=this._nDataBytes*8,g=d.sigBytes*8;b[g>>>5]|=128<<24-g%32;var y=n.floor(E/4294967296),_=E;b[(g+64>>>9<<4)+15]=(y<<8|y>>>24)&16711935|(y<<24|y>>>8)&4278255360,b[(g+64>>>9<<4)+14]=(_<<8|_>>>24)&16711935|(_<<24|_>>>8)&4278255360,d.sigBytes=(b.length+1)*4,this._process();for(var S=this._hash,v=S.words,x=0;x<4;x++){var $=v[x];v[x]=($<<8|$>>>24)&16711935|($<<24|$>>>8)&4278255360}return S},clone:function(){var d=a.clone.call(this);return d._hash=this._hash.clone(),d}});function f(d,b,E,g,y,_,S){var v=d+(b&E|~b&g)+y+S;return(v<<_|v>>>32-_)+b}function p(d,b,E,g,y,_,S){var v=d+(b&g|E&~g)+y+S;return(v<<_|v>>>32-_)+b}function h(d,b,E,g,y,_,S){var v=d+(b^E^g)+y+S;return(v<<_|v>>>32-_)+b}function m(d,b,E,g,y,_,S){var v=d+(E^(b|~g))+y+S;return(v<<_|v>>>32-_)+b}i.MD5=a._createHelper(l),i.HmacMD5=a._createHmacHelper(l)}(Math),r.MD5})})(ic);var sc=ic.exports;const Ey=Be(sc);var oc={exports:{}};(function(e,t){(function(r,n){e.exports=n(Jt())})(ft,function(r){return function(){var n=r,i=n.lib,s=i.WordArray,o=n.enc;o.Base64={stringify:function(u){var c=u.words,l=u.sigBytes,f=this._map;u.clamp();for(var p=[],h=0;h<l;h+=3)for(var m=c[h>>>2]>>>24-h%4*8&255,d=c[h+1>>>2]>>>24-(h+1)%4*8&255,b=c[h+2>>>2]>>>24-(h+2)%4*8&255,E=m<<16|d<<8|b,g=0;g<4&&h+g*.75<l;g++)p.push(f.charAt(E>>>6*(3-g)&63));var y=f.charAt(64);if(y)for(;p.length%4;)p.push(y);return p.join("")},parse:function(u){var c=u.length,l=this._map,f=this._reverseMap;if(!f){f=this._reverseMap=[];for(var p=0;p<l.length;p++)f[l.charCodeAt(p)]=p}var h=l.charAt(64);if(h){var m=u.indexOf(h);m!==-1&&(c=m)}return a(u,c,f)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function a(u,c,l){for(var f=[],p=0,h=0;h<c;h++)if(h%4){var m=l[u.charCodeAt(h-1)]<<h%4*2,d=l[u.charCodeAt(h)]>>>6-h%4*2,b=m|d;f[p>>>2]|=b<<24-p%4*8,p++}return s.create(f,p)}}(),r.enc.Base64})})(oc);var ac=oc.exports;const cc=Be(ac);var uc={exports:{}};(function(e,t){(function(r,n){e.exports=n(Jt())})(ft,function(r){return r.enc.Utf8})})(uc);var Sy=uc.exports;const Li=Be(Sy);var lc={exports:{}},po={exports:{}},mo={exports:{}},go;function xy(){return go||(go=1,function(e,t){(function(r,n){e.exports=n(Jt())})(ft,function(r){return function(){var n=r,i=n.lib,s=i.WordArray,o=i.Hasher,a=n.algo,u=[],c=a.SHA1=o.extend({_doReset:function(){this._hash=new s.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(l,f){for(var p=this._hash.words,h=p[0],m=p[1],d=p[2],b=p[3],E=p[4],g=0;g<80;g++){if(g<16)u[g]=l[f+g]|0;else{var y=u[g-3]^u[g-8]^u[g-14]^u[g-16];u[g]=y<<1|y>>>31}var _=(h<<5|h>>>27)+E+u[g];g<20?_+=(m&d|~m&b)+1518500249:g<40?_+=(m^d^b)+1859775393:g<60?_+=(m&d|m&b|d&b)-1894007588:_+=(m^d^b)-899497514,E=b,b=d,d=m<<30|m>>>2,m=h,h=_}p[0]=p[0]+h|0,p[1]=p[1]+m|0,p[2]=p[2]+d|0,p[3]=p[3]+b|0,p[4]=p[4]+E|0},_doFinalize:function(){var l=this._data,f=l.words,p=this._nDataBytes*8,h=l.sigBytes*8;return f[h>>>5]|=128<<24-h%32,f[(h+64>>>9<<4)+14]=Math.floor(p/4294967296),f[(h+64>>>9<<4)+15]=p,l.sigBytes=f.length*4,this._process(),this._hash},clone:function(){var l=o.clone.call(this);return l._hash=this._hash.clone(),l}});n.SHA1=o._createHelper(c),n.HmacSHA1=o._createHmacHelper(c)}(),r.SHA1})}(mo)),mo.exports}var vo={exports:{}},yo;function Ty(){return yo||(yo=1,function(e,t){(function(r,n){e.exports=n(Jt())})(ft,function(r){(function(){var n=r,i=n.lib,s=i.Base,o=n.enc,a=o.Utf8,u=n.algo;u.HMAC=s.extend({init:function(c,l){c=this._hasher=new c.init,typeof l=="string"&&(l=a.parse(l));var f=c.blockSize,p=f*4;l.sigBytes>p&&(l=c.finalize(l)),l.clamp();for(var h=this._oKey=l.clone(),m=this._iKey=l.clone(),d=h.words,b=m.words,E=0;E<f;E++)d[E]^=1549556828,b[E]^=909522486;h.sigBytes=m.sigBytes=p,this.reset()},reset:function(){var c=this._hasher;c.reset(),c.update(this._iKey)},update:function(c){return this._hasher.update(c),this},finalize:function(c){var l=this._hasher,f=l.finalize(c);l.reset();var p=l.finalize(this._oKey.clone().concat(f));return p}})})()})}(vo)),vo.exports}var bo;function fc(){return bo||(bo=1,function(e,t){(function(r,n,i){e.exports=n(Jt(),xy(),Ty())})(ft,function(r){return function(){var n=r,i=n.lib,s=i.Base,o=i.WordArray,a=n.algo,u=a.MD5,c=a.EvpKDF=s.extend({cfg:s.extend({keySize:128/32,hasher:u,iterations:1}),init:function(l){this.cfg=this.cfg.extend(l)},compute:function(l,f){for(var p,h=this.cfg,m=h.hasher.create(),d=o.create(),b=d.words,E=h.keySize,g=h.iterations;b.length<E;){p&&m.update(p),p=m.update(l).finalize(f),m.reset();for(var y=1;y<g;y++)p=m.finalize(p),m.reset();d.concat(p)}return d.sigBytes=E*4,d}});n.EvpKDF=function(l,f,p){return c.create(p).compute(l,f)}}(),r.EvpKDF})}(po)),po.exports}var _o={exports:{}},wo;function Oy(){return wo||(wo=1,function(e,t){(function(r,n,i){e.exports=n(Jt(),fc())})(ft,function(r){r.lib.Cipher||function(n){var i=r,s=i.lib,o=s.Base,a=s.WordArray,u=s.BufferedBlockAlgorithm,c=i.enc;c.Utf8;var l=c.Base64,f=i.algo,p=f.EvpKDF,h=s.Cipher=u.extend({cfg:o.extend(),createEncryptor:function(w,T){return this.create(this._ENC_XFORM_MODE,w,T)},createDecryptor:function(w,T){return this.create(this._DEC_XFORM_MODE,w,T)},init:function(w,T,F){this.cfg=this.cfg.extend(F),this._xformMode=w,this._key=T,this.reset()},reset:function(){u.reset.call(this),this._doReset()},process:function(w){return this._append(w),this._process()},finalize:function(w){w&&this._append(w);var T=this._doFinalize();return T},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function w(T){return typeof T=="string"?V:v}return function(T){return{encrypt:function(F,C,M){return w(C).encrypt(T,F,C,M)},decrypt:function(F,C,M){return w(C).decrypt(T,F,C,M)}}}}()});s.StreamCipher=h.extend({_doFinalize:function(){var w=this._process(!0);return w},blockSize:1});var m=i.mode={},d=s.BlockCipherMode=o.extend({createEncryptor:function(w,T){return this.Encryptor.create(w,T)},createDecryptor:function(w,T){return this.Decryptor.create(w,T)},init:function(w,T){this._cipher=w,this._iv=T}}),b=m.CBC=function(){var w=d.extend();w.Encryptor=w.extend({processBlock:function(F,C){var M=this._cipher,D=M.blockSize;T.call(this,F,C,D),M.encryptBlock(F,C),this._prevBlock=F.slice(C,C+D)}}),w.Decryptor=w.extend({processBlock:function(F,C){var M=this._cipher,D=M.blockSize,N=F.slice(C,C+D);M.decryptBlock(F,C),T.call(this,F,C,D),this._prevBlock=N}});function T(F,C,M){var D,N=this._iv;N?(D=N,this._iv=n):D=this._prevBlock;for(var H=0;H<M;H++)F[C+H]^=D[H]}return w}(),E=i.pad={},g=E.Pkcs7={pad:function(w,T){for(var F=T*4,C=F-w.sigBytes%F,M=C<<24|C<<16|C<<8|C,D=[],N=0;N<C;N+=4)D.push(M);var H=a.create(D,C);w.concat(H)},unpad:function(w){var T=w.words[w.sigBytes-1>>>2]&255;w.sigBytes-=T}};s.BlockCipher=h.extend({cfg:h.cfg.extend({mode:b,padding:g}),reset:function(){var w;h.reset.call(this);var T=this.cfg,F=T.iv,C=T.mode;this._xformMode==this._ENC_XFORM_MODE?w=C.createEncryptor:(w=C.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==w?this._mode.init(this,F&&F.words):(this._mode=w.call(C,this,F&&F.words),this._mode.__creator=w)},_doProcessBlock:function(w,T){this._mode.processBlock(w,T)},_doFinalize:function(){var w,T=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(T.pad(this._data,this.blockSize),w=this._process(!0)):(w=this._process(!0),T.unpad(w)),w},blockSize:128/32});var y=s.CipherParams=o.extend({init:function(w){this.mixIn(w)},toString:function(w){return(w||this.formatter).stringify(this)}}),_=i.format={},S=_.OpenSSL={stringify:function(w){var T,F=w.ciphertext,C=w.salt;return C?T=a.create([1398893684,1701076831]).concat(C).concat(F):T=F,T.toString(l)},parse:function(w){var T,F=l.parse(w),C=F.words;return C[0]==1398893684&&C[1]==1701076831&&(T=a.create(C.slice(2,4)),C.splice(0,4),F.sigBytes-=16),y.create({ciphertext:F,salt:T})}},v=s.SerializableCipher=o.extend({cfg:o.extend({format:S}),encrypt:function(w,T,F,C){C=this.cfg.extend(C);var M=w.createEncryptor(F,C),D=M.finalize(T),N=M.cfg;return y.create({ciphertext:D,key:F,iv:N.iv,algorithm:w,mode:N.mode,padding:N.padding,blockSize:w.blockSize,formatter:C.format})},decrypt:function(w,T,F,C){C=this.cfg.extend(C),T=this._parse(T,C.format);var M=w.createDecryptor(F,C).finalize(T.ciphertext);return M},_parse:function(w,T){return typeof w=="string"?T.parse(w,this):w}}),x=i.kdf={},$=x.OpenSSL={execute:function(w,T,F,C,M){if(C||(C=a.random(64/8)),M)var D=p.create({keySize:T+F,hasher:M}).compute(w,C);else var D=p.create({keySize:T+F}).compute(w,C);var N=a.create(D.words.slice(T),F*4);return D.sigBytes=T*4,y.create({key:D,iv:N,salt:C})}},V=s.PasswordBasedCipher=v.extend({cfg:v.cfg.extend({kdf:$}),encrypt:function(w,T,F,C){C=this.cfg.extend(C);var M=C.kdf.execute(F,w.keySize,w.ivSize,C.salt,C.hasher);C.iv=M.iv;var D=v.encrypt.call(this,w,T,M.key,C);return D.mixIn(M),D},decrypt:function(w,T,F,C){C=this.cfg.extend(C),T=this._parse(T,C.format);var M=C.kdf.execute(F,w.keySize,w.ivSize,T.salt,C.hasher);C.iv=M.iv;var D=v.decrypt.call(this,w,T,M.key,C);return D}})}()})}(_o)),_o.exports}(function(e,t){(function(r,n,i){e.exports=n(Jt(),ac,sc,fc(),Oy())})(ft,function(r){return function(){var n=r,i=n.lib,s=i.BlockCipher,o=n.algo,a=[],u=[],c=[],l=[],f=[],p=[],h=[],m=[],d=[],b=[];(function(){for(var y=[],_=0;_<256;_++)_<128?y[_]=_<<1:y[_]=_<<1^283;for(var S=0,v=0,_=0;_<256;_++){var x=v^v<<1^v<<2^v<<3^v<<4;x=x>>>8^x&255^99,a[S]=x,u[x]=S;var $=y[S],V=y[$],w=y[V],T=y[x]*257^x*16843008;c[S]=T<<24|T>>>8,l[S]=T<<16|T>>>16,f[S]=T<<8|T>>>24,p[S]=T;var T=w*16843009^V*65537^$*257^S*16843008;h[x]=T<<24|T>>>8,m[x]=T<<16|T>>>16,d[x]=T<<8|T>>>24,b[x]=T,S?(S=$^y[y[y[w^$]]],v^=y[y[v]]):S=v=1}})();var E=[0,1,2,4,8,16,32,64,128,27,54],g=o.AES=s.extend({_doReset:function(){var y;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var _=this._keyPriorReset=this._key,S=_.words,v=_.sigBytes/4,x=this._nRounds=v+6,$=(x+1)*4,V=this._keySchedule=[],w=0;w<$;w++)w<v?V[w]=S[w]:(y=V[w-1],w%v?v>6&&w%v==4&&(y=a[y>>>24]<<24|a[y>>>16&255]<<16|a[y>>>8&255]<<8|a[y&255]):(y=y<<8|y>>>24,y=a[y>>>24]<<24|a[y>>>16&255]<<16|a[y>>>8&255]<<8|a[y&255],y^=E[w/v|0]<<24),V[w]=V[w-v]^y);for(var T=this._invKeySchedule=[],F=0;F<$;F++){var w=$-F;if(F%4)var y=V[w];else var y=V[w-4];F<4||w<=4?T[F]=y:T[F]=h[a[y>>>24]]^m[a[y>>>16&255]]^d[a[y>>>8&255]]^b[a[y&255]]}}},encryptBlock:function(y,_){this._doCryptBlock(y,_,this._keySchedule,c,l,f,p,a)},decryptBlock:function(y,_){var S=y[_+1];y[_+1]=y[_+3],y[_+3]=S,this._doCryptBlock(y,_,this._invKeySchedule,h,m,d,b,u);var S=y[_+1];y[_+1]=y[_+3],y[_+3]=S},_doCryptBlock:function(y,_,S,v,x,$,V,w){for(var T=this._nRounds,F=y[_]^S[0],C=y[_+1]^S[1],M=y[_+2]^S[2],D=y[_+3]^S[3],N=4,H=1;H<T;H++){var U=v[F>>>24]^x[C>>>16&255]^$[M>>>8&255]^V[D&255]^S[N++],q=v[C>>>24]^x[M>>>16&255]^$[D>>>8&255]^V[F&255]^S[N++],K=v[M>>>24]^x[D>>>16&255]^$[F>>>8&255]^V[C&255]^S[N++],R=v[D>>>24]^x[F>>>16&255]^$[C>>>8&255]^V[M&255]^S[N++];F=U,C=q,M=K,D=R}var U=(w[F>>>24]<<24|w[C>>>16&255]<<16|w[M>>>8&255]<<8|w[D&255])^S[N++],q=(w[C>>>24]<<24|w[M>>>16&255]<<16|w[D>>>8&255]<<8|w[F&255])^S[N++],K=(w[M>>>24]<<24|w[D>>>16&255]<<16|w[F>>>8&255]<<8|w[C&255])^S[N++],R=(w[D>>>24]<<24|w[F>>>16&255]<<16|w[C>>>8&255]<<8|w[M&255])^S[N++];y[_]=U,y[_+1]=q,y[_+2]=K,y[_+3]=R},keySize:256/32});n.AES=s._createHelper(g)}(),r.AES})})(lc);var $y=lc.exports;const hc=Be($y);var Ay="0123456789abcdefghijklmnopqrstuvwxyz";function kt(e){return Ay.charAt(e)}function Ry(e,t){return e&t}function br(e,t){return e|t}function Eo(e,t){return e^t}function So(e,t){return e&~t}function jy(e){if(e==0)return-1;var t=0;return e&65535||(e>>=16,t+=16),e&255||(e>>=8,t+=8),e&15||(e>>=4,t+=4),e&3||(e>>=2,t+=2),e&1||++t,t}function Dy(e){for(var t=0;e!=0;)e&=e-1,++t;return t}var be="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",pc="=";function zr(e){var t,r,n="";for(t=0;t+3<=e.length;t+=3)r=parseInt(e.substring(t,t+3),16),n+=be.charAt(r>>6)+be.charAt(r&63);for(t+1==e.length?(r=parseInt(e.substring(t,t+1),16),n+=be.charAt(r<<2)):t+2==e.length&&(r=parseInt(e.substring(t,t+2),16),n+=be.charAt(r>>2)+be.charAt((r&3)<<4));(n.length&3)>0;)n+=pc;return n}function xo(e){var t="",r,n=0,i=0;for(r=0;r<e.length&&e.charAt(r)!=pc;++r){var s=be.indexOf(e.charAt(r));s<0||(n==0?(t+=kt(s>>2),i=s&3,n=1):n==1?(t+=kt(i<<2|s>>4),i=s&15,n=2):n==2?(t+=kt(i),t+=kt(s>>2),i=s&3,n=3):(t+=kt(i<<2|s>>4),t+=kt(s&15),n=0))}return n==1&&(t+=kt(i<<2)),t}var me,Cy={decode:function(e){var t;if(me===void 0){var r="0123456789ABCDEF",n=` \f
19
+ }`;var d=Ep(function(){return Function(s,h+"return "+f).apply(void 0,o)});if(d.source=f,ga(d))throw d;return d}var _y="Expected a function";function nc(e,t,r){var n=!0,i=!0;if(typeof e!="function")throw new TypeError(_y);return ct(r)&&(n="leading"in r?!!r.leading:n,i="trailing"in r?!!r.trailing:i),Fi(e,t,{leading:n,maxWait:t,trailing:i})}function ti(e){return on(Nt(e))}var ft=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ke(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ic={exports:{}};function wy(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var fo={exports:{}},ho;function Jt(){return ho||(ho=1,function(e,t){(function(r,n){e.exports=n()})(ft,function(){var r=r||function(n,i){var s;if(typeof window<"u"&&window.crypto&&(s=window.crypto),typeof self<"u"&&self.crypto&&(s=self.crypto),typeof globalThis<"u"&&globalThis.crypto&&(s=globalThis.crypto),!s&&typeof window<"u"&&window.msCrypto&&(s=window.msCrypto),!s&&typeof ft<"u"&&ft.crypto&&(s=ft.crypto),!s&&typeof wy=="function")try{s=require("crypto")}catch(g){}var o=function(){if(s){if(typeof s.getRandomValues=="function")try{return s.getRandomValues(new Uint32Array(1))[0]}catch(g){}if(typeof s.randomBytes=="function")try{return s.randomBytes(4).readInt32LE()}catch(g){}}throw new Error("Native crypto module could not be used to get secure random number.")},a=Object.create||function(){function g(){}return function(y){var _;return g.prototype=y,_=new g,g.prototype=null,_}}(),u={},c=u.lib={},l=c.Base=function(){return{extend:function(g){var y=a(this);return g&&y.mixIn(g),(!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 g=this.extend();return g.init.apply(g,arguments),g},init:function(){},mixIn:function(g){for(var y in g)g.hasOwnProperty(y)&&(this[y]=g[y]);g.hasOwnProperty("toString")&&(this.toString=g.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),f=c.WordArray=l.extend({init:function(g,y){g=this.words=g||[],y!=i?this.sigBytes=y:this.sigBytes=g.length*4},toString:function(g){return(g||h).stringify(this)},concat:function(g){var y=this.words,_=g.words,S=this.sigBytes,v=g.sigBytes;if(this.clamp(),S%4)for(var x=0;x<v;x++){var A=_[x>>>2]>>>24-x%4*8&255;y[S+x>>>2]|=A<<24-(S+x)%4*8}else for(var V=0;V<v;V+=4)y[S+V>>>2]=_[V>>>2];return this.sigBytes+=v,this},clamp:function(){var g=this.words,y=this.sigBytes;g[y>>>2]&=4294967295<<32-y%4*8,g.length=n.ceil(y/4)},clone:function(){var g=l.clone.call(this);return g.words=this.words.slice(0),g},random:function(g){for(var y=[],_=0;_<g;_+=4)y.push(o());return new f.init(y,g)}}),p=u.enc={},h=p.Hex={stringify:function(g){for(var y=g.words,_=g.sigBytes,S=[],v=0;v<_;v++){var x=y[v>>>2]>>>24-v%4*8&255;S.push((x>>>4).toString(16)),S.push((x&15).toString(16))}return S.join("")},parse:function(g){for(var y=g.length,_=[],S=0;S<y;S+=2)_[S>>>3]|=parseInt(g.substr(S,2),16)<<24-S%8*4;return new f.init(_,y/2)}},m=p.Latin1={stringify:function(g){for(var y=g.words,_=g.sigBytes,S=[],v=0;v<_;v++){var x=y[v>>>2]>>>24-v%4*8&255;S.push(String.fromCharCode(x))}return S.join("")},parse:function(g){for(var y=g.length,_=[],S=0;S<y;S++)_[S>>>2]|=(g.charCodeAt(S)&255)<<24-S%4*8;return new f.init(_,y)}},d=p.Utf8={stringify:function(g){try{return decodeURIComponent(escape(m.stringify(g)))}catch(y){throw new Error("Malformed UTF-8 data")}},parse:function(g){return m.parse(unescape(encodeURIComponent(g)))}},b=c.BufferedBlockAlgorithm=l.extend({reset:function(){this._data=new f.init,this._nDataBytes=0},_append:function(g){typeof g=="string"&&(g=d.parse(g)),this._data.concat(g),this._nDataBytes+=g.sigBytes},_process:function(g){var y,_=this._data,S=_.words,v=_.sigBytes,x=this.blockSize,A=x*4,V=v/A;g?V=n.ceil(V):V=n.max((V|0)-this._minBufferSize,0);var w=V*x,T=n.min(w*4,v);if(w){for(var F=0;F<w;F+=x)this._doProcessBlock(S,F);y=S.splice(0,w),_.sigBytes-=T}return new f.init(y,T)},clone:function(){var g=l.clone.call(this);return g._data=this._data.clone(),g},_minBufferSize:0});c.Hasher=b.extend({cfg:l.extend(),init:function(g){this.cfg=this.cfg.extend(g),this.reset()},reset:function(){b.reset.call(this),this._doReset()},update:function(g){return this._append(g),this._process(),this},finalize:function(g){g&&this._append(g);var y=this._doFinalize();return y},blockSize:16,_createHelper:function(g){return function(y,_){return new g.init(_).finalize(y)}},_createHmacHelper:function(g){return function(y,_){return new E.HMAC.init(g,_).finalize(y)}}});var E=u.algo={};return u}(Math);return r})}(fo)),fo.exports}(function(e,t){(function(r,n){e.exports=n(Jt())})(ft,function(r){return function(n){var i=r,s=i.lib,o=s.WordArray,a=s.Hasher,u=i.algo,c=[];(function(){for(var d=0;d<64;d++)c[d]=n.abs(n.sin(d+1))*4294967296|0})();var l=u.MD5=a.extend({_doReset:function(){this._hash=new o.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(d,b){for(var E=0;E<16;E++){var g=b+E,y=d[g];d[g]=(y<<8|y>>>24)&16711935|(y<<24|y>>>8)&4278255360}var _=this._hash.words,S=d[b+0],v=d[b+1],x=d[b+2],A=d[b+3],V=d[b+4],w=d[b+5],T=d[b+6],F=d[b+7],C=d[b+8],I=d[b+9],D=d[b+10],B=d[b+11],H=d[b+12],U=d[b+13],q=d[b+14],K=d[b+15],R=_[0],P=_[1],N=_[2],k=_[3];R=f(R,P,N,k,S,7,c[0]),k=f(k,R,P,N,v,12,c[1]),N=f(N,k,R,P,x,17,c[2]),P=f(P,N,k,R,A,22,c[3]),R=f(R,P,N,k,V,7,c[4]),k=f(k,R,P,N,w,12,c[5]),N=f(N,k,R,P,T,17,c[6]),P=f(P,N,k,R,F,22,c[7]),R=f(R,P,N,k,C,7,c[8]),k=f(k,R,P,N,I,12,c[9]),N=f(N,k,R,P,D,17,c[10]),P=f(P,N,k,R,B,22,c[11]),R=f(R,P,N,k,H,7,c[12]),k=f(k,R,P,N,U,12,c[13]),N=f(N,k,R,P,q,17,c[14]),P=f(P,N,k,R,K,22,c[15]),R=p(R,P,N,k,v,5,c[16]),k=p(k,R,P,N,T,9,c[17]),N=p(N,k,R,P,B,14,c[18]),P=p(P,N,k,R,S,20,c[19]),R=p(R,P,N,k,w,5,c[20]),k=p(k,R,P,N,D,9,c[21]),N=p(N,k,R,P,K,14,c[22]),P=p(P,N,k,R,V,20,c[23]),R=p(R,P,N,k,I,5,c[24]),k=p(k,R,P,N,q,9,c[25]),N=p(N,k,R,P,A,14,c[26]),P=p(P,N,k,R,C,20,c[27]),R=p(R,P,N,k,U,5,c[28]),k=p(k,R,P,N,x,9,c[29]),N=p(N,k,R,P,F,14,c[30]),P=p(P,N,k,R,H,20,c[31]),R=h(R,P,N,k,w,4,c[32]),k=h(k,R,P,N,C,11,c[33]),N=h(N,k,R,P,B,16,c[34]),P=h(P,N,k,R,q,23,c[35]),R=h(R,P,N,k,v,4,c[36]),k=h(k,R,P,N,V,11,c[37]),N=h(N,k,R,P,F,16,c[38]),P=h(P,N,k,R,D,23,c[39]),R=h(R,P,N,k,U,4,c[40]),k=h(k,R,P,N,S,11,c[41]),N=h(N,k,R,P,A,16,c[42]),P=h(P,N,k,R,T,23,c[43]),R=h(R,P,N,k,I,4,c[44]),k=h(k,R,P,N,H,11,c[45]),N=h(N,k,R,P,K,16,c[46]),P=h(P,N,k,R,x,23,c[47]),R=m(R,P,N,k,S,6,c[48]),k=m(k,R,P,N,F,10,c[49]),N=m(N,k,R,P,q,15,c[50]),P=m(P,N,k,R,w,21,c[51]),R=m(R,P,N,k,H,6,c[52]),k=m(k,R,P,N,A,10,c[53]),N=m(N,k,R,P,D,15,c[54]),P=m(P,N,k,R,v,21,c[55]),R=m(R,P,N,k,C,6,c[56]),k=m(k,R,P,N,K,10,c[57]),N=m(N,k,R,P,T,15,c[58]),P=m(P,N,k,R,U,21,c[59]),R=m(R,P,N,k,V,6,c[60]),k=m(k,R,P,N,B,10,c[61]),N=m(N,k,R,P,x,15,c[62]),P=m(P,N,k,R,I,21,c[63]),_[0]=_[0]+R|0,_[1]=_[1]+P|0,_[2]=_[2]+N|0,_[3]=_[3]+k|0},_doFinalize:function(){var d=this._data,b=d.words,E=this._nDataBytes*8,g=d.sigBytes*8;b[g>>>5]|=128<<24-g%32;var y=n.floor(E/4294967296),_=E;b[(g+64>>>9<<4)+15]=(y<<8|y>>>24)&16711935|(y<<24|y>>>8)&4278255360,b[(g+64>>>9<<4)+14]=(_<<8|_>>>24)&16711935|(_<<24|_>>>8)&4278255360,d.sigBytes=(b.length+1)*4,this._process();for(var S=this._hash,v=S.words,x=0;x<4;x++){var A=v[x];v[x]=(A<<8|A>>>24)&16711935|(A<<24|A>>>8)&4278255360}return S},clone:function(){var d=a.clone.call(this);return d._hash=this._hash.clone(),d}});function f(d,b,E,g,y,_,S){var v=d+(b&E|~b&g)+y+S;return(v<<_|v>>>32-_)+b}function p(d,b,E,g,y,_,S){var v=d+(b&g|E&~g)+y+S;return(v<<_|v>>>32-_)+b}function h(d,b,E,g,y,_,S){var v=d+(b^E^g)+y+S;return(v<<_|v>>>32-_)+b}function m(d,b,E,g,y,_,S){var v=d+(E^(b|~g))+y+S;return(v<<_|v>>>32-_)+b}i.MD5=a._createHelper(l),i.HmacMD5=a._createHmacHelper(l)}(Math),r.MD5})})(ic);var sc=ic.exports;const Ey=ke(sc);var oc={exports:{}};(function(e,t){(function(r,n){e.exports=n(Jt())})(ft,function(r){return function(){var n=r,i=n.lib,s=i.WordArray,o=n.enc;o.Base64={stringify:function(u){var c=u.words,l=u.sigBytes,f=this._map;u.clamp();for(var p=[],h=0;h<l;h+=3)for(var m=c[h>>>2]>>>24-h%4*8&255,d=c[h+1>>>2]>>>24-(h+1)%4*8&255,b=c[h+2>>>2]>>>24-(h+2)%4*8&255,E=m<<16|d<<8|b,g=0;g<4&&h+g*.75<l;g++)p.push(f.charAt(E>>>6*(3-g)&63));var y=f.charAt(64);if(y)for(;p.length%4;)p.push(y);return p.join("")},parse:function(u){var c=u.length,l=this._map,f=this._reverseMap;if(!f){f=this._reverseMap=[];for(var p=0;p<l.length;p++)f[l.charCodeAt(p)]=p}var h=l.charAt(64);if(h){var m=u.indexOf(h);m!==-1&&(c=m)}return a(u,c,f)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function a(u,c,l){for(var f=[],p=0,h=0;h<c;h++)if(h%4){var m=l[u.charCodeAt(h-1)]<<h%4*2,d=l[u.charCodeAt(h)]>>>6-h%4*2,b=m|d;f[p>>>2]|=b<<24-p%4*8,p++}return s.create(f,p)}}(),r.enc.Base64})})(oc);var ac=oc.exports;const cc=ke(ac);var uc={exports:{}};(function(e,t){(function(r,n){e.exports=n(Jt())})(ft,function(r){return r.enc.Utf8})})(uc);var Sy=uc.exports;const Li=ke(Sy);var lc={exports:{}},po={exports:{}},mo={exports:{}},go;function xy(){return go||(go=1,function(e,t){(function(r,n){e.exports=n(Jt())})(ft,function(r){return function(){var n=r,i=n.lib,s=i.WordArray,o=i.Hasher,a=n.algo,u=[],c=a.SHA1=o.extend({_doReset:function(){this._hash=new s.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(l,f){for(var p=this._hash.words,h=p[0],m=p[1],d=p[2],b=p[3],E=p[4],g=0;g<80;g++){if(g<16)u[g]=l[f+g]|0;else{var y=u[g-3]^u[g-8]^u[g-14]^u[g-16];u[g]=y<<1|y>>>31}var _=(h<<5|h>>>27)+E+u[g];g<20?_+=(m&d|~m&b)+1518500249:g<40?_+=(m^d^b)+1859775393:g<60?_+=(m&d|m&b|d&b)-1894007588:_+=(m^d^b)-899497514,E=b,b=d,d=m<<30|m>>>2,m=h,h=_}p[0]=p[0]+h|0,p[1]=p[1]+m|0,p[2]=p[2]+d|0,p[3]=p[3]+b|0,p[4]=p[4]+E|0},_doFinalize:function(){var l=this._data,f=l.words,p=this._nDataBytes*8,h=l.sigBytes*8;return f[h>>>5]|=128<<24-h%32,f[(h+64>>>9<<4)+14]=Math.floor(p/4294967296),f[(h+64>>>9<<4)+15]=p,l.sigBytes=f.length*4,this._process(),this._hash},clone:function(){var l=o.clone.call(this);return l._hash=this._hash.clone(),l}});n.SHA1=o._createHelper(c),n.HmacSHA1=o._createHmacHelper(c)}(),r.SHA1})}(mo)),mo.exports}var vo={exports:{}},yo;function Ty(){return yo||(yo=1,function(e,t){(function(r,n){e.exports=n(Jt())})(ft,function(r){(function(){var n=r,i=n.lib,s=i.Base,o=n.enc,a=o.Utf8,u=n.algo;u.HMAC=s.extend({init:function(c,l){c=this._hasher=new c.init,typeof l=="string"&&(l=a.parse(l));var f=c.blockSize,p=f*4;l.sigBytes>p&&(l=c.finalize(l)),l.clamp();for(var h=this._oKey=l.clone(),m=this._iKey=l.clone(),d=h.words,b=m.words,E=0;E<f;E++)d[E]^=1549556828,b[E]^=909522486;h.sigBytes=m.sigBytes=p,this.reset()},reset:function(){var c=this._hasher;c.reset(),c.update(this._iKey)},update:function(c){return this._hasher.update(c),this},finalize:function(c){var l=this._hasher,f=l.finalize(c);l.reset();var p=l.finalize(this._oKey.clone().concat(f));return p}})})()})}(vo)),vo.exports}var bo;function fc(){return bo||(bo=1,function(e,t){(function(r,n,i){e.exports=n(Jt(),xy(),Ty())})(ft,function(r){return function(){var n=r,i=n.lib,s=i.Base,o=i.WordArray,a=n.algo,u=a.MD5,c=a.EvpKDF=s.extend({cfg:s.extend({keySize:128/32,hasher:u,iterations:1}),init:function(l){this.cfg=this.cfg.extend(l)},compute:function(l,f){for(var p,h=this.cfg,m=h.hasher.create(),d=o.create(),b=d.words,E=h.keySize,g=h.iterations;b.length<E;){p&&m.update(p),p=m.update(l).finalize(f),m.reset();for(var y=1;y<g;y++)p=m.finalize(p),m.reset();d.concat(p)}return d.sigBytes=E*4,d}});n.EvpKDF=function(l,f,p){return c.create(p).compute(l,f)}}(),r.EvpKDF})}(po)),po.exports}var _o={exports:{}},wo;function Oy(){return wo||(wo=1,function(e,t){(function(r,n,i){e.exports=n(Jt(),fc())})(ft,function(r){r.lib.Cipher||function(n){var i=r,s=i.lib,o=s.Base,a=s.WordArray,u=s.BufferedBlockAlgorithm,c=i.enc;c.Utf8;var l=c.Base64,f=i.algo,p=f.EvpKDF,h=s.Cipher=u.extend({cfg:o.extend(),createEncryptor:function(w,T){return this.create(this._ENC_XFORM_MODE,w,T)},createDecryptor:function(w,T){return this.create(this._DEC_XFORM_MODE,w,T)},init:function(w,T,F){this.cfg=this.cfg.extend(F),this._xformMode=w,this._key=T,this.reset()},reset:function(){u.reset.call(this),this._doReset()},process:function(w){return this._append(w),this._process()},finalize:function(w){w&&this._append(w);var T=this._doFinalize();return T},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function w(T){return typeof T=="string"?V:v}return function(T){return{encrypt:function(F,C,I){return w(C).encrypt(T,F,C,I)},decrypt:function(F,C,I){return w(C).decrypt(T,F,C,I)}}}}()});s.StreamCipher=h.extend({_doFinalize:function(){var w=this._process(!0);return w},blockSize:1});var m=i.mode={},d=s.BlockCipherMode=o.extend({createEncryptor:function(w,T){return this.Encryptor.create(w,T)},createDecryptor:function(w,T){return this.Decryptor.create(w,T)},init:function(w,T){this._cipher=w,this._iv=T}}),b=m.CBC=function(){var w=d.extend();w.Encryptor=w.extend({processBlock:function(F,C){var I=this._cipher,D=I.blockSize;T.call(this,F,C,D),I.encryptBlock(F,C),this._prevBlock=F.slice(C,C+D)}}),w.Decryptor=w.extend({processBlock:function(F,C){var I=this._cipher,D=I.blockSize,B=F.slice(C,C+D);I.decryptBlock(F,C),T.call(this,F,C,D),this._prevBlock=B}});function T(F,C,I){var D,B=this._iv;B?(D=B,this._iv=n):D=this._prevBlock;for(var H=0;H<I;H++)F[C+H]^=D[H]}return w}(),E=i.pad={},g=E.Pkcs7={pad:function(w,T){for(var F=T*4,C=F-w.sigBytes%F,I=C<<24|C<<16|C<<8|C,D=[],B=0;B<C;B+=4)D.push(I);var H=a.create(D,C);w.concat(H)},unpad:function(w){var T=w.words[w.sigBytes-1>>>2]&255;w.sigBytes-=T}};s.BlockCipher=h.extend({cfg:h.cfg.extend({mode:b,padding:g}),reset:function(){var w;h.reset.call(this);var T=this.cfg,F=T.iv,C=T.mode;this._xformMode==this._ENC_XFORM_MODE?w=C.createEncryptor:(w=C.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==w?this._mode.init(this,F&&F.words):(this._mode=w.call(C,this,F&&F.words),this._mode.__creator=w)},_doProcessBlock:function(w,T){this._mode.processBlock(w,T)},_doFinalize:function(){var w,T=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(T.pad(this._data,this.blockSize),w=this._process(!0)):(w=this._process(!0),T.unpad(w)),w},blockSize:128/32});var y=s.CipherParams=o.extend({init:function(w){this.mixIn(w)},toString:function(w){return(w||this.formatter).stringify(this)}}),_=i.format={},S=_.OpenSSL={stringify:function(w){var T,F=w.ciphertext,C=w.salt;return C?T=a.create([1398893684,1701076831]).concat(C).concat(F):T=F,T.toString(l)},parse:function(w){var T,F=l.parse(w),C=F.words;return C[0]==1398893684&&C[1]==1701076831&&(T=a.create(C.slice(2,4)),C.splice(0,4),F.sigBytes-=16),y.create({ciphertext:F,salt:T})}},v=s.SerializableCipher=o.extend({cfg:o.extend({format:S}),encrypt:function(w,T,F,C){C=this.cfg.extend(C);var I=w.createEncryptor(F,C),D=I.finalize(T),B=I.cfg;return y.create({ciphertext:D,key:F,iv:B.iv,algorithm:w,mode:B.mode,padding:B.padding,blockSize:w.blockSize,formatter:C.format})},decrypt:function(w,T,F,C){C=this.cfg.extend(C),T=this._parse(T,C.format);var I=w.createDecryptor(F,C).finalize(T.ciphertext);return I},_parse:function(w,T){return typeof w=="string"?T.parse(w,this):w}}),x=i.kdf={},A=x.OpenSSL={execute:function(w,T,F,C,I){if(C||(C=a.random(64/8)),I)var D=p.create({keySize:T+F,hasher:I}).compute(w,C);else var D=p.create({keySize:T+F}).compute(w,C);var B=a.create(D.words.slice(T),F*4);return D.sigBytes=T*4,y.create({key:D,iv:B,salt:C})}},V=s.PasswordBasedCipher=v.extend({cfg:v.cfg.extend({kdf:A}),encrypt:function(w,T,F,C){C=this.cfg.extend(C);var I=C.kdf.execute(F,w.keySize,w.ivSize,C.salt,C.hasher);C.iv=I.iv;var D=v.encrypt.call(this,w,T,I.key,C);return D.mixIn(I),D},decrypt:function(w,T,F,C){C=this.cfg.extend(C),T=this._parse(T,C.format);var I=C.kdf.execute(F,w.keySize,w.ivSize,T.salt,C.hasher);C.iv=I.iv;var D=v.decrypt.call(this,w,T,I.key,C);return D}})}()})}(_o)),_o.exports}(function(e,t){(function(r,n,i){e.exports=n(Jt(),ac,sc,fc(),Oy())})(ft,function(r){return function(){var n=r,i=n.lib,s=i.BlockCipher,o=n.algo,a=[],u=[],c=[],l=[],f=[],p=[],h=[],m=[],d=[],b=[];(function(){for(var y=[],_=0;_<256;_++)_<128?y[_]=_<<1:y[_]=_<<1^283;for(var S=0,v=0,_=0;_<256;_++){var x=v^v<<1^v<<2^v<<3^v<<4;x=x>>>8^x&255^99,a[S]=x,u[x]=S;var A=y[S],V=y[A],w=y[V],T=y[x]*257^x*16843008;c[S]=T<<24|T>>>8,l[S]=T<<16|T>>>16,f[S]=T<<8|T>>>24,p[S]=T;var T=w*16843009^V*65537^A*257^S*16843008;h[x]=T<<24|T>>>8,m[x]=T<<16|T>>>16,d[x]=T<<8|T>>>24,b[x]=T,S?(S=A^y[y[y[w^A]]],v^=y[y[v]]):S=v=1}})();var E=[0,1,2,4,8,16,32,64,128,27,54],g=o.AES=s.extend({_doReset:function(){var y;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var _=this._keyPriorReset=this._key,S=_.words,v=_.sigBytes/4,x=this._nRounds=v+6,A=(x+1)*4,V=this._keySchedule=[],w=0;w<A;w++)w<v?V[w]=S[w]:(y=V[w-1],w%v?v>6&&w%v==4&&(y=a[y>>>24]<<24|a[y>>>16&255]<<16|a[y>>>8&255]<<8|a[y&255]):(y=y<<8|y>>>24,y=a[y>>>24]<<24|a[y>>>16&255]<<16|a[y>>>8&255]<<8|a[y&255],y^=E[w/v|0]<<24),V[w]=V[w-v]^y);for(var T=this._invKeySchedule=[],F=0;F<A;F++){var w=A-F;if(F%4)var y=V[w];else var y=V[w-4];F<4||w<=4?T[F]=y:T[F]=h[a[y>>>24]]^m[a[y>>>16&255]]^d[a[y>>>8&255]]^b[a[y&255]]}}},encryptBlock:function(y,_){this._doCryptBlock(y,_,this._keySchedule,c,l,f,p,a)},decryptBlock:function(y,_){var S=y[_+1];y[_+1]=y[_+3],y[_+3]=S,this._doCryptBlock(y,_,this._invKeySchedule,h,m,d,b,u);var S=y[_+1];y[_+1]=y[_+3],y[_+3]=S},_doCryptBlock:function(y,_,S,v,x,A,V,w){for(var T=this._nRounds,F=y[_]^S[0],C=y[_+1]^S[1],I=y[_+2]^S[2],D=y[_+3]^S[3],B=4,H=1;H<T;H++){var U=v[F>>>24]^x[C>>>16&255]^A[I>>>8&255]^V[D&255]^S[B++],q=v[C>>>24]^x[I>>>16&255]^A[D>>>8&255]^V[F&255]^S[B++],K=v[I>>>24]^x[D>>>16&255]^A[F>>>8&255]^V[C&255]^S[B++],R=v[D>>>24]^x[F>>>16&255]^A[C>>>8&255]^V[I&255]^S[B++];F=U,C=q,I=K,D=R}var U=(w[F>>>24]<<24|w[C>>>16&255]<<16|w[I>>>8&255]<<8|w[D&255])^S[B++],q=(w[C>>>24]<<24|w[I>>>16&255]<<16|w[D>>>8&255]<<8|w[F&255])^S[B++],K=(w[I>>>24]<<24|w[D>>>16&255]<<16|w[F>>>8&255]<<8|w[C&255])^S[B++],R=(w[D>>>24]<<24|w[F>>>16&255]<<16|w[C>>>8&255]<<8|w[I&255])^S[B++];y[_]=U,y[_+1]=q,y[_+2]=K,y[_+3]=R},keySize:256/32});n.AES=s._createHelper(g)}(),r.AES})})(lc);var Ay=lc.exports;const hc=ke(Ay);var $y="0123456789abcdefghijklmnopqrstuvwxyz";function kt(e){return $y.charAt(e)}function Ry(e,t){return e&t}function _r(e,t){return e|t}function Eo(e,t){return e^t}function So(e,t){return e&~t}function jy(e){if(e==0)return-1;var t=0;return e&65535||(e>>=16,t+=16),e&255||(e>>=8,t+=8),e&15||(e>>=4,t+=4),e&3||(e>>=2,t+=2),e&1||++t,t}function Dy(e){for(var t=0;e!=0;)e&=e-1,++t;return t}var be="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",pc="=";function qr(e){var t,r,n="";for(t=0;t+3<=e.length;t+=3)r=parseInt(e.substring(t,t+3),16),n+=be.charAt(r>>6)+be.charAt(r&63);for(t+1==e.length?(r=parseInt(e.substring(t,t+1),16),n+=be.charAt(r<<2)):t+2==e.length&&(r=parseInt(e.substring(t,t+2),16),n+=be.charAt(r>>2)+be.charAt((r&3)<<4));(n.length&3)>0;)n+=pc;return n}function xo(e){var t="",r,n=0,i=0;for(r=0;r<e.length&&e.charAt(r)!=pc;++r){var s=be.indexOf(e.charAt(r));s<0||(n==0?(t+=kt(s>>2),i=s&3,n=1):n==1?(t+=kt(i<<2|s>>4),i=s&15,n=2):n==2?(t+=kt(i),t+=kt(s>>2),i=s&3,n=3):(t+=kt(i<<2|s>>4),t+=kt(s&15),n=0))}return n==1&&(t+=kt(i<<2)),t}var me,Cy={decode:function(e){var t;if(me===void 0){var r="0123456789ABCDEF",n=` \f
20
20
  \r  \u2028\u2029`;for(me={},t=0;t<16;++t)me[r.charAt(t)]=t;for(r=r.toLowerCase(),t=10;t<16;++t)me[r.charAt(t)]=t;for(t=0;t<n.length;++t)me[n.charAt(t)]=-1}var i=[],s=0,o=0;for(t=0;t<e.length;++t){var a=e.charAt(t);if(a=="=")break;if(a=me[a],a!=-1){if(a===void 0)throw new Error("Illegal character at offset "+t);s|=a,++o>=2?(i[i.length]=s,s=0,o=0):s<<=4}}if(o)throw new Error("Hex encoding incomplete: 4 bits missing");return i}},Zt,ei={decode:function(e){var t;if(Zt===void 0){var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n=`= \f
21
- \r  \u2028\u2029`;for(Zt=Object.create(null),t=0;t<64;++t)Zt[r.charAt(t)]=t;for(Zt["-"]=62,Zt._=63,t=0;t<n.length;++t)Zt[n.charAt(t)]=-1}var i=[],s=0,o=0;for(t=0;t<e.length;++t){var a=e.charAt(t);if(a=="=")break;if(a=Zt[a],a!=-1){if(a===void 0)throw new Error("Illegal character at offset "+t);s|=a,++o>=4?(i[i.length]=s>>16,i[i.length]=s>>8&255,i[i.length]=s&255,s=0,o=0):s<<=6}}switch(o){case 1:throw new Error("Base64 encoding incomplete: at least 2 bits missing");case 2:i[i.length]=s>>10;break;case 3:i[i.length]=s>>16,i[i.length]=s>>8&255;break}return i},re:/-----BEGIN [^-]+-----([A-Za-z0-9+\/=\s]+)-----END [^-]+-----|begin-base64[^\n]+\n([A-Za-z0-9+\/=\s]+)====/,unarmor:function(e){var t=ei.re.exec(e);if(t)if(t[1])e=t[1];else if(t[2])e=t[2];else throw new Error("RegExp out of sync");return ei.decode(e)}},ge=1e13,qe=function(){function e(t){this.buf=[+t||0]}return e.prototype.mulAdd=function(t,r){var n=this.buf,i=n.length,s,o;for(s=0;s<i;++s)o=n[s]*t+r,o<ge?r=0:(r=0|o/ge,o-=r*ge),n[s]=o;r>0&&(n[s]=r)},e.prototype.sub=function(t){var r=this.buf,n=r.length,i,s;for(i=0;i<n;++i)s=r[i]-t,s<0?(s+=ge,t=1):t=0,r[i]=s;for(;r[r.length-1]===0;)r.pop()},e.prototype.toString=function(t){if((t||10)!=10)throw new Error("only base 10 is supported");for(var r=this.buf,n=r[r.length-1].toString(),i=r.length-2;i>=0;--i)n+=(ge+r[i]).toString().substring(1);return n},e.prototype.valueOf=function(){for(var t=this.buf,r=0,n=t.length-1;n>=0;--n)r=r*ge+t[n];return r},e.prototype.simplify=function(){var t=this.buf;return t.length==1?t[0]:this},e}(),dc="…",Py=/^(\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)?)?$/,Ny=/^(\d\d\d\d)(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])([01]\d|2[0-3])(?:([0-5]\d)(?:([0-5]\d)(?:[.,](\d{1,3}))?)?)?(Z|[-+](?:[0]\d|1[0-2])([0-5]\d)?)?$/;function Ee(e,t){return e.length>t&&(e=e.substring(0,t)+dc),e}var Rn=function(){function e(t,r){this.hexDigits="0123456789ABCDEF",t instanceof e?(this.enc=t.enc,this.pos=t.pos):(this.enc=t,this.pos=r)}return e.prototype.get=function(t){if(t===void 0&&(t=this.pos++),t>=this.enc.length)throw new Error("Requesting byte offset ".concat(t," on a stream of length ").concat(this.enc.length));return typeof this.enc=="string"?this.enc.charCodeAt(t):this.enc[t]},e.prototype.hexByte=function(t){return this.hexDigits.charAt(t>>4&15)+this.hexDigits.charAt(t&15)},e.prototype.hexDump=function(t,r,n){for(var i="",s=t;s<r;++s)if(i+=this.hexByte(this.get(s)),n!==!0)switch(s&15){case 7:i+=" ";break;case 15:i+=`
22
- `;break;default:i+=" "}return i},e.prototype.isASCII=function(t,r){for(var n=t;n<r;++n){var i=this.get(n);if(i<32||i>176)return!1}return!0},e.prototype.parseStringISO=function(t,r){for(var n="",i=t;i<r;++i)n+=String.fromCharCode(this.get(i));return n},e.prototype.parseStringUTF=function(t,r){for(var n="",i=t;i<r;){var s=this.get(i++);s<128?n+=String.fromCharCode(s):s>191&&s<224?n+=String.fromCharCode((s&31)<<6|this.get(i++)&63):n+=String.fromCharCode((s&15)<<12|(this.get(i++)&63)<<6|this.get(i++)&63)}return n},e.prototype.parseStringBMP=function(t,r){for(var n="",i,s,o=t;o<r;)i=this.get(o++),s=this.get(o++),n+=String.fromCharCode(i<<8|s);return n},e.prototype.parseTime=function(t,r,n){var i=this.parseStringISO(t,r),s=(n?Py:Ny).exec(i);return s?(n&&(s[1]=+s[1],s[1]+=+s[1]<70?2e3:1900),i=s[1]+"-"+s[2]+"-"+s[3]+" "+s[4],s[5]&&(i+=":"+s[5],s[6]&&(i+=":"+s[6],s[7]&&(i+="."+s[7]))),s[8]&&(i+=" UTC",s[8]!="Z"&&(i+=s[8],s[9]&&(i+=":"+s[9]))),i):"Unrecognized time: "+i},e.prototype.parseInteger=function(t,r){for(var n=this.get(t),i=n>127,s=i?255:0,o,a="";n==s&&++t<r;)n=this.get(t);if(o=r-t,o===0)return i?-1:0;if(o>4){for(a=n,o<<=3;!((+a^s)&128);)a=+a<<1,--o;a="("+o+` bit)
23
- `}i&&(n=n-256);for(var u=new qe(n),c=t+1;c<r;++c)u.mulAdd(256,this.get(c));return a+u.toString()},e.prototype.parseBitString=function(t,r,n){for(var i=this.get(t),s=(r-t-1<<3)-i,o="("+s+` bit)
21
+ \r  \u2028\u2029`;for(Zt=Object.create(null),t=0;t<64;++t)Zt[r.charAt(t)]=t;for(Zt["-"]=62,Zt._=63,t=0;t<n.length;++t)Zt[n.charAt(t)]=-1}var i=[],s=0,o=0;for(t=0;t<e.length;++t){var a=e.charAt(t);if(a=="=")break;if(a=Zt[a],a!=-1){if(a===void 0)throw new Error("Illegal character at offset "+t);s|=a,++o>=4?(i[i.length]=s>>16,i[i.length]=s>>8&255,i[i.length]=s&255,s=0,o=0):s<<=6}}switch(o){case 1:throw new Error("Base64 encoding incomplete: at least 2 bits missing");case 2:i[i.length]=s>>10;break;case 3:i[i.length]=s>>16,i[i.length]=s>>8&255;break}return i},re:/-----BEGIN [^-]+-----([A-Za-z0-9+\/=\s]+)-----END [^-]+-----|begin-base64[^\n]+\n([A-Za-z0-9+\/=\s]+)====/,unarmor:function(e){var t=ei.re.exec(e);if(t)if(t[1])e=t[1];else if(t[2])e=t[2];else throw new Error("RegExp out of sync");return ei.decode(e)}},ge=1e13,Ke=function(){function e(t){this.buf=[+t||0]}return e.prototype.mulAdd=function(t,r){var n=this.buf,i=n.length,s,o;for(s=0;s<i;++s)o=n[s]*t+r,o<ge?r=0:(r=0|o/ge,o-=r*ge),n[s]=o;r>0&&(n[s]=r)},e.prototype.sub=function(t){var r=this.buf,n=r.length,i,s;for(i=0;i<n;++i)s=r[i]-t,s<0?(s+=ge,t=1):t=0,r[i]=s;for(;r[r.length-1]===0;)r.pop()},e.prototype.toString=function(t){if((t||10)!=10)throw new Error("only base 10 is supported");for(var r=this.buf,n=r[r.length-1].toString(),i=r.length-2;i>=0;--i)n+=(ge+r[i]).toString().substring(1);return n},e.prototype.valueOf=function(){for(var t=this.buf,r=0,n=t.length-1;n>=0;--n)r=r*ge+t[n];return r},e.prototype.simplify=function(){var t=this.buf;return t.length==1?t[0]:this},e}(),dc="…",Py=/^(\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)?)?$/,By=/^(\d\d\d\d)(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])([01]\d|2[0-3])(?:([0-5]\d)(?:([0-5]\d)(?:[.,](\d{1,3}))?)?)?(Z|[-+](?:[0]\d|1[0-2])([0-5]\d)?)?$/;function Ee(e,t){return e.length>t&&(e=e.substring(0,t)+dc),e}var Rn=function(){function e(t,r){this.hexDigits="0123456789ABCDEF",t instanceof e?(this.enc=t.enc,this.pos=t.pos):(this.enc=t,this.pos=r)}return e.prototype.get=function(t){if(t===void 0&&(t=this.pos++),t>=this.enc.length)throw new Error("Requesting byte offset ".concat(t," on a stream of length ").concat(this.enc.length));return typeof this.enc=="string"?this.enc.charCodeAt(t):this.enc[t]},e.prototype.hexByte=function(t){return this.hexDigits.charAt(t>>4&15)+this.hexDigits.charAt(t&15)},e.prototype.hexDump=function(t,r,n){for(var i="",s=t;s<r;++s)if(i+=this.hexByte(this.get(s)),n!==!0)switch(s&15){case 7:i+=" ";break;case 15:i+=`
22
+ `;break;default:i+=" "}return i},e.prototype.isASCII=function(t,r){for(var n=t;n<r;++n){var i=this.get(n);if(i<32||i>176)return!1}return!0},e.prototype.parseStringISO=function(t,r){for(var n="",i=t;i<r;++i)n+=String.fromCharCode(this.get(i));return n},e.prototype.parseStringUTF=function(t,r){for(var n="",i=t;i<r;){var s=this.get(i++);s<128?n+=String.fromCharCode(s):s>191&&s<224?n+=String.fromCharCode((s&31)<<6|this.get(i++)&63):n+=String.fromCharCode((s&15)<<12|(this.get(i++)&63)<<6|this.get(i++)&63)}return n},e.prototype.parseStringBMP=function(t,r){for(var n="",i,s,o=t;o<r;)i=this.get(o++),s=this.get(o++),n+=String.fromCharCode(i<<8|s);return n},e.prototype.parseTime=function(t,r,n){var i=this.parseStringISO(t,r),s=(n?Py:By).exec(i);return s?(n&&(s[1]=+s[1],s[1]+=+s[1]<70?2e3:1900),i=s[1]+"-"+s[2]+"-"+s[3]+" "+s[4],s[5]&&(i+=":"+s[5],s[6]&&(i+=":"+s[6],s[7]&&(i+="."+s[7]))),s[8]&&(i+=" UTC",s[8]!="Z"&&(i+=s[8],s[9]&&(i+=":"+s[9]))),i):"Unrecognized time: "+i},e.prototype.parseInteger=function(t,r){for(var n=this.get(t),i=n>127,s=i?255:0,o,a="";n==s&&++t<r;)n=this.get(t);if(o=r-t,o===0)return i?-1:0;if(o>4){for(a=n,o<<=3;!((+a^s)&128);)a=+a<<1,--o;a="("+o+` bit)
23
+ `}i&&(n=n-256);for(var u=new Ke(n),c=t+1;c<r;++c)u.mulAdd(256,this.get(c));return a+u.toString()},e.prototype.parseBitString=function(t,r,n){for(var i=this.get(t),s=(r-t-1<<3)-i,o="("+s+` bit)
24
24
  `,a="",u=t+1;u<r;++u){for(var c=this.get(u),l=u==r-1?i:0,f=7;f>=l;--f)a+=c>>f&1?"1":"0";if(a.length>n)return o+Ee(a,n)}return o+a},e.prototype.parseOctetString=function(t,r,n){if(this.isASCII(t,r))return Ee(this.parseStringISO(t,r),n);var i=r-t,s="("+i+` byte)
25
- `;n/=2,i>n&&(r=t+n);for(var o=t;o<r;++o)s+=this.hexByte(this.get(o));return i>n&&(s+=dc),s},e.prototype.parseOID=function(t,r,n){for(var i="",s=new qe,o=0,a=t;a<r;++a){var u=this.get(a);if(s.mulAdd(128,u&127),o+=7,!(u&128)){if(i==="")if(s=s.simplify(),s instanceof qe)s.sub(80),i="2."+s.toString();else{var c=s<80?s<40?0:1:2;i=c+"."+(s-c*40)}else i+="."+s.toString();if(i.length>n)return Ee(i,n);s=new qe,o=0}}return o>0&&(i+=".incomplete"),i},e}(),By=function(){function e(t,r,n,i,s){if(!(i instanceof To))throw new Error("Invalid tag value.");this.stream=t,this.header=r,this.length=n,this.tag=i,this.sub=s}return e.prototype.typeName=function(){switch(this.tag.tagClass){case 0:switch(this.tag.tagNumber){case 0:return"EOC";case 1:return"BOOLEAN";case 2:return"INTEGER";case 3:return"BIT_STRING";case 4:return"OCTET_STRING";case 5:return"NULL";case 6:return"OBJECT_IDENTIFIER";case 7:return"ObjectDescriptor";case 8:return"EXTERNAL";case 9:return"REAL";case 10:return"ENUMERATED";case 11:return"EMBEDDED_PDV";case 12:return"UTF8String";case 16:return"SEQUENCE";case 17:return"SET";case 18:return"NumericString";case 19:return"PrintableString";case 20:return"TeletexString";case 21:return"VideotexString";case 22:return"IA5String";case 23:return"UTCTime";case 24:return"GeneralizedTime";case 25:return"GraphicString";case 26:return"VisibleString";case 27:return"GeneralString";case 28:return"UniversalString";case 30:return"BMPString"}return"Universal_"+this.tag.tagNumber.toString();case 1:return"Application_"+this.tag.tagNumber.toString();case 2:return"["+this.tag.tagNumber.toString()+"]";case 3:return"Private_"+this.tag.tagNumber.toString()}},e.prototype.content=function(t){if(this.tag===void 0)return null;t===void 0&&(t=1/0);var r=this.posContent(),n=Math.abs(this.length);if(!this.tag.isUniversal())return this.sub!==null?"("+this.sub.length+" elem)":this.stream.parseOctetString(r,r+n,t);switch(this.tag.tagNumber){case 1:return this.stream.get(r)===0?"false":"true";case 2:return this.stream.parseInteger(r,r+n);case 3:return this.sub?"("+this.sub.length+" elem)":this.stream.parseBitString(r,r+n,t);case 4:return this.sub?"("+this.sub.length+" elem)":this.stream.parseOctetString(r,r+n,t);case 6:return this.stream.parseOID(r,r+n,t);case 16:case 17:return this.sub!==null?"("+this.sub.length+" elem)":"(no elem)";case 12:return Ee(this.stream.parseStringUTF(r,r+n),t);case 18:case 19:case 20:case 21:case 22:case 26:return Ee(this.stream.parseStringISO(r,r+n),t);case 30:return Ee(this.stream.parseStringBMP(r,r+n),t);case 23:case 24:return this.stream.parseTime(r,r+n,this.tag.tagNumber==23)}return null},e.prototype.toString=function(){return this.typeName()+"@"+this.stream.pos+"[header:"+this.header+",length:"+this.length+",sub:"+(this.sub===null?"null":this.sub.length)+"]"},e.prototype.toPrettyString=function(t){t===void 0&&(t="");var r=t+this.typeName()+" @"+this.stream.pos;if(this.length>=0&&(r+="+"),r+=this.length,this.tag.tagConstructed?r+=" (constructed)":this.tag.isUniversal()&&(this.tag.tagNumber==3||this.tag.tagNumber==4)&&this.sub!==null&&(r+=" (encapsulates)"),r+=`
26
- `,this.sub!==null){t+=" ";for(var n=0,i=this.sub.length;n<i;++n)r+=this.sub[n].toPrettyString(t)}return r},e.prototype.posStart=function(){return this.stream.pos},e.prototype.posContent=function(){return this.stream.pos+this.header},e.prototype.posEnd=function(){return this.stream.pos+this.header+Math.abs(this.length)},e.prototype.toHexString=function(){return this.stream.hexDump(this.posStart(),this.posEnd(),!0)},e.decodeLength=function(t){var r=t.get(),n=r&127;if(n==r)return n;if(n>6)throw new Error("Length over 48 bits not supported at position "+(t.pos-1));if(n===0)return null;r=0;for(var i=0;i<n;++i)r=r*256+t.get();return r},e.prototype.getHexStringValue=function(){var t=this.toHexString(),r=this.header*2,n=this.length*2;return t.substr(r,n)},e.decode=function(t){var r;t instanceof Rn?r=t:r=new Rn(t,0);var n=new Rn(r),i=new To(r),s=e.decodeLength(r),o=r.pos,a=o-n.pos,u=null,c=function(){var f=[];if(s!==null){for(var p=o+s;r.pos<p;)f[f.length]=e.decode(r);if(r.pos!=p)throw new Error("Content size is not correct for container starting at offset "+o)}else try{for(;;){var h=e.decode(r);if(h.tag.isEOC())break;f[f.length]=h}s=o-r.pos}catch(m){throw new Error("Exception while decoding undefined length content: "+m)}return f};if(i.tagConstructed)u=c();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.");u=c();for(var l=0;l<u.length;++l)if(u[l].tag.isEOC())throw new Error("EOC is not supposed to be actual content.")}catch(f){u=null}if(u===null){if(s===null)throw new Error("We can't skip over an invalid tag with undefined length at offset "+o);r.pos=o+Math.abs(s)}return new e(n,a,s,i,u)},e}(),To=function(){function e(t){var r=t.get();if(this.tagClass=r>>6,this.tagConstructed=(r&32)!==0,this.tagNumber=r&31,this.tagNumber==31){var n=new qe;do r=t.get(),n.mulAdd(128,r&127);while(r&128);this.tagNumber=n.simplify()}}return e.prototype.isUniversal=function(){return this.tagClass===0},e.prototype.isEOC=function(){return this.tagClass===0&&this.tagNumber===0},e}(),Vt,ky=0xdeadbeefcafe,Oo=(ky&16777215)==15715070,ut=[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],My=(1<<26)/ut[ut.length-1],W=function(){function e(t,r,n){t!=null&&(typeof t=="number"?this.fromNumber(t,r,n):r==null&&typeof t!="string"?this.fromString(t,256):this.fromString(t,r))}return e.prototype.toString=function(t){if(this.s<0)return"-"+this.negate().toString(t);var r;if(t==16)r=4;else if(t==8)r=3;else if(t==2)r=1;else if(t==32)r=5;else if(t==4)r=2;else return this.toRadix(t);var n=(1<<r)-1,i,s=!1,o="",a=this.t,u=this.DB-a*this.DB%r;if(a-- >0)for(u<this.DB&&(i=this[a]>>u)>0&&(s=!0,o=kt(i));a>=0;)u<r?(i=(this[a]&(1<<u)-1)<<r-u,i|=this[--a]>>(u+=this.DB-r)):(i=this[a]>>(u-=r)&n,u<=0&&(u+=this.DB,--a)),i>0&&(s=!0),s&&(o+=kt(i));return s?o:"0"},e.prototype.negate=function(){var t=Y();return e.ZERO.subTo(this,t),t},e.prototype.abs=function(){return this.s<0?this.negate():this},e.prototype.compareTo=function(t){var r=this.s-t.s;if(r!=0)return r;var n=this.t;if(r=n-t.t,r!=0)return this.s<0?-r:r;for(;--n>=0;)if((r=this[n]-t[n])!=0)return r;return 0},e.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+_r(this[this.t-1]^this.s&this.DM)},e.prototype.mod=function(t){var r=Y();return this.abs().divRemTo(t,null,r),this.s<0&&r.compareTo(e.ZERO)>0&&t.subTo(r,r),r},e.prototype.modPowInt=function(t,r){var n;return t<256||r.isEven()?n=new $o(r):n=new Ao(r),this.exp(t,n)},e.prototype.clone=function(){var t=Y();return this.copyTo(t),t},e.prototype.intValue=function(){if(this.s<0){if(this.t==1)return this[0]-this.DV;if(this.t==0)return-1}else{if(this.t==1)return this[0];if(this.t==0)return 0}return(this[1]&(1<<32-this.DB)-1)<<this.DB|this[0]},e.prototype.byteValue=function(){return this.t==0?this.s:this[0]<<24>>24},e.prototype.shortValue=function(){return this.t==0?this.s:this[0]<<16>>16},e.prototype.signum=function(){return this.s<0?-1:this.t<=0||this.t==1&&this[0]<=0?0:1},e.prototype.toByteArray=function(){var t=this.t,r=[];r[0]=this.s;var n=this.DB-t*this.DB%8,i,s=0;if(t-- >0)for(n<this.DB&&(i=this[t]>>n)!=(this.s&this.DM)>>n&&(r[s++]=i|this.s<<this.DB-n);t>=0;)n<8?(i=(this[t]&(1<<n)-1)<<8-n,i|=this[--t]>>(n+=this.DB-8)):(i=this[t]>>(n-=8)&255,n<=0&&(n+=this.DB,--t)),i&128&&(i|=-256),s==0&&(this.s&128)!=(i&128)&&++s,(s>0||i!=this.s)&&(r[s++]=i);return r},e.prototype.equals=function(t){return this.compareTo(t)==0},e.prototype.min=function(t){return this.compareTo(t)<0?this:t},e.prototype.max=function(t){return this.compareTo(t)>0?this:t},e.prototype.and=function(t){var r=Y();return this.bitwiseTo(t,Ry,r),r},e.prototype.or=function(t){var r=Y();return this.bitwiseTo(t,br,r),r},e.prototype.xor=function(t){var r=Y();return this.bitwiseTo(t,Eo,r),r},e.prototype.andNot=function(t){var r=Y();return this.bitwiseTo(t,So,r),r},e.prototype.not=function(){for(var t=Y(),r=0;r<this.t;++r)t[r]=this.DM&~this[r];return t.t=this.t,t.s=~this.s,t},e.prototype.shiftLeft=function(t){var r=Y();return t<0?this.rShiftTo(-t,r):this.lShiftTo(t,r),r},e.prototype.shiftRight=function(t){var r=Y();return t<0?this.lShiftTo(-t,r):this.rShiftTo(t,r),r},e.prototype.getLowestSetBit=function(){for(var t=0;t<this.t;++t)if(this[t]!=0)return t*this.DB+jy(this[t]);return this.s<0?this.t*this.DB:-1},e.prototype.bitCount=function(){for(var t=0,r=this.s&this.DM,n=0;n<this.t;++n)t+=Dy(this[n]^r);return t},e.prototype.testBit=function(t){var r=Math.floor(t/this.DB);return r>=this.t?this.s!=0:(this[r]&1<<t%this.DB)!=0},e.prototype.setBit=function(t){return this.changeBit(t,br)},e.prototype.clearBit=function(t){return this.changeBit(t,So)},e.prototype.flipBit=function(t){return this.changeBit(t,Eo)},e.prototype.add=function(t){var r=Y();return this.addTo(t,r),r},e.prototype.subtract=function(t){var r=Y();return this.subTo(t,r),r},e.prototype.multiply=function(t){var r=Y();return this.multiplyTo(t,r),r},e.prototype.divide=function(t){var r=Y();return this.divRemTo(t,r,null),r},e.prototype.remainder=function(t){var r=Y();return this.divRemTo(t,null,r),r},e.prototype.divideAndRemainder=function(t){var r=Y(),n=Y();return this.divRemTo(t,r,n),[r,n]},e.prototype.modPow=function(t,r){var n=t.bitLength(),i,s=Ut(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 $o(r):r.isEven()?o=new Fy(r):o=new Ao(r);var a=[],u=3,c=i-1,l=(1<<i)-1;if(a[1]=o.convert(this),i>1){var f=Y();for(o.sqrTo(a[1],f);u<=l;)a[u]=Y(),o.mulTo(f,a[u-2],a[u]),u+=2}var p=t.t-1,h,m=!0,d=Y(),b;for(n=_r(t[p])-1;p>=0;){for(n>=c?h=t[p]>>n-c&l:(h=(t[p]&(1<<n+1)-1)<<c-n,p>0&&(h|=t[p-1]>>this.DB+n-c)),u=i;!(h&1);)h>>=1,--u;if((n-=u)<0&&(n+=this.DB,--p),m)a[h].copyTo(s),m=!1;else{for(;u>1;)o.sqrTo(s,d),o.sqrTo(d,s),u-=2;u>0?o.sqrTo(s,d):(b=s,s=d,d=b),o.mulTo(d,a[h],s)}for(;p>=0&&!(t[p]&1<<n);)o.sqrTo(s,d),b=s,s=d,d=b,--n<0&&(n=this.DB-1,--p)}return o.revert(s)},e.prototype.modInverse=function(t){var r=t.isEven();if(this.isEven()&&r||t.signum()==0)return e.ZERO;for(var n=t.clone(),i=this.clone(),s=Ut(1),o=Ut(0),a=Ut(0),u=Ut(1);n.signum()!=0;){for(;n.isEven();)n.rShiftTo(1,n),r?((!s.isEven()||!o.isEven())&&(s.addTo(this,s),o.subTo(t,o)),s.rShiftTo(1,s)):o.isEven()||o.subTo(t,o),o.rShiftTo(1,o);for(;i.isEven();)i.rShiftTo(1,i),r?((!a.isEven()||!u.isEven())&&(a.addTo(this,a),u.subTo(t,u)),a.rShiftTo(1,a)):u.isEven()||u.subTo(t,u),u.rShiftTo(1,u);n.compareTo(i)>=0?(n.subTo(i,n),r&&s.subTo(a,s),o.subTo(u,o)):(i.subTo(n,i),r&&a.subTo(s,a),u.subTo(o,u))}if(i.compareTo(e.ONE)!=0)return e.ZERO;if(u.compareTo(t)>=0)return u.subtract(t);if(u.signum()<0)u.addTo(t,u);else return u;return u.signum()<0?u.add(t):u},e.prototype.pow=function(t){return this.exp(t,new Iy)},e.prototype.gcd=function(t){var r=this.s<0?this.negate():this.clone(),n=t.s<0?t.negate():t.clone();if(r.compareTo(n)<0){var i=r;r=n,n=i}var s=r.getLowestSetBit(),o=n.getLowestSetBit();if(o<0)return r;for(s<o&&(o=s),o>0&&(r.rShiftTo(o,r),n.rShiftTo(o,n));r.signum()>0;)(s=r.getLowestSetBit())>0&&r.rShiftTo(s,r),(s=n.getLowestSetBit())>0&&n.rShiftTo(s,n),r.compareTo(n)>=0?(r.subTo(n,r),r.rShiftTo(1,r)):(n.subTo(r,n),n.rShiftTo(1,n));return o>0&&n.lShiftTo(o,n),n},e.prototype.isProbablePrime=function(t){var r,n=this.abs();if(n.t==1&&n[0]<=ut[ut.length-1]){for(r=0;r<ut.length;++r)if(n[0]==ut[r])return!0;return!1}if(n.isEven())return!1;for(r=1;r<ut.length;){for(var i=ut[r],s=r+1;s<ut.length&&i<My;)i*=ut[s++];for(i=n.modInt(i);r<s;)if(i%ut[r++]==0)return!1}return n.millerRabin(t)},e.prototype.copyTo=function(t){for(var r=this.t-1;r>=0;--r)t[r]=this[r];t.t=this.t,t.s=this.s},e.prototype.fromInt=function(t){this.t=1,this.s=t<0?-1:0,t>0?this[0]=t:t<-1?this[0]=t+this.DV:this.t=0},e.prototype.fromString=function(t,r){var n;if(r==16)n=4;else if(r==8)n=3;else if(r==256)n=8;else if(r==2)n=1;else if(r==32)n=5;else if(r==4)n=2;else{this.fromRadix(t,r);return}this.t=0,this.s=0;for(var i=t.length,s=!1,o=0;--i>=0;){var a=n==8?+t[i]&255:jo(t,i);if(a<0){t.charAt(i)=="-"&&(s=!0);continue}s=!1,o==0?this[this.t++]=a:o+n>this.DB?(this[this.t-1]|=(a&(1<<this.DB-o)-1)<<o,this[this.t++]=a>>this.DB-o):this[this.t-1]|=a<<o,o+=n,o>=this.DB&&(o-=this.DB)}n==8&&+t[0]&128&&(this.s=-1,o>0&&(this[this.t-1]|=(1<<this.DB-o)-1<<o)),this.clamp(),s&&e.ZERO.subTo(this,this)},e.prototype.clamp=function(){for(var t=this.s&this.DM;this.t>0&&this[this.t-1]==t;)--this.t},e.prototype.dlShiftTo=function(t,r){var n;for(n=this.t-1;n>=0;--n)r[n+t]=this[n];for(n=t-1;n>=0;--n)r[n]=0;r.t=this.t+t,r.s=this.s},e.prototype.drShiftTo=function(t,r){for(var n=t;n<this.t;++n)r[n-t]=this[n];r.t=Math.max(this.t-t,0),r.s=this.s},e.prototype.lShiftTo=function(t,r){for(var n=t%this.DB,i=this.DB-n,s=(1<<i)-1,o=Math.floor(t/this.DB),a=this.s<<n&this.DM,u=this.t-1;u>=0;--u)r[u+o+1]=this[u]>>i|a,a=(this[u]&s)<<n;for(var u=o-1;u>=0;--u)r[u]=0;r[o]=a,r.t=this.t+o+1,r.s=this.s,r.clamp()},e.prototype.rShiftTo=function(t,r){r.s=this.s;var n=Math.floor(t/this.DB);if(n>=this.t){r.t=0;return}var i=t%this.DB,s=this.DB-i,o=(1<<i)-1;r[0]=this[n]>>i;for(var a=n+1;a<this.t;++a)r[a-n-1]|=(this[a]&o)<<s,r[a-n]=this[a]>>i;i>0&&(r[this.t-n-1]|=(this.s&o)<<s),r.t=this.t-n,r.clamp()},e.prototype.subTo=function(t,r){for(var n=0,i=0,s=Math.min(t.t,this.t);n<s;)i+=this[n]-t[n],r[n++]=i&this.DM,i>>=this.DB;if(t.t<this.t){for(i-=t.s;n<this.t;)i+=this[n],r[n++]=i&this.DM,i>>=this.DB;i+=this.s}else{for(i+=this.s;n<t.t;)i-=t[n],r[n++]=i&this.DM,i>>=this.DB;i-=t.s}r.s=i<0?-1:0,i<-1?r[n++]=this.DV+i:i>0&&(r[n++]=i),r.t=n,r.clamp()},e.prototype.multiplyTo=function(t,r){var n=this.abs(),i=t.abs(),s=n.t;for(r.t=s+i.t;--s>=0;)r[s]=0;for(s=0;s<i.t;++s)r[s+n.t]=n.am(0,i[s],r,s,0,n.t);r.s=0,r.clamp(),this.s!=t.s&&e.ZERO.subTo(r,r)},e.prototype.squareTo=function(t){for(var r=this.abs(),n=t.t=2*r.t;--n>=0;)t[n]=0;for(n=0;n<r.t-1;++n){var i=r.am(n,r[n],t,2*n,0,1);(t[n+r.t]+=r.am(n+1,2*r[n],t,2*n+1,i,r.t-n-1))>=r.DV&&(t[n+r.t]-=r.DV,t[n+r.t+1]=1)}t.t>0&&(t[t.t-1]+=r.am(n,r[n],t,2*n,0,1)),t.s=0,t.clamp()},e.prototype.divRemTo=function(t,r,n){var i=t.abs();if(!(i.t<=0)){var s=this.abs();if(s.t<i.t){r==null||r.fromInt(0),n!=null&&this.copyTo(n);return}n==null&&(n=Y());var o=Y(),a=this.s,u=t.s,c=this.DB-_r(i[i.t-1]);c>0?(i.lShiftTo(c,o),s.lShiftTo(c,n)):(i.copyTo(o),s.copyTo(n));var l=o.t,f=o[l-1];if(f!=0){var p=f*(1<<this.F1)+(l>1?o[l-2]>>this.F2:0),h=this.FV/p,m=(1<<this.F1)/p,d=1<<this.F2,b=n.t,E=b-l,g=r!=null?r:Y();for(o.dlShiftTo(E,g),n.compareTo(g)>=0&&(n[n.t++]=1,n.subTo(g,n)),e.ONE.dlShiftTo(l,g),g.subTo(o,o);o.t<l;)o[o.t++]=0;for(;--E>=0;){var y=n[--b]==f?this.DM:Math.floor(n[b]*h+(n[b-1]+d)*m);if((n[b]+=o.am(0,y,n,E,0,l))<y)for(o.dlShiftTo(E,g),n.subTo(g,n);n[b]<--y;)n.subTo(g,n)}r!=null&&(n.drShiftTo(l,r),a!=u&&e.ZERO.subTo(r,r)),n.t=l,n.clamp(),c>0&&n.rShiftTo(c,n),a<0&&e.ZERO.subTo(n,n)}}},e.prototype.invDigit=function(){if(this.t<1)return 0;var t=this[0];if(!(t&1))return 0;var r=t&3;return r=r*(2-(t&15)*r)&15,r=r*(2-(t&255)*r)&255,r=r*(2-((t&65535)*r&65535))&65535,r=r*(2-t*r%this.DV)%this.DV,r>0?this.DV-r:-r},e.prototype.isEven=function(){return(this.t>0?this[0]&1:this.s)==0},e.prototype.exp=function(t,r){if(t>4294967295||t<1)return e.ONE;var n=Y(),i=Y(),s=r.convert(this),o=_r(t)-1;for(s.copyTo(n);--o>=0;)if(r.sqrTo(n,i),(t&1<<o)>0)r.mulTo(i,s,n);else{var a=n;n=i,i=a}return r.revert(n)},e.prototype.chunkSize=function(t){return Math.floor(Math.LN2*this.DB/Math.log(t))},e.prototype.toRadix=function(t){if(t==null&&(t=10),this.signum()==0||t<2||t>36)return"0";var r=this.chunkSize(t),n=Math.pow(t,r),i=Ut(n),s=Y(),o=Y(),a="";for(this.divRemTo(i,s,o);s.signum()>0;)a=(n+o.intValue()).toString(t).substr(1)+a,s.divRemTo(i,s,o);return o.intValue().toString(t)+a},e.prototype.fromRadix=function(t,r){this.fromInt(0),r==null&&(r=10);for(var n=this.chunkSize(r),i=Math.pow(r,n),s=!1,o=0,a=0,u=0;u<t.length;++u){var c=jo(t,u);if(c<0){t.charAt(u)=="-"&&this.signum()==0&&(s=!0);continue}a=r*a+c,++o>=n&&(this.dMultiply(i),this.dAddOffset(a,0),o=0,a=0)}o>0&&(this.dMultiply(Math.pow(r,o)),this.dAddOffset(a,0)),s&&e.ZERO.subTo(this,this)},e.prototype.fromNumber=function(t,r,n){if(typeof r=="number")if(t<2)this.fromInt(1);else for(this.fromNumber(t,n),this.testBit(t-1)||this.bitwiseTo(e.ONE.shiftLeft(t-1),br,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(r);)this.dAddOffset(2,0),this.bitLength()>t&&this.subTo(e.ONE.shiftLeft(t-1),this);else{var i=[],s=t&7;i.length=(t>>3)+1,r.nextBytes(i),s>0?i[0]&=(1<<s)-1:i[0]=0,this.fromString(i,256)}},e.prototype.bitwiseTo=function(t,r,n){var i,s,o=Math.min(t.t,this.t);for(i=0;i<o;++i)n[i]=r(this[i],t[i]);if(t.t<this.t){for(s=t.s&this.DM,i=o;i<this.t;++i)n[i]=r(this[i],s);n.t=this.t}else{for(s=this.s&this.DM,i=o;i<t.t;++i)n[i]=r(s,t[i]);n.t=t.t}n.s=r(this.s,t.s),n.clamp()},e.prototype.changeBit=function(t,r){var n=e.ONE.shiftLeft(t);return this.bitwiseTo(n,r,n),n},e.prototype.addTo=function(t,r){for(var n=0,i=0,s=Math.min(t.t,this.t);n<s;)i+=this[n]+t[n],r[n++]=i&this.DM,i>>=this.DB;if(t.t<this.t){for(i+=t.s;n<this.t;)i+=this[n],r[n++]=i&this.DM,i>>=this.DB;i+=this.s}else{for(i+=this.s;n<t.t;)i+=t[n],r[n++]=i&this.DM,i>>=this.DB;i+=t.s}r.s=i<0?-1:0,i>0?r[n++]=i:i<-1&&(r[n++]=this.DV+i),r.t=n,r.clamp()},e.prototype.dMultiply=function(t){this[this.t]=this.am(0,t-1,this,0,0,this.t),++this.t,this.clamp()},e.prototype.dAddOffset=function(t,r){if(t!=0){for(;this.t<=r;)this[this.t++]=0;for(this[r]+=t;this[r]>=this.DV;)this[r]-=this.DV,++r>=this.t&&(this[this.t++]=0),++this[r]}},e.prototype.multiplyLowerTo=function(t,r,n){var i=Math.min(this.t+t.t,r);for(n.s=0,n.t=i;i>0;)n[--i]=0;for(var s=n.t-this.t;i<s;++i)n[i+this.t]=this.am(0,t[i],n,i,0,this.t);for(var s=Math.min(t.t,r);i<s;++i)this.am(0,t[i],n,i,0,r-i);n.clamp()},e.prototype.multiplyUpperTo=function(t,r,n){--r;var i=n.t=this.t+t.t-r;for(n.s=0;--i>=0;)n[i]=0;for(i=Math.max(r-this.t,0);i<t.t;++i)n[this.t+i-r]=this.am(r-i,t[i],n,0,0,this.t+i-r);n.clamp(),n.drShiftTo(1,n)},e.prototype.modInt=function(t){if(t<=0)return 0;var r=this.DV%t,n=this.s<0?t-1:0;if(this.t>0)if(r==0)n=this[0]%t;else for(var i=this.t-1;i>=0;--i)n=(r*n+this[i])%t;return n},e.prototype.millerRabin=function(t){var r=this.subtract(e.ONE),n=r.getLowestSetBit();if(n<=0)return!1;var i=r.shiftRight(n);t=t+1>>1,t>ut.length&&(t=ut.length);for(var s=Y(),o=0;o<t;++o){s.fromInt(ut[Math.floor(Math.random()*ut.length)]);var a=s.modPow(i,this);if(a.compareTo(e.ONE)!=0&&a.compareTo(r)!=0){for(var u=1;u++<n&&a.compareTo(r)!=0;)if(a=a.modPowInt(2,this),a.compareTo(e.ONE)==0)return!1;if(a.compareTo(r)!=0)return!1}}return!0},e.prototype.square=function(){var t=Y();return this.squareTo(t),t},e.prototype.gcda=function(t,r){var n=this.s<0?this.negate():this.clone(),i=t.s<0?t.negate():t.clone();if(n.compareTo(i)<0){var s=n;n=i,i=s}var o=n.getLowestSetBit(),a=i.getLowestSetBit();if(a<0){r(n);return}o<a&&(a=o),a>0&&(n.rShiftTo(a,n),i.rShiftTo(a,i));var u=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(u,0):(a>0&&i.lShiftTo(a,i),setTimeout(function(){r(i)},0))};setTimeout(u,10)},e.prototype.fromNumberAsync=function(t,r,n,i){if(typeof r=="number")if(t<2)this.fromInt(1);else{this.fromNumber(t,n),this.testBit(t-1)||this.bitwiseTo(e.ONE.shiftLeft(t-1),br,this),this.isEven()&&this.dAddOffset(1,0);var s=this,o=function(){s.dAddOffset(2,0),s.bitLength()>t&&s.subTo(e.ONE.shiftLeft(t-1),s),s.isProbablePrime(r)?setTimeout(function(){i()},0):setTimeout(o,0)};setTimeout(o,0)}else{var a=[],u=t&7;a.length=(t>>3)+1,r.nextBytes(a),u>0?a[0]&=(1<<u)-1:a[0]=0,this.fromString(a,256)}},e}(),Iy=function(){function e(){}return e.prototype.convert=function(t){return t},e.prototype.revert=function(t){return t},e.prototype.mulTo=function(t,r,n){t.multiplyTo(r,n)},e.prototype.sqrTo=function(t,r){t.squareTo(r)},e}(),$o=function(){function e(t){this.m=t}return e.prototype.convert=function(t){return t.s<0||t.compareTo(this.m)>=0?t.mod(this.m):t},e.prototype.revert=function(t){return t},e.prototype.reduce=function(t){t.divRemTo(this.m,null,t)},e.prototype.mulTo=function(t,r,n){t.multiplyTo(r,n),this.reduce(n)},e.prototype.sqrTo=function(t,r){t.squareTo(r),this.reduce(r)},e}(),Ao=function(){function e(t){this.m=t,this.mp=t.invDigit(),this.mpl=this.mp&32767,this.mph=this.mp>>15,this.um=(1<<t.DB-15)-1,this.mt2=2*t.t}return e.prototype.convert=function(t){var r=Y();return t.abs().dlShiftTo(this.m.t,r),r.divRemTo(this.m,null,r),t.s<0&&r.compareTo(W.ZERO)>0&&this.m.subTo(r,r),r},e.prototype.revert=function(t){var r=Y();return t.copyTo(r),this.reduce(r),r},e.prototype.reduce=function(t){for(;t.t<=this.mt2;)t[t.t++]=0;for(var r=0;r<this.m.t;++r){var n=t[r]&32767,i=n*this.mpl+((n*this.mph+(t[r]>>15)*this.mpl&this.um)<<15)&t.DM;for(n=r+this.m.t,t[n]+=this.m.am(0,i,t,r,0,this.m.t);t[n]>=t.DV;)t[n]-=t.DV,t[++n]++}t.clamp(),t.drShiftTo(this.m.t,t),t.compareTo(this.m)>=0&&t.subTo(this.m,t)},e.prototype.mulTo=function(t,r,n){t.multiplyTo(r,n),this.reduce(n)},e.prototype.sqrTo=function(t,r){t.squareTo(r),this.reduce(r)},e}(),Fy=function(){function e(t){this.m=t,this.r2=Y(),this.q3=Y(),W.ONE.dlShiftTo(2*t.t,this.r2),this.mu=this.r2.divide(t)}return e.prototype.convert=function(t){if(t.s<0||t.t>2*this.m.t)return t.mod(this.m);if(t.compareTo(this.m)<0)return t;var r=Y();return t.copyTo(r),this.reduce(r),r},e.prototype.revert=function(t){return t},e.prototype.reduce=function(t){for(t.drShiftTo(this.m.t-1,this.r2),t.t>this.m.t+1&&(t.t=this.m.t+1,t.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);t.compareTo(this.r2)<0;)t.dAddOffset(1,this.m.t+1);for(t.subTo(this.r2,t);t.compareTo(this.m)>=0;)t.subTo(this.m,t)},e.prototype.mulTo=function(t,r,n){t.multiplyTo(r,n),this.reduce(n)},e.prototype.sqrTo=function(t,r){t.squareTo(r),this.reduce(r)},e}();function Y(){return new W(null)}function et(e,t){return new W(e,t)}var Ro=typeof navigator<"u";Ro&&Oo&&navigator.appName=="Microsoft Internet Explorer"?(W.prototype.am=function(e,t,r,n,i,s){for(var o=t&32767,a=t>>15;--s>=0;){var u=this[e]&32767,c=this[e++]>>15,l=a*u+c*o;u=o*u+((l&32767)<<15)+r[n]+(i&1073741823),i=(u>>>30)+(l>>>15)+a*c+(i>>>30),r[n++]=u&1073741823}return i},Vt=30):Ro&&Oo&&navigator.appName!="Netscape"?(W.prototype.am=function(e,t,r,n,i,s){for(;--s>=0;){var o=t*this[e++]+r[n]+i;i=Math.floor(o/67108864),r[n++]=o&67108863}return i},Vt=26):(W.prototype.am=function(e,t,r,n,i,s){for(var o=t&16383,a=t>>14;--s>=0;){var u=this[e]&16383,c=this[e++]>>14,l=a*u+c*o;u=o*u+((l&16383)<<14)+r[n]+i,i=(u>>28)+(l>>14)+a*c,r[n++]=u&268435455}return i},Vt=28),W.prototype.DB=Vt,W.prototype.DM=(1<<Vt)-1,W.prototype.DV=1<<Vt;var jn=52;W.prototype.FV=Math.pow(2,jn),W.prototype.F1=jn-Vt,W.prototype.F2=2*Vt-jn;var an=[],Re,Tt;for(Re=48,Tt=0;Tt<=9;++Tt)an[Re++]=Tt;for(Re=97,Tt=10;Tt<36;++Tt)an[Re++]=Tt;for(Re=65,Tt=10;Tt<36;++Tt)an[Re++]=Tt;function jo(e,t){var r=an[e.charCodeAt(t)];return r!=null?r:-1}function Ut(e){var t=Y();return t.fromInt(e),t}function _r(e){var t=1,r;return(r=e>>>16)!=0&&(e=r,t+=16),(r=e>>8)!=0&&(e=r,t+=8),(r=e>>4)!=0&&(e=r,t+=4),(r=e>>2)!=0&&(e=r,t+=2),(r=e>>1)!=0&&(e=r,t+=1),t}W.ZERO=Ut(0),W.ONE=Ut(1);var Ly=function(){function e(){this.i=0,this.j=0,this.S=[]}return e.prototype.init=function(t){var r,n,i;for(r=0;r<256;++r)this.S[r]=r;for(n=0,r=0;r<256;++r)n=n+this.S[r]+t[r%t.length]&255,i=this.S[r],this.S[r]=this.S[n],this.S[n]=i;this.i=0,this.j=0},e.prototype.next=function(){var t;return this.i=this.i+1&255,this.j=this.j+this.S[this.i]&255,t=this.S[this.i],this.S[this.i]=this.S[this.j],this.S[this.j]=t,this.S[t+this.S[this.i]&255]},e}();function Vy(){return new Ly}var mc=256,wr,zt=null,Ot;if(zt==null){zt=[],Ot=0;var Er=void 0;if(typeof window<"u"&&window.crypto&&window.crypto.getRandomValues){var Dn=new Uint32Array(256);for(window.crypto.getRandomValues(Dn),Er=0;Er<Dn.length;++Er)zt[Ot++]=Dn[Er]&255}var Sr=0,xr=function(e){if(Sr=Sr||0,Sr>=256||Ot>=mc){window.removeEventListener?window.removeEventListener("mousemove",xr,!1):window.detachEvent&&window.detachEvent("onmousemove",xr);return}try{var t=e.x+e.y;zt[Ot++]=t&255,Sr+=1}catch(r){}};typeof window<"u"&&(window.addEventListener?window.addEventListener("mousemove",xr,!1):window.attachEvent&&window.attachEvent("onmousemove",xr))}function Uy(){if(wr==null){for(wr=Vy();Ot<mc;){var e=Math.floor(65536*Math.random());zt[Ot++]=e&255}for(wr.init(zt),Ot=0;Ot<zt.length;++Ot)zt[Ot]=0;Ot=0}return wr.next()}var ri=function(){function e(){}return e.prototype.nextBytes=function(t){for(var r=0;r<t.length;++r)t[r]=Uy()},e}();function Hy(e,t){if(t<e.length+22)return console.error("Message too long for RSA"),null;for(var r=t-e.length-6,n="",i=0;i<r;i+=2)n+="ff";var s="0001"+n+"00"+e;return et(s,16)}function zy(e,t){if(t<e.length+11)return console.error("Message too long for RSA"),null;for(var r=[],n=e.length-1;n>=0&&t>0;){var i=e.charCodeAt(n--);i<128?r[--t]=i:i>127&&i<2048?(r[--t]=i&63|128,r[--t]=i>>6|192):(r[--t]=i&63|128,r[--t]=i>>6&63|128,r[--t]=i>>12|224)}r[--t]=0;for(var s=new ri,o=[];t>2;){for(o[0]=0;o[0]==0;)s.nextBytes(o);r[--t]=o[0]}return r[--t]=2,r[--t]=0,new W(r)}var qy=function(){function e(){this.n=null,this.e=0,this.d=null,this.p=null,this.q=null,this.dmp1=null,this.dmq1=null,this.coeff=null}return e.prototype.doPublic=function(t){return t.modPowInt(this.e,this.n)},e.prototype.doPrivate=function(t){if(this.p==null||this.q==null)return t.modPow(this.d,this.n);for(var r=t.mod(this.p).modPow(this.dmp1,this.p),n=t.mod(this.q).modPow(this.dmq1,this.q);r.compareTo(n)<0;)r=r.add(this.p);return r.subtract(n).multiply(this.coeff).mod(this.p).multiply(this.q).add(n)},e.prototype.setPublic=function(t,r){t!=null&&r!=null&&t.length>0&&r.length>0?(this.n=et(t,16),this.e=parseInt(r,16)):console.error("Invalid RSA public key")},e.prototype.encrypt=function(t){var r=this.n.bitLength()+7>>3,n=zy(t,r);if(n==null)return null;var i=this.doPublic(n);if(i==null)return null;for(var s=i.toString(16),o=s.length,a=0;a<r*2-o;a++)s="0"+s;return s},e.prototype.setPrivate=function(t,r,n){t!=null&&r!=null&&t.length>0&&r.length>0?(this.n=et(t,16),this.e=parseInt(r,16),this.d=et(n,16)):console.error("Invalid RSA private key")},e.prototype.setPrivateEx=function(t,r,n,i,s,o,a,u){t!=null&&r!=null&&t.length>0&&r.length>0?(this.n=et(t,16),this.e=parseInt(r,16),this.d=et(n,16),this.p=et(i,16),this.q=et(s,16),this.dmp1=et(o,16),this.dmq1=et(a,16),this.coeff=et(u,16)):console.error("Invalid RSA private key")},e.prototype.generate=function(t,r){var n=new ri,i=t>>1;this.e=parseInt(r,16);for(var s=new W(r,16);;){for(;this.p=new W(t-i,1,n),!(this.p.subtract(W.ONE).gcd(s).compareTo(W.ONE)==0&&this.p.isProbablePrime(10)););for(;this.q=new W(i,1,n),!(this.q.subtract(W.ONE).gcd(s).compareTo(W.ONE)==0&&this.q.isProbablePrime(10)););if(this.p.compareTo(this.q)<=0){var o=this.p;this.p=this.q,this.q=o}var a=this.p.subtract(W.ONE),u=this.q.subtract(W.ONE),c=a.multiply(u);if(c.gcd(s).compareTo(W.ONE)==0){this.n=this.p.multiply(this.q),this.d=s.modInverse(c),this.dmp1=this.d.mod(a),this.dmq1=this.d.mod(u),this.coeff=this.q.modInverse(this.p);break}}},e.prototype.decrypt=function(t){var r=et(t,16),n=this.doPrivate(r);return n==null?null:Ky(n,this.n.bitLength()+7>>3)},e.prototype.generateAsync=function(t,r,n){var i=new ri,s=t>>1;this.e=parseInt(r,16);var o=new W(r,16),a=this,u=function(){var c=function(){if(a.p.compareTo(a.q)<=0){var p=a.p;a.p=a.q,a.q=p}var h=a.p.subtract(W.ONE),m=a.q.subtract(W.ONE),d=h.multiply(m);d.gcd(o).compareTo(W.ONE)==0?(a.n=a.p.multiply(a.q),a.d=o.modInverse(d),a.dmp1=a.d.mod(h),a.dmq1=a.d.mod(m),a.coeff=a.q.modInverse(a.p),setTimeout(function(){n()},0)):setTimeout(u,0)},l=function(){a.q=Y(),a.q.fromNumberAsync(s,1,i,function(){a.q.subtract(W.ONE).gcda(o,function(p){p.compareTo(W.ONE)==0&&a.q.isProbablePrime(10)?setTimeout(c,0):setTimeout(l,0)})})},f=function(){a.p=Y(),a.p.fromNumberAsync(t-s,1,i,function(){a.p.subtract(W.ONE).gcda(o,function(p){p.compareTo(W.ONE)==0&&a.p.isProbablePrime(10)?setTimeout(l,0):setTimeout(f,0)})})};setTimeout(f,0)};setTimeout(u,0)},e.prototype.sign=function(t,r,n){var i=Jy(n),s=i+r(t).toString(),o=Hy(s,this.n.bitLength()/4);if(o==null)return null;var a=this.doPrivate(o);if(a==null)return null;var u=a.toString(16);return u.length&1?"0"+u:u},e.prototype.verify=function(t,r,n){var i=et(r,16),s=this.doPublic(i);if(s==null)return null;var o=s.toString(16).replace(/^1f+00/,""),a=Wy(o);return a==n(t).toString()},e}();function Ky(e,t){for(var r=e.toByteArray(),n=0;n<r.length&&r[n]==0;)++n;if(r.length-n!=t-1||r[n]!=2)return null;for(++n;r[n]!=0;)if(++n>=r.length)return null;for(var i="";++n<r.length;){var s=r[n]&255;s<128?i+=String.fromCharCode(s):s>191&&s<224?(i+=String.fromCharCode((s&31)<<6|r[n+1]&63),++n):(i+=String.fromCharCode((s&15)<<12|(r[n+1]&63)<<6|r[n+2]&63),n+=2)}return i}var jr={md2:"3020300c06082a864886f70d020205000410",md5:"3020300c06082a864886f70d020505000410",sha1:"3021300906052b0e03021a05000414",sha224:"302d300d06096086480165030402040500041c",sha256:"3031300d060960864801650304020105000420",sha384:"3041300d060960864801650304020205000430",sha512:"3051300d060960864801650304020305000440",ripemd160:"3021300906052b2403020105000414"};function Jy(e){return jr[e]||""}function Wy(e){for(var t in jr)if(jr.hasOwnProperty(t)){var r=jr[t],n=r.length;if(e.substr(0,n)==r)return e.substr(n)}return e}/*!
25
+ `;n/=2,i>n&&(r=t+n);for(var o=t;o<r;++o)s+=this.hexByte(this.get(o));return i>n&&(s+=dc),s},e.prototype.parseOID=function(t,r,n){for(var i="",s=new Ke,o=0,a=t;a<r;++a){var u=this.get(a);if(s.mulAdd(128,u&127),o+=7,!(u&128)){if(i==="")if(s=s.simplify(),s instanceof Ke)s.sub(80),i="2."+s.toString();else{var c=s<80?s<40?0:1:2;i=c+"."+(s-c*40)}else i+="."+s.toString();if(i.length>n)return Ee(i,n);s=new Ke,o=0}}return o>0&&(i+=".incomplete"),i},e}(),Ny=function(){function e(t,r,n,i,s){if(!(i instanceof To))throw new Error("Invalid tag value.");this.stream=t,this.header=r,this.length=n,this.tag=i,this.sub=s}return e.prototype.typeName=function(){switch(this.tag.tagClass){case 0:switch(this.tag.tagNumber){case 0:return"EOC";case 1:return"BOOLEAN";case 2:return"INTEGER";case 3:return"BIT_STRING";case 4:return"OCTET_STRING";case 5:return"NULL";case 6:return"OBJECT_IDENTIFIER";case 7:return"ObjectDescriptor";case 8:return"EXTERNAL";case 9:return"REAL";case 10:return"ENUMERATED";case 11:return"EMBEDDED_PDV";case 12:return"UTF8String";case 16:return"SEQUENCE";case 17:return"SET";case 18:return"NumericString";case 19:return"PrintableString";case 20:return"TeletexString";case 21:return"VideotexString";case 22:return"IA5String";case 23:return"UTCTime";case 24:return"GeneralizedTime";case 25:return"GraphicString";case 26:return"VisibleString";case 27:return"GeneralString";case 28:return"UniversalString";case 30:return"BMPString"}return"Universal_"+this.tag.tagNumber.toString();case 1:return"Application_"+this.tag.tagNumber.toString();case 2:return"["+this.tag.tagNumber.toString()+"]";case 3:return"Private_"+this.tag.tagNumber.toString()}},e.prototype.content=function(t){if(this.tag===void 0)return null;t===void 0&&(t=1/0);var r=this.posContent(),n=Math.abs(this.length);if(!this.tag.isUniversal())return this.sub!==null?"("+this.sub.length+" elem)":this.stream.parseOctetString(r,r+n,t);switch(this.tag.tagNumber){case 1:return this.stream.get(r)===0?"false":"true";case 2:return this.stream.parseInteger(r,r+n);case 3:return this.sub?"("+this.sub.length+" elem)":this.stream.parseBitString(r,r+n,t);case 4:return this.sub?"("+this.sub.length+" elem)":this.stream.parseOctetString(r,r+n,t);case 6:return this.stream.parseOID(r,r+n,t);case 16:case 17:return this.sub!==null?"("+this.sub.length+" elem)":"(no elem)";case 12:return Ee(this.stream.parseStringUTF(r,r+n),t);case 18:case 19:case 20:case 21:case 22:case 26:return Ee(this.stream.parseStringISO(r,r+n),t);case 30:return Ee(this.stream.parseStringBMP(r,r+n),t);case 23:case 24:return this.stream.parseTime(r,r+n,this.tag.tagNumber==23)}return null},e.prototype.toString=function(){return this.typeName()+"@"+this.stream.pos+"[header:"+this.header+",length:"+this.length+",sub:"+(this.sub===null?"null":this.sub.length)+"]"},e.prototype.toPrettyString=function(t){t===void 0&&(t="");var r=t+this.typeName()+" @"+this.stream.pos;if(this.length>=0&&(r+="+"),r+=this.length,this.tag.tagConstructed?r+=" (constructed)":this.tag.isUniversal()&&(this.tag.tagNumber==3||this.tag.tagNumber==4)&&this.sub!==null&&(r+=" (encapsulates)"),r+=`
26
+ `,this.sub!==null){t+=" ";for(var n=0,i=this.sub.length;n<i;++n)r+=this.sub[n].toPrettyString(t)}return r},e.prototype.posStart=function(){return this.stream.pos},e.prototype.posContent=function(){return this.stream.pos+this.header},e.prototype.posEnd=function(){return this.stream.pos+this.header+Math.abs(this.length)},e.prototype.toHexString=function(){return this.stream.hexDump(this.posStart(),this.posEnd(),!0)},e.decodeLength=function(t){var r=t.get(),n=r&127;if(n==r)return n;if(n>6)throw new Error("Length over 48 bits not supported at position "+(t.pos-1));if(n===0)return null;r=0;for(var i=0;i<n;++i)r=r*256+t.get();return r},e.prototype.getHexStringValue=function(){var t=this.toHexString(),r=this.header*2,n=this.length*2;return t.substr(r,n)},e.decode=function(t){var r;t instanceof Rn?r=t:r=new Rn(t,0);var n=new Rn(r),i=new To(r),s=e.decodeLength(r),o=r.pos,a=o-n.pos,u=null,c=function(){var f=[];if(s!==null){for(var p=o+s;r.pos<p;)f[f.length]=e.decode(r);if(r.pos!=p)throw new Error("Content size is not correct for container starting at offset "+o)}else try{for(;;){var h=e.decode(r);if(h.tag.isEOC())break;f[f.length]=h}s=o-r.pos}catch(m){throw new Error("Exception while decoding undefined length content: "+m)}return f};if(i.tagConstructed)u=c();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.");u=c();for(var l=0;l<u.length;++l)if(u[l].tag.isEOC())throw new Error("EOC is not supposed to be actual content.")}catch(f){u=null}if(u===null){if(s===null)throw new Error("We can't skip over an invalid tag with undefined length at offset "+o);r.pos=o+Math.abs(s)}return new e(n,a,s,i,u)},e}(),To=function(){function e(t){var r=t.get();if(this.tagClass=r>>6,this.tagConstructed=(r&32)!==0,this.tagNumber=r&31,this.tagNumber==31){var n=new Ke;do r=t.get(),n.mulAdd(128,r&127);while(r&128);this.tagNumber=n.simplify()}}return e.prototype.isUniversal=function(){return this.tagClass===0},e.prototype.isEOC=function(){return this.tagClass===0&&this.tagNumber===0},e}(),Vt,ky=0xdeadbeefcafe,Oo=(ky&16777215)==15715070,ut=[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],Iy=(1<<26)/ut[ut.length-1],W=function(){function e(t,r,n){t!=null&&(typeof t=="number"?this.fromNumber(t,r,n):r==null&&typeof t!="string"?this.fromString(t,256):this.fromString(t,r))}return e.prototype.toString=function(t){if(this.s<0)return"-"+this.negate().toString(t);var r;if(t==16)r=4;else if(t==8)r=3;else if(t==2)r=1;else if(t==32)r=5;else if(t==4)r=2;else return this.toRadix(t);var n=(1<<r)-1,i,s=!1,o="",a=this.t,u=this.DB-a*this.DB%r;if(a-- >0)for(u<this.DB&&(i=this[a]>>u)>0&&(s=!0,o=kt(i));a>=0;)u<r?(i=(this[a]&(1<<u)-1)<<r-u,i|=this[--a]>>(u+=this.DB-r)):(i=this[a]>>(u-=r)&n,u<=0&&(u+=this.DB,--a)),i>0&&(s=!0),s&&(o+=kt(i));return s?o:"0"},e.prototype.negate=function(){var t=Y();return e.ZERO.subTo(this,t),t},e.prototype.abs=function(){return this.s<0?this.negate():this},e.prototype.compareTo=function(t){var r=this.s-t.s;if(r!=0)return r;var n=this.t;if(r=n-t.t,r!=0)return this.s<0?-r:r;for(;--n>=0;)if((r=this[n]-t[n])!=0)return r;return 0},e.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+wr(this[this.t-1]^this.s&this.DM)},e.prototype.mod=function(t){var r=Y();return this.abs().divRemTo(t,null,r),this.s<0&&r.compareTo(e.ZERO)>0&&t.subTo(r,r),r},e.prototype.modPowInt=function(t,r){var n;return t<256||r.isEven()?n=new Ao(r):n=new $o(r),this.exp(t,n)},e.prototype.clone=function(){var t=Y();return this.copyTo(t),t},e.prototype.intValue=function(){if(this.s<0){if(this.t==1)return this[0]-this.DV;if(this.t==0)return-1}else{if(this.t==1)return this[0];if(this.t==0)return 0}return(this[1]&(1<<32-this.DB)-1)<<this.DB|this[0]},e.prototype.byteValue=function(){return this.t==0?this.s:this[0]<<24>>24},e.prototype.shortValue=function(){return this.t==0?this.s:this[0]<<16>>16},e.prototype.signum=function(){return this.s<0?-1:this.t<=0||this.t==1&&this[0]<=0?0:1},e.prototype.toByteArray=function(){var t=this.t,r=[];r[0]=this.s;var n=this.DB-t*this.DB%8,i,s=0;if(t-- >0)for(n<this.DB&&(i=this[t]>>n)!=(this.s&this.DM)>>n&&(r[s++]=i|this.s<<this.DB-n);t>=0;)n<8?(i=(this[t]&(1<<n)-1)<<8-n,i|=this[--t]>>(n+=this.DB-8)):(i=this[t]>>(n-=8)&255,n<=0&&(n+=this.DB,--t)),i&128&&(i|=-256),s==0&&(this.s&128)!=(i&128)&&++s,(s>0||i!=this.s)&&(r[s++]=i);return r},e.prototype.equals=function(t){return this.compareTo(t)==0},e.prototype.min=function(t){return this.compareTo(t)<0?this:t},e.prototype.max=function(t){return this.compareTo(t)>0?this:t},e.prototype.and=function(t){var r=Y();return this.bitwiseTo(t,Ry,r),r},e.prototype.or=function(t){var r=Y();return this.bitwiseTo(t,_r,r),r},e.prototype.xor=function(t){var r=Y();return this.bitwiseTo(t,Eo,r),r},e.prototype.andNot=function(t){var r=Y();return this.bitwiseTo(t,So,r),r},e.prototype.not=function(){for(var t=Y(),r=0;r<this.t;++r)t[r]=this.DM&~this[r];return t.t=this.t,t.s=~this.s,t},e.prototype.shiftLeft=function(t){var r=Y();return t<0?this.rShiftTo(-t,r):this.lShiftTo(t,r),r},e.prototype.shiftRight=function(t){var r=Y();return t<0?this.lShiftTo(-t,r):this.rShiftTo(t,r),r},e.prototype.getLowestSetBit=function(){for(var t=0;t<this.t;++t)if(this[t]!=0)return t*this.DB+jy(this[t]);return this.s<0?this.t*this.DB:-1},e.prototype.bitCount=function(){for(var t=0,r=this.s&this.DM,n=0;n<this.t;++n)t+=Dy(this[n]^r);return t},e.prototype.testBit=function(t){var r=Math.floor(t/this.DB);return r>=this.t?this.s!=0:(this[r]&1<<t%this.DB)!=0},e.prototype.setBit=function(t){return this.changeBit(t,_r)},e.prototype.clearBit=function(t){return this.changeBit(t,So)},e.prototype.flipBit=function(t){return this.changeBit(t,Eo)},e.prototype.add=function(t){var r=Y();return this.addTo(t,r),r},e.prototype.subtract=function(t){var r=Y();return this.subTo(t,r),r},e.prototype.multiply=function(t){var r=Y();return this.multiplyTo(t,r),r},e.prototype.divide=function(t){var r=Y();return this.divRemTo(t,r,null),r},e.prototype.remainder=function(t){var r=Y();return this.divRemTo(t,null,r),r},e.prototype.divideAndRemainder=function(t){var r=Y(),n=Y();return this.divRemTo(t,r,n),[r,n]},e.prototype.modPow=function(t,r){var n=t.bitLength(),i,s=Ut(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 Ao(r):r.isEven()?o=new Fy(r):o=new $o(r);var a=[],u=3,c=i-1,l=(1<<i)-1;if(a[1]=o.convert(this),i>1){var f=Y();for(o.sqrTo(a[1],f);u<=l;)a[u]=Y(),o.mulTo(f,a[u-2],a[u]),u+=2}var p=t.t-1,h,m=!0,d=Y(),b;for(n=wr(t[p])-1;p>=0;){for(n>=c?h=t[p]>>n-c&l:(h=(t[p]&(1<<n+1)-1)<<c-n,p>0&&(h|=t[p-1]>>this.DB+n-c)),u=i;!(h&1);)h>>=1,--u;if((n-=u)<0&&(n+=this.DB,--p),m)a[h].copyTo(s),m=!1;else{for(;u>1;)o.sqrTo(s,d),o.sqrTo(d,s),u-=2;u>0?o.sqrTo(s,d):(b=s,s=d,d=b),o.mulTo(d,a[h],s)}for(;p>=0&&!(t[p]&1<<n);)o.sqrTo(s,d),b=s,s=d,d=b,--n<0&&(n=this.DB-1,--p)}return o.revert(s)},e.prototype.modInverse=function(t){var r=t.isEven();if(this.isEven()&&r||t.signum()==0)return e.ZERO;for(var n=t.clone(),i=this.clone(),s=Ut(1),o=Ut(0),a=Ut(0),u=Ut(1);n.signum()!=0;){for(;n.isEven();)n.rShiftTo(1,n),r?((!s.isEven()||!o.isEven())&&(s.addTo(this,s),o.subTo(t,o)),s.rShiftTo(1,s)):o.isEven()||o.subTo(t,o),o.rShiftTo(1,o);for(;i.isEven();)i.rShiftTo(1,i),r?((!a.isEven()||!u.isEven())&&(a.addTo(this,a),u.subTo(t,u)),a.rShiftTo(1,a)):u.isEven()||u.subTo(t,u),u.rShiftTo(1,u);n.compareTo(i)>=0?(n.subTo(i,n),r&&s.subTo(a,s),o.subTo(u,o)):(i.subTo(n,i),r&&a.subTo(s,a),u.subTo(o,u))}if(i.compareTo(e.ONE)!=0)return e.ZERO;if(u.compareTo(t)>=0)return u.subtract(t);if(u.signum()<0)u.addTo(t,u);else return u;return u.signum()<0?u.add(t):u},e.prototype.pow=function(t){return this.exp(t,new My)},e.prototype.gcd=function(t){var r=this.s<0?this.negate():this.clone(),n=t.s<0?t.negate():t.clone();if(r.compareTo(n)<0){var i=r;r=n,n=i}var s=r.getLowestSetBit(),o=n.getLowestSetBit();if(o<0)return r;for(s<o&&(o=s),o>0&&(r.rShiftTo(o,r),n.rShiftTo(o,n));r.signum()>0;)(s=r.getLowestSetBit())>0&&r.rShiftTo(s,r),(s=n.getLowestSetBit())>0&&n.rShiftTo(s,n),r.compareTo(n)>=0?(r.subTo(n,r),r.rShiftTo(1,r)):(n.subTo(r,n),n.rShiftTo(1,n));return o>0&&n.lShiftTo(o,n),n},e.prototype.isProbablePrime=function(t){var r,n=this.abs();if(n.t==1&&n[0]<=ut[ut.length-1]){for(r=0;r<ut.length;++r)if(n[0]==ut[r])return!0;return!1}if(n.isEven())return!1;for(r=1;r<ut.length;){for(var i=ut[r],s=r+1;s<ut.length&&i<Iy;)i*=ut[s++];for(i=n.modInt(i);r<s;)if(i%ut[r++]==0)return!1}return n.millerRabin(t)},e.prototype.copyTo=function(t){for(var r=this.t-1;r>=0;--r)t[r]=this[r];t.t=this.t,t.s=this.s},e.prototype.fromInt=function(t){this.t=1,this.s=t<0?-1:0,t>0?this[0]=t:t<-1?this[0]=t+this.DV:this.t=0},e.prototype.fromString=function(t,r){var n;if(r==16)n=4;else if(r==8)n=3;else if(r==256)n=8;else if(r==2)n=1;else if(r==32)n=5;else if(r==4)n=2;else{this.fromRadix(t,r);return}this.t=0,this.s=0;for(var i=t.length,s=!1,o=0;--i>=0;){var a=n==8?+t[i]&255:jo(t,i);if(a<0){t.charAt(i)=="-"&&(s=!0);continue}s=!1,o==0?this[this.t++]=a:o+n>this.DB?(this[this.t-1]|=(a&(1<<this.DB-o)-1)<<o,this[this.t++]=a>>this.DB-o):this[this.t-1]|=a<<o,o+=n,o>=this.DB&&(o-=this.DB)}n==8&&+t[0]&128&&(this.s=-1,o>0&&(this[this.t-1]|=(1<<this.DB-o)-1<<o)),this.clamp(),s&&e.ZERO.subTo(this,this)},e.prototype.clamp=function(){for(var t=this.s&this.DM;this.t>0&&this[this.t-1]==t;)--this.t},e.prototype.dlShiftTo=function(t,r){var n;for(n=this.t-1;n>=0;--n)r[n+t]=this[n];for(n=t-1;n>=0;--n)r[n]=0;r.t=this.t+t,r.s=this.s},e.prototype.drShiftTo=function(t,r){for(var n=t;n<this.t;++n)r[n-t]=this[n];r.t=Math.max(this.t-t,0),r.s=this.s},e.prototype.lShiftTo=function(t,r){for(var n=t%this.DB,i=this.DB-n,s=(1<<i)-1,o=Math.floor(t/this.DB),a=this.s<<n&this.DM,u=this.t-1;u>=0;--u)r[u+o+1]=this[u]>>i|a,a=(this[u]&s)<<n;for(var u=o-1;u>=0;--u)r[u]=0;r[o]=a,r.t=this.t+o+1,r.s=this.s,r.clamp()},e.prototype.rShiftTo=function(t,r){r.s=this.s;var n=Math.floor(t/this.DB);if(n>=this.t){r.t=0;return}var i=t%this.DB,s=this.DB-i,o=(1<<i)-1;r[0]=this[n]>>i;for(var a=n+1;a<this.t;++a)r[a-n-1]|=(this[a]&o)<<s,r[a-n]=this[a]>>i;i>0&&(r[this.t-n-1]|=(this.s&o)<<s),r.t=this.t-n,r.clamp()},e.prototype.subTo=function(t,r){for(var n=0,i=0,s=Math.min(t.t,this.t);n<s;)i+=this[n]-t[n],r[n++]=i&this.DM,i>>=this.DB;if(t.t<this.t){for(i-=t.s;n<this.t;)i+=this[n],r[n++]=i&this.DM,i>>=this.DB;i+=this.s}else{for(i+=this.s;n<t.t;)i-=t[n],r[n++]=i&this.DM,i>>=this.DB;i-=t.s}r.s=i<0?-1:0,i<-1?r[n++]=this.DV+i:i>0&&(r[n++]=i),r.t=n,r.clamp()},e.prototype.multiplyTo=function(t,r){var n=this.abs(),i=t.abs(),s=n.t;for(r.t=s+i.t;--s>=0;)r[s]=0;for(s=0;s<i.t;++s)r[s+n.t]=n.am(0,i[s],r,s,0,n.t);r.s=0,r.clamp(),this.s!=t.s&&e.ZERO.subTo(r,r)},e.prototype.squareTo=function(t){for(var r=this.abs(),n=t.t=2*r.t;--n>=0;)t[n]=0;for(n=0;n<r.t-1;++n){var i=r.am(n,r[n],t,2*n,0,1);(t[n+r.t]+=r.am(n+1,2*r[n],t,2*n+1,i,r.t-n-1))>=r.DV&&(t[n+r.t]-=r.DV,t[n+r.t+1]=1)}t.t>0&&(t[t.t-1]+=r.am(n,r[n],t,2*n,0,1)),t.s=0,t.clamp()},e.prototype.divRemTo=function(t,r,n){var i=t.abs();if(!(i.t<=0)){var s=this.abs();if(s.t<i.t){r==null||r.fromInt(0),n!=null&&this.copyTo(n);return}n==null&&(n=Y());var o=Y(),a=this.s,u=t.s,c=this.DB-wr(i[i.t-1]);c>0?(i.lShiftTo(c,o),s.lShiftTo(c,n)):(i.copyTo(o),s.copyTo(n));var l=o.t,f=o[l-1];if(f!=0){var p=f*(1<<this.F1)+(l>1?o[l-2]>>this.F2:0),h=this.FV/p,m=(1<<this.F1)/p,d=1<<this.F2,b=n.t,E=b-l,g=r!=null?r:Y();for(o.dlShiftTo(E,g),n.compareTo(g)>=0&&(n[n.t++]=1,n.subTo(g,n)),e.ONE.dlShiftTo(l,g),g.subTo(o,o);o.t<l;)o[o.t++]=0;for(;--E>=0;){var y=n[--b]==f?this.DM:Math.floor(n[b]*h+(n[b-1]+d)*m);if((n[b]+=o.am(0,y,n,E,0,l))<y)for(o.dlShiftTo(E,g),n.subTo(g,n);n[b]<--y;)n.subTo(g,n)}r!=null&&(n.drShiftTo(l,r),a!=u&&e.ZERO.subTo(r,r)),n.t=l,n.clamp(),c>0&&n.rShiftTo(c,n),a<0&&e.ZERO.subTo(n,n)}}},e.prototype.invDigit=function(){if(this.t<1)return 0;var t=this[0];if(!(t&1))return 0;var r=t&3;return r=r*(2-(t&15)*r)&15,r=r*(2-(t&255)*r)&255,r=r*(2-((t&65535)*r&65535))&65535,r=r*(2-t*r%this.DV)%this.DV,r>0?this.DV-r:-r},e.prototype.isEven=function(){return(this.t>0?this[0]&1:this.s)==0},e.prototype.exp=function(t,r){if(t>4294967295||t<1)return e.ONE;var n=Y(),i=Y(),s=r.convert(this),o=wr(t)-1;for(s.copyTo(n);--o>=0;)if(r.sqrTo(n,i),(t&1<<o)>0)r.mulTo(i,s,n);else{var a=n;n=i,i=a}return r.revert(n)},e.prototype.chunkSize=function(t){return Math.floor(Math.LN2*this.DB/Math.log(t))},e.prototype.toRadix=function(t){if(t==null&&(t=10),this.signum()==0||t<2||t>36)return"0";var r=this.chunkSize(t),n=Math.pow(t,r),i=Ut(n),s=Y(),o=Y(),a="";for(this.divRemTo(i,s,o);s.signum()>0;)a=(n+o.intValue()).toString(t).substr(1)+a,s.divRemTo(i,s,o);return o.intValue().toString(t)+a},e.prototype.fromRadix=function(t,r){this.fromInt(0),r==null&&(r=10);for(var n=this.chunkSize(r),i=Math.pow(r,n),s=!1,o=0,a=0,u=0;u<t.length;++u){var c=jo(t,u);if(c<0){t.charAt(u)=="-"&&this.signum()==0&&(s=!0);continue}a=r*a+c,++o>=n&&(this.dMultiply(i),this.dAddOffset(a,0),o=0,a=0)}o>0&&(this.dMultiply(Math.pow(r,o)),this.dAddOffset(a,0)),s&&e.ZERO.subTo(this,this)},e.prototype.fromNumber=function(t,r,n){if(typeof r=="number")if(t<2)this.fromInt(1);else for(this.fromNumber(t,n),this.testBit(t-1)||this.bitwiseTo(e.ONE.shiftLeft(t-1),_r,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(r);)this.dAddOffset(2,0),this.bitLength()>t&&this.subTo(e.ONE.shiftLeft(t-1),this);else{var i=[],s=t&7;i.length=(t>>3)+1,r.nextBytes(i),s>0?i[0]&=(1<<s)-1:i[0]=0,this.fromString(i,256)}},e.prototype.bitwiseTo=function(t,r,n){var i,s,o=Math.min(t.t,this.t);for(i=0;i<o;++i)n[i]=r(this[i],t[i]);if(t.t<this.t){for(s=t.s&this.DM,i=o;i<this.t;++i)n[i]=r(this[i],s);n.t=this.t}else{for(s=this.s&this.DM,i=o;i<t.t;++i)n[i]=r(s,t[i]);n.t=t.t}n.s=r(this.s,t.s),n.clamp()},e.prototype.changeBit=function(t,r){var n=e.ONE.shiftLeft(t);return this.bitwiseTo(n,r,n),n},e.prototype.addTo=function(t,r){for(var n=0,i=0,s=Math.min(t.t,this.t);n<s;)i+=this[n]+t[n],r[n++]=i&this.DM,i>>=this.DB;if(t.t<this.t){for(i+=t.s;n<this.t;)i+=this[n],r[n++]=i&this.DM,i>>=this.DB;i+=this.s}else{for(i+=this.s;n<t.t;)i+=t[n],r[n++]=i&this.DM,i>>=this.DB;i+=t.s}r.s=i<0?-1:0,i>0?r[n++]=i:i<-1&&(r[n++]=this.DV+i),r.t=n,r.clamp()},e.prototype.dMultiply=function(t){this[this.t]=this.am(0,t-1,this,0,0,this.t),++this.t,this.clamp()},e.prototype.dAddOffset=function(t,r){if(t!=0){for(;this.t<=r;)this[this.t++]=0;for(this[r]+=t;this[r]>=this.DV;)this[r]-=this.DV,++r>=this.t&&(this[this.t++]=0),++this[r]}},e.prototype.multiplyLowerTo=function(t,r,n){var i=Math.min(this.t+t.t,r);for(n.s=0,n.t=i;i>0;)n[--i]=0;for(var s=n.t-this.t;i<s;++i)n[i+this.t]=this.am(0,t[i],n,i,0,this.t);for(var s=Math.min(t.t,r);i<s;++i)this.am(0,t[i],n,i,0,r-i);n.clamp()},e.prototype.multiplyUpperTo=function(t,r,n){--r;var i=n.t=this.t+t.t-r;for(n.s=0;--i>=0;)n[i]=0;for(i=Math.max(r-this.t,0);i<t.t;++i)n[this.t+i-r]=this.am(r-i,t[i],n,0,0,this.t+i-r);n.clamp(),n.drShiftTo(1,n)},e.prototype.modInt=function(t){if(t<=0)return 0;var r=this.DV%t,n=this.s<0?t-1:0;if(this.t>0)if(r==0)n=this[0]%t;else for(var i=this.t-1;i>=0;--i)n=(r*n+this[i])%t;return n},e.prototype.millerRabin=function(t){var r=this.subtract(e.ONE),n=r.getLowestSetBit();if(n<=0)return!1;var i=r.shiftRight(n);t=t+1>>1,t>ut.length&&(t=ut.length);for(var s=Y(),o=0;o<t;++o){s.fromInt(ut[Math.floor(Math.random()*ut.length)]);var a=s.modPow(i,this);if(a.compareTo(e.ONE)!=0&&a.compareTo(r)!=0){for(var u=1;u++<n&&a.compareTo(r)!=0;)if(a=a.modPowInt(2,this),a.compareTo(e.ONE)==0)return!1;if(a.compareTo(r)!=0)return!1}}return!0},e.prototype.square=function(){var t=Y();return this.squareTo(t),t},e.prototype.gcda=function(t,r){var n=this.s<0?this.negate():this.clone(),i=t.s<0?t.negate():t.clone();if(n.compareTo(i)<0){var s=n;n=i,i=s}var o=n.getLowestSetBit(),a=i.getLowestSetBit();if(a<0){r(n);return}o<a&&(a=o),a>0&&(n.rShiftTo(a,n),i.rShiftTo(a,i));var u=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(u,0):(a>0&&i.lShiftTo(a,i),setTimeout(function(){r(i)},0))};setTimeout(u,10)},e.prototype.fromNumberAsync=function(t,r,n,i){if(typeof r=="number")if(t<2)this.fromInt(1);else{this.fromNumber(t,n),this.testBit(t-1)||this.bitwiseTo(e.ONE.shiftLeft(t-1),_r,this),this.isEven()&&this.dAddOffset(1,0);var s=this,o=function(){s.dAddOffset(2,0),s.bitLength()>t&&s.subTo(e.ONE.shiftLeft(t-1),s),s.isProbablePrime(r)?setTimeout(function(){i()},0):setTimeout(o,0)};setTimeout(o,0)}else{var a=[],u=t&7;a.length=(t>>3)+1,r.nextBytes(a),u>0?a[0]&=(1<<u)-1:a[0]=0,this.fromString(a,256)}},e}(),My=function(){function e(){}return e.prototype.convert=function(t){return t},e.prototype.revert=function(t){return t},e.prototype.mulTo=function(t,r,n){t.multiplyTo(r,n)},e.prototype.sqrTo=function(t,r){t.squareTo(r)},e}(),Ao=function(){function e(t){this.m=t}return e.prototype.convert=function(t){return t.s<0||t.compareTo(this.m)>=0?t.mod(this.m):t},e.prototype.revert=function(t){return t},e.prototype.reduce=function(t){t.divRemTo(this.m,null,t)},e.prototype.mulTo=function(t,r,n){t.multiplyTo(r,n),this.reduce(n)},e.prototype.sqrTo=function(t,r){t.squareTo(r),this.reduce(r)},e}(),$o=function(){function e(t){this.m=t,this.mp=t.invDigit(),this.mpl=this.mp&32767,this.mph=this.mp>>15,this.um=(1<<t.DB-15)-1,this.mt2=2*t.t}return e.prototype.convert=function(t){var r=Y();return t.abs().dlShiftTo(this.m.t,r),r.divRemTo(this.m,null,r),t.s<0&&r.compareTo(W.ZERO)>0&&this.m.subTo(r,r),r},e.prototype.revert=function(t){var r=Y();return t.copyTo(r),this.reduce(r),r},e.prototype.reduce=function(t){for(;t.t<=this.mt2;)t[t.t++]=0;for(var r=0;r<this.m.t;++r){var n=t[r]&32767,i=n*this.mpl+((n*this.mph+(t[r]>>15)*this.mpl&this.um)<<15)&t.DM;for(n=r+this.m.t,t[n]+=this.m.am(0,i,t,r,0,this.m.t);t[n]>=t.DV;)t[n]-=t.DV,t[++n]++}t.clamp(),t.drShiftTo(this.m.t,t),t.compareTo(this.m)>=0&&t.subTo(this.m,t)},e.prototype.mulTo=function(t,r,n){t.multiplyTo(r,n),this.reduce(n)},e.prototype.sqrTo=function(t,r){t.squareTo(r),this.reduce(r)},e}(),Fy=function(){function e(t){this.m=t,this.r2=Y(),this.q3=Y(),W.ONE.dlShiftTo(2*t.t,this.r2),this.mu=this.r2.divide(t)}return e.prototype.convert=function(t){if(t.s<0||t.t>2*this.m.t)return t.mod(this.m);if(t.compareTo(this.m)<0)return t;var r=Y();return t.copyTo(r),this.reduce(r),r},e.prototype.revert=function(t){return t},e.prototype.reduce=function(t){for(t.drShiftTo(this.m.t-1,this.r2),t.t>this.m.t+1&&(t.t=this.m.t+1,t.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);t.compareTo(this.r2)<0;)t.dAddOffset(1,this.m.t+1);for(t.subTo(this.r2,t);t.compareTo(this.m)>=0;)t.subTo(this.m,t)},e.prototype.mulTo=function(t,r,n){t.multiplyTo(r,n),this.reduce(n)},e.prototype.sqrTo=function(t,r){t.squareTo(r),this.reduce(r)},e}();function Y(){return new W(null)}function et(e,t){return new W(e,t)}var Ro=typeof navigator<"u";Ro&&Oo&&navigator.appName=="Microsoft Internet Explorer"?(W.prototype.am=function(e,t,r,n,i,s){for(var o=t&32767,a=t>>15;--s>=0;){var u=this[e]&32767,c=this[e++]>>15,l=a*u+c*o;u=o*u+((l&32767)<<15)+r[n]+(i&1073741823),i=(u>>>30)+(l>>>15)+a*c+(i>>>30),r[n++]=u&1073741823}return i},Vt=30):Ro&&Oo&&navigator.appName!="Netscape"?(W.prototype.am=function(e,t,r,n,i,s){for(;--s>=0;){var o=t*this[e++]+r[n]+i;i=Math.floor(o/67108864),r[n++]=o&67108863}return i},Vt=26):(W.prototype.am=function(e,t,r,n,i,s){for(var o=t&16383,a=t>>14;--s>=0;){var u=this[e]&16383,c=this[e++]>>14,l=a*u+c*o;u=o*u+((l&16383)<<14)+r[n]+i,i=(u>>28)+(l>>14)+a*c,r[n++]=u&268435455}return i},Vt=28),W.prototype.DB=Vt,W.prototype.DM=(1<<Vt)-1,W.prototype.DV=1<<Vt;var jn=52;W.prototype.FV=Math.pow(2,jn),W.prototype.F1=jn-Vt,W.prototype.F2=2*Vt-jn;var cn=[],je,Tt;for(je=48,Tt=0;Tt<=9;++Tt)cn[je++]=Tt;for(je=97,Tt=10;Tt<36;++Tt)cn[je++]=Tt;for(je=65,Tt=10;Tt<36;++Tt)cn[je++]=Tt;function jo(e,t){var r=cn[e.charCodeAt(t)];return r!=null?r:-1}function Ut(e){var t=Y();return t.fromInt(e),t}function wr(e){var t=1,r;return(r=e>>>16)!=0&&(e=r,t+=16),(r=e>>8)!=0&&(e=r,t+=8),(r=e>>4)!=0&&(e=r,t+=4),(r=e>>2)!=0&&(e=r,t+=2),(r=e>>1)!=0&&(e=r,t+=1),t}W.ZERO=Ut(0),W.ONE=Ut(1);var Ly=function(){function e(){this.i=0,this.j=0,this.S=[]}return e.prototype.init=function(t){var r,n,i;for(r=0;r<256;++r)this.S[r]=r;for(n=0,r=0;r<256;++r)n=n+this.S[r]+t[r%t.length]&255,i=this.S[r],this.S[r]=this.S[n],this.S[n]=i;this.i=0,this.j=0},e.prototype.next=function(){var t;return this.i=this.i+1&255,this.j=this.j+this.S[this.i]&255,t=this.S[this.i],this.S[this.i]=this.S[this.j],this.S[this.j]=t,this.S[t+this.S[this.i]&255]},e}();function Vy(){return new Ly}var mc=256,Er,zt=null,Ot;if(zt==null){zt=[],Ot=0;var Sr=void 0;if(typeof window<"u"&&window.crypto&&window.crypto.getRandomValues){var Dn=new Uint32Array(256);for(window.crypto.getRandomValues(Dn),Sr=0;Sr<Dn.length;++Sr)zt[Ot++]=Dn[Sr]&255}var xr=0,Tr=function(e){if(xr=xr||0,xr>=256||Ot>=mc){window.removeEventListener?window.removeEventListener("mousemove",Tr,!1):window.detachEvent&&window.detachEvent("onmousemove",Tr);return}try{var t=e.x+e.y;zt[Ot++]=t&255,xr+=1}catch(r){}};typeof window<"u"&&(window.addEventListener?window.addEventListener("mousemove",Tr,!1):window.attachEvent&&window.attachEvent("onmousemove",Tr))}function Uy(){if(Er==null){for(Er=Vy();Ot<mc;){var e=Math.floor(65536*Math.random());zt[Ot++]=e&255}for(Er.init(zt),Ot=0;Ot<zt.length;++Ot)zt[Ot]=0;Ot=0}return Er.next()}var ri=function(){function e(){}return e.prototype.nextBytes=function(t){for(var r=0;r<t.length;++r)t[r]=Uy()},e}();function Hy(e,t){if(t<e.length+22)return console.error("Message too long for RSA"),null;for(var r=t-e.length-6,n="",i=0;i<r;i+=2)n+="ff";var s="0001"+n+"00"+e;return et(s,16)}function zy(e,t){if(t<e.length+11)return console.error("Message too long for RSA"),null;for(var r=[],n=e.length-1;n>=0&&t>0;){var i=e.charCodeAt(n--);i<128?r[--t]=i:i>127&&i<2048?(r[--t]=i&63|128,r[--t]=i>>6|192):(r[--t]=i&63|128,r[--t]=i>>6&63|128,r[--t]=i>>12|224)}r[--t]=0;for(var s=new ri,o=[];t>2;){for(o[0]=0;o[0]==0;)s.nextBytes(o);r[--t]=o[0]}return r[--t]=2,r[--t]=0,new W(r)}var qy=function(){function e(){this.n=null,this.e=0,this.d=null,this.p=null,this.q=null,this.dmp1=null,this.dmq1=null,this.coeff=null}return e.prototype.doPublic=function(t){return t.modPowInt(this.e,this.n)},e.prototype.doPrivate=function(t){if(this.p==null||this.q==null)return t.modPow(this.d,this.n);for(var r=t.mod(this.p).modPow(this.dmp1,this.p),n=t.mod(this.q).modPow(this.dmq1,this.q);r.compareTo(n)<0;)r=r.add(this.p);return r.subtract(n).multiply(this.coeff).mod(this.p).multiply(this.q).add(n)},e.prototype.setPublic=function(t,r){t!=null&&r!=null&&t.length>0&&r.length>0?(this.n=et(t,16),this.e=parseInt(r,16)):console.error("Invalid RSA public key")},e.prototype.encrypt=function(t){var r=this.n.bitLength()+7>>3,n=zy(t,r);if(n==null)return null;var i=this.doPublic(n);if(i==null)return null;for(var s=i.toString(16),o=s.length,a=0;a<r*2-o;a++)s="0"+s;return s},e.prototype.setPrivate=function(t,r,n){t!=null&&r!=null&&t.length>0&&r.length>0?(this.n=et(t,16),this.e=parseInt(r,16),this.d=et(n,16)):console.error("Invalid RSA private key")},e.prototype.setPrivateEx=function(t,r,n,i,s,o,a,u){t!=null&&r!=null&&t.length>0&&r.length>0?(this.n=et(t,16),this.e=parseInt(r,16),this.d=et(n,16),this.p=et(i,16),this.q=et(s,16),this.dmp1=et(o,16),this.dmq1=et(a,16),this.coeff=et(u,16)):console.error("Invalid RSA private key")},e.prototype.generate=function(t,r){var n=new ri,i=t>>1;this.e=parseInt(r,16);for(var s=new W(r,16);;){for(;this.p=new W(t-i,1,n),!(this.p.subtract(W.ONE).gcd(s).compareTo(W.ONE)==0&&this.p.isProbablePrime(10)););for(;this.q=new W(i,1,n),!(this.q.subtract(W.ONE).gcd(s).compareTo(W.ONE)==0&&this.q.isProbablePrime(10)););if(this.p.compareTo(this.q)<=0){var o=this.p;this.p=this.q,this.q=o}var a=this.p.subtract(W.ONE),u=this.q.subtract(W.ONE),c=a.multiply(u);if(c.gcd(s).compareTo(W.ONE)==0){this.n=this.p.multiply(this.q),this.d=s.modInverse(c),this.dmp1=this.d.mod(a),this.dmq1=this.d.mod(u),this.coeff=this.q.modInverse(this.p);break}}},e.prototype.decrypt=function(t){var r=et(t,16),n=this.doPrivate(r);return n==null?null:Ky(n,this.n.bitLength()+7>>3)},e.prototype.generateAsync=function(t,r,n){var i=new ri,s=t>>1;this.e=parseInt(r,16);var o=new W(r,16),a=this,u=function(){var c=function(){if(a.p.compareTo(a.q)<=0){var p=a.p;a.p=a.q,a.q=p}var h=a.p.subtract(W.ONE),m=a.q.subtract(W.ONE),d=h.multiply(m);d.gcd(o).compareTo(W.ONE)==0?(a.n=a.p.multiply(a.q),a.d=o.modInverse(d),a.dmp1=a.d.mod(h),a.dmq1=a.d.mod(m),a.coeff=a.q.modInverse(a.p),setTimeout(function(){n()},0)):setTimeout(u,0)},l=function(){a.q=Y(),a.q.fromNumberAsync(s,1,i,function(){a.q.subtract(W.ONE).gcda(o,function(p){p.compareTo(W.ONE)==0&&a.q.isProbablePrime(10)?setTimeout(c,0):setTimeout(l,0)})})},f=function(){a.p=Y(),a.p.fromNumberAsync(t-s,1,i,function(){a.p.subtract(W.ONE).gcda(o,function(p){p.compareTo(W.ONE)==0&&a.p.isProbablePrime(10)?setTimeout(l,0):setTimeout(f,0)})})};setTimeout(f,0)};setTimeout(u,0)},e.prototype.sign=function(t,r,n){var i=Jy(n),s=i+r(t).toString(),o=Hy(s,this.n.bitLength()/4);if(o==null)return null;var a=this.doPrivate(o);if(a==null)return null;var u=a.toString(16);return u.length&1?"0"+u:u},e.prototype.verify=function(t,r,n){var i=et(r,16),s=this.doPublic(i);if(s==null)return null;var o=s.toString(16).replace(/^1f+00/,""),a=Wy(o);return a==n(t).toString()},e}();function Ky(e,t){for(var r=e.toByteArray(),n=0;n<r.length&&r[n]==0;)++n;if(r.length-n!=t-1||r[n]!=2)return null;for(++n;r[n]!=0;)if(++n>=r.length)return null;for(var i="";++n<r.length;){var s=r[n]&255;s<128?i+=String.fromCharCode(s):s>191&&s<224?(i+=String.fromCharCode((s&31)<<6|r[n+1]&63),++n):(i+=String.fromCharCode((s&15)<<12|(r[n+1]&63)<<6|r[n+2]&63),n+=2)}return i}var Dr={md2:"3020300c06082a864886f70d020205000410",md5:"3020300c06082a864886f70d020505000410",sha1:"3021300906052b0e03021a05000414",sha224:"302d300d06096086480165030402040500041c",sha256:"3031300d060960864801650304020105000420",sha384:"3041300d060960864801650304020205000430",sha512:"3051300d060960864801650304020305000440",ripemd160:"3021300906052b2403020105000414"};function Jy(e){return Dr[e]||""}function Wy(e){for(var t in Dr)if(Dr.hasOwnProperty(t)){var r=Dr[t],n=r.length;if(e.substr(0,n)==r)return e.substr(n)}return e}/*!
27
27
  Copyright (c) 2011, Yahoo! Inc. All rights reserved.
28
28
  Code licensed under the BSD License:
29
29
  http://developer.yahoo.com/yui/license.html
@@ -35,46 +35,46 @@ version: 2.9.0
35
35
  * @version asn1 1.0.13 (2017-Jun-02)
36
36
  * @since jsrsasign 2.1
37
37
  * @license <a href="https://kjur.github.io/jsrsasign/license/">MIT License</a>
38
- */var j={};(typeof j.asn1>"u"||!j.asn1)&&(j.asn1={}),j.asn1.ASN1Util=new function(){this.integerToByteHex=function(e){var t=e.toString(16);return t.length%2==1&&(t="0"+t),t},this.bigIntToMinTwosComplementsHex=function(e){var t=e.toString(16);if(t.substr(0,1)!="-")t.length%2==1?t="0"+t:t.match(/^[0-7]/)||(t="00"+t);else{var r=t.substr(1),n=r.length;n%2==1?n+=1:t.match(/^[0-7]/)||(n+=2);for(var i="",s=0;s<n;s++)i+="f";var o=new W(i,16),a=o.xor(e).add(W.ONE);t=a.toString(16).replace(/^-/,"")}return t},this.getPEMStringFromHex=function(e,t){return hextopem(e,t)},this.newObject=function(e){var t=j,r=t.asn1,n=r.DERBoolean,i=r.DERInteger,s=r.DERBitString,o=r.DEROctetString,a=r.DERNull,u=r.DERObjectIdentifier,c=r.DEREnumerated,l=r.DERUTF8String,f=r.DERNumericString,p=r.DERPrintableString,h=r.DERTeletexString,m=r.DERIA5String,d=r.DERUTCTime,b=r.DERGeneralizedTime,E=r.DERSequence,g=r.DERSet,y=r.DERTaggedObject,_=r.ASN1Util.newObject,S=Object.keys(e);if(S.length!=1)throw"key of param shall be only one.";var v=S[0];if(":bool:int:bitstr:octstr:null:oid:enum:utf8str:numstr:prnstr:telstr:ia5str:utctime:gentime:seq:set:tag:".indexOf(":"+v+":")==-1)throw"undefined key: "+v;if(v=="bool")return new n(e[v]);if(v=="int")return new i(e[v]);if(v=="bitstr")return new s(e[v]);if(v=="octstr")return new o(e[v]);if(v=="null")return new a(e[v]);if(v=="oid")return new u(e[v]);if(v=="enum")return new c(e[v]);if(v=="utf8str")return new l(e[v]);if(v=="numstr")return new f(e[v]);if(v=="prnstr")return new p(e[v]);if(v=="telstr")return new h(e[v]);if(v=="ia5str")return new m(e[v]);if(v=="utctime")return new d(e[v]);if(v=="gentime")return new b(e[v]);if(v=="seq"){for(var x=e[v],$=[],V=0;V<x.length;V++){var w=_(x[V]);$.push(w)}return new E({array:$})}if(v=="set"){for(var x=e[v],$=[],V=0;V<x.length;V++){var w=_(x[V]);$.push(w)}return new g({array:$})}if(v=="tag"){var T=e[v];if(Object.prototype.toString.call(T)==="[object Array]"&&T.length==3){var F=_(T[2]);return new y({tag:T[0],explicit:T[1],obj:F})}else{var C={};if(T.explicit!==void 0&&(C.explicit=T.explicit),T.tag!==void 0&&(C.tag=T.tag),T.obj===void 0)throw"obj shall be specified for 'tag'.";return C.obj=_(T.obj),new y(C)}}},this.jsonToASN1HEX=function(e){var t=this.newObject(e);return t.getEncodedHex()}},j.asn1.ASN1Util.oidHexToInt=function(e){for(var i="",t=parseInt(e.substr(0,2),16),r=Math.floor(t/40),n=t%40,i=r+"."+n,s="",o=2;o<e.length;o+=2){var a=parseInt(e.substr(o,2),16),u=("00000000"+a.toString(2)).slice(-8);if(s=s+u.substr(1,7),u.substr(0,1)=="0"){var c=new W(s,2);i=i+"."+c.toString(10),s=""}}return i},j.asn1.ASN1Util.oidIntToHex=function(e){var t=function(a){var u=a.toString(16);return u.length==1&&(u="0"+u),u},r=function(a){var u="",c=new W(a,10),l=c.toString(2),f=7-l.length%7;f==7&&(f=0);for(var p="",h=0;h<f;h++)p+="0";l=p+l;for(var h=0;h<l.length-1;h+=7){var m=l.substr(h,7);h!=l.length-7&&(m="1"+m),u+=t(parseInt(m,2))}return u};if(!e.match(/^[0-9.]+$/))throw"malformed oid string: "+e;var n="",i=e.split("."),s=parseInt(i[0])*40+parseInt(i[1]);n+=t(s),i.splice(0,2);for(var o=0;o<i.length;o++)n+=r(i[o]);return n},j.asn1.ASN1Object=function(){var e="";this.getLengthHexFromValue=function(){if(typeof this.hV>"u"||this.hV==null)throw"this.hV is null or undefined.";if(this.hV.length%2==1)throw"value hex must be even length: n="+e.length+",v="+this.hV;var t=this.hV.length/2,r=t.toString(16);if(r.length%2==1&&(r="0"+r),t<128)return r;var n=r.length/2;if(n>15)throw"ASN.1 length too long to represent by 8x: n = "+t.toString(16);var i=128+n;return i.toString(16)+r},this.getEncodedHex=function(){return(this.hTLV==null||this.isModified)&&(this.hV=this.getFreshValueHex(),this.hL=this.getLengthHexFromValue(),this.hTLV=this.hT+this.hL+this.hV,this.isModified=!1),this.hTLV},this.getValueHex=function(){return this.getEncodedHex(),this.hV},this.getFreshValueHex=function(){return""}},j.asn1.DERAbstractString=function(e){j.asn1.DERAbstractString.superclass.constructor.call(this),this.getString=function(){return this.s},this.setString=function(t){this.hTLV=null,this.isModified=!0,this.s=t,this.hV=stohex(this.s)},this.setStringHex=function(t){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=t},this.getFreshValueHex=function(){return this.hV},typeof e<"u"&&(typeof e=="string"?this.setString(e):typeof e.str<"u"?this.setString(e.str):typeof e.hex<"u"&&this.setStringHex(e.hex))},rt.lang.extend(j.asn1.DERAbstractString,j.asn1.ASN1Object),j.asn1.DERAbstractTime=function(e){j.asn1.DERAbstractTime.superclass.constructor.call(this),this.localDateToUTC=function(t){utc=t.getTime()+t.getTimezoneOffset()*6e4;var r=new Date(utc);return r},this.formatDate=function(t,r,n){var i=this.zeroPadding,s=this.localDateToUTC(t),o=String(s.getFullYear());r=="utc"&&(o=o.substr(2,2));var a=i(String(s.getMonth()+1),2),u=i(String(s.getDate()),2),c=i(String(s.getHours()),2),l=i(String(s.getMinutes()),2),f=i(String(s.getSeconds()),2),p=o+a+u+c+l+f;if(n===!0){var h=s.getMilliseconds();if(h!=0){var m=i(String(h),3);m=m.replace(/[0]+$/,""),p=p+"."+m}}return p+"Z"},this.zeroPadding=function(t,r){return t.length>=r?t:new Array(r-t.length+1).join("0")+t},this.getString=function(){return this.s},this.setString=function(t){this.hTLV=null,this.isModified=!0,this.s=t,this.hV=stohex(t)},this.setByDateValue=function(t,r,n,i,s,o){var a=new Date(Date.UTC(t,r-1,n,i,s,o,0));this.setByDate(a)},this.getFreshValueHex=function(){return this.hV}},rt.lang.extend(j.asn1.DERAbstractTime,j.asn1.ASN1Object),j.asn1.DERAbstractStructured=function(e){j.asn1.DERAbstractString.superclass.constructor.call(this),this.setByASN1ObjectArray=function(t){this.hTLV=null,this.isModified=!0,this.asn1Array=t},this.appendASN1Object=function(t){this.hTLV=null,this.isModified=!0,this.asn1Array.push(t)},this.asn1Array=new Array,typeof e<"u"&&typeof e.array<"u"&&(this.asn1Array=e.array)},rt.lang.extend(j.asn1.DERAbstractStructured,j.asn1.ASN1Object),j.asn1.DERBoolean=function(){j.asn1.DERBoolean.superclass.constructor.call(this),this.hT="01",this.hTLV="0101ff"},rt.lang.extend(j.asn1.DERBoolean,j.asn1.ASN1Object),j.asn1.DERInteger=function(e){j.asn1.DERInteger.superclass.constructor.call(this),this.hT="02",this.setByBigInteger=function(t){this.hTLV=null,this.isModified=!0,this.hV=j.asn1.ASN1Util.bigIntToMinTwosComplementsHex(t)},this.setByInteger=function(t){var r=new W(String(t),10);this.setByBigInteger(r)},this.setValueHex=function(t){this.hV=t},this.getFreshValueHex=function(){return this.hV},typeof e<"u"&&(typeof e.bigint<"u"?this.setByBigInteger(e.bigint):typeof e.int<"u"?this.setByInteger(e.int):typeof e=="number"?this.setByInteger(e):typeof e.hex<"u"&&this.setValueHex(e.hex))},rt.lang.extend(j.asn1.DERInteger,j.asn1.ASN1Object),j.asn1.DERBitString=function(e){if(e!==void 0&&typeof e.obj<"u"){var t=j.asn1.ASN1Util.newObject(e.obj);e.hex="00"+t.getEncodedHex()}j.asn1.DERBitString.superclass.constructor.call(this),this.hT="03",this.setHexValueIncludingUnusedBits=function(r){this.hTLV=null,this.isModified=!0,this.hV=r},this.setUnusedBitsAndHexValue=function(r,n){if(r<0||7<r)throw"unused bits shall be from 0 to 7: u = "+r;var i="0"+r;this.hTLV=null,this.isModified=!0,this.hV=i+n},this.setByBinaryString=function(r){r=r.replace(/0+$/,"");var n=8-r.length%8;n==8&&(n=0);for(var i=0;i<=n;i++)r+="0";for(var s="",i=0;i<r.length-1;i+=8){var o=r.substr(i,8),a=parseInt(o,2).toString(16);a.length==1&&(a="0"+a),s+=a}this.hTLV=null,this.isModified=!0,this.hV="0"+n+s},this.setByBooleanArray=function(r){for(var n="",i=0;i<r.length;i++)r[i]==!0?n+="1":n+="0";this.setByBinaryString(n)},this.newFalseArray=function(r){for(var n=new Array(r),i=0;i<r;i++)n[i]=!1;return n},this.getFreshValueHex=function(){return this.hV},typeof e<"u"&&(typeof e=="string"&&e.toLowerCase().match(/^[0-9a-f]+$/)?this.setHexValueIncludingUnusedBits(e):typeof e.hex<"u"?this.setHexValueIncludingUnusedBits(e.hex):typeof e.bin<"u"?this.setByBinaryString(e.bin):typeof e.array<"u"&&this.setByBooleanArray(e.array))},rt.lang.extend(j.asn1.DERBitString,j.asn1.ASN1Object),j.asn1.DEROctetString=function(e){if(e!==void 0&&typeof e.obj<"u"){var t=j.asn1.ASN1Util.newObject(e.obj);e.hex=t.getEncodedHex()}j.asn1.DEROctetString.superclass.constructor.call(this,e),this.hT="04"},rt.lang.extend(j.asn1.DEROctetString,j.asn1.DERAbstractString),j.asn1.DERNull=function(){j.asn1.DERNull.superclass.constructor.call(this),this.hT="05",this.hTLV="0500"},rt.lang.extend(j.asn1.DERNull,j.asn1.ASN1Object),j.asn1.DERObjectIdentifier=function(e){var t=function(n){var i=n.toString(16);return i.length==1&&(i="0"+i),i},r=function(n){var i="",s=new W(n,10),o=s.toString(2),a=7-o.length%7;a==7&&(a=0);for(var u="",c=0;c<a;c++)u+="0";o=u+o;for(var c=0;c<o.length-1;c+=7){var l=o.substr(c,7);c!=o.length-7&&(l="1"+l),i+=t(parseInt(l,2))}return i};j.asn1.DERObjectIdentifier.superclass.constructor.call(this),this.hT="06",this.setValueHex=function(n){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=n},this.setValueOidString=function(n){if(!n.match(/^[0-9.]+$/))throw"malformed oid string: "+n;var i="",s=n.split("."),o=parseInt(s[0])*40+parseInt(s[1]);i+=t(o),s.splice(0,2);for(var a=0;a<s.length;a++)i+=r(s[a]);this.hTLV=null,this.isModified=!0,this.s=null,this.hV=i},this.setValueName=function(n){var i=j.asn1.x509.OID.name2oid(n);if(i!=="")this.setValueOidString(i);else throw"DERObjectIdentifier oidName undefined: "+n},this.getFreshValueHex=function(){return this.hV},e!==void 0&&(typeof e=="string"?e.match(/^[0-2].[0-9.]+$/)?this.setValueOidString(e):this.setValueName(e):e.oid!==void 0?this.setValueOidString(e.oid):e.hex!==void 0?this.setValueHex(e.hex):e.name!==void 0&&this.setValueName(e.name))},rt.lang.extend(j.asn1.DERObjectIdentifier,j.asn1.ASN1Object),j.asn1.DEREnumerated=function(e){j.asn1.DEREnumerated.superclass.constructor.call(this),this.hT="0a",this.setByBigInteger=function(t){this.hTLV=null,this.isModified=!0,this.hV=j.asn1.ASN1Util.bigIntToMinTwosComplementsHex(t)},this.setByInteger=function(t){var r=new W(String(t),10);this.setByBigInteger(r)},this.setValueHex=function(t){this.hV=t},this.getFreshValueHex=function(){return this.hV},typeof e<"u"&&(typeof e.int<"u"?this.setByInteger(e.int):typeof e=="number"?this.setByInteger(e):typeof e.hex<"u"&&this.setValueHex(e.hex))},rt.lang.extend(j.asn1.DEREnumerated,j.asn1.ASN1Object),j.asn1.DERUTF8String=function(e){j.asn1.DERUTF8String.superclass.constructor.call(this,e),this.hT="0c"},rt.lang.extend(j.asn1.DERUTF8String,j.asn1.DERAbstractString),j.asn1.DERNumericString=function(e){j.asn1.DERNumericString.superclass.constructor.call(this,e),this.hT="12"},rt.lang.extend(j.asn1.DERNumericString,j.asn1.DERAbstractString),j.asn1.DERPrintableString=function(e){j.asn1.DERPrintableString.superclass.constructor.call(this,e),this.hT="13"},rt.lang.extend(j.asn1.DERPrintableString,j.asn1.DERAbstractString),j.asn1.DERTeletexString=function(e){j.asn1.DERTeletexString.superclass.constructor.call(this,e),this.hT="14"},rt.lang.extend(j.asn1.DERTeletexString,j.asn1.DERAbstractString),j.asn1.DERIA5String=function(e){j.asn1.DERIA5String.superclass.constructor.call(this,e),this.hT="16"},rt.lang.extend(j.asn1.DERIA5String,j.asn1.DERAbstractString),j.asn1.DERUTCTime=function(e){j.asn1.DERUTCTime.superclass.constructor.call(this,e),this.hT="17",this.setByDate=function(t){this.hTLV=null,this.isModified=!0,this.date=t,this.s=this.formatDate(this.date,"utc"),this.hV=stohex(this.s)},this.getFreshValueHex=function(){return typeof this.date>"u"&&typeof this.s>"u"&&(this.date=new Date,this.s=this.formatDate(this.date,"utc"),this.hV=stohex(this.s)),this.hV},e!==void 0&&(e.str!==void 0?this.setString(e.str):typeof e=="string"&&e.match(/^[0-9]{12}Z$/)?this.setString(e):e.hex!==void 0?this.setStringHex(e.hex):e.date!==void 0&&this.setByDate(e.date))},rt.lang.extend(j.asn1.DERUTCTime,j.asn1.DERAbstractTime),j.asn1.DERGeneralizedTime=function(e){j.asn1.DERGeneralizedTime.superclass.constructor.call(this,e),this.hT="18",this.withMillis=!1,this.setByDate=function(t){this.hTLV=null,this.isModified=!0,this.date=t,this.s=this.formatDate(this.date,"gen",this.withMillis),this.hV=stohex(this.s)},this.getFreshValueHex=function(){return this.date===void 0&&this.s===void 0&&(this.date=new Date,this.s=this.formatDate(this.date,"gen",this.withMillis),this.hV=stohex(this.s)),this.hV},e!==void 0&&(e.str!==void 0?this.setString(e.str):typeof e=="string"&&e.match(/^[0-9]{14}Z$/)?this.setString(e):e.hex!==void 0?this.setStringHex(e.hex):e.date!==void 0&&this.setByDate(e.date),e.millis===!0&&(this.withMillis=!0))},rt.lang.extend(j.asn1.DERGeneralizedTime,j.asn1.DERAbstractTime),j.asn1.DERSequence=function(e){j.asn1.DERSequence.superclass.constructor.call(this,e),this.hT="30",this.getFreshValueHex=function(){for(var t="",r=0;r<this.asn1Array.length;r++){var n=this.asn1Array[r];t+=n.getEncodedHex()}return this.hV=t,this.hV}},rt.lang.extend(j.asn1.DERSequence,j.asn1.DERAbstractStructured),j.asn1.DERSet=function(e){j.asn1.DERSet.superclass.constructor.call(this,e),this.hT="31",this.sortFlag=!0,this.getFreshValueHex=function(){for(var t=new Array,r=0;r<this.asn1Array.length;r++){var n=this.asn1Array[r];t.push(n.getEncodedHex())}return this.sortFlag==!0&&t.sort(),this.hV=t.join(""),this.hV},typeof e<"u"&&typeof e.sortflag<"u"&&e.sortflag==!1&&(this.sortFlag=!1)},rt.lang.extend(j.asn1.DERSet,j.asn1.DERAbstractStructured),j.asn1.DERTaggedObject=function(e){j.asn1.DERTaggedObject.superclass.constructor.call(this),this.hT="a0",this.hV="",this.isExplicit=!0,this.asn1Object=null,this.setASN1Object=function(t,r,n){this.hT=r,this.isExplicit=t,this.asn1Object=n,this.isExplicit?(this.hV=this.asn1Object.getEncodedHex(),this.hTLV=null,this.isModified=!0):(this.hV=null,this.hTLV=n.getEncodedHex(),this.hTLV=this.hTLV.replace(/^../,r),this.isModified=!1)},this.getFreshValueHex=function(){return this.hV},typeof e<"u"&&(typeof e.tag<"u"&&(this.hT=e.tag),typeof e.explicit<"u"&&(this.isExplicit=e.explicit),typeof e.obj<"u"&&(this.asn1Object=e.obj,this.setASN1Object(this.isExplicit,this.hT,this.asn1Object)))},rt.lang.extend(j.asn1.DERTaggedObject,j.asn1.ASN1Object);var Yy=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(n[s]=i[s])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),Do=function(e){Yy(t,e);function t(r){var n=e.call(this)||this;return r&&(typeof r=="string"?n.parseKey(r):(t.hasPrivateKeyProperty(r)||t.hasPublicKeyProperty(r))&&n.parsePropertiesFrom(r)),n}return t.prototype.parseKey=function(r){try{var n=0,i=0,s=/^\s*(?:[0-9A-Fa-f][0-9A-Fa-f]\s*)+$/,o=s.test(r)?Cy.decode(r):ei.unarmor(r),a=By.decode(o);if(a.sub.length===3&&(a=a.sub[2].sub[0]),a.sub.length===9){n=a.sub[1].getHexStringValue(),this.n=et(n,16),i=a.sub[2].getHexStringValue(),this.e=parseInt(i,16);var u=a.sub[3].getHexStringValue();this.d=et(u,16);var c=a.sub[4].getHexStringValue();this.p=et(c,16);var l=a.sub[5].getHexStringValue();this.q=et(l,16);var f=a.sub[6].getHexStringValue();this.dmp1=et(f,16);var p=a.sub[7].getHexStringValue();this.dmq1=et(p,16);var h=a.sub[8].getHexStringValue();this.coeff=et(h,16)}else if(a.sub.length===2)if(a.sub[0].sub){var m=a.sub[1],d=m.sub[0];n=d.sub[0].getHexStringValue(),this.n=et(n,16),i=d.sub[1].getHexStringValue(),this.e=parseInt(i,16)}else n=a.sub[0].getHexStringValue(),this.n=et(n,16),i=a.sub[1].getHexStringValue(),this.e=parseInt(i,16);else return!1;return!0}catch(b){return!1}},t.prototype.getPrivateBaseKey=function(){var r={array:[new j.asn1.DERInteger({int:0}),new j.asn1.DERInteger({bigint:this.n}),new j.asn1.DERInteger({int:this.e}),new j.asn1.DERInteger({bigint:this.d}),new j.asn1.DERInteger({bigint:this.p}),new j.asn1.DERInteger({bigint:this.q}),new j.asn1.DERInteger({bigint:this.dmp1}),new j.asn1.DERInteger({bigint:this.dmq1}),new j.asn1.DERInteger({bigint:this.coeff})]},n=new j.asn1.DERSequence(r);return n.getEncodedHex()},t.prototype.getPrivateBaseKeyB64=function(){return zr(this.getPrivateBaseKey())},t.prototype.getPublicBaseKey=function(){var r=new j.asn1.DERSequence({array:[new j.asn1.DERObjectIdentifier({oid:"1.2.840.113549.1.1.1"}),new j.asn1.DERNull]}),n=new j.asn1.DERSequence({array:[new j.asn1.DERInteger({bigint:this.n}),new j.asn1.DERInteger({int:this.e})]}),i=new j.asn1.DERBitString({hex:"00"+n.getEncodedHex()}),s=new j.asn1.DERSequence({array:[r,i]});return s.getEncodedHex()},t.prototype.getPublicBaseKeyB64=function(){return zr(this.getPublicBaseKey())},t.wordwrap=function(r,n){if(n=n||64,!r)return r;var i="(.{1,"+n+`})( +|$
38
+ */var j={};(typeof j.asn1>"u"||!j.asn1)&&(j.asn1={}),j.asn1.ASN1Util=new function(){this.integerToByteHex=function(e){var t=e.toString(16);return t.length%2==1&&(t="0"+t),t},this.bigIntToMinTwosComplementsHex=function(e){var t=e.toString(16);if(t.substr(0,1)!="-")t.length%2==1?t="0"+t:t.match(/^[0-7]/)||(t="00"+t);else{var r=t.substr(1),n=r.length;n%2==1?n+=1:t.match(/^[0-7]/)||(n+=2);for(var i="",s=0;s<n;s++)i+="f";var o=new W(i,16),a=o.xor(e).add(W.ONE);t=a.toString(16).replace(/^-/,"")}return t},this.getPEMStringFromHex=function(e,t){return hextopem(e,t)},this.newObject=function(e){var t=j,r=t.asn1,n=r.DERBoolean,i=r.DERInteger,s=r.DERBitString,o=r.DEROctetString,a=r.DERNull,u=r.DERObjectIdentifier,c=r.DEREnumerated,l=r.DERUTF8String,f=r.DERNumericString,p=r.DERPrintableString,h=r.DERTeletexString,m=r.DERIA5String,d=r.DERUTCTime,b=r.DERGeneralizedTime,E=r.DERSequence,g=r.DERSet,y=r.DERTaggedObject,_=r.ASN1Util.newObject,S=Object.keys(e);if(S.length!=1)throw"key of param shall be only one.";var v=S[0];if(":bool:int:bitstr:octstr:null:oid:enum:utf8str:numstr:prnstr:telstr:ia5str:utctime:gentime:seq:set:tag:".indexOf(":"+v+":")==-1)throw"undefined key: "+v;if(v=="bool")return new n(e[v]);if(v=="int")return new i(e[v]);if(v=="bitstr")return new s(e[v]);if(v=="octstr")return new o(e[v]);if(v=="null")return new a(e[v]);if(v=="oid")return new u(e[v]);if(v=="enum")return new c(e[v]);if(v=="utf8str")return new l(e[v]);if(v=="numstr")return new f(e[v]);if(v=="prnstr")return new p(e[v]);if(v=="telstr")return new h(e[v]);if(v=="ia5str")return new m(e[v]);if(v=="utctime")return new d(e[v]);if(v=="gentime")return new b(e[v]);if(v=="seq"){for(var x=e[v],A=[],V=0;V<x.length;V++){var w=_(x[V]);A.push(w)}return new E({array:A})}if(v=="set"){for(var x=e[v],A=[],V=0;V<x.length;V++){var w=_(x[V]);A.push(w)}return new g({array:A})}if(v=="tag"){var T=e[v];if(Object.prototype.toString.call(T)==="[object Array]"&&T.length==3){var F=_(T[2]);return new y({tag:T[0],explicit:T[1],obj:F})}else{var C={};if(T.explicit!==void 0&&(C.explicit=T.explicit),T.tag!==void 0&&(C.tag=T.tag),T.obj===void 0)throw"obj shall be specified for 'tag'.";return C.obj=_(T.obj),new y(C)}}},this.jsonToASN1HEX=function(e){var t=this.newObject(e);return t.getEncodedHex()}},j.asn1.ASN1Util.oidHexToInt=function(e){for(var i="",t=parseInt(e.substr(0,2),16),r=Math.floor(t/40),n=t%40,i=r+"."+n,s="",o=2;o<e.length;o+=2){var a=parseInt(e.substr(o,2),16),u=("00000000"+a.toString(2)).slice(-8);if(s=s+u.substr(1,7),u.substr(0,1)=="0"){var c=new W(s,2);i=i+"."+c.toString(10),s=""}}return i},j.asn1.ASN1Util.oidIntToHex=function(e){var t=function(a){var u=a.toString(16);return u.length==1&&(u="0"+u),u},r=function(a){var u="",c=new W(a,10),l=c.toString(2),f=7-l.length%7;f==7&&(f=0);for(var p="",h=0;h<f;h++)p+="0";l=p+l;for(var h=0;h<l.length-1;h+=7){var m=l.substr(h,7);h!=l.length-7&&(m="1"+m),u+=t(parseInt(m,2))}return u};if(!e.match(/^[0-9.]+$/))throw"malformed oid string: "+e;var n="",i=e.split("."),s=parseInt(i[0])*40+parseInt(i[1]);n+=t(s),i.splice(0,2);for(var o=0;o<i.length;o++)n+=r(i[o]);return n},j.asn1.ASN1Object=function(){var e="";this.getLengthHexFromValue=function(){if(typeof this.hV>"u"||this.hV==null)throw"this.hV is null or undefined.";if(this.hV.length%2==1)throw"value hex must be even length: n="+e.length+",v="+this.hV;var t=this.hV.length/2,r=t.toString(16);if(r.length%2==1&&(r="0"+r),t<128)return r;var n=r.length/2;if(n>15)throw"ASN.1 length too long to represent by 8x: n = "+t.toString(16);var i=128+n;return i.toString(16)+r},this.getEncodedHex=function(){return(this.hTLV==null||this.isModified)&&(this.hV=this.getFreshValueHex(),this.hL=this.getLengthHexFromValue(),this.hTLV=this.hT+this.hL+this.hV,this.isModified=!1),this.hTLV},this.getValueHex=function(){return this.getEncodedHex(),this.hV},this.getFreshValueHex=function(){return""}},j.asn1.DERAbstractString=function(e){j.asn1.DERAbstractString.superclass.constructor.call(this),this.getString=function(){return this.s},this.setString=function(t){this.hTLV=null,this.isModified=!0,this.s=t,this.hV=stohex(this.s)},this.setStringHex=function(t){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=t},this.getFreshValueHex=function(){return this.hV},typeof e<"u"&&(typeof e=="string"?this.setString(e):typeof e.str<"u"?this.setString(e.str):typeof e.hex<"u"&&this.setStringHex(e.hex))},rt.lang.extend(j.asn1.DERAbstractString,j.asn1.ASN1Object),j.asn1.DERAbstractTime=function(e){j.asn1.DERAbstractTime.superclass.constructor.call(this),this.localDateToUTC=function(t){utc=t.getTime()+t.getTimezoneOffset()*6e4;var r=new Date(utc);return r},this.formatDate=function(t,r,n){var i=this.zeroPadding,s=this.localDateToUTC(t),o=String(s.getFullYear());r=="utc"&&(o=o.substr(2,2));var a=i(String(s.getMonth()+1),2),u=i(String(s.getDate()),2),c=i(String(s.getHours()),2),l=i(String(s.getMinutes()),2),f=i(String(s.getSeconds()),2),p=o+a+u+c+l+f;if(n===!0){var h=s.getMilliseconds();if(h!=0){var m=i(String(h),3);m=m.replace(/[0]+$/,""),p=p+"."+m}}return p+"Z"},this.zeroPadding=function(t,r){return t.length>=r?t:new Array(r-t.length+1).join("0")+t},this.getString=function(){return this.s},this.setString=function(t){this.hTLV=null,this.isModified=!0,this.s=t,this.hV=stohex(t)},this.setByDateValue=function(t,r,n,i,s,o){var a=new Date(Date.UTC(t,r-1,n,i,s,o,0));this.setByDate(a)},this.getFreshValueHex=function(){return this.hV}},rt.lang.extend(j.asn1.DERAbstractTime,j.asn1.ASN1Object),j.asn1.DERAbstractStructured=function(e){j.asn1.DERAbstractString.superclass.constructor.call(this),this.setByASN1ObjectArray=function(t){this.hTLV=null,this.isModified=!0,this.asn1Array=t},this.appendASN1Object=function(t){this.hTLV=null,this.isModified=!0,this.asn1Array.push(t)},this.asn1Array=new Array,typeof e<"u"&&typeof e.array<"u"&&(this.asn1Array=e.array)},rt.lang.extend(j.asn1.DERAbstractStructured,j.asn1.ASN1Object),j.asn1.DERBoolean=function(){j.asn1.DERBoolean.superclass.constructor.call(this),this.hT="01",this.hTLV="0101ff"},rt.lang.extend(j.asn1.DERBoolean,j.asn1.ASN1Object),j.asn1.DERInteger=function(e){j.asn1.DERInteger.superclass.constructor.call(this),this.hT="02",this.setByBigInteger=function(t){this.hTLV=null,this.isModified=!0,this.hV=j.asn1.ASN1Util.bigIntToMinTwosComplementsHex(t)},this.setByInteger=function(t){var r=new W(String(t),10);this.setByBigInteger(r)},this.setValueHex=function(t){this.hV=t},this.getFreshValueHex=function(){return this.hV},typeof e<"u"&&(typeof e.bigint<"u"?this.setByBigInteger(e.bigint):typeof e.int<"u"?this.setByInteger(e.int):typeof e=="number"?this.setByInteger(e):typeof e.hex<"u"&&this.setValueHex(e.hex))},rt.lang.extend(j.asn1.DERInteger,j.asn1.ASN1Object),j.asn1.DERBitString=function(e){if(e!==void 0&&typeof e.obj<"u"){var t=j.asn1.ASN1Util.newObject(e.obj);e.hex="00"+t.getEncodedHex()}j.asn1.DERBitString.superclass.constructor.call(this),this.hT="03",this.setHexValueIncludingUnusedBits=function(r){this.hTLV=null,this.isModified=!0,this.hV=r},this.setUnusedBitsAndHexValue=function(r,n){if(r<0||7<r)throw"unused bits shall be from 0 to 7: u = "+r;var i="0"+r;this.hTLV=null,this.isModified=!0,this.hV=i+n},this.setByBinaryString=function(r){r=r.replace(/0+$/,"");var n=8-r.length%8;n==8&&(n=0);for(var i=0;i<=n;i++)r+="0";for(var s="",i=0;i<r.length-1;i+=8){var o=r.substr(i,8),a=parseInt(o,2).toString(16);a.length==1&&(a="0"+a),s+=a}this.hTLV=null,this.isModified=!0,this.hV="0"+n+s},this.setByBooleanArray=function(r){for(var n="",i=0;i<r.length;i++)r[i]==!0?n+="1":n+="0";this.setByBinaryString(n)},this.newFalseArray=function(r){for(var n=new Array(r),i=0;i<r;i++)n[i]=!1;return n},this.getFreshValueHex=function(){return this.hV},typeof e<"u"&&(typeof e=="string"&&e.toLowerCase().match(/^[0-9a-f]+$/)?this.setHexValueIncludingUnusedBits(e):typeof e.hex<"u"?this.setHexValueIncludingUnusedBits(e.hex):typeof e.bin<"u"?this.setByBinaryString(e.bin):typeof e.array<"u"&&this.setByBooleanArray(e.array))},rt.lang.extend(j.asn1.DERBitString,j.asn1.ASN1Object),j.asn1.DEROctetString=function(e){if(e!==void 0&&typeof e.obj<"u"){var t=j.asn1.ASN1Util.newObject(e.obj);e.hex=t.getEncodedHex()}j.asn1.DEROctetString.superclass.constructor.call(this,e),this.hT="04"},rt.lang.extend(j.asn1.DEROctetString,j.asn1.DERAbstractString),j.asn1.DERNull=function(){j.asn1.DERNull.superclass.constructor.call(this),this.hT="05",this.hTLV="0500"},rt.lang.extend(j.asn1.DERNull,j.asn1.ASN1Object),j.asn1.DERObjectIdentifier=function(e){var t=function(n){var i=n.toString(16);return i.length==1&&(i="0"+i),i},r=function(n){var i="",s=new W(n,10),o=s.toString(2),a=7-o.length%7;a==7&&(a=0);for(var u="",c=0;c<a;c++)u+="0";o=u+o;for(var c=0;c<o.length-1;c+=7){var l=o.substr(c,7);c!=o.length-7&&(l="1"+l),i+=t(parseInt(l,2))}return i};j.asn1.DERObjectIdentifier.superclass.constructor.call(this),this.hT="06",this.setValueHex=function(n){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=n},this.setValueOidString=function(n){if(!n.match(/^[0-9.]+$/))throw"malformed oid string: "+n;var i="",s=n.split("."),o=parseInt(s[0])*40+parseInt(s[1]);i+=t(o),s.splice(0,2);for(var a=0;a<s.length;a++)i+=r(s[a]);this.hTLV=null,this.isModified=!0,this.s=null,this.hV=i},this.setValueName=function(n){var i=j.asn1.x509.OID.name2oid(n);if(i!=="")this.setValueOidString(i);else throw"DERObjectIdentifier oidName undefined: "+n},this.getFreshValueHex=function(){return this.hV},e!==void 0&&(typeof e=="string"?e.match(/^[0-2].[0-9.]+$/)?this.setValueOidString(e):this.setValueName(e):e.oid!==void 0?this.setValueOidString(e.oid):e.hex!==void 0?this.setValueHex(e.hex):e.name!==void 0&&this.setValueName(e.name))},rt.lang.extend(j.asn1.DERObjectIdentifier,j.asn1.ASN1Object),j.asn1.DEREnumerated=function(e){j.asn1.DEREnumerated.superclass.constructor.call(this),this.hT="0a",this.setByBigInteger=function(t){this.hTLV=null,this.isModified=!0,this.hV=j.asn1.ASN1Util.bigIntToMinTwosComplementsHex(t)},this.setByInteger=function(t){var r=new W(String(t),10);this.setByBigInteger(r)},this.setValueHex=function(t){this.hV=t},this.getFreshValueHex=function(){return this.hV},typeof e<"u"&&(typeof e.int<"u"?this.setByInteger(e.int):typeof e=="number"?this.setByInteger(e):typeof e.hex<"u"&&this.setValueHex(e.hex))},rt.lang.extend(j.asn1.DEREnumerated,j.asn1.ASN1Object),j.asn1.DERUTF8String=function(e){j.asn1.DERUTF8String.superclass.constructor.call(this,e),this.hT="0c"},rt.lang.extend(j.asn1.DERUTF8String,j.asn1.DERAbstractString),j.asn1.DERNumericString=function(e){j.asn1.DERNumericString.superclass.constructor.call(this,e),this.hT="12"},rt.lang.extend(j.asn1.DERNumericString,j.asn1.DERAbstractString),j.asn1.DERPrintableString=function(e){j.asn1.DERPrintableString.superclass.constructor.call(this,e),this.hT="13"},rt.lang.extend(j.asn1.DERPrintableString,j.asn1.DERAbstractString),j.asn1.DERTeletexString=function(e){j.asn1.DERTeletexString.superclass.constructor.call(this,e),this.hT="14"},rt.lang.extend(j.asn1.DERTeletexString,j.asn1.DERAbstractString),j.asn1.DERIA5String=function(e){j.asn1.DERIA5String.superclass.constructor.call(this,e),this.hT="16"},rt.lang.extend(j.asn1.DERIA5String,j.asn1.DERAbstractString),j.asn1.DERUTCTime=function(e){j.asn1.DERUTCTime.superclass.constructor.call(this,e),this.hT="17",this.setByDate=function(t){this.hTLV=null,this.isModified=!0,this.date=t,this.s=this.formatDate(this.date,"utc"),this.hV=stohex(this.s)},this.getFreshValueHex=function(){return typeof this.date>"u"&&typeof this.s>"u"&&(this.date=new Date,this.s=this.formatDate(this.date,"utc"),this.hV=stohex(this.s)),this.hV},e!==void 0&&(e.str!==void 0?this.setString(e.str):typeof e=="string"&&e.match(/^[0-9]{12}Z$/)?this.setString(e):e.hex!==void 0?this.setStringHex(e.hex):e.date!==void 0&&this.setByDate(e.date))},rt.lang.extend(j.asn1.DERUTCTime,j.asn1.DERAbstractTime),j.asn1.DERGeneralizedTime=function(e){j.asn1.DERGeneralizedTime.superclass.constructor.call(this,e),this.hT="18",this.withMillis=!1,this.setByDate=function(t){this.hTLV=null,this.isModified=!0,this.date=t,this.s=this.formatDate(this.date,"gen",this.withMillis),this.hV=stohex(this.s)},this.getFreshValueHex=function(){return this.date===void 0&&this.s===void 0&&(this.date=new Date,this.s=this.formatDate(this.date,"gen",this.withMillis),this.hV=stohex(this.s)),this.hV},e!==void 0&&(e.str!==void 0?this.setString(e.str):typeof e=="string"&&e.match(/^[0-9]{14}Z$/)?this.setString(e):e.hex!==void 0?this.setStringHex(e.hex):e.date!==void 0&&this.setByDate(e.date),e.millis===!0&&(this.withMillis=!0))},rt.lang.extend(j.asn1.DERGeneralizedTime,j.asn1.DERAbstractTime),j.asn1.DERSequence=function(e){j.asn1.DERSequence.superclass.constructor.call(this,e),this.hT="30",this.getFreshValueHex=function(){for(var t="",r=0;r<this.asn1Array.length;r++){var n=this.asn1Array[r];t+=n.getEncodedHex()}return this.hV=t,this.hV}},rt.lang.extend(j.asn1.DERSequence,j.asn1.DERAbstractStructured),j.asn1.DERSet=function(e){j.asn1.DERSet.superclass.constructor.call(this,e),this.hT="31",this.sortFlag=!0,this.getFreshValueHex=function(){for(var t=new Array,r=0;r<this.asn1Array.length;r++){var n=this.asn1Array[r];t.push(n.getEncodedHex())}return this.sortFlag==!0&&t.sort(),this.hV=t.join(""),this.hV},typeof e<"u"&&typeof e.sortflag<"u"&&e.sortflag==!1&&(this.sortFlag=!1)},rt.lang.extend(j.asn1.DERSet,j.asn1.DERAbstractStructured),j.asn1.DERTaggedObject=function(e){j.asn1.DERTaggedObject.superclass.constructor.call(this),this.hT="a0",this.hV="",this.isExplicit=!0,this.asn1Object=null,this.setASN1Object=function(t,r,n){this.hT=r,this.isExplicit=t,this.asn1Object=n,this.isExplicit?(this.hV=this.asn1Object.getEncodedHex(),this.hTLV=null,this.isModified=!0):(this.hV=null,this.hTLV=n.getEncodedHex(),this.hTLV=this.hTLV.replace(/^../,r),this.isModified=!1)},this.getFreshValueHex=function(){return this.hV},typeof e<"u"&&(typeof e.tag<"u"&&(this.hT=e.tag),typeof e.explicit<"u"&&(this.isExplicit=e.explicit),typeof e.obj<"u"&&(this.asn1Object=e.obj,this.setASN1Object(this.isExplicit,this.hT,this.asn1Object)))},rt.lang.extend(j.asn1.DERTaggedObject,j.asn1.ASN1Object);var Yy=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(n[s]=i[s])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),Do=function(e){Yy(t,e);function t(r){var n=e.call(this)||this;return r&&(typeof r=="string"?n.parseKey(r):(t.hasPrivateKeyProperty(r)||t.hasPublicKeyProperty(r))&&n.parsePropertiesFrom(r)),n}return t.prototype.parseKey=function(r){try{var n=0,i=0,s=/^\s*(?:[0-9A-Fa-f][0-9A-Fa-f]\s*)+$/,o=s.test(r)?Cy.decode(r):ei.unarmor(r),a=Ny.decode(o);if(a.sub.length===3&&(a=a.sub[2].sub[0]),a.sub.length===9){n=a.sub[1].getHexStringValue(),this.n=et(n,16),i=a.sub[2].getHexStringValue(),this.e=parseInt(i,16);var u=a.sub[3].getHexStringValue();this.d=et(u,16);var c=a.sub[4].getHexStringValue();this.p=et(c,16);var l=a.sub[5].getHexStringValue();this.q=et(l,16);var f=a.sub[6].getHexStringValue();this.dmp1=et(f,16);var p=a.sub[7].getHexStringValue();this.dmq1=et(p,16);var h=a.sub[8].getHexStringValue();this.coeff=et(h,16)}else if(a.sub.length===2)if(a.sub[0].sub){var m=a.sub[1],d=m.sub[0];n=d.sub[0].getHexStringValue(),this.n=et(n,16),i=d.sub[1].getHexStringValue(),this.e=parseInt(i,16)}else n=a.sub[0].getHexStringValue(),this.n=et(n,16),i=a.sub[1].getHexStringValue(),this.e=parseInt(i,16);else return!1;return!0}catch(b){return!1}},t.prototype.getPrivateBaseKey=function(){var r={array:[new j.asn1.DERInteger({int:0}),new j.asn1.DERInteger({bigint:this.n}),new j.asn1.DERInteger({int:this.e}),new j.asn1.DERInteger({bigint:this.d}),new j.asn1.DERInteger({bigint:this.p}),new j.asn1.DERInteger({bigint:this.q}),new j.asn1.DERInteger({bigint:this.dmp1}),new j.asn1.DERInteger({bigint:this.dmq1}),new j.asn1.DERInteger({bigint:this.coeff})]},n=new j.asn1.DERSequence(r);return n.getEncodedHex()},t.prototype.getPrivateBaseKeyB64=function(){return qr(this.getPrivateBaseKey())},t.prototype.getPublicBaseKey=function(){var r=new j.asn1.DERSequence({array:[new j.asn1.DERObjectIdentifier({oid:"1.2.840.113549.1.1.1"}),new j.asn1.DERNull]}),n=new j.asn1.DERSequence({array:[new j.asn1.DERInteger({bigint:this.n}),new j.asn1.DERInteger({int:this.e})]}),i=new j.asn1.DERBitString({hex:"00"+n.getEncodedHex()}),s=new j.asn1.DERSequence({array:[r,i]});return s.getEncodedHex()},t.prototype.getPublicBaseKeyB64=function(){return qr(this.getPublicBaseKey())},t.wordwrap=function(r,n){if(n=n||64,!r)return r;var i="(.{1,"+n+`})( +|$
39
39
  ?)|(.{1,`+n+"})";return r.match(RegExp(i,"g")).join(`
40
40
  `)},t.prototype.getPrivateKey=function(){var r=`-----BEGIN RSA PRIVATE KEY-----
41
41
  `;return r+=t.wordwrap(this.getPrivateBaseKeyB64())+`
42
42
  `,r+="-----END RSA PRIVATE KEY-----",r},t.prototype.getPublicKey=function(){var r=`-----BEGIN PUBLIC KEY-----
43
43
  `;return r+=t.wordwrap(this.getPublicBaseKeyB64())+`
44
- `,r+="-----END PUBLIC KEY-----",r},t.hasPublicKeyProperty=function(r){return r=r||{},r.hasOwnProperty("n")&&r.hasOwnProperty("e")},t.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")},t.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)},t}(qy),Cn,Gy=typeof process<"u"?(Cn=Ol)===null||Cn===void 0?void 0:Cn.npm_package_version:void 0,gc=function(){function e(t){t===void 0&&(t={}),t=t||{},this.default_key_size=t.default_key_size?parseInt(t.default_key_size,10):1024,this.default_public_exponent=t.default_public_exponent||"010001",this.log=t.log||!1,this.key=null}return e.prototype.setKey=function(t){this.log&&this.key&&console.warn("A key was already set, overriding existing."),this.key=new Do(t)},e.prototype.setPrivateKey=function(t){this.setKey(t)},e.prototype.setPublicKey=function(t){this.setKey(t)},e.prototype.decrypt=function(t){try{return this.getKey().decrypt(xo(t))}catch(r){return!1}},e.prototype.encrypt=function(t){try{return zr(this.getKey().encrypt(t))}catch(r){return!1}},e.prototype.sign=function(t,r,n){try{return zr(this.getKey().sign(t,r,n))}catch(i){return!1}},e.prototype.verify=function(t,r,n){try{return this.getKey().verify(t,xo(r),n)}catch(i){return!1}},e.prototype.getKey=function(t){if(!this.key){if(this.key=new Do,t&&{}.toString.call(t)==="[object Function]"){this.key.generateAsync(this.default_key_size,this.default_public_exponent,t);return}this.key.generate(this.default_key_size,this.default_public_exponent)}return this.key},e.prototype.getPrivateKey=function(){return this.getKey().getPrivateKey()},e.prototype.getPrivateKeyB64=function(){return this.getKey().getPrivateBaseKeyB64()},e.prototype.getPublicKey=function(){return this.getKey().getPublicKey()},e.prototype.getPublicKeyB64=function(){return this.getKey().getPublicBaseKeyB64()},e.version=Gy,e}();const Zy="MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBALdyxTCEB5WcGnbeUyN4xn1cs8z+0tC72vgbd/L99om5TZ0OfRqRb6Y7RJfdimB9LJyvmyP9T1P0jWrHkotq8iUCAwEAAQ==",Xy="MIIBUwIBADANBgkqhkiG9w0BAQEFAASCAT0wggE5AgEAAkEAt3LFMIQHlZwadt5TI3jGfVyzzP7S0Lva+Bt38v32iblNnQ59GpFvpjtEl92KYH0snK+bI/1PU/SNaseSi2ryJQIDAQABAkBGHyXG7MDlbD0lcMhAx9q/cp773fABf70sl3tbM754V+mH8dEiAim398NhhrADz4F4K12H74R39O/0Hjr/VAZlAiEA5+3MoAbnsDOzFP+oT4YZJBjx8MmsukU3AaguPW4tYcMCIQDKfN+Qk/jD3vZlWsUJ23013D2NDSjgcH4gdV71oYb19wIgUMWYhgLhnZPjwmRnEYr6JoApglo6NYT1azZPJEXCuFECIDyQUQYbXCKpw6TZG2oxXigH8dkIgJtwyijHMlnhsE5NAiBxF7HA7U2rDnZ6+VRDXtIg+joD3o1h3bFy2A+QX5yDYA==";function Qy(e){return String(Ey(e))}function t1(e){const t=Li.parse(e);return cc.stringify(t)}function e1(e){return Li.stringify(cc.parse(e))}function r1(e,t=Zy){const r=new gc;return r.setKey(t),r.encrypt(e)}function ni(e,t=Xy){const r=new gc;return r.setPrivateKey(t),r.decrypt(e)}function n1(e,t){return hc.encrypt(e,t).toString()}function i1(e,t){return hc.decrypt(e,t).toString(Li)}const Vi=/^(http|https):\/\/[\w.:\-@]*/,vc=/\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*/,yc=/^(^[1-9]\d{7}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}$)|(^[1-9]\d{5}[1-9]\d{3}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])((\d{4})|\d{3}[Xx])$)$/,bc=/^(0|86|17951)?(1[\d]{10})$/,_c=/^([京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[a-zA-Z](([DF]((?![IO])[a-zA-Z0-9](?![IO]))[0-9]{4})|([0-9]{5}[DF]))|[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}[A-Z0-9]{4}[A-Z0-9挂学警港澳]{1})$/;function Ui(e){return Vi.test(e)}function s1(e){return vc.test(e)}function o1(e){return yc.test(e)}function a1(e){return bc.test(e)}function c1(e){return _c.test(e)}var wc={exports:{}};/*! @preserve
44
+ `,r+="-----END PUBLIC KEY-----",r},t.hasPublicKeyProperty=function(r){return r=r||{},r.hasOwnProperty("n")&&r.hasOwnProperty("e")},t.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")},t.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)},t}(qy),Cn,Gy=typeof process<"u"?(Cn=Ol)===null||Cn===void 0?void 0:Cn.npm_package_version:void 0,gc=function(){function e(t){t===void 0&&(t={}),t=t||{},this.default_key_size=t.default_key_size?parseInt(t.default_key_size,10):1024,this.default_public_exponent=t.default_public_exponent||"010001",this.log=t.log||!1,this.key=null}return e.prototype.setKey=function(t){this.log&&this.key&&console.warn("A key was already set, overriding existing."),this.key=new Do(t)},e.prototype.setPrivateKey=function(t){this.setKey(t)},e.prototype.setPublicKey=function(t){this.setKey(t)},e.prototype.decrypt=function(t){try{return this.getKey().decrypt(xo(t))}catch(r){return!1}},e.prototype.encrypt=function(t){try{return qr(this.getKey().encrypt(t))}catch(r){return!1}},e.prototype.sign=function(t,r,n){try{return qr(this.getKey().sign(t,r,n))}catch(i){return!1}},e.prototype.verify=function(t,r,n){try{return this.getKey().verify(t,xo(r),n)}catch(i){return!1}},e.prototype.getKey=function(t){if(!this.key){if(this.key=new Do,t&&{}.toString.call(t)==="[object Function]"){this.key.generateAsync(this.default_key_size,this.default_public_exponent,t);return}this.key.generate(this.default_key_size,this.default_public_exponent)}return this.key},e.prototype.getPrivateKey=function(){return this.getKey().getPrivateKey()},e.prototype.getPrivateKeyB64=function(){return this.getKey().getPrivateBaseKeyB64()},e.prototype.getPublicKey=function(){return this.getKey().getPublicKey()},e.prototype.getPublicKeyB64=function(){return this.getKey().getPublicBaseKeyB64()},e.version=Gy,e}();const Zy="MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBALdyxTCEB5WcGnbeUyN4xn1cs8z+0tC72vgbd/L99om5TZ0OfRqRb6Y7RJfdimB9LJyvmyP9T1P0jWrHkotq8iUCAwEAAQ==",Qy="MIIBUwIBADANBgkqhkiG9w0BAQEFAASCAT0wggE5AgEAAkEAt3LFMIQHlZwadt5TI3jGfVyzzP7S0Lva+Bt38v32iblNnQ59GpFvpjtEl92KYH0snK+bI/1PU/SNaseSi2ryJQIDAQABAkBGHyXG7MDlbD0lcMhAx9q/cp773fABf70sl3tbM754V+mH8dEiAim398NhhrADz4F4K12H74R39O/0Hjr/VAZlAiEA5+3MoAbnsDOzFP+oT4YZJBjx8MmsukU3AaguPW4tYcMCIQDKfN+Qk/jD3vZlWsUJ23013D2NDSjgcH4gdV71oYb19wIgUMWYhgLhnZPjwmRnEYr6JoApglo6NYT1azZPJEXCuFECIDyQUQYbXCKpw6TZG2oxXigH8dkIgJtwyijHMlnhsE5NAiBxF7HA7U2rDnZ6+VRDXtIg+joD3o1h3bFy2A+QX5yDYA==";function Xy(e){return String(Ey(e))}function t1(e){const t=Li.parse(e);return cc.stringify(t)}function e1(e){return Li.stringify(cc.parse(e))}function r1(e,t=Zy){const r=new gc;return r.setKey(t),r.encrypt(e)}function ni(e,t=Qy){const r=new gc;return r.setPrivateKey(t),r.decrypt(e)}function n1(e,t){return hc.encrypt(e,t).toString()}function i1(e,t){return hc.decrypt(e,t).toString(Li)}const Vi=/^(http|https):\/\/[\w.:\-@]*/,vc=/\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*/,yc=/^(^[1-9]\d{7}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}$)|(^[1-9]\d{5}[1-9]\d{3}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])((\d{4})|\d{3}[Xx])$)$/,bc=/^(0|86|17951)?(1[\d]{10})$/,_c=/^([京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[a-zA-Z](([DF]((?![IO])[a-zA-Z0-9](?![IO]))[0-9]{4})|([0-9]{5}[DF]))|[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}[A-Z0-9]{4}[A-Z0-9挂学警港澳]{1})$/;function Ui(e){return Vi.test(e)}function s1(e){return vc.test(e)}function o1(e){return yc.test(e)}function a1(e){return bc.test(e)}function c1(e){return _c.test(e)}var wc={exports:{}};/*! @preserve
45
45
  * numeral.js
46
46
  * version : 2.0.6
47
47
  * author : Adam Draper
48
48
  * license : MIT
49
49
  * http://adamwdraper.github.com/Numeral-js/
50
- */(function(e){(function(t,r){e.exports?e.exports=r():t.numeral=r()})(ft,function(){var t,r,n="2.0.6",i={},s={},o={currentLocale:"en",zeroFormat:null,nullFormat:null,defaultFormat:"0,0",scalePercentBy100:!0},a={currentLocale:o.currentLocale,zeroFormat:o.zeroFormat,nullFormat:o.nullFormat,defaultFormat:o.defaultFormat,scalePercentBy100:o.scalePercentBy100};function u(c,l){this._input=c,this._value=l}return t=function(c){var l,f,p,h;if(t.isNumeral(c))l=c.value();else if(c===0||typeof c>"u")l=0;else if(c===null||r.isNaN(c))l=null;else if(typeof c=="string")if(a.zeroFormat&&c===a.zeroFormat)l=0;else if(a.nullFormat&&c===a.nullFormat||!c.replace(/[^0-9]+/g,"").length)l=null;else{for(f in i)if(h=typeof i[f].regexps.unformat=="function"?i[f].regexps.unformat():i[f].regexps.unformat,h&&c.match(h)){p=i[f].unformat;break}p=p||t._.stringToNumber,l=p(c)}else l=Number(c)||null;return new u(c,l)},t.version=n,t.isNumeral=function(c){return c instanceof u},t._=r={numberToFormat:function(c,l,f){var p=s[t.options.currentLocale],h=!1,m=!1,d=0,b="",E=1e12,g=1e9,y=1e6,_=1e3,S="",v=!1,x,$,V,w,T,F,C;if(c=c||0,$=Math.abs(c),t._.includes(l,"(")?(h=!0,l=l.replace(/[\(|\)]/g,"")):(t._.includes(l,"+")||t._.includes(l,"-"))&&(T=t._.includes(l,"+")?l.indexOf("+"):c<0?l.indexOf("-"):-1,l=l.replace(/[\+|\-]/g,"")),t._.includes(l,"a")&&(x=l.match(/a(k|m|b|t)?/),x=x?x[1]:!1,t._.includes(l," a")&&(b=" "),l=l.replace(new RegExp(b+"a[kmbt]?"),""),$>=E&&!x||x==="t"?(b+=p.abbreviations.trillion,c=c/E):$<E&&$>=g&&!x||x==="b"?(b+=p.abbreviations.billion,c=c/g):$<g&&$>=y&&!x||x==="m"?(b+=p.abbreviations.million,c=c/y):($<y&&$>=_&&!x||x==="k")&&(b+=p.abbreviations.thousand,c=c/_)),t._.includes(l,"[.]")&&(m=!0,l=l.replace("[.]",".")),V=c.toString().split(".")[0],w=l.split(".")[1],F=l.indexOf(","),d=(l.split(".")[0].split(",")[0].match(/0/g)||[]).length,w?(t._.includes(w,"[")?(w=w.replace("]",""),w=w.split("["),S=t._.toFixed(c,w[0].length+w[1].length,f,w[1].length)):S=t._.toFixed(c,w.length,f),V=S.split(".")[0],t._.includes(S,".")?S=p.delimiters.decimal+S.split(".")[1]:S="",m&&Number(S.slice(1))===0&&(S="")):V=t._.toFixed(c,0,f),b&&!x&&Number(V)>=1e3&&b!==p.abbreviations.trillion)switch(V=String(Number(V)/1e3),b){case p.abbreviations.thousand:b=p.abbreviations.million;break;case p.abbreviations.million:b=p.abbreviations.billion;break;case p.abbreviations.billion:b=p.abbreviations.trillion;break}if(t._.includes(V,"-")&&(V=V.slice(1),v=!0),V.length<d)for(var M=d-V.length;M>0;M--)V="0"+V;return F>-1&&(V=V.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+p.delimiters.thousands)),l.indexOf(".")===0&&(V=""),C=V+S+(b||""),h?C=(h&&v?"(":"")+C+(h&&v?")":""):T>=0?C=T===0?(v?"-":"+")+C:C+(v?"-":"+"):v&&(C="-"+C),C},stringToNumber:function(c){var l=s[a.currentLocale],f=c,p={thousand:3,million:6,billion:9,trillion:12},h,m,d;if(a.zeroFormat&&c===a.zeroFormat)m=0;else if(a.nullFormat&&c===a.nullFormat||!c.replace(/[^0-9]+/g,"").length)m=null;else{m=1,l.delimiters.decimal!=="."&&(c=c.replace(/\./g,"").replace(l.delimiters.decimal,"."));for(h in p)if(d=new RegExp("[^a-zA-Z]"+l.abbreviations[h]+"(?:\\)|(\\"+l.currency.symbol+")?(?:\\))?)?$"),f.match(d)){m*=Math.pow(10,p[h]);break}m*=(c.split("-").length+Math.min(c.split("(").length-1,c.split(")").length-1))%2?1:-1,c=c.replace(/[^0-9\.]+/g,""),m*=Number(c)}return m},isNaN:function(c){return typeof c=="number"&&isNaN(c)},includes:function(c,l){return c.indexOf(l)!==-1},insert:function(c,l,f){return c.slice(0,f)+l+c.slice(f)},reduce:function(c,l){if(this===null)throw new TypeError("Array.prototype.reduce called on null or undefined");if(typeof l!="function")throw new TypeError(l+" is not a function");var f=Object(c),p=f.length>>>0,h=0,m;if(arguments.length===3)m=arguments[2];else{for(;h<p&&!(h in f);)h++;if(h>=p)throw new TypeError("Reduce of empty array with no initial value");m=f[h++]}for(;h<p;h++)h in f&&(m=l(m,f[h],h,f));return m},multiplier:function(c){var l=c.toString().split(".");return l.length<2?1:Math.pow(10,l[1].length)},correctionFactor:function(){var c=Array.prototype.slice.call(arguments);return c.reduce(function(l,f){var p=r.multiplier(f);return l>p?l:p},1)},toFixed:function(c,l,f,p){var h=c.toString().split("."),m=l-(p||0),d,b,E,g;return h.length===2?d=Math.min(Math.max(h[1].length,m),l):d=m,E=Math.pow(10,d),g=(f(c+"e+"+d)/E).toFixed(d),p>l-d&&(b=new RegExp("\\.?0{1,"+(p-(l-d))+"}$"),g=g.replace(b,"")),g}},t.options=a,t.formats=i,t.locales=s,t.locale=function(c){return c&&(a.currentLocale=c.toLowerCase()),a.currentLocale},t.localeData=function(c){if(!c)return s[a.currentLocale];if(c=c.toLowerCase(),!s[c])throw new Error("Unknown locale : "+c);return s[c]},t.reset=function(){for(var c in o)a[c]=o[c]},t.zeroFormat=function(c){a.zeroFormat=typeof c=="string"?c:null},t.nullFormat=function(c){a.nullFormat=typeof c=="string"?c:null},t.defaultFormat=function(c){a.defaultFormat=typeof c=="string"?c:"0.0"},t.register=function(c,l,f){if(l=l.toLowerCase(),this[c+"s"][l])throw new TypeError(l+" "+c+" already registered.");return this[c+"s"][l]=f,f},t.validate=function(c,l){var f,p,h,m,d,b,E,g;if(typeof c!="string"&&(c+="",console.warn&&console.warn("Numeral.js: Value is not string. It has been co-erced to: ",c)),c=c.trim(),c.match(/^\d+$/))return!0;if(c==="")return!1;try{E=t.localeData(l)}catch(y){E=t.localeData(t.locale())}return h=E.currency.symbol,d=E.abbreviations,f=E.delimiters.decimal,E.delimiters.thousands==="."?p="\\.":p=E.delimiters.thousands,g=c.match(/^[^\d]+/),g!==null&&(c=c.substr(1),g[0]!==h)||(g=c.match(/[^\d]+$/),g!==null&&(c=c.slice(0,-1),g[0]!==d.thousand&&g[0]!==d.million&&g[0]!==d.billion&&g[0]!==d.trillion))?!1:(b=new RegExp(p+"{2}"),c.match(/[^\d.,]/g)?!1:(m=c.split(f),m.length>2?!1:m.length<2?!!m[0].match(/^\d+.*\d$/)&&!m[0].match(b):m[0].length===1?!!m[0].match(/^\d+$/)&&!m[0].match(b)&&!!m[1].match(/^\d+$/):!!m[0].match(/^\d+.*\d$/)&&!m[0].match(b)&&!!m[1].match(/^\d+$/)))},t.fn=u.prototype={clone:function(){return t(this)},format:function(c,l){var f=this._value,p=c||a.defaultFormat,h,m,d;if(l=l||Math.round,f===0&&a.zeroFormat!==null)m=a.zeroFormat;else if(f===null&&a.nullFormat!==null)m=a.nullFormat;else{for(h in i)if(p.match(i[h].regexps.format)){d=i[h].format;break}d=d||t._.numberToFormat,m=d(f,p,l)}return m},value:function(){return this._value},input:function(){return this._input},set:function(c){return this._value=Number(c),this},add:function(c){var l=r.correctionFactor.call(null,this._value,c);function f(p,h,m,d){return p+Math.round(l*h)}return this._value=r.reduce([this._value,c],f,0)/l,this},subtract:function(c){var l=r.correctionFactor.call(null,this._value,c);function f(p,h,m,d){return p-Math.round(l*h)}return this._value=r.reduce([c],f,Math.round(this._value*l))/l,this},multiply:function(c){function l(f,p,h,m){var d=r.correctionFactor(f,p);return Math.round(f*d)*Math.round(p*d)/Math.round(d*d)}return this._value=r.reduce([this._value,c],l,1),this},divide:function(c){function l(f,p,h,m){var d=r.correctionFactor(f,p);return Math.round(f*d)/Math.round(p*d)}return this._value=r.reduce([this._value,c],l),this},difference:function(c){return Math.abs(t(this._value).subtract(c).value())}},t.register("locale","en",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(c){var l=c%10;return~~(c%100/10)===1?"th":l===1?"st":l===2?"nd":l===3?"rd":"th"},currency:{symbol:"$"}}),function(){t.register("format","bps",{regexps:{format:/(BPS)/,unformat:/(BPS)/},format:function(c,l,f){var p=t._.includes(l," BPS")?" ":"",h;return c=c*1e4,l=l.replace(/\s?BPS/,""),h=t._.numberToFormat(c,l,f),t._.includes(h,")")?(h=h.split(""),h.splice(-1,0,p+"BPS"),h=h.join("")):h=h+p+"BPS",h},unformat:function(c){return+(t._.stringToNumber(c)*1e-4).toFixed(15)}})}(),function(){var c={base:1e3,suffixes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]},l={base:1024,suffixes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},f=c.suffixes.concat(l.suffixes.filter(function(h){return c.suffixes.indexOf(h)<0})),p=f.join("|");p="("+p.replace("B","B(?!PS)")+")",t.register("format","bytes",{regexps:{format:/([0\s]i?b)/,unformat:new RegExp(p)},format:function(h,m,d){var b,E=t._.includes(m,"ib")?l:c,g=t._.includes(m," b")||t._.includes(m," ib")?" ":"",y,_,S;for(m=m.replace(/\s?i?b/,""),y=0;y<=E.suffixes.length;y++)if(_=Math.pow(E.base,y),S=Math.pow(E.base,y+1),h===null||h===0||h>=_&&h<S){g+=E.suffixes[y],_>0&&(h=h/_);break}return b=t._.numberToFormat(h,m,d),b+g},unformat:function(h){var m=t._.stringToNumber(h),d,b;if(m){for(d=c.suffixes.length-1;d>=0;d--){if(t._.includes(h,c.suffixes[d])){b=Math.pow(c.base,d);break}if(t._.includes(h,l.suffixes[d])){b=Math.pow(l.base,d);break}}m*=b||1}return m}})}(),function(){t.register("format","currency",{regexps:{format:/(\$)/},format:function(c,l,f){var p=t.locales[t.options.currentLocale],h={before:l.match(/^([\+|\-|\(|\s|\$]*)/)[0],after:l.match(/([\+|\-|\)|\s|\$]*)$/)[0]},m,d,b;for(l=l.replace(/\s?\$\s?/,""),m=t._.numberToFormat(c,l,f),c>=0?(h.before=h.before.replace(/[\-\(]/,""),h.after=h.after.replace(/[\-\)]/,"")):c<0&&!t._.includes(h.before,"-")&&!t._.includes(h.before,"(")&&(h.before="-"+h.before),b=0;b<h.before.length;b++)switch(d=h.before[b],d){case"$":m=t._.insert(m,p.currency.symbol,b);break;case" ":m=t._.insert(m," ",b+p.currency.symbol.length-1);break}for(b=h.after.length-1;b>=0;b--)switch(d=h.after[b],d){case"$":m=b===h.after.length-1?m+p.currency.symbol:t._.insert(m,p.currency.symbol,-(h.after.length-(1+b)));break;case" ":m=b===h.after.length-1?m+" ":t._.insert(m," ",-(h.after.length-(1+b)+p.currency.symbol.length-1));break}return m}})}(),function(){t.register("format","exponential",{regexps:{format:/(e\+|e-)/,unformat:/(e\+|e-)/},format:function(c,l,f){var p,h=typeof c=="number"&&!t._.isNaN(c)?c.toExponential():"0e+0",m=h.split("e");return l=l.replace(/e[\+|\-]{1}0/,""),p=t._.numberToFormat(Number(m[0]),l,f),p+"e"+m[1]},unformat:function(c){var l=t._.includes(c,"e+")?c.split("e+"):c.split("e-"),f=Number(l[0]),p=Number(l[1]);p=t._.includes(c,"e-")?p*=-1:p;function h(m,d,b,E){var g=t._.correctionFactor(m,d),y=m*g*(d*g)/(g*g);return y}return t._.reduce([f,Math.pow(10,p)],h,1)}})}(),function(){t.register("format","ordinal",{regexps:{format:/(o)/},format:function(c,l,f){var p=t.locales[t.options.currentLocale],h,m=t._.includes(l," o")?" ":"";return l=l.replace(/\s?o/,""),m+=p.ordinal(c),h=t._.numberToFormat(c,l,f),h+m}})}(),function(){t.register("format","percentage",{regexps:{format:/(%)/,unformat:/(%)/},format:function(c,l,f){var p=t._.includes(l," %")?" ":"",h;return t.options.scalePercentBy100&&(c=c*100),l=l.replace(/\s?\%/,""),h=t._.numberToFormat(c,l,f),t._.includes(h,")")?(h=h.split(""),h.splice(-1,0,p+"%"),h=h.join("")):h=h+p+"%",h},unformat:function(c){var l=t._.stringToNumber(c);return t.options.scalePercentBy100?l*.01:l}})}(),function(){t.register("format","time",{regexps:{format:/(:)/,unformat:/(:)/},format:function(c,l,f){var p=Math.floor(c/60/60),h=Math.floor((c-p*60*60)/60),m=Math.round(c-p*60*60-h*60);return p+":"+(h<10?"0"+h:h)+":"+(m<10?"0"+m:m)},unformat:function(c){var l=c.split(":"),f=0;return l.length===3?(f=f+Number(l[0])*60*60,f=f+Number(l[1])*60,f=f+Number(l[2])):l.length===2&&(f=f+Number(l[0])*60,f=f+Number(l[1])),Number(f)}})}(),t})})(wc);var u1=wc.exports;const Ec=Be(u1);function l1(e,t="0.00"){return Ec(e).format(t)}function f1(e,t=2,r){return(r?Math.round:Math.floor)(Math.pow(10,t)*e)/Math.pow(10,t)}var Sc={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(ft,function(){var r=1e3,n=6e4,i=36e5,s="millisecond",o="second",a="minute",u="hour",c="day",l="week",f="month",p="quarter",h="year",m="date",d="Invalid Date",b=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,E=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,g={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(M){var D=["th","st","nd","rd"],N=M%100;return"["+M+(D[(N-20)%10]||D[N]||D[0])+"]"}},y=function(M,D,N){var H=String(M);return!H||H.length>=D?M:""+Array(D+1-H.length).join(N)+M},_={s:y,z:function(M){var D=-M.utcOffset(),N=Math.abs(D),H=Math.floor(N/60),U=N%60;return(D<=0?"+":"-")+y(H,2,"0")+":"+y(U,2,"0")},m:function M(D,N){if(D.date()<N.date())return-M(N,D);var H=12*(N.year()-D.year())+(N.month()-D.month()),U=D.clone().add(H,f),q=N-U<0,K=D.clone().add(H+(q?-1:1),f);return+(-(H+(N-U)/(q?U-K:K-U))||0)},a:function(M){return M<0?Math.ceil(M)||0:Math.floor(M)},p:function(M){return{M:f,y:h,w:l,d:c,D:m,h:u,m:a,s:o,ms:s,Q:p}[M]||String(M||"").toLowerCase().replace(/s$/,"")},u:function(M){return M===void 0}},S="en",v={};v[S]=g;var x="$isDayjsObject",$=function(M){return M instanceof F||!(!M||!M[x])},V=function M(D,N,H){var U;if(!D)return S;if(typeof D=="string"){var q=D.toLowerCase();v[q]&&(U=q),N&&(v[q]=N,U=q);var K=D.split("-");if(!U&&K.length>1)return M(K[0])}else{var R=D.name;v[R]=D,U=R}return!H&&U&&(S=U),U||!H&&S},w=function(M,D){if($(M))return M.clone();var N=typeof D=="object"?D:{};return N.date=M,N.args=arguments,new F(N)},T=_;T.l=V,T.i=$,T.w=function(M,D){return w(M,{locale:D.$L,utc:D.$u,x:D.$x,$offset:D.$offset})};var F=function(){function M(N){this.$L=V(N.locale,null,!0),this.parse(N),this.$x=this.$x||N.x||{},this[x]=!0}var D=M.prototype;return D.parse=function(N){this.$d=function(H){var U=H.date,q=H.utc;if(U===null)return new Date(NaN);if(T.u(U))return new Date;if(U instanceof Date)return new Date(U);if(typeof U=="string"&&!/Z$/i.test(U)){var K=U.match(b);if(K){var R=K[2]-1||0,P=(K[7]||"0").substring(0,3);return q?new Date(Date.UTC(K[1],R,K[3]||1,K[4]||0,K[5]||0,K[6]||0,P)):new Date(K[1],R,K[3]||1,K[4]||0,K[5]||0,K[6]||0,P)}}return new Date(U)}(N),this.init()},D.init=function(){var N=this.$d;this.$y=N.getFullYear(),this.$M=N.getMonth(),this.$D=N.getDate(),this.$W=N.getDay(),this.$H=N.getHours(),this.$m=N.getMinutes(),this.$s=N.getSeconds(),this.$ms=N.getMilliseconds()},D.$utils=function(){return T},D.isValid=function(){return this.$d.toString()!==d},D.isSame=function(N,H){var U=w(N);return this.startOf(H)<=U&&U<=this.endOf(H)},D.isAfter=function(N,H){return w(N)<this.startOf(H)},D.isBefore=function(N,H){return this.endOf(H)<w(N)},D.$g=function(N,H,U){return T.u(N)?this[H]:this.set(U,N)},D.unix=function(){return Math.floor(this.valueOf()/1e3)},D.valueOf=function(){return this.$d.getTime()},D.startOf=function(N,H){var U=this,q=!!T.u(H)||H,K=T.p(N),R=function(Yt,dt){var Lt=T.w(U.$u?Date.UTC(U.$y,dt,Yt):new Date(U.$y,dt,Yt),U);return q?Lt:Lt.endOf(c)},P=function(Yt,dt){return T.w(U.toDate()[Yt].apply(U.toDate("s"),(q?[0,0,0,0]:[23,59,59,999]).slice(dt)),U)},B=this.$W,k=this.$M,St=this.$D,pe="set"+(this.$u?"UTC":"");switch(K){case h:return q?R(1,0):R(31,11);case f:return q?R(1,k):R(0,k+1);case l:var Wt=this.$locale().weekStart||0,Fe=(B<Wt?B+7:B)-Wt;return R(q?St-Fe:St+(6-Fe),k);case c:case m:return P(pe+"Hours",0);case u:return P(pe+"Minutes",1);case a:return P(pe+"Seconds",2);case o:return P(pe+"Milliseconds",3);default:return this.clone()}},D.endOf=function(N){return this.startOf(N,!1)},D.$set=function(N,H){var U,q=T.p(N),K="set"+(this.$u?"UTC":""),R=(U={},U[c]=K+"Date",U[m]=K+"Date",U[f]=K+"Month",U[h]=K+"FullYear",U[u]=K+"Hours",U[a]=K+"Minutes",U[o]=K+"Seconds",U[s]=K+"Milliseconds",U)[q],P=q===c?this.$D+(H-this.$W):H;if(q===f||q===h){var B=this.clone().set(m,1);B.$d[R](P),B.init(),this.$d=B.set(m,Math.min(this.$D,B.daysInMonth())).$d}else R&&this.$d[R](P);return this.init(),this},D.set=function(N,H){return this.clone().$set(N,H)},D.get=function(N){return this[T.p(N)]()},D.add=function(N,H){var U,q=this;N=Number(N);var K=T.p(H),R=function(k){var St=w(q);return T.w(St.date(St.date()+Math.round(k*N)),q)};if(K===f)return this.set(f,this.$M+N);if(K===h)return this.set(h,this.$y+N);if(K===c)return R(1);if(K===l)return R(7);var P=(U={},U[a]=n,U[u]=i,U[o]=r,U)[K]||1,B=this.$d.getTime()+N*P;return T.w(B,this)},D.subtract=function(N,H){return this.add(-1*N,H)},D.format=function(N){var H=this,U=this.$locale();if(!this.isValid())return U.invalidDate||d;var q=N||"YYYY-MM-DDTHH:mm:ssZ",K=T.z(this),R=this.$H,P=this.$m,B=this.$M,k=U.weekdays,St=U.months,pe=U.meridiem,Wt=function(dt,Lt,Le,mr){return dt&&(dt[Lt]||dt(H,q))||Le[Lt].slice(0,mr)},Fe=function(dt){return T.s(R%12||12,dt,"0")},Yt=pe||function(dt,Lt,Le){var mr=dt<12?"AM":"PM";return Le?mr.toLowerCase():mr};return q.replace(E,function(dt,Lt){return Lt||function(Le){switch(Le){case"YY":return String(H.$y).slice(-2);case"YYYY":return T.s(H.$y,4,"0");case"M":return B+1;case"MM":return T.s(B+1,2,"0");case"MMM":return Wt(U.monthsShort,B,St,3);case"MMMM":return Wt(St,B);case"D":return H.$D;case"DD":return T.s(H.$D,2,"0");case"d":return String(H.$W);case"dd":return Wt(U.weekdaysMin,H.$W,k,2);case"ddd":return Wt(U.weekdaysShort,H.$W,k,3);case"dddd":return k[H.$W];case"H":return String(R);case"HH":return T.s(R,2,"0");case"h":return Fe(1);case"hh":return Fe(2);case"a":return Yt(R,P,!0);case"A":return Yt(R,P,!1);case"m":return String(P);case"mm":return T.s(P,2,"0");case"s":return String(H.$s);case"ss":return T.s(H.$s,2,"0");case"SSS":return T.s(H.$ms,3,"0");case"Z":return K}return null}(dt)||K.replace(":","")})},D.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},D.diff=function(N,H,U){var q,K=this,R=T.p(H),P=w(N),B=(P.utcOffset()-this.utcOffset())*n,k=this-P,St=function(){return T.m(K,P)};switch(R){case h:q=St()/12;break;case f:q=St();break;case p:q=St()/3;break;case l:q=(k-B)/6048e5;break;case c:q=(k-B)/864e5;break;case u:q=k/i;break;case a:q=k/n;break;case o:q=k/r;break;default:q=k}return U?q:T.a(q)},D.daysInMonth=function(){return this.endOf(f).$D},D.$locale=function(){return v[this.$L]},D.locale=function(N,H){if(!N)return this.$L;var U=this.clone(),q=V(N,H,!0);return q&&(U.$L=q),U},D.clone=function(){return T.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()},M}(),C=F.prototype;return w.prototype=C,[["$ms",s],["$s",o],["$m",a],["$H",u],["$W",c],["$M",f],["$y",h],["$D",m]].forEach(function(M){C[M[1]]=function(D){return this.$g(D,M[0],M[1])}}),w.extend=function(M,D){return M.$i||(M(D,F,w),M.$i=!0),w},w.locale=V,w.isDayjs=$,w.unix=function(M){return w(1e3*M)},w.en=v[S],w.Ls=v,w.p={},w})})(Sc);var xc=Sc.exports;const Hi=Be(xc);var h1={exports:{}};(function(e,t){(function(r,n){e.exports=n(xc)})(ft,function(r){function n(o){return o&&typeof o=="object"&&"default"in o?o:{default:o}}var i=n(r),s={name:"zh-cn",weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),ordinal:function(o,a){return a==="W"?o+"周":o+"日"},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},relativeTime:{future:"%s内",past:"%s前",s:"几秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},meridiem:function(o,a){var u=100*o+a;return u<600?"凌晨":u<900?"早上":u<1100?"上午":u<1300?"中午":u<1800?"下午":"晚上"}};return i.default.locale(s,null,!0),s})})(h1),Hi.locale("zh-cn");function p1(e,t="YYYY-MM-DD HH:mm:ss"){return Hi(e).format(t)}let d1=0;const Tc=e=>Object.prototype.toString.call(e),m1=e=>Tc(e).slice(8,-1),g1=e=>typeof e<"u",v1=()=>Date.now(),Oc=()=>+Date.now(),y1=(e,t)=>(e=Math.ceil(e),t=Math.floor(t),Math.floor(Math.random()*(t-e+1))+e);function gt(){return Number((++d1).toString()+Date.now()).toString(36)}function $c(e=!0){const t="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(r){const n=Math.random()*16|0;return(r==="x"?n:n&3|8).toString(16)});return e?t.toLowerCase():t.replace(/-/gi,"")}function Se(e=0){return L(this,null,function*(){return new Promise(t=>{setTimeout(t,e)})})}function Ac(e,t){return e.reduce((r,n)=>{const i=n[t];return r.set(i,n),r},new Map)}function cn(e){return[...e.entries()].reduce((t,[r,n])=>(t[r]=n,t),{})}function b1(e=[],t="key",r="value"){const n={};for(const i of e)n[i[t]]=i[r];return n}function _1(e={},t="key",r="value"){return Object.entries(e).map(([n,i])=>({[t]:n,[r]:i}))}function Rc(e,t){if(t){const r=Ac(e,t);return Array.from(r.values())}else return Array.from(new Set(e))}function ii(e){return e?[].concat(e):[]}function w1(e){return Object.keys(e).reduce((t,r)=>{const n=e[r];return n!=null&&(t[r]=n),t},{})}function Dr(e,t){const r={};if(Array.isArray(t))Object.keys(e).forEach(n=>{t.includes(n)||(r[n]=e[n])});else{const n=t;Object.entries(e).forEach(([i,s])=>{n(i,s)||(r[i]=s)})}return r}function jc(e,t){const r={};if(Array.isArray(t))Object.keys(e).forEach(n=>{t.includes(n)&&(r[n]=e[n])});else{const n=t;Object.entries(e).forEach(([i,s])=>{n(i,s)&&(r[i]=s)})}return r}function si(e){const t=typeof e;return t==="string"?e.trim():Array.isArray(e)?e.map(r=>si(r)):(e&&t==="object"&&Object.entries(e).forEach(([r,n])=>{e[r]=si(n)}),e)}function Dc(e=[],t){return t?e.reduce((r,n)=>r+Number(n[t]),0):e.reduce((r,n)=>r+Number(n),0)}function E1(e=[],t){const r=Dc(e,t);return e.length?r/e.length:0}function S1(e,t=","){return e?e.split(t):[]}function x1(e,t=","){return e?e.join(t):""}function T1(e,t="id",r="parentId",n="children",i="null"){const s=Xa(e,r);for(const o of Object.values(s))o.forEach(a=>{a[n]=s[a[t]]||[]});return s[i]}function Cc(e=[]){let t=[];return e.forEach(r=>{const s=r,{children:n}=s,i=bs(s,["children"]);r.children&&r.children.length>0&&(t=t.concat(Cc(r.children))),t.push(i)}),t}var Pc={exports:{}};(function(e){var t=function(){var r=String.fromCharCode,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",s={};function o(u,c){if(!s[u]){s[u]={};for(var l=0;l<u.length;l++)s[u][u.charAt(l)]=l}return s[u][c]}var a={compressToBase64:function(u){if(u==null)return"";var c=a._compress(u,6,function(l){return n.charAt(l)});switch(c.length%4){default:case 0:return c;case 1:return c+"===";case 2:return c+"==";case 3:return c+"="}},decompressFromBase64:function(u){return u==null?"":u==""?null:a._decompress(u.length,32,function(c){return o(n,u.charAt(c))})},compressToUTF16:function(u){return u==null?"":a._compress(u,15,function(c){return r(c+32)})+" "},decompressFromUTF16:function(u){return u==null?"":u==""?null:a._decompress(u.length,16384,function(c){return u.charCodeAt(c)-32})},compressToUint8Array:function(u){for(var c=a.compress(u),l=new Uint8Array(c.length*2),f=0,p=c.length;f<p;f++){var h=c.charCodeAt(f);l[f*2]=h>>>8,l[f*2+1]=h%256}return l},decompressFromUint8Array:function(u){if(u==null)return a.decompress(u);for(var c=new Array(u.length/2),l=0,f=c.length;l<f;l++)c[l]=u[l*2]*256+u[l*2+1];var p=[];return c.forEach(function(h){p.push(r(h))}),a.decompress(p.join(""))},compressToEncodedURIComponent:function(u){return u==null?"":a._compress(u,6,function(c){return i.charAt(c)})},decompressFromEncodedURIComponent:function(u){return u==null?"":u==""?null:(u=u.replace(/ /g,"+"),a._decompress(u.length,32,function(c){return o(i,u.charAt(c))}))},compress:function(u){return a._compress(u,16,function(c){return r(c)})},_compress:function(u,c,l){if(u==null)return"";var f,p,h={},m={},d="",b="",E="",g=2,y=3,_=2,S=[],v=0,x=0,$;for($=0;$<u.length;$+=1)if(d=u.charAt($),Object.prototype.hasOwnProperty.call(h,d)||(h[d]=y++,m[d]=!0),b=E+d,Object.prototype.hasOwnProperty.call(h,b))E=b;else{if(Object.prototype.hasOwnProperty.call(m,E)){if(E.charCodeAt(0)<256){for(f=0;f<_;f++)v=v<<1,x==c-1?(x=0,S.push(l(v)),v=0):x++;for(p=E.charCodeAt(0),f=0;f<8;f++)v=v<<1|p&1,x==c-1?(x=0,S.push(l(v)),v=0):x++,p=p>>1}else{for(p=1,f=0;f<_;f++)v=v<<1|p,x==c-1?(x=0,S.push(l(v)),v=0):x++,p=0;for(p=E.charCodeAt(0),f=0;f<16;f++)v=v<<1|p&1,x==c-1?(x=0,S.push(l(v)),v=0):x++,p=p>>1}g--,g==0&&(g=Math.pow(2,_),_++),delete m[E]}else for(p=h[E],f=0;f<_;f++)v=v<<1|p&1,x==c-1?(x=0,S.push(l(v)),v=0):x++,p=p>>1;g--,g==0&&(g=Math.pow(2,_),_++),h[b]=y++,E=String(d)}if(E!==""){if(Object.prototype.hasOwnProperty.call(m,E)){if(E.charCodeAt(0)<256){for(f=0;f<_;f++)v=v<<1,x==c-1?(x=0,S.push(l(v)),v=0):x++;for(p=E.charCodeAt(0),f=0;f<8;f++)v=v<<1|p&1,x==c-1?(x=0,S.push(l(v)),v=0):x++,p=p>>1}else{for(p=1,f=0;f<_;f++)v=v<<1|p,x==c-1?(x=0,S.push(l(v)),v=0):x++,p=0;for(p=E.charCodeAt(0),f=0;f<16;f++)v=v<<1|p&1,x==c-1?(x=0,S.push(l(v)),v=0):x++,p=p>>1}g--,g==0&&(g=Math.pow(2,_),_++),delete m[E]}else for(p=h[E],f=0;f<_;f++)v=v<<1|p&1,x==c-1?(x=0,S.push(l(v)),v=0):x++,p=p>>1;g--,g==0&&(g=Math.pow(2,_),_++)}for(p=2,f=0;f<_;f++)v=v<<1|p&1,x==c-1?(x=0,S.push(l(v)),v=0):x++,p=p>>1;for(;;)if(v=v<<1,x==c-1){S.push(l(v));break}else x++;return S.join("")},decompress:function(u){return u==null?"":u==""?null:a._decompress(u.length,32768,function(c){return u.charCodeAt(c)})},_decompress:function(u,c,l){var f=[],p=4,h=4,m=3,d="",b=[],E,g,y,_,S,v,x,$={val:l(0),position:c,index:1};for(E=0;E<3;E+=1)f[E]=E;for(y=0,S=Math.pow(2,2),v=1;v!=S;)_=$.val&$.position,$.position>>=1,$.position==0&&($.position=c,$.val=l($.index++)),y|=(_>0?1:0)*v,v<<=1;switch(y){case 0:for(y=0,S=Math.pow(2,8),v=1;v!=S;)_=$.val&$.position,$.position>>=1,$.position==0&&($.position=c,$.val=l($.index++)),y|=(_>0?1:0)*v,v<<=1;x=r(y);break;case 1:for(y=0,S=Math.pow(2,16),v=1;v!=S;)_=$.val&$.position,$.position>>=1,$.position==0&&($.position=c,$.val=l($.index++)),y|=(_>0?1:0)*v,v<<=1;x=r(y);break;case 2:return""}for(f[3]=x,g=x,b.push(x);;){if($.index>u)return"";for(y=0,S=Math.pow(2,m),v=1;v!=S;)_=$.val&$.position,$.position>>=1,$.position==0&&($.position=c,$.val=l($.index++)),y|=(_>0?1:0)*v,v<<=1;switch(x=y){case 0:for(y=0,S=Math.pow(2,8),v=1;v!=S;)_=$.val&$.position,$.position>>=1,$.position==0&&($.position=c,$.val=l($.index++)),y|=(_>0?1:0)*v,v<<=1;f[h++]=r(y),x=h-1,p--;break;case 1:for(y=0,S=Math.pow(2,16),v=1;v!=S;)_=$.val&$.position,$.position>>=1,$.position==0&&($.position=c,$.val=l($.index++)),y|=(_>0?1:0)*v,v<<=1;f[h++]=r(y),x=h-1,p--;break;case 2:return b.join("")}if(p==0&&(p=Math.pow(2,m),m++),f[x])d=f[x];else if(x===h)d=g+g.charAt(0);else return null;b.push(d),f[h++]=g+d.charAt(0),p--,g=d,p==0&&(p=Math.pow(2,m),m++)}}};return a}();e!=null?e.exports=t:typeof angular<"u"&&angular!=null&&angular.module("LZString",[]).factory("LZString",function(){return t})})(Pc);var Nc=Pc.exports;function Bc(e){return{all:e=e||new Map,on:function(t,r){var n=e.get(t);n?n.push(r):e.set(t,[r])},off:function(t,r){var n=e.get(t);n&&(r?n.splice(n.indexOf(r)>>>0,1):e.set(t,[]))},emit:function(t,r){var n=e.get(t);n&&n.slice().map(function(i){i(r)}),(n=e.get("*"))&&n.slice().map(function(i){i(t,r)})}}}function O1(e){for(var t=[],r=0;r<e.length;){var n=e[r];if(n==="*"||n==="+"||n==="?"){t.push({type:"MODIFIER",index:r,value:e[r++]});continue}if(n==="\\"){t.push({type:"ESCAPED_CHAR",index:r++,value:e[r++]});continue}if(n==="{"){t.push({type:"OPEN",index:r,value:e[r++]});continue}if(n==="}"){t.push({type:"CLOSE",index:r,value:e[r++]});continue}if(n===":"){for(var i="",s=r+1;s<e.length;){var o=e.charCodeAt(s);if(o>=48&&o<=57||o>=65&&o<=90||o>=97&&o<=122||o===95){i+=e[s++];continue}break}if(!i)throw new TypeError("Missing parameter name at ".concat(r));t.push({type:"NAME",index:r,value:i}),r=s;continue}if(n==="("){var a=1,u="",s=r+1;if(e[s]==="?")throw new TypeError('Pattern cannot start with "?" at '.concat(s));for(;s<e.length;){if(e[s]==="\\"){u+=e[s++]+e[s++];continue}if(e[s]===")"){if(a--,a===0){s++;break}}else if(e[s]==="("&&(a++,e[s+1]!=="?"))throw new TypeError("Capturing groups are not allowed at ".concat(s));u+=e[s++]}if(a)throw new TypeError("Unbalanced pattern at ".concat(r));if(!u)throw new TypeError("Missing pattern at ".concat(r));t.push({type:"PATTERN",index:r,value:u}),r=s;continue}t.push({type:"CHAR",index:r,value:e[r++]})}return t.push({type:"END",index:r,value:""}),t}function zi(e,t){t===void 0&&(t={});for(var r=O1(e),n=t.prefixes,i=n===void 0?"./":n,s="[^".concat(_e(t.delimiter||"/#?"),"]+?"),o=[],a=0,u=0,c="",l=function(v){if(u<r.length&&r[u].type===v)return r[u++].value},f=function(v){var x=l(v);if(x!==void 0)return x;var $=r[u],V=$.type,w=$.index;throw new TypeError("Unexpected ".concat(V," at ").concat(w,", expected ").concat(v))},p=function(){for(var v="",x;x=l("CHAR")||l("ESCAPED_CHAR");)v+=x;return v};u<r.length;){var h=l("CHAR"),m=l("NAME"),d=l("PATTERN");if(m||d){var b=h||"";i.indexOf(b)===-1&&(c+=b,b=""),c&&(o.push(c),c=""),o.push({name:m||a++,prefix:b,suffix:"",pattern:d||s,modifier:l("MODIFIER")||""});continue}var E=h||l("ESCAPED_CHAR");if(E){c+=E;continue}c&&(o.push(c),c="");var g=l("OPEN");if(g){var b=p(),y=l("NAME")||"",_=l("PATTERN")||"",S=p();f("CLOSE"),o.push({name:y||(_?a++:""),pattern:y&&!_?s:_,prefix:b,suffix:S,modifier:l("MODIFIER")||""});continue}f("END")}return o}function kc(e,t){return $1(zi(e,t),t)}function $1(e,t){t===void 0&&(t={});var r=qi(t),n=t.encode,i=n===void 0?function(u){return u}:n,s=t.validate,o=s===void 0?!0:s,a=e.map(function(u){if(typeof u=="object")return new RegExp("^(?:".concat(u.pattern,")$"),r)});return function(u){for(var c="",l=0;l<e.length;l++){var f=e[l];if(typeof f=="string"){c+=f;continue}var p=u?u[f.name]:void 0,h=f.modifier==="?"||f.modifier==="*",m=f.modifier==="*"||f.modifier==="+";if(Array.isArray(p)){if(!m)throw new TypeError('Expected "'.concat(f.name,'" to not repeat, but got an array'));if(p.length===0){if(h)continue;throw new TypeError('Expected "'.concat(f.name,'" to not be empty'))}for(var d=0;d<p.length;d++){var b=i(p[d],f);if(o&&!a[l].test(b))throw new TypeError('Expected all "'.concat(f.name,'" to match "').concat(f.pattern,'", but got "').concat(b,'"'));c+=f.prefix+b+f.suffix}continue}if(typeof p=="string"||typeof p=="number"){var b=i(String(p),f);if(o&&!a[l].test(b))throw new TypeError('Expected "'.concat(f.name,'" to match "').concat(f.pattern,'", but got "').concat(b,'"'));c+=f.prefix+b+f.suffix;continue}if(!h){var E=m?"an array":"a string";throw new TypeError('Expected "'.concat(f.name,'" to be ').concat(E))}}return c}}function Mc(e,t){var r=[],n=un(e,r,t);return A1(n,r,t)}function A1(e,t,r){r===void 0&&(r={});var n=r.decode,i=n===void 0?function(s){return s}:n;return function(s){var o=e.exec(s);if(!o)return!1;for(var a=o[0],u=o.index,c=Object.create(null),l=function(p){if(o[p]===void 0)return"continue";var h=t[p-1];h.modifier==="*"||h.modifier==="+"?c[h.name]=o[p].split(h.prefix+h.suffix).map(function(m){return i(m,h)}):c[h.name]=i(o[p],h)},f=1;f<o.length;f++)l(f);return{path:a,index:u,params:c}}}function _e(e){return e.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function qi(e){return e&&e.sensitive?"":"i"}function R1(e,t){if(!t)return e;for(var r=/\((?:\?<(.*?)>)?(?!\?)/g,n=0,i=r.exec(e.source);i;)t.push({name:i[1]||n++,prefix:"",suffix:"",modifier:"",pattern:""}),i=r.exec(e.source);return e}function j1(e,t,r){var n=e.map(function(i){return un(i,t,r).source});return new RegExp("(?:".concat(n.join("|"),")"),qi(r))}function D1(e,t,r){return C1(zi(e,r),t,r)}function C1(e,t,r){r===void 0&&(r={});for(var n=r.strict,i=n===void 0?!1:n,s=r.start,o=s===void 0?!0:s,a=r.end,u=a===void 0?!0:a,c=r.encode,l=c===void 0?function(w){return w}:c,f=r.delimiter,p=f===void 0?"/#?":f,h=r.endsWith,m=h===void 0?"":h,d="[".concat(_e(m),"]|$"),b="[".concat(_e(p),"]"),E=o?"^":"",g=0,y=e;g<y.length;g++){var _=y[g];if(typeof _=="string")E+=_e(l(_));else{var S=_e(l(_.prefix)),v=_e(l(_.suffix));if(_.pattern)if(t&&t.push(_),S||v)if(_.modifier==="+"||_.modifier==="*"){var x=_.modifier==="*"?"?":"";E+="(?:".concat(S,"((?:").concat(_.pattern,")(?:").concat(v).concat(S,"(?:").concat(_.pattern,"))*)").concat(v,")").concat(x)}else E+="(?:".concat(S,"(").concat(_.pattern,")").concat(v,")").concat(_.modifier);else _.modifier==="+"||_.modifier==="*"?E+="((?:".concat(_.pattern,")").concat(_.modifier,")"):E+="(".concat(_.pattern,")").concat(_.modifier);else E+="(?:".concat(S).concat(v,")").concat(_.modifier)}}if(u)i||(E+="".concat(b,"?")),E+=r.endsWith?"(?=".concat(d,")"):"$";else{var $=e[e.length-1],V=typeof $=="string"?b.indexOf($[$.length-1])>-1:$===void 0;i||(E+="(?:".concat(b,"(?=").concat(d,"))?")),V||(E+="(?=".concat(b,"|").concat(d,")"))}return new RegExp(E,qi(r))}function un(e,t,r){return e instanceof RegExp?R1(e,t):Array.isArray(e)?j1(e,t,r):D1(e,t,r)}const P1=Nc.compress,N1=Nc.decompress;/**!
50
+ */(function(e){(function(t,r){e.exports?e.exports=r():t.numeral=r()})(ft,function(){var t,r,n="2.0.6",i={},s={},o={currentLocale:"en",zeroFormat:null,nullFormat:null,defaultFormat:"0,0",scalePercentBy100:!0},a={currentLocale:o.currentLocale,zeroFormat:o.zeroFormat,nullFormat:o.nullFormat,defaultFormat:o.defaultFormat,scalePercentBy100:o.scalePercentBy100};function u(c,l){this._input=c,this._value=l}return t=function(c){var l,f,p,h;if(t.isNumeral(c))l=c.value();else if(c===0||typeof c>"u")l=0;else if(c===null||r.isNaN(c))l=null;else if(typeof c=="string")if(a.zeroFormat&&c===a.zeroFormat)l=0;else if(a.nullFormat&&c===a.nullFormat||!c.replace(/[^0-9]+/g,"").length)l=null;else{for(f in i)if(h=typeof i[f].regexps.unformat=="function"?i[f].regexps.unformat():i[f].regexps.unformat,h&&c.match(h)){p=i[f].unformat;break}p=p||t._.stringToNumber,l=p(c)}else l=Number(c)||null;return new u(c,l)},t.version=n,t.isNumeral=function(c){return c instanceof u},t._=r={numberToFormat:function(c,l,f){var p=s[t.options.currentLocale],h=!1,m=!1,d=0,b="",E=1e12,g=1e9,y=1e6,_=1e3,S="",v=!1,x,A,V,w,T,F,C;if(c=c||0,A=Math.abs(c),t._.includes(l,"(")?(h=!0,l=l.replace(/[\(|\)]/g,"")):(t._.includes(l,"+")||t._.includes(l,"-"))&&(T=t._.includes(l,"+")?l.indexOf("+"):c<0?l.indexOf("-"):-1,l=l.replace(/[\+|\-]/g,"")),t._.includes(l,"a")&&(x=l.match(/a(k|m|b|t)?/),x=x?x[1]:!1,t._.includes(l," a")&&(b=" "),l=l.replace(new RegExp(b+"a[kmbt]?"),""),A>=E&&!x||x==="t"?(b+=p.abbreviations.trillion,c=c/E):A<E&&A>=g&&!x||x==="b"?(b+=p.abbreviations.billion,c=c/g):A<g&&A>=y&&!x||x==="m"?(b+=p.abbreviations.million,c=c/y):(A<y&&A>=_&&!x||x==="k")&&(b+=p.abbreviations.thousand,c=c/_)),t._.includes(l,"[.]")&&(m=!0,l=l.replace("[.]",".")),V=c.toString().split(".")[0],w=l.split(".")[1],F=l.indexOf(","),d=(l.split(".")[0].split(",")[0].match(/0/g)||[]).length,w?(t._.includes(w,"[")?(w=w.replace("]",""),w=w.split("["),S=t._.toFixed(c,w[0].length+w[1].length,f,w[1].length)):S=t._.toFixed(c,w.length,f),V=S.split(".")[0],t._.includes(S,".")?S=p.delimiters.decimal+S.split(".")[1]:S="",m&&Number(S.slice(1))===0&&(S="")):V=t._.toFixed(c,0,f),b&&!x&&Number(V)>=1e3&&b!==p.abbreviations.trillion)switch(V=String(Number(V)/1e3),b){case p.abbreviations.thousand:b=p.abbreviations.million;break;case p.abbreviations.million:b=p.abbreviations.billion;break;case p.abbreviations.billion:b=p.abbreviations.trillion;break}if(t._.includes(V,"-")&&(V=V.slice(1),v=!0),V.length<d)for(var I=d-V.length;I>0;I--)V="0"+V;return F>-1&&(V=V.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+p.delimiters.thousands)),l.indexOf(".")===0&&(V=""),C=V+S+(b||""),h?C=(h&&v?"(":"")+C+(h&&v?")":""):T>=0?C=T===0?(v?"-":"+")+C:C+(v?"-":"+"):v&&(C="-"+C),C},stringToNumber:function(c){var l=s[a.currentLocale],f=c,p={thousand:3,million:6,billion:9,trillion:12},h,m,d;if(a.zeroFormat&&c===a.zeroFormat)m=0;else if(a.nullFormat&&c===a.nullFormat||!c.replace(/[^0-9]+/g,"").length)m=null;else{m=1,l.delimiters.decimal!=="."&&(c=c.replace(/\./g,"").replace(l.delimiters.decimal,"."));for(h in p)if(d=new RegExp("[^a-zA-Z]"+l.abbreviations[h]+"(?:\\)|(\\"+l.currency.symbol+")?(?:\\))?)?$"),f.match(d)){m*=Math.pow(10,p[h]);break}m*=(c.split("-").length+Math.min(c.split("(").length-1,c.split(")").length-1))%2?1:-1,c=c.replace(/[^0-9\.]+/g,""),m*=Number(c)}return m},isNaN:function(c){return typeof c=="number"&&isNaN(c)},includes:function(c,l){return c.indexOf(l)!==-1},insert:function(c,l,f){return c.slice(0,f)+l+c.slice(f)},reduce:function(c,l){if(this===null)throw new TypeError("Array.prototype.reduce called on null or undefined");if(typeof l!="function")throw new TypeError(l+" is not a function");var f=Object(c),p=f.length>>>0,h=0,m;if(arguments.length===3)m=arguments[2];else{for(;h<p&&!(h in f);)h++;if(h>=p)throw new TypeError("Reduce of empty array with no initial value");m=f[h++]}for(;h<p;h++)h in f&&(m=l(m,f[h],h,f));return m},multiplier:function(c){var l=c.toString().split(".");return l.length<2?1:Math.pow(10,l[1].length)},correctionFactor:function(){var c=Array.prototype.slice.call(arguments);return c.reduce(function(l,f){var p=r.multiplier(f);return l>p?l:p},1)},toFixed:function(c,l,f,p){var h=c.toString().split("."),m=l-(p||0),d,b,E,g;return h.length===2?d=Math.min(Math.max(h[1].length,m),l):d=m,E=Math.pow(10,d),g=(f(c+"e+"+d)/E).toFixed(d),p>l-d&&(b=new RegExp("\\.?0{1,"+(p-(l-d))+"}$"),g=g.replace(b,"")),g}},t.options=a,t.formats=i,t.locales=s,t.locale=function(c){return c&&(a.currentLocale=c.toLowerCase()),a.currentLocale},t.localeData=function(c){if(!c)return s[a.currentLocale];if(c=c.toLowerCase(),!s[c])throw new Error("Unknown locale : "+c);return s[c]},t.reset=function(){for(var c in o)a[c]=o[c]},t.zeroFormat=function(c){a.zeroFormat=typeof c=="string"?c:null},t.nullFormat=function(c){a.nullFormat=typeof c=="string"?c:null},t.defaultFormat=function(c){a.defaultFormat=typeof c=="string"?c:"0.0"},t.register=function(c,l,f){if(l=l.toLowerCase(),this[c+"s"][l])throw new TypeError(l+" "+c+" already registered.");return this[c+"s"][l]=f,f},t.validate=function(c,l){var f,p,h,m,d,b,E,g;if(typeof c!="string"&&(c+="",console.warn&&console.warn("Numeral.js: Value is not string. It has been co-erced to: ",c)),c=c.trim(),c.match(/^\d+$/))return!0;if(c==="")return!1;try{E=t.localeData(l)}catch(y){E=t.localeData(t.locale())}return h=E.currency.symbol,d=E.abbreviations,f=E.delimiters.decimal,E.delimiters.thousands==="."?p="\\.":p=E.delimiters.thousands,g=c.match(/^[^\d]+/),g!==null&&(c=c.substr(1),g[0]!==h)||(g=c.match(/[^\d]+$/),g!==null&&(c=c.slice(0,-1),g[0]!==d.thousand&&g[0]!==d.million&&g[0]!==d.billion&&g[0]!==d.trillion))?!1:(b=new RegExp(p+"{2}"),c.match(/[^\d.,]/g)?!1:(m=c.split(f),m.length>2?!1:m.length<2?!!m[0].match(/^\d+.*\d$/)&&!m[0].match(b):m[0].length===1?!!m[0].match(/^\d+$/)&&!m[0].match(b)&&!!m[1].match(/^\d+$/):!!m[0].match(/^\d+.*\d$/)&&!m[0].match(b)&&!!m[1].match(/^\d+$/)))},t.fn=u.prototype={clone:function(){return t(this)},format:function(c,l){var f=this._value,p=c||a.defaultFormat,h,m,d;if(l=l||Math.round,f===0&&a.zeroFormat!==null)m=a.zeroFormat;else if(f===null&&a.nullFormat!==null)m=a.nullFormat;else{for(h in i)if(p.match(i[h].regexps.format)){d=i[h].format;break}d=d||t._.numberToFormat,m=d(f,p,l)}return m},value:function(){return this._value},input:function(){return this._input},set:function(c){return this._value=Number(c),this},add:function(c){var l=r.correctionFactor.call(null,this._value,c);function f(p,h,m,d){return p+Math.round(l*h)}return this._value=r.reduce([this._value,c],f,0)/l,this},subtract:function(c){var l=r.correctionFactor.call(null,this._value,c);function f(p,h,m,d){return p-Math.round(l*h)}return this._value=r.reduce([c],f,Math.round(this._value*l))/l,this},multiply:function(c){function l(f,p,h,m){var d=r.correctionFactor(f,p);return Math.round(f*d)*Math.round(p*d)/Math.round(d*d)}return this._value=r.reduce([this._value,c],l,1),this},divide:function(c){function l(f,p,h,m){var d=r.correctionFactor(f,p);return Math.round(f*d)/Math.round(p*d)}return this._value=r.reduce([this._value,c],l),this},difference:function(c){return Math.abs(t(this._value).subtract(c).value())}},t.register("locale","en",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(c){var l=c%10;return~~(c%100/10)===1?"th":l===1?"st":l===2?"nd":l===3?"rd":"th"},currency:{symbol:"$"}}),function(){t.register("format","bps",{regexps:{format:/(BPS)/,unformat:/(BPS)/},format:function(c,l,f){var p=t._.includes(l," BPS")?" ":"",h;return c=c*1e4,l=l.replace(/\s?BPS/,""),h=t._.numberToFormat(c,l,f),t._.includes(h,")")?(h=h.split(""),h.splice(-1,0,p+"BPS"),h=h.join("")):h=h+p+"BPS",h},unformat:function(c){return+(t._.stringToNumber(c)*1e-4).toFixed(15)}})}(),function(){var c={base:1e3,suffixes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]},l={base:1024,suffixes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},f=c.suffixes.concat(l.suffixes.filter(function(h){return c.suffixes.indexOf(h)<0})),p=f.join("|");p="("+p.replace("B","B(?!PS)")+")",t.register("format","bytes",{regexps:{format:/([0\s]i?b)/,unformat:new RegExp(p)},format:function(h,m,d){var b,E=t._.includes(m,"ib")?l:c,g=t._.includes(m," b")||t._.includes(m," ib")?" ":"",y,_,S;for(m=m.replace(/\s?i?b/,""),y=0;y<=E.suffixes.length;y++)if(_=Math.pow(E.base,y),S=Math.pow(E.base,y+1),h===null||h===0||h>=_&&h<S){g+=E.suffixes[y],_>0&&(h=h/_);break}return b=t._.numberToFormat(h,m,d),b+g},unformat:function(h){var m=t._.stringToNumber(h),d,b;if(m){for(d=c.suffixes.length-1;d>=0;d--){if(t._.includes(h,c.suffixes[d])){b=Math.pow(c.base,d);break}if(t._.includes(h,l.suffixes[d])){b=Math.pow(l.base,d);break}}m*=b||1}return m}})}(),function(){t.register("format","currency",{regexps:{format:/(\$)/},format:function(c,l,f){var p=t.locales[t.options.currentLocale],h={before:l.match(/^([\+|\-|\(|\s|\$]*)/)[0],after:l.match(/([\+|\-|\)|\s|\$]*)$/)[0]},m,d,b;for(l=l.replace(/\s?\$\s?/,""),m=t._.numberToFormat(c,l,f),c>=0?(h.before=h.before.replace(/[\-\(]/,""),h.after=h.after.replace(/[\-\)]/,"")):c<0&&!t._.includes(h.before,"-")&&!t._.includes(h.before,"(")&&(h.before="-"+h.before),b=0;b<h.before.length;b++)switch(d=h.before[b],d){case"$":m=t._.insert(m,p.currency.symbol,b);break;case" ":m=t._.insert(m," ",b+p.currency.symbol.length-1);break}for(b=h.after.length-1;b>=0;b--)switch(d=h.after[b],d){case"$":m=b===h.after.length-1?m+p.currency.symbol:t._.insert(m,p.currency.symbol,-(h.after.length-(1+b)));break;case" ":m=b===h.after.length-1?m+" ":t._.insert(m," ",-(h.after.length-(1+b)+p.currency.symbol.length-1));break}return m}})}(),function(){t.register("format","exponential",{regexps:{format:/(e\+|e-)/,unformat:/(e\+|e-)/},format:function(c,l,f){var p,h=typeof c=="number"&&!t._.isNaN(c)?c.toExponential():"0e+0",m=h.split("e");return l=l.replace(/e[\+|\-]{1}0/,""),p=t._.numberToFormat(Number(m[0]),l,f),p+"e"+m[1]},unformat:function(c){var l=t._.includes(c,"e+")?c.split("e+"):c.split("e-"),f=Number(l[0]),p=Number(l[1]);p=t._.includes(c,"e-")?p*=-1:p;function h(m,d,b,E){var g=t._.correctionFactor(m,d),y=m*g*(d*g)/(g*g);return y}return t._.reduce([f,Math.pow(10,p)],h,1)}})}(),function(){t.register("format","ordinal",{regexps:{format:/(o)/},format:function(c,l,f){var p=t.locales[t.options.currentLocale],h,m=t._.includes(l," o")?" ":"";return l=l.replace(/\s?o/,""),m+=p.ordinal(c),h=t._.numberToFormat(c,l,f),h+m}})}(),function(){t.register("format","percentage",{regexps:{format:/(%)/,unformat:/(%)/},format:function(c,l,f){var p=t._.includes(l," %")?" ":"",h;return t.options.scalePercentBy100&&(c=c*100),l=l.replace(/\s?\%/,""),h=t._.numberToFormat(c,l,f),t._.includes(h,")")?(h=h.split(""),h.splice(-1,0,p+"%"),h=h.join("")):h=h+p+"%",h},unformat:function(c){var l=t._.stringToNumber(c);return t.options.scalePercentBy100?l*.01:l}})}(),function(){t.register("format","time",{regexps:{format:/(:)/,unformat:/(:)/},format:function(c,l,f){var p=Math.floor(c/60/60),h=Math.floor((c-p*60*60)/60),m=Math.round(c-p*60*60-h*60);return p+":"+(h<10?"0"+h:h)+":"+(m<10?"0"+m:m)},unformat:function(c){var l=c.split(":"),f=0;return l.length===3?(f=f+Number(l[0])*60*60,f=f+Number(l[1])*60,f=f+Number(l[2])):l.length===2&&(f=f+Number(l[0])*60,f=f+Number(l[1])),Number(f)}})}(),t})})(wc);var u1=wc.exports;const Ec=ke(u1);function l1(e,t="0.00"){return Ec(e).format(t)}function f1(e,t=2,r){return(r?Math.round:Math.floor)(Math.pow(10,t)*e)/Math.pow(10,t)}var Sc={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(ft,function(){var r=1e3,n=6e4,i=36e5,s="millisecond",o="second",a="minute",u="hour",c="day",l="week",f="month",p="quarter",h="year",m="date",d="Invalid Date",b=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,E=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,g={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"],B=I%100;return"["+I+(D[(B-20)%10]||D[B]||D[0])+"]"}},y=function(I,D,B){var H=String(I);return!H||H.length>=D?I:""+Array(D+1-H.length).join(B)+I},_={s:y,z:function(I){var D=-I.utcOffset(),B=Math.abs(D),H=Math.floor(B/60),U=B%60;return(D<=0?"+":"-")+y(H,2,"0")+":"+y(U,2,"0")},m:function I(D,B){if(D.date()<B.date())return-I(B,D);var H=12*(B.year()-D.year())+(B.month()-D.month()),U=D.clone().add(H,f),q=B-U<0,K=D.clone().add(H+(q?-1:1),f);return+(-(H+(B-U)/(q?U-K:K-U))||0)},a:function(I){return I<0?Math.ceil(I)||0:Math.floor(I)},p:function(I){return{M:f,y:h,w:l,d:c,D:m,h:u,m:a,s:o,ms:s,Q:p}[I]||String(I||"").toLowerCase().replace(/s$/,"")},u:function(I){return I===void 0}},S="en",v={};v[S]=g;var x="$isDayjsObject",A=function(I){return I instanceof F||!(!I||!I[x])},V=function I(D,B,H){var U;if(!D)return S;if(typeof D=="string"){var q=D.toLowerCase();v[q]&&(U=q),B&&(v[q]=B,U=q);var K=D.split("-");if(!U&&K.length>1)return I(K[0])}else{var R=D.name;v[R]=D,U=R}return!H&&U&&(S=U),U||!H&&S},w=function(I,D){if(A(I))return I.clone();var B=typeof D=="object"?D:{};return B.date=I,B.args=arguments,new F(B)},T=_;T.l=V,T.i=A,T.w=function(I,D){return w(I,{locale:D.$L,utc:D.$u,x:D.$x,$offset:D.$offset})};var F=function(){function I(B){this.$L=V(B.locale,null,!0),this.parse(B),this.$x=this.$x||B.x||{},this[x]=!0}var D=I.prototype;return D.parse=function(B){this.$d=function(H){var U=H.date,q=H.utc;if(U===null)return new Date(NaN);if(T.u(U))return new Date;if(U instanceof Date)return new Date(U);if(typeof U=="string"&&!/Z$/i.test(U)){var K=U.match(b);if(K){var R=K[2]-1||0,P=(K[7]||"0").substring(0,3);return q?new Date(Date.UTC(K[1],R,K[3]||1,K[4]||0,K[5]||0,K[6]||0,P)):new Date(K[1],R,K[3]||1,K[4]||0,K[5]||0,K[6]||0,P)}}return new Date(U)}(B),this.init()},D.init=function(){var B=this.$d;this.$y=B.getFullYear(),this.$M=B.getMonth(),this.$D=B.getDate(),this.$W=B.getDay(),this.$H=B.getHours(),this.$m=B.getMinutes(),this.$s=B.getSeconds(),this.$ms=B.getMilliseconds()},D.$utils=function(){return T},D.isValid=function(){return this.$d.toString()!==d},D.isSame=function(B,H){var U=w(B);return this.startOf(H)<=U&&U<=this.endOf(H)},D.isAfter=function(B,H){return w(B)<this.startOf(H)},D.isBefore=function(B,H){return this.endOf(H)<w(B)},D.$g=function(B,H,U){return T.u(B)?this[H]:this.set(U,B)},D.unix=function(){return Math.floor(this.valueOf()/1e3)},D.valueOf=function(){return this.$d.getTime()},D.startOf=function(B,H){var U=this,q=!!T.u(H)||H,K=T.p(B),R=function(Yt,dt){var Lt=T.w(U.$u?Date.UTC(U.$y,dt,Yt):new Date(U.$y,dt,Yt),U);return q?Lt:Lt.endOf(c)},P=function(Yt,dt){return T.w(U.toDate()[Yt].apply(U.toDate("s"),(q?[0,0,0,0]:[23,59,59,999]).slice(dt)),U)},N=this.$W,k=this.$M,St=this.$D,pe="set"+(this.$u?"UTC":"");switch(K){case h:return q?R(1,0):R(31,11);case f:return q?R(1,k):R(0,k+1);case l:var Wt=this.$locale().weekStart||0,Le=(N<Wt?N+7:N)-Wt;return R(q?St-Le:St+(6-Le),k);case c:case m:return P(pe+"Hours",0);case u:return P(pe+"Minutes",1);case a:return P(pe+"Seconds",2);case o:return P(pe+"Milliseconds",3);default:return this.clone()}},D.endOf=function(B){return this.startOf(B,!1)},D.$set=function(B,H){var U,q=T.p(B),K="set"+(this.$u?"UTC":""),R=(U={},U[c]=K+"Date",U[m]=K+"Date",U[f]=K+"Month",U[h]=K+"FullYear",U[u]=K+"Hours",U[a]=K+"Minutes",U[o]=K+"Seconds",U[s]=K+"Milliseconds",U)[q],P=q===c?this.$D+(H-this.$W):H;if(q===f||q===h){var N=this.clone().set(m,1);N.$d[R](P),N.init(),this.$d=N.set(m,Math.min(this.$D,N.daysInMonth())).$d}else R&&this.$d[R](P);return this.init(),this},D.set=function(B,H){return this.clone().$set(B,H)},D.get=function(B){return this[T.p(B)]()},D.add=function(B,H){var U,q=this;B=Number(B);var K=T.p(H),R=function(k){var St=w(q);return T.w(St.date(St.date()+Math.round(k*B)),q)};if(K===f)return this.set(f,this.$M+B);if(K===h)return this.set(h,this.$y+B);if(K===c)return R(1);if(K===l)return R(7);var P=(U={},U[a]=n,U[u]=i,U[o]=r,U)[K]||1,N=this.$d.getTime()+B*P;return T.w(N,this)},D.subtract=function(B,H){return this.add(-1*B,H)},D.format=function(B){var H=this,U=this.$locale();if(!this.isValid())return U.invalidDate||d;var q=B||"YYYY-MM-DDTHH:mm:ssZ",K=T.z(this),R=this.$H,P=this.$m,N=this.$M,k=U.weekdays,St=U.months,pe=U.meridiem,Wt=function(dt,Lt,Ve,gr){return dt&&(dt[Lt]||dt(H,q))||Ve[Lt].slice(0,gr)},Le=function(dt){return T.s(R%12||12,dt,"0")},Yt=pe||function(dt,Lt,Ve){var gr=dt<12?"AM":"PM";return Ve?gr.toLowerCase():gr};return q.replace(E,function(dt,Lt){return Lt||function(Ve){switch(Ve){case"YY":return String(H.$y).slice(-2);case"YYYY":return T.s(H.$y,4,"0");case"M":return N+1;case"MM":return T.s(N+1,2,"0");case"MMM":return Wt(U.monthsShort,N,St,3);case"MMMM":return Wt(St,N);case"D":return H.$D;case"DD":return T.s(H.$D,2,"0");case"d":return String(H.$W);case"dd":return Wt(U.weekdaysMin,H.$W,k,2);case"ddd":return Wt(U.weekdaysShort,H.$W,k,3);case"dddd":return k[H.$W];case"H":return String(R);case"HH":return T.s(R,2,"0");case"h":return Le(1);case"hh":return Le(2);case"a":return Yt(R,P,!0);case"A":return Yt(R,P,!1);case"m":return String(P);case"mm":return T.s(P,2,"0");case"s":return String(H.$s);case"ss":return T.s(H.$s,2,"0");case"SSS":return T.s(H.$ms,3,"0");case"Z":return K}return null}(dt)||K.replace(":","")})},D.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},D.diff=function(B,H,U){var q,K=this,R=T.p(H),P=w(B),N=(P.utcOffset()-this.utcOffset())*n,k=this-P,St=function(){return T.m(K,P)};switch(R){case h:q=St()/12;break;case f:q=St();break;case p:q=St()/3;break;case l:q=(k-N)/6048e5;break;case c:q=(k-N)/864e5;break;case u:q=k/i;break;case a:q=k/n;break;case o:q=k/r;break;default:q=k}return U?q:T.a(q)},D.daysInMonth=function(){return this.endOf(f).$D},D.$locale=function(){return v[this.$L]},D.locale=function(B,H){if(!B)return this.$L;var U=this.clone(),q=V(B,H,!0);return q&&(U.$L=q),U},D.clone=function(){return T.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}(),C=F.prototype;return w.prototype=C,[["$ms",s],["$s",o],["$m",a],["$H",u],["$W",c],["$M",f],["$y",h],["$D",m]].forEach(function(I){C[I[1]]=function(D){return this.$g(D,I[0],I[1])}}),w.extend=function(I,D){return I.$i||(I(D,F,w),I.$i=!0),w},w.locale=V,w.isDayjs=A,w.unix=function(I){return w(1e3*I)},w.en=v[S],w.Ls=v,w.p={},w})})(Sc);var xc=Sc.exports;const Hi=ke(xc);var h1={exports:{}};(function(e,t){(function(r,n){e.exports=n(xc)})(ft,function(r){function n(o){return o&&typeof o=="object"&&"default"in o?o:{default:o}}var i=n(r),s={name:"zh-cn",weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),ordinal:function(o,a){return a==="W"?o+"周":o+"日"},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},relativeTime:{future:"%s内",past:"%s前",s:"几秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},meridiem:function(o,a){var u=100*o+a;return u<600?"凌晨":u<900?"早上":u<1100?"上午":u<1300?"中午":u<1800?"下午":"晚上"}};return i.default.locale(s,null,!0),s})})(h1),Hi.locale("zh-cn");function p1(e,t="YYYY-MM-DD HH:mm:ss"){return Hi(e).format(t)}let d1=0;const Tc=e=>Object.prototype.toString.call(e),m1=e=>Tc(e).slice(8,-1),g1=e=>typeof e<"u",v1=()=>Date.now(),Oc=()=>+Date.now(),y1=(e,t)=>(e=Math.ceil(e),t=Math.floor(t),Math.floor(Math.random()*(t-e+1))+e);function gt(){return Number((++d1).toString()+Date.now()).toString(36)}function Ac(e=!0){const t="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(r){const n=Math.random()*16|0;return(r==="x"?n:n&3|8).toString(16)});return e?t.toLowerCase():t.replace(/-/gi,"")}function Se(e=0){return L(this,null,function*(){return new Promise(t=>{setTimeout(t,e)})})}function $c(e,t){return e.reduce((r,n)=>{const i=n[t];return r.set(i,n),r},new Map)}function un(e){return[...e.entries()].reduce((t,[r,n])=>(t[r]=n,t),{})}function b1(e=[],t="key",r="value"){const n={};for(const i of e)n[i[t]]=i[r];return n}function _1(e={},t="key",r="value"){return Object.entries(e).map(([n,i])=>({[t]:n,[r]:i}))}function Rc(e,t){if(t){const r=$c(e,t);return Array.from(r.values())}else return Array.from(new Set(e))}function ii(e){return e?[].concat(e):[]}function w1(e){return Object.keys(e).reduce((t,r)=>{const n=e[r];return n!=null&&(t[r]=n),t},{})}function Cr(e,t){const r={};if(Array.isArray(t))Object.keys(e).forEach(n=>{t.includes(n)||(r[n]=e[n])});else{const n=t;Object.entries(e).forEach(([i,s])=>{n(i,s)||(r[i]=s)})}return r}function jc(e,t){const r={};if(Array.isArray(t))Object.keys(e).forEach(n=>{t.includes(n)&&(r[n]=e[n])});else{const n=t;Object.entries(e).forEach(([i,s])=>{n(i,s)&&(r[i]=s)})}return r}function si(e){const t=typeof e;return t==="string"?e.trim():Array.isArray(e)?e.map(r=>si(r)):(e&&t==="object"&&Object.entries(e).forEach(([r,n])=>{e[r]=si(n)}),e)}function Dc(e=[],t){return t?e.reduce((r,n)=>r+Number(n[t]),0):e.reduce((r,n)=>r+Number(n),0)}function E1(e=[],t){const r=Dc(e,t);return e.length?r/e.length:0}function S1(e,t=","){return e?e.split(t):[]}function x1(e,t=","){return e?e.join(t):""}function T1(e,t="id",r="parentId",n="children",i="null"){const s=Qa(e,r);for(const o of Object.values(s))o.forEach(a=>{a[n]=s[a[t]]||[]});return s[i]}function Cc(e=[]){let t=[];return e.forEach(r=>{const s=r,{children:n}=s,i=bs(s,["children"]);r.children&&r.children.length>0&&(t=t.concat(Cc(r.children))),t.push(i)}),t}var Pc={exports:{}};(function(e){var t=function(){var r=String.fromCharCode,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",s={};function o(u,c){if(!s[u]){s[u]={};for(var l=0;l<u.length;l++)s[u][u.charAt(l)]=l}return s[u][c]}var a={compressToBase64:function(u){if(u==null)return"";var c=a._compress(u,6,function(l){return n.charAt(l)});switch(c.length%4){default:case 0:return c;case 1:return c+"===";case 2:return c+"==";case 3:return c+"="}},decompressFromBase64:function(u){return u==null?"":u==""?null:a._decompress(u.length,32,function(c){return o(n,u.charAt(c))})},compressToUTF16:function(u){return u==null?"":a._compress(u,15,function(c){return r(c+32)})+" "},decompressFromUTF16:function(u){return u==null?"":u==""?null:a._decompress(u.length,16384,function(c){return u.charCodeAt(c)-32})},compressToUint8Array:function(u){for(var c=a.compress(u),l=new Uint8Array(c.length*2),f=0,p=c.length;f<p;f++){var h=c.charCodeAt(f);l[f*2]=h>>>8,l[f*2+1]=h%256}return l},decompressFromUint8Array:function(u){if(u==null)return a.decompress(u);for(var c=new Array(u.length/2),l=0,f=c.length;l<f;l++)c[l]=u[l*2]*256+u[l*2+1];var p=[];return c.forEach(function(h){p.push(r(h))}),a.decompress(p.join(""))},compressToEncodedURIComponent:function(u){return u==null?"":a._compress(u,6,function(c){return i.charAt(c)})},decompressFromEncodedURIComponent:function(u){return u==null?"":u==""?null:(u=u.replace(/ /g,"+"),a._decompress(u.length,32,function(c){return o(i,u.charAt(c))}))},compress:function(u){return a._compress(u,16,function(c){return r(c)})},_compress:function(u,c,l){if(u==null)return"";var f,p,h={},m={},d="",b="",E="",g=2,y=3,_=2,S=[],v=0,x=0,A;for(A=0;A<u.length;A+=1)if(d=u.charAt(A),Object.prototype.hasOwnProperty.call(h,d)||(h[d]=y++,m[d]=!0),b=E+d,Object.prototype.hasOwnProperty.call(h,b))E=b;else{if(Object.prototype.hasOwnProperty.call(m,E)){if(E.charCodeAt(0)<256){for(f=0;f<_;f++)v=v<<1,x==c-1?(x=0,S.push(l(v)),v=0):x++;for(p=E.charCodeAt(0),f=0;f<8;f++)v=v<<1|p&1,x==c-1?(x=0,S.push(l(v)),v=0):x++,p=p>>1}else{for(p=1,f=0;f<_;f++)v=v<<1|p,x==c-1?(x=0,S.push(l(v)),v=0):x++,p=0;for(p=E.charCodeAt(0),f=0;f<16;f++)v=v<<1|p&1,x==c-1?(x=0,S.push(l(v)),v=0):x++,p=p>>1}g--,g==0&&(g=Math.pow(2,_),_++),delete m[E]}else for(p=h[E],f=0;f<_;f++)v=v<<1|p&1,x==c-1?(x=0,S.push(l(v)),v=0):x++,p=p>>1;g--,g==0&&(g=Math.pow(2,_),_++),h[b]=y++,E=String(d)}if(E!==""){if(Object.prototype.hasOwnProperty.call(m,E)){if(E.charCodeAt(0)<256){for(f=0;f<_;f++)v=v<<1,x==c-1?(x=0,S.push(l(v)),v=0):x++;for(p=E.charCodeAt(0),f=0;f<8;f++)v=v<<1|p&1,x==c-1?(x=0,S.push(l(v)),v=0):x++,p=p>>1}else{for(p=1,f=0;f<_;f++)v=v<<1|p,x==c-1?(x=0,S.push(l(v)),v=0):x++,p=0;for(p=E.charCodeAt(0),f=0;f<16;f++)v=v<<1|p&1,x==c-1?(x=0,S.push(l(v)),v=0):x++,p=p>>1}g--,g==0&&(g=Math.pow(2,_),_++),delete m[E]}else for(p=h[E],f=0;f<_;f++)v=v<<1|p&1,x==c-1?(x=0,S.push(l(v)),v=0):x++,p=p>>1;g--,g==0&&(g=Math.pow(2,_),_++)}for(p=2,f=0;f<_;f++)v=v<<1|p&1,x==c-1?(x=0,S.push(l(v)),v=0):x++,p=p>>1;for(;;)if(v=v<<1,x==c-1){S.push(l(v));break}else x++;return S.join("")},decompress:function(u){return u==null?"":u==""?null:a._decompress(u.length,32768,function(c){return u.charCodeAt(c)})},_decompress:function(u,c,l){var f=[],p=4,h=4,m=3,d="",b=[],E,g,y,_,S,v,x,A={val:l(0),position:c,index:1};for(E=0;E<3;E+=1)f[E]=E;for(y=0,S=Math.pow(2,2),v=1;v!=S;)_=A.val&A.position,A.position>>=1,A.position==0&&(A.position=c,A.val=l(A.index++)),y|=(_>0?1:0)*v,v<<=1;switch(y){case 0:for(y=0,S=Math.pow(2,8),v=1;v!=S;)_=A.val&A.position,A.position>>=1,A.position==0&&(A.position=c,A.val=l(A.index++)),y|=(_>0?1:0)*v,v<<=1;x=r(y);break;case 1:for(y=0,S=Math.pow(2,16),v=1;v!=S;)_=A.val&A.position,A.position>>=1,A.position==0&&(A.position=c,A.val=l(A.index++)),y|=(_>0?1:0)*v,v<<=1;x=r(y);break;case 2:return""}for(f[3]=x,g=x,b.push(x);;){if(A.index>u)return"";for(y=0,S=Math.pow(2,m),v=1;v!=S;)_=A.val&A.position,A.position>>=1,A.position==0&&(A.position=c,A.val=l(A.index++)),y|=(_>0?1:0)*v,v<<=1;switch(x=y){case 0:for(y=0,S=Math.pow(2,8),v=1;v!=S;)_=A.val&A.position,A.position>>=1,A.position==0&&(A.position=c,A.val=l(A.index++)),y|=(_>0?1:0)*v,v<<=1;f[h++]=r(y),x=h-1,p--;break;case 1:for(y=0,S=Math.pow(2,16),v=1;v!=S;)_=A.val&A.position,A.position>>=1,A.position==0&&(A.position=c,A.val=l(A.index++)),y|=(_>0?1:0)*v,v<<=1;f[h++]=r(y),x=h-1,p--;break;case 2:return b.join("")}if(p==0&&(p=Math.pow(2,m),m++),f[x])d=f[x];else if(x===h)d=g+g.charAt(0);else return null;b.push(d),f[h++]=g+d.charAt(0),p--,g=d,p==0&&(p=Math.pow(2,m),m++)}}};return a}();e!=null?e.exports=t:typeof angular<"u"&&angular!=null&&angular.module("LZString",[]).factory("LZString",function(){return t})})(Pc);var Bc=Pc.exports;function Nc(e){return{all:e=e||new Map,on:function(t,r){var n=e.get(t);n?n.push(r):e.set(t,[r])},off:function(t,r){var n=e.get(t);n&&(r?n.splice(n.indexOf(r)>>>0,1):e.set(t,[]))},emit:function(t,r){var n=e.get(t);n&&n.slice().map(function(i){i(r)}),(n=e.get("*"))&&n.slice().map(function(i){i(t,r)})}}}function O1(e){for(var t=[],r=0;r<e.length;){var n=e[r];if(n==="*"||n==="+"||n==="?"){t.push({type:"MODIFIER",index:r,value:e[r++]});continue}if(n==="\\"){t.push({type:"ESCAPED_CHAR",index:r++,value:e[r++]});continue}if(n==="{"){t.push({type:"OPEN",index:r,value:e[r++]});continue}if(n==="}"){t.push({type:"CLOSE",index:r,value:e[r++]});continue}if(n===":"){for(var i="",s=r+1;s<e.length;){var o=e.charCodeAt(s);if(o>=48&&o<=57||o>=65&&o<=90||o>=97&&o<=122||o===95){i+=e[s++];continue}break}if(!i)throw new TypeError("Missing parameter name at ".concat(r));t.push({type:"NAME",index:r,value:i}),r=s;continue}if(n==="("){var a=1,u="",s=r+1;if(e[s]==="?")throw new TypeError('Pattern cannot start with "?" at '.concat(s));for(;s<e.length;){if(e[s]==="\\"){u+=e[s++]+e[s++];continue}if(e[s]===")"){if(a--,a===0){s++;break}}else if(e[s]==="("&&(a++,e[s+1]!=="?"))throw new TypeError("Capturing groups are not allowed at ".concat(s));u+=e[s++]}if(a)throw new TypeError("Unbalanced pattern at ".concat(r));if(!u)throw new TypeError("Missing pattern at ".concat(r));t.push({type:"PATTERN",index:r,value:u}),r=s;continue}t.push({type:"CHAR",index:r,value:e[r++]})}return t.push({type:"END",index:r,value:""}),t}function zi(e,t){t===void 0&&(t={});for(var r=O1(e),n=t.prefixes,i=n===void 0?"./":n,s="[^".concat(_e(t.delimiter||"/#?"),"]+?"),o=[],a=0,u=0,c="",l=function(v){if(u<r.length&&r[u].type===v)return r[u++].value},f=function(v){var x=l(v);if(x!==void 0)return x;var A=r[u],V=A.type,w=A.index;throw new TypeError("Unexpected ".concat(V," at ").concat(w,", expected ").concat(v))},p=function(){for(var v="",x;x=l("CHAR")||l("ESCAPED_CHAR");)v+=x;return v};u<r.length;){var h=l("CHAR"),m=l("NAME"),d=l("PATTERN");if(m||d){var b=h||"";i.indexOf(b)===-1&&(c+=b,b=""),c&&(o.push(c),c=""),o.push({name:m||a++,prefix:b,suffix:"",pattern:d||s,modifier:l("MODIFIER")||""});continue}var E=h||l("ESCAPED_CHAR");if(E){c+=E;continue}c&&(o.push(c),c="");var g=l("OPEN");if(g){var b=p(),y=l("NAME")||"",_=l("PATTERN")||"",S=p();f("CLOSE"),o.push({name:y||(_?a++:""),pattern:y&&!_?s:_,prefix:b,suffix:S,modifier:l("MODIFIER")||""});continue}f("END")}return o}function kc(e,t){return A1(zi(e,t),t)}function A1(e,t){t===void 0&&(t={});var r=qi(t),n=t.encode,i=n===void 0?function(u){return u}:n,s=t.validate,o=s===void 0?!0:s,a=e.map(function(u){if(typeof u=="object")return new RegExp("^(?:".concat(u.pattern,")$"),r)});return function(u){for(var c="",l=0;l<e.length;l++){var f=e[l];if(typeof f=="string"){c+=f;continue}var p=u?u[f.name]:void 0,h=f.modifier==="?"||f.modifier==="*",m=f.modifier==="*"||f.modifier==="+";if(Array.isArray(p)){if(!m)throw new TypeError('Expected "'.concat(f.name,'" to not repeat, but got an array'));if(p.length===0){if(h)continue;throw new TypeError('Expected "'.concat(f.name,'" to not be empty'))}for(var d=0;d<p.length;d++){var b=i(p[d],f);if(o&&!a[l].test(b))throw new TypeError('Expected all "'.concat(f.name,'" to match "').concat(f.pattern,'", but got "').concat(b,'"'));c+=f.prefix+b+f.suffix}continue}if(typeof p=="string"||typeof p=="number"){var b=i(String(p),f);if(o&&!a[l].test(b))throw new TypeError('Expected "'.concat(f.name,'" to match "').concat(f.pattern,'", but got "').concat(b,'"'));c+=f.prefix+b+f.suffix;continue}if(!h){var E=m?"an array":"a string";throw new TypeError('Expected "'.concat(f.name,'" to be ').concat(E))}}return c}}function Ic(e,t){var r=[],n=ln(e,r,t);return $1(n,r,t)}function $1(e,t,r){r===void 0&&(r={});var n=r.decode,i=n===void 0?function(s){return s}:n;return function(s){var o=e.exec(s);if(!o)return!1;for(var a=o[0],u=o.index,c=Object.create(null),l=function(p){if(o[p]===void 0)return"continue";var h=t[p-1];h.modifier==="*"||h.modifier==="+"?c[h.name]=o[p].split(h.prefix+h.suffix).map(function(m){return i(m,h)}):c[h.name]=i(o[p],h)},f=1;f<o.length;f++)l(f);return{path:a,index:u,params:c}}}function _e(e){return e.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function qi(e){return e&&e.sensitive?"":"i"}function R1(e,t){if(!t)return e;for(var r=/\((?:\?<(.*?)>)?(?!\?)/g,n=0,i=r.exec(e.source);i;)t.push({name:i[1]||n++,prefix:"",suffix:"",modifier:"",pattern:""}),i=r.exec(e.source);return e}function j1(e,t,r){var n=e.map(function(i){return ln(i,t,r).source});return new RegExp("(?:".concat(n.join("|"),")"),qi(r))}function D1(e,t,r){return C1(zi(e,r),t,r)}function C1(e,t,r){r===void 0&&(r={});for(var n=r.strict,i=n===void 0?!1:n,s=r.start,o=s===void 0?!0:s,a=r.end,u=a===void 0?!0:a,c=r.encode,l=c===void 0?function(w){return w}:c,f=r.delimiter,p=f===void 0?"/#?":f,h=r.endsWith,m=h===void 0?"":h,d="[".concat(_e(m),"]|$"),b="[".concat(_e(p),"]"),E=o?"^":"",g=0,y=e;g<y.length;g++){var _=y[g];if(typeof _=="string")E+=_e(l(_));else{var S=_e(l(_.prefix)),v=_e(l(_.suffix));if(_.pattern)if(t&&t.push(_),S||v)if(_.modifier==="+"||_.modifier==="*"){var x=_.modifier==="*"?"?":"";E+="(?:".concat(S,"((?:").concat(_.pattern,")(?:").concat(v).concat(S,"(?:").concat(_.pattern,"))*)").concat(v,")").concat(x)}else E+="(?:".concat(S,"(").concat(_.pattern,")").concat(v,")").concat(_.modifier);else _.modifier==="+"||_.modifier==="*"?E+="((?:".concat(_.pattern,")").concat(_.modifier,")"):E+="(".concat(_.pattern,")").concat(_.modifier);else E+="(?:".concat(S).concat(v,")").concat(_.modifier)}}if(u)i||(E+="".concat(b,"?")),E+=r.endsWith?"(?=".concat(d,")"):"$";else{var A=e[e.length-1],V=typeof A=="string"?b.indexOf(A[A.length-1])>-1:A===void 0;i||(E+="(?:".concat(b,"(?=").concat(d,"))?")),V||(E+="(?=".concat(b,"|").concat(d,")"))}return new RegExp(E,qi(r))}function ln(e,t,r){return e instanceof RegExp?R1(e,t):Array.isArray(e)?j1(e,t,r):D1(e,t,r)}const P1=Bc.compress,B1=Bc.decompress;/**!
51
51
  * Copyright (c) 2025, VTJ.PRO All rights reserved.
52
52
  * @name @vtj/core
53
53
  * @author CHC chenhuachun1549@dingtalk.com
54
- * @version 0.10.12
54
+ * @version 0.10.13
55
55
  * @license <a href="https://vtj.pro/license.html">MIT License</a>
56
- */const B1="0.10.12",k1="BuiltIn",Ki="VueMaterial",Ji="VueRouterMaterial",M1=[Ki,Ji],I1={vue:"Vue","vue-router":"VueRouter"},Ic={[Ki]:["Transition","TransitionGroup","KeepAlive","Teleport","Suspense"],[Ji]:["RouterView","RouterLink"]},F1=["slot","template","component","img","div","p","h1","h2","h3","span","a"];let L1=class{},Fc=class{constructor(){A(this,"listeners",[]);A(this,"isReady",!1)}triggerReady(){this.isReady=!0;for(const t of this.listeners)t();this.listeners=[]}ready(t){this.isReady?t():this.listeners.push(t)}resetReady(){this.isReady=!1}},Cr=class Lc{constructor(t,r,n){A(this,"isUnset",!1);this.name=t,this.value=r,this.defaultValue=n,this.setValue(r)}setValue(t){this.value=t,this.isUnset=this.value===this.defaultValue}getValue(){var t;return(t=this.value)!=null?t:this.defaultValue}static toDsl(t={}){return Object.entries(t).reduce((r,[n,i])=>(i.isUnset||(r[n]=i.getValue()),r),{})}static parse(t={}){return Object.entries(t).reduce((r,[n,i])=>(r[n]=new Lc(n,i),r),{})}};class xe{constructor(t){A(this,"name");A(this,"handler");A(this,"modifiers",{});this.schema=t;const{name:r,handler:n}=this.schema;this.name=r,this.handler=n,this.update(t)}update(t){Object.assign(this.schema,t);const{handler:r,modifiers:n={}}=this.schema;this.handler=r,this.modifiers=n}static toDsl(t){return Object.entries(t).reduce((r,[n,i])=>{const{handler:s,modifiers:o}=i;return r[n]={name:n,handler:s,modifiers:o},r},{})}static parse(t={}){return Object.entries(t).reduce((r,[n,i])=>(r[n]=new xe(i),r),{})}}let Ke=class Vc{constructor(t){A(this,"id");A(this,"name","");A(this,"arg");A(this,"modifiers");A(this,"value");A(this,"iterator");this.schema=t,this.id=t.id||gt(),this.update(t)}update(t){Object.assign(this.schema,t);const{name:r,arg:n,modifiers:i,value:s,iterator:o}=this.schema;this.name=r,this.arg=n,this.modifiers=i,this.value=s,this.iterator=o}static parse(t=[]){return t.map(r=>new Vc(r))}static toDsl(t=[]){return t.map(r=>{const{name:n,arg:i,modifiers:s,value:o,iterator:a,id:u}=r;return{id:u,name:n,arg:i,modifiers:s,value:o,iterator:a}})}};const nt="EVENT_NODE_CHANGE";var Ft;let qr=(Ft=class{constructor(t,r=null){A(this,"__VTJ_NODE__",!0);A(this,"locked",!1);A(this,"id");A(this,"name");A(this,"from");A(this,"invisible",!1);A(this,"children","");A(this,"slot");A(this,"props",{});A(this,"events",{});A(this,"directives",[]);A(this,"disposed",!1);this.parent=r;const{id:n=gt(),name:i,from:s=""}=t;this.id=n,this.name=i,this.from=s,this.update(t,!0),Ft.nodes[this.id]=this}update(t,r=!1){const{invisible:n=!1,locked:i=!1,children:s=[],slot:o,props:a={},events:u={},directives:c=[]}=t;this.invisible=n,this.locked=i,this.setChildren(s,!0),this.setSlot(o,!0),this.props=Cr.parse(a),this.events=xe.parse(u),this.directives=Ke.parse(c),r||I.emit(nt,this)}setChildren(t="",r=!1){Array.isArray(t)?this.children=t.map(n=>new Ft(n,this)):this.children=t,r||I.emit(nt,this)}setSlot(t,r=!1){this.slot=typeof t=="string"?{name:t,params:[]}:t,r||I.emit(nt,this)}setProp(t,r,n,i=!1){const s=this.props[t];s?s.setValue(r):this.props[t]=new Cr(t,r,n),i||I.emit(nt,this)}removeProp(t,r=!1){delete this.props[t],r||I.emit(nt,this)}getPropValue(t){const r=this.props[t];if(r)return r.getValue()}setEvent(t,r=!1){const n=this.events[t.name];n?n.update(t):this.events[t.name]=new xe(t),r||I.emit(nt,this)}removeEvent(t,r=!1){delete this.events[t],r||I.emit(nt,this)}setDirective(t,r=!1){const n=t instanceof Ke?t:new Ke(t),i=this.directives.findIndex(s=>s.id===t.id);i>=0?this.directives.splice(i,1,n):this.directives.push(n),r||I.emit(nt,this)}removeDirective(t,r=!1){const n=this.directives.findIndex(i=>i===t||i.id===t.id);n>=0&&this.directives.splice(n,1),r||I.emit(nt,this)}removeChild(t,r=!1){const{children:n,disposed:i}=this;if(i||!Array.isArray(n))return;const s=n.findIndex(o=>o===t);t.parent=null,n.splice(s,1),r||I.emit(nt,this)}appendChild(t,r=!1){const{children:n,disposed:i}=this;i||(t.parent=this,Array.isArray(n)?n.push(t):this.children=[t],r||I.emit(nt,this))}insertAfter(t,r=!1){if(!this.parent)return;const n=this.parent.children;if(Array.isArray(n)){t.parent=this.parent;const i=n.indexOf(this);n.splice(i+1,0,t),r||I.emit(nt,this.parent)}}insertBefore(t,r=!1){if(!this.parent)return;const n=this.parent.children;if(Array.isArray(n)){t.parent=this.parent;const i=n.indexOf(this);n.splice(i,0,t),r||I.emit(nt,this.parent)}}movePrev(t=!1){const r=this.parent;if(!r)return;const n=r.children;if(Array.isArray(n)){const i=n.indexOf(this);i>0&&(n.splice(i,1),n.splice(i-1,0,this),t||I.emit(nt,r))}}moveNext(t=!1){const r=this.parent;if(!r)return;const n=r.children;if(Array.isArray(n)){const i=n.indexOf(this);i>-1&&i<n.length-1&&(n.splice(i,1),n.splice(i+1,0,this),t||I.emit(nt,r))}}toDsl(){const{id:t,name:r,from:n,invisible:i,locked:s,slot:o,children:a,props:u,directives:c,events:l}=this,f=Array.isArray(a)?a.map(p=>p.toDsl()):a;return{id:t,name:r,from:n,invisible:i,locked:s,slot:o,children:f,props:Cr.toDsl(u),directives:Ke.toDsl(c),events:xe.toDsl(l)}}dispose(t=!1){const{children:r,disposed:n}=this;n||(Array.isArray(r)&&r.forEach(i=>i.dispose(!0)),this.parent?this.parent.removeChild(this,t):t||I.emit(nt,this),this.parent=null,this.disposed=!0,delete Ft.nodes[this.id])}lock(t=!1){if(this.locked=!0,Array.isArray(this.children))for(const r of this.children)r.lock(!0);t||I.emit(nt,this)}unlock(t=!1){if(this.locked=!1,Array.isArray(this.children))for(const r of this.children)r.unlock(!0);t||I.emit(nt,this)}setVisible(t,r=!1){if(this.invisible=!t,Array.isArray(this.children))for(const n of this.children)n.setVisible(t,!0);r||I.emit(nt,this)}isChild(t){let r=!1;if(Array.isArray(this.children)){for(const n of this.children)if(t===n||t.id===n.id){r=!0;break}else if(r=n.isChild(t),r)break}return r}},A(Ft,"nodes",{}),Ft);const G="EVENT_BLOCK_CHANGE";var qt;let ee=(qt=class{constructor(t){A(this,"__VTJ_BLOCK__",!0);A(this,"id");A(this,"name","");A(this,"inject",[]);A(this,"state",{});A(this,"lifeCycles",{});A(this,"methods",{});A(this,"computed",{});A(this,"watch",[]);A(this,"css","");A(this,"props",[]);A(this,"emits",[]);A(this,"slots",[]);A(this,"dataSources",{});A(this,"nodes",[]);A(this,"locked",!1);A(this,"disposed",!1);const{id:r}=t;this.id=r||gt(),this.update(t,!0)}update(t,r=!1){for(const i of qt.normalAttrs){const s=t[i];s&&(this[i]=s)}const{nodes:n=[]}=t;n.length&&(this.nodes=n.map(i=>new qr(i))),r||I.emit(G,this)}toDsl(t){const{__VTJ_BLOCK__:r,id:n,nodes:i}=this;return st(z({},qt.normalAttrs.reduce((s,o)=>(s[o]=this[o],s),{})),{__VTJ_BLOCK__:r,__VERSION__:t||Oc().toString(),id:n,nodes:i.map(s=>s.toDsl())})}dispose(){this.nodes.map(t=>t.dispose(!0)),this.nodes=[],this.disposed=!0}setFunction(t,r,n,i=!1){this[t][r]=n,i||I.emit(G,this)}removeFunction(t,r,n=!1){delete this[t][r],n||I.emit(G,this)}setState(t,r,n=!1){this.state[t]=r,n||I.emit(G,this)}removeState(t,r=!1){delete this.state[t],r||I.emit(G,this)}setCss(t,r=!1){this.css=t,r||I.emit(G,this)}setWatch(t,r=!1){t.id=t.id||gt();const n=this.watch.findIndex(i=>i.id&&i.id===t.id||i===t);n>-1?this.watch.splice(n,1,t):this.watch.push(t),r||I.emit(G,this)}removeWatch(t,r=!1){const n=this.watch.findIndex(i=>i.id&&i.id===t.id||i===t);n>-1&&(this.watch.splice(n,1),r||I.emit(G,this))}setProp(t,r=!1){const n=this.props.findIndex(i=>typeof i=="string"?i===t.name:i.name===t.name);n>-1?this.props.splice(n,1,t):this.props.push(t),r||I.emit(G,this)}removeProp(t,r=!1){const n=this.props.findIndex(i=>typeof i=="string"?i===t.name:i.name===t.name);n>-1&&(this.props.splice(n,1),r||I.emit(G,this))}setEmit(t,r=!1){const n=bt(t)?{name:t,params:[]}:t,i=this.emits.findIndex(s=>s===n.name||s===n);i>-1?this.emits.splice(i,1,n):this.emits.push(n),r||I.emit(G,this)}removeEmit(t,r=!1){const n=this.emits.findIndex(i=>bt(i)?i===t:i.name===t);n>-1&&(this.emits.splice(n,1),r||I.emit(G,this))}setSlot(t,r=!1){const n=bt(t)?{name:t,params:[]}:t,i=this.slots.findIndex(s=>s===n.name||s===n);i>-1?this.slots.splice(i,1,n):this.slots.push(n),r||I.emit(G,this)}removeSlot(t,r=!1){const n=this.slots.findIndex(i=>bt(i)?i===t:i.name===t);n>-1&&(this.slots.splice(n,1),r||I.emit(G,this))}setInject(t,r=!1){const n=this.inject.findIndex(i=>i.name===t.name);n>-1?this.inject.splice(n,1,t):this.inject.push(t),r||I.emit(G,this)}removeInject(t,r=!1){const n=this.inject.findIndex(i=>i.name===t.name);n>-1&&(this.inject.splice(n,1),r||I.emit(G,this))}setDataSource(t,r=!1){this.dataSources[t.name]=t,r||I.emit(G,this)}removeDataSource(t,r=!1){delete this.dataSources[t],r||I.emit(G,this)}insertAfter(t,r,n=!1){t.parent=null;const i=this.nodes.indexOf(r);this.nodes.splice(i+1,0,t),n||I.emit(G,this)}insertBefore(t,r,n=!1){t.parent=null;const i=this.nodes.indexOf(r);this.nodes.splice(i,0,t),n||I.emit(G,this)}appendNode(t,r=!1){t.parent=null,this.nodes.push(t),r||I.emit(G,this)}addNode(t,r,n="inner",i=!1){r?["left","top"].includes(n)?r.parent?r.insertAfter(t,i):this.insertBefore(t,r,i):["right","bottom"].includes(n)?r.parent?r.insertAfter(t,i):this.insertAfter(t,r,i):r.appendChild(t,i):this.appendNode(t,i)}__removeNode(t,r=!1){const n=this.nodes.findIndex(i=>i.id===t.id);n>-1&&(this.nodes.splice(n,1),r||I.emit(G,this))}removeNode(t,r=!1){t.parent?t.dispose(r):(t.dispose(!0),this.__removeNode(t,r))}move(t,r,n="inner",i=!1){t.parent?t.parent.removeChild(t,!0):this.__removeNode(t,!0),this.addNode(t,r,n,i)}movePrev(t,r=!1){if(t.parent)t.movePrev(r);else{const n=this.nodes,i=n.indexOf(t);i>0&&(n.splice(i,1),n.splice(i-1,0,t),r||I.emit(G,this))}}moveNext(t,r=!1){if(t.parent)t.moveNext(r);else{const n=this.nodes,i=n.indexOf(t);i>-1&&i<n.length-1&&(n.splice(i,1),n.splice(i+1,0,t),r||I.emit(G,this))}}cloneNode(t,r=!1){const n=Yi(t.toDsl()),i=new qr(n);return this.addNode(i,t,"bottom",r),i}lock(t=!1){this.locked=!0;for(const r of this.nodes)r.lock(!0);t||I.emit(G,this)}unlock(t=!1){this.locked=!1;for(const r of this.nodes)r.unlock(!0);t||I.emit(G,this)}isChild(t){let r=!1;for(const n of this.nodes)if(t===n||t.id===n.id){r=!0;break}else if(r=n.isChild(t),r)break;return r}},A(qt,"normalAttrs",["name","locked","inject","state","lifeCycles","methods","computed","watch","css","props","emits","slots","dataSources","__TEMPLATE_ID__"]),qt);const it="EVENT_PROJECT_CHANGE",oi="EVENT_PROJECT_ACTIVED",ai="EVENT_PROJECT_DEPS_CHANGE",Je="EVENT_PROJECT_PAGES_CHANGE",we="EVENT_PROJECT_BLOCKS_CHANGE",ci="EVENT_PROJECT_APIS_CHANGE",ui="EVENT_PROJECT_META_CHANGE",Uc="EVENT_PROJECT_PUBLISH",Hc="EVENT_PROJECT_FILE_PUBLISH",zc="EVENT_PROJECT_GEN_SOURCE",Qe=class Qe{constructor(t){A(this,"id","");A(this,"platform","web");A(this,"name","");A(this,"description","");A(this,"homepage","");A(this,"dependencies",[]);A(this,"pages",[]);A(this,"blocks",[]);A(this,"apis",[]);A(this,"meta",[]);A(this,"currentFile",null);A(this,"config",{});A(this,"uniConfig",{});A(this,"__BASE_PATH__","/");const{id:r}=t;this.id=r||gt(),this.update(t,!0)}update(t,r=!1){for(const n of Qe.attrs){const i=t[n];i&&(this[n]=i)}r||I.emit(it,{model:this,type:"update",data:t})}isPageFile(t){return t.type==="page"}cleanPagesDsl(t){for(const r of t)delete r.dsl,r.children&&r.children.length&&this.cleanPagesDsl(r.children)}toDsl(t){const{id:r}=this,n=Qe.attrs.reduce((i,s)=>(i[s]=this[s],i),{});return n.pages&&(n.pages=n.pages.map(i=>nr(st(z({},i),{dsl:void 0}))),this.cleanPagesDsl(n.pages)),n.blocks&&(n.blocks=n.blocks.map(i=>nr(st(z({},i),{dsl:void 0})))),z({__VTJ_PROJECT__:!0,id:r},n)}active(t,r=!1){this.currentFile=t,r||I.emit(oi,{model:this,type:"update",data:t})}deactivate(t=!1){this.currentFile=null,t||I.emit(oi,{model:this,type:"update",data:null})}setDeps(t,r=!1){const n=this.dependencies,i=n.findIndex(o=>o.package===t.package);let s;if(i>-1?(s="update",n.splice(i,1,z(z({},n[i]),t))):(s="create",n.push(t)),!r){const o={model:this,type:s,data:t};I.emit(ai,o),I.emit(it,o)}}removeDeps(t,r=!1){const n=this.dependencies,i=n.findIndex(s=>s.package===t.package);if(i>-1&&n.splice(i,1),!r){const s={model:this,type:"delete",data:t};I.emit(ai,s),I.emit(it,s)}}getPage(t){const r=(n,i=[])=>{for(const s of i){if(s.id===n)return s;if(s.children&&s.children.length){const o=r(n,s.children);if(o)return o}}};return r(t,this.pages)}getPages(){const t=(r=[])=>{let n=[];for(const i of r)i.dir?i.children&&i.children.length&&(n=n.concat(t(i.children))):n.push(i);return n};return t(this.pages)}createPage(t,r,n=!1){return L(this,null,function*(){if(t.id=t.raw?t.name:t.id||gt(),t.type="page",t.dir?t.children=[]:t.dsl=t.dsl||new ee({id:t.id,name:ti(t.name)}).toDsl(),r){const i=this.getPage(r);i?i.children?i.children.push(t):i.children=[t]:console.warn(`not found PageFile for id: ${r} `)}else this.pages.push(t);if(!n){const i={model:this,type:"create",data:t};I.emit(Je,i),I.emit(it,i)}!this.currentFile&&!t.dir&&(yield Se(1e3),this.active(t,n))})}updatePage(t,r=!1){const n=this.getPage(t.id);if(n?Object.assign(n,t):console.warn(`not found PageFile for id: ${t.id} `),!r){const i={model:this,type:"update",data:t};I.emit(Je,i),I.emit(it,i)}}clonePage(t,r,n=!1){var f;const i=gt(),s=`${t.name}Copy`,o=`${t.title}_副本`,a=new ee({id:i,name:s}).toDsl(),u=Dt({},t,{id:i,name:s,title:o,dsl:a}),c=r?((f=this.getPage(r))==null?void 0:f.children)||[]:this.pages,l=c.findIndex(p=>p.id===t.id);if(c.splice(l+1,0,u),!n){const p={model:this,type:"clone",data:{source:t,target:u}};I.emit(Je,p),I.emit(it,p)}}saveToBlock(t,r=!1){return L(this,null,function*(){this.active(t,r),yield Se(1e3);const n=gt(),i=t.name,s=t.title,o=new ee({id:n,name:i}).toDsl(),a=Dt({},t,{id:n,name:i,title:s,dsl:o,type:"block",fromType:"Schema"});if(this.blocks.push(a),!r){const u={model:this,type:"create",data:a};I.emit(we,u),I.emit(it,u)}})}removePage(t,r=!1){var s;const n=this.getPage(t),i=(o,a)=>{const u=a.findIndex(c=>c.id===o);if(u>=0){a.splice(u,1);return}for(const c of a)c.children&&c.children.length&&i(o,c.children)};if(i(t,this.pages),t===this.homepage&&(this.homepage=""),((s=this.currentFile)==null?void 0:s.id)===t&&this.deactivate(r),!r){const o={model:this,type:"delete",data:n};I.emit(Je,o),I.emit(it,o)}}getBlock(t){return this.blocks.find(r=>r.id===t)}createBlock(t,r=!1){return L(this,null,function*(){const n=t.id||gt(),i=ti(t.name);t.id=n,t.type="block",t.dsl=new ee({id:n,name:i}).toDsl(),this.blocks.push(t);const s=t.fromType||"Schema";if(!r){const o={model:this,type:"create",data:t};I.emit(we,o),I.emit(it,o)}!this.currentFile&&s==="Schema"&&(yield Se(1e3),this.active(t,r))})}updateBlock(t,r=!1){const n=this.getBlock(t.id);if(n?(Object.assign(n,t),n.dsl&&(n.dsl.name=t.name)):console.warn(`not found PageFile for id: ${t.id} `),!r){const i={model:this,type:"update",data:t};I.emit(we,i),I.emit(it,i)}}cloneBlock(t,r=!1){const n=gt(),i=`${t.name}Copy`,s=`${t.title}_副本`,o=new ee({id:n,name:i}).toDsl(),a=Dt({},t,{id:n,name:i,title:s,dsl:o}),u=this.blocks.findIndex(c=>c.id===t.id);if(this.blocks.splice(u+1,0,a),!r){const c={model:this,type:"clone",data:{source:t,target:a}};I.emit(we,c),I.emit(it,c)}}removeBlock(t,r=!1){var o;const n=this.getBlock(t),i=this.blocks,s=i.findIndex(a=>a.id===t);if(s>-1?(i.splice(s,1),((o=this.currentFile)==null?void 0:o.id)===t&&this.deactivate(r)):console.warn(`not found PageFile for id: ${t} `),!r){const a={model:this,type:"delete",data:n};I.emit(we,a),I.emit(it,a)}}existBlockName(t,r=[]){return this.blocks.some(n=>n.name===t&&!r.includes(n.id))}existPageName(t,r=[]){return this.getPages().some(n=>n.name===t&&!r.includes(n.id))}setApi(t,r=!1){const n=this.apis.find(s=>s.name===t.name||s.id===t.id);let i;if(n?(i="update",Object.assign(n,t)):(i="create",t.id=gt(),this.apis.push(t)),!r){const s={model:this,type:i,data:t};I.emit(ci,s),I.emit(it,s)}}removeApi(t,r=!1){const n=this.apis.findIndex(i=>i.name===t||i.id===t);if(n>-1?this.apis.splice(n,1):console.warn(`not found Api for name: ${t} `),!r){const i={model:this,type:"delete",data:t};I.emit(ci,i),I.emit(it,i)}}existApiName(t,r=[]){return this.apis.some(n=>n.name===t&&!r.includes(n.id))}setMeta(t,r=!1){const n=this.meta.find(s=>s.code===t.code||s.id===t.id);let i;if(n?(i="update",Object.assign(n,t)):(i="create",t.id=gt(),this.meta.push(t)),!r){const s={model:this,type:i,data:t};I.emit(ui,s),I.emit(it,s)}}removeMeta(t,r=!1){const n=this.meta.findIndex(i=>i.code===t||i.id===t);if(n>-1?this.meta.splice(n,1):console.warn(`not found meta for name: ${name} `),!r){const i={model:this,type:"delete",data:t};I.emit(ui,i),I.emit(it,i)}}existMetaCode(t,r=[]){return this.meta.some(n=>n.code===t&&!r.includes(n.id))}setHomepage(t,r=!1){if(this.homepage=t,!r){const n={model:this,type:"update",data:t};I.emit(it,n)}}setConfig(t,r=!1){if(this.config=Object.assign(this.config,t),!r){const n={model:this,type:"update",data:t};I.emit(it,n)}}setUniConfig(t,r,n=!1){if(this.uniConfig=Object.assign(this.uniConfig,{[t]:r}),!n){const i={model:this,type:"update",data:this.uniConfig};I.emit(it,i)}}publish(t){const r={model:this,type:"publish",data:t||this};t?I.emit(Hc,r):I.emit(Uc,r)}genSource(){const t={model:this,type:"gen",data:null};I.emit(zc,t)}};A(Qe,"attrs",["platform","name","homepage","description","dependencies","pages","blocks","apis","meta","config","uniConfig","__BASE_PATH__"]);let ce=Qe;const We="EVENT_HISTORY_CHANGE",Pr="EVENT_HISTORY_LOAD";let Wi=class{constructor(t,r={}){A(this,"options",{max:50});A(this,"index",-1);A(this,"id");A(this,"items");Object.assign(this.options,r);const{id:n,items:i=[]}=t;this.id=n,this.items=i}toDsl(){const{id:t,items:r}=this;return{id:t,items:r.map(n=>({id:n.id,label:n.label}))}}get(t){return this.items.find(r=>r.id===t)}add(t,r=!1){const{max:n}=this.options,i={id:gt(),label:new Date().toLocaleString(),dsl:nr(t)};if(this.items.unshift(i),this.items.length>n){const s=this.items.splice(n);r||I.emit(We,{model:this,type:"delete",data:s.map(o=>o.id)})}this.index=-1,r||I.emit(We,{model:this,type:"create",data:i})}remove(t,r=!1){const n=this.items.findIndex(i=>i.id===t);n>-1?(this.items.splice(n,1),n===this.index?this.index=-1:this.index>=this.items.length&&(this.index=this.items.length-1)):console.warn(`not found HistoryItem for id: ${t} `),r||I.emit(We,{model:this,type:"delete",data:[t]})}forward(t=!1){const{index:r,items:n}=this;if(r<0)return;--this.index;const i=n[this.index];i&&!t&&I.emit(Pr,{model:this,type:"load",data:i})}backward(t=!1){const{index:r,items:n}=this;if(r>=n.length-1)return;r<0&&(this.index=0),++this.index;const i=n[this.index];i&&!t&&I.emit(Pr,{model:this,type:"load",data:i})}load(t,r=!1){const n=this.items.findIndex(i=>i.id===t);n>=0&&(this.index=n,r||I.emit(Pr,{model:this,type:"load",data:this.items[n]}))}clear(t=!1){this.index=-1;const r=this.items.map(n=>n.id);this.items=[],t||I.emit(We,{model:this,type:"clear",data:r})}};const I=Bc();function V1(e){return e instanceof ee}function U1(e){return e instanceof qr}function H1(e){return!!e.__VTJ_BLOCK__}function Yi(e){const t=nr(e);return delete t.id,Array.isArray(t.children)&&(t.children=t.children.map(r=>Yi(r))),t}function z1(e){const t=e.fromType||"Schema";return t==="Schema"?{type:"Schema",id:e.id}:t==="UrlSchema"?{type:"UrlSchema",url:(e.urls||"").split(",")[0]||""}:t==="Plugin"?{type:"Plugin",urls:(e.urls||"").split(","),library:e.library}:""}const Cw=Object.freeze(Object.defineProperty({__proto__:null,BUILT_IN_COMPONENTS:Ic,BUILT_IN_LIBRARAY_MAP:I1,BUILT_IN_MATERIALS:M1,BUILT_IN_NAME:k1,BUILT_IN_TAGS:F1,BUILT_IN_VUE:Ki,BUILT_IN_VUE_ROUTER:Ji,Base:Fc,BlockModel:ee,DirectiveModel:Ke,EVENT_BLOCK_CHANGE:G,EVENT_HISTORY_CHANGE:We,EVENT_HISTORY_LOAD:Pr,EVENT_NODE_CHANGE:nt,EVENT_PROJECT_ACTIVED:oi,EVENT_PROJECT_APIS_CHANGE:ci,EVENT_PROJECT_BLOCKS_CHANGE:we,EVENT_PROJECT_CHANGE:it,EVENT_PROJECT_DEPS_CHANGE:ai,EVENT_PROJECT_FILE_PUBLISH:Hc,EVENT_PROJECT_GEN_SOURCE:zc,EVENT_PROJECT_META_CHANGE:ui,EVENT_PROJECT_PAGES_CHANGE:Je,EVENT_PROJECT_PUBLISH:Uc,EventModel:xe,HistoryModel:Wi,NodeModel:qr,ProjectModel:ce,PropModel:Cr,Service:L1,VTJ_CORE_VERSION:B1,cloneDsl:Yi,createNodeFrom:z1,emitter:I,isBlock:V1,isBlockSchema:H1,isNode:U1},Symbol.toStringTag,{value:"Module"}));var q1=Object.defineProperty,K1=(e,t,r)=>t in e?q1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,xt=(e,t,r)=>K1(e,typeof t!="symbol"?t+"":t,r);(function(){if(typeof window>"u"||typeof EventTarget>"u")return;const e=EventTarget.prototype.addEventListener;EventTarget.prototype.addEventListener=function(t,r,n){typeof n!="boolean"&&(n=n||{},n.passive=!1),e.call(this,t,r,n)}})();/**!
56
+ */const N1="0.10.13",k1="BuiltIn",Ki="VueMaterial",Ji="VueRouterMaterial",I1=[Ki,Ji],M1={vue:"Vue","vue-router":"VueRouter"},Mc={[Ki]:["Transition","TransitionGroup","KeepAlive","Teleport","Suspense"],[Ji]:["RouterView","RouterLink"]},F1=["slot","template","component","img","div","p","h1","h2","h3","span","a"];let L1=class{},Fc=class{constructor(){$(this,"listeners",[]);$(this,"isReady",!1)}triggerReady(){this.isReady=!0;for(const t of this.listeners)t();this.listeners=[]}ready(t){this.isReady?t():this.listeners.push(t)}resetReady(){this.isReady=!1}},Pr=class Lc{constructor(t,r,n){$(this,"isUnset",!1);this.name=t,this.value=r,this.defaultValue=n,this.setValue(r)}setValue(t){this.value=t,this.isUnset=this.value===this.defaultValue}getValue(){var t;return(t=this.value)!=null?t:this.defaultValue}static toDsl(t={}){return Object.entries(t).reduce((r,[n,i])=>(i.isUnset||(r[n]=i.getValue()),r),{})}static parse(t={}){return Object.entries(t).reduce((r,[n,i])=>(r[n]=new Lc(n,i),r),{})}};class xe{constructor(t){$(this,"name");$(this,"handler");$(this,"modifiers",{});this.schema=t;const{name:r,handler:n}=this.schema;this.name=r,this.handler=n,this.update(t)}update(t){Object.assign(this.schema,t);const{handler:r,modifiers:n={}}=this.schema;this.handler=r,this.modifiers=n}static toDsl(t){return Object.entries(t).reduce((r,[n,i])=>{const{handler:s,modifiers:o}=i;return r[n]={name:n,handler:s,modifiers:o},r},{})}static parse(t={}){return Object.entries(t).reduce((r,[n,i])=>(r[n]=new xe(i),r),{})}}let Je=class Vc{constructor(t){$(this,"id");$(this,"name","");$(this,"arg");$(this,"modifiers");$(this,"value");$(this,"iterator");this.schema=t,this.id=t.id||gt(),this.update(t)}update(t){Object.assign(this.schema,t);const{name:r,arg:n,modifiers:i,value:s,iterator:o}=this.schema;this.name=r,this.arg=n,this.modifiers=i,this.value=s,this.iterator=o}static parse(t=[]){return t.map(r=>new Vc(r))}static toDsl(t=[]){return t.map(r=>{const{name:n,arg:i,modifiers:s,value:o,iterator:a,id:u}=r;return{id:u,name:n,arg:i,modifiers:s,value:o,iterator:a}})}};const nt="EVENT_NODE_CHANGE";var Ft;let Kr=(Ft=class{constructor(t,r=null){$(this,"__VTJ_NODE__",!0);$(this,"locked",!1);$(this,"id");$(this,"name");$(this,"from");$(this,"invisible",!1);$(this,"children","");$(this,"slot");$(this,"props",{});$(this,"events",{});$(this,"directives",[]);$(this,"disposed",!1);this.parent=r;const{id:n=gt(),name:i,from:s=""}=t;this.id=n,this.name=i,this.from=s,this.update(t,!0),Ft.nodes[this.id]=this}update(t,r=!1){const{invisible:n=!1,locked:i=!1,children:s=[],slot:o,props:a={},events:u={},directives:c=[]}=t;this.invisible=n,this.locked=i,this.setChildren(s,!0),this.setSlot(o,!0),this.props=Pr.parse(a),this.events=xe.parse(u),this.directives=Je.parse(c),r||M.emit(nt,this)}setChildren(t="",r=!1){Array.isArray(t)?this.children=t.map(n=>new Ft(n,this)):this.children=t,r||M.emit(nt,this)}setSlot(t,r=!1){this.slot=typeof t=="string"?{name:t,params:[]}:t,r||M.emit(nt,this)}setProp(t,r,n,i=!1){const s=this.props[t];s?s.setValue(r):this.props[t]=new Pr(t,r,n),i||M.emit(nt,this)}removeProp(t,r=!1){delete this.props[t],r||M.emit(nt,this)}getPropValue(t){const r=this.props[t];if(r)return r.getValue()}setEvent(t,r=!1){const n=this.events[t.name];n?n.update(t):this.events[t.name]=new xe(t),r||M.emit(nt,this)}removeEvent(t,r=!1){delete this.events[t],r||M.emit(nt,this)}setDirective(t,r=!1){const n=t instanceof Je?t:new Je(t),i=this.directives.findIndex(s=>s.id===t.id);i>=0?this.directives.splice(i,1,n):this.directives.push(n),r||M.emit(nt,this)}removeDirective(t,r=!1){const n=this.directives.findIndex(i=>i===t||i.id===t.id);n>=0&&this.directives.splice(n,1),r||M.emit(nt,this)}removeChild(t,r=!1){const{children:n,disposed:i}=this;if(i||!Array.isArray(n))return;const s=n.findIndex(o=>o===t);t.parent=null,n.splice(s,1),r||M.emit(nt,this)}appendChild(t,r=!1){const{children:n,disposed:i}=this;i||(t.parent=this,Array.isArray(n)?n.push(t):this.children=[t],r||M.emit(nt,this))}insertAfter(t,r=!1){if(!this.parent)return;const n=this.parent.children;if(Array.isArray(n)){t.parent=this.parent;const i=n.indexOf(this);n.splice(i+1,0,t),r||M.emit(nt,this.parent)}}insertBefore(t,r=!1){if(!this.parent)return;const n=this.parent.children;if(Array.isArray(n)){t.parent=this.parent;const i=n.indexOf(this);n.splice(i,0,t),r||M.emit(nt,this.parent)}}movePrev(t=!1){const r=this.parent;if(!r)return;const n=r.children;if(Array.isArray(n)){const i=n.indexOf(this);i>0&&(n.splice(i,1),n.splice(i-1,0,this),t||M.emit(nt,r))}}moveNext(t=!1){const r=this.parent;if(!r)return;const n=r.children;if(Array.isArray(n)){const i=n.indexOf(this);i>-1&&i<n.length-1&&(n.splice(i,1),n.splice(i+1,0,this),t||M.emit(nt,r))}}toDsl(){const{id:t,name:r,from:n,invisible:i,locked:s,slot:o,children:a,props:u,directives:c,events:l}=this,f=Array.isArray(a)?a.map(p=>p.toDsl()):a;return{id:t,name:r,from:n,invisible:i,locked:s,slot:o,children:f,props:Pr.toDsl(u),directives:Je.toDsl(c),events:xe.toDsl(l)}}dispose(t=!1){const{children:r,disposed:n}=this;n||(Array.isArray(r)&&r.forEach(i=>i.dispose(!0)),this.parent?this.parent.removeChild(this,t):t||M.emit(nt,this),this.parent=null,this.disposed=!0,delete Ft.nodes[this.id])}lock(t=!1){if(this.locked=!0,Array.isArray(this.children))for(const r of this.children)r.lock(!0);t||M.emit(nt,this)}unlock(t=!1){if(this.locked=!1,Array.isArray(this.children))for(const r of this.children)r.unlock(!0);t||M.emit(nt,this)}setVisible(t,r=!1){if(this.invisible=!t,Array.isArray(this.children))for(const n of this.children)n.setVisible(t,!0);r||M.emit(nt,this)}isChild(t){let r=!1;if(Array.isArray(this.children)){for(const n of this.children)if(t===n||t.id===n.id){r=!0;break}else if(r=n.isChild(t),r)break}return r}},$(Ft,"nodes",{}),Ft);const G="EVENT_BLOCK_CHANGE";var qt;let ee=(qt=class{constructor(t){$(this,"__VTJ_BLOCK__",!0);$(this,"id");$(this,"name","");$(this,"inject",[]);$(this,"state",{});$(this,"lifeCycles",{});$(this,"methods",{});$(this,"computed",{});$(this,"watch",[]);$(this,"css","");$(this,"props",[]);$(this,"emits",[]);$(this,"slots",[]);$(this,"dataSources",{});$(this,"nodes",[]);$(this,"locked",!1);$(this,"disposed",!1);const{id:r}=t;this.id=r||gt(),this.update(t,!0)}update(t,r=!1){for(const i of qt.normalAttrs){const s=t[i];s&&(this[i]=s)}const{nodes:n=[]}=t;n.length&&(this.nodes=n.map(i=>new Kr(i))),r||M.emit(G,this)}toDsl(t){const{__VTJ_BLOCK__:r,id:n,nodes:i}=this;return st(z({},qt.normalAttrs.reduce((s,o)=>(s[o]=this[o],s),{})),{__VTJ_BLOCK__:r,__VERSION__:t||Oc().toString(),id:n,nodes:i.map(s=>s.toDsl())})}dispose(){this.nodes.map(t=>t.dispose(!0)),this.nodes=[],this.disposed=!0}setFunction(t,r,n,i=!1){this[t][r]=n,i||M.emit(G,this)}removeFunction(t,r,n=!1){delete this[t][r],n||M.emit(G,this)}setState(t,r,n=!1){this.state[t]=r,n||M.emit(G,this)}removeState(t,r=!1){delete this.state[t],r||M.emit(G,this)}setCss(t,r=!1){this.css=t,r||M.emit(G,this)}setWatch(t,r=!1){t.id=t.id||gt();const n=this.watch.findIndex(i=>i.id&&i.id===t.id||i===t);n>-1?this.watch.splice(n,1,t):this.watch.push(t),r||M.emit(G,this)}removeWatch(t,r=!1){const n=this.watch.findIndex(i=>i.id&&i.id===t.id||i===t);n>-1&&(this.watch.splice(n,1),r||M.emit(G,this))}setProp(t,r=!1){const n=this.props.findIndex(i=>typeof i=="string"?i===t.name:i.name===t.name);n>-1?this.props.splice(n,1,t):this.props.push(t),r||M.emit(G,this)}removeProp(t,r=!1){const n=this.props.findIndex(i=>typeof i=="string"?i===t.name:i.name===t.name);n>-1&&(this.props.splice(n,1),r||M.emit(G,this))}setEmit(t,r=!1){const n=bt(t)?{name:t,params:[]}:t,i=this.emits.findIndex(s=>s===n.name||s===n);i>-1?this.emits.splice(i,1,n):this.emits.push(n),r||M.emit(G,this)}removeEmit(t,r=!1){const n=this.emits.findIndex(i=>bt(i)?i===t:i.name===t);n>-1&&(this.emits.splice(n,1),r||M.emit(G,this))}setSlot(t,r=!1){const n=bt(t)?{name:t,params:[]}:t,i=this.slots.findIndex(s=>s===n.name||s===n);i>-1?this.slots.splice(i,1,n):this.slots.push(n),r||M.emit(G,this)}removeSlot(t,r=!1){const n=this.slots.findIndex(i=>bt(i)?i===t:i.name===t);n>-1&&(this.slots.splice(n,1),r||M.emit(G,this))}setInject(t,r=!1){const n=this.inject.findIndex(i=>i.name===t.name);n>-1?this.inject.splice(n,1,t):this.inject.push(t),r||M.emit(G,this)}removeInject(t,r=!1){const n=this.inject.findIndex(i=>i.name===t.name);n>-1&&(this.inject.splice(n,1),r||M.emit(G,this))}setDataSource(t,r=!1){this.dataSources[t.name]=t,r||M.emit(G,this)}removeDataSource(t,r=!1){delete this.dataSources[t],r||M.emit(G,this)}insertAfter(t,r,n=!1){t.parent=null;const i=this.nodes.indexOf(r);this.nodes.splice(i+1,0,t),n||M.emit(G,this)}insertBefore(t,r,n=!1){t.parent=null;const i=this.nodes.indexOf(r);this.nodes.splice(i,0,t),n||M.emit(G,this)}appendNode(t,r=!1){t.parent=null,this.nodes.push(t),r||M.emit(G,this)}addNode(t,r,n="inner",i=!1){r?["left","top"].includes(n)?r.parent?r.insertAfter(t,i):this.insertBefore(t,r,i):["right","bottom"].includes(n)?r.parent?r.insertAfter(t,i):this.insertAfter(t,r,i):r.appendChild(t,i):this.appendNode(t,i)}__removeNode(t,r=!1){const n=this.nodes.findIndex(i=>i.id===t.id);n>-1&&(this.nodes.splice(n,1),r||M.emit(G,this))}removeNode(t,r=!1){t.parent?t.dispose(r):(t.dispose(!0),this.__removeNode(t,r))}move(t,r,n="inner",i=!1){t.parent?t.parent.removeChild(t,!0):this.__removeNode(t,!0),this.addNode(t,r,n,i)}movePrev(t,r=!1){if(t.parent)t.movePrev(r);else{const n=this.nodes,i=n.indexOf(t);i>0&&(n.splice(i,1),n.splice(i-1,0,t),r||M.emit(G,this))}}moveNext(t,r=!1){if(t.parent)t.moveNext(r);else{const n=this.nodes,i=n.indexOf(t);i>-1&&i<n.length-1&&(n.splice(i,1),n.splice(i+1,0,t),r||M.emit(G,this))}}cloneNode(t,r=!1){const n=Yi(t.toDsl()),i=new Kr(n);return this.addNode(i,t,"bottom",r),i}lock(t=!1){this.locked=!0;for(const r of this.nodes)r.lock(!0);t||M.emit(G,this)}unlock(t=!1){this.locked=!1;for(const r of this.nodes)r.unlock(!0);t||M.emit(G,this)}isChild(t){let r=!1;for(const n of this.nodes)if(t===n||t.id===n.id){r=!0;break}else if(r=n.isChild(t),r)break;return r}},$(qt,"normalAttrs",["name","locked","inject","state","lifeCycles","methods","computed","watch","css","props","emits","slots","dataSources","__TEMPLATE_ID__"]),qt);const it="EVENT_PROJECT_CHANGE",oi="EVENT_PROJECT_ACTIVED",ai="EVENT_PROJECT_DEPS_CHANGE",We="EVENT_PROJECT_PAGES_CHANGE",we="EVENT_PROJECT_BLOCKS_CHANGE",ci="EVENT_PROJECT_APIS_CHANGE",ui="EVENT_PROJECT_META_CHANGE",Uc="EVENT_PROJECT_PUBLISH",Hc="EVENT_PROJECT_FILE_PUBLISH",zc="EVENT_PROJECT_GEN_SOURCE",tr=class tr{constructor(t){$(this,"id","");$(this,"platform","web");$(this,"name","");$(this,"description","");$(this,"homepage","");$(this,"dependencies",[]);$(this,"pages",[]);$(this,"blocks",[]);$(this,"apis",[]);$(this,"meta",[]);$(this,"currentFile",null);$(this,"config",{});$(this,"uniConfig",{});$(this,"__BASE_PATH__","/");const{id:r}=t;this.id=r||gt(),this.update(t,!0)}update(t,r=!1){for(const n of tr.attrs){const i=t[n];i&&(this[n]=i)}r||M.emit(it,{model:this,type:"update",data:t})}isPageFile(t){return t.type==="page"}cleanPagesDsl(t){for(const r of t)delete r.dsl,r.children&&r.children.length&&this.cleanPagesDsl(r.children)}toDsl(t){const{id:r}=this,n=tr.attrs.reduce((i,s)=>(i[s]=this[s],i),{});return n.pages&&(n.pages=n.pages.map(i=>ir(st(z({},i),{dsl:void 0}))),this.cleanPagesDsl(n.pages)),n.blocks&&(n.blocks=n.blocks.map(i=>ir(st(z({},i),{dsl:void 0})))),z({__VTJ_PROJECT__:!0,id:r},n)}active(t,r=!1){this.currentFile=t,r||M.emit(oi,{model:this,type:"update",data:t})}deactivate(t=!1){this.currentFile=null,t||M.emit(oi,{model:this,type:"update",data:null})}setDeps(t,r=!1){const n=this.dependencies,i=n.findIndex(o=>o.package===t.package);let s;if(i>-1?(s="update",n.splice(i,1,z(z({},n[i]),t))):(s="create",n.push(t)),!r){const o={model:this,type:s,data:t};M.emit(ai,o),M.emit(it,o)}}removeDeps(t,r=!1){const n=this.dependencies,i=n.findIndex(s=>s.package===t.package);if(i>-1&&n.splice(i,1),!r){const s={model:this,type:"delete",data:t};M.emit(ai,s),M.emit(it,s)}}getPage(t){const r=(n,i=[])=>{for(const s of i){if(s.id===n)return s;if(s.children&&s.children.length){const o=r(n,s.children);if(o)return o}}};return r(t,this.pages)}getPages(){const t=(r=[])=>{let n=[];for(const i of r)i.dir?i.children&&i.children.length&&(n=n.concat(t(i.children))):n.push(i);return n};return t(this.pages)}createPage(t,r,n=!1){return L(this,null,function*(){if(t.id=t.raw?t.name:t.id||gt(),t.type="page",t.dir?t.children=[]:t.dsl=t.dsl||new ee({id:t.id,name:ti(t.name)}).toDsl(),r){const i=this.getPage(r);i?i.children?i.children.push(t):i.children=[t]:console.warn(`not found PageFile for id: ${r} `)}else this.pages.push(t);if(!n){const i={model:this,type:"create",data:t};M.emit(We,i),M.emit(it,i)}!this.currentFile&&!t.dir&&(yield Se(1e3),this.active(t,n))})}updatePage(t,r=!1){const n=this.getPage(t.id);if(n?Object.assign(n,t):console.warn(`not found PageFile for id: ${t.id} `),!r){const i={model:this,type:"update",data:t};M.emit(We,i),M.emit(it,i)}}clonePage(t,r,n=!1){var f;const i=gt(),s=`${t.name}Copy`,o=`${t.title}_副本`,a=new ee({id:i,name:s}).toDsl(),u=Dt({},t,{id:i,name:s,title:o,dsl:a}),c=r?((f=this.getPage(r))==null?void 0:f.children)||[]:this.pages,l=c.findIndex(p=>p.id===t.id);if(c.splice(l+1,0,u),!n){const p={model:this,type:"clone",data:{source:t,target:u}};M.emit(We,p),M.emit(it,p)}}saveToBlock(t,r=!1){return L(this,null,function*(){this.active(t,r),yield Se(1e3);const n=gt(),i=t.name,s=t.title,o=new ee({id:n,name:i}).toDsl(),a=Dt({},t,{id:n,name:i,title:s,dsl:o,type:"block",fromType:"Schema"});if(this.blocks.push(a),!r){const u={model:this,type:"create",data:a};M.emit(we,u),M.emit(it,u)}})}removePage(t,r=!1){var s;const n=this.getPage(t),i=(o,a)=>{const u=a.findIndex(c=>c.id===o);if(u>=0){a.splice(u,1);return}for(const c of a)c.children&&c.children.length&&i(o,c.children)};if(i(t,this.pages),t===this.homepage&&(this.homepage=""),((s=this.currentFile)==null?void 0:s.id)===t&&this.deactivate(r),!r){const o={model:this,type:"delete",data:n};M.emit(We,o),M.emit(it,o)}}getBlock(t){return this.blocks.find(r=>r.id===t)}createBlock(t,r=!1){return L(this,null,function*(){const n=t.id||gt(),i=ti(t.name);t.id=n,t.type="block",t.dsl=new ee({id:n,name:i}).toDsl(),this.blocks.push(t);const s=t.fromType||"Schema";if(!r){const o={model:this,type:"create",data:t};M.emit(we,o),M.emit(it,o)}!this.currentFile&&s==="Schema"&&(yield Se(1e3),this.active(t,r))})}updateBlock(t,r=!1){const n=this.getBlock(t.id);if(n?(Object.assign(n,t),n.dsl&&(n.dsl.name=t.name)):console.warn(`not found PageFile for id: ${t.id} `),!r){const i={model:this,type:"update",data:t};M.emit(we,i),M.emit(it,i)}}cloneBlock(t,r=!1){const n=gt(),i=`${t.name}Copy`,s=`${t.title}_副本`,o=new ee({id:n,name:i}).toDsl(),a=Dt({},t,{id:n,name:i,title:s,dsl:o}),u=this.blocks.findIndex(c=>c.id===t.id);if(this.blocks.splice(u+1,0,a),!r){const c={model:this,type:"clone",data:{source:t,target:a}};M.emit(we,c),M.emit(it,c)}}removeBlock(t,r=!1){var o;const n=this.getBlock(t),i=this.blocks,s=i.findIndex(a=>a.id===t);if(s>-1?(i.splice(s,1),((o=this.currentFile)==null?void 0:o.id)===t&&this.deactivate(r)):console.warn(`not found PageFile for id: ${t} `),!r){const a={model:this,type:"delete",data:n};M.emit(we,a),M.emit(it,a)}}existBlockName(t,r=[]){return this.blocks.some(n=>n.name===t&&!r.includes(n.id))}existPageName(t,r=[]){return this.getPages().some(n=>n.name===t&&!r.includes(n.id))}setApi(t,r=!1){const n=this.apis.find(s=>s.name===t.name||s.id===t.id);let i;if(n?(i="update",Object.assign(n,t)):(i="create",t.id=gt(),this.apis.push(t)),!r){const s={model:this,type:i,data:t};M.emit(ci,s),M.emit(it,s)}}removeApi(t,r=!1){const n=this.apis.findIndex(i=>i.name===t||i.id===t);if(n>-1?this.apis.splice(n,1):console.warn(`not found Api for name: ${t} `),!r){const i={model:this,type:"delete",data:t};M.emit(ci,i),M.emit(it,i)}}existApiName(t,r=[]){return this.apis.some(n=>n.name===t&&!r.includes(n.id))}setMeta(t,r=!1){const n=this.meta.find(s=>s.code===t.code||s.id===t.id);let i;if(n?(i="update",Object.assign(n,t)):(i="create",t.id=gt(),this.meta.push(t)),!r){const s={model:this,type:i,data:t};M.emit(ui,s),M.emit(it,s)}}removeMeta(t,r=!1){const n=this.meta.findIndex(i=>i.code===t||i.id===t);if(n>-1?this.meta.splice(n,1):console.warn(`not found meta for name: ${name} `),!r){const i={model:this,type:"delete",data:t};M.emit(ui,i),M.emit(it,i)}}existMetaCode(t,r=[]){return this.meta.some(n=>n.code===t&&!r.includes(n.id))}setHomepage(t,r=!1){if(this.homepage=t,!r){const n={model:this,type:"update",data:t};M.emit(it,n)}}setConfig(t,r=!1){if(this.config=Object.assign(this.config,t),!r){const n={model:this,type:"update",data:t};M.emit(it,n)}}setUniConfig(t,r,n=!1){if(this.uniConfig=Object.assign(this.uniConfig,{[t]:r}),!n){const i={model:this,type:"update",data:this.uniConfig};M.emit(it,i)}}publish(t){const r={model:this,type:"publish",data:t||this};t?M.emit(Hc,r):M.emit(Uc,r)}genSource(){const t={model:this,type:"gen",data:null};M.emit(zc,t)}};$(tr,"attrs",["platform","name","homepage","description","dependencies","pages","blocks","apis","meta","config","uniConfig","__BASE_PATH__"]);let ce=tr;const Ye="EVENT_HISTORY_CHANGE",Br="EVENT_HISTORY_LOAD";let Wi=class{constructor(t,r={}){$(this,"options",{max:50});$(this,"index",-1);$(this,"id");$(this,"items");Object.assign(this.options,r);const{id:n,items:i=[]}=t;this.id=n,this.items=i}toDsl(){const{id:t,items:r}=this;return{id:t,items:r.map(n=>({id:n.id,label:n.label}))}}get(t){return this.items.find(r=>r.id===t)}add(t,r=!1){const{max:n}=this.options,i={id:gt(),label:new Date().toLocaleString(),dsl:ir(t)};if(this.items.unshift(i),this.items.length>n){const s=this.items.splice(n);r||M.emit(Ye,{model:this,type:"delete",data:s.map(o=>o.id)})}this.index=-1,r||M.emit(Ye,{model:this,type:"create",data:i})}remove(t,r=!1){const n=this.items.findIndex(i=>i.id===t);n>-1?(this.items.splice(n,1),n===this.index?this.index=-1:this.index>=this.items.length&&(this.index=this.items.length-1)):console.warn(`not found HistoryItem for id: ${t} `),r||M.emit(Ye,{model:this,type:"delete",data:[t]})}forward(t=!1){const{index:r,items:n}=this;if(r<0)return;--this.index;const i=n[this.index];i&&!t&&M.emit(Br,{model:this,type:"load",data:i})}backward(t=!1){const{index:r,items:n}=this;if(r>=n.length-1)return;r<0&&(this.index=0),++this.index;const i=n[this.index];i&&!t&&M.emit(Br,{model:this,type:"load",data:i})}load(t,r=!1){const n=this.items.findIndex(i=>i.id===t);n>=0&&(this.index=n,r||M.emit(Br,{model:this,type:"load",data:this.items[n]}))}clear(t=!1){this.index=-1;const r=this.items.map(n=>n.id);this.items=[],t||M.emit(Ye,{model:this,type:"clear",data:r})}};const M=Nc();function V1(e){return e instanceof ee}function U1(e){return e instanceof Kr}function H1(e){return!!e.__VTJ_BLOCK__}function Yi(e){const t=ir(e);return delete t.id,Array.isArray(t.children)&&(t.children=t.children.map(r=>Yi(r))),t}function z1(e){const t=e.fromType||"Schema";return t==="Schema"?{type:"Schema",id:e.id}:t==="UrlSchema"?{type:"UrlSchema",url:(e.urls||"").split(",")[0]||""}:t==="Plugin"?{type:"Plugin",urls:(e.urls||"").split(","),library:e.library}:""}const Pw=Object.freeze(Object.defineProperty({__proto__:null,BUILT_IN_COMPONENTS:Mc,BUILT_IN_LIBRARAY_MAP:M1,BUILT_IN_MATERIALS:I1,BUILT_IN_NAME:k1,BUILT_IN_TAGS:F1,BUILT_IN_VUE:Ki,BUILT_IN_VUE_ROUTER:Ji,Base:Fc,BlockModel:ee,DirectiveModel:Je,EVENT_BLOCK_CHANGE:G,EVENT_HISTORY_CHANGE:Ye,EVENT_HISTORY_LOAD:Br,EVENT_NODE_CHANGE:nt,EVENT_PROJECT_ACTIVED:oi,EVENT_PROJECT_APIS_CHANGE:ci,EVENT_PROJECT_BLOCKS_CHANGE:we,EVENT_PROJECT_CHANGE:it,EVENT_PROJECT_DEPS_CHANGE:ai,EVENT_PROJECT_FILE_PUBLISH:Hc,EVENT_PROJECT_GEN_SOURCE:zc,EVENT_PROJECT_META_CHANGE:ui,EVENT_PROJECT_PAGES_CHANGE:We,EVENT_PROJECT_PUBLISH:Uc,EventModel:xe,HistoryModel:Wi,NodeModel:Kr,ProjectModel:ce,PropModel:Pr,Service:L1,VTJ_CORE_VERSION:N1,cloneDsl:Yi,createNodeFrom:z1,emitter:M,isBlock:V1,isBlockSchema:H1,isNode:U1},Symbol.toStringTag,{value:"Module"}));var q1=Object.defineProperty,K1=(e,t,r)=>t in e?q1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,xt=(e,t,r)=>K1(e,typeof t!="symbol"?t+"":t,r);(function(){if(typeof window>"u"||typeof EventTarget>"u")return;const e=EventTarget.prototype.addEventListener;EventTarget.prototype.addEventListener=function(t,r,n){typeof n!="boolean"&&(n=n||{},n.passive=!1),e.call(this,t,r,n)}})();/**!
57
57
  * Copyright (c) 2025, VTJ.PRO All rights reserved.
58
58
  * @name @vtj/utils
59
59
  * @author CHC chenhuachun1549@dingtalk.com
60
- * @version 0.10.12
60
+ * @version 0.10.13
61
61
  * @license <a href="https://vtj.pro/license.html">MIT License</a>
62
- */const J1="0.10.12";/**
62
+ */const J1="0.10.13";/**
63
63
  * @vue/shared v3.5.13
64
64
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
65
65
  * @license MIT
66
- **//*! #__NO_SIDE_EFFECTS__ */function W1(e){const t=Object.create(null);for(const r of e.split(","))t[r]=1;return r=>r in t}const Y1=Object.assign,G1=Object.prototype.hasOwnProperty,li=(e,t)=>G1.call(e,t),Te=Array.isArray,Nr=e=>qc(e)==="[object Map]",Z1=e=>typeof e=="string",hr=e=>typeof e=="symbol",ln=e=>e!==null&&typeof e=="object",X1=Object.prototype.toString,qc=e=>X1.call(e),Q1=e=>qc(e).slice(8,-1),Gi=e=>Z1(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Ze=(e,t)=>!Object.is(e,t);var t0={ENV_TYPE:"local",NODE_ENV:"production"};let e0,Kc=0,Pn;function Zi(){Kc++}function Xi(){if(--Kc>0)return;let e;for(;Pn;){let t=Pn;for(Pn=void 0;t;){const r=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(n){e||(e=n)}t=r}}if(e)throw e}let Kr=!0;const Jc=[];function r0(){Jc.push(Kr),Kr=!1}function n0(){const e=Jc.pop();Kr=e===void 0?!0:e}let Wc=class{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0}track(t){}trigger(t){this.version++,this.notify(t)}notify(t){Zi();try{t0.NODE_ENV;for(let r=this.subs;r;r=r.prevSub)r.sub.notify()&&r.sub.dep.notify()}finally{Xi()}}};const fi=new WeakMap,ne=Symbol(""),hi=Symbol(""),ir=Symbol("");function vt(e,t,r){if(Kr&&e0){let n=fi.get(e);n||fi.set(e,n=new Map);let i=n.get(r);i||(n.set(r,i=new Wc),i.map=n,i.key=r),i.track()}}function Ht(e,t,r,n,i,s){const o=fi.get(e);if(!o)return;const a=u=>{u&&u.trigger()};if(Zi(),t==="clear")o.forEach(a);else{const u=Te(e),c=u&&Gi(r);if(u&&r==="length"){const l=Number(n);o.forEach((f,p)=>{(p==="length"||p===ir||!hr(p)&&p>=l)&&a(f)})}else switch((r!==void 0||o.has(void 0))&&a(o.get(r)),c&&a(o.get(ir)),t){case"add":u?c&&a(o.get("length")):(a(o.get(ne)),Nr(e)&&a(o.get(hi)));break;case"delete":u||(a(o.get(ne)),Nr(e)&&a(o.get(hi)));break;case"set":Nr(e)&&a(o.get(ne));break}}Xi()}function ve(e){const t=Z(e);return t===e?t:(vt(t,"iterate",ir),Kt(e)?t:t.map(lt))}function Qi(e){return vt(e=Z(e),"iterate",ir),e}const i0={__proto__:null,[Symbol.iterator](){return Nn(this,Symbol.iterator,lt)},concat(...e){return ve(this).concat(...e.map(t=>Te(t)?ve(t):t))},entries(){return Nn(this,"entries",e=>(e[1]=lt(e[1]),e))},every(e,t){return Nt(this,"every",e,t,void 0,arguments)},filter(e,t){return Nt(this,"filter",e,t,r=>r.map(lt),arguments)},find(e,t){return Nt(this,"find",e,t,lt,arguments)},findIndex(e,t){return Nt(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Nt(this,"findLast",e,t,lt,arguments)},findLastIndex(e,t){return Nt(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Nt(this,"forEach",e,t,void 0,arguments)},includes(...e){return Bn(this,"includes",e)},indexOf(...e){return Bn(this,"indexOf",e)},join(e){return ve(this).join(e)},lastIndexOf(...e){return Bn(this,"lastIndexOf",e)},map(e,t){return Nt(this,"map",e,t,void 0,arguments)},pop(){return He(this,"pop")},push(...e){return He(this,"push",e)},reduce(e,...t){return Co(this,"reduce",e,t)},reduceRight(e,...t){return Co(this,"reduceRight",e,t)},shift(){return He(this,"shift")},some(e,t){return Nt(this,"some",e,t,void 0,arguments)},splice(...e){return He(this,"splice",e)},toReversed(){return ve(this).toReversed()},toSorted(e){return ve(this).toSorted(e)},toSpliced(...e){return ve(this).toSpliced(...e)},unshift(...e){return He(this,"unshift",e)},values(){return Nn(this,"values",lt)}};function Nn(e,t,r){const n=Qi(e),i=n[t]();return n!==e&&!Kt(e)&&(i._next=i.next,i.next=()=>{const s=i._next();return s.value&&(s.value=r(s.value)),s}),i}const s0=Array.prototype;function Nt(e,t,r,n,i,s){const o=Qi(e),a=o!==e&&!Kt(e),u=o[t];if(u!==s0[t]){const f=u.apply(e,s);return a?lt(f):f}let c=r;o!==e&&(a?c=function(f,p){return r.call(this,lt(f),p,e)}:r.length>2&&(c=function(f,p){return r.call(this,f,p,e)}));const l=u.call(o,c,n);return a&&i?i(l):l}function Co(e,t,r,n){const i=Qi(e);let s=r;return i!==e&&(Kt(e)?r.length>3&&(s=function(o,a,u){return r.call(this,o,a,u,e)}):s=function(o,a,u){return r.call(this,o,lt(a),u,e)}),i[t](s,...n)}function Bn(e,t,r){const n=Z(e);vt(n,"iterate",ir);const i=n[t](...r);return(i===-1||i===!1)&&_0(r[0])?(r[0]=Z(r[0]),n[t](...r)):i}function He(e,t,r=[]){r0(),Zi();const n=Z(e)[t].apply(e,r);return Xi(),n0(),n}const o0=W1("__proto__,__v_isRef,__isVue"),Yc=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(hr));function a0(e){hr(e)||(e=String(e));const t=Z(this);return vt(t,"has",e),t.hasOwnProperty(e)}let Gc=class{constructor(t=!1,r=!1){this._isReadonly=t,this._isShallow=r}get(t,r,n){if(r==="__v_skip")return t.__v_skip;const i=this._isReadonly,s=this._isShallow;if(r==="__v_isReactive")return!i;if(r==="__v_isReadonly")return i;if(r==="__v_isShallow")return s;if(r==="__v_raw")return n===(i?s?v0:Qc:s?g0:Xc).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(n)?t:void 0;const o=Te(t);if(!i){let u;if(o&&(u=i0[r]))return u;if(r==="hasOwnProperty")return a0}const a=Reflect.get(t,r,Oe(t)?t:n);return(hr(r)?Yc.has(r):o0(r))||(i||vt(t,"get",r),s)?a:Oe(a)?o&&Gi(r)?a:a.value:ln(a)?i?eu(a):tu(a):a}};class c0 extends Gc{constructor(t=!1){super(!1,t)}set(t,r,n,i){let s=t[r];if(!this._isShallow){const u=je(s);if(!Kt(n)&&!je(n)&&(s=Z(s),n=Z(n)),!Te(t)&&Oe(s)&&!Oe(n))return u?!1:(s.value=n,!0)}const o=Te(t)&&Gi(r)?Number(r)<t.length:li(t,r),a=Reflect.set(t,r,n,Oe(t)?t:i);return t===Z(i)&&(o?Ze(n,s)&&Ht(t,"set",r,n):Ht(t,"add",r,n)),a}deleteProperty(t,r){const n=li(t,r);t[r];const i=Reflect.deleteProperty(t,r);return i&&n&&Ht(t,"delete",r,void 0),i}has(t,r){const n=Reflect.has(t,r);return(!hr(r)||!Yc.has(r))&&vt(t,"has",r),n}ownKeys(t){return vt(t,"iterate",Te(t)?"length":ne),Reflect.ownKeys(t)}}class u0 extends Gc{constructor(t=!1){super(!0,t)}set(t,r){return!0}deleteProperty(t,r){return!0}}const l0=new c0,f0=new u0,Tr=e=>Reflect.getPrototypeOf(e);function h0(e,t,r){return function(...n){const i=this.__v_raw,s=Z(i),o=Nr(s),a=e==="entries"||e===Symbol.iterator&&o,u=e==="keys"&&o,c=i[e](...n),l=t?pi:lt;return!t&&vt(s,"iterate",u?hi:ne),{next(){const{value:f,done:p}=c.next();return p?{value:f,done:p}:{value:a?[l(f[0]),l(f[1])]:l(f),done:p}},[Symbol.iterator](){return this}}}}function Or(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function p0(e,t){const r={get(n){const i=this.__v_raw,s=Z(i),o=Z(n);e||(Ze(n,o)&&vt(s,"get",n),vt(s,"get",o));const{has:a}=Tr(s),u=e?pi:lt;if(a.call(s,n))return u(i.get(n));if(a.call(s,o))return u(i.get(o));i!==s&&i.get(n)},get size(){const n=this.__v_raw;return!e&&vt(Z(n),"iterate",ne),Reflect.get(n,"size",n)},has(n){const i=this.__v_raw,s=Z(i),o=Z(n);return e||(Ze(n,o)&&vt(s,"has",n),vt(s,"has",o)),n===o?i.has(n):i.has(n)||i.has(o)},forEach(n,i){const s=this,o=s.__v_raw,a=Z(o),u=e?pi:lt;return!e&&vt(a,"iterate",ne),o.forEach((c,l)=>n.call(i,u(c),u(l),s))}};return Y1(r,e?{add:Or("add"),set:Or("set"),delete:Or("delete"),clear:Or("clear")}:{add(n){!Kt(n)&&!je(n)&&(n=Z(n));const i=Z(this);return Tr(i).has.call(i,n)||(i.add(n),Ht(i,"add",n,n)),this},set(n,i){!Kt(i)&&!je(i)&&(i=Z(i));const s=Z(this),{has:o,get:a}=Tr(s);let u=o.call(s,n);u||(n=Z(n),u=o.call(s,n));const c=a.call(s,n);return s.set(n,i),u?Ze(i,c)&&Ht(s,"set",n,i):Ht(s,"add",n,i),this},delete(n){const i=Z(this),{has:s,get:o}=Tr(i);let a=s.call(i,n);a||(n=Z(n),a=s.call(i,n)),o&&o.call(i,n);const u=i.delete(n);return a&&Ht(i,"delete",n,void 0),u},clear(){const n=Z(this),i=n.size!==0,s=n.clear();return i&&Ht(n,"clear",void 0,void 0),s}}),["keys","values","entries",Symbol.iterator].forEach(n=>{r[n]=h0(n,e)}),r}function Zc(e,t){const r=p0(e);return(n,i,s)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?n:Reflect.get(li(r,i)&&i in n?r:n,i,s)}const d0={get:Zc(!1)},m0={get:Zc(!0)},Xc=new WeakMap,g0=new WeakMap,Qc=new WeakMap,v0=new WeakMap;function y0(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function b0(e){return e.__v_skip||!Object.isExtensible(e)?0:y0(Q1(e))}function tu(e){return je(e)?e:ru(e,!1,l0,d0,Xc)}function eu(e){return ru(e,!0,f0,m0,Qc)}function ru(e,t,r,n,i){if(!ln(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const s=i.get(e);if(s)return s;const o=b0(e);if(o===0)return e;const a=new Proxy(e,o===2?n:r);return i.set(e,a),a}function je(e){return!!(e&&e.__v_isReadonly)}function Kt(e){return!!(e&&e.__v_isShallow)}function _0(e){return e?!!e.__v_raw:!1}function Z(e){const t=e&&e.__v_raw;return t?Z(t):e}const lt=e=>ln(e)?tu(e):e,pi=e=>ln(e)?eu(e):e;function Oe(e){return e?e.__v_isRef===!0:!1}function kn(e){return w0(e,!1)}function w0(e,t){return Oe(e)?e:new E0(e,t)}class E0{constructor(t,r){this.dep=new Wc,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=r?t:Z(t),this._value=r?t:lt(t),this.__v_isShallow=r}get value(){return this.dep.track(),this._value}set value(t){const r=this._rawValue,n=this.__v_isShallow||Kt(t)||je(t);t=n?t:Z(t),Ze(t,r)&&(this._rawValue=t,this._value=n?t:lt(t),this.dep.trigger())}}function nu(e,t){return function(){return e.apply(t,arguments)}}const{toString:S0}=Object.prototype,{getPrototypeOf:ts}=Object,fn=(e=>t=>{const r=S0.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),Rt=e=>(e=e.toLowerCase(),t=>fn(t)===e),hn=e=>t=>typeof t===e,{isArray:ke}=Array,sr=hn("undefined");function x0(e){return e!==null&&!sr(e)&&e.constructor!==null&&!sr(e.constructor)&&_t(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const iu=Rt("ArrayBuffer");function T0(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&iu(e.buffer),t}const O0=hn("string"),_t=hn("function"),su=hn("number"),pn=e=>e!==null&&typeof e=="object",$0=e=>e===!0||e===!1,Br=e=>{if(fn(e)!=="object")return!1;const t=ts(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},A0=Rt("Date"),R0=Rt("File"),j0=Rt("Blob"),D0=Rt("FileList"),C0=e=>pn(e)&&_t(e.pipe),P0=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||_t(e.append)&&((t=fn(e))==="formdata"||t==="object"&&_t(e.toString)&&e.toString()==="[object FormData]"))},N0=Rt("URLSearchParams"),[B0,k0,M0,I0]=["ReadableStream","Request","Response","Headers"].map(Rt),F0=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function pr(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,i;if(typeof e!="object"&&(e=[e]),ke(e))for(n=0,i=e.length;n<i;n++)t.call(null,e[n],n,e);else{const s=r?Object.getOwnPropertyNames(e):Object.keys(e),o=s.length;let a;for(n=0;n<o;n++)a=s[n],t.call(null,e[a],a,e)}}function ou(e,t){t=t.toLowerCase();const r=Object.keys(e);let n=r.length,i;for(;n-- >0;)if(i=r[n],t===i.toLowerCase())return i;return null}const re=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,au=e=>!sr(e)&&e!==re;function di(){const{caseless:e}=au(this)&&this||{},t={},r=(n,i)=>{const s=e&&ou(t,i)||i;Br(t[s])&&Br(n)?t[s]=di(t[s],n):Br(n)?t[s]=di({},n):ke(n)?t[s]=n.slice():t[s]=n};for(let n=0,i=arguments.length;n<i;n++)arguments[n]&&pr(arguments[n],r);return t}const L0=(e,t,r,{allOwnKeys:n}={})=>(pr(t,(i,s)=>{r&&_t(i)?e[s]=nu(i,r):e[s]=i},{allOwnKeys:n}),e),V0=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),U0=(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},H0=(e,t,r,n)=>{let i,s,o;const a={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),s=i.length;s-- >0;)o=i[s],(!n||n(o,e,t))&&!a[o]&&(t[o]=e[o],a[o]=!0);e=r!==!1&&ts(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},z0=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return n!==-1&&n===r},q0=e=>{if(!e)return null;if(ke(e))return e;let t=e.length;if(!su(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},K0=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&ts(Uint8Array)),J0=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let n;for(;(n=r.next())&&!n.done;){const i=n.value;t.call(e,i[0],i[1])}},W0=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},Y0=Rt("HTMLFormElement"),G0=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(t,r,n){return r.toUpperCase()+n}),Po=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),Z0=Rt("RegExp"),cu=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};pr(r,(i,s)=>{let o;(o=t(i,s,e))!==!1&&(n[s]=o||i)}),Object.defineProperties(e,n)},X0=e=>{cu(e,(t,r)=>{if(_t(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=e[r];if(_t(n)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},Q0=(e,t)=>{const r={},n=i=>{i.forEach(s=>{r[s]=!0})};return ke(e)?n(e):n(String(e).split(t)),r},tb=()=>{},eb=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function rb(e){return!!(e&&_t(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const nb=e=>{const t=new Array(10),r=(n,i)=>{if(pn(n)){if(t.indexOf(n)>=0)return;if(!("toJSON"in n)){t[i]=n;const s=ke(n)?[]:{};return pr(n,(o,a)=>{const u=r(o,i+1);!sr(u)&&(s[a]=u)}),t[i]=void 0,s}}return n};return r(e,0)},ib=Rt("AsyncFunction"),sb=e=>e&&(pn(e)||_t(e))&&_t(e.then)&&_t(e.catch),uu=((e,t)=>e?setImmediate:t?((r,n)=>(re.addEventListener("message",({source:i,data:s})=>{i===re&&s===r&&n.length&&n.shift()()},!1),i=>{n.push(i),re.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",_t(re.postMessage)),ob=typeof queueMicrotask<"u"?queueMicrotask.bind(re):typeof process<"u"&&process.nextTick||uu,O={isArray:ke,isArrayBuffer:iu,isBuffer:x0,isFormData:P0,isArrayBufferView:T0,isString:O0,isNumber:su,isBoolean:$0,isObject:pn,isPlainObject:Br,isReadableStream:B0,isRequest:k0,isResponse:M0,isHeaders:I0,isUndefined:sr,isDate:A0,isFile:R0,isBlob:j0,isRegExp:Z0,isFunction:_t,isStream:C0,isURLSearchParams:N0,isTypedArray:K0,isFileList:D0,forEach:pr,merge:di,extend:L0,trim:F0,stripBOM:V0,inherits:U0,toFlatObject:H0,kindOf:fn,kindOfTest:Rt,endsWith:z0,toArray:q0,forEachEntry:J0,matchAll:W0,isHTMLForm:Y0,hasOwnProperty:Po,hasOwnProp:Po,reduceDescriptors:cu,freezeMethods:X0,toObjectSet:Q0,toCamelCase:G0,noop:tb,toFiniteNumber:eb,findKey:ou,global:re,isContextDefined:au,isSpecCompliantForm:rb,toJSONObject:nb,isAsyncFn:ib,isThenable:sb,setImmediate:uu,asap:ob};function J(e,t,r,n,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),i&&(this.response=i,this.status=i.status?i.status:null)}O.inherits(J,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:O.toJSONObject(this.config),code:this.code,status:this.status}}});const lu=J.prototype,fu={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{fu[e]={value:e}});Object.defineProperties(J,fu);Object.defineProperty(lu,"isAxiosError",{value:!0});J.from=(e,t,r,n,i,s)=>{const o=Object.create(lu);return O.toFlatObject(e,o,function(a){return a!==Error.prototype},a=>a!=="isAxiosError"),J.call(o,e.message,t,r,n,i),o.cause=e,o.name=e.name,s&&Object.assign(o,s),o};const ab=null;function mi(e){return O.isPlainObject(e)||O.isArray(e)}function hu(e){return O.endsWith(e,"[]")?e.slice(0,-2):e}function No(e,t,r){return e?e.concat(t).map(function(n,i){return n=hu(n),!r&&i?"["+n+"]":n}).join(r?".":""):t}function cb(e){return O.isArray(e)&&!e.some(mi)}const ub=O.toFlatObject(O,{},null,function(e){return/^is[A-Z]/.test(e)});function dn(e,t,r){if(!O.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=O.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(h,m){return!O.isUndefined(m[h])});const n=r.metaTokens,i=r.visitor||c,s=r.dots,o=r.indexes,a=(r.Blob||typeof Blob<"u"&&Blob)&&O.isSpecCompliantForm(t);if(!O.isFunction(i))throw new TypeError("visitor must be a function");function u(h){if(h===null)return"";if(O.isDate(h))return h.toISOString();if(!a&&O.isBlob(h))throw new J("Blob is not supported. Use a Buffer instead.");return O.isArrayBuffer(h)||O.isTypedArray(h)?a&&typeof Blob=="function"?new Blob([h]):Buffer.from(h):h}function c(h,m,d){let b=h;if(h&&!d&&typeof h=="object"){if(O.endsWith(m,"{}"))m=n?m:m.slice(0,-2),h=JSON.stringify(h);else if(O.isArray(h)&&cb(h)||(O.isFileList(h)||O.endsWith(m,"[]"))&&(b=O.toArray(h)))return m=hu(m),b.forEach(function(E,g){!(O.isUndefined(E)||E===null)&&t.append(o===!0?No([m],g,s):o===null?m:m+"[]",u(E))}),!1}return mi(h)?!0:(t.append(No(d,m,s),u(h)),!1)}const l=[],f=Object.assign(ub,{defaultVisitor:c,convertValue:u,isVisitable:mi});function p(h,m){if(!O.isUndefined(h)){if(l.indexOf(h)!==-1)throw Error("Circular reference detected in "+m.join("."));l.push(h),O.forEach(h,function(d,b){(!(O.isUndefined(d)||d===null)&&i.call(t,d,O.isString(b)?b.trim():b,m,f))===!0&&p(d,m?m.concat(b):[b])}),l.pop()}}if(!O.isObject(e))throw new TypeError("data must be an object");return p(e),t}function Bo(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function es(e,t){this._pairs=[],e&&dn(e,this,t)}const pu=es.prototype;pu.append=function(e,t){this._pairs.push([e,t])};pu.toString=function(e){const t=e?function(r){return e.call(this,r,Bo)}:Bo;return this._pairs.map(function(r){return t(r[0])+"="+t(r[1])},"").join("&")};function lb(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function du(e,t,r){if(!t)return e;const n=r&&r.encode||lb;O.isFunction(r)&&(r={serialize:r});const i=r&&r.serialize;let s;if(i?s=i(t,r):s=O.isURLSearchParams(t)?t.toString():new es(t,r).toString(n),s){const o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+s}return e}let ko=class{constructor(){this.handlers=[]}use(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){O.forEach(this.handlers,function(r){r!==null&&t(r)})}};const mu={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},fb=typeof URLSearchParams<"u"?URLSearchParams:es,hb=typeof FormData<"u"?FormData:null,pb=typeof Blob<"u"?Blob:null,db={isBrowser:!0,classes:{URLSearchParams:fb,FormData:hb,Blob:pb},protocols:["http","https","file","blob","url","data"]},rs=typeof window<"u"&&typeof document<"u",gi=typeof navigator=="object"&&navigator||void 0,mb=rs&&(!gi||["ReactNative","NativeScript","NS"].indexOf(gi.product)<0),gb=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",vb=rs&&window.location.href||"http://localhost",yb=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:rs,hasStandardBrowserEnv:mb,hasStandardBrowserWebWorkerEnv:gb,navigator:gi,origin:vb},Symbol.toStringTag,{value:"Module"})),ot=z(z({},yb),db);function bb(e,t){return dn(e,new ot.classes.URLSearchParams,Object.assign({visitor:function(r,n,i,s){return ot.isNode&&O.isBuffer(r)?(this.append(n,r.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)}},t))}function _b(e){return O.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function wb(e){const t={},r=Object.keys(e);let n;const i=r.length;let s;for(n=0;n<i;n++)s=r[n],t[s]=e[s];return t}function gu(e){function t(r,n,i,s){let o=r[s++];if(o==="__proto__")return!0;const a=Number.isFinite(+o),u=s>=r.length;return o=!o&&O.isArray(i)?i.length:o,u?(O.hasOwnProp(i,o)?i[o]=[i[o],n]:i[o]=n,!a):((!i[o]||!O.isObject(i[o]))&&(i[o]=[]),t(r,n,i[o],s)&&O.isArray(i[o])&&(i[o]=wb(i[o])),!a)}if(O.isFormData(e)&&O.isFunction(e.entries)){const r={};return O.forEachEntry(e,(n,i)=>{t(_b(n),i,r,0)}),r}return null}function Eb(e,t,r){if(O.isString(e))try{return(t||JSON.parse)(e),O.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}const dr={transitional:mu,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const r=t.getContentType()||"",n=r.indexOf("application/json")>-1,i=O.isObject(e);if(i&&O.isHTMLForm(e)&&(e=new FormData(e)),O.isFormData(e))return n?JSON.stringify(gu(e)):e;if(O.isArrayBuffer(e)||O.isBuffer(e)||O.isStream(e)||O.isFile(e)||O.isBlob(e)||O.isReadableStream(e))return e;if(O.isArrayBufferView(e))return e.buffer;if(O.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let s;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return bb(e,this.formSerializer).toString();if((s=O.isFileList(e))||r.indexOf("multipart/form-data")>-1){const o=this.env&&this.env.FormData;return dn(s?{"files[]":e}:e,o&&new o,this.formSerializer)}}return i||n?(t.setContentType("application/json",!1),Eb(e)):e}],transformResponse:[function(e){const t=this.transitional||dr.transitional,r=t&&t.forcedJSONParsing,n=this.responseType==="json";if(O.isResponse(e)||O.isReadableStream(e))return e;if(e&&O.isString(e)&&(r&&!this.responseType||n)){const i=!(t&&t.silentJSONParsing)&&n;try{return JSON.parse(e)}catch(s){if(i)throw s.name==="SyntaxError"?J.from(s,J.ERR_BAD_RESPONSE,this,null,this.response):s}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ot.classes.FormData,Blob:ot.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};O.forEach(["delete","get","head","post","put","patch"],e=>{dr.headers[e]={}});const Sb=O.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"]),xb=e=>{const t={};let r,n,i;return e&&e.split(`
67
- `).forEach(function(s){i=s.indexOf(":"),r=s.substring(0,i).trim().toLowerCase(),n=s.substring(i+1).trim(),!(!r||t[r]&&Sb[r])&&(r==="set-cookie"?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t},Mo=Symbol("internals");function ze(e){return e&&String(e).trim().toLowerCase()}function kr(e){return e===!1||e==null?e:O.isArray(e)?e.map(kr):String(e)}function Tb(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}const Ob=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Mn(e,t,r,n,i){if(O.isFunction(n))return n.call(this,t,r);if(i&&(t=r),!!O.isString(t)){if(O.isString(n))return t.indexOf(n)!==-1;if(O.isRegExp(n))return n.test(t)}}function $b(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}function Ab(e,t){const r=O.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(i,s,o){return this[n].call(this,t,i,s,o)},configurable:!0})})}let yt=class{constructor(t){t&&this.set(t)}set(t,r,n){const i=this;function s(a,u,c){const l=ze(u);if(!l)throw new Error("header name must be a non-empty string");const f=O.findKey(i,l);(!f||i[f]===void 0||c===!0||c===void 0&&i[f]!==!1)&&(i[f||u]=kr(a))}const o=(a,u)=>O.forEach(a,(c,l)=>s(c,l,u));if(O.isPlainObject(t)||t instanceof this.constructor)o(t,r);else if(O.isString(t)&&(t=t.trim())&&!Ob(t))o(xb(t),r);else if(O.isHeaders(t))for(const[a,u]of t.entries())s(u,a,n);else t!=null&&s(r,t,n);return this}get(t,r){if(t=ze(t),t){const n=O.findKey(this,t);if(n){const i=this[n];if(!r)return i;if(r===!0)return Tb(i);if(O.isFunction(r))return r.call(this,i,n);if(O.isRegExp(r))return r.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=ze(t),t){const n=O.findKey(this,t);return!!(n&&this[n]!==void 0&&(!r||Mn(this,this[n],n,r)))}return!1}delete(t,r){const n=this;let i=!1;function s(o){if(o=ze(o),o){const a=O.findKey(n,o);a&&(!r||Mn(n,n[a],a,r))&&(delete n[a],i=!0)}}return O.isArray(t)?t.forEach(s):s(t),i}clear(t){const r=Object.keys(this);let n=r.length,i=!1;for(;n--;){const s=r[n];(!t||Mn(this,this[s],s,t,!0))&&(delete this[s],i=!0)}return i}normalize(t){const r=this,n={};return O.forEach(this,(i,s)=>{const o=O.findKey(n,s);if(o){r[o]=kr(i),delete r[s];return}const a=t?$b(s):String(s).trim();a!==s&&delete r[s],r[a]=kr(i),n[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const r=Object.create(null);return O.forEach(this,(n,i)=>{n!=null&&n!==!1&&(r[i]=t&&O.isArray(n)?n.join(", "):n)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,r])=>t+": "+r).join(`
68
- `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...r){const n=new this(t);return r.forEach(i=>n.set(i)),n}static accessor(t){const r=(this[Mo]=this[Mo]={accessors:{}}).accessors,n=this.prototype;function i(s){const o=ze(s);r[o]||(Ab(n,s),r[o]=!0)}return O.isArray(t)?t.forEach(i):i(t),this}};yt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);O.reduceDescriptors(yt.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[r]=n}}});O.freezeMethods(yt);function In(e,t){const r=this||dr,n=t||r,i=yt.from(n.headers);let s=n.data;return O.forEach(e,function(o){s=o.call(r,s,i.normalize(),t?t.status:void 0)}),i.normalize(),s}function vu(e){return!!(e&&e.__CANCEL__)}function Me(e,t,r){J.call(this,e!=null?e:"canceled",J.ERR_CANCELED,t,r),this.name="CanceledError"}O.inherits(Me,J,{__CANCEL__:!0});function yu(e,t,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new J("Request failed with status code "+r.status,[J.ERR_BAD_REQUEST,J.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function Rb(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function jb(e,t){e=e||10;const r=new Array(e),n=new Array(e);let i=0,s=0,o;return t=t!==void 0?t:1e3,function(a){const u=Date.now(),c=n[s];o||(o=u),r[i]=a,n[i]=u;let l=s,f=0;for(;l!==i;)f+=r[l++],l=l%e;if(i=(i+1)%e,i===s&&(s=(s+1)%e),u-o<t)return;const p=c&&u-c;return p?Math.round(f*1e3/p):void 0}}function Db(e,t){let r=0,n=1e3/t,i,s;const o=(a,u=Date.now())=>{r=u,i=null,s&&(clearTimeout(s),s=null),e.apply(null,a)};return[(...a)=>{const u=Date.now(),c=u-r;c>=n?o(a,u):(i=a,s||(s=setTimeout(()=>{s=null,o(i)},n-c)))},()=>i&&o(i)]}const Jr=(e,t,r=3)=>{let n=0;const i=jb(50,250);return Db(s=>{const o=s.loaded,a=s.lengthComputable?s.total:void 0,u=o-n,c=i(u),l=o<=a;n=o;const f={loaded:o,total:a,progress:a?o/a:void 0,bytes:u,rate:c||void 0,estimated:c&&a&&l?(a-o)/c:void 0,event:s,lengthComputable:a!=null,[t?"download":"upload"]:!0};e(f)},r)},Io=(e,t)=>{const r=e!=null;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},Fo=e=>(...t)=>O.asap(()=>e(...t)),Cb=ot.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,ot.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(ot.origin),ot.navigator&&/(msie|trident)/i.test(ot.navigator.userAgent)):()=>!0,Pb=ot.hasStandardBrowserEnv?{write(e,t,r,n,i,s){const o=[e+"="+encodeURIComponent(t)];O.isNumber(r)&&o.push("expires="+new Date(r).toGMTString()),O.isString(n)&&o.push("path="+n),O.isString(i)&&o.push("domain="+i),s===!0&&o.push("secure"),document.cookie=o.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Nb(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Bb(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function bu(e,t,r){let n=!Nb(t);return e&&n||r==!1?Bb(e,t):t}const Lo=e=>e instanceof yt?z({},e):e;function ue(e,t){t=t||{};const r={};function n(c,l,f,p){return O.isPlainObject(c)&&O.isPlainObject(l)?O.merge.call({caseless:p},c,l):O.isPlainObject(l)?O.merge({},l):O.isArray(l)?l.slice():l}function i(c,l,f,p){if(O.isUndefined(l)){if(!O.isUndefined(c))return n(void 0,c,f,p)}else return n(c,l,f,p)}function s(c,l){if(!O.isUndefined(l))return n(void 0,l)}function o(c,l){if(O.isUndefined(l)){if(!O.isUndefined(c))return n(void 0,c)}else return n(void 0,l)}function a(c,l,f){if(f in t)return n(c,l);if(f in e)return n(void 0,c)}const u={url:s,method:s,data:s,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:a,headers:(c,l,f)=>i(Lo(c),Lo(l),f,!0)};return O.forEach(Object.keys(Object.assign({},e,t)),function(c){const l=u[c]||i,f=l(e[c],t[c],c);O.isUndefined(f)&&l!==a||(r[c]=f)}),r}const _u=e=>{const t=ue({},e);let{data:r,withXSRFToken:n,xsrfHeaderName:i,xsrfCookieName:s,headers:o,auth:a}=t;t.headers=o=yt.from(o),t.url=du(bu(t.baseURL,t.url),e.params,e.paramsSerializer),a&&o.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):"")));let u;if(O.isFormData(r)){if(ot.hasStandardBrowserEnv||ot.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if((u=o.getContentType())!==!1){const[c,...l]=u?u.split(";").map(f=>f.trim()).filter(Boolean):[];o.setContentType([c||"multipart/form-data",...l].join("; "))}}if(ot.hasStandardBrowserEnv&&(n&&O.isFunction(n)&&(n=n(t)),n||n!==!1&&Cb(t.url))){const c=i&&s&&Pb.read(s);c&&o.set(i,c)}return t},kb=typeof XMLHttpRequest<"u",Mb=kb&&function(e){return new Promise(function(t,r){const n=_u(e);let i=n.data;const s=yt.from(n.headers).normalize();let{responseType:o,onUploadProgress:a,onDownloadProgress:u}=n,c,l,f,p,h;function m(){p&&p(),h&&h(),n.cancelToken&&n.cancelToken.unsubscribe(c),n.signal&&n.signal.removeEventListener("abort",c)}let d=new XMLHttpRequest;d.open(n.method.toUpperCase(),n.url,!0),d.timeout=n.timeout;function b(){if(!d)return;const g=yt.from("getAllResponseHeaders"in d&&d.getAllResponseHeaders()),y={data:!o||o==="text"||o==="json"?d.responseText:d.response,status:d.status,statusText:d.statusText,headers:g,config:e,request:d};yu(function(_){t(_),m()},function(_){r(_),m()},y),d=null}"onloadend"in d?d.onloadend=b:d.onreadystatechange=function(){!d||d.readyState!==4||d.status===0&&!(d.responseURL&&d.responseURL.indexOf("file:")===0)||setTimeout(b)},d.onabort=function(){d&&(r(new J("Request aborted",J.ECONNABORTED,e,d)),d=null)},d.onerror=function(){r(new J("Network Error",J.ERR_NETWORK,e,d)),d=null},d.ontimeout=function(){let g=n.timeout?"timeout of "+n.timeout+"ms exceeded":"timeout exceeded";const y=n.transitional||mu;n.timeoutErrorMessage&&(g=n.timeoutErrorMessage),r(new J(g,y.clarifyTimeoutError?J.ETIMEDOUT:J.ECONNABORTED,e,d)),d=null},i===void 0&&s.setContentType(null),"setRequestHeader"in d&&O.forEach(s.toJSON(),function(g,y){d.setRequestHeader(y,g)}),O.isUndefined(n.withCredentials)||(d.withCredentials=!!n.withCredentials),o&&o!=="json"&&(d.responseType=n.responseType),u&&([f,h]=Jr(u,!0),d.addEventListener("progress",f)),a&&d.upload&&([l,p]=Jr(a),d.upload.addEventListener("progress",l),d.upload.addEventListener("loadend",p)),(n.cancelToken||n.signal)&&(c=g=>{d&&(r(!g||g.type?new Me(null,e,d):g),d.abort(),d=null)},n.cancelToken&&n.cancelToken.subscribe(c),n.signal&&(n.signal.aborted?c():n.signal.addEventListener("abort",c)));const E=Rb(n.url);if(E&&ot.protocols.indexOf(E)===-1){r(new J("Unsupported protocol "+E+":",J.ERR_BAD_REQUEST,e));return}d.send(i||null)})},Ib=(e,t)=>{const{length:r}=e=e?e.filter(Boolean):[];if(t||r){let n=new AbortController,i;const s=function(c){if(!i){i=!0,a();const l=c instanceof Error?c:this.reason;n.abort(l instanceof J?l:new Me(l instanceof Error?l.message:l))}};let o=t&&setTimeout(()=>{o=null,s(new J(`timeout ${t} of ms exceeded`,J.ETIMEDOUT))},t);const a=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach(c=>{c.unsubscribe?c.unsubscribe(s):c.removeEventListener("abort",s)}),e=null)};e.forEach(c=>c.addEventListener("abort",s));const{signal:u}=n;return u.unsubscribe=()=>O.asap(a),u}},Fb=function*(e,t){let r=e.byteLength;if(r<t){yield e;return}let n=0,i;for(;n<r;)i=n+t,yield e.slice(n,i),n=i},Lb=function(e,t){return En(this,null,function*(){try{for(var r=_s(Vb(e)),n,i,s;n=!(i=yield new Gt(r.next())).done;n=!1){const o=i.value;yield*Sn(Fb(o,t))}}catch(i){s=[i]}finally{try{n&&(i=r.return)&&(yield new Gt(i.call(r)))}finally{if(s)throw s[0]}}})},Vb=function(e){return En(this,null,function*(){if(e[Symbol.asyncIterator]){yield*Sn(e);return}const t=e.getReader();try{for(;;){const{done:r,value:n}=yield new Gt(t.read());if(r)break;yield n}}finally{yield new Gt(t.cancel())}})},Vo=(e,t,r,n)=>{const i=Lb(e,t);let s=0,o,a=c=>{o||(o=!0,n&&n(c))};return new ReadableStream({pull(c){return L(this,null,function*(){try{const{done:l,value:f}=yield i.next();if(l){a(),c.close();return}let p=f.byteLength;if(r){let h=s+=p;r(h)}c.enqueue(new Uint8Array(f))}catch(l){throw a(l),l}})},cancel(c){return a(c),i.return()}},{highWaterMark:2})},mn=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",wu=mn&&typeof ReadableStream=="function",Ub=mn&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):e=>L(void 0,null,function*(){return new Uint8Array(yield new Response(e).arrayBuffer())})),Eu=(e,...t)=>{try{return!!e(...t)}catch(r){return!1}},Hb=wu&&Eu(()=>{let e=!1;const t=new Request(ot.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),Uo=64*1024,vi=wu&&Eu(()=>O.isReadableStream(new Response("").body)),Wr={stream:vi&&(e=>e.body)};mn&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!Wr[t]&&(Wr[t]=O.isFunction(e[t])?r=>r[t]():(r,n)=>{throw new J(`Response type '${t}' is not supported`,J.ERR_NOT_SUPPORT,n)})})})(new Response);const zb=e=>L(void 0,null,function*(){if(e==null)return 0;if(O.isBlob(e))return e.size;if(O.isSpecCompliantForm(e))return(yield new Request(ot.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(O.isArrayBufferView(e)||O.isArrayBuffer(e))return e.byteLength;if(O.isURLSearchParams(e)&&(e=e+""),O.isString(e))return(yield Ub(e)).byteLength}),qb=(e,t)=>L(void 0,null,function*(){const r=O.toFiniteNumber(e.getContentLength());return r!=null?r:zb(t)}),Kb=mn&&(e=>L(void 0,null,function*(){let{url:t,method:r,data:n,signal:i,cancelToken:s,timeout:o,onDownloadProgress:a,onUploadProgress:u,responseType:c,headers:l,withCredentials:f="same-origin",fetchOptions:p}=_u(e);c=c?(c+"").toLowerCase():"text";let h=Ib([i,s&&s.toAbortSignal()],o),m;const d=h&&h.unsubscribe&&(()=>{h.unsubscribe()});let b;try{if(u&&Hb&&r!=="get"&&r!=="head"&&(b=yield qb(l,n))!==0){let S=new Request(t,{method:"POST",body:n,duplex:"half"}),v;if(O.isFormData(n)&&(v=S.headers.get("content-type"))&&l.setContentType(v),S.body){const[x,$]=Io(b,Jr(Fo(u)));n=Vo(S.body,Uo,x,$)}}O.isString(f)||(f=f?"include":"omit");const E="credentials"in Request.prototype;m=new Request(t,st(z({},p),{signal:h,method:r.toUpperCase(),headers:l.normalize().toJSON(),body:n,duplex:"half",credentials:E?f:void 0}));let g=yield fetch(m);const y=vi&&(c==="stream"||c==="response");if(vi&&(a||y&&d)){const S={};["status","statusText","headers"].forEach(V=>{S[V]=g[V]});const v=O.toFiniteNumber(g.headers.get("content-length")),[x,$]=a&&Io(v,Jr(Fo(a),!0))||[];g=new Response(Vo(g.body,Uo,x,()=>{$&&$(),d&&d()}),S)}c=c||"text";let _=yield Wr[O.findKey(Wr,c)||"text"](g,e);return!y&&d&&d(),yield new Promise((S,v)=>{yu(S,v,{data:_,headers:yt.from(g.headers),status:g.status,statusText:g.statusText,config:e,request:m})})}catch(E){throw d&&d(),E&&E.name==="TypeError"&&/fetch/i.test(E.message)?Object.assign(new J("Network Error",J.ERR_NETWORK,e,m),{cause:E.cause||E}):J.from(E,E&&E.code,e,m)}})),yi={http:ab,xhr:Mb,fetch:Kb};O.forEach(yi,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(r){}Object.defineProperty(e,"adapterName",{value:t})}});const Ho=e=>`- ${e}`,Jb=e=>O.isFunction(e)||e===null||e===!1,Su={getAdapter:e=>{e=O.isArray(e)?e:[e];const{length:t}=e;let r,n;const i={};for(let s=0;s<t;s++){r=e[s];let o;if(n=r,!Jb(r)&&(n=yi[(o=String(r)).toLowerCase()],n===void 0))throw new J(`Unknown adapter '${o}'`);if(n)break;i[o||"#"+s]=n}if(!n){const s=Object.entries(i).map(([a,u])=>`adapter ${a} `+(u===!1?"is not supported by the environment":"is not available in the build"));let o=t?s.length>1?`since :
66
+ **//*! #__NO_SIDE_EFFECTS__ */function W1(e){const t=Object.create(null);for(const r of e.split(","))t[r]=1;return r=>r in t}const Y1=Object.assign,G1=Object.prototype.hasOwnProperty,li=(e,t)=>G1.call(e,t),Te=Array.isArray,Nr=e=>qc(e)==="[object Map]",Z1=e=>typeof e=="string",pr=e=>typeof e=="symbol",fn=e=>e!==null&&typeof e=="object",Q1=Object.prototype.toString,qc=e=>Q1.call(e),X1=e=>qc(e).slice(8,-1),Gi=e=>Z1(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Qe=(e,t)=>!Object.is(e,t);var t0={ENV_TYPE:"local",NODE_ENV:"production"};let e0,Kc=0,Pn;function Zi(){Kc++}function Qi(){if(--Kc>0)return;let e;for(;Pn;){let t=Pn;for(Pn=void 0;t;){const r=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(n){e||(e=n)}t=r}}if(e)throw e}let Jr=!0;const Jc=[];function r0(){Jc.push(Jr),Jr=!1}function n0(){const e=Jc.pop();Jr=e===void 0?!0:e}let Wc=class{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0}track(t){}trigger(t){this.version++,this.notify(t)}notify(t){Zi();try{t0.NODE_ENV;for(let r=this.subs;r;r=r.prevSub)r.sub.notify()&&r.sub.dep.notify()}finally{Qi()}}};const fi=new WeakMap,ne=Symbol(""),hi=Symbol(""),sr=Symbol("");function vt(e,t,r){if(Jr&&e0){let n=fi.get(e);n||fi.set(e,n=new Map);let i=n.get(r);i||(n.set(r,i=new Wc),i.map=n,i.key=r),i.track()}}function Ht(e,t,r,n,i,s){const o=fi.get(e);if(!o)return;const a=u=>{u&&u.trigger()};if(Zi(),t==="clear")o.forEach(a);else{const u=Te(e),c=u&&Gi(r);if(u&&r==="length"){const l=Number(n);o.forEach((f,p)=>{(p==="length"||p===sr||!pr(p)&&p>=l)&&a(f)})}else switch((r!==void 0||o.has(void 0))&&a(o.get(r)),c&&a(o.get(sr)),t){case"add":u?c&&a(o.get("length")):(a(o.get(ne)),Nr(e)&&a(o.get(hi)));break;case"delete":u||(a(o.get(ne)),Nr(e)&&a(o.get(hi)));break;case"set":Nr(e)&&a(o.get(ne));break}}Qi()}function ve(e){const t=Z(e);return t===e?t:(vt(t,"iterate",sr),Kt(e)?t:t.map(lt))}function Xi(e){return vt(e=Z(e),"iterate",sr),e}const i0={__proto__:null,[Symbol.iterator](){return Bn(this,Symbol.iterator,lt)},concat(...e){return ve(this).concat(...e.map(t=>Te(t)?ve(t):t))},entries(){return Bn(this,"entries",e=>(e[1]=lt(e[1]),e))},every(e,t){return Bt(this,"every",e,t,void 0,arguments)},filter(e,t){return Bt(this,"filter",e,t,r=>r.map(lt),arguments)},find(e,t){return Bt(this,"find",e,t,lt,arguments)},findIndex(e,t){return Bt(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Bt(this,"findLast",e,t,lt,arguments)},findLastIndex(e,t){return Bt(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Bt(this,"forEach",e,t,void 0,arguments)},includes(...e){return Nn(this,"includes",e)},indexOf(...e){return Nn(this,"indexOf",e)},join(e){return ve(this).join(e)},lastIndexOf(...e){return Nn(this,"lastIndexOf",e)},map(e,t){return Bt(this,"map",e,t,void 0,arguments)},pop(){return ze(this,"pop")},push(...e){return ze(this,"push",e)},reduce(e,...t){return Co(this,"reduce",e,t)},reduceRight(e,...t){return Co(this,"reduceRight",e,t)},shift(){return ze(this,"shift")},some(e,t){return Bt(this,"some",e,t,void 0,arguments)},splice(...e){return ze(this,"splice",e)},toReversed(){return ve(this).toReversed()},toSorted(e){return ve(this).toSorted(e)},toSpliced(...e){return ve(this).toSpliced(...e)},unshift(...e){return ze(this,"unshift",e)},values(){return Bn(this,"values",lt)}};function Bn(e,t,r){const n=Xi(e),i=n[t]();return n!==e&&!Kt(e)&&(i._next=i.next,i.next=()=>{const s=i._next();return s.value&&(s.value=r(s.value)),s}),i}const s0=Array.prototype;function Bt(e,t,r,n,i,s){const o=Xi(e),a=o!==e&&!Kt(e),u=o[t];if(u!==s0[t]){const f=u.apply(e,s);return a?lt(f):f}let c=r;o!==e&&(a?c=function(f,p){return r.call(this,lt(f),p,e)}:r.length>2&&(c=function(f,p){return r.call(this,f,p,e)}));const l=u.call(o,c,n);return a&&i?i(l):l}function Co(e,t,r,n){const i=Xi(e);let s=r;return i!==e&&(Kt(e)?r.length>3&&(s=function(o,a,u){return r.call(this,o,a,u,e)}):s=function(o,a,u){return r.call(this,o,lt(a),u,e)}),i[t](s,...n)}function Nn(e,t,r){const n=Z(e);vt(n,"iterate",sr);const i=n[t](...r);return(i===-1||i===!1)&&_0(r[0])?(r[0]=Z(r[0]),n[t](...r)):i}function ze(e,t,r=[]){r0(),Zi();const n=Z(e)[t].apply(e,r);return Qi(),n0(),n}const o0=W1("__proto__,__v_isRef,__isVue"),Yc=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(pr));function a0(e){pr(e)||(e=String(e));const t=Z(this);return vt(t,"has",e),t.hasOwnProperty(e)}let Gc=class{constructor(t=!1,r=!1){this._isReadonly=t,this._isShallow=r}get(t,r,n){if(r==="__v_skip")return t.__v_skip;const i=this._isReadonly,s=this._isShallow;if(r==="__v_isReactive")return!i;if(r==="__v_isReadonly")return i;if(r==="__v_isShallow")return s;if(r==="__v_raw")return n===(i?s?v0:Xc:s?g0:Qc).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(n)?t:void 0;const o=Te(t);if(!i){let u;if(o&&(u=i0[r]))return u;if(r==="hasOwnProperty")return a0}const a=Reflect.get(t,r,Oe(t)?t:n);return(pr(r)?Yc.has(r):o0(r))||(i||vt(t,"get",r),s)?a:Oe(a)?o&&Gi(r)?a:a.value:fn(a)?i?eu(a):tu(a):a}};class c0 extends Gc{constructor(t=!1){super(!1,t)}set(t,r,n,i){let s=t[r];if(!this._isShallow){const u=De(s);if(!Kt(n)&&!De(n)&&(s=Z(s),n=Z(n)),!Te(t)&&Oe(s)&&!Oe(n))return u?!1:(s.value=n,!0)}const o=Te(t)&&Gi(r)?Number(r)<t.length:li(t,r),a=Reflect.set(t,r,n,Oe(t)?t:i);return t===Z(i)&&(o?Qe(n,s)&&Ht(t,"set",r,n):Ht(t,"add",r,n)),a}deleteProperty(t,r){const n=li(t,r);t[r];const i=Reflect.deleteProperty(t,r);return i&&n&&Ht(t,"delete",r,void 0),i}has(t,r){const n=Reflect.has(t,r);return(!pr(r)||!Yc.has(r))&&vt(t,"has",r),n}ownKeys(t){return vt(t,"iterate",Te(t)?"length":ne),Reflect.ownKeys(t)}}class u0 extends Gc{constructor(t=!1){super(!0,t)}set(t,r){return!0}deleteProperty(t,r){return!0}}const l0=new c0,f0=new u0,Or=e=>Reflect.getPrototypeOf(e);function h0(e,t,r){return function(...n){const i=this.__v_raw,s=Z(i),o=Nr(s),a=e==="entries"||e===Symbol.iterator&&o,u=e==="keys"&&o,c=i[e](...n),l=t?pi:lt;return!t&&vt(s,"iterate",u?hi:ne),{next(){const{value:f,done:p}=c.next();return p?{value:f,done:p}:{value:a?[l(f[0]),l(f[1])]:l(f),done:p}},[Symbol.iterator](){return this}}}}function Ar(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function p0(e,t){const r={get(n){const i=this.__v_raw,s=Z(i),o=Z(n);e||(Qe(n,o)&&vt(s,"get",n),vt(s,"get",o));const{has:a}=Or(s),u=e?pi:lt;if(a.call(s,n))return u(i.get(n));if(a.call(s,o))return u(i.get(o));i!==s&&i.get(n)},get size(){const n=this.__v_raw;return!e&&vt(Z(n),"iterate",ne),Reflect.get(n,"size",n)},has(n){const i=this.__v_raw,s=Z(i),o=Z(n);return e||(Qe(n,o)&&vt(s,"has",n),vt(s,"has",o)),n===o?i.has(n):i.has(n)||i.has(o)},forEach(n,i){const s=this,o=s.__v_raw,a=Z(o),u=e?pi:lt;return!e&&vt(a,"iterate",ne),o.forEach((c,l)=>n.call(i,u(c),u(l),s))}};return Y1(r,e?{add:Ar("add"),set:Ar("set"),delete:Ar("delete"),clear:Ar("clear")}:{add(n){!Kt(n)&&!De(n)&&(n=Z(n));const i=Z(this);return Or(i).has.call(i,n)||(i.add(n),Ht(i,"add",n,n)),this},set(n,i){!Kt(i)&&!De(i)&&(i=Z(i));const s=Z(this),{has:o,get:a}=Or(s);let u=o.call(s,n);u||(n=Z(n),u=o.call(s,n));const c=a.call(s,n);return s.set(n,i),u?Qe(i,c)&&Ht(s,"set",n,i):Ht(s,"add",n,i),this},delete(n){const i=Z(this),{has:s,get:o}=Or(i);let a=s.call(i,n);a||(n=Z(n),a=s.call(i,n)),o&&o.call(i,n);const u=i.delete(n);return a&&Ht(i,"delete",n,void 0),u},clear(){const n=Z(this),i=n.size!==0,s=n.clear();return i&&Ht(n,"clear",void 0,void 0),s}}),["keys","values","entries",Symbol.iterator].forEach(n=>{r[n]=h0(n,e)}),r}function Zc(e,t){const r=p0(e);return(n,i,s)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?n:Reflect.get(li(r,i)&&i in n?r:n,i,s)}const d0={get:Zc(!1)},m0={get:Zc(!0)},Qc=new WeakMap,g0=new WeakMap,Xc=new WeakMap,v0=new WeakMap;function y0(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function b0(e){return e.__v_skip||!Object.isExtensible(e)?0:y0(X1(e))}function tu(e){return De(e)?e:ru(e,!1,l0,d0,Qc)}function eu(e){return ru(e,!0,f0,m0,Xc)}function ru(e,t,r,n,i){if(!fn(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const s=i.get(e);if(s)return s;const o=b0(e);if(o===0)return e;const a=new Proxy(e,o===2?n:r);return i.set(e,a),a}function De(e){return!!(e&&e.__v_isReadonly)}function Kt(e){return!!(e&&e.__v_isShallow)}function _0(e){return e?!!e.__v_raw:!1}function Z(e){const t=e&&e.__v_raw;return t?Z(t):e}const lt=e=>fn(e)?tu(e):e,pi=e=>fn(e)?eu(e):e;function Oe(e){return e?e.__v_isRef===!0:!1}function kn(e){return w0(e,!1)}function w0(e,t){return Oe(e)?e:new E0(e,t)}class E0{constructor(t,r){this.dep=new Wc,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=r?t:Z(t),this._value=r?t:lt(t),this.__v_isShallow=r}get value(){return this.dep.track(),this._value}set value(t){const r=this._rawValue,n=this.__v_isShallow||Kt(t)||De(t);t=n?t:Z(t),Qe(t,r)&&(this._rawValue=t,this._value=n?t:lt(t),this.dep.trigger())}}function nu(e,t){return function(){return e.apply(t,arguments)}}const{toString:S0}=Object.prototype,{getPrototypeOf:ts}=Object,hn=(e=>t=>{const r=S0.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),Rt=e=>(e=e.toLowerCase(),t=>hn(t)===e),pn=e=>t=>typeof t===e,{isArray:Ie}=Array,or=pn("undefined");function x0(e){return e!==null&&!or(e)&&e.constructor!==null&&!or(e.constructor)&&_t(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const iu=Rt("ArrayBuffer");function T0(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&iu(e.buffer),t}const O0=pn("string"),_t=pn("function"),su=pn("number"),dn=e=>e!==null&&typeof e=="object",A0=e=>e===!0||e===!1,kr=e=>{if(hn(e)!=="object")return!1;const t=ts(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},$0=Rt("Date"),R0=Rt("File"),j0=Rt("Blob"),D0=Rt("FileList"),C0=e=>dn(e)&&_t(e.pipe),P0=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||_t(e.append)&&((t=hn(e))==="formdata"||t==="object"&&_t(e.toString)&&e.toString()==="[object FormData]"))},B0=Rt("URLSearchParams"),[N0,k0,I0,M0]=["ReadableStream","Request","Response","Headers"].map(Rt),F0=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function dr(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,i;if(typeof e!="object"&&(e=[e]),Ie(e))for(n=0,i=e.length;n<i;n++)t.call(null,e[n],n,e);else{const s=r?Object.getOwnPropertyNames(e):Object.keys(e),o=s.length;let a;for(n=0;n<o;n++)a=s[n],t.call(null,e[a],a,e)}}function ou(e,t){t=t.toLowerCase();const r=Object.keys(e);let n=r.length,i;for(;n-- >0;)if(i=r[n],t===i.toLowerCase())return i;return null}const re=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,au=e=>!or(e)&&e!==re;function di(){const{caseless:e}=au(this)&&this||{},t={},r=(n,i)=>{const s=e&&ou(t,i)||i;kr(t[s])&&kr(n)?t[s]=di(t[s],n):kr(n)?t[s]=di({},n):Ie(n)?t[s]=n.slice():t[s]=n};for(let n=0,i=arguments.length;n<i;n++)arguments[n]&&dr(arguments[n],r);return t}const L0=(e,t,r,{allOwnKeys:n}={})=>(dr(t,(i,s)=>{r&&_t(i)?e[s]=nu(i,r):e[s]=i},{allOwnKeys:n}),e),V0=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),U0=(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},H0=(e,t,r,n)=>{let i,s,o;const a={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),s=i.length;s-- >0;)o=i[s],(!n||n(o,e,t))&&!a[o]&&(t[o]=e[o],a[o]=!0);e=r!==!1&&ts(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},z0=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return n!==-1&&n===r},q0=e=>{if(!e)return null;if(Ie(e))return e;let t=e.length;if(!su(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},K0=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&ts(Uint8Array)),J0=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let n;for(;(n=r.next())&&!n.done;){const i=n.value;t.call(e,i[0],i[1])}},W0=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},Y0=Rt("HTMLFormElement"),G0=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(t,r,n){return r.toUpperCase()+n}),Po=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),Z0=Rt("RegExp"),cu=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};dr(r,(i,s)=>{let o;(o=t(i,s,e))!==!1&&(n[s]=o||i)}),Object.defineProperties(e,n)},Q0=e=>{cu(e,(t,r)=>{if(_t(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=e[r];if(_t(n)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},X0=(e,t)=>{const r={},n=i=>{i.forEach(s=>{r[s]=!0})};return Ie(e)?n(e):n(String(e).split(t)),r},tb=()=>{},eb=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function rb(e){return!!(e&&_t(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const nb=e=>{const t=new Array(10),r=(n,i)=>{if(dn(n)){if(t.indexOf(n)>=0)return;if(!("toJSON"in n)){t[i]=n;const s=Ie(n)?[]:{};return dr(n,(o,a)=>{const u=r(o,i+1);!or(u)&&(s[a]=u)}),t[i]=void 0,s}}return n};return r(e,0)},ib=Rt("AsyncFunction"),sb=e=>e&&(dn(e)||_t(e))&&_t(e.then)&&_t(e.catch),uu=((e,t)=>e?setImmediate:t?((r,n)=>(re.addEventListener("message",({source:i,data:s})=>{i===re&&s===r&&n.length&&n.shift()()},!1),i=>{n.push(i),re.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",_t(re.postMessage)),ob=typeof queueMicrotask<"u"?queueMicrotask.bind(re):typeof process<"u"&&process.nextTick||uu,O={isArray:Ie,isArrayBuffer:iu,isBuffer:x0,isFormData:P0,isArrayBufferView:T0,isString:O0,isNumber:su,isBoolean:A0,isObject:dn,isPlainObject:kr,isReadableStream:N0,isRequest:k0,isResponse:I0,isHeaders:M0,isUndefined:or,isDate:$0,isFile:R0,isBlob:j0,isRegExp:Z0,isFunction:_t,isStream:C0,isURLSearchParams:B0,isTypedArray:K0,isFileList:D0,forEach:dr,merge:di,extend:L0,trim:F0,stripBOM:V0,inherits:U0,toFlatObject:H0,kindOf:hn,kindOfTest:Rt,endsWith:z0,toArray:q0,forEachEntry:J0,matchAll:W0,isHTMLForm:Y0,hasOwnProperty:Po,hasOwnProp:Po,reduceDescriptors:cu,freezeMethods:Q0,toObjectSet:X0,toCamelCase:G0,noop:tb,toFiniteNumber:eb,findKey:ou,global:re,isContextDefined:au,isSpecCompliantForm:rb,toJSONObject:nb,isAsyncFn:ib,isThenable:sb,setImmediate:uu,asap:ob};function J(e,t,r,n,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),i&&(this.response=i,this.status=i.status?i.status:null)}O.inherits(J,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:O.toJSONObject(this.config),code:this.code,status:this.status}}});const lu=J.prototype,fu={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{fu[e]={value:e}});Object.defineProperties(J,fu);Object.defineProperty(lu,"isAxiosError",{value:!0});J.from=(e,t,r,n,i,s)=>{const o=Object.create(lu);return O.toFlatObject(e,o,function(a){return a!==Error.prototype},a=>a!=="isAxiosError"),J.call(o,e.message,t,r,n,i),o.cause=e,o.name=e.name,s&&Object.assign(o,s),o};const ab=null;function mi(e){return O.isPlainObject(e)||O.isArray(e)}function hu(e){return O.endsWith(e,"[]")?e.slice(0,-2):e}function Bo(e,t,r){return e?e.concat(t).map(function(n,i){return n=hu(n),!r&&i?"["+n+"]":n}).join(r?".":""):t}function cb(e){return O.isArray(e)&&!e.some(mi)}const ub=O.toFlatObject(O,{},null,function(e){return/^is[A-Z]/.test(e)});function mn(e,t,r){if(!O.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=O.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(h,m){return!O.isUndefined(m[h])});const n=r.metaTokens,i=r.visitor||c,s=r.dots,o=r.indexes,a=(r.Blob||typeof Blob<"u"&&Blob)&&O.isSpecCompliantForm(t);if(!O.isFunction(i))throw new TypeError("visitor must be a function");function u(h){if(h===null)return"";if(O.isDate(h))return h.toISOString();if(!a&&O.isBlob(h))throw new J("Blob is not supported. Use a Buffer instead.");return O.isArrayBuffer(h)||O.isTypedArray(h)?a&&typeof Blob=="function"?new Blob([h]):Buffer.from(h):h}function c(h,m,d){let b=h;if(h&&!d&&typeof h=="object"){if(O.endsWith(m,"{}"))m=n?m:m.slice(0,-2),h=JSON.stringify(h);else if(O.isArray(h)&&cb(h)||(O.isFileList(h)||O.endsWith(m,"[]"))&&(b=O.toArray(h)))return m=hu(m),b.forEach(function(E,g){!(O.isUndefined(E)||E===null)&&t.append(o===!0?Bo([m],g,s):o===null?m:m+"[]",u(E))}),!1}return mi(h)?!0:(t.append(Bo(d,m,s),u(h)),!1)}const l=[],f=Object.assign(ub,{defaultVisitor:c,convertValue:u,isVisitable:mi});function p(h,m){if(!O.isUndefined(h)){if(l.indexOf(h)!==-1)throw Error("Circular reference detected in "+m.join("."));l.push(h),O.forEach(h,function(d,b){(!(O.isUndefined(d)||d===null)&&i.call(t,d,O.isString(b)?b.trim():b,m,f))===!0&&p(d,m?m.concat(b):[b])}),l.pop()}}if(!O.isObject(e))throw new TypeError("data must be an object");return p(e),t}function No(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function es(e,t){this._pairs=[],e&&mn(e,this,t)}const pu=es.prototype;pu.append=function(e,t){this._pairs.push([e,t])};pu.toString=function(e){const t=e?function(r){return e.call(this,r,No)}:No;return this._pairs.map(function(r){return t(r[0])+"="+t(r[1])},"").join("&")};function lb(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function du(e,t,r){if(!t)return e;const n=r&&r.encode||lb;O.isFunction(r)&&(r={serialize:r});const i=r&&r.serialize;let s;if(i?s=i(t,r):s=O.isURLSearchParams(t)?t.toString():new es(t,r).toString(n),s){const o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+s}return e}let ko=class{constructor(){this.handlers=[]}use(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){O.forEach(this.handlers,function(r){r!==null&&t(r)})}};const mu={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},fb=typeof URLSearchParams<"u"?URLSearchParams:es,hb=typeof FormData<"u"?FormData:null,pb=typeof Blob<"u"?Blob:null,db={isBrowser:!0,classes:{URLSearchParams:fb,FormData:hb,Blob:pb},protocols:["http","https","file","blob","url","data"]},rs=typeof window<"u"&&typeof document<"u",gi=typeof navigator=="object"&&navigator||void 0,mb=rs&&(!gi||["ReactNative","NativeScript","NS"].indexOf(gi.product)<0),gb=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",vb=rs&&window.location.href||"http://localhost",yb=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:rs,hasStandardBrowserEnv:mb,hasStandardBrowserWebWorkerEnv:gb,navigator:gi,origin:vb},Symbol.toStringTag,{value:"Module"})),ot=z(z({},yb),db);function bb(e,t){return mn(e,new ot.classes.URLSearchParams,Object.assign({visitor:function(r,n,i,s){return ot.isNode&&O.isBuffer(r)?(this.append(n,r.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)}},t))}function _b(e){return O.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function wb(e){const t={},r=Object.keys(e);let n;const i=r.length;let s;for(n=0;n<i;n++)s=r[n],t[s]=e[s];return t}function gu(e){function t(r,n,i,s){let o=r[s++];if(o==="__proto__")return!0;const a=Number.isFinite(+o),u=s>=r.length;return o=!o&&O.isArray(i)?i.length:o,u?(O.hasOwnProp(i,o)?i[o]=[i[o],n]:i[o]=n,!a):((!i[o]||!O.isObject(i[o]))&&(i[o]=[]),t(r,n,i[o],s)&&O.isArray(i[o])&&(i[o]=wb(i[o])),!a)}if(O.isFormData(e)&&O.isFunction(e.entries)){const r={};return O.forEachEntry(e,(n,i)=>{t(_b(n),i,r,0)}),r}return null}function Eb(e,t,r){if(O.isString(e))try{return(t||JSON.parse)(e),O.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}const mr={transitional:mu,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const r=t.getContentType()||"",n=r.indexOf("application/json")>-1,i=O.isObject(e);if(i&&O.isHTMLForm(e)&&(e=new FormData(e)),O.isFormData(e))return n?JSON.stringify(gu(e)):e;if(O.isArrayBuffer(e)||O.isBuffer(e)||O.isStream(e)||O.isFile(e)||O.isBlob(e)||O.isReadableStream(e))return e;if(O.isArrayBufferView(e))return e.buffer;if(O.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let s;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return bb(e,this.formSerializer).toString();if((s=O.isFileList(e))||r.indexOf("multipart/form-data")>-1){const o=this.env&&this.env.FormData;return mn(s?{"files[]":e}:e,o&&new o,this.formSerializer)}}return i||n?(t.setContentType("application/json",!1),Eb(e)):e}],transformResponse:[function(e){const t=this.transitional||mr.transitional,r=t&&t.forcedJSONParsing,n=this.responseType==="json";if(O.isResponse(e)||O.isReadableStream(e))return e;if(e&&O.isString(e)&&(r&&!this.responseType||n)){const i=!(t&&t.silentJSONParsing)&&n;try{return JSON.parse(e)}catch(s){if(i)throw s.name==="SyntaxError"?J.from(s,J.ERR_BAD_RESPONSE,this,null,this.response):s}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ot.classes.FormData,Blob:ot.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};O.forEach(["delete","get","head","post","put","patch"],e=>{mr.headers[e]={}});const Sb=O.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"]),xb=e=>{const t={};let r,n,i;return e&&e.split(`
67
+ `).forEach(function(s){i=s.indexOf(":"),r=s.substring(0,i).trim().toLowerCase(),n=s.substring(i+1).trim(),!(!r||t[r]&&Sb[r])&&(r==="set-cookie"?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t},Io=Symbol("internals");function qe(e){return e&&String(e).trim().toLowerCase()}function Ir(e){return e===!1||e==null?e:O.isArray(e)?e.map(Ir):String(e)}function Tb(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}const Ob=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function In(e,t,r,n,i){if(O.isFunction(n))return n.call(this,t,r);if(i&&(t=r),!!O.isString(t)){if(O.isString(n))return t.indexOf(n)!==-1;if(O.isRegExp(n))return n.test(t)}}function Ab(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}function $b(e,t){const r=O.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(i,s,o){return this[n].call(this,t,i,s,o)},configurable:!0})})}let yt=class{constructor(t){t&&this.set(t)}set(t,r,n){const i=this;function s(a,u,c){const l=qe(u);if(!l)throw new Error("header name must be a non-empty string");const f=O.findKey(i,l);(!f||i[f]===void 0||c===!0||c===void 0&&i[f]!==!1)&&(i[f||u]=Ir(a))}const o=(a,u)=>O.forEach(a,(c,l)=>s(c,l,u));if(O.isPlainObject(t)||t instanceof this.constructor)o(t,r);else if(O.isString(t)&&(t=t.trim())&&!Ob(t))o(xb(t),r);else if(O.isHeaders(t))for(const[a,u]of t.entries())s(u,a,n);else t!=null&&s(r,t,n);return this}get(t,r){if(t=qe(t),t){const n=O.findKey(this,t);if(n){const i=this[n];if(!r)return i;if(r===!0)return Tb(i);if(O.isFunction(r))return r.call(this,i,n);if(O.isRegExp(r))return r.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=qe(t),t){const n=O.findKey(this,t);return!!(n&&this[n]!==void 0&&(!r||In(this,this[n],n,r)))}return!1}delete(t,r){const n=this;let i=!1;function s(o){if(o=qe(o),o){const a=O.findKey(n,o);a&&(!r||In(n,n[a],a,r))&&(delete n[a],i=!0)}}return O.isArray(t)?t.forEach(s):s(t),i}clear(t){const r=Object.keys(this);let n=r.length,i=!1;for(;n--;){const s=r[n];(!t||In(this,this[s],s,t,!0))&&(delete this[s],i=!0)}return i}normalize(t){const r=this,n={};return O.forEach(this,(i,s)=>{const o=O.findKey(n,s);if(o){r[o]=Ir(i),delete r[s];return}const a=t?Ab(s):String(s).trim();a!==s&&delete r[s],r[a]=Ir(i),n[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const r=Object.create(null);return O.forEach(this,(n,i)=>{n!=null&&n!==!1&&(r[i]=t&&O.isArray(n)?n.join(", "):n)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,r])=>t+": "+r).join(`
68
+ `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...r){const n=new this(t);return r.forEach(i=>n.set(i)),n}static accessor(t){const r=(this[Io]=this[Io]={accessors:{}}).accessors,n=this.prototype;function i(s){const o=qe(s);r[o]||($b(n,s),r[o]=!0)}return O.isArray(t)?t.forEach(i):i(t),this}};yt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);O.reduceDescriptors(yt.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[r]=n}}});O.freezeMethods(yt);function Mn(e,t){const r=this||mr,n=t||r,i=yt.from(n.headers);let s=n.data;return O.forEach(e,function(o){s=o.call(r,s,i.normalize(),t?t.status:void 0)}),i.normalize(),s}function vu(e){return!!(e&&e.__CANCEL__)}function Me(e,t,r){J.call(this,e!=null?e:"canceled",J.ERR_CANCELED,t,r),this.name="CanceledError"}O.inherits(Me,J,{__CANCEL__:!0});function yu(e,t,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new J("Request failed with status code "+r.status,[J.ERR_BAD_REQUEST,J.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function Rb(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function jb(e,t){e=e||10;const r=new Array(e),n=new Array(e);let i=0,s=0,o;return t=t!==void 0?t:1e3,function(a){const u=Date.now(),c=n[s];o||(o=u),r[i]=a,n[i]=u;let l=s,f=0;for(;l!==i;)f+=r[l++],l=l%e;if(i=(i+1)%e,i===s&&(s=(s+1)%e),u-o<t)return;const p=c&&u-c;return p?Math.round(f*1e3/p):void 0}}function Db(e,t){let r=0,n=1e3/t,i,s;const o=(a,u=Date.now())=>{r=u,i=null,s&&(clearTimeout(s),s=null),e.apply(null,a)};return[(...a)=>{const u=Date.now(),c=u-r;c>=n?o(a,u):(i=a,s||(s=setTimeout(()=>{s=null,o(i)},n-c)))},()=>i&&o(i)]}const Wr=(e,t,r=3)=>{let n=0;const i=jb(50,250);return Db(s=>{const o=s.loaded,a=s.lengthComputable?s.total:void 0,u=o-n,c=i(u),l=o<=a;n=o;const f={loaded:o,total:a,progress:a?o/a:void 0,bytes:u,rate:c||void 0,estimated:c&&a&&l?(a-o)/c:void 0,event:s,lengthComputable:a!=null,[t?"download":"upload"]:!0};e(f)},r)},Mo=(e,t)=>{const r=e!=null;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},Fo=e=>(...t)=>O.asap(()=>e(...t)),Cb=ot.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,ot.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(ot.origin),ot.navigator&&/(msie|trident)/i.test(ot.navigator.userAgent)):()=>!0,Pb=ot.hasStandardBrowserEnv?{write(e,t,r,n,i,s){const o=[e+"="+encodeURIComponent(t)];O.isNumber(r)&&o.push("expires="+new Date(r).toGMTString()),O.isString(n)&&o.push("path="+n),O.isString(i)&&o.push("domain="+i),s===!0&&o.push("secure"),document.cookie=o.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Bb(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Nb(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function bu(e,t,r){let n=!Bb(t);return e&&n||r==!1?Nb(e,t):t}const Lo=e=>e instanceof yt?z({},e):e;function ue(e,t){t=t||{};const r={};function n(c,l,f,p){return O.isPlainObject(c)&&O.isPlainObject(l)?O.merge.call({caseless:p},c,l):O.isPlainObject(l)?O.merge({},l):O.isArray(l)?l.slice():l}function i(c,l,f,p){if(O.isUndefined(l)){if(!O.isUndefined(c))return n(void 0,c,f,p)}else return n(c,l,f,p)}function s(c,l){if(!O.isUndefined(l))return n(void 0,l)}function o(c,l){if(O.isUndefined(l)){if(!O.isUndefined(c))return n(void 0,c)}else return n(void 0,l)}function a(c,l,f){if(f in t)return n(c,l);if(f in e)return n(void 0,c)}const u={url:s,method:s,data:s,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:a,headers:(c,l,f)=>i(Lo(c),Lo(l),f,!0)};return O.forEach(Object.keys(Object.assign({},e,t)),function(c){const l=u[c]||i,f=l(e[c],t[c],c);O.isUndefined(f)&&l!==a||(r[c]=f)}),r}const _u=e=>{const t=ue({},e);let{data:r,withXSRFToken:n,xsrfHeaderName:i,xsrfCookieName:s,headers:o,auth:a}=t;t.headers=o=yt.from(o),t.url=du(bu(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),a&&o.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):"")));let u;if(O.isFormData(r)){if(ot.hasStandardBrowserEnv||ot.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if((u=o.getContentType())!==!1){const[c,...l]=u?u.split(";").map(f=>f.trim()).filter(Boolean):[];o.setContentType([c||"multipart/form-data",...l].join("; "))}}if(ot.hasStandardBrowserEnv&&(n&&O.isFunction(n)&&(n=n(t)),n||n!==!1&&Cb(t.url))){const c=i&&s&&Pb.read(s);c&&o.set(i,c)}return t},kb=typeof XMLHttpRequest<"u",Ib=kb&&function(e){return new Promise(function(t,r){const n=_u(e);let i=n.data;const s=yt.from(n.headers).normalize();let{responseType:o,onUploadProgress:a,onDownloadProgress:u}=n,c,l,f,p,h;function m(){p&&p(),h&&h(),n.cancelToken&&n.cancelToken.unsubscribe(c),n.signal&&n.signal.removeEventListener("abort",c)}let d=new XMLHttpRequest;d.open(n.method.toUpperCase(),n.url,!0),d.timeout=n.timeout;function b(){if(!d)return;const g=yt.from("getAllResponseHeaders"in d&&d.getAllResponseHeaders()),y={data:!o||o==="text"||o==="json"?d.responseText:d.response,status:d.status,statusText:d.statusText,headers:g,config:e,request:d};yu(function(_){t(_),m()},function(_){r(_),m()},y),d=null}"onloadend"in d?d.onloadend=b:d.onreadystatechange=function(){!d||d.readyState!==4||d.status===0&&!(d.responseURL&&d.responseURL.indexOf("file:")===0)||setTimeout(b)},d.onabort=function(){d&&(r(new J("Request aborted",J.ECONNABORTED,e,d)),d=null)},d.onerror=function(){r(new J("Network Error",J.ERR_NETWORK,e,d)),d=null},d.ontimeout=function(){let g=n.timeout?"timeout of "+n.timeout+"ms exceeded":"timeout exceeded";const y=n.transitional||mu;n.timeoutErrorMessage&&(g=n.timeoutErrorMessage),r(new J(g,y.clarifyTimeoutError?J.ETIMEDOUT:J.ECONNABORTED,e,d)),d=null},i===void 0&&s.setContentType(null),"setRequestHeader"in d&&O.forEach(s.toJSON(),function(g,y){d.setRequestHeader(y,g)}),O.isUndefined(n.withCredentials)||(d.withCredentials=!!n.withCredentials),o&&o!=="json"&&(d.responseType=n.responseType),u&&([f,h]=Wr(u,!0),d.addEventListener("progress",f)),a&&d.upload&&([l,p]=Wr(a),d.upload.addEventListener("progress",l),d.upload.addEventListener("loadend",p)),(n.cancelToken||n.signal)&&(c=g=>{d&&(r(!g||g.type?new Me(null,e,d):g),d.abort(),d=null)},n.cancelToken&&n.cancelToken.subscribe(c),n.signal&&(n.signal.aborted?c():n.signal.addEventListener("abort",c)));const E=Rb(n.url);if(E&&ot.protocols.indexOf(E)===-1){r(new J("Unsupported protocol "+E+":",J.ERR_BAD_REQUEST,e));return}d.send(i||null)})},Mb=(e,t)=>{const{length:r}=e=e?e.filter(Boolean):[];if(t||r){let n=new AbortController,i;const s=function(c){if(!i){i=!0,a();const l=c instanceof Error?c:this.reason;n.abort(l instanceof J?l:new Me(l instanceof Error?l.message:l))}};let o=t&&setTimeout(()=>{o=null,s(new J(`timeout ${t} of ms exceeded`,J.ETIMEDOUT))},t);const a=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach(c=>{c.unsubscribe?c.unsubscribe(s):c.removeEventListener("abort",s)}),e=null)};e.forEach(c=>c.addEventListener("abort",s));const{signal:u}=n;return u.unsubscribe=()=>O.asap(a),u}},Fb=function*(e,t){let r=e.byteLength;if(r<t){yield e;return}let n=0,i;for(;n<r;)i=n+t,yield e.slice(n,i),n=i},Lb=function(e,t){return Sn(this,null,function*(){try{for(var r=_s(Vb(e)),n,i,s;n=!(i=yield new Gt(r.next())).done;n=!1){const o=i.value;yield*xn(Fb(o,t))}}catch(i){s=[i]}finally{try{n&&(i=r.return)&&(yield new Gt(i.call(r)))}finally{if(s)throw s[0]}}})},Vb=function(e){return Sn(this,null,function*(){if(e[Symbol.asyncIterator]){yield*xn(e);return}const t=e.getReader();try{for(;;){const{done:r,value:n}=yield new Gt(t.read());if(r)break;yield n}}finally{yield new Gt(t.cancel())}})},Vo=(e,t,r,n)=>{const i=Lb(e,t);let s=0,o,a=c=>{o||(o=!0,n&&n(c))};return new ReadableStream({pull(c){return L(this,null,function*(){try{const{done:l,value:f}=yield i.next();if(l){a(),c.close();return}let p=f.byteLength;if(r){let h=s+=p;r(h)}c.enqueue(new Uint8Array(f))}catch(l){throw a(l),l}})},cancel(c){return a(c),i.return()}},{highWaterMark:2})},gn=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",wu=gn&&typeof ReadableStream=="function",Ub=gn&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):e=>L(void 0,null,function*(){return new Uint8Array(yield new Response(e).arrayBuffer())})),Eu=(e,...t)=>{try{return!!e(...t)}catch(r){return!1}},Hb=wu&&Eu(()=>{let e=!1;const t=new Request(ot.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),Uo=64*1024,vi=wu&&Eu(()=>O.isReadableStream(new Response("").body)),Yr={stream:vi&&(e=>e.body)};gn&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!Yr[t]&&(Yr[t]=O.isFunction(e[t])?r=>r[t]():(r,n)=>{throw new J(`Response type '${t}' is not supported`,J.ERR_NOT_SUPPORT,n)})})})(new Response);const zb=e=>L(void 0,null,function*(){if(e==null)return 0;if(O.isBlob(e))return e.size;if(O.isSpecCompliantForm(e))return(yield new Request(ot.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(O.isArrayBufferView(e)||O.isArrayBuffer(e))return e.byteLength;if(O.isURLSearchParams(e)&&(e=e+""),O.isString(e))return(yield Ub(e)).byteLength}),qb=(e,t)=>L(void 0,null,function*(){const r=O.toFiniteNumber(e.getContentLength());return r!=null?r:zb(t)}),Kb=gn&&(e=>L(void 0,null,function*(){let{url:t,method:r,data:n,signal:i,cancelToken:s,timeout:o,onDownloadProgress:a,onUploadProgress:u,responseType:c,headers:l,withCredentials:f="same-origin",fetchOptions:p}=_u(e);c=c?(c+"").toLowerCase():"text";let h=Mb([i,s&&s.toAbortSignal()],o),m;const d=h&&h.unsubscribe&&(()=>{h.unsubscribe()});let b;try{if(u&&Hb&&r!=="get"&&r!=="head"&&(b=yield qb(l,n))!==0){let S=new Request(t,{method:"POST",body:n,duplex:"half"}),v;if(O.isFormData(n)&&(v=S.headers.get("content-type"))&&l.setContentType(v),S.body){const[x,A]=Mo(b,Wr(Fo(u)));n=Vo(S.body,Uo,x,A)}}O.isString(f)||(f=f?"include":"omit");const E="credentials"in Request.prototype;m=new Request(t,st(z({},p),{signal:h,method:r.toUpperCase(),headers:l.normalize().toJSON(),body:n,duplex:"half",credentials:E?f:void 0}));let g=yield fetch(m);const y=vi&&(c==="stream"||c==="response");if(vi&&(a||y&&d)){const S={};["status","statusText","headers"].forEach(V=>{S[V]=g[V]});const v=O.toFiniteNumber(g.headers.get("content-length")),[x,A]=a&&Mo(v,Wr(Fo(a),!0))||[];g=new Response(Vo(g.body,Uo,x,()=>{A&&A(),d&&d()}),S)}c=c||"text";let _=yield Yr[O.findKey(Yr,c)||"text"](g,e);return!y&&d&&d(),yield new Promise((S,v)=>{yu(S,v,{data:_,headers:yt.from(g.headers),status:g.status,statusText:g.statusText,config:e,request:m})})}catch(E){throw d&&d(),E&&E.name==="TypeError"&&/fetch/i.test(E.message)?Object.assign(new J("Network Error",J.ERR_NETWORK,e,m),{cause:E.cause||E}):J.from(E,E&&E.code,e,m)}})),yi={http:ab,xhr:Ib,fetch:Kb};O.forEach(yi,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(r){}Object.defineProperty(e,"adapterName",{value:t})}});const Ho=e=>`- ${e}`,Jb=e=>O.isFunction(e)||e===null||e===!1,Su={getAdapter:e=>{e=O.isArray(e)?e:[e];const{length:t}=e;let r,n;const i={};for(let s=0;s<t;s++){r=e[s];let o;if(n=r,!Jb(r)&&(n=yi[(o=String(r)).toLowerCase()],n===void 0))throw new J(`Unknown adapter '${o}'`);if(n)break;i[o||"#"+s]=n}if(!n){const s=Object.entries(i).map(([a,u])=>`adapter ${a} `+(u===!1?"is not supported by the environment":"is not available in the build"));let o=t?s.length>1?`since :
69
69
  `+s.map(Ho).join(`
70
- `):" "+Ho(s[0]):"as no adapter specified";throw new J("There is no suitable adapter to dispatch the request "+o,"ERR_NOT_SUPPORT")}return n},adapters:yi};function Fn(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Me(null,e)}function zo(e){return Fn(e),e.headers=yt.from(e.headers),e.data=In.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Su.getAdapter(e.adapter||dr.adapter)(e).then(function(t){return Fn(e),t.data=In.call(e,e.transformResponse,t),t.headers=yt.from(t.headers),t},function(t){return vu(t)||(Fn(e),t&&t.response&&(t.response.data=In.call(e,e.transformResponse,t.response),t.response.headers=yt.from(t.response.headers))),Promise.reject(t)})}const xu="1.8.2",gn={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{gn[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const qo={};gn.transitional=function(e,t,r){function n(i,s){return"[Axios v"+xu+"] Transitional option '"+i+"'"+s+(r?". "+r:"")}return(i,s,o)=>{if(e===!1)throw new J(n(s," has been removed"+(t?" in "+t:"")),J.ERR_DEPRECATED);return t&&!qo[s]&&(qo[s]=!0,console.warn(n(s," has been deprecated since v"+t+" and will be removed in the near future"))),e?e(i,s,o):!0}};gn.spelling=function(e){return(t,r)=>(console.warn(`${r} is likely a misspelling of ${e}`),!0)};function Wb(e,t,r){if(typeof e!="object")throw new J("options must be an object",J.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let i=n.length;for(;i-- >0;){const s=n[i],o=t[s];if(o){const a=e[s],u=a===void 0||o(a,s,e);if(u!==!0)throw new J("option "+s+" must be "+u,J.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new J("Unknown option "+s,J.ERR_BAD_OPTION)}}const Mr={assertOptions:Wb,validators:gn},jt=Mr.validators;let ie=class{constructor(e){this.defaults=e,this.interceptors={request:new ko,response:new ko}}request(e,t){return L(this,null,function*(){try{return yield this._request(e,t)}catch(r){if(r instanceof Error){let n={};Error.captureStackTrace?Error.captureStackTrace(n):n=new Error;const i=n.stack?n.stack.replace(/^.+\n/,""):"";try{r.stack?i&&!String(r.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(r.stack+=`
71
- `+i):r.stack=i}catch(s){}}throw r}})}_request(e,t){typeof e=="string"?(t=t||{},t.url=e):t=e||{},t=ue(this.defaults,t);const{transitional:r,paramsSerializer:n,headers:i}=t;r!==void 0&&Mr.assertOptions(r,{silentJSONParsing:jt.transitional(jt.boolean),forcedJSONParsing:jt.transitional(jt.boolean),clarifyTimeoutError:jt.transitional(jt.boolean)},!1),n!=null&&(O.isFunction(n)?t.paramsSerializer={serialize:n}:Mr.assertOptions(n,{encode:jt.function,serialize:jt.function},!0)),t.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),Mr.assertOptions(t,{baseUrl:jt.spelling("baseURL"),withXsrfToken:jt.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let s=i&&O.merge(i.common,i[t.method]);i&&O.forEach(["delete","get","head","post","put","patch","common"],h=>{delete i[h]}),t.headers=yt.concat(s,i);const o=[];let a=!0;this.interceptors.request.forEach(function(h){typeof h.runWhen=="function"&&h.runWhen(t)===!1||(a=a&&h.synchronous,o.unshift(h.fulfilled,h.rejected))});const u=[];this.interceptors.response.forEach(function(h){u.push(h.fulfilled,h.rejected)});let c,l=0,f;if(!a){const h=[zo.bind(this),void 0];for(h.unshift.apply(h,o),h.push.apply(h,u),f=h.length,c=Promise.resolve(t);l<f;)c=c.then(h[l++],h[l++]);return c}f=o.length;let p=t;for(l=0;l<f;){const h=o[l++],m=o[l++];try{p=h(p)}catch(d){m.call(this,d);break}}try{c=zo.call(this,p)}catch(h){return Promise.reject(h)}for(l=0,f=u.length;l<f;)c=c.then(u[l++],u[l++]);return c}getUri(e){e=ue(this.defaults,e);const t=bu(e.baseURL,e.url,e.allowAbsoluteUrls);return du(t,e.params,e.paramsSerializer)}};O.forEach(["delete","get","head","options"],function(e){ie.prototype[e]=function(t,r){return this.request(ue(r||{},{method:e,url:t,data:(r||{}).data}))}});O.forEach(["post","put","patch"],function(e){function t(r){return function(n,i,s){return this.request(ue(s||{},{method:e,headers:r?{"Content-Type":"multipart/form-data"}:{},url:n,data:i}))}}ie.prototype[e]=t(),ie.prototype[e+"Form"]=t(!0)});let Yb=class Tu{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(i){r=i});const n=this;this.promise.then(i=>{if(!n._listeners)return;let s=n._listeners.length;for(;s-- >0;)n._listeners[s](i);n._listeners=null}),this.promise.then=i=>{let s;const o=new Promise(a=>{n.subscribe(a),s=a}).then(i);return o.cancel=function(){n.unsubscribe(s)},o},t(function(i,s,o){n.reason||(n.reason=new Me(i,s,o),r(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}toAbortSignal(){const t=new AbortController,r=n=>{t.abort(n)};return this.subscribe(r),t.signal.unsubscribe=()=>this.unsubscribe(r),t.signal}static source(){let t;return{token:new Tu(function(r){t=r}),cancel:t}}};function Gb(e){return function(t){return e.apply(null,t)}}function Zb(e){return O.isObject(e)&&e.isAxiosError===!0}const bi={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(bi).forEach(([e,t])=>{bi[t]=e});function Ou(e){const t=new ie(e),r=nu(ie.prototype.request,t);return O.extend(r,ie.prototype,t,{allOwnKeys:!0}),O.extend(r,t,null,{allOwnKeys:!0}),r.create=function(n){return Ou(ue(e,n))},r}const tt=Ou(dr);tt.Axios=ie;tt.CanceledError=Me;tt.CancelToken=Yb;tt.isCancel=vu;tt.VERSION=xu;tt.toFormData=dn;tt.AxiosError=J;tt.Cancel=tt.CanceledError;tt.all=function(e){return Promise.all(e)};tt.spread=Gb;tt.isAxiosError=Zb;tt.mergeConfig=ue;tt.AxiosHeaders=yt;tt.formToJSON=e=>gu(O.isHTMLForm(e)?new FormData(e):e);tt.getAdapter=Su.getAdapter;tt.HttpStatusCode=bi;tt.default=tt;const{Axios:Mw,AxiosError:Iw,CanceledError:Fw,isCancel:Lw,CancelToken:Vw,VERSION:Uw,all:Hw,Cancel:zw,isAxiosError:qw,spread:Kw,toFormData:Jw,AxiosHeaders:Ww,HttpStatusCode:Yw,formToJSON:Gw,getAdapter:Zw,mergeConfig:Xw}=tt,Xb={form:"application/x-www-form-urlencoded",json:"application/json",data:"multipart/form-data"},Qb=["put","post","patch"],_i="Local-Request-Id",t_=100,e_=300;let $u=class{constructor(e={}){xt(this,"axios"),xt(this,"settings"),xt(this,"records",{}),xt(this,"isLoading",!1),xt(this,"stopSkipWarn"),xt(this,"showLoading"),xt(this,"showError"),this.settings=Object.assign({type:"form"},e.settings||{});const t=Dr(e,["settings","query"]);this.axios=tt.create(Dt({headers:{"Content-Type":"application/x-www-form-urlencoded"},timeout:2*60*1e3},t)),this.setupSkipWarn(this.settings),this.showLoading=Fi(this.openLoading.bind(this),t_),this.showError=nc(this._showError.bind(this),e_,{leading:!0,trailing:!1})}setConfig(e={}){this.settings=Dt(this.settings,e.settings||{});const t=Dr(e,["settings","query"]);this.axios.defaults=Dt(this.axios.defaults,t),this.setupSkipWarn(this.settings)}cancel(e,t="请求已取消"){if(e){const r=this.records[e];if(!r)return;r.source.cancel(t)}else for(const r of Object.values(this.records))r.source.cancel(t)}createHeaders(e,t,r){const n=t.injectHeaders?typeof t.headers=="function"?t.headers(e,r,t):t.headers||{}:{},i=z(z({"Content-Type":Xb[t.type||"form"]},r.headers),n);return t.skipWarn&&(i[_i]=e),i}isJsonType(e){return Object.entries(e).some(([t,r])=>t.toLowerCase()==="content-type"&&String(r).includes("application/json"))}toFormData(e,t="data"){if(e instanceof FormData||e instanceof URLSearchParams)return e;const r=t==="data"?new FormData:new URLSearchParams;return Object.entries(e).forEach(([n,i])=>{r.append(n,i)}),r}createSendData(e,t,r,n,i={}){const{type:s,skipWarn:o}=e,{name:a="skipWarn"}=o||{};let{data:u,params:c={},method:l="get"}=t;const f=n?{[a]:!0}:{};return Qb.includes(l.toLowerCase())?(u=Object.assign(u||{},f),u=s!=="json"||!this.isJsonType(r)?this.toFormData(u,s):u,c=z({},i)):s==="form"?c=z(z(z({},u||{}),i),f):(u&&(s!=="json"||!this.isJsonType(r))&&(u=this.toFormData(u,s)),c=z(z({},i),f)),{data:u,params:c}}createUrl(e){let{url:t,params:r}=e;if(t){let n=Ui(t)?new URL(t).origin:"";const i=n?t.replace(n,""):t;try{const s=kc(i,{encode:encodeURIComponent});return n+s(r||{})}catch(s){console.warn("createUrl","pathToRegexpCompile error",t)}}return t}openLoading(e){const{loading:t,showLoading:r}=e;t&&r&&Object.keys(this.records).length>0&&(this.isLoading=!0,r())}closeLoading(e){const{loading:t,hideLoading:r}=e;if(!t)return;this.isLoading=!1;const n=Object.keys(this.records);r&&n.length===0&&(this.isLoading=!1,r())}_showError(e,t){var i;const{failMessage:r,showError:n}=e;if(r&&n){const s=(i=t.response)==null?void 0:i.data,o=(s==null?void 0:s.message)||(s==null?void 0:s.msg)||(t==null?void 0:t.message)||(t==null?void 0:t.msg)||"未知错误";n(o,t)}}validResponse(e,t){const{validSuccess:r,validate:n}=e;return r&&n?!!n(t):!0}isSkipWarnResponse(e){return!!e.promise}send(e={},t=!1){const r=Dt({},this.settings,e.settings||{}),n=e.query||{},i=Dr(e,["settings","query"]),s=$c(!1),o=tt.CancelToken.source();this.records[s]={settings:r,config:i,source:o};const a=this.createUrl(i),u=this.createHeaders(s,r,i),{data:c,params:l}=this.createSendData(r,i,u,t,n);return this.showLoading(r),new Promise((f,p)=>{this.axios(st(z({cancelToken:o.token},i),{url:a,headers:u,data:c,params:l})).then(h=>{var m;return this.isSkipWarnResponse(h)?f(h.promise):this.validResponse(r,h)?f(r.originResponse?h:(m=h.data)==null?void 0:m.data):(this.showError(r,h.data),p(h.data))}).catch(h=>(this.showError(r,h),p(h))).finally(()=>{delete this.records[s],this.closeLoading(r)})})}useResponse(e,t){const{response:r}=this.axios.interceptors,n=r.use(e,t);return()=>r.eject(n)}useRequest(e,t){const{request:r}=this.axios.interceptors,n=r.use(e,t);return()=>r.eject(n)}setupSkipWarn(e){if(this.stopSkipWarn&&(this.stopSkipWarn(),this.stopSkipWarn=void 0),!e.skipWarn)return;const{code:t,executor:r,callback:n,complete:i}=e.skipWarn;this.stopSkipWarn=this.useResponse(s=>{const o=(s.config.headers||{})[_i],a=this.records[o];if(!a)return s;const{data:u}=s;if(!u||typeof u!="object")return s;if((u==null?void 0:u.code)===t){n&&n(s);const c=new Promise(r).then(()=>this.send(st(z({},a.config),{settings:a.settings}),!0));c.catch(l=>l).finally(()=>{i&&i()}),s.promise=c}return s})}};function vn(e={}){const t=new $u(e),r=t.send.bind(t),n=t.cancel.bind(t),i=t.setConfig.bind(t),s=t.useRequest.bind(t),o=t.useResponse.bind(t);return Object.assign(r,st(z({},t),{instance:t,send:r,cancel:n,setConfig:i,useRequest:s,useResponse:o}))}const or=vn({settings:{injectHeaders:!0,loading:!0,originResponse:!0}});function Au(e){const t=typeof e=="string"?{url:e}:e;return(r,n)=>or.send(Dt({},t,n||{},{data:r}))}function r_(e){const t={};for(const[r,n]of Object.entries(e))t[r]=Au(n);return t}function n_(e,t){const r=kn(null),n=kn(),i=kn(!0);return e.then(s=>{r.value=t?t(s):s}).catch(s=>{n.value=s}).finally(()=>{i.value=!1}),{data:r,error:n,loading:i}}const De=typeof window<"u",i_=e=>new Promise((t,r)=>{const n=new FileReader;n.readAsDataURL(e),n.onload=()=>{t(n.result)},n.onerror=i=>{r(i)}});function Ru(e){const t={};return e?(e.forEach((r,n)=>{t[n]=typeof r=="string"?decodeURIComponent(r):r}),t):{}}function s_(e){var o;const t=e.split(","),r=(o=t[0].match(/:(.*?);/))==null?void 0:o[1],n=atob(t[1]);let i=n.length;const s=new Uint8Array(i);for(;i--;)s[i]=n.charCodeAt(i);return new Blob([s],{type:r})}function o_(e,t){const r=e;return r.lastModified=Date.now(),r.lastModifiedDate=new Date,r.name=t,r}const a_=e=>De?window.requestAnimationFrame(e):setTimeout(e,16),c_=e=>De?window.cancelAnimationFrame(e):clearTimeout(e);class ns{constructor(t={}){xt(this,"options",{type:"cache",expired:0,prefix:"__VTJ_"}),xt(this,"caches",{}),xt(this,"types"),this.types={local:De?window.localStorage:this.caches,session:De?window.sessionStorage:this.caches,cache:this.caches},this.config(t)}config(t={}){this.options=Object.assign(this.options,t)}save(t,r,n={}){const{type:i,expired:s,prefix:o}=z(z({},this.options),n),a=Date.now(),u=o+t,c=this.types[i]||this.caches,l={value:r,timestamp:a,expired:s};c===this.caches?c[u]=l:c.setItem(u,JSON.stringify(l))}get(t,r={}){const{type:n,prefix:i}=z(z({},this.options),r),s=i+t,o=this.types[n]||this.caches;let a;if(o===this.caches)a=o[s];else{const f=o.getItem(s);f&&(a=JSON.parse(f))}if(!a)return null;const{value:u,timestamp:c,expired:l}=a;return l>0&&c+l<Date.now()?(this.remove(t,r),null):u}remove(t,r={}){const{type:n,prefix:i}=z(z({},this.options),r),s=this.types[n]||this.caches,o=i+t;s===this.caches?delete s[o]:s.removeItem(o)}clear(t={}){const{type:r}=z(z({},this.options),t),n=this.types[r]||this.caches;n===this.caches?this.caches={}:n.clear()}}const Ir=new ns;function ju(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Fr={exports:{}},u_=Fr.exports,Ko;function l_(){return Ko||(Ko=1,function(e,t){(function(r,n){n(t,e)})(u_,function(r,n){var i={timeout:5e3,jsonpCallback:"callback"};function s(){return"jsonp_"+Date.now()+"_"+Math.ceil(Math.random()*1e5)}function o(c){try{delete window[c]}catch(l){window[c]=void 0}}function a(c){var l=document.getElementById(c);l&&document.getElementsByTagName("head")[0].removeChild(l)}function u(c){var l=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],f=c,p=l.timeout||i.timeout,h=l.jsonpCallback||i.jsonpCallback,m=void 0;return new Promise(function(d,b){var E=l.jsonpCallbackFunction||s(),g=h+"_"+E;window[E]=function(_){d({ok:!0,json:function(){return Promise.resolve(_)}}),m&&clearTimeout(m),a(g),o(E)},f+=f.indexOf("?")===-1?"?":"&";var y=document.createElement("script");y.setAttribute("src",""+f+h+"="+E),l.charset&&y.setAttribute("charset",l.charset),l.nonce&&y.setAttribute("nonce",l.nonce),l.referrerPolicy&&y.setAttribute("referrerPolicy",l.referrerPolicy),l.crossorigin&&y.setAttribute("crossorigin","true"),y.id=g,document.getElementsByTagName("head")[0].appendChild(y),m=setTimeout(function(){b(new Error("JSONP request to "+c+" timed out")),o(E),a(g),window[E]=function(){o(E)}},p),y.onerror=function(){b(new Error("JSONP request to "+c+" failed")),o(E),a(g),m&&clearTimeout(m)}})}n.exports=u})}(Fr,Fr.exports)),Fr.exports}var f_=l_();const h_=ju(f_);function p_(e){if(De){const{protocol:t,host:r,pathname:n}=location;return`${t}//${r}${e?n:""}`}else return null}function d_(e=""){const t=e.match(Vi);return t?t[0]:""}function Du(e){const t=[];for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.push([r,encodeURIComponent(e[r])].join("="));return t.join("&")}function wi(e,t,r){const n={};e=(e||location.search).replace(/^[^]*\?/,""),t=t||"&",r=r||"=";let i;const s=new RegExp("(?:^|\\"+t+")([^\\"+r+"\\"+t+"]+)(?:\\"+r+"([^\\"+t+"]*))?","g");for(;(i=s.exec(e))!==null;)i[1]!==e&&(n[decodeURIComponent(i[1])]=decodeURIComponent(i[2]||""));return n}function Cu(e,t){t=typeof t=="string"?wi(t):t;const r=e.split("?")[0],n=wi(e),i=Object.assign({},n,t),s=Du(i);return s?[r,s].join("?"):e}const se=Object.freeze(Object.defineProperty({__proto__:null,append:Cu,getCurrentHost:p_,getHost:d_,parse:wi,stringify:Du},Symbol.toStringTag,{value:"Module"}));function is(r){return L(this,arguments,function*(e,t={}){const{query:n={}}=t;e.includes("${")&&(e=rc(e)(n||{}));const i=Cu(e,n);return yield(yield h_(i,t)).json()})}var Ln,Jo;function m_(){if(Jo)return Ln;Jo=1,Ln=function(n,i,s){var o=document.head||document.getElementsByTagName("head")[0],a=document.createElement("script");typeof i=="function"&&(s=i,i={}),i=i||{},s=s||function(){},a.type=i.type||"text/javascript",a.charset=i.charset||"utf8",a.async="async"in i?!!i.async:!0,a.src=n,i.attrs&&e(a,i.attrs),i.text&&(a.text=""+i.text);var u="onload"in a?t:r;u(a,s),a.onload||t(a,s),o.appendChild(a)};function e(n,i){for(var s in i)n.setAttribute(s,i[s])}function t(n,i){n.onload=function(){this.onerror=this.onload=null,i(null,n)},n.onerror=function(){this.onerror=this.onload=null,i(new Error("Failed to load "+this.src),n)}}function r(n,i){n.onreadystatechange=function(){this.readyState!="complete"&&this.readyState!="loaded"||(this.onreadystatechange=null,i(null,n))}}return Ln}var g_=m_();const v_=ju(g_);function Ei(e,t={}){return new Promise((r,n)=>{const{library:i}=t;v_(e,t,(s,o)=>{s?n(s):r(i?window[i]:void 0)})})}const Wo={debug:-1,log:0,info:0,warn:1,error:2},y_=function(e,t,r,n){return function(...i){if(t&&Wo[t]<=Wo[e]&&console[e].apply&&(n==="*"||r.startsWith(n)))return console[e].apply(console,b_(i,r))}};function b_(e,t){return t!=="*"&&(typeof e[0]=="string"?e[0]=`[${t}] ${e[0]}`:e=["["+t+"]"].concat(e)),e}function __(e,t){if(!e)return{targetLevel:t.level,targetBizName:t.bizName};if(~e.indexOf(":")){const r=e.split(":");return{targetLevel:r[0],targetBizName:r[1]}}return{targetLevel:e,targetBizName:"*"}}const w_={level:"warn",bizName:"*"};class Pu{constructor(t){xt(this,"config"),xt(this,"options"),this.options=z(z({},w_),t);const r=typeof location<"u"?location:{},n=(/__(?:logConf|logLevel)__=([^#/&]*)/.exec(r.href)||[])[1];this.config=__(n,t)}_log(t){const{targetLevel:r,targetBizName:n}=this.config,{bizName:i}=this.options;return y_(t,r,i,n)}debug(...t){return this._log("debug")(...t)}log(...t){return this._log("log")(...t)}info(...t){return this._log("info")(...t)}warn(...t){return this._log("warn")(...t)}error(...t){return this._log("error")(...t)}}function Nu(e){return new Pu(e)}const oe=Nu({level:"log",bizName:"VTJ"});/*! js-cookie v3.0.5 | MIT */function $r(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)e[n]=r[n]}return e}var E_={read:function(e){return e[0]==='"'&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function Si(e,t){function r(i,s,o){if(!(typeof document>"u")){o=$r({},t,o),typeof o.expires=="number"&&(o.expires=new Date(Date.now()+o.expires*864e5)),o.expires&&(o.expires=o.expires.toUTCString()),i=encodeURIComponent(i).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var a="";for(var u in o)o[u]&&(a+="; "+u,o[u]!==!0&&(a+="="+o[u].split(";")[0]));return document.cookie=i+"="+e.write(s,i)+a}}function n(i){if(!(typeof document>"u"||arguments.length&&!i)){for(var s=document.cookie?document.cookie.split("; "):[],o={},a=0;a<s.length;a++){var u=s[a].split("="),c=u.slice(1).join("=");try{var l=decodeURIComponent(u[0]);if(o[l]=e.read(c,l),i===l)break}catch(f){}}return i?o[i]:o}}return Object.create({set:r,get:n,remove:function(i,s){r(i,"",$r({},s,{expires:-1}))},withAttributes:function(i){return Si(this.converter,$r({},this.attributes,i))},withConverter:function(i){return Si($r({},this.converter,i),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var ss=Si(E_,{path:"/"});function S_(e,t,r){ss.set(e,t,r)}function x_(e){return ss.get(e)}function T_(e,t){ss.remove(e,t)}const Lr=Object.freeze(Object.defineProperty({__proto__:null,get:x_,remove:T_,set:S_},Symbol.toStringTag,{value:"Module"}));function O_(e,t=""){const r=document.createElement("a");r.download=t,r.href=e,r.target="_blank",r.click()}function os(e,t="",r){const n=new Blob([e],{type:r}),i=document.createElement("a");i.download=t,i.style.display="none",i.href=URL.createObjectURL(n),i.click(),URL.revokeObjectURL(i.href)}function $_(e,t="",r){return L(this,null,function*(){return fetch(e,{credentials:"include"}).then(n=>L(this,null,function*(){const i=yield n.blob();return os(i,t,r),i}))})}function A_(e,t=""){const r=JSON.stringify(e);os(r,t,"application/json")}const Qw=Object.freeze(Object.defineProperty({__proto__:null,AES:n1,LOCAL_REQUEST_ID:_i,Logger:Pu,MD5:Qy,RSA:r1,Request:$u,Storage:ns,VTJ_UTILS_VERSION:J1,arrayToKv:b1,arrayToMap:Ac,arrayToTree:T1,avg:E1,axios:tt,base64:t1,blobToFile:o_,cAF:c_,camelCase:Bt,cloneDeep:nr,compress:P1,cookie:Lr,createApi:Au,createApis:r_,createRequest:vn,dataURLtoBlob:s_,dateFormat:p1,dayjs:Hi,debounce:Fi,decompress:N1,dedupArray:Rc,delay:Se,downloadBlob:os,downloadJson:A_,downloadRemoteFile:$_,downloadUrl:O_,fileToBase64:i_,flatChildren:Cc,formDataToJson:Ru,get:pa,getLogger:Nu,groupBy:Xa,isArray:pt,isArrayBuffer:kv,isBoolean:Iv,isBuffer:Ae,isCarNo:c1,isClient:De,isDate:Uv,isDef:g1,isEmail:s1,isEqual:Hv,isFunction:ae,isIdCardNo:o1,isMobilePhone:a1,isNaN:qv,isNull:Kv,isNumber:Qa,isObject:ct,isPlainObject:ki,isString:bt,isSymbol:cr,isUndefined:Jv,isUrl:Ui,jsonp:is,kebabCase:Yv,kvToArray:_1,loadScript:Ei,logger:oe,lowerFirst:Zv,mapToObject:cn,merge:Dt,mitt:Bc,noop:gf,now:v1,numberFormat:l1,numeral:Ec,omit:Dr,pathToRegexp:un,pathToRegexpCompile:kc,pathToRegexpMatch:Mc,pathToRegexpParse:zi,pick:jc,rAF:a_,rCar:_c,rEmail:vc,rID:yc,rMobile:bc,rURL:Vi,random:y1,request:or,set:ty,snakeCase:ry,splitParser:S1,splitStringify:x1,storage:Ir,sum:Dc,template:rc,throttle:nc,timestamp:Oc,toArray:ii,toFixed:f1,toRawType:m1,toTypeString:Tc,trim:si,uid:gt,unAES:i1,unBase64:e1,unRSA:ni,upperFirst:sn,upperFirstCamelCase:ti,url:se,useApi:n_,uuid:$c,zipObject:w1},Symbol.toStringTag,{value:"Module"}));/**!
70
+ `):" "+Ho(s[0]):"as no adapter specified";throw new J("There is no suitable adapter to dispatch the request "+o,"ERR_NOT_SUPPORT")}return n},adapters:yi};function Fn(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Me(null,e)}function zo(e){return Fn(e),e.headers=yt.from(e.headers),e.data=Mn.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Su.getAdapter(e.adapter||mr.adapter)(e).then(function(t){return Fn(e),t.data=Mn.call(e,e.transformResponse,t),t.headers=yt.from(t.headers),t},function(t){return vu(t)||(Fn(e),t&&t.response&&(t.response.data=Mn.call(e,e.transformResponse,t.response),t.response.headers=yt.from(t.response.headers))),Promise.reject(t)})}const xu="1.8.3",vn={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{vn[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const qo={};vn.transitional=function(e,t,r){function n(i,s){return"[Axios v"+xu+"] Transitional option '"+i+"'"+s+(r?". "+r:"")}return(i,s,o)=>{if(e===!1)throw new J(n(s," has been removed"+(t?" in "+t:"")),J.ERR_DEPRECATED);return t&&!qo[s]&&(qo[s]=!0,console.warn(n(s," has been deprecated since v"+t+" and will be removed in the near future"))),e?e(i,s,o):!0}};vn.spelling=function(e){return(t,r)=>(console.warn(`${r} is likely a misspelling of ${e}`),!0)};function Wb(e,t,r){if(typeof e!="object")throw new J("options must be an object",J.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let i=n.length;for(;i-- >0;){const s=n[i],o=t[s];if(o){const a=e[s],u=a===void 0||o(a,s,e);if(u!==!0)throw new J("option "+s+" must be "+u,J.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new J("Unknown option "+s,J.ERR_BAD_OPTION)}}const Mr={assertOptions:Wb,validators:vn},jt=Mr.validators;let ie=class{constructor(e){this.defaults=e,this.interceptors={request:new ko,response:new ko}}request(e,t){return L(this,null,function*(){try{return yield this._request(e,t)}catch(r){if(r instanceof Error){let n={};Error.captureStackTrace?Error.captureStackTrace(n):n=new Error;const i=n.stack?n.stack.replace(/^.+\n/,""):"";try{r.stack?i&&!String(r.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(r.stack+=`
71
+ `+i):r.stack=i}catch(s){}}throw r}})}_request(e,t){typeof e=="string"?(t=t||{},t.url=e):t=e||{},t=ue(this.defaults,t);const{transitional:r,paramsSerializer:n,headers:i}=t;r!==void 0&&Mr.assertOptions(r,{silentJSONParsing:jt.transitional(jt.boolean),forcedJSONParsing:jt.transitional(jt.boolean),clarifyTimeoutError:jt.transitional(jt.boolean)},!1),n!=null&&(O.isFunction(n)?t.paramsSerializer={serialize:n}:Mr.assertOptions(n,{encode:jt.function,serialize:jt.function},!0)),t.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),Mr.assertOptions(t,{baseUrl:jt.spelling("baseURL"),withXsrfToken:jt.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let s=i&&O.merge(i.common,i[t.method]);i&&O.forEach(["delete","get","head","post","put","patch","common"],h=>{delete i[h]}),t.headers=yt.concat(s,i);const o=[];let a=!0;this.interceptors.request.forEach(function(h){typeof h.runWhen=="function"&&h.runWhen(t)===!1||(a=a&&h.synchronous,o.unshift(h.fulfilled,h.rejected))});const u=[];this.interceptors.response.forEach(function(h){u.push(h.fulfilled,h.rejected)});let c,l=0,f;if(!a){const h=[zo.bind(this),void 0];for(h.unshift.apply(h,o),h.push.apply(h,u),f=h.length,c=Promise.resolve(t);l<f;)c=c.then(h[l++],h[l++]);return c}f=o.length;let p=t;for(l=0;l<f;){const h=o[l++],m=o[l++];try{p=h(p)}catch(d){m.call(this,d);break}}try{c=zo.call(this,p)}catch(h){return Promise.reject(h)}for(l=0,f=u.length;l<f;)c=c.then(u[l++],u[l++]);return c}getUri(e){e=ue(this.defaults,e);const t=bu(e.baseURL,e.url,e.allowAbsoluteUrls);return du(t,e.params,e.paramsSerializer)}};O.forEach(["delete","get","head","options"],function(e){ie.prototype[e]=function(t,r){return this.request(ue(r||{},{method:e,url:t,data:(r||{}).data}))}});O.forEach(["post","put","patch"],function(e){function t(r){return function(n,i,s){return this.request(ue(s||{},{method:e,headers:r?{"Content-Type":"multipart/form-data"}:{},url:n,data:i}))}}ie.prototype[e]=t(),ie.prototype[e+"Form"]=t(!0)});let Yb=class Tu{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(i){r=i});const n=this;this.promise.then(i=>{if(!n._listeners)return;let s=n._listeners.length;for(;s-- >0;)n._listeners[s](i);n._listeners=null}),this.promise.then=i=>{let s;const o=new Promise(a=>{n.subscribe(a),s=a}).then(i);return o.cancel=function(){n.unsubscribe(s)},o},t(function(i,s,o){n.reason||(n.reason=new Me(i,s,o),r(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}toAbortSignal(){const t=new AbortController,r=n=>{t.abort(n)};return this.subscribe(r),t.signal.unsubscribe=()=>this.unsubscribe(r),t.signal}static source(){let t;return{token:new Tu(function(r){t=r}),cancel:t}}};function Gb(e){return function(t){return e.apply(null,t)}}function Zb(e){return O.isObject(e)&&e.isAxiosError===!0}const bi={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(bi).forEach(([e,t])=>{bi[t]=e});function Ou(e){const t=new ie(e),r=nu(ie.prototype.request,t);return O.extend(r,ie.prototype,t,{allOwnKeys:!0}),O.extend(r,t,null,{allOwnKeys:!0}),r.create=function(n){return Ou(ue(e,n))},r}const tt=Ou(mr);tt.Axios=ie;tt.CanceledError=Me;tt.CancelToken=Yb;tt.isCancel=vu;tt.VERSION=xu;tt.toFormData=mn;tt.AxiosError=J;tt.Cancel=tt.CanceledError;tt.all=function(e){return Promise.all(e)};tt.spread=Gb;tt.isAxiosError=Zb;tt.mergeConfig=ue;tt.AxiosHeaders=yt;tt.formToJSON=e=>gu(O.isHTMLForm(e)?new FormData(e):e);tt.getAdapter=Su.getAdapter;tt.HttpStatusCode=bi;tt.default=tt;const{Axios:Mw,AxiosError:Fw,CanceledError:Lw,isCancel:Vw,CancelToken:Uw,VERSION:Hw,all:zw,Cancel:qw,isAxiosError:Kw,spread:Jw,toFormData:Ww,AxiosHeaders:Yw,HttpStatusCode:Gw,formToJSON:Zw,getAdapter:Qw,mergeConfig:Xw}=tt,Qb={form:"application/x-www-form-urlencoded",json:"application/json",data:"multipart/form-data"},Xb=["put","post","patch"],_i="Local-Request-Id",t_=100,e_=300;let Au=class{constructor(e={}){xt(this,"axios"),xt(this,"settings"),xt(this,"records",{}),xt(this,"isLoading",!1),xt(this,"stopSkipWarn"),xt(this,"showLoading"),xt(this,"showError"),this.settings=Object.assign({type:"form"},e.settings||{});const t=Cr(e,["settings","query"]);this.axios=tt.create(Dt({headers:{"Content-Type":"application/x-www-form-urlencoded"},timeout:2*60*1e3},t)),this.setupSkipWarn(this.settings),this.showLoading=Fi(this.openLoading.bind(this),t_),this.showError=nc(this._showError.bind(this),e_,{leading:!0,trailing:!1})}setConfig(e={}){this.settings=Dt(this.settings,e.settings||{});const t=Cr(e,["settings","query"]);this.axios.defaults=Dt(this.axios.defaults,t),this.setupSkipWarn(this.settings)}cancel(e,t="请求已取消"){if(e){const r=this.records[e];if(!r)return;r.source.cancel(t)}else for(const r of Object.values(this.records))r.source.cancel(t)}createHeaders(e,t,r){const n=t.injectHeaders?typeof t.headers=="function"?t.headers(e,r,t):t.headers||{}:{},i=z(z({"Content-Type":Qb[t.type||"form"]},r.headers),n);return t.skipWarn&&(i[_i]=e),i}isJsonType(e){return Object.entries(e).some(([t,r])=>t.toLowerCase()==="content-type"&&String(r).includes("application/json"))}toFormData(e,t="data"){if(e instanceof FormData||e instanceof URLSearchParams)return e;const r=t==="data"?new FormData:new URLSearchParams;return Object.entries(e).forEach(([n,i])=>{r.append(n,i)}),r}createSendData(e,t,r,n,i={}){const{type:s,skipWarn:o}=e,{name:a="skipWarn"}=o||{};let{data:u,params:c={},method:l="get"}=t;const f=n?{[a]:!0}:{};return Xb.includes(l.toLowerCase())?(u=Object.assign(u||{},f),u=s!=="json"||!this.isJsonType(r)?this.toFormData(u,s):u,c=z({},i)):s==="form"?c=z(z(z({},u||{}),i),f):(u&&(s!=="json"||!this.isJsonType(r))&&(u=this.toFormData(u,s)),c=z(z({},i),f)),{data:u,params:c}}createUrl(e){let{url:t,params:r}=e;if(t){let n=Ui(t)?new URL(t).origin:"";const i=n?t.replace(n,""):t;try{const s=kc(i,{encode:encodeURIComponent});return n+s(r||{})}catch(s){console.warn("createUrl","pathToRegexpCompile error",t)}}return t}openLoading(e){const{loading:t,showLoading:r}=e;t&&r&&Object.keys(this.records).length>0&&(this.isLoading=!0,r())}closeLoading(e){const{loading:t,hideLoading:r}=e;if(!t)return;this.isLoading=!1;const n=Object.keys(this.records);r&&n.length===0&&(this.isLoading=!1,r())}_showError(e,t){var i;const{failMessage:r,showError:n}=e;if(r&&n){const s=(i=t.response)==null?void 0:i.data,o=(s==null?void 0:s.message)||(s==null?void 0:s.msg)||(t==null?void 0:t.message)||(t==null?void 0:t.msg)||"未知错误";n(o,t)}}validResponse(e,t){const{validSuccess:r,validate:n}=e;return r&&n?!!n(t):!0}isSkipWarnResponse(e){return!!e.promise}send(e={},t=!1){const r=Dt({},this.settings,e.settings||{}),n=e.query||{},i=Cr(e,["settings","query"]),s=Ac(!1),o=tt.CancelToken.source();this.records[s]={settings:r,config:i,source:o};const a=this.createUrl(i),u=this.createHeaders(s,r,i),{data:c,params:l}=this.createSendData(r,i,u,t,n);return this.showLoading(r),new Promise((f,p)=>{this.axios(st(z({cancelToken:o.token},i),{url:a,headers:u,data:c,params:l})).then(h=>{var m;return this.isSkipWarnResponse(h)?f(h.promise):this.validResponse(r,h)?f(r.originResponse?h:(m=h.data)==null?void 0:m.data):(this.showError(r,h.data),p(h.data))}).catch(h=>(this.showError(r,h),p(h))).finally(()=>{delete this.records[s],this.closeLoading(r)})})}useResponse(e,t){const{response:r}=this.axios.interceptors,n=r.use(e,t);return()=>r.eject(n)}useRequest(e,t){const{request:r}=this.axios.interceptors,n=r.use(e,t);return()=>r.eject(n)}setupSkipWarn(e){if(this.stopSkipWarn&&(this.stopSkipWarn(),this.stopSkipWarn=void 0),!e.skipWarn)return;const{code:t,executor:r,callback:n,complete:i}=e.skipWarn;this.stopSkipWarn=this.useResponse(s=>{const o=(s.config.headers||{})[_i],a=this.records[o];if(!a)return s;const{data:u}=s;if(!u||typeof u!="object")return s;if((u==null?void 0:u.code)===t){n&&n(s);const c=new Promise(r).then(()=>this.send(st(z({},a.config),{settings:a.settings}),!0));c.catch(l=>l).finally(()=>{i&&i()}),s.promise=c}return s})}};function yn(e={}){const t=new Au(e),r=t.send.bind(t),n=t.cancel.bind(t),i=t.setConfig.bind(t),s=t.useRequest.bind(t),o=t.useResponse.bind(t);return Object.assign(r,st(z({},t),{instance:t,send:r,cancel:n,setConfig:i,useRequest:s,useResponse:o}))}const ar=yn({settings:{injectHeaders:!0,loading:!0,originResponse:!0}});function $u(e){const t=typeof e=="string"?{url:e}:e;return(r,n)=>ar.send(Dt({},t,n||{},{data:r}))}function r_(e){const t={};for(const[r,n]of Object.entries(e))t[r]=$u(n);return t}function n_(e,t){const r=kn(null),n=kn(),i=kn(!0);return e.then(s=>{r.value=t?t(s):s}).catch(s=>{n.value=s}).finally(()=>{i.value=!1}),{data:r,error:n,loading:i}}const Ce=typeof window<"u",i_=e=>new Promise((t,r)=>{const n=new FileReader;n.readAsDataURL(e),n.onload=()=>{t(n.result)},n.onerror=i=>{r(i)}});function Ru(e){const t={};return e?(e.forEach((r,n)=>{t[n]=typeof r=="string"?decodeURIComponent(r):r}),t):{}}function s_(e){var o;const t=e.split(","),r=(o=t[0].match(/:(.*?);/))==null?void 0:o[1],n=atob(t[1]);let i=n.length;const s=new Uint8Array(i);for(;i--;)s[i]=n.charCodeAt(i);return new Blob([s],{type:r})}function o_(e,t){const r=e;return r.lastModified=Date.now(),r.lastModifiedDate=new Date,r.name=t,r}const a_=e=>Ce?window.requestAnimationFrame(e):setTimeout(e,16),c_=e=>Ce?window.cancelAnimationFrame(e):clearTimeout(e);class ns{constructor(t={}){xt(this,"options",{type:"cache",expired:0,prefix:"__VTJ_"}),xt(this,"caches",{}),xt(this,"types"),this.types={local:Ce?window.localStorage:this.caches,session:Ce?window.sessionStorage:this.caches,cache:this.caches},this.config(t)}config(t={}){this.options=Object.assign(this.options,t)}save(t,r,n={}){const{type:i,expired:s,prefix:o}=z(z({},this.options),n),a=Date.now(),u=o+t,c=this.types[i]||this.caches,l={value:r,timestamp:a,expired:s};c===this.caches?c[u]=l:c.setItem(u,JSON.stringify(l))}get(t,r={}){const{type:n,prefix:i}=z(z({},this.options),r),s=i+t,o=this.types[n]||this.caches;let a;if(o===this.caches)a=o[s];else{const f=o.getItem(s);f&&(a=JSON.parse(f))}if(!a)return null;const{value:u,timestamp:c,expired:l}=a;return l>0&&c+l<Date.now()?(this.remove(t,r),null):u}remove(t,r={}){const{type:n,prefix:i}=z(z({},this.options),r),s=this.types[n]||this.caches,o=i+t;s===this.caches?delete s[o]:s.removeItem(o)}clear(t={}){const{type:r}=z(z({},this.options),t),n=this.types[r]||this.caches;n===this.caches?this.caches={}:n.clear()}}const Fr=new ns;function ju(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Lr={exports:{}},u_=Lr.exports,Ko;function l_(){return Ko||(Ko=1,function(e,t){(function(r,n){n(t,e)})(u_,function(r,n){var i={timeout:5e3,jsonpCallback:"callback"};function s(){return"jsonp_"+Date.now()+"_"+Math.ceil(Math.random()*1e5)}function o(c){try{delete window[c]}catch(l){window[c]=void 0}}function a(c){var l=document.getElementById(c);l&&document.getElementsByTagName("head")[0].removeChild(l)}function u(c){var l=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],f=c,p=l.timeout||i.timeout,h=l.jsonpCallback||i.jsonpCallback,m=void 0;return new Promise(function(d,b){var E=l.jsonpCallbackFunction||s(),g=h+"_"+E;window[E]=function(_){d({ok:!0,json:function(){return Promise.resolve(_)}}),m&&clearTimeout(m),a(g),o(E)},f+=f.indexOf("?")===-1?"?":"&";var y=document.createElement("script");y.setAttribute("src",""+f+h+"="+E),l.charset&&y.setAttribute("charset",l.charset),l.nonce&&y.setAttribute("nonce",l.nonce),l.referrerPolicy&&y.setAttribute("referrerPolicy",l.referrerPolicy),l.crossorigin&&y.setAttribute("crossorigin","true"),y.id=g,document.getElementsByTagName("head")[0].appendChild(y),m=setTimeout(function(){b(new Error("JSONP request to "+c+" timed out")),o(E),a(g),window[E]=function(){o(E)}},p),y.onerror=function(){b(new Error("JSONP request to "+c+" failed")),o(E),a(g),m&&clearTimeout(m)}})}n.exports=u})}(Lr,Lr.exports)),Lr.exports}var f_=l_();const h_=ju(f_);function p_(e){if(Ce){const{protocol:t,host:r,pathname:n}=location;return`${t}//${r}${e?n:""}`}else return null}function d_(e=""){const t=e.match(Vi);return t?t[0]:""}function Du(e){const t=[];for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.push([r,encodeURIComponent(e[r])].join("="));return t.join("&")}function wi(e,t,r){const n={};e=(e||location.search).replace(/^[^]*\?/,""),t=t||"&",r=r||"=";let i;const s=new RegExp("(?:^|\\"+t+")([^\\"+r+"\\"+t+"]+)(?:\\"+r+"([^\\"+t+"]*))?","g");for(;(i=s.exec(e))!==null;)i[1]!==e&&(n[decodeURIComponent(i[1])]=decodeURIComponent(i[2]||""));return n}function Cu(e,t){t=typeof t=="string"?wi(t):t;const r=e.split("?")[0],n=wi(e),i=Object.assign({},n,t),s=Du(i);return s?[r,s].join("?"):e}const se=Object.freeze(Object.defineProperty({__proto__:null,append:Cu,getCurrentHost:p_,getHost:d_,parse:wi,stringify:Du},Symbol.toStringTag,{value:"Module"}));function is(r){return L(this,arguments,function*(e,t={}){const{query:n={}}=t;e.includes("${")&&(e=rc(e)(n||{}));const i=Cu(e,n);return yield(yield h_(i,t)).json()})}var Ln,Jo;function m_(){if(Jo)return Ln;Jo=1,Ln=function(n,i,s){var o=document.head||document.getElementsByTagName("head")[0],a=document.createElement("script");typeof i=="function"&&(s=i,i={}),i=i||{},s=s||function(){},a.type=i.type||"text/javascript",a.charset=i.charset||"utf8",a.async="async"in i?!!i.async:!0,a.src=n,i.attrs&&e(a,i.attrs),i.text&&(a.text=""+i.text);var u="onload"in a?t:r;u(a,s),a.onload||t(a,s),o.appendChild(a)};function e(n,i){for(var s in i)n.setAttribute(s,i[s])}function t(n,i){n.onload=function(){this.onerror=this.onload=null,i(null,n)},n.onerror=function(){this.onerror=this.onload=null,i(new Error("Failed to load "+this.src),n)}}function r(n,i){n.onreadystatechange=function(){this.readyState!="complete"&&this.readyState!="loaded"||(this.onreadystatechange=null,i(null,n))}}return Ln}var g_=m_();const v_=ju(g_);function Ei(e,t={}){return new Promise((r,n)=>{const{library:i}=t;v_(e,t,(s,o)=>{s?n(s):r(i?window[i]:void 0)})})}const Wo={debug:-1,log:0,info:0,warn:1,error:2},y_=function(e,t,r,n){return function(...i){if(t&&Wo[t]<=Wo[e]&&console[e].apply&&(n==="*"||r.startsWith(n)))return console[e].apply(console,b_(i,r))}};function b_(e,t){return t!=="*"&&(typeof e[0]=="string"?e[0]=`[${t}] ${e[0]}`:e=["["+t+"]"].concat(e)),e}function __(e,t){if(!e)return{targetLevel:t.level,targetBizName:t.bizName};if(~e.indexOf(":")){const r=e.split(":");return{targetLevel:r[0],targetBizName:r[1]}}return{targetLevel:e,targetBizName:"*"}}const w_={level:"warn",bizName:"*"};class Pu{constructor(t){xt(this,"config"),xt(this,"options"),this.options=z(z({},w_),t);const r=typeof location<"u"?location:{},n=(/__(?:logConf|logLevel)__=([^#/&]*)/.exec(r.href)||[])[1];this.config=__(n,t)}_log(t){const{targetLevel:r,targetBizName:n}=this.config,{bizName:i}=this.options;return y_(t,r,i,n)}debug(...t){return this._log("debug")(...t)}log(...t){return this._log("log")(...t)}info(...t){return this._log("info")(...t)}warn(...t){return this._log("warn")(...t)}error(...t){return this._log("error")(...t)}}function Bu(e){return new Pu(e)}const oe=Bu({level:"log",bizName:"VTJ"});/*! js-cookie v3.0.5 | MIT */function $r(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)e[n]=r[n]}return e}var E_={read:function(e){return e[0]==='"'&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function Si(e,t){function r(i,s,o){if(!(typeof document>"u")){o=$r({},t,o),typeof o.expires=="number"&&(o.expires=new Date(Date.now()+o.expires*864e5)),o.expires&&(o.expires=o.expires.toUTCString()),i=encodeURIComponent(i).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var a="";for(var u in o)o[u]&&(a+="; "+u,o[u]!==!0&&(a+="="+o[u].split(";")[0]));return document.cookie=i+"="+e.write(s,i)+a}}function n(i){if(!(typeof document>"u"||arguments.length&&!i)){for(var s=document.cookie?document.cookie.split("; "):[],o={},a=0;a<s.length;a++){var u=s[a].split("="),c=u.slice(1).join("=");try{var l=decodeURIComponent(u[0]);if(o[l]=e.read(c,l),i===l)break}catch(f){}}return i?o[i]:o}}return Object.create({set:r,get:n,remove:function(i,s){r(i,"",$r({},s,{expires:-1}))},withAttributes:function(i){return Si(this.converter,$r({},this.attributes,i))},withConverter:function(i){return Si($r({},this.converter,i),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var ss=Si(E_,{path:"/"});function S_(e,t,r){ss.set(e,t,r)}function x_(e){return ss.get(e)}function T_(e,t){ss.remove(e,t)}const Vr=Object.freeze(Object.defineProperty({__proto__:null,get:x_,remove:T_,set:S_},Symbol.toStringTag,{value:"Module"}));function O_(e,t=""){const r=document.createElement("a");r.download=t,r.href=e,r.target="_blank",r.click()}function os(e,t="",r){const n=new Blob([e],{type:r}),i=document.createElement("a");i.download=t,i.style.display="none",i.href=URL.createObjectURL(n),i.click(),URL.revokeObjectURL(i.href)}function A_(e,t="",r){return L(this,null,function*(){return fetch(e,{credentials:"include"}).then(n=>L(this,null,function*(){const i=yield n.blob();return os(i,t,r),i}))})}function $_(e,t=""){const r=JSON.stringify(e);os(r,t,"application/json")}const tE=Object.freeze(Object.defineProperty({__proto__:null,AES:n1,LOCAL_REQUEST_ID:_i,Logger:Pu,MD5:Xy,RSA:r1,Request:Au,Storage:ns,VTJ_UTILS_VERSION:J1,arrayToKv:b1,arrayToMap:$c,arrayToTree:T1,avg:E1,axios:tt,base64:t1,blobToFile:o_,cAF:c_,camelCase:Nt,cloneDeep:ir,compress:P1,cookie:Vr,createApi:$u,createApis:r_,createRequest:yn,dataURLtoBlob:s_,dateFormat:p1,dayjs:Hi,debounce:Fi,decompress:B1,dedupArray:Rc,delay:Se,downloadBlob:os,downloadJson:$_,downloadRemoteFile:A_,downloadUrl:O_,fileToBase64:i_,flatChildren:Cc,formDataToJson:Ru,get:pa,getLogger:Bu,groupBy:Qa,isArray:pt,isArrayBuffer:kv,isBoolean:Mv,isBuffer:Re,isCarNo:c1,isClient:Ce,isDate:Uv,isDef:g1,isEmail:s1,isEqual:Hv,isFunction:ae,isIdCardNo:o1,isMobilePhone:a1,isNaN:qv,isNull:Kv,isNumber:Xa,isObject:ct,isPlainObject:ki,isString:bt,isSymbol:ur,isUndefined:Jv,isUrl:Ui,jsonp:is,kebabCase:Yv,kvToArray:_1,loadScript:Ei,logger:oe,lowerFirst:Zv,mapToObject:un,merge:Dt,mitt:Nc,noop:gf,now:v1,numberFormat:l1,numeral:Ec,omit:Cr,pathToRegexp:ln,pathToRegexpCompile:kc,pathToRegexpMatch:Ic,pathToRegexpParse:zi,pick:jc,rAF:a_,rCar:_c,rEmail:vc,rID:yc,rMobile:bc,rURL:Vi,random:y1,request:ar,set:ty,snakeCase:ry,splitParser:S1,splitStringify:x1,storage:Fr,sum:Dc,template:rc,throttle:nc,timestamp:Oc,toArray:ii,toFixed:f1,toRawType:m1,toTypeString:Tc,trim:si,uid:gt,unAES:i1,unBase64:e1,unRSA:ni,upperFirst:on,upperFirstCamelCase:ti,url:se,useApi:n_,uuid:Ac,zipObject:w1},Symbol.toStringTag,{value:"Module"}));/**!
72
72
  * Copyright (c) 2025, VTJ.PRO All rights reserved.
73
73
  * @name @vtj/renderer
74
74
  * @author CHC chenhuachun1549@dingtalk.com
75
- * @version 0.10.12
75
+ * @version 0.10.13
76
76
  * @license <a href="https://vtj.pro/license.html">MIT License</a>
77
- */const as="0.10.12";var ht=(e=>(e.Runtime="Runtime",e.Design="Design",e.Raw="Raw",e.VNode="VNode",e))(ht||{});const xi=["$el","$emit","$nextTick","$parent","$root","$attrs","$slots","$watch","$props","$options","$forceUpdate"],R_=["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeUnmount","unmounted","errorCaptured","renderTracked","renderTriggered","activated","deactivated"],Bu=["vIf","vShow","vModel","vFor","vBind","vHtml"],ku={String,Number,Boolean,Array,Object,Function,Date},$e="VtjPage",Xe="VtjHomepage",Mu="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".split(","),Iu="component,slot".split(",");function Ye(e,t){return e.map(r=>Ui(r)||r.startsWith("/")?r:`${t}${r}`)}function yn(e){return/\.css$/.test(e)}function bn(e){return/\.js$/.test(e)}function Fu(e){return/\.json$/.test(e)}function j_(e){return e.map(t=>`<script src="${se.append(t,{v:as})}"><\/script>`).join("")}function D_(e=[]){return e.map(t=>`<link rel="stylesheet" href="${se.append(t,{v:as})}" />`).join("")}function Lu(e,t=!1){return t&&e.endsWith(".prod.js")?e.replace(".prod.js",".js"):e}function Vu(e,t,r=!1){const n=e.filter(p=>!!p.enabled),i=[],s=[],o=[],a=[],u={},c={},l=[],f={};return n.forEach(({urls:p,assetsUrl:h,library:m,assetsLibrary:d,localeLibrary:b})=>{p==null||p.forEach(E=>{bn(E)&&i.push(Lu(E,r)),yn(E)&&s.push(E)}),m&&(a.push(m),u[m]=Ye(p||[],t),b&&(c[m]=b)),h&&o.push(h),d&&l.push(d),m&&d&&(f[d]=m)}),{scripts:Ye(i,t),css:Ye(s,t),materials:Ye(o,t),libraryExports:a,materialExports:Rc(l),materialMapLibrary:f,libraryMap:u,libraryLocaleMap:c}}function Uu(e,t){var s;const{name:r,parent:n,alias:i}=e;return n?(s=t[n])==null?void 0:s[i||r]:t[i||r]}function cs(e){return bt(e)?e:JSON.stringify(e)}function us(e,t,r){const n=e.CSSStyleSheet;if(n.prototype.replaceSync){const i=new n;i.id=t,i.replaceSync(r);const s=e.document,o=s.adoptedStyleSheets,a=Array.from(o).filter(u=>u.id!==t);s.adoptedStyleSheets=[...a,i]}else{const i=e.document;let s=i.getElementById(t);s?s.innerHTML=r:(s=i.createElement("style"),s.id=t,s.innerHTML=r,i.head.appendChild(s))}}function Hu(e,t){return L(this,null,function*(){const r=yield window.fetch(t).then(n=>n.text()).catch(()=>"");r&&us(window,e,r)})}function zu(e,t=window){const r=t.document,n=t.document.head;for(const i of e)if(!r.getElementById(i)){const s=r.createElement("link");s.rel="stylesheet",s.id=i,s.href=i,n.appendChild(s)}}function qu(n,i){return L(this,arguments,function*(e,t,r=window){const s=r.document,o=r.document.head;let a=r[t];return a?a.default||a:new Promise((u,c)=>{for(const l of e){const f=s.createElement("script");f.src=l,f.onload=()=>{a=r[t],a?u(a.default||a):c(null)},f.onerror=p=>{c(p)},o.appendChild(f)}})})}function Ku(e){return ae(e)||ae(e==null?void 0:e.install)}function Ju(e){return Iu.includes(e)}function Wu(e){return Mu.includes(e)}function Ce(e=window){const t=window==null?void 0:window.Mock;if(t)return t;const r=e==null?void 0:e.Mock;if(r&&window)return window.Mock=r,r}function Pe(e,t,r=!1,n=!1){var i;try{const s=['"use strict";',"var __self = arguments[0];"];s.push("return ");let o=(e.value||"").trim();o=o.replace(/this(\W|$)/g,(u,c)=>`__self${c}`),o=s.join(`
78
- `)+o;const a=`with(${r?"{}":"$scope || {}"}) { ${o} }`;return new Function("$scope",a)(t)}catch(s){if(oe.error("parseExpression.error",s,e,(i=t==null?void 0:t.__self)!=null?i:t),n)throw s}}function Yr(e,t,r=!1,n=!1){var s;const i=Pe(e,t,r,n);if(typeof i!="function"&&(oe.error("parseFunction.error","not a function",e,(s=t==null?void 0:t.__self)!=null?s:t),n))throw new Error(`"${e.value}" not a function`);return i}function wt(e){return e&&e.type==="JSExpression"}function Ie(e){return typeof e=="object"&&e&&e.type==="JSFunction"}function Yu(e){return wt(e)||Ie(e)}function C_(e){return Yu(e)?e.value:JSON.stringify(e)}const P_={session:!1,authKey:"Authorization",storageKey:"ACCESS_STORAGE",storagePrefix:"__VTJ_",unauthorized:void 0,auth:"/#/login",redirectParam:"r",unauthorizedCode:401,unauthorizedMessage:"登录已经失效,请重新登录!",noPermissionMessage:"无权限访问该页面",appName:""},ls=Symbol("access");class Gu{constructor(t){A(this,"options");A(this,"data",null);A(this,"mode",ht.Raw);this.options=Object.assign({},P_,t),this.loadData()}connect(t){const{mode:r,router:n,request:i}=t;this.mode=r,n&&this.mode===ht.Raw&&this.setGuard(n),i&&this.setRequest(i)}login(t){const{storageKey:r,storagePrefix:n,session:i,authKey:s}=this.options;this.setData(t),this.data&&(Ir.save(r,t,{type:"local",prefix:n}),i&&Lr.set(s,this.data.token))}clear(){const{storageKey:t,storagePrefix:r,session:n,authKey:i}=this.options;this.data=null,Ir.remove(t,{type:"local",prefix:r}),n&&Lr.remove(i)}logout(){this.clear(),this.toLogin()}getData(){return this.data?this.data:(this.loadData(),this.data)}getToken(){var t;return this.data||this.loadData(),(t=this.data)==null?void 0:t.token}can(t){const{appName:r}=this.options,{permissions:n={}}=this.data||{};return typeof t=="function"?t(n):ii(t).every(i=>n[i]||n[r+"."+i])}some(t){const{appName:r}=this.options,{permissions:n={}}=this.data||{};return ii(t).some(i=>n[i]||n[r+"."+i])}install(t){t.config.globalProperties.$access||(t.config.globalProperties.$access=this,t.provide(ls,this))}isAuthPath(t){const{auth:r,isAuth:n}=this.options;if(n)return n(t);if(t.path&&typeof r=="string"){const i=r.split("#")[1]||r;return t.path===i}return!1}toLogin(){const{auth:t,redirectParam:r}=this.options;if(!t)return;const n=r?`?${r}=${encodeURIComponent(location.href)}`:"";typeof t=="function"?t(n):location.href=r?`${t}${n}`:t}setData(t){const{privateKey:r}=this.options;if(Array.isArray(t)&&r){const n=t.map(i=>ni(i,r));this.data=JSON.parse(n.join(""));return}if(typeof t=="string")try{const n=r?ni(t,r):t;n?this.data=JSON.parse(n):console.warn("RSA解密失败或登录信息缺失")}catch(n){console.warn(n)}else this.data=t}loadData(){const{storageKey:t,storagePrefix:r}=this.options,n=Ir.get(t,{type:"local",prefix:r});this.setData(n||null)}isLogined(){const{session:t,authKey:r}=this.options;return t&&r?!!Lr.get(r):!!this.getToken()}hasRoutePermission(t){if(t.name===$e){const r=t.params.id;return r&&this.can(r)}return!0}setGuard(t){t.beforeEach((r,n,i)=>this.guard(r,i))}guard(t,r){return L(this,null,function*(){if(this.isWhiteList(t)||this.isAuthPath(t))return r();if(this.isLogined()){if(this.hasRoutePermission(t))return r();{const{noPermissionMessage:n="无权限访问",unauthorized:i=!1}=this.options;return yield this.showTip(n),ae(i)?(i(),r(!1)):bt(i)?r(i):r(!1)}}r(!1),this.toLogin()})}isWhiteList(t){const{whiteList:r}=this.options;return r?Array.isArray(r)?r.some(n=>t.fullPath.startsWith(n)):r(t):!1}isUnauthorized(t){var n;const{unauthorizedCode:r=401}=this.options;return t.status===r||((n=t.data)==null?void 0:n.code)===r}showUnauthorizedAlert(t){return L(this,null,function*(){const{unauthorizedMessage:r="登录已失效"}=this.options;this.isUnauthorized(t)&&(yield this.showTip(r),this.toLogin())})}showTip(t){return L(this,null,function*(){const{alert:r}=this.options;return r?(yield Se(150),yield r(t,{title:"提示",type:"warning"}).catch(()=>!1)):!1})}setRequest(t){t.useRequest(r=>{var n,i;return(n=this.data)!=null&&n.token&&(r.headers[this.options.authKey]=(i=this.data)==null?void 0:i.token),r}),t.useResponse(r=>L(this,null,function*(){return yield this.showUnauthorizedAlert(r),r}),r=>L(this,null,function*(){const n=r.response||r||{};return yield this.showUnauthorizedAlert(n),Promise.reject(r)}))}}function Zu(){return Go(ls,null)}function N_(e={}){const{notify:t,loading:r,settings:n={},Startup:i}=e;let s=null;return{request:vn({settings:z({type:"form",validSuccess:!0,originResponse:!1,loading:!0,validate:o=>{var a,u;return((a=o.data)==null?void 0:a.code)===0||!!((u=o.data)!=null&&u.success)},failMessage:!0,showError:o=>{t&&t(o||"未知错误")},showLoading:()=>{s&&s.close(),r&&(s=r())},hideLoading:()=>{s&&(s.close(),s=null)}},n)}),jsonp:is,notify:t,loading:r,startupComponent:i}}function Xu(e,t){const{jsonp:r,request:n}=t;if(e.method==="jsonp")return(i={})=>r(e.url,st(z({},e.jsonpOptions),{query:i}));{const i=e.headers?Pe(e.headers,{},!0):void 0,s={url:e.url,method:e.method,settings:st(z({},e.settings),{headers:i})};return(o,a)=>(delete s.data,n.send(Dt(s,a||{},{data:o})))}}function Qu(e,t){const{metaQuery:r}=t;if(!r)return;const{code:n,queryCode:i}=e;return(s,o)=>{if(!r){console.warn("adapter.metaQuery is not defined!");return}return r(n,i,s,o)}}function tl(e=[],t=[],r){const n={};for(const i of e)n[i.id]=Xu(i,r);for(const i of t)n[i.id]=Qu(i,r);return n}function el(){return L(this,arguments,function*(e=[],t=window){const r=Ce(t);r&&(fs(t),e.forEach(n=>nl(r,n)))})}function rl(e,t=window){const r=Ie(e.mockTemplate)&&e.mockTemplate.value?Yr(e.mockTemplate,{},!0):void 0,n=Ce(t);return(...i)=>L(this,null,function*(){let s={};if(r)try{s=yield r.apply(r,i)}catch(o){oe.warn("模拟数据模版异常",o)}return n==null?void 0:n.mock(s)})}function nl(e,t){if(!t.mock)return;const{url:r,mockTemplate:n}=t;if(r&&n){const i=un(`${r}(.*)`),s=Mc(r,{decode:decodeURIComponent}),o=Pe(n,{},!0);e.mock(i,a=>{var f;const u=se.parse(a.url)||{},c=a.body instanceof FormData?Ru(a.body):a.body,l=(f=s(a.url))==null?void 0:f.params;return Object.assign(a,{data:c,params:u,query:l}),e.mock(o(a))})}}function fs(e=window){const t=Ce(e);t&&(t._mocked={})}class il{constructor(t){A(this,"__id",null);A(this,"__mode");A(this,"__instance",null);A(this,"__contextRefs",{});A(this,"__refs",{});A(this,"context",{});A(this,"state",{});A(this,"props",{});A(this,"$props",{});A(this,"$refs",{});A(this,"$el",null);A(this,"$emit",null);A(this,"$nextTick",null);A(this,"$parent",null);A(this,"$root",null);A(this,"$attrs",null);A(this,"$slots",null);A(this,"$watch",null);A(this,"$options",null);A(this,"$forceUpdate",null);A(this,"$components",{});A(this,"$libs",{});A(this,"$apis",{});A(this,"__transform",{});const{mode:r,dsl:n,attrs:i}=t;this.__mode=r,n&&(this.__id=n.id||null,this.__transform=n.transform||{}),i&&Object.assign(this,i)}setup(t,r=Xr){const n=r.getCurrentInstance();if(!n)return;this.__refs={},this.$refs={},this.context={},this.__contextRefs={},this.__instance=n.proxy;const i=n.appContext.config.globalProperties;Object.assign(this,i),Object.assign(this,t||{}),this.__proxy(),r.onMounted(()=>{this.__proxy()}),r.onUnmounted(()=>{this.__cleanup()}),r.onBeforeUpdate(()=>{this.__reset()})}__proxy(){this.__instance&&xi.forEach(t=>{var r;this[t]=(r=this.__instance)==null?void 0:r[t]})}__cleanup(){xi.forEach(t=>{this[t]=null}),this.__reset()}__reset(){this.__refs={},this.$refs={},this.__contextRefs={},this.context={}}__parseFunction(t){var r;if(t)if(this.__mode===ht.Runtime){const{id:n,type:i}=t,s=n&&(r=this.__transform[n])!=null?r:t.value;return Yr({type:i,value:s},this)}else return Yr(t,this)}__parseExpression(t){var r;if(t)if(this.__mode===ht.Runtime){const{id:n,type:i}=t,s=n&&(r=this.__transform[n])!=null?r:t.value;return Pe({type:i,value:s},this)}else return Pe(t,this)}__ref(t=null,r){if(this.__mode!==ht.VNode)return t&&t!==this.__id&&(this.__contextRefs[t]=this),n=>L(this,null,function*(){var s,o;yield Se(0);let i=(n==null?void 0:n.$vtjEl)||(n==null?void 0:n.$el)||((o=(s=n==null?void 0:n._)==null?void 0:s.vnode)==null?void 0:o.el)||n;if(!i){typeof r=="string"&&(delete this.$refs[r],t&&delete this.__refs[t]);return}return i.nodeType===3&&i.nextSibling&&(i=i.nextSibling),i.__vtj__=t,ht.Design===this.__mode&&(i.__context__=this,i.draggable=!0),t&&(this.__refs[t]=this.__getRefEl(this.__refs,t,n)),typeof r=="function"?r(n):r&&(this.$refs[r]=this.__getRefEl(this.$refs,r,n)),n})}__getRefEl(t,r,n){const i=t[r];if(i&&n!==i){const s=new Set([].concat(i,n));return Array.from(s)}else return n}__clone(t={}){const r=z(z({},this.context),t),n=st(z({},r),{context:r});return n.context.__proto__=this.context,n.__proto__=this,n}}function Gr(e){var f,p;const{Vue:t=Xr,mode:r=ht.Runtime,components:n={},libs:i={},apis:s={},loader:o}=e,a=t.computed(()=>e.dsl),u={$components:n,$libs:i,$apis:s},c=new il({mode:r,dsl:a.value,attrs:u}),l=t.defineComponent(z({name:a.value.name,props:z({},k_((f=a.value.props)!=null?f:[],c)),setup(h){var y,_,S,v;c.$props=h,c.props=h,a.value.id&&us(e.window||window,a.value.id,a.value.css||""),c.state=M_(t,(y=a.value.state)!=null?y:{},c);const m=I_(t,(_=a.value.computed)!=null?_:{},c),d=F_((S=a.value.methods)!=null?S:{},c),b=L_(t,a.value.inject,c),E=sl(a.value.dataSources||{},c),g=z(z(z(z({},b),m),d),E);return c.setup(g,t),V_(t,(v=a.value.watch)!=null?v:[],c),{vtj:c}},emits:B_(a.value.emits),expose:["vtj"],render(){if(!a.value.nodes)return null;const h=a.value.nodes||[];return h.length===1?ar(h[0],c,t,o):h.map(m=>ar(m,c,t,o))}},U_((p=a.value.lifeCycles)!=null?p:{},c)));return{renderer:t.markRaw(l),context:c}}function B_(e=[]){return e.map(t=>bt(t)?t:t.name)}function k_(e=[],t){const r=n=>n?(Array.isArray(n)?n:[n]).map(i=>ku[i]):void 0;return e.map(n=>bt(n)?{name:n}:{name:n.name,type:n.type,required:n.required,default:wt(n.default)?t.__parseExpression(n.default):n.default}).reduce((n,i)=>(n[i.name]={type:r(i.type),required:i.required,default:i.default},n),{})}function M_(e,t,r){return e.reactive(Object.keys(t||{}).reduce((n,i)=>{let s=t[i];return wt(s)?s=r.__parseExpression(s):Ie(s)&&(s=r.__parseFunction(s)),n[i]=s,n},{}))}function I_(e,t,r){return Object.entries(t!=null?t:{}).reduce((n,[i,s])=>(n[i]=e.computed(r.__parseFunction(s)),n),{})}function F_(e,t){return Object.entries(e!=null?e:{}).reduce((r,[n,i])=>(r[n]=t.__parseFunction(i),r),{})}function L_(e,t=[],r){return t.reduce((n,i)=>{var c;const{name:s,from:o}=i||{};i.default;const a=wt(o)?r.__parseExpression(o)||s:o!=null?o:s,u=wt(i.default)?r.__parseExpression(i.default):(c=i.default)!=null?c:null;return n[s]=e.inject(a,u),n},{})}function sl(e,t){return Object.keys(e).reduce((r,n)=>{const i=e[n];if(i.type==="mock")r[n]=rl(i);else if(i.ref){const s=t.$apis[i.ref],o=Ie(i.transform)?i.transform.value?t.__parseFunction(i.transform):void 0:i.transform;r[n]=(...a)=>L(this,null,function*(){const u=yield s.apply(t,a);return o?o(u):u})}return r},{})}function V_(e,t=[],r){t.forEach(n=>{e.watch(r.__parseExpression(n.source),r.__parseFunction(n.handler),{deep:n.deep,immediate:n.immediate})})}function U_(e,t){return Object.entries(e!=null?e:{}).reduce((r,[n,i])=>(r[n]=t.__parseFunction(i),r),{})}let Vn=[],Qt={};const ol=e=>e;function hs(r){return L(this,arguments,function*(e,t=window){const{urls:n=[],library:i}=e,s=n.filter(a=>bn(a));if(s.length===0||!i)return null;const o=n.filter(a=>yn(a));return o.length&&zu(o,t),yield qu(s,i,t).catch(a=>(console.warn("loadScriptUrl error",s,i,a),null))})}function Zr(e){const{getDsl:t,getDslByUrl:r,options:n}=e;return n.window&&(Vn.forEach(i=>{delete n.window[i]}),Vn=[]),(i,s,o=Xr)=>{if(!s||typeof s=="string")return i;if(s.type==="Schema"&&s.id){let a=Qt[s.id];return a||(a=Qt[s.id]=o.defineAsyncComponent(()=>L(this,null,function*(){const u=yield t(s.id);return u&&(u.name=i),u?Gr(st(z({},n),{Vue:o,dsl:u,mode:ht.Runtime,loader:Zr(e)})).renderer:null})),a)}if(s.type==="UrlSchema"&&s.url){let a=Qt[s.url];return a||(a=Qt[s.url]=o.defineAsyncComponent(()=>L(this,null,function*(){const u=yield r(s.url);return u&&(u.name=i),u?Gr(st(z({},n),{Vue:o,dsl:u,mode:ht.Runtime,loader:Zr(e)})).renderer:null})),a)}if(s.type==="Plugin"){let a=s.library?Qt[s.library]:null;return a||(s.library&&Vn.push(s.library),a=Qt[s.library||Symbol()]=o.defineAsyncComponent(()=>L(this,null,function*(){return(yield hs(s,n.window))||(console.warn("getPlugin result is null",s),null)})),a)}return i}}function H_(){Qt={}}function ar(e,t,r=Xr,n=ol){var d;if(!e||!e.name||e.invisible)return null;const i=(d=r.getCurrentInstance())==null?void 0:d.appContext,{id:s=null,directives:o=[]}=e,{vIf:a,vFor:u,vShow:c,vModels:l,vBind:f,vHtml:p,others:h}=q_(o);if(a&&!K_(a,t))return null;const m=b=>{var $,V,w,T;const E=b.$components,g=(()=>{var C,M,D,N;if(e.name==="component")return J_(b,(C=e.props)==null?void 0:C.is);if(e.name==="slot")return e.name;const F=n(e.name,e.from,r);return bt(F)?Ju(F)||Wu(F)?F:(N=(D=E[F])!=null?D:(M=i==null?void 0:i.app)==null?void 0:M.component(F))!=null?N:F:F})(),y=W_(s,($=e.props)!=null?$:{},b),_=Y_(r,(V=e.events)!=null?V:{},b);if(e.name==="slot")return G_(r,e,y,b,n);f&&Object.assign(y,b.__parseExpression(f.value)),c&&(y.style=Object.assign((w=y.style)!=null?w:{},X_(c,b))),p&&Object.assign(y,Q_(p,b)),l.forEach(F=>{Object.assign(y,tw(r,F,b))});const S=ew(r,(T=e.children)!=null?T:[],b,n,e);let v=r.createVNode(g,z(z({},y),_),S);const x=i?z_(i,h,b):[];return x.length&&(v=r.withDirectives(v,x)),v};return u?iw(u,m,t):m(t)}function z_(e,t,r){const n=e.app;return t.map(i=>{const s=typeof i.name=="string"?n.directive(i.name):r.__parseExpression(i.name);if(!s)return null;const o=[s];return i.value&&o.push(r.__parseExpression(i.value)),i.arg&&o.push(i.arg),i.modifiers&&o.push(i.modifiers),o}).filter(i=>!!i)}function q_(e=[]){const t=e.find(u=>Bt(u.name)==="vIf"),r=e.find(u=>Bt(u.name)==="vFor"),n=e.find(u=>Bt(u.name)==="vShow"),i=e.find(u=>Bt(u.name)==="vBind"),s=e.find(u=>Bt(u.name)==="vHtml"),o=e.filter(u=>Bt(u.name)==="vModel"),a=e.filter(u=>!Bu.includes(Bt(u.name)));return{vIf:t,vFor:r,vShow:n,vModels:o,vBind:i,others:a,vHtml:s}}function K_(e,t){return!!t.__parseExpression(e.value)}function J_(e,t){return t?wt(t)?e.__parseExpression(t):t:"div"}function W_(e,t,r){const n=Ti(t,r);return n.ref=r.__ref(e,n.ref),n}function Ti(e,t){return wt(e)?t.__parseExpression(e):Ie(e)?t.__parseFunction(e):Array.isArray(e)?e.map(r=>Ti(r,t)):typeof e=="object"?Object.keys(e||{}).reduce((r,n)=>{let i=e[n];return r[n]=Ti(i,t),r},{}):e}function Y_(e,t,r){const n=["passive","capture","once"],i={capture:"Capture",once:"Once",passive:"OnceCapture"};return Object.keys(t||{}).reduce((s,o)=>{const a=t[o],u=ps(a.modifiers),c=u.find(p=>n.includes(p)),l="on"+sn(o)+(c&&i[c]||""),f=r.__parseFunction(a.handler);return f&&(s[l]=e.withModifiers(f,u)),s},{})}function ps(e={},t=!1){const r=Object.keys(e);return t?r.map(n=>"."+n):r}function G_(e,t,r,n,i){var u;const{children:s}=t,o=Z_(t,n),a=(u=n.$slots)==null?void 0:u[o.name];return a?a(r):s?bt(s)?e.createTextVNode(s):wt(s)?e.createTextVNode(cs(n.__parseExpression(s))):Array.isArray(s)?s.map(c=>ar(c,n,e,i)):null:null}function Z_(e,t){const{props:r}=e,n=(r==null?void 0:r.name)||"default";return{name:wt(n)?t.__parseExpression(n):n,params:[]}}function X_(e,t){return t.__parseExpression(e.value)?{}:{display:"none"}}function Q_(e,t){return{innerHTML:t.__parseExpression(e.value)||""}}function tw(e,t,r){var a;const n={type:"JSFunction",value:(a=t.value)!=null&&a.value?`(v) => {
77
+ */const Ae="0.10.13";var ht=(e=>(e.Runtime="Runtime",e.Design="Design",e.Raw="Raw",e.VNode="VNode",e))(ht||{});const xi=["$el","$emit","$nextTick","$parent","$root","$attrs","$slots","$watch","$props","$options","$forceUpdate"],R_=["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeUnmount","unmounted","errorCaptured","renderTracked","renderTriggered","activated","deactivated"],Nu=["vIf","vShow","vModel","vFor","vBind","vHtml"],ku={String,Number,Boolean,Array,Object,Function,Date},$e="VtjPage",Xe="VtjHomepage",Iu="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".split(","),Mu="component,slot".split(",");function Ge(e,t){return e.map(r=>Ui(r)||r.startsWith("/")?r:`${t}${r}`)}function bn(e){return/\.css$/.test(e)}function _n(e){return/\.js$/.test(e)}function Fu(e){return/\.json$/.test(e)}function j_(e){return e.map(t=>`<script src="${se.append(t,{v:Ae})}"><\/script>`).join("")}function D_(e=[]){return e.map(t=>`<link rel="stylesheet" href="${se.append(t,{v:Ae})}" />`).join("")}function Lu(e,t=!1){return t&&e.endsWith(".prod.js")?e.replace(".prod.js",".js"):e}function Vu(e,t,r=!1){const n=e.filter(p=>!!p.enabled),i=[],s=[],o=[],a=[],u={},c={},l=[],f={};return n.forEach(({urls:p,assetsUrl:h,library:m,assetsLibrary:d,localeLibrary:b})=>{p==null||p.forEach(E=>{_n(E)&&i.push(Lu(E,r)),bn(E)&&s.push(E)}),m&&(a.push(m),u[m]=Ge(p||[],t),b&&(c[m]=b)),h&&o.push(h),d&&l.push(d),m&&d&&(f[d]=m)}),{scripts:Ge(i,t),css:Ge(s,t),materials:Ge(o,t),libraryExports:a,materialExports:Rc(l),materialMapLibrary:f,libraryMap:u,libraryLocaleMap:c}}function Uu(e,t){var s;const{name:r,parent:n,alias:i}=e;return n?(s=t[n])==null?void 0:s[i||r]:t[i||r]}function as(e){return bt(e)?e:JSON.stringify(e)}function cs(e,t,r){const n=e.CSSStyleSheet;if(n.prototype.replaceSync){const i=new n;i.id=t,i.replaceSync(r);const s=e.document,o=s.adoptedStyleSheets,a=Array.from(o).filter(u=>u.id!==t);s.adoptedStyleSheets=[...a,i]}else{const i=e.document;let s=i.getElementById(t);s?s.innerHTML=r:(s=i.createElement("style"),s.id=t,s.innerHTML=r,i.head.appendChild(s))}}function Hu(e,t){return L(this,null,function*(){const r=yield window.fetch(t).then(n=>n.text()).catch(()=>"");r&&cs(window,e,r)})}function zu(e,t=window){const r=t.document,n=t.document.head;for(const i of e)if(!r.getElementById(i)){const s=r.createElement("link");s.rel="stylesheet",s.id=i,s.href=i,n.appendChild(s)}}function qu(n,i){return L(this,arguments,function*(e,t,r=window){const s=r.document,o=r.document.head;let a=r[t];return a?a.default||a:new Promise((u,c)=>{for(const l of e){const f=s.createElement("script");f.src=l,f.onload=()=>{a=r[t],a?u(a.default||a):c(null)},f.onerror=p=>{c(p)},o.appendChild(f)}})})}function Ku(e){return ae(e)||ae(e==null?void 0:e.install)}function Ju(e){return Mu.includes(e)}function Wu(e){return Iu.includes(e)}function Pe(e=window){const t=window==null?void 0:window.Mock;if(t)return t;const r=e==null?void 0:e.Mock;if(r&&window)return window.Mock=r,r}function C_(e,t,r){Object.assign(t.meta,r.meta);const n=e==null?void 0:e._container;(r==null?void 0:r.type)==="page"&&n.classList.add("is-page"),r!=null&&r.pure&&n.classList.add("is-pure")}function Be(e,t,r=!1,n=!1){var i;try{const s=['"use strict";',"var __self = arguments[0];"];s.push("return ");let o=(e.value||"").trim();o=o.replace(/this(\W|$)/g,(u,c)=>`__self${c}`),o=s.join(`
78
+ `)+o;const a=`with(${r?"{}":"$scope || {}"}) { ${o} }`;return new Function("$scope",a)(t)}catch(s){if(oe.error("parseExpression.error",s,e,(i=t==null?void 0:t.__self)!=null?i:t),n)throw s}}function Gr(e,t,r=!1,n=!1){var s;const i=Be(e,t,r,n);if(typeof i!="function"&&(oe.error("parseFunction.error","not a function",e,(s=t==null?void 0:t.__self)!=null?s:t),n))throw new Error(`"${e.value}" not a function`);return i}function wt(e){return e&&e.type==="JSExpression"}function Fe(e){return typeof e=="object"&&e&&e.type==="JSFunction"}function Yu(e){return wt(e)||Fe(e)}function P_(e){return Yu(e)?e.value:JSON.stringify(e)}const B_={session:!1,authKey:"Authorization",storageKey:"ACCESS_STORAGE",storagePrefix:"__VTJ_",unauthorized:void 0,auth:"/#/login",redirectParam:"r",unauthorizedCode:401,unauthorizedMessage:"登录已经失效,请重新登录!",noPermissionMessage:"无权限访问该页面",appName:""},us=Symbol("access");class ls{constructor(t){$(this,"options");$(this,"data",null);$(this,"mode",ht.Raw);this.options=Object.assign({},B_,t),this.loadData()}connect(t){const{mode:r,router:n,request:i}=t;this.mode=r,n&&this.mode===ht.Raw&&this.setGuard(n),i&&this.setRequest(i)}login(t){const{storageKey:r,storagePrefix:n,session:i,authKey:s}=this.options;this.setData(t),this.data&&(Fr.save(r,t,{type:"local",prefix:n}),i&&Vr.set(s,this.data.token))}clear(){const{storageKey:t,storagePrefix:r,session:n,authKey:i}=this.options;this.data=null,Fr.remove(t,{type:"local",prefix:r}),n&&Vr.remove(i)}logout(){this.clear(),this.toLogin()}getData(){return this.data?this.data:(this.loadData(),this.data)}getToken(){var t;return this.data||this.loadData(),(t=this.data)==null?void 0:t.token}can(t){const{appName:r}=this.options,{permissions:n={}}=this.data||{};return typeof t=="function"?t(n):ii(t).every(i=>n[i]||n[r+"."+i])}some(t){const{appName:r}=this.options,{permissions:n={}}=this.data||{};return ii(t).some(i=>n[i]||n[r+"."+i])}install(t){t.config.globalProperties.$access||(t.config.globalProperties.$access=this,t.provide(us,this))}isAuthPath(t){const{auth:r,isAuth:n}=this.options;if(n)return n(t);if(t.path&&typeof r=="string"){const i=r.split("#")[1]||r;return t.path===i}return!1}toLogin(){const{auth:t,redirectParam:r}=this.options;if(!t)return;const n=r?`?${r}=${encodeURIComponent(location.href)}`:"";typeof t=="function"?t(n):location.href=r?`${t}${n}`:t}setData(t){const{privateKey:r}=this.options;if(Array.isArray(t)&&r){const n=t.map(i=>ni(i,r));this.data=JSON.parse(n.join(""));return}if(typeof t=="string")try{const n=r?ni(t,r):t;n?this.data=JSON.parse(n):console.warn("RSA解密失败或登录信息缺失")}catch(n){console.warn(n)}else this.data=t}loadData(){const{storageKey:t,storagePrefix:r}=this.options,n=Fr.get(t,{type:"local",prefix:r});this.setData(n||null)}isLogined(){const{session:t,authKey:r}=this.options;return t&&r?!!Vr.get(r):!!this.getToken()}hasRoutePermission(t){if(t.name===$e){const r=t.params.id;return r&&this.can(r)}return!0}setGuard(t){t.beforeEach((r,n,i)=>this.guard(r,i))}guard(t,r){return L(this,null,function*(){if(this.isWhiteList(t)||this.isAuthPath(t))return r();if(this.isLogined()){if(this.hasRoutePermission(t))return r();{const{noPermissionMessage:n="无权限访问",unauthorized:i=!1}=this.options;return yield this.showTip(n),ae(i)?(i(),r(!1)):bt(i)?r(i):r(!1)}}r(!1),this.toLogin()})}isWhiteList(t){const{whiteList:r}=this.options;return r?Array.isArray(r)?r.some(n=>t.fullPath.startsWith(n)):r(t):!1}isUnauthorized(t){var n;const{unauthorizedCode:r=401}=this.options;return t.status===r||((n=t.data)==null?void 0:n.code)===r}showUnauthorizedAlert(t){return L(this,null,function*(){const{unauthorizedMessage:r="登录已失效"}=this.options;this.isUnauthorized(t)&&(yield this.showTip(r),this.toLogin())})}showTip(t){return L(this,null,function*(){const{alert:r}=this.options;return r?(yield Se(150),yield r(t,{title:"提示",type:"warning"}).catch(()=>!1)):!1})}setRequest(t){t.useRequest(r=>{var n,i;return(n=this.data)!=null&&n.token&&(r.headers[this.options.authKey]=(i=this.data)==null?void 0:i.token),r}),t.useResponse(r=>L(this,null,function*(){return yield this.showUnauthorizedAlert(r),r}),r=>L(this,null,function*(){const n=r.response||r||{};return yield this.showUnauthorizedAlert(n),Promise.reject(r)}))}}function Gu(){return Go(us,null)}function N_(e={}){const{notify:t,loading:r,settings:n={},Startup:i,access:s,remote:o="https://lcdp.vtj.pro"}=e;let a=null;return{request:yn({settings:z({type:"form",validSuccess:!0,originResponse:!1,loading:!0,validate:u=>{var c,l;return((c=u.data)==null?void 0:c.code)===0||!!((l=u.data)!=null&&l.success)},failMessage:!0,showError:u=>{t&&t(u||"未知错误")},showLoading:()=>{a&&a.close(),r&&(a=r())},hideLoading:()=>{a&&(a.close(),a=null)}},n)}),jsonp:is,notify:t,loading:r,startupComponent:i,remote:o,access:s?Zu(s):void 0}}function Zu(e={}){const t={storageKey:"RRO_IDE_ACCESS_STORAGE__",auth:"https://lcdp.vtj.pro/auth.html",privateKey:"MIIBOgIBAAJBAKoIzmn1FYQ1YOhOBw9EhABxZ+PySAIaydI+zdhoKflrdgJ4A5E4/5gbQmRpk09hPWG8nvX7h+l/QLU8kXxAIBECAwEAAQJAAlgpxQY6sByLsXqzJcthC8LSGsLf2JEJkHwlnpwFqlEV8UCkoINpuZ2Wzl+aftURu5rIfAzRCQBvHmeOTW9/zQIhAO5ufWDmnSLyfAAsNo5JRNpVuLFCFodR8Xm+ulDlosR/AiEAtpAltyP9wmCABKG/v/hrtTr3mcvFNGCjoGa9bUAok28CIHbrVs9w1ijrBlvTsXYwJw46uP539uKRRT4ymZzlm9QjAiB+1KH/G9f9pEEL9rtaSOG7JF5D0JcOjlze4MGVFs+ZrQIhALKOUFBNr2zEsyJIjw2PlvEucdlG77UniszjXTROHSPd"};return new ls(Object.assign(t,e))}function Qu(e,t){const{jsonp:r,request:n}=t;if(e.method==="jsonp")return(i={})=>r(e.url,st(z({},e.jsonpOptions),{query:i}));{const i=e.headers?Be(e.headers,{},!0):void 0,s={url:e.url,method:e.method,settings:st(z({},e.settings),{headers:i})};return(o,a)=>(delete s.data,n.send(Dt(s,a||{},{data:o})))}}function Xu(e,t){const{metaQuery:r}=t;if(!r)return;const{code:n,queryCode:i}=e;return(s,o)=>{if(!r){console.warn("adapter.metaQuery is not defined!");return}return r(n,i,s,o)}}function tl(e=[],t=[],r){const n={};for(const i of e)n[i.id]=Qu(i,r);for(const i of t)n[i.id]=Xu(i,r);return n}function el(){return L(this,arguments,function*(e=[],t=window){const r=Pe(t);r&&(fs(t),e.forEach(n=>nl(r,n)))})}function rl(e,t=window){const r=Fe(e.mockTemplate)&&e.mockTemplate.value?Gr(e.mockTemplate,{},!0):void 0,n=Pe(t);return(...i)=>L(this,null,function*(){let s={};if(r)try{s=yield r.apply(r,i)}catch(o){oe.warn("模拟数据模版异常",o)}return n==null?void 0:n.mock(s)})}function nl(e,t){if(!t.mock)return;const{url:r,mockTemplate:n}=t;if(r&&n){const i=ln(`${r}(.*)`),s=Ic(r,{decode:decodeURIComponent}),o=Be(n,{},!0);e.mock(i,a=>{var f;const u=se.parse(a.url)||{},c=a.body instanceof FormData?Ru(a.body):a.body,l=(f=s(a.url))==null?void 0:f.params;return Object.assign(a,{data:c,params:u,query:l}),e.mock(o(a))})}}function fs(e=window){const t=Pe(e);t&&(t._mocked={})}class il{constructor(t){$(this,"__id",null);$(this,"__mode");$(this,"__instance",null);$(this,"__contextRefs",{});$(this,"__refs",{});$(this,"context",{});$(this,"state",{});$(this,"props",{});$(this,"$props",{});$(this,"$refs",{});$(this,"$el",null);$(this,"$emit",null);$(this,"$nextTick",null);$(this,"$parent",null);$(this,"$root",null);$(this,"$attrs",null);$(this,"$slots",null);$(this,"$watch",null);$(this,"$options",null);$(this,"$forceUpdate",null);$(this,"$components",{});$(this,"$libs",{});$(this,"$apis",{});$(this,"__transform",{});const{mode:r,dsl:n,attrs:i}=t;this.__mode=r,n&&(this.__id=n.id||null,this.__transform=n.transform||{}),i&&Object.assign(this,i)}setup(t,r=Xr){const n=r.getCurrentInstance();if(!n)return;this.__refs={},this.$refs={},this.context={},this.__contextRefs={},this.__instance=n.proxy;const i=n.appContext.config.globalProperties;Object.assign(this,i),Object.assign(this,t||{}),this.__proxy(),r.onMounted(()=>{this.__proxy()}),r.onUnmounted(()=>{this.__cleanup()}),r.onBeforeUpdate(()=>{this.__reset()})}__proxy(){this.__instance&&xi.forEach(t=>{var r;this[t]=(r=this.__instance)==null?void 0:r[t]})}__cleanup(){xi.forEach(t=>{this[t]=null}),this.__reset()}__reset(){this.__refs={},this.$refs={},this.__contextRefs={},this.context={}}__parseFunction(t){var r;if(t)if(this.__mode===ht.Runtime){const{id:n,type:i}=t,s=n&&(r=this.__transform[n])!=null?r:t.value;return Gr({type:i,value:s},this)}else return Gr(t,this)}__parseExpression(t){var r;if(t)if(this.__mode===ht.Runtime){const{id:n,type:i}=t,s=n&&(r=this.__transform[n])!=null?r:t.value;return Be({type:i,value:s},this)}else return Be(t,this)}__ref(t=null,r){if(this.__mode!==ht.VNode)return t&&t!==this.__id&&(this.__contextRefs[t]=this),n=>L(this,null,function*(){var s,o;yield Se(0);let i=(n==null?void 0:n.$vtjEl)||(n==null?void 0:n.$el)||((o=(s=n==null?void 0:n._)==null?void 0:s.vnode)==null?void 0:o.el)||n;if(!i){typeof r=="string"&&(delete this.$refs[r],t&&delete this.__refs[t]);return}return i.nodeType===3&&i.nextSibling&&(i=i.nextSibling),i.__vtj__=t,ht.Design===this.__mode&&(i.__context__=this,i.draggable=!0),t&&(this.__refs[t]=this.__getRefEl(this.__refs,t,n)),typeof r=="function"?r(n):r&&(this.$refs[r]=this.__getRefEl(this.$refs,r,n)),n})}__getRefEl(t,r,n){const i=t[r];if(i&&n!==i){const s=new Set([].concat(i,n));return Array.from(s)}else return n}__clone(t={}){const r=z(z({},this.context),t),n=st(z({},r),{context:r});return n.context.__proto__=this.context,n.__proto__=this,n}}function Zr(e){var f,p;const{Vue:t=Xr,mode:r=ht.Runtime,components:n={},libs:i={},apis:s={},loader:o}=e,a=t.computed(()=>e.dsl),u={$components:n,$libs:i,$apis:s},c=new il({mode:r,dsl:a.value,attrs:u}),l=t.defineComponent(z({name:a.value.name,props:z({},I_((f=a.value.props)!=null?f:[],c)),setup(h){var y,_,S,v;c.$props=h,c.props=h,a.value.id&&cs(e.window||window,a.value.id,a.value.css||""),c.state=M_(t,(y=a.value.state)!=null?y:{},c);const m=F_(t,(_=a.value.computed)!=null?_:{},c),d=L_((S=a.value.methods)!=null?S:{},c),b=V_(t,a.value.inject,c),E=sl(a.value.dataSources||{},c),g=z(z(z(z({},b),m),d),E);return c.setup(g,t),U_(t,(v=a.value.watch)!=null?v:[],c),{vtj:c}},emits:k_(a.value.emits),expose:["vtj"],render(){if(!a.value.nodes)return null;const h=a.value.nodes||[];return h.length===1?cr(h[0],c,t,o):h.map(m=>cr(m,c,t,o))}},H_((p=a.value.lifeCycles)!=null?p:{},c)));return{renderer:t.markRaw(l),context:c}}function k_(e=[]){return e.map(t=>bt(t)?t:t.name)}function I_(e=[],t){const r=n=>n?(Array.isArray(n)?n:[n]).map(i=>ku[i]):void 0;return e.map(n=>bt(n)?{name:n}:{name:n.name,type:n.type,required:n.required,default:wt(n.default)?t.__parseExpression(n.default):n.default}).reduce((n,i)=>(n[i.name]={type:r(i.type),required:i.required,default:i.default},n),{})}function M_(e,t,r){return e.reactive(Object.keys(t||{}).reduce((n,i)=>{let s=t[i];return wt(s)?s=r.__parseExpression(s):Fe(s)&&(s=r.__parseFunction(s)),n[i]=s,n},{}))}function F_(e,t,r){return Object.entries(t!=null?t:{}).reduce((n,[i,s])=>(n[i]=e.computed(r.__parseFunction(s)),n),{})}function L_(e,t){return Object.entries(e!=null?e:{}).reduce((r,[n,i])=>(r[n]=t.__parseFunction(i),r),{})}function V_(e,t=[],r){return t.reduce((n,i)=>{var c;const{name:s,from:o}=i||{};i.default;const a=wt(o)?r.__parseExpression(o)||s:o!=null?o:s,u=wt(i.default)?r.__parseExpression(i.default):(c=i.default)!=null?c:null;return n[s]=e.inject(a,u),n},{})}function sl(e,t){return Object.keys(e).reduce((r,n)=>{const i=e[n];if(i.type==="mock")r[n]=rl(i);else if(i.ref){const s=t.$apis[i.ref],o=Fe(i.transform)?i.transform.value?t.__parseFunction(i.transform):void 0:i.transform;r[n]=(...a)=>L(this,null,function*(){const u=yield s.apply(t,a);return o?o(u):u})}return r},{})}function U_(e,t=[],r){t.forEach(n=>{e.watch(r.__parseExpression(n.source),r.__parseFunction(n.handler),{deep:n.deep,immediate:n.immediate})})}function H_(e,t){return Object.entries(e!=null?e:{}).reduce((r,[n,i])=>(r[n]=t.__parseFunction(i),r),{})}let Vn=[],Xt={};const ol=e=>e;function hs(r){return L(this,arguments,function*(e,t=window){const{urls:n=[],library:i}=e,s=n.filter(a=>_n(a));if(s.length===0||!i)return null;const o=n.filter(a=>bn(a));return o.length&&zu(o,t),yield qu(s,i,t).catch(a=>(console.warn("loadScriptUrl error",s,i,a),null))})}function Qr(e){const{getDsl:t,getDslByUrl:r,options:n}=e;return n.window&&(Vn.forEach(i=>{delete n.window[i]}),Vn=[]),(i,s,o=Xr)=>{if(!s||typeof s=="string")return i;if(s.type==="Schema"&&s.id){let a=Xt[s.id];return a||(a=Xt[s.id]=o.defineAsyncComponent(()=>L(this,null,function*(){const u=yield t(s.id);return u&&(u.name=i),u?Zr(st(z({},n),{Vue:o,dsl:u,mode:ht.Runtime,loader:Qr(e)})).renderer:null})),a)}if(s.type==="UrlSchema"&&s.url){let a=Xt[s.url];return a||(a=Xt[s.url]=o.defineAsyncComponent(()=>L(this,null,function*(){const u=yield r(s.url);return u&&(u.name=i),u?Zr(st(z({},n),{Vue:o,dsl:u,mode:ht.Runtime,loader:Qr(e)})).renderer:null})),a)}if(s.type==="Plugin"){let a=s.library?Xt[s.library]:null;return a||(s.library&&Vn.push(s.library),a=Xt[s.library||Symbol()]=o.defineAsyncComponent(()=>L(this,null,function*(){return(yield hs(s,n.window))||(console.warn("getPlugin result is null",s),null)})),a)}return i}}function z_(){Xt={}}function cr(e,t,r=Xr,n=ol){var d;if(!e||!e.name||e.invisible)return null;const i=(d=r.getCurrentInstance())==null?void 0:d.appContext,{id:s=null,directives:o=[]}=e,{vIf:a,vFor:u,vShow:c,vModels:l,vBind:f,vHtml:p,others:h}=K_(o);if(a&&!J_(a,t))return null;const m=b=>{var A,V,w,T;const E=b.$components,g=(()=>{var C,I,D,B;if(e.name==="component")return W_(b,(C=e.props)==null?void 0:C.is);if(e.name==="slot")return e.name;const F=n(e.name,e.from,r);return bt(F)?Ju(F)||Wu(F)?F:(B=(D=E[F])!=null?D:(I=i==null?void 0:i.app)==null?void 0:I.component(F))!=null?B:F:F})(),y=Y_(s,(A=e.props)!=null?A:{},b),_=G_(r,(V=e.events)!=null?V:{},b);if(e.name==="slot")return Z_(r,e,y,b,n);f&&Object.assign(y,b.__parseExpression(f.value)),c&&(y.style=Object.assign((w=y.style)!=null?w:{},X_(c,b))),p&&Object.assign(y,tw(p,b)),l.forEach(F=>{Object.assign(y,ew(r,F,b))});const S=rw(r,(T=e.children)!=null?T:[],b,n,e);let v=r.createVNode(g,z(z({},y),_),S);const x=i?q_(i,h,b):[];return x.length&&(v=r.withDirectives(v,x)),v};return u?sw(u,m,t):m(t)}function q_(e,t,r){const n=e.app;return t.map(i=>{const s=typeof i.name=="string"?n.directive(i.name):r.__parseExpression(i.name);if(!s)return null;const o=[s];return i.value&&o.push(r.__parseExpression(i.value)),i.arg&&o.push(i.arg),i.modifiers&&o.push(i.modifiers),o}).filter(i=>!!i)}function K_(e=[]){const t=e.find(u=>Nt(u.name)==="vIf"),r=e.find(u=>Nt(u.name)==="vFor"),n=e.find(u=>Nt(u.name)==="vShow"),i=e.find(u=>Nt(u.name)==="vBind"),s=e.find(u=>Nt(u.name)==="vHtml"),o=e.filter(u=>Nt(u.name)==="vModel"),a=e.filter(u=>!Nu.includes(Nt(u.name)));return{vIf:t,vFor:r,vShow:n,vModels:o,vBind:i,others:a,vHtml:s}}function J_(e,t){return!!t.__parseExpression(e.value)}function W_(e,t){return t?wt(t)?e.__parseExpression(t):t:"div"}function Y_(e,t,r){const n=Ti(t,r);return n.ref=r.__ref(e,n.ref),n}function Ti(e,t){return wt(e)?t.__parseExpression(e):Fe(e)?t.__parseFunction(e):Array.isArray(e)?e.map(r=>Ti(r,t)):typeof e=="object"?Object.keys(e||{}).reduce((r,n)=>{let i=e[n];return r[n]=Ti(i,t),r},{}):e}function G_(e,t,r){const n=["passive","capture","once"],i={capture:"Capture",once:"Once",passive:"OnceCapture"};return Object.keys(t||{}).reduce((s,o)=>{const a=t[o],u=ps(a.modifiers),c=u.find(p=>n.includes(p)),l="on"+on(o)+(c&&i[c]||""),f=r.__parseFunction(a.handler);return f&&(s[l]=e.withModifiers(f,u)),s},{})}function ps(e={},t=!1){const r=Object.keys(e);return t?r.map(n=>"."+n):r}function Z_(e,t,r,n,i){var u;const{children:s}=t,o=Q_(t,n),a=(u=n.$slots)==null?void 0:u[o.name];return a?a(r):s?bt(s)?e.createTextVNode(s):wt(s)?e.createTextVNode(as(n.__parseExpression(s))):Array.isArray(s)?s.map(c=>cr(c,n,e,i)):null:null}function Q_(e,t){const{props:r}=e,n=(r==null?void 0:r.name)||"default";return{name:wt(n)?t.__parseExpression(n):n,params:[]}}function X_(e,t){return t.__parseExpression(e.value)?{}:{display:"none"}}function tw(e,t){return{innerHTML:t.__parseExpression(e.value)||""}}function ew(e,t,r){var a;const n={type:"JSFunction",value:(a=t.value)!=null&&a.value?`(v) => {
79
79
  ${t.value.value} = v;
80
- }`:"(v) => {}"},i=r.__parseFunction(n),s=ps(wt(t.modifiers)?r.__parseExpression(t.modifiers):t.modifiers),o=wt(t.arg)?r.__parseExpression(t.arg):t.arg||"modelValue";return{[o]:r.__parseExpression(t.value),[`onUpdate:${o}`]:s.length&&i?e.withModifiers(i,s):i}}function ew(e,t,r,n,i){if(!t)return null;if(bt(t))return{default:()=>t};if(wt(t))return{default:()=>cs(r.__parseExpression(t))};if(Array.isArray(t)&&t.length>0){const s=rw(t),o=a=>!a||!i?{}:i!=null&&i.id&&Object.keys(a).length?{[`scope_${i.id}`]:a}:{};return Object.entries(s).reduce((a,[u,{nodes:c,params:l}])=>(a[u]=f=>{const p=l.length?jc(f!=null?f:{},l):o(f);return c.map(h=>ar(h,r.__clone(p),e,n))},a),{})}return null}function rw(e){const t={default:{params:[],nodes:[]}};for(const r of e){const n=nw(r.slot),i=n.name;t[i]?(t[i].nodes.push(r),t[i].params=t[i].params.concat(n.params)):t[i]={nodes:[r],params:n.params}}return t}function nw(e="default"){return bt(e)?{name:e,params:[]}:z({params:[]},e)}function iw(e,t,r){const{value:n,iterator:i}=e,{item:s="item",index:o="index"}=i||{};let a=r.__parseExpression(n)||[];return Number.isInteger(a)&&(a=new Array(a).fill(!0).map((u,c)=>c+1)),Array.isArray(a)?a.map((u,c)=>t(r.__clone({[s]:u,[o]:c}))):(console.warn("[vForRender]:",`${n==null?void 0:n.value} is not a Arrary`),[])}const Yo=Oi({name:"VtjPageContainer",setup(){return L(this,null,function*(){const e=ms(),t=Zo(),r=t.params.id,n=r?e.getPage(r):e.getHomepage(),i=n?yield e.getRenderComponent(n.id):null,s=Hn(Symbol());if(n){Object.assign(t.meta,n.meta||{},{cache:n.cache});const{useTitle:o}=e==null?void 0:e.adapter;o&&o(n.title||"VTJ")}return{provider:e,component:i,file:n,query:t.query,meta:t.meta,sid:s,route:t}})},render(){const{component:e,query:t,sid:r}=this;return e?zn(e,st(z({},t),{key:r})):zn("div","页面不存在")},activated(){this.meta.cache===!1&&(this.sid=Symbol())}}),sw=Oi({name:"VtjStartupContainer",render(){return zn("div","page not found!")}}),ds=Symbol("Provider");var al=(e=>(e.Production="production",e.Development="development",e))(al||{});class cl extends Fc{constructor(r){super();A(this,"mode");A(this,"globals",{});A(this,"modules",{});A(this,"adapter",{request:or,jsonp:is});A(this,"apis",{});A(this,"dependencies",{});A(this,"materials",{});A(this,"library",{});A(this,"service");A(this,"project",null);A(this,"components",{});A(this,"nodeEnv","development");A(this,"router",null);A(this,"materialPath","./");A(this,"urlDslCaches",{});this.options=r;const{service:n,mode:i=ht.Raw,dependencies:s,materials:o,project:a={},adapter:u={},globals:c={},modules:l={},router:f=null,materialPath:p="./",nodeEnv:h="development"}=r;this.mode=i,this.modules=l,this.service=n,this.router=f,this.materialPath=p,this.nodeEnv=h,s&&(this.dependencies=s),o&&(this.materials=o),Object.assign(this.globals,c),Object.assign(this.adapter,u);const{access:m,request:d}=this.adapter;m&&m.connect({mode:i,router:f,request:d}),a&&i!==ht.Design?this.load(a):this.project=a}createMock(r){return(...n)=>L(this,null,function*(){var s;let i={};if(r)try{i=yield r.apply(r,n)}catch(o){oe.warn("模拟数据模版异常",o)}return(s=Ce())==null?void 0:s.mock(i)})}load(r){return L(this,null,function*(){const n=this.modules[`.vtj/projects/${r.id}.json`]||this.modules[`/src/.vtj/projects/${r.id}.json`];if(this.project=n?yield n():yield this.service.init(r),!this.project)throw new Error("project is null");const{apis:i=[],meta:s=[]}=this.project,o=window;o&&(o.CKEDITOR_VERSION=void 0),this.mode===ht.Raw?yield this.loadDependencies(o):yield this.loadAssets(o),this.initMock(o),this.apis=tl(i,s,this.adapter),fs(o),el(i,o),r.platform!=="uniapp"&&this.initRouter(),this.triggerReady()})}initMock(r){const n=Ce(r);n&&n.setup({timeout:"50-500"})}loadDependencies(r){return L(this,null,function*(){const n=Object.entries(this.dependencies);for(const[i,s]of n)r[i]||(r[i]=this.library[i]=yield s())})}loadAssets(r){return L(this,null,function*(){const{dependencies:n=[]}=this.project,{dependencies:i,library:s,components:o,materialPath:a,nodeEnv:u}=this,{libraryExports:c,libraryMap:l,materials:f,materialExports:p,materialMapLibrary:h}=Vu(n,a,u==="development");for(const m of c){const d=i[m],b=r[m];if(b)s[m]=b;else if(d)r[m]=s[m]=yield d();else{const E=l[m]||[];for(const g of E)yn(g)&&(yield Hu(m,se.append(g,{v:xn}))),bn(g)&&(yield Ei(se.append(g,{v:xn})));s[m]=r[m]}}if(u==="development"){for(const d of f)yield Ei(se.append(d,{v:xn}));const m=this.materials||{};for(const d of p){const b=r[h[d]],E=Ic[d];if(E)b&&E.forEach(g=>{o[g]=b[g]});else{const g=m[d]?(yield m[d]()).default:r[d];g&&b&&(g.components||[]).forEach(y=>{o[y.name]=Uu(y,b)})}}}})}initRouter(){const{router:r,project:n,options:i,adapter:s}=this;if(!r)return;const o=(n==null?void 0:n.platform)==="uniapp"?"pages":"page",{routeAppendTo:a,pageRouteName:u=o,routeMeta:c}=i,l=a?"":"/",f={path:`${l}${u}/:id`,name:$e,component:Yo},p={path:l,name:Xe,component:n!=null&&n.homepage?Yo:s.startupComponent||sw,meta:c};r.hasRoute($e)&&r.removeRoute($e),r.hasRoute(Xe)&&r.removeRoute(Xe),a?(r.addRoute(a,f),r.addRoute(a,p)):(r.addRoute(f),r.addRoute(p))}install(r){const n=r.config.globalProperties.installed||{};for(const[i,s]of Object.entries(this.library))!n[i]&&Ku(s)&&(r.use(s),n[i]=!0);this.options.install&&r.use(this.options.install),this.adapter.access&&r.use(this.adapter.access),r.provide(ds,this),r.config.globalProperties.$provider=this,r.config.globalProperties.installed=n,this.mode===ht.Design&&(r.config.errorHandler=(i,s,o)=>{const a=s==null?void 0:s.$options.name,u=typeof i=="string"?i:(i==null?void 0:i.message)||(i==null?void 0:i.msg)||"未知错误",c=`[ ${a} ] ${u} ${o}`;console.error("[VTJ Error]:",{err:i,instance:s,info:o},i==null?void 0:i.stack),this.adapter.notify&&this.adapter.notify(c,"组件渲染错误","error")})}getFile(r){const{blocks:n=[]}=this.project||{};return this.getPage(r)||n.find(i=>i.id===r)||null}getPage(r){const{pages:n=[]}=this.project||{},i=(s,o=[])=>{for(const a of o){if(a.id===s)return a;if(a.children&&a.children.length){const u=i(s,a.children);if(u)return u}}};return i(r,n)||null}getHomepage(){const{homepage:r}=this.project||{};return r?this.getPage(r):null}getDsl(r){return L(this,null,function*(){const n=this.modules[`.vtj/files/${r}.json`]||this.modules[`/src/.vtj/files/${r}.json`];return n?yield n():this.service.getFile(r,this.project||void 0).catch(()=>null)})}getDslByUrl(r){return L(this,null,function*(){return this.urlDslCaches[r]||(this.adapter.request?this.urlDslCaches[r]=this.adapter.request.send({url:r,method:"get",settings:{validSuccess:!1,originResponse:!0}}).then(i=>i.data).catch(()=>null):null)})}createDslRenderer(r,n={}){const{library:i,components:s,mode:o,apis:a}=this,u=z({mode:o,Vue:i.Vue,components:s,libs:i,apis:a,window},n),c=Zr({getDsl:l=>L(this,null,function*(){return(yield this.getDsl(l))||null}),getDslByUrl:l=>L(this,null,function*(){return(yield this.getDslByUrl(l))||null}),options:u});return Gr(st(z({},u),{dsl:r,loader:c}))}getRenderComponent(r,n){return L(this,null,function*(){var u;const i=this.getFile(r);if(!i)return oe.warn(`Can not find file: ${r}`),null;n&&n(i);const s=`.vtj/vue/${r}.vue`,o=this.modules[s]||this.modules[`/src/pages/${r}.vue`];if(o)return(u=yield o())==null?void 0:u.default;const a=yield this.getDsl(i.id);return a?this.createDslRenderer(a).renderer:(oe.warn(`Can not find dsl: ${r}`),null)})}defineUrlSchemaComponent(r,n){return ws(()=>L(this,null,function*(){const i=yield this.getDslByUrl(r);return i?(i.name=n||i.name,this.createDslRenderer(i).renderer):null}))}definePluginComponent(r){return ws(()=>L(this,null,function*(){return yield hs(r,window)}))}}function ow(e){const t=new cl(e);return{provider:t,onReady:r=>t.ready(r)}}function ms(e={}){const t=Go(ds,null);if(!t)throw new Error("Can not find provider");if(t.nodeEnv==="development"){const{id:r,version:n}=e;r&&n&&L(this,null,function*(){const i=yield t.getDsl(r);(i==null?void 0:i.__VERSION__)!==n&&t.adapter.notify&&t.adapter.notify(`[ ${i==null?void 0:i.name} ] 组件源码版本与运行时版本不一致,请重新发布组件`,"版本不一致","warning")})}return t}const ul={type:"json",validSuccess:!0,originResponse:!1,failMessage:!0,validate:e=>{var t;return((t=e.data)==null?void 0:t.code)===0}},aw=(e,t="/__vtj__/api/:type.json")=>(r,n,i)=>e.send({url:t,method:"post",params:{type:r},query:i,data:{type:r,data:n},settings:ul}),cw=(e,t="/__vtj__/api/uploader.json")=>(r,n)=>L(void 0,null,function*(){return yield e.send({url:t,method:"post",data:{files:r,projectId:n},settings:st(z({},ul),{type:"data"})}).then(i=>i&&i[0]?i[0]:null).catch(()=>null)});function uw(e){return vn({settings:{type:"json",validSuccess:!0,originResponse:!1,failMessage:!0,validate:t=>{var r;return((r=t.data)==null?void 0:r.code)===0},showError:t=>{e&&e(t||"未知错误")}}})}class _n{constructor(t=or){A(this,"api");A(this,"pluginCaches",{});A(this,"uploader");this.api=aw(t),this.uploader=cw(t)}getExtension(){return L(this,null,function*(){console.log("BaseService.getExtension")})}init(t){return L(this,null,function*(){return console.log("BaseService.init",t),{}})}saveProject(t,r){return L(this,null,function*(){return!!(yield this.api("saveProject",t,{type:r}).catch(()=>!1))})}saveMaterials(t,r){return L(this,null,function*(){return console.log("BaseService.saveMaterials",t,r),!1})}saveFile(t){return L(this,null,function*(){return console.log("BaseService.saveFile",t),!1})}getFile(t){return L(this,null,function*(){return console.log("BaseService.getFile",t),{}})}removeFile(t){return L(this,null,function*(){return console.log("BaseService.removeFile",t),!1})}saveHistory(t){return L(this,null,function*(){return console.log("BaseService.saveHistory",t),!1})}removeHistory(t){return L(this,null,function*(){return console.log("BaseService.removeHistory",t),!1})}getHistory(t){return L(this,null,function*(){return console.log("BaseService.getHistory",t),{}})}getHistoryItem(t,r){return L(this,null,function*(){return console.log("BaseService.getHistoryItem",t,r),{}})}saveHistoryItem(t,r){return L(this,null,function*(){return console.log("BaseService.saveHistoryItem",t,r),!1})}removeHistoryItem(t,r){return L(this,null,function*(){return console.log("BaseService.removeHistoryItem",t,r),!1})}publish(t){return L(this,null,function*(){return!!(yield this.api("publish",t).catch(()=>!1))})}publishFile(t,r){return L(this,null,function*(){return!!(yield this.api("publishFile",{project:t,file:r}).catch(()=>!1))})}genVueContent(t,r){return L(this,null,function*(){return yield this.api("genVueContent",{project:t,dsl:r}).catch(()=>"")})}createRawPage(t){return L(this,null,function*(){return yield this.api("createRawPage",t).catch(()=>"")})}removeRawPage(t){return L(this,null,function*(){return yield this.api("removeRawPage",t).catch(()=>"")})}uploadStaticFile(t,r){return L(this,null,function*(){return yield this.uploader(t,r).catch(()=>null)})}getStaticFiles(t){return L(this,null,function*(){return yield this.api("getStaticFiles",t).catch(()=>[])})}removeStaticFile(t,r){return L(this,null,function*(){return yield this.api("removeStaticFile",{name:t,projectId:r}).catch(()=>"")})}clearStaticFiles(t){return L(this,null,function*(){return yield this.api("clearStaticFiles",t).catch(()=>"")})}getPluginMaterial(t){return L(this,null,function*(){const{urls:r=[]}=t,n=r.filter(s=>Fu(s))[0];return n?this.pluginCaches[n]||(this.pluginCaches[n]=or.send({url:n,method:"get",settings:{validSuccess:!1,originResponse:!0}}).then(s=>s.data).catch(()=>null)):null})}genSource(t){return L(this,null,function*(){return console.log("BaseService.genSource",t),""})}}const mt=new ns({type:"local",expired:0,prefix:"__VTJ_"});class lw extends _n{init(t){const r=new ce(t),n=mt.get(`project_${r.id}`),i=Object.assign(r.toDsl(),n||{});return mt.save(`project_${r.id}`,i),Promise.resolve(i)}saveProject(t){const r=new ce(t);return mt.save(`project_${r.id}`,r.toDsl()),Promise.resolve(!0)}saveMaterials(t,r){return mt.save(`materials_${t.id}`,cn(r)),Promise.resolve(!0)}saveFile(t){return mt.save(`file_${t.id}`,t),Promise.resolve(!0)}getFile(t){const r=mt.get(`file_${t}`);return r?Promise.resolve(r):Promise.reject(null)}removeFile(t){return mt.remove(`file_${t}`),Promise.resolve(!0)}saveHistory(t){return mt.save(`history_${t.id}`,t),Promise.resolve(!0)}removeHistory(t){const r=mt.get(`history_${t}`);if(r){const n=(r.items||[]).map(i=>i.id);this.removeHistoryItem(t,n),mt.remove(`history_${t}`)}return Promise.resolve(!0)}getHistory(t){const r=mt.get(`history_${t}`),n=new Wi(r||{id:t});return Promise.resolve(n.toDsl())}getHistoryItem(t,r){const n=mt.get(`history_${t}_${r}`);return Promise.resolve(n)}saveHistoryItem(t,r){return mt.save(`history_${t}_${r.id}`,r),Promise.resolve(!0)}removeHistoryItem(t,r){return r.forEach(n=>{mt.remove(`history_${t}_${n}`)}),Promise.resolve(!0)}}class ll extends _n{constructor(){super(...arguments);A(this,"projects",{});A(this,"materials",{});A(this,"files",{});A(this,"histories",{});A(this,"historyItems",{})}init(r){const n=new ce(r),i=this.projects[n.id]||{},s=Object.assign(n.toDsl(),i);return this.projects[s.id]=s,Promise.resolve(s)}saveProject(r){const n=new ce(r);return this.projects[n.id]=n.toDsl(),Promise.resolve(!0)}saveMaterials(r,n){return r.id&&(this.materials[r.id]=cn(n)),Promise.resolve(!0)}saveFile(r){return this.files[r.id]=r,Promise.resolve(!0)}getFile(r){const n=this.files[r];return n?Promise.resolve(n):Promise.reject(null)}removeFile(r){return delete this.files[r],Promise.resolve(!0)}saveHistory(r){return this.histories[r.id]=r,Promise.resolve(!0)}removeHistory(r){const n=this.histories[r];if(n){const i=(n.items||[]).map(s=>s.id);this.removeHistoryItem(r,i),delete this.historyItems[r]}return Promise.resolve(!0)}getHistory(r){const n=this.histories[r],i=new Wi(n||{id:r});return Promise.resolve(i)}getHistoryItem(r,n){const i=`${r}_${n}`,s=this.historyItems[i]||{};return Promise.resolve(s)}saveHistoryItem(r,n){const i=`${r}_${n.id}`;return this.historyItems[i]=n,Promise.resolve(!0)}removeHistoryItem(r,n){return n.forEach(i=>{const s=`${r}_${i}`;delete this.historyItems[s]}),Promise.resolve(!0)}}let Un=null;function fw(){return Un||(Un=new ll,Un)}class hw extends _n{constructor(){super(...arguments);A(this,"getFileCaches",{})}getExtension(){return L(this,null,function*(){return yield this.api("getExtension",{}).catch(()=>{})})}init(r){return L(this,null,function*(){return(yield this.api("init",r).catch(()=>null))||{}})}saveProject(r,n){return L(this,null,function*(){return!!(yield this.api("saveProject",r,{type:n}).catch(()=>!1))})}saveMaterials(r,n){return L(this,null,function*(){return!!(yield this.api("saveMaterials",{project:r,materials:cn(n)}).catch(()=>!1))})}saveFile(r){return L(this,null,function*(){return!!(yield this.api("saveFile",r).catch(()=>!1))})}getFile(r){return L(this,null,function*(){return this.getFileCaches[r]||(this.getFileCaches[r]=this.api("getFile",r).catch(()=>null)).finally(()=>{delete this.getFileCaches[r]})})}removeFile(r){return L(this,null,function*(){return!!(yield this.api("removeFile",r).catch(()=>!1))})}saveHistory(r){return L(this,null,function*(){return!!(yield this.api("saveHistory",r).catch(()=>!1))})}removeHistory(r){return L(this,null,function*(){return!!(yield this.api("removeHistory",r).catch(()=>!1))})}getHistory(r){return L(this,null,function*(){return(yield this.api("getHistory",r).catch(()=>null))||{}})}getHistoryItem(r,n){return L(this,null,function*(){return(yield this.api("getHistoryItem",{fId:r,id:n}).catch(()=>null))||{}})}saveHistoryItem(r,n){return L(this,null,function*(){return!!(yield this.api("saveHistoryItem",{fId:r,item:n}).catch(()=>!1))})}removeHistoryItem(r,n){return L(this,null,function*(){return!!(yield this.api("removeHistoryItem",{fId:r,ids:n}).catch(()=>!1))})}}function fl(e,t,r=[]){return r.map(n=>{const{id:i,title:s,icon:o,children:a,hidden:u}=n;return{id:i,title:s,icon:o,hidden:u,url:`${e}/${t}/${i}`,children:a&&a.length?fl(e,t,a):void 0}})}function hl(e,t){if(!t)return e;let r=[];for(const n of e)if(n.children&&n.children.length){const i=hl(n.children,t);i.length&&(n.children=i,r.push(n))}else t.can(n.id.toString())&&r.push(n);return r}function pw(e){const{menuPathPrefix:t="",pageRouteName:r="page",disableMenusFilter:n=!1}=e||{},i=ms(),s=Zo(),o=Zu(),a=Hn(!1),u=Hn(!1),c=i.project;vl(()=>{const{name:p,params:h,meta:m}=s;if(p===$e){const d=i.getPage(h.id);a.value=!(d!=null&&d.mask),u.value=!!(d!=null&&d.pure)}else if(p===Xe){const d=i.getHomepage();a.value=!(d!=null&&d.mask),u.value=!!(d!=null&&d.pure)}else a.value=!m.mask,u.value=!!m.pure});const l=fl(t,r,c==null?void 0:c.pages),f=c==null?void 0:c.config;return{disabled:a,logo:f==null?void 0:f.logo,themeSwitchable:f==null?void 0:f.themeSwitchable,title:(f==null?void 0:f.title)||(c==null?void 0:c.description)||(c==null?void 0:c.name)||"VTJ App",menus:n?l:hl(l,o),pure:u}}const tE=Object.freeze(Object.defineProperty({__proto__:null,ACCESS_KEY:ls,Access:Gu,BUILD_IN_TAGS:Iu,BUILT_IN_DIRECTIVES:Bu,BaseService:_n,CONTEXT_HOST:xi,Context:il,ContextMode:ht,DATA_TYPES:ku,HOMEPAGE_ROUTE_NAME:Xe,HTML_TAGS:Mu,JSCodeToString:C_,LIFE_CYCLES_LIST:R_,LocalService:hw,MemoryService:ll,NodeEnv:al,PAGE_ROUTE_NAME:$e,Provider:cl,StorageService:lw,VTJ_RENDERER_VERSION:as,adoptedStyleSheets:us,clearLoaderCache:H_,createAdapter:N_,createAssetScripts:j_,createAssetsCss:D_,createDataSources:sl,createLoader:Zr,createMemoryService:fw,createMetaApi:Qu,createMock:rl,createProvider:ow,createRenderer:Gr,createSchemaApi:Xu,createSchemaApis:tl,createServiceRequest:uw,defaultLoader:ol,fillBasePath:Ye,getMock:Ce,getModifiers:ps,getPlugin:hs,getRawComponent:Uu,isBuiltInTag:Ju,isCSSUrl:yn,isJSCode:Yu,isJSExpression:wt,isJSFunction:Ie,isJSON:Fu,isJSUrl:bn,isNativeTag:Wu,isVuePlugin:Ku,loadCss:Hu,loadCssUrl:zu,loadScriptUrl:qu,mockApi:nl,mockApis:el,mockCleanup:fs,nodeRender:ar,parseDeps:Vu,parseExpression:Pe,parseFunction:Yr,providerKey:ds,removeProdFlag:Lu,toString:cs,useAccess:Zu,useMask:pw,useProvider:ms},Symbol.toStringTag,{value:"Module"})),dw=Oi({__name:"app",setup(e){return(t,r)=>{const n=yl("router-view");return xs(),Es(Ss(Tl),{locale:Ss(xl)},{default:Ts(()=>[(xs(),Es(bl,null,{default:Ts(()=>[_l(n)]),_:1}))]),_:1},8,["locale"])}}}),mw=[{path:"/",name:"home",component:()=>Ve(()=>import("./index-DX9cw63j.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20]),import.meta.url)},{path:"/preview/:id",name:"preview",component:()=>Ve(()=>import("./preview-D7O5WV4s.js"),__vite__mapDeps([21,13,14,1,2,3,4,5,6,7,8,9,10,11,12,15,16,17,18]),import.meta.url)},{path:"/page/:id",name:"page",component:()=>Ve(()=>import("./page-Db4iyZjl.js"),__vite__mapDeps([22,13,14,1,2,3,4,5,6,7,8,9,10,11,12,15,16,17,18]),import.meta.url),meta:{pure:!0}},{path:"/pages/:id",name:"page",component:()=>Ve(()=>import("./uni-page-ByIXJ059.js"),__vite__mapDeps([23,1,2,19,24]),import.meta.url),meta:{pure:!0}},{path:"/auth",name:"auth",component:()=>Ve(()=>import("./auth-DyfherFL.js"),__vite__mapDeps([25,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,19,26]),import.meta.url)}],gw=El({history:Sl(),routes:mw}),vw="RRO_IDE_ACCESS_STORAGE__",gs=wl(dw),yw=new Gu({storageKey:vw});gs.use(yw);gs.use(gw);gs.mount("#app");export{zc as $,vw as A,we as B,oe as C,Je as D,ai as E,oi as F,Uc as G,Hc as H,G as I,ae as J,l1 as K,pa as L,nt as M,We as N,Ir as O,ee as P,N_ as Q,ty as R,a_ as S,Wi as T,Ki as U,Pr as V,Ji as W,ti as X,Gu as Y,ow as Z,c_ as _,ct as a,k1 as a0,Xa as a1,V1 as a2,Vu as a3,D_ as a4,j_ as a5,I1 as a6,Uu as a7,tl as a8,fs as a9,el as aa,qr as ab,Fi as ac,H_ as ad,wt as ae,Ie as af,i_ as ag,Pe as ah,Yr as ai,Ke as aj,Bu as ak,z1 as al,C_ as am,R_ as an,ku as ao,rl as ap,s_ as aq,m1 as ar,ki as as,tE as at,Cw as au,Qw as av,yn as aw,bn as ax,zu as ay,qu as az,Rc as b,Dt as c,gt as d,uw as e,Ui as f,Bt as g,Yv as h,f1 as i,O_ as j,nr as k,us as l,Hv as m,Se as n,bt as o,Fc as p,cl as q,hw as r,ce as s,I as t,ii as u,$_ as v,it as w,is as x,ht as y,Ac as z};
80
+ }`:"(v) => {}"},i=r.__parseFunction(n),s=ps(wt(t.modifiers)?r.__parseExpression(t.modifiers):t.modifiers),o=wt(t.arg)?r.__parseExpression(t.arg):t.arg||"modelValue";return{[o]:r.__parseExpression(t.value),[`onUpdate:${o}`]:s.length&&i?e.withModifiers(i,s):i}}function rw(e,t,r,n,i){if(!t)return null;if(bt(t))return{default:()=>t};if(wt(t))return{default:()=>as(r.__parseExpression(t))};if(Array.isArray(t)&&t.length>0){const s=nw(t),o=a=>!a||!i?{}:i!=null&&i.id&&Object.keys(a).length?{[`scope_${i.id}`]:a}:{};return Object.entries(s).reduce((a,[u,{nodes:c,params:l}])=>(a[u]=f=>{const p=l.length?jc(f!=null?f:{},l):o(f);return c.map(h=>cr(h,r.__clone(p),e,n))},a),{})}return null}function nw(e){const t={default:{params:[],nodes:[]}};for(const r of e){const n=iw(r.slot),i=n.name;t[i]?(t[i].nodes.push(r),t[i].params=t[i].params.concat(n.params)):t[i]={nodes:[r],params:n.params}}return t}function iw(e="default"){return bt(e)?{name:e,params:[]}:z({params:[]},e)}function sw(e,t,r){const{value:n,iterator:i}=e,{item:s="item",index:o="index"}=i||{};let a=r.__parseExpression(n)||[];return Number.isInteger(a)&&(a=new Array(a).fill(!0).map((u,c)=>c+1)),Array.isArray(a)?a.map((u,c)=>t(r.__clone({[s]:u,[o]:c}))):(console.warn("[vForRender]:",`${n==null?void 0:n.value} is not a Arrary`),[])}const Yo=Oi({name:"VtjPageContainer",setup(){return L(this,null,function*(){const e=ms(),t=Zo(),r=t.params.id,n=r?e.getPage(r):e.getHomepage(),i=n?yield e.getRenderComponent(n.id):null,s=Hn(Symbol());if(n){Object.assign(t.meta,n.meta||{},{cache:n.cache});const{useTitle:o}=e==null?void 0:e.adapter;o&&o(n.title||"VTJ")}return{provider:e,component:i,file:n,query:t.query,meta:t.meta,sid:s,route:t}})},render(){const{component:e,query:t,sid:r}=this;return e?zn(e,st(z({},t),{key:r})):zn("div","页面不存在")},activated(){this.meta.cache===!1&&(this.sid=Symbol())}}),ow=Oi({name:"VtjStartupContainer",render(){return zn("div","page not found!")}}),ds=Symbol("Provider");var al=(e=>(e.Production="production",e.Development="development",e))(al||{});class cl extends Fc{constructor(r){super();$(this,"mode");$(this,"globals",{});$(this,"modules",{});$(this,"adapter",{request:ar,jsonp:is});$(this,"apis",{});$(this,"dependencies",{});$(this,"materials",{});$(this,"library",{});$(this,"service");$(this,"project",null);$(this,"components",{});$(this,"nodeEnv","development");$(this,"router",null);$(this,"materialPath","./");$(this,"urlDslCaches",{});this.options=r;const{service:n,mode:i=ht.Raw,dependencies:s,materials:o,project:a={},adapter:u={},globals:c={},modules:l={},router:f=null,materialPath:p="./",nodeEnv:h="development"}=r;this.mode=i,this.modules=l,this.service=n,this.router=f,this.materialPath=p,this.nodeEnv=h,s&&(this.dependencies=s),o&&(this.materials=o),Object.assign(this.globals,c),Object.assign(this.adapter,u);const{access:m,request:d}=this.adapter;m&&m.connect({mode:i,router:f,request:d}),a&&i!==ht.Design?this.load(a):this.project=a}createMock(r){return(...n)=>L(this,null,function*(){var s;let i={};if(r)try{i=yield r.apply(r,n)}catch(o){oe.warn("模拟数据模版异常",o)}return(s=Pe())==null?void 0:s.mock(i)})}load(r){return L(this,null,function*(){const n=this.modules[`.vtj/projects/${r.id}.json`]||this.modules[`/src/.vtj/projects/${r.id}.json`];if(this.project=n?yield n():yield this.service.init(r),!this.project)throw new Error("project is null");const{apis:i=[],meta:s=[]}=this.project,o=window;o&&(o.CKEDITOR_VERSION=void 0),this.mode===ht.Raw?yield this.loadDependencies(o):yield this.loadAssets(o),this.initMock(o),this.apis=tl(i,s,this.adapter),fs(o),el(i,o),r.platform!=="uniapp"&&this.initRouter(),this.triggerReady()})}initMock(r){const n=Pe(r);n&&n.setup({timeout:"50-500"})}loadDependencies(r){return L(this,null,function*(){const n=Object.entries(this.dependencies);for(const[i,s]of n)r[i]||(r[i]=this.library[i]=yield s())})}loadAssets(r){return L(this,null,function*(){const{dependencies:n=[]}=this.project,{dependencies:i,library:s,components:o,materialPath:a,nodeEnv:u}=this,{libraryExports:c,libraryMap:l,materials:f,materialExports:p,materialMapLibrary:h}=Vu(n,a,u==="development");for(const m of c){const d=i[m],b=r[m];if(b)s[m]=b;else if(d)r[m]=s[m]=yield d();else{const E=l[m]||[];for(const g of E)bn(g)&&(yield Hu(m,se.append(g,{v:Ae}))),_n(g)&&(yield Ei(se.append(g,{v:Ae})));s[m]=r[m]}}if(u==="development"){for(const d of f)yield Ei(se.append(d,{v:Ae}));const m=this.materials||{};for(const d of p){const b=r[h[d]],E=Mc[d];if(E)b&&E.forEach(g=>{o[g]=b[g]});else{const g=m[d]?(yield m[d]()).default:r[d];g&&b&&(g.components||[]).forEach(y=>{o[y.name]=Uu(y,b)})}}}})}initRouter(){const{router:r,project:n,options:i,adapter:s}=this;if(!r)return;const o=(n==null?void 0:n.platform)==="uniapp"?"pages":"page",{routeAppendTo:a,pageRouteName:u=o,routeMeta:c}=i,l=a?"":"/",f={path:`${l}${u}/:id`,name:$e,component:Yo},p={path:l,name:Xe,component:n!=null&&n.homepage?Yo:s.startupComponent||ow,meta:c};r.hasRoute($e)&&r.removeRoute($e),r.hasRoute(Xe)&&r.removeRoute(Xe),a?(r.addRoute(a,f),r.addRoute(a,p)):(r.addRoute(f),r.addRoute(p))}install(r){const n=r.config.globalProperties.installed||{};for(const[i,s]of Object.entries(this.library))!n[i]&&Ku(s)&&(r.use(s),n[i]=!0);this.options.install&&r.use(this.options.install),this.adapter.access&&r.use(this.adapter.access),r.provide(ds,this),r.config.globalProperties.$provider=this,r.config.globalProperties.installed=n,this.mode===ht.Design&&(r.config.errorHandler=(i,s,o)=>{const a=s==null?void 0:s.$options.name,u=typeof i=="string"?i:(i==null?void 0:i.message)||(i==null?void 0:i.msg)||"未知错误",c=`[ ${a} ] ${u} ${o}`;console.error("[VTJ Error]:",{err:i,instance:s,info:o},i==null?void 0:i.stack),this.adapter.notify&&this.adapter.notify(c,"组件渲染错误","error")})}getFile(r){const{blocks:n=[]}=this.project||{};return this.getPage(r)||n.find(i=>i.id===r)||null}getPage(r){const{pages:n=[]}=this.project||{},i=(s,o=[])=>{for(const a of o){if(a.id===s)return a;if(a.children&&a.children.length){const u=i(s,a.children);if(u)return u}}};return i(r,n)||null}getHomepage(){const{homepage:r}=this.project||{};return r?this.getPage(r):null}getDsl(r){return L(this,null,function*(){const n=this.modules[`.vtj/files/${r}.json`]||this.modules[`/src/.vtj/files/${r}.json`];return n?yield n():this.service.getFile(r,this.project||void 0).catch(()=>null)})}getDslByUrl(r){return L(this,null,function*(){return this.urlDslCaches[r]||(this.adapter.request?this.urlDslCaches[r]=this.adapter.request.send({url:r,method:"get",settings:{validSuccess:!1,originResponse:!0}}).then(i=>i.data).catch(()=>null):null)})}createDslRenderer(r,n={}){const{library:i,components:s,mode:o,apis:a}=this,u=z({mode:o,Vue:i.Vue,components:s,libs:i,apis:a,window},n),c=Qr({getDsl:l=>L(this,null,function*(){return(yield this.getDsl(l))||null}),getDslByUrl:l=>L(this,null,function*(){return(yield this.getDslByUrl(l))||null}),options:u});return Zr(st(z({},u),{dsl:r,loader:c}))}getRenderComponent(r,n){return L(this,null,function*(){var u;const i=this.getFile(r);if(!i)return oe.warn(`Can not find file: ${r}`),null;n&&n(i);const s=`.vtj/vue/${r}.vue`,o=this.modules[s]||this.modules[`/src/pages/${r}.vue`];if(o)return(u=yield o())==null?void 0:u.default;const a=yield this.getDsl(i.id);return a?this.createDslRenderer(a).renderer:(oe.warn(`Can not find dsl: ${r}`),null)})}defineUrlSchemaComponent(r,n){return ws(()=>L(this,null,function*(){const i=yield this.getDslByUrl(r);return i?(i.name=n||i.name,this.createDslRenderer(i).renderer):null}))}definePluginComponent(r){return ws(()=>L(this,null,function*(){return yield hs(r,window)}))}}function aw(e){const t=new cl(e);return{provider:t,onReady:r=>t.ready(r)}}function ms(e={}){const t=Go(ds,null);if(!t)throw new Error("Can not find provider");if(t.nodeEnv==="development"){const{id:r,version:n}=e;r&&n&&L(this,null,function*(){const i=yield t.getDsl(r);(i==null?void 0:i.__VERSION__)!==n&&t.adapter.notify&&t.adapter.notify(`[ ${i==null?void 0:i.name} ] 组件源码版本与运行时版本不一致,请重新发布组件`,"版本不一致","warning")})}return t}const ul={type:"json",validSuccess:!0,originResponse:!1,failMessage:!0,validate:e=>{var t;return((t=e.data)==null?void 0:t.code)===0}},cw=(e,t="/__vtj__/api/:type.json")=>(r,n,i)=>e.send({url:t,method:"post",params:{type:r},query:i,data:{type:r,data:n},settings:ul}),uw=(e,t="/__vtj__/api/uploader.json")=>(r,n)=>L(void 0,null,function*(){return yield e.send({url:t,method:"post",data:{files:r,projectId:n},settings:st(z({},ul),{type:"data"})}).then(i=>i&&i[0]?i[0]:null).catch(()=>null)});function lw(e){return yn({settings:{type:"json",validSuccess:!0,originResponse:!1,failMessage:!0,validate:t=>{var r;return((r=t.data)==null?void 0:r.code)===0},showError:t=>{e&&e(t||"未知错误")}}})}class wn{constructor(t=ar){$(this,"api");$(this,"pluginCaches",{});$(this,"uploader");this.api=cw(t),this.uploader=uw(t)}getExtension(){return L(this,null,function*(){console.log("BaseService.getExtension")})}init(t){return L(this,null,function*(){return console.log("BaseService.init",t),{}})}saveProject(t,r){return L(this,null,function*(){return!!(yield this.api("saveProject",t,{type:r}).catch(()=>!1))})}saveMaterials(t,r){return L(this,null,function*(){return console.log("BaseService.saveMaterials",t,r),!1})}saveFile(t){return L(this,null,function*(){return console.log("BaseService.saveFile",t),!1})}getFile(t){return L(this,null,function*(){return console.log("BaseService.getFile",t),{}})}removeFile(t){return L(this,null,function*(){return console.log("BaseService.removeFile",t),!1})}saveHistory(t){return L(this,null,function*(){return console.log("BaseService.saveHistory",t),!1})}removeHistory(t){return L(this,null,function*(){return console.log("BaseService.removeHistory",t),!1})}getHistory(t){return L(this,null,function*(){return console.log("BaseService.getHistory",t),{}})}getHistoryItem(t,r){return L(this,null,function*(){return console.log("BaseService.getHistoryItem",t,r),{}})}saveHistoryItem(t,r){return L(this,null,function*(){return console.log("BaseService.saveHistoryItem",t,r),!1})}removeHistoryItem(t,r){return L(this,null,function*(){return console.log("BaseService.removeHistoryItem",t,r),!1})}publish(t){return L(this,null,function*(){return!!(yield this.api("publish",t).catch(()=>!1))})}publishFile(t,r){return L(this,null,function*(){return!!(yield this.api("publishFile",{project:t,file:r}).catch(()=>!1))})}genVueContent(t,r){return L(this,null,function*(){return yield this.api("genVueContent",{project:t,dsl:r}).catch(()=>"")})}createRawPage(t){return L(this,null,function*(){return yield this.api("createRawPage",t).catch(()=>"")})}removeRawPage(t){return L(this,null,function*(){return yield this.api("removeRawPage",t).catch(()=>"")})}uploadStaticFile(t,r){return L(this,null,function*(){return yield this.uploader(t,r).catch(()=>null)})}getStaticFiles(t){return L(this,null,function*(){return yield this.api("getStaticFiles",t).catch(()=>[])})}removeStaticFile(t,r){return L(this,null,function*(){return yield this.api("removeStaticFile",{name:t,projectId:r}).catch(()=>"")})}clearStaticFiles(t){return L(this,null,function*(){return yield this.api("clearStaticFiles",t).catch(()=>"")})}getPluginMaterial(t){return L(this,null,function*(){const{urls:r=[]}=t,n=r.filter(s=>Fu(s))[0];return n?this.pluginCaches[n]||(this.pluginCaches[n]=ar.send({url:n,method:"get",settings:{validSuccess:!1,originResponse:!0}}).then(s=>s.data).catch(()=>null)):null})}genSource(t){return L(this,null,function*(){return console.log("BaseService.genSource",t),""})}}const mt=new ns({type:"local",expired:0,prefix:"__VTJ_"});class fw extends wn{init(t){const r=new ce(t),n=mt.get(`project_${r.id}`),i=Object.assign(r.toDsl(),n||{});return mt.save(`project_${r.id}`,i),Promise.resolve(i)}saveProject(t){const r=new ce(t);return mt.save(`project_${r.id}`,r.toDsl()),Promise.resolve(!0)}saveMaterials(t,r){return mt.save(`materials_${t.id}`,un(r)),Promise.resolve(!0)}saveFile(t){return mt.save(`file_${t.id}`,t),Promise.resolve(!0)}getFile(t){const r=mt.get(`file_${t}`);return r?Promise.resolve(r):Promise.reject(null)}removeFile(t){return mt.remove(`file_${t}`),Promise.resolve(!0)}saveHistory(t){return mt.save(`history_${t.id}`,t),Promise.resolve(!0)}removeHistory(t){const r=mt.get(`history_${t}`);if(r){const n=(r.items||[]).map(i=>i.id);this.removeHistoryItem(t,n),mt.remove(`history_${t}`)}return Promise.resolve(!0)}getHistory(t){const r=mt.get(`history_${t}`),n=new Wi(r||{id:t});return Promise.resolve(n.toDsl())}getHistoryItem(t,r){const n=mt.get(`history_${t}_${r}`);return Promise.resolve(n)}saveHistoryItem(t,r){return mt.save(`history_${t}_${r.id}`,r),Promise.resolve(!0)}removeHistoryItem(t,r){return r.forEach(n=>{mt.remove(`history_${t}_${n}`)}),Promise.resolve(!0)}}class ll extends wn{constructor(){super(...arguments);$(this,"projects",{});$(this,"materials",{});$(this,"files",{});$(this,"histories",{});$(this,"historyItems",{})}init(r){const n=new ce(r),i=this.projects[n.id]||{},s=Object.assign(n.toDsl(),i);return this.projects[s.id]=s,Promise.resolve(s)}saveProject(r){const n=new ce(r);return this.projects[n.id]=n.toDsl(),Promise.resolve(!0)}saveMaterials(r,n){return r.id&&(this.materials[r.id]=un(n)),Promise.resolve(!0)}saveFile(r){return this.files[r.id]=r,Promise.resolve(!0)}getFile(r){const n=this.files[r];return n?Promise.resolve(n):Promise.reject(null)}removeFile(r){return delete this.files[r],Promise.resolve(!0)}saveHistory(r){return this.histories[r.id]=r,Promise.resolve(!0)}removeHistory(r){const n=this.histories[r];if(n){const i=(n.items||[]).map(s=>s.id);this.removeHistoryItem(r,i),delete this.historyItems[r]}return Promise.resolve(!0)}getHistory(r){const n=this.histories[r],i=new Wi(n||{id:r});return Promise.resolve(i)}getHistoryItem(r,n){const i=`${r}_${n}`,s=this.historyItems[i]||{};return Promise.resolve(s)}saveHistoryItem(r,n){const i=`${r}_${n.id}`;return this.historyItems[i]=n,Promise.resolve(!0)}removeHistoryItem(r,n){return n.forEach(i=>{const s=`${r}_${i}`;delete this.historyItems[s]}),Promise.resolve(!0)}}let Un=null;function hw(){return Un||(Un=new ll,Un)}class pw extends wn{constructor(){super(...arguments);$(this,"getFileCaches",{})}getExtension(){return L(this,null,function*(){return yield this.api("getExtension",{}).catch(()=>{})})}init(r){return L(this,null,function*(){return(yield this.api("init",r).catch(()=>null))||{}})}saveProject(r,n){return L(this,null,function*(){return!!(yield this.api("saveProject",r,{type:n}).catch(()=>!1))})}saveMaterials(r,n){return L(this,null,function*(){return!!(yield this.api("saveMaterials",{project:r,materials:un(n)}).catch(()=>!1))})}saveFile(r){return L(this,null,function*(){return!!(yield this.api("saveFile",r).catch(()=>!1))})}getFile(r){return L(this,null,function*(){return this.getFileCaches[r]||(this.getFileCaches[r]=this.api("getFile",r).catch(()=>null)).finally(()=>{delete this.getFileCaches[r]})})}removeFile(r){return L(this,null,function*(){return!!(yield this.api("removeFile",r).catch(()=>!1))})}saveHistory(r){return L(this,null,function*(){return!!(yield this.api("saveHistory",r).catch(()=>!1))})}removeHistory(r){return L(this,null,function*(){return!!(yield this.api("removeHistory",r).catch(()=>!1))})}getHistory(r){return L(this,null,function*(){return(yield this.api("getHistory",r).catch(()=>null))||{}})}getHistoryItem(r,n){return L(this,null,function*(){return(yield this.api("getHistoryItem",{fId:r,id:n}).catch(()=>null))||{}})}saveHistoryItem(r,n){return L(this,null,function*(){return!!(yield this.api("saveHistoryItem",{fId:r,item:n}).catch(()=>!1))})}removeHistoryItem(r,n){return L(this,null,function*(){return!!(yield this.api("removeHistoryItem",{fId:r,ids:n}).catch(()=>!1))})}}function fl(e,t,r=[]){return r.map(n=>{const{id:i,title:s,icon:o,children:a,hidden:u}=n;return{id:i,title:s,icon:o,hidden:u,url:`${e}/${t}/${i}`,children:a&&a.length?fl(e,t,a):void 0}})}function hl(e,t){if(!t)return e;let r=[];for(const n of e)if(n.children&&n.children.length){const i=hl(n.children,t);i.length&&(n.children=i,r.push(n))}else t.can(n.id.toString())&&r.push(n);return r}function dw(e){const{menuPathPrefix:t="",pageRouteName:r="page",disableMenusFilter:n=!1}=e||{},i=ms(),s=Zo(),o=Gu(),a=Hn(!1),u=Hn(!1),c=i.project;vl(()=>{const{name:p,params:h,meta:m}=s;if(p===$e){const d=i.getPage(h.id);a.value=!(d!=null&&d.mask),u.value=!!(d!=null&&d.pure)}else if(p===Xe){const d=i.getHomepage();a.value=!(d!=null&&d.mask),u.value=!!(d!=null&&d.pure)}else a.value=!m.mask,u.value=!!m.pure});const l=fl(t,r,c==null?void 0:c.pages),f=c==null?void 0:c.config;return{disabled:a,logo:f==null?void 0:f.logo,themeSwitchable:f==null?void 0:f.themeSwitchable,title:(f==null?void 0:f.title)||(c==null?void 0:c.description)||(c==null?void 0:c.name)||"VTJ App",menus:n?l:hl(l,o),pure:u}}const eE=Object.freeze(Object.defineProperty({__proto__:null,ACCESS_KEY:us,Access:ls,BUILD_IN_TAGS:Mu,BUILT_IN_DIRECTIVES:Nu,BaseService:wn,CONTEXT_HOST:xi,Context:il,ContextMode:ht,DATA_TYPES:ku,HOMEPAGE_ROUTE_NAME:Xe,HTML_TAGS:Iu,JSCodeToString:P_,LIFE_CYCLES_LIST:R_,LocalService:pw,MemoryService:ll,NodeEnv:al,PAGE_ROUTE_NAME:$e,Provider:cl,StorageService:fw,VTJ_RENDERER_VERSION:Ae,adoptedStyleSheets:cs,clearLoaderCache:z_,createAccess:Zu,createAdapter:N_,createAssetScripts:j_,createAssetsCss:D_,createDataSources:sl,createLoader:Qr,createMemoryService:hw,createMetaApi:Xu,createMock:rl,createProvider:aw,createRenderer:Zr,createSchemaApi:Qu,createSchemaApis:tl,createServiceRequest:lw,defaultLoader:ol,fillBasePath:Ge,getMock:Pe,getModifiers:ps,getPlugin:hs,getRawComponent:Uu,isBuiltInTag:Ju,isCSSUrl:bn,isJSCode:Yu,isJSExpression:wt,isJSFunction:Fe,isJSON:Fu,isJSUrl:_n,isNativeTag:Wu,isVuePlugin:Ku,loadCss:Hu,loadCssUrl:zu,loadScriptUrl:qu,mockApi:nl,mockApis:el,mockCleanup:fs,nodeRender:cr,parseDeps:Vu,parseExpression:Be,parseFunction:Gr,providerKey:ds,removeProdFlag:Lu,setupPageSetting:C_,toString:as,useAccess:Gu,useMask:dw,useProvider:ms},Symbol.toStringTag,{value:"Module"})),mw=Oi({__name:"app",setup(e){return(t,r)=>{const n=yl("router-view");return xs(),Es(Ss(Tl),{locale:Ss(xl)},{default:Ts(()=>[(xs(),Es(bl,null,{default:Ts(()=>[_l(n)]),_:1}))]),_:1},8,["locale"])}}}),gw=[{path:"/",name:"home",component:()=>Ue(()=>import("./index-DVr_v5KA.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20]),import.meta.url)},{path:"/preview/:id",name:"preview",component:()=>Ue(()=>import("./preview-Bnmb9ETc.js"),__vite__mapDeps([21,13,14,1,2,3,4,5,6,7,8,9,10,11,12,15,16,17,18]),import.meta.url)},{path:"/page/:id",name:"page",component:()=>Ue(()=>import("./page-B0jtXeSQ.js"),__vite__mapDeps([22,13,14,1,2,3,4,5,6,7,8,9,10,11,12,15,16,17,18]),import.meta.url),meta:{pure:!0}},{path:"/pages/:id",name:"page",component:()=>Ue(()=>import("./uni-page-Bjgk97mC.js"),__vite__mapDeps([23,1,2,19,24]),import.meta.url),meta:{pure:!0}},{path:"/auth",name:"auth",component:()=>Ue(()=>import("./auth-BNKonXq_.js"),__vite__mapDeps([25,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,19,26]),import.meta.url)}],vw=El({history:Sl(),routes:gw}),yw="RRO_IDE_ACCESS_STORAGE__",gs=wl(mw),bw=new ls({storageKey:yw});gs.use(bw);gs.use(vw);gs.mount("#app");export{zc as $,yw as A,cl as B,oe as C,we as D,We as E,ai as F,oi as G,Uc as H,Hc as I,ae as J,l1 as K,pa as L,G as M,nt as N,Fr as O,Ye as P,C_ as Q,ty as R,a_ as S,ee as T,Wi as U,Br as V,Ki as W,ti as X,N_ as Y,ct as Z,c_ as _,Rc as a,Ji as a0,k1 as a1,Qa as a2,V1 as a3,Vu as a4,D_ as a5,j_ as a6,M1 as a7,Uu as a8,tl as a9,qu as aA,fs as aa,el as ab,Kr as ac,Fi as ad,z_ as ae,wt as af,Fe as ag,i_ as ah,Be as ai,Gr as aj,Je as ak,Nu as al,z1 as am,P_ as an,R_ as ao,ku as ap,rl as aq,s_ as ar,m1 as as,ki as at,eE as au,Pw as av,tE as aw,bn as ax,_n as ay,zu as az,Dt as b,gt as c,Ui as d,aw as e,Se as f,Nt as g,Yv as h,f1 as i,O_ as j,ir as k,cs as l,Hv as m,pw as n,bt as o,Fc as p,ce as q,M as r,ls as s,lw as t,ii as u,A_ as v,it as w,is as x,ht as y,$c as z};