@vtj/pro 0.10.12 → 0.10.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (39) hide show
  1. package/dist/@vtj/materials/assets/antdv/index.umd.js +2 -2
  2. package/dist/@vtj/materials/assets/charts/index.umd.js +2 -2
  3. package/dist/@vtj/materials/assets/element/index.umd.js +2 -2
  4. package/dist/@vtj/materials/assets/ui/index.umd.js +2 -2
  5. package/dist/@vtj/materials/assets/uni-h5/index.umd.js +2 -2
  6. package/dist/@vtj/materials/assets/uni-ui/index.umd.js +2 -2
  7. package/dist/@vtj/materials/assets/vant/index.umd.js +9 -9
  8. package/dist/@vtj/materials/deps/@vtj/charts/index.umd.js +2 -2
  9. package/dist/@vtj/materials/deps/@vtj/icons/index.umd.js +2 -2
  10. package/dist/@vtj/materials/deps/@vtj/ui/index.umd.js +2 -2
  11. package/dist/@vtj/materials/deps/@vtj/utils/index.umd.js +4 -4
  12. package/dist/assets/{@element-plus-icons-vue-CRZvKNrz.js → @element-plus-icons-vue-CKT2Xck5.js} +1 -1
  13. package/dist/assets/{@vueuse-dS-W09Vv.js → @vueuse-B2Ln5mIU.js} +1 -1
  14. package/dist/assets/{Editor-7SLplEph-lPDo8mjp.js → Editor-7SLplEph-XiU5RCA1.js} +1 -1
  15. package/dist/assets/auth-BNKonXq_.js +1 -0
  16. package/dist/assets/{element-plus-BK-hs3-c.js → element-plus-Bd2bW04a.js} +1 -1
  17. package/dist/assets/{extension-FEBgdJgd.js → extension-C0o-vGA_.js} +10 -10
  18. package/dist/assets/index-DVr_v5KA.js +1 -0
  19. package/dist/assets/{index-CSI9UPqe.js → index-Dq6nvnm8.js} +24 -24
  20. package/dist/assets/page-B0jtXeSQ.js +2 -0
  21. package/dist/assets/preview-Bnmb9ETc.js +2 -0
  22. package/dist/assets/{uni-page-ByIXJ059.js → uni-page-Bjgk97mC.js} +1 -1
  23. package/dist/assets/{utils-CqFMRwm6.js → utils-wPzCLnUa.js} +1 -1
  24. package/dist/assets/{vue-DpQa2Qs4.js → vue-DnfbZNhx.js} +1 -1
  25. package/dist/assets/{vue-router-Dv428VRb.js → vue-router-D8EXeL0F.js} +1 -1
  26. package/dist/assets/{vxe-DEIHqUXR.js → vxe-CFTIhv1S.js} +1 -1
  27. package/dist/index.html +8 -8
  28. package/dist/uni/assets/{@dcloudio-uni-h5-vue-BAS6KGFt.js → @dcloudio-uni-h5-vue-DzUn8GQh.js} +1 -1
  29. package/dist/uni/assets/index-BBofSJhT.js +76 -0
  30. package/dist/uni/assets/{vue-router-Dw1LzioT.js → vue-router-pF46KwvV.js} +1 -1
  31. package/dist/uni/index.html +3 -3
  32. package/package.json +11 -11
  33. package/src/Auth.vue +46 -0
  34. package/src/index.ts +4 -0
  35. package/dist/assets/auth-DyfherFL.js +0 -1
  36. package/dist/assets/index-DX9cw63j.js +0 -1
  37. package/dist/assets/page-Db4iyZjl.js +0 -2
  38. package/dist/assets/preview-D7O5WV4s.js +0 -2
  39. package/dist/uni/assets/index-B00slR6a.js +0 -70
@@ -0,0 +1,76 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./@dcloudio-uni-h5-vue-DzUn8GQh.js","./vue-BK7aLblh.js","./@dcloudio-uni-shared-VStmjWbh.js","./vue-router-pF46KwvV.js"])))=>i.map(i=>d[i]);
2
+ var Ns=Object.defineProperty,Is=Object.defineProperties;var Ps=Object.getOwnPropertyDescriptors;var un=Object.getOwnPropertySymbols;var Fs=Object.prototype.hasOwnProperty,ks=Object.prototype.propertyIsEnumerable;var Lt=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),Ms=e=>{throw TypeError(e)};var er=(e,t,r)=>t in e?Ns(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,V=(e,t)=>{for(var r in t||(t={}))Fs.call(t,r)&&er(e,r,t[r]);if(un)for(var r of un(t))ks.call(t,r)&&er(e,r,t[r]);return e},tt=(e,t)=>Is(e,Ps(t));var q=(e,t,r)=>er(e,typeof t!="symbol"?t+"":t,r);var k=(e,t,r)=>new Promise((n,i)=>{var o=c=>{try{a(r.next(c))}catch(u){i(u)}},s=c=>{try{a(r.throw(c))}catch(u){i(u)}},a=c=>c.done?n(c.value):Promise.resolve(c.value).then(o,s);a((r=r.apply(e,t)).next())}),jt=function(e,t){this[0]=e,this[1]=t},rr=(e,t,r)=>{var n=(s,a,c,u)=>{try{var l=r[s](a),f=(a=l.value)instanceof jt,p=l.done;Promise.resolve(f?a[0]:a).then(h=>f?n(s==="return"?s:"next",a[1]?{done:h.done,value:h.value}:h,c,u):c({value:h,done:p})).catch(h=>n("throw",h,c,u))}catch(h){u(h)}},i=s=>o[s]=a=>new Promise((c,u)=>n(s,a,c,u)),o={};return r=r.apply(e,t),o[Lt("asyncIterator")]=()=>o,i("next"),i("throw"),i("return"),o},nr=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 jt(new Promise(a=>{var c=t[o](s);c instanceof Object||Ms("Object expected"),a(c)}),1)}}),i[Lt("iterator")]=()=>i,n("next"),"throw"in t?n("throw"):i.throw=o=>{throw o},"return"in t&&n("return"),i},cn=(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,a,c)=>(o=i.call(e,o),c=o.done,Promise.resolve(o.value).then(u=>s({value:u,done:c}),a)))),r("next"),r("return"),t);import{d as Ci,g as ln,h as _r,r as Us,x as He,i as Ls}from"./@dcloudio-uni-h5-vue-DzUn8GQh.js";import{useRoute as Vs}from"./vue-router-pF46KwvV.js";import"./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 Hs="modulepreload",zs=function(e,t){return new URL(e,t).href},fn={},hn=function(t,r,n){let i=Promise.resolve();if(r&&r.length>0){const s=document.getElementsByTagName("link"),a=document.querySelector("meta[property=csp-nonce]"),c=(a==null?void 0:a.nonce)||(a==null?void 0:a.getAttribute("nonce"));i=Promise.allSettled(r.map(u=>{if(u=zs(u,n),u in fn)return;fn[u]=!0;const l=u.endsWith(".css"),f=l?'[rel="stylesheet"]':"";if(!!n)for(let d=s.length-1;d>=0;d--){const m=s[d];if(m.href===u&&(!l||m.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${u}"]${f}`))return;const h=document.createElement("link");if(h.rel=l?"stylesheet":Hs,l||(h.as="script"),h.crossOrigin="",h.href=u,c&&h.setAttribute("nonce",c),document.head.appendChild(h),l)return new Promise((d,m)=>{h.addEventListener("load",d),h.addEventListener("error",()=>m(new Error(`Unable to preload CSS for ${u}`)))})}))}function o(s){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=s,window.dispatchEvent(a),!a.defaultPrevented)throw s}return i.then(s=>{for(const a of s||[])a.status==="rejected"&&o(a.reason);return t().catch(o)})};var qs={ENV_TYPE:"live",NODE_ENV:"production"},Ks=typeof global=="object"&&global&&global.Object===Object&&global;const Ni=Ks;var Ws=typeof self=="object"&&self&&self.Object===Object&&self,Js=Ni||Ws||Function("return this")();const pt=Js;var Ys=pt.Symbol;const gt=Ys;var Ii=Object.prototype,Gs=Ii.hasOwnProperty,Zs=Ii.toString,se=gt?gt.toStringTag:void 0;function Qs(e){var t=Gs.call(e,se),r=e[se];try{e[se]=void 0;var n=!0}catch(o){}var i=Zs.call(e);return n&&(t?e[se]=r:delete e[se]),i}var Xs=Object.prototype,ta=Xs.toString;function ea(e){return ta.call(e)}var ra="[object Null]",na="[object Undefined]",pn=gt?gt.toStringTag:void 0;function wt(e){return e==null?e===void 0?na:ra:pn&&pn in Object(e)?Qs(e):ea(e)}function Rt(e){return e!=null&&typeof e=="object"}var ia="[object Symbol]";function Pi(e){return typeof e=="symbol"||Rt(e)&&wt(e)==ia}function Fi(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 oa=Array.isArray;const fe=oa;var dn=gt?gt.prototype:void 0,mn=dn?dn.toString:void 0;function ki(e){if(typeof e=="string")return e;if(fe(e))return Fi(e,ki)+"";if(Pi(e))return mn?mn.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var sa=/\s/;function aa(e){for(var t=e.length;t--&&sa.test(e.charAt(t)););return t}var ua=/^\s+/;function ca(e){return e&&e.slice(0,aa(e)+1).replace(ua,"")}function ft(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var gn=NaN,la=/^[-+]0x[0-9a-f]+$/i,fa=/^0b[01]+$/i,ha=/^0o[0-7]+$/i,pa=parseInt;function yn(e){if(typeof e=="number")return e;if(Pi(e))return gn;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=ca(e);var r=fa.test(e);return r||ha.test(e)?pa(e.slice(2),r?2:8):la.test(e)?gn:+e}function Mi(e){return e}var da="[object AsyncFunction]",ma="[object Function]",ga="[object GeneratorFunction]",ya="[object Proxy]";function Qt(e){if(!ft(e))return!1;var t=wt(e);return t==ma||t==ga||t==da||t==ya}var va=pt["__core-js_shared__"];const ir=va;var vn=function(){var e=/[^.]+$/.exec(ir&&ir.keys&&ir.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function ba(e){return!!vn&&vn in e}var wa=Function.prototype,_a=wa.toString;function kt(e){if(e!=null){try{return _a.call(e)}catch(t){}try{return e+""}catch(t){}}return""}var Ea=/[\\^$.*+?()[\]{}|]/g,Sa=/^\[object .+?Constructor\]$/,xa=Function.prototype,Ta=Object.prototype,Ra=xa.toString,Aa=Ta.hasOwnProperty,Oa=RegExp("^"+Ra.call(Aa).replace(Ea,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function $a(e){if(!ft(e)||ba(e))return!1;var t=Qt(e)?Oa:Sa;return t.test(kt(e))}function Da(e,t){return e==null?void 0:e[t]}function Mt(e,t){var r=Da(e,t);return $a(r)?r:void 0}var ja=Mt(pt,"WeakMap");const Er=ja;var bn=Object.create,Ba=function(){function e(){}return function(t){if(!ft(t))return{};if(bn)return bn(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();const Ca=Ba;function Ui(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 Na(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}var Ia=800,Pa=16,Fa=Date.now;function ka(e){var t=0,r=0;return function(){var n=Fa(),i=Pa-(n-r);if(r=n,i>0){if(++t>=Ia)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function Ma(e){return function(){return e}}var Ua=function(){try{var e=Mt(Object,"defineProperty");return e({},"",{}),e}catch(t){}}();const Fe=Ua;var La=Fe?function(e,t){return Fe(e,"toString",{configurable:!0,enumerable:!1,value:Ma(t),writable:!0})}:Mi;const Va=La;var Ha=ka(Va);const za=Ha;var qa=9007199254740991,Ka=/^(?:0|[1-9]\d*)$/;function Li(e,t){var r=typeof e;return t=t!=null?t:qa,!!t&&(r=="number"||r!="symbol"&&Ka.test(e))&&e>-1&&e%1==0&&e<t}function Wr(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 Wa=Object.prototype,Ja=Wa.hasOwnProperty;function Ya(e,t,r){var n=e[t];(!(Ja.call(e,t)&&ye(n,r))||r===void 0&&!(t in e))&&Wr(e,t,r)}function Vi(e,t,r,n){var i=!r;r||(r={});for(var o=-1,s=t.length;++o<s;){var a=t[o],c=n?n(r[a],e[a],a,r,e):void 0;c===void 0&&(c=e[a]),i?Wr(r,a,c):Ya(r,a,c)}return r}var wn=Math.max;function Ga(e,t,r){return t=wn(t===void 0?e.length-1:t,0),function(){for(var n=arguments,i=-1,o=wn(n.length-t,0),s=Array(o);++i<o;)s[i]=n[t+i];i=-1;for(var a=Array(t+1);++i<t;)a[i]=n[i];return a[t]=r(s),Ui(e,this,a)}}function Hi(e,t){return za(Ga(e,t,Mi),e+"")}var Za=9007199254740991;function zi(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Za}function ze(e){return e!=null&&zi(e.length)&&!Qt(e)}function Qa(e,t,r){if(!ft(r))return!1;var n=typeof t;return(n=="number"?ze(r)&&Li(t,r.length):n=="string"&&t in r)?ye(r[t],e):!1}function qi(e){return Hi(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&&Qa(r[0],r[1],s)&&(o=i<3?void 0:o,i=1),t=Object(t);++n<i;){var a=r[n];a&&e(t,a,n,o)}return t})}var Xa=Object.prototype;function Jr(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||Xa;return e===r}function tu(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var eu="[object Arguments]";function _n(e){return Rt(e)&&wt(e)==eu}var Ki=Object.prototype,ru=Ki.hasOwnProperty,nu=Ki.propertyIsEnumerable,iu=_n(function(){return arguments}())?_n:function(e){return Rt(e)&&ru.call(e,"callee")&&!nu.call(e,"callee")};const Sr=iu;function ou(){return!1}var Wi=typeof exports=="object"&&exports&&!exports.nodeType&&exports,En=Wi&&typeof module=="object"&&module&&!module.nodeType&&module,su=En&&En.exports===Wi,Sn=su?pt.Buffer:void 0,au=Sn?Sn.isBuffer:void 0,uu=au||ou;const Ji=uu;var cu="[object Arguments]",lu="[object Array]",fu="[object Boolean]",hu="[object Date]",pu="[object Error]",du="[object Function]",mu="[object Map]",gu="[object Number]",yu="[object Object]",vu="[object RegExp]",bu="[object Set]",wu="[object String]",_u="[object WeakMap]",Eu="[object ArrayBuffer]",Su="[object DataView]",xu="[object Float32Array]",Tu="[object Float64Array]",Ru="[object Int8Array]",Au="[object Int16Array]",Ou="[object Int32Array]",$u="[object Uint8Array]",Du="[object Uint8ClampedArray]",ju="[object Uint16Array]",Bu="[object Uint32Array]",Y={};Y[xu]=Y[Tu]=Y[Ru]=Y[Au]=Y[Ou]=Y[$u]=Y[Du]=Y[ju]=Y[Bu]=!0,Y[cu]=Y[lu]=Y[Eu]=Y[fu]=Y[Su]=Y[hu]=Y[pu]=Y[du]=Y[mu]=Y[gu]=Y[yu]=Y[vu]=Y[bu]=Y[wu]=Y[_u]=!1;function Cu(e){return Rt(e)&&zi(e.length)&&!!Y[wt(e)]}function Nu(e){return function(t){return e(t)}}var Yi=typeof exports=="object"&&exports&&!exports.nodeType&&exports,le=Yi&&typeof module=="object"&&module&&!module.nodeType&&module,Iu=le&&le.exports===Yi,or=Iu&&Ni.process,Pu=function(){try{var e=le&&le.require&&le.require("util").types;return e||or&&or.binding&&or.binding("util")}catch(t){}}();const yt=Pu;var xn=yt&&yt.isTypedArray,Fu=xn?Nu(xn):Cu;const Gi=Fu;var ku=Object.prototype,Mu=ku.hasOwnProperty;function Zi(e,t){var r=fe(e),n=!r&&Sr(e),i=!r&&!n&&Ji(e),o=!r&&!n&&!i&&Gi(e),s=r||n||i||o,a=s?tu(e.length,String):[],c=a.length;for(var u in e)(t||Mu.call(e,u))&&!(s&&(u=="length"||i&&(u=="offset"||u=="parent")||o&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||Li(u,c)))&&a.push(u);return a}function Qi(e,t){return function(r){return e(t(r))}}var Uu=Qi(Object.keys,Object);const Lu=Uu;var Vu=Object.prototype,Hu=Vu.hasOwnProperty;function zu(e){if(!Jr(e))return Lu(e);var t=[];for(var r in Object(e))Hu.call(e,r)&&r!="constructor"&&t.push(r);return t}function qu(e){return ze(e)?Zi(e):zu(e)}function Ku(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var Wu=Object.prototype,Ju=Wu.hasOwnProperty;function Yu(e){if(!ft(e))return Ku(e);var t=Jr(e),r=[];for(var n in e)n=="constructor"&&(t||!Ju.call(e,n))||r.push(n);return r}function Yr(e){return ze(e)?Zi(e,!0):Yu(e)}var Gu=qi(function(e,t,r,n){Vi(t,Yr(t),e,n)});const Tn=Gu;var Zu=Mt(Object,"create");const he=Zu;function Qu(){this.__data__=he?he(null):{},this.size=0}function Xu(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var tc="__lodash_hash_undefined__",ec=Object.prototype,rc=ec.hasOwnProperty;function nc(e){var t=this.__data__;if(he){var r=t[e];return r===tc?void 0:r}return rc.call(t,e)?t[e]:void 0}var ic=Object.prototype,oc=ic.hasOwnProperty;function sc(e){var t=this.__data__;return he?t[e]!==void 0:oc.call(t,e)}var ac="__lodash_hash_undefined__";function uc(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=he&&t===void 0?ac:t,this}function Nt(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])}}Nt.prototype.clear=Qu,Nt.prototype.delete=Xu,Nt.prototype.get=nc,Nt.prototype.has=sc,Nt.prototype.set=uc;function cc(){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 lc=Array.prototype,fc=lc.splice;function hc(e){var t=this.__data__,r=qe(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():fc.call(t,r,1),--this.size,!0}function pc(e){var t=this.__data__,r=qe(t,e);return r<0?void 0:t[r][1]}function dc(e){return qe(this.__data__,e)>-1}function mc(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 bt(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])}}bt.prototype.clear=cc,bt.prototype.delete=hc,bt.prototype.get=pc,bt.prototype.has=dc,bt.prototype.set=mc;var gc=Mt(pt,"Map");const pe=gc;function yc(){this.size=0,this.__data__={hash:new Nt,map:new(pe||bt),string:new Nt}}function vc(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Ke(e,t){var r=e.__data__;return vc(t)?r[typeof t=="string"?"string":"hash"]:r.map}function bc(e){var t=Ke(this,e).delete(e);return this.size-=t?1:0,t}function wc(e){return Ke(this,e).get(e)}function _c(e){return Ke(this,e).has(e)}function Ec(e,t){var r=Ke(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}function xt(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}xt.prototype.clear=yc,xt.prototype.delete=bc,xt.prototype.get=wc,xt.prototype.has=_c,xt.prototype.set=Ec;var Sc="Expected a function";function Gr(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(Sc);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(Gr.Cache||xt),r}Gr.Cache=xt;var xc=500;function Tc(e){var t=Gr(e,function(n){return r.size===xc&&r.clear(),n}),r=t.cache;return t}var Rc=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ac=/\\(\\)?/g;Tc(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Rc,function(r,n,i,o){t.push(i?o.replace(Ac,"$1"):n||r)}),t});function te(e){return e==null?"":ki(e)}var Oc=Qi(Object.getPrototypeOf,Object);const Xi=Oc;var $c="[object Object]",Dc=Function.prototype,jc=Object.prototype,to=Dc.toString,Bc=jc.hasOwnProperty,Cc=to.call(Object);function eo(e){if(!Rt(e)||wt(e)!=$c)return!1;var t=Xi(e);if(t===null)return!0;var r=Bc.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&to.call(r)==Cc}var Nc="[object DOMException]",Ic="[object Error]";function ro(e){if(!Rt(e))return!1;var t=wt(e);return t==Ic||t==Nc||typeof e.message=="string"&&typeof e.name=="string"&&!eo(e)}var Pc=Hi(function(e,t){try{return Ui(e,void 0,t)}catch(r){return ro(r)?r:new Error(r)}});const Fc=Pc;function kc(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 Mc(e,t,r){var n=e.length;return r=r===void 0?n:r,kc(e,t,r)}var Uc="\\ud800-\\udfff",Lc="\\u0300-\\u036f",Vc="\\ufe20-\\ufe2f",Hc="\\u20d0-\\u20ff",zc=Lc+Vc+Hc,qc="\\ufe0e\\ufe0f",Kc="\\u200d",Wc=RegExp("["+Kc+Uc+zc+qc+"]");function no(e){return Wc.test(e)}function Jc(e){return e.split("")}var io="\\ud800-\\udfff",Yc="\\u0300-\\u036f",Gc="\\ufe20-\\ufe2f",Zc="\\u20d0-\\u20ff",Qc=Yc+Gc+Zc,Xc="\\ufe0e\\ufe0f",tl="["+io+"]",xr="["+Qc+"]",Tr="\\ud83c[\\udffb-\\udfff]",el="(?:"+xr+"|"+Tr+")",oo="[^"+io+"]",so="(?:\\ud83c[\\udde6-\\uddff]){2}",ao="[\\ud800-\\udbff][\\udc00-\\udfff]",rl="\\u200d",uo=el+"?",co="["+Xc+"]?",nl="(?:"+rl+"(?:"+[oo,so,ao].join("|")+")"+co+uo+")*",il=co+uo+nl,ol="(?:"+[oo+xr+"?",xr,so,ao,tl].join("|")+")",sl=RegExp(Tr+"(?="+Tr+")|"+ol+il,"g");function al(e){return e.match(sl)||[]}function ul(e){return no(e)?al(e):Jc(e)}function cl(e){return function(t){t=te(t);var r=no(t)?ul(t):void 0,n=r?r[0]:t.charAt(0),i=r?Mc(r,1).join(""):t.slice(1);return n[e]()+i}}var ll=cl("toUpperCase");const lo=ll;function fl(e){return lo(te(e).toLowerCase())}function hl(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 fo(e){return function(t){return e==null?void 0:e[t]}}var pl={À:"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"},dl=fo(pl);const ml=dl;var gl=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,yl="\\u0300-\\u036f",vl="\\ufe20-\\ufe2f",bl="\\u20d0-\\u20ff",wl=yl+vl+bl,_l="["+wl+"]",El=RegExp(_l,"g");function Sl(e){return e=te(e),e&&e.replace(gl,ml).replace(El,"")}var xl=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function Tl(e){return e.match(xl)||[]}var Rl=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function Al(e){return Rl.test(e)}var ho="\\ud800-\\udfff",Ol="\\u0300-\\u036f",$l="\\ufe20-\\ufe2f",Dl="\\u20d0-\\u20ff",jl=Ol+$l+Dl,po="\\u2700-\\u27bf",mo="a-z\\xdf-\\xf6\\xf8-\\xff",Bl="\\xac\\xb1\\xd7\\xf7",Cl="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Nl="\\u2000-\\u206f",Il=" \\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",go="A-Z\\xc0-\\xd6\\xd8-\\xde",Pl="\\ufe0e\\ufe0f",yo=Bl+Cl+Nl+Il,vo="['’]",Rn="["+yo+"]",Fl="["+jl+"]",bo="\\d+",kl="["+po+"]",wo="["+mo+"]",_o="[^"+ho+yo+bo+po+mo+go+"]",Ml="\\ud83c[\\udffb-\\udfff]",Ul="(?:"+Fl+"|"+Ml+")",Ll="[^"+ho+"]",Eo="(?:\\ud83c[\\udde6-\\uddff]){2}",So="[\\ud800-\\udbff][\\udc00-\\udfff]",Kt="["+go+"]",Vl="\\u200d",An="(?:"+wo+"|"+_o+")",Hl="(?:"+Kt+"|"+_o+")",On="(?:"+vo+"(?:d|ll|m|re|s|t|ve))?",$n="(?:"+vo+"(?:D|LL|M|RE|S|T|VE))?",xo=Ul+"?",To="["+Pl+"]?",zl="(?:"+Vl+"(?:"+[Ll,Eo,So].join("|")+")"+To+xo+")*",ql="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Kl="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Wl=To+xo+zl,Jl="(?:"+[kl,Eo,So].join("|")+")"+Wl,Yl=RegExp([Kt+"?"+wo+"+"+On+"(?="+[Rn,Kt,"$"].join("|")+")",Hl+"+"+$n+"(?="+[Rn,Kt+An,"$"].join("|")+")",Kt+"?"+An+"+"+On,Kt+"+"+$n,Kl,ql,bo,Jl].join("|"),"g");function Gl(e){return e.match(Yl)||[]}function Zl(e,t,r){return e=te(e),t=t,t===void 0?Al(e)?Gl(e):Tl(e):e.match(t)||[]}var Ql="['’]",Xl=RegExp(Ql,"g");function tf(e){return function(t){return hl(Zl(Sl(t).replace(Xl,"")),e,"")}}var ef=tf(function(e,t,r){return t=t.toLowerCase(),e+(r?fl(t):t)});const Bt=ef;function rf(){this.__data__=new bt,this.size=0}function nf(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function of(e){return this.__data__.get(e)}function sf(e){return this.__data__.has(e)}var af=200;function uf(e,t){var r=this.__data__;if(r instanceof bt){var n=r.__data__;if(!pe||n.length<af-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new xt(n)}return r.set(e,t),this.size=r.size,this}function Wt(e){var t=this.__data__=new bt(e);this.size=t.size}Wt.prototype.clear=rf,Wt.prototype.delete=nf,Wt.prototype.get=of,Wt.prototype.has=sf,Wt.prototype.set=uf;var Ro=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Dn=Ro&&typeof module=="object"&&module&&!module.nodeType&&module,cf=Dn&&Dn.exports===Ro,jn=cf?pt.Buffer:void 0;jn&&jn.allocUnsafe;function lf(e,t){return e.slice()}var ff=Mt(pt,"DataView");const Rr=ff;var hf=Mt(pt,"Promise");const Ar=hf;var pf=Mt(pt,"Set");const Or=pf;var Bn="[object Map]",df="[object Object]",Cn="[object Promise]",Nn="[object Set]",In="[object WeakMap]",Pn="[object DataView]",mf=kt(Rr),gf=kt(pe),yf=kt(Ar),vf=kt(Or),bf=kt(Er),Vt=wt;(Rr&&Vt(new Rr(new ArrayBuffer(1)))!=Pn||pe&&Vt(new pe)!=Bn||Ar&&Vt(Ar.resolve())!=Cn||Or&&Vt(new Or)!=Nn||Er&&Vt(new Er)!=In)&&(Vt=function(e){var t=wt(e),r=t==df?e.constructor:void 0,n=r?kt(r):"";if(n)switch(n){case mf:return Pn;case gf:return Bn;case yf:return Cn;case vf:return Nn;case bf:return In}return t});var wf=pt.Uint8Array;const Fn=wf;function _f(e){var t=new e.constructor(e.byteLength);return new Fn(t).set(new Fn(e)),t}var kn=gt?gt.prototype:void 0;kn&&kn.valueOf;function Ef(e,t){var r=_f(e.buffer);return new e.constructor(r,e.byteOffset,e.length)}function Sf(e){return typeof e.constructor=="function"&&!Jr(e)?Ca(Xi(e)):{}}yt&&yt.isMap;yt&&yt.isSet;var Mn=gt?gt.prototype:void 0;Mn&&Mn.valueOf;function xf(e){return function(t,r,n){for(var i=-1,o=Object(t),s=n(t),a=s.length;a--;){var c=s[++i];if(r(o[c],c,o)===!1)break}return t}}var Tf=xf();const Rf=Tf;var Af=function(){return pt.Date.now()};const sr=Af;var Of="Expected a function",$f=Math.max,Df=Math.min;function Ao(e,t,r){var n,i,o,s,a,c,u=0,l=!1,f=!1,p=!0;if(typeof e!="function")throw new TypeError(Of);t=yn(t)||0,ft(r)&&(l=!!r.leading,f="maxWait"in r,o=f?$f(yn(r.maxWait)||0,t):o,p="trailing"in r?!!r.trailing:p);function h(g){var x=n,A=i;return n=i=void 0,u=g,s=e.apply(A,x),s}function d(g){return u=g,a=setTimeout(E,t),l?h(g):s}function m(g){var x=g-c,A=g-u,M=t-x;return f?Df(M,o-A):M}function b(g){var x=g-c,A=g-u;return c===void 0||x>=t||x<0||f&&A>=o}function E(){var g=sr();if(b(g))return y(g);a=setTimeout(E,m(g))}function y(g){return a=void 0,p&&n?h(g):(n=i=void 0,s)}function v(){a!==void 0&&clearTimeout(a),u=0,n=c=i=a=void 0}function w(){return a===void 0?s:y(sr())}function S(){var g=sr(),x=b(g);if(n=arguments,i=this,c=g,x){if(a===void 0)return d(c);if(f)return clearTimeout(a),a=setTimeout(E,t),h(c)}return a===void 0&&(a=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))&&Wr(e,t,r)}function jf(e){return Rt(e)&&ze(e)}function Dr(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}function Bf(e){return Vi(e,Yr(e))}function Cf(e,t,r,n,i,o,s){var a=Dr(e,r),c=Dr(t,r),u=s.get(c);if(u){$r(e,r,u);return}var l=o?o(a,c,r+"",e,t,s):void 0,f=l===void 0;if(f){var p=fe(c),h=!p&&Ji(c),d=!p&&!h&&Gi(c);l=c,p||h||d?fe(a)?l=a:jf(a)?l=Na(a):h?(f=!1,l=lf(c)):d?(f=!1,l=Ef(c)):l=[]:eo(c)||Sr(c)?(l=a,Sr(a)?l=Bf(a):(!ft(a)||Qt(a))&&(l=Sf(c))):f=!1}f&&(s.set(c,l),i(l,c,n,o,s),s.delete(c)),$r(e,r,l)}function Oo(e,t,r,n,i){e!==t&&Rf(t,function(o,s){if(i||(i=new Wt),ft(o))Cf(e,t,s,r,Oo,n,i);else{var a=n?n(Dr(e,s),o,s+"",e,t,i):void 0;a===void 0&&(a=o),$r(e,s,a)}},Yr)}var Nf={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},If=fo(Nf);const Pf=If;var $o=/[&<>"']/g,Ff=RegExp($o.source);function kf(e){return e=te(e),e&&Ff.test(e)?e.replace($o,Pf):e}var Mf="[object String]";function At(e){return typeof e=="string"||!fe(e)&&Rt(e)&&wt(e)==Mf}function Uf(e,t){return Fi(t,function(r){return e[r]})}yt&&yt.isArrayBuffer;yt&&yt.isDate;var Lf=qi(function(e,t,r){Oo(e,t,r)});const ue=Lf;var Do=Object.prototype,Vf=Do.hasOwnProperty;function Un(e,t,r,n){return e===void 0||ye(e,Do[r])&&!Vf.call(n,r)?t:e}var Hf={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"};function zf(e){return"\\"+Hf[e]}var qf=/<%=([\s\S]+?)%>/g;const jo=qf;var Kf=/<%-([\s\S]+?)%>/g;const Wf=Kf;var Jf=/<%([\s\S]+?)%>/g;const Yf=Jf;var Gf={escape:Wf,evaluate:Yf,interpolate:jo,variable:"",imports:{_:{escape:kf}}};const Ln=Gf;var Zf="Invalid `variable` option passed into `_.template`",Qf=/\b__p \+= '';/g,Xf=/\b(__p \+=) '' \+/g,th=/(__e\(.*?\)|\b__t\)) \+\n'';/g,eh=/[()=,{}\[\]\/\s]/,rh=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,_e=/($^)/,nh=/['\n\r\u2028\u2029\\]/g,ih=Object.prototype,Vn=ih.hasOwnProperty;function oh(e,t,r){var n=Ln.imports._.templateSettings||Ln;e=te(e),t=Tn({},t,n,Un);var i=Tn({},t.imports,n.imports,Un),o=qu(i),s=Uf(i,o),a,c,u=0,l=t.interpolate||_e,f="__p += '",p=RegExp((t.escape||_e).source+"|"+l.source+"|"+(l===jo?rh:_e).source+"|"+(t.evaluate||_e).source+"|$","g"),h=Vn.call(t,"sourceURL")?"//# sourceURL="+(t.sourceURL+"").replace(/\s/g," ")+`
3
+ `:"";e.replace(p,function(b,E,y,v,w,S){return y||(y=v),f+=e.slice(u,S).replace(nh,zf),E&&(a=!0,f+=`' +
4
+ __e(`+E+`) +
5
+ '`),w&&(c=!0,f+=`';
6
+ `+w+`;
7
+ __p += '`),y&&(f+=`' +
8
+ ((__t = (`+y+`)) == null ? '' : __t) +
9
+ '`),u=S+b.length,b}),f+=`';
10
+ `;var d=Vn.call(t,"variable")&&t.variable;if(!d)f=`with (obj) {
11
+ `+f+`
12
+ }
13
+ `;else if(eh.test(d))throw new Error(Zf);f=(c?f.replace(Qf,""):f).replace(Xf,"$1").replace(th,"$1;"),f="function("+(d||"obj")+`) {
14
+ `+(d?"":`obj || (obj = {});
15
+ `)+"var __t, __p = ''"+(a?", __e = _.escape":"")+(c?`, __j = Array.prototype.join;
16
+ function print() { __p += __j.call(arguments, '') }
17
+ `:`;
18
+ `)+f+`return __p
19
+ }`;var m=Fc(function(){return Function(o,h+"return "+f).apply(void 0,s)});if(m.source=f,ro(m))throw m;return m}var sh="Expected a function";function ah(e,t,r){var n=!0,i=!0;if(typeof e!="function")throw new TypeError(sh);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 nt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ee(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Bo={exports:{}};function uh(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 Hn={exports:{}},zn;function Ot(){return zn||(zn=1,function(e,t){(function(r,n){e.exports=n()})(nt,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 nt<"u"&&nt.crypto&&(o=nt.crypto),!o&&typeof uh=="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.")},a=Object.create||function(){function y(){}return function(v){var w;return y.prototype=v,w=new y,y.prototype=null,w}}(),c={},u=c.lib={},l=u.Base=function(){return{extend:function(y){var v=a(this);return y&&v.mixIn(y),(!v.hasOwnProperty("init")||this.init===v.init)&&(v.init=function(){v.$super.init.apply(this,arguments)}),v.init.prototype=v,v.$super=this,v},create:function(){var y=this.extend();return y.init.apply(y,arguments),y},init:function(){},mixIn:function(y){for(var v in y)y.hasOwnProperty(v)&&(this[v]=y[v]);y.hasOwnProperty("toString")&&(this.toString=y.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),f=u.WordArray=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||h).stringify(this)},concat:function(y){var v=this.words,w=y.words,S=this.sigBytes,g=y.sigBytes;if(this.clamp(),S%4)for(var x=0;x<g;x++){var A=w[x>>>2]>>>24-x%4*8&255;v[S+x>>>2]|=A<<24-(S+x)%4*8}else for(var 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)}}),p=c.enc={},h=p.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=p.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=p.Utf8={stringify:function(y){try{return decodeURIComponent(escape(d.stringify(y)))}catch(v){throw new Error("Malformed UTF-8 data")}},parse:function(y){return d.parse(unescape(encodeURIComponent(y)))}},b=u.BufferedBlockAlgorithm=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,A=x*4,M=g/A;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});u.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})}(Hn)),Hn.exports}(function(e,t){(function(r,n){e.exports=n(Ot())})(nt,function(r){return function(n){var i=r,o=i.lib,s=o.WordArray,a=o.Hasher,c=i.algo,u=[];(function(){for(var m=0;m<64;m++)u[m]=n.abs(n.sin(m+1))*4294967296|0})();var l=c.MD5=a.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],A=m[b+3],M=m[b+4],_=m[b+5],T=m[b+6],F=m[b+7],j=m[b+8],P=m[b+9],D=m[b+10],C=m[b+11],L=m[b+12],U=m[b+13],H=m[b+14],z=m[b+15],O=w[0],B=w[1],N=w[2],I=w[3];O=f(O,B,N,I,S,7,u[0]),I=f(I,O,B,N,g,12,u[1]),N=f(N,I,O,B,x,17,u[2]),B=f(B,N,I,O,A,22,u[3]),O=f(O,B,N,I,M,7,u[4]),I=f(I,O,B,N,_,12,u[5]),N=f(N,I,O,B,T,17,u[6]),B=f(B,N,I,O,F,22,u[7]),O=f(O,B,N,I,j,7,u[8]),I=f(I,O,B,N,P,12,u[9]),N=f(N,I,O,B,D,17,u[10]),B=f(B,N,I,O,C,22,u[11]),O=f(O,B,N,I,L,7,u[12]),I=f(I,O,B,N,U,12,u[13]),N=f(N,I,O,B,H,17,u[14]),B=f(B,N,I,O,z,22,u[15]),O=p(O,B,N,I,g,5,u[16]),I=p(I,O,B,N,T,9,u[17]),N=p(N,I,O,B,C,14,u[18]),B=p(B,N,I,O,S,20,u[19]),O=p(O,B,N,I,_,5,u[20]),I=p(I,O,B,N,D,9,u[21]),N=p(N,I,O,B,z,14,u[22]),B=p(B,N,I,O,M,20,u[23]),O=p(O,B,N,I,P,5,u[24]),I=p(I,O,B,N,H,9,u[25]),N=p(N,I,O,B,A,14,u[26]),B=p(B,N,I,O,j,20,u[27]),O=p(O,B,N,I,U,5,u[28]),I=p(I,O,B,N,x,9,u[29]),N=p(N,I,O,B,F,14,u[30]),B=p(B,N,I,O,L,20,u[31]),O=h(O,B,N,I,_,4,u[32]),I=h(I,O,B,N,j,11,u[33]),N=h(N,I,O,B,C,16,u[34]),B=h(B,N,I,O,H,23,u[35]),O=h(O,B,N,I,g,4,u[36]),I=h(I,O,B,N,M,11,u[37]),N=h(N,I,O,B,F,16,u[38]),B=h(B,N,I,O,D,23,u[39]),O=h(O,B,N,I,U,4,u[40]),I=h(I,O,B,N,S,11,u[41]),N=h(N,I,O,B,A,16,u[42]),B=h(B,N,I,O,T,23,u[43]),O=h(O,B,N,I,P,4,u[44]),I=h(I,O,B,N,L,11,u[45]),N=h(N,I,O,B,z,16,u[46]),B=h(B,N,I,O,x,23,u[47]),O=d(O,B,N,I,S,6,u[48]),I=d(I,O,B,N,F,10,u[49]),N=d(N,I,O,B,H,15,u[50]),B=d(B,N,I,O,_,21,u[51]),O=d(O,B,N,I,L,6,u[52]),I=d(I,O,B,N,A,10,u[53]),N=d(N,I,O,B,D,15,u[54]),B=d(B,N,I,O,g,21,u[55]),O=d(O,B,N,I,j,6,u[56]),I=d(I,O,B,N,z,10,u[57]),N=d(N,I,O,B,T,15,u[58]),B=d(B,N,I,O,U,21,u[59]),O=d(O,B,N,I,M,6,u[60]),I=d(I,O,B,N,C,10,u[61]),N=d(N,I,O,B,x,15,u[62]),B=d(B,N,I,O,P,21,u[63]),w[0]=w[0]+O|0,w[1]=w[1]+B|0,w[2]=w[2]+N|0,w[3]=w[3]+I|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 A=g[x];g[x]=(A<<8|A>>>24)&16711935|(A<<24|A>>>8)&4278255360}return S},clone:function(){var m=a.clone.call(this);return m._hash=this._hash.clone(),m}});function f(m,b,E,y,v,w,S){var g=m+(b&E|~b&y)+v+S;return(g<<w|g>>>32-w)+b}function p(m,b,E,y,v,w,S){var g=m+(b&y|E&~y)+v+S;return(g<<w|g>>>32-w)+b}function h(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=a._createHelper(l),i.HmacMD5=a._createHmacHelper(l)}(Math),r.MD5})})(Bo);var Co=Bo.exports;ee(Co);var No={exports:{}};(function(e,t){(function(r,n){e.exports=n(Ot())})(nt,function(r){return function(){var n=r,i=n.lib,o=i.WordArray,s=n.enc;s.Base64={stringify:function(c){var u=c.words,l=c.sigBytes,f=this._map;c.clamp();for(var p=[],h=0;h<l;h+=3)for(var d=u[h>>>2]>>>24-h%4*8&255,m=u[h+1>>>2]>>>24-(h+1)%4*8&255,b=u[h+2>>>2]>>>24-(h+2)%4*8&255,E=d<<16|m<<8|b,y=0;y<4&&h+y*.75<l;y++)p.push(f.charAt(E>>>6*(3-y)&63));var v=f.charAt(64);if(v)for(;p.length%4;)p.push(v);return p.join("")},parse:function(c){var u=c.length,l=this._map,f=this._reverseMap;if(!f){f=this._reverseMap=[];for(var p=0;p<l.length;p++)f[l.charCodeAt(p)]=p}var h=l.charAt(64);if(h){var d=c.indexOf(h);d!==-1&&(u=d)}return a(c,u,f)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function a(c,u,l){for(var f=[],p=0,h=0;h<u;h++)if(h%4){var d=l[c.charCodeAt(h-1)]<<h%4*2,m=l[c.charCodeAt(h)]>>>6-h%4*2,b=d|m;f[p>>>2]|=b<<24-p%4*8,p++}return o.create(f,p)}}(),r.enc.Base64})})(No);var Io=No.exports;ee(Io);var Po={exports:{}};(function(e,t){(function(r,n){e.exports=n(Ot())})(nt,function(r){return r.enc.Utf8})})(Po);var ch=Po.exports;ee(ch);var Fo={exports:{}},qn={exports:{}},Kn={exports:{}},Wn;function lh(){return Wn||(Wn=1,function(e,t){(function(r,n){e.exports=n(Ot())})(nt,function(r){return function(){var n=r,i=n.lib,o=i.WordArray,s=i.Hasher,a=n.algo,c=[],u=a.SHA1=s.extend({_doReset:function(){this._hash=new o.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(l,f){for(var p=this._hash.words,h=p[0],d=p[1],m=p[2],b=p[3],E=p[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=(h<<5|h>>>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=h,h=w}p[0]=p[0]+h|0,p[1]=p[1]+d|0,p[2]=p[2]+m|0,p[3]=p[3]+b|0,p[4]=p[4]+E|0},_doFinalize:function(){var l=this._data,f=l.words,p=this._nDataBytes*8,h=l.sigBytes*8;return f[h>>>5]|=128<<24-h%32,f[(h+64>>>9<<4)+14]=Math.floor(p/4294967296),f[(h+64>>>9<<4)+15]=p,l.sigBytes=f.length*4,this._process(),this._hash},clone:function(){var l=s.clone.call(this);return l._hash=this._hash.clone(),l}});n.SHA1=s._createHelper(u),n.HmacSHA1=s._createHmacHelper(u)}(),r.SHA1})}(Kn)),Kn.exports}var Jn={exports:{}},Yn;function fh(){return Yn||(Yn=1,function(e,t){(function(r,n){e.exports=n(Ot())})(nt,function(r){(function(){var n=r,i=n.lib,o=i.Base,s=n.enc,a=s.Utf8,c=n.algo;c.HMAC=o.extend({init:function(u,l){u=this._hasher=new u.init,typeof l=="string"&&(l=a.parse(l));var f=u.blockSize,p=f*4;l.sigBytes>p&&(l=u.finalize(l)),l.clamp();for(var h=this._oKey=l.clone(),d=this._iKey=l.clone(),m=h.words,b=d.words,E=0;E<f;E++)m[E]^=1549556828,b[E]^=909522486;h.sigBytes=d.sigBytes=p,this.reset()},reset:function(){var u=this._hasher;u.reset(),u.update(this._iKey)},update:function(u){return this._hasher.update(u),this},finalize:function(u){var l=this._hasher,f=l.finalize(u);l.reset();var p=l.finalize(this._oKey.clone().concat(f));return p}})})()})}(Jn)),Jn.exports}var Gn;function ko(){return Gn||(Gn=1,function(e,t){(function(r,n,i){e.exports=n(Ot(),lh(),fh())})(nt,function(r){return function(){var n=r,i=n.lib,o=i.Base,s=i.WordArray,a=n.algo,c=a.MD5,u=a.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 p,h=this.cfg,d=h.hasher.create(),m=s.create(),b=m.words,E=h.keySize,y=h.iterations;b.length<E;){p&&d.update(p),p=d.update(l).finalize(f),d.reset();for(var v=1;v<y;v++)p=d.finalize(p),d.reset();m.concat(p)}return m.sigBytes=E*4,m}});n.EvpKDF=function(l,f,p){return u.create(p).compute(l,f)}}(),r.EvpKDF})}(qn)),qn.exports}var Zn={exports:{}},Qn;function hh(){return Qn||(Qn=1,function(e,t){(function(r,n,i){e.exports=n(Ot(),ko())})(nt,function(r){r.lib.Cipher||function(n){var i=r,o=i.lib,s=o.Base,a=o.WordArray,c=o.BufferedBlockAlgorithm,u=i.enc;u.Utf8;var l=u.Base64,f=i.algo,p=f.EvpKDF,h=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,j,P){return _(j).encrypt(T,F,j,P)},decrypt:function(F,j,P){return _(j).decrypt(T,F,j,P)}}}}()});o.StreamCipher=h.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,j){var P=this._cipher,D=P.blockSize;T.call(this,F,j,D),P.encryptBlock(F,j),this._prevBlock=F.slice(j,j+D)}}),_.Decryptor=_.extend({processBlock:function(F,j){var P=this._cipher,D=P.blockSize,C=F.slice(j,j+D);P.decryptBlock(F,j),T.call(this,F,j,D),this._prevBlock=C}});function T(F,j,P){var D,C=this._iv;C?(D=C,this._iv=n):D=this._prevBlock;for(var L=0;L<P;L++)F[j+L]^=D[L]}return _}(),E=i.pad={},y=E.Pkcs7={pad:function(_,T){for(var F=T*4,j=F-_.sigBytes%F,P=j<<24|j<<16|j<<8|j,D=[],C=0;C<j;C+=4)D.push(P);var L=a.create(D,j);_.concat(L)},unpad:function(_){var T=_.words[_.sigBytes-1>>>2]&255;_.sigBytes-=T}};o.BlockCipher=h.extend({cfg:h.cfg.extend({mode:b,padding:y}),reset:function(){var _;h.reset.call(this);var T=this.cfg,F=T.iv,j=T.mode;this._xformMode==this._ENC_XFORM_MODE?_=j.createEncryptor:(_=j.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==_?this._mode.init(this,F&&F.words):(this._mode=_.call(j,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,j=_.salt;return j?T=a.create([1398893684,1701076831]).concat(j).concat(F):T=F,T.toString(l)},parse:function(_){var T,F=l.parse(_),j=F.words;return j[0]==1398893684&&j[1]==1701076831&&(T=a.create(j.slice(2,4)),j.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,j){j=this.cfg.extend(j);var P=_.createEncryptor(F,j),D=P.finalize(T),C=P.cfg;return v.create({ciphertext:D,key:F,iv:C.iv,algorithm:_,mode:C.mode,padding:C.padding,blockSize:_.blockSize,formatter:j.format})},decrypt:function(_,T,F,j){j=this.cfg.extend(j),T=this._parse(T,j.format);var P=_.createDecryptor(F,j).finalize(T.ciphertext);return P},_parse:function(_,T){return typeof _=="string"?T.parse(_,this):_}}),x=i.kdf={},A=x.OpenSSL={execute:function(_,T,F,j,P){if(j||(j=a.random(64/8)),P)var D=p.create({keySize:T+F,hasher:P}).compute(_,j);else var D=p.create({keySize:T+F}).compute(_,j);var C=a.create(D.words.slice(T),F*4);return D.sigBytes=T*4,v.create({key:D,iv:C,salt:j})}},M=o.PasswordBasedCipher=g.extend({cfg:g.cfg.extend({kdf:A}),encrypt:function(_,T,F,j){j=this.cfg.extend(j);var P=j.kdf.execute(F,_.keySize,_.ivSize,j.salt,j.hasher);j.iv=P.iv;var D=g.encrypt.call(this,_,T,P.key,j);return D.mixIn(P),D},decrypt:function(_,T,F,j){j=this.cfg.extend(j),T=this._parse(T,j.format);var P=j.kdf.execute(F,_.keySize,_.ivSize,T.salt,j.hasher);j.iv=P.iv;var D=g.decrypt.call(this,_,T,P.key,j);return D}})}()})}(Zn)),Zn.exports}(function(e,t){(function(r,n,i){e.exports=n(Ot(),Io,Co,ko(),hh())})(nt,function(r){return function(){var n=r,i=n.lib,o=i.BlockCipher,s=n.algo,a=[],c=[],u=[],l=[],f=[],p=[],h=[],d=[],m=[],b=[];(function(){for(var v=[],w=0;w<256;w++)w<128?v[w]=w<<1:v[w]=w<<1^283;for(var S=0,g=0,w=0;w<256;w++){var x=g^g<<1^g<<2^g<<3^g<<4;x=x>>>8^x&255^99,a[S]=x,c[x]=S;var A=v[S],M=v[A],_=v[M],T=v[x]*257^x*16843008;u[S]=T<<24|T>>>8,l[S]=T<<16|T>>>16,f[S]=T<<8|T>>>24,p[S]=T;var T=_*16843009^M*65537^A*257^S*16843008;h[x]=T<<24|T>>>8,d[x]=T<<16|T>>>16,m[x]=T<<8|T>>>24,b[x]=T,S?(S=A^v[v[v[_^A]]],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,A=(x+1)*4,M=this._keySchedule=[],_=0;_<A;_++)_<g?M[_]=S[_]:(v=M[_-1],_%g?g>6&&_%g==4&&(v=a[v>>>24]<<24|a[v>>>16&255]<<16|a[v>>>8&255]<<8|a[v&255]):(v=v<<8|v>>>24,v=a[v>>>24]<<24|a[v>>>16&255]<<16|a[v>>>8&255]<<8|a[v&255],v^=E[_/g|0]<<24),M[_]=M[_-g]^v);for(var T=this._invKeySchedule=[],F=0;F<A;F++){var _=A-F;if(F%4)var v=M[_];else var v=M[_-4];F<4||_<=4?T[F]=v:T[F]=h[a[v>>>24]]^d[a[v>>>16&255]]^m[a[v>>>8&255]]^b[a[v&255]]}}},encryptBlock:function(v,w){this._doCryptBlock(v,w,this._keySchedule,u,l,f,p,a)},decryptBlock:function(v,w){var S=v[w+1];v[w+1]=v[w+3],v[w+3]=S,this._doCryptBlock(v,w,this._invKeySchedule,h,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,A,M,_){for(var T=this._nRounds,F=v[w]^S[0],j=v[w+1]^S[1],P=v[w+2]^S[2],D=v[w+3]^S[3],C=4,L=1;L<T;L++){var U=g[F>>>24]^x[j>>>16&255]^A[P>>>8&255]^M[D&255]^S[C++],H=g[j>>>24]^x[P>>>16&255]^A[D>>>8&255]^M[F&255]^S[C++],z=g[P>>>24]^x[D>>>16&255]^A[F>>>8&255]^M[j&255]^S[C++],O=g[D>>>24]^x[F>>>16&255]^A[j>>>8&255]^M[P&255]^S[C++];F=U,j=H,P=z,D=O}var U=(_[F>>>24]<<24|_[j>>>16&255]<<16|_[P>>>8&255]<<8|_[D&255])^S[C++],H=(_[j>>>24]<<24|_[P>>>16&255]<<16|_[D>>>8&255]<<8|_[F&255])^S[C++],z=(_[P>>>24]<<24|_[D>>>16&255]<<16|_[F>>>8&255]<<8|_[j&255])^S[C++],O=(_[D>>>24]<<24|_[F>>>16&255]<<16|_[j>>>8&255]<<8|_[P&255])^S[C++];v[w]=U,v[w+1]=H,v[w+2]=z,v[w+3]=O},keySize:256/32});n.AES=o._createHelper(y)}(),r.AES})})(Fo);var ph=Fo.exports;ee(ph);var dh="0123456789abcdefghijklmnopqrstuvwxyz";function vt(e){return dh.charAt(e)}function mh(e,t){return e&t}function Ee(e,t){return e|t}function Xn(e,t){return e^t}function ti(e,t){return e&~t}function gh(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 yh(e){for(var t=0;e!=0;)e&=e-1,++t;return t}var Jt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Mo="=";function ke(e){var t,r,n="";for(t=0;t+3<=e.length;t+=3)r=parseInt(e.substring(t,t+3),16),n+=Jt.charAt(r>>6)+Jt.charAt(r&63);for(t+1==e.length?(r=parseInt(e.substring(t,t+1),16),n+=Jt.charAt(r<<2)):t+2==e.length&&(r=parseInt(e.substring(t,t+2),16),n+=Jt.charAt(r>>2)+Jt.charAt((r&3)<<4));(n.length&3)>0;)n+=Mo;return n}function ei(e){var t="",r,n=0,i=0;for(r=0;r<e.length&&e.charAt(r)!=Mo;++r){var o=Jt.indexOf(e.charAt(r));o<0||(n==0?(t+=vt(o>>2),i=o&3,n=1):n==1?(t+=vt(i<<2|o>>4),i=o&15,n=2):n==2?(t+=vt(i),t+=vt(o>>2),i=o&3,n=3):(t+=vt(i<<2|o>>4),t+=vt(o&15),n=0))}return n==1&&(t+=vt(i<<2)),t}var Ht,vh={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 a=e.charAt(t);if(a=="=")break;if(a=Ht[a],a!=-1){if(a===void 0)throw new Error("Illegal character at offset "+t);o|=a,++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}},Ct,jr={decode:function(e){var t;if(Ct===void 0){var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n=`= \f
21
+ \r  \u2028\u2029`;for(Ct=Object.create(null),t=0;t<64;++t)Ct[r.charAt(t)]=t;for(Ct["-"]=62,Ct._=63,t=0;t<n.length;++t)Ct[n.charAt(t)]=-1}var i=[],o=0,s=0;for(t=0;t<e.length;++t){var a=e.charAt(t);if(a=="=")break;if(a=Ct[a],a!=-1){if(a===void 0)throw new Error("Illegal character at offset "+t);o|=a,++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)}},zt=1e13,ce=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<zt?r=0:(r=0|s/zt,s-=r*zt),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+=zt,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+=(zt+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*zt+t[n];return r},e.prototype.simplify=function(){var t=this.buf;return t.length==1?t[0]:this},e}(),Uo="…",bh=/^(\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)?)?$/,wh=/^(\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 Gt(e,t){return e.length>t&&(e=e.substring(0,t)+Uo),e}var ar=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?bh:wh).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,a="";n==o&&++t<r;)n=this.get(t);if(s=r-t,s===0)return i?-1:0;if(s>4){for(a=n,s<<=3;!((+a^o)&128);)a=+a<<1,--s;a="("+s+` bit)
23
+ `}i&&(n=n-256);for(var c=new ce(n),u=t+1;u<r;++u)c.mulAdd(256,this.get(u));return a+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
+ `,a="",c=t+1;c<r;++c){for(var u=this.get(c),l=c==r-1?i:0,f=7;f>=l;--f)a+=u>>f&1?"1":"0";if(a.length>n)return s+Gt(a,n)}return s+a},e.prototype.parseOctetString=function(t,r,n){if(this.isASCII(t,r))return Gt(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+=Uo),o},e.prototype.parseOID=function(t,r,n){for(var i="",o=new ce,s=0,a=t;a<r;++a){var c=this.get(a);if(o.mulAdd(128,c&127),s+=7,!(c&128)){if(i==="")if(o=o.simplify(),o instanceof ce)o.sub(80),i="2."+o.toString();else{var u=o<80?o<40?0:1:2;i=u+"."+(o-u*40)}else i+="."+o.toString();if(i.length>n)return Gt(i,n);o=new ce,s=0}}return s>0&&(i+=".incomplete"),i},e}(),_h=function(){function e(t,r,n,i,o){if(!(i instanceof ri))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 Gt(this.stream.parseStringUTF(r,r+n),t);case 18:case 19:case 20:case 21:case 22:case 26:return Gt(this.stream.parseStringISO(r,r+n),t);case 30:return Gt(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 ar?r=t:r=new ar(t,0);var n=new ar(r),i=new ri(r),o=e.decodeLength(r),s=r.pos,a=s-n.pos,c=null,u=function(){var f=[];if(o!==null){for(var p=s+o;r.pos<p;)f[f.length]=e.decode(r);if(r.pos!=p)throw new Error("Content size is not correct for container starting at offset "+s)}else try{for(;;){var h=e.decode(r);if(h.tag.isEOC())break;f[f.length]=h}o=s-r.pos}catch(d){throw new Error("Exception while decoding undefined length content: "+d)}return f};if(i.tagConstructed)c=u();else if(i.isUniversal()&&(i.tagNumber==3||i.tagNumber==4))try{if(i.tagNumber==3&&r.get()!=0)throw new Error("BIT STRINGs with unused bits cannot encapsulate.");c=u();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,a,o,i,c)},e}(),ri=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 ce;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}(),Et,Eh=0xdeadbeefcafe,ni=(Eh&16777215)==15715070,rt=[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],Sh=(1<<26)/rt[rt.length-1],W=function(){function e(t,r,n){t!=null&&(typeof t=="number"?this.fromNumber(t,r,n):r==null&&typeof t!="string"?this.fromString(t,256):this.fromString(t,r))}return e.prototype.toString=function(t){if(this.s<0)return"-"+this.negate().toString(t);var r;if(t==16)r=4;else if(t==8)r=3;else if(t==2)r=1;else if(t==32)r=5;else if(t==4)r=2;else return this.toRadix(t);var n=(1<<r)-1,i,o=!1,s="",a=this.t,c=this.DB-a*this.DB%r;if(a-- >0)for(c<this.DB&&(i=this[a]>>c)>0&&(o=!0,s=vt(i));a>=0;)c<r?(i=(this[a]&(1<<c)-1)<<r-c,i|=this[--a]>>(c+=this.DB-r)):(i=this[a]>>(c-=r)&n,c<=0&&(c+=this.DB,--a)),i>0&&(o=!0),o&&(s+=vt(i));return o?s:"0"},e.prototype.negate=function(){var t=J();return e.ZERO.subTo(this,t),t},e.prototype.abs=function(){return this.s<0?this.negate():this},e.prototype.compareTo=function(t){var r=this.s-t.s;if(r!=0)return r;var n=this.t;if(r=n-t.t,r!=0)return this.s<0?-r:r;for(;--n>=0;)if((r=this[n]-t[n])!=0)return r;return 0},e.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+Se(this[this.t-1]^this.s&this.DM)},e.prototype.mod=function(t){var r=J();return this.abs().divRemTo(t,null,r),this.s<0&&r.compareTo(e.ZERO)>0&&t.subTo(r,r),r},e.prototype.modPowInt=function(t,r){var n;return t<256||r.isEven()?n=new ii(r):n=new oi(r),this.exp(t,n)},e.prototype.clone=function(){var t=J();return this.copyTo(t),t},e.prototype.intValue=function(){if(this.s<0){if(this.t==1)return this[0]-this.DV;if(this.t==0)return-1}else{if(this.t==1)return this[0];if(this.t==0)return 0}return(this[1]&(1<<32-this.DB)-1)<<this.DB|this[0]},e.prototype.byteValue=function(){return this.t==0?this.s:this[0]<<24>>24},e.prototype.shortValue=function(){return this.t==0?this.s:this[0]<<16>>16},e.prototype.signum=function(){return this.s<0?-1:this.t<=0||this.t==1&&this[0]<=0?0:1},e.prototype.toByteArray=function(){var t=this.t,r=[];r[0]=this.s;var n=this.DB-t*this.DB%8,i,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=J();return this.bitwiseTo(t,mh,r),r},e.prototype.or=function(t){var r=J();return this.bitwiseTo(t,Ee,r),r},e.prototype.xor=function(t){var r=J();return this.bitwiseTo(t,Xn,r),r},e.prototype.andNot=function(t){var r=J();return this.bitwiseTo(t,ti,r),r},e.prototype.not=function(){for(var t=J(),r=0;r<this.t;++r)t[r]=this.DM&~this[r];return t.t=this.t,t.s=~this.s,t},e.prototype.shiftLeft=function(t){var r=J();return t<0?this.rShiftTo(-t,r):this.lShiftTo(t,r),r},e.prototype.shiftRight=function(t){var r=J();return t<0?this.lShiftTo(-t,r):this.rShiftTo(t,r),r},e.prototype.getLowestSetBit=function(){for(var t=0;t<this.t;++t)if(this[t]!=0)return t*this.DB+gh(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+=yh(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,Ee)},e.prototype.clearBit=function(t){return this.changeBit(t,ti)},e.prototype.flipBit=function(t){return this.changeBit(t,Xn)},e.prototype.add=function(t){var r=J();return this.addTo(t,r),r},e.prototype.subtract=function(t){var r=J();return this.subTo(t,r),r},e.prototype.multiply=function(t){var r=J();return this.multiplyTo(t,r),r},e.prototype.divide=function(t){var r=J();return this.divRemTo(t,r,null),r},e.prototype.remainder=function(t){var r=J();return this.divRemTo(t,null,r),r},e.prototype.divideAndRemainder=function(t){var r=J(),n=J();return this.divRemTo(t,r,n),[r,n]},e.prototype.modPow=function(t,r){var n=t.bitLength(),i,o=St(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 ii(r):r.isEven()?s=new Th(r):s=new oi(r);var a=[],c=3,u=i-1,l=(1<<i)-1;if(a[1]=s.convert(this),i>1){var f=J();for(s.sqrTo(a[1],f);c<=l;)a[c]=J(),s.mulTo(f,a[c-2],a[c]),c+=2}var p=t.t-1,h,d=!0,m=J(),b;for(n=Se(t[p])-1;p>=0;){for(n>=u?h=t[p]>>n-u&l:(h=(t[p]&(1<<n+1)-1)<<u-n,p>0&&(h|=t[p-1]>>this.DB+n-u)),c=i;!(h&1);)h>>=1,--c;if((n-=c)<0&&(n+=this.DB,--p),d)a[h].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,a[h],o)}for(;p>=0&&!(t[p]&1<<n);)s.sqrTo(o,m),b=o,o=m,m=b,--n<0&&(n=this.DB-1,--p)}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=St(1),s=St(0),a=St(0),c=St(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?((!a.isEven()||!c.isEven())&&(a.addTo(this,a),c.subTo(t,c)),a.rShiftTo(1,a)):c.isEven()||c.subTo(t,c),c.rShiftTo(1,c);n.compareTo(i)>=0?(n.subTo(i,n),r&&o.subTo(a,o),s.subTo(c,s)):(i.subTo(n,i),r&&a.subTo(o,a),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 xh)},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]<=rt[rt.length-1]){for(r=0;r<rt.length;++r)if(n[0]==rt[r])return!0;return!1}if(n.isEven())return!1;for(r=1;r<rt.length;){for(var i=rt[r],o=r+1;o<rt.length&&i<Sh;)i*=rt[o++];for(i=n.modInt(i);r<o;)if(i%rt[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 a=n==8?+t[i]&255:ai(t,i);if(a<0){t.charAt(i)=="-"&&(o=!0);continue}o=!1,s==0?this[this.t++]=a:s+n>this.DB?(this[this.t-1]|=(a&(1<<this.DB-s)-1)<<s,this[this.t++]=a>>this.DB-s):this[this.t-1]|=a<<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),a=this.s<<n&this.DM,c=this.t-1;c>=0;--c)r[c+s+1]=this[c]>>i|a,a=(this[c]&o)<<n;for(var c=s-1;c>=0;--c)r[c]=0;r[s]=a,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 a=n+1;a<this.t;++a)r[a-n-1]|=(this[a]&s)<<o,r[a-n]=this[a]>>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=J());var s=J(),a=this.s,c=t.s,u=this.DB-Se(i[i.t-1]);u>0?(i.lShiftTo(u,s),o.lShiftTo(u,n)):(i.copyTo(s),o.copyTo(n));var l=s.t,f=s[l-1];if(f!=0){var p=f*(1<<this.F1)+(l>1?s[l-2]>>this.F2:0),h=this.FV/p,d=(1<<this.F1)/p,m=1<<this.F2,b=n.t,E=b-l,y=r!=null?r:J();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]*h+(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),a!=c&&e.ZERO.subTo(r,r)),n.t=l,n.clamp(),u>0&&n.rShiftTo(u,n),a<0&&e.ZERO.subTo(n,n)}}},e.prototype.invDigit=function(){if(this.t<1)return 0;var t=this[0];if(!(t&1))return 0;var r=t&3;return r=r*(2-(t&15)*r)&15,r=r*(2-(t&255)*r)&255,r=r*(2-((t&65535)*r&65535))&65535,r=r*(2-t*r%this.DV)%this.DV,r>0?this.DV-r:-r},e.prototype.isEven=function(){return(this.t>0?this[0]&1:this.s)==0},e.prototype.exp=function(t,r){if(t>4294967295||t<1)return e.ONE;var n=J(),i=J(),o=r.convert(this),s=Se(t)-1;for(o.copyTo(n);--s>=0;)if(r.sqrTo(n,i),(t&1<<s)>0)r.mulTo(i,o,n);else{var a=n;n=i,i=a}return r.revert(n)},e.prototype.chunkSize=function(t){return Math.floor(Math.LN2*this.DB/Math.log(t))},e.prototype.toRadix=function(t){if(t==null&&(t=10),this.signum()==0||t<2||t>36)return"0";var r=this.chunkSize(t),n=Math.pow(t,r),i=St(n),o=J(),s=J(),a="";for(this.divRemTo(i,o,s);o.signum()>0;)a=(n+s.intValue()).toString(t).substr(1)+a,o.divRemTo(i,o,s);return s.intValue().toString(t)+a},e.prototype.fromRadix=function(t,r){this.fromInt(0),r==null&&(r=10);for(var n=this.chunkSize(r),i=Math.pow(r,n),o=!1,s=0,a=0,c=0;c<t.length;++c){var u=ai(t,c);if(u<0){t.charAt(c)=="-"&&this.signum()==0&&(o=!0);continue}a=r*a+u,++s>=n&&(this.dMultiply(i),this.dAddOffset(a,0),s=0,a=0)}s>0&&(this.dMultiply(Math.pow(r,s)),this.dAddOffset(a,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),Ee,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>rt.length&&(t=rt.length);for(var o=J(),s=0;s<t;++s){o.fromInt(rt[Math.floor(Math.random()*rt.length)]);var a=o.modPow(i,this);if(a.compareTo(e.ONE)!=0&&a.compareTo(r)!=0){for(var c=1;c++<n&&a.compareTo(r)!=0;)if(a=a.modPowInt(2,this),a.compareTo(e.ONE)==0)return!1;if(a.compareTo(r)!=0)return!1}}return!0},e.prototype.square=function(){var t=J();return this.squareTo(t),t},e.prototype.gcda=function(t,r){var n=this.s<0?this.negate():this.clone(),i=t.s<0?t.negate():t.clone();if(n.compareTo(i)<0){var o=n;n=i,i=o}var s=n.getLowestSetBit(),a=i.getLowestSetBit();if(a<0){r(n);return}s<a&&(a=s),a>0&&(n.rShiftTo(a,n),i.rShiftTo(a,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):(a>0&&i.lShiftTo(a,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),Ee,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 a=[],c=t&7;a.length=(t>>3)+1,r.nextBytes(a),c>0?a[0]&=(1<<c)-1:a[0]=0,this.fromString(a,256)}},e}(),xh=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}(),ii=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}(),oi=function(){function e(t){this.m=t,this.mp=t.invDigit(),this.mpl=this.mp&32767,this.mph=this.mp>>15,this.um=(1<<t.DB-15)-1,this.mt2=2*t.t}return e.prototype.convert=function(t){var r=J();return t.abs().dlShiftTo(this.m.t,r),r.divRemTo(this.m,null,r),t.s<0&&r.compareTo(W.ZERO)>0&&this.m.subTo(r,r),r},e.prototype.revert=function(t){var r=J();return t.copyTo(r),this.reduce(r),r},e.prototype.reduce=function(t){for(;t.t<=this.mt2;)t[t.t++]=0;for(var r=0;r<this.m.t;++r){var n=t[r]&32767,i=n*this.mpl+((n*this.mph+(t[r]>>15)*this.mpl&this.um)<<15)&t.DM;for(n=r+this.m.t,t[n]+=this.m.am(0,i,t,r,0,this.m.t);t[n]>=t.DV;)t[n]-=t.DV,t[++n]++}t.clamp(),t.drShiftTo(this.m.t,t),t.compareTo(this.m)>=0&&t.subTo(this.m,t)},e.prototype.mulTo=function(t,r,n){t.multiplyTo(r,n),this.reduce(n)},e.prototype.sqrTo=function(t,r){t.squareTo(r),this.reduce(r)},e}(),Th=function(){function e(t){this.m=t,this.r2=J(),this.q3=J(),W.ONE.dlShiftTo(2*t.t,this.r2),this.mu=this.r2.divide(t)}return e.prototype.convert=function(t){if(t.s<0||t.t>2*this.m.t)return t.mod(this.m);if(t.compareTo(this.m)<0)return t;var r=J();return t.copyTo(r),this.reduce(r),r},e.prototype.revert=function(t){return t},e.prototype.reduce=function(t){for(t.drShiftTo(this.m.t-1,this.r2),t.t>this.m.t+1&&(t.t=this.m.t+1,t.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);t.compareTo(this.r2)<0;)t.dAddOffset(1,this.m.t+1);for(t.subTo(this.r2,t);t.compareTo(this.m)>=0;)t.subTo(this.m,t)},e.prototype.mulTo=function(t,r,n){t.multiplyTo(r,n),this.reduce(n)},e.prototype.sqrTo=function(t,r){t.squareTo(r),this.reduce(r)},e}();function J(){return new W(null)}function G(e,t){return new W(e,t)}var si=typeof navigator<"u";si&&ni&&navigator.appName=="Microsoft Internet Explorer"?(W.prototype.am=function(e,t,r,n,i,o){for(var s=t&32767,a=t>>15;--o>=0;){var c=this[e]&32767,u=this[e++]>>15,l=a*c+u*s;c=s*c+((l&32767)<<15)+r[n]+(i&1073741823),i=(c>>>30)+(l>>>15)+a*u+(i>>>30),r[n++]=c&1073741823}return i},Et=30):si&&ni&&navigator.appName!="Netscape"?(W.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},Et=26):(W.prototype.am=function(e,t,r,n,i,o){for(var s=t&16383,a=t>>14;--o>=0;){var c=this[e]&16383,u=this[e++]>>14,l=a*c+u*s;c=s*c+((l&16383)<<14)+r[n]+i,i=(c>>28)+(l>>14)+a*u,r[n++]=c&268435455}return i},Et=28),W.prototype.DB=Et,W.prototype.DM=(1<<Et)-1,W.prototype.DV=1<<Et;var ur=52;W.prototype.FV=Math.pow(2,ur),W.prototype.F1=ur-Et,W.prototype.F2=2*Et-ur;var We=[],Xt,ct;for(Xt=48,ct=0;ct<=9;++ct)We[Xt++]=ct;for(Xt=97,ct=10;ct<36;++ct)We[Xt++]=ct;for(Xt=65,ct=10;ct<36;++ct)We[Xt++]=ct;function ai(e,t){var r=We[e.charCodeAt(t)];return r!=null?r:-1}function St(e){var t=J();return t.fromInt(e),t}function Se(e){var t=1,r;return(r=e>>>16)!=0&&(e=r,t+=16),(r=e>>8)!=0&&(e=r,t+=8),(r=e>>4)!=0&&(e=r,t+=4),(r=e>>2)!=0&&(e=r,t+=2),(r=e>>1)!=0&&(e=r,t+=1),t}W.ZERO=St(0),W.ONE=St(1);var Rh=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 Ah(){return new Rh}var Lo=256,xe,Tt=null,lt;if(Tt==null){Tt=[],lt=0;var Te=void 0;if(typeof window<"u"&&window.crypto&&window.crypto.getRandomValues){var cr=new Uint32Array(256);for(window.crypto.getRandomValues(cr),Te=0;Te<cr.length;++Te)Tt[lt++]=cr[Te]&255}var Re=0,Ae=function(e){if(Re=Re||0,Re>=256||lt>=Lo){window.removeEventListener?window.removeEventListener("mousemove",Ae,!1):window.detachEvent&&window.detachEvent("onmousemove",Ae);return}try{var t=e.x+e.y;Tt[lt++]=t&255,Re+=1}catch(r){}};typeof window<"u"&&(window.addEventListener?window.addEventListener("mousemove",Ae,!1):window.attachEvent&&window.attachEvent("onmousemove",Ae))}function Oh(){if(xe==null){for(xe=Ah();lt<Lo;){var e=Math.floor(65536*Math.random());Tt[lt++]=e&255}for(xe.init(Tt),lt=0;lt<Tt.length;++lt)Tt[lt]=0;lt=0}return xe.next()}var Br=function(){function e(){}return e.prototype.nextBytes=function(t){for(var r=0;r<t.length;++r)t[r]=Oh()},e}();function $h(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 Dh(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 Br,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 W(r)}var jh=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=Dh(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,a=0;a<r*2-s;a++)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,a,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(a,16),this.coeff=G(c,16)):console.error("Invalid RSA private key")},e.prototype.generate=function(t,r){var n=new Br,i=t>>1;this.e=parseInt(r,16);for(var o=new W(r,16);;){for(;this.p=new W(t-i,1,n),!(this.p.subtract(W.ONE).gcd(o).compareTo(W.ONE)==0&&this.p.isProbablePrime(10)););for(;this.q=new W(i,1,n),!(this.q.subtract(W.ONE).gcd(o).compareTo(W.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 a=this.p.subtract(W.ONE),c=this.q.subtract(W.ONE),u=a.multiply(c);if(u.gcd(o).compareTo(W.ONE)==0){this.n=this.p.multiply(this.q),this.d=o.modInverse(u),this.dmp1=this.d.mod(a),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:Bh(n,this.n.bitLength()+7>>3)},e.prototype.generateAsync=function(t,r,n){var i=new Br,o=t>>1;this.e=parseInt(r,16);var s=new W(r,16),a=this,c=function(){var u=function(){if(a.p.compareTo(a.q)<=0){var p=a.p;a.p=a.q,a.q=p}var h=a.p.subtract(W.ONE),d=a.q.subtract(W.ONE),m=h.multiply(d);m.gcd(s).compareTo(W.ONE)==0?(a.n=a.p.multiply(a.q),a.d=s.modInverse(m),a.dmp1=a.d.mod(h),a.dmq1=a.d.mod(d),a.coeff=a.q.modInverse(a.p),setTimeout(function(){n()},0)):setTimeout(c,0)},l=function(){a.q=J(),a.q.fromNumberAsync(o,1,i,function(){a.q.subtract(W.ONE).gcda(s,function(p){p.compareTo(W.ONE)==0&&a.q.isProbablePrime(10)?setTimeout(u,0):setTimeout(l,0)})})},f=function(){a.p=J(),a.p.fromNumberAsync(t-o,1,i,function(){a.p.subtract(W.ONE).gcda(s,function(p){p.compareTo(W.ONE)==0&&a.p.isProbablePrime(10)?setTimeout(l,0):setTimeout(f,0)})})};setTimeout(f,0)};setTimeout(c,0)},e.prototype.sign=function(t,r,n){var i=Ch(n),o=i+r(t).toString(),s=$h(o,this.n.bitLength()/4);if(s==null)return null;var a=this.doPrivate(s);if(a==null)return null;var c=a.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/,""),a=Nh(s);return a==n(t).toString()},e}();function Bh(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 Ch(e){return De[e]||""}function Nh(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 Q={};Q.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(a,c){for(i=0;i<s.length;i=i+1){var u=s[i],l=c[u];typeof l=="function"&&l!=Object.prototype[u]&&(a[u]=l)}})}catch(a){}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 $={};(typeof $.asn1>"u"||!$.asn1)&&($.asn1={}),$.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 W(i,16),a=s.xor(e).add(W.ONE);t=a.toString(16).replace(/^-/,"")}return t},this.getPEMStringFromHex=function(e,t){return hextopem(e,t)},this.newObject=function(e){var t=$,r=t.asn1,n=r.DERBoolean,i=r.DERInteger,o=r.DERBitString,s=r.DEROctetString,a=r.DERNull,c=r.DERObjectIdentifier,u=r.DEREnumerated,l=r.DERUTF8String,f=r.DERNumericString,p=r.DERPrintableString,h=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 a(e[g]);if(g=="oid")return new c(e[g]);if(g=="enum")return new u(e[g]);if(g=="utf8str")return new l(e[g]);if(g=="numstr")return new f(e[g]);if(g=="prnstr")return new p(e[g]);if(g=="telstr")return new h(e[g]);if(g=="ia5str")return new d(e[g]);if(g=="utctime")return new m(e[g]);if(g=="gentime")return new b(e[g]);if(g=="seq"){for(var x=e[g],A=[],M=0;M<x.length;M++){var _=w(x[M]);A.push(_)}return new E({array:A})}if(g=="set"){for(var x=e[g],A=[],M=0;M<x.length;M++){var _=w(x[M]);A.push(_)}return new y({array:A})}if(g=="tag"){var T=e[g];if(Object.prototype.toString.call(T)==="[object Array]"&&T.length==3){var F=w(T[2]);return new v({tag:T[0],explicit:T[1],obj:F})}else{var j={};if(T.explicit!==void 0&&(j.explicit=T.explicit),T.tag!==void 0&&(j.tag=T.tag),T.obj===void 0)throw"obj shall be specified for 'tag'.";return j.obj=w(T.obj),new v(j)}}},this.jsonToASN1HEX=function(e){var t=this.newObject(e);return t.getEncodedHex()}},$.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 a=parseInt(e.substr(s,2),16),c=("00000000"+a.toString(2)).slice(-8);if(o=o+c.substr(1,7),c.substr(0,1)=="0"){var u=new W(o,2);i=i+"."+u.toString(10),o=""}}return i},$.asn1.ASN1Util.oidIntToHex=function(e){var t=function(a){var c=a.toString(16);return c.length==1&&(c="0"+c),c},r=function(a){var c="",u=new W(a,10),l=u.toString(2),f=7-l.length%7;f==7&&(f=0);for(var p="",h=0;h<f;h++)p+="0";l=p+l;for(var h=0;h<l.length-1;h+=7){var d=l.substr(h,7);h!=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},$.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""}},$.asn1.DERAbstractString=function(e){$.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))},Q.lang.extend($.asn1.DERAbstractString,$.asn1.ASN1Object),$.asn1.DERAbstractTime=function(e){$.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 a=i(String(o.getMonth()+1),2),c=i(String(o.getDate()),2),u=i(String(o.getHours()),2),l=i(String(o.getMinutes()),2),f=i(String(o.getSeconds()),2),p=s+a+c+u+l+f;if(n===!0){var h=o.getMilliseconds();if(h!=0){var d=i(String(h),3);d=d.replace(/[0]+$/,""),p=p+"."+d}}return p+"Z"},this.zeroPadding=function(t,r){return t.length>=r?t:new Array(r-t.length+1).join("0")+t},this.getString=function(){return this.s},this.setString=function(t){this.hTLV=null,this.isModified=!0,this.s=t,this.hV=stohex(t)},this.setByDateValue=function(t,r,n,i,o,s){var a=new Date(Date.UTC(t,r-1,n,i,o,s,0));this.setByDate(a)},this.getFreshValueHex=function(){return this.hV}},Q.lang.extend($.asn1.DERAbstractTime,$.asn1.ASN1Object),$.asn1.DERAbstractStructured=function(e){$.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)},Q.lang.extend($.asn1.DERAbstractStructured,$.asn1.ASN1Object),$.asn1.DERBoolean=function(){$.asn1.DERBoolean.superclass.constructor.call(this),this.hT="01",this.hTLV="0101ff"},Q.lang.extend($.asn1.DERBoolean,$.asn1.ASN1Object),$.asn1.DERInteger=function(e){$.asn1.DERInteger.superclass.constructor.call(this),this.hT="02",this.setByBigInteger=function(t){this.hTLV=null,this.isModified=!0,this.hV=$.asn1.ASN1Util.bigIntToMinTwosComplementsHex(t)},this.setByInteger=function(t){var r=new W(String(t),10);this.setByBigInteger(r)},this.setValueHex=function(t){this.hV=t},this.getFreshValueHex=function(){return this.hV},typeof e<"u"&&(typeof e.bigint<"u"?this.setByBigInteger(e.bigint):typeof e.int<"u"?this.setByInteger(e.int):typeof e=="number"?this.setByInteger(e):typeof e.hex<"u"&&this.setValueHex(e.hex))},Q.lang.extend($.asn1.DERInteger,$.asn1.ASN1Object),$.asn1.DERBitString=function(e){if(e!==void 0&&typeof e.obj<"u"){var t=$.asn1.ASN1Util.newObject(e.obj);e.hex="00"+t.getEncodedHex()}$.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),a=parseInt(s,2).toString(16);a.length==1&&(a="0"+a),o+=a}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))},Q.lang.extend($.asn1.DERBitString,$.asn1.ASN1Object),$.asn1.DEROctetString=function(e){if(e!==void 0&&typeof e.obj<"u"){var t=$.asn1.ASN1Util.newObject(e.obj);e.hex=t.getEncodedHex()}$.asn1.DEROctetString.superclass.constructor.call(this,e),this.hT="04"},Q.lang.extend($.asn1.DEROctetString,$.asn1.DERAbstractString),$.asn1.DERNull=function(){$.asn1.DERNull.superclass.constructor.call(this),this.hT="05",this.hTLV="0500"},Q.lang.extend($.asn1.DERNull,$.asn1.ASN1Object),$.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 W(n,10),s=o.toString(2),a=7-s.length%7;a==7&&(a=0);for(var c="",u=0;u<a;u++)c+="0";s=c+s;for(var u=0;u<s.length-1;u+=7){var l=s.substr(u,7);u!=s.length-7&&(l="1"+l),i+=t(parseInt(l,2))}return i};$.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 a=0;a<o.length;a++)i+=r(o[a]);this.hTLV=null,this.isModified=!0,this.s=null,this.hV=i},this.setValueName=function(n){var i=$.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))},Q.lang.extend($.asn1.DERObjectIdentifier,$.asn1.ASN1Object),$.asn1.DEREnumerated=function(e){$.asn1.DEREnumerated.superclass.constructor.call(this),this.hT="0a",this.setByBigInteger=function(t){this.hTLV=null,this.isModified=!0,this.hV=$.asn1.ASN1Util.bigIntToMinTwosComplementsHex(t)},this.setByInteger=function(t){var r=new W(String(t),10);this.setByBigInteger(r)},this.setValueHex=function(t){this.hV=t},this.getFreshValueHex=function(){return this.hV},typeof e<"u"&&(typeof e.int<"u"?this.setByInteger(e.int):typeof e=="number"?this.setByInteger(e):typeof e.hex<"u"&&this.setValueHex(e.hex))},Q.lang.extend($.asn1.DEREnumerated,$.asn1.ASN1Object),$.asn1.DERUTF8String=function(e){$.asn1.DERUTF8String.superclass.constructor.call(this,e),this.hT="0c"},Q.lang.extend($.asn1.DERUTF8String,$.asn1.DERAbstractString),$.asn1.DERNumericString=function(e){$.asn1.DERNumericString.superclass.constructor.call(this,e),this.hT="12"},Q.lang.extend($.asn1.DERNumericString,$.asn1.DERAbstractString),$.asn1.DERPrintableString=function(e){$.asn1.DERPrintableString.superclass.constructor.call(this,e),this.hT="13"},Q.lang.extend($.asn1.DERPrintableString,$.asn1.DERAbstractString),$.asn1.DERTeletexString=function(e){$.asn1.DERTeletexString.superclass.constructor.call(this,e),this.hT="14"},Q.lang.extend($.asn1.DERTeletexString,$.asn1.DERAbstractString),$.asn1.DERIA5String=function(e){$.asn1.DERIA5String.superclass.constructor.call(this,e),this.hT="16"},Q.lang.extend($.asn1.DERIA5String,$.asn1.DERAbstractString),$.asn1.DERUTCTime=function(e){$.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))},Q.lang.extend($.asn1.DERUTCTime,$.asn1.DERAbstractTime),$.asn1.DERGeneralizedTime=function(e){$.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))},Q.lang.extend($.asn1.DERGeneralizedTime,$.asn1.DERAbstractTime),$.asn1.DERSequence=function(e){$.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}},Q.lang.extend($.asn1.DERSequence,$.asn1.DERAbstractStructured),$.asn1.DERSet=function(e){$.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)},Q.lang.extend($.asn1.DERSet,$.asn1.DERAbstractStructured),$.asn1.DERTaggedObject=function(e){$.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)))},Q.lang.extend($.asn1.DERTaggedObject,$.asn1.ASN1Object);var Ih=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)}}(),ui=function(e){Ih(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)?vh.decode(r):jr.unarmor(r),a=_h.decode(s);if(a.sub.length===3&&(a=a.sub[2].sub[0]),a.sub.length===9){n=a.sub[1].getHexStringValue(),this.n=G(n,16),i=a.sub[2].getHexStringValue(),this.e=parseInt(i,16);var c=a.sub[3].getHexStringValue();this.d=G(c,16);var u=a.sub[4].getHexStringValue();this.p=G(u,16);var l=a.sub[5].getHexStringValue();this.q=G(l,16);var f=a.sub[6].getHexStringValue();this.dmp1=G(f,16);var p=a.sub[7].getHexStringValue();this.dmq1=G(p,16);var h=a.sub[8].getHexStringValue();this.coeff=G(h,16)}else if(a.sub.length===2)if(a.sub[0].sub){var d=a.sub[1],m=d.sub[0];n=m.sub[0].getHexStringValue(),this.n=G(n,16),i=m.sub[1].getHexStringValue(),this.e=parseInt(i,16)}else n=a.sub[0].getHexStringValue(),this.n=G(n,16),i=a.sub[1].getHexStringValue(),this.e=parseInt(i,16);else return!1;return!0}catch(b){return!1}},t.prototype.getPrivateBaseKey=function(){var r={array:[new $.asn1.DERInteger({int:0}),new $.asn1.DERInteger({bigint:this.n}),new $.asn1.DERInteger({int:this.e}),new $.asn1.DERInteger({bigint:this.d}),new $.asn1.DERInteger({bigint:this.p}),new $.asn1.DERInteger({bigint:this.q}),new $.asn1.DERInteger({bigint:this.dmp1}),new $.asn1.DERInteger({bigint:this.dmq1}),new $.asn1.DERInteger({bigint:this.coeff})]},n=new $.asn1.DERSequence(r);return n.getEncodedHex()},t.prototype.getPrivateBaseKeyB64=function(){return ke(this.getPrivateBaseKey())},t.prototype.getPublicBaseKey=function(){var r=new $.asn1.DERSequence({array:[new $.asn1.DERObjectIdentifier({oid:"1.2.840.113549.1.1.1"}),new $.asn1.DERNull]}),n=new $.asn1.DERSequence({array:[new $.asn1.DERInteger({bigint:this.n}),new $.asn1.DERInteger({int:this.e})]}),i=new $.asn1.DERBitString({hex:"00"+n.getEncodedHex()}),o=new $.asn1.DERSequence({array:[r,i]});return o.getEncodedHex()},t.prototype.getPublicBaseKeyB64=function(){return ke(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}(jh),lr,Ph=typeof process<"u"?(lr=qs)===null||lr===void 0?void 0:lr.npm_package_version:void 0,Fh=function(){function e(t){t===void 0&&(t={}),t=t||{},this.default_key_size=t.default_key_size?parseInt(t.default_key_size,10):1024,this.default_public_exponent=t.default_public_exponent||"010001",this.log=t.log||!1,this.key=null}return e.prototype.setKey=function(t){this.log&&this.key&&console.warn("A key was already set, overriding existing."),this.key=new ui(t)},e.prototype.setPrivateKey=function(t){this.setKey(t)},e.prototype.setPublicKey=function(t){this.setKey(t)},e.prototype.decrypt=function(t){try{return this.getKey().decrypt(ei(t))}catch(r){return!1}},e.prototype.encrypt=function(t){try{return ke(this.getKey().encrypt(t))}catch(r){return!1}},e.prototype.sign=function(t,r,n){try{return ke(this.getKey().sign(t,r,n))}catch(i){return!1}},e.prototype.verify=function(t,r,n){try{return this.getKey().verify(t,ei(r),n)}catch(i){return!1}},e.prototype.getKey=function(t){if(!this.key){if(this.key=new ui,t&&{}.toString.call(t)==="[object Function]"){this.key.generateAsync(this.default_key_size,this.default_public_exponent,t);return}this.key.generate(this.default_key_size,this.default_public_exponent)}return this.key},e.prototype.getPrivateKey=function(){return this.getKey().getPrivateKey()},e.prototype.getPrivateKeyB64=function(){return this.getKey().getPrivateBaseKeyB64()},e.prototype.getPublicKey=function(){return this.getKey().getPublicKey()},e.prototype.getPublicKeyB64=function(){return this.getKey().getPublicBaseKeyB64()},e.version=Ph,e}();const kh="MIIBUwIBADANBgkqhkiG9w0BAQEFAASCAT0wggE5AgEAAkEAt3LFMIQHlZwadt5TI3jGfVyzzP7S0Lva+Bt38v32iblNnQ59GpFvpjtEl92KYH0snK+bI/1PU/SNaseSi2ryJQIDAQABAkBGHyXG7MDlbD0lcMhAx9q/cp773fABf70sl3tbM754V+mH8dEiAim398NhhrADz4F4K12H74R39O/0Hjr/VAZlAiEA5+3MoAbnsDOzFP+oT4YZJBjx8MmsukU3AaguPW4tYcMCIQDKfN+Qk/jD3vZlWsUJ23013D2NDSjgcH4gdV71oYb19wIgUMWYhgLhnZPjwmRnEYr6JoApglo6NYT1azZPJEXCuFECIDyQUQYbXCKpw6TZG2oxXigH8dkIgJtwyijHMlnhsE5NAiBxF7HA7U2rDnZ6+VRDXtIg+joD3o1h3bFy2A+QX5yDYA==";function ci(e,t=kh){const r=new Fh;return r.setPrivateKey(t),r.decrypt(e)}const Vo=/^(http|https):\/\/[\w.:\-@]*/;function Ho(e){return Vo.test(e)}var zo={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()})(nt,function(){var t,r,n="2.0.6",i={},o={},s={currentLocale:"en",zeroFormat:null,nullFormat:null,defaultFormat:"0,0",scalePercentBy100:!0},a={currentLocale:s.currentLocale,zeroFormat:s.zeroFormat,nullFormat:s.nullFormat,defaultFormat:s.defaultFormat,scalePercentBy100:s.scalePercentBy100};function c(u,l){this._input=u,this._value=l}return t=function(u){var l,f,p,h;if(t.isNumeral(u))l=u.value();else if(u===0||typeof u>"u")l=0;else if(u===null||r.isNaN(u))l=null;else if(typeof u=="string")if(a.zeroFormat&&u===a.zeroFormat)l=0;else if(a.nullFormat&&u===a.nullFormat||!u.replace(/[^0-9]+/g,"").length)l=null;else{for(f in i)if(h=typeof i[f].regexps.unformat=="function"?i[f].regexps.unformat():i[f].regexps.unformat,h&&u.match(h)){p=i[f].unformat;break}p=p||t._.stringToNumber,l=p(u)}else l=Number(u)||null;return new c(u,l)},t.version=n,t.isNumeral=function(u){return u instanceof c},t._=r={numberToFormat:function(u,l,f){var p=o[t.options.currentLocale],h=!1,d=!1,m=0,b="",E=1e12,y=1e9,v=1e6,w=1e3,S="",g=!1,x,A,M,_,T,F,j;if(u=u||0,A=Math.abs(u),t._.includes(l,"(")?(h=!0,l=l.replace(/[\(|\)]/g,"")):(t._.includes(l,"+")||t._.includes(l,"-"))&&(T=t._.includes(l,"+")?l.indexOf("+"):u<0?l.indexOf("-"):-1,l=l.replace(/[\+|\-]/g,"")),t._.includes(l,"a")&&(x=l.match(/a(k|m|b|t)?/),x=x?x[1]:!1,t._.includes(l," a")&&(b=" "),l=l.replace(new RegExp(b+"a[kmbt]?"),""),A>=E&&!x||x==="t"?(b+=p.abbreviations.trillion,u=u/E):A<E&&A>=y&&!x||x==="b"?(b+=p.abbreviations.billion,u=u/y):A<y&&A>=v&&!x||x==="m"?(b+=p.abbreviations.million,u=u/v):(A<v&&A>=w&&!x||x==="k")&&(b+=p.abbreviations.thousand,u=u/w)),t._.includes(l,"[.]")&&(d=!0,l=l.replace("[.]",".")),M=u.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(u,_[0].length+_[1].length,f,_[1].length)):S=t._.toFixed(u,_.length,f),M=S.split(".")[0],t._.includes(S,".")?S=p.delimiters.decimal+S.split(".")[1]:S="",d&&Number(S.slice(1))===0&&(S="")):M=t._.toFixed(u,0,f),b&&!x&&Number(M)>=1e3&&b!==p.abbreviations.trillion)switch(M=String(Number(M)/1e3),b){case p.abbreviations.thousand:b=p.abbreviations.million;break;case p.abbreviations.million:b=p.abbreviations.billion;break;case p.abbreviations.billion:b=p.abbreviations.trillion;break}if(t._.includes(M,"-")&&(M=M.slice(1),g=!0),M.length<m)for(var P=m-M.length;P>0;P--)M="0"+M;return F>-1&&(M=M.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+p.delimiters.thousands)),l.indexOf(".")===0&&(M=""),j=M+S+(b||""),h?j=(h&&g?"(":"")+j+(h&&g?")":""):T>=0?j=T===0?(g?"-":"+")+j:j+(g?"-":"+"):g&&(j="-"+j),j},stringToNumber:function(u){var l=o[a.currentLocale],f=u,p={thousand:3,million:6,billion:9,trillion:12},h,d,m;if(a.zeroFormat&&u===a.zeroFormat)d=0;else if(a.nullFormat&&u===a.nullFormat||!u.replace(/[^0-9]+/g,"").length)d=null;else{d=1,l.delimiters.decimal!=="."&&(u=u.replace(/\./g,"").replace(l.delimiters.decimal,"."));for(h in p)if(m=new RegExp("[^a-zA-Z]"+l.abbreviations[h]+"(?:\\)|(\\"+l.currency.symbol+")?(?:\\))?)?$"),f.match(m)){d*=Math.pow(10,p[h]);break}d*=(u.split("-").length+Math.min(u.split("(").length-1,u.split(")").length-1))%2?1:-1,u=u.replace(/[^0-9\.]+/g,""),d*=Number(u)}return d},isNaN:function(u){return typeof u=="number"&&isNaN(u)},includes:function(u,l){return u.indexOf(l)!==-1},insert:function(u,l,f){return u.slice(0,f)+l+u.slice(f)},reduce:function(u,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(u),p=f.length>>>0,h=0,d;if(arguments.length===3)d=arguments[2];else{for(;h<p&&!(h in f);)h++;if(h>=p)throw new TypeError("Reduce of empty array with no initial value");d=f[h++]}for(;h<p;h++)h in f&&(d=l(d,f[h],h,f));return d},multiplier:function(u){var l=u.toString().split(".");return l.length<2?1:Math.pow(10,l[1].length)},correctionFactor:function(){var u=Array.prototype.slice.call(arguments);return u.reduce(function(l,f){var p=r.multiplier(f);return l>p?l:p},1)},toFixed:function(u,l,f,p){var h=u.toString().split("."),d=l-(p||0),m,b,E,y;return h.length===2?m=Math.min(Math.max(h[1].length,d),l):m=d,E=Math.pow(10,m),y=(f(u+"e+"+m)/E).toFixed(m),p>l-m&&(b=new RegExp("\\.?0{1,"+(p-(l-m))+"}$"),y=y.replace(b,"")),y}},t.options=a,t.formats=i,t.locales=o,t.locale=function(u){return u&&(a.currentLocale=u.toLowerCase()),a.currentLocale},t.localeData=function(u){if(!u)return o[a.currentLocale];if(u=u.toLowerCase(),!o[u])throw new Error("Unknown locale : "+u);return o[u]},t.reset=function(){for(var u in s)a[u]=s[u]},t.zeroFormat=function(u){a.zeroFormat=typeof u=="string"?u:null},t.nullFormat=function(u){a.nullFormat=typeof u=="string"?u:null},t.defaultFormat=function(u){a.defaultFormat=typeof u=="string"?u:"0.0"},t.register=function(u,l,f){if(l=l.toLowerCase(),this[u+"s"][l])throw new TypeError(l+" "+u+" already registered.");return this[u+"s"][l]=f,f},t.validate=function(u,l){var f,p,h,d,m,b,E,y;if(typeof u!="string"&&(u+="",console.warn&&console.warn("Numeral.js: Value is not string. It has been co-erced to: ",u)),u=u.trim(),u.match(/^\d+$/))return!0;if(u==="")return!1;try{E=t.localeData(l)}catch(v){E=t.localeData(t.locale())}return h=E.currency.symbol,m=E.abbreviations,f=E.delimiters.decimal,E.delimiters.thousands==="."?p="\\.":p=E.delimiters.thousands,y=u.match(/^[^\d]+/),y!==null&&(u=u.substr(1),y[0]!==h)||(y=u.match(/[^\d]+$/),y!==null&&(u=u.slice(0,-1),y[0]!==m.thousand&&y[0]!==m.million&&y[0]!==m.billion&&y[0]!==m.trillion))?!1:(b=new RegExp(p+"{2}"),u.match(/[^\d.,]/g)?!1:(d=u.split(f),d.length>2?!1:d.length<2?!!d[0].match(/^\d+.*\d$/)&&!d[0].match(b):d[0].length===1?!!d[0].match(/^\d+$/)&&!d[0].match(b)&&!!d[1].match(/^\d+$/):!!d[0].match(/^\d+.*\d$/)&&!d[0].match(b)&&!!d[1].match(/^\d+$/)))},t.fn=c.prototype={clone:function(){return t(this)},format:function(u,l){var f=this._value,p=u||a.defaultFormat,h,d,m;if(l=l||Math.round,f===0&&a.zeroFormat!==null)d=a.zeroFormat;else if(f===null&&a.nullFormat!==null)d=a.nullFormat;else{for(h in i)if(p.match(i[h].regexps.format)){m=i[h].format;break}m=m||t._.numberToFormat,d=m(f,p,l)}return d},value:function(){return this._value},input:function(){return this._input},set:function(u){return this._value=Number(u),this},add:function(u){var l=r.correctionFactor.call(null,this._value,u);function f(p,h,d,m){return p+Math.round(l*h)}return this._value=r.reduce([this._value,u],f,0)/l,this},subtract:function(u){var l=r.correctionFactor.call(null,this._value,u);function f(p,h,d,m){return p-Math.round(l*h)}return this._value=r.reduce([u],f,Math.round(this._value*l))/l,this},multiply:function(u){function l(f,p,h,d){var m=r.correctionFactor(f,p);return Math.round(f*m)*Math.round(p*m)/Math.round(m*m)}return this._value=r.reduce([this._value,u],l,1),this},divide:function(u){function l(f,p,h,d){var m=r.correctionFactor(f,p);return Math.round(f*m)/Math.round(p*m)}return this._value=r.reduce([this._value,u],l),this},difference:function(u){return Math.abs(t(this._value).subtract(u).value())}},t.register("locale","en",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(u){var l=u%10;return~~(u%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(u,l,f){var p=t._.includes(l," BPS")?" ":"",h;return u=u*1e4,l=l.replace(/\s?BPS/,""),h=t._.numberToFormat(u,l,f),t._.includes(h,")")?(h=h.split(""),h.splice(-1,0,p+"BPS"),h=h.join("")):h=h+p+"BPS",h},unformat:function(u){return+(t._.stringToNumber(u)*1e-4).toFixed(15)}})}(),function(){var u={base:1e3,suffixes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]},l={base:1024,suffixes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},f=u.suffixes.concat(l.suffixes.filter(function(h){return u.suffixes.indexOf(h)<0})),p=f.join("|");p="("+p.replace("B","B(?!PS)")+")",t.register("format","bytes",{regexps:{format:/([0\s]i?b)/,unformat:new RegExp(p)},format:function(h,d,m){var b,E=t._.includes(d,"ib")?l:u,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),h===null||h===0||h>=w&&h<S){y+=E.suffixes[v],w>0&&(h=h/w);break}return b=t._.numberToFormat(h,d,m),b+y},unformat:function(h){var d=t._.stringToNumber(h),m,b;if(d){for(m=u.suffixes.length-1;m>=0;m--){if(t._.includes(h,u.suffixes[m])){b=Math.pow(u.base,m);break}if(t._.includes(h,l.suffixes[m])){b=Math.pow(l.base,m);break}}d*=b||1}return d}})}(),function(){t.register("format","currency",{regexps:{format:/(\$)/},format:function(u,l,f){var p=t.locales[t.options.currentLocale],h={before:l.match(/^([\+|\-|\(|\s|\$]*)/)[0],after:l.match(/([\+|\-|\)|\s|\$]*)$/)[0]},d,m,b;for(l=l.replace(/\s?\$\s?/,""),d=t._.numberToFormat(u,l,f),u>=0?(h.before=h.before.replace(/[\-\(]/,""),h.after=h.after.replace(/[\-\)]/,"")):u<0&&!t._.includes(h.before,"-")&&!t._.includes(h.before,"(")&&(h.before="-"+h.before),b=0;b<h.before.length;b++)switch(m=h.before[b],m){case"$":d=t._.insert(d,p.currency.symbol,b);break;case" ":d=t._.insert(d," ",b+p.currency.symbol.length-1);break}for(b=h.after.length-1;b>=0;b--)switch(m=h.after[b],m){case"$":d=b===h.after.length-1?d+p.currency.symbol:t._.insert(d,p.currency.symbol,-(h.after.length-(1+b)));break;case" ":d=b===h.after.length-1?d+" ":t._.insert(d," ",-(h.after.length-(1+b)+p.currency.symbol.length-1));break}return d}})}(),function(){t.register("format","exponential",{regexps:{format:/(e\+|e-)/,unformat:/(e\+|e-)/},format:function(u,l,f){var p,h=typeof u=="number"&&!t._.isNaN(u)?u.toExponential():"0e+0",d=h.split("e");return l=l.replace(/e[\+|\-]{1}0/,""),p=t._.numberToFormat(Number(d[0]),l,f),p+"e"+d[1]},unformat:function(u){var l=t._.includes(u,"e+")?u.split("e+"):u.split("e-"),f=Number(l[0]),p=Number(l[1]);p=t._.includes(u,"e-")?p*=-1:p;function h(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,p)],h,1)}})}(),function(){t.register("format","ordinal",{regexps:{format:/(o)/},format:function(u,l,f){var p=t.locales[t.options.currentLocale],h,d=t._.includes(l," o")?" ":"";return l=l.replace(/\s?o/,""),d+=p.ordinal(u),h=t._.numberToFormat(u,l,f),h+d}})}(),function(){t.register("format","percentage",{regexps:{format:/(%)/,unformat:/(%)/},format:function(u,l,f){var p=t._.includes(l," %")?" ":"",h;return t.options.scalePercentBy100&&(u=u*100),l=l.replace(/\s?\%/,""),h=t._.numberToFormat(u,l,f),t._.includes(h,")")?(h=h.split(""),h.splice(-1,0,p+"%"),h=h.join("")):h=h+p+"%",h},unformat:function(u){var l=t._.stringToNumber(u);return t.options.scalePercentBy100?l*.01:l}})}(),function(){t.register("format","time",{regexps:{format:/(:)/,unformat:/(:)/},format:function(u,l,f){var p=Math.floor(u/60/60),h=Math.floor((u-p*60*60)/60),d=Math.round(u-p*60*60-h*60);return p+":"+(h<10?"0"+h:h)+":"+(d<10?"0"+d:d)},unformat:function(u){var l=u.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})})(zo);var Mh=zo.exports;ee(Mh);var qo={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(nt,function(){var r=1e3,n=6e4,i=36e5,o="millisecond",s="second",a="minute",c="hour",u="day",l="week",f="month",p="quarter",h="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(P){var D=["th","st","nd","rd"],C=P%100;return"["+P+(D[(C-20)%10]||D[C]||D[0])+"]"}},v=function(P,D,C){var L=String(P);return!L||L.length>=D?P:""+Array(D+1-L.length).join(C)+P},w={s:v,z:function(P){var D=-P.utcOffset(),C=Math.abs(D),L=Math.floor(C/60),U=C%60;return(D<=0?"+":"-")+v(L,2,"0")+":"+v(U,2,"0")},m:function P(D,C){if(D.date()<C.date())return-P(C,D);var L=12*(C.year()-D.year())+(C.month()-D.month()),U=D.clone().add(L,f),H=C-U<0,z=D.clone().add(L+(H?-1:1),f);return+(-(L+(C-U)/(H?U-z:z-U))||0)},a:function(P){return P<0?Math.ceil(P)||0:Math.floor(P)},p:function(P){return{M:f,y:h,w:l,d:u,D:d,h:c,m:a,s,ms:o,Q:p}[P]||String(P||"").toLowerCase().replace(/s$/,"")},u:function(P){return P===void 0}},S="en",g={};g[S]=y;var x="$isDayjsObject",A=function(P){return P instanceof F||!(!P||!P[x])},M=function P(D,C,L){var U;if(!D)return S;if(typeof D=="string"){var H=D.toLowerCase();g[H]&&(U=H),C&&(g[H]=C,U=H);var z=D.split("-");if(!U&&z.length>1)return P(z[0])}else{var O=D.name;g[O]=D,U=O}return!L&&U&&(S=U),U||!L&&S},_=function(P,D){if(A(P))return P.clone();var C=typeof D=="object"?D:{};return C.date=P,C.args=arguments,new F(C)},T=w;T.l=M,T.i=A,T.w=function(P,D){return _(P,{locale:D.$L,utc:D.$u,x:D.$x,$offset:D.$offset})};var F=function(){function P(C){this.$L=M(C.locale,null,!0),this.parse(C),this.$x=this.$x||C.x||{},this[x]=!0}var D=P.prototype;return D.parse=function(C){this.$d=function(L){var U=L.date,H=L.utc;if(U===null)return new Date(NaN);if(T.u(U))return new Date;if(U instanceof Date)return new Date(U);if(typeof U=="string"&&!/Z$/i.test(U)){var z=U.match(b);if(z){var O=z[2]-1||0,B=(z[7]||"0").substring(0,3);return H?new Date(Date.UTC(z[1],O,z[3]||1,z[4]||0,z[5]||0,z[6]||0,B)):new Date(z[1],O,z[3]||1,z[4]||0,z[5]||0,z[6]||0,B)}}return new Date(U)}(C),this.init()},D.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()},D.$utils=function(){return T},D.isValid=function(){return this.$d.toString()!==m},D.isSame=function(C,L){var U=_(C);return this.startOf(L)<=U&&U<=this.endOf(L)},D.isAfter=function(C,L){return _(C)<this.startOf(L)},D.isBefore=function(C,L){return this.endOf(L)<_(C)},D.$g=function(C,L,U){return T.u(C)?this[L]:this.set(U,C)},D.unix=function(){return Math.floor(this.valueOf()/1e3)},D.valueOf=function(){return this.$d.getTime()},D.startOf=function(C,L){var U=this,H=!!T.u(L)||L,z=T.p(C),O=function(Dt,it){var _t=T.w(U.$u?Date.UTC(U.$y,it,Dt):new Date(U.$y,it,Dt),U);return H?_t:_t.endOf(u)},B=function(Dt,it){return T.w(U.toDate()[Dt].apply(U.toDate("s"),(H?[0,0,0,0]:[23,59,59,999]).slice(it)),U)},N=this.$W,I=this.$M,at=this.$D,Ut="set"+(this.$u?"UTC":"");switch(z){case h:return H?O(1,0):O(31,11);case f:return H?O(1,I):O(0,I+1);case l:var $t=this.$locale().weekStart||0,ie=(N<$t?N+7:N)-$t;return O(H?at-ie:at+(6-ie),I);case u:case d:return B(Ut+"Hours",0);case c:return B(Ut+"Minutes",1);case a:return B(Ut+"Seconds",2);case s:return B(Ut+"Milliseconds",3);default:return this.clone()}},D.endOf=function(C){return this.startOf(C,!1)},D.$set=function(C,L){var U,H=T.p(C),z="set"+(this.$u?"UTC":""),O=(U={},U[u]=z+"Date",U[d]=z+"Date",U[f]=z+"Month",U[h]=z+"FullYear",U[c]=z+"Hours",U[a]=z+"Minutes",U[s]=z+"Seconds",U[o]=z+"Milliseconds",U)[H],B=H===u?this.$D+(L-this.$W):L;if(H===f||H===h){var N=this.clone().set(d,1);N.$d[O](B),N.init(),this.$d=N.set(d,Math.min(this.$D,N.daysInMonth())).$d}else O&&this.$d[O](B);return this.init(),this},D.set=function(C,L){return this.clone().$set(C,L)},D.get=function(C){return this[T.p(C)]()},D.add=function(C,L){var U,H=this;C=Number(C);var z=T.p(L),O=function(I){var at=_(H);return T.w(at.date(at.date()+Math.round(I*C)),H)};if(z===f)return this.set(f,this.$M+C);if(z===h)return this.set(h,this.$y+C);if(z===u)return O(1);if(z===l)return O(7);var B=(U={},U[a]=n,U[c]=i,U[s]=r,U)[z]||1,N=this.$d.getTime()+C*B;return T.w(N,this)},D.subtract=function(C,L){return this.add(-1*C,L)},D.format=function(C){var L=this,U=this.$locale();if(!this.isValid())return U.invalidDate||m;var H=C||"YYYY-MM-DDTHH:mm:ssZ",z=T.z(this),O=this.$H,B=this.$m,N=this.$M,I=U.weekdays,at=U.months,Ut=U.meridiem,$t=function(it,_t,oe,we){return it&&(it[_t]||it(L,H))||oe[_t].slice(0,we)},ie=function(it){return T.s(O%12||12,it,"0")},Dt=Ut||function(it,_t,oe){var we=it<12?"AM":"PM";return oe?we.toLowerCase():we};return H.replace(E,function(it,_t){return _t||function(oe){switch(oe){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 $t(U.monthsShort,N,at,3);case"MMMM":return $t(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 $t(U.weekdaysMin,L.$W,I,2);case"ddd":return $t(U.weekdaysShort,L.$W,I,3);case"dddd":return I[L.$W];case"H":return String(O);case"HH":return T.s(O,2,"0");case"h":return ie(1);case"hh":return ie(2);case"a":return Dt(O,B,!0);case"A":return Dt(O,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 z}return null}(it)||z.replace(":","")})},D.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},D.diff=function(C,L,U){var H,z=this,O=T.p(L),B=_(C),N=(B.utcOffset()-this.utcOffset())*n,I=this-B,at=function(){return T.m(z,B)};switch(O){case h:H=at()/12;break;case f:H=at();break;case p:H=at()/3;break;case l:H=(I-N)/6048e5;break;case u:H=(I-N)/864e5;break;case c:H=I/i;break;case a:H=I/n;break;case s:H=I/r;break;default:H=I}return U?H:T.a(H)},D.daysInMonth=function(){return this.endOf(f).$D},D.$locale=function(){return g[this.$L]},D.locale=function(C,L){if(!C)return this.$L;var U=this.clone(),H=M(C,L,!0);return H&&(U.$L=H),U},D.clone=function(){return T.w(this.$d,this)},D.toDate=function(){return new Date(this.valueOf())},D.toJSON=function(){return this.isValid()?this.toISOString():null},D.toISOString=function(){return this.$d.toISOString()},D.toString=function(){return this.$d.toUTCString()},P}(),j=F.prototype;return _.prototype=j,[["$ms",o],["$s",s],["$m",a],["$H",c],["$W",u],["$M",f],["$y",h],["$D",d]].forEach(function(P){j[P[1]]=function(D){return this.$g(D,P[0],P[1])}}),_.extend=function(P,D){return P.$i||(P(D,F,_),P.$i=!0),_},_.locale=M,_.isDayjs=A,_.unix=function(P){return _(1e3*P)},_.en=g[S],_.Ls=g,_.p={},_})})(qo);var Ko=qo.exports;const Uh=ee(Ko);var Lh={exports:{}};(function(e,t){(function(r,n){e.exports=n(Ko)})(nt,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,a){return a==="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,a){var c=100*s+a;return c<600?"凌晨":c<900?"早上":c<1100?"上午":c<1300?"中午":c<1800?"下午":"晚上"}};return i.default.locale(o,null,!0),o})})(Lh),Uh.locale("zh-cn");function Vh(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 Wo(e=0){return k(this,null,function*(){return new Promise(t=>{setTimeout(t,e)})})}function Hh(e){return[...e.entries()].reduce((t,[r,n])=>(t[r]=n,t),{})}function zh(e,t){return Array.from(new Set(e))}function li(e){return e?[].concat(e):[]}function fr(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,u){if(!o[c]){o[c]={};for(var l=0;l<c.length;l++)o[c][c.charAt(l)]=l}return o[c][u]}var a={compressToBase64:function(c){if(c==null)return"";var u=a._compress(c,6,function(l){return n.charAt(l)});switch(u.length%4){default:case 0:return u;case 1:return u+"===";case 2:return u+"==";case 3:return u+"="}},decompressFromBase64:function(c){return c==null?"":c==""?null:a._decompress(c.length,32,function(u){return s(n,c.charAt(u))})},compressToUTF16:function(c){return c==null?"":a._compress(c,15,function(u){return r(u+32)})+" "},decompressFromUTF16:function(c){return c==null?"":c==""?null:a._decompress(c.length,16384,function(u){return c.charCodeAt(u)-32})},compressToUint8Array:function(c){for(var u=a.compress(c),l=new Uint8Array(u.length*2),f=0,p=u.length;f<p;f++){var h=u.charCodeAt(f);l[f*2]=h>>>8,l[f*2+1]=h%256}return l},decompressFromUint8Array:function(c){if(c==null)return a.decompress(c);for(var u=new Array(c.length/2),l=0,f=u.length;l<f;l++)u[l]=c[l*2]*256+c[l*2+1];var p=[];return u.forEach(function(h){p.push(r(h))}),a.decompress(p.join(""))},compressToEncodedURIComponent:function(c){return c==null?"":a._compress(c,6,function(u){return i.charAt(u)})},decompressFromEncodedURIComponent:function(c){return c==null?"":c==""?null:(c=c.replace(/ /g,"+"),a._decompress(c.length,32,function(u){return s(i,c.charAt(u))}))},compress:function(c){return a._compress(c,16,function(u){return r(u)})},_compress:function(c,u,l){if(c==null)return"";var f,p,h={},d={},m="",b="",E="",y=2,v=3,w=2,S=[],g=0,x=0,A;for(A=0;A<c.length;A+=1)if(m=c.charAt(A),Object.prototype.hasOwnProperty.call(h,m)||(h[m]=v++,d[m]=!0),b=E+m,Object.prototype.hasOwnProperty.call(h,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==u-1?(x=0,S.push(l(g)),g=0):x++;for(p=E.charCodeAt(0),f=0;f<8;f++)g=g<<1|p&1,x==u-1?(x=0,S.push(l(g)),g=0):x++,p=p>>1}else{for(p=1,f=0;f<w;f++)g=g<<1|p,x==u-1?(x=0,S.push(l(g)),g=0):x++,p=0;for(p=E.charCodeAt(0),f=0;f<16;f++)g=g<<1|p&1,x==u-1?(x=0,S.push(l(g)),g=0):x++,p=p>>1}y--,y==0&&(y=Math.pow(2,w),w++),delete d[E]}else for(p=h[E],f=0;f<w;f++)g=g<<1|p&1,x==u-1?(x=0,S.push(l(g)),g=0):x++,p=p>>1;y--,y==0&&(y=Math.pow(2,w),w++),h[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==u-1?(x=0,S.push(l(g)),g=0):x++;for(p=E.charCodeAt(0),f=0;f<8;f++)g=g<<1|p&1,x==u-1?(x=0,S.push(l(g)),g=0):x++,p=p>>1}else{for(p=1,f=0;f<w;f++)g=g<<1|p,x==u-1?(x=0,S.push(l(g)),g=0):x++,p=0;for(p=E.charCodeAt(0),f=0;f<16;f++)g=g<<1|p&1,x==u-1?(x=0,S.push(l(g)),g=0):x++,p=p>>1}y--,y==0&&(y=Math.pow(2,w),w++),delete d[E]}else for(p=h[E],f=0;f<w;f++)g=g<<1|p&1,x==u-1?(x=0,S.push(l(g)),g=0):x++,p=p>>1;y--,y==0&&(y=Math.pow(2,w),w++)}for(p=2,f=0;f<w;f++)g=g<<1|p&1,x==u-1?(x=0,S.push(l(g)),g=0):x++,p=p>>1;for(;;)if(g=g<<1,x==u-1){S.push(l(g));break}else x++;return S.join("")},decompress:function(c){return c==null?"":c==""?null:a._decompress(c.length,32768,function(u){return c.charCodeAt(u)})},_decompress:function(c,u,l){var f=[],p=4,h=4,d=3,m="",b=[],E,y,v,w,S,g,x,A={val:l(0),position:u,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=A.val&A.position,A.position>>=1,A.position==0&&(A.position=u,A.val=l(A.index++)),v|=(w>0?1:0)*g,g<<=1;switch(v){case 0:for(v=0,S=Math.pow(2,8),g=1;g!=S;)w=A.val&A.position,A.position>>=1,A.position==0&&(A.position=u,A.val=l(A.index++)),v|=(w>0?1:0)*g,g<<=1;x=r(v);break;case 1:for(v=0,S=Math.pow(2,16),g=1;g!=S;)w=A.val&A.position,A.position>>=1,A.position==0&&(A.position=u,A.val=l(A.index++)),v|=(w>0?1:0)*g,g<<=1;x=r(v);break;case 2:return""}for(f[3]=x,y=x,b.push(x);;){if(A.index>c)return"";for(v=0,S=Math.pow(2,d),g=1;g!=S;)w=A.val&A.position,A.position>>=1,A.position==0&&(A.position=u,A.val=l(A.index++)),v|=(w>0?1:0)*g,g<<=1;switch(x=v){case 0:for(v=0,S=Math.pow(2,8),g=1;g!=S;)w=A.val&A.position,A.position>>=1,A.position==0&&(A.position=u,A.val=l(A.index++)),v|=(w>0?1:0)*g,g<<=1;f[h++]=r(v),x=h-1,p--;break;case 1:for(v=0,S=Math.pow(2,16),g=1;g!=S;)w=A.val&A.position,A.position>>=1,A.position==0&&(A.position=u,A.val=l(A.index++)),v|=(w>0?1:0)*g,g<<=1;f[h++]=r(v),x=h-1,p--;break;case 2:return b.join("")}if(p==0&&(p=Math.pow(2,d),d++),f[x])m=f[x];else if(x===h)m=y+y.charAt(0);else return null;b.push(m),f[h++]=y+m.charAt(0),p--,y=m,p==0&&(p=Math.pow(2,d),d++)}}};return a}();e!=null?e.exports=t:typeof angular<"u"&&angular!=null&&angular.module("LZString",[]).factory("LZString",function(){return t})})(Jo);var Yo=Jo.exports;function Kh(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 a=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(a--,a===0){o++;break}}else if(e[o]==="("&&(a++,e[o+1]!=="?"))throw new TypeError("Capturing groups are not allowed at ".concat(o));c+=e[o++]}if(a)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 Go(e,t){t===void 0&&(t={});for(var r=Kh(e),n=t.prefixes,i=n===void 0?"./":n,o="[^".concat(Yt(t.delimiter||"/#?"),"]+?"),s=[],a=0,c=0,u="",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 A=r[c],M=A.type,_=A.index;throw new TypeError("Unexpected ".concat(M," at ").concat(_,", expected ").concat(g))},p=function(){for(var g="",x;x=l("CHAR")||l("ESCAPED_CHAR");)g+=x;return g};c<r.length;){var h=l("CHAR"),d=l("NAME"),m=l("PATTERN");if(d||m){var b=h||"";i.indexOf(b)===-1&&(u+=b,b=""),u&&(s.push(u),u=""),s.push({name:d||a++,prefix:b,suffix:"",pattern:m||o,modifier:l("MODIFIER")||""});continue}var E=h||l("ESCAPED_CHAR");if(E){u+=E;continue}u&&(s.push(u),u="");var y=l("OPEN");if(y){var b=p(),v=l("NAME")||"",w=l("PATTERN")||"",S=p();f("CLOSE"),s.push({name:v||(w?a++:""),pattern:v&&!w?o:w,prefix:b,suffix:S,modifier:l("MODIFIER")||""});continue}f("END")}return s}function Wh(e,t){return Jh(Go(e,t),t)}function Jh(e,t){t===void 0&&(t={});var r=Zr(t),n=t.encode,i=n===void 0?function(c){return c}:n,o=t.validate,s=o===void 0?!0:o,a=e.map(function(c){if(typeof c=="object")return new RegExp("^(?:".concat(c.pattern,")$"),r)});return function(c){for(var u="",l=0;l<e.length;l++){var f=e[l];if(typeof f=="string"){u+=f;continue}var p=c?c[f.name]:void 0,h=f.modifier==="?"||f.modifier==="*",d=f.modifier==="*"||f.modifier==="+";if(Array.isArray(p)){if(!d)throw new TypeError('Expected "'.concat(f.name,'" to not repeat, but got an array'));if(p.length===0){if(h)continue;throw new TypeError('Expected "'.concat(f.name,'" to not be empty'))}for(var m=0;m<p.length;m++){var b=i(p[m],f);if(s&&!a[l].test(b))throw new TypeError('Expected all "'.concat(f.name,'" to match "').concat(f.pattern,'", but got "').concat(b,'"'));u+=f.prefix+b+f.suffix}continue}if(typeof p=="string"||typeof p=="number"){var b=i(String(p),f);if(s&&!a[l].test(b))throw new TypeError('Expected "'.concat(f.name,'" to match "').concat(f.pattern,'", but got "').concat(b,'"'));u+=f.prefix+b+f.suffix;continue}if(!h){var E=d?"an array":"a string";throw new TypeError('Expected "'.concat(f.name,'" to be ').concat(E))}}return u}}function Yh(e,t){var r=[],n=Qr(e,r,t);return Gh(n,r,t)}function Gh(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 a=s[0],c=s.index,u=Object.create(null),l=function(p){if(s[p]===void 0)return"continue";var h=t[p-1];h.modifier==="*"||h.modifier==="+"?u[h.name]=s[p].split(h.prefix+h.suffix).map(function(d){return i(d,h)}):u[h.name]=i(s[p],h)},f=1;f<s.length;f++)l(f);return{path:a,index:c,params:u}}}function Yt(e){return e.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function Zr(e){return e&&e.sensitive?"":"i"}function Zh(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 Qh(e,t,r){var n=e.map(function(i){return Qr(i,t,r).source});return new RegExp("(?:".concat(n.join("|"),")"),Zr(r))}function Xh(e,t,r){return tp(Go(e,r),t,r)}function tp(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,a=r.end,c=a===void 0?!0:a,u=r.encode,l=u===void 0?function(_){return _}:u,f=r.delimiter,p=f===void 0?"/#?":f,h=r.endsWith,d=h===void 0?"":h,m="[".concat(Yt(d),"]|$"),b="[".concat(Yt(p),"]"),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 A=e[e.length-1],M=typeof A=="string"?b.indexOf(A[A.length-1])>-1:A===void 0;i||(E+="(?:".concat(b,"(?=").concat(m,"))?")),M||(E+="(?=".concat(b,"|").concat(m,")"))}return new RegExp(E,Zr(r))}function Qr(e,t,r){return e instanceof RegExp?Zh(e,t):Array.isArray(e)?Qh(e,t,r):Xh(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.13
55
+ * @license <a href="https://vtj.pro/license.html">MIT License</a>
56
+ */const ep="VueMaterial",rp="VueRouterMaterial",np={[ep]:["Transition","TransitionGroup","KeepAlive","Teleport","Suspense"],[rp]:["RouterView","RouterLink"]};let ip=class{constructor(){q(this,"listeners",[]);q(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 op=Object.defineProperty,sp=(e,t,r)=>t in e?op(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ut=(e,t,r)=>sp(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 ap=e=>typeof e=="symbol";new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(ap));function Zo(e,t){return function(){return e.apply(t,arguments)}}const{toString:up}=Object.prototype,{getPrototypeOf:Xr}=Object,Je=(e=>t=>{const r=up.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:re}=Array,de=Ye("undefined");function cp(e){return e!==null&&!de(e)&&e.constructor!==null&&!de(e.constructor)&&st(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Qo=dt("ArrayBuffer");function lp(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Qo(e.buffer),t}const fp=Ye("string"),st=Ye("function"),Xo=Ye("number"),Ge=e=>e!==null&&typeof e=="object",hp=e=>e===!0||e===!1,je=e=>{if(Je(e)!=="object")return!1;const t=Xr(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},pp=dt("Date"),dp=dt("File"),mp=dt("Blob"),gp=dt("FileList"),yp=e=>Ge(e)&&st(e.pipe),vp=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]"))},bp=dt("URLSearchParams"),[wp,_p,Ep,Sp]=["ReadableStream","Request","Response","Headers"].map(dt),xp=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]),re(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 a;for(n=0;n<s;n++)a=o[n],t.call(null,e[a],a,e)}}function ts(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 It=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,es=e=>!de(e)&&e!==It;function Cr(){const{caseless:e}=es(this)&&this||{},t={},r=(n,i)=>{const o=e&&ts(t,i)||i;je(t[o])&&je(n)?t[o]=Cr(t[o],n):je(n)?t[o]=Cr({},n):re(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 Tp=(e,t,r,{allOwnKeys:n}={})=>(ve(t,(i,o)=>{r&&st(i)?e[o]=Zo(i,r):e[o]=i},{allOwnKeys:n}),e),Rp=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Ap=(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)},Op=(e,t,r,n)=>{let i,o,s;const a={};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))&&!a[s]&&(t[s]=e[s],a[s]=!0);e=r!==!1&&Xr(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},$p=(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},Dp=e=>{if(!e)return null;if(re(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},jp=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Xr(Uint8Array)),Bp=(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])}},Cp=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},Np=dt("HTMLFormElement"),Ip=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),Pp=dt("RegExp"),rs=(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)},Fp=e=>{rs(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+"'")})}})},kp=(e,t)=>{const r={},n=i=>{i.forEach(o=>{r[o]=!0})};return re(e)?n(e):n(String(e).split(t)),r},Mp=()=>{},Up=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function Lp(e){return!!(e&&st(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const Vp=e=>{const t=new Array(10),r=(n,i)=>{if(Ge(n)){if(t.indexOf(n)>=0)return;if(!("toJSON"in n)){t[i]=n;const o=re(n)?[]:{};return ve(n,(s,a)=>{const c=r(s,i+1);!de(c)&&(o[a]=c)}),t[i]=void 0,o}}return n};return r(e,0)},Hp=dt("AsyncFunction"),zp=e=>e&&(Ge(e)||st(e))&&st(e.then)&&st(e.catch),ns=((e,t)=>e?setImmediate:t?((r,n)=>(It.addEventListener("message",({source:i,data:o})=>{i===It&&o===r&&n.length&&n.shift()()},!1),i=>{n.push(i),It.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",st(It.postMessage)),qp=typeof queueMicrotask<"u"?queueMicrotask.bind(It):typeof process<"u"&&process.nextTick||ns,R={isArray:re,isArrayBuffer:Qo,isBuffer:cp,isFormData:vp,isArrayBufferView:lp,isString:fp,isNumber:Xo,isBoolean:hp,isObject:Ge,isPlainObject:je,isReadableStream:wp,isRequest:_p,isResponse:Ep,isHeaders:Sp,isUndefined:de,isDate:pp,isFile:dp,isBlob:mp,isRegExp:Pp,isFunction:st,isStream:yp,isURLSearchParams:bp,isTypedArray:jp,isFileList:gp,forEach:ve,merge:Cr,extend:Tp,trim:xp,stripBOM:Rp,inherits:Ap,toFlatObject:Op,kindOf:Je,kindOfTest:dt,endsWith:$p,toArray:Dp,forEachEntry:Bp,matchAll:Cp,isHTMLForm:Np,hasOwnProperty:fi,hasOwnProp:fi,reduceDescriptors:rs,freezeMethods:Fp,toObjectSet:kp,toCamelCase:Ip,noop:Mp,toFiniteNumber:Up,findKey:ts,global:It,isContextDefined:es,isSpecCompliantForm:Lp,toJSONObject:Vp,isAsyncFn:Hp,isThenable:zp,setImmediate:ns,asap:qp};function K(e,t,r,n,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),i&&(this.response=i,this.status=i.status?i.status:null)}R.inherits(K,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:R.toJSONObject(this.config),code:this.code,status:this.status}}});const is=K.prototype,os={};["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=>{os[e]={value:e}});Object.defineProperties(K,os);Object.defineProperty(is,"isAxiosError",{value:!0});K.from=(e,t,r,n,i,o)=>{const s=Object.create(is);return R.toFlatObject(e,s,function(a){return a!==Error.prototype},a=>a!=="isAxiosError"),K.call(s,e.message,t,r,n,i),s.cause=e,s.name=e.name,o&&Object.assign(s,o),s};const Kp=null;function Nr(e){return R.isPlainObject(e)||R.isArray(e)}function ss(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=ss(n),!r&&i?"["+n+"]":n}).join(r?".":""):t}function Wp(e){return R.isArray(e)&&!e.some(Nr)}const Jp=R.toFlatObject(R,{},null,function(e){return/^is[A-Z]/.test(e)});function Ze(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(h,d){return!R.isUndefined(d[h])});const n=r.metaTokens,i=r.visitor||u,o=r.dots,s=r.indexes,a=(r.Blob||typeof Blob<"u"&&Blob)&&R.isSpecCompliantForm(t);if(!R.isFunction(i))throw new TypeError("visitor must be a function");function c(h){if(h===null)return"";if(R.isDate(h))return h.toISOString();if(!a&&R.isBlob(h))throw new K("Blob is not supported. Use a Buffer instead.");return R.isArrayBuffer(h)||R.isTypedArray(h)?a&&typeof Blob=="function"?new Blob([h]):Buffer.from(h):h}function u(h,d,m){let b=h;if(h&&!m&&typeof h=="object"){if(R.endsWith(d,"{}"))d=n?d:d.slice(0,-2),h=JSON.stringify(h);else if(R.isArray(h)&&Wp(h)||(R.isFileList(h)||R.endsWith(d,"[]"))&&(b=R.toArray(h)))return d=ss(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 Nr(h)?!0:(t.append(hi(m,d,o),c(h)),!1)}const l=[],f=Object.assign(Jp,{defaultVisitor:u,convertValue:c,isVisitable:Nr});function p(h,d){if(!R.isUndefined(h)){if(l.indexOf(h)!==-1)throw Error("Circular reference detected in "+d.join("."));l.push(h),R.forEach(h,function(m,b){(!(R.isUndefined(m)||m===null)&&i.call(t,m,R.isString(b)?b.trim():b,d,f))===!0&&p(m,d?d.concat(b):[b])}),l.pop()}}if(!R.isObject(e))throw new TypeError("data must be an object");return p(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 tn(e,t){this._pairs=[],e&&Ze(e,this,t)}const as=tn.prototype;as.append=function(e,t){this._pairs.push([e,t])};as.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 Yp(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function us(e,t,r){if(!t)return e;const n=r&&r.encode||Yp;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 tn(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 cs={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Gp=typeof URLSearchParams<"u"?URLSearchParams:tn,Zp=typeof FormData<"u"?FormData:null,Qp=typeof Blob<"u"?Blob:null,Xp={isBrowser:!0,classes:{URLSearchParams:Gp,FormData:Zp,Blob:Qp},protocols:["http","https","file","blob","url","data"]},en=typeof window<"u"&&typeof document<"u",Ir=typeof navigator=="object"&&navigator||void 0,td=en&&(!Ir||["ReactNative","NativeScript","NS"].indexOf(Ir.product)<0),ed=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",rd=en&&window.location.href||"http://localhost",nd=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:en,hasStandardBrowserEnv:td,hasStandardBrowserWebWorkerEnv:ed,navigator:Ir,origin:rd},Symbol.toStringTag,{value:"Module"})),et=V(V({},nd),Xp);function id(e,t){return Ze(e,new et.classes.URLSearchParams,Object.assign({visitor:function(r,n,i,o){return et.isNode&&R.isBuffer(r)?(this.append(n,r.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function od(e){return R.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function sd(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 ls(e){function t(r,n,i,o){let s=r[o++];if(s==="__proto__")return!0;const a=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,!a):((!i[s]||!R.isObject(i[s]))&&(i[s]=[]),t(r,n,i[s],o)&&R.isArray(i[s])&&(i[s]=sd(i[s])),!a)}if(R.isFormData(e)&&R.isFunction(e.entries)){const r={};return R.forEachEntry(e,(n,i)=>{t(od(n),i,r,0)}),r}return null}function ad(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:cs,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(ls(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 id(e,this.formSerializer).toString();if((o=R.isFileList(e))||r.indexOf("multipart/form-data")>-1){const s=this.env&&this.env.FormData;return Ze(o?{"files[]":e}:e,s&&new s,this.formSerializer)}}return i||n?(t.setContentType("application/json",!1),ad(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"?K.from(o,K.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:et.classes.FormData,Blob:et.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 ud=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"]),cd=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]&&ud[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 ae(e){return e&&String(e).trim().toLowerCase()}function Be(e){return e===!1||e==null?e:R.isArray(e)?e.map(Be):String(e)}function ld(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 fd=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function hr(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 hd(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}function pd(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(a,c,u){const l=ae(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||u===!0||u===void 0&&i[f]!==!1)&&(i[f||c]=Be(a))}const s=(a,c)=>R.forEach(a,(u,l)=>o(u,l,c));if(R.isPlainObject(t)||t instanceof this.constructor)s(t,r);else if(R.isString(t)&&(t=t.trim())&&!fd(t))s(cd(t),r);else if(R.isHeaders(t))for(const[a,c]of t.entries())o(c,a,n);else t!=null&&o(r,t,n);return this}get(t,r){if(t=ae(t),t){const n=R.findKey(this,t);if(n){const i=this[n];if(!r)return i;if(r===!0)return ld(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=ae(t),t){const n=R.findKey(this,t);return!!(n&&this[n]!==void 0&&(!r||hr(this,this[n],n,r)))}return!1}delete(t,r){const n=this;let i=!1;function o(s){if(s=ae(s),s){const a=R.findKey(n,s);a&&(!r||hr(n,n[a],a,r))&&(delete n[a],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||hr(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]=Be(i),delete r[o];return}const a=t?hd(o):String(o).trim();a!==o&&delete r[o],r[a]=Be(i),n[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const r=Object.create(null);return R.forEach(this,(n,i)=>{n!=null&&n!==!1&&(r[i]=t&&R.isArray(n)?n.join(", "):n)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,r])=>t+": "+r).join(`
58
+ `)}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=ae(o);r[s]||(pd(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 pr(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 fs(e){return!!(e&&e.__CANCEL__)}function ne(e,t,r){K.call(this,e!=null?e:"canceled",K.ERR_CANCELED,t,r),this.name="CanceledError"}R.inherits(ne,K,{__CANCEL__:!0});function hs(e,t,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new K("Request failed with status code "+r.status,[K.ERR_BAD_REQUEST,K.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function dd(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function md(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(a){const c=Date.now(),u=n[o];s||(s=c),r[i]=a,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 p=u&&c-u;return p?Math.round(f*1e3/p):void 0}}function gd(e,t){let r=0,n=1e3/t,i,o;const s=(a,c=Date.now())=>{r=c,i=null,o&&(clearTimeout(o),o=null),e.apply(null,a)};return[(...a)=>{const c=Date.now(),u=c-r;u>=n?s(a,c):(i=a,o||(o=setTimeout(()=>{o=null,s(i)},n-u)))},()=>i&&s(i)]}const Me=(e,t,r=3)=>{let n=0;const i=md(50,250);return gd(o=>{const s=o.loaded,a=o.lengthComputable?o.total:void 0,c=s-n,u=i(c),l=s<=a;n=s;const f={loaded:s,total:a,progress:a?s/a:void 0,bytes:c,rate:u||void 0,estimated:u&&a&&l?(a-s)/u:void 0,event:o,lengthComputable:a!=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)),yd=et.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,et.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(et.origin),et.navigator&&/(msie|trident)/i.test(et.navigator.userAgent)):()=>!0,vd=et.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 bd(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function wd(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function ps(e,t,r){let n=!bd(t);return e&&n||r==!1?wd(e,t):t}const vi=e=>e instanceof ot?V({},e):e;function Ft(e,t){t=t||{};const r={};function n(u,l,f,p){return R.isPlainObject(u)&&R.isPlainObject(l)?R.merge.call({caseless:p},u,l):R.isPlainObject(l)?R.merge({},l):R.isArray(l)?l.slice():l}function i(u,l,f,p){if(R.isUndefined(l)){if(!R.isUndefined(u))return n(void 0,u,f,p)}else return n(u,l,f,p)}function o(u,l){if(!R.isUndefined(l))return n(void 0,l)}function s(u,l){if(R.isUndefined(l)){if(!R.isUndefined(u))return n(void 0,u)}else return n(void 0,l)}function a(u,l,f){if(f in t)return n(u,l);if(f in e)return n(void 0,u)}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:a,headers:(u,l,f)=>i(vi(u),vi(l),f,!0)};return R.forEach(Object.keys(Object.assign({},e,t)),function(u){const l=c[u]||i,f=l(e[u],t[u],u);R.isUndefined(f)&&l!==a||(r[u]=f)}),r}const ds=e=>{const t=Ft({},e);let{data:r,withXSRFToken:n,xsrfHeaderName:i,xsrfCookieName:o,headers:s,auth:a}=t;t.headers=s=ot.from(s),t.url=us(ps(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),a&&s.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):"")));let c;if(R.isFormData(r)){if(et.hasStandardBrowserEnv||et.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if((c=s.getContentType())!==!1){const[u,...l]=c?c.split(";").map(f=>f.trim()).filter(Boolean):[];s.setContentType([u||"multipart/form-data",...l].join("; "))}}if(et.hasStandardBrowserEnv&&(n&&R.isFunction(n)&&(n=n(t)),n||n!==!1&&yd(t.url))){const u=i&&o&&vd.read(o);u&&s.set(i,u)}return t},_d=typeof XMLHttpRequest<"u",Ed=_d&&function(e){return new Promise(function(t,r){const n=ds(e);let i=n.data;const o=ot.from(n.headers).normalize();let{responseType:s,onUploadProgress:a,onDownloadProgress:c}=n,u,l,f,p,h;function d(){p&&p(),h&&h(),n.cancelToken&&n.cancelToken.unsubscribe(u),n.signal&&n.signal.removeEventListener("abort",u)}let m=new XMLHttpRequest;m.open(n.method.toUpperCase(),n.url,!0),m.timeout=n.timeout;function b(){if(!m)return;const y=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};hs(function(w){t(w),d()},function(w){r(w),d()},v),m=null}"onloadend"in m?m.onloadend=b:m.onreadystatechange=function(){!m||m.readyState!==4||m.status===0&&!(m.responseURL&&m.responseURL.indexOf("file:")===0)||setTimeout(b)},m.onabort=function(){m&&(r(new K("Request aborted",K.ECONNABORTED,e,m)),m=null)},m.onerror=function(){r(new K("Network Error",K.ERR_NETWORK,e,m)),m=null},m.ontimeout=function(){let y=n.timeout?"timeout of "+n.timeout+"ms exceeded":"timeout exceeded";const v=n.transitional||cs;n.timeoutErrorMessage&&(y=n.timeoutErrorMessage),r(new K(y,v.clarifyTimeoutError?K.ETIMEDOUT:K.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,h]=Me(c,!0),m.addEventListener("progress",f)),a&&m.upload&&([l,p]=Me(a),m.upload.addEventListener("progress",l),m.upload.addEventListener("loadend",p)),(n.cancelToken||n.signal)&&(u=y=>{m&&(r(!y||y.type?new ne(null,e,m):y),m.abort(),m=null)},n.cancelToken&&n.cancelToken.subscribe(u),n.signal&&(n.signal.aborted?u():n.signal.addEventListener("abort",u)));const E=dd(n.url);if(E&&et.protocols.indexOf(E)===-1){r(new K("Unsupported protocol "+E+":",K.ERR_BAD_REQUEST,e));return}m.send(i||null)})},Sd=(e,t)=>{const{length:r}=e=e?e.filter(Boolean):[];if(t||r){let n=new AbortController,i;const o=function(u){if(!i){i=!0,a();const l=u instanceof Error?u:this.reason;n.abort(l instanceof K?l:new ne(l instanceof Error?l.message:l))}};let s=t&&setTimeout(()=>{s=null,o(new K(`timeout ${t} of ms exceeded`,K.ETIMEDOUT))},t);const a=()=>{e&&(s&&clearTimeout(s),s=null,e.forEach(u=>{u.unsubscribe?u.unsubscribe(o):u.removeEventListener("abort",o)}),e=null)};e.forEach(u=>u.addEventListener("abort",o));const{signal:c}=n;return c.unsubscribe=()=>R.asap(a),c}},xd=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},Td=function(e,t){return rr(this,null,function*(){try{for(var r=cn(Rd(e)),n,i,o;n=!(i=yield new jt(r.next())).done;n=!1){const s=i.value;yield*nr(xd(s,t))}}catch(i){o=[i]}finally{try{n&&(i=r.return)&&(yield new jt(i.call(r)))}finally{if(o)throw o[0]}}})},Rd=function(e){return rr(this,null,function*(){if(e[Symbol.asyncIterator]){yield*nr(e);return}const t=e.getReader();try{for(;;){const{done:r,value:n}=yield new jt(t.read());if(r)break;yield n}}finally{yield new jt(t.cancel())}})},bi=(e,t,r,n)=>{const i=Td(e,t);let o=0,s,a=u=>{s||(s=!0,n&&n(u))};return new ReadableStream({pull(u){return k(this,null,function*(){try{const{done:l,value:f}=yield i.next();if(l){a(),u.close();return}let p=f.byteLength;if(r){let h=o+=p;r(h)}u.enqueue(new Uint8Array(f))}catch(l){throw a(l),l}})},cancel(u){return a(u),i.return()}},{highWaterMark:2})},Qe=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",ms=Qe&&typeof ReadableStream=="function",Ad=Qe&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):e=>k(void 0,null,function*(){return new Uint8Array(yield new Response(e).arrayBuffer())})),gs=(e,...t)=>{try{return!!e(...t)}catch(r){return!1}},Od=ms&&gs(()=>{let e=!1;const t=new Request(et.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),wi=64*1024,Pr=ms&&gs(()=>R.isReadableStream(new Response("").body)),Ue={stream:Pr&&(e=>e.body)};Qe&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!Ue[t]&&(Ue[t]=R.isFunction(e[t])?r=>r[t]():(r,n)=>{throw new K(`Response type '${t}' is not supported`,K.ERR_NOT_SUPPORT,n)})})})(new Response);const $d=e=>k(void 0,null,function*(){if(e==null)return 0;if(R.isBlob(e))return e.size;if(R.isSpecCompliantForm(e))return(yield new Request(et.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 Ad(e)).byteLength}),Dd=(e,t)=>k(void 0,null,function*(){const r=R.toFiniteNumber(e.getContentLength());return r!=null?r:$d(t)}),jd=Qe&&(e=>k(void 0,null,function*(){let{url:t,method:r,data:n,signal:i,cancelToken:o,timeout:s,onDownloadProgress:a,onUploadProgress:c,responseType:u,headers:l,withCredentials:f="same-origin",fetchOptions:p}=ds(e);u=u?(u+"").toLowerCase():"text";let h=Sd([i,o&&o.toAbortSignal()],s),d;const m=h&&h.unsubscribe&&(()=>{h.unsubscribe()});let b;try{if(c&&Od&&r!=="get"&&r!=="head"&&(b=yield Dd(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,A]=gi(b,Me(yi(c)));n=bi(S.body,wi,x,A)}}R.isString(f)||(f=f?"include":"omit");const E="credentials"in Request.prototype;d=new Request(t,tt(V({},p),{signal:h,method:r.toUpperCase(),headers:l.normalize().toJSON(),body:n,duplex:"half",credentials:E?f:void 0}));let y=yield fetch(d);const v=Pr&&(u==="stream"||u==="response");if(Pr&&(a||v&&m)){const S={};["status","statusText","headers"].forEach(M=>{S[M]=y[M]});const g=R.toFiniteNumber(y.headers.get("content-length")),[x,A]=a&&gi(g,Me(yi(a),!0))||[];y=new Response(bi(y.body,wi,x,()=>{A&&A(),m&&m()}),S)}u=u||"text";let w=yield Ue[R.findKey(Ue,u)||"text"](y,e);return!v&&m&&m(),yield new Promise((S,g)=>{hs(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 K("Network Error",K.ERR_NETWORK,e,d),{cause:E.cause||E}):K.from(E,E&&E.code,e,d)}})),Fr={http:Kp,xhr:Ed,fetch:jd};R.forEach(Fr,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(r){}Object.defineProperty(e,"adapterName",{value:t})}});const _i=e=>`- ${e}`,Bd=e=>R.isFunction(e)||e===null||e===!1,ys={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,!Bd(r)&&(n=Fr[(s=String(r)).toLowerCase()],n===void 0))throw new K(`Unknown adapter '${s}'`);if(n)break;i[s||"#"+o]=n}if(!n){const o=Object.entries(i).map(([a,c])=>`adapter ${a} `+(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 K("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return n},adapters:Fr};function dr(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new ne(null,e)}function Ei(e){return dr(e),e.headers=ot.from(e.headers),e.data=pr.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),ys.getAdapter(e.adapter||be.adapter)(e).then(function(t){return dr(e),t.data=pr.call(e,e.transformResponse,t),t.headers=ot.from(t.headers),t},function(t){return fs(t)||(dr(e),t&&t.response&&(t.response.data=pr.call(e,e.transformResponse,t.response),t.response.headers=ot.from(t.response.headers))),Promise.reject(t)})}const vs="1.8.3",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"+vs+"] Transitional option '"+i+"'"+o+(r?". "+r:"")}return(i,o,s)=>{if(e===!1)throw new K(n(o," has been removed"+(t?" in "+t:"")),K.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 Cd(e,t,r){if(typeof e!="object")throw new K("options must be an object",K.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let i=n.length;for(;i-- >0;){const o=n[i],s=t[o];if(s){const a=e[o],c=a===void 0||s(a,o,e);if(c!==!0)throw new K("option "+o+" must be "+c,K.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new K("Unknown option "+o,K.ERR_BAD_OPTION)}}const Ce={assertOptions:Cd,validators:Xe},mt=Ce.validators;let Pt=class{constructor(t){this.defaults=t,this.interceptors={request:new di,response:new di}}request(t,r){return k(this,null,function*(){try{return yield this._request(t,r)}catch(n){if(n instanceof Error){let i={};Error.captureStackTrace?Error.captureStackTrace(i):i=new Error;const 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=Ft(this.defaults,r);const{transitional:n,paramsSerializer:i,headers:o}=r;n!==void 0&&Ce.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}:Ce.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),Ce.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 a=[];let c=!0;this.interceptors.request.forEach(function(d){typeof d.runWhen=="function"&&d.runWhen(r)===!1||(c=c&&d.synchronous,a.unshift(d.fulfilled,d.rejected))});const u=[];this.interceptors.response.forEach(function(d){u.push(d.fulfilled,d.rejected)});let l,f=0,p;if(!c){const d=[Ei.bind(this),void 0];for(d.unshift.apply(d,a),d.push.apply(d,u),p=d.length,l=Promise.resolve(r);f<p;)l=l.then(d[f++],d[f++]);return l}p=a.length;let h=r;for(f=0;f<p;){const d=a[f++],m=a[f++];try{h=d(h)}catch(b){m.call(this,b);break}}try{l=Ei.call(this,h)}catch(d){return Promise.reject(d)}for(f=0,p=u.length;f<p;)l=l.then(u[f++],u[f++]);return l}getUri(t){t=Ft(this.defaults,t);const r=ps(t.baseURL,t.url,t.allowAbsoluteUrls);return us(r,t.params,t.paramsSerializer)}};R.forEach(["delete","get","head","options"],function(e){Pt.prototype[e]=function(t,r){return this.request(Ft(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(Ft(o||{},{method:e,headers:r?{"Content-Type":"multipart/form-data"}:{},url:n,data:i}))}}Pt.prototype[e]=t(),Pt.prototype[e+"Form"]=t(!0)});let Nd=class bs{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(a=>{n.subscribe(a),o=a}).then(i);return s.cancel=function(){n.unsubscribe(o)},s},t(function(i,o,s){n.reason||(n.reason=new ne(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 bs(function(r){t=r}),cancel:t}}};function Id(e){return function(t){return e.apply(null,t)}}function Pd(e){return R.isObject(e)&&e.isAxiosError===!0}const kr={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(kr).forEach(([e,t])=>{kr[t]=e});function ws(e){const t=new Pt(e),r=Zo(Pt.prototype.request,t);return R.extend(r,Pt.prototype,t,{allOwnKeys:!0}),R.extend(r,t,null,{allOwnKeys:!0}),r.create=function(n){return ws(Ft(e,n))},r}const Z=ws(be);Z.Axios=Pt;Z.CanceledError=ne;Z.CancelToken=Nd;Z.isCancel=fs;Z.VERSION=vs;Z.toFormData=Ze;Z.AxiosError=K;Z.Cancel=Z.CanceledError;Z.all=function(e){return Promise.all(e)};Z.spread=Id;Z.isAxiosError=Pd;Z.mergeConfig=Ft;Z.AxiosHeaders=ot;Z.formToJSON=e=>ls(R.isHTMLForm(e)?new FormData(e):e);Z.getAdapter=ys.getAdapter;Z.HttpStatusCode=kr;Z.default=Z;const{Axios:f0,AxiosError:h0,CanceledError:p0,isCancel:d0,CancelToken:m0,VERSION:g0,all:y0,Cancel:v0,isAxiosError:b0,spread:w0,toFormData:_0,AxiosHeaders:E0,HttpStatusCode:S0,formToJSON:x0,getAdapter:T0,mergeConfig:R0}=Z,Fd={form:"application/x-www-form-urlencoded",json:"application/json",data:"multipart/form-data"},kd=["put","post","patch"],xi="Local-Request-Id",Md=100,Ud=300;let Ld=class{constructor(e={}){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"},e.settings||{});const t=fr(e,["settings","query"]);this.axios=Z.create(ue({headers:{"Content-Type":"application/x-www-form-urlencoded"},timeout:2*60*1e3},t)),this.setupSkipWarn(this.settings),this.showLoading=Ao(this.openLoading.bind(this),Md),this.showError=ah(this._showError.bind(this),Ud,{leading:!0,trailing:!1})}setConfig(e={}){this.settings=ue(this.settings,e.settings||{});const t=fr(e,["settings","query"]);this.axios.defaults=ue(this.axios.defaults,t),this.setupSkipWarn(this.settings)}cancel(e,t="请求已取消"){if(e){const r=this.records[e];if(!r)return;r.source.cancel(t)}else for(const r of Object.values(this.records))r.source.cancel(t)}createHeaders(e,t,r){const n=t.injectHeaders?typeof t.headers=="function"?t.headers(e,r,t):t.headers||{}:{},i=V(V({"Content-Type":Fd[t.type||"form"]},r.headers),n);return t.skipWarn&&(i[xi]=e),i}isJsonType(e){return Object.entries(e).some(([t,r])=>t.toLowerCase()==="content-type"&&String(r).includes("application/json"))}toFormData(e,t="data"){if(e instanceof FormData||e instanceof URLSearchParams)return e;const r=t==="data"?new FormData:new URLSearchParams;return Object.entries(e).forEach(([n,i])=>{r.append(n,i)}),r}createSendData(e,t,r,n,i={}){const{type:o,skipWarn:s}=e,{name:a="skipWarn"}=s||{};let{data:c,params:u={},method:l="get"}=t;const f=n?{[a]:!0}:{};return kd.includes(l.toLowerCase())?(c=Object.assign(c||{},f),c=o!=="json"||!this.isJsonType(r)?this.toFormData(c,o):c,u=V({},i)):o==="form"?u=V(V(V({},c||{}),i),f):(c&&(o!=="json"||!this.isJsonType(r))&&(c=this.toFormData(c,o)),u=V(V({},i),f)),{data:c,params:u}}createUrl(e){let{url:t,params:r}=e;if(t){let n=Ho(t)?new URL(t).origin:"";const i=n?t.replace(n,""):t;try{const o=Wh(i,{encode:encodeURIComponent});return n+o(r||{})}catch(o){console.warn("createUrl","pathToRegexpCompile error",t)}}return t}openLoading(e){const{loading:t,showLoading:r}=e;t&&r&&Object.keys(this.records).length>0&&(this.isLoading=!0,r())}closeLoading(e){const{loading:t,hideLoading:r}=e;if(!t)return;this.isLoading=!1;const n=Object.keys(this.records);r&&n.length===0&&(this.isLoading=!1,r())}_showError(e,t){var i;const{failMessage:r,showError:n}=e;if(r&&n){const o=(i=t.response)==null?void 0:i.data,s=(o==null?void 0:o.message)||(o==null?void 0:o.msg)||(t==null?void 0:t.message)||(t==null?void 0:t.msg)||"未知错误";n(s,t)}}validResponse(e,t){const{validSuccess:r,validate:n}=e;return r&&n?!!n(t):!0}isSkipWarnResponse(e){return!!e.promise}send(e={},t=!1){const r=ue({},this.settings,e.settings||{}),n=e.query||{},i=fr(e,["settings","query"]),o=Vh(!1),s=Z.CancelToken.source();this.records[o]={settings:r,config:i,source:s};const a=this.createUrl(i),c=this.createHeaders(o,r,i),{data:u,params:l}=this.createSendData(r,i,c,t,n);return this.showLoading(r),new Promise((f,p)=>{this.axios(tt(V({cancelToken:s.token},i),{url:a,headers:c,data:u,params:l})).then(h=>{var d;return this.isSkipWarnResponse(h)?f(h.promise):this.validResponse(r,h)?f(r.originResponse?h:(d=h.data)==null?void 0:d.data):(this.showError(r,h.data),p(h.data))}).catch(h=>(this.showError(r,h),p(h))).finally(()=>{delete this.records[o],this.closeLoading(r)})})}useResponse(e,t){const{response:r}=this.axios.interceptors,n=r.use(e,t);return()=>r.eject(n)}useRequest(e,t){const{request:r}=this.axios.interceptors,n=r.use(e,t);return()=>r.eject(n)}setupSkipWarn(e){if(this.stopSkipWarn&&(this.stopSkipWarn(),this.stopSkipWarn=void 0),!e.skipWarn)return;const{code:t,executor:r,callback:n,complete:i}=e.skipWarn;this.stopSkipWarn=this.useResponse(o=>{const s=(o.config.headers||{})[xi],a=this.records[s];if(!a)return o;const{data:c}=o;if(!c||typeof c!="object")return o;if((c==null?void 0:c.code)===t){n&&n(o);const u=new Promise(r).then(()=>this.send(tt(V({},a.config),{settings:a.settings}),!0));u.catch(l=>l).finally(()=>{i&&i()}),o.promise=u}return o})}};function rn(e={}){const t=new Ld(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,tt(V({},t),{instance:t,send:r,cancel:n,setConfig:i,useRequest:o,useResponse:s}))}const Mr=rn({settings:{injectHeaders:!0,loading:!0,originResponse:!0}}),Ur=typeof window<"u";function Vd(e){const t={};return e?(e.forEach((r,n)=>{t[n]=typeof r=="string"?decodeURIComponent(r):r}),t):{}}class _s{constructor(t={}){ut(this,"options",{type:"cache",expired:0,prefix:"__VTJ_"}),ut(this,"caches",{}),ut(this,"types"),this.types={local:Ur?window.localStorage:this.caches,session:Ur?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),a=Date.now(),c=s+t,u=this.types[i]||this.caches,l={value:r,timestamp:a,expired:o};u===this.caches?u[c]=l:u.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 a;if(s===this.caches)a=s[o];else{const f=s.getItem(o);f&&(a=JSON.parse(f))}if(!a)return null;const{value:c,timestamp:u,expired:l}=a;return l>0&&u+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()}}const mr=new _s;function Es(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ne={exports:{}},Hd=Ne.exports,Ti;function zd(){return Ti||(Ti=1,function(e,t){(function(r,n){n(t,e)})(Hd,function(r,n){var i={timeout:5e3,jsonpCallback:"callback"};function o(){return"jsonp_"+Date.now()+"_"+Math.ceil(Math.random()*1e5)}function s(u){try{delete window[u]}catch(l){window[u]=void 0}}function a(u){var l=document.getElementById(u);l&&document.getElementsByTagName("head")[0].removeChild(l)}function c(u){var l=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],f=u,p=l.timeout||i.timeout,h=l.jsonpCallback||i.jsonpCallback,d=void 0;return new Promise(function(m,b){var E=l.jsonpCallbackFunction||o(),y=h+"_"+E;window[E]=function(w){m({ok:!0,json:function(){return Promise.resolve(w)}}),d&&clearTimeout(d),a(y),s(E)},f+=f.indexOf("?")===-1?"?":"&";var v=document.createElement("script");v.setAttribute("src",""+f+h+"="+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 "+u+" timed out")),s(E),a(y),window[E]=function(){s(E)}},p),v.onerror=function(){b(new Error("JSONP request to "+u+" failed")),s(E),a(y),d&&clearTimeout(d)}})}n.exports=c})}(Ne,Ne.exports)),Ne.exports}var qd=zd();const Kd=Es(qd);function Wd(e){if(Ur){const{protocol:t,host:r,pathname:n}=location;return`${t}//${r}${e?n:""}`}else return null}function Jd(e=""){const t=e.match(Vo);return t?t[0]:""}function Ss(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 Lr(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 xs(e,t){t=typeof t=="string"?Lr(t):t;const r=e.split("?")[0],n=Lr(e),i=Object.assign({},n,t),o=Ss(i);return o?[r,o].join("?"):e}const Ie=Object.freeze(Object.defineProperty({__proto__:null,append:xs,getCurrentHost:Wd,getHost:Jd,parse:Lr,stringify:Ss},Symbol.toStringTag,{value:"Module"}));function Ts(r){return k(this,arguments,function*(e,t={}){const{query:n={}}=t;e.includes("${")&&(e=oh(e)(n||{}));const i=xs(e,n);return yield(yield Kd(i,t)).json()})}var gr,Ri;function Yd(){if(Ri)return gr;Ri=1,gr=function(n,i,o){var s=document.head||document.getElementsByTagName("head")[0],a=document.createElement("script");typeof i=="function"&&(o=i,i={}),i=i||{},o=o||function(){},a.type=i.type||"text/javascript",a.charset=i.charset||"utf8",a.async="async"in i?!!i.async:!0,a.src=n,i.attrs&&e(a,i.attrs),i.text&&(a.text=""+i.text);var c="onload"in a?t:r;c(a,o),a.onload||t(a,o),s.appendChild(a)};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 Gd=Yd();const Zd=Es(Gd);function Ai(e,t={}){return new Promise((r,n)=>{const{library:i}=t;Zd(e,t,(o,s)=>{o?n(o):r(i?window[i]:void 0)})})}const Oi={debug:-1,log:0,info:0,warn:1,error:2},Qd=function(e,t,r,n){return function(...i){if(t&&Oi[t]<=Oi[e]&&console[e].apply&&(n==="*"||r.startsWith(n)))return console[e].apply(console,Xd(i,r))}};function Xd(e,t){return t!=="*"&&(typeof e[0]=="string"?e[0]=`[${t}] ${e[0]}`:e=["["+t+"]"].concat(e)),e}function tm(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 em={level:"warn",bizName:"*"};class rm{constructor(t){ut(this,"config"),ut(this,"options"),this.options=V(V({},em),t);const r=typeof location<"u"?location:{},n=(/__(?:logConf|logLevel)__=([^#/&]*)/.exec(r.href)||[])[1];this.config=tm(n,t)}_log(t){const{targetLevel:r,targetBizName:n}=this.config,{bizName:i}=this.options;return Qd(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 nm(e){return new rm(e)}const Zt=nm({level:"log",bizName:"VTJ"});/*! js-cookie v3.0.5 | MIT */function Oe(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 im={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 Vr(e,t){function r(i,o,s){if(!(typeof document>"u")){s=Oe({},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 a="";for(var c in s)s[c]&&(a+="; "+c,s[c]!==!0&&(a+="="+s[c].split(";")[0]));return document.cookie=i+"="+e.write(o,i)+a}}function n(i){if(!(typeof document>"u"||arguments.length&&!i)){for(var o=document.cookie?document.cookie.split("; "):[],s={},a=0;a<o.length;a++){var c=o[a].split("="),u=c.slice(1).join("=");try{var l=decodeURIComponent(c[0]);if(s[l]=e.read(u,l),i===l)break}catch(f){}}return i?s[i]:s}}return Object.create({set:r,get:n,remove:function(i,o){r(i,"",Oe({},o,{expires:-1}))},withAttributes:function(i){return Vr(this.converter,Oe({},this.attributes,i))},withConverter:function(i){return Vr(Oe({},this.converter,i),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var nn=Vr(im,{path:"/"});function om(e,t,r){nn.set(e,t,r)}function sm(e){return nn.get(e)}function am(e,t){nn.remove(e,t)}const yr=Object.freeze(Object.defineProperty({__proto__:null,get:sm,remove:am,set:om},Symbol.toStringTag,{value:"Module"}));/**!
62
+ * Copyright (c) 2025, VTJ.PRO All rights reserved.
63
+ * @name @vtj/renderer
64
+ * @author CHC chenhuachun1549@dingtalk.com
65
+ * @version 0.10.13
66
+ * @license <a href="https://vtj.pro/license.html">MIT License</a>
67
+ */const vr="0.10.13";var X=(e=>(e.Runtime="Runtime",e.Design="Design",e.Raw="Raw",e.VNode="VNode",e))(X||{});const $i=["$el","$emit","$nextTick","$parent","$root","$attrs","$slots","$watch","$props","$options","$forceUpdate"],um=["vIf","vShow","vModel","vFor","vBind","vHtml"],cm={String,Number,Boolean,Array,Object,Function,Date},Pe="VtjPage",br="VtjHomepage",lm="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(","),fm="component,slot".split(",");function $e(e,t){return e.map(r=>Ho(r)||r.startsWith("/")?r:`${t}${r}`)}function on(e){return/\.css$/.test(e)}function sn(e){return/\.js$/.test(e)}function hm(e){return/\.json$/.test(e)}function pm(e,t=!1){return t&&e.endsWith(".prod.js")?e.replace(".prod.js",".js"):e}function dm(e,t,r=!1){const n=e.filter(p=>!!p.enabled),i=[],o=[],s=[],a=[],c={},u={},l=[],f={};return n.forEach(({urls:p,assetsUrl:h,library:d,assetsLibrary:m,localeLibrary:b})=>{p==null||p.forEach(E=>{sn(E)&&i.push(pm(E,r)),on(E)&&o.push(E)}),d&&(a.push(d),c[d]=$e(p||[],t),b&&(u[d]=b)),h&&s.push(h),m&&l.push(m),d&&m&&(f[m]=d)}),{scripts:$e(i,t),css:$e(o,t),materials:$e(s,t),libraryExports:a,materialExports:zh(l),materialMapLibrary:f,libraryMap:c,libraryLocaleMap:u}}function mm(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 Rs(e){return At(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,a=Array.from(s).filter(c=>c.id!==t);o.adoptedStyleSheets=[...a,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 gm(e,t){return k(this,null,function*(){const r=yield window.fetch(t).then(n=>n.text()).catch(()=>"");r&&an(window,e,r)})}function ym(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 vm(n,i){return k(this,arguments,function*(e,t,r=window){const o=r.document,s=r.document.head;let a=r[t];return a?a.default||a:new Promise((c,u)=>{for(const l of e){const f=o.createElement("script");f.src=l,f.onload=()=>{a=r[t],a?c(a.default||a):u(null)},f.onerror=p=>{u(p)},s.appendChild(f)}})})}function bm(e){return Qt(e)||Qt(e==null?void 0:e.install)}function wm(e){return fm.includes(e)}function _m(e){return lm.includes(e)}function me(e=window){const t=window==null?void 0:window.Mock;if(t)return t;const r=e==null?void 0:e.Mock;if(r&&window)return window.Mock=r,r}function 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,u)=>`__self${u}`),s=o.join(`
68
+ `)+s;const a=`with(${r?"{}":"$scope || {}"}) { ${s} }`;return new Function("$scope",a)(t)}catch(o){if(Zt.error("parseExpression.error",o,e,(i=t==null?void 0:t.__self)!=null?i:t),n)throw o}}function Le(e,t,r=!1,n=!1){var o;const i=ge(e,t,r,n);if(typeof i!="function"&&(Zt.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 tr(e){return typeof e=="object"&&e&&e.type==="JSFunction"}const Em={session:!1,authKey:"Authorization",storageKey:"ACCESS_STORAGE",storagePrefix:"__VTJ_",unauthorized:void 0,auth:"/#/login",redirectParam:"r",unauthorizedCode:401,unauthorizedMessage:"登录已经失效,请重新登录!",noPermissionMessage:"无权限访问该页面",appName:""},Sm=Symbol("access");class xm{constructor(t){q(this,"options");q(this,"data",null);q(this,"mode",X.Raw);this.options=Object.assign({},Em,t),this.loadData()}connect(t){const{mode:r,router:n,request:i}=t;this.mode=r,n&&this.mode===X.Raw&&this.setGuard(n),i&&this.setRequest(i)}login(t){const{storageKey:r,storagePrefix:n,session:i,authKey:o}=this.options;this.setData(t),this.data&&(mr.save(r,t,{type:"local",prefix:n}),i&&yr.set(o,this.data.token))}clear(){const{storageKey:t,storagePrefix:r,session:n,authKey:i}=this.options;this.data=null,mr.remove(t,{type:"local",prefix:r}),n&&yr.remove(i)}logout(){this.clear(),this.toLogin()}getData(){return this.data?this.data:(this.loadData(),this.data)}getToken(){var t;return this.data||this.loadData(),(t=this.data)==null?void 0:t.token}can(t){const{appName:r}=this.options,{permissions:n={}}=this.data||{};return typeof t=="function"?t(n):li(t).every(i=>n[i]||n[r+"."+i])}some(t){const{appName:r}=this.options,{permissions:n={}}=this.data||{};return li(t).some(i=>n[i]||n[r+"."+i])}install(t){t.config.globalProperties.$access||(t.config.globalProperties.$access=this,t.provide(Sm,this))}isAuthPath(t){const{auth:r,isAuth:n}=this.options;if(n)return n(t);if(t.path&&typeof r=="string"){const i=r.split("#")[1]||r;return t.path===i}return!1}toLogin(){const{auth:t,redirectParam:r}=this.options;if(!t)return;const n=r?`?${r}=${encodeURIComponent(location.href)}`:"";typeof t=="function"?t(n):location.href=r?`${t}${n}`:t}setData(t){const{privateKey:r}=this.options;if(Array.isArray(t)&&r){const n=t.map(i=>ci(i,r));this.data=JSON.parse(n.join(""));return}if(typeof t=="string")try{const n=r?ci(t,r):t;n?this.data=JSON.parse(n):console.warn("RSA解密失败或登录信息缺失")}catch(n){console.warn(n)}else this.data=t}loadData(){const{storageKey:t,storagePrefix:r}=this.options,n=mr.get(t,{type:"local",prefix:r});this.setData(n||null)}isLogined(){const{session:t,authKey:r}=this.options;return t&&r?!!yr.get(r):!!this.getToken()}hasRoutePermission(t){if(t.name===Pe){const r=t.params.id;return r&&this.can(r)}return!0}setGuard(t){t.beforeEach((r,n,i)=>this.guard(r,i))}guard(t,r){return k(this,null,function*(){if(this.isWhiteList(t)||this.isAuthPath(t))return r();if(this.isLogined()){if(this.hasRoutePermission(t))return r();{const{noPermissionMessage:n="无权限访问",unauthorized:i=!1}=this.options;return yield this.showTip(n),Qt(i)?(i(),r(!1)):At(i)?r(i):r(!1)}}r(!1),this.toLogin()})}isWhiteList(t){const{whiteList:r}=this.options;return r?Array.isArray(r)?r.some(n=>t.fullPath.startsWith(n)):r(t):!1}isUnauthorized(t){var n;const{unauthorizedCode:r=401}=this.options;return t.status===r||((n=t.data)==null?void 0:n.code)===r}showUnauthorizedAlert(t){return k(this,null,function*(){const{unauthorizedMessage:r="登录已失效"}=this.options;this.isUnauthorized(t)&&(yield this.showTip(r),this.toLogin())})}showTip(t){return k(this,null,function*(){const{alert:r}=this.options;return r?(yield Wo(150),yield r(t,{title:"提示",type:"warning"}).catch(()=>!1)):!1})}setRequest(t){t.useRequest(r=>{var n,i;return(n=this.data)!=null&&n.token&&(r.headers[this.options.authKey]=(i=this.data)==null?void 0:i.token),r}),t.useResponse(r=>k(this,null,function*(){return yield this.showUnauthorizedAlert(r),r}),r=>k(this,null,function*(){const n=r.response||r||{};return yield this.showUnauthorizedAlert(n),Promise.reject(r)}))}}function Tm(e={}){const{notify:t,loading:r,settings:n={},Startup:i,access:o,remote:s="https://lcdp.vtj.pro"}=e;let a=null;return{request:rn({settings:V({type:"form",validSuccess:!0,originResponse:!1,loading:!0,validate:c=>{var u,l;return((u=c.data)==null?void 0:u.code)===0||!!((l=c.data)!=null&&l.success)},failMessage:!0,showError:c=>{t&&t(c||"未知错误")},showLoading:()=>{a&&a.close(),r&&(a=r())},hideLoading:()=>{a&&(a.close(),a=null)}},n)}),jsonp:Ts,notify:t,loading:r,startupComponent:i,remote:s,access:o?Rm(o):void 0}}function Rm(e={}){const t={storageKey:"RRO_IDE_ACCESS_STORAGE__",auth:"https://lcdp.vtj.pro/auth.html",privateKey:"MIIBOgIBAAJBAKoIzmn1FYQ1YOhOBw9EhABxZ+PySAIaydI+zdhoKflrdgJ4A5E4/5gbQmRpk09hPWG8nvX7h+l/QLU8kXxAIBECAwEAAQJAAlgpxQY6sByLsXqzJcthC8LSGsLf2JEJkHwlnpwFqlEV8UCkoINpuZ2Wzl+aftURu5rIfAzRCQBvHmeOTW9/zQIhAO5ufWDmnSLyfAAsNo5JRNpVuLFCFodR8Xm+ulDlosR/AiEAtpAltyP9wmCABKG/v/hrtTr3mcvFNGCjoGa9bUAok28CIHbrVs9w1ijrBlvTsXYwJw46uP539uKRRT4ymZzlm9QjAiB+1KH/G9f9pEEL9rtaSOG7JF5D0JcOjlze4MGVFs+ZrQIhALKOUFBNr2zEsyJIjw2PlvEucdlG77UniszjXTROHSPd"};return new xm(Object.assign(t,e))}function Am(e,t){const{jsonp:r,request:n}=t;if(e.method==="jsonp")return(i={})=>r(e.url,tt(V({},e.jsonpOptions),{query:i}));{const i=e.headers?ge(e.headers,{},!0):void 0,o={url:e.url,method:e.method,settings:tt(V({},e.settings),{headers:i})};return(s,a)=>(delete o.data,n.send(ue(o,a||{},{data:s})))}}function Om(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 $m(e=[],t=[],r){const n={};for(const i of e)n[i.id]=Am(i,r);for(const i of t)n[i.id]=Om(i,r);return n}function Dm(){return k(this,arguments,function*(e=[],t=window){const r=me(t);r&&(As(t),e.forEach(n=>Bm(r,n)))})}function jm(e,t=window){const r=tr(e.mockTemplate)&&e.mockTemplate.value?Le(e.mockTemplate,{},!0):void 0,n=me(t);return(...i)=>k(this,null,function*(){let o={};if(r)try{o=yield r.apply(r,i)}catch(s){Zt.warn("模拟数据模版异常",s)}return n==null?void 0:n.mock(o)})}function Bm(e,t){if(!t.mock)return;const{url:r,mockTemplate:n}=t;if(r&&n){const i=Qr(`${r}(.*)`),o=Yh(r,{decode:decodeURIComponent}),s=ge(n,{},!0);e.mock(i,a=>{var f;const c=Ie.parse(a.url)||{},u=a.body instanceof FormData?Vd(a.body):a.body,l=(f=o(a.url))==null?void 0:f.params;return Object.assign(a,{data:u,params:c,query:l}),e.mock(s(a))})}}function As(e=window){const t=me(e);t&&(t._mocked={})}class Cm{constructor(t){q(this,"__id",null);q(this,"__mode");q(this,"__instance",null);q(this,"__contextRefs",{});q(this,"__refs",{});q(this,"context",{});q(this,"state",{});q(this,"props",{});q(this,"$props",{});q(this,"$refs",{});q(this,"$el",null);q(this,"$emit",null);q(this,"$nextTick",null);q(this,"$parent",null);q(this,"$root",null);q(this,"$attrs",null);q(this,"$slots",null);q(this,"$watch",null);q(this,"$options",null);q(this,"$forceUpdate",null);q(this,"$components",{});q(this,"$libs",{});q(this,"$apis",{});q(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=He){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&&$i.forEach(t=>{var r;this[t]=(r=this.__instance)==null?void 0:r[t]})}__cleanup(){$i.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===X.Runtime){const{id:n,type:i}=t,o=n&&(r=this.__transform[n])!=null?r:t.value;return Le({type:i,value:o},this)}else return Le(t,this)}__parseExpression(t){var r;if(t)if(this.__mode===X.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!==X.VNode)return t&&t!==this.__id&&(this.__contextRefs[t]=this),n=>k(this,null,function*(){var o,s;yield Wo(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,X.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=tt(V({},r),{context:r});return n.context.__proto__=this.context,n.__proto__=this,n}}function Hr(e){var f,p;const{Vue:t=He,mode:r=X.Runtime,components:n={},libs:i={},apis:o={},loader:s}=e,a=t.computed(()=>e.dsl),c={$components:n,$libs:i,$apis:o},u=new Cm({mode:r,dsl:a.value,attrs:c}),l=t.defineComponent(V({name:a.value.name,props:V({},Im((f=a.value.props)!=null?f:[],u)),setup(h){var v,w,S,g;u.$props=h,u.props=h,a.value.id&&an(e.window||window,a.value.id,a.value.css||""),u.state=Pm(t,(v=a.value.state)!=null?v:{},u);const d=Fm(t,(w=a.value.computed)!=null?w:{},u),m=km((S=a.value.methods)!=null?S:{},u),b=Mm(t,a.value.inject,u),E=Um(a.value.dataSources||{},u),y=V(V(V(V({},b),d),m),E);return u.setup(y,t),Lm(t,(g=a.value.watch)!=null?g:[],u),{vtj:u}},emits:Nm(a.value.emits),expose:["vtj"],render(){if(!a.value.nodes)return null;const h=a.value.nodes||[];return h.length===1?Ve(h[0],u,t,s):h.map(d=>Ve(d,u,t,s))}},Vm((p=a.value.lifeCycles)!=null?p:{},u)));return{renderer:t.markRaw(l),context:u}}function Nm(e=[]){return e.map(t=>At(t)?t:t.name)}function Im(e=[],t){const r=n=>n?(Array.isArray(n)?n:[n]).map(i=>cm[i]):void 0;return e.map(n=>At(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 Pm(e,t,r){return e.reactive(Object.keys(t||{}).reduce((n,i)=>{let o=t[i];return ht(o)?o=r.__parseExpression(o):tr(o)&&(o=r.__parseFunction(o)),n[i]=o,n},{}))}function Fm(e,t,r){return Object.entries(t!=null?t:{}).reduce((n,[i,o])=>(n[i]=e.computed(r.__parseFunction(o)),n),{})}function km(e,t){return Object.entries(e!=null?e:{}).reduce((r,[n,i])=>(r[n]=t.__parseFunction(i),r),{})}function Mm(e,t=[],r){return t.reduce((n,i)=>{var u;const{name:o,from:s}=i||{};i.default;const a=ht(s)?r.__parseExpression(s)||o:s!=null?s:o,c=ht(i.default)?r.__parseExpression(i.default):(u=i.default)!=null?u:null;return n[o]=e.inject(a,c),n},{})}function Um(e,t){return Object.keys(e).reduce((r,n)=>{const i=e[n];if(i.type==="mock")r[n]=jm(i);else if(i.ref){const o=t.$apis[i.ref],s=tr(i.transform)?i.transform.value?t.__parseFunction(i.transform):void 0:i.transform;r[n]=(...a)=>k(this,null,function*(){const c=yield o.apply(t,a);return s?s(c):c})}return r},{})}function Lm(e,t=[],r){t.forEach(n=>{e.watch(r.__parseExpression(n.source),r.__parseFunction(n.handler),{deep:n.deep,immediate:n.immediate})})}function Vm(e,t){return Object.entries(e!=null?e:{}).reduce((r,[n,i])=>(r[n]=t.__parseFunction(i),r),{})}let wr=[],qt={};const Hm=e=>e;function Os(r){return k(this,arguments,function*(e,t=window){const{urls:n=[],library:i}=e,o=n.filter(a=>sn(a));if(o.length===0||!i)return null;const s=n.filter(a=>on(a));return s.length&&ym(s,t),yield vm(o,i,t).catch(a=>(console.warn("loadScriptUrl error",o,i,a),null))})}function zr(e){const{getDsl:t,getDslByUrl:r,options:n}=e;return n.window&&(wr.forEach(i=>{delete n.window[i]}),wr=[]),(i,o,s=He)=>{if(!o||typeof o=="string")return i;if(o.type==="Schema"&&o.id){let a=qt[o.id];return a||(a=qt[o.id]=s.defineAsyncComponent(()=>k(this,null,function*(){const c=yield t(o.id);return c&&(c.name=i),c?Hr(tt(V({},n),{Vue:s,dsl:c,mode:X.Runtime,loader:zr(e)})).renderer:null})),a)}if(o.type==="UrlSchema"&&o.url){let a=qt[o.url];return a||(a=qt[o.url]=s.defineAsyncComponent(()=>k(this,null,function*(){const c=yield r(o.url);return c&&(c.name=i),c?Hr(tt(V({},n),{Vue:s,dsl:c,mode:X.Runtime,loader:zr(e)})).renderer:null})),a)}if(o.type==="Plugin"){let a=o.library?qt[o.library]:null;return a||(o.library&&wr.push(o.library),a=qt[o.library||Symbol()]=s.defineAsyncComponent(()=>k(this,null,function*(){return(yield Os(o,n.window))||(console.warn("getPlugin result is null",o),null)})),a)}return i}}function Ve(e,t,r=He,n=Hm){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:a,vFor:c,vShow:u,vModels:l,vBind:f,vHtml:p,others:h}=qm(s);if(a&&!Km(a,t))return null;const d=b=>{var A,M,_,T;const E=b.$components,y=(()=>{var j,P,D,C;if(e.name==="component")return Wm(b,(j=e.props)==null?void 0:j.is);if(e.name==="slot")return e.name;const F=n(e.name,e.from,r);return At(F)?wm(F)||_m(F)?F:(C=(D=E[F])!=null?D:(P=i==null?void 0:i.app)==null?void 0:P.component(F))!=null?C:F:F})(),v=Jm(o,(A=e.props)!=null?A:{},b),w=Ym(r,(M=e.events)!=null?M:{},b);if(e.name==="slot")return Gm(r,e,v,b,n);f&&Object.assign(v,b.__parseExpression(f.value)),u&&(v.style=Object.assign((_=v.style)!=null?_:{},Qm(u,b))),p&&Object.assign(v,Xm(p,b)),l.forEach(F=>{Object.assign(v,tg(r,F,b))});const S=eg(r,(T=e.children)!=null?T:[],b,n,e);let g=r.createVNode(y,V(V({},v),w),S);const x=i?zm(i,h,b):[];return x.length&&(g=r.withDirectives(g,x)),g};return c?ig(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 qm(e=[]){const t=e.find(c=>Bt(c.name)==="vIf"),r=e.find(c=>Bt(c.name)==="vFor"),n=e.find(c=>Bt(c.name)==="vShow"),i=e.find(c=>Bt(c.name)==="vBind"),o=e.find(c=>Bt(c.name)==="vHtml"),s=e.filter(c=>Bt(c.name)==="vModel"),a=e.filter(c=>!um.includes(Bt(c.name)));return{vIf:t,vFor:r,vShow:n,vModels:s,vBind:i,others:a,vHtml:o}}function Km(e,t){return!!t.__parseExpression(e.value)}function Wm(e,t){return t?ht(t)?e.__parseExpression(t):t:"div"}function Jm(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):tr(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 Ym(e,t,r){const n=["passive","capture","once"],i={capture:"Capture",once:"Once",passive:"OnceCapture"};return Object.keys(t||{}).reduce((o,s)=>{const a=t[s],c=$s(a.modifiers),u=c.find(p=>n.includes(p)),l="on"+lo(s)+(u&&i[u]||""),f=r.__parseFunction(a.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 Gm(e,t,r,n,i){var c;const{children:o}=t,s=Zm(t,n),a=(c=n.$slots)==null?void 0:c[s.name];return a?a(r):o?At(o)?e.createTextVNode(o):ht(o)?e.createTextVNode(Rs(n.__parseExpression(o))):Array.isArray(o)?o.map(u=>Ve(u,n,e,i)):null:null}function Zm(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 Xm(e,t){return{innerHTML:t.__parseExpression(e.value)||""}}function tg(e,t,r){var a;const n={type:"JSFunction",value:(a=t.value)!=null&&a.value?`(v) => {
69
+ ${t.value.value} = v;
70
+ }`:"(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 eg(e,t,r,n,i){if(!t)return null;if(At(t))return{default:()=>t};if(ht(t))return{default:()=>Rs(r.__parseExpression(t))};if(Array.isArray(t)&&t.length>0){const o=rg(t),s=a=>!a||!i?{}:i!=null&&i.id&&Object.keys(a).length?{[`scope_${i.id}`]:a}:{};return Object.entries(o).reduce((a,[c,{nodes:u,params:l}])=>(a[c]=f=>{const p=l.length?qh(f!=null?f:{},l):s(f);return u.map(h=>Ve(h,r.__clone(p),e,n))},a),{})}return null}function rg(e){const t={default:{params:[],nodes:[]}};for(const r of e){const n=ng(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 ng(e="default"){return At(e)?{name:e,params:[]}:V({params:[]},e)}function ig(e,t,r){const{value:n,iterator:i}=e,{item:o="item",index:s="index"}=i||{};let a=r.__parseExpression(n)||[];return Number.isInteger(a)&&(a=new Array(a).fill(!0).map((c,u)=>u+1)),Array.isArray(a)?a.map((c,u)=>t(r.__clone({[o]:c,[s]:u}))):(console.warn("[vForRender]:",`${n==null?void 0:n.value} is not a Arrary`),[])}const Di=Ci({name:"VtjPageContainer",setup(){return k(this,null,function*(){const e=ug(),t=Vs(),r=t.params.id,n=r?e.getPage(r):e.getHomepage(),i=n?yield e.getRenderComponent(n.id):null,o=Us(Symbol());if(n){Object.assign(t.meta,n.meta||{},{cache:n.cache});const{useTitle:s}=e==null?void 0:e.adapter;s&&s(n.title||"VTJ")}return{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?_r(e,tt(V({},t),{key:r})):_r("div","页面不存在")},activated(){this.meta.cache===!1&&(this.sid=Symbol())}}),og=Ci({name:"VtjStartupContainer",render(){return _r("div","page not found!")}}),Ds=Symbol("Provider");class sg extends ip{constructor(r){super();q(this,"mode");q(this,"globals",{});q(this,"modules",{});q(this,"adapter",{request:Mr,jsonp:Ts});q(this,"apis",{});q(this,"dependencies",{});q(this,"materials",{});q(this,"library",{});q(this,"service");q(this,"project",null);q(this,"components",{});q(this,"nodeEnv","development");q(this,"router",null);q(this,"materialPath","./");q(this,"urlDslCaches",{});this.options=r;const{service:n,mode:i=X.Raw,dependencies:o,materials:s,project:a={},adapter:c={},globals:u={},modules:l={},router:f=null,materialPath:p="./",nodeEnv:h="development"}=r;this.mode=i,this.modules=l,this.service=n,this.router=f,this.materialPath=p,this.nodeEnv=h,o&&(this.dependencies=o),s&&(this.materials=s),Object.assign(this.globals,u),Object.assign(this.adapter,c);const{access:d,request:m}=this.adapter;d&&d.connect({mode:i,router:f,request:m}),a&&i!==X.Design?this.load(a):this.project=a}createMock(r){return(...n)=>k(this,null,function*(){var o;let i={};if(r)try{i=yield r.apply(r,n)}catch(s){Zt.warn("模拟数据模版异常",s)}return(o=me())==null?void 0:o.mock(i)})}load(r){return k(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&&(s.CKEDITOR_VERSION=void 0),this.mode===X.Raw?yield this.loadDependencies(s):yield this.loadAssets(s),this.initMock(s),this.apis=$m(i,o,this.adapter),As(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 k(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 k(this,null,function*(){const{dependencies:n=[]}=this.project,{dependencies:i,library:o,components:s,materialPath:a,nodeEnv:c}=this,{libraryExports:u,libraryMap:l,materials:f,materialExports:p,materialMapLibrary:h}=dm(n,a,c==="development");for(const d of u){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 gm(d,Ie.append(y,{v:vr}))),sn(y)&&(yield Ai(Ie.append(y,{v:vr})));o[d]=r[d]}}if(c==="development"){for(const m of f)yield Ai(Ie.append(m,{v:vr}));const d=this.materials||{};for(const m of p){const b=r[h[m]],E=np[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]=mm(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:a,pageRouteName:c=s,routeMeta:u}=i,l=a?"":"/",f={path:`${l}${c}/:id`,name:Pe,component:Di},p={path:l,name:br,component:n!=null&&n.homepage?Di:o.startupComponent||og,meta:u};r.hasRoute(Pe)&&r.removeRoute(Pe),r.hasRoute(br)&&r.removeRoute(br),a?(r.addRoute(a,f),r.addRoute(a,p)):(r.addRoute(f),r.addRoute(p))}install(r){const n=r.config.globalProperties.installed||{};for(const[i,o]of Object.entries(this.library))!n[i]&&bm(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===X.Design&&(r.config.errorHandler=(i,o,s)=>{const a=o==null?void 0:o.$options.name,c=typeof i=="string"?i:(i==null?void 0:i.message)||(i==null?void 0:i.msg)||"未知错误",u=`[ ${a} ] ${c} ${s}`;console.error("[VTJ Error]:",{err:i,instance:o,info:s},i==null?void 0:i.stack),this.adapter.notify&&this.adapter.notify(u,"组件渲染错误","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 a of s){if(a.id===o)return a;if(a.children&&a.children.length){const c=i(o,a.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 k(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 k(this,null,function*(){return this.urlDslCaches[r]||(this.adapter.request?this.urlDslCaches[r]=this.adapter.request.send({url:r,method:"get",settings:{validSuccess:!1,originResponse:!0}}).then(i=>i.data).catch(()=>null):null)})}createDslRenderer(r,n={}){const{library:i,components:o,mode:s,apis:a}=this,c=V({mode:s,Vue:i.Vue,components:o,libs:i,apis:a,window},n),u=zr({getDsl:l=>k(this,null,function*(){return(yield this.getDsl(l))||null}),getDslByUrl:l=>k(this,null,function*(){return(yield this.getDslByUrl(l))||null}),options:c});return Hr(tt(V({},c),{dsl:r,loader:u}))}getRenderComponent(r,n){return k(this,null,function*(){var c;const i=this.getFile(r);if(!i)return Zt.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 a=yield this.getDsl(i.id);return a?this.createDslRenderer(a).renderer:(Zt.warn(`Can not find dsl: ${r}`),null)})}defineUrlSchemaComponent(r,n){return ln(()=>k(this,null,function*(){const i=yield this.getDslByUrl(r);return i?(i.name=n||i.name,this.createDslRenderer(i).renderer):null}))}definePluginComponent(r){return ln(()=>k(this,null,function*(){return yield Os(r,window)}))}}function ag(e){const t=new sg(e);return{provider:t,onReady:r=>t.ready(r)}}function ug(e={}){const t=Ls(Ds,null);if(!t)throw new Error("Can not find provider");if(t.nodeEnv==="development"){const{id:r,version:n}=e;r&&n&&k(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 js={type:"json",validSuccess:!0,originResponse:!1,failMessage:!0,validate:e=>{var t;return((t=e.data)==null?void 0:t.code)===0}},cg=(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:js}),lg=(e,t="/__vtj__/api/uploader.json")=>(r,n)=>k(void 0,null,function*(){return yield e.send({url:t,method:"post",data:{files:r,projectId:n},settings:tt(V({},js),{type:"data"})}).then(i=>i&&i[0]?i[0]:null).catch(()=>null)});function fg(e){return rn({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 hg{constructor(t=Mr){q(this,"api");q(this,"pluginCaches",{});q(this,"uploader");this.api=cg(t),this.uploader=lg(t)}getExtension(){return k(this,null,function*(){console.log("BaseService.getExtension")})}init(t){return k(this,null,function*(){return console.log("BaseService.init",t),{}})}saveProject(t,r){return k(this,null,function*(){return!!(yield this.api("saveProject",t,{type:r}).catch(()=>!1))})}saveMaterials(t,r){return k(this,null,function*(){return console.log("BaseService.saveMaterials",t,r),!1})}saveFile(t){return k(this,null,function*(){return console.log("BaseService.saveFile",t),!1})}getFile(t){return k(this,null,function*(){return console.log("BaseService.getFile",t),{}})}removeFile(t){return k(this,null,function*(){return console.log("BaseService.removeFile",t),!1})}saveHistory(t){return k(this,null,function*(){return console.log("BaseService.saveHistory",t),!1})}removeHistory(t){return k(this,null,function*(){return console.log("BaseService.removeHistory",t),!1})}getHistory(t){return k(this,null,function*(){return console.log("BaseService.getHistory",t),{}})}getHistoryItem(t,r){return k(this,null,function*(){return console.log("BaseService.getHistoryItem",t,r),{}})}saveHistoryItem(t,r){return k(this,null,function*(){return console.log("BaseService.saveHistoryItem",t,r),!1})}removeHistoryItem(t,r){return k(this,null,function*(){return console.log("BaseService.removeHistoryItem",t,r),!1})}publish(t){return k(this,null,function*(){return!!(yield this.api("publish",t).catch(()=>!1))})}publishFile(t,r){return k(this,null,function*(){return!!(yield this.api("publishFile",{project:t,file:r}).catch(()=>!1))})}genVueContent(t,r){return k(this,null,function*(){return yield this.api("genVueContent",{project:t,dsl:r}).catch(()=>"")})}createRawPage(t){return k(this,null,function*(){return yield this.api("createRawPage",t).catch(()=>"")})}removeRawPage(t){return k(this,null,function*(){return yield this.api("removeRawPage",t).catch(()=>"")})}uploadStaticFile(t,r){return k(this,null,function*(){return yield this.uploader(t,r).catch(()=>null)})}getStaticFiles(t){return k(this,null,function*(){return yield this.api("getStaticFiles",t).catch(()=>[])})}removeStaticFile(t,r){return k(this,null,function*(){return yield this.api("removeStaticFile",{name:t,projectId:r}).catch(()=>"")})}clearStaticFiles(t){return k(this,null,function*(){return yield this.api("clearStaticFiles",t).catch(()=>"")})}getPluginMaterial(t){return k(this,null,function*(){const{urls:r=[]}=t,n=r.filter(o=>hm(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 k(this,null,function*(){return console.log("BaseService.genSource",t),""})}}new _s({type:"local",expired:0,prefix:"__VTJ_"});class pg extends hg{constructor(){super(...arguments);q(this,"getFileCaches",{})}getExtension(){return k(this,null,function*(){return yield this.api("getExtension",{}).catch(()=>{})})}init(r){return k(this,null,function*(){return(yield this.api("init",r).catch(()=>null))||{}})}saveProject(r,n){return k(this,null,function*(){return!!(yield this.api("saveProject",r,{type:n}).catch(()=>!1))})}saveMaterials(r,n){return k(this,null,function*(){return!!(yield this.api("saveMaterials",{project:r,materials:Hh(n)}).catch(()=>!1))})}saveFile(r){return k(this,null,function*(){return!!(yield this.api("saveFile",r).catch(()=>!1))})}getFile(r){return k(this,null,function*(){return this.getFileCaches[r]||(this.getFileCaches[r]=this.api("getFile",r).catch(()=>null)).finally(()=>{delete this.getFileCaches[r]})})}removeFile(r){return k(this,null,function*(){return!!(yield this.api("removeFile",r).catch(()=>!1))})}saveHistory(r){return k(this,null,function*(){return!!(yield this.api("saveHistory",r).catch(()=>!1))})}removeHistory(r){return k(this,null,function*(){return!!(yield this.api("removeHistory",r).catch(()=>!1))})}getHistory(r){return k(this,null,function*(){return(yield this.api("getHistory",r).catch(()=>null))||{}})}getHistoryItem(r,n){return k(this,null,function*(){return(yield this.api("getHistoryItem",{fId:r,id:n}).catch(()=>null))||{}})}saveHistoryItem(r,n){return k(this,null,function*(){return!!(yield this.api("saveHistoryItem",{fId:r,item:n}).catch(()=>!1))})}removeHistoryItem(r,n){return k(this,null,function*(){return!!(yield this.api("removeHistoryItem",{fId:r,ids:n}).catch(()=>!1))})}}/**!
71
+ * Copyright (c) 2025, VTJ.PRO All rights reserved.
72
+ * @name @vtj/uni
73
+ * @author CHC chenhuachun1549@dingtalk.com
74
+ * @version 0.10.13
75
+ * @license <a href="https://vtj.pro/license.html">MIT License</a>
76
+ */const dg=["onLaunch","onShow","onHide","onError","onPageNotFound","onUnhandledRejection","onThemeChange","onPageNotFound","onUniNViewMessage","onExit"],ji="/pages",mg="VTJ",gg="__UNI__1FC118B",yg="VTJ移动跨端项目",vg="1.0.0",bg="100",wg=!1,_g={},Eg={enable:!1},Sg="3",xg={name:mg,appid:gg,description:yg,versionName:vg,versionCode:bg,transformPx:wg,"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:_g,"mp-weixin":{appid:"",setting:{urlCheck:!1},usingComponents:!0},"mp-alipay":{usingComponents:!0},"mp-baidu":{usingComponents:!0},"mp-toutiao":{usingComponents:!0},uniStatistics:Eg,vueVersion:Sg},Tg=[],Rg={navigationBarTextStyle:"black",navigationBarTitleText:"uni-app",navigationBarBackgroundColor:"#F8F8F8",backgroundColor:"#F8F8F8"},Ag={autoscan:!0,custom:{"^uni-(.*)":"@dcloudio/uni-ui/lib/uni-$1/uni-$1.vue"}},Og={pages:Tg,globalStyle:Rg,easycom:Ag};function $g(e){let{manifestJson:t={},pagesJson:r={},routes:n=[]}=e;const i=n.map(o=>{const{path:s,style:a,needLogin:c}=o;return{path:s,style:a,needLogin:c}});return tt(V({},e),{manifestJson:Object.assign({},xg,t),pagesJson:Object.assign({},Og,r,{pages:i})})}const Kr={navigationBarBackgroundColor:"backgroundColor",navigationBarTextStyle:"titleColor",navigationBarTitleText:"titleText",navigationStyle:"style",titleImage:"titleImage",titlePenetrate:"titlePenetrate",transparentTitle:"transparentTitle"};function Bs(e){const t={},r={black:"#000000",white:"#ffffff"};for(const n in e)Kr[n]&&(t[Kr[n]]=n==="navigationBarTextStyle"?r[e[n]]||r.black:e[n]);return t}function Dg(e){const t={};for(const r in e)Kr[r]||(t[r]=e[r]);return t}function jg(e){var t,r;return((r=(t=e.h5)==null?void 0:t.router)==null?void 0:r.mode)||"hash"}function Bg(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 Cg(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 Ng(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 Ig(e){var a;const t=Ng(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=(a=i==null?void 0:i.h5)==null?void 0:a.titleNView;return o.find(c=>{var u,l,f;return!!((f=(l=(u=c.style)==null?void 0:u.h5)==null?void 0:l.titleNView)!=null&&f.buttons.length)})&&(r.navigationBarButtons=!0),(s!=null&&s.searchInput||o.find(c=>{var u,l,f;return!!((f=(l=(u=c.style)==null?void 0:u.h5)==null?void 0:l.titleNView)!=null&&f.searchInput)}))&&(r.navigationBarSearchInput=!0),((s==null?void 0:s.type)==="transparent"||o.find(c=>{var u,l,f;return((f=(l=(u=c.style)==null?void 0:u.h5)==null?void 0:l.titleNView)==null?void 0:f.type)==="transparent"}))&&(r.navigationBarTransparent=!0),r}function Pg(e,t=window){var p,h,d,m;const{pagesJson:r={},manifestJson:n={}}=e,{topWindow:i,leftWindow:o,rightWindow:s}=Bg(r),{navigationBar:a,navigationBarButtons:c,navigationBarSearchInput:u,navigationBarTransparent:l}=Ig(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__:jg(n),__UNI_FEATURE_PAGES__:!!((p=r.pages)!=null&&p.length),__UNI_FEATURE_TABBAR__:!!((d=(h=r.tabBar)==null?void 0:h.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__:a,__UNI_FEATURE_PULL_DOWN_REFRESH__:Cg(e),__UNI_FEATURE_NAVIGATIONBAR_BUTTONS__:c,__UNI_FEATURE_NAVIGATIONBAR_SEARCHINPUT__:u,__UNI_FEATURE_NAVIGATIONBAR_TRANSPARENT__:l};Object.entries(f).forEach(([b,E])=>{t[b]=E})}const Fg="4.53";function kg(e,t=window){var f,p;const{pagesJson:r={},manifestJson:n={}}=e,{easycom:i={}}=r,{appid:o="",name:s="",versionCode:a="",versionName:c=""}=n,u=r.globalStyle,l=((f=n.h5)==null?void 0:f.router)||{};t.__uniConfig={easycom:i,globalStyle:tt(V({},Dg(u)),{navigationBar:Bs(u),isNVue:!1}),compilerVersion:Fg,appId:o,appName:s,appVersion:c,appVersionCode:String(a),async:V({loading:"AsyncLoading",error:"AsyncError",delay:200,timeout:6e4,suspensible:!0},((p=n.h5)==null?void 0:p.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 Mg(e,t=window){const{UniServiceJSBridge:r,UniViewJSBridge:n,getApp:i,uni:o,getCurrentPages:s,upx2px:a,setupPage:c}=e;t.UniServiceJSBridge=r,t.UniViewJSBridge=n,t.getApp=i,t.uni=o,t.wx=o,t.getCurrentPages=s,t.upx2px=a,t.__setupPage=u=>c(u)}function Ug(e,t,r){const{openBlock:n,createBlock:i,withCtx:o,createVNode:s}=e,{PageComponent:a,setupPage:c,getApp:u}=t;return{mpType:"page",setup(){return k(this,null,function*(){var m,b;const f=((b=(m=u())==null?void 0:m.$route)==null?void 0:b.query)||{},{loader:p,component:h}=r,d=p?yield p(r):h||{};return()=>(n(),i(a,null,{page:o(()=>[s(c(d),Object.assign({},f,{ref:"page"}),null,512)]),_:1}))})}}}function Lg(e,t,r){var h;const{path:n,style:i={},meta:o={},home:s,id:a}=t,c=((h=e.tabBar)==null?void 0:h.list)||[],u=c.findIndex(d=>{var m;return d.pagePath===n||((m=d.pagePath)==null?void 0:m.endsWith(a))}),l=c[u],f=!!l,p=r===0;return V({isTabBar:f,tabBarIndex:u,isQuit:s!=null?s:p,isEntry:s!=null?s:p,navigationBar:V({type:"default"},Bs(i)),isNVue:!1,route:l?l.pagePath:n},o)}function Vg(e,t,r,n,i=window){const o=r.map((s,a)=>{const c=Lg(n,s,a),u=Ug(e,t,s),{path:l}=s;return{path:l,alias:l,meta:c,component:{render(){return e.h(e.Suspense,[e.h(u)])}}}});i.__uniRoutes=o,i.__uniLayout={}}function Hg(e,t,r=window){an(r,String(e),t)}function zg(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 qg(e){const t=$g(e),{Vue:r,App:n,UniH5:i,routes:o=[],pagesJson:s={},manifestJson:a={},window:c,css:u=""}=t;if(!i)return r.createApp(n);const{plugin:l,setupApp:f}=i;Pg(t,c),kg(t,c),Mg(i,c),Vg(r,i,o,s,c),Hg(a.appid||Date.now(),u,c);const p=r.createApp(f(n));return p.use(zg,i),p.use(l),p}function Kg(e,t){const r={};return Object.entries(e).forEach(([n,i])=>{dg.includes(n)&&i&&(r[n]=t(i))}),r}function Bi(e,t){return()=>k(this,null,function*(){const r=yield e.getDsl(t);if(r){const{renderer:n}=e.createDslRenderer(r);return n}return null})}function Wg(n){return k(this,arguments,function*(e,t=!1,r=ji){var a,c,u;const i=((a=e.project)==null?void 0:a.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===ji?"/":r;o.unshift(tt(V({},s),{path:l}))}if(t){const l=((u=e.project)==null?void 0:u.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 Jg(){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 Cs(e,t="",r="warning"){var n;(n=window.uni)!=null&&n.showModal&&window.uni.showModal({title:t,content:e,showCancel:!1})}function Yg(e=X.Runtime){return e===X.Runtime?Object.assign({}):Object.assign({})}const Gg=Tm({loading:Jg,notify:Cs}),Zg=new pg(fg(Cs)),Qg=Yg(),{provider:Xg,onReady:t0}=ag({nodeEnv:"production",mode:X.Runtime,modules:Qg,materialPath:"../",adapter:Gg,service:Zg,dependencies:{Vue:()=>hn(()=>import("./@dcloudio-uni-h5-vue-DzUn8GQh.js").then(e=>e.x),__vite__mapDeps([0,1,2]),import.meta.url),VueRouter:()=>hn(()=>import("./vue-router-pF46KwvV.js"),__vite__mapDeps([3,0,1,2]),import.meta.url)}}),e0=e=>k(void 0,null,function*(){const{Vue:t,UniH5:r}=window,n=e.project;if(!n)return;const i=n.uniConfig||{},o=Kg(i,f=>Le(f,window,!1,!0)),{manifestJson:s,pagesJson:a,css:c}=i,u=yield Wg(e,!0),l=qg({Vue:t,App:o,UniH5:r,routes:u,css:c,manifestJson:s,pagesJson:a});l.use(e),l.mount(document.body)});t0(()=>e0(Xg));