@vtj/pro 0.10.6 → 0.10.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (40) 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 +3 -3
  6. package/dist/@vtj/materials/assets/uni-ui/index.umd.js +3 -3
  7. package/dist/@vtj/materials/assets/vant/index.umd.js +2 -2
  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 +3 -3
  11. package/dist/@vtj/materials/deps/@vtj/utils/index.umd.js +20 -20
  12. package/dist/@vtj/materials/deps/@vueuse/core/index.iife.min.js +1 -1
  13. package/dist/@vtj/materials/deps/uni-ui/index.umd.js +1 -1
  14. package/dist/@vtj/materials/deps/uni-ui/style.css +1 -1
  15. package/dist/assets/@vueuse-dS-W09Vv.js +1 -0
  16. package/dist/assets/{Editor-BFm57YMW-C5aEqj0b.js → Editor-7SLplEph-lPDo8mjp.js} +1 -1
  17. package/dist/assets/auth-CX7bAu-N.js +1 -0
  18. package/dist/assets/{element-plus-HvLQb0Ih.js → element-plus-oE4l1K8x.js} +1 -1
  19. package/dist/assets/{extension-CSkHzHdg.js → extension-C1GTcSPg.js} +48 -48
  20. package/dist/assets/index-Bt9n3zBh.js +1 -0
  21. package/dist/assets/{index-Fvxzmd5p.js → index-CixnE82_.js} +29 -29
  22. package/dist/assets/{monaco-editor-BfuwkNVi.js → monaco-editor-B8dwQNlP.js} +2 -2
  23. package/dist/assets/page-BId1M6Fj.js +2 -0
  24. package/dist/assets/preview-DdndbIC2.js +2 -0
  25. package/dist/assets/{ts.worker-D9KUThWN-CwisnTF3.js → ts.worker-Bjq4oI3m-CFV77luR.js} +7 -7
  26. package/dist/assets/{utils-CwbD7XwC.js → utils-Du5uEC3_.js} +1 -1
  27. package/dist/index.html +6 -6
  28. package/dist/uni/assets/{@dcloudio-uni-h5-vue-Vtb9ks0b.js → @dcloudio-uni-h5-vue-DnZu5_T3.js} +1 -1
  29. package/dist/uni/assets/index-DD9uGH46.js +151 -0
  30. package/dist/uni/assets/{vue-router-CkCKZZ3K.js → vue-router-D_BqcVGJ.js} +1 -1
  31. package/dist/uni/index.html +3 -3
  32. package/package.json +13 -13
  33. package/src/.vtj/materials/@vtj/pro.json +7 -6
  34. package/src/.vtj/projects/@vtj/pro.json +3 -1
  35. package/dist/assets/@vueuse-ZjnzVW6R.js +0 -1
  36. package/dist/assets/auth-Re_w20P7.js +0 -1
  37. package/dist/assets/index-CFi2Tinq.js +0 -1
  38. package/dist/assets/page-B6rLZRtE.js +0 -2
  39. package/dist/assets/preview-BcvN6Eux.js +0 -2
  40. package/dist/uni/assets/index-Cr58E2ud.js +0 -151
@@ -0,0 +1,151 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./@dcloudio-uni-h5-vue-DnZu5_T3.js","./vue-BK7aLblh.js","./@dcloudio-uni-shared-VStmjWbh.js","./vue-router-D_BqcVGJ.js"])))=>i.map(i=>d[i]);
2
+ var ks=Object.defineProperty,Is=Object.defineProperties;var Fs=Object.getOwnPropertyDescriptors;var _e=Object.getOwnPropertySymbols;var un=Object.prototype.hasOwnProperty,cn=Object.prototype.propertyIsEnumerable;var Lt=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),Ms=e=>{throw TypeError(e)};var tr=(e,t,r)=>t in e?ks(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,V=(e,t)=>{for(var r in t||(t={}))un.call(t,r)&&tr(e,r,t[r]);if(_e)for(var r of _e(t))cn.call(t,r)&&tr(e,r,t[r]);return e},Q=(e,t)=>Is(e,Fs(t));var ln=(e,t)=>{var r={};for(var n in e)un.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&_e)for(var n of _e(e))t.indexOf(n)<0&&cn.call(e,n)&&(r[n]=e[n]);return r};var z=(e,t,r)=>tr(e,typeof t!="symbol"?t+"":t,r);var U=(e,t,r)=>new Promise((n,i)=>{var o=c=>{try{u(r.next(c))}catch(a){i(a)}},s=c=>{try{u(r.throw(c))}catch(a){i(a)}},u=c=>c.done?n(c.value):Promise.resolve(c.value).then(o,s);u((r=r.apply(e,t)).next())}),At=function(e,t){this[0]=e,this[1]=t},er=(e,t,r)=>{var n=(s,u,c,a)=>{try{var l=r[s](u),f=(u=l.value)instanceof At,h=l.done;Promise.resolve(f?u[0]:u).then(p=>f?n(s==="return"?s:"next",u[1]?{done:p.done,value:p.value}:p,c,a):c({value:p,done:h})).catch(p=>n("throw",p,c,a))}catch(p){a(p)}},i=s=>o[s]=u=>new Promise((c,a)=>n(s,u,c,a)),o={};return r=r.apply(e,t),o[Lt("asyncIterator")]=()=>o,i("next"),i("throw"),i("return"),o},rr=e=>{var t=e[Lt("asyncIterator")],r=!1,n,i={};return t==null?(t=e[Lt("iterator")](),n=o=>i[o]=s=>t[o](s)):(t=t.call(e),n=o=>i[o]=s=>{if(r){if(r=!1,o==="throw")throw s;return s}return r=!0,{done:!1,value:new At(new Promise(u=>{var c=t[o](s);c instanceof Object||Ms("Object expected"),u(c)}),1)}}),i[Lt("iterator")]=()=>i,n("next"),"throw"in t?n("throw"):i.throw=o=>{throw o},"return"in t&&n("return"),i},fn=(e,t,r)=>(t=e[Lt("asyncIterator")])?t.call(e):(e=e[Lt("iterator")](),t={},r=(n,i)=>(i=e[n])&&(t[n]=o=>new Promise((s,u,c)=>(o=i.call(e,o),c=o.done,Promise.resolve(o.value).then(a=>s({value:a,done:c}),u)))),r("next"),r("return"),t);import{v as nr,d as Wr,g as hn,h as wr,r as Ci,N as Ve,i as Ps,w as Ni,j as Us,k as Ls,l as jt,t as Vs,m as Hs,q as qs,c as ki,x as Jr,y as zs,z as Ws,s as Js,A as Ys,B as Ks}from"./@dcloudio-uni-h5-vue-DnZu5_T3.js";import{useRoute as Gs}from"./vue-router-D_BqcVGJ.js";import{L as ir}from"./vue-BK7aLblh.js";import"./@dcloudio-uni-shared-VStmjWbh.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 o of i)if(o.type==="childList")for(const s of o.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&n(s)}).observe(document,{childList:!0,subtree:!0});function r(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function n(i){if(i.ep)return;i.ep=!0;const o=r(i);fetch(i.href,o)}})();const Zs="modulepreload",Xs=function(e,t){return new URL(e,t).href},pn={},dn=function(t,r,n){let i=Promise.resolve();if(r&&r.length>0){const s=document.getElementsByTagName("link"),u=document.querySelector("meta[property=csp-nonce]"),c=(u==null?void 0:u.nonce)||(u==null?void 0:u.getAttribute("nonce"));i=Promise.allSettled(r.map(a=>{if(a=Xs(a,n),a in pn)return;pn[a]=!0;const l=a.endsWith(".css"),f=l?'[rel="stylesheet"]':"";if(!!n)for(let d=s.length-1;d>=0;d--){const m=s[d];if(m.href===a&&(!l||m.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${a}"]${f}`))return;const p=document.createElement("link");if(p.rel=l?"stylesheet":Zs,l||(p.as="script"),p.crossOrigin="",p.href=a,c&&p.setAttribute("nonce",c),document.head.appendChild(p),l)return new Promise((d,m)=>{p.addEventListener("load",d),p.addEventListener("error",()=>m(new Error(`Unable to preload CSS for ${a}`)))})}))}function o(s){const u=new Event("vite:preloadError",{cancelable:!0});if(u.payload=s,window.dispatchEvent(u),!u.defaultPrevented)throw s}return i.then(s=>{for(const u of s||[])u.status==="rejected"&&o(u.reason);return t().catch(o)})};var Qs={ENV_TYPE:"live",NODE_ENV:"production"},ta=typeof global=="object"&&global&&global.Object===Object&&global;const Ii=ta;var ea=typeof self=="object"&&self&&self.Object===Object&&self,ra=Ii||ea||Function("return this")();const pt=ra;var na=pt.Symbol;const gt=na;var Fi=Object.prototype,ia=Fi.hasOwnProperty,oa=Fi.toString,ie=gt?gt.toStringTag:void 0;function sa(e){var t=ia.call(e,ie),r=e[ie];try{e[ie]=void 0;var n=!0}catch(o){}var i=oa.call(e);return n&&(t?e[ie]=r:delete e[ie]),i}var aa=Object.prototype,ua=aa.toString;function ca(e){return ua.call(e)}var la="[object Null]",fa="[object Undefined]",mn=gt?gt.toStringTag:void 0;function bt(e){return e==null?e===void 0?fa:la:mn&&mn in Object(e)?sa(e):ca(e)}function Tt(e){return e!=null&&typeof e=="object"}var ha="[object Symbol]";function Mi(e){return typeof e=="symbol"||Tt(e)&&bt(e)==ha}function Pi(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 pa=Array.isArray;const le=pa;var gn=gt?gt.prototype:void 0,yn=gn?gn.toString:void 0;function Ui(e){if(typeof e=="string")return e;if(le(e))return Pi(e,Ui)+"";if(Mi(e))return yn?yn.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var da=/\s/;function ma(e){for(var t=e.length;t--&&da.test(e.charAt(t)););return t}var ga=/^\s+/;function ya(e){return e&&e.slice(0,ma(e)+1).replace(ga,"")}function ft(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var vn=NaN,va=/^[-+]0x[0-9a-f]+$/i,ba=/^0b[01]+$/i,wa=/^0o[0-7]+$/i,_a=parseInt;function bn(e){if(typeof e=="number")return e;if(Mi(e))return vn;if(ft(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=ft(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=ya(e);var r=ba.test(e);return r||wa.test(e)?_a(e.slice(2),r?2:8):va.test(e)?vn:+e}function Li(e){return e}var Ea="[object AsyncFunction]",Sa="[object Function]",xa="[object GeneratorFunction]",Ta="[object Proxy]";function fe(e){if(!ft(e))return!1;var t=bt(e);return t==Sa||t==xa||t==Ea||t==Ta}var Ra=pt["__core-js_shared__"];const or=Ra;var wn=function(){var e=/[^.]+$/.exec(or&&or.keys&&or.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Oa(e){return!!wn&&wn in e}var $a=Function.prototype,Aa=$a.toString;function Ft(e){if(e!=null){try{return Aa.call(e)}catch(t){}try{return e+""}catch(t){}}return""}var ja=/[\\^$.*+?()[\]{}|]/g,Da=/^\[object .+?Constructor\]$/,Ba=Function.prototype,Ca=Object.prototype,Na=Ba.toString,ka=Ca.hasOwnProperty,Ia=RegExp("^"+Na.call(ka).replace(ja,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Fa(e){if(!ft(e)||Oa(e))return!1;var t=fe(e)?Ia:Da;return t.test(Ft(e))}function Ma(e,t){return e==null?void 0:e[t]}function Mt(e,t){var r=Ma(e,t);return Fa(r)?r:void 0}var Pa=Mt(pt,"WeakMap");const _r=Pa;var _n=Object.create,Ua=function(){function e(){}return function(t){if(!ft(t))return{};if(_n)return _n(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();const La=Ua;function Vi(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 Va(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}var Ha=800,qa=16,za=Date.now;function Wa(e){var t=0,r=0;return function(){var n=za(),i=qa-(n-r);if(r=n,i>0){if(++t>=Ha)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function Ja(e){return function(){return e}}var Ya=function(){try{var e=Mt(Object,"defineProperty");return e({},"",{}),e}catch(t){}}();const Fe=Ya;var Ka=Fe?function(e,t){return Fe(e,"toString",{configurable:!0,enumerable:!1,value:Ja(t),writable:!0})}:Li;const Ga=Ka;var Za=Wa(Ga);const Xa=Za;var Qa=9007199254740991,tu=/^(?:0|[1-9]\d*)$/;function Hi(e,t){var r=typeof e;return t=t!=null?t:Qa,!!t&&(r=="number"||r!="symbol"&&tu.test(e))&&e>-1&&e%1==0&&e<t}function Yr(e,t,r){t=="__proto__"&&Fe?Fe(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function ye(e,t){return e===t||e!==e&&t!==t}var eu=Object.prototype,ru=eu.hasOwnProperty;function nu(e,t,r){var n=e[t];(!(ru.call(e,t)&&ye(n,r))||r===void 0&&!(t in e))&&Yr(e,t,r)}function qi(e,t,r,n){var i=!r;r||(r={});for(var o=-1,s=t.length;++o<s;){var u=t[o],c=n?n(r[u],e[u],u,r,e):void 0;c===void 0&&(c=e[u]),i?Yr(r,u,c):nu(r,u,c)}return r}var En=Math.max;function iu(e,t,r){return t=En(t===void 0?e.length-1:t,0),function(){for(var n=arguments,i=-1,o=En(n.length-t,0),s=Array(o);++i<o;)s[i]=n[t+i];i=-1;for(var u=Array(t+1);++i<t;)u[i]=n[i];return u[t]=r(s),Vi(e,this,u)}}function zi(e,t){return Xa(iu(e,t,Li),e+"")}var ou=9007199254740991;function Wi(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=ou}function He(e){return e!=null&&Wi(e.length)&&!fe(e)}function su(e,t,r){if(!ft(r))return!1;var n=typeof t;return(n=="number"?He(r)&&Hi(t,r.length):n=="string"&&t in r)?ye(r[t],e):!1}function Ji(e){return zi(function(t,r){var n=-1,i=r.length,o=i>1?r[i-1]:void 0,s=i>2?r[2]:void 0;for(o=e.length>3&&typeof o=="function"?(i--,o):void 0,s&&su(r[0],r[1],s)&&(o=i<3?void 0:o,i=1),t=Object(t);++n<i;){var u=r[n];u&&e(t,u,n,o)}return t})}var au=Object.prototype;function Kr(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||au;return e===r}function uu(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var cu="[object Arguments]";function Sn(e){return Tt(e)&&bt(e)==cu}var Yi=Object.prototype,lu=Yi.hasOwnProperty,fu=Yi.propertyIsEnumerable,hu=Sn(function(){return arguments}())?Sn:function(e){return Tt(e)&&lu.call(e,"callee")&&!fu.call(e,"callee")};const Er=hu;function pu(){return!1}var Ki=typeof exports=="object"&&exports&&!exports.nodeType&&exports,xn=Ki&&typeof module=="object"&&module&&!module.nodeType&&module,du=xn&&xn.exports===Ki,Tn=du?pt.Buffer:void 0,mu=Tn?Tn.isBuffer:void 0,gu=mu||pu;const Gi=gu;var yu="[object Arguments]",vu="[object Array]",bu="[object Boolean]",wu="[object Date]",_u="[object Error]",Eu="[object Function]",Su="[object Map]",xu="[object Number]",Tu="[object Object]",Ru="[object RegExp]",Ou="[object Set]",$u="[object String]",Au="[object WeakMap]",ju="[object ArrayBuffer]",Du="[object DataView]",Bu="[object Float32Array]",Cu="[object Float64Array]",Nu="[object Int8Array]",ku="[object Int16Array]",Iu="[object Int32Array]",Fu="[object Uint8Array]",Mu="[object Uint8ClampedArray]",Pu="[object Uint16Array]",Uu="[object Uint32Array]",K={};K[Bu]=K[Cu]=K[Nu]=K[ku]=K[Iu]=K[Fu]=K[Mu]=K[Pu]=K[Uu]=!0,K[yu]=K[vu]=K[ju]=K[bu]=K[Du]=K[wu]=K[_u]=K[Eu]=K[Su]=K[xu]=K[Tu]=K[Ru]=K[Ou]=K[$u]=K[Au]=!1;function Lu(e){return Tt(e)&&Wi(e.length)&&!!K[bt(e)]}function Vu(e){return function(t){return e(t)}}var Zi=typeof exports=="object"&&exports&&!exports.nodeType&&exports,ce=Zi&&typeof module=="object"&&module&&!module.nodeType&&module,Hu=ce&&ce.exports===Zi,sr=Hu&&Ii.process,qu=function(){try{var e=ce&&ce.require&&ce.require("util").types;return e||sr&&sr.binding&&sr.binding("util")}catch(t){}}();const yt=qu;var Rn=yt&&yt.isTypedArray,zu=Rn?Vu(Rn):Lu;const Xi=zu;var Wu=Object.prototype,Ju=Wu.hasOwnProperty;function Qi(e,t){var r=le(e),n=!r&&Er(e),i=!r&&!n&&Gi(e),o=!r&&!n&&!i&&Xi(e),s=r||n||i||o,u=s?uu(e.length,String):[],c=u.length;for(var a in e)(t||Ju.call(e,a))&&!(s&&(a=="length"||i&&(a=="offset"||a=="parent")||o&&(a=="buffer"||a=="byteLength"||a=="byteOffset")||Hi(a,c)))&&u.push(a);return u}function to(e,t){return function(r){return e(t(r))}}var Yu=to(Object.keys,Object);const Ku=Yu;var Gu=Object.prototype,Zu=Gu.hasOwnProperty;function Xu(e){if(!Kr(e))return Ku(e);var t=[];for(var r in Object(e))Zu.call(e,r)&&r!="constructor"&&t.push(r);return t}function Qu(e){return He(e)?Qi(e):Xu(e)}function tc(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var ec=Object.prototype,rc=ec.hasOwnProperty;function nc(e){if(!ft(e))return tc(e);var t=Kr(e),r=[];for(var n in e)n=="constructor"&&(t||!rc.call(e,n))||r.push(n);return r}function Gr(e){return He(e)?Qi(e,!0):nc(e)}var ic=Ji(function(e,t,r,n){qi(t,Gr(t),e,n)});const On=ic;var oc=Mt(Object,"create");const he=oc;function sc(){this.__data__=he?he(null):{},this.size=0}function ac(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var uc="__lodash_hash_undefined__",cc=Object.prototype,lc=cc.hasOwnProperty;function fc(e){var t=this.__data__;if(he){var r=t[e];return r===uc?void 0:r}return lc.call(t,e)?t[e]:void 0}var hc=Object.prototype,pc=hc.hasOwnProperty;function dc(e){var t=this.__data__;return he?t[e]!==void 0:pc.call(t,e)}var mc="__lodash_hash_undefined__";function gc(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=he&&t===void 0?mc:t,this}function Ct(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])}}Ct.prototype.clear=sc,Ct.prototype.delete=ac,Ct.prototype.get=fc,Ct.prototype.has=dc,Ct.prototype.set=gc;function yc(){this.__data__=[],this.size=0}function qe(e,t){for(var r=e.length;r--;)if(ye(e[r][0],t))return r;return-1}var vc=Array.prototype,bc=vc.splice;function wc(e){var t=this.__data__,r=qe(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():bc.call(t,r,1),--this.size,!0}function _c(e){var t=this.__data__,r=qe(t,e);return r<0?void 0:t[r][1]}function Ec(e){return qe(this.__data__,e)>-1}function Sc(e,t){var r=this.__data__,n=qe(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}function vt(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])}}vt.prototype.clear=yc,vt.prototype.delete=wc,vt.prototype.get=_c,vt.prototype.has=Ec,vt.prototype.set=Sc;var xc=Mt(pt,"Map");const pe=xc;function Tc(){this.size=0,this.__data__={hash:new Ct,map:new(pe||vt),string:new Ct}}function Rc(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function ze(e,t){var r=e.__data__;return Rc(t)?r[typeof t=="string"?"string":"hash"]:r.map}function Oc(e){var t=ze(this,e).delete(e);return this.size-=t?1:0,t}function $c(e){return ze(this,e).get(e)}function Ac(e){return ze(this,e).has(e)}function jc(e,t){var r=ze(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}function St(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])}}St.prototype.clear=Tc,St.prototype.delete=Oc,St.prototype.get=$c,St.prototype.has=Ac,St.prototype.set=jc;var Dc="Expected a function";function Zr(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(Dc);var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],o=r.cache;if(o.has(i))return o.get(i);var s=e.apply(this,n);return r.cache=o.set(i,s)||o,s};return r.cache=new(Zr.Cache||St),r}Zr.Cache=St;var Bc=500;function Cc(e){var t=Zr(e,function(n){return r.size===Bc&&r.clear(),n}),r=t.cache;return t}var Nc=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,kc=/\\(\\)?/g;Cc(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Nc,function(r,n,i,o){t.push(i?o.replace(kc,"$1"):n||r)}),t});function Xt(e){return e==null?"":Ui(e)}var Ic=to(Object.getPrototypeOf,Object);const eo=Ic;var Fc="[object Object]",Mc=Function.prototype,Pc=Object.prototype,ro=Mc.toString,Uc=Pc.hasOwnProperty,Lc=ro.call(Object);function no(e){if(!Tt(e)||bt(e)!=Fc)return!1;var t=eo(e);if(t===null)return!0;var r=Uc.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&ro.call(r)==Lc}var Vc="[object DOMException]",Hc="[object Error]";function io(e){if(!Tt(e))return!1;var t=bt(e);return t==Hc||t==Vc||typeof e.message=="string"&&typeof e.name=="string"&&!no(e)}var qc=zi(function(e,t){try{return Vi(e,void 0,t)}catch(r){return io(r)?r:new Error(r)}});const zc=qc;function Wc(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 o=Array(i);++n<i;)o[n]=e[n+t];return o}function Jc(e,t,r){var n=e.length;return r=r===void 0?n:r,Wc(e,t,r)}var Yc="\\ud800-\\udfff",Kc="\\u0300-\\u036f",Gc="\\ufe20-\\ufe2f",Zc="\\u20d0-\\u20ff",Xc=Kc+Gc+Zc,Qc="\\ufe0e\\ufe0f",tl="\\u200d",el=RegExp("["+tl+Yc+Xc+Qc+"]");function oo(e){return el.test(e)}function rl(e){return e.split("")}var so="\\ud800-\\udfff",nl="\\u0300-\\u036f",il="\\ufe20-\\ufe2f",ol="\\u20d0-\\u20ff",sl=nl+il+ol,al="\\ufe0e\\ufe0f",ul="["+so+"]",Sr="["+sl+"]",xr="\\ud83c[\\udffb-\\udfff]",cl="(?:"+Sr+"|"+xr+")",ao="[^"+so+"]",uo="(?:\\ud83c[\\udde6-\\uddff]){2}",co="[\\ud800-\\udbff][\\udc00-\\udfff]",ll="\\u200d",lo=cl+"?",fo="["+al+"]?",fl="(?:"+ll+"(?:"+[ao,uo,co].join("|")+")"+fo+lo+")*",hl=fo+lo+fl,pl="(?:"+[ao+Sr+"?",Sr,uo,co,ul].join("|")+")",dl=RegExp(xr+"(?="+xr+")|"+pl+hl,"g");function ml(e){return e.match(dl)||[]}function gl(e){return oo(e)?ml(e):rl(e)}function yl(e){return function(t){t=Xt(t);var r=oo(t)?gl(t):void 0,n=r?r[0]:t.charAt(0),i=r?Jc(r,1).join(""):t.slice(1);return n[e]()+i}}var vl=yl("toUpperCase");const ho=vl;function bl(e){return ho(Xt(e).toLowerCase())}function wl(e,t,r,n){var i=-1,o=e==null?0:e.length;for(n;++i<o;)r=t(r,e[i],i,e);return r}function po(e){return function(t){return e==null?void 0:e[t]}}var _l={À:"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"},El=po(_l);const Sl=El;var xl=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Tl="\\u0300-\\u036f",Rl="\\ufe20-\\ufe2f",Ol="\\u20d0-\\u20ff",$l=Tl+Rl+Ol,Al="["+$l+"]",jl=RegExp(Al,"g");function Dl(e){return e=Xt(e),e&&e.replace(xl,Sl).replace(jl,"")}var Bl=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function Cl(e){return e.match(Bl)||[]}var Nl=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function kl(e){return Nl.test(e)}var mo="\\ud800-\\udfff",Il="\\u0300-\\u036f",Fl="\\ufe20-\\ufe2f",Ml="\\u20d0-\\u20ff",Pl=Il+Fl+Ml,go="\\u2700-\\u27bf",yo="a-z\\xdf-\\xf6\\xf8-\\xff",Ul="\\xac\\xb1\\xd7\\xf7",Ll="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Vl="\\u2000-\\u206f",Hl=" \\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",vo="A-Z\\xc0-\\xd6\\xd8-\\xde",ql="\\ufe0e\\ufe0f",bo=Ul+Ll+Vl+Hl,wo="['’]",$n="["+bo+"]",zl="["+Pl+"]",_o="\\d+",Wl="["+go+"]",Eo="["+yo+"]",So="[^"+mo+bo+_o+go+yo+vo+"]",Jl="\\ud83c[\\udffb-\\udfff]",Yl="(?:"+zl+"|"+Jl+")",Kl="[^"+mo+"]",xo="(?:\\ud83c[\\udde6-\\uddff]){2}",To="[\\ud800-\\udbff][\\udc00-\\udfff]",Wt="["+vo+"]",Gl="\\u200d",An="(?:"+Eo+"|"+So+")",Zl="(?:"+Wt+"|"+So+")",jn="(?:"+wo+"(?:d|ll|m|re|s|t|ve))?",Dn="(?:"+wo+"(?:D|LL|M|RE|S|T|VE))?",Ro=Yl+"?",Oo="["+ql+"]?",Xl="(?:"+Gl+"(?:"+[Kl,xo,To].join("|")+")"+Oo+Ro+")*",Ql="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",tf="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",ef=Oo+Ro+Xl,rf="(?:"+[Wl,xo,To].join("|")+")"+ef,nf=RegExp([Wt+"?"+Eo+"+"+jn+"(?="+[$n,Wt,"$"].join("|")+")",Zl+"+"+Dn+"(?="+[$n,Wt+An,"$"].join("|")+")",Wt+"?"+An+"+"+jn,Wt+"+"+Dn,tf,Ql,_o,rf].join("|"),"g");function of(e){return e.match(nf)||[]}function sf(e,t,r){return e=Xt(e),t=t,t===void 0?kl(e)?of(e):Cl(e):e.match(t)||[]}var af="['’]",uf=RegExp(af,"g");function cf(e){return function(t){return wl(sf(Dl(t).replace(uf,"")),e,"")}}var lf=cf(function(e,t,r){return t=t.toLowerCase(),e+(r?bl(t):t)});const Dt=lf;function ff(){this.__data__=new vt,this.size=0}function hf(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function pf(e){return this.__data__.get(e)}function df(e){return this.__data__.has(e)}var mf=200;function gf(e,t){var r=this.__data__;if(r instanceof vt){var n=r.__data__;if(!pe||n.length<mf-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new St(n)}return r.set(e,t),this.size=r.size,this}function Jt(e){var t=this.__data__=new vt(e);this.size=t.size}Jt.prototype.clear=ff,Jt.prototype.delete=hf,Jt.prototype.get=pf,Jt.prototype.has=df,Jt.prototype.set=gf;var $o=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Bn=$o&&typeof module=="object"&&module&&!module.nodeType&&module,yf=Bn&&Bn.exports===$o,Cn=yf?pt.Buffer:void 0;Cn&&Cn.allocUnsafe;function vf(e,t){return e.slice()}var bf=Mt(pt,"DataView");const Tr=bf;var wf=Mt(pt,"Promise");const Rr=wf;var _f=Mt(pt,"Set");const Or=_f;var Nn="[object Map]",Ef="[object Object]",kn="[object Promise]",In="[object Set]",Fn="[object WeakMap]",Mn="[object DataView]",Sf=Ft(Tr),xf=Ft(pe),Tf=Ft(Rr),Rf=Ft(Or),Of=Ft(_r),Vt=bt;(Tr&&Vt(new Tr(new ArrayBuffer(1)))!=Mn||pe&&Vt(new pe)!=Nn||Rr&&Vt(Rr.resolve())!=kn||Or&&Vt(new Or)!=In||_r&&Vt(new _r)!=Fn)&&(Vt=function(e){var t=bt(e),r=t==Ef?e.constructor:void 0,n=r?Ft(r):"";if(n)switch(n){case Sf:return Mn;case xf:return Nn;case Tf:return kn;case Rf:return In;case Of:return Fn}return t});var $f=pt.Uint8Array;const Pn=$f;function Af(e){var t=new e.constructor(e.byteLength);return new Pn(t).set(new Pn(e)),t}var Un=gt?gt.prototype:void 0;Un&&Un.valueOf;function jf(e,t){var r=Af(e.buffer);return new e.constructor(r,e.byteOffset,e.length)}function Df(e){return typeof e.constructor=="function"&&!Kr(e)?La(eo(e)):{}}yt&&yt.isMap;yt&&yt.isSet;var Ln=gt?gt.prototype:void 0;Ln&&Ln.valueOf;function Bf(e){return function(t,r,n){for(var i=-1,o=Object(t),s=n(t),u=s.length;u--;){var c=s[++i];if(r(o[c],c,o)===!1)break}return t}}var Cf=Bf();const Nf=Cf;var kf=function(){return pt.Date.now()};const ar=kf;var If="Expected a function",Ff=Math.max,Mf=Math.min;function Ao(e,t,r){var n,i,o,s,u,c,a=0,l=!1,f=!1,h=!0;if(typeof e!="function")throw new TypeError(If);t=bn(t)||0,ft(r)&&(l=!!r.leading,f="maxWait"in r,o=f?Ff(bn(r.maxWait)||0,t):o,h="trailing"in r?!!r.trailing:h);function p(g){var x=n,O=i;return n=i=void 0,a=g,s=e.apply(O,x),s}function d(g){return a=g,u=setTimeout(E,t),l?p(g):s}function m(g){var x=g-c,O=g-a,M=t-x;return f?Mf(M,o-O):M}function b(g){var x=g-c,O=g-a;return c===void 0||x>=t||x<0||f&&O>=o}function E(){var g=ar();if(b(g))return y(g);u=setTimeout(E,m(g))}function y(g){return u=void 0,h&&n?p(g):(n=i=void 0,s)}function v(){u!==void 0&&clearTimeout(u),a=0,n=c=i=u=void 0}function w(){return u===void 0?s:y(ar())}function S(){var g=ar(),x=b(g);if(n=arguments,i=this,c=g,x){if(u===void 0)return d(c);if(f)return clearTimeout(u),u=setTimeout(E,t),p(c)}return u===void 0&&(u=setTimeout(E,t)),s}return S.cancel=v,S.flush=w,S}function $r(e,t,r){(r!==void 0&&!ye(e[t],r)||r===void 0&&!(t in e))&&Yr(e,t,r)}function Pf(e){return Tt(e)&&He(e)}function Ar(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}function Uf(e){return qi(e,Gr(e))}function Lf(e,t,r,n,i,o,s){var u=Ar(e,r),c=Ar(t,r),a=s.get(c);if(a){$r(e,r,a);return}var l=o?o(u,c,r+"",e,t,s):void 0,f=l===void 0;if(f){var h=le(c),p=!h&&Gi(c),d=!h&&!p&&Xi(c);l=c,h||p||d?le(u)?l=u:Pf(u)?l=Va(u):p?(f=!1,l=vf(c)):d?(f=!1,l=jf(c)):l=[]:no(c)||Er(c)?(l=u,Er(u)?l=Uf(u):(!ft(u)||fe(u))&&(l=Df(c))):f=!1}f&&(s.set(c,l),i(l,c,n,o,s),s.delete(c)),$r(e,r,l)}function jo(e,t,r,n,i){e!==t&&Nf(t,function(o,s){if(i||(i=new Jt),ft(o))Lf(e,t,s,r,jo,n,i);else{var u=n?n(Ar(e,s),o,s+"",e,t,i):void 0;u===void 0&&(u=o),$r(e,s,u)}},Gr)}var Vf={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Hf=po(Vf);const qf=Hf;var Do=/[&<>"']/g,zf=RegExp(Do.source);function Wf(e){return e=Xt(e),e&&zf.test(e)?e.replace(Do,qf):e}var Jf="[object String]";function Pt(e){return typeof e=="string"||!le(e)&&Tt(e)&&bt(e)==Jf}function Yf(e,t){return Pi(t,function(r){return e[r]})}yt&&yt.isArrayBuffer;yt&&yt.isDate;var Kf=Ji(function(e,t,r){jo(e,t,r)});const ae=Kf;var Bo=Object.prototype,Gf=Bo.hasOwnProperty;function Vn(e,t,r,n){return e===void 0||ye(e,Bo[r])&&!Gf.call(n,r)?t:e}var Zf={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"};function Xf(e){return"\\"+Zf[e]}var Qf=/<%=([\s\S]+?)%>/g;const Co=Qf;var th=/<%-([\s\S]+?)%>/g;const eh=th;var rh=/<%([\s\S]+?)%>/g;const nh=rh;var ih={escape:eh,evaluate:nh,interpolate:Co,variable:"",imports:{_:{escape:Wf}}};const Hn=ih;var oh="Invalid `variable` option passed into `_.template`",sh=/\b__p \+= '';/g,ah=/\b(__p \+=) '' \+/g,uh=/(__e\(.*?\)|\b__t\)) \+\n'';/g,ch=/[()=,{}\[\]\/\s]/,lh=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Ee=/($^)/,fh=/['\n\r\u2028\u2029\\]/g,hh=Object.prototype,qn=hh.hasOwnProperty;function ph(e,t,r){var n=Hn.imports._.templateSettings||Hn;e=Xt(e),t=On({},t,n,Vn);var i=On({},t.imports,n.imports,Vn),o=Qu(i),s=Yf(i,o),u,c,a=0,l=t.interpolate||Ee,f="__p += '",h=RegExp((t.escape||Ee).source+"|"+l.source+"|"+(l===Co?lh:Ee).source+"|"+(t.evaluate||Ee).source+"|$","g"),p=qn.call(t,"sourceURL")?"//# sourceURL="+(t.sourceURL+"").replace(/\s/g," ")+`
3
+ `:"";e.replace(h,function(b,E,y,v,w,S){return y||(y=v),f+=e.slice(a,S).replace(fh,Xf),E&&(u=!0,f+=`' +
4
+ __e(`+E+`) +
5
+ '`),w&&(c=!0,f+=`';
6
+ `+w+`;
7
+ __p += '`),y&&(f+=`' +
8
+ ((__t = (`+y+`)) == null ? '' : __t) +
9
+ '`),a=S+b.length,b}),f+=`';
10
+ `;var d=qn.call(t,"variable")&&t.variable;if(!d)f=`with (obj) {
11
+ `+f+`
12
+ }
13
+ `;else if(ch.test(d))throw new Error(oh);f=(c?f.replace(sh,""):f).replace(ah,"$1").replace(uh,"$1;"),f="function("+(d||"obj")+`) {
14
+ `+(d?"":`obj || (obj = {});
15
+ `)+"var __t, __p = ''"+(u?", __e = _.escape":"")+(c?`, __j = Array.prototype.join;
16
+ function print() { __p += __j.call(arguments, '') }
17
+ `:`;
18
+ `)+f+`return __p
19
+ }`;var m=zc(function(){return Function(o,p+"return "+f).apply(void 0,s)});if(m.source=f,io(m))throw m;return m}var dh="Expected a function";function mh(e,t,r){var n=!0,i=!0;if(typeof e!="function")throw new TypeError(dh);return ft(r)&&(n="leading"in r?!0:n,i="trailing"in r?!1:i),Ao(e,t,{leading:n,maxWait:t,trailing:i})}var rt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Qt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var No={exports:{}};function gh(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 zn={exports:{}},Wn;function Rt(){return Wn||(Wn=1,function(e,t){(function(r,n){e.exports=n()})(rt,function(){var r=r||function(n,i){var o;if(typeof window<"u"&&window.crypto&&(o=window.crypto),typeof self<"u"&&self.crypto&&(o=self.crypto),typeof globalThis<"u"&&globalThis.crypto&&(o=globalThis.crypto),!o&&typeof window<"u"&&window.msCrypto&&(o=window.msCrypto),!o&&typeof rt<"u"&&rt.crypto&&(o=rt.crypto),!o&&typeof gh=="function")try{o=require("crypto")}catch(y){}var s=function(){if(o){if(typeof o.getRandomValues=="function")try{return o.getRandomValues(new Uint32Array(1))[0]}catch(y){}if(typeof o.randomBytes=="function")try{return o.randomBytes(4).readInt32LE()}catch(y){}}throw new Error("Native crypto module could not be used to get secure random number.")},u=Object.create||function(){function y(){}return function(v){var w;return y.prototype=v,w=new y,y.prototype=null,w}}(),c={},a=c.lib={},l=a.Base=function(){return{extend:function(y){var v=u(this);return y&&v.mixIn(y),(!v.hasOwnProperty("init")||this.init===v.init)&&(v.init=function(){v.$super.init.apply(this,arguments)}),v.init.prototype=v,v.$super=this,v},create:function(){var y=this.extend();return y.init.apply(y,arguments),y},init:function(){},mixIn:function(y){for(var v in y)y.hasOwnProperty(v)&&(this[v]=y[v]);y.hasOwnProperty("toString")&&(this.toString=y.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),f=a.WordArray=l.extend({init:function(y,v){y=this.words=y||[],v!=i?this.sigBytes=v:this.sigBytes=y.length*4},toString:function(y){return(y||p).stringify(this)},concat:function(y){var v=this.words,w=y.words,S=this.sigBytes,g=y.sigBytes;if(this.clamp(),S%4)for(var x=0;x<g;x++){var O=w[x>>>2]>>>24-x%4*8&255;v[S+x>>>2]|=O<<24-(S+x)%4*8}else for(var M=0;M<g;M+=4)v[S+M>>>2]=w[M>>>2];return this.sigBytes+=g,this},clamp:function(){var y=this.words,v=this.sigBytes;y[v>>>2]&=4294967295<<32-v%4*8,y.length=n.ceil(v/4)},clone:function(){var y=l.clone.call(this);return y.words=this.words.slice(0),y},random:function(y){for(var v=[],w=0;w<y;w+=4)v.push(s());return new f.init(v,y)}}),h=c.enc={},p=h.Hex={stringify:function(y){for(var v=y.words,w=y.sigBytes,S=[],g=0;g<w;g++){var x=v[g>>>2]>>>24-g%4*8&255;S.push((x>>>4).toString(16)),S.push((x&15).toString(16))}return S.join("")},parse:function(y){for(var v=y.length,w=[],S=0;S<v;S+=2)w[S>>>3]|=parseInt(y.substr(S,2),16)<<24-S%8*4;return new f.init(w,v/2)}},d=h.Latin1={stringify:function(y){for(var v=y.words,w=y.sigBytes,S=[],g=0;g<w;g++){var x=v[g>>>2]>>>24-g%4*8&255;S.push(String.fromCharCode(x))}return S.join("")},parse:function(y){for(var v=y.length,w=[],S=0;S<v;S++)w[S>>>2]|=(y.charCodeAt(S)&255)<<24-S%4*8;return new f.init(w,v)}},m=h.Utf8={stringify:function(y){try{return decodeURIComponent(escape(d.stringify(y)))}catch(v){throw new Error("Malformed UTF-8 data")}},parse:function(y){return d.parse(unescape(encodeURIComponent(y)))}},b=a.BufferedBlockAlgorithm=l.extend({reset:function(){this._data=new f.init,this._nDataBytes=0},_append:function(y){typeof y=="string"&&(y=m.parse(y)),this._data.concat(y),this._nDataBytes+=y.sigBytes},_process:function(y){var v,w=this._data,S=w.words,g=w.sigBytes,x=this.blockSize,O=x*4,M=g/O;y?M=n.ceil(M):M=n.max((M|0)-this._minBufferSize,0);var _=M*x,T=n.min(_*4,g);if(_){for(var F=0;F<_;F+=x)this._doProcessBlock(S,F);v=S.splice(0,_),w.sigBytes-=T}return new f.init(v,T)},clone:function(){var y=l.clone.call(this);return y._data=this._data.clone(),y},_minBufferSize:0});a.Hasher=b.extend({cfg:l.extend(),init:function(y){this.cfg=this.cfg.extend(y),this.reset()},reset:function(){b.reset.call(this),this._doReset()},update:function(y){return this._append(y),this._process(),this},finalize:function(y){y&&this._append(y);var v=this._doFinalize();return v},blockSize:16,_createHelper:function(y){return function(v,w){return new y.init(w).finalize(v)}},_createHmacHelper:function(y){return function(v,w){return new E.HMAC.init(y,w).finalize(v)}}});var E=c.algo={};return c}(Math);return r})}(zn)),zn.exports}(function(e,t){(function(r,n){e.exports=n(Rt())})(rt,function(r){return function(n){var i=r,o=i.lib,s=o.WordArray,u=o.Hasher,c=i.algo,a=[];(function(){for(var m=0;m<64;m++)a[m]=n.abs(n.sin(m+1))*4294967296|0})();var l=c.MD5=u.extend({_doReset:function(){this._hash=new s.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(m,b){for(var E=0;E<16;E++){var y=b+E,v=m[y];m[y]=(v<<8|v>>>24)&16711935|(v<<24|v>>>8)&4278255360}var w=this._hash.words,S=m[b+0],g=m[b+1],x=m[b+2],O=m[b+3],M=m[b+4],_=m[b+5],T=m[b+6],F=m[b+7],D=m[b+8],I=m[b+9],j=m[b+10],C=m[b+11],L=m[b+12],P=m[b+13],H=m[b+14],q=m[b+15],$=w[0],B=w[1],N=w[2],k=w[3];$=f($,B,N,k,S,7,a[0]),k=f(k,$,B,N,g,12,a[1]),N=f(N,k,$,B,x,17,a[2]),B=f(B,N,k,$,O,22,a[3]),$=f($,B,N,k,M,7,a[4]),k=f(k,$,B,N,_,12,a[5]),N=f(N,k,$,B,T,17,a[6]),B=f(B,N,k,$,F,22,a[7]),$=f($,B,N,k,D,7,a[8]),k=f(k,$,B,N,I,12,a[9]),N=f(N,k,$,B,j,17,a[10]),B=f(B,N,k,$,C,22,a[11]),$=f($,B,N,k,L,7,a[12]),k=f(k,$,B,N,P,12,a[13]),N=f(N,k,$,B,H,17,a[14]),B=f(B,N,k,$,q,22,a[15]),$=h($,B,N,k,g,5,a[16]),k=h(k,$,B,N,T,9,a[17]),N=h(N,k,$,B,C,14,a[18]),B=h(B,N,k,$,S,20,a[19]),$=h($,B,N,k,_,5,a[20]),k=h(k,$,B,N,j,9,a[21]),N=h(N,k,$,B,q,14,a[22]),B=h(B,N,k,$,M,20,a[23]),$=h($,B,N,k,I,5,a[24]),k=h(k,$,B,N,H,9,a[25]),N=h(N,k,$,B,O,14,a[26]),B=h(B,N,k,$,D,20,a[27]),$=h($,B,N,k,P,5,a[28]),k=h(k,$,B,N,x,9,a[29]),N=h(N,k,$,B,F,14,a[30]),B=h(B,N,k,$,L,20,a[31]),$=p($,B,N,k,_,4,a[32]),k=p(k,$,B,N,D,11,a[33]),N=p(N,k,$,B,C,16,a[34]),B=p(B,N,k,$,H,23,a[35]),$=p($,B,N,k,g,4,a[36]),k=p(k,$,B,N,M,11,a[37]),N=p(N,k,$,B,F,16,a[38]),B=p(B,N,k,$,j,23,a[39]),$=p($,B,N,k,P,4,a[40]),k=p(k,$,B,N,S,11,a[41]),N=p(N,k,$,B,O,16,a[42]),B=p(B,N,k,$,T,23,a[43]),$=p($,B,N,k,I,4,a[44]),k=p(k,$,B,N,L,11,a[45]),N=p(N,k,$,B,q,16,a[46]),B=p(B,N,k,$,x,23,a[47]),$=d($,B,N,k,S,6,a[48]),k=d(k,$,B,N,F,10,a[49]),N=d(N,k,$,B,H,15,a[50]),B=d(B,N,k,$,_,21,a[51]),$=d($,B,N,k,L,6,a[52]),k=d(k,$,B,N,O,10,a[53]),N=d(N,k,$,B,j,15,a[54]),B=d(B,N,k,$,g,21,a[55]),$=d($,B,N,k,D,6,a[56]),k=d(k,$,B,N,q,10,a[57]),N=d(N,k,$,B,T,15,a[58]),B=d(B,N,k,$,P,21,a[59]),$=d($,B,N,k,M,6,a[60]),k=d(k,$,B,N,C,10,a[61]),N=d(N,k,$,B,x,15,a[62]),B=d(B,N,k,$,I,21,a[63]),w[0]=w[0]+$|0,w[1]=w[1]+B|0,w[2]=w[2]+N|0,w[3]=w[3]+k|0},_doFinalize:function(){var m=this._data,b=m.words,E=this._nDataBytes*8,y=m.sigBytes*8;b[y>>>5]|=128<<24-y%32;var v=n.floor(E/4294967296),w=E;b[(y+64>>>9<<4)+15]=(v<<8|v>>>24)&16711935|(v<<24|v>>>8)&4278255360,b[(y+64>>>9<<4)+14]=(w<<8|w>>>24)&16711935|(w<<24|w>>>8)&4278255360,m.sigBytes=(b.length+1)*4,this._process();for(var S=this._hash,g=S.words,x=0;x<4;x++){var O=g[x];g[x]=(O<<8|O>>>24)&16711935|(O<<24|O>>>8)&4278255360}return S},clone:function(){var m=u.clone.call(this);return m._hash=this._hash.clone(),m}});function f(m,b,E,y,v,w,S){var g=m+(b&E|~b&y)+v+S;return(g<<w|g>>>32-w)+b}function h(m,b,E,y,v,w,S){var g=m+(b&y|E&~y)+v+S;return(g<<w|g>>>32-w)+b}function p(m,b,E,y,v,w,S){var g=m+(b^E^y)+v+S;return(g<<w|g>>>32-w)+b}function d(m,b,E,y,v,w,S){var g=m+(E^(b|~y))+v+S;return(g<<w|g>>>32-w)+b}i.MD5=u._createHelper(l),i.HmacMD5=u._createHmacHelper(l)}(Math),r.MD5})})(No);var ko=No.exports;Qt(ko);var Io={exports:{}};(function(e,t){(function(r,n){e.exports=n(Rt())})(rt,function(r){return function(){var n=r,i=n.lib,o=i.WordArray,s=n.enc;s.Base64={stringify:function(c){var a=c.words,l=c.sigBytes,f=this._map;c.clamp();for(var h=[],p=0;p<l;p+=3)for(var d=a[p>>>2]>>>24-p%4*8&255,m=a[p+1>>>2]>>>24-(p+1)%4*8&255,b=a[p+2>>>2]>>>24-(p+2)%4*8&255,E=d<<16|m<<8|b,y=0;y<4&&p+y*.75<l;y++)h.push(f.charAt(E>>>6*(3-y)&63));var v=f.charAt(64);if(v)for(;h.length%4;)h.push(v);return h.join("")},parse:function(c){var a=c.length,l=this._map,f=this._reverseMap;if(!f){f=this._reverseMap=[];for(var h=0;h<l.length;h++)f[l.charCodeAt(h)]=h}var p=l.charAt(64);if(p){var d=c.indexOf(p);d!==-1&&(a=d)}return u(c,a,f)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function u(c,a,l){for(var f=[],h=0,p=0;p<a;p++)if(p%4){var d=l[c.charCodeAt(p-1)]<<p%4*2,m=l[c.charCodeAt(p)]>>>6-p%4*2,b=d|m;f[h>>>2]|=b<<24-h%4*8,h++}return o.create(f,h)}}(),r.enc.Base64})})(Io);var Fo=Io.exports;Qt(Fo);var Mo={exports:{}};(function(e,t){(function(r,n){e.exports=n(Rt())})(rt,function(r){return r.enc.Utf8})})(Mo);var yh=Mo.exports;Qt(yh);var Po={exports:{}},Jn={exports:{}},Yn={exports:{}},Kn;function vh(){return Kn||(Kn=1,function(e,t){(function(r,n){e.exports=n(Rt())})(rt,function(r){return function(){var n=r,i=n.lib,o=i.WordArray,s=i.Hasher,u=n.algo,c=[],a=u.SHA1=s.extend({_doReset:function(){this._hash=new o.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(l,f){for(var h=this._hash.words,p=h[0],d=h[1],m=h[2],b=h[3],E=h[4],y=0;y<80;y++){if(y<16)c[y]=l[f+y]|0;else{var v=c[y-3]^c[y-8]^c[y-14]^c[y-16];c[y]=v<<1|v>>>31}var w=(p<<5|p>>>27)+E+c[y];y<20?w+=(d&m|~d&b)+1518500249:y<40?w+=(d^m^b)+1859775393:y<60?w+=(d&m|d&b|m&b)-1894007588:w+=(d^m^b)-899497514,E=b,b=m,m=d<<30|d>>>2,d=p,p=w}h[0]=h[0]+p|0,h[1]=h[1]+d|0,h[2]=h[2]+m|0,h[3]=h[3]+b|0,h[4]=h[4]+E|0},_doFinalize:function(){var l=this._data,f=l.words,h=this._nDataBytes*8,p=l.sigBytes*8;return f[p>>>5]|=128<<24-p%32,f[(p+64>>>9<<4)+14]=Math.floor(h/4294967296),f[(p+64>>>9<<4)+15]=h,l.sigBytes=f.length*4,this._process(),this._hash},clone:function(){var l=s.clone.call(this);return l._hash=this._hash.clone(),l}});n.SHA1=s._createHelper(a),n.HmacSHA1=s._createHmacHelper(a)}(),r.SHA1})}(Yn)),Yn.exports}var Gn={exports:{}},Zn;function bh(){return Zn||(Zn=1,function(e,t){(function(r,n){e.exports=n(Rt())})(rt,function(r){(function(){var n=r,i=n.lib,o=i.Base,s=n.enc,u=s.Utf8,c=n.algo;c.HMAC=o.extend({init:function(a,l){a=this._hasher=new a.init,typeof l=="string"&&(l=u.parse(l));var f=a.blockSize,h=f*4;l.sigBytes>h&&(l=a.finalize(l)),l.clamp();for(var p=this._oKey=l.clone(),d=this._iKey=l.clone(),m=p.words,b=d.words,E=0;E<f;E++)m[E]^=1549556828,b[E]^=909522486;p.sigBytes=d.sigBytes=h,this.reset()},reset:function(){var a=this._hasher;a.reset(),a.update(this._iKey)},update:function(a){return this._hasher.update(a),this},finalize:function(a){var l=this._hasher,f=l.finalize(a);l.reset();var h=l.finalize(this._oKey.clone().concat(f));return h}})})()})}(Gn)),Gn.exports}var Xn;function Uo(){return Xn||(Xn=1,function(e,t){(function(r,n,i){e.exports=n(Rt(),vh(),bh())})(rt,function(r){return function(){var n=r,i=n.lib,o=i.Base,s=i.WordArray,u=n.algo,c=u.MD5,a=u.EvpKDF=o.extend({cfg:o.extend({keySize:128/32,hasher:c,iterations:1}),init:function(l){this.cfg=this.cfg.extend(l)},compute:function(l,f){for(var h,p=this.cfg,d=p.hasher.create(),m=s.create(),b=m.words,E=p.keySize,y=p.iterations;b.length<E;){h&&d.update(h),h=d.update(l).finalize(f),d.reset();for(var v=1;v<y;v++)h=d.finalize(h),d.reset();m.concat(h)}return m.sigBytes=E*4,m}});n.EvpKDF=function(l,f,h){return a.create(h).compute(l,f)}}(),r.EvpKDF})}(Jn)),Jn.exports}var Qn={exports:{}},ti;function wh(){return ti||(ti=1,function(e,t){(function(r,n,i){e.exports=n(Rt(),Uo())})(rt,function(r){r.lib.Cipher||function(n){var i=r,o=i.lib,s=o.Base,u=o.WordArray,c=o.BufferedBlockAlgorithm,a=i.enc;a.Utf8;var l=a.Base64,f=i.algo,h=f.EvpKDF,p=o.Cipher=c.extend({cfg:s.extend(),createEncryptor:function(_,T){return this.create(this._ENC_XFORM_MODE,_,T)},createDecryptor:function(_,T){return this.create(this._DEC_XFORM_MODE,_,T)},init:function(_,T,F){this.cfg=this.cfg.extend(F),this._xformMode=_,this._key=T,this.reset()},reset:function(){c.reset.call(this),this._doReset()},process:function(_){return this._append(_),this._process()},finalize:function(_){_&&this._append(_);var T=this._doFinalize();return T},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function _(T){return typeof T=="string"?M:g}return function(T){return{encrypt:function(F,D,I){return _(D).encrypt(T,F,D,I)},decrypt:function(F,D,I){return _(D).decrypt(T,F,D,I)}}}}()});o.StreamCipher=p.extend({_doFinalize:function(){var _=this._process(!0);return _},blockSize:1});var d=i.mode={},m=o.BlockCipherMode=s.extend({createEncryptor:function(_,T){return this.Encryptor.create(_,T)},createDecryptor:function(_,T){return this.Decryptor.create(_,T)},init:function(_,T){this._cipher=_,this._iv=T}}),b=d.CBC=function(){var _=m.extend();_.Encryptor=_.extend({processBlock:function(F,D){var I=this._cipher,j=I.blockSize;T.call(this,F,D,j),I.encryptBlock(F,D),this._prevBlock=F.slice(D,D+j)}}),_.Decryptor=_.extend({processBlock:function(F,D){var I=this._cipher,j=I.blockSize,C=F.slice(D,D+j);I.decryptBlock(F,D),T.call(this,F,D,j),this._prevBlock=C}});function T(F,D,I){var j,C=this._iv;C?(j=C,this._iv=n):j=this._prevBlock;for(var L=0;L<I;L++)F[D+L]^=j[L]}return _}(),E=i.pad={},y=E.Pkcs7={pad:function(_,T){for(var F=T*4,D=F-_.sigBytes%F,I=D<<24|D<<16|D<<8|D,j=[],C=0;C<D;C+=4)j.push(I);var L=u.create(j,D);_.concat(L)},unpad:function(_){var T=_.words[_.sigBytes-1>>>2]&255;_.sigBytes-=T}};o.BlockCipher=p.extend({cfg:p.cfg.extend({mode:b,padding:y}),reset:function(){var _;p.reset.call(this);var T=this.cfg,F=T.iv,D=T.mode;this._xformMode==this._ENC_XFORM_MODE?_=D.createEncryptor:(_=D.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==_?this._mode.init(this,F&&F.words):(this._mode=_.call(D,this,F&&F.words),this._mode.__creator=_)},_doProcessBlock:function(_,T){this._mode.processBlock(_,T)},_doFinalize:function(){var _,T=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(T.pad(this._data,this.blockSize),_=this._process(!0)):(_=this._process(!0),T.unpad(_)),_},blockSize:128/32});var v=o.CipherParams=s.extend({init:function(_){this.mixIn(_)},toString:function(_){return(_||this.formatter).stringify(this)}}),w=i.format={},S=w.OpenSSL={stringify:function(_){var T,F=_.ciphertext,D=_.salt;return D?T=u.create([1398893684,1701076831]).concat(D).concat(F):T=F,T.toString(l)},parse:function(_){var T,F=l.parse(_),D=F.words;return D[0]==1398893684&&D[1]==1701076831&&(T=u.create(D.slice(2,4)),D.splice(0,4),F.sigBytes-=16),v.create({ciphertext:F,salt:T})}},g=o.SerializableCipher=s.extend({cfg:s.extend({format:S}),encrypt:function(_,T,F,D){D=this.cfg.extend(D);var I=_.createEncryptor(F,D),j=I.finalize(T),C=I.cfg;return v.create({ciphertext:j,key:F,iv:C.iv,algorithm:_,mode:C.mode,padding:C.padding,blockSize:_.blockSize,formatter:D.format})},decrypt:function(_,T,F,D){D=this.cfg.extend(D),T=this._parse(T,D.format);var I=_.createDecryptor(F,D).finalize(T.ciphertext);return I},_parse:function(_,T){return typeof _=="string"?T.parse(_,this):_}}),x=i.kdf={},O=x.OpenSSL={execute:function(_,T,F,D,I){if(D||(D=u.random(64/8)),I)var j=h.create({keySize:T+F,hasher:I}).compute(_,D);else var j=h.create({keySize:T+F}).compute(_,D);var C=u.create(j.words.slice(T),F*4);return j.sigBytes=T*4,v.create({key:j,iv:C,salt:D})}},M=o.PasswordBasedCipher=g.extend({cfg:g.cfg.extend({kdf:O}),encrypt:function(_,T,F,D){D=this.cfg.extend(D);var I=D.kdf.execute(F,_.keySize,_.ivSize,D.salt,D.hasher);D.iv=I.iv;var j=g.encrypt.call(this,_,T,I.key,D);return j.mixIn(I),j},decrypt:function(_,T,F,D){D=this.cfg.extend(D),T=this._parse(T,D.format);var I=D.kdf.execute(F,_.keySize,_.ivSize,T.salt,D.hasher);D.iv=I.iv;var j=g.decrypt.call(this,_,T,I.key,D);return j}})}()})}(Qn)),Qn.exports}(function(e,t){(function(r,n,i){e.exports=n(Rt(),Fo,ko,Uo(),wh())})(rt,function(r){return function(){var n=r,i=n.lib,o=i.BlockCipher,s=n.algo,u=[],c=[],a=[],l=[],f=[],h=[],p=[],d=[],m=[],b=[];(function(){for(var v=[],w=0;w<256;w++)w<128?v[w]=w<<1:v[w]=w<<1^283;for(var S=0,g=0,w=0;w<256;w++){var x=g^g<<1^g<<2^g<<3^g<<4;x=x>>>8^x&255^99,u[S]=x,c[x]=S;var O=v[S],M=v[O],_=v[M],T=v[x]*257^x*16843008;a[S]=T<<24|T>>>8,l[S]=T<<16|T>>>16,f[S]=T<<8|T>>>24,h[S]=T;var T=_*16843009^M*65537^O*257^S*16843008;p[x]=T<<24|T>>>8,d[x]=T<<16|T>>>16,m[x]=T<<8|T>>>24,b[x]=T,S?(S=O^v[v[v[_^O]]],g^=v[v[g]]):S=g=1}})();var E=[0,1,2,4,8,16,32,64,128,27,54],y=s.AES=o.extend({_doReset:function(){var v;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var w=this._keyPriorReset=this._key,S=w.words,g=w.sigBytes/4,x=this._nRounds=g+6,O=(x+1)*4,M=this._keySchedule=[],_=0;_<O;_++)_<g?M[_]=S[_]:(v=M[_-1],_%g?g>6&&_%g==4&&(v=u[v>>>24]<<24|u[v>>>16&255]<<16|u[v>>>8&255]<<8|u[v&255]):(v=v<<8|v>>>24,v=u[v>>>24]<<24|u[v>>>16&255]<<16|u[v>>>8&255]<<8|u[v&255],v^=E[_/g|0]<<24),M[_]=M[_-g]^v);for(var T=this._invKeySchedule=[],F=0;F<O;F++){var _=O-F;if(F%4)var v=M[_];else var v=M[_-4];F<4||_<=4?T[F]=v:T[F]=p[u[v>>>24]]^d[u[v>>>16&255]]^m[u[v>>>8&255]]^b[u[v&255]]}}},encryptBlock:function(v,w){this._doCryptBlock(v,w,this._keySchedule,a,l,f,h,u)},decryptBlock:function(v,w){var S=v[w+1];v[w+1]=v[w+3],v[w+3]=S,this._doCryptBlock(v,w,this._invKeySchedule,p,d,m,b,c);var S=v[w+1];v[w+1]=v[w+3],v[w+3]=S},_doCryptBlock:function(v,w,S,g,x,O,M,_){for(var T=this._nRounds,F=v[w]^S[0],D=v[w+1]^S[1],I=v[w+2]^S[2],j=v[w+3]^S[3],C=4,L=1;L<T;L++){var P=g[F>>>24]^x[D>>>16&255]^O[I>>>8&255]^M[j&255]^S[C++],H=g[D>>>24]^x[I>>>16&255]^O[j>>>8&255]^M[F&255]^S[C++],q=g[I>>>24]^x[j>>>16&255]^O[F>>>8&255]^M[D&255]^S[C++],$=g[j>>>24]^x[F>>>16&255]^O[D>>>8&255]^M[I&255]^S[C++];F=P,D=H,I=q,j=$}var P=(_[F>>>24]<<24|_[D>>>16&255]<<16|_[I>>>8&255]<<8|_[j&255])^S[C++],H=(_[D>>>24]<<24|_[I>>>16&255]<<16|_[j>>>8&255]<<8|_[F&255])^S[C++],q=(_[I>>>24]<<24|_[j>>>16&255]<<16|_[F>>>8&255]<<8|_[D&255])^S[C++],$=(_[j>>>24]<<24|_[F>>>16&255]<<16|_[D>>>8&255]<<8|_[I&255])^S[C++];v[w]=P,v[w+1]=H,v[w+2]=q,v[w+3]=$},keySize:256/32});n.AES=o._createHelper(y)}(),r.AES})})(Po);var _h=Po.exports;Qt(_h);var Eh="0123456789abcdefghijklmnopqrstuvwxyz";function ei(e){return Eh.charAt(e)}function Sh(e,t){return e&t}function Se(e,t){return e|t}function ri(e,t){return e^t}function ni(e,t){return e&~t}function xh(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 Th(e){for(var t=0;e!=0;)e&=e-1,++t;return t}var oe="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Rh="=";function ii(e){var t,r,n="";for(t=0;t+3<=e.length;t+=3)r=parseInt(e.substring(t,t+3),16),n+=oe.charAt(r>>6)+oe.charAt(r&63);for(t+1==e.length?(r=parseInt(e.substring(t,t+1),16),n+=oe.charAt(r<<2)):t+2==e.length&&(r=parseInt(e.substring(t,t+2),16),n+=oe.charAt(r>>2)+oe.charAt((r&3)<<4));(n.length&3)>0;)n+=Rh;return n}var Ht,Oh={decode:function(e){var t;if(Ht===void 0){var r="0123456789ABCDEF",n=` \f
20
+ \r  \u2028\u2029`;for(Ht={},t=0;t<16;++t)Ht[r.charAt(t)]=t;for(r=r.toLowerCase(),t=10;t<16;++t)Ht[r.charAt(t)]=t;for(t=0;t<n.length;++t)Ht[n.charAt(t)]=-1}var i=[],o=0,s=0;for(t=0;t<e.length;++t){var u=e.charAt(t);if(u=="=")break;if(u=Ht[u],u!=-1){if(u===void 0)throw new Error("Illegal character at offset "+t);o|=u,++s>=2?(i[i.length]=o,o=0,s=0):o<<=4}}if(s)throw new Error("Hex encoding incomplete: 4 bits missing");return i}},Bt,jr={decode:function(e){var t;if(Bt===void 0){var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n=`= \f
21
+ \r  \u2028\u2029`;for(Bt=Object.create(null),t=0;t<64;++t)Bt[r.charAt(t)]=t;for(Bt["-"]=62,Bt._=63,t=0;t<n.length;++t)Bt[n.charAt(t)]=-1}var i=[],o=0,s=0;for(t=0;t<e.length;++t){var u=e.charAt(t);if(u=="=")break;if(u=Bt[u],u!=-1){if(u===void 0)throw new Error("Illegal character at offset "+t);o|=u,++s>=4?(i[i.length]=o>>16,i[i.length]=o>>8&255,i[i.length]=o&255,o=0,s=0):o<<=6}}switch(s){case 1:throw new Error("Base64 encoding incomplete: at least 2 bits missing");case 2:i[i.length]=o>>10;break;case 3:i[i.length]=o>>16,i[i.length]=o>>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=jr.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 jr.decode(e)}},qt=1e13,ue=function(){function e(t){this.buf=[+t||0]}return e.prototype.mulAdd=function(t,r){var n=this.buf,i=n.length,o,s;for(o=0;o<i;++o)s=n[o]*t+r,s<qt?r=0:(r=0|s/qt,s-=r*qt),n[o]=s;r>0&&(n[o]=r)},e.prototype.sub=function(t){var r=this.buf,n=r.length,i,o;for(i=0;i<n;++i)o=r[i]-t,o<0?(o+=qt,t=1):t=0,r[i]=o;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+=(qt+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*qt+t[n];return r},e.prototype.simplify=function(){var t=this.buf;return t.length==1?t[0]:this},e}(),Lo="…",$h=/^(\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)?)?$/,Ah=/^(\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 Kt(e,t){return e.length>t&&(e=e.substring(0,t)+Lo),e}var ur=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="",o=t;o<r;++o)if(i+=this.hexByte(this.get(o)),n!==!0)switch(o&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 o=this.get(i++);o<128?n+=String.fromCharCode(o):o>191&&o<224?n+=String.fromCharCode((o&31)<<6|this.get(i++)&63):n+=String.fromCharCode((o&15)<<12|(this.get(i++)&63)<<6|this.get(i++)&63)}return n},e.prototype.parseStringBMP=function(t,r){for(var n="",i,o,s=t;s<r;)i=this.get(s++),o=this.get(s++),n+=String.fromCharCode(i<<8|o);return n},e.prototype.parseTime=function(t,r,n){var i=this.parseStringISO(t,r),o=(n?$h:Ah).exec(i);return o?(n&&(o[1]=+o[1],o[1]+=+o[1]<70?2e3:1900),i=o[1]+"-"+o[2]+"-"+o[3]+" "+o[4],o[5]&&(i+=":"+o[5],o[6]&&(i+=":"+o[6],o[7]&&(i+="."+o[7]))),o[8]&&(i+=" UTC",o[8]!="Z"&&(i+=o[8],o[9]&&(i+=":"+o[9]))),i):"Unrecognized time: "+i},e.prototype.parseInteger=function(t,r){for(var n=this.get(t),i=n>127,o=i?255:0,s,u="";n==o&&++t<r;)n=this.get(t);if(s=r-t,s===0)return i?-1:0;if(s>4){for(u=n,s<<=3;!((+u^o)&128);)u=+u<<1,--s;u="("+s+` bit)
23
+ `}i&&(n=n-256);for(var c=new ue(n),a=t+1;a<r;++a)c.mulAdd(256,this.get(a));return u+c.toString()},e.prototype.parseBitString=function(t,r,n){for(var i=this.get(t),o=(r-t-1<<3)-i,s="("+o+` bit)
24
+ `,u="",c=t+1;c<r;++c){for(var a=this.get(c),l=c==r-1?i:0,f=7;f>=l;--f)u+=a>>f&1?"1":"0";if(u.length>n)return s+Kt(u,n)}return s+u},e.prototype.parseOctetString=function(t,r,n){if(this.isASCII(t,r))return Kt(this.parseStringISO(t,r),n);var i=r-t,o="("+i+` byte)
25
+ `;n/=2,i>n&&(r=t+n);for(var s=t;s<r;++s)o+=this.hexByte(this.get(s));return i>n&&(o+=Lo),o},e.prototype.parseOID=function(t,r,n){for(var i="",o=new ue,s=0,u=t;u<r;++u){var c=this.get(u);if(o.mulAdd(128,c&127),s+=7,!(c&128)){if(i==="")if(o=o.simplify(),o instanceof ue)o.sub(80),i="2."+o.toString();else{var a=o<80?o<40?0:1:2;i=a+"."+(o-a*40)}else i+="."+o.toString();if(i.length>n)return Kt(i,n);o=new ue,s=0}}return s>0&&(i+=".incomplete"),i},e}(),jh=function(){function e(t,r,n,i,o){if(!(i instanceof oi))throw new Error("Invalid tag value.");this.stream=t,this.header=r,this.length=n,this.tag=i,this.sub=o}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 Kt(this.stream.parseStringUTF(r,r+n),t);case 18:case 19:case 20:case 21:case 22:case 26:return Kt(this.stream.parseStringISO(r,r+n),t);case 30:return Kt(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 ur?r=t:r=new ur(t,0);var n=new ur(r),i=new oi(r),o=e.decodeLength(r),s=r.pos,u=s-n.pos,c=null,a=function(){var f=[];if(o!==null){for(var h=s+o;r.pos<h;)f[f.length]=e.decode(r);if(r.pos!=h)throw new Error("Content size is not correct for container starting at offset "+s)}else try{for(;;){var p=e.decode(r);if(p.tag.isEOC())break;f[f.length]=p}o=s-r.pos}catch(d){throw new Error("Exception while decoding undefined length content: "+d)}return f};if(i.tagConstructed)c=a();else if(i.isUniversal()&&(i.tagNumber==3||i.tagNumber==4))try{if(i.tagNumber==3&&r.get()!=0)throw new Error("BIT STRINGs with unused bits cannot encapsulate.");c=a();for(var l=0;l<c.length;++l)if(c[l].tag.isEOC())throw new Error("EOC is not supposed to be actual content.")}catch(f){c=null}if(c===null){if(o===null)throw new Error("We can't skip over an invalid tag with undefined length at offset "+s);r.pos=s+Math.abs(o)}return new e(n,u,o,i,c)},e}(),oi=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 ue;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}(),_t,Dh=0xdeadbeefcafe,si=(Dh&16777215)==15715070,et=[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],Bh=(1<<26)/et[et.length-1],J=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,o=!1,s="",u=this.t,c=this.DB-u*this.DB%r;if(u-- >0)for(c<this.DB&&(i=this[u]>>c)>0&&(o=!0,s=ei(i));u>=0;)c<r?(i=(this[u]&(1<<c)-1)<<r-c,i|=this[--u]>>(c+=this.DB-r)):(i=this[u]>>(c-=r)&n,c<=0&&(c+=this.DB,--u)),i>0&&(o=!0),o&&(s+=ei(i));return o?s:"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)+xe(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 ai(r):n=new ui(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,o=0;if(t-- >0)for(n<this.DB&&(i=this[t]>>n)!=(this.s&this.DM)>>n&&(r[o++]=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),o==0&&(this.s&128)!=(i&128)&&++o,(o>0||i!=this.s)&&(r[o++]=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,Sh,r),r},e.prototype.or=function(t){var r=Y();return this.bitwiseTo(t,Se,r),r},e.prototype.xor=function(t){var r=Y();return this.bitwiseTo(t,ri,r),r},e.prototype.andNot=function(t){var r=Y();return this.bitwiseTo(t,ni,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+xh(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+=Th(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,Se)},e.prototype.clearBit=function(t){return this.changeBit(t,ni)},e.prototype.flipBit=function(t){return this.changeBit(t,ri)},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,o=Et(1),s;if(n<=0)return o;n<18?i=1:n<48?i=3:n<144?i=4:n<768?i=5:i=6,n<8?s=new ai(r):r.isEven()?s=new Nh(r):s=new ui(r);var u=[],c=3,a=i-1,l=(1<<i)-1;if(u[1]=s.convert(this),i>1){var f=Y();for(s.sqrTo(u[1],f);c<=l;)u[c]=Y(),s.mulTo(f,u[c-2],u[c]),c+=2}var h=t.t-1,p,d=!0,m=Y(),b;for(n=xe(t[h])-1;h>=0;){for(n>=a?p=t[h]>>n-a&l:(p=(t[h]&(1<<n+1)-1)<<a-n,h>0&&(p|=t[h-1]>>this.DB+n-a)),c=i;!(p&1);)p>>=1,--c;if((n-=c)<0&&(n+=this.DB,--h),d)u[p].copyTo(o),d=!1;else{for(;c>1;)s.sqrTo(o,m),s.sqrTo(m,o),c-=2;c>0?s.sqrTo(o,m):(b=o,o=m,m=b),s.mulTo(m,u[p],o)}for(;h>=0&&!(t[h]&1<<n);)s.sqrTo(o,m),b=o,o=m,m=b,--n<0&&(n=this.DB-1,--h)}return s.revert(o)},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(),o=Et(1),s=Et(0),u=Et(0),c=Et(1);n.signum()!=0;){for(;n.isEven();)n.rShiftTo(1,n),r?((!o.isEven()||!s.isEven())&&(o.addTo(this,o),s.subTo(t,s)),o.rShiftTo(1,o)):s.isEven()||s.subTo(t,s),s.rShiftTo(1,s);for(;i.isEven();)i.rShiftTo(1,i),r?((!u.isEven()||!c.isEven())&&(u.addTo(this,u),c.subTo(t,c)),u.rShiftTo(1,u)):c.isEven()||c.subTo(t,c),c.rShiftTo(1,c);n.compareTo(i)>=0?(n.subTo(i,n),r&&o.subTo(u,o),s.subTo(c,s)):(i.subTo(n,i),r&&u.subTo(o,u),c.subTo(s,c))}if(i.compareTo(e.ONE)!=0)return e.ZERO;if(c.compareTo(t)>=0)return c.subtract(t);if(c.signum()<0)c.addTo(t,c);else return c;return c.signum()<0?c.add(t):c},e.prototype.pow=function(t){return this.exp(t,new Ch)},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 o=r.getLowestSetBit(),s=n.getLowestSetBit();if(s<0)return r;for(o<s&&(s=o),s>0&&(r.rShiftTo(s,r),n.rShiftTo(s,n));r.signum()>0;)(o=r.getLowestSetBit())>0&&r.rShiftTo(o,r),(o=n.getLowestSetBit())>0&&n.rShiftTo(o,n),r.compareTo(n)>=0?(r.subTo(n,r),r.rShiftTo(1,r)):(n.subTo(r,n),n.rShiftTo(1,n));return s>0&&n.lShiftTo(s,n),n},e.prototype.isProbablePrime=function(t){var r,n=this.abs();if(n.t==1&&n[0]<=et[et.length-1]){for(r=0;r<et.length;++r)if(n[0]==et[r])return!0;return!1}if(n.isEven())return!1;for(r=1;r<et.length;){for(var i=et[r],o=r+1;o<et.length&&i<Bh;)i*=et[o++];for(i=n.modInt(i);r<o;)if(i%et[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,o=!1,s=0;--i>=0;){var u=n==8?+t[i]&255:li(t,i);if(u<0){t.charAt(i)=="-"&&(o=!0);continue}o=!1,s==0?this[this.t++]=u:s+n>this.DB?(this[this.t-1]|=(u&(1<<this.DB-s)-1)<<s,this[this.t++]=u>>this.DB-s):this[this.t-1]|=u<<s,s+=n,s>=this.DB&&(s-=this.DB)}n==8&&+t[0]&128&&(this.s=-1,s>0&&(this[this.t-1]|=(1<<this.DB-s)-1<<s)),this.clamp(),o&&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,o=(1<<i)-1,s=Math.floor(t/this.DB),u=this.s<<n&this.DM,c=this.t-1;c>=0;--c)r[c+s+1]=this[c]>>i|u,u=(this[c]&o)<<n;for(var c=s-1;c>=0;--c)r[c]=0;r[s]=u,r.t=this.t+s+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,o=this.DB-i,s=(1<<i)-1;r[0]=this[n]>>i;for(var u=n+1;u<this.t;++u)r[u-n-1]|=(this[u]&s)<<o,r[u-n]=this[u]>>i;i>0&&(r[this.t-n-1]|=(this.s&s)<<o),r.t=this.t-n,r.clamp()},e.prototype.subTo=function(t,r){for(var n=0,i=0,o=Math.min(t.t,this.t);n<o;)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(),o=n.t;for(r.t=o+i.t;--o>=0;)r[o]=0;for(o=0;o<i.t;++o)r[o+n.t]=n.am(0,i[o],r,o,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 o=this.abs();if(o.t<i.t){r==null||r.fromInt(0),n!=null&&this.copyTo(n);return}n==null&&(n=Y());var s=Y(),u=this.s,c=t.s,a=this.DB-xe(i[i.t-1]);a>0?(i.lShiftTo(a,s),o.lShiftTo(a,n)):(i.copyTo(s),o.copyTo(n));var l=s.t,f=s[l-1];if(f!=0){var h=f*(1<<this.F1)+(l>1?s[l-2]>>this.F2:0),p=this.FV/h,d=(1<<this.F1)/h,m=1<<this.F2,b=n.t,E=b-l,y=r!=null?r:Y();for(s.dlShiftTo(E,y),n.compareTo(y)>=0&&(n[n.t++]=1,n.subTo(y,n)),e.ONE.dlShiftTo(l,y),y.subTo(s,s);s.t<l;)s[s.t++]=0;for(;--E>=0;){var v=n[--b]==f?this.DM:Math.floor(n[b]*p+(n[b-1]+m)*d);if((n[b]+=s.am(0,v,n,E,0,l))<v)for(s.dlShiftTo(E,y),n.subTo(y,n);n[b]<--v;)n.subTo(y,n)}r!=null&&(n.drShiftTo(l,r),u!=c&&e.ZERO.subTo(r,r)),n.t=l,n.clamp(),a>0&&n.rShiftTo(a,n),u<0&&e.ZERO.subTo(n,n)}}},e.prototype.invDigit=function(){if(this.t<1)return 0;var t=this[0];if(!(t&1))return 0;var r=t&3;return r=r*(2-(t&15)*r)&15,r=r*(2-(t&255)*r)&255,r=r*(2-((t&65535)*r&65535))&65535,r=r*(2-t*r%this.DV)%this.DV,r>0?this.DV-r:-r},e.prototype.isEven=function(){return(this.t>0?this[0]&1:this.s)==0},e.prototype.exp=function(t,r){if(t>4294967295||t<1)return e.ONE;var n=Y(),i=Y(),o=r.convert(this),s=xe(t)-1;for(o.copyTo(n);--s>=0;)if(r.sqrTo(n,i),(t&1<<s)>0)r.mulTo(i,o,n);else{var u=n;n=i,i=u}return r.revert(n)},e.prototype.chunkSize=function(t){return Math.floor(Math.LN2*this.DB/Math.log(t))},e.prototype.toRadix=function(t){if(t==null&&(t=10),this.signum()==0||t<2||t>36)return"0";var r=this.chunkSize(t),n=Math.pow(t,r),i=Et(n),o=Y(),s=Y(),u="";for(this.divRemTo(i,o,s);o.signum()>0;)u=(n+s.intValue()).toString(t).substr(1)+u,o.divRemTo(i,o,s);return s.intValue().toString(t)+u},e.prototype.fromRadix=function(t,r){this.fromInt(0),r==null&&(r=10);for(var n=this.chunkSize(r),i=Math.pow(r,n),o=!1,s=0,u=0,c=0;c<t.length;++c){var a=li(t,c);if(a<0){t.charAt(c)=="-"&&this.signum()==0&&(o=!0);continue}u=r*u+a,++s>=n&&(this.dMultiply(i),this.dAddOffset(u,0),s=0,u=0)}s>0&&(this.dMultiply(Math.pow(r,s)),this.dAddOffset(u,0)),o&&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),Se,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=[],o=t&7;i.length=(t>>3)+1,r.nextBytes(i),o>0?i[0]&=(1<<o)-1:i[0]=0,this.fromString(i,256)}},e.prototype.bitwiseTo=function(t,r,n){var i,o,s=Math.min(t.t,this.t);for(i=0;i<s;++i)n[i]=r(this[i],t[i]);if(t.t<this.t){for(o=t.s&this.DM,i=s;i<this.t;++i)n[i]=r(this[i],o);n.t=this.t}else{for(o=this.s&this.DM,i=s;i<t.t;++i)n[i]=r(o,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,o=Math.min(t.t,this.t);n<o;)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 o=n.t-this.t;i<o;++i)n[i+this.t]=this.am(0,t[i],n,i,0,this.t);for(var o=Math.min(t.t,r);i<o;++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>et.length&&(t=et.length);for(var o=Y(),s=0;s<t;++s){o.fromInt(et[Math.floor(Math.random()*et.length)]);var u=o.modPow(i,this);if(u.compareTo(e.ONE)!=0&&u.compareTo(r)!=0){for(var c=1;c++<n&&u.compareTo(r)!=0;)if(u=u.modPowInt(2,this),u.compareTo(e.ONE)==0)return!1;if(u.compareTo(r)!=0)return!1}}return!0},e.prototype.square=function(){var t=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 o=n;n=i,i=o}var s=n.getLowestSetBit(),u=i.getLowestSetBit();if(u<0){r(n);return}s<u&&(u=s),u>0&&(n.rShiftTo(u,n),i.rShiftTo(u,i));var c=function(){(s=n.getLowestSetBit())>0&&n.rShiftTo(s,n),(s=i.getLowestSetBit())>0&&i.rShiftTo(s,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(c,0):(u>0&&i.lShiftTo(u,i),setTimeout(function(){r(i)},0))};setTimeout(c,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),Se,this),this.isEven()&&this.dAddOffset(1,0);var o=this,s=function(){o.dAddOffset(2,0),o.bitLength()>t&&o.subTo(e.ONE.shiftLeft(t-1),o),o.isProbablePrime(r)?setTimeout(function(){i()},0):setTimeout(s,0)};setTimeout(s,0)}else{var u=[],c=t&7;u.length=(t>>3)+1,r.nextBytes(u),c>0?u[0]&=(1<<c)-1:u[0]=0,this.fromString(u,256)}},e}(),Ch=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}(),ai=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}(),ui=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(J.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}(),Nh=function(){function e(t){this.m=t,this.r2=Y(),this.q3=Y(),J.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 J(null)}function G(e,t){return new J(e,t)}var ci=typeof navigator<"u";ci&&si&&navigator.appName=="Microsoft Internet Explorer"?(J.prototype.am=function(e,t,r,n,i,o){for(var s=t&32767,u=t>>15;--o>=0;){var c=this[e]&32767,a=this[e++]>>15,l=u*c+a*s;c=s*c+((l&32767)<<15)+r[n]+(i&1073741823),i=(c>>>30)+(l>>>15)+u*a+(i>>>30),r[n++]=c&1073741823}return i},_t=30):ci&&si&&navigator.appName!="Netscape"?(J.prototype.am=function(e,t,r,n,i,o){for(;--o>=0;){var s=t*this[e++]+r[n]+i;i=Math.floor(s/67108864),r[n++]=s&67108863}return i},_t=26):(J.prototype.am=function(e,t,r,n,i,o){for(var s=t&16383,u=t>>14;--o>=0;){var c=this[e]&16383,a=this[e++]>>14,l=u*c+a*s;c=s*c+((l&16383)<<14)+r[n]+i,i=(c>>28)+(l>>14)+u*a,r[n++]=c&268435455}return i},_t=28),J.prototype.DB=_t,J.prototype.DM=(1<<_t)-1,J.prototype.DV=1<<_t;var cr=52;J.prototype.FV=Math.pow(2,cr),J.prototype.F1=cr-_t,J.prototype.F2=2*_t-cr;var We=[],Zt,ct;for(Zt=48,ct=0;ct<=9;++ct)We[Zt++]=ct;for(Zt=97,ct=10;ct<36;++ct)We[Zt++]=ct;for(Zt=65,ct=10;ct<36;++ct)We[Zt++]=ct;function li(e,t){var r=We[e.charCodeAt(t)];return r!=null?r:-1}function Et(e){var t=Y();return t.fromInt(e),t}function xe(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}J.ZERO=Et(0),J.ONE=Et(1);var kh=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 Ih(){return new kh}var Vo=256,Te,xt=null,lt;if(xt==null){xt=[],lt=0;var Re=void 0;if(typeof window<"u"&&window.crypto&&window.crypto.getRandomValues){var lr=new Uint32Array(256);for(window.crypto.getRandomValues(lr),Re=0;Re<lr.length;++Re)xt[lt++]=lr[Re]&255}var Oe=0,$e=function(e){if(Oe=Oe||0,Oe>=256||lt>=Vo){window.removeEventListener?window.removeEventListener("mousemove",$e,!1):window.detachEvent&&window.detachEvent("onmousemove",$e);return}try{var t=e.x+e.y;xt[lt++]=t&255,Oe+=1}catch(r){}};typeof window<"u"&&(window.addEventListener?window.addEventListener("mousemove",$e,!1):window.attachEvent&&window.attachEvent("onmousemove",$e))}function Fh(){if(Te==null){for(Te=Ih();lt<Vo;){var e=Math.floor(65536*Math.random());xt[lt++]=e&255}for(Te.init(xt),lt=0;lt<xt.length;++lt)xt[lt]=0;lt=0}return Te.next()}var Dr=function(){function e(){}return e.prototype.nextBytes=function(t){for(var r=0;r<t.length;++r)t[r]=Fh()},e}();function Mh(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 o="0001"+n+"00"+e;return G(o,16)}function Ph(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 o=new Dr,s=[];t>2;){for(s[0]=0;s[0]==0;)o.nextBytes(s);r[--t]=s[0]}return r[--t]=2,r[--t]=0,new J(r)}var Uh=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=G(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=Ph(t,r);if(n==null)return null;var i=this.doPublic(n);if(i==null)return null;for(var o=i.toString(16),s=o.length,u=0;u<r*2-s;u++)o="0"+o;return o},e.prototype.setPrivate=function(t,r,n){t!=null&&r!=null&&t.length>0&&r.length>0?(this.n=G(t,16),this.e=parseInt(r,16),this.d=G(n,16)):console.error("Invalid RSA private key")},e.prototype.setPrivateEx=function(t,r,n,i,o,s,u,c){t!=null&&r!=null&&t.length>0&&r.length>0?(this.n=G(t,16),this.e=parseInt(r,16),this.d=G(n,16),this.p=G(i,16),this.q=G(o,16),this.dmp1=G(s,16),this.dmq1=G(u,16),this.coeff=G(c,16)):console.error("Invalid RSA private key")},e.prototype.generate=function(t,r){var n=new Dr,i=t>>1;this.e=parseInt(r,16);for(var o=new J(r,16);;){for(;this.p=new J(t-i,1,n),!(this.p.subtract(J.ONE).gcd(o).compareTo(J.ONE)==0&&this.p.isProbablePrime(10)););for(;this.q=new J(i,1,n),!(this.q.subtract(J.ONE).gcd(o).compareTo(J.ONE)==0&&this.q.isProbablePrime(10)););if(this.p.compareTo(this.q)<=0){var s=this.p;this.p=this.q,this.q=s}var u=this.p.subtract(J.ONE),c=this.q.subtract(J.ONE),a=u.multiply(c);if(a.gcd(o).compareTo(J.ONE)==0){this.n=this.p.multiply(this.q),this.d=o.modInverse(a),this.dmp1=this.d.mod(u),this.dmq1=this.d.mod(c),this.coeff=this.q.modInverse(this.p);break}}},e.prototype.decrypt=function(t){var r=G(t,16),n=this.doPrivate(r);return n==null?null:Lh(n,this.n.bitLength()+7>>3)},e.prototype.generateAsync=function(t,r,n){var i=new Dr,o=t>>1;this.e=parseInt(r,16);var s=new J(r,16),u=this,c=function(){var a=function(){if(u.p.compareTo(u.q)<=0){var h=u.p;u.p=u.q,u.q=h}var p=u.p.subtract(J.ONE),d=u.q.subtract(J.ONE),m=p.multiply(d);m.gcd(s).compareTo(J.ONE)==0?(u.n=u.p.multiply(u.q),u.d=s.modInverse(m),u.dmp1=u.d.mod(p),u.dmq1=u.d.mod(d),u.coeff=u.q.modInverse(u.p),setTimeout(function(){n()},0)):setTimeout(c,0)},l=function(){u.q=Y(),u.q.fromNumberAsync(o,1,i,function(){u.q.subtract(J.ONE).gcda(s,function(h){h.compareTo(J.ONE)==0&&u.q.isProbablePrime(10)?setTimeout(a,0):setTimeout(l,0)})})},f=function(){u.p=Y(),u.p.fromNumberAsync(t-o,1,i,function(){u.p.subtract(J.ONE).gcda(s,function(h){h.compareTo(J.ONE)==0&&u.p.isProbablePrime(10)?setTimeout(l,0):setTimeout(f,0)})})};setTimeout(f,0)};setTimeout(c,0)},e.prototype.sign=function(t,r,n){var i=Vh(n),o=i+r(t).toString(),s=Mh(o,this.n.bitLength()/4);if(s==null)return null;var u=this.doPrivate(s);if(u==null)return null;var c=u.toString(16);return c.length&1?"0"+c:c},e.prototype.verify=function(t,r,n){var i=G(r,16),o=this.doPublic(i);if(o==null)return null;var s=o.toString(16).replace(/^1f+00/,""),u=Hh(s);return u==n(t).toString()},e}();function Lh(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 o=r[n]&255;o<128?i+=String.fromCharCode(o):o>191&&o<224?(i+=String.fromCharCode((o&31)<<6|r[n+1]&63),++n):(i+=String.fromCharCode((o&15)<<12|(r[n+1]&63)<<6|r[n+2]&63),n+=2)}return i}var De={md2:"3020300c06082a864886f70d020205000410",md5:"3020300c06082a864886f70d020505000410",sha1:"3021300906052b0e03021a05000414",sha224:"302d300d06096086480165030402040500041c",sha256:"3031300d060960864801650304020105000420",sha384:"3041300d060960864801650304020205000430",sha512:"3051300d060960864801650304020305000440",ripemd160:"3021300906052b2403020105000414"};function Vh(e){return De[e]||""}function Hh(e){for(var t in De)if(De.hasOwnProperty(t)){var r=De[t],n=r.length;if(e.substr(0,n)==r)return e.substr(n)}return e}/*!
27
+ Copyright (c) 2011, Yahoo! Inc. All rights reserved.
28
+ Code licensed under the BSD License:
29
+ http://developer.yahoo.com/yui/license.html
30
+ version: 2.9.0
31
+ */var X={};X.lang={extend:function(e,t,r){if(!t||!e)throw new Error("YAHOO.lang.extend failed, please check that all dependencies are included.");var n=function(){};if(n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e,e.superclass=t.prototype,t.prototype.constructor==Object.prototype.constructor&&(t.prototype.constructor=t),r){var i;for(i in r)e.prototype[i]=r[i];var o=function(){},s=["toString","valueOf"];try{/MSIE/.test(navigator.userAgent)&&(o=function(u,c){for(i=0;i<s.length;i=i+1){var a=s[i],l=c[a];typeof l=="function"&&l!=Object.prototype[a]&&(u[a]=l)}})}catch(u){}o(e.prototype,r)}}};/**
32
+ * @fileOverview
33
+ * @name asn1-1.0.js
34
+ * @author Kenji Urushima kenji.urushima@gmail.com
35
+ * @version asn1 1.0.13 (2017-Jun-02)
36
+ * @since jsrsasign 2.1
37
+ * @license <a href="https://kjur.github.io/jsrsasign/license/">MIT License</a>
38
+ */var A={};(typeof A.asn1>"u"||!A.asn1)&&(A.asn1={}),A.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="",o=0;o<n;o++)i+="f";var s=new J(i,16),u=s.xor(e).add(J.ONE);t=u.toString(16).replace(/^-/,"")}return t},this.getPEMStringFromHex=function(e,t){return hextopem(e,t)},this.newObject=function(e){var t=A,r=t.asn1,n=r.DERBoolean,i=r.DERInteger,o=r.DERBitString,s=r.DEROctetString,u=r.DERNull,c=r.DERObjectIdentifier,a=r.DEREnumerated,l=r.DERUTF8String,f=r.DERNumericString,h=r.DERPrintableString,p=r.DERTeletexString,d=r.DERIA5String,m=r.DERUTCTime,b=r.DERGeneralizedTime,E=r.DERSequence,y=r.DERSet,v=r.DERTaggedObject,w=r.ASN1Util.newObject,S=Object.keys(e);if(S.length!=1)throw"key of param shall be only one.";var g=S[0];if(":bool:int:bitstr:octstr:null:oid:enum:utf8str:numstr:prnstr:telstr:ia5str:utctime:gentime:seq:set:tag:".indexOf(":"+g+":")==-1)throw"undefined key: "+g;if(g=="bool")return new n(e[g]);if(g=="int")return new i(e[g]);if(g=="bitstr")return new o(e[g]);if(g=="octstr")return new s(e[g]);if(g=="null")return new u(e[g]);if(g=="oid")return new c(e[g]);if(g=="enum")return new a(e[g]);if(g=="utf8str")return new l(e[g]);if(g=="numstr")return new f(e[g]);if(g=="prnstr")return new h(e[g]);if(g=="telstr")return new p(e[g]);if(g=="ia5str")return new d(e[g]);if(g=="utctime")return new m(e[g]);if(g=="gentime")return new b(e[g]);if(g=="seq"){for(var x=e[g],O=[],M=0;M<x.length;M++){var _=w(x[M]);O.push(_)}return new E({array:O})}if(g=="set"){for(var x=e[g],O=[],M=0;M<x.length;M++){var _=w(x[M]);O.push(_)}return new y({array:O})}if(g=="tag"){var T=e[g];if(Object.prototype.toString.call(T)==="[object Array]"&&T.length==3){var F=w(T[2]);return new v({tag:T[0],explicit:T[1],obj:F})}else{var D={};if(T.explicit!==void 0&&(D.explicit=T.explicit),T.tag!==void 0&&(D.tag=T.tag),T.obj===void 0)throw"obj shall be specified for 'tag'.";return D.obj=w(T.obj),new v(D)}}},this.jsonToASN1HEX=function(e){var t=this.newObject(e);return t.getEncodedHex()}},A.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,o="",s=2;s<e.length;s+=2){var u=parseInt(e.substr(s,2),16),c=("00000000"+u.toString(2)).slice(-8);if(o=o+c.substr(1,7),c.substr(0,1)=="0"){var a=new J(o,2);i=i+"."+a.toString(10),o=""}}return i},A.asn1.ASN1Util.oidIntToHex=function(e){var t=function(u){var c=u.toString(16);return c.length==1&&(c="0"+c),c},r=function(u){var c="",a=new J(u,10),l=a.toString(2),f=7-l.length%7;f==7&&(f=0);for(var h="",p=0;p<f;p++)h+="0";l=h+l;for(var p=0;p<l.length-1;p+=7){var d=l.substr(p,7);p!=l.length-7&&(d="1"+d),c+=t(parseInt(d,2))}return c};if(!e.match(/^[0-9.]+$/))throw"malformed oid string: "+e;var n="",i=e.split("."),o=parseInt(i[0])*40+parseInt(i[1]);n+=t(o),i.splice(0,2);for(var s=0;s<i.length;s++)n+=r(i[s]);return n},A.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""}},A.asn1.DERAbstractString=function(e){A.asn1.DERAbstractString.superclass.constructor.call(this),this.getString=function(){return this.s},this.setString=function(t){this.hTLV=null,this.isModified=!0,this.s=t,this.hV=stohex(this.s)},this.setStringHex=function(t){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=t},this.getFreshValueHex=function(){return this.hV},typeof e<"u"&&(typeof e=="string"?this.setString(e):typeof e.str<"u"?this.setString(e.str):typeof e.hex<"u"&&this.setStringHex(e.hex))},X.lang.extend(A.asn1.DERAbstractString,A.asn1.ASN1Object),A.asn1.DERAbstractTime=function(e){A.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,o=this.localDateToUTC(t),s=String(o.getFullYear());r=="utc"&&(s=s.substr(2,2));var u=i(String(o.getMonth()+1),2),c=i(String(o.getDate()),2),a=i(String(o.getHours()),2),l=i(String(o.getMinutes()),2),f=i(String(o.getSeconds()),2),h=s+u+c+a+l+f;if(n===!0){var p=o.getMilliseconds();if(p!=0){var d=i(String(p),3);d=d.replace(/[0]+$/,""),h=h+"."+d}}return h+"Z"},this.zeroPadding=function(t,r){return t.length>=r?t:new Array(r-t.length+1).join("0")+t},this.getString=function(){return this.s},this.setString=function(t){this.hTLV=null,this.isModified=!0,this.s=t,this.hV=stohex(t)},this.setByDateValue=function(t,r,n,i,o,s){var u=new Date(Date.UTC(t,r-1,n,i,o,s,0));this.setByDate(u)},this.getFreshValueHex=function(){return this.hV}},X.lang.extend(A.asn1.DERAbstractTime,A.asn1.ASN1Object),A.asn1.DERAbstractStructured=function(e){A.asn1.DERAbstractString.superclass.constructor.call(this),this.setByASN1ObjectArray=function(t){this.hTLV=null,this.isModified=!0,this.asn1Array=t},this.appendASN1Object=function(t){this.hTLV=null,this.isModified=!0,this.asn1Array.push(t)},this.asn1Array=new Array,typeof e<"u"&&typeof e.array<"u"&&(this.asn1Array=e.array)},X.lang.extend(A.asn1.DERAbstractStructured,A.asn1.ASN1Object),A.asn1.DERBoolean=function(){A.asn1.DERBoolean.superclass.constructor.call(this),this.hT="01",this.hTLV="0101ff"},X.lang.extend(A.asn1.DERBoolean,A.asn1.ASN1Object),A.asn1.DERInteger=function(e){A.asn1.DERInteger.superclass.constructor.call(this),this.hT="02",this.setByBigInteger=function(t){this.hTLV=null,this.isModified=!0,this.hV=A.asn1.ASN1Util.bigIntToMinTwosComplementsHex(t)},this.setByInteger=function(t){var r=new J(String(t),10);this.setByBigInteger(r)},this.setValueHex=function(t){this.hV=t},this.getFreshValueHex=function(){return this.hV},typeof e<"u"&&(typeof e.bigint<"u"?this.setByBigInteger(e.bigint):typeof e.int<"u"?this.setByInteger(e.int):typeof e=="number"?this.setByInteger(e):typeof e.hex<"u"&&this.setValueHex(e.hex))},X.lang.extend(A.asn1.DERInteger,A.asn1.ASN1Object),A.asn1.DERBitString=function(e){if(e!==void 0&&typeof e.obj<"u"){var t=A.asn1.ASN1Util.newObject(e.obj);e.hex="00"+t.getEncodedHex()}A.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 o="",i=0;i<r.length-1;i+=8){var s=r.substr(i,8),u=parseInt(s,2).toString(16);u.length==1&&(u="0"+u),o+=u}this.hTLV=null,this.isModified=!0,this.hV="0"+n+o},this.setByBooleanArray=function(r){for(var n="",i=0;i<r.length;i++)r[i]==!0?n+="1":n+="0";this.setByBinaryString(n)},this.newFalseArray=function(r){for(var n=new Array(r),i=0;i<r;i++)n[i]=!1;return n},this.getFreshValueHex=function(){return this.hV},typeof e<"u"&&(typeof e=="string"&&e.toLowerCase().match(/^[0-9a-f]+$/)?this.setHexValueIncludingUnusedBits(e):typeof e.hex<"u"?this.setHexValueIncludingUnusedBits(e.hex):typeof e.bin<"u"?this.setByBinaryString(e.bin):typeof e.array<"u"&&this.setByBooleanArray(e.array))},X.lang.extend(A.asn1.DERBitString,A.asn1.ASN1Object),A.asn1.DEROctetString=function(e){if(e!==void 0&&typeof e.obj<"u"){var t=A.asn1.ASN1Util.newObject(e.obj);e.hex=t.getEncodedHex()}A.asn1.DEROctetString.superclass.constructor.call(this,e),this.hT="04"},X.lang.extend(A.asn1.DEROctetString,A.asn1.DERAbstractString),A.asn1.DERNull=function(){A.asn1.DERNull.superclass.constructor.call(this),this.hT="05",this.hTLV="0500"},X.lang.extend(A.asn1.DERNull,A.asn1.ASN1Object),A.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="",o=new J(n,10),s=o.toString(2),u=7-s.length%7;u==7&&(u=0);for(var c="",a=0;a<u;a++)c+="0";s=c+s;for(var a=0;a<s.length-1;a+=7){var l=s.substr(a,7);a!=s.length-7&&(l="1"+l),i+=t(parseInt(l,2))}return i};A.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="",o=n.split("."),s=parseInt(o[0])*40+parseInt(o[1]);i+=t(s),o.splice(0,2);for(var u=0;u<o.length;u++)i+=r(o[u]);this.hTLV=null,this.isModified=!0,this.s=null,this.hV=i},this.setValueName=function(n){var i=A.asn1.x509.OID.name2oid(n);if(i!=="")this.setValueOidString(i);else throw"DERObjectIdentifier oidName undefined: "+n},this.getFreshValueHex=function(){return this.hV},e!==void 0&&(typeof e=="string"?e.match(/^[0-2].[0-9.]+$/)?this.setValueOidString(e):this.setValueName(e):e.oid!==void 0?this.setValueOidString(e.oid):e.hex!==void 0?this.setValueHex(e.hex):e.name!==void 0&&this.setValueName(e.name))},X.lang.extend(A.asn1.DERObjectIdentifier,A.asn1.ASN1Object),A.asn1.DEREnumerated=function(e){A.asn1.DEREnumerated.superclass.constructor.call(this),this.hT="0a",this.setByBigInteger=function(t){this.hTLV=null,this.isModified=!0,this.hV=A.asn1.ASN1Util.bigIntToMinTwosComplementsHex(t)},this.setByInteger=function(t){var r=new J(String(t),10);this.setByBigInteger(r)},this.setValueHex=function(t){this.hV=t},this.getFreshValueHex=function(){return this.hV},typeof e<"u"&&(typeof e.int<"u"?this.setByInteger(e.int):typeof e=="number"?this.setByInteger(e):typeof e.hex<"u"&&this.setValueHex(e.hex))},X.lang.extend(A.asn1.DEREnumerated,A.asn1.ASN1Object),A.asn1.DERUTF8String=function(e){A.asn1.DERUTF8String.superclass.constructor.call(this,e),this.hT="0c"},X.lang.extend(A.asn1.DERUTF8String,A.asn1.DERAbstractString),A.asn1.DERNumericString=function(e){A.asn1.DERNumericString.superclass.constructor.call(this,e),this.hT="12"},X.lang.extend(A.asn1.DERNumericString,A.asn1.DERAbstractString),A.asn1.DERPrintableString=function(e){A.asn1.DERPrintableString.superclass.constructor.call(this,e),this.hT="13"},X.lang.extend(A.asn1.DERPrintableString,A.asn1.DERAbstractString),A.asn1.DERTeletexString=function(e){A.asn1.DERTeletexString.superclass.constructor.call(this,e),this.hT="14"},X.lang.extend(A.asn1.DERTeletexString,A.asn1.DERAbstractString),A.asn1.DERIA5String=function(e){A.asn1.DERIA5String.superclass.constructor.call(this,e),this.hT="16"},X.lang.extend(A.asn1.DERIA5String,A.asn1.DERAbstractString),A.asn1.DERUTCTime=function(e){A.asn1.DERUTCTime.superclass.constructor.call(this,e),this.hT="17",this.setByDate=function(t){this.hTLV=null,this.isModified=!0,this.date=t,this.s=this.formatDate(this.date,"utc"),this.hV=stohex(this.s)},this.getFreshValueHex=function(){return typeof this.date>"u"&&typeof this.s>"u"&&(this.date=new Date,this.s=this.formatDate(this.date,"utc"),this.hV=stohex(this.s)),this.hV},e!==void 0&&(e.str!==void 0?this.setString(e.str):typeof e=="string"&&e.match(/^[0-9]{12}Z$/)?this.setString(e):e.hex!==void 0?this.setStringHex(e.hex):e.date!==void 0&&this.setByDate(e.date))},X.lang.extend(A.asn1.DERUTCTime,A.asn1.DERAbstractTime),A.asn1.DERGeneralizedTime=function(e){A.asn1.DERGeneralizedTime.superclass.constructor.call(this,e),this.hT="18",this.withMillis=!1,this.setByDate=function(t){this.hTLV=null,this.isModified=!0,this.date=t,this.s=this.formatDate(this.date,"gen",this.withMillis),this.hV=stohex(this.s)},this.getFreshValueHex=function(){return this.date===void 0&&this.s===void 0&&(this.date=new Date,this.s=this.formatDate(this.date,"gen",this.withMillis),this.hV=stohex(this.s)),this.hV},e!==void 0&&(e.str!==void 0?this.setString(e.str):typeof e=="string"&&e.match(/^[0-9]{14}Z$/)?this.setString(e):e.hex!==void 0?this.setStringHex(e.hex):e.date!==void 0&&this.setByDate(e.date),e.millis===!0&&(this.withMillis=!0))},X.lang.extend(A.asn1.DERGeneralizedTime,A.asn1.DERAbstractTime),A.asn1.DERSequence=function(e){A.asn1.DERSequence.superclass.constructor.call(this,e),this.hT="30",this.getFreshValueHex=function(){for(var t="",r=0;r<this.asn1Array.length;r++){var n=this.asn1Array[r];t+=n.getEncodedHex()}return this.hV=t,this.hV}},X.lang.extend(A.asn1.DERSequence,A.asn1.DERAbstractStructured),A.asn1.DERSet=function(e){A.asn1.DERSet.superclass.constructor.call(this,e),this.hT="31",this.sortFlag=!0,this.getFreshValueHex=function(){for(var t=new Array,r=0;r<this.asn1Array.length;r++){var n=this.asn1Array[r];t.push(n.getEncodedHex())}return this.sortFlag==!0&&t.sort(),this.hV=t.join(""),this.hV},typeof e<"u"&&typeof e.sortflag<"u"&&e.sortflag==!1&&(this.sortFlag=!1)},X.lang.extend(A.asn1.DERSet,A.asn1.DERAbstractStructured),A.asn1.DERTaggedObject=function(e){A.asn1.DERTaggedObject.superclass.constructor.call(this),this.hT="a0",this.hV="",this.isExplicit=!0,this.asn1Object=null,this.setASN1Object=function(t,r,n){this.hT=r,this.isExplicit=t,this.asn1Object=n,this.isExplicit?(this.hV=this.asn1Object.getEncodedHex(),this.hTLV=null,this.isModified=!0):(this.hV=null,this.hTLV=n.getEncodedHex(),this.hTLV=this.hTLV.replace(/^../,r),this.isModified=!1)},this.getFreshValueHex=function(){return this.hV},typeof e<"u"&&(typeof e.tag<"u"&&(this.hT=e.tag),typeof e.explicit<"u"&&(this.isExplicit=e.explicit),typeof e.obj<"u"&&(this.asn1Object=e.obj,this.setASN1Object(this.isExplicit,this.hT,this.asn1Object)))},X.lang.extend(A.asn1.DERTaggedObject,A.asn1.ASN1Object);var qh=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[o])},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)}}();(function(e){qh(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,o=/^\s*(?:[0-9A-Fa-f][0-9A-Fa-f]\s*)+$/,s=o.test(r)?Oh.decode(r):jr.unarmor(r),u=jh.decode(s);if(u.sub.length===3&&(u=u.sub[2].sub[0]),u.sub.length===9){n=u.sub[1].getHexStringValue(),this.n=G(n,16),i=u.sub[2].getHexStringValue(),this.e=parseInt(i,16);var c=u.sub[3].getHexStringValue();this.d=G(c,16);var a=u.sub[4].getHexStringValue();this.p=G(a,16);var l=u.sub[5].getHexStringValue();this.q=G(l,16);var f=u.sub[6].getHexStringValue();this.dmp1=G(f,16);var h=u.sub[7].getHexStringValue();this.dmq1=G(h,16);var p=u.sub[8].getHexStringValue();this.coeff=G(p,16)}else if(u.sub.length===2)if(u.sub[0].sub){var d=u.sub[1],m=d.sub[0];n=m.sub[0].getHexStringValue(),this.n=G(n,16),i=m.sub[1].getHexStringValue(),this.e=parseInt(i,16)}else n=u.sub[0].getHexStringValue(),this.n=G(n,16),i=u.sub[1].getHexStringValue(),this.e=parseInt(i,16);else return!1;return!0}catch(b){return!1}},t.prototype.getPrivateBaseKey=function(){var r={array:[new A.asn1.DERInteger({int:0}),new A.asn1.DERInteger({bigint:this.n}),new A.asn1.DERInteger({int:this.e}),new A.asn1.DERInteger({bigint:this.d}),new A.asn1.DERInteger({bigint:this.p}),new A.asn1.DERInteger({bigint:this.q}),new A.asn1.DERInteger({bigint:this.dmp1}),new A.asn1.DERInteger({bigint:this.dmq1}),new A.asn1.DERInteger({bigint:this.coeff})]},n=new A.asn1.DERSequence(r);return n.getEncodedHex()},t.prototype.getPrivateBaseKeyB64=function(){return ii(this.getPrivateBaseKey())},t.prototype.getPublicBaseKey=function(){var r=new A.asn1.DERSequence({array:[new A.asn1.DERObjectIdentifier({oid:"1.2.840.113549.1.1.1"}),new A.asn1.DERNull]}),n=new A.asn1.DERSequence({array:[new A.asn1.DERInteger({bigint:this.n}),new A.asn1.DERInteger({int:this.e})]}),i=new A.asn1.DERBitString({hex:"00"+n.getEncodedHex()}),o=new A.asn1.DERSequence({array:[r,i]});return o.getEncodedHex()},t.prototype.getPublicBaseKeyB64=function(){return ii(this.getPublicBaseKey())},t.wordwrap=function(r,n){if(n=n||64,!r)return r;var i="(.{1,"+n+`})( +|$
39
+ ?)|(.{1,`+n+"})";return r.match(RegExp(i,"g")).join(`
40
+ `)},t.prototype.getPrivateKey=function(){var r=`-----BEGIN RSA PRIVATE KEY-----
41
+ `;return r+=t.wordwrap(this.getPrivateBaseKeyB64())+`
42
+ `,r+="-----END RSA PRIVATE KEY-----",r},t.prototype.getPublicKey=function(){var r=`-----BEGIN PUBLIC KEY-----
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})(Uh);var fr;typeof process<"u"&&((fr=Qs)===null||fr===void 0||fr.npm_package_version);const Ho=/^(http|https):\/\/[\w.:\-@]*/;function zh(e){return Ho.test(e)}var qo={exports:{}};/*! @preserve
45
+ * numeral.js
46
+ * version : 2.0.6
47
+ * author : Adam Draper
48
+ * license : MIT
49
+ * http://adamwdraper.github.com/Numeral-js/
50
+ */(function(e){(function(t,r){e.exports?e.exports=r():t.numeral=r()})(rt,function(){var t,r,n="2.0.6",i={},o={},s={currentLocale:"en",zeroFormat:null,nullFormat:null,defaultFormat:"0,0",scalePercentBy100:!0},u={currentLocale:s.currentLocale,zeroFormat:s.zeroFormat,nullFormat:s.nullFormat,defaultFormat:s.defaultFormat,scalePercentBy100:s.scalePercentBy100};function c(a,l){this._input=a,this._value=l}return t=function(a){var l,f,h,p;if(t.isNumeral(a))l=a.value();else if(a===0||typeof a>"u")l=0;else if(a===null||r.isNaN(a))l=null;else if(typeof a=="string")if(u.zeroFormat&&a===u.zeroFormat)l=0;else if(u.nullFormat&&a===u.nullFormat||!a.replace(/[^0-9]+/g,"").length)l=null;else{for(f in i)if(p=typeof i[f].regexps.unformat=="function"?i[f].regexps.unformat():i[f].regexps.unformat,p&&a.match(p)){h=i[f].unformat;break}h=h||t._.stringToNumber,l=h(a)}else l=Number(a)||null;return new c(a,l)},t.version=n,t.isNumeral=function(a){return a instanceof c},t._=r={numberToFormat:function(a,l,f){var h=o[t.options.currentLocale],p=!1,d=!1,m=0,b="",E=1e12,y=1e9,v=1e6,w=1e3,S="",g=!1,x,O,M,_,T,F,D;if(a=a||0,O=Math.abs(a),t._.includes(l,"(")?(p=!0,l=l.replace(/[\(|\)]/g,"")):(t._.includes(l,"+")||t._.includes(l,"-"))&&(T=t._.includes(l,"+")?l.indexOf("+"):a<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]?"),""),O>=E&&!x||x==="t"?(b+=h.abbreviations.trillion,a=a/E):O<E&&O>=y&&!x||x==="b"?(b+=h.abbreviations.billion,a=a/y):O<y&&O>=v&&!x||x==="m"?(b+=h.abbreviations.million,a=a/v):(O<v&&O>=w&&!x||x==="k")&&(b+=h.abbreviations.thousand,a=a/w)),t._.includes(l,"[.]")&&(d=!0,l=l.replace("[.]",".")),M=a.toString().split(".")[0],_=l.split(".")[1],F=l.indexOf(","),m=(l.split(".")[0].split(",")[0].match(/0/g)||[]).length,_?(t._.includes(_,"[")?(_=_.replace("]",""),_=_.split("["),S=t._.toFixed(a,_[0].length+_[1].length,f,_[1].length)):S=t._.toFixed(a,_.length,f),M=S.split(".")[0],t._.includes(S,".")?S=h.delimiters.decimal+S.split(".")[1]:S="",d&&Number(S.slice(1))===0&&(S="")):M=t._.toFixed(a,0,f),b&&!x&&Number(M)>=1e3&&b!==h.abbreviations.trillion)switch(M=String(Number(M)/1e3),b){case h.abbreviations.thousand:b=h.abbreviations.million;break;case h.abbreviations.million:b=h.abbreviations.billion;break;case h.abbreviations.billion:b=h.abbreviations.trillion;break}if(t._.includes(M,"-")&&(M=M.slice(1),g=!0),M.length<m)for(var I=m-M.length;I>0;I--)M="0"+M;return F>-1&&(M=M.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+h.delimiters.thousands)),l.indexOf(".")===0&&(M=""),D=M+S+(b||""),p?D=(p&&g?"(":"")+D+(p&&g?")":""):T>=0?D=T===0?(g?"-":"+")+D:D+(g?"-":"+"):g&&(D="-"+D),D},stringToNumber:function(a){var l=o[u.currentLocale],f=a,h={thousand:3,million:6,billion:9,trillion:12},p,d,m;if(u.zeroFormat&&a===u.zeroFormat)d=0;else if(u.nullFormat&&a===u.nullFormat||!a.replace(/[^0-9]+/g,"").length)d=null;else{d=1,l.delimiters.decimal!=="."&&(a=a.replace(/\./g,"").replace(l.delimiters.decimal,"."));for(p in h)if(m=new RegExp("[^a-zA-Z]"+l.abbreviations[p]+"(?:\\)|(\\"+l.currency.symbol+")?(?:\\))?)?$"),f.match(m)){d*=Math.pow(10,h[p]);break}d*=(a.split("-").length+Math.min(a.split("(").length-1,a.split(")").length-1))%2?1:-1,a=a.replace(/[^0-9\.]+/g,""),d*=Number(a)}return d},isNaN:function(a){return typeof a=="number"&&isNaN(a)},includes:function(a,l){return a.indexOf(l)!==-1},insert:function(a,l,f){return a.slice(0,f)+l+a.slice(f)},reduce:function(a,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(a),h=f.length>>>0,p=0,d;if(arguments.length===3)d=arguments[2];else{for(;p<h&&!(p in f);)p++;if(p>=h)throw new TypeError("Reduce of empty array with no initial value");d=f[p++]}for(;p<h;p++)p in f&&(d=l(d,f[p],p,f));return d},multiplier:function(a){var l=a.toString().split(".");return l.length<2?1:Math.pow(10,l[1].length)},correctionFactor:function(){var a=Array.prototype.slice.call(arguments);return a.reduce(function(l,f){var h=r.multiplier(f);return l>h?l:h},1)},toFixed:function(a,l,f,h){var p=a.toString().split("."),d=l-(h||0),m,b,E,y;return p.length===2?m=Math.min(Math.max(p[1].length,d),l):m=d,E=Math.pow(10,m),y=(f(a+"e+"+m)/E).toFixed(m),h>l-m&&(b=new RegExp("\\.?0{1,"+(h-(l-m))+"}$"),y=y.replace(b,"")),y}},t.options=u,t.formats=i,t.locales=o,t.locale=function(a){return a&&(u.currentLocale=a.toLowerCase()),u.currentLocale},t.localeData=function(a){if(!a)return o[u.currentLocale];if(a=a.toLowerCase(),!o[a])throw new Error("Unknown locale : "+a);return o[a]},t.reset=function(){for(var a in s)u[a]=s[a]},t.zeroFormat=function(a){u.zeroFormat=typeof a=="string"?a:null},t.nullFormat=function(a){u.nullFormat=typeof a=="string"?a:null},t.defaultFormat=function(a){u.defaultFormat=typeof a=="string"?a:"0.0"},t.register=function(a,l,f){if(l=l.toLowerCase(),this[a+"s"][l])throw new TypeError(l+" "+a+" already registered.");return this[a+"s"][l]=f,f},t.validate=function(a,l){var f,h,p,d,m,b,E,y;if(typeof a!="string"&&(a+="",console.warn&&console.warn("Numeral.js: Value is not string. It has been co-erced to: ",a)),a=a.trim(),a.match(/^\d+$/))return!0;if(a==="")return!1;try{E=t.localeData(l)}catch(v){E=t.localeData(t.locale())}return p=E.currency.symbol,m=E.abbreviations,f=E.delimiters.decimal,E.delimiters.thousands==="."?h="\\.":h=E.delimiters.thousands,y=a.match(/^[^\d]+/),y!==null&&(a=a.substr(1),y[0]!==p)||(y=a.match(/[^\d]+$/),y!==null&&(a=a.slice(0,-1),y[0]!==m.thousand&&y[0]!==m.million&&y[0]!==m.billion&&y[0]!==m.trillion))?!1:(b=new RegExp(h+"{2}"),a.match(/[^\d.,]/g)?!1:(d=a.split(f),d.length>2?!1:d.length<2?!!d[0].match(/^\d+.*\d$/)&&!d[0].match(b):d[0].length===1?!!d[0].match(/^\d+$/)&&!d[0].match(b)&&!!d[1].match(/^\d+$/):!!d[0].match(/^\d+.*\d$/)&&!d[0].match(b)&&!!d[1].match(/^\d+$/)))},t.fn=c.prototype={clone:function(){return t(this)},format:function(a,l){var f=this._value,h=a||u.defaultFormat,p,d,m;if(l=l||Math.round,f===0&&u.zeroFormat!==null)d=u.zeroFormat;else if(f===null&&u.nullFormat!==null)d=u.nullFormat;else{for(p in i)if(h.match(i[p].regexps.format)){m=i[p].format;break}m=m||t._.numberToFormat,d=m(f,h,l)}return d},value:function(){return this._value},input:function(){return this._input},set:function(a){return this._value=Number(a),this},add:function(a){var l=r.correctionFactor.call(null,this._value,a);function f(h,p,d,m){return h+Math.round(l*p)}return this._value=r.reduce([this._value,a],f,0)/l,this},subtract:function(a){var l=r.correctionFactor.call(null,this._value,a);function f(h,p,d,m){return h-Math.round(l*p)}return this._value=r.reduce([a],f,Math.round(this._value*l))/l,this},multiply:function(a){function l(f,h,p,d){var m=r.correctionFactor(f,h);return Math.round(f*m)*Math.round(h*m)/Math.round(m*m)}return this._value=r.reduce([this._value,a],l,1),this},divide:function(a){function l(f,h,p,d){var m=r.correctionFactor(f,h);return Math.round(f*m)/Math.round(h*m)}return this._value=r.reduce([this._value,a],l),this},difference:function(a){return Math.abs(t(this._value).subtract(a).value())}},t.register("locale","en",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(a){var l=a%10;return~~(a%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(a,l,f){var h=t._.includes(l," BPS")?" ":"",p;return a=a*1e4,l=l.replace(/\s?BPS/,""),p=t._.numberToFormat(a,l,f),t._.includes(p,")")?(p=p.split(""),p.splice(-1,0,h+"BPS"),p=p.join("")):p=p+h+"BPS",p},unformat:function(a){return+(t._.stringToNumber(a)*1e-4).toFixed(15)}})}(),function(){var a={base:1e3,suffixes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]},l={base:1024,suffixes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},f=a.suffixes.concat(l.suffixes.filter(function(p){return a.suffixes.indexOf(p)<0})),h=f.join("|");h="("+h.replace("B","B(?!PS)")+")",t.register("format","bytes",{regexps:{format:/([0\s]i?b)/,unformat:new RegExp(h)},format:function(p,d,m){var b,E=t._.includes(d,"ib")?l:a,y=t._.includes(d," b")||t._.includes(d," ib")?" ":"",v,w,S;for(d=d.replace(/\s?i?b/,""),v=0;v<=E.suffixes.length;v++)if(w=Math.pow(E.base,v),S=Math.pow(E.base,v+1),p===null||p===0||p>=w&&p<S){y+=E.suffixes[v],w>0&&(p=p/w);break}return b=t._.numberToFormat(p,d,m),b+y},unformat:function(p){var d=t._.stringToNumber(p),m,b;if(d){for(m=a.suffixes.length-1;m>=0;m--){if(t._.includes(p,a.suffixes[m])){b=Math.pow(a.base,m);break}if(t._.includes(p,l.suffixes[m])){b=Math.pow(l.base,m);break}}d*=b||1}return d}})}(),function(){t.register("format","currency",{regexps:{format:/(\$)/},format:function(a,l,f){var h=t.locales[t.options.currentLocale],p={before:l.match(/^([\+|\-|\(|\s|\$]*)/)[0],after:l.match(/([\+|\-|\)|\s|\$]*)$/)[0]},d,m,b;for(l=l.replace(/\s?\$\s?/,""),d=t._.numberToFormat(a,l,f),a>=0?(p.before=p.before.replace(/[\-\(]/,""),p.after=p.after.replace(/[\-\)]/,"")):a<0&&!t._.includes(p.before,"-")&&!t._.includes(p.before,"(")&&(p.before="-"+p.before),b=0;b<p.before.length;b++)switch(m=p.before[b],m){case"$":d=t._.insert(d,h.currency.symbol,b);break;case" ":d=t._.insert(d," ",b+h.currency.symbol.length-1);break}for(b=p.after.length-1;b>=0;b--)switch(m=p.after[b],m){case"$":d=b===p.after.length-1?d+h.currency.symbol:t._.insert(d,h.currency.symbol,-(p.after.length-(1+b)));break;case" ":d=b===p.after.length-1?d+" ":t._.insert(d," ",-(p.after.length-(1+b)+h.currency.symbol.length-1));break}return d}})}(),function(){t.register("format","exponential",{regexps:{format:/(e\+|e-)/,unformat:/(e\+|e-)/},format:function(a,l,f){var h,p=typeof a=="number"&&!t._.isNaN(a)?a.toExponential():"0e+0",d=p.split("e");return l=l.replace(/e[\+|\-]{1}0/,""),h=t._.numberToFormat(Number(d[0]),l,f),h+"e"+d[1]},unformat:function(a){var l=t._.includes(a,"e+")?a.split("e+"):a.split("e-"),f=Number(l[0]),h=Number(l[1]);h=t._.includes(a,"e-")?h*=-1:h;function p(d,m,b,E){var y=t._.correctionFactor(d,m),v=d*y*(m*y)/(y*y);return v}return t._.reduce([f,Math.pow(10,h)],p,1)}})}(),function(){t.register("format","ordinal",{regexps:{format:/(o)/},format:function(a,l,f){var h=t.locales[t.options.currentLocale],p,d=t._.includes(l," o")?" ":"";return l=l.replace(/\s?o/,""),d+=h.ordinal(a),p=t._.numberToFormat(a,l,f),p+d}})}(),function(){t.register("format","percentage",{regexps:{format:/(%)/,unformat:/(%)/},format:function(a,l,f){var h=t._.includes(l," %")?" ":"",p;return t.options.scalePercentBy100&&(a=a*100),l=l.replace(/\s?\%/,""),p=t._.numberToFormat(a,l,f),t._.includes(p,")")?(p=p.split(""),p.splice(-1,0,h+"%"),p=p.join("")):p=p+h+"%",p},unformat:function(a){var l=t._.stringToNumber(a);return t.options.scalePercentBy100?l*.01:l}})}(),function(){t.register("format","time",{regexps:{format:/(:)/,unformat:/(:)/},format:function(a,l,f){var h=Math.floor(a/60/60),p=Math.floor((a-h*60*60)/60),d=Math.round(a-h*60*60-p*60);return h+":"+(p<10?"0"+p:p)+":"+(d<10?"0"+d:d)},unformat:function(a){var l=a.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})})(qo);var Wh=qo.exports;Qt(Wh);var zo={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(rt,function(){var r=1e3,n=6e4,i=36e5,o="millisecond",s="second",u="minute",c="hour",a="day",l="week",f="month",h="quarter",p="year",d="date",m="Invalid Date",b=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,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,y={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(I){var j=["th","st","nd","rd"],C=I%100;return"["+I+(j[(C-20)%10]||j[C]||j[0])+"]"}},v=function(I,j,C){var L=String(I);return!L||L.length>=j?I:""+Array(j+1-L.length).join(C)+I},w={s:v,z:function(I){var j=-I.utcOffset(),C=Math.abs(j),L=Math.floor(C/60),P=C%60;return(j<=0?"+":"-")+v(L,2,"0")+":"+v(P,2,"0")},m:function I(j,C){if(j.date()<C.date())return-I(C,j);var L=12*(C.year()-j.year())+(C.month()-j.month()),P=j.clone().add(L,f),H=C-P<0,q=j.clone().add(L+(H?-1:1),f);return+(-(L+(C-P)/(H?P-q:q-P))||0)},a:function(I){return I<0?Math.ceil(I)||0:Math.floor(I)},p:function(I){return{M:f,y:p,w:l,d:a,D:d,h:c,m:u,s,ms:o,Q:h}[I]||String(I||"").toLowerCase().replace(/s$/,"")},u:function(I){return I===void 0}},S="en",g={};g[S]=y;var x="$isDayjsObject",O=function(I){return I instanceof F||!(!I||!I[x])},M=function I(j,C,L){var P;if(!j)return S;if(typeof j=="string"){var H=j.toLowerCase();g[H]&&(P=H),C&&(g[H]=C,P=H);var q=j.split("-");if(!P&&q.length>1)return I(q[0])}else{var $=j.name;g[$]=j,P=$}return!L&&P&&(S=P),P||!L&&S},_=function(I,j){if(O(I))return I.clone();var C=typeof j=="object"?j:{};return C.date=I,C.args=arguments,new F(C)},T=w;T.l=M,T.i=O,T.w=function(I,j){return _(I,{locale:j.$L,utc:j.$u,x:j.$x,$offset:j.$offset})};var F=function(){function I(C){this.$L=M(C.locale,null,!0),this.parse(C),this.$x=this.$x||C.x||{},this[x]=!0}var j=I.prototype;return j.parse=function(C){this.$d=function(L){var P=L.date,H=L.utc;if(P===null)return new Date(NaN);if(T.u(P))return new Date;if(P instanceof Date)return new Date(P);if(typeof P=="string"&&!/Z$/i.test(P)){var q=P.match(b);if(q){var $=q[2]-1||0,B=(q[7]||"0").substring(0,3);return H?new Date(Date.UTC(q[1],$,q[3]||1,q[4]||0,q[5]||0,q[6]||0,B)):new Date(q[1],$,q[3]||1,q[4]||0,q[5]||0,q[6]||0,B)}}return new Date(P)}(C),this.init()},j.init=function(){var C=this.$d;this.$y=C.getFullYear(),this.$M=C.getMonth(),this.$D=C.getDate(),this.$W=C.getDay(),this.$H=C.getHours(),this.$m=C.getMinutes(),this.$s=C.getSeconds(),this.$ms=C.getMilliseconds()},j.$utils=function(){return T},j.isValid=function(){return this.$d.toString()!==m},j.isSame=function(C,L){var P=_(C);return this.startOf(L)<=P&&P<=this.endOf(L)},j.isAfter=function(C,L){return _(C)<this.startOf(L)},j.isBefore=function(C,L){return this.endOf(L)<_(C)},j.$g=function(C,L,P){return T.u(C)?this[L]:this.set(P,C)},j.unix=function(){return Math.floor(this.valueOf()/1e3)},j.valueOf=function(){return this.$d.getTime()},j.startOf=function(C,L){var P=this,H=!!T.u(L)||L,q=T.p(C),$=function($t,it){var wt=T.w(P.$u?Date.UTC(P.$y,it,$t):new Date(P.$y,it,$t),P);return H?wt:wt.endOf(a)},B=function($t,it){return T.w(P.toDate()[$t].apply(P.toDate("s"),(H?[0,0,0,0]:[23,59,59,999]).slice(it)),P)},N=this.$W,k=this.$M,at=this.$D,Ut="set"+(this.$u?"UTC":"");switch(q){case p:return H?$(1,0):$(31,11);case f:return H?$(1,k):$(0,k+1);case l:var Ot=this.$locale().weekStart||0,re=(N<Ot?N+7:N)-Ot;return $(H?at-re:at+(6-re),k);case a:case d:return B(Ut+"Hours",0);case c:return B(Ut+"Minutes",1);case u:return B(Ut+"Seconds",2);case s:return B(Ut+"Milliseconds",3);default:return this.clone()}},j.endOf=function(C){return this.startOf(C,!1)},j.$set=function(C,L){var P,H=T.p(C),q="set"+(this.$u?"UTC":""),$=(P={},P[a]=q+"Date",P[d]=q+"Date",P[f]=q+"Month",P[p]=q+"FullYear",P[c]=q+"Hours",P[u]=q+"Minutes",P[s]=q+"Seconds",P[o]=q+"Milliseconds",P)[H],B=H===a?this.$D+(L-this.$W):L;if(H===f||H===p){var N=this.clone().set(d,1);N.$d[$](B),N.init(),this.$d=N.set(d,Math.min(this.$D,N.daysInMonth())).$d}else $&&this.$d[$](B);return this.init(),this},j.set=function(C,L){return this.clone().$set(C,L)},j.get=function(C){return this[T.p(C)]()},j.add=function(C,L){var P,H=this;C=Number(C);var q=T.p(L),$=function(k){var at=_(H);return T.w(at.date(at.date()+Math.round(k*C)),H)};if(q===f)return this.set(f,this.$M+C);if(q===p)return this.set(p,this.$y+C);if(q===a)return $(1);if(q===l)return $(7);var B=(P={},P[u]=n,P[c]=i,P[s]=r,P)[q]||1,N=this.$d.getTime()+C*B;return T.w(N,this)},j.subtract=function(C,L){return this.add(-1*C,L)},j.format=function(C){var L=this,P=this.$locale();if(!this.isValid())return P.invalidDate||m;var H=C||"YYYY-MM-DDTHH:mm:ssZ",q=T.z(this),$=this.$H,B=this.$m,N=this.$M,k=P.weekdays,at=P.months,Ut=P.meridiem,Ot=function(it,wt,ne,we){return it&&(it[wt]||it(L,H))||ne[wt].slice(0,we)},re=function(it){return T.s($%12||12,it,"0")},$t=Ut||function(it,wt,ne){var we=it<12?"AM":"PM";return ne?we.toLowerCase():we};return H.replace(E,function(it,wt){return wt||function(ne){switch(ne){case"YY":return String(L.$y).slice(-2);case"YYYY":return T.s(L.$y,4,"0");case"M":return N+1;case"MM":return T.s(N+1,2,"0");case"MMM":return Ot(P.monthsShort,N,at,3);case"MMMM":return Ot(at,N);case"D":return L.$D;case"DD":return T.s(L.$D,2,"0");case"d":return String(L.$W);case"dd":return Ot(P.weekdaysMin,L.$W,k,2);case"ddd":return Ot(P.weekdaysShort,L.$W,k,3);case"dddd":return k[L.$W];case"H":return String($);case"HH":return T.s($,2,"0");case"h":return re(1);case"hh":return re(2);case"a":return $t($,B,!0);case"A":return $t($,B,!1);case"m":return String(B);case"mm":return T.s(B,2,"0");case"s":return String(L.$s);case"ss":return T.s(L.$s,2,"0");case"SSS":return T.s(L.$ms,3,"0");case"Z":return q}return null}(it)||q.replace(":","")})},j.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},j.diff=function(C,L,P){var H,q=this,$=T.p(L),B=_(C),N=(B.utcOffset()-this.utcOffset())*n,k=this-B,at=function(){return T.m(q,B)};switch($){case p:H=at()/12;break;case f:H=at();break;case h:H=at()/3;break;case l:H=(k-N)/6048e5;break;case a:H=(k-N)/864e5;break;case c:H=k/i;break;case u:H=k/n;break;case s:H=k/r;break;default:H=k}return P?H:T.a(H)},j.daysInMonth=function(){return this.endOf(f).$D},j.$locale=function(){return g[this.$L]},j.locale=function(C,L){if(!C)return this.$L;var P=this.clone(),H=M(C,L,!0);return H&&(P.$L=H),P},j.clone=function(){return T.w(this.$d,this)},j.toDate=function(){return new Date(this.valueOf())},j.toJSON=function(){return this.isValid()?this.toISOString():null},j.toISOString=function(){return this.$d.toISOString()},j.toString=function(){return this.$d.toUTCString()},I}(),D=F.prototype;return _.prototype=D,[["$ms",o],["$s",s],["$m",u],["$H",c],["$W",a],["$M",f],["$y",p],["$D",d]].forEach(function(I){D[I[1]]=function(j){return this.$g(j,I[0],I[1])}}),_.extend=function(I,j){return I.$i||(I(j,F,_),I.$i=!0),_},_.locale=M,_.isDayjs=O,_.unix=function(I){return _(1e3*I)},_.en=g[S],_.Ls=g,_.p={},_})})(zo);var Wo=zo.exports;const Jh=Qt(Wo);var Yh={exports:{}};(function(e,t){(function(r,n){e.exports=n(Wo)})(rt,function(r){function n(s){return s&&typeof s=="object"&&"default"in s?s:{default:s}}var i=n(r),o={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(s,u){return u==="W"?s+"周":s+"日"},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(s,u){var c=100*s+u;return c<600?"凌晨":c<900?"早上":c<1100?"上午":c<1300?"中午":c<1800?"下午":"晚上"}};return i.default.locale(o,null,!0),o})})(Yh),Jh.locale("zh-cn");function Kh(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 Gh(e=0){return U(this,null,function*(){return new Promise(t=>{setTimeout(t,e)})})}function Zh(e){return[...e.entries()].reduce((t,[r,n])=>(t[r]=n,t),{})}function Xh(e,t){return Array.from(new Set(e))}function hr(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,o])=>{n(i,o)||(r[i]=o)})}return r}function Qh(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,o])=>{n(i,o)&&(r[i]=o)})}return r}var Jo={exports:{}};(function(e){var t=function(){var r=String.fromCharCode,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",o={};function s(c,a){if(!o[c]){o[c]={};for(var l=0;l<c.length;l++)o[c][c.charAt(l)]=l}return o[c][a]}var u={compressToBase64:function(c){if(c==null)return"";var a=u._compress(c,6,function(l){return n.charAt(l)});switch(a.length%4){default:case 0:return a;case 1:return a+"===";case 2:return a+"==";case 3:return a+"="}},decompressFromBase64:function(c){return c==null?"":c==""?null:u._decompress(c.length,32,function(a){return s(n,c.charAt(a))})},compressToUTF16:function(c){return c==null?"":u._compress(c,15,function(a){return r(a+32)})+" "},decompressFromUTF16:function(c){return c==null?"":c==""?null:u._decompress(c.length,16384,function(a){return c.charCodeAt(a)-32})},compressToUint8Array:function(c){for(var a=u.compress(c),l=new Uint8Array(a.length*2),f=0,h=a.length;f<h;f++){var p=a.charCodeAt(f);l[f*2]=p>>>8,l[f*2+1]=p%256}return l},decompressFromUint8Array:function(c){if(c==null)return u.decompress(c);for(var a=new Array(c.length/2),l=0,f=a.length;l<f;l++)a[l]=c[l*2]*256+c[l*2+1];var h=[];return a.forEach(function(p){h.push(r(p))}),u.decompress(h.join(""))},compressToEncodedURIComponent:function(c){return c==null?"":u._compress(c,6,function(a){return i.charAt(a)})},decompressFromEncodedURIComponent:function(c){return c==null?"":c==""?null:(c=c.replace(/ /g,"+"),u._decompress(c.length,32,function(a){return s(i,c.charAt(a))}))},compress:function(c){return u._compress(c,16,function(a){return r(a)})},_compress:function(c,a,l){if(c==null)return"";var f,h,p={},d={},m="",b="",E="",y=2,v=3,w=2,S=[],g=0,x=0,O;for(O=0;O<c.length;O+=1)if(m=c.charAt(O),Object.prototype.hasOwnProperty.call(p,m)||(p[m]=v++,d[m]=!0),b=E+m,Object.prototype.hasOwnProperty.call(p,b))E=b;else{if(Object.prototype.hasOwnProperty.call(d,E)){if(E.charCodeAt(0)<256){for(f=0;f<w;f++)g=g<<1,x==a-1?(x=0,S.push(l(g)),g=0):x++;for(h=E.charCodeAt(0),f=0;f<8;f++)g=g<<1|h&1,x==a-1?(x=0,S.push(l(g)),g=0):x++,h=h>>1}else{for(h=1,f=0;f<w;f++)g=g<<1|h,x==a-1?(x=0,S.push(l(g)),g=0):x++,h=0;for(h=E.charCodeAt(0),f=0;f<16;f++)g=g<<1|h&1,x==a-1?(x=0,S.push(l(g)),g=0):x++,h=h>>1}y--,y==0&&(y=Math.pow(2,w),w++),delete d[E]}else for(h=p[E],f=0;f<w;f++)g=g<<1|h&1,x==a-1?(x=0,S.push(l(g)),g=0):x++,h=h>>1;y--,y==0&&(y=Math.pow(2,w),w++),p[b]=v++,E=String(m)}if(E!==""){if(Object.prototype.hasOwnProperty.call(d,E)){if(E.charCodeAt(0)<256){for(f=0;f<w;f++)g=g<<1,x==a-1?(x=0,S.push(l(g)),g=0):x++;for(h=E.charCodeAt(0),f=0;f<8;f++)g=g<<1|h&1,x==a-1?(x=0,S.push(l(g)),g=0):x++,h=h>>1}else{for(h=1,f=0;f<w;f++)g=g<<1|h,x==a-1?(x=0,S.push(l(g)),g=0):x++,h=0;for(h=E.charCodeAt(0),f=0;f<16;f++)g=g<<1|h&1,x==a-1?(x=0,S.push(l(g)),g=0):x++,h=h>>1}y--,y==0&&(y=Math.pow(2,w),w++),delete d[E]}else for(h=p[E],f=0;f<w;f++)g=g<<1|h&1,x==a-1?(x=0,S.push(l(g)),g=0):x++,h=h>>1;y--,y==0&&(y=Math.pow(2,w),w++)}for(h=2,f=0;f<w;f++)g=g<<1|h&1,x==a-1?(x=0,S.push(l(g)),g=0):x++,h=h>>1;for(;;)if(g=g<<1,x==a-1){S.push(l(g));break}else x++;return S.join("")},decompress:function(c){return c==null?"":c==""?null:u._decompress(c.length,32768,function(a){return c.charCodeAt(a)})},_decompress:function(c,a,l){var f=[],h=4,p=4,d=3,m="",b=[],E,y,v,w,S,g,x,O={val:l(0),position:a,index:1};for(E=0;E<3;E+=1)f[E]=E;for(v=0,S=Math.pow(2,2),g=1;g!=S;)w=O.val&O.position,O.position>>=1,O.position==0&&(O.position=a,O.val=l(O.index++)),v|=(w>0?1:0)*g,g<<=1;switch(v){case 0:for(v=0,S=Math.pow(2,8),g=1;g!=S;)w=O.val&O.position,O.position>>=1,O.position==0&&(O.position=a,O.val=l(O.index++)),v|=(w>0?1:0)*g,g<<=1;x=r(v);break;case 1:for(v=0,S=Math.pow(2,16),g=1;g!=S;)w=O.val&O.position,O.position>>=1,O.position==0&&(O.position=a,O.val=l(O.index++)),v|=(w>0?1:0)*g,g<<=1;x=r(v);break;case 2:return""}for(f[3]=x,y=x,b.push(x);;){if(O.index>c)return"";for(v=0,S=Math.pow(2,d),g=1;g!=S;)w=O.val&O.position,O.position>>=1,O.position==0&&(O.position=a,O.val=l(O.index++)),v|=(w>0?1:0)*g,g<<=1;switch(x=v){case 0:for(v=0,S=Math.pow(2,8),g=1;g!=S;)w=O.val&O.position,O.position>>=1,O.position==0&&(O.position=a,O.val=l(O.index++)),v|=(w>0?1:0)*g,g<<=1;f[p++]=r(v),x=p-1,h--;break;case 1:for(v=0,S=Math.pow(2,16),g=1;g!=S;)w=O.val&O.position,O.position>>=1,O.position==0&&(O.position=a,O.val=l(O.index++)),v|=(w>0?1:0)*g,g<<=1;f[p++]=r(v),x=p-1,h--;break;case 2:return b.join("")}if(h==0&&(h=Math.pow(2,d),d++),f[x])m=f[x];else if(x===p)m=y+y.charAt(0);else return null;b.push(m),f[p++]=y+m.charAt(0),h--,y=m,h==0&&(h=Math.pow(2,d),d++)}}};return u}();e!=null?e.exports=t:typeof angular<"u"&&angular!=null&&angular.module("LZString",[]).factory("LZString",function(){return t})})(Jo);var Yo=Jo.exports;function tp(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="",o=r+1;o<e.length;){var s=e.charCodeAt(o);if(s>=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122||s===95){i+=e[o++];continue}break}if(!i)throw new TypeError("Missing parameter name at ".concat(r));t.push({type:"NAME",index:r,value:i}),r=o;continue}if(n==="("){var u=1,c="",o=r+1;if(e[o]==="?")throw new TypeError('Pattern cannot start with "?" at '.concat(o));for(;o<e.length;){if(e[o]==="\\"){c+=e[o++]+e[o++];continue}if(e[o]===")"){if(u--,u===0){o++;break}}else if(e[o]==="("&&(u++,e[o+1]!=="?"))throw new TypeError("Capturing groups are not allowed at ".concat(o));c+=e[o++]}if(u)throw new TypeError("Unbalanced pattern at ".concat(r));if(!c)throw new TypeError("Missing pattern at ".concat(r));t.push({type:"PATTERN",index:r,value:c}),r=o;continue}t.push({type:"CHAR",index:r,value:e[r++]})}return t.push({type:"END",index:r,value:""}),t}function Ko(e,t){t===void 0&&(t={});for(var r=tp(e),n=t.prefixes,i=n===void 0?"./":n,o="[^".concat(Yt(t.delimiter||"/#?"),"]+?"),s=[],u=0,c=0,a="",l=function(g){if(c<r.length&&r[c].type===g)return r[c++].value},f=function(g){var x=l(g);if(x!==void 0)return x;var O=r[c],M=O.type,_=O.index;throw new TypeError("Unexpected ".concat(M," at ").concat(_,", expected ").concat(g))},h=function(){for(var g="",x;x=l("CHAR")||l("ESCAPED_CHAR");)g+=x;return g};c<r.length;){var p=l("CHAR"),d=l("NAME"),m=l("PATTERN");if(d||m){var b=p||"";i.indexOf(b)===-1&&(a+=b,b=""),a&&(s.push(a),a=""),s.push({name:d||u++,prefix:b,suffix:"",pattern:m||o,modifier:l("MODIFIER")||""});continue}var E=p||l("ESCAPED_CHAR");if(E){a+=E;continue}a&&(s.push(a),a="");var y=l("OPEN");if(y){var b=h(),v=l("NAME")||"",w=l("PATTERN")||"",S=h();f("CLOSE"),s.push({name:v||(w?u++:""),pattern:v&&!w?o:w,prefix:b,suffix:S,modifier:l("MODIFIER")||""});continue}f("END")}return s}function ep(e,t){return rp(Ko(e,t),t)}function rp(e,t){t===void 0&&(t={});var r=Xr(t),n=t.encode,i=n===void 0?function(c){return c}:n,o=t.validate,s=o===void 0?!0:o,u=e.map(function(c){if(typeof c=="object")return new RegExp("^(?:".concat(c.pattern,")$"),r)});return function(c){for(var a="",l=0;l<e.length;l++){var f=e[l];if(typeof f=="string"){a+=f;continue}var h=c?c[f.name]:void 0,p=f.modifier==="?"||f.modifier==="*",d=f.modifier==="*"||f.modifier==="+";if(Array.isArray(h)){if(!d)throw new TypeError('Expected "'.concat(f.name,'" to not repeat, but got an array'));if(h.length===0){if(p)continue;throw new TypeError('Expected "'.concat(f.name,'" to not be empty'))}for(var m=0;m<h.length;m++){var b=i(h[m],f);if(s&&!u[l].test(b))throw new TypeError('Expected all "'.concat(f.name,'" to match "').concat(f.pattern,'", but got "').concat(b,'"'));a+=f.prefix+b+f.suffix}continue}if(typeof h=="string"||typeof h=="number"){var b=i(String(h),f);if(s&&!u[l].test(b))throw new TypeError('Expected "'.concat(f.name,'" to match "').concat(f.pattern,'", but got "').concat(b,'"'));a+=f.prefix+b+f.suffix;continue}if(!p){var E=d?"an array":"a string";throw new TypeError('Expected "'.concat(f.name,'" to be ').concat(E))}}return a}}function np(e,t){var r=[],n=Qr(e,r,t);return ip(n,r,t)}function ip(e,t,r){r===void 0&&(r={});var n=r.decode,i=n===void 0?function(o){return o}:n;return function(o){var s=e.exec(o);if(!s)return!1;for(var u=s[0],c=s.index,a=Object.create(null),l=function(h){if(s[h]===void 0)return"continue";var p=t[h-1];p.modifier==="*"||p.modifier==="+"?a[p.name]=s[h].split(p.prefix+p.suffix).map(function(d){return i(d,p)}):a[p.name]=i(s[h],p)},f=1;f<s.length;f++)l(f);return{path:u,index:c,params:a}}}function Yt(e){return e.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function Xr(e){return e&&e.sensitive?"":"i"}function op(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 sp(e,t,r){var n=e.map(function(i){return Qr(i,t,r).source});return new RegExp("(?:".concat(n.join("|"),")"),Xr(r))}function ap(e,t,r){return up(Ko(e,r),t,r)}function up(e,t,r){r===void 0&&(r={});for(var n=r.strict,i=n===void 0?!1:n,o=r.start,s=o===void 0?!0:o,u=r.end,c=u===void 0?!0:u,a=r.encode,l=a===void 0?function(_){return _}:a,f=r.delimiter,h=f===void 0?"/#?":f,p=r.endsWith,d=p===void 0?"":p,m="[".concat(Yt(d),"]|$"),b="[".concat(Yt(h),"]"),E=s?"^":"",y=0,v=e;y<v.length;y++){var w=v[y];if(typeof w=="string")E+=Yt(l(w));else{var S=Yt(l(w.prefix)),g=Yt(l(w.suffix));if(w.pattern)if(t&&t.push(w),S||g)if(w.modifier==="+"||w.modifier==="*"){var x=w.modifier==="*"?"?":"";E+="(?:".concat(S,"((?:").concat(w.pattern,")(?:").concat(g).concat(S,"(?:").concat(w.pattern,"))*)").concat(g,")").concat(x)}else E+="(?:".concat(S,"(").concat(w.pattern,")").concat(g,")").concat(w.modifier);else w.modifier==="+"||w.modifier==="*"?E+="((?:".concat(w.pattern,")").concat(w.modifier,")"):E+="(".concat(w.pattern,")").concat(w.modifier);else E+="(?:".concat(S).concat(g,")").concat(w.modifier)}}if(c)i||(E+="".concat(b,"?")),E+=r.endsWith?"(?=".concat(m,")"):"$";else{var O=e[e.length-1],M=typeof O=="string"?b.indexOf(O[O.length-1])>-1:O===void 0;i||(E+="(?:".concat(b,"(?=").concat(m,"))?")),M||(E+="(?=".concat(b,"|").concat(m,")"))}return new RegExp(E,Xr(r))}function Qr(e,t,r){return e instanceof RegExp?op(e,t):Array.isArray(e)?sp(e,t,r):ap(e,t,r)}Yo.compress;Yo.decompress;/**!
51
+ * Copyright (c) 2025, VTJ.PRO All rights reserved.
52
+ * @name @vtj/core
53
+ * @author CHC chenhuachun1549@dingtalk.com
54
+ * @version 0.10.8
55
+ * @license <a href="https://vtj.pro/license.html">MIT License</a>
56
+ */const cp="VueMaterial",lp="VueRouterMaterial",fp={[cp]:["Transition","TransitionGroup","KeepAlive","Teleport","Suspense"],[lp]:["RouterView","RouterLink"]};class hp{constructor(){z(this,"listeners",[]);z(this,"isReady",!1)}triggerReady(){this.isReady=!0;for(const t of this.listeners)t();this.listeners=[]}ready(t){this.isReady?t():this.listeners.push(t)}resetReady(){this.isReady=!1}}var pp=Object.defineProperty,dp=(e,t,r)=>t in e?pp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ut=(e,t,r)=>dp(e,typeof t!="symbol"?t+"":t,r);(function(){if(typeof window>"u"||typeof EventTarget>"u")return;const e=EventTarget.prototype.addEventListener;EventTarget.prototype.addEventListener=function(t,r,n){typeof n!="boolean"&&(n=n||{},n.passive=!1),e.call(this,t,r,n)}})();const mp=e=>typeof e=="symbol";new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(mp));function Go(e,t){return function(){return e.apply(t,arguments)}}const{toString:gp}=Object.prototype,{getPrototypeOf:tn}=Object,Je=(e=>t=>{const r=gp.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),dt=e=>(e=e.toLowerCase(),t=>Je(t)===e),Ye=e=>t=>typeof t===e,{isArray:te}=Array,de=Ye("undefined");function yp(e){return e!==null&&!de(e)&&e.constructor!==null&&!de(e.constructor)&&st(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Zo=dt("ArrayBuffer");function vp(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Zo(e.buffer),t}const bp=Ye("string"),st=Ye("function"),Xo=Ye("number"),Ke=e=>e!==null&&typeof e=="object",wp=e=>e===!0||e===!1,Be=e=>{if(Je(e)!=="object")return!1;const t=tn(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},_p=dt("Date"),Ep=dt("File"),Sp=dt("Blob"),xp=dt("FileList"),Tp=e=>Ke(e)&&st(e.pipe),Rp=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||st(e.append)&&((t=Je(e))==="formdata"||t==="object"&&st(e.toString)&&e.toString()==="[object FormData]"))},Op=dt("URLSearchParams"),[$p,Ap,jp,Dp]=["ReadableStream","Request","Response","Headers"].map(dt),Bp=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function ve(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,i;if(typeof e!="object"&&(e=[e]),te(e))for(n=0,i=e.length;n<i;n++)t.call(null,e[n],n,e);else{const o=r?Object.getOwnPropertyNames(e):Object.keys(e),s=o.length;let u;for(n=0;n<s;n++)u=o[n],t.call(null,e[u],u,e)}}function Qo(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 Nt=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,ts=e=>!de(e)&&e!==Nt;function Br(){const{caseless:e}=ts(this)&&this||{},t={},r=(n,i)=>{const o=e&&Qo(t,i)||i;Be(t[o])&&Be(n)?t[o]=Br(t[o],n):Be(n)?t[o]=Br({},n):te(n)?t[o]=n.slice():t[o]=n};for(let n=0,i=arguments.length;n<i;n++)arguments[n]&&ve(arguments[n],r);return t}const Cp=(e,t,r,{allOwnKeys:n}={})=>(ve(t,(i,o)=>{r&&st(i)?e[o]=Go(i,r):e[o]=i},{allOwnKeys:n}),e),Np=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),kp=(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)},Ip=(e,t,r,n)=>{let i,o,s;const u={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),o=i.length;o-- >0;)s=i[o],(!n||n(s,e,t))&&!u[s]&&(t[s]=e[s],u[s]=!0);e=r!==!1&&tn(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},Fp=(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},Mp=e=>{if(!e)return null;if(te(e))return e;let t=e.length;if(!Xo(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},Pp=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&tn(Uint8Array)),Up=(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])}},Lp=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},Vp=dt("HTMLFormElement"),Hp=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(t,r,n){return r.toUpperCase()+n}),fi=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),qp=dt("RegExp"),es=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};ve(r,(i,o)=>{let s;(s=t(i,o,e))!==!1&&(n[o]=s||i)}),Object.defineProperties(e,n)},zp=e=>{es(e,(t,r)=>{if(st(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=e[r];if(st(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+"'")})}})},Wp=(e,t)=>{const r={},n=i=>{i.forEach(o=>{r[o]=!0})};return te(e)?n(e):n(String(e).split(t)),r},Jp=()=>{},Yp=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function Kp(e){return!!(e&&st(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const Gp=e=>{const t=new Array(10),r=(n,i)=>{if(Ke(n)){if(t.indexOf(n)>=0)return;if(!("toJSON"in n)){t[i]=n;const o=te(n)?[]:{};return ve(n,(s,u)=>{const c=r(s,i+1);!de(c)&&(o[u]=c)}),t[i]=void 0,o}}return n};return r(e,0)},Zp=dt("AsyncFunction"),Xp=e=>e&&(Ke(e)||st(e))&&st(e.then)&&st(e.catch),rs=((e,t)=>e?setImmediate:t?((r,n)=>(Nt.addEventListener("message",({source:i,data:o})=>{i===Nt&&o===r&&n.length&&n.shift()()},!1),i=>{n.push(i),Nt.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",st(Nt.postMessage)),Qp=typeof queueMicrotask<"u"?queueMicrotask.bind(Nt):typeof process<"u"&&process.nextTick||rs,R={isArray:te,isArrayBuffer:Zo,isBuffer:yp,isFormData:Rp,isArrayBufferView:vp,isString:bp,isNumber:Xo,isBoolean:wp,isObject:Ke,isPlainObject:Be,isReadableStream:$p,isRequest:Ap,isResponse:jp,isHeaders:Dp,isUndefined:de,isDate:_p,isFile:Ep,isBlob:Sp,isRegExp:qp,isFunction:st,isStream:Tp,isURLSearchParams:Op,isTypedArray:Pp,isFileList:xp,forEach:ve,merge:Br,extend:Cp,trim:Bp,stripBOM:Np,inherits:kp,toFlatObject:Ip,kindOf:Je,kindOfTest:dt,endsWith:Fp,toArray:Mp,forEachEntry:Up,matchAll:Lp,isHTMLForm:Vp,hasOwnProperty:fi,hasOwnProp:fi,reduceDescriptors:es,freezeMethods:zp,toObjectSet:Wp,toCamelCase:Hp,noop:Jp,toFiniteNumber:Yp,findKey:Qo,global:Nt,isContextDefined:ts,isSpecCompliantForm:Kp,toJSONObject:Gp,isAsyncFn:Zp,isThenable:Xp,setImmediate:rs,asap:Qp};function W(e,t,r,n,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),i&&(this.response=i,this.status=i.status?i.status:null)}R.inherits(W,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:R.toJSONObject(this.config),code:this.code,status:this.status}}});const ns=W.prototype,is={};["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=>{is[e]={value:e}});Object.defineProperties(W,is);Object.defineProperty(ns,"isAxiosError",{value:!0});W.from=(e,t,r,n,i,o)=>{const s=Object.create(ns);return R.toFlatObject(e,s,function(u){return u!==Error.prototype},u=>u!=="isAxiosError"),W.call(s,e.message,t,r,n,i),s.cause=e,s.name=e.name,o&&Object.assign(s,o),s};const td=null;function Cr(e){return R.isPlainObject(e)||R.isArray(e)}function os(e){return R.endsWith(e,"[]")?e.slice(0,-2):e}function hi(e,t,r){return e?e.concat(t).map(function(n,i){return n=os(n),!r&&i?"["+n+"]":n}).join(r?".":""):t}function ed(e){return R.isArray(e)&&!e.some(Cr)}const rd=R.toFlatObject(R,{},null,function(e){return/^is[A-Z]/.test(e)});function Ge(e,t,r){if(!R.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=R.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(p,d){return!R.isUndefined(d[p])});const n=r.metaTokens,i=r.visitor||a,o=r.dots,s=r.indexes,u=(r.Blob||typeof Blob<"u"&&Blob)&&R.isSpecCompliantForm(t);if(!R.isFunction(i))throw new TypeError("visitor must be a function");function c(p){if(p===null)return"";if(R.isDate(p))return p.toISOString();if(!u&&R.isBlob(p))throw new W("Blob is not supported. Use a Buffer instead.");return R.isArrayBuffer(p)||R.isTypedArray(p)?u&&typeof Blob=="function"?new Blob([p]):Buffer.from(p):p}function a(p,d,m){let b=p;if(p&&!m&&typeof p=="object"){if(R.endsWith(d,"{}"))d=n?d:d.slice(0,-2),p=JSON.stringify(p);else if(R.isArray(p)&&ed(p)||(R.isFileList(p)||R.endsWith(d,"[]"))&&(b=R.toArray(p)))return d=os(d),b.forEach(function(E,y){!(R.isUndefined(E)||E===null)&&t.append(s===!0?hi([d],y,o):s===null?d:d+"[]",c(E))}),!1}return Cr(p)?!0:(t.append(hi(m,d,o),c(p)),!1)}const l=[],f=Object.assign(rd,{defaultVisitor:a,convertValue:c,isVisitable:Cr});function h(p,d){if(!R.isUndefined(p)){if(l.indexOf(p)!==-1)throw Error("Circular reference detected in "+d.join("."));l.push(p),R.forEach(p,function(m,b){(!(R.isUndefined(m)||m===null)&&i.call(t,m,R.isString(b)?b.trim():b,d,f))===!0&&h(m,d?d.concat(b):[b])}),l.pop()}}if(!R.isObject(e))throw new TypeError("data must be an object");return h(e),t}function pi(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function en(e,t){this._pairs=[],e&&Ge(e,this,t)}const ss=en.prototype;ss.append=function(e,t){this._pairs.push([e,t])};ss.toString=function(e){const t=e?function(r){return e.call(this,r,pi)}:pi;return this._pairs.map(function(r){return t(r[0])+"="+t(r[1])},"").join("&")};function nd(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function as(e,t,r){if(!t)return e;const n=r&&r.encode||nd;R.isFunction(r)&&(r={serialize:r});const i=r&&r.serialize;let o;if(i?o=i(t,r):o=R.isURLSearchParams(t)?t.toString():new en(t,r).toString(n),o){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}let di=class{constructor(){this.handlers=[]}use(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){R.forEach(this.handlers,function(r){r!==null&&t(r)})}};const us={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},id=typeof URLSearchParams<"u"?URLSearchParams:en,od=typeof FormData<"u"?FormData:null,sd=typeof Blob<"u"?Blob:null,ad={isBrowser:!0,classes:{URLSearchParams:id,FormData:od,Blob:sd},protocols:["http","https","file","blob","url","data"]},rn=typeof window<"u"&&typeof document<"u",Nr=typeof navigator=="object"&&navigator||void 0,ud=rn&&(!Nr||["ReactNative","NativeScript","NS"].indexOf(Nr.product)<0),cd=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",ld=rn&&window.location.href||"http://localhost",fd=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:rn,hasStandardBrowserEnv:ud,hasStandardBrowserWebWorkerEnv:cd,navigator:Nr,origin:ld},Symbol.toStringTag,{value:"Module"})),tt=V(V({},fd),ad);function hd(e,t){return Ge(e,new tt.classes.URLSearchParams,Object.assign({visitor:function(r,n,i,o){return tt.isNode&&R.isBuffer(r)?(this.append(n,r.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function pd(e){return R.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function dd(e){const t={},r=Object.keys(e);let n;const i=r.length;let o;for(n=0;n<i;n++)o=r[n],t[o]=e[o];return t}function cs(e){function t(r,n,i,o){let s=r[o++];if(s==="__proto__")return!0;const u=Number.isFinite(+s),c=o>=r.length;return s=!s&&R.isArray(i)?i.length:s,c?(R.hasOwnProp(i,s)?i[s]=[i[s],n]:i[s]=n,!u):((!i[s]||!R.isObject(i[s]))&&(i[s]=[]),t(r,n,i[s],o)&&R.isArray(i[s])&&(i[s]=dd(i[s])),!u)}if(R.isFormData(e)&&R.isFunction(e.entries)){const r={};return R.forEachEntry(e,(n,i)=>{t(pd(n),i,r,0)}),r}return null}function md(e,t,r){if(R.isString(e))try{return(t||JSON.parse)(e),R.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}const be={transitional:us,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const r=t.getContentType()||"",n=r.indexOf("application/json")>-1,i=R.isObject(e);if(i&&R.isHTMLForm(e)&&(e=new FormData(e)),R.isFormData(e))return n?JSON.stringify(cs(e)):e;if(R.isArrayBuffer(e)||R.isBuffer(e)||R.isStream(e)||R.isFile(e)||R.isBlob(e)||R.isReadableStream(e))return e;if(R.isArrayBufferView(e))return e.buffer;if(R.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let o;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return hd(e,this.formSerializer).toString();if((o=R.isFileList(e))||r.indexOf("multipart/form-data")>-1){const s=this.env&&this.env.FormData;return Ge(o?{"files[]":e}:e,s&&new s,this.formSerializer)}}return i||n?(t.setContentType("application/json",!1),md(e)):e}],transformResponse:[function(e){const t=this.transitional||be.transitional,r=t&&t.forcedJSONParsing,n=this.responseType==="json";if(R.isResponse(e)||R.isReadableStream(e))return e;if(e&&R.isString(e)&&(r&&!this.responseType||n)){const i=!(t&&t.silentJSONParsing)&&n;try{return JSON.parse(e)}catch(o){if(i)throw o.name==="SyntaxError"?W.from(o,W.ERR_BAD_RESPONSE,this,null,this.response):o}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:tt.classes.FormData,Blob:tt.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};R.forEach(["delete","get","head","post","put","patch"],e=>{be.headers[e]={}});const gd=R.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),yd=e=>{const t={};let r,n,i;return e&&e.split(`
57
+ `).forEach(function(o){i=o.indexOf(":"),r=o.substring(0,i).trim().toLowerCase(),n=o.substring(i+1).trim(),!(!r||t[r]&&gd[r])&&(r==="set-cookie"?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t},mi=Symbol("internals");function se(e){return e&&String(e).trim().toLowerCase()}function Ce(e){return e===!1||e==null?e:R.isArray(e)?e.map(Ce):String(e)}function vd(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 bd=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function pr(e,t,r,n,i){if(R.isFunction(n))return n.call(this,t,r);if(i&&(t=r),!!R.isString(t)){if(R.isString(n))return t.indexOf(n)!==-1;if(R.isRegExp(n))return n.test(t)}}function wd(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}function _d(e,t){const r=R.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(i,o,s){return this[n].call(this,t,i,o,s)},configurable:!0})})}let ot=class{constructor(t){t&&this.set(t)}set(t,r,n){const i=this;function o(u,c,a){const l=se(c);if(!l)throw new Error("header name must be a non-empty string");const f=R.findKey(i,l);(!f||i[f]===void 0||a===!0||a===void 0&&i[f]!==!1)&&(i[f||c]=Ce(u))}const s=(u,c)=>R.forEach(u,(a,l)=>o(a,l,c));if(R.isPlainObject(t)||t instanceof this.constructor)s(t,r);else if(R.isString(t)&&(t=t.trim())&&!bd(t))s(yd(t),r);else if(R.isHeaders(t))for(const[u,c]of t.entries())o(c,u,n);else t!=null&&o(r,t,n);return this}get(t,r){if(t=se(t),t){const n=R.findKey(this,t);if(n){const i=this[n];if(!r)return i;if(r===!0)return vd(i);if(R.isFunction(r))return r.call(this,i,n);if(R.isRegExp(r))return r.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=se(t),t){const n=R.findKey(this,t);return!!(n&&this[n]!==void 0&&(!r||pr(this,this[n],n,r)))}return!1}delete(t,r){const n=this;let i=!1;function o(s){if(s=se(s),s){const u=R.findKey(n,s);u&&(!r||pr(n,n[u],u,r))&&(delete n[u],i=!0)}}return R.isArray(t)?t.forEach(o):o(t),i}clear(t){const r=Object.keys(this);let n=r.length,i=!1;for(;n--;){const o=r[n];(!t||pr(this,this[o],o,t,!0))&&(delete this[o],i=!0)}return i}normalize(t){const r=this,n={};return R.forEach(this,(i,o)=>{const s=R.findKey(n,o);if(s){r[s]=Ce(i),delete r[o];return}const u=t?wd(o):String(o).trim();u!==o&&delete r[o],r[u]=Ce(i),n[u]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const r=Object.create(null);return R.forEach(this,(n,i)=>{n!=null&&n!==!1&&(r[i]=t&&R.isArray(n)?n.join(", "):n)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,r])=>t+": "+r).join(`
58
+ `)}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[mi]=this[mi]={accessors:{}}).accessors,n=this.prototype;function i(o){const s=se(o);r[s]||(_d(n,o),r[s]=!0)}return R.isArray(t)?t.forEach(i):i(t),this}};ot.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);R.reduceDescriptors(ot.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[r]=n}}});R.freezeMethods(ot);function dr(e,t){const r=this||be,n=t||r,i=ot.from(n.headers);let o=n.data;return R.forEach(e,function(s){o=s.call(r,o,i.normalize(),t?t.status:void 0)}),i.normalize(),o}function ls(e){return!!(e&&e.__CANCEL__)}function ee(e,t,r){W.call(this,e!=null?e:"canceled",W.ERR_CANCELED,t,r),this.name="CanceledError"}R.inherits(ee,W,{__CANCEL__:!0});function fs(e,t,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new W("Request failed with status code "+r.status,[W.ERR_BAD_REQUEST,W.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function Ed(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Sd(e,t){e=e||10;const r=new Array(e),n=new Array(e);let i=0,o=0,s;return t=t!==void 0?t:1e3,function(u){const c=Date.now(),a=n[o];s||(s=c),r[i]=u,n[i]=c;let l=o,f=0;for(;l!==i;)f+=r[l++],l=l%e;if(i=(i+1)%e,i===o&&(o=(o+1)%e),c-s<t)return;const h=a&&c-a;return h?Math.round(f*1e3/h):void 0}}function xd(e,t){let r=0,n=1e3/t,i,o;const s=(u,c=Date.now())=>{r=c,i=null,o&&(clearTimeout(o),o=null),e.apply(null,u)};return[(...u)=>{const c=Date.now(),a=c-r;a>=n?s(u,c):(i=u,o||(o=setTimeout(()=>{o=null,s(i)},n-a)))},()=>i&&s(i)]}const Me=(e,t,r=3)=>{let n=0;const i=Sd(50,250);return xd(o=>{const s=o.loaded,u=o.lengthComputable?o.total:void 0,c=s-n,a=i(c),l=s<=u;n=s;const f={loaded:s,total:u,progress:u?s/u:void 0,bytes:c,rate:a||void 0,estimated:a&&u&&l?(u-s)/a:void 0,event:o,lengthComputable:u!=null,[t?"download":"upload"]:!0};e(f)},r)},gi=(e,t)=>{const r=e!=null;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},yi=e=>(...t)=>R.asap(()=>e(...t)),Td=tt.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,tt.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(tt.origin),tt.navigator&&/(msie|trident)/i.test(tt.navigator.userAgent)):()=>!0,Rd=tt.hasStandardBrowserEnv?{write(e,t,r,n,i,o){const s=[e+"="+encodeURIComponent(t)];R.isNumber(r)&&s.push("expires="+new Date(r).toGMTString()),R.isString(n)&&s.push("path="+n),R.isString(i)&&s.push("domain="+i),o===!0&&s.push("secure"),document.cookie=s.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 Od(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function $d(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function hs(e,t,r){let n=!Od(t);return e&&n||r==!1?$d(e,t):t}const vi=e=>e instanceof ot?V({},e):e;function It(e,t){t=t||{};const r={};function n(a,l,f,h){return R.isPlainObject(a)&&R.isPlainObject(l)?R.merge.call({caseless:h},a,l):R.isPlainObject(l)?R.merge({},l):R.isArray(l)?l.slice():l}function i(a,l,f,h){if(R.isUndefined(l)){if(!R.isUndefined(a))return n(void 0,a,f,h)}else return n(a,l,f,h)}function o(a,l){if(!R.isUndefined(l))return n(void 0,l)}function s(a,l){if(R.isUndefined(l)){if(!R.isUndefined(a))return n(void 0,a)}else return n(void 0,l)}function u(a,l,f){if(f in t)return n(a,l);if(f in e)return n(void 0,a)}const c={url:o,method:o,data:o,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:u,headers:(a,l,f)=>i(vi(a),vi(l),f,!0)};return R.forEach(Object.keys(Object.assign({},e,t)),function(a){const l=c[a]||i,f=l(e[a],t[a],a);R.isUndefined(f)&&l!==u||(r[a]=f)}),r}const ps=e=>{const t=It({},e);let{data:r,withXSRFToken:n,xsrfHeaderName:i,xsrfCookieName:o,headers:s,auth:u}=t;t.headers=s=ot.from(s),t.url=as(hs(t.baseURL,t.url),e.params,e.paramsSerializer),u&&s.set("Authorization","Basic "+btoa((u.username||"")+":"+(u.password?unescape(encodeURIComponent(u.password)):"")));let c;if(R.isFormData(r)){if(tt.hasStandardBrowserEnv||tt.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if((c=s.getContentType())!==!1){const[a,...l]=c?c.split(";").map(f=>f.trim()).filter(Boolean):[];s.setContentType([a||"multipart/form-data",...l].join("; "))}}if(tt.hasStandardBrowserEnv&&(n&&R.isFunction(n)&&(n=n(t)),n||n!==!1&&Td(t.url))){const a=i&&o&&Rd.read(o);a&&s.set(i,a)}return t},Ad=typeof XMLHttpRequest<"u",jd=Ad&&function(e){return new Promise(function(t,r){const n=ps(e);let i=n.data;const o=ot.from(n.headers).normalize();let{responseType:s,onUploadProgress:u,onDownloadProgress:c}=n,a,l,f,h,p;function d(){h&&h(),p&&p(),n.cancelToken&&n.cancelToken.unsubscribe(a),n.signal&&n.signal.removeEventListener("abort",a)}let m=new XMLHttpRequest;m.open(n.method.toUpperCase(),n.url,!0),m.timeout=n.timeout;function b(){if(!m)return;const y=ot.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders()),v={data:!s||s==="text"||s==="json"?m.responseText:m.response,status:m.status,statusText:m.statusText,headers:y,config:e,request:m};fs(function(w){t(w),d()},function(w){r(w),d()},v),m=null}"onloadend"in m?m.onloadend=b:m.onreadystatechange=function(){!m||m.readyState!==4||m.status===0&&!(m.responseURL&&m.responseURL.indexOf("file:")===0)||setTimeout(b)},m.onabort=function(){m&&(r(new W("Request aborted",W.ECONNABORTED,e,m)),m=null)},m.onerror=function(){r(new W("Network Error",W.ERR_NETWORK,e,m)),m=null},m.ontimeout=function(){let y=n.timeout?"timeout of "+n.timeout+"ms exceeded":"timeout exceeded";const v=n.transitional||us;n.timeoutErrorMessage&&(y=n.timeoutErrorMessage),r(new W(y,v.clarifyTimeoutError?W.ETIMEDOUT:W.ECONNABORTED,e,m)),m=null},i===void 0&&o.setContentType(null),"setRequestHeader"in m&&R.forEach(o.toJSON(),function(y,v){m.setRequestHeader(v,y)}),R.isUndefined(n.withCredentials)||(m.withCredentials=!!n.withCredentials),s&&s!=="json"&&(m.responseType=n.responseType),c&&([f,p]=Me(c,!0),m.addEventListener("progress",f)),u&&m.upload&&([l,h]=Me(u),m.upload.addEventListener("progress",l),m.upload.addEventListener("loadend",h)),(n.cancelToken||n.signal)&&(a=y=>{m&&(r(!y||y.type?new ee(null,e,m):y),m.abort(),m=null)},n.cancelToken&&n.cancelToken.subscribe(a),n.signal&&(n.signal.aborted?a():n.signal.addEventListener("abort",a)));const E=Ed(n.url);if(E&&tt.protocols.indexOf(E)===-1){r(new W("Unsupported protocol "+E+":",W.ERR_BAD_REQUEST,e));return}m.send(i||null)})},Dd=(e,t)=>{const{length:r}=e=e?e.filter(Boolean):[];if(t||r){let n=new AbortController,i;const o=function(a){if(!i){i=!0,u();const l=a instanceof Error?a:this.reason;n.abort(l instanceof W?l:new ee(l instanceof Error?l.message:l))}};let s=t&&setTimeout(()=>{s=null,o(new W(`timeout ${t} of ms exceeded`,W.ETIMEDOUT))},t);const u=()=>{e&&(s&&clearTimeout(s),s=null,e.forEach(a=>{a.unsubscribe?a.unsubscribe(o):a.removeEventListener("abort",o)}),e=null)};e.forEach(a=>a.addEventListener("abort",o));const{signal:c}=n;return c.unsubscribe=()=>R.asap(u),c}},Bd=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},Cd=function(e,t){return er(this,null,function*(){try{for(var r=fn(Nd(e)),n,i,o;n=!(i=yield new At(r.next())).done;n=!1){const s=i.value;yield*rr(Bd(s,t))}}catch(i){o=[i]}finally{try{n&&(i=r.return)&&(yield new At(i.call(r)))}finally{if(o)throw o[0]}}})},Nd=function(e){return er(this,null,function*(){if(e[Symbol.asyncIterator]){yield*rr(e);return}const t=e.getReader();try{for(;;){const{done:r,value:n}=yield new At(t.read());if(r)break;yield n}}finally{yield new At(t.cancel())}})},bi=(e,t,r,n)=>{const i=Cd(e,t);let o=0,s,u=a=>{s||(s=!0,n&&n(a))};return new ReadableStream({pull(a){return U(this,null,function*(){try{const{done:l,value:f}=yield i.next();if(l){u(),a.close();return}let h=f.byteLength;if(r){let p=o+=h;r(p)}a.enqueue(new Uint8Array(f))}catch(l){throw u(l),l}})},cancel(a){return u(a),i.return()}},{highWaterMark:2})},Ze=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",ds=Ze&&typeof ReadableStream=="function",kd=Ze&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):e=>U(void 0,null,function*(){return new Uint8Array(yield new Response(e).arrayBuffer())})),ms=(e,...t)=>{try{return!!e(...t)}catch(r){return!1}},Id=ds&&ms(()=>{let e=!1;const t=new Request(tt.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),wi=64*1024,kr=ds&&ms(()=>R.isReadableStream(new Response("").body)),Pe={stream:kr&&(e=>e.body)};Ze&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!Pe[t]&&(Pe[t]=R.isFunction(e[t])?r=>r[t]():(r,n)=>{throw new W(`Response type '${t}' is not supported`,W.ERR_NOT_SUPPORT,n)})})})(new Response);const Fd=e=>U(void 0,null,function*(){if(e==null)return 0;if(R.isBlob(e))return e.size;if(R.isSpecCompliantForm(e))return(yield new Request(tt.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(R.isArrayBufferView(e)||R.isArrayBuffer(e))return e.byteLength;if(R.isURLSearchParams(e)&&(e=e+""),R.isString(e))return(yield kd(e)).byteLength}),Md=(e,t)=>U(void 0,null,function*(){const r=R.toFiniteNumber(e.getContentLength());return r!=null?r:Fd(t)}),Pd=Ze&&(e=>U(void 0,null,function*(){let{url:t,method:r,data:n,signal:i,cancelToken:o,timeout:s,onDownloadProgress:u,onUploadProgress:c,responseType:a,headers:l,withCredentials:f="same-origin",fetchOptions:h}=ps(e);a=a?(a+"").toLowerCase():"text";let p=Dd([i,o&&o.toAbortSignal()],s),d;const m=p&&p.unsubscribe&&(()=>{p.unsubscribe()});let b;try{if(c&&Id&&r!=="get"&&r!=="head"&&(b=yield Md(l,n))!==0){let S=new Request(t,{method:"POST",body:n,duplex:"half"}),g;if(R.isFormData(n)&&(g=S.headers.get("content-type"))&&l.setContentType(g),S.body){const[x,O]=gi(b,Me(yi(c)));n=bi(S.body,wi,x,O)}}R.isString(f)||(f=f?"include":"omit");const E="credentials"in Request.prototype;d=new Request(t,Q(V({},h),{signal:p,method:r.toUpperCase(),headers:l.normalize().toJSON(),body:n,duplex:"half",credentials:E?f:void 0}));let y=yield fetch(d);const v=kr&&(a==="stream"||a==="response");if(kr&&(u||v&&m)){const S={};["status","statusText","headers"].forEach(M=>{S[M]=y[M]});const g=R.toFiniteNumber(y.headers.get("content-length")),[x,O]=u&&gi(g,Me(yi(u),!0))||[];y=new Response(bi(y.body,wi,x,()=>{O&&O(),m&&m()}),S)}a=a||"text";let w=yield Pe[R.findKey(Pe,a)||"text"](y,e);return!v&&m&&m(),yield new Promise((S,g)=>{fs(S,g,{data:w,headers:ot.from(y.headers),status:y.status,statusText:y.statusText,config:e,request:d})})}catch(E){throw m&&m(),E&&E.name==="TypeError"&&/fetch/i.test(E.message)?Object.assign(new W("Network Error",W.ERR_NETWORK,e,d),{cause:E.cause||E}):W.from(E,E&&E.code,e,d)}})),Ir={http:td,xhr:jd,fetch:Pd};R.forEach(Ir,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(r){}Object.defineProperty(e,"adapterName",{value:t})}});const _i=e=>`- ${e}`,Ud=e=>R.isFunction(e)||e===null||e===!1,gs={getAdapter:e=>{e=R.isArray(e)?e:[e];const{length:t}=e;let r,n;const i={};for(let o=0;o<t;o++){r=e[o];let s;if(n=r,!Ud(r)&&(n=Ir[(s=String(r)).toLowerCase()],n===void 0))throw new W(`Unknown adapter '${s}'`);if(n)break;i[s||"#"+o]=n}if(!n){const o=Object.entries(i).map(([u,c])=>`adapter ${u} `+(c===!1?"is not supported by the environment":"is not available in the build"));let s=t?o.length>1?`since :
59
+ `+o.map(_i).join(`
60
+ `):" "+_i(o[0]):"as no adapter specified";throw new W("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return n},adapters:Ir};function mr(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new ee(null,e)}function Ei(e){return mr(e),e.headers=ot.from(e.headers),e.data=dr.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),gs.getAdapter(e.adapter||be.adapter)(e).then(function(t){return mr(e),t.data=dr.call(e,e.transformResponse,t),t.headers=ot.from(t.headers),t},function(t){return ls(t)||(mr(e),t&&t.response&&(t.response.data=dr.call(e,e.transformResponse,t.response),t.response.headers=ot.from(t.response.headers))),Promise.reject(t)})}const ys="1.8.1",Xe={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Xe[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Si={};Xe.transitional=function(e,t,r){function n(i,o){return"[Axios v"+ys+"] Transitional option '"+i+"'"+o+(r?". "+r:"")}return(i,o,s)=>{if(e===!1)throw new W(n(o," has been removed"+(t?" in "+t:"")),W.ERR_DEPRECATED);return t&&!Si[o]&&(Si[o]=!0,console.warn(n(o," has been deprecated since v"+t+" and will be removed in the near future"))),e?e(i,o,s):!0}};Xe.spelling=function(e){return(t,r)=>(console.warn(`${r} is likely a misspelling of ${e}`),!0)};function Ld(e,t,r){if(typeof e!="object")throw new W("options must be an object",W.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let i=n.length;for(;i-- >0;){const o=n[i],s=t[o];if(s){const u=e[o],c=u===void 0||s(u,o,e);if(c!==!0)throw new W("option "+o+" must be "+c,W.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new W("Unknown option "+o,W.ERR_BAD_OPTION)}}const Ne={assertOptions:Ld,validators:Xe},mt=Ne.validators;let kt=class{constructor(t){this.defaults=t,this.interceptors={request:new di,response:new di}}request(t,r){return U(this,null,function*(){try{return yield this._request(t,r)}catch(n){if(n instanceof Error){let i={};Error.captureStackTrace?Error.captureStackTrace(i):i=new Error;const o=i.stack?i.stack.replace(/^.+\n/,""):"";try{n.stack?o&&!String(n.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(n.stack+=`
61
+ `+o):n.stack=o}catch(s){}}throw n}})}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=It(this.defaults,r);const{transitional:n,paramsSerializer:i,headers:o}=r;n!==void 0&&Ne.assertOptions(n,{silentJSONParsing:mt.transitional(mt.boolean),forcedJSONParsing:mt.transitional(mt.boolean),clarifyTimeoutError:mt.transitional(mt.boolean)},!1),i!=null&&(R.isFunction(i)?r.paramsSerializer={serialize:i}:Ne.assertOptions(i,{encode:mt.function,serialize:mt.function},!0)),r.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?r.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:r.allowAbsoluteUrls=!0),Ne.assertOptions(r,{baseUrl:mt.spelling("baseURL"),withXsrfToken:mt.spelling("withXSRFToken")},!0),r.method=(r.method||this.defaults.method||"get").toLowerCase();let s=o&&R.merge(o.common,o[r.method]);o&&R.forEach(["delete","get","head","post","put","patch","common"],d=>{delete o[d]}),r.headers=ot.concat(s,o);const u=[];let c=!0;this.interceptors.request.forEach(function(d){typeof d.runWhen=="function"&&d.runWhen(r)===!1||(c=c&&d.synchronous,u.unshift(d.fulfilled,d.rejected))});const a=[];this.interceptors.response.forEach(function(d){a.push(d.fulfilled,d.rejected)});let l,f=0,h;if(!c){const d=[Ei.bind(this),void 0];for(d.unshift.apply(d,u),d.push.apply(d,a),h=d.length,l=Promise.resolve(r);f<h;)l=l.then(d[f++],d[f++]);return l}h=u.length;let p=r;for(f=0;f<h;){const d=u[f++],m=u[f++];try{p=d(p)}catch(b){m.call(this,b);break}}try{l=Ei.call(this,p)}catch(d){return Promise.reject(d)}for(f=0,h=a.length;f<h;)l=l.then(a[f++],a[f++]);return l}getUri(t){t=It(this.defaults,t);const r=hs(t.baseURL,t.url,t.allowAbsoluteUrls);return as(r,t.params,t.paramsSerializer)}};R.forEach(["delete","get","head","options"],function(e){kt.prototype[e]=function(t,r){return this.request(It(r||{},{method:e,url:t,data:(r||{}).data}))}});R.forEach(["post","put","patch"],function(e){function t(r){return function(n,i,o){return this.request(It(o||{},{method:e,headers:r?{"Content-Type":"multipart/form-data"}:{},url:n,data:i}))}}kt.prototype[e]=t(),kt.prototype[e+"Form"]=t(!0)});let Vd=class vs{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 o=n._listeners.length;for(;o-- >0;)n._listeners[o](i);n._listeners=null}),this.promise.then=i=>{let o;const s=new Promise(u=>{n.subscribe(u),o=u}).then(i);return s.cancel=function(){n.unsubscribe(o)},s},t(function(i,o,s){n.reason||(n.reason=new ee(i,o,s),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 vs(function(r){t=r}),cancel:t}}};function Hd(e){return function(t){return e.apply(null,t)}}function qd(e){return R.isObject(e)&&e.isAxiosError===!0}const Fr={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(Fr).forEach(([e,t])=>{Fr[t]=e});function bs(e){const t=new kt(e),r=Go(kt.prototype.request,t);return R.extend(r,kt.prototype,t,{allOwnKeys:!0}),R.extend(r,t,null,{allOwnKeys:!0}),r.create=function(n){return bs(It(e,n))},r}const Z=bs(be);Z.Axios=kt;Z.CanceledError=ee;Z.CancelToken=Vd;Z.isCancel=ls;Z.VERSION=ys;Z.toFormData=Ge;Z.AxiosError=W;Z.Cancel=Z.CanceledError;Z.all=function(e){return Promise.all(e)};Z.spread=Hd;Z.isAxiosError=qd;Z.mergeConfig=It;Z.AxiosHeaders=ot;Z.formToJSON=e=>cs(R.isHTMLForm(e)?new FormData(e):e);Z.getAdapter=gs.getAdapter;Z.HttpStatusCode=Fr;Z.default=Z;const{Axios:A0,AxiosError:j0,CanceledError:D0,isCancel:B0,CancelToken:C0,VERSION:N0,all:k0,Cancel:I0,isAxiosError:F0,spread:M0,toFormData:P0,AxiosHeaders:U0,HttpStatusCode:L0,formToJSON:V0,getAdapter:H0,mergeConfig:q0}=Z,zd={form:"application/x-www-form-urlencoded",json:"application/json",data:"multipart/form-data"},Wd=["put","post","patch"],xi="Local-Request-Id",Jd=100,Yd=300;let Kd=class{constructor(t={}){ut(this,"axios"),ut(this,"settings"),ut(this,"records",{}),ut(this,"isLoading",!1),ut(this,"stopSkipWarn"),ut(this,"showLoading"),ut(this,"showError"),this.settings=Object.assign({type:"form"},t.settings||{});const r=hr(t,["settings","query"]);this.axios=Z.create(ae({headers:{"Content-Type":"application/x-www-form-urlencoded"},timeout:2*60*1e3},r)),this.setupSkipWarn(this.settings),this.showLoading=Ao(this.openLoading.bind(this),Jd),this.showError=mh(this._showError.bind(this),Yd,{leading:!0,trailing:!1})}setConfig(t={}){this.settings=ae(this.settings,t.settings||{});const r=hr(t,["settings","query"]);this.axios.defaults=ae(this.axios.defaults,r),this.setupSkipWarn(this.settings)}cancel(t,r="请求已取消"){if(t){const n=this.records[t];if(!n)return;n.source.cancel(r)}else for(const n of Object.values(this.records))n.source.cancel(r)}createHeaders(t,r,n){const i=r.injectHeaders?typeof r.headers=="function"?r.headers(t,n,r):r.headers||{}:{},o=V(V({"Content-Type":zd[r.type||"form"]},n.headers),i);return r.skipWarn&&(o[xi]=t),o}isJsonType(t){return Object.entries(t).some(([r,n])=>r.toLowerCase()==="content-type"&&String(n).includes("application/json"))}toFormData(t,r="data"){if(t instanceof FormData||t instanceof URLSearchParams)return t;const n=r==="data"?new FormData:new URLSearchParams;return Object.entries(t).forEach(([i,o])=>{n.append(i,o)}),n}createSendData(t,r,n,i,o={}){const{type:s,skipWarn:u}=t,{name:c="skipWarn"}=u||{};let{data:a,params:l={},method:f="get"}=r;const h=i?{[c]:!0}:{};return Wd.includes(f.toLowerCase())?(a=Object.assign(a||{},h),a=s!=="json"||!this.isJsonType(n)?this.toFormData(a,s):a,l=V({},o)):s==="form"?l=V(V(V({},a||{}),o),h):(a&&(s!=="json"||!this.isJsonType(n))&&(a=this.toFormData(a,s)),l=V(V({},o),h)),{data:a,params:l}}createUrl(t){let{url:r,params:n}=t;if(r)try{return ep(r,{encode:encodeURIComponent})(n||{})}catch(i){console.warn("createUrl","pathToRegexpCompile error",r)}return r}openLoading(t){const{loading:r,showLoading:n}=t;r&&n&&Object.keys(this.records).length>0&&(this.isLoading=!0,n())}closeLoading(t){const{loading:r,hideLoading:n}=t;if(!r)return;this.isLoading=!1;const i=Object.keys(this.records);n&&i.length===0&&(this.isLoading=!1,n())}_showError(t,r){var o;const{failMessage:n,showError:i}=t;if(n&&i){const s=(o=r.response)==null?void 0:o.data,u=(s==null?void 0:s.message)||(s==null?void 0:s.msg)||(r==null?void 0:r.message)||(r==null?void 0:r.msg)||"未知错误";i(u,r)}}validResponse(t,r){const{validSuccess:n,validate:i}=t;return n&&i?!!i(r):!0}isSkipWarnResponse(t){return!!t.promise}send(t={},r=!1){const n=ae({},this.settings,t.settings||{}),i=t.query||{},o=hr(t,["settings","query"]),s=Kh(!1),u=Z.CancelToken.source();this.records[s]={settings:n,config:o,source:u};const c=this.createUrl(o),a=this.createHeaders(s,n,o),{data:l,params:f}=this.createSendData(n,o,a,r,i);return this.showLoading(n),new Promise((h,p)=>{this.axios(Q(V({cancelToken:u.token},o),{url:c,headers:a,data:l,params:f})).then(d=>{var m;return this.isSkipWarnResponse(d)?h(d.promise):this.validResponse(n,d)?h(n.originResponse?d:(m=d.data)==null?void 0:m.data):(this.showError(n,d.data),p(d.data))}).catch(d=>(this.showError(n,d),p(d))).finally(()=>{delete this.records[s],this.closeLoading(n)})})}useResponse(t,r){const{response:n}=this.axios.interceptors,i=n.use(t,r);return()=>n.eject(i)}useRequest(t,r){const{request:n}=this.axios.interceptors,i=n.use(t,r);return()=>n.eject(i)}setupSkipWarn(t){if(this.stopSkipWarn&&(this.stopSkipWarn(),this.stopSkipWarn=void 0),!t.skipWarn)return;const{code:r,executor:n,callback:i,complete:o}=t.skipWarn;this.stopSkipWarn=this.useResponse(s=>{const u=(s.config.headers||{})[xi],c=this.records[u];if(!c)return s;const{data:a}=s;if(!a||typeof a!="object")return s;if((a==null?void 0:a.code)===r){i&&i(s);const l=new Promise(n).then(()=>this.send(Q(V({},c.config),{settings:c.settings}),!0));l.catch(f=>f).finally(()=>{o&&o()}),s.promise=l}return s})}};function nn(e={}){const t=new Kd(e),r=t.send.bind(t),n=t.cancel.bind(t),i=t.setConfig.bind(t),o=t.useRequest.bind(t),s=t.useResponse.bind(t);return Object.assign(r,Q(V({},t),{instance:t,send:r,cancel:n,setConfig:i,useRequest:o,useResponse:s}))}const Mr=nn({settings:{injectHeaders:!0,loading:!0,originResponse:!0}}),Pr=typeof window<"u";function Gd(e){const t={};return e?(e.forEach((r,n)=>{t[n]=typeof r=="string"?decodeURIComponent(r):r}),t):{}}class ws{constructor(t={}){ut(this,"options",{type:"cache",expired:0,prefix:"__VTJ_"}),ut(this,"caches",{}),ut(this,"types"),this.types={local:Pr?window.localStorage:this.caches,session:Pr?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:o,prefix:s}=V(V({},this.options),n),u=Date.now(),c=s+t,a=this.types[i]||this.caches,l={value:r,timestamp:u,expired:o};a===this.caches?a[c]=l:a.setItem(c,JSON.stringify(l))}get(t,r={}){const{type:n,prefix:i}=V(V({},this.options),r),o=i+t,s=this.types[n]||this.caches;let u;if(s===this.caches)u=s[o];else{const f=s.getItem(o);f&&(u=JSON.parse(f))}if(!u)return null;const{value:c,timestamp:a,expired:l}=u;return l>0&&a+l<Date.now()?(this.remove(t,r),null):c}remove(t,r={}){const{type:n,prefix:i}=V(V({},this.options),r),o=this.types[n]||this.caches,s=i+t;o===this.caches?delete o[s]:o.removeItem(s)}clear(t={}){const{type:r}=V(V({},this.options),t),n=this.types[r]||this.caches;n===this.caches?this.caches={}:n.clear()}}new ws;function _s(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ke={exports:{}},Zd=ke.exports,Ti;function Xd(){return Ti||(Ti=1,function(e,t){(function(r,n){n(t,e)})(Zd,function(r,n){var i={timeout:5e3,jsonpCallback:"callback"};function o(){return"jsonp_"+Date.now()+"_"+Math.ceil(Math.random()*1e5)}function s(a){try{delete window[a]}catch(l){window[a]=void 0}}function u(a){var l=document.getElementById(a);l&&document.getElementsByTagName("head")[0].removeChild(l)}function c(a){var l=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],f=a,h=l.timeout||i.timeout,p=l.jsonpCallback||i.jsonpCallback,d=void 0;return new Promise(function(m,b){var E=l.jsonpCallbackFunction||o(),y=p+"_"+E;window[E]=function(w){m({ok:!0,json:function(){return Promise.resolve(w)}}),d&&clearTimeout(d),u(y),s(E)},f+=f.indexOf("?")===-1?"?":"&";var v=document.createElement("script");v.setAttribute("src",""+f+p+"="+E),l.charset&&v.setAttribute("charset",l.charset),l.nonce&&v.setAttribute("nonce",l.nonce),l.referrerPolicy&&v.setAttribute("referrerPolicy",l.referrerPolicy),l.crossorigin&&v.setAttribute("crossorigin","true"),v.id=y,document.getElementsByTagName("head")[0].appendChild(v),d=setTimeout(function(){b(new Error("JSONP request to "+a+" timed out")),s(E),u(y),window[E]=function(){s(E)}},h),v.onerror=function(){b(new Error("JSONP request to "+a+" failed")),s(E),u(y),d&&clearTimeout(d)}})}n.exports=c})}(ke,ke.exports)),ke.exports}var Qd=Xd();const tm=_s(Qd);function em(e){if(Pr){const{protocol:t,host:r,pathname:n}=location;return`${t}//${r}${e?n:""}`}else return null}function rm(e=""){const t=e.match(Ho);return t?t[0]:""}function Es(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 Ur(e,t,r){const n={};e=(e||location.search).replace(/^[^]*\?/,""),t=t||"&",r=r||"=";let i;const o=new RegExp("(?:^|\\"+t+")([^\\"+r+"\\"+t+"]+)(?:\\"+r+"([^\\"+t+"]*))?","g");for(;(i=o.exec(e))!==null;)i[1]!==e&&(n[decodeURIComponent(i[1])]=decodeURIComponent(i[2]||""));return n}function Ss(e,t){t=typeof t=="string"?Ur(t):t;const r=e.split("?")[0],n=Ur(e),i=Object.assign({},n,t),o=Es(i);return o?[r,o].join("?"):e}const Ie=Object.freeze(Object.defineProperty({__proto__:null,append:Ss,getCurrentHost:em,getHost:rm,parse:Ur,stringify:Es},Symbol.toStringTag,{value:"Module"}));function xs(r){return U(this,arguments,function*(e,t={}){const{query:n={}}=t;e.includes("${")&&(e=ph(e)(n||{}));const i=Ss(e,n);return yield(yield tm(i,t)).json()})}var gr,Ri;function nm(){if(Ri)return gr;Ri=1,gr=function(n,i,o){var s=document.head||document.getElementsByTagName("head")[0],u=document.createElement("script");typeof i=="function"&&(o=i,i={}),i=i||{},o=o||function(){},u.type=i.type||"text/javascript",u.charset=i.charset||"utf8",u.async="async"in i?!!i.async:!0,u.src=n,i.attrs&&e(u,i.attrs),i.text&&(u.text=""+i.text);var c="onload"in u?t:r;c(u,o),u.onload||t(u,o),s.appendChild(u)};function e(n,i){for(var o in i)n.setAttribute(o,i[o])}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 gr}var im=nm();const om=_s(im);function Oi(e,t={}){return new Promise((r,n)=>{const{library:i}=t;om(e,t,(o,s)=>{o?n(o):r(i?window[i]:void 0)})})}const $i={debug:-1,log:0,info:0,warn:1,error:2},sm=function(e,t,r,n){return function(...i){if(t&&$i[t]<=$i[e]&&console[e].apply&&(n==="*"||r.startsWith(n)))return console[e].apply(console,am(i,r))}};function am(e,t){return t!=="*"&&(typeof e[0]=="string"?e[0]=`[${t}] ${e[0]}`:e=["["+t+"]"].concat(e)),e}function um(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 cm={level:"warn",bizName:"*"};class lm{constructor(t){ut(this,"config"),ut(this,"options"),this.options=V(V({},cm),t);const r=typeof location<"u"?location:{},n=(/__(?:logConf|logLevel)__=([^#/&]*)/.exec(r.href)||[])[1];this.config=um(n,t)}_log(t){const{targetLevel:r,targetBizName:n}=this.config,{bizName:i}=this.options;return sm(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 fm(e){return new lm(e)}const Gt=fm({level:"log",bizName:"VTJ"});/*! js-cookie v3.0.5 | MIT */function Ae(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 hm={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 Lr(e,t){function r(i,o,s){if(!(typeof document>"u")){s=Ae({},t,s),typeof s.expires=="number"&&(s.expires=new Date(Date.now()+s.expires*864e5)),s.expires&&(s.expires=s.expires.toUTCString()),i=encodeURIComponent(i).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var u="";for(var c in s)s[c]&&(u+="; "+c,s[c]!==!0&&(u+="="+s[c].split(";")[0]));return document.cookie=i+"="+e.write(o,i)+u}}function n(i){if(!(typeof document>"u"||arguments.length&&!i)){for(var o=document.cookie?document.cookie.split("; "):[],s={},u=0;u<o.length;u++){var c=o[u].split("="),a=c.slice(1).join("=");try{var l=decodeURIComponent(c[0]);if(s[l]=e.read(a,l),i===l)break}catch(f){}}return i?s[i]:s}}return Object.create({set:r,get:n,remove:function(i,o){r(i,"",Ae({},o,{expires:-1}))},withAttributes:function(i){return Lr(this.converter,Ae({},this.attributes,i))},withConverter:function(i){return Lr(Ae({},this.converter,i),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}Lr(hm,{path:"/"});var nt=(e=>(e.Runtime="Runtime",e.Design="Design",e.Raw="Raw",e.VNode="VNode",e))(nt||{});const Ai=["$el","$emit","$nextTick","$parent","$root","$attrs","$slots","$watch","$props","$options","$forceUpdate"],pm=["vIf","vShow","vModel","vFor","vBind","vHtml"],dm={String,Number,Boolean,Array,Object,Function,Date},yr="VtjPage",vr="VtjHomepage",mm="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(","),gm="component,slot".split(",");function je(e,t){return e.map(r=>zh(r)||r.startsWith("/")?r:`${t}${r}`)}function on(e){return/\.css$/.test(e)}function sn(e){return/\.js$/.test(e)}function ym(e){return/\.json$/.test(e)}function vm(e,t=!1){return t&&e.endsWith(".prod.js")?e.replace(".prod.js",".js"):e}function bm(e,t,r=!1){const n=e.filter(h=>!!h.enabled),i=[],o=[],s=[],u=[],c={},a={},l=[],f={};return n.forEach(({urls:h,assetsUrl:p,library:d,assetsLibrary:m,localeLibrary:b})=>{h==null||h.forEach(E=>{sn(E)&&i.push(vm(E,r)),on(E)&&o.push(E)}),d&&(u.push(d),c[d]=je(h||[],t),b&&(a[d]=b)),p&&s.push(p),m&&l.push(m),d&&m&&(f[m]=d)}),{scripts:je(i,t),css:je(o,t),materials:je(s,t),libraryExports:u,materialExports:Xh(l),materialMapLibrary:f,libraryMap:c,libraryLocaleMap:a}}function wm(e,t){var o;const{name:r,parent:n,alias:i}=e;return n?(o=t[n])==null?void 0:o[i||r]:t[i||r]}function Ts(e){return Pt(e)?e:JSON.stringify(e)}function an(e,t,r){const n=e.CSSStyleSheet;if(n.prototype.replaceSync){const i=new n;i.id=t,i.replaceSync(r);const o=e.document,s=o.adoptedStyleSheets,u=Array.from(s).filter(c=>c.id!==t);o.adoptedStyleSheets=[...u,i]}else{const i=e.document;let o=i.getElementById(t);o?o.innerHTML=r:(o=i.createElement("style"),o.id=t,o.innerHTML=r,i.head.appendChild(o))}}function _m(e,t){return U(this,null,function*(){const r=yield window.fetch(t).then(n=>n.text()).catch(()=>"");r&&an(window,e,r)})}function Em(e,t=window){const r=t.document,n=t.document.head;for(const i of e)if(!r.getElementById(i)){const o=r.createElement("link");o.rel="stylesheet",o.id=i,o.href=i,n.appendChild(o)}}function Sm(n,i){return U(this,arguments,function*(e,t,r=window){const o=r.document,s=r.document.head;let u=r[t];return u?u.default||u:new Promise((c,a)=>{for(const l of e){const f=o.createElement("script");f.src=l,f.onload=()=>{u=r[t],u?c(u.default||u):a(null)},f.onerror=h=>{a(h)},s.appendChild(f)}})})}function xm(e){return fe(e)||fe(e==null?void 0:e.install)}function Tm(e){return gm.includes(e)}function Rm(e){return mm.includes(e)}function me(e=window){const t=window.Mock;if(t)return t;const r=e.Mock;if(r)return window.Mock=r,r}function ge(e,t,r=!1,n=!1){var i;try{const o=['"use strict";',"var __self = arguments[0];"];o.push("return ");let s=(e.value||"").trim();s=s.replace(/this(\W|$)/g,(c,a)=>`__self${a}`),s=o.join(`
62
+ `)+s;const u=`with(${r?"{}":"$scope || {}"}) { ${s} }`;return new Function("$scope",u)(t)}catch(o){if(Gt.error("parseExpression.error",o,e,(i=t==null?void 0:t.__self)!=null?i:t),n)throw o}}function Ue(e,t,r=!1,n=!1){var o;const i=ge(e,t,r,n);if(typeof i!="function"&&(Gt.error("parseFunction.error","not a function",e,(o=t==null?void 0:t.__self)!=null?o:t),n))throw new Error(`"${e.value}" not a function`);return i}function ht(e){return e&&e.type==="JSExpression"}function Qe(e){return typeof e=="object"&&e&&e.type==="JSFunction"}function Om(e={}){const{notify:t,loading:r,settings:n={}}=e;let i=null;return{request:nn({settings:V({type:"form",validSuccess:!0,originResponse:!1,loading:!0,validate:o=>{var s,u;return((s=o.data)==null?void 0:s.code)===0||!!((u=o.data)!=null&&u.success)},failMessage:!0,showError:o=>{t&&t(o||"未知错误")},showLoading:()=>{i&&i.close(),r&&(i=r())},hideLoading:()=>{i&&(i.close(),i=null)}},n)}),jsonp:xs,notify:t,loading:r}}function $m(e,t){const{jsonp:r,request:n}=t;if(e.method==="jsonp")return(i={})=>r(e.url,Q(V({},e.jsonpOptions),{query:i}));{const i=e.headers?ge(e.headers,{},!0):void 0,o={url:e.url,method:e.method,settings:Q(V({},e.settings),{headers:i})};return(s,u)=>(delete o.data,n.send(ae(o,u||{},{data:s})))}}function Am(e,t){const{metaQuery:r}=t;if(!r)return;const{code:n,queryCode:i}=e;return(o,s)=>{if(!r){console.warn("adapter.metaQuery is not defined!");return}return r(n,i,o,s)}}function jm(e=[],t=[],r){const n={};for(const i of e)n[i.id]=$m(i,r);for(const i of t)n[i.id]=Am(i,r);return n}function Dm(){return U(this,arguments,function*(e=[],t=window){const r=me(t);r&&(Rs(t),e.forEach(n=>Cm(r,n)))})}function Bm(e,t=window){const r=Qe(e.mockTemplate)&&e.mockTemplate.value?Ue(e.mockTemplate,{},!0):void 0,n=me(t);return(...i)=>U(this,null,function*(){let o={};if(r)try{o=yield r.apply(r,i)}catch(s){Gt.warn("模拟数据模版异常",s)}return n==null?void 0:n.mock(o)})}function Cm(e,t){if(!t.mock)return;const{url:r,mockTemplate:n}=t;if(r&&n){const i=Qr(`${r}(.*)`),o=np(r,{decode:decodeURIComponent}),s=ge(n,{},!0);e.mock(i,u=>{var f;const c=Ie.parse(u.url)||{},a=u.body instanceof FormData?Gd(u.body):u.body,l=(f=o(u.url))==null?void 0:f.params;return Object.assign(u,{data:a,params:c,query:l}),e.mock(s(u))})}}function Rs(e=window){const t=me(e);t&&(t._mocked={})}class Nm{constructor(t){z(this,"__id",null);z(this,"__mode");z(this,"__instance",null);z(this,"__contextRefs",{});z(this,"__refs",{});z(this,"context",{});z(this,"state",{});z(this,"props",{});z(this,"$props",{});z(this,"$refs",{});z(this,"$el",null);z(this,"$emit",null);z(this,"$nextTick",null);z(this,"$parent",null);z(this,"$root",null);z(this,"$attrs",null);z(this,"$slots",null);z(this,"$watch",null);z(this,"$options",null);z(this,"$forceUpdate",null);z(this,"$components",{});z(this,"$libs",{});z(this,"$apis",{});z(this,"__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=Ve){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&&Ai.forEach(t=>{var r;this[t]=(r=this.__instance)==null?void 0:r[t]})}__cleanup(){Ai.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===nt.Runtime){const{id:n,type:i}=t,o=n&&(r=this.__transform[n])!=null?r:t.value;return Ue({type:i,value:o},this)}else return Ue(t,this)}__parseExpression(t){var r;if(t)if(this.__mode===nt.Runtime){const{id:n,type:i}=t,o=n&&(r=this.__transform[n])!=null?r:t.value;return ge({type:i,value:o},this)}else return ge(t,this)}__ref(t=null,r){if(this.__mode!==nt.VNode)return t&&t!==this.__id&&(this.__contextRefs[t]=this),n=>U(this,null,function*(){var o,s;yield Gh(0);let i=(n==null?void 0:n.$vtjEl)||(n==null?void 0:n.$el)||((s=(o=n==null?void 0:n._)==null?void 0:o.vnode)==null?void 0:s.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,nt.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 o=new Set([].concat(i,n));return Array.from(o)}else return n}__clone(t={}){const r=V(V({},this.context),t),n=Q(V({},r),{context:r});return n.context.__proto__=this.context,n.__proto__=this,n}}function Vr(e){var f,h;const{Vue:t=Ve,mode:r=nt.Runtime,components:n={},libs:i={},apis:o={},loader:s}=e,u=t.computed(()=>e.dsl),c={$components:n,$libs:i,$apis:o},a=new Nm({mode:r,dsl:u.value,attrs:c}),l=t.defineComponent(V({name:u.value.name,props:V({},Im((f=u.value.props)!=null?f:[],a)),setup(p){var v,w,S,g;a.$props=p,a.props=p,u.value.id&&an(e.window||window,u.value.id,u.value.css||""),a.state=Fm(t,(v=u.value.state)!=null?v:{},a);const d=Mm(t,(w=u.value.computed)!=null?w:{},a),m=Pm((S=u.value.methods)!=null?S:{},a),b=Um(t,u.value.inject,a),E=Lm(u.value.dataSources||{},a),y=V(V(V(V({},b),d),m),E);return a.setup(y,t),Vm(t,(g=u.value.watch)!=null?g:[],a),{vtj:a}},emits:km(u.value.emits),expose:["vtj"],render(){if(!u.value.nodes)return null;const p=u.value.nodes||[];return p.length===1?Le(p[0],a,t,s):p.map(d=>Le(d,a,t,s))}},Hm((h=u.value.lifeCycles)!=null?h:{},a)));return{renderer:t.markRaw(l),context:a}}function km(e=[]){return e.map(t=>Pt(t)?t:t.name)}function Im(e=[],t){const r=n=>n?(Array.isArray(n)?n:[n]).map(i=>dm[i]):void 0;return e.map(n=>Pt(n)?{name:n}:{name:n.name,type:n.type,required:n.required,default:ht(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 Fm(e,t,r){return e.reactive(Object.keys(t||{}).reduce((n,i)=>{let o=t[i];return ht(o)?o=r.__parseExpression(o):Qe(o)&&(o=r.__parseFunction(o)),n[i]=o,n},{}))}function Mm(e,t,r){return Object.entries(t!=null?t:{}).reduce((n,[i,o])=>(n[i]=e.computed(r.__parseFunction(o)),n),{})}function Pm(e,t){return Object.entries(e!=null?e:{}).reduce((r,[n,i])=>(r[n]=t.__parseFunction(i),r),{})}function Um(e,t=[],r){return t.reduce((n,i)=>{var a;const{name:o,from:s}=i||{};i.default;const u=ht(s)?r.__parseExpression(s)||o:s!=null?s:o,c=ht(i.default)?r.__parseExpression(i.default):(a=i.default)!=null?a:null;return n[o]=e.inject(u,c),n},{})}function Lm(e,t){return Object.keys(e).reduce((r,n)=>{const i=e[n];if(i.type==="mock")r[n]=Bm(i);else if(i.ref){const o=t.$apis[i.ref],s=Qe(i.transform)?i.transform.value?t.__parseFunction(i.transform):void 0:i.transform;r[n]=(...u)=>U(this,null,function*(){const c=yield o.apply(t,u);return s?s(c):c})}return r},{})}function Vm(e,t=[],r){t.forEach(n=>{e.watch(r.__parseExpression(n.source),r.__parseFunction(n.handler),{deep:n.deep,immediate:n.immediate})})}function Hm(e,t){return Object.entries(e!=null?e:{}).reduce((r,[n,i])=>(r[n]=t.__parseFunction(i),r),{})}let br=[],zt={};const qm=e=>e;function Os(r){return U(this,arguments,function*(e,t=window){const{urls:n=[],library:i}=e,o=n.filter(u=>sn(u));if(o.length===0||!i)return null;const s=n.filter(u=>on(u));return s.length&&Em(s,t),yield Sm(o,i,t).catch(u=>(console.warn("loadScriptUrl error",o,i,u),null))})}function Hr(e){const{getDsl:t,getDslByUrl:r,options:n}=e;return n.window&&(br.forEach(i=>{delete n.window[i]}),br=[]),(i,o,s=Ve)=>{if(!o||typeof o=="string")return i;if(o.type==="Schema"&&o.id){let u=zt[o.id];return u||(u=zt[o.id]=s.defineAsyncComponent(()=>U(this,null,function*(){const c=yield t(o.id);return c&&(c.name=i),c?Vr(Q(V({},n),{Vue:s,dsl:c,mode:nt.Runtime,loader:Hr(e)})).renderer:null})),u)}if(o.type==="UrlSchema"&&o.url){let u=zt[o.url];return u||(u=zt[o.url]=s.defineAsyncComponent(()=>U(this,null,function*(){const c=yield r(o.url);return c&&(c.name=i),c?Vr(Q(V({},n),{Vue:s,dsl:c,mode:nt.Runtime,loader:Hr(e)})).renderer:null})),u)}if(o.type==="Plugin"){let u=o.library?zt[o.library]:null;return u||(o.library&&br.push(o.library),u=zt[o.library||Symbol()]=s.defineAsyncComponent(()=>U(this,null,function*(){return(yield Os(o,n.window))||(console.warn("getPlugin result is null",o),null)})),u)}return i}}function Le(e,t,r=Ve,n=qm){var m;if(!e||!e.name||e.invisible)return null;const i=(m=r.getCurrentInstance())==null?void 0:m.appContext,{id:o=null,directives:s=[]}=e,{vIf:u,vFor:c,vShow:a,vModels:l,vBind:f,vHtml:h,others:p}=Wm(s);if(u&&!Jm(u,t))return null;const d=b=>{var O,M,_,T;const E=b.$components,y=(()=>{var D,I,j,C;if(e.name==="component")return Ym(b,(D=e.props)==null?void 0:D.is);if(e.name==="slot")return e.name;const F=n(e.name,e.from,r);return Pt(F)?Tm(F)||Rm(F)?F:(C=(j=E[F])!=null?j:(I=i==null?void 0:i.app)==null?void 0:I.component(F))!=null?C:F:F})(),v=Km(o,(O=e.props)!=null?O:{},b),w=Gm(r,(M=e.events)!=null?M:{},b);if(e.name==="slot")return Zm(r,e,v,b,n);f&&Object.assign(v,b.__parseExpression(f.value)),a&&(v.style=Object.assign((_=v.style)!=null?_:{},Qm(a,b))),h&&Object.assign(v,tg(h,b)),l.forEach(F=>{Object.assign(v,eg(r,F,b))});const S=rg(r,(T=e.children)!=null?T:[],b,n,e);let g=r.createVNode(y,V(V({},v),w),S);const x=i?zm(i,p,b):[];return x.length&&(g=r.withDirectives(g,x)),g};return c?og(c,d,t):d(t)}function zm(e,t,r){const n=e.app;return t.map(i=>{const o=typeof i.name=="string"?n.directive(i.name):r.__parseExpression(i.name);if(!o)return null;const s=[o];return i.value&&s.push(r.__parseExpression(i.value)),i.arg&&s.push(i.arg),i.modifiers&&s.push(i.modifiers),s}).filter(i=>!!i)}function Wm(e=[]){const t=e.find(c=>Dt(c.name)==="vIf"),r=e.find(c=>Dt(c.name)==="vFor"),n=e.find(c=>Dt(c.name)==="vShow"),i=e.find(c=>Dt(c.name)==="vBind"),o=e.find(c=>Dt(c.name)==="vHtml"),s=e.filter(c=>Dt(c.name)==="vModel"),u=e.filter(c=>!pm.includes(Dt(c.name)));return{vIf:t,vFor:r,vShow:n,vModels:s,vBind:i,others:u,vHtml:o}}function Jm(e,t){return!!t.__parseExpression(e.value)}function Ym(e,t){return t?ht(t)?e.__parseExpression(t):t:"div"}function Km(e,t,r){const n=qr(t,r);return n.ref=r.__ref(e,n.ref),n}function qr(e,t){return ht(e)?t.__parseExpression(e):Qe(e)?t.__parseFunction(e):Array.isArray(e)?e.map(r=>qr(r,t)):typeof e=="object"?Object.keys(e||{}).reduce((r,n)=>{let i=e[n];return r[n]=qr(i,t),r},{}):e}function Gm(e,t,r){const n=["passive","capture","once"],i={capture:"Capture",once:"Once",passive:"OnceCapture"};return Object.keys(t||{}).reduce((o,s)=>{const u=t[s],c=$s(u.modifiers),a=c.find(h=>n.includes(h)),l="on"+ho(s)+(a&&i[a]||""),f=r.__parseFunction(u.handler);return f&&(o[l]=e.withModifiers(f,c)),o},{})}function $s(e={},t=!1){const r=Object.keys(e);return t?r.map(n=>"."+n):r}function Zm(e,t,r,n,i){var c;const{children:o}=t,s=Xm(t,n),u=(c=n.$slots)==null?void 0:c[s.name];return u?u(r):o?Pt(o)?e.createTextVNode(o):ht(o)?e.createTextVNode(Ts(n.__parseExpression(o))):Array.isArray(o)?o.map(a=>Le(a,n,e,i)):null:null}function Xm(e,t){const{props:r}=e,n=(r==null?void 0:r.name)||"default";return{name:ht(n)?t.__parseExpression(n):n,params:[]}}function Qm(e,t){return t.__parseExpression(e.value)?{}:{display:"none"}}function tg(e,t){return{innerHTML:t.__parseExpression(e.value)||""}}function eg(e,t,r){var u;const n={type:"JSFunction",value:(u=t.value)!=null&&u.value?`(v) => {
63
+ ${t.value.value} = v;
64
+ }`:"(v) => {}"},i=r.__parseFunction(n),o=$s(ht(t.modifiers)?r.__parseExpression(t.modifiers):t.modifiers),s=ht(t.arg)?r.__parseExpression(t.arg):t.arg||"modelValue";return{[s]:r.__parseExpression(t.value),[`onUpdate:${s}`]:o.length&&i?e.withModifiers(i,o):i}}function rg(e,t,r,n,i){if(!t)return null;if(Pt(t))return{default:()=>t};if(ht(t))return{default:()=>Ts(r.__parseExpression(t))};if(Array.isArray(t)&&t.length>0){const o=ng(t),s=u=>!u||!i?{}:i!=null&&i.id&&Object.keys(u).length?{[`scope_${i.id}`]:u}:{};return Object.entries(o).reduce((u,[c,{nodes:a,params:l}])=>(u[c]=f=>{const h=l.length?Qh(f!=null?f:{},l):s(f);return a.map(p=>Le(p,r.__clone(h),e,n))},u),{})}return null}function ng(e){const t={default:{params:[],nodes:[]}};for(const r of e){const n=ig(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 ig(e="default"){return Pt(e)?{name:e,params:[]}:V({params:[]},e)}function og(e,t,r){const{value:n,iterator:i}=e,{item:o="item",index:s="index"}=i||{};let u=r.__parseExpression(n)||[];return Number.isInteger(u)&&(u=new Array(u).fill(!0).map((c,a)=>a+1)),Array.isArray(u)?u.map((c,a)=>t(r.__clone({[o]:c,[s]:a}))):(console.warn("[vForRender]:",`${n==null?void 0:n.value} is not a Arrary`),[])}function As(e){return zs()?(Ws(e),!0):!1}const js=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const sg=e=>e!=null,ag=()=>{};function ug(e){return Array.isArray(e)?e:[e]}function cg(...e){if(e.length!==1)return Vs(...e);const t=e[0];return typeof t=="function"?Hs(qs(()=>({get:t,set:ag}))):Ci(t)}const lg=js?window:void 0,fg=js?window.document:void 0;function hg(e){var t;const r=Jr(e);return(t=r==null?void 0:r.$el)!=null?t:r}function pg(){const e=Js(!1),t=Ks();return t&&Ys(()=>{e.value=!0},t),e}function dg(e){const t=pg();return ki(()=>(t.value,!!e()))}function mg(e,t,r={}){const h=r,{window:n=lg}=h,i=ln(h,["window"]);let o;const s=dg(()=>n&&"MutationObserver"in n),u=()=>{o&&(o.disconnect(),o=void 0)},c=ki(()=>{const p=Jr(e),d=ug(p).map(hg).filter(sg);return new Set(d)}),a=Ni(()=>c.value,p=>{u(),s.value&&p.size&&(o=new MutationObserver(t),p.forEach(d=>o.observe(d,i)))},{immediate:!0,flush:"post"}),l=()=>o==null?void 0:o.takeRecords(),f=()=>{a(),u()};return As(f),{isSupported:s,stop:f,takeRecords:l}}function gg(e=null,t={}){var r,n,i;const{document:o=fg,restoreOnUnmount:s=f=>f}=t,u=(r=o==null?void 0:o.title)!=null?r:"",c=cg((n=e!=null?e:o==null?void 0:o.title)!=null?n:null),a=!!(e&&typeof e=="function");function l(f){if(!("titleTemplate"in t))return f;const h=t.titleTemplate||"%s";return typeof h=="function"?h(f):Jr(h).replace(/%s/g,f)}return Ni(c,(f,h)=>{f!==h&&o&&(o.title=l(f!=null?f:""))},{immediate:!0}),t.observe&&!t.titleTemplate&&o&&!a&&mg((i=o.head)==null?void 0:i.querySelector("title"),()=>{o&&o.title!==c.value&&(c.value=l(o.title))},{childList:!0}),As(()=>{if(s){const f=s(u,c.value||"");f!=null&&o&&(o.title=f)}}),c}const ji=Wr({name:"VtjPageContainer",setup(){return U(this,null,function*(){const e=Og(),t=Gs(),r=t.params.id,n=r?e.getPage(r):e.getHomepage(),i=n?yield e.getRenderComponent(n.id):null,o=Ci(Symbol());return n&&(Object.assign(t.meta,n.meta||{},{cache:n.cache}),gg(n.title||"VTJ")),{provider:e,component:i,file:n,query:t.query,meta:t.meta,sid:o,route:t}})},render(){const{component:e,query:t,sid:r}=this;return e?wr(e,Q(V({},t),{key:r})):wr("div","页面不存在")},activated(){this.meta.cache===!1&&(this.sid=Symbol())}}),yg={"data-l-h6o7ki7":"",class:"vtj-startup__wrapper"},vg={"data-l-h6o7ki7":"",class:"vtj-startup"},bg={"data-l-h6o7ki7":"",class:"vtj-startup__name"},wg={"data-l-h6o7ki7":"",class:"span"},_g={"data-l-h6o7ki7":"",class:"vtj-startup__tagline"},Eg={"data-l-h6o7ki7":"",class:"vtj-startup__actions"},Sg=Wr({__name:"Startup",props:{name:{default:"VTJ.PRO"},tagline:{default:"基于 Vue3 + TypeScript 快速打造高生产力的低代码研发平台"},actionText:{default:"开始设计"},link:{}},setup(e){((n,i)=>{let o=document.getElementById("h6o7ki7");o||(o=document.createElement("style"),o.id="h6o7ki7",document.head.appendChild(o),o.innerHTML=i)})("h6o7ki7",`
65
+ .vtj-startup[data-l-h6o7ki7]{
66
+ padding: 20px;
67
+ border-radius: 4px;
68
+ box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
69
+ box-sizing: border-box;
70
+ grid-row: 1;
71
+ width: 100%;
72
+ max-width: 800px;
73
+ margin: 0 10px;
74
+ }
75
+ .vtj-startup__wrapper[data-l-h6o7ki7]{
76
+ height: 100%;
77
+ display: flex;
78
+ justify-content: center;
79
+ align-items: center;
80
+ width: 100%;
81
+ }
82
+ .vtj-startup__name[data-l-h6o7ki7]{
83
+ margin: 0;
84
+ padding: 0;
85
+ max-width: 576px;
86
+ line-height: 56px;
87
+ font-size: 48px;
88
+ font-weight: 700;
89
+ white-space: pre-wrap;
90
+ }
91
+ .vtj-startup__name .span[data-l-h6o7ki7]{
92
+ background: -webkit-linear-gradient(120deg, #bd34fe 30%, #41d1ff);
93
+ -webkit-background-clip: text;
94
+ background-clip: text;
95
+ -webkit-text-fill-color: transparent;
96
+ }
97
+ .vtj-startup__tagline[data-l-h6o7ki7]{
98
+ padding-top: 20px;
99
+ line-height: 32px;
100
+ font-size: 20px;
101
+ font-weight: 500;
102
+ white-space: pre-wrap;
103
+ color: rgba(60, 60, 67, 0.78);
104
+ }
105
+ .vtj-startup__actions[data-l-h6o7ki7]{
106
+ display: flex;
107
+ flex-wrap: wrap;
108
+ justify-content: space-between;
109
+ align-items: center;
110
+ border-top: 1px solid rgba(60, 60, 67, 0.08);
111
+ padding: 20px 0 0 0;
112
+ margin-top: 20px;
113
+ }
114
+ .vtj-startup__actions .span[data-l-h6o7ki7]{
115
+ color: #e6a23c;
116
+ }@media (max-width: 768px){
117
+
118
+ .vtj-startup__actions .span[data-l-h6o7ki7]{
119
+ display: block;
120
+ text-align: center;
121
+ width: 100%;
122
+ }
123
+ }
124
+ .vtj-startup__actions .button[data-l-h6o7ki7]{
125
+ height: 40px;
126
+ padding: 0 20px;
127
+ border-radius: 20px;
128
+ background-color: #409eff;
129
+ border: 1px solid transparent;
130
+ color: #fff;
131
+ font-weight: 600;
132
+ cursor: pointer;
133
+ display: inline-block;
134
+ line-height: 40px;
135
+ text-align: center;
136
+ }@media (max-width: 768px){
137
+
138
+ .vtj-startup__actions .button[data-l-h6o7ki7]{
139
+ width: 100%;
140
+ margin-top: 20px;
141
+ }
142
+ }
143
+ .vtj-startup__actions .button[data-l-h6o7ki7]:hover{
144
+ opacity: 0.7;
145
+ }`);const t=e,r=()=>{if(typeof window<"u"){if(t.link){typeof t.link=="function"?t.link():window.location.href=t.link;return}let n=(window.__VTJ_LINK__||{}).href||window.location.pathname+"__vtj__/#/";window.location.href=n}};return(n,i)=>(Ls(),Us("div",yg,[jt("div",vg,[jt("h1",bg,[jt("span",wg,ir(t.name),1)]),jt("div",_g,ir(t.tagline),1),jt("div",Eg,[i[0]||(i[0]=jt("span",{"data-l-h6o7ki7":"",class:"span"},"设置项目主页后,将替换此页面显示",-1)),jt("span",{"data-l-h6o7ki7":"",class:"button",onClick:r},ir(t.actionText),1)])])]))}}),xg=Wr({name:"VtjStartupContainer",render(){return wr(Sg)}}),Ds=Symbol("Provider");class Tg extends hp{constructor(r){super();z(this,"mode");z(this,"globals",{});z(this,"modules",{});z(this,"adapter",{request:Mr,jsonp:xs});z(this,"apis",{});z(this,"dependencies",{});z(this,"materials",{});z(this,"library",{});z(this,"service");z(this,"project",null);z(this,"components",{});z(this,"nodeEnv","development");z(this,"router",null);z(this,"materialPath","./");z(this,"urlDslCaches",{});this.options=r;const{service:n,mode:i=nt.Raw,dependencies:o,materials:s,project:u={},adapter:c={},globals:a={},modules:l={},router:f=null,materialPath:h="./",nodeEnv:p="development"}=r;this.mode=i,this.modules=l,this.service=n,this.router=f,this.materialPath=h,this.nodeEnv=p,o&&(this.dependencies=o),s&&(this.materials=s),Object.assign(this.globals,a),Object.assign(this.adapter,c);const{access:d,request:m}=this.adapter;d&&d.connect({mode:i,router:f,request:m}),u&&i!==nt.Design?this.load(u):this.project=u}createMock(r){return(...n)=>U(this,null,function*(){var o;let i={};if(r)try{i=yield r.apply(r,n)}catch(s){Gt.warn("模拟数据模版异常",s)}return(o=me())==null?void 0:o.mock(i)})}load(r){return U(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:o=[]}=this.project,s=window;s.CKEDITOR_VERSION=void 0,this.mode===nt.Raw?yield this.loadDependencies(s):yield this.loadAssets(s),this.initMock(s),this.apis=jm(i,o,this.adapter),Rs(s),Dm(i,s),r.platform!=="uniapp"&&this.initRouter(),this.triggerReady()})}initMock(r){const n=me(r);n&&n.setup({timeout:"50-500"})}loadDependencies(r){return U(this,null,function*(){const n=Object.entries(this.dependencies);for(const[i,o]of n)r[i]||(r[i]=this.library[i]=yield o())})}loadAssets(r){return U(this,null,function*(){const{dependencies:n=[]}=this.project,{dependencies:i,library:o,components:s,materialPath:u,nodeEnv:c}=this,{libraryExports:a,libraryMap:l,materials:f,materialExports:h,materialMapLibrary:p}=bm(n,u,c==="development");for(const d of a){const m=i[d],b=r[d];if(b)o[d]=b;else if(m)r[d]=o[d]=yield m();else{const E=l[d]||[];for(const y of E)on(y)&&(yield _m(d,Ie.append(y,{v:nr}))),sn(y)&&(yield Oi(Ie.append(y,{v:nr})));o[d]=r[d]}}if(c==="development"){for(const m of f)yield Oi(Ie.append(m,{v:nr}));const d=this.materials||{};for(const m of h){const b=r[p[m]],E=fp[m];if(E)b&&E.forEach(y=>{s[y]=b[y]});else{const y=d[m]?(yield d[m]()).default:r[m];y&&b&&(y.components||[]).forEach(v=>{s[v.name]=wm(v,b)})}}}})}initRouter(){const{router:r,project:n,options:i,adapter:o}=this;if(!r)return;const s=(n==null?void 0:n.platform)==="uniapp"?"pages":"page",{routeAppendTo:u,pageRouteName:c=s,routeMeta:a}=i,l=u?"":"/",f={path:`${l}${c}/:id`,name:yr,component:ji},h={path:l,name:vr,component:n!=null&&n.homepage?ji:o.startupComponent||xg,meta:a};r.hasRoute(yr)&&r.removeRoute(yr),r.hasRoute(vr)&&r.removeRoute(vr),u?(r.addRoute(u,f),r.addRoute(u,h)):(r.addRoute(f),r.addRoute(h))}install(r){const n=r.config.globalProperties.installed||{};for(const[i,o]of Object.entries(this.library))!n[i]&&xm(o)&&(r.use(o),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===nt.Design&&(r.config.errorHandler=(i,o,s)=>{const u=o==null?void 0:o.$options.name,c=typeof i=="string"?i:(i==null?void 0:i.message)||(i==null?void 0:i.msg)||"未知错误",a=`[ ${u} ] ${c} ${s}`;console.error("[VTJ Error]:",{err:i,instance:o,info:s},i==null?void 0:i.stack),this.adapter.notify&&this.adapter.notify(a,"组件渲染错误","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=(o,s=[])=>{for(const u of s){if(u.id===o)return u;if(u.children&&u.children.length){const c=i(o,u.children);if(c)return c}}};return i(r,n)||null}getHomepage(){const{homepage:r}=this.project||{};return r?this.getPage(r):null}getDsl(r){return U(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 U(this,null,function*(){return this.urlDslCaches[r]||(this.urlDslCaches[r]=this.adapter.request.send({url:r,method:"get",settings:{validSuccess:!1,originResponse:!0}}).then(i=>i.data).catch(()=>null))})}createDslRenderer(r,n={}){const{library:i,components:o,mode:s,apis:u}=this,c=V({mode:s,Vue:i.Vue,components:o,libs:i,apis:u,window},n),a=Hr({getDsl:l=>U(this,null,function*(){return(yield this.getDsl(l))||null}),getDslByUrl:l=>U(this,null,function*(){return(yield this.getDslByUrl(l))||null}),options:c});return Vr(Q(V({},c),{dsl:r,loader:a}))}getRenderComponent(r,n){return U(this,null,function*(){var c;const i=this.getFile(r);if(!i)return Gt.warn(`Can not find file: ${r}`),null;n&&n(i);const o=`.vtj/vue/${r}.vue`,s=this.modules[o]||this.modules[`/src/pages/${r}.vue`];if(s)return(c=yield s())==null?void 0:c.default;const u=yield this.getDsl(i.id);return u?this.createDslRenderer(u).renderer:(Gt.warn(`Can not find dsl: ${r}`),null)})}defineUrlSchemaComponent(r,n){return hn(()=>U(this,null,function*(){const i=yield this.getDslByUrl(r);return i?(i.name=n||i.name,this.createDslRenderer(i).renderer):null}))}definePluginComponent(r){return hn(()=>U(this,null,function*(){return yield Os(r,window)}))}}function Rg(e){const t=new Tg(e);return{provider:t,onReady:r=>t.ready(r)}}function Og(e={}){const t=Ps(Ds,null);if(!t)throw new Error("Can not find provider");if(t.nodeEnv==="development"){const{id:r,version:n}=e;r&&n&&U(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 Bs={type:"json",validSuccess:!0,originResponse:!1,failMessage:!0,validate:e=>{var t;return((t=e.data)==null?void 0:t.code)===0}},$g=(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:Bs}),Ag=(e,t="/__vtj__/api/uploader.json")=>(r,n)=>U(void 0,null,function*(){return yield e.send({url:t,method:"post",data:{files:r,projectId:n},settings:Q(V({},Bs),{type:"data"})}).then(i=>i&&i[0]?i[0]:null).catch(()=>null)});function jg(e){return nn({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 Dg{constructor(t=Mr){z(this,"api");z(this,"pluginCaches",{});z(this,"uploader");this.api=$g(t),this.uploader=Ag(t)}getExtension(){return U(this,null,function*(){console.log("BaseService.getExtension")})}init(t){return U(this,null,function*(){return console.log("BaseService.init",t),{}})}saveProject(t,r){return U(this,null,function*(){return!!(yield this.api("saveProject",t,{type:r}).catch(()=>!1))})}saveMaterials(t,r){return U(this,null,function*(){return console.log("BaseService.saveMaterials",t,r),!1})}saveFile(t){return U(this,null,function*(){return console.log("BaseService.saveFile",t),!1})}getFile(t){return U(this,null,function*(){return console.log("BaseService.getFile",t),{}})}removeFile(t){return U(this,null,function*(){return console.log("BaseService.removeFile",t),!1})}saveHistory(t){return U(this,null,function*(){return console.log("BaseService.saveHistory",t),!1})}removeHistory(t){return U(this,null,function*(){return console.log("BaseService.removeHistory",t),!1})}getHistory(t){return U(this,null,function*(){return console.log("BaseService.getHistory",t),{}})}getHistoryItem(t,r){return U(this,null,function*(){return console.log("BaseService.getHistoryItem",t,r),{}})}saveHistoryItem(t,r){return U(this,null,function*(){return console.log("BaseService.saveHistoryItem",t,r),!1})}removeHistoryItem(t,r){return U(this,null,function*(){return console.log("BaseService.removeHistoryItem",t,r),!1})}publish(t){return U(this,null,function*(){return!!(yield this.api("publish",t).catch(()=>!1))})}publishFile(t,r){return U(this,null,function*(){return!!(yield this.api("publishFile",{project:t,file:r}).catch(()=>!1))})}genVueContent(t,r){return U(this,null,function*(){return yield this.api("genVueContent",{project:t,dsl:r}).catch(()=>"")})}createRawPage(t){return U(this,null,function*(){return yield this.api("createRawPage",t).catch(()=>"")})}removeRawPage(t){return U(this,null,function*(){return yield this.api("removeRawPage",t).catch(()=>"")})}uploadStaticFile(t,r){return U(this,null,function*(){return yield this.uploader(t,r).catch(()=>null)})}getStaticFiles(t){return U(this,null,function*(){return yield this.api("getStaticFiles",t).catch(()=>[])})}removeStaticFile(t,r){return U(this,null,function*(){return yield this.api("removeStaticFile",{name:t,projectId:r}).catch(()=>"")})}clearStaticFiles(t){return U(this,null,function*(){return yield this.api("clearStaticFiles",t).catch(()=>"")})}getPluginMaterial(t){return U(this,null,function*(){const{urls:r=[]}=t,n=r.filter(o=>ym(o))[0];return n?this.pluginCaches[n]||(this.pluginCaches[n]=Mr.send({url:n,method:"get",settings:{validSuccess:!1,originResponse:!0}}).then(o=>o.data).catch(()=>null)):null})}genSource(t){return U(this,null,function*(){return console.log("BaseService.genSource",t),""})}}new ws({type:"local",expired:0,prefix:"__VTJ_"});class Bg extends Dg{constructor(){super(...arguments);z(this,"getFileCaches",{})}getExtension(){return U(this,null,function*(){return yield this.api("getExtension",{}).catch(()=>{})})}init(r){return U(this,null,function*(){return(yield this.api("init",r).catch(()=>null))||{}})}saveProject(r,n){return U(this,null,function*(){return!!(yield this.api("saveProject",r,{type:n}).catch(()=>!1))})}saveMaterials(r,n){return U(this,null,function*(){return!!(yield this.api("saveMaterials",{project:r,materials:Zh(n)}).catch(()=>!1))})}saveFile(r){return U(this,null,function*(){return!!(yield this.api("saveFile",r).catch(()=>!1))})}getFile(r){return U(this,null,function*(){return this.getFileCaches[r]||(this.getFileCaches[r]=this.api("getFile",r).catch(()=>null)).finally(()=>{delete this.getFileCaches[r]})})}removeFile(r){return U(this,null,function*(){return!!(yield this.api("removeFile",r).catch(()=>!1))})}saveHistory(r){return U(this,null,function*(){return!!(yield this.api("saveHistory",r).catch(()=>!1))})}removeHistory(r){return U(this,null,function*(){return!!(yield this.api("removeHistory",r).catch(()=>!1))})}getHistory(r){return U(this,null,function*(){return(yield this.api("getHistory",r).catch(()=>null))||{}})}getHistoryItem(r,n){return U(this,null,function*(){return(yield this.api("getHistoryItem",{fId:r,id:n}).catch(()=>null))||{}})}saveHistoryItem(r,n){return U(this,null,function*(){return!!(yield this.api("saveHistoryItem",{fId:r,item:n}).catch(()=>!1))})}removeHistoryItem(r,n){return U(this,null,function*(){return!!(yield this.api("removeHistoryItem",{fId:r,ids:n}).catch(()=>!1))})}}/**!
146
+ * Copyright (c) 2025, VTJ.PRO All rights reserved.
147
+ * @name @vtj/uni
148
+ * @author CHC chenhuachun1549@dingtalk.com
149
+ * @version 0.10.8
150
+ * @license <a href="https://vtj.pro/license.html">MIT License</a>
151
+ */const Cg=["onLaunch","onShow","onHide","onError","onPageNotFound","onUnhandledRejection","onThemeChange","onPageNotFound","onUniNViewMessage","onExit"],Di="/pages",Ng="VTJ",kg="__UNI__1FC118B",Ig="VTJ移动跨端项目",Fg="1.0.0",Mg="100",Pg=!1,Ug={},Lg={enable:!1},Vg="3",Hg={name:Ng,appid:kg,description:Ig,versionName:Fg,versionCode:Mg,transformPx:Pg,"app-plus":{usingComponents:!0,nvueStyleCompiler:"uni-app",compilerVersion:3,splashscreen:{alwaysShowBeforeRender:!0,waiting:!0,autoclose:!0,delay:0},modules:{},distribute:{android:{permissions:['<uses-permission android:name="android.permission.CHANGE_NETWORK_STATE"/>','<uses-permission android:name="android.permission.MOUNT_UNMOUNT_FILESYSTEMS"/>','<uses-permission android:name="android.permission.VIBRATE"/>','<uses-permission android:name="android.permission.READ_LOGS"/>','<uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/>','<uses-feature android:name="android.hardware.camera.autofocus"/>','<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>','<uses-permission android:name="android.permission.CAMERA"/>','<uses-permission android:name="android.permission.GET_ACCOUNTS"/>','<uses-permission android:name="android.permission.READ_PHONE_STATE"/>','<uses-permission android:name="android.permission.CHANGE_WIFI_STATE"/>','<uses-permission android:name="android.permission.WAKE_LOCK"/>','<uses-permission android:name="android.permission.FLASHLIGHT"/>','<uses-feature android:name="android.hardware.camera"/>','<uses-permission android:name="android.permission.WRITE_SETTINGS"/>']},ios:{},sdkConfigs:{},icons:{android:{hdpi:"src/static/logo.png",xhdpi:"src/static/logo.png",xxhdpi:"src/static/logo.png",xxxhdpi:"src/static/logo.png"}}}},quickapp:Ug,"mp-weixin":{appid:"",setting:{urlCheck:!1},usingComponents:!0},"mp-alipay":{usingComponents:!0},"mp-baidu":{usingComponents:!0},"mp-toutiao":{usingComponents:!0},uniStatistics:Lg,vueVersion:Vg},qg=[],zg={navigationBarTextStyle:"black",navigationBarTitleText:"uni-app",navigationBarBackgroundColor:"#F8F8F8",backgroundColor:"#F8F8F8"},Wg={autoscan:!0,custom:{"^uni-(.*)":"@dcloudio/uni-ui/lib/uni-$1/uni-$1.vue"}},Jg={pages:qg,globalStyle:zg,easycom:Wg};function Yg(e){let{manifestJson:t={},pagesJson:r={},routes:n=[]}=e;const i=n.map(o=>{const{path:s,style:u,needLogin:c}=o;return{path:s,style:u,needLogin:c}});return Q(V({},e),{manifestJson:Object.assign({},Hg,t),pagesJson:Object.assign({},Jg,r,{pages:i})})}const zr={navigationBarBackgroundColor:"backgroundColor",navigationBarTextStyle:"titleColor",navigationBarTitleText:"titleText",navigationStyle:"style",titleImage:"titleImage",titlePenetrate:"titlePenetrate",transparentTitle:"transparentTitle"};function Cs(e){const t={},r={black:"#000000",white:"#ffffff"};for(const n in e)zr[n]&&(t[zr[n]]=n==="navigationBarTextStyle"?r[e[n]]||r.black:e[n]);return t}function Kg(e){const t={};for(const r in e)zr[r]||(t[r]=e[r]);return t}function Gg(e){var t,r;return((r=(t=e.h5)==null?void 0:t.router)==null?void 0:r.mode)||"hash"}function Zg(e){var t,r,n;return{topWindow:!!((t=e.topWindow)!=null&&t.path),leftWindow:!!((r=e.leftWindow)!=null&&r.path),rightWindow:!!((n=e.rightWindow)!=null&&n.path)}}function Xg(e){const{pagesJson:t={}}=e,{globalStyle:r,pages:n=[]}=t;return!!(r!=null&&r.enablePullDownRefresh||n.find(i=>{var o;return!!((o=i.style)!=null&&o.enablePullDownRefresh)}))}function Qg(e){const{pagesJson:t={}}=e,{globalStyle:r,pages:n=[]}=t;let i=!1;return(r==null?void 0:r.navigationStyle)==="custom"?(i=!0,n.find(o=>{var s;return((s=o.style)==null?void 0:s.navigationStyle)==="default"})&&(i=!1)):n.every(o=>{var s;return((s=o.style)==null?void 0:s.navigationStyle)==="custom"})&&(i=!0),i}function t0(e){var u;const t=Qg(e),r={navigationBar:!1,navigationBarButtons:!1,navigationBarSearchInput:!1,navigationBarTransparent:!1},{pagesJson:n={}}=e,{globalStyle:i,pages:o=[]}=n;if(t)return r;r.navigationBar=!0;const s=(u=i==null?void 0:i.h5)==null?void 0:u.titleNView;return o.find(c=>{var a,l,f;return!!((f=(l=(a=c.style)==null?void 0:a.h5)==null?void 0:l.titleNView)!=null&&f.buttons.length)})&&(r.navigationBarButtons=!0),(s!=null&&s.searchInput||o.find(c=>{var a,l,f;return!!((f=(l=(a=c.style)==null?void 0:a.h5)==null?void 0:l.titleNView)!=null&&f.searchInput)}))&&(r.navigationBarSearchInput=!0),((s==null?void 0:s.type)==="transparent"||o.find(c=>{var a,l,f;return((f=(l=(a=c.style)==null?void 0:a.h5)==null?void 0:l.titleNView)==null?void 0:f.type)==="transparent"}))&&(r.navigationBarTransparent=!0),r}function e0(e,t=window){var h,p,d,m;const{pagesJson:r={},manifestJson:n={}}=e,{topWindow:i,leftWindow:o,rightWindow:s}=Zg(r),{navigationBar:u,navigationBarButtons:c,navigationBarSearchInput:a,navigationBarTransparent:l}=t0(e),f={__VUE_OPTIONS_API__:!0,__VUE_PROD_DEVTOOLS__:!1,__VUE_PROD_HYDRATION_MISMATCH_DETAILS__:!1,__UNI_FEATURE_WX__:!1,__UNI_FEATURE_WXS__:!1,__UNI_FEATURE_RPX__:!1,__UNI_FEATURE_PROMISE__:!1,__UNI_FEATURE_LONGPRESS__:!1,__UNI_FEATURE_I18N_EN__:!1,__UNI_FEATURE_I18N_ES__:!1,__UNI_FEATURE_I18N_FR__:!1,__UNI_FEATURE_I18N_ZH_HANS__:!0,__UNI_FEATURE_I18N_ZH_HANT__:!1,__UNI_FEATURE_UNI_CLOUD__:!1,__UNI_FEATURE_I18N_LOCALE__:!1,__UNI_FEATURE_NVUE__:!1,__UNI_FEATURE_ROUTER_MODE__:Gg(n),__UNI_FEATURE_PAGES__:!!((h=r.pages)!=null&&h.length),__UNI_FEATURE_TABBAR__:!!((d=(p=r.tabBar)==null?void 0:p.list)!=null&&d.length),__UNI_FEATURE_TABBAR_MIDBUTTON__:!!((m=r.tabBar)!=null&&m.midButton),__UNI_FEATURE_TOPWINDOW__:i,__UNI_FEATURE_LEFTWINDOW__:o,__UNI_FEATURE_RIGHTWINDOW__:s,__UNI_FEATURE_RESPONSIVE__:!1,__UNI_FEATURE_NAVIGATIONBAR__:u,__UNI_FEATURE_PULL_DOWN_REFRESH__:Xg(e),__UNI_FEATURE_NAVIGATIONBAR_BUTTONS__:c,__UNI_FEATURE_NAVIGATIONBAR_SEARCHINPUT__:a,__UNI_FEATURE_NAVIGATIONBAR_TRANSPARENT__:l};Object.entries(f).forEach(([b,E])=>{t[b]=E})}const r0="4.45";function n0(e,t=window){var f,h;const{pagesJson:r={},manifestJson:n={}}=e,{easycom:i={}}=r,{appid:o="",name:s="",versionCode:u="",versionName:c=""}=n,a=r.globalStyle,l=((f=n.h5)==null?void 0:f.router)||{};t.__uniConfig={easycom:i,globalStyle:Q(V({},Kg(a)),{navigationBar:Cs(a),isNVue:!1}),compilerVersion:r0,appId:o,appName:s,appVersion:c,appVersionCode:String(u),async:V({loading:"AsyncLoading",error:"AsyncError",delay:200,timeout:6e4,suspensible:!0},((h=n.h5)==null?void 0:h.async)||{}),debug:!1,networkTimeout:V({request:6e4,connectSocket:6e4,uploadFile:6e4,downloadFile:6e4},n.networkTimeout||{}),sdkConfigs:{},nvue:{"flex-direction":"column"},locale:"",fallbackLocale:"",locales:{},router:V({mode:"hash",base:"/",assets:"assets",routerBase:l.base||"/"},l),darkmode:!1,themeConfig:{},tabBar:r.tabBar?V({position:"bottom",color:"#7A7E83",selectedColor:"#3cc51f",borderStyle:"black",blurEffect:"none",fontSize:"10px",iconWidth:"24px",spacing:"3px",height:"50px",backgroundColor:"#ffffff",selectedIndex:0,shown:!0},r.tabBar):void 0}}function i0(e,t=window){const{UniServiceJSBridge:r,UniViewJSBridge:n,getApp:i,uni:o,getCurrentPages:s,upx2px:u,setupPage:c}=e;t.UniServiceJSBridge=r,t.UniViewJSBridge=n,t.getApp=i,t.uni=o,t.wx=o,t.getCurrentPages=s,t.upx2px=u,t.__setupPage=a=>c(a)}function o0(e,t,r){const{openBlock:n,createBlock:i,withCtx:o,createVNode:s}=e,{PageComponent:u,setupPage:c,getApp:a}=t;return{mpType:"page",setup(){return U(this,null,function*(){var m,b;const f=((b=(m=a())==null?void 0:m.$route)==null?void 0:b.query)||{},{loader:h,component:p}=r,d=h?yield h(r):p||{};return()=>(n(),i(u,null,{page:o(()=>[s(c(d),Object.assign({},f,{ref:"page"}),null,512)]),_:1}))})}}}function s0(e,t,r){var p;const{path:n,style:i={},meta:o={},home:s,id:u}=t,c=((p=e.tabBar)==null?void 0:p.list)||[],a=c.findIndex(d=>{var m;return d.pagePath===n||((m=d.pagePath)==null?void 0:m.endsWith(u))}),l=c[a],f=!!l,h=r===0;return V({isTabBar:f,tabBarIndex:a,isQuit:s!=null?s:h,isEntry:s!=null?s:h,navigationBar:V({type:"default"},Cs(i)),isNVue:!1,route:l?l.pagePath:n},o)}function a0(e,t,r,n,i=window){const o=r.map((s,u)=>{const c=s0(n,s,u),a=o0(e,t,s),{path:l}=s;return{path:l,alias:l,meta:c,component:{render(){return e.h(e.Suspense,[e.h(a)])}}}});i.__uniRoutes=o,i.__uniLayout={}}function u0(e,t,r=window){an(r,String(e),t)}function c0(e,t){t&&["View","ScrollView","Swiper","MovableArea","MovableView","CoverView","CoverImage","Icon","Text","RichText","Progress","Button","CheckboxGroup","Checkbox","Editor","Form","Input","Label","Picker","PickerView","RadioGroup","Radio","Slider","Switch","Textarea","Navigator","Image","Video","Map","Canvas","WebView","PickerViewColumn","ResizeSensor","SwiperItem"].forEach(r=>{const n=t[r];e.component(r,n)})}function l0(e){const t=Yg(e),{Vue:r,App:n,UniH5:i,routes:o=[],pagesJson:s={},manifestJson:u={},window:c,css:a=""}=t;if(!i)return r.createApp(n);const{plugin:l,setupApp:f}=i;e0(t,c),n0(t,c),i0(i,c),a0(r,i,o,s,c),u0(u.appid||Date.now(),a,c);const h=r.createApp(f(n));return h.use(c0,i),h.use(l),h}function f0(e,t){const r={};return Object.entries(e).forEach(([n,i])=>{Cg.includes(n)&&i&&(r[n]=t(i))}),r}function Bi(e,t){return()=>U(this,null,function*(){const r=yield e.getDsl(t);if(r){const{renderer:n}=e.createDslRenderer(r);return n}return null})}function h0(n){return U(this,arguments,function*(e,t=!1,r=Di){var u,c,a;const i=((u=e.project)==null?void 0:u.pages)||[],o=[];for(const l of i){const f=((c=e.project)==null?void 0:c.homepage)===l.id;o.push({id:l.id,path:`${r}/${l.id}`,loader:Bi(e,l.id),style:V({navigationBarTitleText:l.title},l.style),needLogin:l.needLogin,home:f})}const s=o.find(l=>!!l.home)||o[0];if(s){const l=r===Di?"/":r;o.unshift(Q(V({},s),{path:l}))}if(t){const l=((a=e.project)==null?void 0:a.blocks)||[];for(const f of l)o.push({id:f.id,path:`${r}/${f.id}`,loader:Bi(e,f.id),style:{navigationStyle:"custom"}})}return o})}function p0(){var e;if((e=window.uni)!=null&&e.showLoading)return window.uni.showLoading({title:"加载中...",mask:!0}),{close:()=>{var t;(t=window.uni)!=null&&t.hideLoading&&window.uni.hideLoading()}}}function Ns(e,t="",r="warning"){var n;(n=window.uni)!=null&&n.showModal&&window.uni.showModal({title:t,content:e,showCancel:!1})}function d0(e=nt.Runtime){return e===nt.Runtime?Object.assign({}):Object.assign({})}const m0=Om({loading:p0,notify:Ns}),g0=new Bg(jg(Ns)),y0=d0(),{provider:v0,onReady:b0}=Rg({nodeEnv:"production",mode:nt.Runtime,modules:y0,materialPath:"../",adapter:m0,service:g0,dependencies:{Vue:()=>dn(()=>import("./@dcloudio-uni-h5-vue-DnZu5_T3.js").then(e=>e.N),__vite__mapDeps([0,1,2]),import.meta.url),VueRouter:()=>dn(()=>import("./vue-router-D_BqcVGJ.js"),__vite__mapDeps([3,0,1,2]),import.meta.url)}}),w0=e=>U(void 0,null,function*(){const{Vue:t,UniH5:r}=window,n=e.project;if(!n)return;const i=n.uniConfig||{},o=f0(i,f=>Ue(f,window,!1,!0)),{manifestJson:s,pagesJson:u,css:c}=i,a=yield h0(e,!0),l=l0({Vue:t,App:o,UniH5:r,routes:a,css:c,manifestJson:s,pagesJson:u});l.use(e),l.mount(document.body)});b0(()=>w0(v0));