@vtj/pro 0.16.19 → 0.16.21
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.
- package/dist/@vtj/materials/assets/antdv/index.umd.js +2 -2
- package/dist/@vtj/materials/assets/charts/index.umd.js +2 -2
- package/dist/@vtj/materials/assets/element/index.umd.js +2 -2
- package/dist/@vtj/materials/assets/icons/index.umd.js +2 -2
- package/dist/@vtj/materials/assets/ui/index.umd.js +2 -2
- package/dist/@vtj/materials/assets/uni-h5/index.umd.js +2 -2
- package/dist/@vtj/materials/assets/uni-ui/index.umd.js +2 -2
- package/dist/@vtj/materials/assets/vant/index.umd.js +2 -2
- package/dist/@vtj/materials/deps/@vtj/charts/index.umd.js +2 -2
- package/dist/@vtj/materials/deps/@vtj/icons/index.umd.js +2 -2
- package/dist/@vtj/materials/deps/@vtj/ui/index.umd.js +2 -2
- package/dist/@vtj/materials/deps/@vtj/utils/index.umd.js +2 -2
- package/dist/assets/{Editor-CnrmSJC0-BJ5S1UBg.js → Editor-DOwRDnWV-U9WcRjMP.js} +100 -100
- package/dist/assets/auth-UEPK59VT.js +1 -0
- package/dist/assets/index-DAOeQuqK.js +1 -0
- package/dist/assets/{index-Cy714gl2.js → index-wjb4qznY.js} +2 -2
- package/dist/assets/page-BaNcBeBb.js +2 -0
- package/dist/assets/preview-ByoToq69.js +2 -0
- package/dist/assets/utils-C9mXua9J.js +1 -0
- package/dist/index.html +3 -3
- package/dist/uni/assets/{@dcloudio-uni-h5-vue-CQcoi6u8.js → @dcloudio-uni-h5-vue-BmOkhsCk.js} +1 -1
- package/dist/uni/assets/{index-DJN5ZlZJ.js → index-BKCYBwsc.js} +33 -33
- package/dist/uni/assets/{vue-router-DfiwASwJ.js → vue-router-BaL-Hp_b.js} +1 -1
- package/dist/uni/index.html +3 -3
- package/package.json +12 -12
- package/dist/assets/auth-VFmrfozu.js +0 -1
- package/dist/assets/index-BI8_G-jh.js +0 -1
- package/dist/assets/page-Vnh3kyn1.js +0 -2
- package/dist/assets/preview-BBa3nmAy.js +0 -2
- package/dist/assets/utils-BVEwWVpg.js +0 -1
- /package/dist/assets/{Editor-CnrmSJC0-RqUph99l.css → Editor-DOwRDnWV-RqUph99l.css} +0 -0
|
@@ -1,76 +1,76 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./@dcloudio-uni-h5-vue-
|
|
2
|
-
var Ra=Object.defineProperty,Aa=Object.defineProperties;var xa=Object.getOwnPropertyDescriptors;var Fn=Object.getOwnPropertySymbols;var Oa=Object.prototype.hasOwnProperty,$a=Object.prototype.propertyIsEnumerable;var Ye=(t,e)=>(e=Symbol[t])?e:Symbol.for("Symbol."+t),Da=t=>{throw TypeError(t)};var yr=(t,e,r)=>e in t?Ra(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,V=(t,e)=>{for(var r in e||(e={}))Oa.call(e,r)&&yr(t,r,e[r]);if(Fn)for(var r of Fn(e))$a.call(e,r)&&yr(t,r,e[r]);return t},re=(t,e)=>Aa(t,xa(e));var k=(t,e,r)=>yr(t,typeof e!="symbol"?e+"":e,r);var L=(t,e,r)=>new Promise((n,i)=>{var s=l=>{try{u(r.next(l))}catch(a){i(a)}},o=l=>{try{u(r.throw(l))}catch(a){i(a)}},u=l=>l.done?n(l.value):Promise.resolve(l.value).then(s,o);u((r=r.apply(t,e)).next())}),He=function(t,e){this[0]=t,this[1]=e},br=(t,e,r)=>{var n=(o,u,l,a)=>{try{var c=r[o](u),f=(u=c.value)instanceof He,h=c.done;Promise.resolve(f?u[0]:u).then(p=>f?n(o==="return"?o:"next",u[1]?{done:p.done,value:p.value}:p,l,a):l({value:p,done:h})).catch(p=>n("throw",p,l,a))}catch(p){a(p)}},i=o=>s[o]=u=>new Promise((l,a)=>n(o,u,l,a)),s={};return r=r.apply(t,e),s[Ye("asyncIterator")]=()=>s,i("next"),i("throw"),i("return"),s},_r=t=>{var e=t[Ye("asyncIterator")],r=!1,n,i={};return e==null?(e=t[Ye("iterator")](),n=s=>i[s]=o=>e[s](o)):(e=e.call(t),n=s=>i[s]=o=>{if(r){if(r=!1,s==="throw")throw o;return o}return r=!0,{done:!1,value:new He(new Promise(u=>{var l=e[s](o);l instanceof Object||Da("Object expected"),u(l)}),1)}}),i[Ye("iterator")]=()=>i,n("next"),"throw"in e?n("throw"):i.throw=s=>{throw s},"return"in e&&n("return"),i},Ln=(t,e,r)=>(e=t[Ye("asyncIterator")])?e.call(t):(t=t[Ye("iterator")](),e={},r=(n,i)=>(i=t[n])&&(e[n]=s=>new Promise((o,u,l)=>(s=i.call(t,s),l=s.done,Promise.resolve(s.value).then(a=>o({value:a,done:l}),u)))),r("next"),r("return"),e);import{g as Un,d as ys,h as Wr,f as Ca,G as sr,i as Ba}from"./@dcloudio-uni-h5-vue-CQcoi6u8.js";import{useRoute as ja}from"./vue-router-DfiwASwJ.js";import"./vue-DefuvV9N.js";import"./@dcloudio-uni-shared-bWpOwtAM.js";(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))n(i);new MutationObserver(i=>{for(const s of i)if(s.type==="childList")for(const o of s.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&n(o)}).observe(document,{childList:!0,subtree:!0});function r(i){const s={};return i.integrity&&(s.integrity=i.integrity),i.referrerPolicy&&(s.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?s.credentials="include":i.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function n(i){if(i.ep)return;i.ep=!0;const s=r(i);fetch(i.href,s)}})();const Pa="modulepreload",Na=function(t,e){return new URL(t,e).href},Hn={},Vn=function(e,r,n){let i=Promise.resolve();if(r&&r.length>0){let o=function(c){return Promise.all(c.map(f=>Promise.resolve(f).then(h=>({status:"fulfilled",value:h}),h=>({status:"rejected",reason:h}))))};const u=document.getElementsByTagName("link"),l=document.querySelector("meta[property=csp-nonce]"),a=(l==null?void 0:l.nonce)||(l==null?void 0:l.getAttribute("nonce"));i=o(r.map(c=>{if(c=Na(c,n),c in Hn)return;Hn[c]=!0;const f=c.endsWith(".css"),h=f?'[rel="stylesheet"]':"";if(!!n)for(let g=u.length-1;g>=0;g--){const m=u[g];if(m.href===c&&(!f||m.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${c}"]${h}`))return;const d=document.createElement("link");if(d.rel=f?"stylesheet":Pa,f||(d.as="script"),d.crossOrigin="",d.href=c,a&&d.setAttribute("nonce",a),document.head.appendChild(d),f)return new Promise((g,m)=>{d.addEventListener("load",g),d.addEventListener("error",()=>m(new Error(`Unable to preload CSS for ${c}`)))})}))}function s(o){const u=new Event("vite:preloadError",{cancelable:!0});if(u.payload=o,window.dispatchEvent(u),!u.defaultPrevented)throw o}return i.then(o=>{for(const u of o||[])u.status==="rejected"&&s(u.reason);return e().catch(s)})};var Ia={ENV_TYPE:"live",NODE_ENV:"production"},Ma=typeof global=="object"&&global&&global.Object===Object&&global;const bs=Ma;var Fa=typeof self=="object"&&self&&self.Object===Object&&self,La=bs||Fa||Function("return this")();const be=La;var Ua=be.Symbol;const Te=Ua;var _s=Object.prototype,Ha=_s.hasOwnProperty,Va=_s.toString,pt=Te?Te.toStringTag:void 0;function ka(t){var e=Ha.call(t,pt),r=t[pt];try{t[pt]=void 0;var n=!0}catch(s){}var i=Va.call(t);return n&&(e?t[pt]=r:delete t[pt]),i}var qa=Object.prototype,za=qa.toString;function Wa(t){return za.call(t)}var Ka="[object Null]",Ja="[object Undefined]",kn=Te?Te.toStringTag:void 0;function $e(t){return t==null?t===void 0?Ja:Ka:kn&&kn in Object(t)?ka(t):Wa(t)}function ge(t){return t!=null&&typeof t=="object"}var Ga="[object Symbol]";function ws(t){return typeof t=="symbol"||ge(t)&&$e(t)==Ga}function Es(t,e){for(var r=-1,n=t==null?0:t.length,i=Array(n);++r<n;)i[r]=e(t[r],r,t);return i}var Ya=Array.isArray;const Oe=Ya;var qn=Te?Te.prototype:void 0,zn=qn?qn.toString:void 0;function Ss(t){if(typeof t=="string")return t;if(Oe(t))return Es(t,Ss)+"";if(ws(t))return zn?zn.call(t):"";var e=t+"";return e=="0"&&1/t==-1/0?"-0":e}var Za=/\s/;function Qa(t){for(var e=t.length;e--&&Za.test(t.charAt(e)););return e}var Xa=/^\s+/;function eu(t){return t&&t.slice(0,Qa(t)+1).replace(Xa,"")}function ve(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var Wn=NaN,tu=/^[-+]0x[0-9a-f]+$/i,ru=/^0b[01]+$/i,nu=/^0o[0-7]+$/i,iu=parseInt;function Kn(t){if(typeof t=="number")return t;if(ws(t))return Wn;if(ve(t)){var e=typeof t.valueOf=="function"?t.valueOf():t;t=ve(e)?e+"":e}if(typeof t!="string")return t===0?t:+t;t=eu(t);var r=ru.test(t);return r||nu.test(t)?iu(t.slice(2),r?2:8):tu.test(t)?Wn:+t}function Ts(t){return t}var su="[object AsyncFunction]",ou="[object Function]",au="[object GeneratorFunction]",uu="[object Proxy]";function Ie(t){if(!ve(t))return!1;var e=$e(t);return e==ou||e==au||e==su||e==uu}var cu=be["__core-js_shared__"];const wr=cu;var Jn=(function(){var t=/[^.]+$/.exec(wr&&wr.keys&&wr.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""})();function lu(t){return!!Jn&&Jn in t}var fu=Function.prototype,hu=fu.toString;function Je(t){if(t!=null){try{return hu.call(t)}catch(e){}try{return t+""}catch(e){}}return""}var pu=/[\\^$.*+?()[\]{}|]/g,du=/^\[object .+?Constructor\]$/,gu=Function.prototype,vu=Object.prototype,mu=gu.toString,yu=vu.hasOwnProperty,bu=RegExp("^"+mu.call(yu).replace(pu,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function _u(t){if(!ve(t)||lu(t))return!1;var e=Ie(t)?bu:du;return e.test(Je(t))}function wu(t,e){return t==null?void 0:t[e]}function Ge(t,e){var r=wu(t,e);return _u(r)?r:void 0}var Eu=Ge(be,"WeakMap");const Kr=Eu;var Gn=Object.create,Su=(function(){function t(){}return function(e){if(!ve(e))return{};if(Gn)return Gn(e);t.prototype=e;var r=new t;return t.prototype=void 0,r}})();const Tu=Su;function Rs(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)}function Ru(t,e){var r=-1,n=t.length;for(e||(e=Array(n));++r<n;)e[r]=t[r];return e}var Au=800,xu=16,Ou=Date.now;function $u(t){var e=0,r=0;return function(){var n=Ou(),i=xu-(n-r);if(r=n,i>0){if(++e>=Au)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}function Du(t){return function(){return t}}var Cu=(function(){try{var t=Ge(Object,"defineProperty");return t({},"",{}),t}catch(e){}})();const Qt=Cu;var Bu=Qt?function(t,e){return Qt(t,"toString",{configurable:!0,enumerable:!1,value:Du(e),writable:!0})}:Ts;const ju=Bu;var Pu=$u(ju);const Nu=Pu;function Iu(t,e){for(var r=-1,n=t==null?0:t.length;++r<n&&e(t[r],r,t)!==!1;);return t}var Mu=9007199254740991,Fu=/^(?:0|[1-9]\d*)$/;function As(t,e){var r=typeof t;return e=e==null?Mu:e,!!e&&(r=="number"||r!="symbol"&&Fu.test(t))&&t>-1&&t%1==0&&t<e}function _n(t,e,r){e=="__proto__"&&Qt?Qt(t,e,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[e]=r}function at(t,e){return t===e||t!==t&&e!==e}var Lu=Object.prototype,Uu=Lu.hasOwnProperty;function xs(t,e,r){var n=t[e];(!(Uu.call(t,e)&&at(n,r))||r===void 0&&!(e in t))&&_n(t,e,r)}function Os(t,e,r,n){var i=!r;r||(r={});for(var s=-1,o=e.length;++s<o;){var u=e[s],l=n?n(r[u],t[u],u,r,t):void 0;l===void 0&&(l=t[u]),i?_n(r,u,l):xs(r,u,l)}return r}var Yn=Math.max;function Hu(t,e,r){return e=Yn(e===void 0?t.length-1:e,0),function(){for(var n=arguments,i=-1,s=Yn(n.length-e,0),o=Array(s);++i<s;)o[i]=n[e+i];i=-1;for(var u=Array(e+1);++i<e;)u[i]=n[i];return u[e]=r(o),Rs(t,this,u)}}function $s(t,e){return Nu(Hu(t,e,Ts),t+"")}var Vu=9007199254740991;function Ds(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=Vu}function or(t){return t!=null&&Ds(t.length)&&!Ie(t)}function ku(t,e,r){if(!ve(r))return!1;var n=typeof e;return(n=="number"?or(r)&&As(e,r.length):n=="string"&&e in r)?at(r[e],t):!1}function Cs(t){return $s(function(e,r){var n=-1,i=r.length,s=i>1?r[i-1]:void 0,o=i>2?r[2]:void 0;for(s=t.length>3&&typeof s=="function"?(i--,s):void 0,o&&ku(r[0],r[1],o)&&(s=i<3?void 0:s,i=1),e=Object(e);++n<i;){var u=r[n];u&&t(e,u,n,s)}return e})}var qu=Object.prototype;function wn(t){var e=t&&t.constructor,r=typeof e=="function"&&e.prototype||qu;return t===r}function zu(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}var Wu="[object Arguments]";function Zn(t){return ge(t)&&$e(t)==Wu}var Bs=Object.prototype,Ku=Bs.hasOwnProperty,Ju=Bs.propertyIsEnumerable,Gu=Zn((function(){return arguments})())?Zn:function(t){return ge(t)&&Ku.call(t,"callee")&&!Ju.call(t,"callee")};const Jr=Gu;function Yu(){return!1}var js=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Qn=js&&typeof module=="object"&&module&&!module.nodeType&&module,Zu=Qn&&Qn.exports===js,Xn=Zu?be.Buffer:void 0,Qu=Xn?Xn.isBuffer:void 0,Xu=Qu||Yu;const _t=Xu;var ec="[object Arguments]",tc="[object Array]",rc="[object Boolean]",nc="[object Date]",ic="[object Error]",sc="[object Function]",oc="[object Map]",ac="[object Number]",uc="[object Object]",cc="[object RegExp]",lc="[object Set]",fc="[object String]",hc="[object WeakMap]",pc="[object ArrayBuffer]",dc="[object DataView]",gc="[object Float32Array]",vc="[object Float64Array]",mc="[object Int8Array]",yc="[object Int16Array]",bc="[object Int32Array]",_c="[object Uint8Array]",wc="[object Uint8ClampedArray]",Ec="[object Uint16Array]",Sc="[object Uint32Array]",Y={};Y[gc]=Y[vc]=Y[mc]=Y[yc]=Y[bc]=Y[_c]=Y[wc]=Y[Ec]=Y[Sc]=!0;Y[ec]=Y[tc]=Y[pc]=Y[rc]=Y[dc]=Y[nc]=Y[ic]=Y[sc]=Y[oc]=Y[ac]=Y[uc]=Y[cc]=Y[lc]=Y[fc]=Y[hc]=!1;function Tc(t){return ge(t)&&Ds(t.length)&&!!Y[$e(t)]}function En(t){return function(e){return t(e)}}var Ps=typeof exports=="object"&&exports&&!exports.nodeType&&exports,yt=Ps&&typeof module=="object"&&module&&!module.nodeType&&module,Rc=yt&&yt.exports===Ps,Er=Rc&&bs.process,Ac=(function(){try{var t=yt&&yt.require&&yt.require("util").types;return t||Er&&Er.binding&&Er.binding("util")}catch(e){}})();const Re=Ac;var ei=Re&&Re.isTypedArray,xc=ei?En(ei):Tc;const Sn=xc;var Oc=Object.prototype,$c=Oc.hasOwnProperty;function Ns(t,e){var r=Oe(t),n=!r&&Jr(t),i=!r&&!n&&_t(t),s=!r&&!n&&!i&&Sn(t),o=r||n||i||s,u=o?zu(t.length,String):[],l=u.length;for(var a in t)(e||$c.call(t,a))&&!(o&&(a=="length"||i&&(a=="offset"||a=="parent")||s&&(a=="buffer"||a=="byteLength"||a=="byteOffset")||As(a,l)))&&u.push(a);return u}function Is(t,e){return function(r){return t(e(r))}}var Dc=Is(Object.keys,Object);const Cc=Dc;var Bc=Object.prototype,jc=Bc.hasOwnProperty;function Pc(t){if(!wn(t))return Cc(t);var e=[];for(var r in Object(t))jc.call(t,r)&&r!="constructor"&&e.push(r);return e}function Ms(t){return or(t)?Ns(t):Pc(t)}function Nc(t){var e=[];if(t!=null)for(var r in Object(t))e.push(r);return e}var Ic=Object.prototype,Mc=Ic.hasOwnProperty;function Fc(t){if(!ve(t))return Nc(t);var e=wn(t),r=[];for(var n in t)n=="constructor"&&(e||!Mc.call(t,n))||r.push(n);return r}function Tn(t){return or(t)?Ns(t,!0):Fc(t)}var Lc=Cs(function(t,e,r,n){Os(e,Tn(e),t,n)});const ti=Lc;var Uc=Ge(Object,"create");const wt=Uc;function Hc(){this.__data__=wt?wt(null):{},this.size=0}function Vc(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var kc="__lodash_hash_undefined__",qc=Object.prototype,zc=qc.hasOwnProperty;function Wc(t){var e=this.__data__;if(wt){var r=e[t];return r===kc?void 0:r}return zc.call(e,t)?e[t]:void 0}var Kc=Object.prototype,Jc=Kc.hasOwnProperty;function Gc(t){var e=this.__data__;return wt?e[t]!==void 0:Jc.call(e,t)}var Yc="__lodash_hash_undefined__";function Zc(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=wt&&e===void 0?Yc:e,this}function We(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}We.prototype.clear=Hc;We.prototype.delete=Vc;We.prototype.get=Wc;We.prototype.has=Gc;We.prototype.set=Zc;function Qc(){this.__data__=[],this.size=0}function ar(t,e){for(var r=t.length;r--;)if(at(t[r][0],e))return r;return-1}var Xc=Array.prototype,el=Xc.splice;function tl(t){var e=this.__data__,r=ar(e,t);if(r<0)return!1;var n=e.length-1;return r==n?e.pop():el.call(e,r,1),--this.size,!0}function rl(t){var e=this.__data__,r=ar(e,t);return r<0?void 0:e[r][1]}function nl(t){return ar(this.__data__,t)>-1}function il(t,e){var r=this.__data__,n=ar(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this}function De(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}De.prototype.clear=Qc;De.prototype.delete=tl;De.prototype.get=rl;De.prototype.has=nl;De.prototype.set=il;var sl=Ge(be,"Map");const Et=sl;function ol(){this.size=0,this.__data__={hash:new We,map:new(Et||De),string:new We}}function al(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}function ur(t,e){var r=t.__data__;return al(e)?r[typeof e=="string"?"string":"hash"]:r.map}function ul(t){var e=ur(this,t).delete(t);return this.size-=e?1:0,e}function cl(t){return ur(this,t).get(t)}function ll(t){return ur(this,t).has(t)}function fl(t,e){var r=ur(this,t),n=r.size;return r.set(t,e),this.size+=r.size==n?0:1,this}function Ce(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}Ce.prototype.clear=ol;Ce.prototype.delete=ul;Ce.prototype.get=cl;Ce.prototype.has=ll;Ce.prototype.set=fl;var hl="Expected a function";function Rn(t,e){if(typeof t!="function"||e!=null&&typeof e!="function")throw new TypeError(hl);var r=function(){var n=arguments,i=e?e.apply(this,n):n[0],s=r.cache;if(s.has(i))return s.get(i);var o=t.apply(this,n);return r.cache=s.set(i,o)||s,o};return r.cache=new(Rn.Cache||Ce),r}Rn.Cache=Ce;var pl=500;function dl(t){var e=Rn(t,function(n){return r.size===pl&&r.clear(),n}),r=e.cache;return e}var gl=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,vl=/\\(\\)?/g;dl(function(t){var e=[];return t.charCodeAt(0)===46&&e.push(""),t.replace(gl,function(r,n,i,s){e.push(i?s.replace(vl,"$1"):n||r)}),e});function ut(t){return t==null?"":Ss(t)}function ml(t,e){for(var r=-1,n=e.length,i=t.length;++r<n;)t[i+r]=e[r];return t}var yl=Is(Object.getPrototypeOf,Object);const Fs=yl;var bl="[object Object]",_l=Function.prototype,wl=Object.prototype,Ls=_l.toString,El=wl.hasOwnProperty,Sl=Ls.call(Object);function Us(t){if(!ge(t)||$e(t)!=bl)return!1;var e=Fs(t);if(e===null)return!0;var r=El.call(e,"constructor")&&e.constructor;return typeof r=="function"&&r instanceof r&&Ls.call(r)==Sl}var Tl="[object DOMException]",Rl="[object Error]";function Hs(t){if(!ge(t))return!1;var e=$e(t);return e==Rl||e==Tl||typeof t.message=="string"&&typeof t.name=="string"&&!Us(t)}var Al=$s(function(t,e){try{return Rs(t,void 0,e)}catch(r){return Hs(r)?r:new Error(r)}});const xl=Al;function Ol(t,e,r){var n=-1,i=t.length;e<0&&(e=-e>i?0:i+e),r=r>i?i:r,r<0&&(r+=i),i=e>r?0:r-e>>>0,e>>>=0;for(var s=Array(i);++n<i;)s[n]=t[n+e];return s}function $l(t,e,r){var n=t.length;return r=r===void 0?n:r,!e&&r>=n?t:Ol(t,e,r)}var Dl="\\ud800-\\udfff",Cl="\\u0300-\\u036f",Bl="\\ufe20-\\ufe2f",jl="\\u20d0-\\u20ff",Pl=Cl+Bl+jl,Nl="\\ufe0e\\ufe0f",Il="\\u200d",Ml=RegExp("["+Il+Dl+Pl+Nl+"]");function Vs(t){return Ml.test(t)}function Fl(t){return t.split("")}var ks="\\ud800-\\udfff",Ll="\\u0300-\\u036f",Ul="\\ufe20-\\ufe2f",Hl="\\u20d0-\\u20ff",Vl=Ll+Ul+Hl,kl="\\ufe0e\\ufe0f",ql="["+ks+"]",Gr="["+Vl+"]",Yr="\\ud83c[\\udffb-\\udfff]",zl="(?:"+Gr+"|"+Yr+")",qs="[^"+ks+"]",zs="(?:\\ud83c[\\udde6-\\uddff]){2}",Ws="[\\ud800-\\udbff][\\udc00-\\udfff]",Wl="\\u200d",Ks=zl+"?",Js="["+kl+"]?",Kl="(?:"+Wl+"(?:"+[qs,zs,Ws].join("|")+")"+Js+Ks+")*",Jl=Js+Ks+Kl,Gl="(?:"+[qs+Gr+"?",Gr,zs,Ws,ql].join("|")+")",Yl=RegExp(Yr+"(?="+Yr+")|"+Gl+Jl,"g");function Zl(t){return t.match(Yl)||[]}function Ql(t){return Vs(t)?Zl(t):Fl(t)}function Xl(t){return function(e){e=ut(e);var r=Vs(e)?Ql(e):void 0,n=r?r[0]:e.charAt(0),i=r?$l(r,1).join(""):e.slice(1);return n[t]()+i}}var ef=Xl("toUpperCase");const Gs=ef;function tf(t){return Gs(ut(t).toLowerCase())}function rf(t,e,r,n){for(var i=-1,s=t==null?0:t.length;++i<s;)r=e(r,t[i],i,t);return r}function Ys(t){return function(e){return t==null?void 0:t[e]}}var nf={À:"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"},sf=Ys(nf);const of=sf;var af=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,uf="\\u0300-\\u036f",cf="\\ufe20-\\ufe2f",lf="\\u20d0-\\u20ff",ff=uf+cf+lf,hf="["+ff+"]",pf=RegExp(hf,"g");function df(t){return t=ut(t),t&&t.replace(af,of).replace(pf,"")}var gf=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function vf(t){return t.match(gf)||[]}var mf=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function yf(t){return mf.test(t)}var Zs="\\ud800-\\udfff",bf="\\u0300-\\u036f",_f="\\ufe20-\\ufe2f",wf="\\u20d0-\\u20ff",Ef=bf+_f+wf,Qs="\\u2700-\\u27bf",Xs="a-z\\xdf-\\xf6\\xf8-\\xff",Sf="\\xac\\xb1\\xd7\\xf7",Tf="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Rf="\\u2000-\\u206f",Af=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",eo="A-Z\\xc0-\\xd6\\xd8-\\xde",xf="\\ufe0e\\ufe0f",to=Sf+Tf+Rf+Af,ro="['’]",ri="["+to+"]",Of="["+Ef+"]",no="\\d+",$f="["+Qs+"]",io="["+Xs+"]",so="[^"+Zs+to+no+Qs+Xs+eo+"]",Df="\\ud83c[\\udffb-\\udfff]",Cf="(?:"+Of+"|"+Df+")",Bf="[^"+Zs+"]",oo="(?:\\ud83c[\\udde6-\\uddff]){2}",ao="[\\ud800-\\udbff][\\udc00-\\udfff]",et="["+eo+"]",jf="\\u200d",ni="(?:"+io+"|"+so+")",Pf="(?:"+et+"|"+so+")",ii="(?:"+ro+"(?:d|ll|m|re|s|t|ve))?",si="(?:"+ro+"(?:D|LL|M|RE|S|T|VE))?",uo=Cf+"?",co="["+xf+"]?",Nf="(?:"+jf+"(?:"+[Bf,oo,ao].join("|")+")"+co+uo+")*",If="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Mf="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Ff=co+uo+Nf,Lf="(?:"+[$f,oo,ao].join("|")+")"+Ff,Uf=RegExp([et+"?"+io+"+"+ii+"(?="+[ri,et,"$"].join("|")+")",Pf+"+"+si+"(?="+[ri,et+ni,"$"].join("|")+")",et+"?"+ni+"+"+ii,et+"+"+si,Mf,If,no,Lf].join("|"),"g");function Hf(t){return t.match(Uf)||[]}function Vf(t,e,r){return t=ut(t),e=e,e===void 0?yf(t)?Hf(t):vf(t):t.match(e)||[]}var kf="['’]",qf=RegExp(kf,"g");function zf(t){return function(e){return rf(Vf(df(e).replace(qf,"")),t,"")}}var Wf=zf(function(t,e,r){return e=e.toLowerCase(),t+(r?tf(e):e)});const we=Wf;function Kf(){this.__data__=new De,this.size=0}function Jf(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r}function Gf(t){return this.__data__.get(t)}function Yf(t){return this.__data__.has(t)}var Zf=200;function Qf(t,e){var r=this.__data__;if(r instanceof De){var n=r.__data__;if(!Et||n.length<Zf-1)return n.push([t,e]),this.size=++r.size,this;r=this.__data__=new Ce(n)}return r.set(t,e),this.size=r.size,this}function Ee(t){var e=this.__data__=new De(t);this.size=e.size}Ee.prototype.clear=Kf;Ee.prototype.delete=Jf;Ee.prototype.get=Gf;Ee.prototype.has=Yf;Ee.prototype.set=Qf;var lo=typeof exports=="object"&&exports&&!exports.nodeType&&exports,oi=lo&&typeof module=="object"&&module&&!module.nodeType&&module,Xf=oi&&oi.exports===lo,ai=Xf?be.Buffer:void 0,ui=ai?ai.allocUnsafe:void 0;function fo(t,e){if(e)return t.slice();var r=t.length,n=ui?ui(r):new t.constructor(r);return t.copy(n),n}function eh(t,e){for(var r=-1,n=t==null?0:t.length,i=0,s=[];++r<n;){var o=t[r];e(o,r,t)&&(s[i++]=o)}return s}function th(){return[]}var rh=Object.prototype,nh=rh.propertyIsEnumerable,ci=Object.getOwnPropertySymbols,ih=ci?function(t){return t==null?[]:(t=Object(t),eh(ci(t),function(e){return nh.call(t,e)}))}:th;const sh=ih;function oh(t,e,r){var n=e(t);return Oe(t)?n:ml(n,r(t))}function Zr(t){return oh(t,Ms,sh)}var ah=Ge(be,"DataView");const Qr=ah;var uh=Ge(be,"Promise");const Xr=uh;var ch=Ge(be,"Set");const en=ch;var li="[object Map]",lh="[object Object]",fi="[object Promise]",hi="[object Set]",pi="[object WeakMap]",di="[object DataView]",fh=Je(Qr),hh=Je(Et),ph=Je(Xr),dh=Je(en),gh=Je(Kr),ke=$e;(Qr&&ke(new Qr(new ArrayBuffer(1)))!=di||Et&&ke(new Et)!=li||Xr&&ke(Xr.resolve())!=fi||en&&ke(new en)!=hi||Kr&&ke(new Kr)!=pi)&&(ke=function(t){var e=$e(t),r=e==lh?t.constructor:void 0,n=r?Je(r):"";if(n)switch(n){case fh:return di;case hh:return li;case ph:return fi;case dh:return hi;case gh:return pi}return e});const St=ke;var vh=Object.prototype,mh=vh.hasOwnProperty;function yh(t){var e=t.length,r=new t.constructor(e);return e&&typeof t[0]=="string"&&mh.call(t,"index")&&(r.index=t.index,r.input=t.input),r}var bh=be.Uint8Array;const Xt=bh;function An(t){var e=new t.constructor(t.byteLength);return new Xt(e).set(new Xt(t)),e}function _h(t,e){var r=An(t.buffer);return new t.constructor(r,t.byteOffset,t.byteLength)}var wh=/\w*$/;function Eh(t){var e=new t.constructor(t.source,wh.exec(t));return e.lastIndex=t.lastIndex,e}var gi=Te?Te.prototype:void 0,vi=gi?gi.valueOf:void 0;function Sh(t){return vi?Object(vi.call(t)):{}}function ho(t,e){var r=e?An(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length)}var Th="[object Boolean]",Rh="[object Date]",Ah="[object Map]",xh="[object Number]",Oh="[object RegExp]",$h="[object Set]",Dh="[object String]",Ch="[object Symbol]",Bh="[object ArrayBuffer]",jh="[object DataView]",Ph="[object Float32Array]",Nh="[object Float64Array]",Ih="[object Int8Array]",Mh="[object Int16Array]",Fh="[object Int32Array]",Lh="[object Uint8Array]",Uh="[object Uint8ClampedArray]",Hh="[object Uint16Array]",Vh="[object Uint32Array]";function kh(t,e,r){var n=t.constructor;switch(e){case Bh:return An(t);case Th:case Rh:return new n(+t);case jh:return _h(t);case Ph:case Nh:case Ih:case Mh:case Fh:case Lh:case Uh:case Hh:case Vh:return ho(t,r);case Ah:return new n;case xh:case Dh:return new n(t);case Oh:return Eh(t);case $h:return new n;case Ch:return Sh(t)}}function po(t){return typeof t.constructor=="function"&&!wn(t)?Tu(Fs(t)):{}}var qh="[object Map]";function zh(t){return ge(t)&&St(t)==qh}var mi=Re&&Re.isMap,Wh=mi?En(mi):zh;const Kh=Wh;var Jh="[object Set]";function Gh(t){return ge(t)&&St(t)==Jh}var yi=Re&&Re.isSet,Yh=yi?En(yi):Gh;const Zh=Yh;var Qh=1,go="[object Arguments]",Xh="[object Array]",ep="[object Boolean]",tp="[object Date]",rp="[object Error]",vo="[object Function]",np="[object GeneratorFunction]",ip="[object Map]",sp="[object Number]",mo="[object Object]",op="[object RegExp]",ap="[object Set]",up="[object String]",cp="[object Symbol]",lp="[object WeakMap]",fp="[object ArrayBuffer]",hp="[object DataView]",pp="[object Float32Array]",dp="[object Float64Array]",gp="[object Int8Array]",vp="[object Int16Array]",mp="[object Int32Array]",yp="[object Uint8Array]",bp="[object Uint8ClampedArray]",_p="[object Uint16Array]",wp="[object Uint32Array]",G={};G[go]=G[Xh]=G[fp]=G[hp]=G[ep]=G[tp]=G[pp]=G[dp]=G[gp]=G[vp]=G[mp]=G[ip]=G[sp]=G[mo]=G[op]=G[ap]=G[up]=G[cp]=G[yp]=G[bp]=G[_p]=G[wp]=!0;G[rp]=G[vo]=G[lp]=!1;function qt(t,e,r,n,i,s){var o,u=e&Qh;if(o!==void 0)return o;if(!ve(t))return t;var l=Oe(t);if(l)o=yh(t);else{var a=St(t),c=a==vo||a==np;if(_t(t))return fo(t,u);if(a==mo||a==go||c&&!i)o=c?{}:po(t);else{if(!G[a])return i?t:{};o=kh(t,a,u)}}s||(s=new Ee);var f=s.get(t);if(f)return f;s.set(t,o),Zh(t)?t.forEach(function(d){o.add(qt(d,e,r,d,t,s))}):Kh(t)&&t.forEach(function(d,g){o.set(g,qt(d,e,r,g,t,s))});var h=Zr,p=l?void 0:h(t);return Iu(p||t,function(d,g){p&&(g=d,d=t[g]),xs(o,g,qt(d,e,r,g,t,s))}),o}var Ep=1,Sp=4;function bi(t){return qt(t,Ep|Sp)}var Tp="__lodash_hash_undefined__";function Rp(t){return this.__data__.set(t,Tp),this}function Ap(t){return this.__data__.has(t)}function er(t){var e=-1,r=t==null?0:t.length;for(this.__data__=new Ce;++e<r;)this.add(t[e])}er.prototype.add=er.prototype.push=Rp;er.prototype.has=Ap;function xp(t,e){for(var r=-1,n=t==null?0:t.length;++r<n;)if(e(t[r],r,t))return!0;return!1}function Op(t,e){return t.has(e)}var $p=1,Dp=2;function yo(t,e,r,n,i,s){var o=r&$p,u=t.length,l=e.length;if(u!=l&&!(o&&l>u))return!1;var a=s.get(t),c=s.get(e);if(a&&c)return a==e&&c==t;var f=-1,h=!0,p=r&Dp?new er:void 0;for(s.set(t,e),s.set(e,t);++f<u;){var d=t[f],g=e[f];if(n)var m=o?n(g,d,f,e,t,s):n(d,g,f,t,e,s);if(m!==void 0){if(m)continue;h=!1;break}if(p){if(!xp(e,function(w,v){if(!Op(p,v)&&(d===w||i(d,w,r,n,s)))return p.push(v)})){h=!1;break}}else if(!(d===g||i(d,g,r,n,s))){h=!1;break}}return s.delete(t),s.delete(e),h}function Cp(t){var e=-1,r=Array(t.size);return t.forEach(function(n,i){r[++e]=[i,n]}),r}function Bp(t){var e=-1,r=Array(t.size);return t.forEach(function(n){r[++e]=n}),r}var jp=1,Pp=2,Np="[object Boolean]",Ip="[object Date]",Mp="[object Error]",Fp="[object Map]",Lp="[object Number]",Up="[object RegExp]",Hp="[object Set]",Vp="[object String]",kp="[object Symbol]",qp="[object ArrayBuffer]",zp="[object DataView]",_i=Te?Te.prototype:void 0,Sr=_i?_i.valueOf:void 0;function Wp(t,e,r,n,i,s,o){switch(r){case zp:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case qp:return!(t.byteLength!=e.byteLength||!s(new Xt(t),new Xt(e)));case Np:case Ip:case Lp:return at(+t,+e);case Mp:return t.name==e.name&&t.message==e.message;case Up:case Vp:return t==e+"";case Fp:var u=Cp;case Hp:var l=n&jp;if(u||(u=Bp),t.size!=e.size&&!l)return!1;var a=o.get(t);if(a)return a==e;n|=Pp,o.set(t,e);var c=yo(u(t),u(e),n,i,s,o);return o.delete(t),c;case kp:if(Sr)return Sr.call(t)==Sr.call(e)}return!1}var Kp=1,Jp=Object.prototype,Gp=Jp.hasOwnProperty;function Yp(t,e,r,n,i,s){var o=r&Kp,u=Zr(t),l=u.length,a=Zr(e),c=a.length;if(l!=c&&!o)return!1;for(var f=l;f--;){var h=u[f];if(!(o?h in e:Gp.call(e,h)))return!1}var p=s.get(t),d=s.get(e);if(p&&d)return p==e&&d==t;var g=!0;s.set(t,e),s.set(e,t);for(var m=o;++f<l;){h=u[f];var w=t[h],v=e[h];if(n)var b=o?n(v,w,h,e,t,s):n(w,v,h,t,e,s);if(!(b===void 0?w===v||i(w,v,r,n,s):b)){g=!1;break}m||(m=h=="constructor")}if(g&&!m){var _=t.constructor,E=e.constructor;_!=E&&"constructor"in t&&"constructor"in e&&!(typeof _=="function"&&_ instanceof _&&typeof E=="function"&&E instanceof E)&&(g=!1)}return s.delete(t),s.delete(e),g}var Zp=1,wi="[object Arguments]",Ei="[object Array]",Bt="[object Object]",Qp=Object.prototype,Si=Qp.hasOwnProperty;function Xp(t,e,r,n,i,s){var o=Oe(t),u=Oe(e),l=o?Ei:St(t),a=u?Ei:St(e);l=l==wi?Bt:l,a=a==wi?Bt:a;var c=l==Bt,f=a==Bt,h=l==a;if(h&&_t(t)){if(!_t(e))return!1;o=!0,c=!1}if(h&&!c)return s||(s=new Ee),o||Sn(t)?yo(t,e,r,n,i,s):Wp(t,e,l,r,n,i,s);if(!(r&Zp)){var p=c&&Si.call(t,"__wrapped__"),d=f&&Si.call(e,"__wrapped__");if(p||d){var g=p?t.value():t,m=d?e.value():e;return s||(s=new Ee),i(g,m,r,n,s)}}return h?(s||(s=new Ee),Yp(t,e,r,n,i,s)):!1}function bo(t,e,r,n,i){return t===e?!0:t==null||e==null||!ge(t)&&!ge(e)?t!==t&&e!==e:Xp(t,e,r,n,bo,i)}function ed(t){return function(e,r,n){for(var i=-1,s=Object(e),o=n(e),u=o.length;u--;){var l=o[++i];if(r(s[l],l,s)===!1)break}return e}}var td=ed();const rd=td;var nd=function(){return be.Date.now()};const Tr=nd;var id="Expected a function",sd=Math.max,od=Math.min;function xn(t,e,r){var n,i,s,o,u,l,a=0,c=!1,f=!1,h=!0;if(typeof t!="function")throw new TypeError(id);e=Kn(e)||0,ve(r)&&(c=!!r.leading,f="maxWait"in r,s=f?sd(Kn(r.maxWait)||0,e):s,h="trailing"in r?!!r.trailing:h);function p(y){var T=n,x=i;return n=i=void 0,a=y,o=t.apply(x,T),o}function d(y){return a=y,u=setTimeout(w,e),c?p(y):o}function g(y){var T=y-l,x=y-a,U=e-T;return f?od(U,s-x):U}function m(y){var T=y-l,x=y-a;return l===void 0||T>=e||T<0||f&&x>=s}function w(){var y=Tr();if(m(y))return v(y);u=setTimeout(w,g(y))}function v(y){return u=void 0,h&&n?p(y):(n=i=void 0,o)}function b(){u!==void 0&&clearTimeout(u),a=0,n=l=i=u=void 0}function _(){return u===void 0?o:v(Tr())}function E(){var y=Tr(),T=m(y);if(n=arguments,i=this,l=y,T){if(u===void 0)return d(l);if(f)return clearTimeout(u),u=setTimeout(w,e),p(l)}return u===void 0&&(u=setTimeout(w,e)),o}return E.cancel=b,E.flush=_,E}function tn(t,e,r){(r!==void 0&&!at(t[e],r)||r===void 0&&!(e in t))&&_n(t,e,r)}function ad(t){return ge(t)&&or(t)}function rn(t,e){if(!(e==="constructor"&&typeof t[e]=="function")&&e!="__proto__")return t[e]}function ud(t){return Os(t,Tn(t))}function cd(t,e,r,n,i,s,o){var u=rn(t,r),l=rn(e,r),a=o.get(l);if(a){tn(t,r,a);return}var c=s?s(u,l,r+"",t,e,o):void 0,f=c===void 0;if(f){var h=Oe(l),p=!h&&_t(l),d=!h&&!p&&Sn(l);c=l,h||p||d?Oe(u)?c=u:ad(u)?c=Ru(u):p?(f=!1,c=fo(l,!0)):d?(f=!1,c=ho(l,!0)):c=[]:Us(l)||Jr(l)?(c=u,Jr(u)?c=ud(u):(!ve(u)||Ie(u))&&(c=po(l))):f=!1}f&&(o.set(l,c),i(c,l,n,s,o),o.delete(l)),tn(t,r,c)}function _o(t,e,r,n,i){t!==e&&rd(e,function(s,o){if(i||(i=new Ee),ve(s))cd(t,e,o,r,_o,n,i);else{var u=n?n(rn(t,o),s,o+"",t,e,i):void 0;u===void 0&&(u=s),tn(t,o,u)}},Tn)}var ld={"&":"&","<":"<",">":">",'"':""","'":"'"},fd=Ys(ld);const hd=fd;var wo=/[&<>"']/g,pd=RegExp(wo.source);function dd(t){return t=ut(t),t&&pd.test(t)?t.replace(wo,hd):t}var gd="[object String]";function Me(t){return typeof t=="string"||!Oe(t)&&ge(t)&&$e(t)==gd}function vd(t,e){return Es(e,function(r){return t[r]})}Re&&Re.isArrayBuffer;Re&&Re.isDate;function md(t,e){return bo(t,e)}var yd=Cs(function(t,e,r){_o(t,e,r)});const vt=yd;var Eo=Object.prototype,bd=Eo.hasOwnProperty;function Ti(t,e,r,n){return t===void 0||at(t,Eo[r])&&!bd.call(n,r)?e:t}var _d={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"};function wd(t){return"\\"+_d[t]}var Ed=/<%=([\s\S]+?)%>/g;const So=Ed;var Sd=/<%-([\s\S]+?)%>/g;const Td=Sd;var Rd=/<%([\s\S]+?)%>/g;const Ad=Rd;var xd={escape:Td,evaluate:Ad,interpolate:So,variable:"",imports:{_:{escape:dd}}};const Ri=xd;var Od="Invalid `variable` option passed into `_.template`",$d=/\b__p \+= '';/g,Dd=/\b(__p \+=) '' \+/g,Cd=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Bd=/[()=,{}\[\]\/\s]/,jd=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,jt=/($^)/,Pd=/['\n\r\u2028\u2029\\]/g,Nd=Object.prototype,Ai=Nd.hasOwnProperty;function Id(t,e,r){var n=Ri.imports._.templateSettings||Ri;t=ut(t),e=ti({},e,n,Ti);var i=ti({},e.imports,n.imports,Ti),s=Ms(i),o=vd(i,s),u,l,a=0,c=e.interpolate||jt,f="__p += '",h=RegExp((e.escape||jt).source+"|"+c.source+"|"+(c===So?jd:jt).source+"|"+(e.evaluate||jt).source+"|$","g"),p=Ai.call(e,"sourceURL")?"//# sourceURL="+(e.sourceURL+"").replace(/\s/g," ")+`
|
|
3
|
-
`:"";t.replace(h,function(
|
|
4
|
-
__e(`+
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./@dcloudio-uni-h5-vue-BmOkhsCk.js","./vue-DefuvV9N.js","./@dcloudio-uni-shared-bWpOwtAM.js","./vue-router-BaL-Hp_b.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
var Ta=Object.defineProperty,Ra=Object.defineProperties;var Aa=Object.getOwnPropertyDescriptors;var Ln=Object.getOwnPropertySymbols;var xa=Object.prototype.hasOwnProperty,Oa=Object.prototype.propertyIsEnumerable;var Ye=(t,e)=>(e=Symbol[t])?e:Symbol.for("Symbol."+t),$a=t=>{throw TypeError(t)};var br=(t,e,r)=>e in t?Ta(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,V=(t,e)=>{for(var r in e||(e={}))xa.call(e,r)&&br(t,r,e[r]);if(Ln)for(var r of Ln(e))Oa.call(e,r)&&br(t,r,e[r]);return t},re=(t,e)=>Ra(t,Aa(e));var k=(t,e,r)=>br(t,typeof e!="symbol"?e+"":e,r);var U=(t,e,r)=>new Promise((n,i)=>{var s=l=>{try{u(r.next(l))}catch(a){i(a)}},o=l=>{try{u(r.throw(l))}catch(a){i(a)}},u=l=>l.done?n(l.value):Promise.resolve(l.value).then(s,o);u((r=r.apply(t,e)).next())}),Ue=function(t,e){this[0]=t,this[1]=e},_r=(t,e,r)=>{var n=(o,u,l,a)=>{try{var c=r[o](u),f=(u=c.value)instanceof Ue,h=c.done;Promise.resolve(f?u[0]:u).then(p=>f?n(o==="return"?o:"next",u[1]?{done:p.done,value:p.value}:p,l,a):l({value:p,done:h})).catch(p=>n("throw",p,l,a))}catch(p){a(p)}},i=o=>s[o]=u=>new Promise((l,a)=>n(o,u,l,a)),s={};return r=r.apply(t,e),s[Ye("asyncIterator")]=()=>s,i("next"),i("throw"),i("return"),s},wr=t=>{var e=t[Ye("asyncIterator")],r=!1,n,i={};return e==null?(e=t[Ye("iterator")](),n=s=>i[s]=o=>e[s](o)):(e=e.call(t),n=s=>i[s]=o=>{if(r){if(r=!1,s==="throw")throw o;return o}return r=!0,{done:!1,value:new Ue(new Promise(u=>{var l=e[s](o);l instanceof Object||$a("Object expected"),u(l)}),1)}}),i[Ye("iterator")]=()=>i,n("next"),"throw"in e?n("throw"):i.throw=s=>{throw s},"return"in e&&n("return"),i},Un=(t,e,r)=>(e=t[Ye("asyncIterator")])?e.call(t):(t=t[Ye("iterator")](),e={},r=(n,i)=>(i=t[n])&&(e[n]=s=>new Promise((o,u,l)=>(s=i.call(t,s),l=s.done,Promise.resolve(s.value).then(a=>o({value:a,done:l}),u)))),r("next"),r("return"),e);import{g as Hn,d as ys,h as Kr,f as Da,W as or,i as Ca}from"./@dcloudio-uni-h5-vue-BmOkhsCk.js";import{useRoute as Ba}from"./vue-router-BaL-Hp_b.js";import"./vue-DefuvV9N.js";import"./@dcloudio-uni-shared-bWpOwtAM.js";(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))n(i);new MutationObserver(i=>{for(const s of i)if(s.type==="childList")for(const o of s.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&n(o)}).observe(document,{childList:!0,subtree:!0});function r(i){const s={};return i.integrity&&(s.integrity=i.integrity),i.referrerPolicy&&(s.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?s.credentials="include":i.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function n(i){if(i.ep)return;i.ep=!0;const s=r(i);fetch(i.href,s)}})();const ja="modulepreload",Pa=function(t,e){return new URL(t,e).href},Vn={},kn=function(e,r,n){let i=Promise.resolve();if(r&&r.length>0){let o=function(c){return Promise.all(c.map(f=>Promise.resolve(f).then(h=>({status:"fulfilled",value:h}),h=>({status:"rejected",reason:h}))))};const u=document.getElementsByTagName("link"),l=document.querySelector("meta[property=csp-nonce]"),a=(l==null?void 0:l.nonce)||(l==null?void 0:l.getAttribute("nonce"));i=o(r.map(c=>{if(c=Pa(c,n),c in Vn)return;Vn[c]=!0;const f=c.endsWith(".css"),h=f?'[rel="stylesheet"]':"";if(!!n)for(let g=u.length-1;g>=0;g--){const v=u[g];if(v.href===c&&(!f||v.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${c}"]${h}`))return;const d=document.createElement("link");if(d.rel=f?"stylesheet":ja,f||(d.as="script"),d.crossOrigin="",d.href=c,a&&d.setAttribute("nonce",a),document.head.appendChild(d),f)return new Promise((g,v)=>{d.addEventListener("load",g),d.addEventListener("error",()=>v(new Error(`Unable to preload CSS for ${c}`)))})}))}function s(o){const u=new Event("vite:preloadError",{cancelable:!0});if(u.payload=o,window.dispatchEvent(u),!u.defaultPrevented)throw o}return i.then(o=>{for(const u of o||[])u.status==="rejected"&&s(u.reason);return e().catch(s)})};var Na={ENV_TYPE:"live",NODE_ENV:"production"},Ia=typeof global=="object"&&global&&global.Object===Object&&global;const bs=Ia;var Ma=typeof self=="object"&&self&&self.Object===Object&&self,Fa=bs||Ma||Function("return this")();const be=Fa;var La=be.Symbol;const Re=La;var _s=Object.prototype,Ua=_s.hasOwnProperty,Ha=_s.toString,pt=Re?Re.toStringTag:void 0;function Va(t){var e=Ua.call(t,pt),r=t[pt];try{t[pt]=void 0;var n=!0}catch(s){}var i=Ha.call(t);return n&&(e?t[pt]=r:delete t[pt]),i}var ka=Object.prototype,qa=ka.toString;function za(t){return qa.call(t)}var Wa="[object Null]",Ka="[object Undefined]",qn=Re?Re.toStringTag:void 0;function De(t){return t==null?t===void 0?Ka:Wa:qn&&qn in Object(t)?Va(t):za(t)}function ge(t){return t!=null&&typeof t=="object"}var Ja="[object Symbol]";function ws(t){return typeof t=="symbol"||ge(t)&&De(t)==Ja}function Es(t,e){for(var r=-1,n=t==null?0:t.length,i=Array(n);++r<n;)i[r]=e(t[r],r,t);return i}var Ga=Array.isArray;const $e=Ga;var zn=Re?Re.prototype:void 0,Wn=zn?zn.toString:void 0;function Ss(t){if(typeof t=="string")return t;if($e(t))return Es(t,Ss)+"";if(ws(t))return Wn?Wn.call(t):"";var e=t+"";return e=="0"&&1/t==-1/0?"-0":e}var Ya=/\s/;function Za(t){for(var e=t.length;e--&&Ya.test(t.charAt(e)););return e}var Qa=/^\s+/;function Xa(t){return t&&t.slice(0,Za(t)+1).replace(Qa,"")}function ve(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var Kn=NaN,eu=/^[-+]0x[0-9a-f]+$/i,tu=/^0b[01]+$/i,ru=/^0o[0-7]+$/i,nu=parseInt;function Jn(t){if(typeof t=="number")return t;if(ws(t))return Kn;if(ve(t)){var e=typeof t.valueOf=="function"?t.valueOf():t;t=ve(e)?e+"":e}if(typeof t!="string")return t===0?t:+t;t=Xa(t);var r=tu.test(t);return r||ru.test(t)?nu(t.slice(2),r?2:8):eu.test(t)?Kn:+t}function Ts(t){return t}var iu="[object AsyncFunction]",su="[object Function]",ou="[object GeneratorFunction]",au="[object Proxy]";function ze(t){if(!ve(t))return!1;var e=De(t);return e==su||e==ou||e==iu||e==au}var uu=be["__core-js_shared__"];const Er=uu;var Gn=(function(){var t=/[^.]+$/.exec(Er&&Er.keys&&Er.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""})();function cu(t){return!!Gn&&Gn in t}var lu=Function.prototype,fu=lu.toString;function Je(t){if(t!=null){try{return fu.call(t)}catch(e){}try{return t+""}catch(e){}}return""}var hu=/[\\^$.*+?()[\]{}|]/g,pu=/^\[object .+?Constructor\]$/,du=Function.prototype,gu=Object.prototype,vu=du.toString,mu=gu.hasOwnProperty,yu=RegExp("^"+vu.call(mu).replace(hu,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function bu(t){if(!ve(t)||cu(t))return!1;var e=ze(t)?yu:pu;return e.test(Je(t))}function _u(t,e){return t==null?void 0:t[e]}function Ge(t,e){var r=_u(t,e);return bu(r)?r:void 0}var wu=Ge(be,"WeakMap");const Jr=wu;var Yn=Object.create,Eu=(function(){function t(){}return function(e){if(!ve(e))return{};if(Yn)return Yn(e);t.prototype=e;var r=new t;return t.prototype=void 0,r}})();const Su=Eu;function Rs(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)}function Tu(t,e){var r=-1,n=t.length;for(e||(e=Array(n));++r<n;)e[r]=t[r];return e}var Ru=800,Au=16,xu=Date.now;function Ou(t){var e=0,r=0;return function(){var n=xu(),i=Au-(n-r);if(r=n,i>0){if(++e>=Ru)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}function $u(t){return function(){return t}}var Du=(function(){try{var t=Ge(Object,"defineProperty");return t({},"",{}),t}catch(e){}})();const Xt=Du;var Cu=Xt?function(t,e){return Xt(t,"toString",{configurable:!0,enumerable:!1,value:$u(e),writable:!0})}:Ts;const Bu=Cu;var ju=Ou(Bu);const Pu=ju;function Nu(t,e){for(var r=-1,n=t==null?0:t.length;++r<n&&e(t[r],r,t)!==!1;);return t}var Iu=9007199254740991,Mu=/^(?:0|[1-9]\d*)$/;function As(t,e){var r=typeof t;return e=e==null?Iu:e,!!e&&(r=="number"||r!="symbol"&&Mu.test(t))&&t>-1&&t%1==0&&t<e}function wn(t,e,r){e=="__proto__"&&Xt?Xt(t,e,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[e]=r}function at(t,e){return t===e||t!==t&&e!==e}var Fu=Object.prototype,Lu=Fu.hasOwnProperty;function xs(t,e,r){var n=t[e];(!(Lu.call(t,e)&&at(n,r))||r===void 0&&!(e in t))&&wn(t,e,r)}function Os(t,e,r,n){var i=!r;r||(r={});for(var s=-1,o=e.length;++s<o;){var u=e[s],l=n?n(r[u],t[u],u,r,t):void 0;l===void 0&&(l=t[u]),i?wn(r,u,l):xs(r,u,l)}return r}var Zn=Math.max;function Uu(t,e,r){return e=Zn(e===void 0?t.length-1:e,0),function(){for(var n=arguments,i=-1,s=Zn(n.length-e,0),o=Array(s);++i<s;)o[i]=n[e+i];i=-1;for(var u=Array(e+1);++i<e;)u[i]=n[i];return u[e]=r(o),Rs(t,this,u)}}function $s(t,e){return Pu(Uu(t,e,Ts),t+"")}var Hu=9007199254740991;function Ds(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=Hu}function ar(t){return t!=null&&Ds(t.length)&&!ze(t)}function Vu(t,e,r){if(!ve(r))return!1;var n=typeof e;return(n=="number"?ar(r)&&As(e,r.length):n=="string"&&e in r)?at(r[e],t):!1}function Cs(t){return $s(function(e,r){var n=-1,i=r.length,s=i>1?r[i-1]:void 0,o=i>2?r[2]:void 0;for(s=t.length>3&&typeof s=="function"?(i--,s):void 0,o&&Vu(r[0],r[1],o)&&(s=i<3?void 0:s,i=1),e=Object(e);++n<i;){var u=r[n];u&&t(e,u,n,s)}return e})}var ku=Object.prototype;function En(t){var e=t&&t.constructor,r=typeof e=="function"&&e.prototype||ku;return t===r}function qu(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}var zu="[object Arguments]";function Qn(t){return ge(t)&&De(t)==zu}var Bs=Object.prototype,Wu=Bs.hasOwnProperty,Ku=Bs.propertyIsEnumerable,Ju=Qn((function(){return arguments})())?Qn:function(t){return ge(t)&&Wu.call(t,"callee")&&!Ku.call(t,"callee")};const Gr=Ju;function Gu(){return!1}var js=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Xn=js&&typeof module=="object"&&module&&!module.nodeType&&module,Yu=Xn&&Xn.exports===js,ei=Yu?be.Buffer:void 0,Zu=ei?ei.isBuffer:void 0,Qu=Zu||Gu;const _t=Qu;var Xu="[object Arguments]",ec="[object Array]",tc="[object Boolean]",rc="[object Date]",nc="[object Error]",ic="[object Function]",sc="[object Map]",oc="[object Number]",ac="[object Object]",uc="[object RegExp]",cc="[object Set]",lc="[object String]",fc="[object WeakMap]",hc="[object ArrayBuffer]",pc="[object DataView]",dc="[object Float32Array]",gc="[object Float64Array]",vc="[object Int8Array]",mc="[object Int16Array]",yc="[object Int32Array]",bc="[object Uint8Array]",_c="[object Uint8ClampedArray]",wc="[object Uint16Array]",Ec="[object Uint32Array]",Y={};Y[dc]=Y[gc]=Y[vc]=Y[mc]=Y[yc]=Y[bc]=Y[_c]=Y[wc]=Y[Ec]=!0;Y[Xu]=Y[ec]=Y[hc]=Y[tc]=Y[pc]=Y[rc]=Y[nc]=Y[ic]=Y[sc]=Y[oc]=Y[ac]=Y[uc]=Y[cc]=Y[lc]=Y[fc]=!1;function Sc(t){return ge(t)&&Ds(t.length)&&!!Y[De(t)]}function Sn(t){return function(e){return t(e)}}var Ps=typeof exports=="object"&&exports&&!exports.nodeType&&exports,yt=Ps&&typeof module=="object"&&module&&!module.nodeType&&module,Tc=yt&&yt.exports===Ps,Sr=Tc&&bs.process,Rc=(function(){try{var t=yt&&yt.require&&yt.require("util").types;return t||Sr&&Sr.binding&&Sr.binding("util")}catch(e){}})();const Ae=Rc;var ti=Ae&&Ae.isTypedArray,Ac=ti?Sn(ti):Sc;const Tn=Ac;var xc=Object.prototype,Oc=xc.hasOwnProperty;function Ns(t,e){var r=$e(t),n=!r&&Gr(t),i=!r&&!n&&_t(t),s=!r&&!n&&!i&&Tn(t),o=r||n||i||s,u=o?qu(t.length,String):[],l=u.length;for(var a in t)(e||Oc.call(t,a))&&!(o&&(a=="length"||i&&(a=="offset"||a=="parent")||s&&(a=="buffer"||a=="byteLength"||a=="byteOffset")||As(a,l)))&&u.push(a);return u}function Is(t,e){return function(r){return t(e(r))}}var $c=Is(Object.keys,Object);const Dc=$c;var Cc=Object.prototype,Bc=Cc.hasOwnProperty;function jc(t){if(!En(t))return Dc(t);var e=[];for(var r in Object(t))Bc.call(t,r)&&r!="constructor"&&e.push(r);return e}function Ms(t){return ar(t)?Ns(t):jc(t)}function Pc(t){var e=[];if(t!=null)for(var r in Object(t))e.push(r);return e}var Nc=Object.prototype,Ic=Nc.hasOwnProperty;function Mc(t){if(!ve(t))return Pc(t);var e=En(t),r=[];for(var n in t)n=="constructor"&&(e||!Ic.call(t,n))||r.push(n);return r}function Rn(t){return ar(t)?Ns(t,!0):Mc(t)}var Fc=Cs(function(t,e,r,n){Os(e,Rn(e),t,n)});const ri=Fc;var Lc=Ge(Object,"create");const wt=Lc;function Uc(){this.__data__=wt?wt(null):{},this.size=0}function Hc(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var Vc="__lodash_hash_undefined__",kc=Object.prototype,qc=kc.hasOwnProperty;function zc(t){var e=this.__data__;if(wt){var r=e[t];return r===Vc?void 0:r}return qc.call(e,t)?e[t]:void 0}var Wc=Object.prototype,Kc=Wc.hasOwnProperty;function Jc(t){var e=this.__data__;return wt?e[t]!==void 0:Kc.call(e,t)}var Gc="__lodash_hash_undefined__";function Yc(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=wt&&e===void 0?Gc:e,this}function We(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}We.prototype.clear=Uc;We.prototype.delete=Hc;We.prototype.get=zc;We.prototype.has=Jc;We.prototype.set=Yc;function Zc(){this.__data__=[],this.size=0}function ur(t,e){for(var r=t.length;r--;)if(at(t[r][0],e))return r;return-1}var Qc=Array.prototype,Xc=Qc.splice;function el(t){var e=this.__data__,r=ur(e,t);if(r<0)return!1;var n=e.length-1;return r==n?e.pop():Xc.call(e,r,1),--this.size,!0}function tl(t){var e=this.__data__,r=ur(e,t);return r<0?void 0:e[r][1]}function rl(t){return ur(this.__data__,t)>-1}function nl(t,e){var r=this.__data__,n=ur(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this}function Ce(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}Ce.prototype.clear=Zc;Ce.prototype.delete=el;Ce.prototype.get=tl;Ce.prototype.has=rl;Ce.prototype.set=nl;var il=Ge(be,"Map");const Et=il;function sl(){this.size=0,this.__data__={hash:new We,map:new(Et||Ce),string:new We}}function ol(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}function cr(t,e){var r=t.__data__;return ol(e)?r[typeof e=="string"?"string":"hash"]:r.map}function al(t){var e=cr(this,t).delete(t);return this.size-=e?1:0,e}function ul(t){return cr(this,t).get(t)}function cl(t){return cr(this,t).has(t)}function ll(t,e){var r=cr(this,t),n=r.size;return r.set(t,e),this.size+=r.size==n?0:1,this}function Be(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}Be.prototype.clear=sl;Be.prototype.delete=al;Be.prototype.get=ul;Be.prototype.has=cl;Be.prototype.set=ll;var fl="Expected a function";function An(t,e){if(typeof t!="function"||e!=null&&typeof e!="function")throw new TypeError(fl);var r=function(){var n=arguments,i=e?e.apply(this,n):n[0],s=r.cache;if(s.has(i))return s.get(i);var o=t.apply(this,n);return r.cache=s.set(i,o)||s,o};return r.cache=new(An.Cache||Be),r}An.Cache=Be;var hl=500;function pl(t){var e=An(t,function(n){return r.size===hl&&r.clear(),n}),r=e.cache;return e}var dl=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,gl=/\\(\\)?/g;pl(function(t){var e=[];return t.charCodeAt(0)===46&&e.push(""),t.replace(dl,function(r,n,i,s){e.push(i?s.replace(gl,"$1"):n||r)}),e});function ut(t){return t==null?"":Ss(t)}function vl(t,e){for(var r=-1,n=e.length,i=t.length;++r<n;)t[i+r]=e[r];return t}var ml=Is(Object.getPrototypeOf,Object);const Fs=ml;var yl="[object Object]",bl=Function.prototype,_l=Object.prototype,Ls=bl.toString,wl=_l.hasOwnProperty,El=Ls.call(Object);function Us(t){if(!ge(t)||De(t)!=yl)return!1;var e=Fs(t);if(e===null)return!0;var r=wl.call(e,"constructor")&&e.constructor;return typeof r=="function"&&r instanceof r&&Ls.call(r)==El}var Sl="[object DOMException]",Tl="[object Error]";function Hs(t){if(!ge(t))return!1;var e=De(t);return e==Tl||e==Sl||typeof t.message=="string"&&typeof t.name=="string"&&!Us(t)}var Rl=$s(function(t,e){try{return Rs(t,void 0,e)}catch(r){return Hs(r)?r:new Error(r)}});const Al=Rl;function xl(t,e,r){var n=-1,i=t.length;e<0&&(e=-e>i?0:i+e),r=r>i?i:r,r<0&&(r+=i),i=e>r?0:r-e>>>0,e>>>=0;for(var s=Array(i);++n<i;)s[n]=t[n+e];return s}function Ol(t,e,r){var n=t.length;return r=r===void 0?n:r,!e&&r>=n?t:xl(t,e,r)}var $l="\\ud800-\\udfff",Dl="\\u0300-\\u036f",Cl="\\ufe20-\\ufe2f",Bl="\\u20d0-\\u20ff",jl=Dl+Cl+Bl,Pl="\\ufe0e\\ufe0f",Nl="\\u200d",Il=RegExp("["+Nl+$l+jl+Pl+"]");function Vs(t){return Il.test(t)}function Ml(t){return t.split("")}var ks="\\ud800-\\udfff",Fl="\\u0300-\\u036f",Ll="\\ufe20-\\ufe2f",Ul="\\u20d0-\\u20ff",Hl=Fl+Ll+Ul,Vl="\\ufe0e\\ufe0f",kl="["+ks+"]",Yr="["+Hl+"]",Zr="\\ud83c[\\udffb-\\udfff]",ql="(?:"+Yr+"|"+Zr+")",qs="[^"+ks+"]",zs="(?:\\ud83c[\\udde6-\\uddff]){2}",Ws="[\\ud800-\\udbff][\\udc00-\\udfff]",zl="\\u200d",Ks=ql+"?",Js="["+Vl+"]?",Wl="(?:"+zl+"(?:"+[qs,zs,Ws].join("|")+")"+Js+Ks+")*",Kl=Js+Ks+Wl,Jl="(?:"+[qs+Yr+"?",Yr,zs,Ws,kl].join("|")+")",Gl=RegExp(Zr+"(?="+Zr+")|"+Jl+Kl,"g");function Yl(t){return t.match(Gl)||[]}function Zl(t){return Vs(t)?Yl(t):Ml(t)}function Ql(t){return function(e){e=ut(e);var r=Vs(e)?Zl(e):void 0,n=r?r[0]:e.charAt(0),i=r?Ol(r,1).join(""):e.slice(1);return n[t]()+i}}var Xl=Ql("toUpperCase");const Gs=Xl;function ef(t){return Gs(ut(t).toLowerCase())}function tf(t,e,r,n){for(var i=-1,s=t==null?0:t.length;++i<s;)r=e(r,t[i],i,t);return r}function Ys(t){return function(e){return t==null?void 0:t[e]}}var rf={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},nf=Ys(rf);const sf=nf;var of=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,af="\\u0300-\\u036f",uf="\\ufe20-\\ufe2f",cf="\\u20d0-\\u20ff",lf=af+uf+cf,ff="["+lf+"]",hf=RegExp(ff,"g");function pf(t){return t=ut(t),t&&t.replace(of,sf).replace(hf,"")}var df=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function gf(t){return t.match(df)||[]}var vf=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function mf(t){return vf.test(t)}var Zs="\\ud800-\\udfff",yf="\\u0300-\\u036f",bf="\\ufe20-\\ufe2f",_f="\\u20d0-\\u20ff",wf=yf+bf+_f,Qs="\\u2700-\\u27bf",Xs="a-z\\xdf-\\xf6\\xf8-\\xff",Ef="\\xac\\xb1\\xd7\\xf7",Sf="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Tf="\\u2000-\\u206f",Rf=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",eo="A-Z\\xc0-\\xd6\\xd8-\\xde",Af="\\ufe0e\\ufe0f",to=Ef+Sf+Tf+Rf,ro="['’]",ni="["+to+"]",xf="["+wf+"]",no="\\d+",Of="["+Qs+"]",io="["+Xs+"]",so="[^"+Zs+to+no+Qs+Xs+eo+"]",$f="\\ud83c[\\udffb-\\udfff]",Df="(?:"+xf+"|"+$f+")",Cf="[^"+Zs+"]",oo="(?:\\ud83c[\\udde6-\\uddff]){2}",ao="[\\ud800-\\udbff][\\udc00-\\udfff]",et="["+eo+"]",Bf="\\u200d",ii="(?:"+io+"|"+so+")",jf="(?:"+et+"|"+so+")",si="(?:"+ro+"(?:d|ll|m|re|s|t|ve))?",oi="(?:"+ro+"(?:D|LL|M|RE|S|T|VE))?",uo=Df+"?",co="["+Af+"]?",Pf="(?:"+Bf+"(?:"+[Cf,oo,ao].join("|")+")"+co+uo+")*",Nf="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",If="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Mf=co+uo+Pf,Ff="(?:"+[Of,oo,ao].join("|")+")"+Mf,Lf=RegExp([et+"?"+io+"+"+si+"(?="+[ni,et,"$"].join("|")+")",jf+"+"+oi+"(?="+[ni,et+ii,"$"].join("|")+")",et+"?"+ii+"+"+si,et+"+"+oi,If,Nf,no,Ff].join("|"),"g");function Uf(t){return t.match(Lf)||[]}function Hf(t,e,r){return t=ut(t),e=e,e===void 0?mf(t)?Uf(t):gf(t):t.match(e)||[]}var Vf="['’]",kf=RegExp(Vf,"g");function qf(t){return function(e){return tf(Hf(pf(e).replace(kf,"")),t,"")}}var zf=qf(function(t,e,r){return e=e.toLowerCase(),t+(r?ef(e):e)});const Ee=zf;function Wf(){this.__data__=new Ce,this.size=0}function Kf(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r}function Jf(t){return this.__data__.get(t)}function Gf(t){return this.__data__.has(t)}var Yf=200;function Zf(t,e){var r=this.__data__;if(r instanceof Ce){var n=r.__data__;if(!Et||n.length<Yf-1)return n.push([t,e]),this.size=++r.size,this;r=this.__data__=new Be(n)}return r.set(t,e),this.size=r.size,this}function Se(t){var e=this.__data__=new Ce(t);this.size=e.size}Se.prototype.clear=Wf;Se.prototype.delete=Kf;Se.prototype.get=Jf;Se.prototype.has=Gf;Se.prototype.set=Zf;var lo=typeof exports=="object"&&exports&&!exports.nodeType&&exports,ai=lo&&typeof module=="object"&&module&&!module.nodeType&&module,Qf=ai&&ai.exports===lo,ui=Qf?be.Buffer:void 0,ci=ui?ui.allocUnsafe:void 0;function fo(t,e){if(e)return t.slice();var r=t.length,n=ci?ci(r):new t.constructor(r);return t.copy(n),n}function Xf(t,e){for(var r=-1,n=t==null?0:t.length,i=0,s=[];++r<n;){var o=t[r];e(o,r,t)&&(s[i++]=o)}return s}function eh(){return[]}var th=Object.prototype,rh=th.propertyIsEnumerable,li=Object.getOwnPropertySymbols,nh=li?function(t){return t==null?[]:(t=Object(t),Xf(li(t),function(e){return rh.call(t,e)}))}:eh;const ih=nh;function sh(t,e,r){var n=e(t);return $e(t)?n:vl(n,r(t))}function Qr(t){return sh(t,Ms,ih)}var oh=Ge(be,"DataView");const Xr=oh;var ah=Ge(be,"Promise");const en=ah;var uh=Ge(be,"Set");const tn=uh;var fi="[object Map]",ch="[object Object]",hi="[object Promise]",pi="[object Set]",di="[object WeakMap]",gi="[object DataView]",lh=Je(Xr),fh=Je(Et),hh=Je(en),ph=Je(tn),dh=Je(Jr),Ve=De;(Xr&&Ve(new Xr(new ArrayBuffer(1)))!=gi||Et&&Ve(new Et)!=fi||en&&Ve(en.resolve())!=hi||tn&&Ve(new tn)!=pi||Jr&&Ve(new Jr)!=di)&&(Ve=function(t){var e=De(t),r=e==ch?t.constructor:void 0,n=r?Je(r):"";if(n)switch(n){case lh:return gi;case fh:return fi;case hh:return hi;case ph:return pi;case dh:return di}return e});const St=Ve;var gh=Object.prototype,vh=gh.hasOwnProperty;function mh(t){var e=t.length,r=new t.constructor(e);return e&&typeof t[0]=="string"&&vh.call(t,"index")&&(r.index=t.index,r.input=t.input),r}var yh=be.Uint8Array;const er=yh;function xn(t){var e=new t.constructor(t.byteLength);return new er(e).set(new er(t)),e}function bh(t,e){var r=xn(t.buffer);return new t.constructor(r,t.byteOffset,t.byteLength)}var _h=/\w*$/;function wh(t){var e=new t.constructor(t.source,_h.exec(t));return e.lastIndex=t.lastIndex,e}var vi=Re?Re.prototype:void 0,mi=vi?vi.valueOf:void 0;function Eh(t){return mi?Object(mi.call(t)):{}}function ho(t,e){var r=e?xn(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length)}var Sh="[object Boolean]",Th="[object Date]",Rh="[object Map]",Ah="[object Number]",xh="[object RegExp]",Oh="[object Set]",$h="[object String]",Dh="[object Symbol]",Ch="[object ArrayBuffer]",Bh="[object DataView]",jh="[object Float32Array]",Ph="[object Float64Array]",Nh="[object Int8Array]",Ih="[object Int16Array]",Mh="[object Int32Array]",Fh="[object Uint8Array]",Lh="[object Uint8ClampedArray]",Uh="[object Uint16Array]",Hh="[object Uint32Array]";function Vh(t,e,r){var n=t.constructor;switch(e){case Ch:return xn(t);case Sh:case Th:return new n(+t);case Bh:return bh(t);case jh:case Ph:case Nh:case Ih:case Mh:case Fh:case Lh:case Uh:case Hh:return ho(t,r);case Rh:return new n;case Ah:case $h:return new n(t);case xh:return wh(t);case Oh:return new n;case Dh:return Eh(t)}}function po(t){return typeof t.constructor=="function"&&!En(t)?Su(Fs(t)):{}}var kh="[object Map]";function qh(t){return ge(t)&&St(t)==kh}var yi=Ae&&Ae.isMap,zh=yi?Sn(yi):qh;const Wh=zh;var Kh="[object Set]";function Jh(t){return ge(t)&&St(t)==Kh}var bi=Ae&&Ae.isSet,Gh=bi?Sn(bi):Jh;const Yh=Gh;var Zh=1,go="[object Arguments]",Qh="[object Array]",Xh="[object Boolean]",ep="[object Date]",tp="[object Error]",vo="[object Function]",rp="[object GeneratorFunction]",np="[object Map]",ip="[object Number]",mo="[object Object]",sp="[object RegExp]",op="[object Set]",ap="[object String]",up="[object Symbol]",cp="[object WeakMap]",lp="[object ArrayBuffer]",fp="[object DataView]",hp="[object Float32Array]",pp="[object Float64Array]",dp="[object Int8Array]",gp="[object Int16Array]",vp="[object Int32Array]",mp="[object Uint8Array]",yp="[object Uint8ClampedArray]",bp="[object Uint16Array]",_p="[object Uint32Array]",G={};G[go]=G[Qh]=G[lp]=G[fp]=G[Xh]=G[ep]=G[hp]=G[pp]=G[dp]=G[gp]=G[vp]=G[np]=G[ip]=G[mo]=G[sp]=G[op]=G[ap]=G[up]=G[mp]=G[yp]=G[bp]=G[_p]=!0;G[tp]=G[vo]=G[cp]=!1;function zt(t,e,r,n,i,s){var o,u=e&Zh;if(o!==void 0)return o;if(!ve(t))return t;var l=$e(t);if(l)o=mh(t);else{var a=St(t),c=a==vo||a==rp;if(_t(t))return fo(t,u);if(a==mo||a==go||c&&!i)o=c?{}:po(t);else{if(!G[a])return i?t:{};o=Vh(t,a,u)}}s||(s=new Se);var f=s.get(t);if(f)return f;s.set(t,o),Yh(t)?t.forEach(function(d){o.add(zt(d,e,r,d,t,s))}):Wh(t)&&t.forEach(function(d,g){o.set(g,zt(d,e,r,g,t,s))});var h=Qr,p=l?void 0:h(t);return Nu(p||t,function(d,g){p&&(g=d,d=t[g]),xs(o,g,zt(d,e,r,g,t,s))}),o}var wp=1,Ep=4;function _i(t){return zt(t,wp|Ep)}var Sp="__lodash_hash_undefined__";function Tp(t){return this.__data__.set(t,Sp),this}function Rp(t){return this.__data__.has(t)}function tr(t){var e=-1,r=t==null?0:t.length;for(this.__data__=new Be;++e<r;)this.add(t[e])}tr.prototype.add=tr.prototype.push=Tp;tr.prototype.has=Rp;function Ap(t,e){for(var r=-1,n=t==null?0:t.length;++r<n;)if(e(t[r],r,t))return!0;return!1}function xp(t,e){return t.has(e)}var Op=1,$p=2;function yo(t,e,r,n,i,s){var o=r&Op,u=t.length,l=e.length;if(u!=l&&!(o&&l>u))return!1;var a=s.get(t),c=s.get(e);if(a&&c)return a==e&&c==t;var f=-1,h=!0,p=r&$p?new tr:void 0;for(s.set(t,e),s.set(e,t);++f<u;){var d=t[f],g=e[f];if(n)var v=o?n(g,d,f,e,t,s):n(d,g,f,t,e,s);if(v!==void 0){if(v)continue;h=!1;break}if(p){if(!Ap(e,function(E,m){if(!xp(p,m)&&(d===E||i(d,E,r,n,s)))return p.push(m)})){h=!1;break}}else if(!(d===g||i(d,g,r,n,s))){h=!1;break}}return s.delete(t),s.delete(e),h}function Dp(t){var e=-1,r=Array(t.size);return t.forEach(function(n,i){r[++e]=[i,n]}),r}function Cp(t){var e=-1,r=Array(t.size);return t.forEach(function(n){r[++e]=n}),r}var Bp=1,jp=2,Pp="[object Boolean]",Np="[object Date]",Ip="[object Error]",Mp="[object Map]",Fp="[object Number]",Lp="[object RegExp]",Up="[object Set]",Hp="[object String]",Vp="[object Symbol]",kp="[object ArrayBuffer]",qp="[object DataView]",wi=Re?Re.prototype:void 0,Tr=wi?wi.valueOf:void 0;function zp(t,e,r,n,i,s,o){switch(r){case qp:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case kp:return!(t.byteLength!=e.byteLength||!s(new er(t),new er(e)));case Pp:case Np:case Fp:return at(+t,+e);case Ip:return t.name==e.name&&t.message==e.message;case Lp:case Hp:return t==e+"";case Mp:var u=Dp;case Up:var l=n&Bp;if(u||(u=Cp),t.size!=e.size&&!l)return!1;var a=o.get(t);if(a)return a==e;n|=jp,o.set(t,e);var c=yo(u(t),u(e),n,i,s,o);return o.delete(t),c;case Vp:if(Tr)return Tr.call(t)==Tr.call(e)}return!1}var Wp=1,Kp=Object.prototype,Jp=Kp.hasOwnProperty;function Gp(t,e,r,n,i,s){var o=r&Wp,u=Qr(t),l=u.length,a=Qr(e),c=a.length;if(l!=c&&!o)return!1;for(var f=l;f--;){var h=u[f];if(!(o?h in e:Jp.call(e,h)))return!1}var p=s.get(t),d=s.get(e);if(p&&d)return p==e&&d==t;var g=!0;s.set(t,e),s.set(e,t);for(var v=o;++f<l;){h=u[f];var E=t[h],m=e[h];if(n)var b=o?n(m,E,h,e,t,s):n(E,m,h,t,e,s);if(!(b===void 0?E===m||i(E,m,r,n,s):b)){g=!1;break}v||(v=h=="constructor")}if(g&&!v){var _=t.constructor,w=e.constructor;_!=w&&"constructor"in t&&"constructor"in e&&!(typeof _=="function"&&_ instanceof _&&typeof w=="function"&&w instanceof w)&&(g=!1)}return s.delete(t),s.delete(e),g}var Yp=1,Ei="[object Arguments]",Si="[object Array]",Bt="[object Object]",Zp=Object.prototype,Ti=Zp.hasOwnProperty;function Qp(t,e,r,n,i,s){var o=$e(t),u=$e(e),l=o?Si:St(t),a=u?Si:St(e);l=l==Ei?Bt:l,a=a==Ei?Bt:a;var c=l==Bt,f=a==Bt,h=l==a;if(h&&_t(t)){if(!_t(e))return!1;o=!0,c=!1}if(h&&!c)return s||(s=new Se),o||Tn(t)?yo(t,e,r,n,i,s):zp(t,e,l,r,n,i,s);if(!(r&Yp)){var p=c&&Ti.call(t,"__wrapped__"),d=f&&Ti.call(e,"__wrapped__");if(p||d){var g=p?t.value():t,v=d?e.value():e;return s||(s=new Se),i(g,v,r,n,s)}}return h?(s||(s=new Se),Gp(t,e,r,n,i,s)):!1}function bo(t,e,r,n,i){return t===e?!0:t==null||e==null||!ge(t)&&!ge(e)?t!==t&&e!==e:Qp(t,e,r,n,bo,i)}function Xp(t){return function(e,r,n){for(var i=-1,s=Object(e),o=n(e),u=o.length;u--;){var l=o[++i];if(r(s[l],l,s)===!1)break}return e}}var ed=Xp();const td=ed;var rd=function(){return be.Date.now()};const Rr=rd;var nd="Expected a function",id=Math.max,sd=Math.min;function On(t,e,r){var n,i,s,o,u,l,a=0,c=!1,f=!1,h=!0;if(typeof t!="function")throw new TypeError(nd);e=Jn(e)||0,ve(r)&&(c=!!r.leading,f="maxWait"in r,s=f?id(Jn(r.maxWait)||0,e):s,h="trailing"in r?!!r.trailing:h);function p(y){var T=n,O=i;return n=i=void 0,a=y,o=t.apply(O,T),o}function d(y){return a=y,u=setTimeout(E,e),c?p(y):o}function g(y){var T=y-l,O=y-a,L=e-T;return f?sd(L,s-O):L}function v(y){var T=y-l,O=y-a;return l===void 0||T>=e||T<0||f&&O>=s}function E(){var y=Rr();if(v(y))return m(y);u=setTimeout(E,g(y))}function m(y){return u=void 0,h&&n?p(y):(n=i=void 0,o)}function b(){u!==void 0&&clearTimeout(u),a=0,n=l=i=u=void 0}function _(){return u===void 0?o:m(Rr())}function w(){var y=Rr(),T=v(y);if(n=arguments,i=this,l=y,T){if(u===void 0)return d(l);if(f)return clearTimeout(u),u=setTimeout(E,e),p(l)}return u===void 0&&(u=setTimeout(E,e)),o}return w.cancel=b,w.flush=_,w}function rn(t,e,r){(r!==void 0&&!at(t[e],r)||r===void 0&&!(e in t))&&wn(t,e,r)}function od(t){return ge(t)&&ar(t)}function nn(t,e){if(!(e==="constructor"&&typeof t[e]=="function")&&e!="__proto__")return t[e]}function ad(t){return Os(t,Rn(t))}function ud(t,e,r,n,i,s,o){var u=nn(t,r),l=nn(e,r),a=o.get(l);if(a){rn(t,r,a);return}var c=s?s(u,l,r+"",t,e,o):void 0,f=c===void 0;if(f){var h=$e(l),p=!h&&_t(l),d=!h&&!p&&Tn(l);c=l,h||p||d?$e(u)?c=u:od(u)?c=Tu(u):p?(f=!1,c=fo(l,!0)):d?(f=!1,c=ho(l,!0)):c=[]:Us(l)||Gr(l)?(c=u,Gr(u)?c=ad(u):(!ve(u)||ze(u))&&(c=po(l))):f=!1}f&&(o.set(l,c),i(c,l,n,s,o),o.delete(l)),rn(t,r,c)}function _o(t,e,r,n,i){t!==e&&td(e,function(s,o){if(i||(i=new Se),ve(s))ud(t,e,o,r,_o,n,i);else{var u=n?n(nn(t,o),s,o+"",t,e,i):void 0;u===void 0&&(u=s),rn(t,o,u)}},Rn)}var cd={"&":"&","<":"<",">":">",'"':""","'":"'"},ld=Ys(cd);const fd=ld;var wo=/[&<>"']/g,hd=RegExp(wo.source);function pd(t){return t=ut(t),t&&hd.test(t)?t.replace(wo,fd):t}var dd="[object String]";function Me(t){return typeof t=="string"||!$e(t)&&ge(t)&&De(t)==dd}function gd(t,e){return Es(e,function(r){return t[r]})}Ae&&Ae.isArrayBuffer;Ae&&Ae.isDate;function vd(t,e){return bo(t,e)}var md=Cs(function(t,e,r){_o(t,e,r)});const vt=md;var Eo=Object.prototype,yd=Eo.hasOwnProperty;function Ri(t,e,r,n){return t===void 0||at(t,Eo[r])&&!yd.call(n,r)?e:t}var bd={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"};function _d(t){return"\\"+bd[t]}var wd=/<%=([\s\S]+?)%>/g;const So=wd;var Ed=/<%-([\s\S]+?)%>/g;const Sd=Ed;var Td=/<%([\s\S]+?)%>/g;const Rd=Td;var Ad={escape:Sd,evaluate:Rd,interpolate:So,variable:"",imports:{_:{escape:pd}}};const Ai=Ad;var xd="Invalid `variable` option passed into `_.template`",Od=/\b__p \+= '';/g,$d=/\b(__p \+=) '' \+/g,Dd=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Cd=/[()=,{}\[\]\/\s]/,Bd=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,jt=/($^)/,jd=/['\n\r\u2028\u2029\\]/g,Pd=Object.prototype,xi=Pd.hasOwnProperty;function Nd(t,e,r){var n=Ai.imports._.templateSettings||Ai;t=ut(t),e=ri({},e,n,Ri);var i=ri({},e.imports,n.imports,Ri),s=Ms(i),o=gd(i,s),u,l,a=0,c=e.interpolate||jt,f="__p += '",h=RegExp((e.escape||jt).source+"|"+c.source+"|"+(c===So?Bd:jt).source+"|"+(e.evaluate||jt).source+"|$","g"),p=xi.call(e,"sourceURL")?"//# sourceURL="+(e.sourceURL+"").replace(/\s/g," ")+`
|
|
3
|
+
`:"";t.replace(h,function(v,E,m,b,_,w){return m||(m=b),f+=t.slice(a,w).replace(jd,_d),E&&(u=!0,f+=`' +
|
|
4
|
+
__e(`+E+`) +
|
|
5
5
|
'`),_&&(l=!0,f+=`';
|
|
6
6
|
`+_+`;
|
|
7
|
-
__p += '`),
|
|
8
|
-
((__t = (`+
|
|
9
|
-
'`),a=
|
|
10
|
-
`;var d=
|
|
7
|
+
__p += '`),m&&(f+=`' +
|
|
8
|
+
((__t = (`+m+`)) == null ? '' : __t) +
|
|
9
|
+
'`),a=w+v.length,v}),f+=`';
|
|
10
|
+
`;var d=xi.call(e,"variable")&&e.variable;if(!d)f=`with (obj) {
|
|
11
11
|
`+f+`
|
|
12
12
|
}
|
|
13
|
-
`;else if(
|
|
13
|
+
`;else if(Cd.test(d))throw new Error(xd);f=(l?f.replace(Od,""):f).replace($d,"$1").replace(Dd,"$1;"),f="function("+(d||"obj")+`) {
|
|
14
14
|
`+(d?"":`obj || (obj = {});
|
|
15
15
|
`)+"var __t, __p = ''"+(u?", __e = _.escape":"")+(l?`, __j = Array.prototype.join;
|
|
16
16
|
function print() { __p += __j.call(arguments, '') }
|
|
17
17
|
`:`;
|
|
18
18
|
`)+f+`return __p
|
|
19
|
-
}`;var g=xl(function(){return Function(s,p+"return "+f).apply(void 0,o)});if(g.source=f,Hs(g))throw g;return g}var Md="Expected a function";function Fd(t,e,r){var n=!0,i=!0;if(typeof t!="function")throw new TypeError(Md);return ve(r)&&(n="leading"in r?!0:n,i="trailing"in r?!1:i),xn(t,e,{leading:n,maxWait:e,trailing:i})}function Ld(t){return Gs(we(t))}var oe=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function Ud(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var To={exports:{}};function Hd(t){throw new Error('Could not dynamically require "'+t+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Rr={exports:{}},xi;function Fe(){return xi||(xi=1,(function(t,e){(function(r,n){t.exports=n()})(oe,function(){var r=r||(function(n,i){var s;if(typeof window!="undefined"&&window.crypto&&(s=window.crypto),typeof self!="undefined"&&self.crypto&&(s=self.crypto),typeof globalThis!="undefined"&&globalThis.crypto&&(s=globalThis.crypto),!s&&typeof window!="undefined"&&window.msCrypto&&(s=window.msCrypto),!s&&typeof oe!="undefined"&&oe.crypto&&(s=oe.crypto),!s&&typeof Hd=="function")try{s=require("crypto")}catch(v){}var o=function(){if(s){if(typeof s.getRandomValues=="function")try{return s.getRandomValues(new Uint32Array(1))[0]}catch(v){}if(typeof s.randomBytes=="function")try{return s.randomBytes(4).readInt32LE()}catch(v){}}throw new Error("Native crypto module could not be used to get secure random number.")},u=Object.create||(function(){function v(){}return function(b){var _;return v.prototype=b,_=new v,v.prototype=null,_}})(),l={},a=l.lib={},c=a.Base=(function(){return{extend:function(v){var b=u(this);return v&&b.mixIn(v),(!b.hasOwnProperty("init")||this.init===b.init)&&(b.init=function(){b.$super.init.apply(this,arguments)}),b.init.prototype=b,b.$super=this,b},create:function(){var v=this.extend();return v.init.apply(v,arguments),v},init:function(){},mixIn:function(v){for(var b in v)v.hasOwnProperty(b)&&(this[b]=v[b]);v.hasOwnProperty("toString")&&(this.toString=v.toString)},clone:function(){return this.init.prototype.extend(this)}}})(),f=a.WordArray=c.extend({init:function(v,b){v=this.words=v||[],b!=i?this.sigBytes=b:this.sigBytes=v.length*4},toString:function(v){return(v||p).stringify(this)},concat:function(v){var b=this.words,_=v.words,E=this.sigBytes,y=v.sigBytes;if(this.clamp(),E%4)for(var T=0;T<y;T++){var x=_[T>>>2]>>>24-T%4*8&255;b[E+T>>>2]|=x<<24-(E+T)%4*8}else for(var U=0;U<y;U+=4)b[E+U>>>2]=_[U>>>2];return this.sigBytes+=y,this},clamp:function(){var v=this.words,b=this.sigBytes;v[b>>>2]&=4294967295<<32-b%4*8,v.length=n.ceil(b/4)},clone:function(){var v=c.clone.call(this);return v.words=this.words.slice(0),v},random:function(v){for(var b=[],_=0;_<v;_+=4)b.push(o());return new f.init(b,v)}}),h=l.enc={},p=h.Hex={stringify:function(v){for(var b=v.words,_=v.sigBytes,E=[],y=0;y<_;y++){var T=b[y>>>2]>>>24-y%4*8&255;E.push((T>>>4).toString(16)),E.push((T&15).toString(16))}return E.join("")},parse:function(v){for(var b=v.length,_=[],E=0;E<b;E+=2)_[E>>>3]|=parseInt(v.substr(E,2),16)<<24-E%8*4;return new f.init(_,b/2)}},d=h.Latin1={stringify:function(v){for(var b=v.words,_=v.sigBytes,E=[],y=0;y<_;y++){var T=b[y>>>2]>>>24-y%4*8&255;E.push(String.fromCharCode(T))}return E.join("")},parse:function(v){for(var b=v.length,_=[],E=0;E<b;E++)_[E>>>2]|=(v.charCodeAt(E)&255)<<24-E%4*8;return new f.init(_,b)}},g=h.Utf8={stringify:function(v){try{return decodeURIComponent(escape(d.stringify(v)))}catch(b){throw new Error("Malformed UTF-8 data")}},parse:function(v){return d.parse(unescape(encodeURIComponent(v)))}},m=a.BufferedBlockAlgorithm=c.extend({reset:function(){this._data=new f.init,this._nDataBytes=0},_append:function(v){typeof v=="string"&&(v=g.parse(v)),this._data.concat(v),this._nDataBytes+=v.sigBytes},_process:function(v){var b,_=this._data,E=_.words,y=_.sigBytes,T=this.blockSize,x=T*4,U=y/x;v?U=n.ceil(U):U=n.max((U|0)-this._minBufferSize,0);var S=U*T,A=n.min(S*4,y);if(S){for(var M=0;M<S;M+=T)this._doProcessBlock(E,M);b=E.splice(0,S),_.sigBytes-=A}return new f.init(b,A)},clone:function(){var v=c.clone.call(this);return v._data=this._data.clone(),v},_minBufferSize:0});a.Hasher=m.extend({cfg:c.extend(),init:function(v){this.cfg=this.cfg.extend(v),this.reset()},reset:function(){m.reset.call(this),this._doReset()},update:function(v){return this._append(v),this._process(),this},finalize:function(v){v&&this._append(v);var b=this._doFinalize();return b},blockSize:16,_createHelper:function(v){return function(b,_){return new v.init(_).finalize(b)}},_createHmacHelper:function(v){return function(b,_){return new w.HMAC.init(v,_).finalize(b)}}});var w=l.algo={};return l})(Math);return r})})(Rr)),Rr.exports}(function(t,e){(function(r,n){t.exports=n(Fe())})(oe,function(r){return(function(n){var i=r,s=i.lib,o=s.WordArray,u=s.Hasher,l=i.algo,a=[];(function(){for(var g=0;g<64;g++)a[g]=n.abs(n.sin(g+1))*4294967296|0})();var c=l.MD5=u.extend({_doReset:function(){this._hash=new o.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(g,m){for(var w=0;w<16;w++){var v=m+w,b=g[v];g[v]=(b<<8|b>>>24)&16711935|(b<<24|b>>>8)&4278255360}var _=this._hash.words,E=g[m+0],y=g[m+1],T=g[m+2],x=g[m+3],U=g[m+4],S=g[m+5],A=g[m+6],M=g[m+7],j=g[m+8],I=g[m+9],C=g[m+10],D=g[m+11],H=g[m+12],F=g[m+13],q=g[m+14],z=g[m+15],O=_[0],$=_[1],P=_[2],N=_[3];O=f(O,$,P,N,E,7,a[0]),N=f(N,O,$,P,y,12,a[1]),P=f(P,N,O,$,T,17,a[2]),$=f($,P,N,O,x,22,a[3]),O=f(O,$,P,N,U,7,a[4]),N=f(N,O,$,P,S,12,a[5]),P=f(P,N,O,$,A,17,a[6]),$=f($,P,N,O,M,22,a[7]),O=f(O,$,P,N,j,7,a[8]),N=f(N,O,$,P,I,12,a[9]),P=f(P,N,O,$,C,17,a[10]),$=f($,P,N,O,D,22,a[11]),O=f(O,$,P,N,H,7,a[12]),N=f(N,O,$,P,F,12,a[13]),P=f(P,N,O,$,q,17,a[14]),$=f($,P,N,O,z,22,a[15]),O=h(O,$,P,N,y,5,a[16]),N=h(N,O,$,P,A,9,a[17]),P=h(P,N,O,$,D,14,a[18]),$=h($,P,N,O,E,20,a[19]),O=h(O,$,P,N,S,5,a[20]),N=h(N,O,$,P,C,9,a[21]),P=h(P,N,O,$,z,14,a[22]),$=h($,P,N,O,U,20,a[23]),O=h(O,$,P,N,I,5,a[24]),N=h(N,O,$,P,q,9,a[25]),P=h(P,N,O,$,x,14,a[26]),$=h($,P,N,O,j,20,a[27]),O=h(O,$,P,N,F,5,a[28]),N=h(N,O,$,P,T,9,a[29]),P=h(P,N,O,$,M,14,a[30]),$=h($,P,N,O,H,20,a[31]),O=p(O,$,P,N,S,4,a[32]),N=p(N,O,$,P,j,11,a[33]),P=p(P,N,O,$,D,16,a[34]),$=p($,P,N,O,q,23,a[35]),O=p(O,$,P,N,y,4,a[36]),N=p(N,O,$,P,U,11,a[37]),P=p(P,N,O,$,M,16,a[38]),$=p($,P,N,O,C,23,a[39]),O=p(O,$,P,N,F,4,a[40]),N=p(N,O,$,P,E,11,a[41]),P=p(P,N,O,$,x,16,a[42]),$=p($,P,N,O,A,23,a[43]),O=p(O,$,P,N,I,4,a[44]),N=p(N,O,$,P,H,11,a[45]),P=p(P,N,O,$,z,16,a[46]),$=p($,P,N,O,T,23,a[47]),O=d(O,$,P,N,E,6,a[48]),N=d(N,O,$,P,M,10,a[49]),P=d(P,N,O,$,q,15,a[50]),$=d($,P,N,O,S,21,a[51]),O=d(O,$,P,N,H,6,a[52]),N=d(N,O,$,P,x,10,a[53]),P=d(P,N,O,$,C,15,a[54]),$=d($,P,N,O,y,21,a[55]),O=d(O,$,P,N,j,6,a[56]),N=d(N,O,$,P,z,10,a[57]),P=d(P,N,O,$,A,15,a[58]),$=d($,P,N,O,F,21,a[59]),O=d(O,$,P,N,U,6,a[60]),N=d(N,O,$,P,D,10,a[61]),P=d(P,N,O,$,T,15,a[62]),$=d($,P,N,O,I,21,a[63]),_[0]=_[0]+O|0,_[1]=_[1]+$|0,_[2]=_[2]+P|0,_[3]=_[3]+N|0},_doFinalize:function(){var g=this._data,m=g.words,w=this._nDataBytes*8,v=g.sigBytes*8;m[v>>>5]|=128<<24-v%32;var b=n.floor(w/4294967296),_=w;m[(v+64>>>9<<4)+15]=(b<<8|b>>>24)&16711935|(b<<24|b>>>8)&4278255360,m[(v+64>>>9<<4)+14]=(_<<8|_>>>24)&16711935|(_<<24|_>>>8)&4278255360,g.sigBytes=(m.length+1)*4,this._process();for(var E=this._hash,y=E.words,T=0;T<4;T++){var x=y[T];y[T]=(x<<8|x>>>24)&16711935|(x<<24|x>>>8)&4278255360}return E},clone:function(){var g=u.clone.call(this);return g._hash=this._hash.clone(),g}});function f(g,m,w,v,b,_,E){var y=g+(m&w|~m&v)+b+E;return(y<<_|y>>>32-_)+m}function h(g,m,w,v,b,_,E){var y=g+(m&v|w&~v)+b+E;return(y<<_|y>>>32-_)+m}function p(g,m,w,v,b,_,E){var y=g+(m^w^v)+b+E;return(y<<_|y>>>32-_)+m}function d(g,m,w,v,b,_,E){var y=g+(w^(m|~v))+b+E;return(y<<_|y>>>32-_)+m}i.MD5=u._createHelper(c),i.HmacMD5=u._createHmacHelper(c)})(Math),r.MD5})})(To);var Vd=To.exports,Ro={exports:{}};(function(t,e){(function(r,n){t.exports=n(Fe())})(oe,function(r){return(function(){var n=r,i=n.lib,s=i.WordArray,o=n.enc;o.Base64={stringify:function(l){var a=l.words,c=l.sigBytes,f=this._map;l.clamp();for(var h=[],p=0;p<c;p+=3)for(var d=a[p>>>2]>>>24-p%4*8&255,g=a[p+1>>>2]>>>24-(p+1)%4*8&255,m=a[p+2>>>2]>>>24-(p+2)%4*8&255,w=d<<16|g<<8|m,v=0;v<4&&p+v*.75<c;v++)h.push(f.charAt(w>>>6*(3-v)&63));var b=f.charAt(64);if(b)for(;h.length%4;)h.push(b);return h.join("")},parse:function(l){var a=l.length,c=this._map,f=this._reverseMap;if(!f){f=this._reverseMap=[];for(var h=0;h<c.length;h++)f[c.charCodeAt(h)]=h}var p=c.charAt(64);if(p){var d=l.indexOf(p);d!==-1&&(a=d)}return u(l,a,f)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function u(l,a,c){for(var f=[],h=0,p=0;p<a;p++)if(p%4){var d=c[l.charCodeAt(p-1)]<<p%4*2,g=c[l.charCodeAt(p)]>>>6-p%4*2,m=d|g;f[h>>>2]|=m<<24-h%4*8,h++}return s.create(f,h)}})(),r.enc.Base64})})(Ro);var kd=Ro.exports,qd={exports:{}};(function(t,e){(function(r,n){t.exports=n(Fe())})(oe,function(r){return r.enc.Utf8})})(qd);var zd={exports:{}},Ar={exports:{}},xr={exports:{}},Oi;function Wd(){return Oi||(Oi=1,(function(t,e){(function(r,n){t.exports=n(Fe())})(oe,function(r){return(function(){var n=r,i=n.lib,s=i.WordArray,o=i.Hasher,u=n.algo,l=[],a=u.SHA1=o.extend({_doReset:function(){this._hash=new s.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(c,f){for(var h=this._hash.words,p=h[0],d=h[1],g=h[2],m=h[3],w=h[4],v=0;v<80;v++){if(v<16)l[v]=c[f+v]|0;else{var b=l[v-3]^l[v-8]^l[v-14]^l[v-16];l[v]=b<<1|b>>>31}var _=(p<<5|p>>>27)+w+l[v];v<20?_+=(d&g|~d&m)+1518500249:v<40?_+=(d^g^m)+1859775393:v<60?_+=(d&g|d&m|g&m)-1894007588:_+=(d^g^m)-899497514,w=m,m=g,g=d<<30|d>>>2,d=p,p=_}h[0]=h[0]+p|0,h[1]=h[1]+d|0,h[2]=h[2]+g|0,h[3]=h[3]+m|0,h[4]=h[4]+w|0},_doFinalize:function(){var c=this._data,f=c.words,h=this._nDataBytes*8,p=c.sigBytes*8;return f[p>>>5]|=128<<24-p%32,f[(p+64>>>9<<4)+14]=Math.floor(h/4294967296),f[(p+64>>>9<<4)+15]=h,c.sigBytes=f.length*4,this._process(),this._hash},clone:function(){var c=o.clone.call(this);return c._hash=this._hash.clone(),c}});n.SHA1=o._createHelper(a),n.HmacSHA1=o._createHmacHelper(a)})(),r.SHA1})})(xr)),xr.exports}var Or={exports:{}},$i;function Kd(){return $i||($i=1,(function(t,e){(function(r,n){t.exports=n(Fe())})(oe,function(r){(function(){var n=r,i=n.lib,s=i.Base,o=n.enc,u=o.Utf8,l=n.algo;l.HMAC=s.extend({init:function(a,c){a=this._hasher=new a.init,typeof c=="string"&&(c=u.parse(c));var f=a.blockSize,h=f*4;c.sigBytes>h&&(c=a.finalize(c)),c.clamp();for(var p=this._oKey=c.clone(),d=this._iKey=c.clone(),g=p.words,m=d.words,w=0;w<f;w++)g[w]^=1549556828,m[w]^=909522486;p.sigBytes=d.sigBytes=h,this.reset()},reset:function(){var a=this._hasher;a.reset(),a.update(this._iKey)},update:function(a){return this._hasher.update(a),this},finalize:function(a){var c=this._hasher,f=c.finalize(a);c.reset();var h=c.finalize(this._oKey.clone().concat(f));return h}})})()})})(Or)),Or.exports}var Di;function Ao(){return Di||(Di=1,(function(t,e){(function(r,n,i){t.exports=n(Fe(),Wd(),Kd())})(oe,function(r){return(function(){var n=r,i=n.lib,s=i.Base,o=i.WordArray,u=n.algo,l=u.MD5,a=u.EvpKDF=s.extend({cfg:s.extend({keySize:128/32,hasher:l,iterations:1}),init:function(c){this.cfg=this.cfg.extend(c)},compute:function(c,f){for(var h,p=this.cfg,d=p.hasher.create(),g=o.create(),m=g.words,w=p.keySize,v=p.iterations;m.length<w;){h&&d.update(h),h=d.update(c).finalize(f),d.reset();for(var b=1;b<v;b++)h=d.finalize(h),d.reset();g.concat(h)}return g.sigBytes=w*4,g}});n.EvpKDF=function(c,f,h){return a.create(h).compute(c,f)}})(),r.EvpKDF})})(Ar)),Ar.exports}var $r={exports:{}},Ci;function Jd(){return Ci||(Ci=1,(function(t,e){(function(r,n,i){t.exports=n(Fe(),Ao())})(oe,function(r){r.lib.Cipher||(function(n){var i=r,s=i.lib,o=s.Base,u=s.WordArray,l=s.BufferedBlockAlgorithm,a=i.enc;a.Utf8;var c=a.Base64,f=i.algo,h=f.EvpKDF,p=s.Cipher=l.extend({cfg:o.extend(),createEncryptor:function(S,A){return this.create(this._ENC_XFORM_MODE,S,A)},createDecryptor:function(S,A){return this.create(this._DEC_XFORM_MODE,S,A)},init:function(S,A,M){this.cfg=this.cfg.extend(M),this._xformMode=S,this._key=A,this.reset()},reset:function(){l.reset.call(this),this._doReset()},process:function(S){return this._append(S),this._process()},finalize:function(S){S&&this._append(S);var A=this._doFinalize();return A},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:(function(){function S(A){return typeof A=="string"?U:y}return function(A){return{encrypt:function(M,j,I){return S(j).encrypt(A,M,j,I)},decrypt:function(M,j,I){return S(j).decrypt(A,M,j,I)}}}})()});s.StreamCipher=p.extend({_doFinalize:function(){var S=this._process(!0);return S},blockSize:1});var d=i.mode={},g=s.BlockCipherMode=o.extend({createEncryptor:function(S,A){return this.Encryptor.create(S,A)},createDecryptor:function(S,A){return this.Decryptor.create(S,A)},init:function(S,A){this._cipher=S,this._iv=A}}),m=d.CBC=(function(){var S=g.extend();S.Encryptor=S.extend({processBlock:function(M,j){var I=this._cipher,C=I.blockSize;A.call(this,M,j,C),I.encryptBlock(M,j),this._prevBlock=M.slice(j,j+C)}}),S.Decryptor=S.extend({processBlock:function(M,j){var I=this._cipher,C=I.blockSize,D=M.slice(j,j+C);I.decryptBlock(M,j),A.call(this,M,j,C),this._prevBlock=D}});function A(M,j,I){var C,D=this._iv;D?(C=D,this._iv=n):C=this._prevBlock;for(var H=0;H<I;H++)M[j+H]^=C[H]}return S})(),w=i.pad={},v=w.Pkcs7={pad:function(S,A){for(var M=A*4,j=M-S.sigBytes%M,I=j<<24|j<<16|j<<8|j,C=[],D=0;D<j;D+=4)C.push(I);var H=u.create(C,j);S.concat(H)},unpad:function(S){var A=S.words[S.sigBytes-1>>>2]&255;S.sigBytes-=A}};s.BlockCipher=p.extend({cfg:p.cfg.extend({mode:m,padding:v}),reset:function(){var S;p.reset.call(this);var A=this.cfg,M=A.iv,j=A.mode;this._xformMode==this._ENC_XFORM_MODE?S=j.createEncryptor:(S=j.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==S?this._mode.init(this,M&&M.words):(this._mode=S.call(j,this,M&&M.words),this._mode.__creator=S)},_doProcessBlock:function(S,A){this._mode.processBlock(S,A)},_doFinalize:function(){var S,A=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(A.pad(this._data,this.blockSize),S=this._process(!0)):(S=this._process(!0),A.unpad(S)),S},blockSize:128/32});var b=s.CipherParams=o.extend({init:function(S){this.mixIn(S)},toString:function(S){return(S||this.formatter).stringify(this)}}),_=i.format={},E=_.OpenSSL={stringify:function(S){var A,M=S.ciphertext,j=S.salt;return j?A=u.create([1398893684,1701076831]).concat(j).concat(M):A=M,A.toString(c)},parse:function(S){var A,M=c.parse(S),j=M.words;return j[0]==1398893684&&j[1]==1701076831&&(A=u.create(j.slice(2,4)),j.splice(0,4),M.sigBytes-=16),b.create({ciphertext:M,salt:A})}},y=s.SerializableCipher=o.extend({cfg:o.extend({format:E}),encrypt:function(S,A,M,j){j=this.cfg.extend(j);var I=S.createEncryptor(M,j),C=I.finalize(A),D=I.cfg;return b.create({ciphertext:C,key:M,iv:D.iv,algorithm:S,mode:D.mode,padding:D.padding,blockSize:S.blockSize,formatter:j.format})},decrypt:function(S,A,M,j){j=this.cfg.extend(j),A=this._parse(A,j.format);var I=S.createDecryptor(M,j).finalize(A.ciphertext);return I},_parse:function(S,A){return typeof S=="string"?A.parse(S,this):S}}),T=i.kdf={},x=T.OpenSSL={execute:function(S,A,M,j,I){if(j||(j=u.random(64/8)),I)var C=h.create({keySize:A+M,hasher:I}).compute(S,j);else var C=h.create({keySize:A+M}).compute(S,j);var D=u.create(C.words.slice(A),M*4);return C.sigBytes=A*4,b.create({key:C,iv:D,salt:j})}},U=s.PasswordBasedCipher=y.extend({cfg:y.cfg.extend({kdf:x}),encrypt:function(S,A,M,j){j=this.cfg.extend(j);var I=j.kdf.execute(M,S.keySize,S.ivSize,j.salt,j.hasher);j.iv=I.iv;var C=y.encrypt.call(this,S,A,I.key,j);return C.mixIn(I),C},decrypt:function(S,A,M,j){j=this.cfg.extend(j),A=this._parse(A,j.format);var I=j.kdf.execute(M,S.keySize,S.ivSize,A.salt,j.hasher);j.iv=I.iv;var C=y.decrypt.call(this,S,A,I.key,j);return C}})})()})})($r)),$r.exports}(function(t,e){(function(r,n,i){t.exports=n(Fe(),kd,Vd,Ao(),Jd())})(oe,function(r){return(function(){var n=r,i=n.lib,s=i.BlockCipher,o=n.algo,u=[],l=[],a=[],c=[],f=[],h=[],p=[],d=[],g=[],m=[];(function(){for(var b=[],_=0;_<256;_++)_<128?b[_]=_<<1:b[_]=_<<1^283;for(var E=0,y=0,_=0;_<256;_++){var T=y^y<<1^y<<2^y<<3^y<<4;T=T>>>8^T&255^99,u[E]=T,l[T]=E;var x=b[E],U=b[x],S=b[U],A=b[T]*257^T*16843008;a[E]=A<<24|A>>>8,c[E]=A<<16|A>>>16,f[E]=A<<8|A>>>24,h[E]=A;var A=S*16843009^U*65537^x*257^E*16843008;p[T]=A<<24|A>>>8,d[T]=A<<16|A>>>16,g[T]=A<<8|A>>>24,m[T]=A,E?(E=x^b[b[b[S^x]]],y^=b[b[y]]):E=y=1}})();var w=[0,1,2,4,8,16,32,64,128,27,54],v=o.AES=s.extend({_doReset:function(){var b;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var _=this._keyPriorReset=this._key,E=_.words,y=_.sigBytes/4,T=this._nRounds=y+6,x=(T+1)*4,U=this._keySchedule=[],S=0;S<x;S++)S<y?U[S]=E[S]:(b=U[S-1],S%y?y>6&&S%y==4&&(b=u[b>>>24]<<24|u[b>>>16&255]<<16|u[b>>>8&255]<<8|u[b&255]):(b=b<<8|b>>>24,b=u[b>>>24]<<24|u[b>>>16&255]<<16|u[b>>>8&255]<<8|u[b&255],b^=w[S/y|0]<<24),U[S]=U[S-y]^b);for(var A=this._invKeySchedule=[],M=0;M<x;M++){var S=x-M;if(M%4)var b=U[S];else var b=U[S-4];M<4||S<=4?A[M]=b:A[M]=p[u[b>>>24]]^d[u[b>>>16&255]]^g[u[b>>>8&255]]^m[u[b&255]]}}},encryptBlock:function(b,_){this._doCryptBlock(b,_,this._keySchedule,a,c,f,h,u)},decryptBlock:function(b,_){var E=b[_+1];b[_+1]=b[_+3],b[_+3]=E,this._doCryptBlock(b,_,this._invKeySchedule,p,d,g,m,l);var E=b[_+1];b[_+1]=b[_+3],b[_+3]=E},_doCryptBlock:function(b,_,E,y,T,x,U,S){for(var A=this._nRounds,M=b[_]^E[0],j=b[_+1]^E[1],I=b[_+2]^E[2],C=b[_+3]^E[3],D=4,H=1;H<A;H++){var F=y[M>>>24]^T[j>>>16&255]^x[I>>>8&255]^U[C&255]^E[D++],q=y[j>>>24]^T[I>>>16&255]^x[C>>>8&255]^U[M&255]^E[D++],z=y[I>>>24]^T[C>>>16&255]^x[M>>>8&255]^U[j&255]^E[D++],O=y[C>>>24]^T[M>>>16&255]^x[j>>>8&255]^U[I&255]^E[D++];M=F,j=q,I=z,C=O}var F=(S[M>>>24]<<24|S[j>>>16&255]<<16|S[I>>>8&255]<<8|S[C&255])^E[D++],q=(S[j>>>24]<<24|S[I>>>16&255]<<16|S[C>>>8&255]<<8|S[M&255])^E[D++],z=(S[I>>>24]<<24|S[C>>>16&255]<<16|S[M>>>8&255]<<8|S[j&255])^E[D++],O=(S[C>>>24]<<24|S[M>>>16&255]<<16|S[j>>>8&255]<<8|S[I&255])^E[D++];b[_]=F,b[_+1]=q,b[_+2]=z,b[_+3]=O},keySize:256/32});n.AES=s._createHelper(v)})(),r.AES})})(zd);var Gd="0123456789abcdefghijklmnopqrstuvwxyz";function xe(t){return Gd.charAt(t)}function Yd(t,e){return t&e}function Pt(t,e){return t|e}function Bi(t,e){return t^e}function ji(t,e){return t&~e}function Zd(t){if(t==0)return-1;var e=0;return(t&65535)==0&&(t>>=16,e+=16),(t&255)==0&&(t>>=8,e+=8),(t&15)==0&&(t>>=4,e+=4),(t&3)==0&&(t>>=2,e+=2),(t&1)==0&&++e,e}function Qd(t){for(var e=0;t!=0;)t&=t-1,++e;return e}var tt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",xo="=";function bt(t){var e,r,n="";for(e=0;e+3<=t.length;e+=3)r=parseInt(t.substring(e,e+3),16),n+=tt.charAt(r>>6)+tt.charAt(r&63);for(e+1==t.length?(r=parseInt(t.substring(e,e+1),16),n+=tt.charAt(r<<2)):e+2==t.length&&(r=parseInt(t.substring(e,e+2),16),n+=tt.charAt(r>>2)+tt.charAt((r&3)<<4));(n.length&3)>0;)n+=xo;return n}function Pi(t){var e="",r,n=0,i=0;for(r=0;r<t.length&&t.charAt(r)!=xo;++r){var s=tt.indexOf(t.charAt(r));s<0||(n==0?(e+=xe(s>>2),i=s&3,n=1):n==1?(e+=xe(i<<2|s>>4),i=s&15,n=2):n==2?(e+=xe(i),e+=xe(s>>2),i=s&3,n=3):(e+=xe(i<<2|s>>4),e+=xe(s&15),n=0))}return n==1&&(e+=xe(i<<2)),e}var Ze,Xd={decode:function(t){var e;if(Ze===void 0){var r="0123456789ABCDEF",n=` \f
|
|
20
|
-
\r \u2028\u2029`;for(Ze={},e=0;e<16;++e)Ze[r.charAt(e)]=e;for(r=r.toLowerCase(),e=10;e<16;++e)Ze[r.charAt(e)]=e;for(e=0;e<n.length;++e)Ze[n.charAt(e)]=-1}var i=[],s=0,o=0;for(e=0;e<t.length;++e){var u=t.charAt(e);if(u=="=")break;if(u=Ze[u],u!=-1){if(u===void 0)throw new Error("Illegal character at offset "+e);s|=u,++o>=2?(i[i.length]=s,s=0,o=0):s<<=4}}if(o)throw new Error("Hex encoding incomplete: 4 bits missing");return i}},
|
|
21
|
-
\r \u2028\u2029`;for(
|
|
22
|
-
`;break;default:i+=" "}return i},t.prototype.isASCII=function(e,r){for(var n=e;n<r;++n){var i=this.get(n);if(i<32||i>176)return!1}return!0},t.prototype.parseStringISO=function(e,r){for(var n="",i=e;i<r;++i)n+=String.fromCharCode(this.get(i));return n},t.prototype.parseStringUTF=function(e,r){for(var n="",i=e;i<r;){var s=this.get(i++);s<128?n+=String.fromCharCode(s):s>191&&s<224?n+=String.fromCharCode((s&31)<<6|this.get(i++)&63):n+=String.fromCharCode((s&15)<<12|(this.get(i++)&63)<<6|this.get(i++)&63)}return n},t.prototype.parseStringBMP=function(e,r){for(var n="",i,s,o=e;o<r;)i=this.get(o++),s=this.get(o++),n+=String.fromCharCode(i<<8|s);return n},t.prototype.parseTime=function(e,r,n){var i=this.parseStringISO(e,r),s=(n?eg
|
|
19
|
+
}`;var g=Al(function(){return Function(s,p+"return "+f).apply(void 0,o)});if(g.source=f,Hs(g))throw g;return g}var Id="Expected a function";function Md(t,e,r){var n=!0,i=!0;if(typeof t!="function")throw new TypeError(Id);return ve(r)&&(n="leading"in r?!0:n,i="trailing"in r?!1:i),On(t,e,{leading:n,maxWait:e,trailing:i})}function Fd(t){return Gs(Ee(t))}var oe=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function Ld(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var To={exports:{}};function Ud(t){throw new Error('Could not dynamically require "'+t+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Ar={exports:{}},Oi;function Fe(){return Oi||(Oi=1,(function(t,e){(function(r,n){t.exports=n()})(oe,function(){var r=r||(function(n,i){var s;if(typeof window!="undefined"&&window.crypto&&(s=window.crypto),typeof self!="undefined"&&self.crypto&&(s=self.crypto),typeof globalThis!="undefined"&&globalThis.crypto&&(s=globalThis.crypto),!s&&typeof window!="undefined"&&window.msCrypto&&(s=window.msCrypto),!s&&typeof oe!="undefined"&&oe.crypto&&(s=oe.crypto),!s&&typeof Ud=="function")try{s=require("crypto")}catch(m){}var o=function(){if(s){if(typeof s.getRandomValues=="function")try{return s.getRandomValues(new Uint32Array(1))[0]}catch(m){}if(typeof s.randomBytes=="function")try{return s.randomBytes(4).readInt32LE()}catch(m){}}throw new Error("Native crypto module could not be used to get secure random number.")},u=Object.create||(function(){function m(){}return function(b){var _;return m.prototype=b,_=new m,m.prototype=null,_}})(),l={},a=l.lib={},c=a.Base=(function(){return{extend:function(m){var b=u(this);return m&&b.mixIn(m),(!b.hasOwnProperty("init")||this.init===b.init)&&(b.init=function(){b.$super.init.apply(this,arguments)}),b.init.prototype=b,b.$super=this,b},create:function(){var m=this.extend();return m.init.apply(m,arguments),m},init:function(){},mixIn:function(m){for(var b in m)m.hasOwnProperty(b)&&(this[b]=m[b]);m.hasOwnProperty("toString")&&(this.toString=m.toString)},clone:function(){return this.init.prototype.extend(this)}}})(),f=a.WordArray=c.extend({init:function(m,b){m=this.words=m||[],b!=i?this.sigBytes=b:this.sigBytes=m.length*4},toString:function(m){return(m||p).stringify(this)},concat:function(m){var b=this.words,_=m.words,w=this.sigBytes,y=m.sigBytes;if(this.clamp(),w%4)for(var T=0;T<y;T++){var O=_[T>>>2]>>>24-T%4*8&255;b[w+T>>>2]|=O<<24-(w+T)%4*8}else for(var L=0;L<y;L+=4)b[w+L>>>2]=_[L>>>2];return this.sigBytes+=y,this},clamp:function(){var m=this.words,b=this.sigBytes;m[b>>>2]&=4294967295<<32-b%4*8,m.length=n.ceil(b/4)},clone:function(){var m=c.clone.call(this);return m.words=this.words.slice(0),m},random:function(m){for(var b=[],_=0;_<m;_+=4)b.push(o());return new f.init(b,m)}}),h=l.enc={},p=h.Hex={stringify:function(m){for(var b=m.words,_=m.sigBytes,w=[],y=0;y<_;y++){var T=b[y>>>2]>>>24-y%4*8&255;w.push((T>>>4).toString(16)),w.push((T&15).toString(16))}return w.join("")},parse:function(m){for(var b=m.length,_=[],w=0;w<b;w+=2)_[w>>>3]|=parseInt(m.substr(w,2),16)<<24-w%8*4;return new f.init(_,b/2)}},d=h.Latin1={stringify:function(m){for(var b=m.words,_=m.sigBytes,w=[],y=0;y<_;y++){var T=b[y>>>2]>>>24-y%4*8&255;w.push(String.fromCharCode(T))}return w.join("")},parse:function(m){for(var b=m.length,_=[],w=0;w<b;w++)_[w>>>2]|=(m.charCodeAt(w)&255)<<24-w%4*8;return new f.init(_,b)}},g=h.Utf8={stringify:function(m){try{return decodeURIComponent(escape(d.stringify(m)))}catch(b){throw new Error("Malformed UTF-8 data")}},parse:function(m){return d.parse(unescape(encodeURIComponent(m)))}},v=a.BufferedBlockAlgorithm=c.extend({reset:function(){this._data=new f.init,this._nDataBytes=0},_append:function(m){typeof m=="string"&&(m=g.parse(m)),this._data.concat(m),this._nDataBytes+=m.sigBytes},_process:function(m){var b,_=this._data,w=_.words,y=_.sigBytes,T=this.blockSize,O=T*4,L=y/O;m?L=n.ceil(L):L=n.max((L|0)-this._minBufferSize,0);var S=L*T,A=n.min(S*4,y);if(S){for(var M=0;M<S;M+=T)this._doProcessBlock(w,M);b=w.splice(0,S),_.sigBytes-=A}return new f.init(b,A)},clone:function(){var m=c.clone.call(this);return m._data=this._data.clone(),m},_minBufferSize:0});a.Hasher=v.extend({cfg:c.extend(),init:function(m){this.cfg=this.cfg.extend(m),this.reset()},reset:function(){v.reset.call(this),this._doReset()},update:function(m){return this._append(m),this._process(),this},finalize:function(m){m&&this._append(m);var b=this._doFinalize();return b},blockSize:16,_createHelper:function(m){return function(b,_){return new m.init(_).finalize(b)}},_createHmacHelper:function(m){return function(b,_){return new E.HMAC.init(m,_).finalize(b)}}});var E=l.algo={};return l})(Math);return r})})(Ar)),Ar.exports}(function(t,e){(function(r,n){t.exports=n(Fe())})(oe,function(r){return(function(n){var i=r,s=i.lib,o=s.WordArray,u=s.Hasher,l=i.algo,a=[];(function(){for(var g=0;g<64;g++)a[g]=n.abs(n.sin(g+1))*4294967296|0})();var c=l.MD5=u.extend({_doReset:function(){this._hash=new o.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(g,v){for(var E=0;E<16;E++){var m=v+E,b=g[m];g[m]=(b<<8|b>>>24)&16711935|(b<<24|b>>>8)&4278255360}var _=this._hash.words,w=g[v+0],y=g[v+1],T=g[v+2],O=g[v+3],L=g[v+4],S=g[v+5],A=g[v+6],M=g[v+7],P=g[v+8],I=g[v+9],B=g[v+10],$=g[v+11],H=g[v+12],F=g[v+13],q=g[v+14],z=g[v+15],x=_[0],C=_[1],D=_[2],N=_[3];x=f(x,C,D,N,w,7,a[0]),N=f(N,x,C,D,y,12,a[1]),D=f(D,N,x,C,T,17,a[2]),C=f(C,D,N,x,O,22,a[3]),x=f(x,C,D,N,L,7,a[4]),N=f(N,x,C,D,S,12,a[5]),D=f(D,N,x,C,A,17,a[6]),C=f(C,D,N,x,M,22,a[7]),x=f(x,C,D,N,P,7,a[8]),N=f(N,x,C,D,I,12,a[9]),D=f(D,N,x,C,B,17,a[10]),C=f(C,D,N,x,$,22,a[11]),x=f(x,C,D,N,H,7,a[12]),N=f(N,x,C,D,F,12,a[13]),D=f(D,N,x,C,q,17,a[14]),C=f(C,D,N,x,z,22,a[15]),x=h(x,C,D,N,y,5,a[16]),N=h(N,x,C,D,A,9,a[17]),D=h(D,N,x,C,$,14,a[18]),C=h(C,D,N,x,w,20,a[19]),x=h(x,C,D,N,S,5,a[20]),N=h(N,x,C,D,B,9,a[21]),D=h(D,N,x,C,z,14,a[22]),C=h(C,D,N,x,L,20,a[23]),x=h(x,C,D,N,I,5,a[24]),N=h(N,x,C,D,q,9,a[25]),D=h(D,N,x,C,O,14,a[26]),C=h(C,D,N,x,P,20,a[27]),x=h(x,C,D,N,F,5,a[28]),N=h(N,x,C,D,T,9,a[29]),D=h(D,N,x,C,M,14,a[30]),C=h(C,D,N,x,H,20,a[31]),x=p(x,C,D,N,S,4,a[32]),N=p(N,x,C,D,P,11,a[33]),D=p(D,N,x,C,$,16,a[34]),C=p(C,D,N,x,q,23,a[35]),x=p(x,C,D,N,y,4,a[36]),N=p(N,x,C,D,L,11,a[37]),D=p(D,N,x,C,M,16,a[38]),C=p(C,D,N,x,B,23,a[39]),x=p(x,C,D,N,F,4,a[40]),N=p(N,x,C,D,w,11,a[41]),D=p(D,N,x,C,O,16,a[42]),C=p(C,D,N,x,A,23,a[43]),x=p(x,C,D,N,I,4,a[44]),N=p(N,x,C,D,H,11,a[45]),D=p(D,N,x,C,z,16,a[46]),C=p(C,D,N,x,T,23,a[47]),x=d(x,C,D,N,w,6,a[48]),N=d(N,x,C,D,M,10,a[49]),D=d(D,N,x,C,q,15,a[50]),C=d(C,D,N,x,S,21,a[51]),x=d(x,C,D,N,H,6,a[52]),N=d(N,x,C,D,O,10,a[53]),D=d(D,N,x,C,B,15,a[54]),C=d(C,D,N,x,y,21,a[55]),x=d(x,C,D,N,P,6,a[56]),N=d(N,x,C,D,z,10,a[57]),D=d(D,N,x,C,A,15,a[58]),C=d(C,D,N,x,F,21,a[59]),x=d(x,C,D,N,L,6,a[60]),N=d(N,x,C,D,$,10,a[61]),D=d(D,N,x,C,T,15,a[62]),C=d(C,D,N,x,I,21,a[63]),_[0]=_[0]+x|0,_[1]=_[1]+C|0,_[2]=_[2]+D|0,_[3]=_[3]+N|0},_doFinalize:function(){var g=this._data,v=g.words,E=this._nDataBytes*8,m=g.sigBytes*8;v[m>>>5]|=128<<24-m%32;var b=n.floor(E/4294967296),_=E;v[(m+64>>>9<<4)+15]=(b<<8|b>>>24)&16711935|(b<<24|b>>>8)&4278255360,v[(m+64>>>9<<4)+14]=(_<<8|_>>>24)&16711935|(_<<24|_>>>8)&4278255360,g.sigBytes=(v.length+1)*4,this._process();for(var w=this._hash,y=w.words,T=0;T<4;T++){var O=y[T];y[T]=(O<<8|O>>>24)&16711935|(O<<24|O>>>8)&4278255360}return w},clone:function(){var g=u.clone.call(this);return g._hash=this._hash.clone(),g}});function f(g,v,E,m,b,_,w){var y=g+(v&E|~v&m)+b+w;return(y<<_|y>>>32-_)+v}function h(g,v,E,m,b,_,w){var y=g+(v&m|E&~m)+b+w;return(y<<_|y>>>32-_)+v}function p(g,v,E,m,b,_,w){var y=g+(v^E^m)+b+w;return(y<<_|y>>>32-_)+v}function d(g,v,E,m,b,_,w){var y=g+(E^(v|~m))+b+w;return(y<<_|y>>>32-_)+v}i.MD5=u._createHelper(c),i.HmacMD5=u._createHmacHelper(c)})(Math),r.MD5})})(To);var Hd=To.exports,Ro={exports:{}};(function(t,e){(function(r,n){t.exports=n(Fe())})(oe,function(r){return(function(){var n=r,i=n.lib,s=i.WordArray,o=n.enc;o.Base64={stringify:function(l){var a=l.words,c=l.sigBytes,f=this._map;l.clamp();for(var h=[],p=0;p<c;p+=3)for(var d=a[p>>>2]>>>24-p%4*8&255,g=a[p+1>>>2]>>>24-(p+1)%4*8&255,v=a[p+2>>>2]>>>24-(p+2)%4*8&255,E=d<<16|g<<8|v,m=0;m<4&&p+m*.75<c;m++)h.push(f.charAt(E>>>6*(3-m)&63));var b=f.charAt(64);if(b)for(;h.length%4;)h.push(b);return h.join("")},parse:function(l){var a=l.length,c=this._map,f=this._reverseMap;if(!f){f=this._reverseMap=[];for(var h=0;h<c.length;h++)f[c.charCodeAt(h)]=h}var p=c.charAt(64);if(p){var d=l.indexOf(p);d!==-1&&(a=d)}return u(l,a,f)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function u(l,a,c){for(var f=[],h=0,p=0;p<a;p++)if(p%4){var d=c[l.charCodeAt(p-1)]<<p%4*2,g=c[l.charCodeAt(p)]>>>6-p%4*2,v=d|g;f[h>>>2]|=v<<24-h%4*8,h++}return s.create(f,h)}})(),r.enc.Base64})})(Ro);var Vd=Ro.exports,kd={exports:{}};(function(t,e){(function(r,n){t.exports=n(Fe())})(oe,function(r){return r.enc.Utf8})})(kd);var qd={exports:{}},xr={exports:{}},Or={exports:{}},$i;function zd(){return $i||($i=1,(function(t,e){(function(r,n){t.exports=n(Fe())})(oe,function(r){return(function(){var n=r,i=n.lib,s=i.WordArray,o=i.Hasher,u=n.algo,l=[],a=u.SHA1=o.extend({_doReset:function(){this._hash=new s.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(c,f){for(var h=this._hash.words,p=h[0],d=h[1],g=h[2],v=h[3],E=h[4],m=0;m<80;m++){if(m<16)l[m]=c[f+m]|0;else{var b=l[m-3]^l[m-8]^l[m-14]^l[m-16];l[m]=b<<1|b>>>31}var _=(p<<5|p>>>27)+E+l[m];m<20?_+=(d&g|~d&v)+1518500249:m<40?_+=(d^g^v)+1859775393:m<60?_+=(d&g|d&v|g&v)-1894007588:_+=(d^g^v)-899497514,E=v,v=g,g=d<<30|d>>>2,d=p,p=_}h[0]=h[0]+p|0,h[1]=h[1]+d|0,h[2]=h[2]+g|0,h[3]=h[3]+v|0,h[4]=h[4]+E|0},_doFinalize:function(){var c=this._data,f=c.words,h=this._nDataBytes*8,p=c.sigBytes*8;return f[p>>>5]|=128<<24-p%32,f[(p+64>>>9<<4)+14]=Math.floor(h/4294967296),f[(p+64>>>9<<4)+15]=h,c.sigBytes=f.length*4,this._process(),this._hash},clone:function(){var c=o.clone.call(this);return c._hash=this._hash.clone(),c}});n.SHA1=o._createHelper(a),n.HmacSHA1=o._createHmacHelper(a)})(),r.SHA1})})(Or)),Or.exports}var $r={exports:{}},Di;function Wd(){return Di||(Di=1,(function(t,e){(function(r,n){t.exports=n(Fe())})(oe,function(r){(function(){var n=r,i=n.lib,s=i.Base,o=n.enc,u=o.Utf8,l=n.algo;l.HMAC=s.extend({init:function(a,c){a=this._hasher=new a.init,typeof c=="string"&&(c=u.parse(c));var f=a.blockSize,h=f*4;c.sigBytes>h&&(c=a.finalize(c)),c.clamp();for(var p=this._oKey=c.clone(),d=this._iKey=c.clone(),g=p.words,v=d.words,E=0;E<f;E++)g[E]^=1549556828,v[E]^=909522486;p.sigBytes=d.sigBytes=h,this.reset()},reset:function(){var a=this._hasher;a.reset(),a.update(this._iKey)},update:function(a){return this._hasher.update(a),this},finalize:function(a){var c=this._hasher,f=c.finalize(a);c.reset();var h=c.finalize(this._oKey.clone().concat(f));return h}})})()})})($r)),$r.exports}var Ci;function Ao(){return Ci||(Ci=1,(function(t,e){(function(r,n,i){t.exports=n(Fe(),zd(),Wd())})(oe,function(r){return(function(){var n=r,i=n.lib,s=i.Base,o=i.WordArray,u=n.algo,l=u.MD5,a=u.EvpKDF=s.extend({cfg:s.extend({keySize:128/32,hasher:l,iterations:1}),init:function(c){this.cfg=this.cfg.extend(c)},compute:function(c,f){for(var h,p=this.cfg,d=p.hasher.create(),g=o.create(),v=g.words,E=p.keySize,m=p.iterations;v.length<E;){h&&d.update(h),h=d.update(c).finalize(f),d.reset();for(var b=1;b<m;b++)h=d.finalize(h),d.reset();g.concat(h)}return g.sigBytes=E*4,g}});n.EvpKDF=function(c,f,h){return a.create(h).compute(c,f)}})(),r.EvpKDF})})(xr)),xr.exports}var Dr={exports:{}},Bi;function Kd(){return Bi||(Bi=1,(function(t,e){(function(r,n,i){t.exports=n(Fe(),Ao())})(oe,function(r){r.lib.Cipher||(function(n){var i=r,s=i.lib,o=s.Base,u=s.WordArray,l=s.BufferedBlockAlgorithm,a=i.enc;a.Utf8;var c=a.Base64,f=i.algo,h=f.EvpKDF,p=s.Cipher=l.extend({cfg:o.extend(),createEncryptor:function(S,A){return this.create(this._ENC_XFORM_MODE,S,A)},createDecryptor:function(S,A){return this.create(this._DEC_XFORM_MODE,S,A)},init:function(S,A,M){this.cfg=this.cfg.extend(M),this._xformMode=S,this._key=A,this.reset()},reset:function(){l.reset.call(this),this._doReset()},process:function(S){return this._append(S),this._process()},finalize:function(S){S&&this._append(S);var A=this._doFinalize();return A},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:(function(){function S(A){return typeof A=="string"?L:y}return function(A){return{encrypt:function(M,P,I){return S(P).encrypt(A,M,P,I)},decrypt:function(M,P,I){return S(P).decrypt(A,M,P,I)}}}})()});s.StreamCipher=p.extend({_doFinalize:function(){var S=this._process(!0);return S},blockSize:1});var d=i.mode={},g=s.BlockCipherMode=o.extend({createEncryptor:function(S,A){return this.Encryptor.create(S,A)},createDecryptor:function(S,A){return this.Decryptor.create(S,A)},init:function(S,A){this._cipher=S,this._iv=A}}),v=d.CBC=(function(){var S=g.extend();S.Encryptor=S.extend({processBlock:function(M,P){var I=this._cipher,B=I.blockSize;A.call(this,M,P,B),I.encryptBlock(M,P),this._prevBlock=M.slice(P,P+B)}}),S.Decryptor=S.extend({processBlock:function(M,P){var I=this._cipher,B=I.blockSize,$=M.slice(P,P+B);I.decryptBlock(M,P),A.call(this,M,P,B),this._prevBlock=$}});function A(M,P,I){var B,$=this._iv;$?(B=$,this._iv=n):B=this._prevBlock;for(var H=0;H<I;H++)M[P+H]^=B[H]}return S})(),E=i.pad={},m=E.Pkcs7={pad:function(S,A){for(var M=A*4,P=M-S.sigBytes%M,I=P<<24|P<<16|P<<8|P,B=[],$=0;$<P;$+=4)B.push(I);var H=u.create(B,P);S.concat(H)},unpad:function(S){var A=S.words[S.sigBytes-1>>>2]&255;S.sigBytes-=A}};s.BlockCipher=p.extend({cfg:p.cfg.extend({mode:v,padding:m}),reset:function(){var S;p.reset.call(this);var A=this.cfg,M=A.iv,P=A.mode;this._xformMode==this._ENC_XFORM_MODE?S=P.createEncryptor:(S=P.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==S?this._mode.init(this,M&&M.words):(this._mode=S.call(P,this,M&&M.words),this._mode.__creator=S)},_doProcessBlock:function(S,A){this._mode.processBlock(S,A)},_doFinalize:function(){var S,A=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(A.pad(this._data,this.blockSize),S=this._process(!0)):(S=this._process(!0),A.unpad(S)),S},blockSize:128/32});var b=s.CipherParams=o.extend({init:function(S){this.mixIn(S)},toString:function(S){return(S||this.formatter).stringify(this)}}),_=i.format={},w=_.OpenSSL={stringify:function(S){var A,M=S.ciphertext,P=S.salt;return P?A=u.create([1398893684,1701076831]).concat(P).concat(M):A=M,A.toString(c)},parse:function(S){var A,M=c.parse(S),P=M.words;return P[0]==1398893684&&P[1]==1701076831&&(A=u.create(P.slice(2,4)),P.splice(0,4),M.sigBytes-=16),b.create({ciphertext:M,salt:A})}},y=s.SerializableCipher=o.extend({cfg:o.extend({format:w}),encrypt:function(S,A,M,P){P=this.cfg.extend(P);var I=S.createEncryptor(M,P),B=I.finalize(A),$=I.cfg;return b.create({ciphertext:B,key:M,iv:$.iv,algorithm:S,mode:$.mode,padding:$.padding,blockSize:S.blockSize,formatter:P.format})},decrypt:function(S,A,M,P){P=this.cfg.extend(P),A=this._parse(A,P.format);var I=S.createDecryptor(M,P).finalize(A.ciphertext);return I},_parse:function(S,A){return typeof S=="string"?A.parse(S,this):S}}),T=i.kdf={},O=T.OpenSSL={execute:function(S,A,M,P,I){if(P||(P=u.random(64/8)),I)var B=h.create({keySize:A+M,hasher:I}).compute(S,P);else var B=h.create({keySize:A+M}).compute(S,P);var $=u.create(B.words.slice(A),M*4);return B.sigBytes=A*4,b.create({key:B,iv:$,salt:P})}},L=s.PasswordBasedCipher=y.extend({cfg:y.cfg.extend({kdf:O}),encrypt:function(S,A,M,P){P=this.cfg.extend(P);var I=P.kdf.execute(M,S.keySize,S.ivSize,P.salt,P.hasher);P.iv=I.iv;var B=y.encrypt.call(this,S,A,I.key,P);return B.mixIn(I),B},decrypt:function(S,A,M,P){P=this.cfg.extend(P),A=this._parse(A,P.format);var I=P.kdf.execute(M,S.keySize,S.ivSize,A.salt,P.hasher);P.iv=I.iv;var B=y.decrypt.call(this,S,A,I.key,P);return B}})})()})})(Dr)),Dr.exports}(function(t,e){(function(r,n,i){t.exports=n(Fe(),Vd,Hd,Ao(),Kd())})(oe,function(r){return(function(){var n=r,i=n.lib,s=i.BlockCipher,o=n.algo,u=[],l=[],a=[],c=[],f=[],h=[],p=[],d=[],g=[],v=[];(function(){for(var b=[],_=0;_<256;_++)_<128?b[_]=_<<1:b[_]=_<<1^283;for(var w=0,y=0,_=0;_<256;_++){var T=y^y<<1^y<<2^y<<3^y<<4;T=T>>>8^T&255^99,u[w]=T,l[T]=w;var O=b[w],L=b[O],S=b[L],A=b[T]*257^T*16843008;a[w]=A<<24|A>>>8,c[w]=A<<16|A>>>16,f[w]=A<<8|A>>>24,h[w]=A;var A=S*16843009^L*65537^O*257^w*16843008;p[T]=A<<24|A>>>8,d[T]=A<<16|A>>>16,g[T]=A<<8|A>>>24,v[T]=A,w?(w=O^b[b[b[S^O]]],y^=b[b[y]]):w=y=1}})();var E=[0,1,2,4,8,16,32,64,128,27,54],m=o.AES=s.extend({_doReset:function(){var b;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var _=this._keyPriorReset=this._key,w=_.words,y=_.sigBytes/4,T=this._nRounds=y+6,O=(T+1)*4,L=this._keySchedule=[],S=0;S<O;S++)S<y?L[S]=w[S]:(b=L[S-1],S%y?y>6&&S%y==4&&(b=u[b>>>24]<<24|u[b>>>16&255]<<16|u[b>>>8&255]<<8|u[b&255]):(b=b<<8|b>>>24,b=u[b>>>24]<<24|u[b>>>16&255]<<16|u[b>>>8&255]<<8|u[b&255],b^=E[S/y|0]<<24),L[S]=L[S-y]^b);for(var A=this._invKeySchedule=[],M=0;M<O;M++){var S=O-M;if(M%4)var b=L[S];else var b=L[S-4];M<4||S<=4?A[M]=b:A[M]=p[u[b>>>24]]^d[u[b>>>16&255]]^g[u[b>>>8&255]]^v[u[b&255]]}}},encryptBlock:function(b,_){this._doCryptBlock(b,_,this._keySchedule,a,c,f,h,u)},decryptBlock:function(b,_){var w=b[_+1];b[_+1]=b[_+3],b[_+3]=w,this._doCryptBlock(b,_,this._invKeySchedule,p,d,g,v,l);var w=b[_+1];b[_+1]=b[_+3],b[_+3]=w},_doCryptBlock:function(b,_,w,y,T,O,L,S){for(var A=this._nRounds,M=b[_]^w[0],P=b[_+1]^w[1],I=b[_+2]^w[2],B=b[_+3]^w[3],$=4,H=1;H<A;H++){var F=y[M>>>24]^T[P>>>16&255]^O[I>>>8&255]^L[B&255]^w[$++],q=y[P>>>24]^T[I>>>16&255]^O[B>>>8&255]^L[M&255]^w[$++],z=y[I>>>24]^T[B>>>16&255]^O[M>>>8&255]^L[P&255]^w[$++],x=y[B>>>24]^T[M>>>16&255]^O[P>>>8&255]^L[I&255]^w[$++];M=F,P=q,I=z,B=x}var F=(S[M>>>24]<<24|S[P>>>16&255]<<16|S[I>>>8&255]<<8|S[B&255])^w[$++],q=(S[P>>>24]<<24|S[I>>>16&255]<<16|S[B>>>8&255]<<8|S[M&255])^w[$++],z=(S[I>>>24]<<24|S[B>>>16&255]<<16|S[M>>>8&255]<<8|S[P&255])^w[$++],x=(S[B>>>24]<<24|S[M>>>16&255]<<16|S[P>>>8&255]<<8|S[I&255])^w[$++];b[_]=F,b[_+1]=q,b[_+2]=z,b[_+3]=x},keySize:256/32});n.AES=s._createHelper(m)})(),r.AES})})(qd);var Jd="0123456789abcdefghijklmnopqrstuvwxyz";function Oe(t){return Jd.charAt(t)}function Gd(t,e){return t&e}function Pt(t,e){return t|e}function ji(t,e){return t^e}function Pi(t,e){return t&~e}function Yd(t){if(t==0)return-1;var e=0;return(t&65535)==0&&(t>>=16,e+=16),(t&255)==0&&(t>>=8,e+=8),(t&15)==0&&(t>>=4,e+=4),(t&3)==0&&(t>>=2,e+=2),(t&1)==0&&++e,e}function Zd(t){for(var e=0;t!=0;)t&=t-1,++e;return e}var tt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",xo="=";function bt(t){var e,r,n="";for(e=0;e+3<=t.length;e+=3)r=parseInt(t.substring(e,e+3),16),n+=tt.charAt(r>>6)+tt.charAt(r&63);for(e+1==t.length?(r=parseInt(t.substring(e,e+1),16),n+=tt.charAt(r<<2)):e+2==t.length&&(r=parseInt(t.substring(e,e+2),16),n+=tt.charAt(r>>2)+tt.charAt((r&3)<<4));(n.length&3)>0;)n+=xo;return n}function Ni(t){var e="",r,n=0,i=0;for(r=0;r<t.length&&t.charAt(r)!=xo;++r){var s=tt.indexOf(t.charAt(r));s<0||(n==0?(e+=Oe(s>>2),i=s&3,n=1):n==1?(e+=Oe(i<<2|s>>4),i=s&15,n=2):n==2?(e+=Oe(i),e+=Oe(s>>2),i=s&3,n=3):(e+=Oe(i<<2|s>>4),e+=Oe(s&15),n=0))}return n==1&&(e+=Oe(i<<2)),e}var Ze,Qd={decode:function(t){var e;if(Ze===void 0){var r="0123456789ABCDEF",n=` \f
|
|
20
|
+
\r \u2028\u2029`;for(Ze={},e=0;e<16;++e)Ze[r.charAt(e)]=e;for(r=r.toLowerCase(),e=10;e<16;++e)Ze[r.charAt(e)]=e;for(e=0;e<n.length;++e)Ze[n.charAt(e)]=-1}var i=[],s=0,o=0;for(e=0;e<t.length;++e){var u=t.charAt(e);if(u=="=")break;if(u=Ze[u],u!=-1){if(u===void 0)throw new Error("Illegal character at offset "+e);s|=u,++o>=2?(i[i.length]=s,s=0,o=0):s<<=4}}if(o)throw new Error("Hex encoding incomplete: 4 bits missing");return i}},He,sn={decode:function(t){var e;if(He===void 0){var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n=`= \f
|
|
21
|
+
\r \u2028\u2029`;for(He=Object.create(null),e=0;e<64;++e)He[r.charAt(e)]=e;for(He["-"]=62,He._=63,e=0;e<n.length;++e)He[n.charAt(e)]=-1}var i=[],s=0,o=0;for(e=0;e<t.length;++e){var u=t.charAt(e);if(u=="=")break;if(u=He[u],u!=-1){if(u===void 0)throw new Error("Illegal character at offset "+e);s|=u,++o>=4?(i[i.length]=s>>16,i[i.length]=s>>8&255,i[i.length]=s&255,s=0,o=0):s<<=6}}switch(o){case 1:throw new Error("Base64 encoding incomplete: at least 2 bits missing");case 2:i[i.length]=s>>10;break;case 3:i[i.length]=s>>16,i[i.length]=s>>8&255;break}return i},re:/-----BEGIN [^-]+-----([A-Za-z0-9+\/=\s]+)-----END [^-]+-----|begin-base64[^\n]+\n([A-Za-z0-9+\/=\s]+)====/,unarmor:function(t){var e=sn.re.exec(t);if(e)if(e[1])t=e[1];else if(e[2])t=e[2];else throw new Error("RegExp out of sync");return sn.decode(t)}},Qe=1e13,mt=(function(){function t(e){this.buf=[+e||0]}return t.prototype.mulAdd=function(e,r){var n=this.buf,i=n.length,s,o;for(s=0;s<i;++s)o=n[s]*e+r,o<Qe?r=0:(r=0|o/Qe,o-=r*Qe),n[s]=o;r>0&&(n[s]=r)},t.prototype.sub=function(e){var r=this.buf,n=r.length,i,s;for(i=0;i<n;++i)s=r[i]-e,s<0?(s+=Qe,e=1):e=0,r[i]=s;for(;r[r.length-1]===0;)r.pop()},t.prototype.toString=function(e){if((e||10)!=10)throw new Error("only base 10 is supported");for(var r=this.buf,n=r[r.length-1].toString(),i=r.length-2;i>=0;--i)n+=(Qe+r[i]).toString().substring(1);return n},t.prototype.valueOf=function(){for(var e=this.buf,r=0,n=e.length-1;n>=0;--n)r=r*Qe+e[n];return r},t.prototype.simplify=function(){var e=this.buf;return e.length==1?e[0]:this},t})(),Oo="…",Xd=/^(\d\d)(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])([01]\d|2[0-3])(?:([0-5]\d)(?:([0-5]\d)(?:[.,](\d{1,3}))?)?)?(Z|[-+](?:[0]\d|1[0-2])([0-5]\d)?)?$/,eg=/^(\d\d\d\d)(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])([01]\d|2[0-3])(?:([0-5]\d)(?:([0-5]\d)(?:[.,](\d{1,3}))?)?)?(Z|[-+](?:[0]\d|1[0-2])([0-5]\d)?)?$/;function nt(t,e){return t.length>e&&(t=t.substring(0,e)+Oo),t}var Cr=(function(){function t(e,r){this.hexDigits="0123456789ABCDEF",e instanceof t?(this.enc=e.enc,this.pos=e.pos):(this.enc=e,this.pos=r)}return t.prototype.get=function(e){if(e===void 0&&(e=this.pos++),e>=this.enc.length)throw new Error("Requesting byte offset ".concat(e," on a stream of length ").concat(this.enc.length));return typeof this.enc=="string"?this.enc.charCodeAt(e):this.enc[e]},t.prototype.hexByte=function(e){return this.hexDigits.charAt(e>>4&15)+this.hexDigits.charAt(e&15)},t.prototype.hexDump=function(e,r,n){for(var i="",s=e;s<r;++s)if(i+=this.hexByte(this.get(s)),n!==!0)switch(s&15){case 7:i+=" ";break;case 15:i+=`
|
|
22
|
+
`;break;default:i+=" "}return i},t.prototype.isASCII=function(e,r){for(var n=e;n<r;++n){var i=this.get(n);if(i<32||i>176)return!1}return!0},t.prototype.parseStringISO=function(e,r){for(var n="",i=e;i<r;++i)n+=String.fromCharCode(this.get(i));return n},t.prototype.parseStringUTF=function(e,r){for(var n="",i=e;i<r;){var s=this.get(i++);s<128?n+=String.fromCharCode(s):s>191&&s<224?n+=String.fromCharCode((s&31)<<6|this.get(i++)&63):n+=String.fromCharCode((s&15)<<12|(this.get(i++)&63)<<6|this.get(i++)&63)}return n},t.prototype.parseStringBMP=function(e,r){for(var n="",i,s,o=e;o<r;)i=this.get(o++),s=this.get(o++),n+=String.fromCharCode(i<<8|s);return n},t.prototype.parseTime=function(e,r,n){var i=this.parseStringISO(e,r),s=(n?Xd:eg).exec(i);return s?(n&&(s[1]=+s[1],s[1]+=+s[1]<70?2e3:1900),i=s[1]+"-"+s[2]+"-"+s[3]+" "+s[4],s[5]&&(i+=":"+s[5],s[6]&&(i+=":"+s[6],s[7]&&(i+="."+s[7]))),s[8]&&(i+=" UTC",s[8]!="Z"&&(i+=s[8],s[9]&&(i+=":"+s[9]))),i):"Unrecognized time: "+i},t.prototype.parseInteger=function(e,r){for(var n=this.get(e),i=n>127,s=i?255:0,o,u="";n==s&&++e<r;)n=this.get(e);if(o=r-e,o===0)return i?-1:0;if(o>4){for(u=n,o<<=3;((+u^s)&128)==0;)u=+u<<1,--o;u="("+o+` bit)
|
|
23
23
|
`}i&&(n=n-256);for(var l=new mt(n),a=e+1;a<r;++a)l.mulAdd(256,this.get(a));return u+l.toString()},t.prototype.parseBitString=function(e,r,n){for(var i=this.get(e),s=(r-e-1<<3)-i,o="("+s+` bit)
|
|
24
24
|
`,u="",l=e+1;l<r;++l){for(var a=this.get(l),c=l==r-1?i:0,f=7;f>=c;--f)u+=a>>f&1?"1":"0";if(u.length>n)return o+nt(u,n)}return o+u},t.prototype.parseOctetString=function(e,r,n){if(this.isASCII(e,r))return nt(this.parseStringISO(e,r),n);var i=r-e,s="("+i+` byte)
|
|
25
|
-
`;n/=2,i>n&&(r=e+n);for(var o=e;o<r;++o)s+=this.hexByte(this.get(o));return i>n&&(s+=Oo),s},t.prototype.parseOID=function(e,r,n){for(var i="",s=new mt,o=0,u=e;u<r;++u){var l=this.get(u);if(s.mulAdd(128,l&127),o+=7,!(l&128)){if(i==="")if(s=s.simplify(),s instanceof mt)s.sub(80),i="2."+s.toString();else{var a=s<80?s<40?0:1:2;i=a+"."+(s-a*40)}else i+="."+s.toString();if(i.length>n)return nt(i,n);s=new mt,o=0}}return o>0&&(i+=".incomplete"),i},t})(),
|
|
26
|
-
`,this.sub!==null){e+=" ";for(var n=0,i=this.sub.length;n<i;++n)r+=this.sub[n].toPrettyString(e)}return r},t.prototype.posStart=function(){return this.stream.pos},t.prototype.posContent=function(){return this.stream.pos+this.header},t.prototype.posEnd=function(){return this.stream.pos+this.header+Math.abs(this.length)},t.prototype.toHexString=function(){return this.stream.hexDump(this.posStart(),this.posEnd(),!0)},t.decodeLength=function(e){var r=e.get(),n=r&127;if(n==r)return n;if(n>6)throw new Error("Length over 48 bits not supported at position "+(e.pos-1));if(n===0)return null;r=0;for(var i=0;i<n;++i)r=r*256+e.get();return r},t.prototype.getHexStringValue=function(){var e=this.toHexString(),r=this.header*2,n=this.length*2;return e.substring(r,r+n)},t.decode=function(e){var r;e instanceof Dr?r=e:r=new Dr(e,0);var n=new Dr(r),i=new Ni(r),s=t.decodeLength(r),o=r.pos,u=o-n.pos,l=null,a=function(){var f=[];if(s!==null){for(var h=o+s;r.pos<h;)f[f.length]=t.decode(r);if(r.pos!=h)throw new Error("Content size is not correct for container starting at offset "+o)}else try{for(;;){var p=t.decode(r);if(p.tag.isEOC())break;f[f.length]=p}s=o-r.pos}catch(d){throw new Error("Exception while decoding undefined length content: "+d)}return f};if(i.tagConstructed)l=a();else if(i.isUniversal()&&(i.tagNumber==3||i.tagNumber==4))try{if(i.tagNumber==3&&r.get()!=0)throw new Error("BIT STRINGs with unused bits cannot encapsulate.");l=a();for(var c=0;c<l.length;++c)if(l[c].tag.isEOC())throw new Error("EOC is not supposed to be actual content.")}catch(f){l=null}if(l===null){if(s===null)throw new Error("We can't skip over an invalid tag with undefined length at offset "+o);r.pos=o+Math.abs(s)}return new t(n,u,s,i,l)},t})(),Ni=(function(){function t(e){var r=e.get();if(this.tagClass=r>>6,this.tagConstructed=(r&32)!==0,this.tagNumber=r&31,this.tagNumber==31){var n=new mt;do r=e.get(),n.mulAdd(128,r&127);while(r&128);this.tagNumber=n.simplify()}}return t.prototype.isUniversal=function(){return this.tagClass===0},t.prototype.isEOC=function(){return this.tagClass===0&&this.tagNumber===0},t})(),Ne,ng=0xdeadbeefcafe,Ii=(ng&16777215)==15715070,se=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997],ig=(1<<26)/se[se.length-1],K=(function(){function t(e,r,n){e!=null&&(typeof e=="number"?this.fromNumber(e,r,n):r==null&&typeof e!="string"?this.fromString(e,256):this.fromString(e,r))}return t.prototype.toString=function(e){if(this.s<0)return"-"+this.negate().toString(e);var r;if(e==16)r=4;else if(e==8)r=3;else if(e==2)r=1;else if(e==32)r=5;else if(e==4)r=2;else return this.toRadix(e);var n=(1<<r)-1,i,s=!1,o="",u=this.t,l=this.DB-u*this.DB%r;if(u-- >0)for(l<this.DB&&(i=this[u]>>l)>0&&(s=!0,o=xe(i));u>=0;)l<r?(i=(this[u]&(1<<l)-1)<<r-l,i|=this[--u]>>(l+=this.DB-r)):(i=this[u]>>(l-=r)&n,l<=0&&(l+=this.DB,--u)),i>0&&(s=!0),s&&(o+=xe(i));return s?o:"0"},t.prototype.negate=function(){var e=J();return t.ZERO.subTo(this,e),e},t.prototype.abs=function(){return this.s<0?this.negate():this},t.prototype.compareTo=function(e){var r=this.s-e.s;if(r!=0)return r;var n=this.t;if(r=n-e.t,r!=0)return this.s<0?-r:r;for(;--n>=0;)if((r=this[n]-e[n])!=0)return r;return 0},t.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+Nt(this[this.t-1]^this.s&this.DM)},t.prototype.mod=function(e){var r=J();return this.abs().divRemTo(e,null,r),this.s<0&&r.compareTo(t.ZERO)>0&&e.subTo(r,r),r},t.prototype.modPowInt=function(e,r){var n;return e<256||r.isEven()?n=new Mi(r):n=new Fi(r),this.exp(e,n)},t.prototype.clone=function(){var e=J();return this.copyTo(e),e},t.prototype.intValue=function(){if(this.s<0){if(this.t==1)return this[0]-this.DV;if(this.t==0)return-1}else{if(this.t==1)return this[0];if(this.t==0)return 0}return(this[1]&(1<<32-this.DB)-1)<<this.DB|this[0]},t.prototype.byteValue=function(){return this.t==0?this.s:this[0]<<24>>24},t.prototype.shortValue=function(){return this.t==0?this.s:this[0]<<16>>16},t.prototype.signum=function(){return this.s<0?-1:this.t<=0||this.t==1&&this[0]<=0?0:1},t.prototype.toByteArray=function(){var e=this.t,r=[];r[0]=this.s;var n=this.DB-e*this.DB%8,i,s=0;if(e-- >0)for(n<this.DB&&(i=this[e]>>n)!=(this.s&this.DM)>>n&&(r[s++]=i|this.s<<this.DB-n);e>=0;)n<8?(i=(this[e]&(1<<n)-1)<<8-n,i|=this[--e]>>(n+=this.DB-8)):(i=this[e]>>(n-=8)&255,n<=0&&(n+=this.DB,--e)),(i&128)!=0&&(i|=-256),s==0&&(this.s&128)!=(i&128)&&++s,(s>0||i!=this.s)&&(r[s++]=i);return r},t.prototype.equals=function(e){return this.compareTo(e)==0},t.prototype.min=function(e){return this.compareTo(e)<0?this:e},t.prototype.max=function(e){return this.compareTo(e)>0?this:e},t.prototype.and=function(e){var r=J();return this.bitwiseTo(e,Yd,r),r},t.prototype.or=function(e){var r=J();return this.bitwiseTo(e,Pt,r),r},t.prototype.xor=function(e){var r=J();return this.bitwiseTo(e,Bi,r),r},t.prototype.andNot=function(e){var r=J();return this.bitwiseTo(e,ji,r),r},t.prototype.not=function(){for(var e=J(),r=0;r<this.t;++r)e[r]=this.DM&~this[r];return e.t=this.t,e.s=~this.s,e},t.prototype.shiftLeft=function(e){var r=J();return e<0?this.rShiftTo(-e,r):this.lShiftTo(e,r),r},t.prototype.shiftRight=function(e){var r=J();return e<0?this.lShiftTo(-e,r):this.rShiftTo(e,r),r},t.prototype.getLowestSetBit=function(){for(var e=0;e<this.t;++e)if(this[e]!=0)return e*this.DB+Zd(this[e]);return this.s<0?this.t*this.DB:-1},t.prototype.bitCount=function(){for(var e=0,r=this.s&this.DM,n=0;n<this.t;++n)e+=Qd(this[n]^r);return e},t.prototype.testBit=function(e){var r=Math.floor(e/this.DB);return r>=this.t?this.s!=0:(this[r]&1<<e%this.DB)!=0},t.prototype.setBit=function(e){return this.changeBit(e,Pt)},t.prototype.clearBit=function(e){return this.changeBit(e,ji)},t.prototype.flipBit=function(e){return this.changeBit(e,Bi)},t.prototype.add=function(e){var r=J();return this.addTo(e,r),r},t.prototype.subtract=function(e){var r=J();return this.subTo(e,r),r},t.prototype.multiply=function(e){var r=J();return this.multiplyTo(e,r),r},t.prototype.divide=function(e){var r=J();return this.divRemTo(e,r,null),r},t.prototype.remainder=function(e){var r=J();return this.divRemTo(e,null,r),r},t.prototype.divideAndRemainder=function(e){var r=J(),n=J();return this.divRemTo(e,r,n),[r,n]},t.prototype.modPow=function(e,r){var n=e.bitLength(),i,s=je(1),o;if(n<=0)return s;n<18?i=1:n<48?i=3:n<144?i=4:n<768?i=5:i=6,n<8?o=new Mi(r):r.isEven()?o=new og(r):o=new Fi(r);var u=[],l=3,a=i-1,c=(1<<i)-1;if(u[1]=o.convert(this),i>1){var f=J();for(o.sqrTo(u[1],f);l<=c;)u[l]=J(),o.mulTo(f,u[l-2],u[l]),l+=2}var h=e.t-1,p,d=!0,g=J(),m;for(n=Nt(e[h])-1;h>=0;){for(n>=a?p=e[h]>>n-a&c:(p=(e[h]&(1<<n+1)-1)<<a-n,h>0&&(p|=e[h-1]>>this.DB+n-a)),l=i;(p&1)==0;)p>>=1,--l;if((n-=l)<0&&(n+=this.DB,--h),d)u[p].copyTo(s),d=!1;else{for(;l>1;)o.sqrTo(s,g),o.sqrTo(g,s),l-=2;l>0?o.sqrTo(s,g):(m=s,s=g,g=m),o.mulTo(g,u[p],s)}for(;h>=0&&(e[h]&1<<n)==0;)o.sqrTo(s,g),m=s,s=g,g=m,--n<0&&(n=this.DB-1,--h)}return o.revert(s)},t.prototype.modInverse=function(e){var r=e.isEven();if(this.isEven()&&r||e.signum()==0)return t.ZERO;for(var n=e.clone(),i=this.clone(),s=je(1),o=je(0),u=je(0),l=je(1);n.signum()!=0;){for(;n.isEven();)n.rShiftTo(1,n),r?((!s.isEven()||!o.isEven())&&(s.addTo(this,s),o.subTo(e,o)),s.rShiftTo(1,s)):o.isEven()||o.subTo(e,o),o.rShiftTo(1,o);for(;i.isEven();)i.rShiftTo(1,i),r?((!u.isEven()||!l.isEven())&&(u.addTo(this,u),l.subTo(e,l)),u.rShiftTo(1,u)):l.isEven()||l.subTo(e,l),l.rShiftTo(1,l);n.compareTo(i)>=0?(n.subTo(i,n),r&&s.subTo(u,s),o.subTo(l,o)):(i.subTo(n,i),r&&u.subTo(s,u),l.subTo(o,l))}if(i.compareTo(t.ONE)!=0)return t.ZERO;if(l.compareTo(e)>=0)return l.subtract(e);if(l.signum()<0)l.addTo(e,l);else return l;return l.signum()<0?l.add(e):l},t.prototype.pow=function(e){return this.exp(e,new sg)},t.prototype.gcd=function(e){var r=this.s<0?this.negate():this.clone(),n=e.s<0?e.negate():e.clone();if(r.compareTo(n)<0){var i=r;r=n,n=i}var s=r.getLowestSetBit(),o=n.getLowestSetBit();if(o<0)return r;for(s<o&&(o=s),o>0&&(r.rShiftTo(o,r),n.rShiftTo(o,n));r.signum()>0;)(s=r.getLowestSetBit())>0&&r.rShiftTo(s,r),(s=n.getLowestSetBit())>0&&n.rShiftTo(s,n),r.compareTo(n)>=0?(r.subTo(n,r),r.rShiftTo(1,r)):(n.subTo(r,n),n.rShiftTo(1,n));return o>0&&n.lShiftTo(o,n),n},t.prototype.isProbablePrime=function(e){var r,n=this.abs();if(n.t==1&&n[0]<=se[se.length-1]){for(r=0;r<se.length;++r)if(n[0]==se[r])return!0;return!1}if(n.isEven())return!1;for(r=1;r<se.length;){for(var i=se[r],s=r+1;s<se.length&&i<ig;)i*=se[s++];for(i=n.modInt(i);r<s;)if(i%se[r++]==0)return!1}return n.millerRabin(e)},t.prototype.copyTo=function(e){for(var r=this.t-1;r>=0;--r)e[r]=this[r];e.t=this.t,e.s=this.s},t.prototype.fromInt=function(e){this.t=1,this.s=e<0?-1:0,e>0?this[0]=e:e<-1?this[0]=e+this.DV:this.t=0},t.prototype.fromString=function(e,r){var n;if(r==16)n=4;else if(r==8)n=3;else if(r==256)n=8;else if(r==2)n=1;else if(r==32)n=5;else if(r==4)n=2;else{this.fromRadix(e,r);return}this.t=0,this.s=0;for(var i=e.length,s=!1,o=0;--i>=0;){var u=n==8?+e[i]&255:Ui(e,i);if(u<0){e.charAt(i)=="-"&&(s=!0);continue}s=!1,o==0?this[this.t++]=u:o+n>this.DB?(this[this.t-1]|=(u&(1<<this.DB-o)-1)<<o,this[this.t++]=u>>this.DB-o):this[this.t-1]|=u<<o,o+=n,o>=this.DB&&(o-=this.DB)}n==8&&(+e[0]&128)!=0&&(this.s=-1,o>0&&(this[this.t-1]|=(1<<this.DB-o)-1<<o)),this.clamp(),s&&t.ZERO.subTo(this,this)},t.prototype.clamp=function(){for(var e=this.s&this.DM;this.t>0&&this[this.t-1]==e;)--this.t},t.prototype.dlShiftTo=function(e,r){var n;for(n=this.t-1;n>=0;--n)r[n+e]=this[n];for(n=e-1;n>=0;--n)r[n]=0;r.t=this.t+e,r.s=this.s},t.prototype.drShiftTo=function(e,r){for(var n=e;n<this.t;++n)r[n-e]=this[n];r.t=Math.max(this.t-e,0),r.s=this.s},t.prototype.lShiftTo=function(e,r){for(var n=e%this.DB,i=this.DB-n,s=(1<<i)-1,o=Math.floor(e/this.DB),u=this.s<<n&this.DM,l=this.t-1;l>=0;--l)r[l+o+1]=this[l]>>i|u,u=(this[l]&s)<<n;for(var l=o-1;l>=0;--l)r[l]=0;r[o]=u,r.t=this.t+o+1,r.s=this.s,r.clamp()},t.prototype.rShiftTo=function(e,r){r.s=this.s;var n=Math.floor(e/this.DB);if(n>=this.t){r.t=0;return}var i=e%this.DB,s=this.DB-i,o=(1<<i)-1;r[0]=this[n]>>i;for(var u=n+1;u<this.t;++u)r[u-n-1]|=(this[u]&o)<<s,r[u-n]=this[u]>>i;i>0&&(r[this.t-n-1]|=(this.s&o)<<s),r.t=this.t-n,r.clamp()},t.prototype.subTo=function(e,r){for(var n=0,i=0,s=Math.min(e.t,this.t);n<s;)i+=this[n]-e[n],r[n++]=i&this.DM,i>>=this.DB;if(e.t<this.t){for(i-=e.s;n<this.t;)i+=this[n],r[n++]=i&this.DM,i>>=this.DB;i+=this.s}else{for(i+=this.s;n<e.t;)i-=e[n],r[n++]=i&this.DM,i>>=this.DB;i-=e.s}r.s=i<0?-1:0,i<-1?r[n++]=this.DV+i:i>0&&(r[n++]=i),r.t=n,r.clamp()},t.prototype.multiplyTo=function(e,r){var n=this.abs(),i=e.abs(),s=n.t;for(r.t=s+i.t;--s>=0;)r[s]=0;for(s=0;s<i.t;++s)r[s+n.t]=n.am(0,i[s],r,s,0,n.t);r.s=0,r.clamp(),this.s!=e.s&&t.ZERO.subTo(r,r)},t.prototype.squareTo=function(e){for(var r=this.abs(),n=e.t=2*r.t;--n>=0;)e[n]=0;for(n=0;n<r.t-1;++n){var i=r.am(n,r[n],e,2*n,0,1);(e[n+r.t]+=r.am(n+1,2*r[n],e,2*n+1,i,r.t-n-1))>=r.DV&&(e[n+r.t]-=r.DV,e[n+r.t+1]=1)}e.t>0&&(e[e.t-1]+=r.am(n,r[n],e,2*n,0,1)),e.s=0,e.clamp()},t.prototype.divRemTo=function(e,r,n){var i=e.abs();if(!(i.t<=0)){var s=this.abs();if(s.t<i.t){r!=null&&r.fromInt(0),n!=null&&this.copyTo(n);return}n==null&&(n=J());var o=J(),u=this.s,l=e.s,a=this.DB-Nt(i[i.t-1]);a>0?(i.lShiftTo(a,o),s.lShiftTo(a,n)):(i.copyTo(o),s.copyTo(n));var c=o.t,f=o[c-1];if(f!=0){var h=f*(1<<this.F1)+(c>1?o[c-2]>>this.F2:0),p=this.FV/h,d=(1<<this.F1)/h,g=1<<this.F2,m=n.t,w=m-c,v=r==null?J():r;for(o.dlShiftTo(w,v),n.compareTo(v)>=0&&(n[n.t++]=1,n.subTo(v,n)),t.ONE.dlShiftTo(c,v),v.subTo(o,o);o.t<c;)o[o.t++]=0;for(;--w>=0;){var b=n[--m]==f?this.DM:Math.floor(n[m]*p+(n[m-1]+g)*d);if((n[m]+=o.am(0,b,n,w,0,c))<b)for(o.dlShiftTo(w,v),n.subTo(v,n);n[m]<--b;)n.subTo(v,n)}r!=null&&(n.drShiftTo(c,r),u!=l&&t.ZERO.subTo(r,r)),n.t=c,n.clamp(),a>0&&n.rShiftTo(a,n),u<0&&t.ZERO.subTo(n,n)}}},t.prototype.invDigit=function(){if(this.t<1)return 0;var e=this[0];if((e&1)==0)return 0;var r=e&3;return r=r*(2-(e&15)*r)&15,r=r*(2-(e&255)*r)&255,r=r*(2-((e&65535)*r&65535))&65535,r=r*(2-e*r%this.DV)%this.DV,r>0?this.DV-r:-r},t.prototype.isEven=function(){return(this.t>0?this[0]&1:this.s)==0},t.prototype.exp=function(e,r){if(e>4294967295||e<1)return t.ONE;var n=J(),i=J(),s=r.convert(this),o=Nt(e)-1;for(s.copyTo(n);--o>=0;)if(r.sqrTo(n,i),(e&1<<o)>0)r.mulTo(i,s,n);else{var u=n;n=i,i=u}return r.revert(n)},t.prototype.chunkSize=function(e){return Math.floor(Math.LN2*this.DB/Math.log(e))},t.prototype.toRadix=function(e){if(e==null&&(e=10),this.signum()==0||e<2||e>36)return"0";var r=this.chunkSize(e),n=Math.pow(e,r),i=je(n),s=J(),o=J(),u="";for(this.divRemTo(i,s,o);s.signum()>0;)u=(n+o.intValue()).toString(e).substring(1)+u,s.divRemTo(i,s,o);return o.intValue().toString(e)+u},t.prototype.fromRadix=function(e,r){this.fromInt(0),r==null&&(r=10);for(var n=this.chunkSize(r),i=Math.pow(r,n),s=!1,o=0,u=0,l=0;l<e.length;++l){var a=Ui(e,l);if(a<0){e.charAt(l)=="-"&&this.signum()==0&&(s=!0);continue}u=r*u+a,++o>=n&&(this.dMultiply(i),this.dAddOffset(u,0),o=0,u=0)}o>0&&(this.dMultiply(Math.pow(r,o)),this.dAddOffset(u,0)),s&&t.ZERO.subTo(this,this)},t.prototype.fromNumber=function(e,r,n){if(typeof r=="number")if(e<2)this.fromInt(1);else for(this.fromNumber(e,n),this.testBit(e-1)||this.bitwiseTo(t.ONE.shiftLeft(e-1),Pt,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(r);)this.dAddOffset(2,0),this.bitLength()>e&&this.subTo(t.ONE.shiftLeft(e-1),this);else{var i=[],s=e&7;i.length=(e>>3)+1,r.nextBytes(i),s>0?i[0]&=(1<<s)-1:i[0]=0,this.fromString(i,256)}},t.prototype.bitwiseTo=function(e,r,n){var i,s,o=Math.min(e.t,this.t);for(i=0;i<o;++i)n[i]=r(this[i],e[i]);if(e.t<this.t){for(s=e.s&this.DM,i=o;i<this.t;++i)n[i]=r(this[i],s);n.t=this.t}else{for(s=this.s&this.DM,i=o;i<e.t;++i)n[i]=r(s,e[i]);n.t=e.t}n.s=r(this.s,e.s),n.clamp()},t.prototype.changeBit=function(e,r){var n=t.ONE.shiftLeft(e);return this.bitwiseTo(n,r,n),n},t.prototype.addTo=function(e,r){for(var n=0,i=0,s=Math.min(e.t,this.t);n<s;)i+=this[n]+e[n],r[n++]=i&this.DM,i>>=this.DB;if(e.t<this.t){for(i+=e.s;n<this.t;)i+=this[n],r[n++]=i&this.DM,i>>=this.DB;i+=this.s}else{for(i+=this.s;n<e.t;)i+=e[n],r[n++]=i&this.DM,i>>=this.DB;i+=e.s}r.s=i<0?-1:0,i>0?r[n++]=i:i<-1&&(r[n++]=this.DV+i),r.t=n,r.clamp()},t.prototype.dMultiply=function(e){this[this.t]=this.am(0,e-1,this,0,0,this.t),++this.t,this.clamp()},t.prototype.dAddOffset=function(e,r){if(e!=0){for(;this.t<=r;)this[this.t++]=0;for(this[r]+=e;this[r]>=this.DV;)this[r]-=this.DV,++r>=this.t&&(this[this.t++]=0),++this[r]}},t.prototype.multiplyLowerTo=function(e,r,n){var i=Math.min(this.t+e.t,r);for(n.s=0,n.t=i;i>0;)n[--i]=0;for(var s=n.t-this.t;i<s;++i)n[i+this.t]=this.am(0,e[i],n,i,0,this.t);for(var s=Math.min(e.t,r);i<s;++i)this.am(0,e[i],n,i,0,r-i);n.clamp()},t.prototype.multiplyUpperTo=function(e,r,n){--r;var i=n.t=this.t+e.t-r;for(n.s=0;--i>=0;)n[i]=0;for(i=Math.max(r-this.t,0);i<e.t;++i)n[this.t+i-r]=this.am(r-i,e[i],n,0,0,this.t+i-r);n.clamp(),n.drShiftTo(1,n)},t.prototype.modInt=function(e){if(e<=0)return 0;var r=this.DV%e,n=this.s<0?e-1:0;if(this.t>0)if(r==0)n=this[0]%e;else for(var i=this.t-1;i>=0;--i)n=(r*n+this[i])%e;return n},t.prototype.millerRabin=function(e){var r=this.subtract(t.ONE),n=r.getLowestSetBit();if(n<=0)return!1;var i=r.shiftRight(n);e=e+1>>1,e>se.length&&(e=se.length);for(var s=J(),o=0;o<e;++o){s.fromInt(se[Math.floor(Math.random()*se.length)]);var u=s.modPow(i,this);if(u.compareTo(t.ONE)!=0&&u.compareTo(r)!=0){for(var l=1;l++<n&&u.compareTo(r)!=0;)if(u=u.modPowInt(2,this),u.compareTo(t.ONE)==0)return!1;if(u.compareTo(r)!=0)return!1}}return!0},t.prototype.square=function(){var e=J();return this.squareTo(e),e},t.prototype.gcda=function(e,r){var n=this.s<0?this.negate():this.clone(),i=e.s<0?e.negate():e.clone();if(n.compareTo(i)<0){var s=n;n=i,i=s}var o=n.getLowestSetBit(),u=i.getLowestSetBit();if(u<0){r(n);return}o<u&&(u=o),u>0&&(n.rShiftTo(u,n),i.rShiftTo(u,i));var l=function(){(o=n.getLowestSetBit())>0&&n.rShiftTo(o,n),(o=i.getLowestSetBit())>0&&i.rShiftTo(o,i),n.compareTo(i)>=0?(n.subTo(i,n),n.rShiftTo(1,n)):(i.subTo(n,i),i.rShiftTo(1,i)),n.signum()>0?setTimeout(l,0):(u>0&&i.lShiftTo(u,i),setTimeout(function(){r(i)},0))};setTimeout(l,10)},t.prototype.fromNumberAsync=function(e,r,n,i){if(typeof r=="number")if(e<2)this.fromInt(1);else{this.fromNumber(e,n),this.testBit(e-1)||this.bitwiseTo(t.ONE.shiftLeft(e-1),Pt,this),this.isEven()&&this.dAddOffset(1,0);var s=this,o=function(){s.dAddOffset(2,0),s.bitLength()>e&&s.subTo(t.ONE.shiftLeft(e-1),s),s.isProbablePrime(r)?setTimeout(function(){i()},0):setTimeout(o,0)};setTimeout(o,0)}else{var u=[],l=e&7;u.length=(e>>3)+1,r.nextBytes(u),l>0?u[0]&=(1<<l)-1:u[0]=0,this.fromString(u,256)}},t})(),sg=(function(){function t(){}return t.prototype.convert=function(e){return e},t.prototype.revert=function(e){return e},t.prototype.mulTo=function(e,r,n){e.multiplyTo(r,n)},t.prototype.sqrTo=function(e,r){e.squareTo(r)},t})(),Mi=(function(){function t(e){this.m=e}return t.prototype.convert=function(e){return e.s<0||e.compareTo(this.m)>=0?e.mod(this.m):e},t.prototype.revert=function(e){return e},t.prototype.reduce=function(e){e.divRemTo(this.m,null,e)},t.prototype.mulTo=function(e,r,n){e.multiplyTo(r,n),this.reduce(n)},t.prototype.sqrTo=function(e,r){e.squareTo(r),this.reduce(r)},t})(),Fi=(function(){function t(e){this.m=e,this.mp=e.invDigit(),this.mpl=this.mp&32767,this.mph=this.mp>>15,this.um=(1<<e.DB-15)-1,this.mt2=2*e.t}return t.prototype.convert=function(e){var r=J();return e.abs().dlShiftTo(this.m.t,r),r.divRemTo(this.m,null,r),e.s<0&&r.compareTo(K.ZERO)>0&&this.m.subTo(r,r),r},t.prototype.revert=function(e){var r=J();return e.copyTo(r),this.reduce(r),r},t.prototype.reduce=function(e){for(;e.t<=this.mt2;)e[e.t++]=0;for(var r=0;r<this.m.t;++r){var n=e[r]&32767,i=n*this.mpl+((n*this.mph+(e[r]>>15)*this.mpl&this.um)<<15)&e.DM;for(n=r+this.m.t,e[n]+=this.m.am(0,i,e,r,0,this.m.t);e[n]>=e.DV;)e[n]-=e.DV,e[++n]++}e.clamp(),e.drShiftTo(this.m.t,e),e.compareTo(this.m)>=0&&e.subTo(this.m,e)},t.prototype.mulTo=function(e,r,n){e.multiplyTo(r,n),this.reduce(n)},t.prototype.sqrTo=function(e,r){e.squareTo(r),this.reduce(r)},t})(),og=(function(){function t(e){this.m=e,this.r2=J(),this.q3=J(),K.ONE.dlShiftTo(2*e.t,this.r2),this.mu=this.r2.divide(e)}return t.prototype.convert=function(e){if(e.s<0||e.t>2*this.m.t)return e.mod(this.m);if(e.compareTo(this.m)<0)return e;var r=J();return e.copyTo(r),this.reduce(r),r},t.prototype.revert=function(e){return e},t.prototype.reduce=function(e){for(e.drShiftTo(this.m.t-1,this.r2),e.t>this.m.t+1&&(e.t=this.m.t+1,e.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);e.compareTo(this.r2)<0;)e.dAddOffset(1,this.m.t+1);for(e.subTo(this.r2,e);e.compareTo(this.m)>=0;)e.subTo(this.m,e)},t.prototype.mulTo=function(e,r,n){e.multiplyTo(r,n),this.reduce(n)},t.prototype.sqrTo=function(e,r){e.squareTo(r),this.reduce(r)},t})();function J(){return new K(null)}function Z(t,e){return new K(t,e)}var Li=typeof navigator!="undefined";Li&&Ii&&navigator.appName=="Microsoft Internet Explorer"?(K.prototype.am=function(e,r,n,i,s,o){for(var u=r&32767,l=r>>15;--o>=0;){var a=this[e]&32767,c=this[e++]>>15,f=l*a+c*u;a=u*a+((f&32767)<<15)+n[i]+(s&1073741823),s=(a>>>30)+(f>>>15)+l*c+(s>>>30),n[i++]=a&1073741823}return s},Ne=30):Li&&Ii&&navigator.appName!="Netscape"?(K.prototype.am=function(e,r,n,i,s,o){for(;--o>=0;){var u=r*this[e++]+n[i]+s;s=Math.floor(u/67108864),n[i++]=u&67108863}return s},Ne=26):(K.prototype.am=function(e,r,n,i,s,o){for(var u=r&16383,l=r>>14;--o>=0;){var a=this[e]&16383,c=this[e++]>>14,f=l*a+c*u;a=u*a+((f&16383)<<14)+n[i]+s,s=(a>>28)+(f>>14)+l*c,n[i++]=a&268435455}return s},Ne=28);K.prototype.DB=Ne;K.prototype.DM=(1<<Ne)-1;K.prototype.DV=1<<Ne;var On=52;K.prototype.FV=Math.pow(2,On);K.prototype.F1=On-Ne;K.prototype.F2=2*Ne-On;var cr=[],ct,he;ct=48;for(he=0;he<=9;++he)cr[ct++]=he;ct=97;for(he=10;he<36;++he)cr[ct++]=he;ct=65;for(he=10;he<36;++he)cr[ct++]=he;function Ui(t,e){var r=cr[t.charCodeAt(e)];return r==null?-1:r}function je(t){var e=J();return e.fromInt(t),e}function Nt(t){var e=1,r;return(r=t>>>16)!=0&&(t=r,e+=16),(r=t>>8)!=0&&(t=r,e+=8),(r=t>>4)!=0&&(t=r,e+=4),(r=t>>2)!=0&&(t=r,e+=2),(r=t>>1)!=0&&(t=r,e+=1),e}K.ZERO=je(0);K.ONE=je(1);var ag=(function(){function t(){this.i=0,this.j=0,this.S=[]}return t.prototype.init=function(e){var r,n,i;for(r=0;r<256;++r)this.S[r]=r;for(n=0,r=0;r<256;++r)n=n+this.S[r]+e[r%e.length]&255,i=this.S[r],this.S[r]=this.S[n],this.S[n]=i;this.i=0,this.j=0},t.prototype.next=function(){var e;return this.i=this.i+1&255,this.j=this.j+this.S[this.i]&255,e=this.S[this.i],this.S[this.i]=this.S[this.j],this.S[this.j]=e,this.S[e+this.S[this.i]&255]},t})();function ug(){return new ag}var $o=256,It,Pe=null,ye;if(Pe==null){Pe=[],ye=0;var Mt=void 0;if(typeof window!="undefined"&&self.crypto&&self.crypto.getRandomValues){var Cr=new Uint32Array(256);for(self.crypto.getRandomValues(Cr),Mt=0;Mt<Cr.length;++Mt)Pe[ye++]=Cr[Mt]&255}var Ft=0,Lt=function(t){if(Ft=Ft||0,Ft>=256||ye>=$o){self.removeEventListener?self.removeEventListener("mousemove",Lt,!1):self.detachEvent&&self.detachEvent("onmousemove",Lt);return}try{var e=t.x+t.y;Pe[ye++]=e&255,Ft+=1}catch(r){}};typeof window!="undefined"&&(self.addEventListener?self.addEventListener("mousemove",Lt,!1):self.attachEvent&&self.attachEvent("onmousemove",Lt))}function cg(){if(It==null){for(It=ug();ye<$o;){var t=Math.floor(65536*Math.random());Pe[ye++]=t&255}for(It.init(Pe),ye=0;ye<Pe.length;++ye)Pe[ye]=0;ye=0}return It.next()}var tr=(function(){function t(){}return t.prototype.nextBytes=function(e){for(var r=0;r<e.length;++r)e[r]=cg()},t})();function sn(t){return fg(bg(lg(t),t.length*8))}function Hi(t){for(var e="0123456789abcdef",r="",n=0;n<t.length;n++){var i=t.charCodeAt(n);r+=e.charAt(i>>>4&15)+e.charAt(i&15)}return r}function lg(t){for(var e=Array(t.length>>2),r=0;r<e.length;r++)e[r]=0;for(var r=0;r<t.length*8;r+=8)e[r>>5]|=(t.charCodeAt(r/8)&255)<<24-r%32;return e}function fg(t){for(var e="",r=0;r<t.length*32;r+=8)e+=String.fromCharCode(t[r>>5]>>>24-r%32&255);return e}function Se(t,e){return t>>>e|t<<32-e}function Do(t,e){return t>>>e}function hg(t,e,r){return t&e^~t&r}function pg(t,e,r){return t&e^t&r^e&r}function dg(t){return Se(t,2)^Se(t,13)^Se(t,22)}function gg(t){return Se(t,6)^Se(t,11)^Se(t,25)}function vg(t){return Se(t,7)^Se(t,18)^Do(t,3)}function mg(t){return Se(t,17)^Se(t,19)^Do(t,10)}var yg=new Array(1116352408,1899447441,-1245643825,-373957723,961987163,1508970993,-1841331548,-1424204075,-670586216,310598401,607225278,1426881987,1925078388,-2132889090,-1680079193,-1046744716,-459576895,-272742522,264347078,604807628,770255983,1249150122,1555081692,1996064986,-1740746414,-1473132947,-1341970488,-1084653625,-958395405,-710438585,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,-2117940946,-1838011259,-1564481375,-1474664885,-1035236496,-949202525,-778901479,-694614492,-200395387,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,-2067236844,-1933114872,-1866530822,-1538233109,-1090935817,-965641998);function bg(t,e){var r=new Array(1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225),n=new Array(64),i,s,o,u,l,a,c,f,h,p,d,g;for(t[e>>5]|=128<<24-e%32,t[(e+64>>9<<4)+15]=e,h=0;h<t.length;h+=16){for(i=r[0],s=r[1],o=r[2],u=r[3],l=r[4],a=r[5],c=r[6],f=r[7],p=0;p<64;p++)p<16?n[p]=t[p+h]:n[p]=ne(ne(ne(mg(n[p-2]),n[p-7]),vg(n[p-15])),n[p-16]),d=ne(ne(ne(ne(f,gg(l)),hg(l,a,c)),yg[p]),n[p]),g=ne(dg(i),pg(i,s,o)),f=c,c=a,a=l,l=ne(u,d),u=o,o=s,s=i,i=ne(d,g);r[0]=ne(i,r[0]),r[1]=ne(s,r[1]),r[2]=ne(o,r[2]),r[3]=ne(u,r[3]),r[4]=ne(l,r[4]),r[5]=ne(a,r[5]),r[6]=ne(c,r[6]),r[7]=ne(f,r[7])}return r}function ne(t,e){var r=(t&65535)+(e&65535),n=(t>>16)+(e>>16)+(r>>16);return n<<16|r&65535}function _g(t,e){if(e<t.length+22)return console.error("Message too long for RSA"),null;for(var r=e-t.length-6,n="",i=0;i<r;i+=2)n+="ff";var s="0001"+n+"00"+t;return Z(s,16)}function wg(t,e){if(e<t.length+11)return console.error("Message too long for RSA"),null;for(var r=[],n=t.length-1;n>=0&&e>0;){var i=t.charCodeAt(n--);i<128?r[--e]=i:i>127&&i<2048?(r[--e]=i&63|128,r[--e]=i>>6|192):(r[--e]=i&63|128,r[--e]=i>>6&63|128,r[--e]=i>>12|224)}r[--e]=0;for(var s=new tr,o=[];e>2;){for(o[0]=0;o[0]==0;)s.nextBytes(o);r[--e]=o[0]}return r[--e]=2,r[--e]=0,new K(r)}function Vi(t,e,r){for(var n="",i=0;n.length<e;)n+=r(String.fromCharCode.apply(String,t.concat([(i&4278190080)>>24,(i&16711680)>>16,(i&65280)>>8,i&255]))),i+=1;return n}var Eg=32;function Sg(t,e){var r=Eg,n=sn;if(t.length+2*r+2>e)throw"Message too long for RSA";var i="",s;for(s=0;s<e-t.length-2*r-2;s+=1)i+="\0";var o=n("")+i+""+t,u=new Array(r);new tr().nextBytes(u);var l=Vi(u,o.length,n),a=[];for(s=0;s<o.length;s+=1)a[s]=o.charCodeAt(s)^l.charCodeAt(s);var c=Vi(a,u.length,n),f=[0];for(s=0;s<u.length;s+=1)f[s+1]=u[s]^c.charCodeAt(s);return new K(f.concat(a))}var Tg=(function(){function t(){this.n=null,this.e=0,this.d=null,this.p=null,this.q=null,this.dmp1=null,this.dmq1=null,this.coeff=null}return t.prototype.doPublic=function(e){return e.modPowInt(this.e,this.n)},t.prototype.doPrivate=function(e){if(this.p==null||this.q==null)return e.modPow(this.d,this.n);for(var r=e.mod(this.p).modPow(this.dmp1,this.p),n=e.mod(this.q).modPow(this.dmq1,this.q);r.compareTo(n)<0;)r=r.add(this.p);return r.subtract(n).multiply(this.coeff).mod(this.p).multiply(this.q).add(n)},t.prototype.setPublic=function(e,r){e!=null&&r!=null&&e.length>0&&r.length>0?(this.n=Z(e,16),this.e=parseInt(r,16)):console.error("Invalid RSA public key")},t.prototype.encrypt=function(e,r){typeof r=="undefined"&&(r=wg);var n=this.n.bitLength()+7>>3,i=r(e,n);if(i==null)return null;var s=this.doPublic(i);if(s==null)return null;for(var o=s.toString(16),u=o.length,l=0;l<n*2-u;l++)o="0"+o;return o},t.prototype.setPrivate=function(e,r,n){e!=null&&r!=null&&e.length>0&&r.length>0?(this.n=Z(e,16),this.e=parseInt(r,16),this.d=Z(n,16)):console.error("Invalid RSA private key")},t.prototype.setPrivateEx=function(e,r,n,i,s,o,u,l){e!=null&&r!=null&&e.length>0&&r.length>0?(this.n=Z(e,16),this.e=parseInt(r,16),this.d=Z(n,16),this.p=Z(i,16),this.q=Z(s,16),this.dmp1=Z(o,16),this.dmq1=Z(u,16),this.coeff=Z(l,16)):console.error("Invalid RSA private key")},t.prototype.generate=function(e,r){var n=new tr,i=e>>1;this.e=parseInt(r,16);for(var s=new K(r,16);;){for(;this.p=new K(e-i,1,n),!(this.p.subtract(K.ONE).gcd(s).compareTo(K.ONE)==0&&this.p.isProbablePrime(10)););for(;this.q=new K(i,1,n),!(this.q.subtract(K.ONE).gcd(s).compareTo(K.ONE)==0&&this.q.isProbablePrime(10)););if(this.p.compareTo(this.q)<=0){var o=this.p;this.p=this.q,this.q=o}var u=this.p.subtract(K.ONE),l=this.q.subtract(K.ONE),a=u.multiply(l);if(a.gcd(s).compareTo(K.ONE)==0){this.n=this.p.multiply(this.q),this.d=s.modInverse(a),this.dmp1=this.d.mod(u),this.dmq1=this.d.mod(l),this.coeff=this.q.modInverse(this.p);break}}},t.prototype.decrypt=function(e){var r=Z(e,16),n=this.doPrivate(r);return n==null?null:Rg(n,this.n.bitLength()+7>>3)},t.prototype.generateAsync=function(e,r,n){var i=new tr,s=e>>1;this.e=parseInt(r,16);var o=new K(r,16),u=this,l=function(){var a=function(){if(u.p.compareTo(u.q)<=0){var h=u.p;u.p=u.q,u.q=h}var p=u.p.subtract(K.ONE),d=u.q.subtract(K.ONE),g=p.multiply(d);g.gcd(o).compareTo(K.ONE)==0?(u.n=u.p.multiply(u.q),u.d=o.modInverse(g),u.dmp1=u.d.mod(p),u.dmq1=u.d.mod(d),u.coeff=u.q.modInverse(u.p),setTimeout(function(){n()},0)):setTimeout(l,0)},c=function(){u.q=J(),u.q.fromNumberAsync(s,1,i,function(){u.q.subtract(K.ONE).gcda(o,function(h){h.compareTo(K.ONE)==0&&u.q.isProbablePrime(10)?setTimeout(a,0):setTimeout(c,0)})})},f=function(){u.p=J(),u.p.fromNumberAsync(e-s,1,i,function(){u.p.subtract(K.ONE).gcda(o,function(h){h.compareTo(K.ONE)==0&&u.p.isProbablePrime(10)?setTimeout(c,0):setTimeout(f,0)})})};setTimeout(f,0)};setTimeout(l,0)},t.prototype.sign=function(e,r,n){var i=Ag(n),s=i+r(e).toString(),o=this.n.bitLength()/4,u=_g(s,o);if(u==null)return null;var l=this.doPrivate(u);if(l==null)return null;for(var a=l.toString(16),c=a.length,f=0;f<o-c;f++)a="0"+a;return a},t.prototype.verify=function(e,r,n){var i=Z(r,16),s=this.doPublic(i);if(s==null)return null;var o=s.toString(16).replace(/^1f+00/,""),u=xg(o);return u==n(e).toString()},t})();function Rg(t,e){for(var r=t.toByteArray(),n=0;n<r.length&&r[n]==0;)++n;if(r.length-n!=e-1||r[n]!=2)return null;for(++n;r[n]!=0;)if(++n>=r.length)return null;for(var i="";++n<r.length;){var s=r[n]&255;s<128?i+=String.fromCharCode(s):s>191&&s<224?(i+=String.fromCharCode((s&31)<<6|r[n+1]&63),++n):(i+=String.fromCharCode((s&15)<<12|(r[n+1]&63)<<6|r[n+2]&63),n+=2)}return i}var zt={md2:"3020300c06082a864886f70d020205000410",md5:"3020300c06082a864886f70d020505000410",sha1:"3021300906052b0e03021a05000414",sha224:"302d300d06096086480165030402040500041c",sha256:"3031300d060960864801650304020105000420",sha384:"3041300d060960864801650304020205000430",sha512:"3051300d060960864801650304020305000440",ripemd160:"3021300906052b2403020105000414"};function Ag(t){return zt[t]||""}function xg(t){for(var e in zt)if(zt.hasOwnProperty(e)){var r=zt[e],n=r.length;if(t.substring(0,n)==r)return t.substring(n)}return t}function ee(t,e,r){if(!e||!t)throw new Error("extend failed, please check that all dependencies are included.");var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t,t.superclass=e.prototype,e.prototype.constructor==Object.prototype.constructor&&(e.prototype.constructor=e)}/**
|
|
25
|
+
`;n/=2,i>n&&(r=e+n);for(var o=e;o<r;++o)s+=this.hexByte(this.get(o));return i>n&&(s+=Oo),s},t.prototype.parseOID=function(e,r,n){for(var i="",s=new mt,o=0,u=e;u<r;++u){var l=this.get(u);if(s.mulAdd(128,l&127),o+=7,!(l&128)){if(i==="")if(s=s.simplify(),s instanceof mt)s.sub(80),i="2."+s.toString();else{var a=s<80?s<40?0:1:2;i=a+"."+(s-a*40)}else i+="."+s.toString();if(i.length>n)return nt(i,n);s=new mt,o=0}}return o>0&&(i+=".incomplete"),i},t})(),tg=(function(){function t(e,r,n,i,s){if(!(i instanceof Ii))throw new Error("Invalid tag value.");this.stream=e,this.header=r,this.length=n,this.tag=i,this.sub=s}return t.prototype.typeName=function(){switch(this.tag.tagClass){case 0:switch(this.tag.tagNumber){case 0:return"EOC";case 1:return"BOOLEAN";case 2:return"INTEGER";case 3:return"BIT_STRING";case 4:return"OCTET_STRING";case 5:return"NULL";case 6:return"OBJECT_IDENTIFIER";case 7:return"ObjectDescriptor";case 8:return"EXTERNAL";case 9:return"REAL";case 10:return"ENUMERATED";case 11:return"EMBEDDED_PDV";case 12:return"UTF8String";case 16:return"SEQUENCE";case 17:return"SET";case 18:return"NumericString";case 19:return"PrintableString";case 20:return"TeletexString";case 21:return"VideotexString";case 22:return"IA5String";case 23:return"UTCTime";case 24:return"GeneralizedTime";case 25:return"GraphicString";case 26:return"VisibleString";case 27:return"GeneralString";case 28:return"UniversalString";case 30:return"BMPString"}return"Universal_"+this.tag.tagNumber.toString();case 1:return"Application_"+this.tag.tagNumber.toString();case 2:return"["+this.tag.tagNumber.toString()+"]";case 3:return"Private_"+this.tag.tagNumber.toString()}},t.prototype.content=function(e){if(this.tag===void 0)return null;e===void 0&&(e=1/0);var r=this.posContent(),n=Math.abs(this.length);if(!this.tag.isUniversal())return this.sub!==null?"("+this.sub.length+" elem)":this.stream.parseOctetString(r,r+n,e);switch(this.tag.tagNumber){case 1:return this.stream.get(r)===0?"false":"true";case 2:return this.stream.parseInteger(r,r+n);case 3:return this.sub?"("+this.sub.length+" elem)":this.stream.parseBitString(r,r+n,e);case 4:return this.sub?"("+this.sub.length+" elem)":this.stream.parseOctetString(r,r+n,e);case 6:return this.stream.parseOID(r,r+n,e);case 16:case 17:return this.sub!==null?"("+this.sub.length+" elem)":"(no elem)";case 12:return nt(this.stream.parseStringUTF(r,r+n),e);case 18:case 19:case 20:case 21:case 22:case 26:return nt(this.stream.parseStringISO(r,r+n),e);case 30:return nt(this.stream.parseStringBMP(r,r+n),e);case 23:case 24:return this.stream.parseTime(r,r+n,this.tag.tagNumber==23)}return null},t.prototype.toString=function(){return this.typeName()+"@"+this.stream.pos+"[header:"+this.header+",length:"+this.length+",sub:"+(this.sub===null?"null":this.sub.length)+"]"},t.prototype.toPrettyString=function(e){e===void 0&&(e="");var r=e+this.typeName()+" @"+this.stream.pos;if(this.length>=0&&(r+="+"),r+=this.length,this.tag.tagConstructed?r+=" (constructed)":this.tag.isUniversal()&&(this.tag.tagNumber==3||this.tag.tagNumber==4)&&this.sub!==null&&(r+=" (encapsulates)"),r+=`
|
|
26
|
+
`,this.sub!==null){e+=" ";for(var n=0,i=this.sub.length;n<i;++n)r+=this.sub[n].toPrettyString(e)}return r},t.prototype.posStart=function(){return this.stream.pos},t.prototype.posContent=function(){return this.stream.pos+this.header},t.prototype.posEnd=function(){return this.stream.pos+this.header+Math.abs(this.length)},t.prototype.toHexString=function(){return this.stream.hexDump(this.posStart(),this.posEnd(),!0)},t.decodeLength=function(e){var r=e.get(),n=r&127;if(n==r)return n;if(n>6)throw new Error("Length over 48 bits not supported at position "+(e.pos-1));if(n===0)return null;r=0;for(var i=0;i<n;++i)r=r*256+e.get();return r},t.prototype.getHexStringValue=function(){var e=this.toHexString(),r=this.header*2,n=this.length*2;return e.substring(r,r+n)},t.decode=function(e){var r;e instanceof Cr?r=e:r=new Cr(e,0);var n=new Cr(r),i=new Ii(r),s=t.decodeLength(r),o=r.pos,u=o-n.pos,l=null,a=function(){var f=[];if(s!==null){for(var h=o+s;r.pos<h;)f[f.length]=t.decode(r);if(r.pos!=h)throw new Error("Content size is not correct for container starting at offset "+o)}else try{for(;;){var p=t.decode(r);if(p.tag.isEOC())break;f[f.length]=p}s=o-r.pos}catch(d){throw new Error("Exception while decoding undefined length content: "+d)}return f};if(i.tagConstructed)l=a();else if(i.isUniversal()&&(i.tagNumber==3||i.tagNumber==4))try{if(i.tagNumber==3&&r.get()!=0)throw new Error("BIT STRINGs with unused bits cannot encapsulate.");l=a();for(var c=0;c<l.length;++c)if(l[c].tag.isEOC())throw new Error("EOC is not supposed to be actual content.")}catch(f){l=null}if(l===null){if(s===null)throw new Error("We can't skip over an invalid tag with undefined length at offset "+o);r.pos=o+Math.abs(s)}return new t(n,u,s,i,l)},t})(),Ii=(function(){function t(e){var r=e.get();if(this.tagClass=r>>6,this.tagConstructed=(r&32)!==0,this.tagNumber=r&31,this.tagNumber==31){var n=new mt;do r=e.get(),n.mulAdd(128,r&127);while(r&128);this.tagNumber=n.simplify()}}return t.prototype.isUniversal=function(){return this.tagClass===0},t.prototype.isEOC=function(){return this.tagClass===0&&this.tagNumber===0},t})(),Ie,rg=0xdeadbeefcafe,Mi=(rg&16777215)==15715070,se=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997],ng=(1<<26)/se[se.length-1],K=(function(){function t(e,r,n){e!=null&&(typeof e=="number"?this.fromNumber(e,r,n):r==null&&typeof e!="string"?this.fromString(e,256):this.fromString(e,r))}return t.prototype.toString=function(e){if(this.s<0)return"-"+this.negate().toString(e);var r;if(e==16)r=4;else if(e==8)r=3;else if(e==2)r=1;else if(e==32)r=5;else if(e==4)r=2;else return this.toRadix(e);var n=(1<<r)-1,i,s=!1,o="",u=this.t,l=this.DB-u*this.DB%r;if(u-- >0)for(l<this.DB&&(i=this[u]>>l)>0&&(s=!0,o=Oe(i));u>=0;)l<r?(i=(this[u]&(1<<l)-1)<<r-l,i|=this[--u]>>(l+=this.DB-r)):(i=this[u]>>(l-=r)&n,l<=0&&(l+=this.DB,--u)),i>0&&(s=!0),s&&(o+=Oe(i));return s?o:"0"},t.prototype.negate=function(){var e=J();return t.ZERO.subTo(this,e),e},t.prototype.abs=function(){return this.s<0?this.negate():this},t.prototype.compareTo=function(e){var r=this.s-e.s;if(r!=0)return r;var n=this.t;if(r=n-e.t,r!=0)return this.s<0?-r:r;for(;--n>=0;)if((r=this[n]-e[n])!=0)return r;return 0},t.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+Nt(this[this.t-1]^this.s&this.DM)},t.prototype.mod=function(e){var r=J();return this.abs().divRemTo(e,null,r),this.s<0&&r.compareTo(t.ZERO)>0&&e.subTo(r,r),r},t.prototype.modPowInt=function(e,r){var n;return e<256||r.isEven()?n=new Fi(r):n=new Li(r),this.exp(e,n)},t.prototype.clone=function(){var e=J();return this.copyTo(e),e},t.prototype.intValue=function(){if(this.s<0){if(this.t==1)return this[0]-this.DV;if(this.t==0)return-1}else{if(this.t==1)return this[0];if(this.t==0)return 0}return(this[1]&(1<<32-this.DB)-1)<<this.DB|this[0]},t.prototype.byteValue=function(){return this.t==0?this.s:this[0]<<24>>24},t.prototype.shortValue=function(){return this.t==0?this.s:this[0]<<16>>16},t.prototype.signum=function(){return this.s<0?-1:this.t<=0||this.t==1&&this[0]<=0?0:1},t.prototype.toByteArray=function(){var e=this.t,r=[];r[0]=this.s;var n=this.DB-e*this.DB%8,i,s=0;if(e-- >0)for(n<this.DB&&(i=this[e]>>n)!=(this.s&this.DM)>>n&&(r[s++]=i|this.s<<this.DB-n);e>=0;)n<8?(i=(this[e]&(1<<n)-1)<<8-n,i|=this[--e]>>(n+=this.DB-8)):(i=this[e]>>(n-=8)&255,n<=0&&(n+=this.DB,--e)),(i&128)!=0&&(i|=-256),s==0&&(this.s&128)!=(i&128)&&++s,(s>0||i!=this.s)&&(r[s++]=i);return r},t.prototype.equals=function(e){return this.compareTo(e)==0},t.prototype.min=function(e){return this.compareTo(e)<0?this:e},t.prototype.max=function(e){return this.compareTo(e)>0?this:e},t.prototype.and=function(e){var r=J();return this.bitwiseTo(e,Gd,r),r},t.prototype.or=function(e){var r=J();return this.bitwiseTo(e,Pt,r),r},t.prototype.xor=function(e){var r=J();return this.bitwiseTo(e,ji,r),r},t.prototype.andNot=function(e){var r=J();return this.bitwiseTo(e,Pi,r),r},t.prototype.not=function(){for(var e=J(),r=0;r<this.t;++r)e[r]=this.DM&~this[r];return e.t=this.t,e.s=~this.s,e},t.prototype.shiftLeft=function(e){var r=J();return e<0?this.rShiftTo(-e,r):this.lShiftTo(e,r),r},t.prototype.shiftRight=function(e){var r=J();return e<0?this.lShiftTo(-e,r):this.rShiftTo(e,r),r},t.prototype.getLowestSetBit=function(){for(var e=0;e<this.t;++e)if(this[e]!=0)return e*this.DB+Yd(this[e]);return this.s<0?this.t*this.DB:-1},t.prototype.bitCount=function(){for(var e=0,r=this.s&this.DM,n=0;n<this.t;++n)e+=Zd(this[n]^r);return e},t.prototype.testBit=function(e){var r=Math.floor(e/this.DB);return r>=this.t?this.s!=0:(this[r]&1<<e%this.DB)!=0},t.prototype.setBit=function(e){return this.changeBit(e,Pt)},t.prototype.clearBit=function(e){return this.changeBit(e,Pi)},t.prototype.flipBit=function(e){return this.changeBit(e,ji)},t.prototype.add=function(e){var r=J();return this.addTo(e,r),r},t.prototype.subtract=function(e){var r=J();return this.subTo(e,r),r},t.prototype.multiply=function(e){var r=J();return this.multiplyTo(e,r),r},t.prototype.divide=function(e){var r=J();return this.divRemTo(e,r,null),r},t.prototype.remainder=function(e){var r=J();return this.divRemTo(e,null,r),r},t.prototype.divideAndRemainder=function(e){var r=J(),n=J();return this.divRemTo(e,r,n),[r,n]},t.prototype.modPow=function(e,r){var n=e.bitLength(),i,s=Pe(1),o;if(n<=0)return s;n<18?i=1:n<48?i=3:n<144?i=4:n<768?i=5:i=6,n<8?o=new Fi(r):r.isEven()?o=new sg(r):o=new Li(r);var u=[],l=3,a=i-1,c=(1<<i)-1;if(u[1]=o.convert(this),i>1){var f=J();for(o.sqrTo(u[1],f);l<=c;)u[l]=J(),o.mulTo(f,u[l-2],u[l]),l+=2}var h=e.t-1,p,d=!0,g=J(),v;for(n=Nt(e[h])-1;h>=0;){for(n>=a?p=e[h]>>n-a&c:(p=(e[h]&(1<<n+1)-1)<<a-n,h>0&&(p|=e[h-1]>>this.DB+n-a)),l=i;(p&1)==0;)p>>=1,--l;if((n-=l)<0&&(n+=this.DB,--h),d)u[p].copyTo(s),d=!1;else{for(;l>1;)o.sqrTo(s,g),o.sqrTo(g,s),l-=2;l>0?o.sqrTo(s,g):(v=s,s=g,g=v),o.mulTo(g,u[p],s)}for(;h>=0&&(e[h]&1<<n)==0;)o.sqrTo(s,g),v=s,s=g,g=v,--n<0&&(n=this.DB-1,--h)}return o.revert(s)},t.prototype.modInverse=function(e){var r=e.isEven();if(this.isEven()&&r||e.signum()==0)return t.ZERO;for(var n=e.clone(),i=this.clone(),s=Pe(1),o=Pe(0),u=Pe(0),l=Pe(1);n.signum()!=0;){for(;n.isEven();)n.rShiftTo(1,n),r?((!s.isEven()||!o.isEven())&&(s.addTo(this,s),o.subTo(e,o)),s.rShiftTo(1,s)):o.isEven()||o.subTo(e,o),o.rShiftTo(1,o);for(;i.isEven();)i.rShiftTo(1,i),r?((!u.isEven()||!l.isEven())&&(u.addTo(this,u),l.subTo(e,l)),u.rShiftTo(1,u)):l.isEven()||l.subTo(e,l),l.rShiftTo(1,l);n.compareTo(i)>=0?(n.subTo(i,n),r&&s.subTo(u,s),o.subTo(l,o)):(i.subTo(n,i),r&&u.subTo(s,u),l.subTo(o,l))}if(i.compareTo(t.ONE)!=0)return t.ZERO;if(l.compareTo(e)>=0)return l.subtract(e);if(l.signum()<0)l.addTo(e,l);else return l;return l.signum()<0?l.add(e):l},t.prototype.pow=function(e){return this.exp(e,new ig)},t.prototype.gcd=function(e){var r=this.s<0?this.negate():this.clone(),n=e.s<0?e.negate():e.clone();if(r.compareTo(n)<0){var i=r;r=n,n=i}var s=r.getLowestSetBit(),o=n.getLowestSetBit();if(o<0)return r;for(s<o&&(o=s),o>0&&(r.rShiftTo(o,r),n.rShiftTo(o,n));r.signum()>0;)(s=r.getLowestSetBit())>0&&r.rShiftTo(s,r),(s=n.getLowestSetBit())>0&&n.rShiftTo(s,n),r.compareTo(n)>=0?(r.subTo(n,r),r.rShiftTo(1,r)):(n.subTo(r,n),n.rShiftTo(1,n));return o>0&&n.lShiftTo(o,n),n},t.prototype.isProbablePrime=function(e){var r,n=this.abs();if(n.t==1&&n[0]<=se[se.length-1]){for(r=0;r<se.length;++r)if(n[0]==se[r])return!0;return!1}if(n.isEven())return!1;for(r=1;r<se.length;){for(var i=se[r],s=r+1;s<se.length&&i<ng;)i*=se[s++];for(i=n.modInt(i);r<s;)if(i%se[r++]==0)return!1}return n.millerRabin(e)},t.prototype.copyTo=function(e){for(var r=this.t-1;r>=0;--r)e[r]=this[r];e.t=this.t,e.s=this.s},t.prototype.fromInt=function(e){this.t=1,this.s=e<0?-1:0,e>0?this[0]=e:e<-1?this[0]=e+this.DV:this.t=0},t.prototype.fromString=function(e,r){var n;if(r==16)n=4;else if(r==8)n=3;else if(r==256)n=8;else if(r==2)n=1;else if(r==32)n=5;else if(r==4)n=2;else{this.fromRadix(e,r);return}this.t=0,this.s=0;for(var i=e.length,s=!1,o=0;--i>=0;){var u=n==8?+e[i]&255:Hi(e,i);if(u<0){e.charAt(i)=="-"&&(s=!0);continue}s=!1,o==0?this[this.t++]=u:o+n>this.DB?(this[this.t-1]|=(u&(1<<this.DB-o)-1)<<o,this[this.t++]=u>>this.DB-o):this[this.t-1]|=u<<o,o+=n,o>=this.DB&&(o-=this.DB)}n==8&&(+e[0]&128)!=0&&(this.s=-1,o>0&&(this[this.t-1]|=(1<<this.DB-o)-1<<o)),this.clamp(),s&&t.ZERO.subTo(this,this)},t.prototype.clamp=function(){for(var e=this.s&this.DM;this.t>0&&this[this.t-1]==e;)--this.t},t.prototype.dlShiftTo=function(e,r){var n;for(n=this.t-1;n>=0;--n)r[n+e]=this[n];for(n=e-1;n>=0;--n)r[n]=0;r.t=this.t+e,r.s=this.s},t.prototype.drShiftTo=function(e,r){for(var n=e;n<this.t;++n)r[n-e]=this[n];r.t=Math.max(this.t-e,0),r.s=this.s},t.prototype.lShiftTo=function(e,r){for(var n=e%this.DB,i=this.DB-n,s=(1<<i)-1,o=Math.floor(e/this.DB),u=this.s<<n&this.DM,l=this.t-1;l>=0;--l)r[l+o+1]=this[l]>>i|u,u=(this[l]&s)<<n;for(var l=o-1;l>=0;--l)r[l]=0;r[o]=u,r.t=this.t+o+1,r.s=this.s,r.clamp()},t.prototype.rShiftTo=function(e,r){r.s=this.s;var n=Math.floor(e/this.DB);if(n>=this.t){r.t=0;return}var i=e%this.DB,s=this.DB-i,o=(1<<i)-1;r[0]=this[n]>>i;for(var u=n+1;u<this.t;++u)r[u-n-1]|=(this[u]&o)<<s,r[u-n]=this[u]>>i;i>0&&(r[this.t-n-1]|=(this.s&o)<<s),r.t=this.t-n,r.clamp()},t.prototype.subTo=function(e,r){for(var n=0,i=0,s=Math.min(e.t,this.t);n<s;)i+=this[n]-e[n],r[n++]=i&this.DM,i>>=this.DB;if(e.t<this.t){for(i-=e.s;n<this.t;)i+=this[n],r[n++]=i&this.DM,i>>=this.DB;i+=this.s}else{for(i+=this.s;n<e.t;)i-=e[n],r[n++]=i&this.DM,i>>=this.DB;i-=e.s}r.s=i<0?-1:0,i<-1?r[n++]=this.DV+i:i>0&&(r[n++]=i),r.t=n,r.clamp()},t.prototype.multiplyTo=function(e,r){var n=this.abs(),i=e.abs(),s=n.t;for(r.t=s+i.t;--s>=0;)r[s]=0;for(s=0;s<i.t;++s)r[s+n.t]=n.am(0,i[s],r,s,0,n.t);r.s=0,r.clamp(),this.s!=e.s&&t.ZERO.subTo(r,r)},t.prototype.squareTo=function(e){for(var r=this.abs(),n=e.t=2*r.t;--n>=0;)e[n]=0;for(n=0;n<r.t-1;++n){var i=r.am(n,r[n],e,2*n,0,1);(e[n+r.t]+=r.am(n+1,2*r[n],e,2*n+1,i,r.t-n-1))>=r.DV&&(e[n+r.t]-=r.DV,e[n+r.t+1]=1)}e.t>0&&(e[e.t-1]+=r.am(n,r[n],e,2*n,0,1)),e.s=0,e.clamp()},t.prototype.divRemTo=function(e,r,n){var i=e.abs();if(!(i.t<=0)){var s=this.abs();if(s.t<i.t){r!=null&&r.fromInt(0),n!=null&&this.copyTo(n);return}n==null&&(n=J());var o=J(),u=this.s,l=e.s,a=this.DB-Nt(i[i.t-1]);a>0?(i.lShiftTo(a,o),s.lShiftTo(a,n)):(i.copyTo(o),s.copyTo(n));var c=o.t,f=o[c-1];if(f!=0){var h=f*(1<<this.F1)+(c>1?o[c-2]>>this.F2:0),p=this.FV/h,d=(1<<this.F1)/h,g=1<<this.F2,v=n.t,E=v-c,m=r==null?J():r;for(o.dlShiftTo(E,m),n.compareTo(m)>=0&&(n[n.t++]=1,n.subTo(m,n)),t.ONE.dlShiftTo(c,m),m.subTo(o,o);o.t<c;)o[o.t++]=0;for(;--E>=0;){var b=n[--v]==f?this.DM:Math.floor(n[v]*p+(n[v-1]+g)*d);if((n[v]+=o.am(0,b,n,E,0,c))<b)for(o.dlShiftTo(E,m),n.subTo(m,n);n[v]<--b;)n.subTo(m,n)}r!=null&&(n.drShiftTo(c,r),u!=l&&t.ZERO.subTo(r,r)),n.t=c,n.clamp(),a>0&&n.rShiftTo(a,n),u<0&&t.ZERO.subTo(n,n)}}},t.prototype.invDigit=function(){if(this.t<1)return 0;var e=this[0];if((e&1)==0)return 0;var r=e&3;return r=r*(2-(e&15)*r)&15,r=r*(2-(e&255)*r)&255,r=r*(2-((e&65535)*r&65535))&65535,r=r*(2-e*r%this.DV)%this.DV,r>0?this.DV-r:-r},t.prototype.isEven=function(){return(this.t>0?this[0]&1:this.s)==0},t.prototype.exp=function(e,r){if(e>4294967295||e<1)return t.ONE;var n=J(),i=J(),s=r.convert(this),o=Nt(e)-1;for(s.copyTo(n);--o>=0;)if(r.sqrTo(n,i),(e&1<<o)>0)r.mulTo(i,s,n);else{var u=n;n=i,i=u}return r.revert(n)},t.prototype.chunkSize=function(e){return Math.floor(Math.LN2*this.DB/Math.log(e))},t.prototype.toRadix=function(e){if(e==null&&(e=10),this.signum()==0||e<2||e>36)return"0";var r=this.chunkSize(e),n=Math.pow(e,r),i=Pe(n),s=J(),o=J(),u="";for(this.divRemTo(i,s,o);s.signum()>0;)u=(n+o.intValue()).toString(e).substring(1)+u,s.divRemTo(i,s,o);return o.intValue().toString(e)+u},t.prototype.fromRadix=function(e,r){this.fromInt(0),r==null&&(r=10);for(var n=this.chunkSize(r),i=Math.pow(r,n),s=!1,o=0,u=0,l=0;l<e.length;++l){var a=Hi(e,l);if(a<0){e.charAt(l)=="-"&&this.signum()==0&&(s=!0);continue}u=r*u+a,++o>=n&&(this.dMultiply(i),this.dAddOffset(u,0),o=0,u=0)}o>0&&(this.dMultiply(Math.pow(r,o)),this.dAddOffset(u,0)),s&&t.ZERO.subTo(this,this)},t.prototype.fromNumber=function(e,r,n){if(typeof r=="number")if(e<2)this.fromInt(1);else for(this.fromNumber(e,n),this.testBit(e-1)||this.bitwiseTo(t.ONE.shiftLeft(e-1),Pt,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(r);)this.dAddOffset(2,0),this.bitLength()>e&&this.subTo(t.ONE.shiftLeft(e-1),this);else{var i=[],s=e&7;i.length=(e>>3)+1,r.nextBytes(i),s>0?i[0]&=(1<<s)-1:i[0]=0,this.fromString(i,256)}},t.prototype.bitwiseTo=function(e,r,n){var i,s,o=Math.min(e.t,this.t);for(i=0;i<o;++i)n[i]=r(this[i],e[i]);if(e.t<this.t){for(s=e.s&this.DM,i=o;i<this.t;++i)n[i]=r(this[i],s);n.t=this.t}else{for(s=this.s&this.DM,i=o;i<e.t;++i)n[i]=r(s,e[i]);n.t=e.t}n.s=r(this.s,e.s),n.clamp()},t.prototype.changeBit=function(e,r){var n=t.ONE.shiftLeft(e);return this.bitwiseTo(n,r,n),n},t.prototype.addTo=function(e,r){for(var n=0,i=0,s=Math.min(e.t,this.t);n<s;)i+=this[n]+e[n],r[n++]=i&this.DM,i>>=this.DB;if(e.t<this.t){for(i+=e.s;n<this.t;)i+=this[n],r[n++]=i&this.DM,i>>=this.DB;i+=this.s}else{for(i+=this.s;n<e.t;)i+=e[n],r[n++]=i&this.DM,i>>=this.DB;i+=e.s}r.s=i<0?-1:0,i>0?r[n++]=i:i<-1&&(r[n++]=this.DV+i),r.t=n,r.clamp()},t.prototype.dMultiply=function(e){this[this.t]=this.am(0,e-1,this,0,0,this.t),++this.t,this.clamp()},t.prototype.dAddOffset=function(e,r){if(e!=0){for(;this.t<=r;)this[this.t++]=0;for(this[r]+=e;this[r]>=this.DV;)this[r]-=this.DV,++r>=this.t&&(this[this.t++]=0),++this[r]}},t.prototype.multiplyLowerTo=function(e,r,n){var i=Math.min(this.t+e.t,r);for(n.s=0,n.t=i;i>0;)n[--i]=0;for(var s=n.t-this.t;i<s;++i)n[i+this.t]=this.am(0,e[i],n,i,0,this.t);for(var s=Math.min(e.t,r);i<s;++i)this.am(0,e[i],n,i,0,r-i);n.clamp()},t.prototype.multiplyUpperTo=function(e,r,n){--r;var i=n.t=this.t+e.t-r;for(n.s=0;--i>=0;)n[i]=0;for(i=Math.max(r-this.t,0);i<e.t;++i)n[this.t+i-r]=this.am(r-i,e[i],n,0,0,this.t+i-r);n.clamp(),n.drShiftTo(1,n)},t.prototype.modInt=function(e){if(e<=0)return 0;var r=this.DV%e,n=this.s<0?e-1:0;if(this.t>0)if(r==0)n=this[0]%e;else for(var i=this.t-1;i>=0;--i)n=(r*n+this[i])%e;return n},t.prototype.millerRabin=function(e){var r=this.subtract(t.ONE),n=r.getLowestSetBit();if(n<=0)return!1;var i=r.shiftRight(n);e=e+1>>1,e>se.length&&(e=se.length);for(var s=J(),o=0;o<e;++o){s.fromInt(se[Math.floor(Math.random()*se.length)]);var u=s.modPow(i,this);if(u.compareTo(t.ONE)!=0&&u.compareTo(r)!=0){for(var l=1;l++<n&&u.compareTo(r)!=0;)if(u=u.modPowInt(2,this),u.compareTo(t.ONE)==0)return!1;if(u.compareTo(r)!=0)return!1}}return!0},t.prototype.square=function(){var e=J();return this.squareTo(e),e},t.prototype.gcda=function(e,r){var n=this.s<0?this.negate():this.clone(),i=e.s<0?e.negate():e.clone();if(n.compareTo(i)<0){var s=n;n=i,i=s}var o=n.getLowestSetBit(),u=i.getLowestSetBit();if(u<0){r(n);return}o<u&&(u=o),u>0&&(n.rShiftTo(u,n),i.rShiftTo(u,i));var l=function(){(o=n.getLowestSetBit())>0&&n.rShiftTo(o,n),(o=i.getLowestSetBit())>0&&i.rShiftTo(o,i),n.compareTo(i)>=0?(n.subTo(i,n),n.rShiftTo(1,n)):(i.subTo(n,i),i.rShiftTo(1,i)),n.signum()>0?setTimeout(l,0):(u>0&&i.lShiftTo(u,i),setTimeout(function(){r(i)},0))};setTimeout(l,10)},t.prototype.fromNumberAsync=function(e,r,n,i){if(typeof r=="number")if(e<2)this.fromInt(1);else{this.fromNumber(e,n),this.testBit(e-1)||this.bitwiseTo(t.ONE.shiftLeft(e-1),Pt,this),this.isEven()&&this.dAddOffset(1,0);var s=this,o=function(){s.dAddOffset(2,0),s.bitLength()>e&&s.subTo(t.ONE.shiftLeft(e-1),s),s.isProbablePrime(r)?setTimeout(function(){i()},0):setTimeout(o,0)};setTimeout(o,0)}else{var u=[],l=e&7;u.length=(e>>3)+1,r.nextBytes(u),l>0?u[0]&=(1<<l)-1:u[0]=0,this.fromString(u,256)}},t})(),ig=(function(){function t(){}return t.prototype.convert=function(e){return e},t.prototype.revert=function(e){return e},t.prototype.mulTo=function(e,r,n){e.multiplyTo(r,n)},t.prototype.sqrTo=function(e,r){e.squareTo(r)},t})(),Fi=(function(){function t(e){this.m=e}return t.prototype.convert=function(e){return e.s<0||e.compareTo(this.m)>=0?e.mod(this.m):e},t.prototype.revert=function(e){return e},t.prototype.reduce=function(e){e.divRemTo(this.m,null,e)},t.prototype.mulTo=function(e,r,n){e.multiplyTo(r,n),this.reduce(n)},t.prototype.sqrTo=function(e,r){e.squareTo(r),this.reduce(r)},t})(),Li=(function(){function t(e){this.m=e,this.mp=e.invDigit(),this.mpl=this.mp&32767,this.mph=this.mp>>15,this.um=(1<<e.DB-15)-1,this.mt2=2*e.t}return t.prototype.convert=function(e){var r=J();return e.abs().dlShiftTo(this.m.t,r),r.divRemTo(this.m,null,r),e.s<0&&r.compareTo(K.ZERO)>0&&this.m.subTo(r,r),r},t.prototype.revert=function(e){var r=J();return e.copyTo(r),this.reduce(r),r},t.prototype.reduce=function(e){for(;e.t<=this.mt2;)e[e.t++]=0;for(var r=0;r<this.m.t;++r){var n=e[r]&32767,i=n*this.mpl+((n*this.mph+(e[r]>>15)*this.mpl&this.um)<<15)&e.DM;for(n=r+this.m.t,e[n]+=this.m.am(0,i,e,r,0,this.m.t);e[n]>=e.DV;)e[n]-=e.DV,e[++n]++}e.clamp(),e.drShiftTo(this.m.t,e),e.compareTo(this.m)>=0&&e.subTo(this.m,e)},t.prototype.mulTo=function(e,r,n){e.multiplyTo(r,n),this.reduce(n)},t.prototype.sqrTo=function(e,r){e.squareTo(r),this.reduce(r)},t})(),sg=(function(){function t(e){this.m=e,this.r2=J(),this.q3=J(),K.ONE.dlShiftTo(2*e.t,this.r2),this.mu=this.r2.divide(e)}return t.prototype.convert=function(e){if(e.s<0||e.t>2*this.m.t)return e.mod(this.m);if(e.compareTo(this.m)<0)return e;var r=J();return e.copyTo(r),this.reduce(r),r},t.prototype.revert=function(e){return e},t.prototype.reduce=function(e){for(e.drShiftTo(this.m.t-1,this.r2),e.t>this.m.t+1&&(e.t=this.m.t+1,e.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);e.compareTo(this.r2)<0;)e.dAddOffset(1,this.m.t+1);for(e.subTo(this.r2,e);e.compareTo(this.m)>=0;)e.subTo(this.m,e)},t.prototype.mulTo=function(e,r,n){e.multiplyTo(r,n),this.reduce(n)},t.prototype.sqrTo=function(e,r){e.squareTo(r),this.reduce(r)},t})();function J(){return new K(null)}function Z(t,e){return new K(t,e)}var Ui=typeof navigator!="undefined";Ui&&Mi&&navigator.appName=="Microsoft Internet Explorer"?(K.prototype.am=function(e,r,n,i,s,o){for(var u=r&32767,l=r>>15;--o>=0;){var a=this[e]&32767,c=this[e++]>>15,f=l*a+c*u;a=u*a+((f&32767)<<15)+n[i]+(s&1073741823),s=(a>>>30)+(f>>>15)+l*c+(s>>>30),n[i++]=a&1073741823}return s},Ie=30):Ui&&Mi&&navigator.appName!="Netscape"?(K.prototype.am=function(e,r,n,i,s,o){for(;--o>=0;){var u=r*this[e++]+n[i]+s;s=Math.floor(u/67108864),n[i++]=u&67108863}return s},Ie=26):(K.prototype.am=function(e,r,n,i,s,o){for(var u=r&16383,l=r>>14;--o>=0;){var a=this[e]&16383,c=this[e++]>>14,f=l*a+c*u;a=u*a+((f&16383)<<14)+n[i]+s,s=(a>>28)+(f>>14)+l*c,n[i++]=a&268435455}return s},Ie=28);K.prototype.DB=Ie;K.prototype.DM=(1<<Ie)-1;K.prototype.DV=1<<Ie;var $n=52;K.prototype.FV=Math.pow(2,$n);K.prototype.F1=$n-Ie;K.prototype.F2=2*Ie-$n;var lr=[],ct,he;ct=48;for(he=0;he<=9;++he)lr[ct++]=he;ct=97;for(he=10;he<36;++he)lr[ct++]=he;ct=65;for(he=10;he<36;++he)lr[ct++]=he;function Hi(t,e){var r=lr[t.charCodeAt(e)];return r==null?-1:r}function Pe(t){var e=J();return e.fromInt(t),e}function Nt(t){var e=1,r;return(r=t>>>16)!=0&&(t=r,e+=16),(r=t>>8)!=0&&(t=r,e+=8),(r=t>>4)!=0&&(t=r,e+=4),(r=t>>2)!=0&&(t=r,e+=2),(r=t>>1)!=0&&(t=r,e+=1),e}K.ZERO=Pe(0);K.ONE=Pe(1);var og=(function(){function t(){this.i=0,this.j=0,this.S=[]}return t.prototype.init=function(e){var r,n,i;for(r=0;r<256;++r)this.S[r]=r;for(n=0,r=0;r<256;++r)n=n+this.S[r]+e[r%e.length]&255,i=this.S[r],this.S[r]=this.S[n],this.S[n]=i;this.i=0,this.j=0},t.prototype.next=function(){var e;return this.i=this.i+1&255,this.j=this.j+this.S[this.i]&255,e=this.S[this.i],this.S[this.i]=this.S[this.j],this.S[this.j]=e,this.S[e+this.S[this.i]&255]},t})();function ag(){return new og}var $o=256,It,Ne=null,ye;if(Ne==null){Ne=[],ye=0;var Mt=void 0;if(typeof window!="undefined"&&self.crypto&&self.crypto.getRandomValues){var Br=new Uint32Array(256);for(self.crypto.getRandomValues(Br),Mt=0;Mt<Br.length;++Mt)Ne[ye++]=Br[Mt]&255}var Ft=0,Lt=function(t){if(Ft=Ft||0,Ft>=256||ye>=$o){self.removeEventListener?self.removeEventListener("mousemove",Lt,!1):self.detachEvent&&self.detachEvent("onmousemove",Lt);return}try{var e=t.x+t.y;Ne[ye++]=e&255,Ft+=1}catch(r){}};typeof window!="undefined"&&(self.addEventListener?self.addEventListener("mousemove",Lt,!1):self.attachEvent&&self.attachEvent("onmousemove",Lt))}function ug(){if(It==null){for(It=ag();ye<$o;){var t=Math.floor(65536*Math.random());Ne[ye++]=t&255}for(It.init(Ne),ye=0;ye<Ne.length;++ye)Ne[ye]=0;ye=0}return It.next()}var rr=(function(){function t(){}return t.prototype.nextBytes=function(e){for(var r=0;r<e.length;++r)e[r]=ug()},t})();function on(t){return lg(yg(cg(t),t.length*8))}function Vi(t){for(var e="0123456789abcdef",r="",n=0;n<t.length;n++){var i=t.charCodeAt(n);r+=e.charAt(i>>>4&15)+e.charAt(i&15)}return r}function cg(t){for(var e=Array(t.length>>2),r=0;r<e.length;r++)e[r]=0;for(var r=0;r<t.length*8;r+=8)e[r>>5]|=(t.charCodeAt(r/8)&255)<<24-r%32;return e}function lg(t){for(var e="",r=0;r<t.length*32;r+=8)e+=String.fromCharCode(t[r>>5]>>>24-r%32&255);return e}function Te(t,e){return t>>>e|t<<32-e}function Do(t,e){return t>>>e}function fg(t,e,r){return t&e^~t&r}function hg(t,e,r){return t&e^t&r^e&r}function pg(t){return Te(t,2)^Te(t,13)^Te(t,22)}function dg(t){return Te(t,6)^Te(t,11)^Te(t,25)}function gg(t){return Te(t,7)^Te(t,18)^Do(t,3)}function vg(t){return Te(t,17)^Te(t,19)^Do(t,10)}var mg=new Array(1116352408,1899447441,-1245643825,-373957723,961987163,1508970993,-1841331548,-1424204075,-670586216,310598401,607225278,1426881987,1925078388,-2132889090,-1680079193,-1046744716,-459576895,-272742522,264347078,604807628,770255983,1249150122,1555081692,1996064986,-1740746414,-1473132947,-1341970488,-1084653625,-958395405,-710438585,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,-2117940946,-1838011259,-1564481375,-1474664885,-1035236496,-949202525,-778901479,-694614492,-200395387,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,-2067236844,-1933114872,-1866530822,-1538233109,-1090935817,-965641998);function yg(t,e){var r=new Array(1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225),n=new Array(64),i,s,o,u,l,a,c,f,h,p,d,g;for(t[e>>5]|=128<<24-e%32,t[(e+64>>9<<4)+15]=e,h=0;h<t.length;h+=16){for(i=r[0],s=r[1],o=r[2],u=r[3],l=r[4],a=r[5],c=r[6],f=r[7],p=0;p<64;p++)p<16?n[p]=t[p+h]:n[p]=ne(ne(ne(vg(n[p-2]),n[p-7]),gg(n[p-15])),n[p-16]),d=ne(ne(ne(ne(f,dg(l)),fg(l,a,c)),mg[p]),n[p]),g=ne(pg(i),hg(i,s,o)),f=c,c=a,a=l,l=ne(u,d),u=o,o=s,s=i,i=ne(d,g);r[0]=ne(i,r[0]),r[1]=ne(s,r[1]),r[2]=ne(o,r[2]),r[3]=ne(u,r[3]),r[4]=ne(l,r[4]),r[5]=ne(a,r[5]),r[6]=ne(c,r[6]),r[7]=ne(f,r[7])}return r}function ne(t,e){var r=(t&65535)+(e&65535),n=(t>>16)+(e>>16)+(r>>16);return n<<16|r&65535}function bg(t,e){if(e<t.length+22)return console.error("Message too long for RSA"),null;for(var r=e-t.length-6,n="",i=0;i<r;i+=2)n+="ff";var s="0001"+n+"00"+t;return Z(s,16)}function _g(t,e){if(e<t.length+11)return console.error("Message too long for RSA"),null;for(var r=[],n=t.length-1;n>=0&&e>0;){var i=t.charCodeAt(n--);i<128?r[--e]=i:i>127&&i<2048?(r[--e]=i&63|128,r[--e]=i>>6|192):(r[--e]=i&63|128,r[--e]=i>>6&63|128,r[--e]=i>>12|224)}r[--e]=0;for(var s=new rr,o=[];e>2;){for(o[0]=0;o[0]==0;)s.nextBytes(o);r[--e]=o[0]}return r[--e]=2,r[--e]=0,new K(r)}function ki(t,e,r){for(var n="",i=0;n.length<e;)n+=r(String.fromCharCode.apply(String,t.concat([(i&4278190080)>>24,(i&16711680)>>16,(i&65280)>>8,i&255]))),i+=1;return n}var wg=32;function Eg(t,e){var r=wg,n=on;if(t.length+2*r+2>e)throw"Message too long for RSA";var i="",s;for(s=0;s<e-t.length-2*r-2;s+=1)i+="\0";var o=n("")+i+""+t,u=new Array(r);new rr().nextBytes(u);var l=ki(u,o.length,n),a=[];for(s=0;s<o.length;s+=1)a[s]=o.charCodeAt(s)^l.charCodeAt(s);var c=ki(a,u.length,n),f=[0];for(s=0;s<u.length;s+=1)f[s+1]=u[s]^c.charCodeAt(s);return new K(f.concat(a))}var Sg=(function(){function t(){this.n=null,this.e=0,this.d=null,this.p=null,this.q=null,this.dmp1=null,this.dmq1=null,this.coeff=null}return t.prototype.doPublic=function(e){return e.modPowInt(this.e,this.n)},t.prototype.doPrivate=function(e){if(this.p==null||this.q==null)return e.modPow(this.d,this.n);for(var r=e.mod(this.p).modPow(this.dmp1,this.p),n=e.mod(this.q).modPow(this.dmq1,this.q);r.compareTo(n)<0;)r=r.add(this.p);return r.subtract(n).multiply(this.coeff).mod(this.p).multiply(this.q).add(n)},t.prototype.setPublic=function(e,r){e!=null&&r!=null&&e.length>0&&r.length>0?(this.n=Z(e,16),this.e=parseInt(r,16)):console.error("Invalid RSA public key")},t.prototype.encrypt=function(e,r){typeof r=="undefined"&&(r=_g);var n=this.n.bitLength()+7>>3,i=r(e,n);if(i==null)return null;var s=this.doPublic(i);if(s==null)return null;for(var o=s.toString(16),u=o.length,l=0;l<n*2-u;l++)o="0"+o;return o},t.prototype.setPrivate=function(e,r,n){e!=null&&r!=null&&e.length>0&&r.length>0?(this.n=Z(e,16),this.e=parseInt(r,16),this.d=Z(n,16)):console.error("Invalid RSA private key")},t.prototype.setPrivateEx=function(e,r,n,i,s,o,u,l){e!=null&&r!=null&&e.length>0&&r.length>0?(this.n=Z(e,16),this.e=parseInt(r,16),this.d=Z(n,16),this.p=Z(i,16),this.q=Z(s,16),this.dmp1=Z(o,16),this.dmq1=Z(u,16),this.coeff=Z(l,16)):console.error("Invalid RSA private key")},t.prototype.generate=function(e,r){var n=new rr,i=e>>1;this.e=parseInt(r,16);for(var s=new K(r,16);;){for(;this.p=new K(e-i,1,n),!(this.p.subtract(K.ONE).gcd(s).compareTo(K.ONE)==0&&this.p.isProbablePrime(10)););for(;this.q=new K(i,1,n),!(this.q.subtract(K.ONE).gcd(s).compareTo(K.ONE)==0&&this.q.isProbablePrime(10)););if(this.p.compareTo(this.q)<=0){var o=this.p;this.p=this.q,this.q=o}var u=this.p.subtract(K.ONE),l=this.q.subtract(K.ONE),a=u.multiply(l);if(a.gcd(s).compareTo(K.ONE)==0){this.n=this.p.multiply(this.q),this.d=s.modInverse(a),this.dmp1=this.d.mod(u),this.dmq1=this.d.mod(l),this.coeff=this.q.modInverse(this.p);break}}},t.prototype.decrypt=function(e){var r=Z(e,16),n=this.doPrivate(r);return n==null?null:Tg(n,this.n.bitLength()+7>>3)},t.prototype.generateAsync=function(e,r,n){var i=new rr,s=e>>1;this.e=parseInt(r,16);var o=new K(r,16),u=this,l=function(){var a=function(){if(u.p.compareTo(u.q)<=0){var h=u.p;u.p=u.q,u.q=h}var p=u.p.subtract(K.ONE),d=u.q.subtract(K.ONE),g=p.multiply(d);g.gcd(o).compareTo(K.ONE)==0?(u.n=u.p.multiply(u.q),u.d=o.modInverse(g),u.dmp1=u.d.mod(p),u.dmq1=u.d.mod(d),u.coeff=u.q.modInverse(u.p),setTimeout(function(){n()},0)):setTimeout(l,0)},c=function(){u.q=J(),u.q.fromNumberAsync(s,1,i,function(){u.q.subtract(K.ONE).gcda(o,function(h){h.compareTo(K.ONE)==0&&u.q.isProbablePrime(10)?setTimeout(a,0):setTimeout(c,0)})})},f=function(){u.p=J(),u.p.fromNumberAsync(e-s,1,i,function(){u.p.subtract(K.ONE).gcda(o,function(h){h.compareTo(K.ONE)==0&&u.p.isProbablePrime(10)?setTimeout(c,0):setTimeout(f,0)})})};setTimeout(f,0)};setTimeout(l,0)},t.prototype.sign=function(e,r,n){var i=Rg(n),s=i+r(e).toString(),o=this.n.bitLength()/4,u=bg(s,o);if(u==null)return null;var l=this.doPrivate(u);if(l==null)return null;for(var a=l.toString(16),c=a.length,f=0;f<o-c;f++)a="0"+a;return a},t.prototype.verify=function(e,r,n){var i=Z(r,16),s=this.doPublic(i);if(s==null)return null;var o=s.toString(16).replace(/^1f+00/,""),u=Ag(o);return u==n(e).toString()},t})();function Tg(t,e){for(var r=t.toByteArray(),n=0;n<r.length&&r[n]==0;)++n;if(r.length-n!=e-1||r[n]!=2)return null;for(++n;r[n]!=0;)if(++n>=r.length)return null;for(var i="";++n<r.length;){var s=r[n]&255;s<128?i+=String.fromCharCode(s):s>191&&s<224?(i+=String.fromCharCode((s&31)<<6|r[n+1]&63),++n):(i+=String.fromCharCode((s&15)<<12|(r[n+1]&63)<<6|r[n+2]&63),n+=2)}return i}var Wt={md2:"3020300c06082a864886f70d020205000410",md5:"3020300c06082a864886f70d020505000410",sha1:"3021300906052b0e03021a05000414",sha224:"302d300d06096086480165030402040500041c",sha256:"3031300d060960864801650304020105000420",sha384:"3041300d060960864801650304020205000430",sha512:"3051300d060960864801650304020305000440",ripemd160:"3021300906052b2403020105000414"};function Rg(t){return Wt[t]||""}function Ag(t){for(var e in Wt)if(Wt.hasOwnProperty(e)){var r=Wt[e],n=r.length;if(t.substring(0,n)==r)return t.substring(n)}return t}function ee(t,e,r){if(!e||!t)throw new Error("extend failed, please check that all dependencies are included.");var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t,t.superclass=e.prototype,e.prototype.constructor==Object.prototype.constructor&&(e.prototype.constructor=e)}/**
|
|
27
27
|
* @fileOverview
|
|
28
28
|
* @name asn1-1.0.js
|
|
29
29
|
* @author Kenji Urushima kenji.urushima@gmail.com
|
|
30
30
|
* @version asn1 1.0.13 (2017-Jun-02)
|
|
31
31
|
* @since jsrsasign 2.1
|
|
32
32
|
* @license <a href="https://kjur.github.io/jsrsasign/license/">MIT License</a>
|
|
33
|
-
*/var B={};(typeof B.asn1=="undefined"||!B.asn1)&&(B.asn1={});B.asn1.ASN1Util=new function(){this.integerToByteHex=function(t){var e=t.toString(16);return e.length%2==1&&(e="0"+e),e},this.bigIntToMinTwosComplementsHex=function(t){var e=t.toString(16);if(e.substring(0,1)!="-")e.length%2==1?e="0"+e:e.match(/^[0-7]/)||(e="00"+e);else{var r=e.substring(1),n=r.length;n%2==1?n+=1:e.match(/^[0-7]/)||(n+=2);for(var i="",s=0;s<n;s++)i+="f";var o=new K(i,16),u=o.xor(t).add(K.ONE);e=u.toString(16).replace(/^-/,"")}return e},this.getPEMStringFromHex=function(t,e){return hextopem(t,e)},this.newObject=function(t){var e=B,r=e.asn1,n=r.DERBoolean,i=r.DERInteger,s=r.DERBitString,o=r.DEROctetString,u=r.DERNull,l=r.DERObjectIdentifier,a=r.DEREnumerated,c=r.DERUTF8String,f=r.DERNumericString,h=r.DERPrintableString,p=r.DERTeletexString,d=r.DERIA5String,g=r.DERUTCTime,m=r.DERGeneralizedTime,w=r.DERSequence,v=r.DERSet,b=r.DERTaggedObject,_=r.ASN1Util.newObject,E=Object.keys(t);if(E.length!=1)throw"key of param shall be only one.";var y=E[0];if(":bool:int:bitstr:octstr:null:oid:enum:utf8str:numstr:prnstr:telstr:ia5str:utctime:gentime:seq:set:tag:".indexOf(":"+y+":")==-1)throw"undefined key: "+y;if(y=="bool")return new n(t[y]);if(y=="int")return new i(t[y]);if(y=="bitstr")return new s(t[y]);if(y=="octstr")return new o(t[y]);if(y=="null")return new u(t[y]);if(y=="oid")return new l(t[y]);if(y=="enum")return new a(t[y]);if(y=="utf8str")return new c(t[y]);if(y=="numstr")return new f(t[y]);if(y=="prnstr")return new h(t[y]);if(y=="telstr")return new p(t[y]);if(y=="ia5str")return new d(t[y]);if(y=="utctime")return new g(t[y]);if(y=="gentime")return new m(t[y]);if(y=="seq"){for(var T=t[y],x=[],U=0;U<T.length;U++){var S=_(T[U]);x.push(S)}return new w({array:x})}if(y=="set"){for(var T=t[y],x=[],U=0;U<T.length;U++){var S=_(T[U]);x.push(S)}return new v({array:x})}if(y=="tag"){var A=t[y];if(Object.prototype.toString.call(A)==="[object Array]"&&A.length==3){var M=_(A[2]);return new b({tag:A[0],explicit:A[1],obj:M})}else{var j={};if(A.explicit!==void 0&&(j.explicit=A.explicit),A.tag!==void 0&&(j.tag=A.tag),A.obj===void 0)throw"obj shall be specified for 'tag'.";return j.obj=_(A.obj),new b(j)}}},this.jsonToASN1HEX=function(t){var e=this.newObject(t);return e.getEncodedHex()}};B.asn1.ASN1Util.oidHexToInt=function(t){for(var i="",e=parseInt(t.substring(0,2),16),r=Math.floor(e/40),n=e%40,i=r+"."+n,s="",o=2;o<t.length;o+=2){var u=parseInt(t.substring(o,o+2),16),l=("00000000"+u.toString(2)).slice(-8);if(s=s+l.substring(1,8),l.substring(0,1)=="0"){var a=new K(s,2);i=i+"."+a.toString(10),s=""}}return i};B.asn1.ASN1Util.oidIntToHex=function(t){var e=function(u){var l=u.toString(16);return l.length==1&&(l="0"+l),l},r=function(u){var l="",a=new K(u,10),c=a.toString(2),f=7-c.length%7;f==7&&(f=0);for(var h="",p=0;p<f;p++)h+="0";c=h+c;for(var p=0;p<c.length-1;p+=7){var d=c.substring(p,p+7);p!=c.length-7&&(d="1"+d),l+=e(parseInt(d,2))}return l};if(!t.match(/^[0-9.]+$/))throw"malformed oid string: "+t;var n="",i=t.split("."),s=parseInt(i[0])*40+parseInt(i[1]);n+=e(s),i.splice(0,2);for(var o=0;o<i.length;o++)n+=r(i[o]);return n};B.asn1.ASN1Object=function(){var t="";this.getLengthHexFromValue=function(){if(typeof this.hV=="undefined"||this.hV==null)throw"this.hV is null or undefined.";if(this.hV.length%2==1)throw"value hex must be even length: n="+t.length+",v="+this.hV;var e=this.hV.length/2,r=e.toString(16);if(r.length%2==1&&(r="0"+r),e<128)return r;var n=r.length/2;if(n>15)throw"ASN.1 length too long to represent by 8x: n = "+e.toString(16);var i=128+n;return i.toString(16)+r},this.getEncodedHex=function(){return(this.hTLV==null||this.isModified)&&(this.hV=this.getFreshValueHex(),this.hL=this.getLengthHexFromValue(),this.hTLV=this.hT+this.hL+this.hV,this.isModified=!1),this.hTLV},this.getValueHex=function(){return this.getEncodedHex(),this.hV},this.getFreshValueHex=function(){return""}};B.asn1.DERAbstractString=function(t){B.asn1.DERAbstractString.superclass.constructor.call(this),this.getString=function(){return this.s},this.setString=function(e){this.hTLV=null,this.isModified=!0,this.s=e,this.hV=stohex(this.s)},this.setStringHex=function(e){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=e},this.getFreshValueHex=function(){return this.hV},typeof t!="undefined"&&(typeof t=="string"?this.setString(t):typeof t.str!="undefined"?this.setString(t.str):typeof t.hex!="undefined"&&this.setStringHex(t.hex))};ee(B.asn1.DERAbstractString,B.asn1.ASN1Object);B.asn1.DERAbstractTime=function(t){B.asn1.DERAbstractTime.superclass.constructor.call(this),this.localDateToUTC=function(e){utc=e.getTime()+e.getTimezoneOffset()*6e4;var r=new Date(utc);return r},this.formatDate=function(e,r,n){var i=this.zeroPadding,s=this.localDateToUTC(e),o=String(s.getFullYear());r=="utc"&&(o=o.substring(2,4));var u=i(String(s.getMonth()+1),2),l=i(String(s.getDate()),2),a=i(String(s.getHours()),2),c=i(String(s.getMinutes()),2),f=i(String(s.getSeconds()),2),h=o+u+l+a+c+f;if(n===!0){var p=s.getMilliseconds();if(p!=0){var d=i(String(p),3);d=d.replace(/[0]+$/,""),h=h+"."+d}}return h+"Z"},this.zeroPadding=function(e,r){return e.length>=r?e:new Array(r-e.length+1).join("0")+e},this.getString=function(){return this.s},this.setString=function(e){this.hTLV=null,this.isModified=!0,this.s=e,this.hV=stohex(e)},this.setByDateValue=function(e,r,n,i,s,o){var u=new Date(Date.UTC(e,r-1,n,i,s,o,0));this.setByDate(u)},this.getFreshValueHex=function(){return this.hV}};ee(B.asn1.DERAbstractTime,B.asn1.ASN1Object);B.asn1.DERAbstractStructured=function(t){B.asn1.DERAbstractString.superclass.constructor.call(this),this.setByASN1ObjectArray=function(e){this.hTLV=null,this.isModified=!0,this.asn1Array=e},this.appendASN1Object=function(e){this.hTLV=null,this.isModified=!0,this.asn1Array.push(e)},this.asn1Array=new Array,typeof t!="undefined"&&typeof t.array!="undefined"&&(this.asn1Array=t.array)};ee(B.asn1.DERAbstractStructured,B.asn1.ASN1Object);B.asn1.DERBoolean=function(){B.asn1.DERBoolean.superclass.constructor.call(this),this.hT="01",this.hTLV="0101ff"};ee(B.asn1.DERBoolean,B.asn1.ASN1Object);B.asn1.DERInteger=function(t){B.asn1.DERInteger.superclass.constructor.call(this),this.hT="02",this.setByBigInteger=function(e){this.hTLV=null,this.isModified=!0,this.hV=B.asn1.ASN1Util.bigIntToMinTwosComplementsHex(e)},this.setByInteger=function(e){var r=new K(String(e),10);this.setByBigInteger(r)},this.setValueHex=function(e){this.hV=e},this.getFreshValueHex=function(){return this.hV},typeof t!="undefined"&&(typeof t.bigint!="undefined"?this.setByBigInteger(t.bigint):typeof t.int!="undefined"?this.setByInteger(t.int):typeof t=="number"?this.setByInteger(t):typeof t.hex!="undefined"&&this.setValueHex(t.hex))};ee(B.asn1.DERInteger,B.asn1.ASN1Object);B.asn1.DERBitString=function(t){if(t!==void 0&&typeof t.obj!="undefined"){var e=B.asn1.ASN1Util.newObject(t.obj);t.hex="00"+e.getEncodedHex()}B.asn1.DERBitString.superclass.constructor.call(this),this.hT="03",this.setHexValueIncludingUnusedBits=function(r){this.hTLV=null,this.isModified=!0,this.hV=r},this.setUnusedBitsAndHexValue=function(r,n){if(r<0||7<r)throw"unused bits shall be from 0 to 7: u = "+r;var i="0"+r;this.hTLV=null,this.isModified=!0,this.hV=i+n},this.setByBinaryString=function(r){r=r.replace(/0+$/,"");var n=8-r.length%8;n==8&&(n=0);for(var i=0;i<=n;i++)r+="0";for(var s="",i=0;i<r.length-1;i+=8){var o=r.substring(i,i+8),u=parseInt(o,2).toString(16);u.length==1&&(u="0"+u),s+=u}this.hTLV=null,this.isModified=!0,this.hV="0"+n+s},this.setByBooleanArray=function(r){for(var n="",i=0;i<r.length;i++)r[i]==!0?n+="1":n+="0";this.setByBinaryString(n)},this.newFalseArray=function(r){for(var n=new Array(r),i=0;i<r;i++)n[i]=!1;return n},this.getFreshValueHex=function(){return this.hV},typeof t!="undefined"&&(typeof t=="string"&&t.toLowerCase().match(/^[0-9a-f]+$/)?this.setHexValueIncludingUnusedBits(t):typeof t.hex!="undefined"?this.setHexValueIncludingUnusedBits(t.hex):typeof t.bin!="undefined"?this.setByBinaryString(t.bin):typeof t.array!="undefined"&&this.setByBooleanArray(t.array))};ee(B.asn1.DERBitString,B.asn1.ASN1Object);B.asn1.DEROctetString=function(t){if(t!==void 0&&typeof t.obj!="undefined"){var e=B.asn1.ASN1Util.newObject(t.obj);t.hex=e.getEncodedHex()}B.asn1.DEROctetString.superclass.constructor.call(this,t),this.hT="04"};ee(B.asn1.DEROctetString,B.asn1.DERAbstractString);B.asn1.DERNull=function(){B.asn1.DERNull.superclass.constructor.call(this),this.hT="05",this.hTLV="0500"};ee(B.asn1.DERNull,B.asn1.ASN1Object);B.asn1.DERObjectIdentifier=function(t){var e=function(n){var i=n.toString(16);return i.length==1&&(i="0"+i),i},r=function(n){var i="",s=new K(n,10),o=s.toString(2),u=7-o.length%7;u==7&&(u=0);for(var l="",a=0;a<u;a++)l+="0";o=l+o;for(var a=0;a<o.length-1;a+=7){var c=o.substring(a,a+7);a!=o.length-7&&(c="1"+c),i+=e(parseInt(c,2))}return i};B.asn1.DERObjectIdentifier.superclass.constructor.call(this),this.hT="06",this.setValueHex=function(n){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=n},this.setValueOidString=function(n){if(!n.match(/^[0-9.]+$/))throw"malformed oid string: "+n;var i="",s=n.split("."),o=parseInt(s[0])*40+parseInt(s[1]);i+=e(o),s.splice(0,2);for(var u=0;u<s.length;u++)i+=r(s[u]);this.hTLV=null,this.isModified=!0,this.s=null,this.hV=i},this.setValueName=function(n){var i=B.asn1.x509.OID.name2oid(n);if(i!=="")this.setValueOidString(i);else throw"DERObjectIdentifier oidName undefined: "+n},this.getFreshValueHex=function(){return this.hV},t!==void 0&&(typeof t=="string"?t.match(/^[0-2].[0-9.]+$/)?this.setValueOidString(t):this.setValueName(t):t.oid!==void 0?this.setValueOidString(t.oid):t.hex!==void 0?this.setValueHex(t.hex):t.name!==void 0&&this.setValueName(t.name))};ee(B.asn1.DERObjectIdentifier,B.asn1.ASN1Object);B.asn1.DEREnumerated=function(t){B.asn1.DEREnumerated.superclass.constructor.call(this),this.hT="0a",this.setByBigInteger=function(e){this.hTLV=null,this.isModified=!0,this.hV=B.asn1.ASN1Util.bigIntToMinTwosComplementsHex(e)},this.setByInteger=function(e){var r=new K(String(e),10);this.setByBigInteger(r)},this.setValueHex=function(e){this.hV=e},this.getFreshValueHex=function(){return this.hV},typeof t!="undefined"&&(typeof t.int!="undefined"?this.setByInteger(t.int):typeof t=="number"?this.setByInteger(t):typeof t.hex!="undefined"&&this.setValueHex(t.hex))};ee(B.asn1.DEREnumerated,B.asn1.ASN1Object);B.asn1.DERUTF8String=function(t){B.asn1.DERUTF8String.superclass.constructor.call(this,t),this.hT="0c"};ee(B.asn1.DERUTF8String,B.asn1.DERAbstractString);B.asn1.DERNumericString=function(t){B.asn1.DERNumericString.superclass.constructor.call(this,t),this.hT="12"};ee(B.asn1.DERNumericString,B.asn1.DERAbstractString);B.asn1.DERPrintableString=function(t){B.asn1.DERPrintableString.superclass.constructor.call(this,t),this.hT="13"};ee(B.asn1.DERPrintableString,B.asn1.DERAbstractString);B.asn1.DERTeletexString=function(t){B.asn1.DERTeletexString.superclass.constructor.call(this,t),this.hT="14"};ee(B.asn1.DERTeletexString,B.asn1.DERAbstractString);B.asn1.DERIA5String=function(t){B.asn1.DERIA5String.superclass.constructor.call(this,t),this.hT="16"};ee(B.asn1.DERIA5String,B.asn1.DERAbstractString);B.asn1.DERUTCTime=function(t){B.asn1.DERUTCTime.superclass.constructor.call(this,t),this.hT="17",this.setByDate=function(e){this.hTLV=null,this.isModified=!0,this.date=e,this.s=this.formatDate(this.date,"utc"),this.hV=stohex(this.s)},this.getFreshValueHex=function(){return typeof this.date=="undefined"&&typeof this.s=="undefined"&&(this.date=new Date,this.s=this.formatDate(this.date,"utc"),this.hV=stohex(this.s)),this.hV},t!==void 0&&(t.str!==void 0?this.setString(t.str):typeof t=="string"&&t.match(/^[0-9]{12}Z$/)?this.setString(t):t.hex!==void 0?this.setStringHex(t.hex):t.date!==void 0&&this.setByDate(t.date))};ee(B.asn1.DERUTCTime,B.asn1.DERAbstractTime);B.asn1.DERGeneralizedTime=function(t){B.asn1.DERGeneralizedTime.superclass.constructor.call(this,t),this.hT="18",this.withMillis=!1,this.setByDate=function(e){this.hTLV=null,this.isModified=!0,this.date=e,this.s=this.formatDate(this.date,"gen",this.withMillis),this.hV=stohex(this.s)},this.getFreshValueHex=function(){return this.date===void 0&&this.s===void 0&&(this.date=new Date,this.s=this.formatDate(this.date,"gen",this.withMillis),this.hV=stohex(this.s)),this.hV},t!==void 0&&(t.str!==void 0?this.setString(t.str):typeof t=="string"&&t.match(/^[0-9]{14}Z$/)?this.setString(t):t.hex!==void 0?this.setStringHex(t.hex):t.date!==void 0&&this.setByDate(t.date),t.millis===!0&&(this.withMillis=!0))};ee(B.asn1.DERGeneralizedTime,B.asn1.DERAbstractTime);B.asn1.DERSequence=function(t){B.asn1.DERSequence.superclass.constructor.call(this,t),this.hT="30",this.getFreshValueHex=function(){for(var e="",r=0;r<this.asn1Array.length;r++){var n=this.asn1Array[r];e+=n.getEncodedHex()}return this.hV=e,this.hV}};ee(B.asn1.DERSequence,B.asn1.DERAbstractStructured);B.asn1.DERSet=function(t){B.asn1.DERSet.superclass.constructor.call(this,t),this.hT="31",this.sortFlag=!0,this.getFreshValueHex=function(){for(var e=new Array,r=0;r<this.asn1Array.length;r++){var n=this.asn1Array[r];e.push(n.getEncodedHex())}return this.sortFlag==!0&&e.sort(),this.hV=e.join(""),this.hV},typeof t!="undefined"&&typeof t.sortflag!="undefined"&&t.sortflag==!1&&(this.sortFlag=!1)};ee(B.asn1.DERSet,B.asn1.DERAbstractStructured);B.asn1.DERTaggedObject=function(t){B.asn1.DERTaggedObject.superclass.constructor.call(this),this.hT="a0",this.hV="",this.isExplicit=!0,this.asn1Object=null,this.setASN1Object=function(e,r,n){this.hT=r,this.isExplicit=e,this.asn1Object=n,this.isExplicit?(this.hV=this.asn1Object.getEncodedHex(),this.hTLV=null,this.isModified=!0):(this.hV=null,this.hTLV=n.getEncodedHex(),this.hTLV=this.hTLV.replace(/^../,r),this.isModified=!1)},this.getFreshValueHex=function(){return this.hV},typeof t!="undefined"&&(typeof t.tag!="undefined"&&(this.hT=t.tag),typeof t.explicit!="undefined"&&(this.isExplicit=t.explicit),typeof t.obj!="undefined"&&(this.asn1Object=t.obj,this.setASN1Object(this.isExplicit,this.hT,this.asn1Object)))};ee(B.asn1.DERTaggedObject,B.asn1.ASN1Object);var Og=(function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(n[s]=i[s])},t(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),ki=(function(t){Og(e,t);function e(r){var n=t.call(this)||this;return r&&(typeof r=="string"?n.parseKey(r):(e.hasPrivateKeyProperty(r)||e.hasPublicKeyProperty(r))&&n.parsePropertiesFrom(r)),n}return e.prototype.parseKey=function(r){try{var n=0,i=0,s=/^\s*(?:[0-9A-Fa-f][0-9A-Fa-f]\s*)+$/,o=s.test(r)?Xd.decode(r):nn.unarmor(r),u=rg.decode(o);if(u.sub.length===3&&(u=u.sub[2].sub[0]),u.sub.length===9){n=u.sub[1].getHexStringValue(),this.n=Z(n,16),i=u.sub[2].getHexStringValue(),this.e=parseInt(i,16);var l=u.sub[3].getHexStringValue();this.d=Z(l,16);var a=u.sub[4].getHexStringValue();this.p=Z(a,16);var c=u.sub[5].getHexStringValue();this.q=Z(c,16);var f=u.sub[6].getHexStringValue();this.dmp1=Z(f,16);var h=u.sub[7].getHexStringValue();this.dmq1=Z(h,16);var p=u.sub[8].getHexStringValue();this.coeff=Z(p,16)}else if(u.sub.length===2)if(u.sub[0].sub){var d=u.sub[1],g=d.sub[0];n=g.sub[0].getHexStringValue(),this.n=Z(n,16),i=g.sub[1].getHexStringValue(),this.e=parseInt(i,16)}else n=u.sub[0].getHexStringValue(),this.n=Z(n,16),i=u.sub[1].getHexStringValue(),this.e=parseInt(i,16);else return!1;return!0}catch(m){return!1}},e.prototype.getPrivateBaseKey=function(){var r={array:[new B.asn1.DERInteger({int:0}),new B.asn1.DERInteger({bigint:this.n}),new B.asn1.DERInteger({int:this.e}),new B.asn1.DERInteger({bigint:this.d}),new B.asn1.DERInteger({bigint:this.p}),new B.asn1.DERInteger({bigint:this.q}),new B.asn1.DERInteger({bigint:this.dmp1}),new B.asn1.DERInteger({bigint:this.dmq1}),new B.asn1.DERInteger({bigint:this.coeff})]},n=new B.asn1.DERSequence(r);return n.getEncodedHex()},e.prototype.getPrivateBaseKeyB64=function(){return bt(this.getPrivateBaseKey())},e.prototype.getPublicBaseKey=function(){var r=new B.asn1.DERSequence({array:[new B.asn1.DERObjectIdentifier({oid:"1.2.840.113549.1.1.1"}),new B.asn1.DERNull]}),n=new B.asn1.DERSequence({array:[new B.asn1.DERInteger({bigint:this.n}),new B.asn1.DERInteger({int:this.e})]}),i=new B.asn1.DERBitString({hex:"00"+n.getEncodedHex()}),s=new B.asn1.DERSequence({array:[r,i]});return s.getEncodedHex()},e.prototype.getPublicBaseKeyB64=function(){return bt(this.getPublicBaseKey())},e.wordwrap=function(r,n){if(n=n||64,!r)return r;var i="(.{1,"+n+`})( +|$
|
|
33
|
+
*/var j={};(typeof j.asn1=="undefined"||!j.asn1)&&(j.asn1={});j.asn1.ASN1Util=new function(){this.integerToByteHex=function(t){var e=t.toString(16);return e.length%2==1&&(e="0"+e),e},this.bigIntToMinTwosComplementsHex=function(t){var e=t.toString(16);if(e.substring(0,1)!="-")e.length%2==1?e="0"+e:e.match(/^[0-7]/)||(e="00"+e);else{var r=e.substring(1),n=r.length;n%2==1?n+=1:e.match(/^[0-7]/)||(n+=2);for(var i="",s=0;s<n;s++)i+="f";var o=new K(i,16),u=o.xor(t).add(K.ONE);e=u.toString(16).replace(/^-/,"")}return e},this.getPEMStringFromHex=function(t,e){return hextopem(t,e)},this.newObject=function(t){var e=j,r=e.asn1,n=r.DERBoolean,i=r.DERInteger,s=r.DERBitString,o=r.DEROctetString,u=r.DERNull,l=r.DERObjectIdentifier,a=r.DEREnumerated,c=r.DERUTF8String,f=r.DERNumericString,h=r.DERPrintableString,p=r.DERTeletexString,d=r.DERIA5String,g=r.DERUTCTime,v=r.DERGeneralizedTime,E=r.DERSequence,m=r.DERSet,b=r.DERTaggedObject,_=r.ASN1Util.newObject,w=Object.keys(t);if(w.length!=1)throw"key of param shall be only one.";var y=w[0];if(":bool:int:bitstr:octstr:null:oid:enum:utf8str:numstr:prnstr:telstr:ia5str:utctime:gentime:seq:set:tag:".indexOf(":"+y+":")==-1)throw"undefined key: "+y;if(y=="bool")return new n(t[y]);if(y=="int")return new i(t[y]);if(y=="bitstr")return new s(t[y]);if(y=="octstr")return new o(t[y]);if(y=="null")return new u(t[y]);if(y=="oid")return new l(t[y]);if(y=="enum")return new a(t[y]);if(y=="utf8str")return new c(t[y]);if(y=="numstr")return new f(t[y]);if(y=="prnstr")return new h(t[y]);if(y=="telstr")return new p(t[y]);if(y=="ia5str")return new d(t[y]);if(y=="utctime")return new g(t[y]);if(y=="gentime")return new v(t[y]);if(y=="seq"){for(var T=t[y],O=[],L=0;L<T.length;L++){var S=_(T[L]);O.push(S)}return new E({array:O})}if(y=="set"){for(var T=t[y],O=[],L=0;L<T.length;L++){var S=_(T[L]);O.push(S)}return new m({array:O})}if(y=="tag"){var A=t[y];if(Object.prototype.toString.call(A)==="[object Array]"&&A.length==3){var M=_(A[2]);return new b({tag:A[0],explicit:A[1],obj:M})}else{var P={};if(A.explicit!==void 0&&(P.explicit=A.explicit),A.tag!==void 0&&(P.tag=A.tag),A.obj===void 0)throw"obj shall be specified for 'tag'.";return P.obj=_(A.obj),new b(P)}}},this.jsonToASN1HEX=function(t){var e=this.newObject(t);return e.getEncodedHex()}};j.asn1.ASN1Util.oidHexToInt=function(t){for(var i="",e=parseInt(t.substring(0,2),16),r=Math.floor(e/40),n=e%40,i=r+"."+n,s="",o=2;o<t.length;o+=2){var u=parseInt(t.substring(o,o+2),16),l=("00000000"+u.toString(2)).slice(-8);if(s=s+l.substring(1,8),l.substring(0,1)=="0"){var a=new K(s,2);i=i+"."+a.toString(10),s=""}}return i};j.asn1.ASN1Util.oidIntToHex=function(t){var e=function(u){var l=u.toString(16);return l.length==1&&(l="0"+l),l},r=function(u){var l="",a=new K(u,10),c=a.toString(2),f=7-c.length%7;f==7&&(f=0);for(var h="",p=0;p<f;p++)h+="0";c=h+c;for(var p=0;p<c.length-1;p+=7){var d=c.substring(p,p+7);p!=c.length-7&&(d="1"+d),l+=e(parseInt(d,2))}return l};if(!t.match(/^[0-9.]+$/))throw"malformed oid string: "+t;var n="",i=t.split("."),s=parseInt(i[0])*40+parseInt(i[1]);n+=e(s),i.splice(0,2);for(var o=0;o<i.length;o++)n+=r(i[o]);return n};j.asn1.ASN1Object=function(){var t="";this.getLengthHexFromValue=function(){if(typeof this.hV=="undefined"||this.hV==null)throw"this.hV is null or undefined.";if(this.hV.length%2==1)throw"value hex must be even length: n="+t.length+",v="+this.hV;var e=this.hV.length/2,r=e.toString(16);if(r.length%2==1&&(r="0"+r),e<128)return r;var n=r.length/2;if(n>15)throw"ASN.1 length too long to represent by 8x: n = "+e.toString(16);var i=128+n;return i.toString(16)+r},this.getEncodedHex=function(){return(this.hTLV==null||this.isModified)&&(this.hV=this.getFreshValueHex(),this.hL=this.getLengthHexFromValue(),this.hTLV=this.hT+this.hL+this.hV,this.isModified=!1),this.hTLV},this.getValueHex=function(){return this.getEncodedHex(),this.hV},this.getFreshValueHex=function(){return""}};j.asn1.DERAbstractString=function(t){j.asn1.DERAbstractString.superclass.constructor.call(this),this.getString=function(){return this.s},this.setString=function(e){this.hTLV=null,this.isModified=!0,this.s=e,this.hV=stohex(this.s)},this.setStringHex=function(e){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=e},this.getFreshValueHex=function(){return this.hV},typeof t!="undefined"&&(typeof t=="string"?this.setString(t):typeof t.str!="undefined"?this.setString(t.str):typeof t.hex!="undefined"&&this.setStringHex(t.hex))};ee(j.asn1.DERAbstractString,j.asn1.ASN1Object);j.asn1.DERAbstractTime=function(t){j.asn1.DERAbstractTime.superclass.constructor.call(this),this.localDateToUTC=function(e){utc=e.getTime()+e.getTimezoneOffset()*6e4;var r=new Date(utc);return r},this.formatDate=function(e,r,n){var i=this.zeroPadding,s=this.localDateToUTC(e),o=String(s.getFullYear());r=="utc"&&(o=o.substring(2,4));var u=i(String(s.getMonth()+1),2),l=i(String(s.getDate()),2),a=i(String(s.getHours()),2),c=i(String(s.getMinutes()),2),f=i(String(s.getSeconds()),2),h=o+u+l+a+c+f;if(n===!0){var p=s.getMilliseconds();if(p!=0){var d=i(String(p),3);d=d.replace(/[0]+$/,""),h=h+"."+d}}return h+"Z"},this.zeroPadding=function(e,r){return e.length>=r?e:new Array(r-e.length+1).join("0")+e},this.getString=function(){return this.s},this.setString=function(e){this.hTLV=null,this.isModified=!0,this.s=e,this.hV=stohex(e)},this.setByDateValue=function(e,r,n,i,s,o){var u=new Date(Date.UTC(e,r-1,n,i,s,o,0));this.setByDate(u)},this.getFreshValueHex=function(){return this.hV}};ee(j.asn1.DERAbstractTime,j.asn1.ASN1Object);j.asn1.DERAbstractStructured=function(t){j.asn1.DERAbstractString.superclass.constructor.call(this),this.setByASN1ObjectArray=function(e){this.hTLV=null,this.isModified=!0,this.asn1Array=e},this.appendASN1Object=function(e){this.hTLV=null,this.isModified=!0,this.asn1Array.push(e)},this.asn1Array=new Array,typeof t!="undefined"&&typeof t.array!="undefined"&&(this.asn1Array=t.array)};ee(j.asn1.DERAbstractStructured,j.asn1.ASN1Object);j.asn1.DERBoolean=function(){j.asn1.DERBoolean.superclass.constructor.call(this),this.hT="01",this.hTLV="0101ff"};ee(j.asn1.DERBoolean,j.asn1.ASN1Object);j.asn1.DERInteger=function(t){j.asn1.DERInteger.superclass.constructor.call(this),this.hT="02",this.setByBigInteger=function(e){this.hTLV=null,this.isModified=!0,this.hV=j.asn1.ASN1Util.bigIntToMinTwosComplementsHex(e)},this.setByInteger=function(e){var r=new K(String(e),10);this.setByBigInteger(r)},this.setValueHex=function(e){this.hV=e},this.getFreshValueHex=function(){return this.hV},typeof t!="undefined"&&(typeof t.bigint!="undefined"?this.setByBigInteger(t.bigint):typeof t.int!="undefined"?this.setByInteger(t.int):typeof t=="number"?this.setByInteger(t):typeof t.hex!="undefined"&&this.setValueHex(t.hex))};ee(j.asn1.DERInteger,j.asn1.ASN1Object);j.asn1.DERBitString=function(t){if(t!==void 0&&typeof t.obj!="undefined"){var e=j.asn1.ASN1Util.newObject(t.obj);t.hex="00"+e.getEncodedHex()}j.asn1.DERBitString.superclass.constructor.call(this),this.hT="03",this.setHexValueIncludingUnusedBits=function(r){this.hTLV=null,this.isModified=!0,this.hV=r},this.setUnusedBitsAndHexValue=function(r,n){if(r<0||7<r)throw"unused bits shall be from 0 to 7: u = "+r;var i="0"+r;this.hTLV=null,this.isModified=!0,this.hV=i+n},this.setByBinaryString=function(r){r=r.replace(/0+$/,"");var n=8-r.length%8;n==8&&(n=0);for(var i=0;i<=n;i++)r+="0";for(var s="",i=0;i<r.length-1;i+=8){var o=r.substring(i,i+8),u=parseInt(o,2).toString(16);u.length==1&&(u="0"+u),s+=u}this.hTLV=null,this.isModified=!0,this.hV="0"+n+s},this.setByBooleanArray=function(r){for(var n="",i=0;i<r.length;i++)r[i]==!0?n+="1":n+="0";this.setByBinaryString(n)},this.newFalseArray=function(r){for(var n=new Array(r),i=0;i<r;i++)n[i]=!1;return n},this.getFreshValueHex=function(){return this.hV},typeof t!="undefined"&&(typeof t=="string"&&t.toLowerCase().match(/^[0-9a-f]+$/)?this.setHexValueIncludingUnusedBits(t):typeof t.hex!="undefined"?this.setHexValueIncludingUnusedBits(t.hex):typeof t.bin!="undefined"?this.setByBinaryString(t.bin):typeof t.array!="undefined"&&this.setByBooleanArray(t.array))};ee(j.asn1.DERBitString,j.asn1.ASN1Object);j.asn1.DEROctetString=function(t){if(t!==void 0&&typeof t.obj!="undefined"){var e=j.asn1.ASN1Util.newObject(t.obj);t.hex=e.getEncodedHex()}j.asn1.DEROctetString.superclass.constructor.call(this,t),this.hT="04"};ee(j.asn1.DEROctetString,j.asn1.DERAbstractString);j.asn1.DERNull=function(){j.asn1.DERNull.superclass.constructor.call(this),this.hT="05",this.hTLV="0500"};ee(j.asn1.DERNull,j.asn1.ASN1Object);j.asn1.DERObjectIdentifier=function(t){var e=function(n){var i=n.toString(16);return i.length==1&&(i="0"+i),i},r=function(n){var i="",s=new K(n,10),o=s.toString(2),u=7-o.length%7;u==7&&(u=0);for(var l="",a=0;a<u;a++)l+="0";o=l+o;for(var a=0;a<o.length-1;a+=7){var c=o.substring(a,a+7);a!=o.length-7&&(c="1"+c),i+=e(parseInt(c,2))}return i};j.asn1.DERObjectIdentifier.superclass.constructor.call(this),this.hT="06",this.setValueHex=function(n){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=n},this.setValueOidString=function(n){if(!n.match(/^[0-9.]+$/))throw"malformed oid string: "+n;var i="",s=n.split("."),o=parseInt(s[0])*40+parseInt(s[1]);i+=e(o),s.splice(0,2);for(var u=0;u<s.length;u++)i+=r(s[u]);this.hTLV=null,this.isModified=!0,this.s=null,this.hV=i},this.setValueName=function(n){var i=j.asn1.x509.OID.name2oid(n);if(i!=="")this.setValueOidString(i);else throw"DERObjectIdentifier oidName undefined: "+n},this.getFreshValueHex=function(){return this.hV},t!==void 0&&(typeof t=="string"?t.match(/^[0-2].[0-9.]+$/)?this.setValueOidString(t):this.setValueName(t):t.oid!==void 0?this.setValueOidString(t.oid):t.hex!==void 0?this.setValueHex(t.hex):t.name!==void 0&&this.setValueName(t.name))};ee(j.asn1.DERObjectIdentifier,j.asn1.ASN1Object);j.asn1.DEREnumerated=function(t){j.asn1.DEREnumerated.superclass.constructor.call(this),this.hT="0a",this.setByBigInteger=function(e){this.hTLV=null,this.isModified=!0,this.hV=j.asn1.ASN1Util.bigIntToMinTwosComplementsHex(e)},this.setByInteger=function(e){var r=new K(String(e),10);this.setByBigInteger(r)},this.setValueHex=function(e){this.hV=e},this.getFreshValueHex=function(){return this.hV},typeof t!="undefined"&&(typeof t.int!="undefined"?this.setByInteger(t.int):typeof t=="number"?this.setByInteger(t):typeof t.hex!="undefined"&&this.setValueHex(t.hex))};ee(j.asn1.DEREnumerated,j.asn1.ASN1Object);j.asn1.DERUTF8String=function(t){j.asn1.DERUTF8String.superclass.constructor.call(this,t),this.hT="0c"};ee(j.asn1.DERUTF8String,j.asn1.DERAbstractString);j.asn1.DERNumericString=function(t){j.asn1.DERNumericString.superclass.constructor.call(this,t),this.hT="12"};ee(j.asn1.DERNumericString,j.asn1.DERAbstractString);j.asn1.DERPrintableString=function(t){j.asn1.DERPrintableString.superclass.constructor.call(this,t),this.hT="13"};ee(j.asn1.DERPrintableString,j.asn1.DERAbstractString);j.asn1.DERTeletexString=function(t){j.asn1.DERTeletexString.superclass.constructor.call(this,t),this.hT="14"};ee(j.asn1.DERTeletexString,j.asn1.DERAbstractString);j.asn1.DERIA5String=function(t){j.asn1.DERIA5String.superclass.constructor.call(this,t),this.hT="16"};ee(j.asn1.DERIA5String,j.asn1.DERAbstractString);j.asn1.DERUTCTime=function(t){j.asn1.DERUTCTime.superclass.constructor.call(this,t),this.hT="17",this.setByDate=function(e){this.hTLV=null,this.isModified=!0,this.date=e,this.s=this.formatDate(this.date,"utc"),this.hV=stohex(this.s)},this.getFreshValueHex=function(){return typeof this.date=="undefined"&&typeof this.s=="undefined"&&(this.date=new Date,this.s=this.formatDate(this.date,"utc"),this.hV=stohex(this.s)),this.hV},t!==void 0&&(t.str!==void 0?this.setString(t.str):typeof t=="string"&&t.match(/^[0-9]{12}Z$/)?this.setString(t):t.hex!==void 0?this.setStringHex(t.hex):t.date!==void 0&&this.setByDate(t.date))};ee(j.asn1.DERUTCTime,j.asn1.DERAbstractTime);j.asn1.DERGeneralizedTime=function(t){j.asn1.DERGeneralizedTime.superclass.constructor.call(this,t),this.hT="18",this.withMillis=!1,this.setByDate=function(e){this.hTLV=null,this.isModified=!0,this.date=e,this.s=this.formatDate(this.date,"gen",this.withMillis),this.hV=stohex(this.s)},this.getFreshValueHex=function(){return this.date===void 0&&this.s===void 0&&(this.date=new Date,this.s=this.formatDate(this.date,"gen",this.withMillis),this.hV=stohex(this.s)),this.hV},t!==void 0&&(t.str!==void 0?this.setString(t.str):typeof t=="string"&&t.match(/^[0-9]{14}Z$/)?this.setString(t):t.hex!==void 0?this.setStringHex(t.hex):t.date!==void 0&&this.setByDate(t.date),t.millis===!0&&(this.withMillis=!0))};ee(j.asn1.DERGeneralizedTime,j.asn1.DERAbstractTime);j.asn1.DERSequence=function(t){j.asn1.DERSequence.superclass.constructor.call(this,t),this.hT="30",this.getFreshValueHex=function(){for(var e="",r=0;r<this.asn1Array.length;r++){var n=this.asn1Array[r];e+=n.getEncodedHex()}return this.hV=e,this.hV}};ee(j.asn1.DERSequence,j.asn1.DERAbstractStructured);j.asn1.DERSet=function(t){j.asn1.DERSet.superclass.constructor.call(this,t),this.hT="31",this.sortFlag=!0,this.getFreshValueHex=function(){for(var e=new Array,r=0;r<this.asn1Array.length;r++){var n=this.asn1Array[r];e.push(n.getEncodedHex())}return this.sortFlag==!0&&e.sort(),this.hV=e.join(""),this.hV},typeof t!="undefined"&&typeof t.sortflag!="undefined"&&t.sortflag==!1&&(this.sortFlag=!1)};ee(j.asn1.DERSet,j.asn1.DERAbstractStructured);j.asn1.DERTaggedObject=function(t){j.asn1.DERTaggedObject.superclass.constructor.call(this),this.hT="a0",this.hV="",this.isExplicit=!0,this.asn1Object=null,this.setASN1Object=function(e,r,n){this.hT=r,this.isExplicit=e,this.asn1Object=n,this.isExplicit?(this.hV=this.asn1Object.getEncodedHex(),this.hTLV=null,this.isModified=!0):(this.hV=null,this.hTLV=n.getEncodedHex(),this.hTLV=this.hTLV.replace(/^../,r),this.isModified=!1)},this.getFreshValueHex=function(){return this.hV},typeof t!="undefined"&&(typeof t.tag!="undefined"&&(this.hT=t.tag),typeof t.explicit!="undefined"&&(this.isExplicit=t.explicit),typeof t.obj!="undefined"&&(this.asn1Object=t.obj,this.setASN1Object(this.isExplicit,this.hT,this.asn1Object)))};ee(j.asn1.DERTaggedObject,j.asn1.ASN1Object);var xg=(function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(n[s]=i[s])},t(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),qi=(function(t){xg(e,t);function e(r){var n=t.call(this)||this;return r&&(typeof r=="string"?n.parseKey(r):(e.hasPrivateKeyProperty(r)||e.hasPublicKeyProperty(r))&&n.parsePropertiesFrom(r)),n}return e.prototype.parseKey=function(r){try{var n=0,i=0,s=/^\s*(?:[0-9A-Fa-f][0-9A-Fa-f]\s*)+$/,o=s.test(r)?Qd.decode(r):sn.unarmor(r),u=tg.decode(o);if(u.sub.length===3&&(u=u.sub[2].sub[0]),u.sub.length===9){n=u.sub[1].getHexStringValue(),this.n=Z(n,16),i=u.sub[2].getHexStringValue(),this.e=parseInt(i,16);var l=u.sub[3].getHexStringValue();this.d=Z(l,16);var a=u.sub[4].getHexStringValue();this.p=Z(a,16);var c=u.sub[5].getHexStringValue();this.q=Z(c,16);var f=u.sub[6].getHexStringValue();this.dmp1=Z(f,16);var h=u.sub[7].getHexStringValue();this.dmq1=Z(h,16);var p=u.sub[8].getHexStringValue();this.coeff=Z(p,16)}else if(u.sub.length===2)if(u.sub[0].sub){var d=u.sub[1],g=d.sub[0];n=g.sub[0].getHexStringValue(),this.n=Z(n,16),i=g.sub[1].getHexStringValue(),this.e=parseInt(i,16)}else n=u.sub[0].getHexStringValue(),this.n=Z(n,16),i=u.sub[1].getHexStringValue(),this.e=parseInt(i,16);else return!1;return!0}catch(v){return!1}},e.prototype.getPrivateBaseKey=function(){var r={array:[new j.asn1.DERInteger({int:0}),new j.asn1.DERInteger({bigint:this.n}),new j.asn1.DERInteger({int:this.e}),new j.asn1.DERInteger({bigint:this.d}),new j.asn1.DERInteger({bigint:this.p}),new j.asn1.DERInteger({bigint:this.q}),new j.asn1.DERInteger({bigint:this.dmp1}),new j.asn1.DERInteger({bigint:this.dmq1}),new j.asn1.DERInteger({bigint:this.coeff})]},n=new j.asn1.DERSequence(r);return n.getEncodedHex()},e.prototype.getPrivateBaseKeyB64=function(){return bt(this.getPrivateBaseKey())},e.prototype.getPublicBaseKey=function(){var r=new j.asn1.DERSequence({array:[new j.asn1.DERObjectIdentifier({oid:"1.2.840.113549.1.1.1"}),new j.asn1.DERNull]}),n=new j.asn1.DERSequence({array:[new j.asn1.DERInteger({bigint:this.n}),new j.asn1.DERInteger({int:this.e})]}),i=new j.asn1.DERBitString({hex:"00"+n.getEncodedHex()}),s=new j.asn1.DERSequence({array:[r,i]});return s.getEncodedHex()},e.prototype.getPublicBaseKeyB64=function(){return bt(this.getPublicBaseKey())},e.wordwrap=function(r,n){if(n=n||64,!r)return r;var i="(.{1,"+n+`})( +|$
|
|
34
34
|
?)|(.{1,`+n+"})";return r.match(RegExp(i,"g")).join(`
|
|
35
35
|
`)},e.prototype.getPrivateKey=function(){var r=`-----BEGIN RSA PRIVATE KEY-----
|
|
36
36
|
`;return r+=e.wordwrap(this.getPrivateBaseKeyB64())+`
|
|
37
37
|
`,r+="-----END RSA PRIVATE KEY-----",r},e.prototype.getPublicKey=function(){var r=`-----BEGIN PUBLIC KEY-----
|
|
38
38
|
`;return r+=e.wordwrap(this.getPublicBaseKeyB64())+`
|
|
39
|
-
`,r+="-----END PUBLIC KEY-----",r},e.hasPublicKeyProperty=function(r){return r=r||{},r.hasOwnProperty("n")&&r.hasOwnProperty("e")},e.hasPrivateKeyProperty=function(r){return r=r||{},r.hasOwnProperty("n")&&r.hasOwnProperty("e")&&r.hasOwnProperty("d")&&r.hasOwnProperty("p")&&r.hasOwnProperty("q")&&r.hasOwnProperty("dmp1")&&r.hasOwnProperty("dmq1")&&r.hasOwnProperty("coeff")},e.prototype.parsePropertiesFrom=function(r){this.n=r.n,this.e=r.e,r.hasOwnProperty("d")&&(this.d=r.d,this.p=r.p,this.q=r.q,this.dmp1=r.dmp1,this.dmq1=r.dmq1,this.coeff=r.coeff)},e})(
|
|
39
|
+
`,r+="-----END PUBLIC KEY-----",r},e.hasPublicKeyProperty=function(r){return r=r||{},r.hasOwnProperty("n")&&r.hasOwnProperty("e")},e.hasPrivateKeyProperty=function(r){return r=r||{},r.hasOwnProperty("n")&&r.hasOwnProperty("e")&&r.hasOwnProperty("d")&&r.hasOwnProperty("p")&&r.hasOwnProperty("q")&&r.hasOwnProperty("dmp1")&&r.hasOwnProperty("dmq1")&&r.hasOwnProperty("coeff")},e.prototype.parsePropertiesFrom=function(r){this.n=r.n,this.e=r.e,r.hasOwnProperty("d")&&(this.d=r.d,this.p=r.p,this.q=r.q,this.dmp1=r.dmp1,this.dmq1=r.dmq1,this.coeff=r.coeff)},e})(Sg),jr,Og=typeof process!="undefined"?(jr=Na)===null||jr===void 0?void 0:jr.npm_package_version:void 0,$g=(function(){function t(e){e===void 0&&(e={}),this.default_key_size=e.default_key_size?parseInt(e.default_key_size,10):1024,this.default_public_exponent=e.default_public_exponent||"010001",this.log=e.log||!1,this.key=e.key||null}return t.prototype.setKey=function(e){e?(this.log&&this.key&&console.warn("A key was already set, overriding existing."),this.key=new qi(e)):!this.key&&this.log&&console.error("A key was not set.")},t.prototype.setPrivateKey=function(e){this.setKey(e)},t.prototype.setPublicKey=function(e){this.setKey(e)},t.prototype.decrypt=function(e){try{return this.getKey().decrypt(Ni(e))}catch(r){return!1}},t.prototype.encrypt=function(e){try{return bt(this.getKey().encrypt(e))}catch(r){return!1}},t.prototype.encryptOAEP=function(e){try{return bt(this.getKey().encrypt(e,Eg))}catch(r){return!1}},t.prototype.sign=function(e,r,n){r===void 0&&(r=function(i){return i}),n===void 0&&(n="");try{return bt(this.getKey().sign(e,r,n))}catch(i){return!1}},t.prototype.signSha256=function(e){return this.sign(e,function(r){return Vi(on(r))},"sha256")},t.prototype.verify=function(e,r,n){n===void 0&&(n=function(i){return i});try{return this.getKey().verify(e,Ni(r),n)}catch(i){return!1}},t.prototype.verifySha256=function(e,r){return this.verify(e,r,function(n){return Vi(on(n))})},t.prototype.getKey=function(e){if(!this.key){if(this.key=new qi,e&&{}.toString.call(e)==="[object Function]"){this.key.generateAsync(this.default_key_size,this.default_public_exponent,e);return}this.key.generate(this.default_key_size,this.default_public_exponent)}return this.key},t.prototype.getPrivateKey=function(){return this.getKey().getPrivateKey()},t.prototype.getPrivateKeyB64=function(){return this.getKey().getPrivateBaseKeyB64()},t.prototype.getPublicKey=function(){return this.getKey().getPublicKey()},t.prototype.getPublicKeyB64=function(){return this.getKey().getPublicBaseKeyB64()},t.version=Og,t})();const Dg="MIIBUwIBADANBgkqhkiG9w0BAQEFAASCAT0wggE5AgEAAkEAt3LFMIQHlZwadt5TI3jGfVyzzP7S0Lva+Bt38v32iblNnQ59GpFvpjtEl92KYH0snK+bI/1PU/SNaseSi2ryJQIDAQABAkBGHyXG7MDlbD0lcMhAx9q/cp773fABf70sl3tbM754V+mH8dEiAim398NhhrADz4F4K12H74R39O/0Hjr/VAZlAiEA5+3MoAbnsDOzFP+oT4YZJBjx8MmsukU3AaguPW4tYcMCIQDKfN+Qk/jD3vZlWsUJ23013D2NDSjgcH4gdV71oYb19wIgUMWYhgLhnZPjwmRnEYr6JoApglo6NYT1azZPJEXCuFECIDyQUQYbXCKpw6TZG2oxXigH8dkIgJtwyijHMlnhsE5NAiBxF7HA7U2rDnZ6+VRDXtIg+joD3o1h3bFy2A+QX5yDYA==";function zi(t,e=Dg){const r=new $g;return r.setPrivateKey(e),r.decrypt(t)}const Co=/^(http|https):\/\/[\w.:\-@]*/;function nr(t){return Co.test(t)}var Cg={exports:{}};/*! @preserve
|
|
40
40
|
* numeral.js
|
|
41
41
|
* version : 2.0.6
|
|
42
42
|
* author : Adam Draper
|
|
43
43
|
* license : MIT
|
|
44
44
|
* http://adamwdraper.github.com/Numeral-js/
|
|
45
|
-
*/(function(t){(function(e,r){t.exports?t.exports=r():e.numeral=r()})(oe,function(){var e,r,n="2.0.6",i={},s={},o={currentLocale:"en",zeroFormat:null,nullFormat:null,defaultFormat:"0,0",scalePercentBy100:!0},u={currentLocale:o.currentLocale,zeroFormat:o.zeroFormat,nullFormat:o.nullFormat,defaultFormat:o.defaultFormat,scalePercentBy100:o.scalePercentBy100};function l(a,c){this._input=a,this._value=c}return e=function(a){var c,f,h,p;if(e.isNumeral(a))c=a.value();else if(a===0||typeof a=="undefined")c=0;else if(a===null||r.isNaN(a))c=null;else if(typeof a=="string")if(u.zeroFormat&&a===u.zeroFormat)c=0;else if(u.nullFormat&&a===u.nullFormat||!a.replace(/[^0-9]+/g,"").length)c=null;else{for(f in i)if(p=typeof i[f].regexps.unformat=="function"?i[f].regexps.unformat():i[f].regexps.unformat,p&&a.match(p)){h=i[f].unformat;break}h=h||e._.stringToNumber,c=h(a)}else c=Number(a)||null;return new l(a,c)},e.version=n,e.isNumeral=function(a){return a instanceof l},e._=r={numberToFormat:function(a,c,f){var h=s[e.options.currentLocale],p=!1,d=!1,g=0,m="",w=1e12,v=1e9,b=1e6,_=1e3,E="",y=!1,T,x,U,S,A,M,j;if(a=a||0,x=Math.abs(a),e._.includes(c,"(")?(p=!0,c=c.replace(/[\(|\)]/g,"")):(e._.includes(c,"+")||e._.includes(c,"-"))&&(A=e._.includes(c,"+")?c.indexOf("+"):a<0?c.indexOf("-"):-1,c=c.replace(/[\+|\-]/g,"")),e._.includes(c,"a")&&(T=c.match(/a(k|m|b|t)?/),T=T?T[1]:!1,e._.includes(c," a")&&(m=" "),c=c.replace(new RegExp(m+"a[kmbt]?"),""),x>=w&&!T||T==="t"?(m+=h.abbreviations.trillion,a=a/w):x<w&&x>=v&&!T||T==="b"?(m+=h.abbreviations.billion,a=a/v):x<v&&x>=b&&!T||T==="m"?(m+=h.abbreviations.million,a=a/b):(x<b&&x>=_&&!T||T==="k")&&(m+=h.abbreviations.thousand,a=a/_)),e._.includes(c,"[.]")&&(d=!0,c=c.replace("[.]",".")),U=a.toString().split(".")[0],S=c.split(".")[1],M=c.indexOf(","),g=(c.split(".")[0].split(",")[0].match(/0/g)||[]).length,S?(e._.includes(S,"[")?(S=S.replace("]",""),S=S.split("["),E=e._.toFixed(a,S[0].length+S[1].length,f,S[1].length)):E=e._.toFixed(a,S.length,f),U=E.split(".")[0],e._.includes(E,".")?E=h.delimiters.decimal+E.split(".")[1]:E="",d&&Number(E.slice(1))===0&&(E="")):U=e._.toFixed(a,0,f),m&&!T&&Number(U)>=1e3&&m!==h.abbreviations.trillion)switch(U=String(Number(U)/1e3),m){case h.abbreviations.thousand:m=h.abbreviations.million;break;case h.abbreviations.million:m=h.abbreviations.billion;break;case h.abbreviations.billion:m=h.abbreviations.trillion;break}if(e._.includes(U,"-")&&(U=U.slice(1),y=!0),U.length<g)for(var I=g-U.length;I>0;I--)U="0"+U;return M>-1&&(U=U.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+h.delimiters.thousands)),c.indexOf(".")===0&&(U=""),j=U+E+(m||""),p?j=(p&&y?"(":"")+j+(p&&y?")":""):A>=0?j=A===0?(y?"-":"+")+j:j+(y?"-":"+"):y&&(j="-"+j),j},stringToNumber:function(a){var c=s[u.currentLocale],f=a,h={thousand:3,million:6,billion:9,trillion:12},p,d,g;if(u.zeroFormat&&a===u.zeroFormat)d=0;else if(u.nullFormat&&a===u.nullFormat||!a.replace(/[^0-9]+/g,"").length)d=null;else{d=1,c.delimiters.decimal!=="."&&(a=a.replace(/\./g,"").replace(c.delimiters.decimal,"."));for(p in h)if(g=new RegExp("[^a-zA-Z]"+c.abbreviations[p]+"(?:\\)|(\\"+c.currency.symbol+")?(?:\\))?)?$"),f.match(g)){d*=Math.pow(10,h[p]);break}d*=(a.split("-").length+Math.min(a.split("(").length-1,a.split(")").length-1))%2?1:-1,a=a.replace(/[^0-9\.]+/g,""),d*=Number(a)}return d},isNaN:function(a){return typeof a=="number"&&isNaN(a)},includes:function(a,c){return a.indexOf(c)!==-1},insert:function(a,c,f){return a.slice(0,f)+c+a.slice(f)},reduce:function(a,c){if(this===null)throw new TypeError("Array.prototype.reduce called on null or undefined");if(typeof c!="function")throw new TypeError(c+" is not a function");var f=Object(a),h=f.length>>>0,p=0,d;if(arguments.length===3)d=arguments[2];else{for(;p<h&&!(p in f);)p++;if(p>=h)throw new TypeError("Reduce of empty array with no initial value");d=f[p++]}for(;p<h;p++)p in f&&(d=c(d,f[p],p,f));return d},multiplier:function(a){var c=a.toString().split(".");return c.length<2?1:Math.pow(10,c[1].length)},correctionFactor:function(){var a=Array.prototype.slice.call(arguments);return a.reduce(function(c,f){var h=r.multiplier(f);return c>h?c:h},1)},toFixed:function(a,c,f,h){var p=a.toString().split("."),d=c-(h||0),g,m,w,v;return p.length===2?g=Math.min(Math.max(p[1].length,d),c):g=d,w=Math.pow(10,g),v=(f(a+"e+"+g)/w).toFixed(g),h>c-g&&(m=new RegExp("\\.?0{1,"+(h-(c-g))+"}$"),v=v.replace(m,"")),v}},e.options=u,e.formats=i,e.locales=s,e.locale=function(a){return a&&(u.currentLocale=a.toLowerCase()),u.currentLocale},e.localeData=function(a){if(!a)return s[u.currentLocale];if(a=a.toLowerCase(),!s[a])throw new Error("Unknown locale : "+a);return s[a]},e.reset=function(){for(var a in o)u[a]=o[a]},e.zeroFormat=function(a){u.zeroFormat=typeof a=="string"?a:null},e.nullFormat=function(a){u.nullFormat=typeof a=="string"?a:null},e.defaultFormat=function(a){u.defaultFormat=typeof a=="string"?a:"0.0"},e.register=function(a,c,f){if(c=c.toLowerCase(),this[a+"s"][c])throw new TypeError(c+" "+a+" already registered.");return this[a+"s"][c]=f,f},e.validate=function(a,c){var f,h,p,d,g,m,w,v;if(typeof a!="string"&&(a+="",console.warn&&console.warn("Numeral.js: Value is not string. It has been co-erced to: ",a)),a=a.trim(),a.match(/^\d+$/))return!0;if(a==="")return!1;try{w=e.localeData(c)}catch(b){w=e.localeData(e.locale())}return p=w.currency.symbol,g=w.abbreviations,f=w.delimiters.decimal,w.delimiters.thousands==="."?h="\\.":h=w.delimiters.thousands,v=a.match(/^[^\d]+/),v!==null&&(a=a.substr(1),v[0]!==p)||(v=a.match(/[^\d]+$/),v!==null&&(a=a.slice(0,-1),v[0]!==g.thousand&&v[0]!==g.million&&v[0]!==g.billion&&v[0]!==g.trillion))?!1:(m=new RegExp(h+"{2}"),a.match(/[^\d.,]/g)?!1:(d=a.split(f),d.length>2?!1:d.length<2?!!d[0].match(/^\d+.*\d$/)&&!d[0].match(m):d[0].length===1?!!d[0].match(/^\d+$/)&&!d[0].match(m)&&!!d[1].match(/^\d+$/):!!d[0].match(/^\d+.*\d$/)&&!d[0].match(m)&&!!d[1].match(/^\d+$/)))},e.fn=l.prototype={clone:function(){return e(this)},format:function(a,c){var f=this._value,h=a||u.defaultFormat,p,d,g;if(c=c||Math.round,f===0&&u.zeroFormat!==null)d=u.zeroFormat;else if(f===null&&u.nullFormat!==null)d=u.nullFormat;else{for(p in i)if(h.match(i[p].regexps.format)){g=i[p].format;break}g=g||e._.numberToFormat,d=g(f,h,c)}return d},value:function(){return this._value},input:function(){return this._input},set:function(a){return this._value=Number(a),this},add:function(a){var c=r.correctionFactor.call(null,this._value,a);function f(h,p,d,g){return h+Math.round(c*p)}return this._value=r.reduce([this._value,a],f,0)/c,this},subtract:function(a){var c=r.correctionFactor.call(null,this._value,a);function f(h,p,d,g){return h-Math.round(c*p)}return this._value=r.reduce([a],f,Math.round(this._value*c))/c,this},multiply:function(a){function c(f,h,p,d){var g=r.correctionFactor(f,h);return Math.round(f*g)*Math.round(h*g)/Math.round(g*g)}return this._value=r.reduce([this._value,a],c,1),this},divide:function(a){function c(f,h,p,d){var g=r.correctionFactor(f,h);return Math.round(f*g)/Math.round(h*g)}return this._value=r.reduce([this._value,a],c),this},difference:function(a){return Math.abs(e(this._value).subtract(a).value())}},e.register("locale","en",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(a){var c=a%10;return~~(a%100/10)===1?"th":c===1?"st":c===2?"nd":c===3?"rd":"th"},currency:{symbol:"$"}}),(function(){e.register("format","bps",{regexps:{format:/(BPS)/,unformat:/(BPS)/},format:function(a,c,f){var h=e._.includes(c," BPS")?" ":"",p;return a=a*1e4,c=c.replace(/\s?BPS/,""),p=e._.numberToFormat(a,c,f),e._.includes(p,")")?(p=p.split(""),p.splice(-1,0,h+"BPS"),p=p.join("")):p=p+h+"BPS",p},unformat:function(a){return+(e._.stringToNumber(a)*1e-4).toFixed(15)}})})(),(function(){var a={base:1e3,suffixes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]},c={base:1024,suffixes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},f=a.suffixes.concat(c.suffixes.filter(function(p){return a.suffixes.indexOf(p)<0})),h=f.join("|");h="("+h.replace("B","B(?!PS)")+")",e.register("format","bytes",{regexps:{format:/([0\s]i?b)/,unformat:new RegExp(h)},format:function(p,d,g){var m,w=e._.includes(d,"ib")?c:a,v=e._.includes(d," b")||e._.includes(d," ib")?" ":"",b,_,E;for(d=d.replace(/\s?i?b/,""),b=0;b<=w.suffixes.length;b++)if(_=Math.pow(w.base,b),E=Math.pow(w.base,b+1),p===null||p===0||p>=_&&p<E){v+=w.suffixes[b],_>0&&(p=p/_);break}return m=e._.numberToFormat(p,d,g),m+v},unformat:function(p){var d=e._.stringToNumber(p),g,m;if(d){for(g=a.suffixes.length-1;g>=0;g--){if(e._.includes(p,a.suffixes[g])){m=Math.pow(a.base,g);break}if(e._.includes(p,c.suffixes[g])){m=Math.pow(c.base,g);break}}d*=m||1}return d}})})(),(function(){e.register("format","currency",{regexps:{format:/(\$)/},format:function(a,c,f){var h=e.locales[e.options.currentLocale],p={before:c.match(/^([\+|\-|\(|\s|\$]*)/)[0],after:c.match(/([\+|\-|\)|\s|\$]*)$/)[0]},d,g,m;for(c=c.replace(/\s?\$\s?/,""),d=e._.numberToFormat(a,c,f),a>=0?(p.before=p.before.replace(/[\-\(]/,""),p.after=p.after.replace(/[\-\)]/,"")):a<0&&!e._.includes(p.before,"-")&&!e._.includes(p.before,"(")&&(p.before="-"+p.before),m=0;m<p.before.length;m++)switch(g=p.before[m],g){case"$":d=e._.insert(d,h.currency.symbol,m);break;case" ":d=e._.insert(d," ",m+h.currency.symbol.length-1);break}for(m=p.after.length-1;m>=0;m--)switch(g=p.after[m],g){case"$":d=m===p.after.length-1?d+h.currency.symbol:e._.insert(d,h.currency.symbol,-(p.after.length-(1+m)));break;case" ":d=m===p.after.length-1?d+" ":e._.insert(d," ",-(p.after.length-(1+m)+h.currency.symbol.length-1));break}return d}})})(),(function(){e.register("format","exponential",{regexps:{format:/(e\+|e-)/,unformat:/(e\+|e-)/},format:function(a,c,f){var h,p=typeof a=="number"&&!e._.isNaN(a)?a.toExponential():"0e+0",d=p.split("e");return c=c.replace(/e[\+|\-]{1}0/,""),h=e._.numberToFormat(Number(d[0]),c,f),h+"e"+d[1]},unformat:function(a){var c=e._.includes(a,"e+")?a.split("e+"):a.split("e-"),f=Number(c[0]),h=Number(c[1]);h=e._.includes(a,"e-")?h*=-1:h;function p(d,g,m,w){var v=e._.correctionFactor(d,g),b=d*v*(g*v)/(v*v);return b}return e._.reduce([f,Math.pow(10,h)],p,1)}})})(),(function(){e.register("format","ordinal",{regexps:{format:/(o)/},format:function(a,c,f){var h=e.locales[e.options.currentLocale],p,d=e._.includes(c," o")?" ":"";return c=c.replace(/\s?o/,""),d+=h.ordinal(a),p=e._.numberToFormat(a,c,f),p+d}})})(),(function(){e.register("format","percentage",{regexps:{format:/(%)/,unformat:/(%)/},format:function(a,c,f){var h=e._.includes(c," %")?" ":"",p;return e.options.scalePercentBy100&&(a=a*100),c=c.replace(/\s?\%/,""),p=e._.numberToFormat(a,c,f),e._.includes(p,")")?(p=p.split(""),p.splice(-1,0,h+"%"),p=p.join("")):p=p+h+"%",p},unformat:function(a){var c=e._.stringToNumber(a);return e.options.scalePercentBy100?c*.01:c}})})(),(function(){e.register("format","time",{regexps:{format:/(:)/,unformat:/(:)/},format:function(a,c,f){var h=Math.floor(a/60/60),p=Math.floor((a-h*60*60)/60),d=Math.round(a-h*60*60-p*60);return h+":"+(p<10?"0"+p:p)+":"+(d<10?"0"+d:d)},unformat:function(a){var c=a.split(":"),f=0;return c.length===3?(f=f+Number(c[0])*60*60,f=f+Number(c[1])*60,f=f+Number(c[2])):c.length===2&&(f=f+Number(c[0])*60,f=f+Number(c[1])),Number(f)}})})(),e})})(Bg);var Bo={exports:{}};(function(t,e){(function(r,n){t.exports=n()})(oe,(function(){var r=1e3,n=6e4,i=36e5,s="millisecond",o="second",u="minute",l="hour",a="day",c="week",f="month",h="quarter",p="year",d="date",g="Invalid Date",m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,w=/\[([^\]]+)]|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,v={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(I){var C=["th","st","nd","rd"],D=I%100;return"["+I+(C[(D-20)%10]||C[D]||C[0])+"]"}},b=function(I,C,D){var H=String(I);return!H||H.length>=C?I:""+Array(C+1-H.length).join(D)+I},_={s:b,z:function(I){var C=-I.utcOffset(),D=Math.abs(C),H=Math.floor(D/60),F=D%60;return(C<=0?"+":"-")+b(H,2,"0")+":"+b(F,2,"0")},m:function I(C,D){if(C.date()<D.date())return-I(D,C);var H=12*(D.year()-C.year())+(D.month()-C.month()),F=C.clone().add(H,f),q=D-F<0,z=C.clone().add(H+(q?-1:1),f);return+(-(H+(D-F)/(q?F-z:z-F))||0)},a:function(I){return I<0?Math.ceil(I)||0:Math.floor(I)},p:function(I){return{M:f,y:p,w:c,d:a,D:d,h:l,m:u,s:o,ms:s,Q:h}[I]||String(I||"").toLowerCase().replace(/s$/,"")},u:function(I){return I===void 0}},E="en",y={};y[E]=v;var T="$isDayjsObject",x=function(I){return I instanceof M||!(!I||!I[T])},U=function I(C,D,H){var F;if(!C)return E;if(typeof C=="string"){var q=C.toLowerCase();y[q]&&(F=q),D&&(y[q]=D,F=q);var z=C.split("-");if(!F&&z.length>1)return I(z[0])}else{var O=C.name;y[O]=C,F=O}return!H&&F&&(E=F),F||!H&&E},S=function(I,C){if(x(I))return I.clone();var D=typeof C=="object"?C:{};return D.date=I,D.args=arguments,new M(D)},A=_;A.l=U,A.i=x,A.w=function(I,C){return S(I,{locale:C.$L,utc:C.$u,x:C.$x,$offset:C.$offset})};var M=(function(){function I(D){this.$L=U(D.locale,null,!0),this.parse(D),this.$x=this.$x||D.x||{},this[T]=!0}var C=I.prototype;return C.parse=function(D){this.$d=(function(H){var F=H.date,q=H.utc;if(F===null)return new Date(NaN);if(A.u(F))return new Date;if(F instanceof Date)return new Date(F);if(typeof F=="string"&&!/Z$/i.test(F)){var z=F.match(m);if(z){var O=z[2]-1||0,$=(z[7]||"0").substring(0,3);return q?new Date(Date.UTC(z[1],O,z[3]||1,z[4]||0,z[5]||0,z[6]||0,$)):new Date(z[1],O,z[3]||1,z[4]||0,z[5]||0,z[6]||0,$)}}return new Date(F)})(D),this.init()},C.init=function(){var D=this.$d;this.$y=D.getFullYear(),this.$M=D.getMonth(),this.$D=D.getDate(),this.$W=D.getDay(),this.$H=D.getHours(),this.$m=D.getMinutes(),this.$s=D.getSeconds(),this.$ms=D.getMilliseconds()},C.$utils=function(){return A},C.isValid=function(){return this.$d.toString()!==g},C.isSame=function(D,H){var F=S(D);return this.startOf(H)<=F&&F<=this.endOf(H)},C.isAfter=function(D,H){return S(D)<this.startOf(H)},C.isBefore=function(D,H){return this.endOf(H)<S(D)},C.$g=function(D,H,F){return A.u(D)?this[H]:this.set(F,D)},C.unix=function(){return Math.floor(this.valueOf()/1e3)},C.valueOf=function(){return this.$d.getTime()},C.startOf=function(D,H){var F=this,q=!!A.u(H)||H,z=A.p(D),O=function(Ue,ae){var Be=A.w(F.$u?Date.UTC(F.$y,ae,Ue):new Date(F.$y,ae,Ue),F);return q?Be:Be.endOf(a)},$=function(Ue,ae){return A.w(F.toDate()[Ue].apply(F.toDate("s"),(q?[0,0,0,0]:[23,59,59,999]).slice(ae)),F)},P=this.$W,N=this.$M,te=this.$D,Ae="set"+(this.$u?"UTC":"");switch(z){case p:return q?O(1,0):O(31,11);case f:return q?O(1,N):O(0,N+1);case c:var Le=this.$locale().weekStart||0,ft=(P<Le?P+7:P)-Le;return O(q?te-ft:te+(6-ft),N);case a:case d:return $(Ae+"Hours",0);case l:return $(Ae+"Minutes",1);case u:return $(Ae+"Seconds",2);case o:return $(Ae+"Milliseconds",3);default:return this.clone()}},C.endOf=function(D){return this.startOf(D,!1)},C.$set=function(D,H){var F,q=A.p(D),z="set"+(this.$u?"UTC":""),O=(F={},F[a]=z+"Date",F[d]=z+"Date",F[f]=z+"Month",F[p]=z+"FullYear",F[l]=z+"Hours",F[u]=z+"Minutes",F[o]=z+"Seconds",F[s]=z+"Milliseconds",F)[q],$=q===a?this.$D+(H-this.$W):H;if(q===f||q===p){var P=this.clone().set(d,1);P.$d[O]($),P.init(),this.$d=P.set(d,Math.min(this.$D,P.daysInMonth())).$d}else O&&this.$d[O]($);return this.init(),this},C.set=function(D,H){return this.clone().$set(D,H)},C.get=function(D){return this[A.p(D)]()},C.add=function(D,H){var F,q=this;D=Number(D);var z=A.p(H),O=function(N){var te=S(q);return A.w(te.date(te.date()+Math.round(N*D)),q)};if(z===f)return this.set(f,this.$M+D);if(z===p)return this.set(p,this.$y+D);if(z===a)return O(1);if(z===c)return O(7);var $=(F={},F[u]=n,F[l]=i,F[o]=r,F)[z]||1,P=this.$d.getTime()+D*$;return A.w(P,this)},C.subtract=function(D,H){return this.add(-1*D,H)},C.format=function(D){var H=this,F=this.$locale();if(!this.isValid())return F.invalidDate||g;var q=D||"YYYY-MM-DDTHH:mm:ssZ",z=A.z(this),O=this.$H,$=this.$m,P=this.$M,N=F.weekdays,te=F.months,Ae=F.meridiem,Le=function(ae,Be,ht,Ct){return ae&&(ae[Be]||ae(H,q))||ht[Be].slice(0,Ct)},ft=function(ae){return A.s(O%12||12,ae,"0")},Ue=Ae||function(ae,Be,ht){var Ct=ae<12?"AM":"PM";return ht?Ct.toLowerCase():Ct};return q.replace(w,(function(ae,Be){return Be||(function(ht){switch(ht){case"YY":return String(H.$y).slice(-2);case"YYYY":return A.s(H.$y,4,"0");case"M":return P+1;case"MM":return A.s(P+1,2,"0");case"MMM":return Le(F.monthsShort,P,te,3);case"MMMM":return Le(te,P);case"D":return H.$D;case"DD":return A.s(H.$D,2,"0");case"d":return String(H.$W);case"dd":return Le(F.weekdaysMin,H.$W,N,2);case"ddd":return Le(F.weekdaysShort,H.$W,N,3);case"dddd":return N[H.$W];case"H":return String(O);case"HH":return A.s(O,2,"0");case"h":return ft(1);case"hh":return ft(2);case"a":return Ue(O,$,!0);case"A":return Ue(O,$,!1);case"m":return String($);case"mm":return A.s($,2,"0");case"s":return String(H.$s);case"ss":return A.s(H.$s,2,"0");case"SSS":return A.s(H.$ms,3,"0");case"Z":return z}return null})(ae)||z.replace(":","")}))},C.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},C.diff=function(D,H,F){var q,z=this,O=A.p(H),$=S(D),P=($.utcOffset()-this.utcOffset())*n,N=this-$,te=function(){return A.m(z,$)};switch(O){case p:q=te()/12;break;case f:q=te();break;case h:q=te()/3;break;case c:q=(N-P)/6048e5;break;case a:q=(N-P)/864e5;break;case l:q=N/i;break;case u:q=N/n;break;case o:q=N/r;break;default:q=N}return F?q:A.a(q)},C.daysInMonth=function(){return this.endOf(f).$D},C.$locale=function(){return y[this.$L]},C.locale=function(D,H){if(!D)return this.$L;var F=this.clone(),q=U(D,H,!0);return q&&(F.$L=q),F},C.clone=function(){return A.w(this.$d,this)},C.toDate=function(){return new Date(this.valueOf())},C.toJSON=function(){return this.isValid()?this.toISOString():null},C.toISOString=function(){return this.$d.toISOString()},C.toString=function(){return this.$d.toUTCString()},I})(),j=M.prototype;return S.prototype=j,[["$ms",s],["$s",o],["$m",u],["$H",l],["$W",a],["$M",f],["$y",p],["$D",d]].forEach((function(I){j[I[1]]=function(C){return this.$g(C,I[0],I[1])}})),S.extend=function(I,C){return I.$i||(I(C,M,S),I.$i=!0),S},S.locale=U,S.isDayjs=x,S.unix=function(I){return S(1e3*I)},S.en=y[E],S.Ls=y,S.p={},S}))})(Bo);var jo=Bo.exports;const jg=Ud(jo);var Pg={exports:{}};(function(t,e){(function(r,n){t.exports=n(jo)})(oe,(function(r){function n(o){return o&&typeof o=="object"&&"default"in o?o:{default:o}}var i=n(r),s={name:"zh-cn",weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),ordinal:function(o,u){return u==="W"?o+"周":o+"日"},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},relativeTime:{future:"%s内",past:"%s前",s:"几秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},meridiem:function(o,u){var l=100*o+u;return l<600?"凌晨":l<900?"早上":l<1100?"上午":l<1300?"中午":l<1800?"下午":"晚上"}};return i.default.locale(s,null,!0),s}))})(Pg);jg.locale("zh-cn");function Ng(t=!0){const e="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(r){const n=Math.random()*16|0;return(r==="x"?n:n&3|8).toString(16)});return t?e.toLowerCase():e.replace(/-/gi,"")}function nr(t=0){return L(this,null,function*(){return new Promise(e=>{setTimeout(e,t)})})}function Ig(t){return[...t.entries()].reduce((e,[r,n])=>(e[r]=n,e),{})}function Mg(t,e){return Array.from(new Set(t))}function zi(t){return t?[].concat(t):[]}function jr(t,e){const r={};if(Array.isArray(e))Object.keys(t).forEach(n=>{e.includes(n)||(r[n]=t[n])});else{const n=e;Object.entries(t).forEach(([i,s])=>{n(i,s)||(r[i]=s)})}return r}function Fg(t,e){const r={};if(Array.isArray(e))Object.keys(t).forEach(n=>{e.includes(n)&&(r[n]=t[n])});else{const n=e;Object.entries(t).forEach(([i,s])=>{n(i,s)&&(r[i]=s)})}return r}var Po={exports:{}};(function(t){var e=(function(){var r=String.fromCharCode,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",s={};function o(l,a){if(!s[l]){s[l]={};for(var c=0;c<l.length;c++)s[l][l.charAt(c)]=c}return s[l][a]}var u={compressToBase64:function(l){if(l==null)return"";var a=u._compress(l,6,function(c){return n.charAt(c)});switch(a.length%4){default:case 0:return a;case 1:return a+"===";case 2:return a+"==";case 3:return a+"="}},decompressFromBase64:function(l){return l==null?"":l==""?null:u._decompress(l.length,32,function(a){return o(n,l.charAt(a))})},compressToUTF16:function(l){return l==null?"":u._compress(l,15,function(a){return r(a+32)})+" "},decompressFromUTF16:function(l){return l==null?"":l==""?null:u._decompress(l.length,16384,function(a){return l.charCodeAt(a)-32})},compressToUint8Array:function(l){for(var a=u.compress(l),c=new Uint8Array(a.length*2),f=0,h=a.length;f<h;f++){var p=a.charCodeAt(f);c[f*2]=p>>>8,c[f*2+1]=p%256}return c},decompressFromUint8Array:function(l){if(l==null)return u.decompress(l);for(var a=new Array(l.length/2),c=0,f=a.length;c<f;c++)a[c]=l[c*2]*256+l[c*2+1];var h=[];return a.forEach(function(p){h.push(r(p))}),u.decompress(h.join(""))},compressToEncodedURIComponent:function(l){return l==null?"":u._compress(l,6,function(a){return i.charAt(a)})},decompressFromEncodedURIComponent:function(l){return l==null?"":l==""?null:(l=l.replace(/ /g,"+"),u._decompress(l.length,32,function(a){return o(i,l.charAt(a))}))},compress:function(l){return u._compress(l,16,function(a){return r(a)})},_compress:function(l,a,c){if(l==null)return"";var f,h,p={},d={},g="",m="",w="",v=2,b=3,_=2,E=[],y=0,T=0,x;for(x=0;x<l.length;x+=1)if(g=l.charAt(x),Object.prototype.hasOwnProperty.call(p,g)||(p[g]=b++,d[g]=!0),m=w+g,Object.prototype.hasOwnProperty.call(p,m))w=m;else{if(Object.prototype.hasOwnProperty.call(d,w)){if(w.charCodeAt(0)<256){for(f=0;f<_;f++)y=y<<1,T==a-1?(T=0,E.push(c(y)),y=0):T++;for(h=w.charCodeAt(0),f=0;f<8;f++)y=y<<1|h&1,T==a-1?(T=0,E.push(c(y)),y=0):T++,h=h>>1}else{for(h=1,f=0;f<_;f++)y=y<<1|h,T==a-1?(T=0,E.push(c(y)),y=0):T++,h=0;for(h=w.charCodeAt(0),f=0;f<16;f++)y=y<<1|h&1,T==a-1?(T=0,E.push(c(y)),y=0):T++,h=h>>1}v--,v==0&&(v=Math.pow(2,_),_++),delete d[w]}else for(h=p[w],f=0;f<_;f++)y=y<<1|h&1,T==a-1?(T=0,E.push(c(y)),y=0):T++,h=h>>1;v--,v==0&&(v=Math.pow(2,_),_++),p[m]=b++,w=String(g)}if(w!==""){if(Object.prototype.hasOwnProperty.call(d,w)){if(w.charCodeAt(0)<256){for(f=0;f<_;f++)y=y<<1,T==a-1?(T=0,E.push(c(y)),y=0):T++;for(h=w.charCodeAt(0),f=0;f<8;f++)y=y<<1|h&1,T==a-1?(T=0,E.push(c(y)),y=0):T++,h=h>>1}else{for(h=1,f=0;f<_;f++)y=y<<1|h,T==a-1?(T=0,E.push(c(y)),y=0):T++,h=0;for(h=w.charCodeAt(0),f=0;f<16;f++)y=y<<1|h&1,T==a-1?(T=0,E.push(c(y)),y=0):T++,h=h>>1}v--,v==0&&(v=Math.pow(2,_),_++),delete d[w]}else for(h=p[w],f=0;f<_;f++)y=y<<1|h&1,T==a-1?(T=0,E.push(c(y)),y=0):T++,h=h>>1;v--,v==0&&(v=Math.pow(2,_),_++)}for(h=2,f=0;f<_;f++)y=y<<1|h&1,T==a-1?(T=0,E.push(c(y)),y=0):T++,h=h>>1;for(;;)if(y=y<<1,T==a-1){E.push(c(y));break}else T++;return E.join("")},decompress:function(l){return l==null?"":l==""?null:u._decompress(l.length,32768,function(a){return l.charCodeAt(a)})},_decompress:function(l,a,c){var f=[],h=4,p=4,d=3,g="",m=[],w,v,b,_,E,y,T,x={val:c(0),position:a,index:1};for(w=0;w<3;w+=1)f[w]=w;for(b=0,E=Math.pow(2,2),y=1;y!=E;)_=x.val&x.position,x.position>>=1,x.position==0&&(x.position=a,x.val=c(x.index++)),b|=(_>0?1:0)*y,y<<=1;switch(b){case 0:for(b=0,E=Math.pow(2,8),y=1;y!=E;)_=x.val&x.position,x.position>>=1,x.position==0&&(x.position=a,x.val=c(x.index++)),b|=(_>0?1:0)*y,y<<=1;T=r(b);break;case 1:for(b=0,E=Math.pow(2,16),y=1;y!=E;)_=x.val&x.position,x.position>>=1,x.position==0&&(x.position=a,x.val=c(x.index++)),b|=(_>0?1:0)*y,y<<=1;T=r(b);break;case 2:return""}for(f[3]=T,v=T,m.push(T);;){if(x.index>l)return"";for(b=0,E=Math.pow(2,d),y=1;y!=E;)_=x.val&x.position,x.position>>=1,x.position==0&&(x.position=a,x.val=c(x.index++)),b|=(_>0?1:0)*y,y<<=1;switch(T=b){case 0:for(b=0,E=Math.pow(2,8),y=1;y!=E;)_=x.val&x.position,x.position>>=1,x.position==0&&(x.position=a,x.val=c(x.index++)),b|=(_>0?1:0)*y,y<<=1;f[p++]=r(b),T=p-1,h--;break;case 1:for(b=0,E=Math.pow(2,16),y=1;y!=E;)_=x.val&x.position,x.position>>=1,x.position==0&&(x.position=a,x.val=c(x.index++)),b|=(_>0?1:0)*y,y<<=1;f[p++]=r(b),T=p-1,h--;break;case 2:return m.join("")}if(h==0&&(h=Math.pow(2,d),d++),f[T])g=f[T];else if(T===p)g=v+v.charAt(0);else return null;m.push(g),f[p++]=v+g.charAt(0),h--,v=g,h==0&&(h=Math.pow(2,d),d++)}}};return u})();t!=null?t.exports=e:typeof angular!="undefined"&&angular!=null&&angular.module("LZString",[]).factory("LZString",function(){return e})})(Po);var No=Po.exports;function Lg(t){for(var e=[],r=0;r<t.length;){var n=t[r];if(n==="*"||n==="+"||n==="?"){e.push({type:"MODIFIER",index:r,value:t[r++]});continue}if(n==="\\"){e.push({type:"ESCAPED_CHAR",index:r++,value:t[r++]});continue}if(n==="{"){e.push({type:"OPEN",index:r,value:t[r++]});continue}if(n==="}"){e.push({type:"CLOSE",index:r,value:t[r++]});continue}if(n===":"){for(var i="",s=r+1;s<t.length;){var o=t.charCodeAt(s);if(o>=48&&o<=57||o>=65&&o<=90||o>=97&&o<=122||o===95){i+=t[s++];continue}break}if(!i)throw new TypeError("Missing parameter name at ".concat(r));e.push({type:"NAME",index:r,value:i}),r=s;continue}if(n==="("){var u=1,l="",s=r+1;if(t[s]==="?")throw new TypeError('Pattern cannot start with "?" at '.concat(s));for(;s<t.length;){if(t[s]==="\\"){l+=t[s++]+t[s++];continue}if(t[s]===")"){if(u--,u===0){s++;break}}else if(t[s]==="("&&(u++,t[s+1]!=="?"))throw new TypeError("Capturing groups are not allowed at ".concat(s));l+=t[s++]}if(u)throw new TypeError("Unbalanced pattern at ".concat(r));if(!l)throw new TypeError("Missing pattern at ".concat(r));e.push({type:"PATTERN",index:r,value:l}),r=s;continue}e.push({type:"CHAR",index:r,value:t[r++]})}return e.push({type:"END",index:r,value:""}),e}function Io(t,e){e===void 0&&(e={});for(var r=Lg(t),n=e.prefixes,i=n===void 0?"./":n,s="[^".concat(rt(e.delimiter||"/#?"),"]+?"),o=[],u=0,l=0,a="",c=function(y){if(l<r.length&&r[l].type===y)return r[l++].value},f=function(y){var T=c(y);if(T!==void 0)return T;var x=r[l],U=x.type,S=x.index;throw new TypeError("Unexpected ".concat(U," at ").concat(S,", expected ").concat(y))},h=function(){for(var y="",T;T=c("CHAR")||c("ESCAPED_CHAR");)y+=T;return y};l<r.length;){var p=c("CHAR"),d=c("NAME"),g=c("PATTERN");if(d||g){var m=p||"";i.indexOf(m)===-1&&(a+=m,m=""),a&&(o.push(a),a=""),o.push({name:d||u++,prefix:m,suffix:"",pattern:g||s,modifier:c("MODIFIER")||""});continue}var w=p||c("ESCAPED_CHAR");if(w){a+=w;continue}a&&(o.push(a),a="");var v=c("OPEN");if(v){var m=h(),b=c("NAME")||"",_=c("PATTERN")||"",E=h();f("CLOSE"),o.push({name:b||(_?u++:""),pattern:b&&!_?s:_,prefix:m,suffix:E,modifier:c("MODIFIER")||""});continue}f("END")}return o}function Ug(t,e){return Hg(Io(t,e),e)}function Hg(t,e){e===void 0&&(e={});var r=$n(e),n=e.encode,i=n===void 0?function(l){return l}:n,s=e.validate,o=s===void 0?!0:s,u=t.map(function(l){if(typeof l=="object")return new RegExp("^(?:".concat(l.pattern,")$"),r)});return function(l){for(var a="",c=0;c<t.length;c++){var f=t[c];if(typeof f=="string"){a+=f;continue}var h=l?l[f.name]:void 0,p=f.modifier==="?"||f.modifier==="*",d=f.modifier==="*"||f.modifier==="+";if(Array.isArray(h)){if(!d)throw new TypeError('Expected "'.concat(f.name,'" to not repeat, but got an array'));if(h.length===0){if(p)continue;throw new TypeError('Expected "'.concat(f.name,'" to not be empty'))}for(var g=0;g<h.length;g++){var m=i(h[g],f);if(o&&!u[c].test(m))throw new TypeError('Expected all "'.concat(f.name,'" to match "').concat(f.pattern,'", but got "').concat(m,'"'));a+=f.prefix+m+f.suffix}continue}if(typeof h=="string"||typeof h=="number"){var m=i(String(h),f);if(o&&!u[c].test(m))throw new TypeError('Expected "'.concat(f.name,'" to match "').concat(f.pattern,'", but got "').concat(m,'"'));a+=f.prefix+m+f.suffix;continue}if(!p){var w=d?"an array":"a string";throw new TypeError('Expected "'.concat(f.name,'" to be ').concat(w))}}return a}}function Vg(t,e){var r=[],n=Dn(t,r,e);return kg(n,r,e)}function kg(t,e,r){r===void 0&&(r={});var n=r.decode,i=n===void 0?function(s){return s}:n;return function(s){var o=t.exec(s);if(!o)return!1;for(var u=o[0],l=o.index,a=Object.create(null),c=function(h){if(o[h]===void 0)return"continue";var p=e[h-1];p.modifier==="*"||p.modifier==="+"?a[p.name]=o[h].split(p.prefix+p.suffix).map(function(d){return i(d,p)}):a[p.name]=i(o[h],p)},f=1;f<o.length;f++)c(f);return{path:u,index:l,params:a}}}function rt(t){return t.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function $n(t){return t&&t.sensitive?"":"i"}function qg(t,e){if(!e)return t;for(var r=/\((?:\?<(.*?)>)?(?!\?)/g,n=0,i=r.exec(t.source);i;)e.push({name:i[1]||n++,prefix:"",suffix:"",modifier:"",pattern:""}),i=r.exec(t.source);return t}function zg(t,e,r){var n=t.map(function(i){return Dn(i,e,r).source});return new RegExp("(?:".concat(n.join("|"),")"),$n(r))}function Wg(t,e,r){return Kg(Io(t,r),e,r)}function Kg(t,e,r){r===void 0&&(r={});for(var n=r.strict,i=n===void 0?!1:n,s=r.start,o=s===void 0?!0:s,u=r.end,l=u===void 0?!0:u,a=r.encode,c=a===void 0?function(S){return S}:a,f=r.delimiter,h=f===void 0?"/#?":f,p=r.endsWith,d=p===void 0?"":p,g="[".concat(rt(d),"]|$"),m="[".concat(rt(h),"]"),w=o?"^":"",v=0,b=t;v<b.length;v++){var _=b[v];if(typeof _=="string")w+=rt(c(_));else{var E=rt(c(_.prefix)),y=rt(c(_.suffix));if(_.pattern)if(e&&e.push(_),E||y)if(_.modifier==="+"||_.modifier==="*"){var T=_.modifier==="*"?"?":"";w+="(?:".concat(E,"((?:").concat(_.pattern,")(?:").concat(y).concat(E,"(?:").concat(_.pattern,"))*)").concat(y,")").concat(T)}else w+="(?:".concat(E,"(").concat(_.pattern,")").concat(y,")").concat(_.modifier);else _.modifier==="+"||_.modifier==="*"?w+="((?:".concat(_.pattern,")").concat(_.modifier,")"):w+="(".concat(_.pattern,")").concat(_.modifier);else w+="(?:".concat(E).concat(y,")").concat(_.modifier)}}if(l)i||(w+="".concat(m,"?")),w+=r.endsWith?"(?=".concat(g,")"):"$";else{var x=t[t.length-1],U=typeof x=="string"?m.indexOf(x[x.length-1])>-1:x===void 0;i||(w+="(?:".concat(m,"(?=").concat(g,"))?")),U||(w+="(?=".concat(m,"|").concat(g,")"))}return new RegExp(w,$n(r))}function Dn(t,e,r){return t instanceof RegExp?qg(t,e):Array.isArray(t)?zg(t,e,r):Wg(t,e,r)}var Jg=Object.defineProperty,Gg=(t,e,r)=>e in t?Jg(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,dt=(t,e,r)=>(Gg(t,typeof e!="symbol"?e+"":e,r),r);class Yg{constructor(){dt(this,"queue",[]),dt(this,"isProcessing",!1),dt(this,"results",[]),dt(this,"cache",new Map),dt(this,"pendingTasks",new Map)}add(e,r){const n=this.cache.get(e);if(n)return n.status==="fulfilled"?Promise.resolve(n.value):Promise.reject(n.reason);const i=this.pendingTasks.get(e);if(i)return i;const s=new Promise((o,u)=>{this.queue.push({key:e,task:r,resolve:o,reject:u}),this.isProcessing||this.processQueue()});return this.pendingTasks.set(e,s),s}getAllResults(){return[...this.results]}getResult(e){return this.cache.get(e)}clearCacheForKey(e){this.cache.delete(e)}clearAllCache(){this.cache.clear()}processQueue(){return L(this,null,function*(){if(this.queue.length===0){this.isProcessing=!1;return}this.isProcessing=!0;const{key:e,task:r,resolve:n,reject:i}=this.queue.shift();try{const s=this.cache.get(e);if(s){s.status==="fulfilled"?n(s.value):i(s.reason),this.pendingTasks.delete(e),this.processQueue();return}const o=yield r(),u={key:e,status:"fulfilled",value:o};this.results.push(u),this.cache.set(e,u),n(o),this.pendingTasks.delete(e)}catch(s){const o={key:e,status:"rejected",reason:s};this.results.push(o),this.cache.set(e,o),i(s),this.pendingTasks.delete(e)}finally{this.processQueue()}})}}No.compress;No.decompress;/**!
|
|
45
|
+
*/(function(t){(function(e,r){t.exports?t.exports=r():e.numeral=r()})(oe,function(){var e,r,n="2.0.6",i={},s={},o={currentLocale:"en",zeroFormat:null,nullFormat:null,defaultFormat:"0,0",scalePercentBy100:!0},u={currentLocale:o.currentLocale,zeroFormat:o.zeroFormat,nullFormat:o.nullFormat,defaultFormat:o.defaultFormat,scalePercentBy100:o.scalePercentBy100};function l(a,c){this._input=a,this._value=c}return e=function(a){var c,f,h,p;if(e.isNumeral(a))c=a.value();else if(a===0||typeof a=="undefined")c=0;else if(a===null||r.isNaN(a))c=null;else if(typeof a=="string")if(u.zeroFormat&&a===u.zeroFormat)c=0;else if(u.nullFormat&&a===u.nullFormat||!a.replace(/[^0-9]+/g,"").length)c=null;else{for(f in i)if(p=typeof i[f].regexps.unformat=="function"?i[f].regexps.unformat():i[f].regexps.unformat,p&&a.match(p)){h=i[f].unformat;break}h=h||e._.stringToNumber,c=h(a)}else c=Number(a)||null;return new l(a,c)},e.version=n,e.isNumeral=function(a){return a instanceof l},e._=r={numberToFormat:function(a,c,f){var h=s[e.options.currentLocale],p=!1,d=!1,g=0,v="",E=1e12,m=1e9,b=1e6,_=1e3,w="",y=!1,T,O,L,S,A,M,P;if(a=a||0,O=Math.abs(a),e._.includes(c,"(")?(p=!0,c=c.replace(/[\(|\)]/g,"")):(e._.includes(c,"+")||e._.includes(c,"-"))&&(A=e._.includes(c,"+")?c.indexOf("+"):a<0?c.indexOf("-"):-1,c=c.replace(/[\+|\-]/g,"")),e._.includes(c,"a")&&(T=c.match(/a(k|m|b|t)?/),T=T?T[1]:!1,e._.includes(c," a")&&(v=" "),c=c.replace(new RegExp(v+"a[kmbt]?"),""),O>=E&&!T||T==="t"?(v+=h.abbreviations.trillion,a=a/E):O<E&&O>=m&&!T||T==="b"?(v+=h.abbreviations.billion,a=a/m):O<m&&O>=b&&!T||T==="m"?(v+=h.abbreviations.million,a=a/b):(O<b&&O>=_&&!T||T==="k")&&(v+=h.abbreviations.thousand,a=a/_)),e._.includes(c,"[.]")&&(d=!0,c=c.replace("[.]",".")),L=a.toString().split(".")[0],S=c.split(".")[1],M=c.indexOf(","),g=(c.split(".")[0].split(",")[0].match(/0/g)||[]).length,S?(e._.includes(S,"[")?(S=S.replace("]",""),S=S.split("["),w=e._.toFixed(a,S[0].length+S[1].length,f,S[1].length)):w=e._.toFixed(a,S.length,f),L=w.split(".")[0],e._.includes(w,".")?w=h.delimiters.decimal+w.split(".")[1]:w="",d&&Number(w.slice(1))===0&&(w="")):L=e._.toFixed(a,0,f),v&&!T&&Number(L)>=1e3&&v!==h.abbreviations.trillion)switch(L=String(Number(L)/1e3),v){case h.abbreviations.thousand:v=h.abbreviations.million;break;case h.abbreviations.million:v=h.abbreviations.billion;break;case h.abbreviations.billion:v=h.abbreviations.trillion;break}if(e._.includes(L,"-")&&(L=L.slice(1),y=!0),L.length<g)for(var I=g-L.length;I>0;I--)L="0"+L;return M>-1&&(L=L.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+h.delimiters.thousands)),c.indexOf(".")===0&&(L=""),P=L+w+(v||""),p?P=(p&&y?"(":"")+P+(p&&y?")":""):A>=0?P=A===0?(y?"-":"+")+P:P+(y?"-":"+"):y&&(P="-"+P),P},stringToNumber:function(a){var c=s[u.currentLocale],f=a,h={thousand:3,million:6,billion:9,trillion:12},p,d,g;if(u.zeroFormat&&a===u.zeroFormat)d=0;else if(u.nullFormat&&a===u.nullFormat||!a.replace(/[^0-9]+/g,"").length)d=null;else{d=1,c.delimiters.decimal!=="."&&(a=a.replace(/\./g,"").replace(c.delimiters.decimal,"."));for(p in h)if(g=new RegExp("[^a-zA-Z]"+c.abbreviations[p]+"(?:\\)|(\\"+c.currency.symbol+")?(?:\\))?)?$"),f.match(g)){d*=Math.pow(10,h[p]);break}d*=(a.split("-").length+Math.min(a.split("(").length-1,a.split(")").length-1))%2?1:-1,a=a.replace(/[^0-9\.]+/g,""),d*=Number(a)}return d},isNaN:function(a){return typeof a=="number"&&isNaN(a)},includes:function(a,c){return a.indexOf(c)!==-1},insert:function(a,c,f){return a.slice(0,f)+c+a.slice(f)},reduce:function(a,c){if(this===null)throw new TypeError("Array.prototype.reduce called on null or undefined");if(typeof c!="function")throw new TypeError(c+" is not a function");var f=Object(a),h=f.length>>>0,p=0,d;if(arguments.length===3)d=arguments[2];else{for(;p<h&&!(p in f);)p++;if(p>=h)throw new TypeError("Reduce of empty array with no initial value");d=f[p++]}for(;p<h;p++)p in f&&(d=c(d,f[p],p,f));return d},multiplier:function(a){var c=a.toString().split(".");return c.length<2?1:Math.pow(10,c[1].length)},correctionFactor:function(){var a=Array.prototype.slice.call(arguments);return a.reduce(function(c,f){var h=r.multiplier(f);return c>h?c:h},1)},toFixed:function(a,c,f,h){var p=a.toString().split("."),d=c-(h||0),g,v,E,m;return p.length===2?g=Math.min(Math.max(p[1].length,d),c):g=d,E=Math.pow(10,g),m=(f(a+"e+"+g)/E).toFixed(g),h>c-g&&(v=new RegExp("\\.?0{1,"+(h-(c-g))+"}$"),m=m.replace(v,"")),m}},e.options=u,e.formats=i,e.locales=s,e.locale=function(a){return a&&(u.currentLocale=a.toLowerCase()),u.currentLocale},e.localeData=function(a){if(!a)return s[u.currentLocale];if(a=a.toLowerCase(),!s[a])throw new Error("Unknown locale : "+a);return s[a]},e.reset=function(){for(var a in o)u[a]=o[a]},e.zeroFormat=function(a){u.zeroFormat=typeof a=="string"?a:null},e.nullFormat=function(a){u.nullFormat=typeof a=="string"?a:null},e.defaultFormat=function(a){u.defaultFormat=typeof a=="string"?a:"0.0"},e.register=function(a,c,f){if(c=c.toLowerCase(),this[a+"s"][c])throw new TypeError(c+" "+a+" already registered.");return this[a+"s"][c]=f,f},e.validate=function(a,c){var f,h,p,d,g,v,E,m;if(typeof a!="string"&&(a+="",console.warn&&console.warn("Numeral.js: Value is not string. It has been co-erced to: ",a)),a=a.trim(),a.match(/^\d+$/))return!0;if(a==="")return!1;try{E=e.localeData(c)}catch(b){E=e.localeData(e.locale())}return p=E.currency.symbol,g=E.abbreviations,f=E.delimiters.decimal,E.delimiters.thousands==="."?h="\\.":h=E.delimiters.thousands,m=a.match(/^[^\d]+/),m!==null&&(a=a.substr(1),m[0]!==p)||(m=a.match(/[^\d]+$/),m!==null&&(a=a.slice(0,-1),m[0]!==g.thousand&&m[0]!==g.million&&m[0]!==g.billion&&m[0]!==g.trillion))?!1:(v=new RegExp(h+"{2}"),a.match(/[^\d.,]/g)?!1:(d=a.split(f),d.length>2?!1:d.length<2?!!d[0].match(/^\d+.*\d$/)&&!d[0].match(v):d[0].length===1?!!d[0].match(/^\d+$/)&&!d[0].match(v)&&!!d[1].match(/^\d+$/):!!d[0].match(/^\d+.*\d$/)&&!d[0].match(v)&&!!d[1].match(/^\d+$/)))},e.fn=l.prototype={clone:function(){return e(this)},format:function(a,c){var f=this._value,h=a||u.defaultFormat,p,d,g;if(c=c||Math.round,f===0&&u.zeroFormat!==null)d=u.zeroFormat;else if(f===null&&u.nullFormat!==null)d=u.nullFormat;else{for(p in i)if(h.match(i[p].regexps.format)){g=i[p].format;break}g=g||e._.numberToFormat,d=g(f,h,c)}return d},value:function(){return this._value},input:function(){return this._input},set:function(a){return this._value=Number(a),this},add:function(a){var c=r.correctionFactor.call(null,this._value,a);function f(h,p,d,g){return h+Math.round(c*p)}return this._value=r.reduce([this._value,a],f,0)/c,this},subtract:function(a){var c=r.correctionFactor.call(null,this._value,a);function f(h,p,d,g){return h-Math.round(c*p)}return this._value=r.reduce([a],f,Math.round(this._value*c))/c,this},multiply:function(a){function c(f,h,p,d){var g=r.correctionFactor(f,h);return Math.round(f*g)*Math.round(h*g)/Math.round(g*g)}return this._value=r.reduce([this._value,a],c,1),this},divide:function(a){function c(f,h,p,d){var g=r.correctionFactor(f,h);return Math.round(f*g)/Math.round(h*g)}return this._value=r.reduce([this._value,a],c),this},difference:function(a){return Math.abs(e(this._value).subtract(a).value())}},e.register("locale","en",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(a){var c=a%10;return~~(a%100/10)===1?"th":c===1?"st":c===2?"nd":c===3?"rd":"th"},currency:{symbol:"$"}}),(function(){e.register("format","bps",{regexps:{format:/(BPS)/,unformat:/(BPS)/},format:function(a,c,f){var h=e._.includes(c," BPS")?" ":"",p;return a=a*1e4,c=c.replace(/\s?BPS/,""),p=e._.numberToFormat(a,c,f),e._.includes(p,")")?(p=p.split(""),p.splice(-1,0,h+"BPS"),p=p.join("")):p=p+h+"BPS",p},unformat:function(a){return+(e._.stringToNumber(a)*1e-4).toFixed(15)}})})(),(function(){var a={base:1e3,suffixes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]},c={base:1024,suffixes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},f=a.suffixes.concat(c.suffixes.filter(function(p){return a.suffixes.indexOf(p)<0})),h=f.join("|");h="("+h.replace("B","B(?!PS)")+")",e.register("format","bytes",{regexps:{format:/([0\s]i?b)/,unformat:new RegExp(h)},format:function(p,d,g){var v,E=e._.includes(d,"ib")?c:a,m=e._.includes(d," b")||e._.includes(d," ib")?" ":"",b,_,w;for(d=d.replace(/\s?i?b/,""),b=0;b<=E.suffixes.length;b++)if(_=Math.pow(E.base,b),w=Math.pow(E.base,b+1),p===null||p===0||p>=_&&p<w){m+=E.suffixes[b],_>0&&(p=p/_);break}return v=e._.numberToFormat(p,d,g),v+m},unformat:function(p){var d=e._.stringToNumber(p),g,v;if(d){for(g=a.suffixes.length-1;g>=0;g--){if(e._.includes(p,a.suffixes[g])){v=Math.pow(a.base,g);break}if(e._.includes(p,c.suffixes[g])){v=Math.pow(c.base,g);break}}d*=v||1}return d}})})(),(function(){e.register("format","currency",{regexps:{format:/(\$)/},format:function(a,c,f){var h=e.locales[e.options.currentLocale],p={before:c.match(/^([\+|\-|\(|\s|\$]*)/)[0],after:c.match(/([\+|\-|\)|\s|\$]*)$/)[0]},d,g,v;for(c=c.replace(/\s?\$\s?/,""),d=e._.numberToFormat(a,c,f),a>=0?(p.before=p.before.replace(/[\-\(]/,""),p.after=p.after.replace(/[\-\)]/,"")):a<0&&!e._.includes(p.before,"-")&&!e._.includes(p.before,"(")&&(p.before="-"+p.before),v=0;v<p.before.length;v++)switch(g=p.before[v],g){case"$":d=e._.insert(d,h.currency.symbol,v);break;case" ":d=e._.insert(d," ",v+h.currency.symbol.length-1);break}for(v=p.after.length-1;v>=0;v--)switch(g=p.after[v],g){case"$":d=v===p.after.length-1?d+h.currency.symbol:e._.insert(d,h.currency.symbol,-(p.after.length-(1+v)));break;case" ":d=v===p.after.length-1?d+" ":e._.insert(d," ",-(p.after.length-(1+v)+h.currency.symbol.length-1));break}return d}})})(),(function(){e.register("format","exponential",{regexps:{format:/(e\+|e-)/,unformat:/(e\+|e-)/},format:function(a,c,f){var h,p=typeof a=="number"&&!e._.isNaN(a)?a.toExponential():"0e+0",d=p.split("e");return c=c.replace(/e[\+|\-]{1}0/,""),h=e._.numberToFormat(Number(d[0]),c,f),h+"e"+d[1]},unformat:function(a){var c=e._.includes(a,"e+")?a.split("e+"):a.split("e-"),f=Number(c[0]),h=Number(c[1]);h=e._.includes(a,"e-")?h*=-1:h;function p(d,g,v,E){var m=e._.correctionFactor(d,g),b=d*m*(g*m)/(m*m);return b}return e._.reduce([f,Math.pow(10,h)],p,1)}})})(),(function(){e.register("format","ordinal",{regexps:{format:/(o)/},format:function(a,c,f){var h=e.locales[e.options.currentLocale],p,d=e._.includes(c," o")?" ":"";return c=c.replace(/\s?o/,""),d+=h.ordinal(a),p=e._.numberToFormat(a,c,f),p+d}})})(),(function(){e.register("format","percentage",{regexps:{format:/(%)/,unformat:/(%)/},format:function(a,c,f){var h=e._.includes(c," %")?" ":"",p;return e.options.scalePercentBy100&&(a=a*100),c=c.replace(/\s?\%/,""),p=e._.numberToFormat(a,c,f),e._.includes(p,")")?(p=p.split(""),p.splice(-1,0,h+"%"),p=p.join("")):p=p+h+"%",p},unformat:function(a){var c=e._.stringToNumber(a);return e.options.scalePercentBy100?c*.01:c}})})(),(function(){e.register("format","time",{regexps:{format:/(:)/,unformat:/(:)/},format:function(a,c,f){var h=Math.floor(a/60/60),p=Math.floor((a-h*60*60)/60),d=Math.round(a-h*60*60-p*60);return h+":"+(p<10?"0"+p:p)+":"+(d<10?"0"+d:d)},unformat:function(a){var c=a.split(":"),f=0;return c.length===3?(f=f+Number(c[0])*60*60,f=f+Number(c[1])*60,f=f+Number(c[2])):c.length===2&&(f=f+Number(c[0])*60,f=f+Number(c[1])),Number(f)}})})(),e})})(Cg);var Bo={exports:{}};(function(t,e){(function(r,n){t.exports=n()})(oe,(function(){var r=1e3,n=6e4,i=36e5,s="millisecond",o="second",u="minute",l="hour",a="day",c="week",f="month",h="quarter",p="year",d="date",g="Invalid Date",v=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,E=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,m={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(I){var B=["th","st","nd","rd"],$=I%100;return"["+I+(B[($-20)%10]||B[$]||B[0])+"]"}},b=function(I,B,$){var H=String(I);return!H||H.length>=B?I:""+Array(B+1-H.length).join($)+I},_={s:b,z:function(I){var B=-I.utcOffset(),$=Math.abs(B),H=Math.floor($/60),F=$%60;return(B<=0?"+":"-")+b(H,2,"0")+":"+b(F,2,"0")},m:function I(B,$){if(B.date()<$.date())return-I($,B);var H=12*($.year()-B.year())+($.month()-B.month()),F=B.clone().add(H,f),q=$-F<0,z=B.clone().add(H+(q?-1:1),f);return+(-(H+($-F)/(q?F-z:z-F))||0)},a:function(I){return I<0?Math.ceil(I)||0:Math.floor(I)},p:function(I){return{M:f,y:p,w:c,d:a,D:d,h:l,m:u,s:o,ms:s,Q:h}[I]||String(I||"").toLowerCase().replace(/s$/,"")},u:function(I){return I===void 0}},w="en",y={};y[w]=m;var T="$isDayjsObject",O=function(I){return I instanceof M||!(!I||!I[T])},L=function I(B,$,H){var F;if(!B)return w;if(typeof B=="string"){var q=B.toLowerCase();y[q]&&(F=q),$&&(y[q]=$,F=q);var z=B.split("-");if(!F&&z.length>1)return I(z[0])}else{var x=B.name;y[x]=B,F=x}return!H&&F&&(w=F),F||!H&&w},S=function(I,B){if(O(I))return I.clone();var $=typeof B=="object"?B:{};return $.date=I,$.args=arguments,new M($)},A=_;A.l=L,A.i=O,A.w=function(I,B){return S(I,{locale:B.$L,utc:B.$u,x:B.$x,$offset:B.$offset})};var M=(function(){function I($){this.$L=L($.locale,null,!0),this.parse($),this.$x=this.$x||$.x||{},this[T]=!0}var B=I.prototype;return B.parse=function($){this.$d=(function(H){var F=H.date,q=H.utc;if(F===null)return new Date(NaN);if(A.u(F))return new Date;if(F instanceof Date)return new Date(F);if(typeof F=="string"&&!/Z$/i.test(F)){var z=F.match(v);if(z){var x=z[2]-1||0,C=(z[7]||"0").substring(0,3);return q?new Date(Date.UTC(z[1],x,z[3]||1,z[4]||0,z[5]||0,z[6]||0,C)):new Date(z[1],x,z[3]||1,z[4]||0,z[5]||0,z[6]||0,C)}}return new Date(F)})($),this.init()},B.init=function(){var $=this.$d;this.$y=$.getFullYear(),this.$M=$.getMonth(),this.$D=$.getDate(),this.$W=$.getDay(),this.$H=$.getHours(),this.$m=$.getMinutes(),this.$s=$.getSeconds(),this.$ms=$.getMilliseconds()},B.$utils=function(){return A},B.isValid=function(){return this.$d.toString()!==g},B.isSame=function($,H){var F=S($);return this.startOf(H)<=F&&F<=this.endOf(H)},B.isAfter=function($,H){return S($)<this.startOf(H)},B.isBefore=function($,H){return this.endOf(H)<S($)},B.$g=function($,H,F){return A.u($)?this[H]:this.set(F,$)},B.unix=function(){return Math.floor(this.valueOf()/1e3)},B.valueOf=function(){return this.$d.getTime()},B.startOf=function($,H){var F=this,q=!!A.u(H)||H,z=A.p($),x=function(Le,ae){var je=A.w(F.$u?Date.UTC(F.$y,ae,Le):new Date(F.$y,ae,Le),F);return q?je:je.endOf(a)},C=function(Le,ae){return A.w(F.toDate()[Le].apply(F.toDate("s"),(q?[0,0,0,0]:[23,59,59,999]).slice(ae)),F)},D=this.$W,N=this.$M,te=this.$D,xe="set"+(this.$u?"UTC":"");switch(z){case p:return q?x(1,0):x(31,11);case f:return q?x(1,N):x(0,N+1);case c:var we=this.$locale().weekStart||0,ft=(D<we?D+7:D)-we;return x(q?te-ft:te+(6-ft),N);case a:case d:return C(xe+"Hours",0);case l:return C(xe+"Minutes",1);case u:return C(xe+"Seconds",2);case o:return C(xe+"Milliseconds",3);default:return this.clone()}},B.endOf=function($){return this.startOf($,!1)},B.$set=function($,H){var F,q=A.p($),z="set"+(this.$u?"UTC":""),x=(F={},F[a]=z+"Date",F[d]=z+"Date",F[f]=z+"Month",F[p]=z+"FullYear",F[l]=z+"Hours",F[u]=z+"Minutes",F[o]=z+"Seconds",F[s]=z+"Milliseconds",F)[q],C=q===a?this.$D+(H-this.$W):H;if(q===f||q===p){var D=this.clone().set(d,1);D.$d[x](C),D.init(),this.$d=D.set(d,Math.min(this.$D,D.daysInMonth())).$d}else x&&this.$d[x](C);return this.init(),this},B.set=function($,H){return this.clone().$set($,H)},B.get=function($){return this[A.p($)]()},B.add=function($,H){var F,q=this;$=Number($);var z=A.p(H),x=function(N){var te=S(q);return A.w(te.date(te.date()+Math.round(N*$)),q)};if(z===f)return this.set(f,this.$M+$);if(z===p)return this.set(p,this.$y+$);if(z===a)return x(1);if(z===c)return x(7);var C=(F={},F[u]=n,F[l]=i,F[o]=r,F)[z]||1,D=this.$d.getTime()+$*C;return A.w(D,this)},B.subtract=function($,H){return this.add(-1*$,H)},B.format=function($){var H=this,F=this.$locale();if(!this.isValid())return F.invalidDate||g;var q=$||"YYYY-MM-DDTHH:mm:ssZ",z=A.z(this),x=this.$H,C=this.$m,D=this.$M,N=F.weekdays,te=F.months,xe=F.meridiem,we=function(ae,je,ht,Ct){return ae&&(ae[je]||ae(H,q))||ht[je].slice(0,Ct)},ft=function(ae){return A.s(x%12||12,ae,"0")},Le=xe||function(ae,je,ht){var Ct=ae<12?"AM":"PM";return ht?Ct.toLowerCase():Ct};return q.replace(E,(function(ae,je){return je||(function(ht){switch(ht){case"YY":return String(H.$y).slice(-2);case"YYYY":return A.s(H.$y,4,"0");case"M":return D+1;case"MM":return A.s(D+1,2,"0");case"MMM":return we(F.monthsShort,D,te,3);case"MMMM":return we(te,D);case"D":return H.$D;case"DD":return A.s(H.$D,2,"0");case"d":return String(H.$W);case"dd":return we(F.weekdaysMin,H.$W,N,2);case"ddd":return we(F.weekdaysShort,H.$W,N,3);case"dddd":return N[H.$W];case"H":return String(x);case"HH":return A.s(x,2,"0");case"h":return ft(1);case"hh":return ft(2);case"a":return Le(x,C,!0);case"A":return Le(x,C,!1);case"m":return String(C);case"mm":return A.s(C,2,"0");case"s":return String(H.$s);case"ss":return A.s(H.$s,2,"0");case"SSS":return A.s(H.$ms,3,"0");case"Z":return z}return null})(ae)||z.replace(":","")}))},B.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},B.diff=function($,H,F){var q,z=this,x=A.p(H),C=S($),D=(C.utcOffset()-this.utcOffset())*n,N=this-C,te=function(){return A.m(z,C)};switch(x){case p:q=te()/12;break;case f:q=te();break;case h:q=te()/3;break;case c:q=(N-D)/6048e5;break;case a:q=(N-D)/864e5;break;case l:q=N/i;break;case u:q=N/n;break;case o:q=N/r;break;default:q=N}return F?q:A.a(q)},B.daysInMonth=function(){return this.endOf(f).$D},B.$locale=function(){return y[this.$L]},B.locale=function($,H){if(!$)return this.$L;var F=this.clone(),q=L($,H,!0);return q&&(F.$L=q),F},B.clone=function(){return A.w(this.$d,this)},B.toDate=function(){return new Date(this.valueOf())},B.toJSON=function(){return this.isValid()?this.toISOString():null},B.toISOString=function(){return this.$d.toISOString()},B.toString=function(){return this.$d.toUTCString()},I})(),P=M.prototype;return S.prototype=P,[["$ms",s],["$s",o],["$m",u],["$H",l],["$W",a],["$M",f],["$y",p],["$D",d]].forEach((function(I){P[I[1]]=function(B){return this.$g(B,I[0],I[1])}})),S.extend=function(I,B){return I.$i||(I(B,M,S),I.$i=!0),S},S.locale=L,S.isDayjs=O,S.unix=function(I){return S(1e3*I)},S.en=y[w],S.Ls=y,S.p={},S}))})(Bo);var jo=Bo.exports;const Bg=Ld(jo);var jg={exports:{}};(function(t,e){(function(r,n){t.exports=n(jo)})(oe,(function(r){function n(o){return o&&typeof o=="object"&&"default"in o?o:{default:o}}var i=n(r),s={name:"zh-cn",weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),ordinal:function(o,u){return u==="W"?o+"周":o+"日"},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},relativeTime:{future:"%s内",past:"%s前",s:"几秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},meridiem:function(o,u){var l=100*o+u;return l<600?"凌晨":l<900?"早上":l<1100?"上午":l<1300?"中午":l<1800?"下午":"晚上"}};return i.default.locale(s,null,!0),s}))})(jg);Bg.locale("zh-cn");function Pg(t=!0){const e="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(r){const n=Math.random()*16|0;return(r==="x"?n:n&3|8).toString(16)});return t?e.toLowerCase():e.replace(/-/gi,"")}function ir(t=0){return U(this,null,function*(){return new Promise(e=>{setTimeout(e,t)})})}function Ng(t){return[...t.entries()].reduce((e,[r,n])=>(e[r]=n,e),{})}function Ig(t,e){return Array.from(new Set(t))}function Wi(t){return t?[].concat(t):[]}function Pr(t,e){const r={};if(Array.isArray(e))Object.keys(t).forEach(n=>{e.includes(n)||(r[n]=t[n])});else{const n=e;Object.entries(t).forEach(([i,s])=>{n(i,s)||(r[i]=s)})}return r}function Mg(t,e){const r={};if(Array.isArray(e))Object.keys(t).forEach(n=>{e.includes(n)&&(r[n]=t[n])});else{const n=e;Object.entries(t).forEach(([i,s])=>{n(i,s)&&(r[i]=s)})}return r}var Po={exports:{}};(function(t){var e=(function(){var r=String.fromCharCode,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",s={};function o(l,a){if(!s[l]){s[l]={};for(var c=0;c<l.length;c++)s[l][l.charAt(c)]=c}return s[l][a]}var u={compressToBase64:function(l){if(l==null)return"";var a=u._compress(l,6,function(c){return n.charAt(c)});switch(a.length%4){default:case 0:return a;case 1:return a+"===";case 2:return a+"==";case 3:return a+"="}},decompressFromBase64:function(l){return l==null?"":l==""?null:u._decompress(l.length,32,function(a){return o(n,l.charAt(a))})},compressToUTF16:function(l){return l==null?"":u._compress(l,15,function(a){return r(a+32)})+" "},decompressFromUTF16:function(l){return l==null?"":l==""?null:u._decompress(l.length,16384,function(a){return l.charCodeAt(a)-32})},compressToUint8Array:function(l){for(var a=u.compress(l),c=new Uint8Array(a.length*2),f=0,h=a.length;f<h;f++){var p=a.charCodeAt(f);c[f*2]=p>>>8,c[f*2+1]=p%256}return c},decompressFromUint8Array:function(l){if(l==null)return u.decompress(l);for(var a=new Array(l.length/2),c=0,f=a.length;c<f;c++)a[c]=l[c*2]*256+l[c*2+1];var h=[];return a.forEach(function(p){h.push(r(p))}),u.decompress(h.join(""))},compressToEncodedURIComponent:function(l){return l==null?"":u._compress(l,6,function(a){return i.charAt(a)})},decompressFromEncodedURIComponent:function(l){return l==null?"":l==""?null:(l=l.replace(/ /g,"+"),u._decompress(l.length,32,function(a){return o(i,l.charAt(a))}))},compress:function(l){return u._compress(l,16,function(a){return r(a)})},_compress:function(l,a,c){if(l==null)return"";var f,h,p={},d={},g="",v="",E="",m=2,b=3,_=2,w=[],y=0,T=0,O;for(O=0;O<l.length;O+=1)if(g=l.charAt(O),Object.prototype.hasOwnProperty.call(p,g)||(p[g]=b++,d[g]=!0),v=E+g,Object.prototype.hasOwnProperty.call(p,v))E=v;else{if(Object.prototype.hasOwnProperty.call(d,E)){if(E.charCodeAt(0)<256){for(f=0;f<_;f++)y=y<<1,T==a-1?(T=0,w.push(c(y)),y=0):T++;for(h=E.charCodeAt(0),f=0;f<8;f++)y=y<<1|h&1,T==a-1?(T=0,w.push(c(y)),y=0):T++,h=h>>1}else{for(h=1,f=0;f<_;f++)y=y<<1|h,T==a-1?(T=0,w.push(c(y)),y=0):T++,h=0;for(h=E.charCodeAt(0),f=0;f<16;f++)y=y<<1|h&1,T==a-1?(T=0,w.push(c(y)),y=0):T++,h=h>>1}m--,m==0&&(m=Math.pow(2,_),_++),delete d[E]}else for(h=p[E],f=0;f<_;f++)y=y<<1|h&1,T==a-1?(T=0,w.push(c(y)),y=0):T++,h=h>>1;m--,m==0&&(m=Math.pow(2,_),_++),p[v]=b++,E=String(g)}if(E!==""){if(Object.prototype.hasOwnProperty.call(d,E)){if(E.charCodeAt(0)<256){for(f=0;f<_;f++)y=y<<1,T==a-1?(T=0,w.push(c(y)),y=0):T++;for(h=E.charCodeAt(0),f=0;f<8;f++)y=y<<1|h&1,T==a-1?(T=0,w.push(c(y)),y=0):T++,h=h>>1}else{for(h=1,f=0;f<_;f++)y=y<<1|h,T==a-1?(T=0,w.push(c(y)),y=0):T++,h=0;for(h=E.charCodeAt(0),f=0;f<16;f++)y=y<<1|h&1,T==a-1?(T=0,w.push(c(y)),y=0):T++,h=h>>1}m--,m==0&&(m=Math.pow(2,_),_++),delete d[E]}else for(h=p[E],f=0;f<_;f++)y=y<<1|h&1,T==a-1?(T=0,w.push(c(y)),y=0):T++,h=h>>1;m--,m==0&&(m=Math.pow(2,_),_++)}for(h=2,f=0;f<_;f++)y=y<<1|h&1,T==a-1?(T=0,w.push(c(y)),y=0):T++,h=h>>1;for(;;)if(y=y<<1,T==a-1){w.push(c(y));break}else T++;return w.join("")},decompress:function(l){return l==null?"":l==""?null:u._decompress(l.length,32768,function(a){return l.charCodeAt(a)})},_decompress:function(l,a,c){var f=[],h=4,p=4,d=3,g="",v=[],E,m,b,_,w,y,T,O={val:c(0),position:a,index:1};for(E=0;E<3;E+=1)f[E]=E;for(b=0,w=Math.pow(2,2),y=1;y!=w;)_=O.val&O.position,O.position>>=1,O.position==0&&(O.position=a,O.val=c(O.index++)),b|=(_>0?1:0)*y,y<<=1;switch(b){case 0:for(b=0,w=Math.pow(2,8),y=1;y!=w;)_=O.val&O.position,O.position>>=1,O.position==0&&(O.position=a,O.val=c(O.index++)),b|=(_>0?1:0)*y,y<<=1;T=r(b);break;case 1:for(b=0,w=Math.pow(2,16),y=1;y!=w;)_=O.val&O.position,O.position>>=1,O.position==0&&(O.position=a,O.val=c(O.index++)),b|=(_>0?1:0)*y,y<<=1;T=r(b);break;case 2:return""}for(f[3]=T,m=T,v.push(T);;){if(O.index>l)return"";for(b=0,w=Math.pow(2,d),y=1;y!=w;)_=O.val&O.position,O.position>>=1,O.position==0&&(O.position=a,O.val=c(O.index++)),b|=(_>0?1:0)*y,y<<=1;switch(T=b){case 0:for(b=0,w=Math.pow(2,8),y=1;y!=w;)_=O.val&O.position,O.position>>=1,O.position==0&&(O.position=a,O.val=c(O.index++)),b|=(_>0?1:0)*y,y<<=1;f[p++]=r(b),T=p-1,h--;break;case 1:for(b=0,w=Math.pow(2,16),y=1;y!=w;)_=O.val&O.position,O.position>>=1,O.position==0&&(O.position=a,O.val=c(O.index++)),b|=(_>0?1:0)*y,y<<=1;f[p++]=r(b),T=p-1,h--;break;case 2:return v.join("")}if(h==0&&(h=Math.pow(2,d),d++),f[T])g=f[T];else if(T===p)g=m+m.charAt(0);else return null;v.push(g),f[p++]=m+g.charAt(0),h--,m=g,h==0&&(h=Math.pow(2,d),d++)}}};return u})();t!=null?t.exports=e:typeof angular!="undefined"&&angular!=null&&angular.module("LZString",[]).factory("LZString",function(){return e})})(Po);var No=Po.exports;function Fg(t){for(var e=[],r=0;r<t.length;){var n=t[r];if(n==="*"||n==="+"||n==="?"){e.push({type:"MODIFIER",index:r,value:t[r++]});continue}if(n==="\\"){e.push({type:"ESCAPED_CHAR",index:r++,value:t[r++]});continue}if(n==="{"){e.push({type:"OPEN",index:r,value:t[r++]});continue}if(n==="}"){e.push({type:"CLOSE",index:r,value:t[r++]});continue}if(n===":"){for(var i="",s=r+1;s<t.length;){var o=t.charCodeAt(s);if(o>=48&&o<=57||o>=65&&o<=90||o>=97&&o<=122||o===95){i+=t[s++];continue}break}if(!i)throw new TypeError("Missing parameter name at ".concat(r));e.push({type:"NAME",index:r,value:i}),r=s;continue}if(n==="("){var u=1,l="",s=r+1;if(t[s]==="?")throw new TypeError('Pattern cannot start with "?" at '.concat(s));for(;s<t.length;){if(t[s]==="\\"){l+=t[s++]+t[s++];continue}if(t[s]===")"){if(u--,u===0){s++;break}}else if(t[s]==="("&&(u++,t[s+1]!=="?"))throw new TypeError("Capturing groups are not allowed at ".concat(s));l+=t[s++]}if(u)throw new TypeError("Unbalanced pattern at ".concat(r));if(!l)throw new TypeError("Missing pattern at ".concat(r));e.push({type:"PATTERN",index:r,value:l}),r=s;continue}e.push({type:"CHAR",index:r,value:t[r++]})}return e.push({type:"END",index:r,value:""}),e}function Io(t,e){e===void 0&&(e={});for(var r=Fg(t),n=e.prefixes,i=n===void 0?"./":n,s="[^".concat(rt(e.delimiter||"/#?"),"]+?"),o=[],u=0,l=0,a="",c=function(y){if(l<r.length&&r[l].type===y)return r[l++].value},f=function(y){var T=c(y);if(T!==void 0)return T;var O=r[l],L=O.type,S=O.index;throw new TypeError("Unexpected ".concat(L," at ").concat(S,", expected ").concat(y))},h=function(){for(var y="",T;T=c("CHAR")||c("ESCAPED_CHAR");)y+=T;return y};l<r.length;){var p=c("CHAR"),d=c("NAME"),g=c("PATTERN");if(d||g){var v=p||"";i.indexOf(v)===-1&&(a+=v,v=""),a&&(o.push(a),a=""),o.push({name:d||u++,prefix:v,suffix:"",pattern:g||s,modifier:c("MODIFIER")||""});continue}var E=p||c("ESCAPED_CHAR");if(E){a+=E;continue}a&&(o.push(a),a="");var m=c("OPEN");if(m){var v=h(),b=c("NAME")||"",_=c("PATTERN")||"",w=h();f("CLOSE"),o.push({name:b||(_?u++:""),pattern:b&&!_?s:_,prefix:v,suffix:w,modifier:c("MODIFIER")||""});continue}f("END")}return o}function Lg(t,e){return Ug(Io(t,e),e)}function Ug(t,e){e===void 0&&(e={});var r=Dn(e),n=e.encode,i=n===void 0?function(l){return l}:n,s=e.validate,o=s===void 0?!0:s,u=t.map(function(l){if(typeof l=="object")return new RegExp("^(?:".concat(l.pattern,")$"),r)});return function(l){for(var a="",c=0;c<t.length;c++){var f=t[c];if(typeof f=="string"){a+=f;continue}var h=l?l[f.name]:void 0,p=f.modifier==="?"||f.modifier==="*",d=f.modifier==="*"||f.modifier==="+";if(Array.isArray(h)){if(!d)throw new TypeError('Expected "'.concat(f.name,'" to not repeat, but got an array'));if(h.length===0){if(p)continue;throw new TypeError('Expected "'.concat(f.name,'" to not be empty'))}for(var g=0;g<h.length;g++){var v=i(h[g],f);if(o&&!u[c].test(v))throw new TypeError('Expected all "'.concat(f.name,'" to match "').concat(f.pattern,'", but got "').concat(v,'"'));a+=f.prefix+v+f.suffix}continue}if(typeof h=="string"||typeof h=="number"){var v=i(String(h),f);if(o&&!u[c].test(v))throw new TypeError('Expected "'.concat(f.name,'" to match "').concat(f.pattern,'", but got "').concat(v,'"'));a+=f.prefix+v+f.suffix;continue}if(!p){var E=d?"an array":"a string";throw new TypeError('Expected "'.concat(f.name,'" to be ').concat(E))}}return a}}function Hg(t,e){var r=[],n=Cn(t,r,e);return Vg(n,r,e)}function Vg(t,e,r){r===void 0&&(r={});var n=r.decode,i=n===void 0?function(s){return s}:n;return function(s){var o=t.exec(s);if(!o)return!1;for(var u=o[0],l=o.index,a=Object.create(null),c=function(h){if(o[h]===void 0)return"continue";var p=e[h-1];p.modifier==="*"||p.modifier==="+"?a[p.name]=o[h].split(p.prefix+p.suffix).map(function(d){return i(d,p)}):a[p.name]=i(o[h],p)},f=1;f<o.length;f++)c(f);return{path:u,index:l,params:a}}}function rt(t){return t.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function Dn(t){return t&&t.sensitive?"":"i"}function kg(t,e){if(!e)return t;for(var r=/\((?:\?<(.*?)>)?(?!\?)/g,n=0,i=r.exec(t.source);i;)e.push({name:i[1]||n++,prefix:"",suffix:"",modifier:"",pattern:""}),i=r.exec(t.source);return t}function qg(t,e,r){var n=t.map(function(i){return Cn(i,e,r).source});return new RegExp("(?:".concat(n.join("|"),")"),Dn(r))}function zg(t,e,r){return Wg(Io(t,r),e,r)}function Wg(t,e,r){r===void 0&&(r={});for(var n=r.strict,i=n===void 0?!1:n,s=r.start,o=s===void 0?!0:s,u=r.end,l=u===void 0?!0:u,a=r.encode,c=a===void 0?function(S){return S}:a,f=r.delimiter,h=f===void 0?"/#?":f,p=r.endsWith,d=p===void 0?"":p,g="[".concat(rt(d),"]|$"),v="[".concat(rt(h),"]"),E=o?"^":"",m=0,b=t;m<b.length;m++){var _=b[m];if(typeof _=="string")E+=rt(c(_));else{var w=rt(c(_.prefix)),y=rt(c(_.suffix));if(_.pattern)if(e&&e.push(_),w||y)if(_.modifier==="+"||_.modifier==="*"){var T=_.modifier==="*"?"?":"";E+="(?:".concat(w,"((?:").concat(_.pattern,")(?:").concat(y).concat(w,"(?:").concat(_.pattern,"))*)").concat(y,")").concat(T)}else E+="(?:".concat(w,"(").concat(_.pattern,")").concat(y,")").concat(_.modifier);else _.modifier==="+"||_.modifier==="*"?E+="((?:".concat(_.pattern,")").concat(_.modifier,")"):E+="(".concat(_.pattern,")").concat(_.modifier);else E+="(?:".concat(w).concat(y,")").concat(_.modifier)}}if(l)i||(E+="".concat(v,"?")),E+=r.endsWith?"(?=".concat(g,")"):"$";else{var O=t[t.length-1],L=typeof O=="string"?v.indexOf(O[O.length-1])>-1:O===void 0;i||(E+="(?:".concat(v,"(?=").concat(g,"))?")),L||(E+="(?=".concat(v,"|").concat(g,")"))}return new RegExp(E,Dn(r))}function Cn(t,e,r){return t instanceof RegExp?kg(t,e):Array.isArray(t)?qg(t,e,r):zg(t,e,r)}var Kg=Object.defineProperty,Jg=(t,e,r)=>e in t?Kg(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,dt=(t,e,r)=>(Jg(t,typeof e!="symbol"?e+"":e,r),r);class Gg{constructor(){dt(this,"queue",[]),dt(this,"isProcessing",!1),dt(this,"results",[]),dt(this,"cache",new Map),dt(this,"pendingTasks",new Map)}add(e,r){const n=this.cache.get(e);if(n)return n.status==="fulfilled"?Promise.resolve(n.value):Promise.reject(n.reason);const i=this.pendingTasks.get(e);if(i)return i;const s=new Promise((o,u)=>{this.queue.push({key:e,task:r,resolve:o,reject:u}),this.isProcessing||this.processQueue()});return this.pendingTasks.set(e,s),s}getAllResults(){return[...this.results]}getResult(e){return this.cache.get(e)}clearCacheForKey(e){this.cache.delete(e)}clearAllCache(){this.cache.clear()}processQueue(){return U(this,null,function*(){if(this.queue.length===0){this.isProcessing=!1;return}this.isProcessing=!0;const{key:e,task:r,resolve:n,reject:i}=this.queue.shift();try{const s=this.cache.get(e);if(s){s.status==="fulfilled"?n(s.value):i(s.reason),this.pendingTasks.delete(e),this.processQueue();return}const o=yield r(),u={key:e,status:"fulfilled",value:o};this.results.push(u),this.cache.set(e,u),n(o),this.pendingTasks.delete(e)}catch(s){const o={key:e,status:"rejected",reason:s};this.results.push(o),this.cache.set(e,o),i(s),this.pendingTasks.delete(e)}finally{this.processQueue()}})}}No.compress;No.decompress;/**!
|
|
46
46
|
* Copyright (c) 2026, VTJ.PRO All rights reserved.
|
|
47
47
|
* @name @vtj/core
|
|
48
48
|
* @author CHC chenhuachun1549@dingtalk.com
|
|
49
|
-
* @version 0.16.
|
|
49
|
+
* @version 0.16.21
|
|
50
50
|
* @license <a href="https://vtj.pro/license.html">MIT License</a>
|
|
51
|
-
*/const Zg="VueMaterial",Qg="VueRouterMaterial",Xg={[Zg]:["Transition","TransitionGroup","KeepAlive","Teleport","Suspense"],[Qg]:["RouterView","RouterLink"]};let ev=class{constructor(){k(this,"listeners",[]);k(this,"isReady",!1)}triggerReady(){this.isReady=!0;for(const e of this.listeners)e();this.listeners=[]}ready(e){this.isReady?e():this.listeners.push(e)}resetReady(){this.isReady=!1}};var tv=Object.defineProperty,rv=(t,e,r)=>e in t?tv(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,fe=(t,e,r)=>rv(t,typeof e!="symbol"?e+"":e,r);(function(){if(typeof window>"u"||typeof EventTarget>"u")return;const t=EventTarget.prototype.addEventListener;EventTarget.prototype.addEventListener=function(e,r,n){typeof n!="boolean"&&(n=n||{},n.passive=!1),t.call(this,e,r,n)}})();function Mo(t,e){return function(){return t.apply(e,arguments)}}const{toString:nv}=Object.prototype,{getPrototypeOf:Cn}=Object,{iterator:lr,toStringTag:Fo}=Symbol,fr=(t=>e=>{const r=nv.call(e);return t[r]||(t[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),_e=t=>(t=t.toLowerCase(),e=>fr(e)===t),hr=t=>e=>typeof e===t,{isArray:lt}=Array,st=hr("undefined");function At(t){return t!==null&&!st(t)&&t.constructor!==null&&!st(t.constructor)&&ue(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const Lo=_e("ArrayBuffer");function iv(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&Lo(t.buffer),e}const sv=hr("string"),ue=hr("function"),Uo=hr("number"),xt=t=>t!==null&&typeof t=="object",ov=t=>t===!0||t===!1,Wt=t=>{if(fr(t)!=="object")return!1;const e=Cn(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Fo in t)&&!(lr in t)},av=t=>{if(!xt(t)||At(t))return!1;try{return Object.keys(t).length===0&&Object.getPrototypeOf(t)===Object.prototype}catch(e){return!1}},uv=_e("Date"),cv=_e("File"),lv=t=>!!(t&&typeof t.uri<"u"),fv=t=>t&&typeof t.getParts<"u",hv=_e("Blob"),pv=_e("FileList"),dv=t=>xt(t)&&ue(t.pipe);function gv(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}const Wi=gv(),Ki=typeof Wi.FormData<"u"?Wi.FormData:void 0,vv=t=>{let e;return t&&(Ki&&t instanceof Ki||ue(t.append)&&((e=fr(t))==="formdata"||e==="object"&&ue(t.toString)&&t.toString()==="[object FormData]"))},mv=_e("URLSearchParams"),[yv,bv,_v,wv]=["ReadableStream","Request","Response","Headers"].map(_e),Ev=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Ot(t,e,{allOwnKeys:r=!1}={}){if(t===null||typeof t>"u")return;let n,i;if(typeof t!="object"&&(t=[t]),lt(t))for(n=0,i=t.length;n<i;n++)e.call(null,t[n],n,t);else{if(At(t))return;const s=r?Object.getOwnPropertyNames(t):Object.keys(t),o=s.length;let u;for(n=0;n<o;n++)u=s[n],e.call(null,t[u],u,t)}}function Ho(t,e){if(At(t))return null;e=e.toLowerCase();const r=Object.keys(t);let n=r.length,i;for(;n-- >0;)if(i=r[n],e===i.toLowerCase())return i;return null}const qe=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Vo=t=>!st(t)&&t!==qe;function on(){const{caseless:t,skipUndefined:e}=Vo(this)&&this||{},r={},n=(i,s)=>{if(s==="__proto__"||s==="constructor"||s==="prototype")return;const o=t&&Ho(r,s)||s;Wt(r[o])&&Wt(i)?r[o]=on(r[o],i):Wt(i)?r[o]=on({},i):lt(i)?r[o]=i.slice():(!e||!st(i))&&(r[o]=i)};for(let i=0,s=arguments.length;i<s;i++)arguments[i]&&Ot(arguments[i],n);return r}const Sv=(t,e,r,{allOwnKeys:n}={})=>(Ot(e,(i,s)=>{r&&ue(i)?Object.defineProperty(t,s,{value:Mo(i,r),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(t,s,{value:i,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:n}),t),Tv=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),Rv=(t,e,r,n)=>{t.prototype=Object.create(e.prototype,n),Object.defineProperty(t.prototype,"constructor",{value:t,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(t,"super",{value:e.prototype}),r&&Object.assign(t.prototype,r)},Av=(t,e,r,n)=>{let i,s,o;const u={};if(e=e||{},t==null)return e;do{for(i=Object.getOwnPropertyNames(t),s=i.length;s-- >0;)o=i[s],(!n||n(o,t,e))&&!u[o]&&(e[o]=t[o],u[o]=!0);t=r!==!1&&Cn(t)}while(t&&(!r||r(t,e))&&t!==Object.prototype);return e},xv=(t,e,r)=>{t=String(t),(r===void 0||r>t.length)&&(r=t.length),r-=e.length;const n=t.indexOf(e,r);return n!==-1&&n===r},Ov=t=>{if(!t)return null;if(lt(t))return t;let e=t.length;if(!Uo(e))return null;const r=new Array(e);for(;e-- >0;)r[e]=t[e];return r},$v=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&Cn(Uint8Array)),Dv=(t,e)=>{const r=(t&&t[lr]).call(t);let n;for(;(n=r.next())&&!n.done;){const i=n.value;e.call(t,i[0],i[1])}},Cv=(t,e)=>{let r;const n=[];for(;(r=t.exec(e))!==null;)n.push(r);return n},Bv=_e("HTMLFormElement"),jv=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,r,n){return r.toUpperCase()+n}),Ji=(({hasOwnProperty:t})=>(e,r)=>t.call(e,r))(Object.prototype),Pv=_e("RegExp"),ko=(t,e)=>{const r=Object.getOwnPropertyDescriptors(t),n={};Ot(r,(i,s)=>{let o;(o=e(i,s,t))!==!1&&(n[s]=o||i)}),Object.defineProperties(t,n)},Nv=t=>{ko(t,(e,r)=>{if(ue(t)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=t[r];if(ue(n)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},Iv=(t,e)=>{const r={},n=i=>{i.forEach(s=>{r[s]=!0})};return lt(t)?n(t):n(String(t).split(e)),r},Mv=()=>{},Fv=(t,e)=>t!=null&&Number.isFinite(t=+t)?t:e;function Lv(t){return!!(t&&ue(t.append)&&t[Fo]==="FormData"&&t[lr])}const Uv=t=>{const e=new Array(10),r=(n,i)=>{if(xt(n)){if(e.indexOf(n)>=0)return;if(At(n))return n;if(!("toJSON"in n)){e[i]=n;const s=lt(n)?[]:{};return Ot(n,(o,u)=>{const l=r(o,i+1);!st(l)&&(s[u]=l)}),e[i]=void 0,s}}return n};return r(t,0)},Hv=_e("AsyncFunction"),Vv=t=>t&&(xt(t)||ue(t))&&ue(t.then)&&ue(t.catch),qo=((t,e)=>t?setImmediate:e?((r,n)=>(qe.addEventListener("message",({source:i,data:s})=>{i===qe&&s===r&&n.length&&n.shift()()},!1),i=>{n.push(i),qe.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",ue(qe.postMessage)),kv=typeof queueMicrotask<"u"?queueMicrotask.bind(qe):typeof process<"u"&&process.nextTick||qo,qv=t=>t!=null&&ue(t[lr]),R={isArray:lt,isArrayBuffer:Lo,isBuffer:At,isFormData:vv,isArrayBufferView:iv,isString:sv,isNumber:Uo,isBoolean:ov,isObject:xt,isPlainObject:Wt,isEmptyObject:av,isReadableStream:yv,isRequest:bv,isResponse:_v,isHeaders:wv,isUndefined:st,isDate:uv,isFile:cv,isReactNativeBlob:lv,isReactNative:fv,isBlob:hv,isRegExp:Pv,isFunction:ue,isStream:dv,isURLSearchParams:mv,isTypedArray:$v,isFileList:pv,forEach:Ot,merge:on,extend:Sv,trim:Ev,stripBOM:Tv,inherits:Rv,toFlatObject:Av,kindOf:fr,kindOfTest:_e,endsWith:xv,toArray:Ov,forEachEntry:Dv,matchAll:Cv,isHTMLForm:Bv,hasOwnProperty:Ji,hasOwnProp:Ji,reduceDescriptors:ko,freezeMethods:Nv,toObjectSet:Iv,toCamelCase:jv,noop:Mv,toFiniteNumber:Fv,findKey:Ho,global:qe,isContextDefined:Vo,isSpecCompliantForm:Lv,toJSONObject:Uv,isAsyncFn:Hv,isThenable:Vv,setImmediate:qo,asap:kv,isIterable:qv};let W=class zo extends Error{static from(e,r,n,i,s,o){const u=new zo(e.message,r||e.code,n,i,s);return u.cause=e,u.name=e.name,e.status!=null&&u.status==null&&(u.status=e.status),o&&Object.assign(u,o),u}constructor(e,r,n,i,s){super(e),Object.defineProperty(this,"message",{value:e,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,r&&(this.code=r),n&&(this.config=n),i&&(this.request=i),s&&(this.response=s,this.status=s.status)}toJSON(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:R.toJSONObject(this.config),code:this.code,status:this.status}}};W.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";W.ERR_BAD_OPTION="ERR_BAD_OPTION";W.ECONNABORTED="ECONNABORTED";W.ETIMEDOUT="ETIMEDOUT";W.ERR_NETWORK="ERR_NETWORK";W.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";W.ERR_DEPRECATED="ERR_DEPRECATED";W.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";W.ERR_BAD_REQUEST="ERR_BAD_REQUEST";W.ERR_CANCELED="ERR_CANCELED";W.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";W.ERR_INVALID_URL="ERR_INVALID_URL";const zv=null;function an(t){return R.isPlainObject(t)||R.isArray(t)}function Wo(t){return R.endsWith(t,"[]")?t.slice(0,-2):t}function Pr(t,e,r){return t?t.concat(e).map(function(n,i){return n=Wo(n),!r&&i?"["+n+"]":n}).join(r?".":""):e}function Wv(t){return R.isArray(t)&&!t.some(an)}const Kv=R.toFlatObject(R,{},null,function(t){return/^is[A-Z]/.test(t)});function pr(t,e,r){if(!R.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,r=R.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(p,d){return!R.isUndefined(d[p])});const n=r.metaTokens,i=r.visitor||a,s=r.dots,o=r.indexes,u=(r.Blob||typeof Blob<"u"&&Blob)&&R.isSpecCompliantForm(e);if(!R.isFunction(i))throw new TypeError("visitor must be a function");function l(p){if(p===null)return"";if(R.isDate(p))return p.toISOString();if(R.isBoolean(p))return p.toString();if(!u&&R.isBlob(p))throw new W("Blob is not supported. Use a Buffer instead.");return R.isArrayBuffer(p)||R.isTypedArray(p)?u&&typeof Blob=="function"?new Blob([p]):Buffer.from(p):p}function a(p,d,g){let m=p;if(R.isReactNative(e)&&R.isReactNativeBlob(p))return e.append(Pr(g,d,s),l(p)),!1;if(p&&!g&&typeof p=="object"){if(R.endsWith(d,"{}"))d=n?d:d.slice(0,-2),p=JSON.stringify(p);else if(R.isArray(p)&&Wv(p)||(R.isFileList(p)||R.endsWith(d,"[]"))&&(m=R.toArray(p)))return d=Wo(d),m.forEach(function(w,v){!(R.isUndefined(w)||w===null)&&e.append(o===!0?Pr([d],v,s):o===null?d:d+"[]",l(w))}),!1}return an(p)?!0:(e.append(Pr(g,d,s),l(p)),!1)}const c=[],f=Object.assign(Kv,{defaultVisitor:a,convertValue:l,isVisitable:an});function h(p,d){if(!R.isUndefined(p)){if(c.indexOf(p)!==-1)throw Error("Circular reference detected in "+d.join("."));c.push(p),R.forEach(p,function(g,m){(!(R.isUndefined(g)||g===null)&&i.call(e,g,R.isString(m)?m.trim():m,d,f))===!0&&h(g,d?d.concat(m):[m])}),c.pop()}}if(!R.isObject(t))throw new TypeError("data must be an object");return h(t),e}function Gi(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(r){return e[r]})}function Bn(t,e){this._pairs=[],t&&pr(t,this,e)}const Ko=Bn.prototype;Ko.append=function(t,e){this._pairs.push([t,e])};Ko.toString=function(t){const e=t?function(r){return t.call(this,r,Gi)}:Gi;return this._pairs.map(function(r){return e(r[0])+"="+e(r[1])},"").join("&")};function Jv(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Jo(t,e,r){if(!e)return t;const n=r&&r.encode||Jv,i=R.isFunction(r)?{serialize:r}:r,s=i&&i.serialize;let o;if(s?o=s(e,i):o=R.isURLSearchParams(e)?e.toString():new Bn(e,i).toString(n),o){const u=t.indexOf("#");u!==-1&&(t=t.slice(0,u)),t+=(t.indexOf("?")===-1?"?":"&")+o}return t}let Yi=class{constructor(){this.handlers=[]}use(e,r,n){return this.handlers.push({fulfilled:e,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){R.forEach(this.handlers,function(r){r!==null&&e(r)})}};const jn={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},Gv=typeof URLSearchParams<"u"?URLSearchParams:Bn,Yv=typeof FormData<"u"?FormData:null,Zv=typeof Blob<"u"?Blob:null,Qv={isBrowser:!0,classes:{URLSearchParams:Gv,FormData:Yv,Blob:Zv},protocols:["http","https","file","blob","url","data"]},Pn=typeof window<"u"&&typeof document<"u",un=typeof navigator=="object"&&navigator||void 0,Xv=Pn&&(!un||["ReactNative","NativeScript","NS"].indexOf(un.product)<0),em=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",tm=Pn&&window.location.href||"http://localhost",rm=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Pn,hasStandardBrowserEnv:Xv,hasStandardBrowserWebWorkerEnv:em,navigator:un,origin:tm},Symbol.toStringTag,{value:"Module"})),ie=V(V({},rm),Qv);function nm(t,e){return pr(t,new ie.classes.URLSearchParams,V({visitor:function(r,n,i,s){return ie.isNode&&R.isBuffer(r)?(this.append(n,r.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)}},e))}function im(t){return R.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function sm(t){const e={},r=Object.keys(t);let n;const i=r.length;let s;for(n=0;n<i;n++)s=r[n],e[s]=t[s];return e}function Go(t){function e(r,n,i,s){let o=r[s++];if(o==="__proto__")return!0;const u=Number.isFinite(+o),l=s>=r.length;return o=!o&&R.isArray(i)?i.length:o,l?(R.hasOwnProp(i,o)?i[o]=[i[o],n]:i[o]=n,!u):((!i[o]||!R.isObject(i[o]))&&(i[o]=[]),e(r,n,i[o],s)&&R.isArray(i[o])&&(i[o]=sm(i[o])),!u)}if(R.isFormData(t)&&R.isFunction(t.entries)){const r={};return R.forEachEntry(t,(n,i)=>{e(im(n),i,r,0)}),r}return null}function om(t,e,r){if(R.isString(t))try{return(e||JSON.parse)(t),R.trim(t)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(t)}const $t={transitional:jn,adapter:["xhr","http","fetch"],transformRequest:[function(t,e){const r=e.getContentType()||"",n=r.indexOf("application/json")>-1,i=R.isObject(t);if(i&&R.isHTMLForm(t)&&(t=new FormData(t)),R.isFormData(t))return n?JSON.stringify(Go(t)):t;if(R.isArrayBuffer(t)||R.isBuffer(t)||R.isStream(t)||R.isFile(t)||R.isBlob(t)||R.isReadableStream(t))return t;if(R.isArrayBufferView(t))return t.buffer;if(R.isURLSearchParams(t))return e.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return nm(t,this.formSerializer).toString();if((s=R.isFileList(t))||r.indexOf("multipart/form-data")>-1){const o=this.env&&this.env.FormData;return pr(s?{"files[]":t}:t,o&&new o,this.formSerializer)}}return i||n?(e.setContentType("application/json",!1),om(t)):t}],transformResponse:[function(t){const e=this.transitional||$t.transitional,r=e&&e.forcedJSONParsing,n=this.responseType==="json";if(R.isResponse(t)||R.isReadableStream(t))return t;if(t&&R.isString(t)&&(r&&!this.responseType||n)){const i=!(e&&e.silentJSONParsing)&&n;try{return JSON.parse(t,this.parseReviver)}catch(s){if(i)throw s.name==="SyntaxError"?W.from(s,W.ERR_BAD_RESPONSE,this,null,this.response):s}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ie.classes.FormData,Blob:ie.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};R.forEach(["delete","get","head","post","put","patch"],t=>{$t.headers[t]={}});const am=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"]),um=t=>{const e={};let r,n,i;return t&&t.split(`
|
|
52
|
-
`).forEach(function(s){i=s.indexOf(":"),r=s.substring(0,i).trim().toLowerCase(),n=s.substring(i+1).trim(),!(!r||e[r]&&
|
|
53
|
-
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...r){const n=new this(e);return r.forEach(i=>n.set(i)),n}static accessor(e){const r=(this[Zi]=this[Zi]={accessors:{}}).accessors,n=this.prototype;function i(s){const o=gt(s);r[o]||(hm(n,s),r[o]=!0)}return R.isArray(e)?e.forEach(i):i(e),this}};ce.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);R.reduceDescriptors(ce.prototype,({value:t},e)=>{let r=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(n){this[r]=n}}});R.freezeMethods(ce);function Ir(t,e){const r=this||$t,n=e||r,i=ce.from(n.headers);let s=n.data;return R.forEach(t,function(o){s=o.call(r,s,i.normalize(),e?e.status:void 0)}),i.normalize(),s}function Yo(t){return!!(t&&t.__CANCEL__)}let Dt=class extends W{constructor(e,r,n){super(e!=null?e:"canceled",W.ERR_CANCELED,r,n),this.name="CanceledError",this.__CANCEL__=!0}};function Zo(t,e,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?t(r):e(new W("Request failed with status code "+r.status,[W.ERR_BAD_REQUEST,W.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function pm(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function dm(t,e){t=t||10;const r=new Array(t),n=new Array(t);let i=0,s=0,o;return e=e!==void 0?e:1e3,function(u){const l=Date.now(),a=n[s];o||(o=l),r[i]=u,n[i]=l;let c=s,f=0;for(;c!==i;)f+=r[c++],c=c%t;if(i=(i+1)%t,i===s&&(s=(s+1)%t),l-o<e)return;const h=a&&l-a;return h?Math.round(f*1e3/h):void 0}}function gm(t,e){let r=0,n=1e3/e,i,s;const o=(u,l=Date.now())=>{r=l,i=null,s&&(clearTimeout(s),s=null),t(...u)};return[(...u)=>{const l=Date.now(),a=l-r;a>=n?o(u,l):(i=u,s||(s=setTimeout(()=>{s=null,o(i)},n-a)))},()=>i&&o(i)]}const ir=(t,e,r=3)=>{let n=0;const i=dm(50,250);return gm(s=>{const o=s.loaded,u=s.lengthComputable?s.total:void 0,l=o-n,a=i(l),c=o<=u;n=o;const f={loaded:o,total:u,progress:u?o/u:void 0,bytes:l,rate:a||void 0,estimated:a&&u&&c?(u-o)/a:void 0,event:s,lengthComputable:u!=null,[e?"download":"upload"]:!0};t(f)},r)},Qi=(t,e)=>{const r=t!=null;return[n=>e[0]({lengthComputable:r,total:t,loaded:n}),e[1]]},Xi=t=>(...e)=>R.asap(()=>t(...e)),vm=ie.hasStandardBrowserEnv?((t,e)=>r=>(r=new URL(r,ie.origin),t.protocol===r.protocol&&t.host===r.host&&(e||t.port===r.port)))(new URL(ie.origin),ie.navigator&&/(msie|trident)/i.test(ie.navigator.userAgent)):()=>!0,mm=ie.hasStandardBrowserEnv?{write(t,e,r,n,i,s,o){if(typeof document>"u")return;const u=[`${t}=${encodeURIComponent(e)}`];R.isNumber(r)&&u.push(`expires=${new Date(r).toUTCString()}`),R.isString(n)&&u.push(`path=${n}`),R.isString(i)&&u.push(`domain=${i}`),s===!0&&u.push("secure"),R.isString(o)&&u.push(`SameSite=${o}`),document.cookie=u.join("; ")},read(t){if(typeof document>"u")return null;const e=document.cookie.match(new RegExp("(?:^|; )"+t+"=([^;]*)"));return e?decodeURIComponent(e[1]):null},remove(t){this.write(t,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function ym(t){return typeof t!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function bm(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}function Qo(t,e,r){let n=!ym(e);return t&&(n||r==!1)?bm(t,e):e}const es=t=>t instanceof ce?V({},t):t;function Ke(t,e){e=e||{};const r={};function n(a,c,f,h){return R.isPlainObject(a)&&R.isPlainObject(c)?R.merge.call({caseless:h},a,c):R.isPlainObject(c)?R.merge({},c):R.isArray(c)?c.slice():c}function i(a,c,f,h){if(R.isUndefined(c)){if(!R.isUndefined(a))return n(void 0,a,f,h)}else return n(a,c,f,h)}function s(a,c){if(!R.isUndefined(c))return n(void 0,c)}function o(a,c){if(R.isUndefined(c)){if(!R.isUndefined(a))return n(void 0,a)}else return n(void 0,c)}function u(a,c,f){if(f in e)return n(a,c);if(f in t)return n(void 0,a)}const l={url:s,method:s,data:s,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:u,headers:(a,c,f)=>i(es(a),es(c),f,!0)};return R.forEach(Object.keys(V(V({},t),e)),function(a){if(a==="__proto__"||a==="constructor"||a==="prototype")return;const c=R.hasOwnProp(l,a)?l[a]:i,f=c(t[a],e[a],a);R.isUndefined(f)&&c!==u||(r[a]=f)}),r}const Xo=t=>{const e=Ke({},t);let{data:r,withXSRFToken:n,xsrfHeaderName:i,xsrfCookieName:s,headers:o,auth:u}=e;if(e.headers=o=ce.from(o),e.url=Jo(Qo(e.baseURL,e.url,e.allowAbsoluteUrls),t.params,t.paramsSerializer),u&&o.set("Authorization","Basic "+btoa((u.username||"")+":"+(u.password?unescape(encodeURIComponent(u.password)):""))),R.isFormData(r)){if(ie.hasStandardBrowserEnv||ie.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if(R.isFunction(r.getHeaders)){const l=r.getHeaders(),a=["content-type","content-length"];Object.entries(l).forEach(([c,f])=>{a.includes(c.toLowerCase())&&o.set(c,f)})}}if(ie.hasStandardBrowserEnv&&(n&&R.isFunction(n)&&(n=n(e)),n||n!==!1&&vm(e.url))){const l=i&&s&&mm.read(s);l&&o.set(i,l)}return e},_m=typeof XMLHttpRequest<"u",wm=_m&&function(t){return new Promise(function(e,r){const n=Xo(t);let i=n.data;const s=ce.from(n.headers).normalize();let{responseType:o,onUploadProgress:u,onDownloadProgress:l}=n,a,c,f,h,p;function d(){h&&h(),p&&p(),n.cancelToken&&n.cancelToken.unsubscribe(a),n.signal&&n.signal.removeEventListener("abort",a)}let g=new XMLHttpRequest;g.open(n.method.toUpperCase(),n.url,!0),g.timeout=n.timeout;function m(){if(!g)return;const v=ce.from("getAllResponseHeaders"in g&&g.getAllResponseHeaders()),b={data:!o||o==="text"||o==="json"?g.responseText:g.response,status:g.status,statusText:g.statusText,headers:v,config:t,request:g};Zo(function(_){e(_),d()},function(_){r(_),d()},b),g=null}"onloadend"in g?g.onloadend=m:g.onreadystatechange=function(){!g||g.readyState!==4||g.status===0&&!(g.responseURL&&g.responseURL.indexOf("file:")===0)||setTimeout(m)},g.onabort=function(){g&&(r(new W("Request aborted",W.ECONNABORTED,t,g)),g=null)},g.onerror=function(v){const b=v&&v.message?v.message:"Network Error",_=new W(b,W.ERR_NETWORK,t,g);_.event=v||null,r(_),g=null},g.ontimeout=function(){let v=n.timeout?"timeout of "+n.timeout+"ms exceeded":"timeout exceeded";const b=n.transitional||jn;n.timeoutErrorMessage&&(v=n.timeoutErrorMessage),r(new W(v,b.clarifyTimeoutError?W.ETIMEDOUT:W.ECONNABORTED,t,g)),g=null},i===void 0&&s.setContentType(null),"setRequestHeader"in g&&R.forEach(s.toJSON(),function(v,b){g.setRequestHeader(b,v)}),R.isUndefined(n.withCredentials)||(g.withCredentials=!!n.withCredentials),o&&o!=="json"&&(g.responseType=n.responseType),l&&([f,p]=ir(l,!0),g.addEventListener("progress",f)),u&&g.upload&&([c,h]=ir(u),g.upload.addEventListener("progress",c),g.upload.addEventListener("loadend",h)),(n.cancelToken||n.signal)&&(a=v=>{g&&(r(!v||v.type?new Dt(null,t,g):v),g.abort(),g=null)},n.cancelToken&&n.cancelToken.subscribe(a),n.signal&&(n.signal.aborted?a():n.signal.addEventListener("abort",a)));const w=pm(n.url);if(w&&ie.protocols.indexOf(w)===-1){r(new W("Unsupported protocol "+w+":",W.ERR_BAD_REQUEST,t));return}g.send(i||null)})},Em=(t,e)=>{const{length:r}=t=t?t.filter(Boolean):[];if(e||r){let n=new AbortController,i;const s=function(a){if(!i){i=!0,u();const c=a instanceof Error?a:this.reason;n.abort(c instanceof W?c:new Dt(c instanceof Error?c.message:c))}};let o=e&&setTimeout(()=>{o=null,s(new W(`timeout of ${e}ms exceeded`,W.ETIMEDOUT))},e);const u=()=>{t&&(o&&clearTimeout(o),o=null,t.forEach(a=>{a.unsubscribe?a.unsubscribe(s):a.removeEventListener("abort",s)}),t=null)};t.forEach(a=>a.addEventListener("abort",s));const{signal:l}=n;return l.unsubscribe=()=>R.asap(u),l}},Sm=function*(t,e){let r=t.byteLength;if(r<e){yield t;return}let n=0,i;for(;n<r;)i=n+e,yield t.slice(n,i),n=i},Tm=function(t,e){return br(this,null,function*(){try{for(var r=Ln(Rm(t)),n,i,s;n=!(i=yield new He(r.next())).done;n=!1){const o=i.value;yield*_r(Sm(o,e))}}catch(i){s=[i]}finally{try{n&&(i=r.return)&&(yield new He(i.call(r)))}finally{if(s)throw s[0]}}})},Rm=function(t){return br(this,null,function*(){if(t[Symbol.asyncIterator]){yield*_r(t);return}const e=t.getReader();try{for(;;){const{done:r,value:n}=yield new He(e.read());if(r)break;yield n}}finally{yield new He(e.cancel())}})},ts=(t,e,r,n)=>{const i=Tm(t,e);let s=0,o,u=a=>{o||(o=!0,n&&n(a))};return new ReadableStream({pull(a){return L(this,null,function*(){try{const{done:c,value:f}=yield i.next();if(c){u(),a.close();return}let h=f.byteLength;if(r){let p=s+=h;r(p)}a.enqueue(new Uint8Array(f))}catch(c){throw u(c),c}})},cancel(a){return u(a),i.return()}},{highWaterMark:2})},rs=64*1024,{isFunction:Ut}=R,Am=(({Request:t,Response:e})=>({Request:t,Response:e}))(R.global),{ReadableStream:ns,TextEncoder:is}=R.global,ss=(t,...e)=>{try{return!!t(...e)}catch(r){return!1}},xm=t=>{t=R.merge.call({skipUndefined:!0},Am,t);const{fetch:e,Request:r,Response:n}=t,i=e?Ut(e):typeof fetch=="function",s=Ut(r),o=Ut(n);if(!i)return!1;const u=i&&Ut(ns),l=i&&(typeof is=="function"?(d=>g=>d.encode(g))(new is):d=>L(null,null,function*(){return new Uint8Array(yield new r(d).arrayBuffer())})),a=s&&u&&ss(()=>{let d=!1;const g=new r(ie.origin,{body:new ns,method:"POST",get duplex(){return d=!0,"half"}}).headers.has("Content-Type");return d&&!g}),c=o&&u&&ss(()=>R.isReadableStream(new n("").body)),f={stream:c&&(d=>d.body)};i&&["text","arrayBuffer","blob","formData","stream"].forEach(d=>{!f[d]&&(f[d]=(g,m)=>{let w=g&&g[d];if(w)return w.call(g);throw new W(`Response type '${d}' is not supported`,W.ERR_NOT_SUPPORT,m)})});const h=d=>L(null,null,function*(){if(d==null)return 0;if(R.isBlob(d))return d.size;if(R.isSpecCompliantForm(d))return(yield new r(ie.origin,{method:"POST",body:d}).arrayBuffer()).byteLength;if(R.isArrayBufferView(d)||R.isArrayBuffer(d))return d.byteLength;if(R.isURLSearchParams(d)&&(d=d+""),R.isString(d))return(yield l(d)).byteLength}),p=(d,g)=>L(null,null,function*(){const m=R.toFiniteNumber(d.getContentLength());return m!=null?m:h(g)});return d=>L(null,null,function*(){let{url:g,method:m,data:w,signal:v,cancelToken:b,timeout:_,onDownloadProgress:E,onUploadProgress:y,responseType:T,headers:x,withCredentials:U="same-origin",fetchOptions:S}=Xo(d),A=e||fetch;T=T?(T+"").toLowerCase():"text";let M=Em([v,b&&b.toAbortSignal()],_),j=null;const I=M&&M.unsubscribe&&(()=>{M.unsubscribe()});let C;try{if(y&&a&&m!=="get"&&m!=="head"&&(C=yield p(x,w))!==0){let O=new r(g,{method:"POST",body:w,duplex:"half"}),$;if(R.isFormData(w)&&($=O.headers.get("content-type"))&&x.setContentType($),O.body){const[P,N]=Qi(C,ir(Xi(y)));w=ts(O.body,rs,P,N)}}R.isString(U)||(U=U?"include":"omit");const D=s&&"credentials"in r.prototype,H=re(V({},S),{signal:M,method:m.toUpperCase(),headers:x.normalize().toJSON(),body:w,duplex:"half",credentials:D?U:void 0});j=s&&new r(g,H);let F=yield s?A(j,S):A(g,H);const q=c&&(T==="stream"||T==="response");if(c&&(E||q&&I)){const O={};["status","statusText","headers"].forEach(te=>{O[te]=F[te]});const $=R.toFiniteNumber(F.headers.get("content-length")),[P,N]=E&&Qi($,ir(Xi(E),!0))||[];F=new n(ts(F.body,rs,P,()=>{N&&N(),I&&I()}),O)}T=T||"text";let z=yield f[R.findKey(f,T)||"text"](F,d);return!q&&I&&I(),yield new Promise((O,$)=>{Zo(O,$,{data:z,headers:ce.from(F.headers),status:F.status,statusText:F.statusText,config:d,request:j})})}catch(D){throw I&&I(),D&&D.name==="TypeError"&&/Load failed|fetch/i.test(D.message)?Object.assign(new W("Network Error",W.ERR_NETWORK,d,j,D&&D.response),{cause:D.cause||D}):W.from(D,D&&D.code,d,j,D&&D.response)}})},Om=new Map,ea=t=>{let e=t&&t.env||{};const{fetch:r,Request:n,Response:i}=e,s=[n,i,r];let o=s.length,u=o,l,a,c=Om;for(;u--;)l=s[u],a=c.get(l),a===void 0&&c.set(l,a=u?new Map:xm(e)),c=a;return a};ea();const Nn={http:zv,xhr:wm,fetch:{get:ea}};R.forEach(Nn,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch(r){}Object.defineProperty(t,"adapterName",{value:e})}});const os=t=>`- ${t}`,$m=t=>R.isFunction(t)||t===null||t===!1;function Dm(t,e){t=R.isArray(t)?t:[t];const{length:r}=t;let n,i;const s={};for(let o=0;o<r;o++){n=t[o];let u;if(i=n,!$m(n)&&(i=Nn[(u=String(n)).toLowerCase()],i===void 0))throw new W(`Unknown adapter '${u}'`);if(i&&(R.isFunction(i)||(i=i.get(e))))break;s[u||"#"+o]=i}if(!i){const o=Object.entries(s).map(([l,a])=>`adapter ${l} `+(a===!1?"is not supported by the environment":"is not available in the build"));let u=r?o.length>1?`since :
|
|
54
|
-
`+o.map(
|
|
55
|
-
`):" "+
|
|
56
|
-
`+s):n.stack=s}catch(o){}}throw n}})}_request(e,r){typeof e=="string"?(r=r||{},r.url=e):r=e||{},r=Ke(this.defaults,r);const{transitional:n,paramsSerializer:i,headers:s}=r;n!==void 0&&Jt.assertOptions(n,{silentJSONParsing:le.transitional(le.boolean),forcedJSONParsing:le.transitional(le.boolean),clarifyTimeoutError:le.transitional(le.boolean),legacyInterceptorReqResOrdering:le.transitional(le.boolean)},!1),i!=null&&(R.isFunction(i)?r.paramsSerializer={serialize:i}:Jt.assertOptions(i,{encode:le.function,serialize:le.function},!0)),r.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?r.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:r.allowAbsoluteUrls=!0),Jt.assertOptions(r,{baseUrl:le.spelling("baseURL"),withXsrfToken:le.spelling("withXSRFToken")},!0),r.method=(r.method||this.defaults.method||"get").toLowerCase();let o=s&&R.merge(s.common,s[r.method]);s&&R.forEach(["delete","get","head","post","put","patch","common"],d=>{delete s[d]}),r.headers=ce.concat(o,s);const u=[];let l=!0;this.interceptors.request.forEach(function(d){if(typeof d.runWhen=="function"&&d.runWhen(r)===!1)return;l=l&&d.synchronous;const g=r.transitional||jn;g&&g.legacyInterceptorReqResOrdering?u.unshift(d.fulfilled,d.rejected):u.push(d.fulfilled,d.rejected)});const a=[];this.interceptors.response.forEach(function(d){a.push(d.fulfilled,d.rejected)});let c,f=0,h;if(!l){const d=[as.bind(this),void 0];for(d.unshift(...u),d.push(...a),h=d.length,c=Promise.resolve(r);f<h;)c=c.then(d[f++],d[f++]);return c}h=u.length;let p=r;for(;f<h;){const d=u[f++],g=u[f++];try{p=d(p)}catch(m){g.call(this,m);break}}try{c=as.call(this,p)}catch(d){return Promise.reject(d)}for(f=0,h=a.length;f<h;)c=c.then(a[f++],a[f++]);return c}getUri(e){e=Ke(this.defaults,e);const r=Qo(e.baseURL,e.url,e.allowAbsoluteUrls);return Jo(r,e.params,e.paramsSerializer)}};R.forEach(["delete","get","head","options"],function(t){ze.prototype[t]=function(e,r){return this.request(Ke(r||{},{method:t,url:e,data:(r||{}).data}))}});R.forEach(["post","put","patch"],function(t){function e(r){return function(n,i,s){return this.request(Ke(s||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:n,data:i}))}}ze.prototype[t]=e(),ze.prototype[t+"Form"]=e(!0)});let Bm=class na{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(i){r=i});const n=this;this.promise.then(i=>{if(!n._listeners)return;let s=n._listeners.length;for(;s-- >0;)n._listeners[s](i);n._listeners=null}),this.promise.then=i=>{let s;const o=new Promise(u=>{n.subscribe(u),s=u}).then(i);return o.cancel=function(){n.unsubscribe(s)},o},e(function(i,s,o){n.reason||(n.reason=new Dt(i,s,o),r(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const r=this._listeners.indexOf(e);r!==-1&&this._listeners.splice(r,1)}toAbortSignal(){const e=new AbortController,r=n=>{e.abort(n)};return this.subscribe(r),e.signal.unsubscribe=()=>this.unsubscribe(r),e.signal}static source(){let e;return{token:new na(function(r){e=r}),cancel:e}}};function jm(t){return function(e){return t.apply(null,e)}}function Pm(t){return R.isObject(t)&&t.isAxiosError===!0}const cn={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(cn).forEach(([t,e])=>{cn[e]=t});function ia(t){const e=new ze(t),r=Mo(ze.prototype.request,e);return R.extend(r,ze.prototype,e,{allOwnKeys:!0}),R.extend(r,e,null,{allOwnKeys:!0}),r.create=function(n){return ia(Ke(t,n))},r}const Q=ia($t);Q.Axios=ze;Q.CanceledError=Dt;Q.CancelToken=Bm;Q.isCancel=Yo;Q.VERSION=ra;Q.toFormData=pr;Q.AxiosError=W;Q.Cancel=Q.CanceledError;Q.all=function(t){return Promise.all(t)};Q.spread=jm;Q.isAxiosError=Pm;Q.mergeConfig=Ke;Q.AxiosHeaders=ce;Q.formToJSON=t=>Go(R.isHTMLForm(t)?new FormData(t):t);Q.getAdapter=ta.getAdapter;Q.HttpStatusCode=cn;Q.default=Q;const{Axios:E0,AxiosError:S0,CanceledError:T0,isCancel:R0,CancelToken:A0,VERSION:x0,all:O0,Cancel:$0,isAxiosError:D0,spread:C0,toFormData:B0,AxiosHeaders:j0,HttpStatusCode:P0,formToJSON:N0,getAdapter:I0,mergeConfig:M0}=Q,Nm={form:"application/x-www-form-urlencoded",json:"application/json",data:"multipart/form-data"},Im=["put","post","patch"],cs="Local-Request-Id",Mm=100,Fm=300;class Lm{constructor(e={}){fe(this,"axios"),fe(this,"settings"),fe(this,"records",{}),fe(this,"isLoading",!1),fe(this,"stopSkipWarn"),fe(this,"showLoading"),fe(this,"showError"),this.settings=Object.assign({type:"form"},e.settings||{});const r=jr(e,["settings","query"]);this.axios=Q.create(vt({headers:{"Content-Type":"application/x-www-form-urlencoded"},timeout:120*1e3},r)),this.setupSkipWarn(this.settings),this.showLoading=xn(this.openLoading.bind(this),Mm),this.showError=Fd(this._showError.bind(this),Fm,{leading:!0,trailing:!1})}setConfig(e={}){this.settings=vt(this.settings,e.settings||{});const r=jr(e,["settings","query"]);this.axios.defaults=vt(this.axios.defaults,r),this.setupSkipWarn(this.settings)}cancel(e,r="请求已取消"){if(e){const n=this.records[e];if(!n)return;n.source.cancel(r)}else for(const n of Object.values(this.records))n.source.cancel(r)}createHeaders(e,r,n){const i=r.injectHeaders?typeof r.headers=="function"?r.headers(e,n,r):r.headers||{}:{},s=V(V({"Content-Type":Nm[r.type||"form"]},n.headers),i);return r.skipWarn&&(s[cs]=e),s}isJsonType(e){return Object.entries(e).some(([r,n])=>r.toLowerCase()==="content-type"&&String(n).includes("application/json"))}toFormData(e,r="data"){if(e instanceof FormData||e instanceof URLSearchParams)return e;const n=r==="data"?new FormData:new URLSearchParams;return Object.entries(e).forEach(([i,s])=>{n.append(i,s)}),n}createSendData(e,r,n,i,s={}){const{type:o,skipWarn:u}=e,{name:l="skipWarn"}=u||{};let{data:a,params:c={},method:f="get"}=r;const h=i?{[l]:!0}:{};return Im.includes(f.toLowerCase())?(a=Object.assign(a||{},h),a=o!=="json"||!this.isJsonType(n)?this.toFormData(a,o):a,c=V({},s)):o==="form"?c=V(V(V({},a||{}),s),h):(a&&(o!=="json"||!this.isJsonType(n))&&(a=this.toFormData(a,o)),c=V(V({},s),h)),{data:a,params:c}}createUrl(e){let{url:r,params:n}=e;if(r){let i=rr(r)?new URL(r).origin:"";const s=i?r.replace(i,""):r;try{const o=Ug(s,{encode:encodeURIComponent});return i+o(n||{})}catch(o){console.warn("createUrl","pathToRegexpCompile error",r)}}return r}openLoading(e){const{loading:r,showLoading:n}=e;r&&n&&Object.keys(this.records).length>0&&(this.isLoading=!0,n())}closeLoading(e){const{loading:r,hideLoading:n}=e;if(!r)return;this.isLoading=!1;const i=Object.keys(this.records);n&&i.length===0&&(this.isLoading=!1,n())}_showError(e,r){var s;const{failMessage:n,showError:i}=e;if(n&&i){const o=(s=r==null?void 0:r.response)==null?void 0:s.data,u=(o==null?void 0:o.message)||(o==null?void 0:o.msg)||(r==null?void 0:r.message)||(r==null?void 0:r.msg)||"未知错误";i(u,r)}}validResponse(e,r){const{validSuccess:n,validate:i}=e;return n&&i?!!i(r):!0}isSkipWarnResponse(e){return!!e.promise}send(e={},r=!1){const n=vt({},this.settings,e.settings||{}),i=e.query||{},s=jr(e,["settings","query"]),o=Ng(!1),u=Q.CancelToken.source();this.records[o]={settings:n,config:s,source:u};const l=this.createUrl(s),a=this.createHeaders(o,n,s),{data:c,params:f}=this.createSendData(n,s,a,r,i);return this.showLoading(n),new Promise((h,p)=>{this.axios(re(V({cancelToken:u.token},s),{url:l,headers:a,data:c,params:f})).then(d=>{var g;return this.isSkipWarnResponse(d)?h(d.promise):this.validResponse(n,d)?h(n.originResponse?d:(g=d.data)==null?void 0:g.data):(this.showError(n,d.data),p(d.data))}).catch(d=>(this.showError(n,d),p(d))).finally(()=>{delete this.records[o],this.closeLoading(n)})})}useResponse(e,r){const{response:n}=this.axios.interceptors,i=n.use(e,r);return()=>n.eject(i)}useRequest(e,r){const{request:n}=this.axios.interceptors,i=n.use(e,r);return()=>n.eject(i)}setupSkipWarn(e){if(this.stopSkipWarn&&(this.stopSkipWarn(),this.stopSkipWarn=void 0),!e.skipWarn)return;const{code:r,executor:n,callback:i,complete:s}=e.skipWarn;this.stopSkipWarn=this.useResponse(o=>{const u=(o.config.headers||{})[cs],l=this.records[u];if(!l)return o;const{data:a}=o;if(!a||typeof a!="object")return o;if((a==null?void 0:a.code)===r){i&&i(o);const c=new Promise(n).then(()=>this.send(re(V({},l.config),{settings:l.settings}),!0));c.catch(f=>f).finally(()=>{s&&s()}),o.promise=c}return o})}}function In(t={}){const e=new Lm(t),r=e.send.bind(e),n=e.cancel.bind(e),i=e.setConfig.bind(e),s=e.useRequest.bind(e),o=e.useResponse.bind(e);return Object.assign(r,re(V({},e),{instance:e,send:r,cancel:n,setConfig:i,useRequest:s,useResponse:o}))}const ln=In({settings:{injectHeaders:!0,loading:!0,originResponse:!0}}),fn=typeof window<"u";function Um(t){const e={};return t?(t.forEach((r,n)=>{e[n]=typeof r=="string"?decodeURIComponent(r):r}),e):{}}class sa{constructor(e={}){fe(this,"options",{type:"cache",expired:0,prefix:"__VTJ_"}),fe(this,"caches",{}),fe(this,"types"),this.types={local:fn?window.localStorage:this.caches,session:fn?window.sessionStorage:this.caches,cache:this.caches},this.config(e)}config(e={}){this.options=Object.assign(this.options,e)}save(e,r,n={}){const{type:i,expired:s,prefix:o}=V(V({},this.options),n),u=Date.now(),l=o+e,a=this.types[i]||this.caches,c={value:r,timestamp:u,expired:s};a===this.caches?a[l]=c:a.setItem(l,JSON.stringify(c))}get(e,r={}){const{type:n,prefix:i}=V(V({},this.options),r),s=i+e,o=this.types[n]||this.caches;let u;if(o===this.caches)u=o[s];else{const f=o.getItem(s);if(f)try{u=JSON.parse(f)}catch(h){console.warn("[Storage] JSON.parse",h)}}if(!u)return null;const{value:l,timestamp:a,expired:c}=u;return c>0&&a+c<Date.now()?(this.remove(e,r),null):l}remove(e,r={}){const{type:n,prefix:i}=V(V({},this.options),r),s=this.types[n]||this.caches,o=i+e;s===this.caches?delete s[o]:s.removeItem(o)}clear(e={}){const{type:r}=V(V({},this.options),e),n=this.types[r]||this.caches;n===this.caches?this.caches={}:n.clear()}}const Fr=new sa;function oa(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Gt={exports:{}},Hm=Gt.exports,ls;function Vm(){return ls||(ls=1,(function(t,e){(function(r,n){n(e,t)})(Hm,function(r,n){var i={timeout:5e3,jsonpCallback:"callback"};function s(){return"jsonp_"+Date.now()+"_"+Math.ceil(Math.random()*1e5)}function o(a){try{delete window[a]}catch(c){window[a]=void 0}}function u(a){var c=document.getElementById(a);c&&document.getElementsByTagName("head")[0].removeChild(c)}function l(a){var c=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],f=a,h=c.timeout||i.timeout,p=c.jsonpCallback||i.jsonpCallback,d=void 0;return new Promise(function(g,m){var w=c.jsonpCallbackFunction||s(),v=p+"_"+w;window[w]=function(_){g({ok:!0,json:function(){return Promise.resolve(_)}}),d&&clearTimeout(d),u(v),o(w)},f+=f.indexOf("?")===-1?"?":"&";var b=document.createElement("script");b.setAttribute("src",""+f+p+"="+w),c.charset&&b.setAttribute("charset",c.charset),c.nonce&&b.setAttribute("nonce",c.nonce),c.referrerPolicy&&b.setAttribute("referrerPolicy",c.referrerPolicy),c.crossorigin&&b.setAttribute("crossorigin","true"),b.id=v,document.getElementsByTagName("head")[0].appendChild(b),d=setTimeout(function(){m(new Error("JSONP request to "+a+" timed out")),o(w),u(v),window[w]=function(){o(w)}},h),b.onerror=function(){m(new Error("JSONP request to "+a+" failed")),o(w),u(v),d&&clearTimeout(d)}})}n.exports=l})})(Gt,Gt.exports)),Gt.exports}var km=Vm();const qm=oa(km);function zm(t){if(fn){const{protocol:e,host:r,pathname:n}=location;return`${e}//${r}${t?n:""}`}else return null}function Wm(t=""){const e=t.match(Co);return e?e[0]:""}function aa(t){const e=[];for(const r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.push([r,encodeURIComponent(t[r])].join("="));return e.join("&")}function hn(t,e,r){const n={};t=(t||location.search).replace(/^[^]*\?/,""),e=e||"&",r=r||"=";let i;const s=new RegExp("(?:^|\\"+e+")([^\\"+r+"\\"+e+"]+)(?:\\"+r+"([^\\"+e+"]*))?","g");for(;(i=s.exec(t))!==null;)i[1]!==t&&(n[decodeURIComponent(i[1])]=decodeURIComponent(i[2]||""));return n}function ua(t,e){e=typeof e=="string"?hn(e):e;const r=t.split("?")[0],n=hn(t),i=Object.assign({},n,e),s=aa(i);return s?[r,s].join("?"):t}const Yt=Object.freeze(Object.defineProperty({__proto__:null,append:ua,getCurrentHost:zm,getHost:Wm,parse:hn,stringify:aa},Symbol.toStringTag,{value:"Module"}));function ca(r){return L(this,arguments,function*(t,e={}){const{query:n={}}=e;t.includes("${")&&(t=Id(t)(n||{}));const i=ua(t,n);return yield(yield qm(i,e)).json()})}var Lr,fs;function Km(){if(fs)return Lr;fs=1,Lr=function(n,i,s){var o=document.head||document.getElementsByTagName("head")[0],u=document.createElement("script");typeof i=="function"&&(s=i,i={}),i=i||{},s=s||function(){},u.type=i.type||"text/javascript",u.charset=i.charset||"utf8",u.async="async"in i?!!i.async:!0,u.src=n,i.attrs&&t(u,i.attrs),i.text&&(u.text=""+i.text);var l="onload"in u?e:r;l(u,s),u.onload||e(u,s),o.appendChild(u)};function t(n,i){for(var s in i)n.setAttribute(s,i[s])}function e(n,i){n.onload=function(){this.onerror=this.onload=null,i(null,n)},n.onerror=function(){this.onerror=this.onload=null,i(new Error("Failed to load "+this.src),n)}}function r(n,i){n.onreadystatechange=function(){this.readyState!="complete"&&this.readyState!="loaded"||(this.onreadystatechange=null,i(null,n))}}return Lr}var Jm=Km();const Gm=oa(Jm);function hs(t,e={}){return new Promise((r,n)=>{const{library:i}=e;Gm(t,e,(s,o)=>{s?n(s):r(i?window[i]:void 0)})})}const ps={debug:-1,log:0,info:0,warn:1,error:2},Ym=function(t,e,r,n){return function(...i){if(e&&ps[e]<=ps[t]&&console[t].apply&&(n==="*"||r.startsWith(n)))return console[t].apply(console,Zm(i,r))}};function Zm(t,e){return e!=="*"&&(typeof t[0]=="string"?t[0]=`[${e}] ${t[0]}`:t=["["+e+"]"].concat(t)),t}function Qm(t,e){if(!t)return{targetLevel:e.level,targetBizName:e.bizName};if(~t.indexOf(":")){const r=t.split(":");return{targetLevel:r[0],targetBizName:r[1]}}return{targetLevel:t,targetBizName:"*"}}const Xm={level:"warn",bizName:"*"};class ey{constructor(e){fe(this,"config"),fe(this,"options"),this.options=V(V({},Xm),e);const r=typeof location<"u"?location:{},n=(/__(?:logConf|logLevel)__=([^#/&]*)/.exec(r.href)||[])[1];this.config=Qm(n,e)}_log(e){const{targetLevel:r,targetBizName:n}=this.config,{bizName:i}=this.options;return Ym(e,r,i,n)}debug(...e){return this._log("debug")(...e)}log(...e){return this._log("log")(...e)}info(...e){return this._log("info")(...e)}warn(...e){return this._log("warn")(...e)}error(...e){return this._log("error")(...e)}}function ty(t){return new ey(t)}const it=ty({level:"log",bizName:"VTJ"});/*! js-cookie v3.0.5 | MIT */function Ht(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)t[n]=r[n]}return t}var ry={read:function(t){return t[0]==='"'&&(t=t.slice(1,-1)),t.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(t){return encodeURIComponent(t).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function pn(t,e){function r(i,s,o){if(!(typeof document>"u")){o=Ht({},e,o),typeof o.expires=="number"&&(o.expires=new Date(Date.now()+o.expires*864e5)),o.expires&&(o.expires=o.expires.toUTCString()),i=encodeURIComponent(i).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var u="";for(var l in o)o[l]&&(u+="; "+l,o[l]!==!0&&(u+="="+o[l].split(";")[0]));return document.cookie=i+"="+t.write(s,i)+u}}function n(i){if(!(typeof document>"u"||arguments.length&&!i)){for(var s=document.cookie?document.cookie.split("; "):[],o={},u=0;u<s.length;u++){var l=s[u].split("="),a=l.slice(1).join("=");try{var c=decodeURIComponent(l[0]);if(o[c]=t.read(a,c),i===c)break}catch(f){}}return i?o[i]:o}}return Object.create({set:r,get:n,remove:function(i,s){r(i,"",Ht({},s,{expires:-1}))},withAttributes:function(i){return pn(this.converter,Ht({},this.attributes,i))},withConverter:function(i){return pn(Ht({},this.converter,i),this.attributes)}},{attributes:{value:Object.freeze(e)},converter:{value:Object.freeze(t)}})}var Mn=pn(ry,{path:"/"});function ny(t,e,r){Mn.set(t,e,r)}function iy(t){return Mn.get(t)}function sy(t,e){Mn.remove(t,e)}const Ur=Object.freeze(Object.defineProperty({__proto__:null,get:iy,remove:sy,set:ny},Symbol.toStringTag,{value:"Module"}));/**!
|
|
51
|
+
*/const Yg="VueMaterial",Zg="VueRouterMaterial",Qg={[Yg]:["Transition","TransitionGroup","KeepAlive","Teleport","Suspense"],[Zg]:["RouterView","RouterLink"]};let Xg=class{constructor(){k(this,"listeners",[]);k(this,"isReady",!1)}triggerReady(){this.isReady=!0;for(const e of this.listeners)e();this.listeners=[]}ready(e){this.isReady?e():this.listeners.push(e)}resetReady(){this.isReady=!1}};var ev=Object.defineProperty,tv=(t,e,r)=>e in t?ev(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,fe=(t,e,r)=>tv(t,typeof e!="symbol"?e+"":e,r);(function(){if(typeof window>"u"||typeof EventTarget>"u")return;const t=EventTarget.prototype.addEventListener;EventTarget.prototype.addEventListener=function(e,r,n){typeof n!="boolean"&&(n=n||{},n.passive=!1),t.call(this,e,r,n)}})();function Mo(t,e){return function(){return t.apply(e,arguments)}}const{toString:rv}=Object.prototype,{getPrototypeOf:Bn}=Object,{iterator:fr,toStringTag:Fo}=Symbol,hr=(t=>e=>{const r=rv.call(e);return t[r]||(t[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),_e=t=>(t=t.toLowerCase(),e=>hr(e)===t),pr=t=>e=>typeof e===t,{isArray:lt}=Array,st=pr("undefined");function At(t){return t!==null&&!st(t)&&t.constructor!==null&&!st(t.constructor)&&ue(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const Lo=_e("ArrayBuffer");function nv(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&Lo(t.buffer),e}const iv=pr("string"),ue=pr("function"),Uo=pr("number"),xt=t=>t!==null&&typeof t=="object",sv=t=>t===!0||t===!1,Kt=t=>{if(hr(t)!=="object")return!1;const e=Bn(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Fo in t)&&!(fr in t)},ov=t=>{if(!xt(t)||At(t))return!1;try{return Object.keys(t).length===0&&Object.getPrototypeOf(t)===Object.prototype}catch(e){return!1}},av=_e("Date"),uv=_e("File"),cv=t=>!!(t&&typeof t.uri<"u"),lv=t=>t&&typeof t.getParts<"u",fv=_e("Blob"),hv=_e("FileList"),pv=t=>xt(t)&&ue(t.pipe);function dv(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}const Ki=dv(),Ji=typeof Ki.FormData<"u"?Ki.FormData:void 0,gv=t=>{let e;return t&&(Ji&&t instanceof Ji||ue(t.append)&&((e=hr(t))==="formdata"||e==="object"&&ue(t.toString)&&t.toString()==="[object FormData]"))},vv=_e("URLSearchParams"),[mv,yv,bv,_v]=["ReadableStream","Request","Response","Headers"].map(_e),wv=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Ot(t,e,{allOwnKeys:r=!1}={}){if(t===null||typeof t>"u")return;let n,i;if(typeof t!="object"&&(t=[t]),lt(t))for(n=0,i=t.length;n<i;n++)e.call(null,t[n],n,t);else{if(At(t))return;const s=r?Object.getOwnPropertyNames(t):Object.keys(t),o=s.length;let u;for(n=0;n<o;n++)u=s[n],e.call(null,t[u],u,t)}}function Ho(t,e){if(At(t))return null;e=e.toLowerCase();const r=Object.keys(t);let n=r.length,i;for(;n-- >0;)if(i=r[n],e===i.toLowerCase())return i;return null}const ke=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Vo=t=>!st(t)&&t!==ke;function an(){const{caseless:t,skipUndefined:e}=Vo(this)&&this||{},r={},n=(i,s)=>{if(s==="__proto__"||s==="constructor"||s==="prototype")return;const o=t&&Ho(r,s)||s;Kt(r[o])&&Kt(i)?r[o]=an(r[o],i):Kt(i)?r[o]=an({},i):lt(i)?r[o]=i.slice():(!e||!st(i))&&(r[o]=i)};for(let i=0,s=arguments.length;i<s;i++)arguments[i]&&Ot(arguments[i],n);return r}const Ev=(t,e,r,{allOwnKeys:n}={})=>(Ot(e,(i,s)=>{r&&ue(i)?Object.defineProperty(t,s,{value:Mo(i,r),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(t,s,{value:i,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:n}),t),Sv=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),Tv=(t,e,r,n)=>{t.prototype=Object.create(e.prototype,n),Object.defineProperty(t.prototype,"constructor",{value:t,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(t,"super",{value:e.prototype}),r&&Object.assign(t.prototype,r)},Rv=(t,e,r,n)=>{let i,s,o;const u={};if(e=e||{},t==null)return e;do{for(i=Object.getOwnPropertyNames(t),s=i.length;s-- >0;)o=i[s],(!n||n(o,t,e))&&!u[o]&&(e[o]=t[o],u[o]=!0);t=r!==!1&&Bn(t)}while(t&&(!r||r(t,e))&&t!==Object.prototype);return e},Av=(t,e,r)=>{t=String(t),(r===void 0||r>t.length)&&(r=t.length),r-=e.length;const n=t.indexOf(e,r);return n!==-1&&n===r},xv=t=>{if(!t)return null;if(lt(t))return t;let e=t.length;if(!Uo(e))return null;const r=new Array(e);for(;e-- >0;)r[e]=t[e];return r},Ov=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&Bn(Uint8Array)),$v=(t,e)=>{const r=(t&&t[fr]).call(t);let n;for(;(n=r.next())&&!n.done;){const i=n.value;e.call(t,i[0],i[1])}},Dv=(t,e)=>{let r;const n=[];for(;(r=t.exec(e))!==null;)n.push(r);return n},Cv=_e("HTMLFormElement"),Bv=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,r,n){return r.toUpperCase()+n}),Gi=(({hasOwnProperty:t})=>(e,r)=>t.call(e,r))(Object.prototype),jv=_e("RegExp"),ko=(t,e)=>{const r=Object.getOwnPropertyDescriptors(t),n={};Ot(r,(i,s)=>{let o;(o=e(i,s,t))!==!1&&(n[s]=o||i)}),Object.defineProperties(t,n)},Pv=t=>{ko(t,(e,r)=>{if(ue(t)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=t[r];if(ue(n)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},Nv=(t,e)=>{const r={},n=i=>{i.forEach(s=>{r[s]=!0})};return lt(t)?n(t):n(String(t).split(e)),r},Iv=()=>{},Mv=(t,e)=>t!=null&&Number.isFinite(t=+t)?t:e;function Fv(t){return!!(t&&ue(t.append)&&t[Fo]==="FormData"&&t[fr])}const Lv=t=>{const e=new Array(10),r=(n,i)=>{if(xt(n)){if(e.indexOf(n)>=0)return;if(At(n))return n;if(!("toJSON"in n)){e[i]=n;const s=lt(n)?[]:{};return Ot(n,(o,u)=>{const l=r(o,i+1);!st(l)&&(s[u]=l)}),e[i]=void 0,s}}return n};return r(t,0)},Uv=_e("AsyncFunction"),Hv=t=>t&&(xt(t)||ue(t))&&ue(t.then)&&ue(t.catch),qo=((t,e)=>t?setImmediate:e?((r,n)=>(ke.addEventListener("message",({source:i,data:s})=>{i===ke&&s===r&&n.length&&n.shift()()},!1),i=>{n.push(i),ke.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",ue(ke.postMessage)),Vv=typeof queueMicrotask<"u"?queueMicrotask.bind(ke):typeof process<"u"&&process.nextTick||qo,kv=t=>t!=null&&ue(t[fr]),R={isArray:lt,isArrayBuffer:Lo,isBuffer:At,isFormData:gv,isArrayBufferView:nv,isString:iv,isNumber:Uo,isBoolean:sv,isObject:xt,isPlainObject:Kt,isEmptyObject:ov,isReadableStream:mv,isRequest:yv,isResponse:bv,isHeaders:_v,isUndefined:st,isDate:av,isFile:uv,isReactNativeBlob:cv,isReactNative:lv,isBlob:fv,isRegExp:jv,isFunction:ue,isStream:pv,isURLSearchParams:vv,isTypedArray:Ov,isFileList:hv,forEach:Ot,merge:an,extend:Ev,trim:wv,stripBOM:Sv,inherits:Tv,toFlatObject:Rv,kindOf:hr,kindOfTest:_e,endsWith:Av,toArray:xv,forEachEntry:$v,matchAll:Dv,isHTMLForm:Cv,hasOwnProperty:Gi,hasOwnProp:Gi,reduceDescriptors:ko,freezeMethods:Pv,toObjectSet:Nv,toCamelCase:Bv,noop:Iv,toFiniteNumber:Mv,findKey:Ho,global:ke,isContextDefined:Vo,isSpecCompliantForm:Fv,toJSONObject:Lv,isAsyncFn:Uv,isThenable:Hv,setImmediate:qo,asap:Vv,isIterable:kv};let W=class zo extends Error{static from(e,r,n,i,s,o){const u=new zo(e.message,r||e.code,n,i,s);return u.cause=e,u.name=e.name,e.status!=null&&u.status==null&&(u.status=e.status),o&&Object.assign(u,o),u}constructor(e,r,n,i,s){super(e),Object.defineProperty(this,"message",{value:e,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,r&&(this.code=r),n&&(this.config=n),i&&(this.request=i),s&&(this.response=s,this.status=s.status)}toJSON(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:R.toJSONObject(this.config),code:this.code,status:this.status}}};W.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";W.ERR_BAD_OPTION="ERR_BAD_OPTION";W.ECONNABORTED="ECONNABORTED";W.ETIMEDOUT="ETIMEDOUT";W.ERR_NETWORK="ERR_NETWORK";W.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";W.ERR_DEPRECATED="ERR_DEPRECATED";W.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";W.ERR_BAD_REQUEST="ERR_BAD_REQUEST";W.ERR_CANCELED="ERR_CANCELED";W.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";W.ERR_INVALID_URL="ERR_INVALID_URL";const qv=null;function un(t){return R.isPlainObject(t)||R.isArray(t)}function Wo(t){return R.endsWith(t,"[]")?t.slice(0,-2):t}function Nr(t,e,r){return t?t.concat(e).map(function(n,i){return n=Wo(n),!r&&i?"["+n+"]":n}).join(r?".":""):e}function zv(t){return R.isArray(t)&&!t.some(un)}const Wv=R.toFlatObject(R,{},null,function(t){return/^is[A-Z]/.test(t)});function dr(t,e,r){if(!R.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,r=R.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(p,d){return!R.isUndefined(d[p])});const n=r.metaTokens,i=r.visitor||a,s=r.dots,o=r.indexes,u=(r.Blob||typeof Blob<"u"&&Blob)&&R.isSpecCompliantForm(e);if(!R.isFunction(i))throw new TypeError("visitor must be a function");function l(p){if(p===null)return"";if(R.isDate(p))return p.toISOString();if(R.isBoolean(p))return p.toString();if(!u&&R.isBlob(p))throw new W("Blob is not supported. Use a Buffer instead.");return R.isArrayBuffer(p)||R.isTypedArray(p)?u&&typeof Blob=="function"?new Blob([p]):Buffer.from(p):p}function a(p,d,g){let v=p;if(R.isReactNative(e)&&R.isReactNativeBlob(p))return e.append(Nr(g,d,s),l(p)),!1;if(p&&!g&&typeof p=="object"){if(R.endsWith(d,"{}"))d=n?d:d.slice(0,-2),p=JSON.stringify(p);else if(R.isArray(p)&&zv(p)||(R.isFileList(p)||R.endsWith(d,"[]"))&&(v=R.toArray(p)))return d=Wo(d),v.forEach(function(E,m){!(R.isUndefined(E)||E===null)&&e.append(o===!0?Nr([d],m,s):o===null?d:d+"[]",l(E))}),!1}return un(p)?!0:(e.append(Nr(g,d,s),l(p)),!1)}const c=[],f=Object.assign(Wv,{defaultVisitor:a,convertValue:l,isVisitable:un});function h(p,d){if(!R.isUndefined(p)){if(c.indexOf(p)!==-1)throw Error("Circular reference detected in "+d.join("."));c.push(p),R.forEach(p,function(g,v){(!(R.isUndefined(g)||g===null)&&i.call(e,g,R.isString(v)?v.trim():v,d,f))===!0&&h(g,d?d.concat(v):[v])}),c.pop()}}if(!R.isObject(t))throw new TypeError("data must be an object");return h(t),e}function Yi(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(r){return e[r]})}function jn(t,e){this._pairs=[],t&&dr(t,this,e)}const Ko=jn.prototype;Ko.append=function(t,e){this._pairs.push([t,e])};Ko.toString=function(t){const e=t?function(r){return t.call(this,r,Yi)}:Yi;return this._pairs.map(function(r){return e(r[0])+"="+e(r[1])},"").join("&")};function Kv(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Jo(t,e,r){if(!e)return t;const n=r&&r.encode||Kv,i=R.isFunction(r)?{serialize:r}:r,s=i&&i.serialize;let o;if(s?o=s(e,i):o=R.isURLSearchParams(e)?e.toString():new jn(e,i).toString(n),o){const u=t.indexOf("#");u!==-1&&(t=t.slice(0,u)),t+=(t.indexOf("?")===-1?"?":"&")+o}return t}let Zi=class{constructor(){this.handlers=[]}use(e,r,n){return this.handlers.push({fulfilled:e,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){R.forEach(this.handlers,function(r){r!==null&&e(r)})}};const Pn={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},Jv=typeof URLSearchParams<"u"?URLSearchParams:jn,Gv=typeof FormData<"u"?FormData:null,Yv=typeof Blob<"u"?Blob:null,Zv={isBrowser:!0,classes:{URLSearchParams:Jv,FormData:Gv,Blob:Yv},protocols:["http","https","file","blob","url","data"]},Nn=typeof window<"u"&&typeof document<"u",cn=typeof navigator=="object"&&navigator||void 0,Qv=Nn&&(!cn||["ReactNative","NativeScript","NS"].indexOf(cn.product)<0),Xv=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",em=Nn&&window.location.href||"http://localhost",tm=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Nn,hasStandardBrowserEnv:Qv,hasStandardBrowserWebWorkerEnv:Xv,navigator:cn,origin:em},Symbol.toStringTag,{value:"Module"})),ie=V(V({},tm),Zv);function rm(t,e){return dr(t,new ie.classes.URLSearchParams,V({visitor:function(r,n,i,s){return ie.isNode&&R.isBuffer(r)?(this.append(n,r.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)}},e))}function nm(t){return R.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function im(t){const e={},r=Object.keys(t);let n;const i=r.length;let s;for(n=0;n<i;n++)s=r[n],e[s]=t[s];return e}function Go(t){function e(r,n,i,s){let o=r[s++];if(o==="__proto__")return!0;const u=Number.isFinite(+o),l=s>=r.length;return o=!o&&R.isArray(i)?i.length:o,l?(R.hasOwnProp(i,o)?i[o]=[i[o],n]:i[o]=n,!u):((!i[o]||!R.isObject(i[o]))&&(i[o]=[]),e(r,n,i[o],s)&&R.isArray(i[o])&&(i[o]=im(i[o])),!u)}if(R.isFormData(t)&&R.isFunction(t.entries)){const r={};return R.forEachEntry(t,(n,i)=>{e(nm(n),i,r,0)}),r}return null}function sm(t,e,r){if(R.isString(t))try{return(e||JSON.parse)(t),R.trim(t)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(t)}const $t={transitional:Pn,adapter:["xhr","http","fetch"],transformRequest:[function(t,e){const r=e.getContentType()||"",n=r.indexOf("application/json")>-1,i=R.isObject(t);if(i&&R.isHTMLForm(t)&&(t=new FormData(t)),R.isFormData(t))return n?JSON.stringify(Go(t)):t;if(R.isArrayBuffer(t)||R.isBuffer(t)||R.isStream(t)||R.isFile(t)||R.isBlob(t)||R.isReadableStream(t))return t;if(R.isArrayBufferView(t))return t.buffer;if(R.isURLSearchParams(t))return e.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return rm(t,this.formSerializer).toString();if((s=R.isFileList(t))||r.indexOf("multipart/form-data")>-1){const o=this.env&&this.env.FormData;return dr(s?{"files[]":t}:t,o&&new o,this.formSerializer)}}return i||n?(e.setContentType("application/json",!1),sm(t)):t}],transformResponse:[function(t){const e=this.transitional||$t.transitional,r=e&&e.forcedJSONParsing,n=this.responseType==="json";if(R.isResponse(t)||R.isReadableStream(t))return t;if(t&&R.isString(t)&&(r&&!this.responseType||n)){const i=!(e&&e.silentJSONParsing)&&n;try{return JSON.parse(t,this.parseReviver)}catch(s){if(i)throw s.name==="SyntaxError"?W.from(s,W.ERR_BAD_RESPONSE,this,null,this.response):s}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ie.classes.FormData,Blob:ie.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};R.forEach(["delete","get","head","post","put","patch"],t=>{$t.headers[t]={}});const om=R.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),am=t=>{const e={};let r,n,i;return t&&t.split(`
|
|
52
|
+
`).forEach(function(s){i=s.indexOf(":"),r=s.substring(0,i).trim().toLowerCase(),n=s.substring(i+1).trim(),!(!r||e[r]&&om[r])&&(r==="set-cookie"?e[r]?e[r].push(n):e[r]=[n]:e[r]=e[r]?e[r]+", "+n:n)}),e},Qi=Symbol("internals");function gt(t){return t&&String(t).trim().toLowerCase()}function Jt(t){return t===!1||t==null?t:R.isArray(t)?t.map(Jt):String(t)}function um(t){const e=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(t);)e[n[1]]=n[2];return e}const cm=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function Ir(t,e,r,n,i){if(R.isFunction(n))return n.call(this,e,r);if(i&&(e=r),!!R.isString(e)){if(R.isString(n))return e.indexOf(n)!==-1;if(R.isRegExp(n))return n.test(e)}}function lm(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,r,n)=>r.toUpperCase()+n)}function fm(t,e){const r=R.toCamelCase(" "+e);["get","set","has"].forEach(n=>{Object.defineProperty(t,n+r,{value:function(i,s,o){return this[n].call(this,e,i,s,o)},configurable:!0})})}let ce=class{constructor(e){e&&this.set(e)}set(e,r,n){const i=this;function s(u,l,a){const c=gt(l);if(!c)throw new Error("header name must be a non-empty string");const f=R.findKey(i,c);(!f||i[f]===void 0||a===!0||a===void 0&&i[f]!==!1)&&(i[f||l]=Jt(u))}const o=(u,l)=>R.forEach(u,(a,c)=>s(a,c,l));if(R.isPlainObject(e)||e instanceof this.constructor)o(e,r);else if(R.isString(e)&&(e=e.trim())&&!cm(e))o(am(e),r);else if(R.isObject(e)&&R.isIterable(e)){let u={},l,a;for(const c of e){if(!R.isArray(c))throw TypeError("Object iterator must return a key-value pair");u[a=c[0]]=(l=u[a])?R.isArray(l)?[...l,c[1]]:[l,c[1]]:c[1]}o(u,r)}else e!=null&&s(r,e,n);return this}get(e,r){if(e=gt(e),e){const n=R.findKey(this,e);if(n){const i=this[n];if(!r)return i;if(r===!0)return um(i);if(R.isFunction(r))return r.call(this,i,n);if(R.isRegExp(r))return r.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,r){if(e=gt(e),e){const n=R.findKey(this,e);return!!(n&&this[n]!==void 0&&(!r||Ir(this,this[n],n,r)))}return!1}delete(e,r){const n=this;let i=!1;function s(o){if(o=gt(o),o){const u=R.findKey(n,o);u&&(!r||Ir(n,n[u],u,r))&&(delete n[u],i=!0)}}return R.isArray(e)?e.forEach(s):s(e),i}clear(e){const r=Object.keys(this);let n=r.length,i=!1;for(;n--;){const s=r[n];(!e||Ir(this,this[s],s,e,!0))&&(delete this[s],i=!0)}return i}normalize(e){const r=this,n={};return R.forEach(this,(i,s)=>{const o=R.findKey(n,s);if(o){r[o]=Jt(i),delete r[s];return}const u=e?lm(s):String(s).trim();u!==s&&delete r[s],r[u]=Jt(i),n[u]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const r=Object.create(null);return R.forEach(this,(n,i)=>{n!=null&&n!==!1&&(r[i]=e&&R.isArray(n)?n.join(", "):n)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,r])=>e+": "+r).join(`
|
|
53
|
+
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...r){const n=new this(e);return r.forEach(i=>n.set(i)),n}static accessor(e){const r=(this[Qi]=this[Qi]={accessors:{}}).accessors,n=this.prototype;function i(s){const o=gt(s);r[o]||(fm(n,s),r[o]=!0)}return R.isArray(e)?e.forEach(i):i(e),this}};ce.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);R.reduceDescriptors(ce.prototype,({value:t},e)=>{let r=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(n){this[r]=n}}});R.freezeMethods(ce);function Mr(t,e){const r=this||$t,n=e||r,i=ce.from(n.headers);let s=n.data;return R.forEach(t,function(o){s=o.call(r,s,i.normalize(),e?e.status:void 0)}),i.normalize(),s}function Yo(t){return!!(t&&t.__CANCEL__)}let Dt=class extends W{constructor(e,r,n){super(e!=null?e:"canceled",W.ERR_CANCELED,r,n),this.name="CanceledError",this.__CANCEL__=!0}};function Zo(t,e,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?t(r):e(new W("Request failed with status code "+r.status,[W.ERR_BAD_REQUEST,W.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function hm(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function pm(t,e){t=t||10;const r=new Array(t),n=new Array(t);let i=0,s=0,o;return e=e!==void 0?e:1e3,function(u){const l=Date.now(),a=n[s];o||(o=l),r[i]=u,n[i]=l;let c=s,f=0;for(;c!==i;)f+=r[c++],c=c%t;if(i=(i+1)%t,i===s&&(s=(s+1)%t),l-o<e)return;const h=a&&l-a;return h?Math.round(f*1e3/h):void 0}}function dm(t,e){let r=0,n=1e3/e,i,s;const o=(u,l=Date.now())=>{r=l,i=null,s&&(clearTimeout(s),s=null),t(...u)};return[(...u)=>{const l=Date.now(),a=l-r;a>=n?o(u,l):(i=u,s||(s=setTimeout(()=>{s=null,o(i)},n-a)))},()=>i&&o(i)]}const sr=(t,e,r=3)=>{let n=0;const i=pm(50,250);return dm(s=>{const o=s.loaded,u=s.lengthComputable?s.total:void 0,l=o-n,a=i(l),c=o<=u;n=o;const f={loaded:o,total:u,progress:u?o/u:void 0,bytes:l,rate:a||void 0,estimated:a&&u&&c?(u-o)/a:void 0,event:s,lengthComputable:u!=null,[e?"download":"upload"]:!0};t(f)},r)},Xi=(t,e)=>{const r=t!=null;return[n=>e[0]({lengthComputable:r,total:t,loaded:n}),e[1]]},es=t=>(...e)=>R.asap(()=>t(...e)),gm=ie.hasStandardBrowserEnv?((t,e)=>r=>(r=new URL(r,ie.origin),t.protocol===r.protocol&&t.host===r.host&&(e||t.port===r.port)))(new URL(ie.origin),ie.navigator&&/(msie|trident)/i.test(ie.navigator.userAgent)):()=>!0,vm=ie.hasStandardBrowserEnv?{write(t,e,r,n,i,s,o){if(typeof document>"u")return;const u=[`${t}=${encodeURIComponent(e)}`];R.isNumber(r)&&u.push(`expires=${new Date(r).toUTCString()}`),R.isString(n)&&u.push(`path=${n}`),R.isString(i)&&u.push(`domain=${i}`),s===!0&&u.push("secure"),R.isString(o)&&u.push(`SameSite=${o}`),document.cookie=u.join("; ")},read(t){if(typeof document>"u")return null;const e=document.cookie.match(new RegExp("(?:^|; )"+t+"=([^;]*)"));return e?decodeURIComponent(e[1]):null},remove(t){this.write(t,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function mm(t){return typeof t!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function ym(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}function Qo(t,e,r){let n=!mm(e);return t&&(n||r==!1)?ym(t,e):e}const ts=t=>t instanceof ce?V({},t):t;function Ke(t,e){e=e||{};const r={};function n(a,c,f,h){return R.isPlainObject(a)&&R.isPlainObject(c)?R.merge.call({caseless:h},a,c):R.isPlainObject(c)?R.merge({},c):R.isArray(c)?c.slice():c}function i(a,c,f,h){if(R.isUndefined(c)){if(!R.isUndefined(a))return n(void 0,a,f,h)}else return n(a,c,f,h)}function s(a,c){if(!R.isUndefined(c))return n(void 0,c)}function o(a,c){if(R.isUndefined(c)){if(!R.isUndefined(a))return n(void 0,a)}else return n(void 0,c)}function u(a,c,f){if(f in e)return n(a,c);if(f in t)return n(void 0,a)}const l={url:s,method:s,data:s,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:u,headers:(a,c,f)=>i(ts(a),ts(c),f,!0)};return R.forEach(Object.keys(V(V({},t),e)),function(a){if(a==="__proto__"||a==="constructor"||a==="prototype")return;const c=R.hasOwnProp(l,a)?l[a]:i,f=c(t[a],e[a],a);R.isUndefined(f)&&c!==u||(r[a]=f)}),r}const Xo=t=>{const e=Ke({},t);let{data:r,withXSRFToken:n,xsrfHeaderName:i,xsrfCookieName:s,headers:o,auth:u}=e;if(e.headers=o=ce.from(o),e.url=Jo(Qo(e.baseURL,e.url,e.allowAbsoluteUrls),t.params,t.paramsSerializer),u&&o.set("Authorization","Basic "+btoa((u.username||"")+":"+(u.password?unescape(encodeURIComponent(u.password)):""))),R.isFormData(r)){if(ie.hasStandardBrowserEnv||ie.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if(R.isFunction(r.getHeaders)){const l=r.getHeaders(),a=["content-type","content-length"];Object.entries(l).forEach(([c,f])=>{a.includes(c.toLowerCase())&&o.set(c,f)})}}if(ie.hasStandardBrowserEnv&&(n&&R.isFunction(n)&&(n=n(e)),n||n!==!1&&gm(e.url))){const l=i&&s&&vm.read(s);l&&o.set(i,l)}return e},bm=typeof XMLHttpRequest<"u",_m=bm&&function(t){return new Promise(function(e,r){const n=Xo(t);let i=n.data;const s=ce.from(n.headers).normalize();let{responseType:o,onUploadProgress:u,onDownloadProgress:l}=n,a,c,f,h,p;function d(){h&&h(),p&&p(),n.cancelToken&&n.cancelToken.unsubscribe(a),n.signal&&n.signal.removeEventListener("abort",a)}let g=new XMLHttpRequest;g.open(n.method.toUpperCase(),n.url,!0),g.timeout=n.timeout;function v(){if(!g)return;const m=ce.from("getAllResponseHeaders"in g&&g.getAllResponseHeaders()),b={data:!o||o==="text"||o==="json"?g.responseText:g.response,status:g.status,statusText:g.statusText,headers:m,config:t,request:g};Zo(function(_){e(_),d()},function(_){r(_),d()},b),g=null}"onloadend"in g?g.onloadend=v:g.onreadystatechange=function(){!g||g.readyState!==4||g.status===0&&!(g.responseURL&&g.responseURL.indexOf("file:")===0)||setTimeout(v)},g.onabort=function(){g&&(r(new W("Request aborted",W.ECONNABORTED,t,g)),g=null)},g.onerror=function(m){const b=m&&m.message?m.message:"Network Error",_=new W(b,W.ERR_NETWORK,t,g);_.event=m||null,r(_),g=null},g.ontimeout=function(){let m=n.timeout?"timeout of "+n.timeout+"ms exceeded":"timeout exceeded";const b=n.transitional||Pn;n.timeoutErrorMessage&&(m=n.timeoutErrorMessage),r(new W(m,b.clarifyTimeoutError?W.ETIMEDOUT:W.ECONNABORTED,t,g)),g=null},i===void 0&&s.setContentType(null),"setRequestHeader"in g&&R.forEach(s.toJSON(),function(m,b){g.setRequestHeader(b,m)}),R.isUndefined(n.withCredentials)||(g.withCredentials=!!n.withCredentials),o&&o!=="json"&&(g.responseType=n.responseType),l&&([f,p]=sr(l,!0),g.addEventListener("progress",f)),u&&g.upload&&([c,h]=sr(u),g.upload.addEventListener("progress",c),g.upload.addEventListener("loadend",h)),(n.cancelToken||n.signal)&&(a=m=>{g&&(r(!m||m.type?new Dt(null,t,g):m),g.abort(),g=null)},n.cancelToken&&n.cancelToken.subscribe(a),n.signal&&(n.signal.aborted?a():n.signal.addEventListener("abort",a)));const E=hm(n.url);if(E&&ie.protocols.indexOf(E)===-1){r(new W("Unsupported protocol "+E+":",W.ERR_BAD_REQUEST,t));return}g.send(i||null)})},wm=(t,e)=>{const{length:r}=t=t?t.filter(Boolean):[];if(e||r){let n=new AbortController,i;const s=function(a){if(!i){i=!0,u();const c=a instanceof Error?a:this.reason;n.abort(c instanceof W?c:new Dt(c instanceof Error?c.message:c))}};let o=e&&setTimeout(()=>{o=null,s(new W(`timeout of ${e}ms exceeded`,W.ETIMEDOUT))},e);const u=()=>{t&&(o&&clearTimeout(o),o=null,t.forEach(a=>{a.unsubscribe?a.unsubscribe(s):a.removeEventListener("abort",s)}),t=null)};t.forEach(a=>a.addEventListener("abort",s));const{signal:l}=n;return l.unsubscribe=()=>R.asap(u),l}},Em=function*(t,e){let r=t.byteLength;if(r<e){yield t;return}let n=0,i;for(;n<r;)i=n+e,yield t.slice(n,i),n=i},Sm=function(t,e){return _r(this,null,function*(){try{for(var r=Un(Tm(t)),n,i,s;n=!(i=yield new Ue(r.next())).done;n=!1){const o=i.value;yield*wr(Em(o,e))}}catch(i){s=[i]}finally{try{n&&(i=r.return)&&(yield new Ue(i.call(r)))}finally{if(s)throw s[0]}}})},Tm=function(t){return _r(this,null,function*(){if(t[Symbol.asyncIterator]){yield*wr(t);return}const e=t.getReader();try{for(;;){const{done:r,value:n}=yield new Ue(e.read());if(r)break;yield n}}finally{yield new Ue(e.cancel())}})},rs=(t,e,r,n)=>{const i=Sm(t,e);let s=0,o,u=a=>{o||(o=!0,n&&n(a))};return new ReadableStream({pull(a){return U(this,null,function*(){try{const{done:c,value:f}=yield i.next();if(c){u(),a.close();return}let h=f.byteLength;if(r){let p=s+=h;r(p)}a.enqueue(new Uint8Array(f))}catch(c){throw u(c),c}})},cancel(a){return u(a),i.return()}},{highWaterMark:2})},ns=64*1024,{isFunction:Ut}=R,Rm=(({Request:t,Response:e})=>({Request:t,Response:e}))(R.global),{ReadableStream:is,TextEncoder:ss}=R.global,os=(t,...e)=>{try{return!!t(...e)}catch(r){return!1}},Am=t=>{t=R.merge.call({skipUndefined:!0},Rm,t);const{fetch:e,Request:r,Response:n}=t,i=e?Ut(e):typeof fetch=="function",s=Ut(r),o=Ut(n);if(!i)return!1;const u=i&&Ut(is),l=i&&(typeof ss=="function"?(d=>g=>d.encode(g))(new ss):d=>U(null,null,function*(){return new Uint8Array(yield new r(d).arrayBuffer())})),a=s&&u&&os(()=>{let d=!1;const g=new r(ie.origin,{body:new is,method:"POST",get duplex(){return d=!0,"half"}}).headers.has("Content-Type");return d&&!g}),c=o&&u&&os(()=>R.isReadableStream(new n("").body)),f={stream:c&&(d=>d.body)};i&&["text","arrayBuffer","blob","formData","stream"].forEach(d=>{!f[d]&&(f[d]=(g,v)=>{let E=g&&g[d];if(E)return E.call(g);throw new W(`Response type '${d}' is not supported`,W.ERR_NOT_SUPPORT,v)})});const h=d=>U(null,null,function*(){if(d==null)return 0;if(R.isBlob(d))return d.size;if(R.isSpecCompliantForm(d))return(yield new r(ie.origin,{method:"POST",body:d}).arrayBuffer()).byteLength;if(R.isArrayBufferView(d)||R.isArrayBuffer(d))return d.byteLength;if(R.isURLSearchParams(d)&&(d=d+""),R.isString(d))return(yield l(d)).byteLength}),p=(d,g)=>U(null,null,function*(){const v=R.toFiniteNumber(d.getContentLength());return v!=null?v:h(g)});return d=>U(null,null,function*(){let{url:g,method:v,data:E,signal:m,cancelToken:b,timeout:_,onDownloadProgress:w,onUploadProgress:y,responseType:T,headers:O,withCredentials:L="same-origin",fetchOptions:S}=Xo(d),A=e||fetch;T=T?(T+"").toLowerCase():"text";let M=wm([m,b&&b.toAbortSignal()],_),P=null;const I=M&&M.unsubscribe&&(()=>{M.unsubscribe()});let B;try{if(y&&a&&v!=="get"&&v!=="head"&&(B=yield p(O,E))!==0){let x=new r(g,{method:"POST",body:E,duplex:"half"}),C;if(R.isFormData(E)&&(C=x.headers.get("content-type"))&&O.setContentType(C),x.body){const[D,N]=Xi(B,sr(es(y)));E=rs(x.body,ns,D,N)}}R.isString(L)||(L=L?"include":"omit");const $=s&&"credentials"in r.prototype,H=re(V({},S),{signal:M,method:v.toUpperCase(),headers:O.normalize().toJSON(),body:E,duplex:"half",credentials:$?L:void 0});P=s&&new r(g,H);let F=yield s?A(P,S):A(g,H);const q=c&&(T==="stream"||T==="response");if(c&&(w||q&&I)){const x={};["status","statusText","headers"].forEach(te=>{x[te]=F[te]});const C=R.toFiniteNumber(F.headers.get("content-length")),[D,N]=w&&Xi(C,sr(es(w),!0))||[];F=new n(rs(F.body,ns,D,()=>{N&&N(),I&&I()}),x)}T=T||"text";let z=yield f[R.findKey(f,T)||"text"](F,d);return!q&&I&&I(),yield new Promise((x,C)=>{Zo(x,C,{data:z,headers:ce.from(F.headers),status:F.status,statusText:F.statusText,config:d,request:P})})}catch($){throw I&&I(),$&&$.name==="TypeError"&&/Load failed|fetch/i.test($.message)?Object.assign(new W("Network Error",W.ERR_NETWORK,d,P,$&&$.response),{cause:$.cause||$}):W.from($,$&&$.code,d,P,$&&$.response)}})},xm=new Map,ea=t=>{let e=t&&t.env||{};const{fetch:r,Request:n,Response:i}=e,s=[n,i,r];let o=s.length,u=o,l,a,c=xm;for(;u--;)l=s[u],a=c.get(l),a===void 0&&c.set(l,a=u?new Map:Am(e)),c=a;return a};ea();const In={http:qv,xhr:_m,fetch:{get:ea}};R.forEach(In,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch(r){}Object.defineProperty(t,"adapterName",{value:e})}});const as=t=>`- ${t}`,Om=t=>R.isFunction(t)||t===null||t===!1;function $m(t,e){t=R.isArray(t)?t:[t];const{length:r}=t;let n,i;const s={};for(let o=0;o<r;o++){n=t[o];let u;if(i=n,!Om(n)&&(i=In[(u=String(n)).toLowerCase()],i===void 0))throw new W(`Unknown adapter '${u}'`);if(i&&(R.isFunction(i)||(i=i.get(e))))break;s[u||"#"+o]=i}if(!i){const o=Object.entries(s).map(([l,a])=>`adapter ${l} `+(a===!1?"is not supported by the environment":"is not available in the build"));let u=r?o.length>1?`since :
|
|
54
|
+
`+o.map(as).join(`
|
|
55
|
+
`):" "+as(o[0]):"as no adapter specified";throw new W("There is no suitable adapter to dispatch the request "+u,"ERR_NOT_SUPPORT")}return i}const ta={getAdapter:$m,adapters:In};function Fr(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new Dt(null,t)}function us(t){return Fr(t),t.headers=ce.from(t.headers),t.data=Mr.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),ta.getAdapter(t.adapter||$t.adapter,t)(t).then(function(e){return Fr(t),e.data=Mr.call(t,t.transformResponse,e),e.headers=ce.from(e.headers),e},function(e){return Yo(e)||(Fr(t),e&&e.response&&(e.response.data=Mr.call(t,t.transformResponse,e.response),e.response.headers=ce.from(e.response.headers))),Promise.reject(e)})}const ra="1.13.6",gr={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{gr[t]=function(r){return typeof r===t||"a"+(e<1?"n ":" ")+t}});const cs={};gr.transitional=function(t,e,r){function n(i,s){return"[Axios v"+ra+"] Transitional option '"+i+"'"+s+(r?". "+r:"")}return(i,s,o)=>{if(t===!1)throw new W(n(s," has been removed"+(e?" in "+e:"")),W.ERR_DEPRECATED);return e&&!cs[s]&&(cs[s]=!0,console.warn(n(s," has been deprecated since v"+e+" and will be removed in the near future"))),t?t(i,s,o):!0}};gr.spelling=function(t){return(e,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function Dm(t,e,r){if(typeof t!="object")throw new W("options must be an object",W.ERR_BAD_OPTION_VALUE);const n=Object.keys(t);let i=n.length;for(;i-- >0;){const s=n[i],o=e[s];if(o){const u=t[s],l=u===void 0||o(u,s,t);if(l!==!0)throw new W("option "+s+" must be "+l,W.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new W("Unknown option "+s,W.ERR_BAD_OPTION)}}const Gt={assertOptions:Dm,validators:gr},le=Gt.validators;let qe=class{constructor(e){this.defaults=e||{},this.interceptors={request:new Zi,response:new Zi}}request(e,r){return U(this,null,function*(){try{return yield this._request(e,r)}catch(n){if(n instanceof Error){let i={};Error.captureStackTrace?Error.captureStackTrace(i):i=new Error;const s=i.stack?i.stack.replace(/^.+\n/,""):"";try{n.stack?s&&!String(n.stack).endsWith(s.replace(/^.+\n.+\n/,""))&&(n.stack+=`
|
|
56
|
+
`+s):n.stack=s}catch(o){}}throw n}})}_request(e,r){typeof e=="string"?(r=r||{},r.url=e):r=e||{},r=Ke(this.defaults,r);const{transitional:n,paramsSerializer:i,headers:s}=r;n!==void 0&&Gt.assertOptions(n,{silentJSONParsing:le.transitional(le.boolean),forcedJSONParsing:le.transitional(le.boolean),clarifyTimeoutError:le.transitional(le.boolean),legacyInterceptorReqResOrdering:le.transitional(le.boolean)},!1),i!=null&&(R.isFunction(i)?r.paramsSerializer={serialize:i}:Gt.assertOptions(i,{encode:le.function,serialize:le.function},!0)),r.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?r.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:r.allowAbsoluteUrls=!0),Gt.assertOptions(r,{baseUrl:le.spelling("baseURL"),withXsrfToken:le.spelling("withXSRFToken")},!0),r.method=(r.method||this.defaults.method||"get").toLowerCase();let o=s&&R.merge(s.common,s[r.method]);s&&R.forEach(["delete","get","head","post","put","patch","common"],d=>{delete s[d]}),r.headers=ce.concat(o,s);const u=[];let l=!0;this.interceptors.request.forEach(function(d){if(typeof d.runWhen=="function"&&d.runWhen(r)===!1)return;l=l&&d.synchronous;const g=r.transitional||Pn;g&&g.legacyInterceptorReqResOrdering?u.unshift(d.fulfilled,d.rejected):u.push(d.fulfilled,d.rejected)});const a=[];this.interceptors.response.forEach(function(d){a.push(d.fulfilled,d.rejected)});let c,f=0,h;if(!l){const d=[us.bind(this),void 0];for(d.unshift(...u),d.push(...a),h=d.length,c=Promise.resolve(r);f<h;)c=c.then(d[f++],d[f++]);return c}h=u.length;let p=r;for(;f<h;){const d=u[f++],g=u[f++];try{p=d(p)}catch(v){g.call(this,v);break}}try{c=us.call(this,p)}catch(d){return Promise.reject(d)}for(f=0,h=a.length;f<h;)c=c.then(a[f++],a[f++]);return c}getUri(e){e=Ke(this.defaults,e);const r=Qo(e.baseURL,e.url,e.allowAbsoluteUrls);return Jo(r,e.params,e.paramsSerializer)}};R.forEach(["delete","get","head","options"],function(t){qe.prototype[t]=function(e,r){return this.request(Ke(r||{},{method:t,url:e,data:(r||{}).data}))}});R.forEach(["post","put","patch"],function(t){function e(r){return function(n,i,s){return this.request(Ke(s||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:n,data:i}))}}qe.prototype[t]=e(),qe.prototype[t+"Form"]=e(!0)});let Cm=class na{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(i){r=i});const n=this;this.promise.then(i=>{if(!n._listeners)return;let s=n._listeners.length;for(;s-- >0;)n._listeners[s](i);n._listeners=null}),this.promise.then=i=>{let s;const o=new Promise(u=>{n.subscribe(u),s=u}).then(i);return o.cancel=function(){n.unsubscribe(s)},o},e(function(i,s,o){n.reason||(n.reason=new Dt(i,s,o),r(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const r=this._listeners.indexOf(e);r!==-1&&this._listeners.splice(r,1)}toAbortSignal(){const e=new AbortController,r=n=>{e.abort(n)};return this.subscribe(r),e.signal.unsubscribe=()=>this.unsubscribe(r),e.signal}static source(){let e;return{token:new na(function(r){e=r}),cancel:e}}};function Bm(t){return function(e){return t.apply(null,e)}}function jm(t){return R.isObject(t)&&t.isAxiosError===!0}const ln={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(ln).forEach(([t,e])=>{ln[e]=t});function ia(t){const e=new qe(t),r=Mo(qe.prototype.request,e);return R.extend(r,qe.prototype,e,{allOwnKeys:!0}),R.extend(r,e,null,{allOwnKeys:!0}),r.create=function(n){return ia(Ke(t,n))},r}const Q=ia($t);Q.Axios=qe;Q.CanceledError=Dt;Q.CancelToken=Cm;Q.isCancel=Yo;Q.VERSION=ra;Q.toFormData=dr;Q.AxiosError=W;Q.Cancel=Q.CanceledError;Q.all=function(t){return Promise.all(t)};Q.spread=Bm;Q.isAxiosError=jm;Q.mergeConfig=Ke;Q.AxiosHeaders=ce;Q.formToJSON=t=>Go(R.isHTMLForm(t)?new FormData(t):t);Q.getAdapter=ta.getAdapter;Q.HttpStatusCode=ln;Q.default=Q;const{Axios:_0,AxiosError:w0,CanceledError:E0,isCancel:S0,CancelToken:T0,VERSION:R0,all:A0,Cancel:x0,isAxiosError:O0,spread:$0,toFormData:D0,AxiosHeaders:C0,HttpStatusCode:B0,formToJSON:j0,getAdapter:P0,mergeConfig:N0}=Q,Pm={form:"application/x-www-form-urlencoded",json:"application/json",data:"multipart/form-data"},Nm=["put","post","patch"],ls="Local-Request-Id",Im=100,Mm=300;class Fm{constructor(e={}){fe(this,"axios"),fe(this,"settings"),fe(this,"records",{}),fe(this,"isLoading",!1),fe(this,"stopSkipWarn"),fe(this,"showLoading"),fe(this,"showError"),this.settings=Object.assign({type:"form"},e.settings||{});const r=Pr(e,["settings","query"]);this.axios=Q.create(vt({headers:{"Content-Type":"application/x-www-form-urlencoded"},timeout:120*1e3},r)),this.setupSkipWarn(this.settings),this.showLoading=On(this.openLoading.bind(this),Im),this.showError=Md(this._showError.bind(this),Mm,{leading:!0,trailing:!1})}setConfig(e={}){this.settings=vt(this.settings,e.settings||{});const r=Pr(e,["settings","query"]);this.axios.defaults=vt(this.axios.defaults,r),this.setupSkipWarn(this.settings)}cancel(e,r="请求已取消"){if(e){const n=this.records[e];if(!n)return;n.source.cancel(r)}else for(const n of Object.values(this.records))n.source.cancel(r)}createHeaders(e,r,n){const i=r.injectHeaders?typeof r.headers=="function"?r.headers(e,n,r):r.headers||{}:{},s=V(V({"Content-Type":Pm[r.type||"form"]},n.headers),i);return r.skipWarn&&(s[ls]=e),s}isJsonType(e){return Object.entries(e).some(([r,n])=>r.toLowerCase()==="content-type"&&String(n).includes("application/json"))}toFormData(e,r="data"){if(e instanceof FormData||e instanceof URLSearchParams)return e;const n=r==="data"?new FormData:new URLSearchParams;return Object.entries(e).forEach(([i,s])=>{n.append(i,s)}),n}createSendData(e,r,n,i,s={}){const{type:o,skipWarn:u}=e,{name:l="skipWarn"}=u||{};let{data:a,params:c={},method:f="get"}=r;const h=i?{[l]:!0}:{};return Nm.includes(f.toLowerCase())?(a=Object.assign(a||{},h),a=o!=="json"||!this.isJsonType(n)?this.toFormData(a,o):a,c=V({},s)):o==="form"?c=V(V(V({},a||{}),s),h):(a&&(o!=="json"||!this.isJsonType(n))&&(a=this.toFormData(a,o)),c=V(V({},s),h)),{data:a,params:c}}createUrl(e){let{url:r,params:n}=e;if(r){let i=nr(r)?new URL(r).origin:"";const s=i?r.replace(i,""):r;try{const o=Lg(s,{encode:encodeURIComponent});return i+o(n||{})}catch(o){console.warn("createUrl","pathToRegexpCompile error",r)}}return r}openLoading(e){const{loading:r,showLoading:n}=e;r&&n&&Object.keys(this.records).length>0&&(this.isLoading=!0,n())}closeLoading(e){const{loading:r,hideLoading:n}=e;if(!r)return;this.isLoading=!1;const i=Object.keys(this.records);n&&i.length===0&&(this.isLoading=!1,n())}_showError(e,r){var s;const{failMessage:n,showError:i}=e;if(n&&i){const o=(s=r==null?void 0:r.response)==null?void 0:s.data,u=(o==null?void 0:o.message)||(o==null?void 0:o.msg)||(r==null?void 0:r.message)||(r==null?void 0:r.msg)||"未知错误";i(u,r)}}validResponse(e,r){const{validSuccess:n,validate:i}=e;return n&&i?!!i(r):!0}isSkipWarnResponse(e){return!!e.promise}send(e={},r=!1){const n=vt({},this.settings,e.settings||{}),i=e.query||{},s=Pr(e,["settings","query"]),o=Pg(!1),u=Q.CancelToken.source();this.records[o]={settings:n,config:s,source:u};const l=this.createUrl(s),a=this.createHeaders(o,n,s),{data:c,params:f}=this.createSendData(n,s,a,r,i);return this.showLoading(n),new Promise((h,p)=>{this.axios(re(V({cancelToken:u.token},s),{url:l,headers:a,data:c,params:f})).then(d=>{var g;return this.isSkipWarnResponse(d)?h(d.promise):this.validResponse(n,d)?h(n.originResponse?d:(g=d.data)==null?void 0:g.data):(this.showError(n,d.data),p(d.data))}).catch(d=>(this.showError(n,d),p(d))).finally(()=>{delete this.records[o],this.closeLoading(n)})})}useResponse(e,r){const{response:n}=this.axios.interceptors,i=n.use(e,r);return()=>n.eject(i)}useRequest(e,r){const{request:n}=this.axios.interceptors,i=n.use(e,r);return()=>n.eject(i)}setupSkipWarn(e){if(this.stopSkipWarn&&(this.stopSkipWarn(),this.stopSkipWarn=void 0),!e.skipWarn)return;const{code:r,executor:n,callback:i,complete:s}=e.skipWarn;this.stopSkipWarn=this.useResponse(o=>{const u=(o.config.headers||{})[ls],l=this.records[u];if(!l)return o;const{data:a}=o;if(!a||typeof a!="object")return o;if((a==null?void 0:a.code)===r){i&&i(o);const c=new Promise(n).then(()=>this.send(re(V({},l.config),{settings:l.settings}),!0));c.catch(f=>f).finally(()=>{s&&s()}),o.promise=c}return o})}}function Mn(t={}){const e=new Fm(t),r=e.send.bind(e),n=e.cancel.bind(e),i=e.setConfig.bind(e),s=e.useRequest.bind(e),o=e.useResponse.bind(e);return Object.assign(r,re(V({},e),{instance:e,send:r,cancel:n,setConfig:i,useRequest:s,useResponse:o}))}const fn=Mn({settings:{injectHeaders:!0,loading:!0,originResponse:!0}}),hn=typeof window<"u";function Lm(t){const e={};return t?(t.forEach((r,n)=>{e[n]=typeof r=="string"?decodeURIComponent(r):r}),e):{}}class sa{constructor(e={}){fe(this,"options",{type:"cache",expired:0,prefix:"__VTJ_"}),fe(this,"caches",{}),fe(this,"types"),this.types={local:hn?window.localStorage:this.caches,session:hn?window.sessionStorage:this.caches,cache:this.caches},this.config(e)}config(e={}){this.options=Object.assign(this.options,e)}save(e,r,n={}){const{type:i,expired:s,prefix:o}=V(V({},this.options),n),u=Date.now(),l=o+e,a=this.types[i]||this.caches,c={value:r,timestamp:u,expired:s};a===this.caches?a[l]=c:a.setItem(l,JSON.stringify(c))}get(e,r={}){const{type:n,prefix:i}=V(V({},this.options),r),s=i+e,o=this.types[n]||this.caches;let u;if(o===this.caches)u=o[s];else{const f=o.getItem(s);if(f)try{u=JSON.parse(f)}catch(h){console.warn("[Storage] JSON.parse",h)}}if(!u)return null;const{value:l,timestamp:a,expired:c}=u;return c>0&&a+c<Date.now()?(this.remove(e,r),null):l}remove(e,r={}){const{type:n,prefix:i}=V(V({},this.options),r),s=this.types[n]||this.caches,o=i+e;s===this.caches?delete s[o]:s.removeItem(o)}clear(e={}){const{type:r}=V(V({},this.options),e),n=this.types[r]||this.caches;n===this.caches?this.caches={}:n.clear()}}const Lr=new sa;function oa(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Yt={exports:{}},Um=Yt.exports,fs;function Hm(){return fs||(fs=1,(function(t,e){(function(r,n){n(e,t)})(Um,function(r,n){var i={timeout:5e3,jsonpCallback:"callback"};function s(){return"jsonp_"+Date.now()+"_"+Math.ceil(Math.random()*1e5)}function o(a){try{delete window[a]}catch(c){window[a]=void 0}}function u(a){var c=document.getElementById(a);c&&document.getElementsByTagName("head")[0].removeChild(c)}function l(a){var c=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],f=a,h=c.timeout||i.timeout,p=c.jsonpCallback||i.jsonpCallback,d=void 0;return new Promise(function(g,v){var E=c.jsonpCallbackFunction||s(),m=p+"_"+E;window[E]=function(_){g({ok:!0,json:function(){return Promise.resolve(_)}}),d&&clearTimeout(d),u(m),o(E)},f+=f.indexOf("?")===-1?"?":"&";var b=document.createElement("script");b.setAttribute("src",""+f+p+"="+E),c.charset&&b.setAttribute("charset",c.charset),c.nonce&&b.setAttribute("nonce",c.nonce),c.referrerPolicy&&b.setAttribute("referrerPolicy",c.referrerPolicy),c.crossorigin&&b.setAttribute("crossorigin","true"),b.id=m,document.getElementsByTagName("head")[0].appendChild(b),d=setTimeout(function(){v(new Error("JSONP request to "+a+" timed out")),o(E),u(m),window[E]=function(){o(E)}},h),b.onerror=function(){v(new Error("JSONP request to "+a+" failed")),o(E),u(m),d&&clearTimeout(d)}})}n.exports=l})})(Yt,Yt.exports)),Yt.exports}var Vm=Hm();const km=oa(Vm);function qm(t){if(hn){const{protocol:e,host:r,pathname:n}=location;return`${e}//${r}${t?n:""}`}else return null}function zm(t=""){const e=t.match(Co);return e?e[0]:""}function aa(t){const e=[];for(const r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.push([r,encodeURIComponent(t[r])].join("="));return e.join("&")}function pn(t,e,r){const n={};t=(t||location.search).replace(/^[^]*\?/,""),e=e||"&",r=r||"=";let i;const s=new RegExp("(?:^|\\"+e+")([^\\"+r+"\\"+e+"]+)(?:\\"+r+"([^\\"+e+"]*))?","g");for(;(i=s.exec(t))!==null;)i[1]!==t&&(n[decodeURIComponent(i[1])]=decodeURIComponent(i[2]||""));return n}function ua(t,e){e=typeof e=="string"?pn(e):e;const r=t.split("?")[0],n=pn(t),i=Object.assign({},n,e),s=aa(i);return s?[r,s].join("?"):t}const Zt=Object.freeze(Object.defineProperty({__proto__:null,append:ua,getCurrentHost:qm,getHost:zm,parse:pn,stringify:aa},Symbol.toStringTag,{value:"Module"}));function ca(r){return U(this,arguments,function*(t,e={}){const{query:n={}}=e;t.includes("${")&&(t=Nd(t)(n||{}));const i=ua(t,n);return yield(yield km(i,e)).json()})}var Ur,hs;function Wm(){if(hs)return Ur;hs=1,Ur=function(n,i,s){var o=document.head||document.getElementsByTagName("head")[0],u=document.createElement("script");typeof i=="function"&&(s=i,i={}),i=i||{},s=s||function(){},u.type=i.type||"text/javascript",u.charset=i.charset||"utf8",u.async="async"in i?!!i.async:!0,u.src=n,i.attrs&&t(u,i.attrs),i.text&&(u.text=""+i.text);var l="onload"in u?e:r;l(u,s),u.onload||e(u,s),o.appendChild(u)};function t(n,i){for(var s in i)n.setAttribute(s,i[s])}function e(n,i){n.onload=function(){this.onerror=this.onload=null,i(null,n)},n.onerror=function(){this.onerror=this.onload=null,i(new Error("Failed to load "+this.src),n)}}function r(n,i){n.onreadystatechange=function(){this.readyState!="complete"&&this.readyState!="loaded"||(this.onreadystatechange=null,i(null,n))}}return Ur}var Km=Wm();const Jm=oa(Km);function ps(t,e={}){return new Promise((r,n)=>{const{library:i}=e;Jm(t,e,(s,o)=>{s?n(s):r(i?window[i]:void 0)})})}const ds={debug:-1,log:0,info:0,warn:1,error:2},Gm=function(t,e,r,n){return function(...i){if(e&&ds[e]<=ds[t]&&console[t].apply&&(n==="*"||r.startsWith(n)))return console[t].apply(console,Ym(i,r))}};function Ym(t,e){return e!=="*"&&(typeof t[0]=="string"?t[0]=`[${e}] ${t[0]}`:t=["["+e+"]"].concat(t)),t}function Zm(t,e){if(!t)return{targetLevel:e.level,targetBizName:e.bizName};if(~t.indexOf(":")){const r=t.split(":");return{targetLevel:r[0],targetBizName:r[1]}}return{targetLevel:t,targetBizName:"*"}}const Qm={level:"warn",bizName:"*"};class Xm{constructor(e){fe(this,"config"),fe(this,"options"),this.options=V(V({},Qm),e);const r=typeof location<"u"?location:{},n=(/__(?:logConf|logLevel)__=([^#/&]*)/.exec(r.href)||[])[1];this.config=Zm(n,e)}_log(e){const{targetLevel:r,targetBizName:n}=this.config,{bizName:i}=this.options;return Gm(e,r,i,n)}debug(...e){return this._log("debug")(...e)}log(...e){return this._log("log")(...e)}info(...e){return this._log("info")(...e)}warn(...e){return this._log("warn")(...e)}error(...e){return this._log("error")(...e)}}function ey(t){return new Xm(t)}const it=ey({level:"log",bizName:"VTJ"});/*! js-cookie v3.0.5 | MIT */function Ht(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)t[n]=r[n]}return t}var ty={read:function(t){return t[0]==='"'&&(t=t.slice(1,-1)),t.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(t){return encodeURIComponent(t).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function dn(t,e){function r(i,s,o){if(!(typeof document>"u")){o=Ht({},e,o),typeof o.expires=="number"&&(o.expires=new Date(Date.now()+o.expires*864e5)),o.expires&&(o.expires=o.expires.toUTCString()),i=encodeURIComponent(i).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var u="";for(var l in o)o[l]&&(u+="; "+l,o[l]!==!0&&(u+="="+o[l].split(";")[0]));return document.cookie=i+"="+t.write(s,i)+u}}function n(i){if(!(typeof document>"u"||arguments.length&&!i)){for(var s=document.cookie?document.cookie.split("; "):[],o={},u=0;u<s.length;u++){var l=s[u].split("="),a=l.slice(1).join("=");try{var c=decodeURIComponent(l[0]);if(o[c]=t.read(a,c),i===c)break}catch(f){}}return i?o[i]:o}}return Object.create({set:r,get:n,remove:function(i,s){r(i,"",Ht({},s,{expires:-1}))},withAttributes:function(i){return dn(this.converter,Ht({},this.attributes,i))},withConverter:function(i){return dn(Ht({},this.converter,i),this.attributes)}},{attributes:{value:Object.freeze(e)},converter:{value:Object.freeze(t)}})}var Fn=dn(ty,{path:"/"});function ry(t,e,r){Fn.set(t,e,r)}function ny(t){return Fn.get(t)}function iy(t,e){Fn.remove(t,e)}const Hr=Object.freeze(Object.defineProperty({__proto__:null,get:ny,remove:iy,set:ry},Symbol.toStringTag,{value:"Module"}));/**!
|
|
57
57
|
* Copyright (c) 2026, VTJ.PRO All rights reserved.
|
|
58
58
|
* @name @vtj/renderer
|
|
59
59
|
* @author CHC chenhuachun1549@dingtalk.com
|
|
60
|
-
* @version 0.16.
|
|
60
|
+
* @version 0.16.21
|
|
61
61
|
* @license <a href="https://vtj.pro/license.html">MIT License</a>
|
|
62
|
-
*/const
|
|
63
|
-
`),c=r(a),f=u(c);return l(f)}catch(a){return console.error("CSS scoping failed:",a),console.error("Input CSS:",t),t.replace(/\/\*[\s\S]*?\*\//g,"").replace(/(@keyframes\s+[^{]+\s*{[^{}]*(?:{[^}]*}[^{}]*)*})/g,c=>c).replace(/([^{}@]+)(?=\s*{)/g,c=>{const f=c.trim();return!f||f.startsWith("@")||f.includes(`[${e}]`)||n(f)?c:`${f}[${e}]`})}}const
|
|
62
|
+
*/const Vr="0.16.21";var X=(t=>(t.Runtime="Runtime",t.Design="Design",t.Raw="Raw",t.VNode="VNode",t))(X||{});const gs=["$el","$emit","$nextTick","$parent","$root","$attrs","$slots","$watch","$props","$options","$forceUpdate"],sy=["vIf","vElseIf","vElse","vShow","vModel","vFor","vBind","vHtml"],oy={String,Number,Boolean,Array,Object,Function,Date},Qt="VtjPage",kr="VtjHomepage",la="html,body,base,head,link,meta,style,title,address,article,aside,footer,header,hgroup,h1,h2,h3,h4,h5,h6,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template,blockquote,iframe,tfoot,svg".split(","),ay="component,slot".split(",");function Vt(t,e){return t.map(r=>nr(r)||r.startsWith("/")?r:`${e}${r}`)}function vr(t){return/\.css$/.test(t)}function mr(t){return/\.js$/.test(t)}function uy(t){return/\.json$/.test(t)}function cy(t,e=!1){return e&&t.endsWith(".prod.js")?t.replace(".prod.js",".js"):t}function ly(t,e,r=!1){const n=t.filter(h=>!!h.enabled),i=[],s=[],o=[],u=[],l={},a={},c=[],f={};return n.forEach(({urls:h,assetsUrl:p,library:d,assetsLibrary:g,localeLibrary:v})=>{h==null||h.forEach(E=>{mr(E)&&i.push(cy(E,r)),vr(E)&&s.push(E)}),d&&(u.push(d),l[d]=Vt(h||[],e),v&&(a[d]=v)),p&&o.push(p),g&&c.push(g),d&&g&&(f[g]=d)}),{scripts:Vt(i,e),css:Vt(s,e),materials:Vt(o,e),libraryExports:u,materialExports:Ig(c),materialMapLibrary:f,libraryMap:l,libraryLocaleMap:a}}function fy(t,e){var s;const{name:r,parent:n,alias:i}=t;return n?(s=e[n])==null?void 0:s[i||r]:e[i||r]}function hy(t=[]){const e=t.filter(n=>vr(n)),r=t.filter(n=>mr(n));return{css:e,js:r}}function py(t,e){const r=a=>{const c=[];let f=0;for(;f<a.length;){if(/\s/.test(a[f])){f++;continue}if(a.substring(f,f+2)==="/*"){const E=a.indexOf("*/",f+2);if(E!==-1){f=E+2;continue}}if(a[f]==="@"){const E=f;for(;f<a.length&&a[f]!=="{"&&a[f]!==";";)f++;const m=a.substring(E,f).trim(),b=m.includes("@keyframes");if(a[f]===";")c.push({type:"simple-at-rule",content:a.substring(E,f+1)}),f++;else if(a[f]==="{"){const _=f+1;let w=1;for(f++;f<a.length&&w>0;)a[f]==="{"?w++:a[f]==="}"&&w--,f++;const y=a.substring(E,f),T=a.substring(_,f-1);c.push({type:b?"keyframes":"at-rule",rule:m,content:y,inner:T})}continue}const h=f;for(;f<a.length&&a[f]!=="{";)f++;if(f>=a.length)break;const p=a.substring(h,f).trim();if(!p){f++;continue}const d=f+1;let g=1;for(f++;f<a.length&&g>0;)a[f]==="{"?g++:a[f]==="}"&&g--,f++;const v=a.substring(d,f-1);c.push({type:"rule",selector:p,content:v.trim()})}return c},n=a=>{const c=a.trim();return/^(from|to|\d+(\.\d+)?%)$/.test(c)},i=a=>a.replace(/::v-deep\(/g,":deep(").replace(/::v-deep\s+/g,":deep(").replace(/\/deep\//g," ").replace(/>>>/g," ").replace(/(.*?):deep\(([^)]+)\)/g,(c,f,h)=>{const p=f.trim(),d=h.trim();return p?`${p}[${e}] ${d}`:d}),s=a=>{const c=a.trim();if(!c||c.includes(`[${e}]`)||/^(:root|:host|html|body)(\s|$|:|\.|\#|\[)/.test(c)||n(c))return c;const f=c.match(/^(.+?)((?:::?[\w-]+(?:\([^)]*\))?)*)\s*$/);if(f){const[,h,p=""]=f,d=h.trim();return d?`${d}[${e}]${p}`:c}return`${c}[${e}]`},o=a=>i(a).split(",").map(c=>s(c)).filter(c=>c.trim()).join(", "),u=a=>a.map(c=>{switch(c.type){case"simple-at-rule":return c.content;case"keyframes":return c.content;case"at-rule":try{const h=r(c.inner),p=u(h);return`${c.rule} { ${p} }`}catch(h){return c.content}case"rule":if(!c.selector||!c.content)return"";const f=o(c.selector);return f.trim()?`${f} { ${c.content} }`:"";default:return""}}).filter(c=>c.trim()).join(" "),l=a=>a.replace(/\s*{\s*/g," { ").replace(/\s*}\s*/g," } ").replace(/\s*;\s*/g,"; ").replace(/\s*,\s*/g,", ").replace(/\s+/g," ").replace(/^\s+|\s+$/g,"").replace(/\s*}\s*}/g," } }").trim();try{const a=t.replace(/\/\*(?!\s*!)[\s\S]*?\*\//g,"").replace(/^\s+|\s+$/gm,"").replace(/\n\s*\n/g,`
|
|
63
|
+
`),c=r(a),f=u(c);return l(f)}catch(a){return console.error("CSS scoping failed:",a),console.error("Input CSS:",t),t.replace(/\/\*[\s\S]*?\*\//g,"").replace(/(@keyframes\s+[^{]+\s*{[^{}]*(?:{[^}]*}[^{}]*)*})/g,c=>c).replace(/([^{}@]+)(?=\s*{)/g,c=>{const f=c.trim();return!f||f.startsWith("@")||f.includes(`[${e}]`)||n(f)?c:`${f}[${e}]`})}}const dy=750;function gy(t,e,r){let n;typeof t<"u"?n=t.innerWidth||t.document.documentElement.clientWidth:(console.warn("无法获取屏幕宽度,使用默认值375"),n=375);const i=dy;return e*n/i}function vy(t,e){let r=!1,n=!1,i=!1,s="";for(let o=0;o<e.length;o++){const u=e[o];if(u==="'"&&!n&&!i?r=!r:u==='"'&&!r&&!i?n=!n:e.substr(o,4).toLowerCase()==="url("&&!r&&!n?i=!0:u===")"&&i&&(i=!1),!r&&!n&&!i){const l=e.substr(o).match(/^(-?\d+(?:\.\d+)?)\s*rpx/);if(l){const a=l[1],c=parseFloat(a),f=`${gy(t,c).toFixed(6).replace(/\.?0+$/,"")}px`;s+=f,o+=l[0].length-1;continue}}s+=u}return s}function fa(t){return Me(t)?t:JSON.stringify(t)}function yr(t,e,r,n=!1){const i=t.CSSStyleSheet,s=n?`data-v-${e}`:e,o=t.__uniConfig?vy(t,r):r,u=n?py(o,s):o,l=!!t.__uniConfig;if(i.prototype.replaceSync&&!l){const a=new i;a.id=e,a.replaceSync(u);const c=t.document,f=c.adoptedStyleSheets,h=Array.from(f).filter(p=>p.id!==e);c.adoptedStyleSheets=[...h,a]}else{const a=t.document;let c=a.getElementById(e);c?c.innerHTML=u:(c=a.createElement("style"),c.id=e,c.innerHTML=u,a.head.appendChild(c))}}function my(t,e){return U(this,null,function*(){const r=yield window.fetch(e).then(n=>n.text()).catch(()=>"");r&&yr(window,t,r)})}function ha(t,e=window){const r=e.document,n=e.document.head;for(const i of t)if(!r.getElementById(i)){const s=r.createElement("link");s.rel="stylesheet",s.id=i,s.href=i,n.appendChild(s)}}function pa(n,i){return U(this,arguments,function*(t,e,r=window){const s=r.document,o=r.document.head;let u=r[e];return u?u.default||u:new Promise((l,a)=>{for(const c of t){const f=s.createElement("script");f.src=c,f.onload=()=>{u=r[e],u?l(u.default||u):a(null)},f.onerror=h=>{a(h)},o.appendChild(f)}})})}function yy(t){return ze(t)&&Object.getOwnPropertyNames(t.prototype||{}).length===0||ze(t==null?void 0:t.install)}function by(t){return ay.includes(t)}function _y(t){return la.includes(t)}function Tt(t=window){const e=window==null?void 0:window.Mock;if(e)return e;const r=t==null?void 0:t.Mock;if(r&&window)return window.Mock=r,r}function Rt(t,e,r=!1,n=!1,i=!1){var s;try{const o=['"use strict";',"var __self = arguments[0];"];o.push("return ");let u=(t.value||"").trim();i||(u=u.replace(/this(\W|$)/g,(a,c)=>`__self${c}`)),u=o.join(`
|
|
64
64
|
`)+u;const l=i?`
|
|
65
65
|
${u}
|
|
66
|
-
`:`with(${r?"{}":"$scope || {}"}) { ${u} }`;return new Function("$scope",l)(e)}catch(o){if(it.error("parseExpression.error",o,t,(s=e==null?void 0:e.__self)!=null?s:e),n)throw o}}function pe(t,e,r=!1,n=!1,i=!1){var o;const s=Rt(t,e,r,n,i);if(typeof s!="function"&&(it.error("parseFunction.error","not a function",t,(o=e==null?void 0:e.__self)!=null?o:e),n))throw new Error(`"${t.value}" not a function`);return s}function me(t){return t&&t.type==="JSExpression"}function de(t){return typeof t=="object"&&t&&t.type==="JSFunction"}const Sy={session:!1,authKey:"Authorization",storageKey:"ACCESS_STORAGE",storagePrefix:"__VTJ_",unauthorized:void 0,auth:"/#/login",redirectParam:"r",unauthorizedCode:401,unauthorizedMessage:"登录已经失效,请重新登录!",noPermissionMessage:"无权限访问该页面",appName:"",statusKey:"code"},Ty=Symbol("access");class da{constructor(e){k(this,"options");k(this,"data",null);k(this,"mode",X.Raw);k(this,"interceptResponse",!0);k(this,"isTipShowing",!1);this.options=Object.assign({},Sy,e),this.loadData()}enableIntercept(){this.interceptResponse=!0}disableIntercept(){this.interceptResponse=!1}connect(e){const{mode:r,router:n,request:i}=e;this.mode=r,n&&this.mode!==X.Design&&this.setGuard(n),i&&this.setRequest(i)}login(e){const{storageKey:r,storagePrefix:n,session:i,authKey:s}=this.options;this.setData(e),this.data&&(Fr.save(r,e,{type:"local",prefix:n}),i&&Ur.set(s,this.data.token))}clear(){const{storageKey:e,storagePrefix:r,session:n,authKey:i}=this.options;this.data=null,Fr.remove(e,{type:"local",prefix:r}),n&&Ur.remove(i)}logout(){this.clear(),this.toLogin()}getData(){return this.data?this.data:(this.loadData(),this.data)}getToken(){var e;return this.data||this.loadData(),(e=this.data)==null?void 0:e.token}can(e){const{appName:r}=this.options,{permissions:n={}}=this.data||{};return typeof e=="function"?e(n):zi(e).every(i=>n[i]||n[r+"."+i])}some(e){const{appName:r}=this.options,{permissions:n={}}=this.data||{};return zi(e).some(i=>n[i]||n[r+"."+i])}install(e){e.config.globalProperties.$access=this,e.provide(Ty,this)}isAuthPath(e){const{auth:r,isAuth:n}=this.options;if(n)return n(e);if(e.path&&typeof r=="string"){const i=r.split("#")[1]||r;return e.path===i}return!1}toLogin(){const{auth:e,redirectParam:r}=this.options;if(!e)return;const n=r?`?${r}=${encodeURIComponent(location.href)}`:"";typeof e=="function"?e(n):location.href=r?`${e}${n}`:e}setData(e){const{privateKey:r}=this.options;if(Array.isArray(e)&&r){const n=e.map(i=>qi(i,r));try{this.data=JSON.parse(n.join(""))}catch(i){console.warn(i)}return}if(typeof e=="string")try{const n=r?qi(e,r):e;n?this.data=JSON.parse(n):console.warn("RSA解密失败或登录信息缺失")}catch(n){console.warn(n)}else this.data=e}loadData(){const{storageKey:e,storagePrefix:r}=this.options,n=Fr.get(e,{type:"local",prefix:r});this.setData(n||null)}isLogined(){const{session:e,authKey:r}=this.options;return e&&r?!!Ur.get(r):!!this.getToken()}hasRoutePermission(e){if(e.name===Zt){const r=e.params.id;return r&&this.can(r)}return e.meta.__vtj__?this.can(e.meta.__vtj__):e.meta.permission?this.can(e.meta.permission):!0}setGuard(e){e.beforeEach((r,n,i)=>this.guard(r,i))}guard(e,r){return L(this,null,function*(){if(this.isWhiteList(e)||this.isAuthPath(e))return r();if(this.isLogined()){if(this.hasRoutePermission(e))return r();{const{noPermissionMessage:n="无权限访问",unauthorized:i=!1}=this.options;return yield this.showTip(n),Ie(i)?(i(),r(!1)):Me(i)?r(i):r(!1)}}r(!1),yield nr(0),this.toLogin()})}isWhiteList(e){const{whiteList:r}=this.options;return r?Array.isArray(r)?r.some(n=>e.fullPath.startsWith(n)):r(e):!1}isUnauthorized(e){var i;const{unauthorizedCode:r=401,statusKey:n="code"}=this.options;return e.status===r||((i=e.data)==null?void 0:i[n])===r}showUnauthorizedAlert(e){return L(this,null,function*(){const{unauthorizedMessage:r="登录已失效"}=this.options;this.isUnauthorized(e)&&(yield this.showTip(r))&&this.toLogin()})}showTip(e){return L(this,null,function*(){var n,i;const{alert:r}=this.options;return this.isTipShowing?!1:r?(this.isTipShowing=!0,yield nr(150),yield(i=(n=r(e,{title:"提示",type:"warning"}))==null?void 0:n.catch(()=>!0))==null?void 0:i.finally(()=>{this.isTipShowing=!1})):(window.alert(e),!0)})}setRequest(e){e.useRequest(r=>{var n,i;return(n=this.data)!=null&&n.token&&(r.headers[this.options.authKey]=(i=this.data)==null?void 0:i.token),r}),e.useResponse(r=>L(this,null,function*(){return this.interceptResponse&&(yield this.showUnauthorizedAlert(r)),r}),r=>L(this,null,function*(){if(!this.interceptResponse)return Promise.reject(r);const n=r.response||r||{};return yield this.showUnauthorizedAlert(n),Promise.reject(r)}))}}function Ry(t={}){const{notify:e,loading:r,settings:n={},Startup:i,access:s,useTitle:o,alert:u}=t;let l=null;return{request:In({settings:V({type:"form",validSuccess:!0,originResponse:!1,loading:!0,validate:a=>{var c,f;return((c=a.data)==null?void 0:c.code)===0||!!((f=a.data)!=null&&f.success)},failMessage:!0,showError:a=>{e&&e(a||"未知错误")},showLoading:()=>{l&&l.close(),r&&(l=r())},hideLoading:()=>{l&&(l.close(),l=null)}},n)}),jsonp:ca,notify:e,loading:r,useTitle:o,alert:u,startupComponent:i,access:s?new da(V({alert:u},s)):void 0}}function Ay(t,e){const{jsonp:r,request:n}=e;if(t.method==="jsonp")return(i={})=>r(t.url,re(V({},t.jsonpOptions),{query:i}));{const i=t.headers?Rt(t.headers,{},!0):void 0,s={url:t.url,method:t.method,settings:re(V({},t.settings),{headers:i})};return(o,u)=>(delete s.data,n.send(vt(s,u||{},{data:o})))}}function xy(t,e){const{metaQuery:r}=e;if(!r)return;const{code:n,queryCode:i}=t;return(s,o)=>{if(!r){console.warn("adapter.metaQuery is not defined!");return}return r(n,i,s,o)}}function Oy(t=[],e=[],r){const n={};for(const i of t){const s=Ay(i,r);n[i.id]=s,n[i.name]=s}for(const i of e)n[i.id]=xy(i,r);return n}function $y(){return L(this,arguments,function*(t=[],e=window){const r=Tt(e);r&&(ga(e),t.forEach(n=>Cy(r,n)))})}function Dy(t,e=window){const r=de(t.mockTemplate)&&t.mockTemplate.value?pe(t.mockTemplate,{},!0):void 0,n=Tt(e);return(...i)=>L(null,null,function*(){let s={};if(r)try{s=yield r.apply(r,i)}catch(o){it.warn("模拟数据模版异常",o)}return n==null?void 0:n.mock(s)})}function Cy(t,e){if(!e.mock)return;const{url:r,mockTemplate:n}=e;if(r&&n)try{const i=rr(r)?new URL(r).pathname:r,s=Dn(`(.*)${i}(.*)`),o=Vg(i,{decode:decodeURIComponent}),u=Rt(n,{},!0);t.mock(s,l=>{var p;const a=Yt.parse(l.url)||{},c=l.body instanceof FormData?Um(l.body):l.body,f=rr(l.url)?new URL(l.url).pathname:l.url.split("?")[0],h=(p=o(f))==null?void 0:p.params;Object.assign(l,{data:c,params:h,query:a});try{return t.mock(u(l))}catch(d){return console.warn("[mockApi]",s,l,d),null}})}catch(i){console.warn("mockApi",i)}}function ga(t=window){const e=Tt(t);e&&(e._mocked={})}class By{constructor(e){k(this,"__id",null);k(this,"__mode");k(this,"__instance",null);k(this,"__contextRefs",{});k(this,"__refs",{});k(this,"__refCaches",{});k(this,"context",{});k(this,"state",{});k(this,"props",{});k(this,"$props",{});k(this,"$refs",{});k(this,"$el",null);k(this,"$emit",null);k(this,"$nextTick",null);k(this,"$parent",null);k(this,"$root",null);k(this,"$attrs",null);k(this,"$slots",null);k(this,"$watch",null);k(this,"$options",null);k(this,"$forceUpdate",null);k(this,"$components",{});k(this,"$libs",{});k(this,"$apis",{});k(this,"$provider",null);k(this,"__transform",{});const{mode:r,dsl:n,attrs:i}=e;this.__mode=r,n&&(this.__id=n.id||null,this.__transform=n.transform||{}),i&&Object.assign(this,i)}setup(e,r=sr){const n=r.getCurrentInstance();if(!n)return;this.__refs={},this.__refCaches={},this.$refs={},this.context={},this.__contextRefs={},this.__instance=n.proxy;const i=n.appContext.config.globalProperties;Object.assign(this,i),Object.assign(this,e||{}),this.__proxy(),r.onMounted(()=>{this.__proxy()}),r.onUnmounted(()=>{this.__cleanup()}),r.onBeforeUpdate(()=>{this.__reset()})}__proxy(){this.__instance&&ds.forEach(e=>{var r;this[e]=(r=this.__instance)==null?void 0:r[e]})}__cleanup(){ds.forEach(e=>{this[e]=null}),this.__reset()}__reset(){this.__refs={},this.__refCaches={},this.$refs={},this.__contextRefs={},this.context={}}__parseFunction(e){var r;if(e)if(this.__mode===X.Runtime){const{id:n,type:i}=e,s=n&&(r=this.__transform[n])!=null?r:e.value;return pe({type:i,value:s},this)}else return pe(e,this)}__parseExpression(e){var r;if(e)if(this.__mode===X.Runtime){const{id:n,type:i}=e,s=n&&(r=this.__transform[n])!=null?r:e.value;return Rt({type:i,value:s},this)}else return Rt(e,this)}__ref(e=null,r){if(this.__mode===X.VNode)return;e&&e!==this.__id&&(this.__contextRefs[e]=this);let n=e?this.__refCaches[e]:null;return n||(n=i=>L(this,null,function*(){var o,u;yield nr(0);let s=(i==null?void 0:i.$vtjEl)||(i==null?void 0:i.$el)||((u=(o=i==null?void 0:i._)==null?void 0:o.vnode)==null?void 0:u.el)||i;if(!s){typeof r=="string"&&(delete this.$refs[r],e&&delete this.__refs[e]);return}return s.nodeType===3&&s.nextSibling&&(s=s.nextSibling),s.__vtj__=e,X.Design===this.__mode&&(s.__context__=this,s.draggable=!0),e&&(this.__refs[e]=this.__getRefEl(this.__refs,e,i)),typeof r=="function"?r(i):r&&(this.$refs[r]=this.__getRefEl(this.$refs,r,i)),i}),e&&(this.__refCaches[e]=n),n)}__getRefEl(e,r,n){const i=e[r];if(i&&n!==i){const s=new Set([].concat(i,n));return Array.from(s)}else return n}__clone(e={}){const r=V(V({},this.context),e),n=re(V({},r),{context:r});return n.context.__proto__=this.context,n.__proto__=this,n}}function dn(t){var f,p;const{Vue:e=sr,mode:r=X.Runtime,components:n={},libs:i={},apis:s={},loader:o}=t,u=e.computed(()=>t.dsl),l={$components:n,$libs:i,$apis:s},a=new By({mode:r,dsl:u.value,attrs:l}),c=e.defineComponent(V({name:u.value.name,__scopeId:u.value.id?`data-v-${u.value.id}`:void 0,props:V({},Py((f=u.value.props)!=null?f:[],a)),setup(d){return L(this,null,function*(){var _,E,y,T;a.$props=d,a.props=d,u.value.id&&mr(t.window||window,u.value.id,u.value.css||"",!0),a.state=Ny(e,(_=u.value.state)!=null?_:{},a);const g=Iy(e,(E=u.value.computed)!=null?E:{},a),m=My((y=u.value.methods)!=null?y:{},a),w=Fy(e,u.value.inject,a);for(const[x,U]of Object.entries(w||{}))w[x]=e.inject(x,U);const v=Ly(u.value.dataSources||{},a),b=V(V(V(V({},w),g),m),v);return a.setup(b,e),Uy(e,(T=u.value.watch)!=null?T:[],a),V(V({vtj:a,state:a.state},g),m)})},emits:jy(u.value.emits),expose:["vtj",...u.value.expose||[]],render(){if(!u.value.nodes)return null;const d=u.value.nodes||[];if(d.length===1)return ot(d[0],a,e,o,d);{const g=d.map(m=>ot(m,a,e,o,d));return e.createVNode("div",{},g)}}},Hy((p=u.value.lifeCycles)!=null?p:{},a)));return{renderer:e.markRaw(c),context:a}}function jy(t=[]){return t.map(e=>Me(e)?e:e.name)}function Py(t=[],e){const r=n=>n?(Array.isArray(n)?n:[n]).map(i=>ay[i]):void 0;return t.map(n=>Me(n)?{name:n}:{name:n.name,type:n.type,required:n.required,default:me(n.default)?e.__parseExpression(n.default):n.default}).reduce((n,i)=>(n[i.name]={type:r(i.type),required:i.required,default:i.default},n),{})}function Ny(t,e,r){return t.reactive(Object.keys(e||{}).reduce((n,i)=>{let s=e[i];return me(s)?s=r.__parseExpression(s):de(s)&&(s=r.__parseFunction(s)),n[i]=s,n},{}))}function Iy(t,e,r){return Object.entries(e!=null?e:{}).reduce((n,[i,s])=>(n[i]=t.computed(r.__parseFunction(s)),n),{})}function My(t,e){return Object.entries(t!=null?t:{}).reduce((r,[n,i])=>(r[n]=e.__parseFunction(i),r),{})}function Fy(t,e=[],r){return e.reduce((n,i)=>{var a;const{name:s,from:o}=i||{};i.default;const u=me(o)?r.__parseExpression(o)||s:o!=null?o:s,l=me(i.default)?r.__parseExpression(i.default):(a=i.default)!=null?a:null;return n[s]=t.inject(u,l),n},{})}function Ly(t,e){return Object.keys(t).reduce((r,n)=>{const i=t[n];if(i.type==="mock")r[n]=Dy(i);else if(i.ref){const s=e.$apis[i.ref],o=de(i.transform)?i.transform.value?e.__parseFunction(i.transform):void 0:i.transform;r[n]=(...u)=>L(null,null,function*(){const l=yield s.apply(e,u);return o?o(l):l})}return r},{})}function Uy(t,e=[],r){e.forEach(n=>{t.watch(r.__parseExpression(n.source),r.__parseFunction(n.handler),{deep:n.deep,immediate:n.immediate})})}function Hy(t,e){return Object.entries(t!=null?t:{}).reduce((r,[n,i])=>{const s=e.__parseFunction(i);return r[n]=()=>L(null,null,function*(){Ie(s)&&(yield nr(0),yield s())}),r},{})}const Vy=new Yg;let kr=[],Xe={},kt={},va={};const ky=(t,e)=>e;function ma(r){return L(this,arguments,function*(t,e=window){const{urls:n=[],library:i}=t,s=n.filter(u=>vr(u));if(s.length===0||!i)return null;const o=n.filter(u=>gr(u));return o.length&&ha(o,e),yield pa(s,i,e).catch(u=>(console.warn("loadScriptUrl error",s,i,u),null))})}function gn(t){const{getDsl:e,getDslByUrl:r,options:n}=t;return n.window&&(kr.forEach(i=>{delete n.window[i]}),kr=[]),(i,s,o,u=sr)=>{if(!o||typeof o=="string")return s;let l="";if(o.type==="Schema"&&o.id)return l=o.id+"_"+i,kt[l]||(kt[l]=u.defineAsyncComponent(()=>L(null,null,function*(){const a=Xe[o.id]||(yield Vy.add(o.id,()=>e(o.id)));return a&&(a.name=s,Xe[o.id]=a),a?dn(re(V({Vue:u,mode:X.Runtime},n),{dsl:bi(a),loader:gn(t)})).renderer:null})));if(o.type==="UrlSchema"&&o.url)return l=o.url+"_"+i,kt[l]||(kt[l]=u.defineAsyncComponent(()=>L(null,null,function*(){const a=Xe[o.url]||(yield r(o.url));return a&&(a.name=s,Xe[o.url]=a),a?dn(re(V({},n),{Vue:u,dsl:bi(a),mode:X.Runtime,loader:gn(t)})).renderer:null})));if(o.type==="Plugin"){let a=o.library?Xe[o.library]:null;return a||(o.library&&kr.push(o.library),a=Xe[o.library||Symbol()]=u.defineAsyncComponent(()=>L(null,null,function*(){return(yield ma(o,n.window))||(console.warn("getPlugin result is null",o),null)})),a)}return s}}function qy(t,e){va[t]=e}function gs(t){return va[t]}function ot(t,e,r=sr,n=ky,i=[],s=!1){var b;if(!t||!t.name||t.invisible)return null;const o=(b=r.getCurrentInstance())==null?void 0:b.appContext,{id:u=null,directives:l=[]}=t,{vIf:a,vElseIf:c,vElse:f,vFor:h,vShow:p,vModels:d,vBind:g,vHtml:m,others:w}=ya(l);if(!s&&(c||f))return null;if(a&&!Wy(a,e))return Zy(t,e,r,n,i);const v=(_,E=0)=>{var F,q,z,O;const y=_.$components,T=(()=>{var P,N,te,Ae;if(t.name==="component")return Ky(_,(P=t.props)==null?void 0:P.is);if(t.name==="slot")return t.name;const $=n(`${t.id}_${E}`,t.name,t.from,r);return Me($)?_y($)||wy($)?$:(Ae=(te=y[$])!=null?te:(N=o==null?void 0:o.app)==null?void 0:N.component($))!=null?Ae:$:$})(),x=Jy(u,(F=t.props)!=null?F:{},_),U=Yy(r,(q=t.events)!=null?q:{},_);if(t.name==="slot")return Qy(r,t,x,_,n);g&&Object.assign(x,_.__parseExpression(g.value)),p&&(x.style=Object.assign((z=x.style)!=null?z:{},e1(p,_))),m&&Object.assign(x,t1(m,_)),d.forEach($=>{la.includes(t.name)?Object.assign(x,r1($,_)):Object.assign(x,n1(r,$,_))});const S=i1(r,(O=t.children)!=null?O:[],_,n,t),A=_!=null&&_.__id?`data-v-${_.__id}`:void 0,M=A?{[A]:""}:{},j=_.__mode===X.Design?{"data-vtj":u}:{},I=`${u}_${E}`,C=V(V(V(V({key:`${u}_${E}`},M),j),x),U);Ey(C,gs(I))||qy(I,C);let D=r.createVNode(T,gs(I)||C||{},S);const H=o?zy(o,w,_):[];return H.length&&(D=r.withDirectives(D,H)),D};return h?a1(h,v,e):v(e)}function zy(t,e,r){const n=t.app;return e.map(i=>{const s=typeof i.name=="string"?n.directive(i.name):r.__parseExpression(i.name);if(!s)return null;const o=[s];return i.value&&o.push(r.__parseExpression(i.value)),i.arg&&o.push(i.arg),i.modifiers&&o.push(i.modifiers),o}).filter(i=>!!i)}function ya(t=[]){const e=t.find(c=>we(c.name)==="vIf"),r=t.find(c=>we(c.name)==="vElseIf"),n=t.find(c=>we(c.name)==="vElse"),i=t.find(c=>we(c.name)==="vFor"),s=t.find(c=>we(c.name)==="vShow"),o=t.find(c=>we(c.name)==="vBind"),u=t.find(c=>we(c.name)==="vHtml"),l=t.filter(c=>we(c.name)==="vModel"),a=t.filter(c=>!oy.includes(we(c.name)));return{vIf:e,vElseIf:r,vElse:n,vFor:i,vShow:s,vModels:l,vBind:o,others:a,vHtml:u}}function Wy(t,e){return!!e.__parseExpression(t.value)}function Ky(t,e){return e?me(e)?t.__parseExpression(e):e:"div"}function Jy(t,e,r){const n=vn(e,r);return n.ref=r.__ref(t,n.ref),n}function vn(t,e){return me(t)?e.__parseExpression(t):de(t)?e.__parseFunction(t):Array.isArray(t)?t.map(r=>vn(r,e)):typeof t=="object"?Object.keys(t||{}).reduce((r,n)=>{let i=t[n];return r[n]=vn(i,e),r},{}):t}function Gy(t,e){return r=>{var n;((n=r==null?void 0:r.key)==null?void 0:n.toLowerCase())===e.toLowerCase()&&t(r)}}function Yy(t,e,r){const n=["passive","capture","once"],i={capture:"Capture",once:"Once",passive:"OnceCapture"};return Object.keys(e||{}).reduce((s,o)=>{const u=e[o],l=ba(u.modifiers),a=l.find(h=>n.includes(h)),c="on"+Ld(o)+(a&&i[a]||""),f=r.__parseFunction(u.handler);return f&&(s[c]=t.withModifiers(l.includes("enter")?Gy(f,"enter"):f,l)),s},{})}function Zy(t,e,r,n,i=[]){let s=i.findIndex(o=>o.id===t.id);for(let o=++s;o<i.length;o++){const{directives:u=[]}=i[o],{vElseIf:l,vElse:a}=ya(u);if(l){if(e.__parseExpression(l.value))return ot(i[o],e,r,n,i,!0);continue}if(a)return ot(i[o],e,r,n,i,!0)}return null}function ba(t={},e=!1){const r=Object.keys(t);return e?r.map(n=>"."+n):r}function Qy(t,e,r,n,i){var l;const{children:s}=e,o=Xy(e,n),u=(l=n.$slots)==null?void 0:l[o.name];return u?u(r):s?Me(s)?t.createTextVNode(s):me(s)?t.createTextVNode(fa(n.__parseExpression(s))):Array.isArray(s)?s.map(a=>ot(a,n,t,i,s)):null:null}function Xy(t,e){const{props:r}=t,n=(r==null?void 0:r.name)||"default";return{name:me(n)?e.__parseExpression(n):n,params:[]}}function e1(t,e){return e.__parseExpression(t.value)?{}:{display:"none"}}function t1(t,e){return{innerHTML:e.__parseExpression(t.value)||""}}function r1(t,e){var n;const r={type:"JSFunction",value:(n=t.value)!=null&&n.value?`(v) => {
|
|
66
|
+
`:`with(${r?"{}":"$scope || {}"}) { ${u} }`;return new Function("$scope",l)(e)}catch(o){if(it.error("parseExpression.error",o,t,(s=e==null?void 0:e.__self)!=null?s:e),n)throw o}}function pe(t,e,r=!1,n=!1,i=!1){var o;const s=Rt(t,e,r,n,i);if(typeof s!="function"&&(it.error("parseFunction.error","not a function",t,(o=e==null?void 0:e.__self)!=null?o:e),n))throw new Error(`"${t.value}" not a function`);return s}function me(t){return t&&t.type==="JSExpression"}function de(t){return typeof t=="object"&&t&&t.type==="JSFunction"}const wy={session:!1,authKey:"Authorization",storageKey:"ACCESS_STORAGE",storagePrefix:"__VTJ_",unauthorized:void 0,auth:"/#/login",redirectParam:"r",unauthorizedCode:401,unauthorizedMessage:"登录已经失效,请重新登录!",noPermissionMessage:"无权限访问该页面",appName:"",statusKey:"code"},Ey=Symbol("access");class da{constructor(e){k(this,"options");k(this,"data",null);k(this,"mode",X.Raw);k(this,"interceptResponse",!0);k(this,"isTipShowing",!1);this.options=Object.assign({},wy,e),this.loadData()}enableIntercept(){this.interceptResponse=!0}disableIntercept(){this.interceptResponse=!1}connect(e){const{mode:r,router:n,request:i}=e;this.mode=r,n&&this.mode!==X.Design&&this.setGuard(n),i&&this.setRequest(i)}login(e){const{storageKey:r,storagePrefix:n,session:i,authKey:s}=this.options;this.setData(e),this.data&&(Lr.save(r,e,{type:"local",prefix:n}),i&&Hr.set(s,this.data.token))}clear(){const{storageKey:e,storagePrefix:r,session:n,authKey:i}=this.options;this.data=null,Lr.remove(e,{type:"local",prefix:r}),n&&Hr.remove(i)}logout(){this.clear(),this.toLogin()}getData(){return this.data?this.data:(this.loadData(),this.data)}getToken(){var e;return this.data||this.loadData(),(e=this.data)==null?void 0:e.token}can(e){const{appName:r}=this.options,{permissions:n={}}=this.data||{};return typeof e=="function"?e(n):Wi(e).every(i=>n[i]||n[r+"."+i])}some(e){const{appName:r}=this.options,{permissions:n={}}=this.data||{};return Wi(e).some(i=>n[i]||n[r+"."+i])}install(e){e.config.globalProperties.$access=this,e.provide(Ey,this)}isAuthPath(e){const{auth:r,isAuth:n}=this.options;if(n)return n(e);if(e.path&&typeof r=="string"){const i=r.split("#")[1]||r;return e.path===i}return!1}toLogin(){const{auth:e,redirectParam:r}=this.options;if(!e)return;const n=r?`?${r}=${encodeURIComponent(location.href)}`:"";typeof e=="function"?e(n):location.href=r?`${e}${n}`:e}setData(e){const{privateKey:r}=this.options;if(Array.isArray(e)&&r){const n=e.map(i=>zi(i,r));try{this.data=JSON.parse(n.join(""))}catch(i){console.warn(i)}return}if(typeof e=="string")try{const n=r?zi(e,r):e;n?this.data=JSON.parse(n):console.warn("RSA解密失败或登录信息缺失")}catch(n){console.warn(n)}else this.data=e}loadData(){const{storageKey:e,storagePrefix:r}=this.options,n=Lr.get(e,{type:"local",prefix:r});this.setData(n||null)}isLogined(){const{session:e,authKey:r}=this.options;return e&&r?!!Hr.get(r):!!this.getToken()}hasRoutePermission(e){if(e.name===Qt){const r=e.params.id;return r&&this.can(r)}return e.meta.__vtj__?this.can(e.meta.__vtj__):e.meta.permission?this.can(e.meta.permission):!0}setGuard(e){e.beforeEach((r,n,i)=>this.guard(r,i))}guard(e,r){return U(this,null,function*(){if(this.isWhiteList(e)||this.isAuthPath(e))return r();if(this.isLogined()){if(this.hasRoutePermission(e))return r();{const{noPermissionMessage:n="无权限访问",unauthorized:i=!1}=this.options;return yield this.showTip(n),ze(i)?(i(),r(!1)):Me(i)?r(i):r(!1)}}r(!1),yield ir(0),this.toLogin()})}isWhiteList(e){const{whiteList:r}=this.options;return r?Array.isArray(r)?r.some(n=>e.fullPath.startsWith(n)):r(e):!1}isUnauthorized(e){var i;const{unauthorizedCode:r=401,statusKey:n="code"}=this.options;return e.status===r||((i=e.data)==null?void 0:i[n])===r}showUnauthorizedAlert(e){return U(this,null,function*(){const{unauthorizedMessage:r="登录已失效"}=this.options;this.isUnauthorized(e)&&(yield this.showTip(r))&&this.toLogin()})}showTip(e){return U(this,null,function*(){var n,i;const{alert:r}=this.options;return this.isTipShowing?!1:r?(this.isTipShowing=!0,yield ir(150),yield(i=(n=r(e,{title:"提示",type:"warning"}))==null?void 0:n.catch(()=>!0))==null?void 0:i.finally(()=>{this.isTipShowing=!1})):(window.alert(e),!0)})}setRequest(e){e.useRequest(r=>{var n,i;return(n=this.data)!=null&&n.token&&(r.headers[this.options.authKey]=(i=this.data)==null?void 0:i.token),r}),e.useResponse(r=>U(this,null,function*(){return this.interceptResponse&&(yield this.showUnauthorizedAlert(r)),r}),r=>U(this,null,function*(){if(!this.interceptResponse)return Promise.reject(r);const n=r.response||r||{};return yield this.showUnauthorizedAlert(n),Promise.reject(r)}))}}function Sy(t={}){const{notify:e,loading:r,settings:n={},Startup:i,access:s,useTitle:o,alert:u}=t;let l=null;return{request:Mn({settings:V({type:"form",validSuccess:!0,originResponse:!1,loading:!0,validate:a=>{var c,f;return((c=a.data)==null?void 0:c.code)===0||!!((f=a.data)!=null&&f.success)},failMessage:!0,showError:a=>{e&&e(a||"未知错误")},showLoading:()=>{l&&l.close(),r&&(l=r())},hideLoading:()=>{l&&(l.close(),l=null)}},n)}),jsonp:ca,notify:e,loading:r,useTitle:o,alert:u,startupComponent:i,access:s?new da(V({alert:u},s)):void 0}}function Ty(t,e){const{jsonp:r,request:n}=e;if(t.method==="jsonp")return(i={})=>r(t.url,re(V({},t.jsonpOptions),{query:i}));{const i=t.headers?Rt(t.headers,{},!0):void 0,s={url:t.url,method:t.method,settings:re(V({},t.settings),{headers:i})};return(o,u)=>(delete s.data,n.send(vt(s,u||{},{data:o})))}}function Ry(t,e){const{metaQuery:r}=e;if(!r)return;const{code:n,queryCode:i}=t;return(s,o)=>{if(!r){console.warn("adapter.metaQuery is not defined!");return}return r(n,i,s,o)}}function Ay(t=[],e=[],r){const n={};for(const i of t){const s=Ty(i,r);n[i.id]=s,n[i.name]=s}for(const i of e)n[i.id]=Ry(i,r);return n}function xy(){return U(this,arguments,function*(t=[],e=window){const r=Tt(e);r&&(ga(e),t.forEach(n=>$y(r,n)))})}function Oy(t,e=window){const r=de(t.mockTemplate)&&t.mockTemplate.value?pe(t.mockTemplate,{},!0):void 0,n=Tt(e);return(...i)=>U(null,null,function*(){let s={};if(r)try{s=yield r.apply(r,i)}catch(o){it.warn("模拟数据模版异常",o)}return n==null?void 0:n.mock(s)})}function $y(t,e){if(!e.mock)return;const{url:r,mockTemplate:n}=e;if(r&&n)try{const i=nr(r)?new URL(r).pathname:r,s=Cn(`(.*)${i}(.*)`),o=Hg(i,{decode:decodeURIComponent}),u=Rt(n,{},!0);t.mock(s,l=>{var p;const a=Zt.parse(l.url)||{},c=l.body instanceof FormData?Lm(l.body):l.body,f=nr(l.url)?new URL(l.url).pathname:l.url.split("?")[0],h=(p=o(f))==null?void 0:p.params;Object.assign(l,{data:c,params:h,query:a});try{return t.mock(u(l))}catch(d){return console.warn("[mockApi]",s,l,d),null}})}catch(i){console.warn("mockApi",i)}}function ga(t=window){const e=Tt(t);e&&(e._mocked={})}class Dy{constructor(e){k(this,"__id",null);k(this,"__mode");k(this,"__instance",null);k(this,"__contextRefs",{});k(this,"__refs",{});k(this,"__refCaches",{});k(this,"context",{});k(this,"state",{});k(this,"props",{});k(this,"$props",{});k(this,"$refs",{});k(this,"$el",null);k(this,"$emit",null);k(this,"$nextTick",null);k(this,"$parent",null);k(this,"$root",null);k(this,"$attrs",null);k(this,"$slots",null);k(this,"$watch",null);k(this,"$options",null);k(this,"$forceUpdate",null);k(this,"$components",{});k(this,"$libs",{});k(this,"$apis",{});k(this,"$provider",null);k(this,"__transform",{});const{mode:r,dsl:n,attrs:i}=e;this.__mode=r,n&&(this.__id=n.id||null,this.__transform=n.transform||{}),i&&Object.assign(this,i)}setup(e,r=or){const n=r.getCurrentInstance();if(!n)return;this.__refs={},this.__refCaches={},this.$refs={},this.context={},this.__contextRefs={},this.__instance=n.proxy;const i=n.appContext.config.globalProperties;Object.assign(this,i),Object.assign(this,e||{}),this.__proxy(),r.onMounted(()=>{this.__proxy()}),r.onUnmounted(()=>{this.__cleanup()}),r.onBeforeUpdate(()=>{this.__reset()})}__proxy(){this.__instance&&gs.forEach(e=>{var r;this[e]=(r=this.__instance)==null?void 0:r[e]})}__cleanup(){gs.forEach(e=>{this[e]=null}),this.__reset()}__reset(){this.__refs={},this.__refCaches={},this.$refs={},this.__contextRefs={},this.context={}}__parseFunction(e){var r;if(e)if(this.__mode===X.Runtime){const{id:n,type:i}=e,s=n&&(r=this.__transform[n])!=null?r:e.value;return pe({type:i,value:s},this)}else return pe(e,this)}__parseExpression(e){var r;if(e)if(this.__mode===X.Runtime){const{id:n,type:i}=e,s=n&&(r=this.__transform[n])!=null?r:e.value;return Rt({type:i,value:s},this)}else return Rt(e,this)}__ref(e=null,r){if(this.__mode===X.VNode)return;e&&e!==this.__id&&(this.__contextRefs[e]=this);let n=e?this.__refCaches[e]:null;return n||(n=i=>U(this,null,function*(){var o,u;yield ir(0);let s=(i==null?void 0:i.$vtjEl)||(i==null?void 0:i.$el)||((u=(o=i==null?void 0:i._)==null?void 0:o.vnode)==null?void 0:u.el)||i;if(!s){typeof r=="string"&&(delete this.$refs[r],e&&delete this.__refs[e]);return}return s.nodeType===3&&s.nextSibling&&(s=s.nextSibling),s.__vtj__=e,X.Design===this.__mode&&(s.__context__=this,s.draggable=!0),e&&(this.__refs[e]=this.__getRefEl(this.__refs,e,i)),typeof r=="function"?r(i):r&&(this.$refs[r]=this.__getRefEl(this.$refs,r,i)),i}),e&&(this.__refCaches[e]=n),n)}__getRefEl(e,r,n){const i=e[r];if(i&&n!==i){const s=new Set([].concat(i,n));return Array.from(s)}else return n}__clone(e={}){const r=V(V({},this.context),e),n=re(V({},r),{context:r});return n.context.__proto__=this.context,n.__proto__=this,n}}function gn(t){var f,p;const{Vue:e=or,mode:r=X.Runtime,components:n={},libs:i={},apis:s={},loader:o}=t,u=e.computed(()=>t.dsl),l={$components:n,$libs:i,$apis:s},a=new Dy({mode:r,dsl:u.value,attrs:l}),c=e.defineComponent(V({name:u.value.name,__scopeId:u.value.id?`data-v-${u.value.id}`:void 0,props:V({},By((f=u.value.props)!=null?f:[],a)),setup(d){return U(this,null,function*(){var _,w,y,T;a.$props=d,a.props=d,u.value.id&&yr(t.window||window,u.value.id,u.value.css||"",!0),a.state=jy(e,(_=u.value.state)!=null?_:{},a);const g=Py(e,(w=u.value.computed)!=null?w:{},a),v=Ny((y=u.value.methods)!=null?y:{},a),E=Iy(e,u.value.inject,a);for(const[O,L]of Object.entries(E||{}))E[O]=e.inject(O,L);const m=My(u.value.dataSources||{},a),b=V(V(V(V({},E),g),v),m);return a.setup(b,e),Fy(e,(T=u.value.watch)!=null?T:[],a),V(V({vtj:a,state:a.state},g),v)})},emits:Cy(u.value.emits),expose:["vtj",...u.value.expose||[]],render(){if(!u.value.nodes)return null;const d=u.value.nodes||[];if(d.length===1)return ot(d[0],a,e,o,d);{const g=d.map(v=>ot(v,a,e,o,d));return e.createVNode("div",{},g)}}},Ly((p=u.value.lifeCycles)!=null?p:{},a)));return{renderer:e.markRaw(c),context:a}}function Cy(t=[]){return t.map(e=>Me(e)?e:e.name)}function By(t=[],e){const r=n=>n?(Array.isArray(n)?n:[n]).map(i=>oy[i]):void 0;return t.map(n=>Me(n)?{name:n}:{name:n.name,type:n.type,required:n.required,default:me(n.default)?e.__parseExpression(n.default):n.default}).reduce((n,i)=>(n[i.name]={type:r(i.type),required:i.required,default:i.default},n),{})}function jy(t,e,r){return t.reactive(Object.keys(e||{}).reduce((n,i)=>{let s=e[i];return me(s)?s=r.__parseExpression(s):de(s)&&(s=r.__parseFunction(s)),n[i]=s,n},{}))}function Py(t,e,r){return Object.entries(e!=null?e:{}).reduce((n,[i,s])=>(n[i]=t.computed(r.__parseFunction(s)),n),{})}function Ny(t,e){return Object.entries(t!=null?t:{}).reduce((r,[n,i])=>(r[n]=e.__parseFunction(i),r),{})}function Iy(t,e=[],r){return e.reduce((n,i)=>{var a;const{name:s,from:o}=i||{};i.default;const u=me(o)?r.__parseExpression(o)||s:o!=null?o:s,l=me(i.default)?r.__parseExpression(i.default):(a=i.default)!=null?a:null;return n[s]=t.inject(u,l),n},{})}function My(t,e){return Object.keys(t).reduce((r,n)=>{const i=t[n];if(i.type==="mock")r[n]=Oy(i);else if(i.ref){const s=e.$apis[i.ref],o=de(i.transform)?i.transform.value?e.__parseFunction(i.transform):void 0:i.transform;r[n]=(...u)=>U(null,null,function*(){const l=yield s.apply(e,u);return o?o(l):l})}return r},{})}function Fy(t,e=[],r){e.forEach(n=>{t.watch(r.__parseExpression(n.source),r.__parseFunction(n.handler),{deep:n.deep,immediate:n.immediate})})}function Ly(t,e){return Object.entries(t!=null?t:{}).reduce((r,[n,i])=>{const s=e.__parseFunction(i);return r[n]=()=>U(null,null,function*(){ze(s)&&(yield ir(0),yield s())}),r},{})}class Uy{constructor(){k(this,"__props",{});k(this,"__events",{});k(this,"__nodes",{})}setProps(e,r){this.__props[e]=r}getProps(e){return this.__props[e]}loadProps(e,r){return(e?this.getProps(e):null)||(e&&this.setProps(e,r),r)}setEvents(e,r){}getEvents(e){return this.__events[e]}loadEvents(e,r){return(e?this.getEvents(e):null)||(e&&this.setEvents(e,r),r)}setNode(e,r){this.__nodes[e]=r}getNode(e){return this.__nodes[e]}loadNode(e,r){return(e?this.getNode(e):null)||(e&&this.setNode(e,r),r)}isEqual(e,r){return vd(e,r)}clear(){this.__props={},this.__events={},this.__nodes={}}}const kt=new Uy,Hy=new Gg;let qr=[],Xe={},qt={};const Vy=(t,e)=>e;function va(r){return U(this,arguments,function*(t,e=window){const{urls:n=[],library:i}=t,s=n.filter(u=>mr(u));if(s.length===0||!i)return null;const o=n.filter(u=>vr(u));return o.length&&ha(o,e),yield pa(s,i,e).catch(u=>(console.warn("loadScriptUrl error",s,i,u),null))})}function vn(t){const{getDsl:e,getDslByUrl:r,options:n}=t;return n.window&&(qr.forEach(i=>{delete n.window[i]}),qr=[]),(i,s,o,u=or)=>{if(!o||typeof o=="string")return s;let l="";if(o.type==="Schema"&&o.id)return l=o.id+"_"+i,qt[l]||(qt[l]=u.defineAsyncComponent(()=>U(null,null,function*(){const a=Xe[o.id]||(yield Hy.add(o.id,()=>e(o.id)));return a&&(a.name=s,Xe[o.id]=a),a?gn(re(V({Vue:u,mode:X.Runtime},n),{dsl:_i(a),loader:vn(t)})).renderer:null})));if(o.type==="UrlSchema"&&o.url)return l=o.url+"_"+i,qt[l]||(qt[l]=u.defineAsyncComponent(()=>U(null,null,function*(){const a=Xe[o.url]||(yield r(o.url));return a&&(a.name=s,Xe[o.url]=a),a?gn(re(V({},n),{Vue:u,dsl:_i(a),mode:X.Runtime,loader:vn(t)})).renderer:null})));if(o.type==="Plugin"){let a=o.library?Xe[o.library]:null;return a||(o.library&&qr.push(o.library),a=Xe[o.library||Symbol()]=u.defineAsyncComponent(()=>U(null,null,function*(){return(yield va(o,n.window))||(console.warn("getPlugin result is null",o),null)})),a)}return s}}function ot(t,e,r=or,n=Vy,i=[],s=!1,o=0){var _;if(!t||!t.name||t.invisible)return null;const u=(_=r.getCurrentInstance())==null?void 0:_.appContext,{id:l=null,directives:a=[]}=t,{vIf:c,vElseIf:f,vElse:h,vFor:p,vShow:d,vModels:g,vBind:v,vHtml:E,others:m}=ma(a);if(!s&&(f||h))return null;if(c&&!qy(c,e))return Gy(t,e,r,n,i);const b=(w,y=0)=>{var q,z,x,C;const T=w.$components,O=(()=>{var N,te,xe,we;if(t.name==="component")return zy(w,(N=t.props)==null?void 0:N.is);if(t.name==="slot")return t.name;const D=n(`${t.id}_${y}`,t.name,t.from,r);return Me(D)?by(D)||_y(D)?D:(we=(xe=T[D])!=null?xe:(te=u==null?void 0:u.app)==null?void 0:te.component(D))!=null?we:D:D})(),L=Wy(l,(q=t.props)!=null?q:{},w),S=Jy(r,t.id,(z=t.events)!=null?z:{},w);if(t.name==="slot")return Yy(r,t,L,w,n);v&&Object.assign(L,w.__parseExpression(v.value)),d&&(L.style=Object.assign((x=L.style)!=null?x:{},Qy(d,w))),E&&Object.assign(L,Xy(E,w)),g.forEach(D=>{la.includes(t.name)?Object.assign(L,e1(D,w)):Object.assign(L,t1(r,D,w))});const A=r1(r,(C=t.children)!=null?C:[],w,n,t),M=w!=null&&w.__id?`data-v-${w.__id}`:void 0,P=M?{[M]:""}:{},I=w.__mode===X.Design?{"data-vtj":l}:{},B=`${l}_${y}`,$=V(V(V(V({key:B},P),I),L),S);kt.isEqual($,kt.getNode(B))||kt.setNode(B,$);let H=r.createVNode(O,kt.getNode(B)||$||{},A);const F=u?ky(u,m,w):[];return F.length&&(H=r.withDirectives(H,F)),H};return p?s1(p,b,e):b(e,o)}function ky(t,e,r){const n=t.app;return e.map(i=>{const s=typeof i.name=="string"?n.directive(i.name):r.__parseExpression(i.name);if(!s)return null;const o=[s];return i.value&&o.push(r.__parseExpression(i.value)),i.arg&&o.push(i.arg),i.modifiers&&o.push(i.modifiers),o}).filter(i=>!!i)}function ma(t=[]){const e=t.find(c=>Ee(c.name)==="vIf"),r=t.find(c=>Ee(c.name)==="vElseIf"),n=t.find(c=>Ee(c.name)==="vElse"),i=t.find(c=>Ee(c.name)==="vFor"),s=t.find(c=>Ee(c.name)==="vShow"),o=t.find(c=>Ee(c.name)==="vBind"),u=t.find(c=>Ee(c.name)==="vHtml"),l=t.filter(c=>Ee(c.name)==="vModel"),a=t.filter(c=>!sy.includes(Ee(c.name)));return{vIf:e,vElseIf:r,vElse:n,vFor:i,vShow:s,vModels:l,vBind:o,others:a,vHtml:u}}function qy(t,e){return!!e.__parseExpression(t.value)}function zy(t,e){return e?me(e)?t.__parseExpression(e):e:"div"}function Wy(t,e,r){const n=mn(e,r);return n.ref=r.__ref(t,n.ref),n}function mn(t,e){return me(t)?e.__parseExpression(t):de(t)?e.__parseFunction(t):Array.isArray(t)?t.map(r=>mn(r,e)):typeof t=="object"?Object.keys(t||{}).reduce((r,n)=>{let i=t[n];return r[n]=mn(i,e),r},{}):t}function Ky(t,e){return r=>{var n;((n=r==null?void 0:r.key)==null?void 0:n.toLowerCase())===e.toLowerCase()&&t(r)}}function Jy(t,e,r,n){const i=["passive","capture","once"],s={capture:"Capture",once:"Once",passive:"OnceCapture"};return Object.keys(r||{}).reduce((o,u)=>{const l=r[u],a=ya(l.modifiers),c=a.find(p=>i.includes(p)),f="on"+Fd(u)+(c&&s[c]||""),h=n.__parseFunction(l.handler);return h&&(o[f]=t.withModifiers(a.includes("enter")?Ky(h,"enter"):h,a)),o},{})}function Gy(t,e,r,n,i=[]){let s=i.findIndex(o=>o.id===t.id);for(let o=++s;o<i.length;o++){const{directives:u=[]}=i[o],{vElseIf:l,vElse:a}=ma(u);if(l){if(e.__parseExpression(l.value))return ot(i[o],e,r,n,i,!0);continue}if(a)return ot(i[o],e,r,n,i,!0)}return null}function ya(t={},e=!1){const r=Object.keys(t);return e?r.map(n=>"."+n):r}function Yy(t,e,r,n,i){var l;const{children:s}=e,o=Zy(e,n),u=(l=n.$slots)==null?void 0:l[o.name];return u?u(r):s?Me(s)?t.createTextVNode(s):me(s)?t.createTextVNode(fa(n.__parseExpression(s))):Array.isArray(s)?s.map((a,c)=>ot(a,n,t,i,s,!1,c)):null:null}function Zy(t,e){const{props:r}=t,n=(r==null?void 0:r.name)||"default";return{name:me(n)?e.__parseExpression(n):n,params:[]}}function Qy(t,e){return e.__parseExpression(t.value)?{}:{display:"none"}}function Xy(t,e){return{innerHTML:e.__parseExpression(t.value)||""}}function e1(t,e){var n;const r={type:"JSFunction",value:(n=t.value)!=null&&n.value?`(v) => {
|
|
67
67
|
${t.value.value} = v?.target.value;
|
|
68
|
-
}`:"(v) => {}"};return{[me(t.arg)?e.__parseExpression(t.arg):t.arg||"value"]:e.__parseExpression(t.value),onInput:e.__parseFunction(r)}}function
|
|
68
|
+
}`:"(v) => {}"};return{[me(t.arg)?e.__parseExpression(t.arg):t.arg||"value"]:e.__parseExpression(t.value),onInput:e.__parseFunction(r)}}function t1(t,e,r){var u;const n={type:"JSFunction",value:(u=e.value)!=null&&u.value?`(v) => {
|
|
69
69
|
${e.value.value} = v;
|
|
70
|
-
}`:"(v) => {}"},i=r.__parseFunction(n),s=ba(me(e.modifiers)?r.__parseExpression(e.modifiers):e.modifiers),o=me(e.arg)?r.__parseExpression(e.arg):e.arg||"modelValue";return{[o]:r.__parseExpression(e.value),[`onUpdate:${o}`]:s.length&&i?t.withModifiers(i,s):i}}function i1(t,e,r,n,i){if(!e)return null;if(Me(e))return{default:()=>e};if(me(e))return{default:()=>fa(r.__parseExpression(e))};if(Array.isArray(e)&&e.length>0){const s=s1(e),o=(u,l)=>!u||!i?{}:i!=null&&i.id&&Object.keys(u).length?l?{[l]:u}:{[`scope_${i.id}`]:u}:l?{[l]:Object.create(null)}:{};return Object.entries(s).reduce((u,[l,{nodes:a,params:c,scope:f}])=>(u[l]=h=>{const p=c.length?Fg(h!=null?h:{},c):o(h,f);return a.map(d=>ot(d,r.__clone(p),t,n,a))},u),{})}return null}function s1(t){const e={};for(const r of t){const n=o1(r.slot),i=n.name;e[i]?(e[i].nodes.push(r),e[i].params=e[i].params.concat(n.params),e[i].scope=n.scope||""):e[i]={nodes:[r],params:n.params,scope:n.scope||""}}return e}function o1(t="default"){return Me(t)?{name:t,params:[],scope:""}:V({params:[],scope:""},t)}function a1(t,e,r){const{value:n,iterator:i}=t,{item:s="item",index:o="index"}=i||{};let u=r.__parseExpression(n)||[];return Number.isInteger(u)&&(u=new Array(u).fill(!0).map((l,a)=>a+1)),Array.isArray(u)?u.map((l,a)=>e(r.__clone({[s]:l,[o]:a}),a)):(console.warn("[vForRender]:",`${n==null?void 0:n.value} is not a Arrary`),[])}const qr=ys({name:"VtjPageContainer",setup(){return L(this,null,function*(){const t=y1(),e=ja(),r=e.meta.__vtj__||e.params.id,n=r?t.getPage(r):t.getHomepage(),i=n?yield t.getRenderComponent(n.id):null,s=Ca(Symbol());if(n){Object.assign(e.meta,n.meta||{},{cache:n.cache});const{useTitle:o}=t==null?void 0:t.adapter;if(o){const u=e.meta.title||n.title||"VTJ.PRO";o(u)}}return{provider:t,component:i,file:n,query:e.query,meta:e.meta,sid:s,route:e}})},render(){const{component:t,query:e,sid:r}=this;return t?Wr(t,re(V({},e),{key:r})):Wr("div",{style:{padding:"10px"}},"找不到组件,组件不存在或未发布!")},activated(){this.meta.cache===!1&&(this.sid=Symbol())}}),u1=ys({name:"VtjStartupContainer",render(){return Wr("div","page not found!")}});function mn(t,e,r=[]){const n=[];for(const i of r){const{id:s,title:o,icon:u,children:l,hidden:a,layout:c}=i;if(c){const f=mn(t,e,l||[]);n.push(...f)}else{const f={id:s,title:o,icon:u,hidden:a,url:`${t}/${e}/${s}`,children:l&&l.length?mn(t,e,l):void 0};n.push(f)}}return n}function zr(t,e){const{id:r,title:n,meta:i}=t,{name:s="page",prefix:o="",component:u,routeMeta:l}=e;return{name:r,path:`${o}${s}/${r}`,component:u,meta:re(V(V({title:n},l),i),{__vtj__:r})}}function yn(t){const{name:e="page",prefix:r="",pages:n=[],component:i,loader:s,routeMeta:o,homepage:u}=t,l=[];for(const a of n){const{id:c,title:f,dir:h,layout:p,children:d,meta:g}=a;if(h){const m=yn({name:e,prefix:r,component:i,routeMeta:o,homepage:u,loader:s,pages:d||[]});l.push(...m)}else if(p){const m=yn({name:e,prefix:r,component:i,routeMeta:o,homepage:u,loader:s,pages:d||[]}),w={name:`layout_${c}`,path:r,component:()=>s(c),meta:re(V(V({title:f},o),g),{__vtj__:c}),children:m};l.push(w),l.push(zr(a,t))}else if(l.push(zr(a,t)),u===c){const m=zr(a,t);m.path="",m.name=`home_${c}`,l.push(m)}}return l}function c1(t={},e){const{css:r,store:n,enhance:i}=t,{window:s,app:o,library:u={},adapter:l,mode:a}=e,{Pinia:c}=u;o.config.globalProperties.$libs=u,mr(s,"global-css",r||""),c&&n&&l1(n,o,c),h1(o,l,t),!l.access&&t.access&&f1(t.access,o,a,l),p1(o,t),i&&d1(i,o,u)}function l1(t,e,r){const n=r.createPinia();if(e.use(n),de(t)&&t.value){const i=pe(t,{},!1,!1,!0),s=r.defineStore("$store",i(e)||{});e.config.globalProperties.$store=s()}}function f1(t,e,r,n){if(de(t)&&t.value){const i=pe(t,{},!1,!1,!0),{alert:s,request:o}=n,u=new da(V({alert:s,storagePrefix:"__VTJ_APP_"},i(e))),l=e.config.globalProperties.$router;u.connect({mode:r,router:l,request:o}),e.use(u)}}function h1(t,e,r){if(!e.request)return;const{axios:n,request:i,response:s}=r;if(n&&de(n)&&n.value){const o=pe(n,{},!1,!1,!0);e.request.setConfig(o(t))}if(i&&de(i)&&i.value){const o=pe(i,{},!1,!1,!0),u=e.request;u.__unReq&&u.__unReq(),u.__unReq=e.request.useRequest(l=>o(l,t))}if(s&&de(s)&&s.value){const o=pe(s,{},!1,!1,!0),u=e.request;u.__unRes&&u.__unRes(),u.__unRes=e.request.useResponse(l=>o(l,t))}}function p1(t,e){const{beforeEach:r,afterEach:n}=e,i=t.config.globalProperties.$router;if(r&&de(r)&&r.value){const s=pe(r,{},!1,!1,!0);i&&i.beforeEach((o,u,l)=>s(o,u,l,t))}if(n&&de(n)&&n.value){const s=pe(n,{},!1,!1,!0);i&&i.afterEach((o,u,l)=>s(o,u,l,t))}}function d1(t,e,r={}){de(t)&&t.value&&pe(t,{},!1,!1,!0)(e,r)}function g1(t,e,r){if(!t||!e||!r)return;const{VueI18n:n}=e;if(n){const{locale:i,fallbackLocale:s,messages:o=[]}=r,u={};for(let a of o){const c=Object.keys(a).filter(f=>f!=="key");for(const f of c)u[f]||(u[f]={}),u[f][a.key]=a[f]}const l=n.createI18n({legacy:!1,locale:i,fallbackLocale:s,messages:u});t.use(l)}}const _a=Symbol("Provider");class v1 extends ev{constructor(r){super();k(this,"mode");k(this,"globals",{});k(this,"modules",{});k(this,"adapter",{request:ln,jsonp:ca});k(this,"apis",{});k(this,"dependencies",{});k(this,"materials",{});k(this,"library",{});k(this,"libraryLocales",{});k(this,"libraryLocaleMap",{});k(this,"service");k(this,"project",null);k(this,"components",{});k(this,"nodeEnv","development");k(this,"env",{});k(this,"router",null);k(this,"materialPath","./");k(this,"urlDslCaches",{});k(this,"errorHandler",null);this.options=r;const{service:n,mode:i=X.Raw,dependencies:s,materials:o,project:u={},adapter:l={},globals:a={},modules:c={},router:f=null,materialPath:h="./",nodeEnv:p="development"}=r;this.mode=i,this.modules=c,this.service=n,this.router=f,this.materialPath=h,this.nodeEnv=p,s&&(this.dependencies=s),o&&(this.materials=o),Object.assign(this.globals,a),Object.assign(this.adapter,l);const{access:d,request:g}=this.adapter;d&&d.connect({mode:i,router:f,request:g}),u&&i!==X.Design?this.load(u):this.project=u}createMock(r){return(...n)=>L(null,null,function*(){var s;let i={};if(r)try{i=yield r.apply(r,n)}catch(o){it.warn("模拟数据模版异常",o)}return(s=Tt())==null?void 0:s.mock(i)})}load(r){return L(this,null,function*(){const{vtjDir:n=".vtj"}=this.options,i=this.modules[`${n}/projects/${r.id}.json`]||this.modules[`/src/${n}/projects/${r.id}.json`];if(this.project=i?yield i():yield this.service.init(r),!this.project)throw new Error("project is null");const{apis:s=[],meta:o=[],env:u=[]}=this.project,l=window;l&&(l.CKEDITOR_VERSION=void 0),this.initEnv(u),this.mode===X.Raw?yield this.loadDependencies(l):yield this.loadAssets(l),this.initMock(l),this.apis=Oy(s,o,this.adapter),ga(l),$y(s,l),r.platform!=="uniapp"&&this.initRouter(),this.triggerReady()})}initMock(r){const n=Tt(r);n&&n.setup({timeout:"50-500"})}loadDependencies(){return L(this,arguments,function*(r={}){const n=Object.entries(this.dependencies);for(const[i,s]of n)r[i]||(r[i]=this.library[i]=yield s())})}loadAssets(){return L(this,arguments,function*(r={}){const{dependencies:n=[]}=this.project,{dependencies:i,library:s,components:o,materialPath:u,nodeEnv:l,libraryLocales:a}=this,{libraryExports:c,libraryMap:f,materials:h,materialExports:p,materialMapLibrary:d,libraryLocaleMap:g}=fy(n,u,l==="development");Object.assign(this.libraryLocaleMap,g);for(const m of c){const w=i[m],v=r[m];if(v)s[m]=v;else if(w)r[m]=s[m]=yield w();else{const _=f[m]||[];for(const E of _)gr(E)&&(yield yy(E,Yt.append(E,{v:Hr}))),vr(E)&&(yield hs(Yt.append(E,{v:Hr})));s[m]=r[m]}const b=g[m];if(b){const _=i[b];a[b]=_?yield _():r[b]}}if(l==="development"){for(const w of h)yield hs(Yt.append(w,{v:Hr}));const m=this.materials||{};for(const w of p){const v=r[d[w]],b=(v==null?void 0:v.default)||v,_=Xg[w];if(_)b&&_.forEach(E=>{o[E]=b[E]});else{const E=m[w]?(yield m[w]()).default:r[w];E&&b&&(E.components||[]).forEach(y=>{o[y.name]=hy(y,b)})}}}})}initRouter(){const{router:r,project:n,options:i,adapter:s}=this;if(!r)return;const o=(n==null?void 0:n.platform)==="uniapp"?"pages":"page",{routeAppendTo:u,pageRouteName:l=o,routeMeta:a}=i,c=u?"":"/",f={path:`${c}${l}/:id`,name:Zt,component:qr},h=this.getHomepage(),p={path:c,name:Vr,component:h?qr:s.startupComponent||u1,meta:a};if(r.hasRoute(Zt)&&r.removeRoute(Zt),r.hasRoute(Vr)&&r.removeRoute(Vr),i.enableStaticRoute){const d=(n==null?void 0:n.pages)||[];yn({name:l,prefix:c,pages:d,component:qr,loader:this.getRenderComponent.bind(this),homepage:h==null?void 0:h.id}).forEach(g=>{u?r.addRoute(u,g):r.addRoute(g)}),h||(u?r.addRoute(u,p):r.addRoute(p))}else u?(r.addRoute(u,f),r.addRoute(u,p)):(r.addRoute(f),r.addRoute(p))}setErrorHandler(r){r.config.errorHandler=xn((n,i,s)=>{const o=i==null?void 0:i.$options.name,u=typeof n=="string"?n:(n==null?void 0:n.message)||(n==null?void 0:n.msg)||"未知错误",l=`[ ${o} ] ${u} ${s}`;["getComputedStyle","ResizeObserver"].some(a=>l.includes(a))||(console.error("[VTJ Error]:",{err:n,instance:i,info:s},n==null?void 0:n.stack),this.errorHandler&&this.errorHandler(n),this.adapter.notify&&this.adapter.notify(l,"组件渲染错误","error"))},300)}install(r){var u,l,a,c;const{libraryLocaleMap:n,libraryLocales:i}=this,{libraryOptions:s={}}=this.options,o=r.config.globalProperties.installed||{};for(const[f,h]of Object.entries(this.library))if(!o[f]&&by(h)){const p={locale:i[n[f]]},d=s[f]||{},g=V(V({},p),d);r.use(h,g),o[f]=!0}r.provide(_a,this),r.config.globalProperties.$provider=this,r.config.globalProperties.$request=(u=this.adapter)==null?void 0:u.request,this.options.install&&r.use(this.options.install),this.adapter.access&&r.use(this.adapter.access),((l=this.project)==null?void 0:l.platform)!=="uniapp"&&this.mode!==X.Design&&this.initGlobals(((a=this.project)==null?void 0:a.globals)||{},{app:r,window,adapter:this.adapter,library:this.library,mode:this.mode}),this.mode!==X.Design&&((c=this.project)!=null&&c.i18n)&&this.initI18n(r,this.library,this.project.i18n),this.options.enhance&&r.use(this.options.enhance,this),this.mode===X.Design&&this.setErrorHandler(r),r.config.globalProperties.installed=o}getFile(r){const{blocks:n=[]}=this.project||{};return this.getPage(r)||n.find(i=>i.id===r)||null}getPage(r){const{pages:n=[]}=this.project||{},i=(s,o=[])=>{for(const u of o){if(u.id===s)return u;if(u.children&&u.children.length){const l=i(s,u.children);if(l)return l}}};return i(r,n)||null}getFirstPage(){const{pages:r=[]}=this.project||{};if(!r.length)return null;const n=(i=[])=>{for(const s of i){if(s.type==="page"&&!s.dir&&!s.layout)return s;if(s.children&&s.children.length){const o=n(s.children);if(o)return o}}};return n(r)||null}getMenus(r="page",n=""){var i;return mn(n,r,((i=this.project)==null?void 0:i.pages)||[])}getHomepage(){const{homepage:r}=this.project||{};return r?this.getPage(r):this.getFirstPage()}getDsl(r){return L(this,null,function*(){const{vtjDir:n=".vtj"}=this.options,i=this.modules[`${n}/files/${r}.json`]||this.modules[`/src/${n}/files/${r}.json`];return i?yield i():this.service.getFile(r,this.project||void 0).catch(()=>null)})}getDslByUrl(r){return L(this,null,function*(){return this.urlDslCaches[r]||(this.adapter.request?this.urlDslCaches[r]=this.adapter.request.send({url:r,method:"get",settings:{validSuccess:!1,originResponse:!0}}).then(i=>i.data).catch(()=>null):null)})}createDslRenderer(r,n={}){const{library:i,components:s,mode:o,apis:u}=this,l=V({mode:o,Vue:i.Vue,components:s,libs:i,apis:u,window},n),a=gn({getDsl:c=>L(this,null,function*(){return(yield this.getDsl(c))||null}),getDslByUrl:c=>L(this,null,function*(){return(yield this.getDslByUrl(c))||null}),options:l});return dn(re(V({},l),{dsl:r,loader:a}))}getRenderComponent(r,n){return L(this,null,function*(){var o;const i=this.getFile(r);if(!i)return it.warn(`Can not find file: ${r}`),null;if(n&&n(i),this.mode===X.Raw){const{vtjRawDir:u=".vtj/vue"}=this.options,l=`${u}/${r}.vue`,a=this.modules[l]||this.modules[`/src/pages/${r}.vue`];return a?(o=yield a())==null?void 0:o.default:this.nodeEnv==="development"&&this.adapter.startupComponent||null}const s=yield this.getDsl(i.id);return s?this.createDslRenderer(s).renderer:(it.warn(`Can not find dsl: ${r}`),null)})}defineUrlSchemaComponent(r,n){return Un(()=>L(this,null,function*(){const i=yield this.getDslByUrl(r);return i?(i.name=n||i.name,this.createDslRenderer(i).renderer):null}))}definePluginComponent(r){return Un(()=>L(null,null,function*(){return yield ma(r,window)}))}initGlobals(r,n){const i=Object.assign({adapter:this.adapter,window},n);c1(r,i)}initI18n(r,n,i){g1(r,n,i)}initEnv(r=[]){this.env=r.reduce((n,i)=>(n[i.name]=i[this.nodeEnv],n),{})}}function m1(t){const e=new v1(t);return{provider:e,onReady:r=>e.ready(r)}}function y1(t={}){const e=Ba(_a,null);if(!e)throw new Error("Can not find provider");if(e.nodeEnv==="development"){const{id:r,version:n}=t;r&&n&&L(null,null,function*(){const i=yield e.getDsl(r);(i==null?void 0:i.__VERSION__)!==n&&e.adapter.notify&&e.adapter.notify(`[ ${i==null?void 0:i.name} ] 组件源码版本与运行时版本不一致,请重新发布组件`,"版本不一致","warning")})}return e}function b1(t,e=""){return L(this,null,function*(){const{name:r,urls:n=[]}=t||{},i=n.map(u=>e+u),{css:s,js:o}=py(i);if(s.length&&ha(s),o.length)return yield pa(o,r).catch(()=>{})})}const wa={type:"json",validSuccess:!0,originResponse:!1,failMessage:!0,validate:t=>{var e;return((e=t.data)==null?void 0:e.code)===0}},_1=(t,e="/__vtj__/api/:type.json")=>(r,n,i)=>t.send({url:e,method:"post",params:{type:r},query:i,data:{type:r,data:n},settings:wa}),w1=(t,e="/__vtj__/api/uploader.json")=>(r,n)=>L(null,null,function*(){return yield t.send({url:e,method:"post",data:{files:r,projectId:n},settings:re(V({},wa),{type:"data"})}).then(i=>i&&i[0]?i[0]:null).catch(()=>null)});function E1(t){return In({settings:{type:"json",validSuccess:!0,originResponse:!1,failMessage:!0,validate:e=>{var r;return((r=e.data)==null?void 0:r.code)===0},showError:e=>{t&&t(e||"未知错误")}}})}class S1{constructor(e=ln){k(this,"api");k(this,"pluginCaches",{});k(this,"uploader");this.req=e,this.api=_1(e),this.uploader=w1(e)}getExtension(){return L(this,null,function*(){console.log("BaseService.getExtension")})}init(e){return L(this,null,function*(){return console.log("BaseService.init",e),{}})}saveProject(e,r){return L(this,null,function*(){return!!(yield this.api("saveProject",e,{type:r}).catch(()=>!1))})}saveMaterials(e,r){return L(this,null,function*(){return console.log("BaseService.saveMaterials",e,r),!1})}saveFile(e){return L(this,null,function*(){return console.log("BaseService.saveFile",e),!1})}getFile(e){return L(this,null,function*(){return console.log("BaseService.getFile",e),{}})}removeFile(e){return L(this,null,function*(){return console.log("BaseService.removeFile",e),!1})}saveHistory(e){return L(this,null,function*(){return console.log("BaseService.saveHistory",e),!1})}removeHistory(e){return L(this,null,function*(){return console.log("BaseService.removeHistory",e),!1})}getHistory(e){return L(this,null,function*(){return console.log("BaseService.getHistory",e),{}})}getHistoryItem(e,r){return L(this,null,function*(){return console.log("BaseService.getHistoryItem",e,r),{}})}saveHistoryItem(e,r){return L(this,null,function*(){return console.log("BaseService.saveHistoryItem",e,r),!1})}removeHistoryItem(e,r){return L(this,null,function*(){return console.log("BaseService.removeHistoryItem",e,r),!1})}publish(e){return L(this,null,function*(){return!!(yield this.api("publish",e).catch(()=>!1))})}publishFile(e,r){return L(this,null,function*(){return!!(yield this.api("publishFile",{project:e,file:r}).catch(()=>!1))})}genVueContent(e,r){return L(this,null,function*(){return yield this.api("genVueContent",{project:e,dsl:r}).catch(()=>"")})}parseVue(e,r){return L(this,null,function*(){return yield this.api("parseVue",V({project:e},r))})}createRawPage(e){return L(this,null,function*(){return yield this.api("createRawPage",e).catch(()=>"")})}removeRawPage(e){return L(this,null,function*(){return yield this.api("removeRawPage",e).catch(()=>"")})}uploadStaticFile(e,r){return L(this,null,function*(){return yield this.uploader(e,r).catch(()=>null)})}getStaticFiles(e){return L(this,null,function*(){return yield this.api("getStaticFiles",e).catch(()=>[])})}removeStaticFile(e,r){return L(this,null,function*(){return yield this.api("removeStaticFile",{name:e,projectId:r}).catch(()=>"")})}clearStaticFiles(e){return L(this,null,function*(){return yield this.api("clearStaticFiles",e).catch(()=>"")})}getPluginMaterial(e){return L(this,null,function*(){const{urls:r=[]}=e,n=r.filter(s=>cy(s))[0];return n?this.pluginCaches[n]||(this.pluginCaches[n]=ln.send({url:n,method:"get",settings:{validSuccess:!1,originResponse:!0}}).then(s=>s.data).catch(()=>null)):null})}genSource(e){return L(this,null,function*(){return console.log("BaseService.genSource",e),""})}}new sa({type:"local",expired:0,prefix:"__VTJ_"});class T1 extends S1{constructor(){super(...arguments);k(this,"getFileCaches",{})}getExtension(){return L(this,null,function*(){return yield this.api("getExtension",{}).catch(()=>{})})}init(r){return L(this,null,function*(){return(yield this.api("init",r).catch(()=>null))||{}})}saveProject(r,n){return L(this,null,function*(){return!!(yield this.api("saveProject",r,{type:n}).catch(()=>!1))})}saveMaterials(r,n){return L(this,null,function*(){return!!(yield this.api("saveMaterials",{project:r,materials:Ig(n)}).catch(()=>!1))})}saveFile(r){return L(this,null,function*(){return!!(yield this.api("saveFile",r).catch(()=>!1))})}getFile(r){return L(this,null,function*(){return this.getFileCaches[r]||(this.getFileCaches[r]=this.api("getFile",r).catch(()=>null)).finally(()=>{delete this.getFileCaches[r]})})}removeFile(r){return L(this,null,function*(){return!!(yield this.api("removeFile",r).catch(()=>!1))})}saveHistory(r){return L(this,null,function*(){return!!(yield this.api("saveHistory",r).catch(()=>!1))})}removeHistory(r){return L(this,null,function*(){return!!(yield this.api("removeHistory",r).catch(()=>!1))})}getHistory(r){return L(this,null,function*(){return(yield this.api("getHistory",r).catch(()=>null))||{}})}getHistoryItem(r,n){return L(this,null,function*(){return(yield this.api("getHistoryItem",{fId:r,id:n}).catch(()=>null))||{}})}saveHistoryItem(r,n){return L(this,null,function*(){return!!(yield this.api("saveHistoryItem",{fId:r,item:n}).catch(()=>!1))})}removeHistoryItem(r,n){return L(this,null,function*(){return!!(yield this.api("removeHistoryItem",{fId:r,ids:n}).catch(()=>!1))})}}/**!
|
|
70
|
+
}`:"(v) => {}"},i=r.__parseFunction(n),s=ya(me(e.modifiers)?r.__parseExpression(e.modifiers):e.modifiers),o=me(e.arg)?r.__parseExpression(e.arg):e.arg||"modelValue";return{[o]:r.__parseExpression(e.value),[`onUpdate:${o}`]:s.length&&i?t.withModifiers(i,s):i}}function r1(t,e,r,n,i){if(!e)return null;if(Me(e))return{default:()=>e};if(me(e))return{default:()=>fa(r.__parseExpression(e))};if(Array.isArray(e)&&e.length>0){const s=n1(e),o=(u,l)=>!u||!i?{}:i!=null&&i.id&&Object.keys(u).length?l?{[l]:u}:{[`scope_${i.id}`]:u}:l?{[l]:Object.create(null)}:{};return Object.entries(s).reduce((u,[l,{nodes:a,params:c,scope:f}])=>(u[l]=h=>{const p=c.length?Mg(h!=null?h:{},c):o(h,f);return a.map((d,g)=>ot(d,r.__clone(p),t,n,a,!1,g))},u),{})}return null}function n1(t){const e={};for(const r of t){const n=i1(r.slot),i=n.name;e[i]?(e[i].nodes.push(r),e[i].params=e[i].params.concat(n.params),e[i].scope=n.scope||""):e[i]={nodes:[r],params:n.params,scope:n.scope||""}}return e}function i1(t="default"){return Me(t)?{name:t,params:[],scope:""}:V({params:[],scope:""},t)}function s1(t,e,r){const{value:n,iterator:i}=t,{item:s="item",index:o="index"}=i||{};let u=r.__parseExpression(n)||[];return Number.isInteger(u)&&(u=new Array(u).fill(!0).map((l,a)=>a+1)),Array.isArray(u)?u.map((l,a)=>e(r.__clone({[s]:l,[o]:a}),a)):(console.warn("[vForRender]:",`${n==null?void 0:n.value} is not a Arrary`),[])}const zr=ys({name:"VtjPageContainer",setup(){return U(this,null,function*(){const t=v1(),e=Ba(),r=e.meta.__vtj__||e.params.id,n=r?t.getPage(r):t.getHomepage(),i=n?yield t.getRenderComponent(n.id):null,s=Da(Symbol());if(n){Object.assign(e.meta,n.meta||{},{cache:n.cache});const{useTitle:o}=t==null?void 0:t.adapter;if(o){const u=e.meta.title||n.title||"VTJ.PRO";o(u)}}return{provider:t,component:i,file:n,query:e.query,meta:e.meta,sid:s,route:e}})},render(){const{component:t,query:e,sid:r}=this;return t?Kr(t,re(V({},e),{key:r})):Kr("div",{style:{padding:"10px"}},"找不到组件,组件不存在或未发布!")},activated(){this.meta.cache===!1&&(this.sid=Symbol())}}),o1=ys({name:"VtjStartupContainer",render(){return Kr("div","page not found!")}});function yn(t,e,r=[]){const n=[];for(const i of r){const{id:s,title:o,icon:u,children:l,hidden:a,layout:c}=i;if(c){const f=yn(t,e,l||[]);n.push(...f)}else{const f={id:s,title:o,icon:u,hidden:a,url:`${t}/${e}/${s}`,children:l&&l.length?yn(t,e,l):void 0};n.push(f)}}return n}function Wr(t,e){const{id:r,title:n,meta:i}=t,{name:s="page",prefix:o="",component:u,routeMeta:l}=e;return{name:r,path:`${o}${s}/${r}`,component:u,meta:re(V(V({title:n},l),i),{__vtj__:r})}}function bn(t){const{name:e="page",prefix:r="",pages:n=[],component:i,loader:s,routeMeta:o,homepage:u}=t,l=[];for(const a of n){const{id:c,title:f,dir:h,layout:p,children:d,meta:g}=a;if(h){const v=bn({name:e,prefix:r,component:i,routeMeta:o,homepage:u,loader:s,pages:d||[]});l.push(...v)}else if(p){const v=bn({name:e,prefix:r,component:i,routeMeta:o,homepage:u,loader:s,pages:d||[]}),E={name:`layout_${c}`,path:r,component:()=>s(c),meta:re(V(V({title:f},o),g),{__vtj__:c}),children:v};l.push(E),l.push(Wr(a,t))}else if(l.push(Wr(a,t)),u===c){const v=Wr(a,t);v.path="",v.name=`home_${c}`,l.push(v)}}return l}function a1(t={},e){const{css:r,store:n,enhance:i}=t,{window:s,app:o,library:u={},adapter:l,mode:a}=e,{Pinia:c}=u;o.config.globalProperties.$libs=u,yr(s,"global-css",r||""),c&&n&&u1(n,o,c),l1(o,l,t),!l.access&&t.access&&c1(t.access,o,a,l),f1(o,t),i&&h1(i,o,u)}function u1(t,e,r){const n=r.createPinia();if(e.use(n),de(t)&&t.value){const i=pe(t,{},!1,!1,!0),s=r.defineStore("$store",i(e)||{});e.config.globalProperties.$store=s()}}function c1(t,e,r,n){if(de(t)&&t.value){const i=pe(t,{},!1,!1,!0),{alert:s,request:o}=n,u=new da(V({alert:s,storagePrefix:"__VTJ_APP_"},i(e))),l=e.config.globalProperties.$router;u.connect({mode:r,router:l,request:o}),e.use(u)}}function l1(t,e,r){if(!e.request)return;const{axios:n,request:i,response:s}=r;if(n&&de(n)&&n.value){const o=pe(n,{},!1,!1,!0);e.request.setConfig(o(t))}if(i&&de(i)&&i.value){const o=pe(i,{},!1,!1,!0),u=e.request;u.__unReq&&u.__unReq(),u.__unReq=e.request.useRequest(l=>o(l,t))}if(s&&de(s)&&s.value){const o=pe(s,{},!1,!1,!0),u=e.request;u.__unRes&&u.__unRes(),u.__unRes=e.request.useResponse(l=>o(l,t))}}function f1(t,e){const{beforeEach:r,afterEach:n}=e,i=t.config.globalProperties.$router;if(r&&de(r)&&r.value){const s=pe(r,{},!1,!1,!0);i&&i.beforeEach((o,u,l)=>s(o,u,l,t))}if(n&&de(n)&&n.value){const s=pe(n,{},!1,!1,!0);i&&i.afterEach((o,u,l)=>s(o,u,l,t))}}function h1(t,e,r={}){de(t)&&t.value&&pe(t,{},!1,!1,!0)(e,r)}function p1(t,e,r){if(!t||!e||!r)return;const{VueI18n:n}=e;if(n){const{locale:i,fallbackLocale:s,messages:o=[]}=r,u={};for(let a of o){const c=Object.keys(a).filter(f=>f!=="key");for(const f of c)u[f]||(u[f]={}),u[f][a.key]=a[f]}const l=n.createI18n({legacy:!1,locale:i,fallbackLocale:s,messages:u});t.use(l)}}const ba=Symbol("Provider");class d1 extends Xg{constructor(r){super();k(this,"mode");k(this,"globals",{});k(this,"modules",{});k(this,"adapter",{request:fn,jsonp:ca});k(this,"apis",{});k(this,"dependencies",{});k(this,"materials",{});k(this,"library",{});k(this,"libraryLocales",{});k(this,"libraryLocaleMap",{});k(this,"service");k(this,"project",null);k(this,"components",{});k(this,"nodeEnv","development");k(this,"env",{});k(this,"router",null);k(this,"materialPath","./");k(this,"urlDslCaches",{});k(this,"errorHandler",null);this.options=r;const{service:n,mode:i=X.Raw,dependencies:s,materials:o,project:u={},adapter:l={},globals:a={},modules:c={},router:f=null,materialPath:h="./",nodeEnv:p="development"}=r;this.mode=i,this.modules=c,this.service=n,this.router=f,this.materialPath=h,this.nodeEnv=p,s&&(this.dependencies=s),o&&(this.materials=o),Object.assign(this.globals,a),Object.assign(this.adapter,l);const{access:d,request:g}=this.adapter;d&&d.connect({mode:i,router:f,request:g}),u&&i!==X.Design?this.load(u):this.project=u}createMock(r){return(...n)=>U(null,null,function*(){var s;let i={};if(r)try{i=yield r.apply(r,n)}catch(o){it.warn("模拟数据模版异常",o)}return(s=Tt())==null?void 0:s.mock(i)})}load(r){return U(this,null,function*(){const{vtjDir:n=".vtj"}=this.options,i=this.modules[`${n}/projects/${r.id}.json`]||this.modules[`/src/${n}/projects/${r.id}.json`];if(this.project=i?yield i():yield this.service.init(r),!this.project)throw new Error("project is null");const{apis:s=[],meta:o=[],env:u=[]}=this.project,l=window;l&&(l.CKEDITOR_VERSION=void 0),this.initEnv(u),this.mode===X.Raw?yield this.loadDependencies(l):yield this.loadAssets(l),this.initMock(l),this.apis=Ay(s,o,this.adapter),ga(l),xy(s,l),r.platform!=="uniapp"&&this.initRouter(),this.triggerReady()})}initMock(r){const n=Tt(r);n&&n.setup({timeout:"50-500"})}loadDependencies(){return U(this,arguments,function*(r={}){const n=Object.entries(this.dependencies);for(const[i,s]of n)r[i]||(r[i]=this.library[i]=yield s())})}loadAssets(){return U(this,arguments,function*(r={}){const{dependencies:n=[]}=this.project,{dependencies:i,library:s,components:o,materialPath:u,nodeEnv:l,libraryLocales:a}=this,{libraryExports:c,libraryMap:f,materials:h,materialExports:p,materialMapLibrary:d,libraryLocaleMap:g}=ly(n,u,l==="development");Object.assign(this.libraryLocaleMap,g);for(const v of c){const E=i[v],m=r[v];if(m)s[v]=m;else if(E)r[v]=s[v]=yield E();else{const _=f[v]||[];for(const w of _)vr(w)&&(yield my(w,Zt.append(w,{v:Vr}))),mr(w)&&(yield ps(Zt.append(w,{v:Vr})));s[v]=r[v]}const b=g[v];if(b){const _=i[b];a[b]=_?yield _():r[b]}}if(l==="development"){for(const E of h)yield ps(Zt.append(E,{v:Vr}));const v=this.materials||{};for(const E of p){const m=r[d[E]],b=(m==null?void 0:m.default)||m,_=Qg[E];if(_)b&&_.forEach(w=>{o[w]=b[w]});else{const w=v[E]?(yield v[E]()).default:r[E];w&&b&&(w.components||[]).forEach(y=>{o[y.name]=fy(y,b)})}}}})}initRouter(){const{router:r,project:n,options:i,adapter:s}=this;if(!r)return;const o=(n==null?void 0:n.platform)==="uniapp"?"pages":"page",{routeAppendTo:u,pageRouteName:l=o,routeMeta:a}=i,c=u?"":"/",f={path:`${c}${l}/:id`,name:Qt,component:zr},h=this.getHomepage(),p={path:c,name:kr,component:h?zr:s.startupComponent||o1,meta:a};if(r.hasRoute(Qt)&&r.removeRoute(Qt),r.hasRoute(kr)&&r.removeRoute(kr),i.enableStaticRoute){const d=(n==null?void 0:n.pages)||[];bn({name:l,prefix:c,pages:d,component:zr,loader:this.getRenderComponent.bind(this),homepage:h==null?void 0:h.id}).forEach(g=>{u?r.addRoute(u,g):r.addRoute(g)}),h||(u?r.addRoute(u,p):r.addRoute(p))}else u?(r.addRoute(u,f),r.addRoute(u,p)):(r.addRoute(f),r.addRoute(p))}setErrorHandler(r){r.config.errorHandler=On((n,i,s)=>{const o=i==null?void 0:i.$options.name,u=typeof n=="string"?n:(n==null?void 0:n.message)||(n==null?void 0:n.msg)||"未知错误",l=`[ ${o} ] ${u} ${s}`;["getComputedStyle","ResizeObserver"].some(a=>l.includes(a))||(console.error("[VTJ Error]:",{err:n,instance:i,info:s},n==null?void 0:n.stack),this.errorHandler&&this.errorHandler(n),this.adapter.notify&&this.adapter.notify(l,"组件渲染错误","error"))},300)}install(r){var u,l,a,c;const{libraryLocaleMap:n,libraryLocales:i}=this,{libraryOptions:s={}}=this.options,o=r.config.globalProperties.installed||{};for(const[f,h]of Object.entries(this.library))if(!o[f]&&yy(h)){const p={locale:i[n[f]]},d=s[f]||{},g=V(V({},p),d);r.use(h,g),o[f]=!0}r.provide(ba,this),r.config.globalProperties.$provider=this,r.config.globalProperties.$request=(u=this.adapter)==null?void 0:u.request,this.options.install&&r.use(this.options.install),this.adapter.access&&r.use(this.adapter.access),((l=this.project)==null?void 0:l.platform)!=="uniapp"&&this.mode!==X.Design&&this.initGlobals(((a=this.project)==null?void 0:a.globals)||{},{app:r,window,adapter:this.adapter,library:this.library,mode:this.mode}),this.mode!==X.Design&&((c=this.project)!=null&&c.i18n)&&this.initI18n(r,this.library,this.project.i18n),this.options.enhance&&r.use(this.options.enhance,this),this.mode===X.Design&&this.setErrorHandler(r),r.config.globalProperties.installed=o}getFile(r){const{blocks:n=[]}=this.project||{};return this.getPage(r)||n.find(i=>i.id===r)||null}getPage(r){const{pages:n=[]}=this.project||{},i=(s,o=[])=>{for(const u of o){if(u.id===s)return u;if(u.children&&u.children.length){const l=i(s,u.children);if(l)return l}}};return i(r,n)||null}getFirstPage(){const{pages:r=[]}=this.project||{};if(!r.length)return null;const n=(i=[])=>{for(const s of i){if(s.type==="page"&&!s.dir&&!s.layout)return s;if(s.children&&s.children.length){const o=n(s.children);if(o)return o}}};return n(r)||null}getMenus(r="page",n=""){var i;return yn(n,r,((i=this.project)==null?void 0:i.pages)||[])}getHomepage(){const{homepage:r}=this.project||{};return r?this.getPage(r):this.getFirstPage()}getDsl(r){return U(this,null,function*(){const{vtjDir:n=".vtj"}=this.options,i=this.modules[`${n}/files/${r}.json`]||this.modules[`/src/${n}/files/${r}.json`];return i?yield i():this.service.getFile(r,this.project||void 0).catch(()=>null)})}getDslByUrl(r){return U(this,null,function*(){return this.urlDslCaches[r]||(this.adapter.request?this.urlDslCaches[r]=this.adapter.request.send({url:r,method:"get",settings:{validSuccess:!1,originResponse:!0}}).then(i=>i.data).catch(()=>null):null)})}createDslRenderer(r,n={}){const{library:i,components:s,mode:o,apis:u}=this,l=V({mode:o,Vue:i.Vue,components:s,libs:i,apis:u,window},n),a=vn({getDsl:c=>U(this,null,function*(){return(yield this.getDsl(c))||null}),getDslByUrl:c=>U(this,null,function*(){return(yield this.getDslByUrl(c))||null}),options:l});return gn(re(V({},l),{dsl:r,loader:a}))}getRenderComponent(r,n){return U(this,null,function*(){var o;const i=this.getFile(r);if(!i)return it.warn(`Can not find file: ${r}`),null;if(n&&n(i),this.mode===X.Raw){const{vtjRawDir:u=".vtj/vue"}=this.options,l=`${u}/${r}.vue`,a=this.modules[l]||this.modules[`/src/pages/${r}.vue`];return a?(o=yield a())==null?void 0:o.default:this.nodeEnv==="development"&&this.adapter.startupComponent||null}const s=yield this.getDsl(i.id);return s?this.createDslRenderer(s).renderer:(it.warn(`Can not find dsl: ${r}`),null)})}defineUrlSchemaComponent(r,n){return Hn(()=>U(this,null,function*(){const i=yield this.getDslByUrl(r);return i?(i.name=n||i.name,this.createDslRenderer(i).renderer):null}))}definePluginComponent(r){return Hn(()=>U(null,null,function*(){return yield va(r,window)}))}initGlobals(r,n){const i=Object.assign({adapter:this.adapter,window},n);a1(r,i)}initI18n(r,n,i){p1(r,n,i)}initEnv(r=[]){this.env=r.reduce((n,i)=>(n[i.name]=i[this.nodeEnv],n),{})}}function g1(t){const e=new d1(t);return{provider:e,onReady:r=>e.ready(r)}}function v1(t={}){const e=Ca(ba,null);if(!e)throw new Error("Can not find provider");if(e.nodeEnv==="development"){const{id:r,version:n}=t;r&&n&&U(null,null,function*(){const i=yield e.getDsl(r);(i==null?void 0:i.__VERSION__)!==n&&e.adapter.notify&&e.adapter.notify(`[ ${i==null?void 0:i.name} ] 组件源码版本与运行时版本不一致,请重新发布组件`,"版本不一致","warning")})}return e}function m1(t,e=""){return U(this,null,function*(){const{name:r,urls:n=[]}=t||{},i=n.map(u=>e+u),{css:s,js:o}=hy(i);if(s.length&&ha(s),o.length)return yield pa(o,r).catch(()=>{})})}const _a={type:"json",validSuccess:!0,originResponse:!1,failMessage:!0,validate:t=>{var e;return((e=t.data)==null?void 0:e.code)===0}},y1=(t,e="/__vtj__/api/:type.json")=>(r,n,i)=>t.send({url:e,method:"post",params:{type:r},query:i,data:{type:r,data:n},settings:_a}),b1=(t,e="/__vtj__/api/uploader.json")=>(r,n)=>U(null,null,function*(){return yield t.send({url:e,method:"post",data:{files:r,projectId:n},settings:re(V({},_a),{type:"data"})}).then(i=>i&&i[0]?i[0]:null).catch(()=>null)});function _1(t){return Mn({settings:{type:"json",validSuccess:!0,originResponse:!1,failMessage:!0,validate:e=>{var r;return((r=e.data)==null?void 0:r.code)===0},showError:e=>{t&&t(e||"未知错误")}}})}class w1{constructor(e=fn){k(this,"api");k(this,"pluginCaches",{});k(this,"uploader");this.req=e,this.api=y1(e),this.uploader=b1(e)}getExtension(){return U(this,null,function*(){console.log("BaseService.getExtension")})}init(e){return U(this,null,function*(){return console.log("BaseService.init",e),{}})}saveProject(e,r){return U(this,null,function*(){return!!(yield this.api("saveProject",e,{type:r}).catch(()=>!1))})}saveMaterials(e,r){return U(this,null,function*(){return console.log("BaseService.saveMaterials",e,r),!1})}saveFile(e){return U(this,null,function*(){return console.log("BaseService.saveFile",e),!1})}getFile(e){return U(this,null,function*(){return console.log("BaseService.getFile",e),{}})}removeFile(e){return U(this,null,function*(){return console.log("BaseService.removeFile",e),!1})}saveHistory(e){return U(this,null,function*(){return console.log("BaseService.saveHistory",e),!1})}removeHistory(e){return U(this,null,function*(){return console.log("BaseService.removeHistory",e),!1})}getHistory(e){return U(this,null,function*(){return console.log("BaseService.getHistory",e),{}})}getHistoryItem(e,r){return U(this,null,function*(){return console.log("BaseService.getHistoryItem",e,r),{}})}saveHistoryItem(e,r){return U(this,null,function*(){return console.log("BaseService.saveHistoryItem",e,r),!1})}removeHistoryItem(e,r){return U(this,null,function*(){return console.log("BaseService.removeHistoryItem",e,r),!1})}publish(e){return U(this,null,function*(){return!!(yield this.api("publish",e).catch(()=>!1))})}publishFile(e,r){return U(this,null,function*(){return!!(yield this.api("publishFile",{project:e,file:r}).catch(()=>!1))})}genVueContent(e,r){return U(this,null,function*(){return yield this.api("genVueContent",{project:e,dsl:r}).catch(()=>"")})}parseVue(e,r){return U(this,null,function*(){return yield this.api("parseVue",V({project:e},r))})}createRawPage(e){return U(this,null,function*(){return yield this.api("createRawPage",e).catch(()=>"")})}removeRawPage(e){return U(this,null,function*(){return yield this.api("removeRawPage",e).catch(()=>"")})}uploadStaticFile(e,r){return U(this,null,function*(){return yield this.uploader(e,r).catch(()=>null)})}getStaticFiles(e){return U(this,null,function*(){return yield this.api("getStaticFiles",e).catch(()=>[])})}removeStaticFile(e,r){return U(this,null,function*(){return yield this.api("removeStaticFile",{name:e,projectId:r}).catch(()=>"")})}clearStaticFiles(e){return U(this,null,function*(){return yield this.api("clearStaticFiles",e).catch(()=>"")})}getPluginMaterial(e){return U(this,null,function*(){const{urls:r=[]}=e,n=r.filter(s=>uy(s))[0];return n?this.pluginCaches[n]||(this.pluginCaches[n]=fn.send({url:n,method:"get",settings:{validSuccess:!1,originResponse:!0}}).then(s=>s.data).catch(()=>null)):null})}genSource(e){return U(this,null,function*(){return console.log("BaseService.genSource",e),""})}}new sa({type:"local",expired:0,prefix:"__VTJ_"});class E1 extends w1{constructor(){super(...arguments);k(this,"getFileCaches",{})}getExtension(){return U(this,null,function*(){return yield this.api("getExtension",{}).catch(()=>{})})}init(r){return U(this,null,function*(){return(yield this.api("init",r).catch(()=>null))||{}})}saveProject(r,n){return U(this,null,function*(){return!!(yield this.api("saveProject",r,{type:n}).catch(()=>!1))})}saveMaterials(r,n){return U(this,null,function*(){return!!(yield this.api("saveMaterials",{project:r,materials:Ng(n)}).catch(()=>!1))})}saveFile(r){return U(this,null,function*(){return!!(yield this.api("saveFile",r).catch(()=>!1))})}getFile(r){return U(this,null,function*(){return this.getFileCaches[r]||(this.getFileCaches[r]=this.api("getFile",r).catch(()=>null)).finally(()=>{delete this.getFileCaches[r]})})}removeFile(r){return U(this,null,function*(){return!!(yield this.api("removeFile",r).catch(()=>!1))})}saveHistory(r){return U(this,null,function*(){return!!(yield this.api("saveHistory",r).catch(()=>!1))})}removeHistory(r){return U(this,null,function*(){return!!(yield this.api("removeHistory",r).catch(()=>!1))})}getHistory(r){return U(this,null,function*(){return(yield this.api("getHistory",r).catch(()=>null))||{}})}getHistoryItem(r,n){return U(this,null,function*(){return(yield this.api("getHistoryItem",{fId:r,id:n}).catch(()=>null))||{}})}saveHistoryItem(r,n){return U(this,null,function*(){return!!(yield this.api("saveHistoryItem",{fId:r,item:n}).catch(()=>!1))})}removeHistoryItem(r,n){return U(this,null,function*(){return!!(yield this.api("removeHistoryItem",{fId:r,ids:n}).catch(()=>!1))})}}/**!
|
|
71
71
|
* Copyright (c) 2026, VTJ.PRO All rights reserved.
|
|
72
72
|
* @name @vtj/uni
|
|
73
73
|
* @author CHC chenhuachun1549@dingtalk.com
|
|
74
|
-
* @version 0.16.
|
|
74
|
+
* @version 0.16.21
|
|
75
75
|
* @license <a href="https://vtj.pro/license.html">MIT License</a>
|
|
76
|
-
*/const R1=["onLaunch","onShow","onHide","onError","onPageNotFound","onUnhandledRejection","onThemeChange","onPageNotFound","onUniNViewMessage","onExit"],vs="/pages",A1="VTJ",x1="__UNI__1FC118B",O1="VTJ移动跨端项目",$1="1.0.0",D1="100",C1=!1,B1={},j1={enable:!1},P1="3",N1={name:A1,appid:x1,description:O1,versionName:$1,versionCode:D1,transformPx:C1,"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:B1,"mp-weixin":{appid:"",setting:{urlCheck:!1},usingComponents:!0},"mp-alipay":{usingComponents:!0},"mp-baidu":{usingComponents:!0},"mp-toutiao":{usingComponents:!0},uniStatistics:j1,vueVersion:P1},I1=[],M1={navigationBarTextStyle:"black",navigationBarTitleText:"uni-app",navigationBarBackgroundColor:"#F8F8F8",backgroundColor:"#F8F8F8"},F1={autoscan:!0,custom:{"^uni-(.*)":"@dcloudio/uni-ui/lib/uni-$1/uni-$1.vue"}},L1={pages:I1,globalStyle:M1,easycom:F1};function U1(t){let{manifestJson:e={},pagesJson:r={},routes:n=[]}=t;const i=n.map(s=>{const{path:o,style:u,needLogin:l}=s;return{path:o,style:u,needLogin:l}});return re(V({},t),{manifestJson:Object.assign({},N1,e),pagesJson:Object.assign({},L1,r,{pages:i})})}const bn={navigationBarBackgroundColor:"backgroundColor",navigationBarTextStyle:"titleColor",navigationBarTitleText:"titleText",navigationStyle:"style",titleImage:"titleImage",titlePenetrate:"titlePenetrate",transparentTitle:"transparentTitle"};function Ea(t){const e={},r={black:"#000000",white:"#ffffff"};for(const n in t)bn[n]&&(e[bn[n]]=n==="navigationBarTextStyle"?r[t[n]]||r.black:t[n]);return e}function H1(t){const e={};for(const r in t)bn[r]||(e[r]=t[r]);return e}function V1(t){var e,r;return((r=(e=t.h5)==null?void 0:e.router)==null?void 0:r.mode)||"hash"}function k1(t){var e,r,n;return{topWindow:!!((e=t.topWindow)!=null&&e.path),leftWindow:!!((r=t.leftWindow)!=null&&r.path),rightWindow:!!((n=t.rightWindow)!=null&&n.path)}}function q1(t){const{pagesJson:e={}}=t,{globalStyle:r,pages:n=[]}=e;return!!(r!=null&&r.enablePullDownRefresh||n.find(i=>{var s;return!!((s=i.style)!=null&&s.enablePullDownRefresh)}))}function z1(t){const{pagesJson:e={}}=t,{globalStyle:r,pages:n=[]}=e;let i=!1;return(r==null?void 0:r.navigationStyle)==="custom"?(i=!0,n.find(s=>{var o;return((o=s.style)==null?void 0:o.navigationStyle)==="default"})&&(i=!1)):n.every(s=>{var o;return((o=s.style)==null?void 0:o.navigationStyle)==="custom"})&&(i=!0),i}function W1(t){var u;const e=z1(t),r={navigationBar:!1,navigationBarButtons:!1,navigationBarSearchInput:!1,navigationBarTransparent:!1},{pagesJson:n={}}=t,{globalStyle:i,pages:s=[]}=n;if(e)return r;r.navigationBar=!0;const o=(u=i==null?void 0:i.h5)==null?void 0:u.titleNView;return s.find(l=>{var a,c,f;return!!((f=(c=(a=l.style)==null?void 0:a.h5)==null?void 0:c.titleNView)!=null&&f.buttons.length)})&&(r.navigationBarButtons=!0),(o!=null&&o.searchInput||s.find(l=>{var a,c,f;return!!((f=(c=(a=l.style)==null?void 0:a.h5)==null?void 0:c.titleNView)!=null&&f.searchInput)}))&&(r.navigationBarSearchInput=!0),((o==null?void 0:o.type)==="transparent"||s.find(l=>{var a,c,f;return((f=(c=(a=l.style)==null?void 0:a.h5)==null?void 0:c.titleNView)==null?void 0:f.type)==="transparent"}))&&(r.navigationBarTransparent=!0),r}function K1(t,e=window){var h,p,d,g;const{pagesJson:r={},manifestJson:n={}}=t,{topWindow:i,leftWindow:s,rightWindow:o}=k1(r),{navigationBar:u,navigationBarButtons:l,navigationBarSearchInput:a,navigationBarTransparent:c}=W1(t),f={__VUE_OPTIONS_API__:!0,__VUE_PROD_DEVTOOLS__:!1,__VUE_PROD_HYDRATION_MISMATCH_DETAILS__:!1,__UNI_FEATURE_WX__:!1,__UNI_FEATURE_WXS__:!1,__UNI_FEATURE_RPX__:!1,__UNI_FEATURE_PROMISE__:!1,__UNI_FEATURE_LONGPRESS__:!1,__UNI_FEATURE_I18N_EN__:!1,__UNI_FEATURE_I18N_ES__:!1,__UNI_FEATURE_I18N_FR__:!1,__UNI_FEATURE_I18N_ZH_HANS__:!0,__UNI_FEATURE_I18N_ZH_HANT__:!1,__UNI_FEATURE_UNI_CLOUD__:!1,__UNI_FEATURE_I18N_LOCALE__:!1,__UNI_FEATURE_NVUE__:!1,__UNI_FEATURE_ROUTER_MODE__:V1(n),__UNI_FEATURE_PAGES__:!!((h=r.pages)!=null&&h.length),__UNI_FEATURE_TABBAR__:!!((d=(p=r.tabBar)==null?void 0:p.list)!=null&&d.length),__UNI_FEATURE_TABBAR_MIDBUTTON__:!!((g=r.tabBar)!=null&&g.midButton),__UNI_FEATURE_TOPWINDOW__:i,__UNI_FEATURE_LEFTWINDOW__:s,__UNI_FEATURE_RIGHTWINDOW__:o,__UNI_FEATURE_RESPONSIVE__:!1,__UNI_FEATURE_NAVIGATIONBAR__:u,__UNI_FEATURE_PULL_DOWN_REFRESH__:q1(t),__UNI_FEATURE_NAVIGATIONBAR_BUTTONS__:l,__UNI_FEATURE_NAVIGATIONBAR_SEARCHINPUT__:a,__UNI_FEATURE_NAVIGATIONBAR_TRANSPARENT__:c};Object.entries(f).forEach(([m,w])=>{e[m]=w})}const J1="4.76";function G1(t,e=window){var f,h;const{pagesJson:r={},manifestJson:n={}}=t,{easycom:i={}}=r,{appid:s="",name:o="",versionCode:u="",versionName:l=""}=n,a=r.globalStyle,c=((f=n.h5)==null?void 0:f.router)||{};e.__uniConfig={easycom:i,globalStyle:re(V({},H1(a)),{navigationBar:Ea(a),isNVue:!1}),compilerVersion:J1,appId:s,appName:o,appVersion:l,appVersionCode:String(u),async:V({loading:"AsyncLoading",error:"AsyncError",delay:200,timeout:6e4,suspensible:!0},((h=n.h5)==null?void 0:h.async)||{}),debug:!1,networkTimeout:V({request:6e4,connectSocket:6e4,uploadFile:6e4,downloadFile:6e4},n.networkTimeout||{}),sdkConfigs:{},nvue:{"flex-direction":"column"},locale:"",fallbackLocale:"",locales:{},router:V({mode:"hash",base:"/",assets:"assets",routerBase:c.base||"/"},c),darkmode:!1,themeConfig:{},tabBar:r.tabBar?V({position:"bottom",color:"#7A7E83",selectedColor:"#3cc51f",borderStyle:"black",blurEffect:"none",fontSize:"10px",iconWidth:"24px",spacing:"3px",height:"50px",backgroundColor:"#ffffff",selectedIndex:0,shown:!0},r.tabBar):void 0}}function Y1(t,e=window){const{UniServiceJSBridge:r,UniViewJSBridge:n,getApp:i,uni:s,getCurrentPages:o,upx2px:u,setupPage:l}=t;e.UniServiceJSBridge=r,e.UniViewJSBridge=n,e.getApp=i,e.uni=s,e.wx=s,e.getCurrentPages=o,e.upx2px=u,e.__setupPage=a=>l(a)}function Z1(t,e,r){const{openBlock:n,createBlock:i,withCtx:s,createVNode:o}=t,{PageComponent:u,setupPage:l,getApp:a}=e;return{mpType:"page",setup(){return L(this,null,function*(){var g,m;const f=((m=(g=a())==null?void 0:g.$route)==null?void 0:m.query)||{},{loader:h,component:p}=r,d=h?yield h(r):p||{};return()=>(n(),i(u,null,{page:s(()=>[o(l(d),Object.assign({},f,{ref:"page"}),null,512)]),_:1}))})}}}function Q1(t,e,r){var p;const{path:n,style:i={},meta:s={},home:o,id:u}=e,l=((p=t.tabBar)==null?void 0:p.list)||[],a=l.findIndex(d=>{var g;return d.pagePath===n||((g=d.pagePath)==null?void 0:g.endsWith(u))}),c=l[a],f=!!c,h=r===0;return V({isTabBar:f,tabBarIndex:a,isQuit:o!=null?o:h,isEntry:o!=null?o:h,navigationBar:V({type:"default"},Ea(i)),isNVue:!1,route:c?c.pagePath:n},s)}function X1(t,e,r,n,i=window){const s=r.map((o,u)=>{const l=Q1(n,o,u),a=Z1(t,e,o),{path:c}=o;return{path:c,alias:c,meta:l,component:{render(){return t.h(t.Suspense,[t.h(a)])}}}});i.__uniRoutes=s,i.__uniLayout={}}function e0(t,e,r=window){mr(r,String(t),e)}function t0(t,e){e&&["View","ScrollView","Swiper","MovableArea","MovableView","CoverView","CoverImage","Icon","Text","RichText","Progress","Button","CheckboxGroup","Checkbox","Editor","Form","Input","Label","Picker","PickerView","RadioGroup","Radio","Slider","Switch","Textarea","Navigator","Image","Video","Map","Canvas","WebView","PickerViewColumn","ResizeSensor","SwiperItem"].forEach(r=>{const n=e[r];t.component(r,n)})}function r0(t){const e=U1(t),{Vue:r,App:n,UniH5:i,routes:s=[],pagesJson:o={},manifestJson:u={},window:l,css:a=""}=e;if(!i)return r.createApp(n);const{plugin:c,setupApp:f}=i;K1(e,l),G1(e,l),Y1(i,l),X1(r,i,s,o,l),e0(u.appid||Date.now(),a,l);const h=r.createApp(f(n));return h.use(t0,i),h.use(c),h}function n0(t,e){const r={};return Object.entries(t).forEach(([n,i])=>{R1.includes(n)&&i&&(r[n]=e(i))}),r}function ms(t,e){return()=>L(null,null,function*(){const r=yield t.getDsl(e);if(r){const{renderer:n}=t.createDslRenderer(r);return n}return null})}function i0(n){return L(this,arguments,function*(t,e=!1,r=vs){var u,l,a;const i=((u=t.project)==null?void 0:u.pages)||[],s=[];for(const c of i){const f=((l=t.project)==null?void 0:l.homepage)===c.id;s.push({id:c.id,path:`${r}/${c.id}`,loader:ms(t,c.id),style:V({navigationBarTitleText:c.title},c.style),needLogin:c.needLogin,home:f})}const o=s.find(c=>!!c.home)||s[0];if(o){const c=r===vs?"/":r;s.unshift(re(V({},o),{path:c}))}if(e){const c=((a=t.project)==null?void 0:a.blocks)||[];for(const f of c)s.push({id:f.id,path:`${r}/${f.id}`,loader:ms(t,f.id),style:{navigationStyle:"custom"}})}return s})}function s0(){var t;return(t=window.uni)!=null&&t.showLoading&&window.uni.showLoading({title:"加载中...",mask:!0}),{close:()=>{var e;(e=window.uni)!=null&&e.hideLoading&&window.uni.hideLoading()}}}function Sa(t,e="",r="warning"){return L(this,null,function*(){var n;return(n=window.uni)!=null&&n.showModal?window.uni.showModal({title:e,content:t,showCancel:!1}):(window.alert(t),!0)})}function o0(t=X.Runtime){let e={};t===X.Runtime?e=Object.assign({}):e=Object.assign({});let r={};for(const[n,i]of Object.entries(e))r[n]=()=>Promise.resolve(i);return r}const a0=Ry({loading:s0,notify:Sa}),Ta=new T1(E1(Sa)),u0=o0(),{provider:c0,onReady:l0}=m1({nodeEnv:"production",mode:X.Runtime,modules:u0,materialPath:"../",adapter:a0,service:Ta,dependencies:{Vue:()=>Vn(()=>import("./@dcloudio-uni-h5-vue-CQcoi6u8.js").then(t=>t.G),__vite__mapDeps([0,1,2]),import.meta.url),VueRouter:()=>Vn(()=>import("./vue-router-DfiwASwJ.js"),__vite__mapDeps([3,0,1,2]),import.meta.url)}}),f0=t=>L(null,null,function*(){const e=(yield Ta.getExtension().catch(()=>null))||{},r=top||window,n=yield b1(e.enhance,r.location.pathname),{Vue:i,UniH5:s}=window,o=t.project;if(!o)return;const u=o.uniConfig||{},l=n0(u,d=>pe(d,window,!1,!0)),{manifestJson:a,pagesJson:c,css:f}=u,h=yield i0(t,!0),p=r0({Vue:i,App:l,UniH5:s,routes:h,css:f,manifestJson:a,pagesJson:c});p.use(t),n&&p.use(n,t),p.mount(document.body)});l0(()=>f0(c0));
|
|
76
|
+
*/const S1=["onLaunch","onShow","onHide","onError","onPageNotFound","onUnhandledRejection","onThemeChange","onPageNotFound","onUniNViewMessage","onExit"],vs="/pages",T1="VTJ",R1="__UNI__1FC118B",A1="VTJ移动跨端项目",x1="1.0.0",O1="100",$1=!1,D1={},C1={enable:!1},B1="3",j1={name:T1,appid:R1,description:A1,versionName:x1,versionCode:O1,transformPx:$1,"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:D1,"mp-weixin":{appid:"",setting:{urlCheck:!1},usingComponents:!0},"mp-alipay":{usingComponents:!0},"mp-baidu":{usingComponents:!0},"mp-toutiao":{usingComponents:!0},uniStatistics:C1,vueVersion:B1},P1=[],N1={navigationBarTextStyle:"black",navigationBarTitleText:"uni-app",navigationBarBackgroundColor:"#F8F8F8",backgroundColor:"#F8F8F8"},I1={autoscan:!0,custom:{"^uni-(.*)":"@dcloudio/uni-ui/lib/uni-$1/uni-$1.vue"}},M1={pages:P1,globalStyle:N1,easycom:I1};function F1(t){let{manifestJson:e={},pagesJson:r={},routes:n=[]}=t;const i=n.map(s=>{const{path:o,style:u,needLogin:l}=s;return{path:o,style:u,needLogin:l}});return re(V({},t),{manifestJson:Object.assign({},j1,e),pagesJson:Object.assign({},M1,r,{pages:i})})}const _n={navigationBarBackgroundColor:"backgroundColor",navigationBarTextStyle:"titleColor",navigationBarTitleText:"titleText",navigationStyle:"style",titleImage:"titleImage",titlePenetrate:"titlePenetrate",transparentTitle:"transparentTitle"};function wa(t){const e={},r={black:"#000000",white:"#ffffff"};for(const n in t)_n[n]&&(e[_n[n]]=n==="navigationBarTextStyle"?r[t[n]]||r.black:t[n]);return e}function L1(t){const e={};for(const r in t)_n[r]||(e[r]=t[r]);return e}function U1(t){var e,r;return((r=(e=t.h5)==null?void 0:e.router)==null?void 0:r.mode)||"hash"}function H1(t){var e,r,n;return{topWindow:!!((e=t.topWindow)!=null&&e.path),leftWindow:!!((r=t.leftWindow)!=null&&r.path),rightWindow:!!((n=t.rightWindow)!=null&&n.path)}}function V1(t){const{pagesJson:e={}}=t,{globalStyle:r,pages:n=[]}=e;return!!(r!=null&&r.enablePullDownRefresh||n.find(i=>{var s;return!!((s=i.style)!=null&&s.enablePullDownRefresh)}))}function k1(t){const{pagesJson:e={}}=t,{globalStyle:r,pages:n=[]}=e;let i=!1;return(r==null?void 0:r.navigationStyle)==="custom"?(i=!0,n.find(s=>{var o;return((o=s.style)==null?void 0:o.navigationStyle)==="default"})&&(i=!1)):n.every(s=>{var o;return((o=s.style)==null?void 0:o.navigationStyle)==="custom"})&&(i=!0),i}function q1(t){var u;const e=k1(t),r={navigationBar:!1,navigationBarButtons:!1,navigationBarSearchInput:!1,navigationBarTransparent:!1},{pagesJson:n={}}=t,{globalStyle:i,pages:s=[]}=n;if(e)return r;r.navigationBar=!0;const o=(u=i==null?void 0:i.h5)==null?void 0:u.titleNView;return s.find(l=>{var a,c,f;return!!((f=(c=(a=l.style)==null?void 0:a.h5)==null?void 0:c.titleNView)!=null&&f.buttons.length)})&&(r.navigationBarButtons=!0),(o!=null&&o.searchInput||s.find(l=>{var a,c,f;return!!((f=(c=(a=l.style)==null?void 0:a.h5)==null?void 0:c.titleNView)!=null&&f.searchInput)}))&&(r.navigationBarSearchInput=!0),((o==null?void 0:o.type)==="transparent"||s.find(l=>{var a,c,f;return((f=(c=(a=l.style)==null?void 0:a.h5)==null?void 0:c.titleNView)==null?void 0:f.type)==="transparent"}))&&(r.navigationBarTransparent=!0),r}function z1(t,e=window){var h,p,d,g;const{pagesJson:r={},manifestJson:n={}}=t,{topWindow:i,leftWindow:s,rightWindow:o}=H1(r),{navigationBar:u,navigationBarButtons:l,navigationBarSearchInput:a,navigationBarTransparent:c}=q1(t),f={__VUE_OPTIONS_API__:!0,__VUE_PROD_DEVTOOLS__:!1,__VUE_PROD_HYDRATION_MISMATCH_DETAILS__:!1,__UNI_FEATURE_WX__:!1,__UNI_FEATURE_WXS__:!1,__UNI_FEATURE_RPX__:!1,__UNI_FEATURE_PROMISE__:!1,__UNI_FEATURE_LONGPRESS__:!1,__UNI_FEATURE_I18N_EN__:!1,__UNI_FEATURE_I18N_ES__:!1,__UNI_FEATURE_I18N_FR__:!1,__UNI_FEATURE_I18N_ZH_HANS__:!0,__UNI_FEATURE_I18N_ZH_HANT__:!1,__UNI_FEATURE_UNI_CLOUD__:!1,__UNI_FEATURE_I18N_LOCALE__:!1,__UNI_FEATURE_NVUE__:!1,__UNI_FEATURE_ROUTER_MODE__:U1(n),__UNI_FEATURE_PAGES__:!!((h=r.pages)!=null&&h.length),__UNI_FEATURE_TABBAR__:!!((d=(p=r.tabBar)==null?void 0:p.list)!=null&&d.length),__UNI_FEATURE_TABBAR_MIDBUTTON__:!!((g=r.tabBar)!=null&&g.midButton),__UNI_FEATURE_TOPWINDOW__:i,__UNI_FEATURE_LEFTWINDOW__:s,__UNI_FEATURE_RIGHTWINDOW__:o,__UNI_FEATURE_RESPONSIVE__:!1,__UNI_FEATURE_NAVIGATIONBAR__:u,__UNI_FEATURE_PULL_DOWN_REFRESH__:V1(t),__UNI_FEATURE_NAVIGATIONBAR_BUTTONS__:l,__UNI_FEATURE_NAVIGATIONBAR_SEARCHINPUT__:a,__UNI_FEATURE_NAVIGATIONBAR_TRANSPARENT__:c};Object.entries(f).forEach(([v,E])=>{e[v]=E})}const W1="4.76";function K1(t,e=window){var f,h;const{pagesJson:r={},manifestJson:n={}}=t,{easycom:i={}}=r,{appid:s="",name:o="",versionCode:u="",versionName:l=""}=n,a=r.globalStyle,c=((f=n.h5)==null?void 0:f.router)||{};e.__uniConfig={easycom:i,globalStyle:re(V({},L1(a)),{navigationBar:wa(a),isNVue:!1}),compilerVersion:W1,appId:s,appName:o,appVersion:l,appVersionCode:String(u),async:V({loading:"AsyncLoading",error:"AsyncError",delay:200,timeout:6e4,suspensible:!0},((h=n.h5)==null?void 0:h.async)||{}),debug:!1,networkTimeout:V({request:6e4,connectSocket:6e4,uploadFile:6e4,downloadFile:6e4},n.networkTimeout||{}),sdkConfigs:{},nvue:{"flex-direction":"column"},locale:"",fallbackLocale:"",locales:{},router:V({mode:"hash",base:"/",assets:"assets",routerBase:c.base||"/"},c),darkmode:!1,themeConfig:{},tabBar:r.tabBar?V({position:"bottom",color:"#7A7E83",selectedColor:"#3cc51f",borderStyle:"black",blurEffect:"none",fontSize:"10px",iconWidth:"24px",spacing:"3px",height:"50px",backgroundColor:"#ffffff",selectedIndex:0,shown:!0},r.tabBar):void 0}}function J1(t,e=window){const{UniServiceJSBridge:r,UniViewJSBridge:n,getApp:i,uni:s,getCurrentPages:o,upx2px:u,setupPage:l}=t;e.UniServiceJSBridge=r,e.UniViewJSBridge=n,e.getApp=i,e.uni=s,e.wx=s,e.getCurrentPages=o,e.upx2px=u,e.__setupPage=a=>l(a)}function G1(t,e,r){const{openBlock:n,createBlock:i,withCtx:s,createVNode:o}=t,{PageComponent:u,setupPage:l,getApp:a}=e;return{mpType:"page",setup(){return U(this,null,function*(){var g,v;const f=((v=(g=a())==null?void 0:g.$route)==null?void 0:v.query)||{},{loader:h,component:p}=r,d=h?yield h(r):p||{};return()=>(n(),i(u,null,{page:s(()=>[o(l(d),Object.assign({},f,{ref:"page"}),null,512)]),_:1}))})}}}function Y1(t,e,r){var p;const{path:n,style:i={},meta:s={},home:o,id:u}=e,l=((p=t.tabBar)==null?void 0:p.list)||[],a=l.findIndex(d=>{var g;return d.pagePath===n||((g=d.pagePath)==null?void 0:g.endsWith(u))}),c=l[a],f=!!c,h=r===0;return V({isTabBar:f,tabBarIndex:a,isQuit:o!=null?o:h,isEntry:o!=null?o:h,navigationBar:V({type:"default"},wa(i)),isNVue:!1,route:c?c.pagePath:n},s)}function Z1(t,e,r,n,i=window){const s=r.map((o,u)=>{const l=Y1(n,o,u),a=G1(t,e,o),{path:c}=o;return{path:c,alias:c,meta:l,component:{render(){return t.h(t.Suspense,[t.h(a)])}}}});i.__uniRoutes=s,i.__uniLayout={}}function Q1(t,e,r=window){yr(r,String(t),e)}function X1(t,e){e&&["View","ScrollView","Swiper","MovableArea","MovableView","CoverView","CoverImage","Icon","Text","RichText","Progress","Button","CheckboxGroup","Checkbox","Editor","Form","Input","Label","Picker","PickerView","RadioGroup","Radio","Slider","Switch","Textarea","Navigator","Image","Video","Map","Canvas","WebView","PickerViewColumn","ResizeSensor","SwiperItem"].forEach(r=>{const n=e[r];t.component(r,n)})}function e0(t){const e=F1(t),{Vue:r,App:n,UniH5:i,routes:s=[],pagesJson:o={},manifestJson:u={},window:l,css:a=""}=e;if(!i)return r.createApp(n);const{plugin:c,setupApp:f}=i;z1(e,l),K1(e,l),J1(i,l),Z1(r,i,s,o,l),Q1(u.appid||Date.now(),a,l);const h=r.createApp(f(n));return h.use(X1,i),h.use(c),h}function t0(t,e){const r={};return Object.entries(t).forEach(([n,i])=>{S1.includes(n)&&i&&(r[n]=e(i))}),r}function ms(t,e){return()=>U(null,null,function*(){const r=yield t.getDsl(e);if(r){const{renderer:n}=t.createDslRenderer(r);return n}return null})}function r0(n){return U(this,arguments,function*(t,e=!1,r=vs){var u,l,a;const i=((u=t.project)==null?void 0:u.pages)||[],s=[];for(const c of i){const f=((l=t.project)==null?void 0:l.homepage)===c.id;s.push({id:c.id,path:`${r}/${c.id}`,loader:ms(t,c.id),style:V({navigationBarTitleText:c.title},c.style),needLogin:c.needLogin,home:f})}const o=s.find(c=>!!c.home)||s[0];if(o){const c=r===vs?"/":r;s.unshift(re(V({},o),{path:c}))}if(e){const c=((a=t.project)==null?void 0:a.blocks)||[];for(const f of c)s.push({id:f.id,path:`${r}/${f.id}`,loader:ms(t,f.id),style:{navigationStyle:"custom"}})}return s})}function n0(){var t;return(t=window.uni)!=null&&t.showLoading&&window.uni.showLoading({title:"加载中...",mask:!0}),{close:()=>{var e;(e=window.uni)!=null&&e.hideLoading&&window.uni.hideLoading()}}}function Ea(t,e="",r="warning"){return U(this,null,function*(){var n;return(n=window.uni)!=null&&n.showModal?window.uni.showModal({title:e,content:t,showCancel:!1}):(window.alert(t),!0)})}function i0(t=X.Runtime){let e={};t===X.Runtime?e=Object.assign({}):e=Object.assign({});let r={};for(const[n,i]of Object.entries(e))r[n]=()=>Promise.resolve(i);return r}const s0=Sy({loading:n0,notify:Ea}),Sa=new E1(_1(Ea)),o0=i0(),{provider:a0,onReady:u0}=g1({nodeEnv:"production",mode:X.Runtime,modules:o0,materialPath:"../",adapter:s0,service:Sa,dependencies:{Vue:()=>kn(()=>import("./@dcloudio-uni-h5-vue-BmOkhsCk.js").then(t=>t.W),__vite__mapDeps([0,1,2]),import.meta.url),VueRouter:()=>kn(()=>import("./vue-router-BaL-Hp_b.js"),__vite__mapDeps([3,0,1,2]),import.meta.url)}}),c0=t=>U(null,null,function*(){const e=(yield Sa.getExtension().catch(()=>null))||{},r=top||window,n=yield m1(e.enhance,r.location.pathname),{Vue:i,UniH5:s}=window,o=t.project;if(!o)return;const u=o.uniConfig||{},l=t0(u,d=>pe(d,window,!1,!0)),{manifestJson:a,pagesJson:c,css:f}=u,h=yield r0(t,!0),p=e0({Vue:i,App:l,UniH5:s,routes:h,css:f,manifestJson:a,pagesJson:c});p.use(t),n&&p.use(n,t),p.mount(document.body)});u0(()=>c0(a0));
|