@vtj/pro 0.19.21 → 0.19.23-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (35) hide show
  1. package/dist/@vtj/materials/assets/antdv/index.umd.js +2 -2
  2. package/dist/@vtj/materials/assets/charts/index.umd.js +2 -2
  3. package/dist/@vtj/materials/assets/element/index.umd.js +2 -2
  4. package/dist/@vtj/materials/assets/icons/index.umd.js +2 -2
  5. package/dist/@vtj/materials/assets/ui/index.umd.js +2 -2
  6. package/dist/@vtj/materials/assets/uni-h5/index.umd.js +2 -2
  7. package/dist/@vtj/materials/assets/uni-ui/index.umd.js +2 -2
  8. package/dist/@vtj/materials/assets/vant/index.umd.js +2 -2
  9. package/dist/@vtj/materials/deps/@vtj/charts/index.umd.js +2 -2
  10. package/dist/@vtj/materials/deps/@vtj/icons/index.umd.js +2 -2
  11. package/dist/@vtj/materials/deps/@vtj/ui/index.umd.js +2 -2
  12. package/dist/@vtj/materials/deps/@vtj/utils/index.umd.js +5 -5
  13. package/dist/assets/Editor-BnUBHIZl-Dr3Qu1kT.js +519 -0
  14. package/dist/assets/auth-Bo_N7eA2.js +1 -0
  15. package/dist/assets/highlight.js-C16ljuUj.js +3 -0
  16. package/dist/assets/index-8EUoGcWl.js +1 -0
  17. package/dist/assets/index-D6UXNykV.css +1 -0
  18. package/dist/assets/index-DroqSXNr.js +2 -0
  19. package/dist/assets/{mockjs-Cv4OEO4T.js → mockjs-Dydq3Ur3.js} +1 -1
  20. package/dist/assets/page-C2fP6qlJ.js +2 -0
  21. package/dist/assets/preview-lMQl4yXK.js +2 -0
  22. package/dist/assets/utils-Cs-AW2YU.js +1 -0
  23. package/dist/index.html +3 -3
  24. package/dist/uni/assets/{index-uzoDFbXN.js → index-IrRBItNQ.js} +31 -31
  25. package/dist/uni/index.html +1 -1
  26. package/package.json +11 -11
  27. package/dist/assets/Editor-CMssulHs-47dJaWQB.js +0 -521
  28. package/dist/assets/auth-CEZKmAty.js +0 -1
  29. package/dist/assets/index-BASVUOTv.css +0 -1
  30. package/dist/assets/index-CbFyA5Gl.js +0 -1
  31. package/dist/assets/index-DR4NhQN1.js +0 -2
  32. package/dist/assets/page-Cx8WM_uy.js +0 -2
  33. package/dist/assets/preview-RBWsxVsv.js +0 -2
  34. package/dist/assets/utils-BlA3LPFN.js +0 -1
  35. /package/dist/assets/{Editor-CMssulHs-BiBG3Ti1.css → Editor-BnUBHIZl-BiBG3Ti1.css} +0 -0
@@ -1,83 +1,83 @@
1
1
  const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./@dcloudio-uni-h5-vue-ZHZeNOoM.js","./vue-DefuvV9N.js","./@dcloudio-uni-shared-BN07FyFa.js","./vue-router-cjYR4veV.js"])))=>i.map(i=>d[i]);
2
- var tc=Object.defineProperty,rc=Object.defineProperties;var nc=Object.getOwnPropertyDescriptors;var nr=Object.getOwnPropertySymbols;var pi=Object.prototype.hasOwnProperty,fi=Object.prototype.propertyIsEnumerable;var jr=(t,e,r)=>e in t?tc(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,F=(t,e)=>{for(var r in e||(e={}))pi.call(e,r)&&jr(t,r,e[r]);if(nr)for(var r of nr(e))fi.call(e,r)&&jr(t,r,e[r]);return t},ue=(t,e)=>rc(t,nc(e));var di=(t,e)=>{var r={};for(var n in t)pi.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(t!=null&&nr)for(var n of nr(t))e.indexOf(n)<0&&fi.call(t,n)&&(r[n]=t[n]);return r};var H=(t,e,r)=>jr(t,typeof e!="symbol"?e+"":e,r);var M=(t,e,r)=>new Promise((n,i)=>{var s=u=>{try{o(r.next(u))}catch(c){i(c)}},a=u=>{try{o(r.throw(u))}catch(c){i(c)}},o=u=>u.done?n(u.value):Promise.resolve(u.value).then(s,a);o((r=r.apply(t,e)).next())});import{a as gi}from"./axios-Cc-15rbk.js";import{g as mi,d as Us,h as pn,s as vi,f as ic,w as sc,y as Tr,i as ac,j as yi}from"./@dcloudio-uni-h5-vue-ZHZeNOoM.js";import{useRoute as oc}from"./vue-router-cjYR4veV.js";import"./vue-DefuvV9N.js";import"./@dcloudio-uni-shared-BN07FyFa.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 a of s.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&n(a)}).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 cc="modulepreload",uc=function(t,e){return new URL(t,e).href},bi={},_i=function(e,r,n){let i=Promise.resolve();if(r&&r.length>0){let a=function(l){return Promise.all(l.map(h=>Promise.resolve(h).then(p=>({status:"fulfilled",value:p}),p=>({status:"rejected",reason:p}))))};const o=document.getElementsByTagName("link"),u=document.querySelector("meta[property=csp-nonce]"),c=(u==null?void 0:u.nonce)||(u==null?void 0:u.getAttribute("nonce"));i=a(r.map(l=>{if(l=uc(l,n),l in bi)return;bi[l]=!0;const h=l.endsWith(".css"),p=h?'[rel="stylesheet"]':"";if(!!n)for(let m=o.length-1;m>=0;m--){const v=o[m];if(v.href===l&&(!h||v.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${l}"]${p}`))return;const d=document.createElement("link");if(d.rel=h?"stylesheet":cc,h||(d.as="script"),d.crossOrigin="",d.href=l,c&&d.setAttribute("nonce",c),document.head.appendChild(d),h)return new Promise((m,v)=>{d.addEventListener("load",m),d.addEventListener("error",()=>v(new Error(`Unable to preload CSS for ${l}`)))})}))}function s(a){const o=new Event("vite:preloadError",{cancelable:!0});if(o.payload=a,window.dispatchEvent(o),!o.defaultPrevented)throw a}return i.then(a=>{for(const o of a||[])o.status==="rejected"&&s(o.reason);return e().catch(s)})};var lc={ENV_TYPE:"live",NODE_ENV:"production"},hc=typeof global=="object"&&global&&global.Object===Object&&global;const Hs=hc;var pc=typeof self=="object"&&self&&self.Object===Object&&self,fc=Hs||pc||Function("return this")();const Be=fc;var dc=Be.Symbol;const Ue=dc;var qs=Object.prototype,gc=qs.hasOwnProperty,mc=qs.toString,$t=Ue?Ue.toStringTag:void 0;function vc(t){var e=gc.call(t,$t),r=t[$t];try{t[$t]=void 0;var n=!0}catch(s){}var i=mc.call(t);return n&&(e?t[$t]=r:delete t[$t]),i}var yc=Object.prototype,bc=yc.toString;function _c(t){return bc.call(t)}var xc="[object Null]",wc="[object Undefined]",xi=Ue?Ue.toStringTag:void 0;function Ke(t){return t==null?t===void 0?wc:xc:xi&&xi in Object(t)?vc(t):_c(t)}function Ie(t){return t!=null&&typeof t=="object"}var Sc="[object Symbol]";function zs(t){return typeof t=="symbol"||Ie(t)&&Ke(t)==Sc}function Ws(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 Ec=Array.isArray;const Ge=Ec;var wi=Ue?Ue.prototype:void 0,Si=wi?wi.toString:void 0;function Gs(t){if(typeof t=="string")return t;if(Ge(t))return Ws(t,Gs)+"";if(zs(t))return Si?Si.call(t):"";var e=t+"";return e=="0"&&1/t==-1/0?"-0":e}var Tc=/\s/;function Cc(t){for(var e=t.length;e--&&Tc.test(t.charAt(e)););return e}var Ac=/^\s+/;function Ic(t){return t&&t.slice(0,Cc(t)+1).replace(Ac,"")}function Re(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var Ei=NaN,Rc=/^[-+]0x[0-9a-f]+$/i,kc=/^0b[01]+$/i,Oc=/^0o[0-7]+$/i,Pc=parseInt;function Ti(t){if(typeof t=="number")return t;if(zs(t))return Ei;if(Re(t)){var e=typeof t.valueOf=="function"?t.valueOf():t;t=Re(e)?e+"":e}if(typeof t!="string")return t===0?t:+t;t=Ic(t);var r=kc.test(t);return r||Oc.test(t)?Pc(t.slice(2),r?2:8):Rc.test(t)?Ei:+t}function Ks(t){return t}var Dc="[object AsyncFunction]",$c="[object Function]",Nc="[object GeneratorFunction]",Bc="[object Proxy]";function ge(t){if(!Re(t))return!1;var e=Ke(t);return e==$c||e==Nc||e==Dc||e==Bc}var Lc=Be["__core-js_shared__"];const Mr=Lc;var Ci=(function(){var t=/[^.]+$/.exec(Mr&&Mr.keys&&Mr.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""})();function Vc(t){return!!Ci&&Ci in t}var jc=Function.prototype,Mc=jc.toString;function mt(t){if(t!=null){try{return Mc.call(t)}catch(e){}try{return t+""}catch(e){}}return""}var Fc=/[\\^$.*+?()[\]{}|]/g,Uc=/^\[object .+?Constructor\]$/,Hc=Function.prototype,qc=Object.prototype,zc=Hc.toString,Wc=qc.hasOwnProperty,Gc=RegExp("^"+zc.call(Wc).replace(Fc,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Kc(t){if(!Re(t)||Vc(t))return!1;var e=ge(t)?Gc:Uc;return e.test(mt(t))}function Jc(t,e){return t==null?void 0:t[e]}function vt(t,e){var r=Jc(t,e);return Kc(r)?r:void 0}var Yc=vt(Be,"WeakMap");const fn=Yc;var Ai=Object.create,Zc=(function(){function t(){}return function(e){if(!Re(e))return{};if(Ai)return Ai(e);t.prototype=e;var r=new t;return t.prototype=void 0,r}})();const Qc=Zc;function Js(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 Xc(t,e){var r=-1,n=t.length;for(e||(e=Array(n));++r<n;)e[r]=t[r];return e}var eu=800,tu=16,ru=Date.now;function nu(t){var e=0,r=0;return function(){var n=ru(),i=tu-(n-r);if(r=n,i>0){if(++e>=eu)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}function iu(t){return function(){return t}}var su=(function(){try{var t=vt(Object,"defineProperty");return t({},"",{}),t}catch(e){}})();const br=su;var au=br?function(t,e){return br(t,"toString",{configurable:!0,enumerable:!1,value:iu(e),writable:!0})}:Ks;const ou=au;var cu=nu(ou);const uu=cu;function lu(t,e){for(var r=-1,n=t==null?0:t.length;++r<n&&e(t[r],r,t)!==!1;);return t}var hu=9007199254740991,pu=/^(?:0|[1-9]\d*)$/;function Ys(t,e){var r=typeof t;return e=e==null?hu:e,!!e&&(r=="number"||r!="symbol"&&pu.test(t))&&t>-1&&t%1==0&&t<e}function Mn(t,e,r){e=="__proto__"&&br?br(t,e,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[e]=r}function Ot(t,e){return t===e||t!==t&&e!==e}var fu=Object.prototype,du=fu.hasOwnProperty;function Zs(t,e,r){var n=t[e];(!(du.call(t,e)&&Ot(n,r))||r===void 0&&!(e in t))&&Mn(t,e,r)}function Qs(t,e,r,n){var i=!r;r||(r={});for(var s=-1,a=e.length;++s<a;){var o=e[s],u=n?n(r[o],t[o],o,r,t):void 0;u===void 0&&(u=t[o]),i?Mn(r,o,u):Zs(r,o,u)}return r}var Ii=Math.max;function gu(t,e,r){return e=Ii(e===void 0?t.length-1:e,0),function(){for(var n=arguments,i=-1,s=Ii(n.length-e,0),a=Array(s);++i<s;)a[i]=n[e+i];i=-1;for(var o=Array(e+1);++i<e;)o[i]=n[i];return o[e]=r(a),Js(t,this,o)}}function Xs(t,e){return uu(gu(t,e,Ks),t+"")}var mu=9007199254740991;function ea(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=mu}function Cr(t){return t!=null&&ea(t.length)&&!ge(t)}function vu(t,e,r){if(!Re(r))return!1;var n=typeof e;return(n=="number"?Cr(r)&&Ys(e,r.length):n=="string"&&e in r)?Ot(r[e],t):!1}function ta(t){return Xs(function(e,r){var n=-1,i=r.length,s=i>1?r[i-1]:void 0,a=i>2?r[2]:void 0;for(s=t.length>3&&typeof s=="function"?(i--,s):void 0,a&&vu(r[0],r[1],a)&&(s=i<3?void 0:s,i=1),e=Object(e);++n<i;){var o=r[n];o&&t(e,o,n,s)}return e})}var yu=Object.prototype;function Fn(t){var e=t&&t.constructor,r=typeof e=="function"&&e.prototype||yu;return t===r}function bu(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}var _u="[object Arguments]";function Ri(t){return Ie(t)&&Ke(t)==_u}var ra=Object.prototype,xu=ra.hasOwnProperty,wu=ra.propertyIsEnumerable,Su=Ri((function(){return arguments})())?Ri:function(t){return Ie(t)&&xu.call(t,"callee")&&!wu.call(t,"callee")};const dn=Su;function Eu(){return!1}var na=typeof exports=="object"&&exports&&!exports.nodeType&&exports,ki=na&&typeof module=="object"&&module&&!module.nodeType&&module,Tu=ki&&ki.exports===na,Oi=Tu?Be.Buffer:void 0,Cu=Oi?Oi.isBuffer:void 0,Au=Cu||Eu;const Ht=Au;var Iu="[object Arguments]",Ru="[object Array]",ku="[object Boolean]",Ou="[object Date]",Pu="[object Error]",Du="[object Function]",$u="[object Map]",Nu="[object Number]",Bu="[object Object]",Lu="[object RegExp]",Vu="[object Set]",ju="[object String]",Mu="[object WeakMap]",Fu="[object ArrayBuffer]",Uu="[object DataView]",Hu="[object Float32Array]",qu="[object Float64Array]",zu="[object Int8Array]",Wu="[object Int16Array]",Gu="[object Int32Array]",Ku="[object Uint8Array]",Ju="[object Uint8ClampedArray]",Yu="[object Uint16Array]",Zu="[object Uint32Array]",re={};re[Hu]=re[qu]=re[zu]=re[Wu]=re[Gu]=re[Ku]=re[Ju]=re[Yu]=re[Zu]=!0;re[Iu]=re[Ru]=re[Fu]=re[ku]=re[Uu]=re[Ou]=re[Pu]=re[Du]=re[$u]=re[Nu]=re[Bu]=re[Lu]=re[Vu]=re[ju]=re[Mu]=!1;function Qu(t){return Ie(t)&&ea(t.length)&&!!re[Ke(t)]}function Un(t){return function(e){return t(e)}}var ia=typeof exports=="object"&&exports&&!exports.nodeType&&exports,jt=ia&&typeof module=="object"&&module&&!module.nodeType&&module,Xu=jt&&jt.exports===ia,Fr=Xu&&Hs.process,el=(function(){try{var t=jt&&jt.require&&jt.require("util").types;return t||Fr&&Fr.binding&&Fr.binding("util")}catch(e){}})();const He=el;var Pi=He&&He.isTypedArray,tl=Pi?Un(Pi):Qu;const Hn=tl;var rl=Object.prototype,nl=rl.hasOwnProperty;function sa(t,e){var r=Ge(t),n=!r&&dn(t),i=!r&&!n&&Ht(t),s=!r&&!n&&!i&&Hn(t),a=r||n||i||s,o=a?bu(t.length,String):[],u=o.length;for(var c in t)(e||nl.call(t,c))&&!(a&&(c=="length"||i&&(c=="offset"||c=="parent")||s&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||Ys(c,u)))&&o.push(c);return o}function aa(t,e){return function(r){return t(e(r))}}var il=aa(Object.keys,Object);const sl=il;var al=Object.prototype,ol=al.hasOwnProperty;function cl(t){if(!Fn(t))return sl(t);var e=[];for(var r in Object(t))ol.call(t,r)&&r!="constructor"&&e.push(r);return e}function oa(t){return Cr(t)?sa(t):cl(t)}function ul(t){var e=[];if(t!=null)for(var r in Object(t))e.push(r);return e}var ll=Object.prototype,hl=ll.hasOwnProperty;function pl(t){if(!Re(t))return ul(t);var e=Fn(t),r=[];for(var n in t)n=="constructor"&&(e||!hl.call(t,n))||r.push(n);return r}function qn(t){return Cr(t)?sa(t,!0):pl(t)}var fl=ta(function(t,e,r,n){Qs(e,qn(e),t,n)});const Di=fl;var dl=vt(Object,"create");const qt=dl;function gl(){this.__data__=qt?qt(null):{},this.size=0}function ml(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var vl="__lodash_hash_undefined__",yl=Object.prototype,bl=yl.hasOwnProperty;function _l(t){var e=this.__data__;if(qt){var r=e[t];return r===vl?void 0:r}return bl.call(e,t)?e[t]:void 0}var xl=Object.prototype,wl=xl.hasOwnProperty;function Sl(t){var e=this.__data__;return qt?e[t]!==void 0:wl.call(e,t)}var El="__lodash_hash_undefined__";function Tl(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=qt&&e===void 0?El:e,this}function gt(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])}}gt.prototype.clear=gl;gt.prototype.delete=ml;gt.prototype.get=_l;gt.prototype.has=Sl;gt.prototype.set=Tl;function Cl(){this.__data__=[],this.size=0}function Ar(t,e){for(var r=t.length;r--;)if(Ot(t[r][0],e))return r;return-1}var Al=Array.prototype,Il=Al.splice;function Rl(t){var e=this.__data__,r=Ar(e,t);if(r<0)return!1;var n=e.length-1;return r==n?e.pop():Il.call(e,r,1),--this.size,!0}function kl(t){var e=this.__data__,r=Ar(e,t);return r<0?void 0:e[r][1]}function Ol(t){return Ar(this.__data__,t)>-1}function Pl(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 Je(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}Je.prototype.clear=Cl;Je.prototype.delete=Rl;Je.prototype.get=kl;Je.prototype.has=Ol;Je.prototype.set=Pl;var Dl=vt(Be,"Map");const zt=Dl;function $l(){this.size=0,this.__data__={hash:new gt,map:new(zt||Je),string:new gt}}function Nl(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}function Ir(t,e){var r=t.__data__;return Nl(e)?r[typeof e=="string"?"string":"hash"]:r.map}function Bl(t){var e=Ir(this,t).delete(t);return this.size-=e?1:0,e}function Ll(t){return Ir(this,t).get(t)}function Vl(t){return Ir(this,t).has(t)}function jl(t,e){var r=Ir(this,t),n=r.size;return r.set(t,e),this.size+=r.size==n?0:1,this}function Ye(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])}}Ye.prototype.clear=$l;Ye.prototype.delete=Bl;Ye.prototype.get=Ll;Ye.prototype.has=Vl;Ye.prototype.set=jl;var Ml="Expected a function";function zn(t,e){if(typeof t!="function"||e!=null&&typeof e!="function")throw new TypeError(Ml);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 a=t.apply(this,n);return r.cache=s.set(i,a)||s,a};return r.cache=new(zn.Cache||Ye),r}zn.Cache=Ye;var Fl=500;function Ul(t){var e=zn(t,function(n){return r.size===Fl&&r.clear(),n}),r=e.cache;return e}var Hl=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ql=/\\(\\)?/g;Ul(function(t){var e=[];return t.charCodeAt(0)===46&&e.push(""),t.replace(Hl,function(r,n,i,s){e.push(i?s.replace(ql,"$1"):n||r)}),e});function Pt(t){return t==null?"":Gs(t)}function zl(t,e){for(var r=-1,n=e.length,i=t.length;++r<n;)t[i+r]=e[r];return t}var Wl=aa(Object.getPrototypeOf,Object);const ca=Wl;var Gl="[object Object]",Kl=Function.prototype,Jl=Object.prototype,ua=Kl.toString,Yl=Jl.hasOwnProperty,Zl=ua.call(Object);function la(t){if(!Ie(t)||Ke(t)!=Gl)return!1;var e=ca(t);if(e===null)return!0;var r=Yl.call(e,"constructor")&&e.constructor;return typeof r=="function"&&r instanceof r&&ua.call(r)==Zl}var Ql="[object DOMException]",Xl="[object Error]";function ha(t){if(!Ie(t))return!1;var e=Ke(t);return e==Xl||e==Ql||typeof t.message=="string"&&typeof t.name=="string"&&!la(t)}var eh=Xs(function(t,e){try{return Js(t,void 0,e)}catch(r){return ha(r)?r:new Error(r)}});const th=eh;function rh(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 nh(t,e,r){var n=t.length;return r=r===void 0?n:r,!e&&r>=n?t:rh(t,e,r)}var ih="\\ud800-\\udfff",sh="\\u0300-\\u036f",ah="\\ufe20-\\ufe2f",oh="\\u20d0-\\u20ff",ch=sh+ah+oh,uh="\\ufe0e\\ufe0f",lh="\\u200d",hh=RegExp("["+lh+ih+ch+uh+"]");function pa(t){return hh.test(t)}function ph(t){return t.split("")}var fa="\\ud800-\\udfff",fh="\\u0300-\\u036f",dh="\\ufe20-\\ufe2f",gh="\\u20d0-\\u20ff",mh=fh+dh+gh,vh="\\ufe0e\\ufe0f",yh="["+fa+"]",gn="["+mh+"]",mn="\\ud83c[\\udffb-\\udfff]",bh="(?:"+gn+"|"+mn+")",da="[^"+fa+"]",ga="(?:\\ud83c[\\udde6-\\uddff]){2}",ma="[\\ud800-\\udbff][\\udc00-\\udfff]",_h="\\u200d",va=bh+"?",ya="["+vh+"]?",xh="(?:"+_h+"(?:"+[da,ga,ma].join("|")+")"+ya+va+")*",wh=ya+va+xh,Sh="(?:"+[da+gn+"?",gn,ga,ma,yh].join("|")+")",Eh=RegExp(mn+"(?="+mn+")|"+Sh+wh,"g");function Th(t){return t.match(Eh)||[]}function Ch(t){return pa(t)?Th(t):ph(t)}function Ah(t){return function(e){e=Pt(e);var r=pa(e)?Ch(e):void 0,n=r?r[0]:e.charAt(0),i=r?nh(r,1).join(""):e.slice(1);return n[t]()+i}}var Ih=Ah("toUpperCase");const ba=Ih;function Rh(t){return ba(Pt(t).toLowerCase())}function kh(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 _a(t){return function(e){return t==null?void 0:t[e]}}var Oh={À:"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"},Ph=_a(Oh);const Dh=Ph;var $h=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Nh="\\u0300-\\u036f",Bh="\\ufe20-\\ufe2f",Lh="\\u20d0-\\u20ff",Vh=Nh+Bh+Lh,jh="["+Vh+"]",Mh=RegExp(jh,"g");function Fh(t){return t=Pt(t),t&&t.replace($h,Dh).replace(Mh,"")}var Uh=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function Hh(t){return t.match(Uh)||[]}var qh=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function zh(t){return qh.test(t)}var xa="\\ud800-\\udfff",Wh="\\u0300-\\u036f",Gh="\\ufe20-\\ufe2f",Kh="\\u20d0-\\u20ff",Jh=Wh+Gh+Kh,wa="\\u2700-\\u27bf",Sa="a-z\\xdf-\\xf6\\xf8-\\xff",Yh="\\xac\\xb1\\xd7\\xf7",Zh="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Qh="\\u2000-\\u206f",Xh=" \\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",Ea="A-Z\\xc0-\\xd6\\xd8-\\xde",ep="\\ufe0e\\ufe0f",Ta=Yh+Zh+Qh+Xh,Ca="['’]",$i="["+Ta+"]",tp="["+Jh+"]",Aa="\\d+",rp="["+wa+"]",Ia="["+Sa+"]",Ra="[^"+xa+Ta+Aa+wa+Sa+Ea+"]",np="\\ud83c[\\udffb-\\udfff]",ip="(?:"+tp+"|"+np+")",sp="[^"+xa+"]",ka="(?:\\ud83c[\\udde6-\\uddff]){2}",Oa="[\\ud800-\\udbff][\\udc00-\\udfff]",St="["+Ea+"]",ap="\\u200d",Ni="(?:"+Ia+"|"+Ra+")",op="(?:"+St+"|"+Ra+")",Bi="(?:"+Ca+"(?:d|ll|m|re|s|t|ve))?",Li="(?:"+Ca+"(?:D|LL|M|RE|S|T|VE))?",Pa=ip+"?",Da="["+ep+"]?",cp="(?:"+ap+"(?:"+[sp,ka,Oa].join("|")+")"+Da+Pa+")*",up="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",lp="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",hp=Da+Pa+cp,pp="(?:"+[rp,ka,Oa].join("|")+")"+hp,fp=RegExp([St+"?"+Ia+"+"+Bi+"(?="+[$i,St,"$"].join("|")+")",op+"+"+Li+"(?="+[$i,St+Ni,"$"].join("|")+")",St+"?"+Ni+"+"+Bi,St+"+"+Li,lp,up,Aa,pp].join("|"),"g");function dp(t){return t.match(fp)||[]}function gp(t,e,r){return t=Pt(t),e=e,e===void 0?zh(t)?dp(t):Hh(t):t.match(e)||[]}var mp="['’]",vp=RegExp(mp,"g");function yp(t){return function(e){return kh(gp(Fh(e).replace(vp,"")),t,"")}}var bp=yp(function(t,e,r){return e=e.toLowerCase(),t+(r?Rh(e):e)});const je=bp;function _p(){this.__data__=new Je,this.size=0}function xp(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r}function wp(t){return this.__data__.get(t)}function Sp(t){return this.__data__.has(t)}var Ep=200;function Tp(t,e){var r=this.__data__;if(r instanceof Je){var n=r.__data__;if(!zt||n.length<Ep-1)return n.push([t,e]),this.size=++r.size,this;r=this.__data__=new Ye(n)}return r.set(t,e),this.size=r.size,this}function Me(t){var e=this.__data__=new Je(t);this.size=e.size}Me.prototype.clear=_p;Me.prototype.delete=xp;Me.prototype.get=wp;Me.prototype.has=Sp;Me.prototype.set=Tp;var $a=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Vi=$a&&typeof module=="object"&&module&&!module.nodeType&&module,Cp=Vi&&Vi.exports===$a,ji=Cp?Be.Buffer:void 0,Mi=ji?ji.allocUnsafe:void 0;function Na(t,e){if(e)return t.slice();var r=t.length,n=Mi?Mi(r):new t.constructor(r);return t.copy(n),n}function Ap(t,e){for(var r=-1,n=t==null?0:t.length,i=0,s=[];++r<n;){var a=t[r];e(a,r,t)&&(s[i++]=a)}return s}function Ip(){return[]}var Rp=Object.prototype,kp=Rp.propertyIsEnumerable,Fi=Object.getOwnPropertySymbols,Op=Fi?function(t){return t==null?[]:(t=Object(t),Ap(Fi(t),function(e){return kp.call(t,e)}))}:Ip;const Pp=Op;function Dp(t,e,r){var n=e(t);return Ge(t)?n:zl(n,r(t))}function vn(t){return Dp(t,oa,Pp)}var $p=vt(Be,"DataView");const yn=$p;var Np=vt(Be,"Promise");const bn=Np;var Bp=vt(Be,"Set");const _n=Bp;var Ui="[object Map]",Lp="[object Object]",Hi="[object Promise]",qi="[object Set]",zi="[object WeakMap]",Wi="[object DataView]",Vp=mt(yn),jp=mt(zt),Mp=mt(bn),Fp=mt(_n),Up=mt(fn),pt=Ke;(yn&&pt(new yn(new ArrayBuffer(1)))!=Wi||zt&&pt(new zt)!=Ui||bn&&pt(bn.resolve())!=Hi||_n&&pt(new _n)!=qi||fn&&pt(new fn)!=zi)&&(pt=function(t){var e=Ke(t),r=e==Lp?t.constructor:void 0,n=r?mt(r):"";if(n)switch(n){case Vp:return Wi;case jp:return Ui;case Mp:return Hi;case Fp:return qi;case Up:return zi}return e});const Wt=pt;var Hp=Object.prototype,qp=Hp.hasOwnProperty;function zp(t){var e=t.length,r=new t.constructor(e);return e&&typeof t[0]=="string"&&qp.call(t,"index")&&(r.index=t.index,r.input=t.input),r}var Wp=Be.Uint8Array;const _r=Wp;function Wn(t){var e=new t.constructor(t.byteLength);return new _r(e).set(new _r(t)),e}function Gp(t,e){var r=Wn(t.buffer);return new t.constructor(r,t.byteOffset,t.byteLength)}var Kp=/\w*$/;function Jp(t){var e=new t.constructor(t.source,Kp.exec(t));return e.lastIndex=t.lastIndex,e}var Gi=Ue?Ue.prototype:void 0,Ki=Gi?Gi.valueOf:void 0;function Yp(t){return Ki?Object(Ki.call(t)):{}}function Ba(t,e){var r=e?Wn(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length)}var Zp="[object Boolean]",Qp="[object Date]",Xp="[object Map]",ef="[object Number]",tf="[object RegExp]",rf="[object Set]",nf="[object String]",sf="[object Symbol]",af="[object ArrayBuffer]",of="[object DataView]",cf="[object Float32Array]",uf="[object Float64Array]",lf="[object Int8Array]",hf="[object Int16Array]",pf="[object Int32Array]",ff="[object Uint8Array]",df="[object Uint8ClampedArray]",gf="[object Uint16Array]",mf="[object Uint32Array]";function vf(t,e,r){var n=t.constructor;switch(e){case af:return Wn(t);case Zp:case Qp:return new n(+t);case of:return Gp(t);case cf:case uf:case lf:case hf:case pf:case ff:case df:case gf:case mf:return Ba(t,r);case Xp:return new n;case ef:case nf:return new n(t);case tf:return Jp(t);case rf:return new n;case sf:return Yp(t)}}function La(t){return typeof t.constructor=="function"&&!Fn(t)?Qc(ca(t)):{}}var yf="[object Map]";function bf(t){return Ie(t)&&Wt(t)==yf}var Ji=He&&He.isMap,_f=Ji?Un(Ji):bf;const xf=_f;var wf="[object Set]";function Sf(t){return Ie(t)&&Wt(t)==wf}var Yi=He&&He.isSet,Ef=Yi?Un(Yi):Sf;const Tf=Ef;var Cf=1,Va="[object Arguments]",Af="[object Array]",If="[object Boolean]",Rf="[object Date]",kf="[object Error]",ja="[object Function]",Of="[object GeneratorFunction]",Pf="[object Map]",Df="[object Number]",Ma="[object Object]",$f="[object RegExp]",Nf="[object Set]",Bf="[object String]",Lf="[object Symbol]",Vf="[object WeakMap]",jf="[object ArrayBuffer]",Mf="[object DataView]",Ff="[object Float32Array]",Uf="[object Float64Array]",Hf="[object Int8Array]",qf="[object Int16Array]",zf="[object Int32Array]",Wf="[object Uint8Array]",Gf="[object Uint8ClampedArray]",Kf="[object Uint16Array]",Jf="[object Uint32Array]",ee={};ee[Va]=ee[Af]=ee[jf]=ee[Mf]=ee[If]=ee[Rf]=ee[Ff]=ee[Uf]=ee[Hf]=ee[qf]=ee[zf]=ee[Pf]=ee[Df]=ee[Ma]=ee[$f]=ee[Nf]=ee[Bf]=ee[Lf]=ee[Wf]=ee[Gf]=ee[Kf]=ee[Jf]=!0;ee[kf]=ee[ja]=ee[Vf]=!1;function gr(t,e,r,n,i,s){var a,o=e&Cf;if(a!==void 0)return a;if(!Re(t))return t;var u=Ge(t);if(u)a=zp(t);else{var c=Wt(t),l=c==ja||c==Of;if(Ht(t))return Na(t,o);if(c==Ma||c==Va||l&&!i)a=l?{}:La(t);else{if(!ee[c])return i?t:{};a=vf(t,c,o)}}s||(s=new Me);var h=s.get(t);if(h)return h;s.set(t,a),Tf(t)?t.forEach(function(d){a.add(gr(d,e,r,d,t,s))}):xf(t)&&t.forEach(function(d,m){a.set(m,gr(d,e,r,m,t,s))});var p=vn,f=u?void 0:p(t);return lu(f||t,function(d,m){f&&(m=d,d=t[m]),Zs(a,m,gr(d,e,r,m,t,s))}),a}var Yf=1,Zf=4;function xn(t){return gr(t,Yf|Zf)}var Qf="__lodash_hash_undefined__";function Xf(t){return this.__data__.set(t,Qf),this}function ed(t){return this.__data__.has(t)}function xr(t){var e=-1,r=t==null?0:t.length;for(this.__data__=new Ye;++e<r;)this.add(t[e])}xr.prototype.add=xr.prototype.push=Xf;xr.prototype.has=ed;function td(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 rd(t,e){return t.has(e)}var nd=1,id=2;function Fa(t,e,r,n,i,s){var a=r&nd,o=t.length,u=e.length;if(o!=u&&!(a&&u>o))return!1;var c=s.get(t),l=s.get(e);if(c&&l)return c==e&&l==t;var h=-1,p=!0,f=r&id?new xr:void 0;for(s.set(t,e),s.set(e,t);++h<o;){var d=t[h],m=e[h];if(n)var v=a?n(m,d,h,e,t,s):n(d,m,h,t,e,s);if(v!==void 0){if(v)continue;p=!1;break}if(f){if(!td(e,function(S,b){if(!rd(f,b)&&(d===S||i(d,S,r,n,s)))return f.push(b)})){p=!1;break}}else if(!(d===m||i(d,m,r,n,s))){p=!1;break}}return s.delete(t),s.delete(e),p}function sd(t){var e=-1,r=Array(t.size);return t.forEach(function(n,i){r[++e]=[i,n]}),r}function ad(t){var e=-1,r=Array(t.size);return t.forEach(function(n){r[++e]=n}),r}var od=1,cd=2,ud="[object Boolean]",ld="[object Date]",hd="[object Error]",pd="[object Map]",fd="[object Number]",dd="[object RegExp]",gd="[object Set]",md="[object String]",vd="[object Symbol]",yd="[object ArrayBuffer]",bd="[object DataView]",Zi=Ue?Ue.prototype:void 0,Ur=Zi?Zi.valueOf:void 0;function _d(t,e,r,n,i,s,a){switch(r){case bd:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case yd:return!(t.byteLength!=e.byteLength||!s(new _r(t),new _r(e)));case ud:case ld:case fd:return Ot(+t,+e);case hd:return t.name==e.name&&t.message==e.message;case dd:case md:return t==e+"";case pd:var o=sd;case gd:var u=n&od;if(o||(o=ad),t.size!=e.size&&!u)return!1;var c=a.get(t);if(c)return c==e;n|=cd,a.set(t,e);var l=Fa(o(t),o(e),n,i,s,a);return a.delete(t),l;case vd:if(Ur)return Ur.call(t)==Ur.call(e)}return!1}var xd=1,wd=Object.prototype,Sd=wd.hasOwnProperty;function Ed(t,e,r,n,i,s){var a=r&xd,o=vn(t),u=o.length,c=vn(e),l=c.length;if(u!=l&&!a)return!1;for(var h=u;h--;){var p=o[h];if(!(a?p in e:Sd.call(e,p)))return!1}var f=s.get(t),d=s.get(e);if(f&&d)return f==e&&d==t;var m=!0;s.set(t,e),s.set(e,t);for(var v=a;++h<u;){p=o[h];var S=t[p],b=e[p];if(n)var _=a?n(b,S,p,e,t,s):n(S,b,p,t,e,s);if(!(_===void 0?S===b||i(S,b,r,n,s):_)){m=!1;break}v||(v=p=="constructor")}if(m&&!v){var w=t.constructor,x=e.constructor;w!=x&&"constructor"in t&&"constructor"in e&&!(typeof w=="function"&&w instanceof w&&typeof x=="function"&&x instanceof x)&&(m=!1)}return s.delete(t),s.delete(e),m}var Td=1,Qi="[object Arguments]",Xi="[object Array]",ir="[object Object]",Cd=Object.prototype,es=Cd.hasOwnProperty;function Ad(t,e,r,n,i,s){var a=Ge(t),o=Ge(e),u=a?Xi:Wt(t),c=o?Xi:Wt(e);u=u==Qi?ir:u,c=c==Qi?ir:c;var l=u==ir,h=c==ir,p=u==c;if(p&&Ht(t)){if(!Ht(e))return!1;a=!0,l=!1}if(p&&!l)return s||(s=new Me),a||Hn(t)?Fa(t,e,r,n,i,s):_d(t,e,u,r,n,i,s);if(!(r&Td)){var f=l&&es.call(t,"__wrapped__"),d=h&&es.call(e,"__wrapped__");if(f||d){var m=f?t.value():t,v=d?e.value():e;return s||(s=new Me),i(m,v,r,n,s)}}return p?(s||(s=new Me),Ed(t,e,r,n,i,s)):!1}function Ua(t,e,r,n,i){return t===e?!0:t==null||e==null||!Ie(t)&&!Ie(e)?t!==t&&e!==e:Ad(t,e,r,n,Ua,i)}function Id(t){return function(e,r,n){for(var i=-1,s=Object(e),a=n(e),o=a.length;o--;){var u=a[++i];if(r(s[u],u,s)===!1)break}return e}}var Rd=Id();const kd=Rd;var Od=function(){return Be.Date.now()};const Hr=Od;var Pd="Expected a function",Dd=Math.max,$d=Math.min;function Gn(t,e,r){var n,i,s,a,o,u,c=0,l=!1,h=!1,p=!0;if(typeof t!="function")throw new TypeError(Pd);e=Ti(e)||0,Re(r)&&(l=!!r.leading,h="maxWait"in r,s=h?Dd(Ti(r.maxWait)||0,e):s,p="trailing"in r?!!r.trailing:p);function f(y){var T=n,I=i;return n=i=void 0,c=y,a=t.apply(I,T),a}function d(y){return c=y,o=setTimeout(S,e),l?f(y):a}function m(y){var T=y-u,I=y-c,V=e-T;return h?$d(V,s-I):V}function v(y){var T=y-u,I=y-c;return u===void 0||T>=e||T<0||h&&I>=s}function S(){var y=Hr();if(v(y))return b(y);o=setTimeout(S,m(y))}function b(y){return o=void 0,p&&n?f(y):(n=i=void 0,a)}function _(){o!==void 0&&clearTimeout(o),c=0,n=u=i=o=void 0}function w(){return o===void 0?a:b(Hr())}function x(){var y=Hr(),T=v(y);if(n=arguments,i=this,u=y,T){if(o===void 0)return d(u);if(h)return clearTimeout(o),o=setTimeout(S,e),f(u)}return o===void 0&&(o=setTimeout(S,e)),a}return x.cancel=_,x.flush=w,x}function wn(t,e,r){(r!==void 0&&!Ot(t[e],r)||r===void 0&&!(e in t))&&Mn(t,e,r)}function Nd(t){return Ie(t)&&Cr(t)}function Sn(t,e){if(!(e==="constructor"&&typeof t[e]=="function")&&e!="__proto__")return t[e]}function Bd(t){return Qs(t,qn(t))}function Ld(t,e,r,n,i,s,a){var o=Sn(t,r),u=Sn(e,r),c=a.get(u);if(c){wn(t,r,c);return}var l=s?s(o,u,r+"",t,e,a):void 0,h=l===void 0;if(h){var p=Ge(u),f=!p&&Ht(u),d=!p&&!f&&Hn(u);l=u,p||f||d?Ge(o)?l=o:Nd(o)?l=Xc(o):f?(h=!1,l=Na(u,!0)):d?(h=!1,l=Ba(u,!0)):l=[]:la(u)||dn(u)?(l=o,dn(o)?l=Bd(o):(!Re(o)||ge(o))&&(l=La(u))):h=!1}h&&(a.set(u,l),i(l,u,n,s,a),a.delete(u)),wn(t,r,l)}function Ha(t,e,r,n,i){t!==e&&kd(e,function(s,a){if(i||(i=new Me),Re(s))Ld(t,e,a,r,Ha,n,i);else{var o=n?n(Sn(t,a),s,a+"",t,e,i):void 0;o===void 0&&(o=s),wn(t,a,o)}},qn)}var Vd={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},jd=_a(Vd);const Md=jd;var qa=/[&<>"']/g,Fd=RegExp(qa.source);function Ud(t){return t=Pt(t),t&&Fd.test(t)?t.replace(qa,Md):t}var Hd="[object String]";function Ze(t){return typeof t=="string"||!Ge(t)&&Ie(t)&&Ke(t)==Hd}function qd(t,e){return Ws(e,function(r){return t[r]})}He&&He.isArrayBuffer;He&&He.isDate;function qr(t,e){return Ua(t,e)}var zd=ta(function(t,e,r){Ha(t,e,r)});const Bt=zd;var za=Object.prototype,Wd=za.hasOwnProperty;function ts(t,e,r,n){return t===void 0||Ot(t,za[r])&&!Wd.call(n,r)?e:t}var Gd={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"};function Kd(t){return"\\"+Gd[t]}var Jd=/<%=([\s\S]+?)%>/g;const Wa=Jd;var Yd=/<%-([\s\S]+?)%>/g;const Zd=Yd;var Qd=/<%([\s\S]+?)%>/g;const Xd=Qd;var eg={escape:Zd,evaluate:Xd,interpolate:Wa,variable:"",imports:{_:{escape:Ud}}};const rs=eg;var tg="Invalid `variable` option passed into `_.template`",rg=/\b__p \+= '';/g,ng=/\b(__p \+=) '' \+/g,ig=/(__e\(.*?\)|\b__t\)) \+\n'';/g,sg=/[()=,{}\[\]\/\s]/,ag=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,sr=/($^)/,og=/['\n\r\u2028\u2029\\]/g,cg=Object.prototype,ns=cg.hasOwnProperty;function ug(t,e,r){var n=rs.imports._.templateSettings||rs;t=Pt(t),e=Di({},e,n,ts);var i=Di({},e.imports,n.imports,ts),s=oa(i),a=qd(i,s),o,u,c=0,l=e.interpolate||sr,h="__p += '",p=RegExp((e.escape||sr).source+"|"+l.source+"|"+(l===Wa?ag:sr).source+"|"+(e.evaluate||sr).source+"|$","g"),f=ns.call(e,"sourceURL")?"//# sourceURL="+(e.sourceURL+"").replace(/\s/g," ")+`
3
- `:"";t.replace(p,function(v,S,b,_,w,x){return b||(b=_),h+=t.slice(c,x).replace(og,Kd),S&&(o=!0,h+=`' +
2
+ var oc=Object.defineProperty,cc=Object.defineProperties;var uc=Object.getOwnPropertyDescriptors;var nr=Object.getOwnPropertySymbols;var vi=Object.prototype.hasOwnProperty,yi=Object.prototype.propertyIsEnumerable;var Vr=(t,e,r)=>e in t?oc(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,F=(t,e)=>{for(var r in e||(e={}))vi.call(e,r)&&Vr(t,r,e[r]);if(nr)for(var r of nr(e))yi.call(e,r)&&Vr(t,r,e[r]);return t},ue=(t,e)=>cc(t,uc(e));var bi=(t,e)=>{var r={};for(var n in t)vi.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(t!=null&&nr)for(var n of nr(t))e.indexOf(n)<0&&yi.call(t,n)&&(r[n]=t[n]);return r};var H=(t,e,r)=>Vr(t,typeof e!="symbol"?e+"":e,r);var M=(t,e,r)=>new Promise((n,i)=>{var s=u=>{try{o(r.next(u))}catch(c){i(c)}},a=u=>{try{o(r.throw(u))}catch(c){i(c)}},o=u=>u.done?n(u.value):Promise.resolve(u.value).then(s,a);o((r=r.apply(t,e)).next())});import{a as _i}from"./axios-Cc-15rbk.js";import{g as xi,d as Gs,h as gn,s as wi,f as lc,w as hc,y as Tr,i as pc,j as Si}from"./@dcloudio-uni-h5-vue-ZHZeNOoM.js";import{useRoute as fc}from"./vue-router-cjYR4veV.js";import"./vue-DefuvV9N.js";import"./@dcloudio-uni-shared-BN07FyFa.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 a of s.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&n(a)}).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 dc="modulepreload",gc=function(t,e){return new URL(t,e).href},Ei={},Ti=function(e,r,n){let i=Promise.resolve();if(r&&r.length>0){let a=function(l){return Promise.all(l.map(h=>Promise.resolve(h).then(p=>({status:"fulfilled",value:p}),p=>({status:"rejected",reason:p}))))};const o=document.getElementsByTagName("link"),u=document.querySelector("meta[property=csp-nonce]"),c=(u==null?void 0:u.nonce)||(u==null?void 0:u.getAttribute("nonce"));i=a(r.map(l=>{if(l=gc(l,n),l in Ei)return;Ei[l]=!0;const h=l.endsWith(".css"),p=h?'[rel="stylesheet"]':"";if(!!n)for(let m=o.length-1;m>=0;m--){const v=o[m];if(v.href===l&&(!h||v.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${l}"]${p}`))return;const d=document.createElement("link");if(d.rel=h?"stylesheet":dc,h||(d.as="script"),d.crossOrigin="",d.href=l,c&&d.setAttribute("nonce",c),document.head.appendChild(d),h)return new Promise((m,v)=>{d.addEventListener("load",m),d.addEventListener("error",()=>v(new Error(`Unable to preload CSS for ${l}`)))})}))}function s(a){const o=new Event("vite:preloadError",{cancelable:!0});if(o.payload=a,window.dispatchEvent(o),!o.defaultPrevented)throw a}return i.then(a=>{for(const o of a||[])o.status==="rejected"&&s(o.reason);return e().catch(s)})};var mc={ENV_TYPE:"live",NODE_ENV:"production"},vc=typeof global=="object"&&global&&global.Object===Object&&global;const Ks=vc;var yc=typeof self=="object"&&self&&self.Object===Object&&self,bc=Ks||yc||Function("return this")();const Be=bc;var _c=Be.Symbol;const Ue=_c;var Js=Object.prototype,xc=Js.hasOwnProperty,wc=Js.toString,Dt=Ue?Ue.toStringTag:void 0;function Sc(t){var e=xc.call(t,Dt),r=t[Dt];try{t[Dt]=void 0;var n=!0}catch(s){}var i=wc.call(t);return n&&(e?t[Dt]=r:delete t[Dt]),i}var Ec=Object.prototype,Tc=Ec.toString;function Cc(t){return Tc.call(t)}var Ac="[object Null]",Ic="[object Undefined]",Ci=Ue?Ue.toStringTag:void 0;function Ke(t){return t==null?t===void 0?Ic:Ac:Ci&&Ci in Object(t)?Sc(t):Cc(t)}function Ie(t){return t!=null&&typeof t=="object"}var Rc="[object Symbol]";function Ys(t){return typeof t=="symbol"||Ie(t)&&Ke(t)==Rc}function Zs(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 kc=Array.isArray;const Ge=kc;var Ai=Ue?Ue.prototype:void 0,Ii=Ai?Ai.toString:void 0;function Qs(t){if(typeof t=="string")return t;if(Ge(t))return Zs(t,Qs)+"";if(Ys(t))return Ii?Ii.call(t):"";var e=t+"";return e=="0"&&1/t==-1/0?"-0":e}var Oc=/\s/;function Pc(t){for(var e=t.length;e--&&Oc.test(t.charAt(e)););return e}var $c=/^\s+/;function Dc(t){return t&&t.slice(0,Pc(t)+1).replace($c,"")}function Re(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var Ri=NaN,Nc=/^[-+]0x[0-9a-f]+$/i,Bc=/^0b[01]+$/i,Lc=/^0o[0-7]+$/i,jc=parseInt;function ki(t){if(typeof t=="number")return t;if(Ys(t))return Ri;if(Re(t)){var e=typeof t.valueOf=="function"?t.valueOf():t;t=Re(e)?e+"":e}if(typeof t!="string")return t===0?t:+t;t=Dc(t);var r=Bc.test(t);return r||Lc.test(t)?jc(t.slice(2),r?2:8):Nc.test(t)?Ri:+t}function Xs(t){return t}var Vc="[object AsyncFunction]",Mc="[object Function]",Fc="[object GeneratorFunction]",Uc="[object Proxy]";function ge(t){if(!Re(t))return!1;var e=Ke(t);return e==Mc||e==Fc||e==Vc||e==Uc}var Hc=Be["__core-js_shared__"];const Mr=Hc;var Oi=(function(){var t=/[^.]+$/.exec(Mr&&Mr.keys&&Mr.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""})();function qc(t){return!!Oi&&Oi in t}var zc=Function.prototype,Wc=zc.toString;function mt(t){if(t!=null){try{return Wc.call(t)}catch(e){}try{return t+""}catch(e){}}return""}var Gc=/[\\^$.*+?()[\]{}|]/g,Kc=/^\[object .+?Constructor\]$/,Jc=Function.prototype,Yc=Object.prototype,Zc=Jc.toString,Qc=Yc.hasOwnProperty,Xc=RegExp("^"+Zc.call(Qc).replace(Gc,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function eu(t){if(!Re(t)||qc(t))return!1;var e=ge(t)?Xc:Kc;return e.test(mt(t))}function tu(t,e){return t==null?void 0:t[e]}function vt(t,e){var r=tu(t,e);return eu(r)?r:void 0}var ru=vt(Be,"WeakMap");const mn=ru;var Pi=Object.create,nu=(function(){function t(){}return function(e){if(!Re(e))return{};if(Pi)return Pi(e);t.prototype=e;var r=new t;return t.prototype=void 0,r}})();const iu=nu;function ea(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 su(t,e){var r=-1,n=t.length;for(e||(e=Array(n));++r<n;)e[r]=t[r];return e}var au=800,ou=16,cu=Date.now;function uu(t){var e=0,r=0;return function(){var n=cu(),i=ou-(n-r);if(r=n,i>0){if(++e>=au)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}function lu(t){return function(){return t}}var hu=(function(){try{var t=vt(Object,"defineProperty");return t({},"",{}),t}catch(e){}})();const br=hu;var pu=br?function(t,e){return br(t,"toString",{configurable:!0,enumerable:!1,value:lu(e),writable:!0})}:Xs;const fu=pu;var du=uu(fu);const gu=du;function mu(t,e){for(var r=-1,n=t==null?0:t.length;++r<n&&e(t[r],r,t)!==!1;);return t}var vu=9007199254740991,yu=/^(?:0|[1-9]\d*)$/;function ta(t,e){var r=typeof t;return e=e==null?vu:e,!!e&&(r=="number"||r!="symbol"&&yu.test(t))&&t>-1&&t%1==0&&t<e}function qn(t,e,r){e=="__proto__"&&br?br(t,e,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[e]=r}function Ot(t,e){return t===e||t!==t&&e!==e}var bu=Object.prototype,_u=bu.hasOwnProperty;function ra(t,e,r){var n=t[e];(!(_u.call(t,e)&&Ot(n,r))||r===void 0&&!(e in t))&&qn(t,e,r)}function na(t,e,r,n){var i=!r;r||(r={});for(var s=-1,a=e.length;++s<a;){var o=e[s],u=n?n(r[o],t[o],o,r,t):void 0;u===void 0&&(u=t[o]),i?qn(r,o,u):ra(r,o,u)}return r}var $i=Math.max;function xu(t,e,r){return e=$i(e===void 0?t.length-1:e,0),function(){for(var n=arguments,i=-1,s=$i(n.length-e,0),a=Array(s);++i<s;)a[i]=n[e+i];i=-1;for(var o=Array(e+1);++i<e;)o[i]=n[i];return o[e]=r(a),ea(t,this,o)}}function ia(t,e){return gu(xu(t,e,Xs),t+"")}var wu=9007199254740991;function sa(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=wu}function Cr(t){return t!=null&&sa(t.length)&&!ge(t)}function Su(t,e,r){if(!Re(r))return!1;var n=typeof e;return(n=="number"?Cr(r)&&ta(e,r.length):n=="string"&&e in r)?Ot(r[e],t):!1}function aa(t){return ia(function(e,r){var n=-1,i=r.length,s=i>1?r[i-1]:void 0,a=i>2?r[2]:void 0;for(s=t.length>3&&typeof s=="function"?(i--,s):void 0,a&&Su(r[0],r[1],a)&&(s=i<3?void 0:s,i=1),e=Object(e);++n<i;){var o=r[n];o&&t(e,o,n,s)}return e})}var Eu=Object.prototype;function zn(t){var e=t&&t.constructor,r=typeof e=="function"&&e.prototype||Eu;return t===r}function Tu(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}var Cu="[object Arguments]";function Di(t){return Ie(t)&&Ke(t)==Cu}var oa=Object.prototype,Au=oa.hasOwnProperty,Iu=oa.propertyIsEnumerable,Ru=Di((function(){return arguments})())?Di:function(t){return Ie(t)&&Au.call(t,"callee")&&!Iu.call(t,"callee")};const vn=Ru;function ku(){return!1}var ca=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Ni=ca&&typeof module=="object"&&module&&!module.nodeType&&module,Ou=Ni&&Ni.exports===ca,Bi=Ou?Be.Buffer:void 0,Pu=Bi?Bi.isBuffer:void 0,$u=Pu||ku;const Ht=$u;var Du="[object Arguments]",Nu="[object Array]",Bu="[object Boolean]",Lu="[object Date]",ju="[object Error]",Vu="[object Function]",Mu="[object Map]",Fu="[object Number]",Uu="[object Object]",Hu="[object RegExp]",qu="[object Set]",zu="[object String]",Wu="[object WeakMap]",Gu="[object ArrayBuffer]",Ku="[object DataView]",Ju="[object Float32Array]",Yu="[object Float64Array]",Zu="[object Int8Array]",Qu="[object Int16Array]",Xu="[object Int32Array]",el="[object Uint8Array]",tl="[object Uint8ClampedArray]",rl="[object Uint16Array]",nl="[object Uint32Array]",re={};re[Ju]=re[Yu]=re[Zu]=re[Qu]=re[Xu]=re[el]=re[tl]=re[rl]=re[nl]=!0;re[Du]=re[Nu]=re[Gu]=re[Bu]=re[Ku]=re[Lu]=re[ju]=re[Vu]=re[Mu]=re[Fu]=re[Uu]=re[Hu]=re[qu]=re[zu]=re[Wu]=!1;function il(t){return Ie(t)&&sa(t.length)&&!!re[Ke(t)]}function Wn(t){return function(e){return t(e)}}var ua=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Vt=ua&&typeof module=="object"&&module&&!module.nodeType&&module,sl=Vt&&Vt.exports===ua,Fr=sl&&Ks.process,al=(function(){try{var t=Vt&&Vt.require&&Vt.require("util").types;return t||Fr&&Fr.binding&&Fr.binding("util")}catch(e){}})();const He=al;var Li=He&&He.isTypedArray,ol=Li?Wn(Li):il;const Gn=ol;var cl=Object.prototype,ul=cl.hasOwnProperty;function la(t,e){var r=Ge(t),n=!r&&vn(t),i=!r&&!n&&Ht(t),s=!r&&!n&&!i&&Gn(t),a=r||n||i||s,o=a?Tu(t.length,String):[],u=o.length;for(var c in t)(e||ul.call(t,c))&&!(a&&(c=="length"||i&&(c=="offset"||c=="parent")||s&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||ta(c,u)))&&o.push(c);return o}function ha(t,e){return function(r){return t(e(r))}}var ll=ha(Object.keys,Object);const hl=ll;var pl=Object.prototype,fl=pl.hasOwnProperty;function dl(t){if(!zn(t))return hl(t);var e=[];for(var r in Object(t))fl.call(t,r)&&r!="constructor"&&e.push(r);return e}function pa(t){return Cr(t)?la(t):dl(t)}function gl(t){var e=[];if(t!=null)for(var r in Object(t))e.push(r);return e}var ml=Object.prototype,vl=ml.hasOwnProperty;function yl(t){if(!Re(t))return gl(t);var e=zn(t),r=[];for(var n in t)n=="constructor"&&(e||!vl.call(t,n))||r.push(n);return r}function Kn(t){return Cr(t)?la(t,!0):yl(t)}var bl=aa(function(t,e,r,n){na(e,Kn(e),t,n)});const ji=bl;var _l=vt(Object,"create");const qt=_l;function xl(){this.__data__=qt?qt(null):{},this.size=0}function wl(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var Sl="__lodash_hash_undefined__",El=Object.prototype,Tl=El.hasOwnProperty;function Cl(t){var e=this.__data__;if(qt){var r=e[t];return r===Sl?void 0:r}return Tl.call(e,t)?e[t]:void 0}var Al=Object.prototype,Il=Al.hasOwnProperty;function Rl(t){var e=this.__data__;return qt?e[t]!==void 0:Il.call(e,t)}var kl="__lodash_hash_undefined__";function Ol(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=qt&&e===void 0?kl:e,this}function gt(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])}}gt.prototype.clear=xl;gt.prototype.delete=wl;gt.prototype.get=Cl;gt.prototype.has=Rl;gt.prototype.set=Ol;function Pl(){this.__data__=[],this.size=0}function Ar(t,e){for(var r=t.length;r--;)if(Ot(t[r][0],e))return r;return-1}var $l=Array.prototype,Dl=$l.splice;function Nl(t){var e=this.__data__,r=Ar(e,t);if(r<0)return!1;var n=e.length-1;return r==n?e.pop():Dl.call(e,r,1),--this.size,!0}function Bl(t){var e=this.__data__,r=Ar(e,t);return r<0?void 0:e[r][1]}function Ll(t){return Ar(this.__data__,t)>-1}function jl(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 Je(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}Je.prototype.clear=Pl;Je.prototype.delete=Nl;Je.prototype.get=Bl;Je.prototype.has=Ll;Je.prototype.set=jl;var Vl=vt(Be,"Map");const zt=Vl;function Ml(){this.size=0,this.__data__={hash:new gt,map:new(zt||Je),string:new gt}}function Fl(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}function Ir(t,e){var r=t.__data__;return Fl(e)?r[typeof e=="string"?"string":"hash"]:r.map}function Ul(t){var e=Ir(this,t).delete(t);return this.size-=e?1:0,e}function Hl(t){return Ir(this,t).get(t)}function ql(t){return Ir(this,t).has(t)}function zl(t,e){var r=Ir(this,t),n=r.size;return r.set(t,e),this.size+=r.size==n?0:1,this}function Ye(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])}}Ye.prototype.clear=Ml;Ye.prototype.delete=Ul;Ye.prototype.get=Hl;Ye.prototype.has=ql;Ye.prototype.set=zl;var Wl="Expected a function";function Jn(t,e){if(typeof t!="function"||e!=null&&typeof e!="function")throw new TypeError(Wl);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 a=t.apply(this,n);return r.cache=s.set(i,a)||s,a};return r.cache=new(Jn.Cache||Ye),r}Jn.Cache=Ye;var Gl=500;function Kl(t){var e=Jn(t,function(n){return r.size===Gl&&r.clear(),n}),r=e.cache;return e}var Jl=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Yl=/\\(\\)?/g;Kl(function(t){var e=[];return t.charCodeAt(0)===46&&e.push(""),t.replace(Jl,function(r,n,i,s){e.push(i?s.replace(Yl,"$1"):n||r)}),e});function Pt(t){return t==null?"":Qs(t)}function Zl(t,e){for(var r=-1,n=e.length,i=t.length;++r<n;)t[i+r]=e[r];return t}var Ql=ha(Object.getPrototypeOf,Object);const fa=Ql;var Xl="[object Object]",eh=Function.prototype,th=Object.prototype,da=eh.toString,rh=th.hasOwnProperty,nh=da.call(Object);function ga(t){if(!Ie(t)||Ke(t)!=Xl)return!1;var e=fa(t);if(e===null)return!0;var r=rh.call(e,"constructor")&&e.constructor;return typeof r=="function"&&r instanceof r&&da.call(r)==nh}var ih="[object DOMException]",sh="[object Error]";function ma(t){if(!Ie(t))return!1;var e=Ke(t);return e==sh||e==ih||typeof t.message=="string"&&typeof t.name=="string"&&!ga(t)}var ah=ia(function(t,e){try{return ea(t,void 0,e)}catch(r){return ma(r)?r:new Error(r)}});const oh=ah;function ch(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 uh(t,e,r){var n=t.length;return r=r===void 0?n:r,!e&&r>=n?t:ch(t,e,r)}var lh="\\ud800-\\udfff",hh="\\u0300-\\u036f",ph="\\ufe20-\\ufe2f",fh="\\u20d0-\\u20ff",dh=hh+ph+fh,gh="\\ufe0e\\ufe0f",mh="\\u200d",vh=RegExp("["+mh+lh+dh+gh+"]");function va(t){return vh.test(t)}function yh(t){return t.split("")}var ya="\\ud800-\\udfff",bh="\\u0300-\\u036f",_h="\\ufe20-\\ufe2f",xh="\\u20d0-\\u20ff",wh=bh+_h+xh,Sh="\\ufe0e\\ufe0f",Eh="["+ya+"]",yn="["+wh+"]",bn="\\ud83c[\\udffb-\\udfff]",Th="(?:"+yn+"|"+bn+")",ba="[^"+ya+"]",_a="(?:\\ud83c[\\udde6-\\uddff]){2}",xa="[\\ud800-\\udbff][\\udc00-\\udfff]",Ch="\\u200d",wa=Th+"?",Sa="["+Sh+"]?",Ah="(?:"+Ch+"(?:"+[ba,_a,xa].join("|")+")"+Sa+wa+")*",Ih=Sa+wa+Ah,Rh="(?:"+[ba+yn+"?",yn,_a,xa,Eh].join("|")+")",kh=RegExp(bn+"(?="+bn+")|"+Rh+Ih,"g");function Oh(t){return t.match(kh)||[]}function Ph(t){return va(t)?Oh(t):yh(t)}function $h(t){return function(e){e=Pt(e);var r=va(e)?Ph(e):void 0,n=r?r[0]:e.charAt(0),i=r?uh(r,1).join(""):e.slice(1);return n[t]()+i}}var Dh=$h("toUpperCase");const Ea=Dh;function Nh(t){return Ea(Pt(t).toLowerCase())}function Bh(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 Ta(t){return function(e){return t==null?void 0:t[e]}}var Lh={À:"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"},jh=Ta(Lh);const Vh=jh;var Mh=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Fh="\\u0300-\\u036f",Uh="\\ufe20-\\ufe2f",Hh="\\u20d0-\\u20ff",qh=Fh+Uh+Hh,zh="["+qh+"]",Wh=RegExp(zh,"g");function Gh(t){return t=Pt(t),t&&t.replace(Mh,Vh).replace(Wh,"")}var Kh=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function Jh(t){return t.match(Kh)||[]}var Yh=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function Zh(t){return Yh.test(t)}var Ca="\\ud800-\\udfff",Qh="\\u0300-\\u036f",Xh="\\ufe20-\\ufe2f",ep="\\u20d0-\\u20ff",tp=Qh+Xh+ep,Aa="\\u2700-\\u27bf",Ia="a-z\\xdf-\\xf6\\xf8-\\xff",rp="\\xac\\xb1\\xd7\\xf7",np="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",ip="\\u2000-\\u206f",sp=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Ra="A-Z\\xc0-\\xd6\\xd8-\\xde",ap="\\ufe0e\\ufe0f",ka=rp+np+ip+sp,Oa="['’]",Vi="["+ka+"]",op="["+tp+"]",Pa="\\d+",cp="["+Aa+"]",$a="["+Ia+"]",Da="[^"+Ca+ka+Pa+Aa+Ia+Ra+"]",up="\\ud83c[\\udffb-\\udfff]",lp="(?:"+op+"|"+up+")",hp="[^"+Ca+"]",Na="(?:\\ud83c[\\udde6-\\uddff]){2}",Ba="[\\ud800-\\udbff][\\udc00-\\udfff]",St="["+Ra+"]",pp="\\u200d",Mi="(?:"+$a+"|"+Da+")",fp="(?:"+St+"|"+Da+")",Fi="(?:"+Oa+"(?:d|ll|m|re|s|t|ve))?",Ui="(?:"+Oa+"(?:D|LL|M|RE|S|T|VE))?",La=lp+"?",ja="["+ap+"]?",dp="(?:"+pp+"(?:"+[hp,Na,Ba].join("|")+")"+ja+La+")*",gp="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",mp="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",vp=ja+La+dp,yp="(?:"+[cp,Na,Ba].join("|")+")"+vp,bp=RegExp([St+"?"+$a+"+"+Fi+"(?="+[Vi,St,"$"].join("|")+")",fp+"+"+Ui+"(?="+[Vi,St+Mi,"$"].join("|")+")",St+"?"+Mi+"+"+Fi,St+"+"+Ui,mp,gp,Pa,yp].join("|"),"g");function _p(t){return t.match(bp)||[]}function xp(t,e,r){return t=Pt(t),e=e,e===void 0?Zh(t)?_p(t):Jh(t):t.match(e)||[]}var wp="['’]",Sp=RegExp(wp,"g");function Va(t){return function(e){return Bh(xp(Gh(e).replace(Sp,"")),t,"")}}var Ep=Va(function(t,e,r){return e=e.toLowerCase(),t+(r?Nh(e):e)});const Ve=Ep;function Tp(){this.__data__=new Je,this.size=0}function Cp(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r}function Ap(t){return this.__data__.get(t)}function Ip(t){return this.__data__.has(t)}var Rp=200;function kp(t,e){var r=this.__data__;if(r instanceof Je){var n=r.__data__;if(!zt||n.length<Rp-1)return n.push([t,e]),this.size=++r.size,this;r=this.__data__=new Ye(n)}return r.set(t,e),this.size=r.size,this}function Me(t){var e=this.__data__=new Je(t);this.size=e.size}Me.prototype.clear=Tp;Me.prototype.delete=Cp;Me.prototype.get=Ap;Me.prototype.has=Ip;Me.prototype.set=kp;var Ma=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Hi=Ma&&typeof module=="object"&&module&&!module.nodeType&&module,Op=Hi&&Hi.exports===Ma,qi=Op?Be.Buffer:void 0,zi=qi?qi.allocUnsafe:void 0;function Fa(t,e){if(e)return t.slice();var r=t.length,n=zi?zi(r):new t.constructor(r);return t.copy(n),n}function Pp(t,e){for(var r=-1,n=t==null?0:t.length,i=0,s=[];++r<n;){var a=t[r];e(a,r,t)&&(s[i++]=a)}return s}function $p(){return[]}var Dp=Object.prototype,Np=Dp.propertyIsEnumerable,Wi=Object.getOwnPropertySymbols,Bp=Wi?function(t){return t==null?[]:(t=Object(t),Pp(Wi(t),function(e){return Np.call(t,e)}))}:$p;const Lp=Bp;function jp(t,e,r){var n=e(t);return Ge(t)?n:Zl(n,r(t))}function _n(t){return jp(t,pa,Lp)}var Vp=vt(Be,"DataView");const xn=Vp;var Mp=vt(Be,"Promise");const wn=Mp;var Fp=vt(Be,"Set");const Sn=Fp;var Gi="[object Map]",Up="[object Object]",Ki="[object Promise]",Ji="[object Set]",Yi="[object WeakMap]",Zi="[object DataView]",Hp=mt(xn),qp=mt(zt),zp=mt(wn),Wp=mt(Sn),Gp=mt(mn),pt=Ke;(xn&&pt(new xn(new ArrayBuffer(1)))!=Zi||zt&&pt(new zt)!=Gi||wn&&pt(wn.resolve())!=Ki||Sn&&pt(new Sn)!=Ji||mn&&pt(new mn)!=Yi)&&(pt=function(t){var e=Ke(t),r=e==Up?t.constructor:void 0,n=r?mt(r):"";if(n)switch(n){case Hp:return Zi;case qp:return Gi;case zp:return Ki;case Wp:return Ji;case Gp:return Yi}return e});const Wt=pt;var Kp=Object.prototype,Jp=Kp.hasOwnProperty;function Yp(t){var e=t.length,r=new t.constructor(e);return e&&typeof t[0]=="string"&&Jp.call(t,"index")&&(r.index=t.index,r.input=t.input),r}var Zp=Be.Uint8Array;const _r=Zp;function Yn(t){var e=new t.constructor(t.byteLength);return new _r(e).set(new _r(t)),e}function Qp(t,e){var r=Yn(t.buffer);return new t.constructor(r,t.byteOffset,t.byteLength)}var Xp=/\w*$/;function ef(t){var e=new t.constructor(t.source,Xp.exec(t));return e.lastIndex=t.lastIndex,e}var Qi=Ue?Ue.prototype:void 0,Xi=Qi?Qi.valueOf:void 0;function tf(t){return Xi?Object(Xi.call(t)):{}}function Ua(t,e){var r=e?Yn(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length)}var rf="[object Boolean]",nf="[object Date]",sf="[object Map]",af="[object Number]",of="[object RegExp]",cf="[object Set]",uf="[object String]",lf="[object Symbol]",hf="[object ArrayBuffer]",pf="[object DataView]",ff="[object Float32Array]",df="[object Float64Array]",gf="[object Int8Array]",mf="[object Int16Array]",vf="[object Int32Array]",yf="[object Uint8Array]",bf="[object Uint8ClampedArray]",_f="[object Uint16Array]",xf="[object Uint32Array]";function wf(t,e,r){var n=t.constructor;switch(e){case hf:return Yn(t);case rf:case nf:return new n(+t);case pf:return Qp(t);case ff:case df:case gf:case mf:case vf:case yf:case bf:case _f:case xf:return Ua(t,r);case sf:return new n;case af:case uf:return new n(t);case of:return ef(t);case cf:return new n;case lf:return tf(t)}}function Ha(t){return typeof t.constructor=="function"&&!zn(t)?iu(fa(t)):{}}var Sf="[object Map]";function Ef(t){return Ie(t)&&Wt(t)==Sf}var es=He&&He.isMap,Tf=es?Wn(es):Ef;const Cf=Tf;var Af="[object Set]";function If(t){return Ie(t)&&Wt(t)==Af}var ts=He&&He.isSet,Rf=ts?Wn(ts):If;const kf=Rf;var Of=1,qa="[object Arguments]",Pf="[object Array]",$f="[object Boolean]",Df="[object Date]",Nf="[object Error]",za="[object Function]",Bf="[object GeneratorFunction]",Lf="[object Map]",jf="[object Number]",Wa="[object Object]",Vf="[object RegExp]",Mf="[object Set]",Ff="[object String]",Uf="[object Symbol]",Hf="[object WeakMap]",qf="[object ArrayBuffer]",zf="[object DataView]",Wf="[object Float32Array]",Gf="[object Float64Array]",Kf="[object Int8Array]",Jf="[object Int16Array]",Yf="[object Int32Array]",Zf="[object Uint8Array]",Qf="[object Uint8ClampedArray]",Xf="[object Uint16Array]",ed="[object Uint32Array]",ee={};ee[qa]=ee[Pf]=ee[qf]=ee[zf]=ee[$f]=ee[Df]=ee[Wf]=ee[Gf]=ee[Kf]=ee[Jf]=ee[Yf]=ee[Lf]=ee[jf]=ee[Wa]=ee[Vf]=ee[Mf]=ee[Ff]=ee[Uf]=ee[Zf]=ee[Qf]=ee[Xf]=ee[ed]=!0;ee[Nf]=ee[za]=ee[Hf]=!1;function gr(t,e,r,n,i,s){var a,o=e&Of;if(a!==void 0)return a;if(!Re(t))return t;var u=Ge(t);if(u)a=Yp(t);else{var c=Wt(t),l=c==za||c==Bf;if(Ht(t))return Fa(t,o);if(c==Wa||c==qa||l&&!i)a=l?{}:Ha(t);else{if(!ee[c])return i?t:{};a=wf(t,c,o)}}s||(s=new Me);var h=s.get(t);if(h)return h;s.set(t,a),kf(t)?t.forEach(function(d){a.add(gr(d,e,r,d,t,s))}):Cf(t)&&t.forEach(function(d,m){a.set(m,gr(d,e,r,m,t,s))});var p=_n,f=u?void 0:p(t);return mu(f||t,function(d,m){f&&(m=d,d=t[m]),ra(a,m,gr(d,e,r,m,t,s))}),a}var td=1,rd=4;function En(t){return gr(t,td|rd)}var nd="__lodash_hash_undefined__";function id(t){return this.__data__.set(t,nd),this}function sd(t){return this.__data__.has(t)}function xr(t){var e=-1,r=t==null?0:t.length;for(this.__data__=new Ye;++e<r;)this.add(t[e])}xr.prototype.add=xr.prototype.push=id;xr.prototype.has=sd;function ad(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 od(t,e){return t.has(e)}var cd=1,ud=2;function Ga(t,e,r,n,i,s){var a=r&cd,o=t.length,u=e.length;if(o!=u&&!(a&&u>o))return!1;var c=s.get(t),l=s.get(e);if(c&&l)return c==e&&l==t;var h=-1,p=!0,f=r&ud?new xr:void 0;for(s.set(t,e),s.set(e,t);++h<o;){var d=t[h],m=e[h];if(n)var v=a?n(m,d,h,e,t,s):n(d,m,h,t,e,s);if(v!==void 0){if(v)continue;p=!1;break}if(f){if(!ad(e,function(S,b){if(!od(f,b)&&(d===S||i(d,S,r,n,s)))return f.push(b)})){p=!1;break}}else if(!(d===m||i(d,m,r,n,s))){p=!1;break}}return s.delete(t),s.delete(e),p}function ld(t){var e=-1,r=Array(t.size);return t.forEach(function(n,i){r[++e]=[i,n]}),r}function hd(t){var e=-1,r=Array(t.size);return t.forEach(function(n){r[++e]=n}),r}var pd=1,fd=2,dd="[object Boolean]",gd="[object Date]",md="[object Error]",vd="[object Map]",yd="[object Number]",bd="[object RegExp]",_d="[object Set]",xd="[object String]",wd="[object Symbol]",Sd="[object ArrayBuffer]",Ed="[object DataView]",rs=Ue?Ue.prototype:void 0,Ur=rs?rs.valueOf:void 0;function Td(t,e,r,n,i,s,a){switch(r){case Ed:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case Sd:return!(t.byteLength!=e.byteLength||!s(new _r(t),new _r(e)));case dd:case gd:case yd:return Ot(+t,+e);case md:return t.name==e.name&&t.message==e.message;case bd:case xd:return t==e+"";case vd:var o=ld;case _d:var u=n&pd;if(o||(o=hd),t.size!=e.size&&!u)return!1;var c=a.get(t);if(c)return c==e;n|=fd,a.set(t,e);var l=Ga(o(t),o(e),n,i,s,a);return a.delete(t),l;case wd:if(Ur)return Ur.call(t)==Ur.call(e)}return!1}var Cd=1,Ad=Object.prototype,Id=Ad.hasOwnProperty;function Rd(t,e,r,n,i,s){var a=r&Cd,o=_n(t),u=o.length,c=_n(e),l=c.length;if(u!=l&&!a)return!1;for(var h=u;h--;){var p=o[h];if(!(a?p in e:Id.call(e,p)))return!1}var f=s.get(t),d=s.get(e);if(f&&d)return f==e&&d==t;var m=!0;s.set(t,e),s.set(e,t);for(var v=a;++h<u;){p=o[h];var S=t[p],b=e[p];if(n)var _=a?n(b,S,p,e,t,s):n(S,b,p,t,e,s);if(!(_===void 0?S===b||i(S,b,r,n,s):_)){m=!1;break}v||(v=p=="constructor")}if(m&&!v){var w=t.constructor,x=e.constructor;w!=x&&"constructor"in t&&"constructor"in e&&!(typeof w=="function"&&w instanceof w&&typeof x=="function"&&x instanceof x)&&(m=!1)}return s.delete(t),s.delete(e),m}var kd=1,ns="[object Arguments]",is="[object Array]",ir="[object Object]",Od=Object.prototype,ss=Od.hasOwnProperty;function Pd(t,e,r,n,i,s){var a=Ge(t),o=Ge(e),u=a?is:Wt(t),c=o?is:Wt(e);u=u==ns?ir:u,c=c==ns?ir:c;var l=u==ir,h=c==ir,p=u==c;if(p&&Ht(t)){if(!Ht(e))return!1;a=!0,l=!1}if(p&&!l)return s||(s=new Me),a||Gn(t)?Ga(t,e,r,n,i,s):Td(t,e,u,r,n,i,s);if(!(r&kd)){var f=l&&ss.call(t,"__wrapped__"),d=h&&ss.call(e,"__wrapped__");if(f||d){var m=f?t.value():t,v=d?e.value():e;return s||(s=new Me),i(m,v,r,n,s)}}return p?(s||(s=new Me),Rd(t,e,r,n,i,s)):!1}function Ka(t,e,r,n,i){return t===e?!0:t==null||e==null||!Ie(t)&&!Ie(e)?t!==t&&e!==e:Pd(t,e,r,n,Ka,i)}function $d(t){return function(e,r,n){for(var i=-1,s=Object(e),a=n(e),o=a.length;o--;){var u=a[++i];if(r(s[u],u,s)===!1)break}return e}}var Dd=$d();const Nd=Dd;var Bd=function(){return Be.Date.now()};const Hr=Bd;var Ld="Expected a function",jd=Math.max,Vd=Math.min;function Zn(t,e,r){var n,i,s,a,o,u,c=0,l=!1,h=!1,p=!0;if(typeof t!="function")throw new TypeError(Ld);e=ki(e)||0,Re(r)&&(l=!!r.leading,h="maxWait"in r,s=h?jd(ki(r.maxWait)||0,e):s,p="trailing"in r?!!r.trailing:p);function f(y){var T=n,I=i;return n=i=void 0,c=y,a=t.apply(I,T),a}function d(y){return c=y,o=setTimeout(S,e),l?f(y):a}function m(y){var T=y-u,I=y-c,j=e-T;return h?Vd(j,s-I):j}function v(y){var T=y-u,I=y-c;return u===void 0||T>=e||T<0||h&&I>=s}function S(){var y=Hr();if(v(y))return b(y);o=setTimeout(S,m(y))}function b(y){return o=void 0,p&&n?f(y):(n=i=void 0,a)}function _(){o!==void 0&&clearTimeout(o),c=0,n=u=i=o=void 0}function w(){return o===void 0?a:b(Hr())}function x(){var y=Hr(),T=v(y);if(n=arguments,i=this,u=y,T){if(o===void 0)return d(u);if(h)return clearTimeout(o),o=setTimeout(S,e),f(u)}return o===void 0&&(o=setTimeout(S,e)),a}return x.cancel=_,x.flush=w,x}function Tn(t,e,r){(r!==void 0&&!Ot(t[e],r)||r===void 0&&!(e in t))&&qn(t,e,r)}function Md(t){return Ie(t)&&Cr(t)}function Cn(t,e){if(!(e==="constructor"&&typeof t[e]=="function")&&e!="__proto__")return t[e]}function Fd(t){return na(t,Kn(t))}function Ud(t,e,r,n,i,s,a){var o=Cn(t,r),u=Cn(e,r),c=a.get(u);if(c){Tn(t,r,c);return}var l=s?s(o,u,r+"",t,e,a):void 0,h=l===void 0;if(h){var p=Ge(u),f=!p&&Ht(u),d=!p&&!f&&Gn(u);l=u,p||f||d?Ge(o)?l=o:Md(o)?l=su(o):f?(h=!1,l=Fa(u,!0)):d?(h=!1,l=Ua(u,!0)):l=[]:ga(u)||vn(u)?(l=o,vn(o)?l=Fd(o):(!Re(o)||ge(o))&&(l=Ha(u))):h=!1}h&&(a.set(u,l),i(l,u,n,s,a),a.delete(u)),Tn(t,r,l)}function Ja(t,e,r,n,i){t!==e&&Nd(e,function(s,a){if(i||(i=new Me),Re(s))Ud(t,e,a,r,Ja,n,i);else{var o=n?n(Cn(t,a),s,a+"",t,e,i):void 0;o===void 0&&(o=s),Tn(t,a,o)}},Kn)}var Hd={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},qd=Ta(Hd);const zd=qd;var Ya=/[&<>"']/g,Wd=RegExp(Ya.source);function Gd(t){return t=Pt(t),t&&Wd.test(t)?t.replace(Ya,zd):t}var Kd="[object String]";function Ze(t){return typeof t=="string"||!Ge(t)&&Ie(t)&&Ke(t)==Kd}function Jd(t,e){return Zs(e,function(r){return t[r]})}He&&He.isArrayBuffer;He&&He.isDate;function qr(t,e){return Ka(t,e)}var Yd=Va(function(t,e,r){return t+(r?"-":"")+e.toLowerCase()});const Zd=Yd;var Qd=aa(function(t,e,r){Ja(t,e,r)});const Bt=Qd;var Za=Object.prototype,Xd=Za.hasOwnProperty;function as(t,e,r,n){return t===void 0||Ot(t,Za[r])&&!Xd.call(n,r)?e:t}var eg={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"};function tg(t){return"\\"+eg[t]}var rg=/<%=([\s\S]+?)%>/g;const Qa=rg;var ng=/<%-([\s\S]+?)%>/g;const ig=ng;var sg=/<%([\s\S]+?)%>/g;const ag=sg;var og={escape:ig,evaluate:ag,interpolate:Qa,variable:"",imports:{_:{escape:Gd}}};const os=og;var cg="Invalid `variable` option passed into `_.template`",ug=/\b__p \+= '';/g,lg=/\b(__p \+=) '' \+/g,hg=/(__e\(.*?\)|\b__t\)) \+\n'';/g,pg=/[()=,{}\[\]\/\s]/,fg=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,sr=/($^)/,dg=/['\n\r\u2028\u2029\\]/g,gg=Object.prototype,cs=gg.hasOwnProperty;function mg(t,e,r){var n=os.imports._.templateSettings||os;t=Pt(t),e=ji({},e,n,as);var i=ji({},e.imports,n.imports,as),s=pa(i),a=Jd(i,s),o,u,c=0,l=e.interpolate||sr,h="__p += '",p=RegExp((e.escape||sr).source+"|"+l.source+"|"+(l===Qa?fg:sr).source+"|"+(e.evaluate||sr).source+"|$","g"),f=cs.call(e,"sourceURL")?"//# sourceURL="+(e.sourceURL+"").replace(/\s/g," ")+`
3
+ `:"";t.replace(p,function(v,S,b,_,w,x){return b||(b=_),h+=t.slice(c,x).replace(dg,tg),S&&(o=!0,h+=`' +
4
4
  __e(`+S+`) +
5
5
  '`),w&&(u=!0,h+=`';
6
6
  `+w+`;
7
7
  __p += '`),b&&(h+=`' +
8
8
  ((__t = (`+b+`)) == null ? '' : __t) +
9
9
  '`),c=x+v.length,v}),h+=`';
10
- `;var d=ns.call(e,"variable")&&e.variable;if(!d)h=`with (obj) {
10
+ `;var d=cs.call(e,"variable")&&e.variable;if(!d)h=`with (obj) {
11
11
  `+h+`
12
12
  }
13
- `;else if(sg.test(d))throw new Error(tg);h=(u?h.replace(rg,""):h).replace(ng,"$1").replace(ig,"$1;"),h="function("+(d||"obj")+`) {
13
+ `;else if(pg.test(d))throw new Error(cg);h=(u?h.replace(ug,""):h).replace(lg,"$1").replace(hg,"$1;"),h="function("+(d||"obj")+`) {
14
14
  `+(d?"":`obj || (obj = {});
15
15
  `)+"var __t, __p = ''"+(o?", __e = _.escape":"")+(u?`, __j = Array.prototype.join;
16
16
  function print() { __p += __j.call(arguments, '') }
17
17
  `:`;
18
18
  `)+h+`return __p
19
- }`;var m=th(function(){return Function(s,f+"return "+h).apply(void 0,a)});if(m.source=h,ha(m))throw m;return m}var lg="Expected a function";function hg(t,e,r){var n=!0,i=!0;if(typeof t!="function")throw new TypeError(lg);return Re(r)&&(n="leading"in r?!0:n,i="trailing"in r?!1:i),Gn(t,e,{leading:n,maxWait:e,trailing:i})}function pg(t){return ba(je(t))}var ye=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function fg(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Ga={exports:{}};function dg(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 zr={exports:{}},is;function ct(){return is||(is=1,(function(t,e){(function(r,n){t.exports=n()})(ye,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 ye!="undefined"&&ye.crypto&&(s=ye.crypto),!s&&typeof dg=="function")try{s=require("crypto")}catch(b){}var a=function(){if(s){if(typeof s.getRandomValues=="function")try{return s.getRandomValues(new Uint32Array(1))[0]}catch(b){}if(typeof s.randomBytes=="function")try{return s.randomBytes(4).readInt32LE()}catch(b){}}throw new Error("Native crypto module could not be used to get secure random number.")},o=Object.create||(function(){function b(){}return function(_){var w;return b.prototype=_,w=new b,b.prototype=null,w}})(),u={},c=u.lib={},l=c.Base=(function(){return{extend:function(b){var _=o(this);return b&&_.mixIn(b),(!_.hasOwnProperty("init")||this.init===_.init)&&(_.init=function(){_.$super.init.apply(this,arguments)}),_.init.prototype=_,_.$super=this,_},create:function(){var b=this.extend();return b.init.apply(b,arguments),b},init:function(){},mixIn:function(b){for(var _ in b)b.hasOwnProperty(_)&&(this[_]=b[_]);b.hasOwnProperty("toString")&&(this.toString=b.toString)},clone:function(){return this.init.prototype.extend(this)}}})(),h=c.WordArray=l.extend({init:function(b,_){b=this.words=b||[],_!=i?this.sigBytes=_:this.sigBytes=b.length*4},toString:function(b){return(b||f).stringify(this)},concat:function(b){var _=this.words,w=b.words,x=this.sigBytes,y=b.sigBytes;if(this.clamp(),x%4)for(var T=0;T<y;T++){var I=w[T>>>2]>>>24-T%4*8&255;_[x+T>>>2]|=I<<24-(x+T)%4*8}else for(var V=0;V<y;V+=4)_[x+V>>>2]=w[V>>>2];return this.sigBytes+=y,this},clamp:function(){var b=this.words,_=this.sigBytes;b[_>>>2]&=4294967295<<32-_%4*8,b.length=n.ceil(_/4)},clone:function(){var b=l.clone.call(this);return b.words=this.words.slice(0),b},random:function(b){for(var _=[],w=0;w<b;w+=4)_.push(a());return new h.init(_,b)}}),p=u.enc={},f=p.Hex={stringify:function(b){for(var _=b.words,w=b.sigBytes,x=[],y=0;y<w;y++){var T=_[y>>>2]>>>24-y%4*8&255;x.push((T>>>4).toString(16)),x.push((T&15).toString(16))}return x.join("")},parse:function(b){for(var _=b.length,w=[],x=0;x<_;x+=2)w[x>>>3]|=parseInt(b.substr(x,2),16)<<24-x%8*4;return new h.init(w,_/2)}},d=p.Latin1={stringify:function(b){for(var _=b.words,w=b.sigBytes,x=[],y=0;y<w;y++){var T=_[y>>>2]>>>24-y%4*8&255;x.push(String.fromCharCode(T))}return x.join("")},parse:function(b){for(var _=b.length,w=[],x=0;x<_;x++)w[x>>>2]|=(b.charCodeAt(x)&255)<<24-x%4*8;return new h.init(w,_)}},m=p.Utf8={stringify:function(b){try{return decodeURIComponent(escape(d.stringify(b)))}catch(_){throw new Error("Malformed UTF-8 data")}},parse:function(b){return d.parse(unescape(encodeURIComponent(b)))}},v=c.BufferedBlockAlgorithm=l.extend({reset:function(){this._data=new h.init,this._nDataBytes=0},_append:function(b){typeof b=="string"&&(b=m.parse(b)),this._data.concat(b),this._nDataBytes+=b.sigBytes},_process:function(b){var _,w=this._data,x=w.words,y=w.sigBytes,T=this.blockSize,I=T*4,V=y/I;b?V=n.ceil(V):V=n.max((V|0)-this._minBufferSize,0);var E=V*T,C=n.min(E*4,y);if(E){for(var L=0;L<E;L+=T)this._doProcessBlock(x,L);_=x.splice(0,E),w.sigBytes-=C}return new h.init(_,C)},clone:function(){var b=l.clone.call(this);return b._data=this._data.clone(),b},_minBufferSize:0});c.Hasher=v.extend({cfg:l.extend(),init:function(b){this.cfg=this.cfg.extend(b),this.reset()},reset:function(){v.reset.call(this),this._doReset()},update:function(b){return this._append(b),this._process(),this},finalize:function(b){b&&this._append(b);var _=this._doFinalize();return _},blockSize:16,_createHelper:function(b){return function(_,w){return new b.init(w).finalize(_)}},_createHmacHelper:function(b){return function(_,w){return new S.HMAC.init(b,w).finalize(_)}}});var S=u.algo={};return u})(Math);return r})})(zr)),zr.exports}(function(t,e){(function(r,n){t.exports=n(ct())})(ye,function(r){return(function(n){var i=r,s=i.lib,a=s.WordArray,o=s.Hasher,u=i.algo,c=[];(function(){for(var m=0;m<64;m++)c[m]=n.abs(n.sin(m+1))*4294967296|0})();var l=u.MD5=o.extend({_doReset:function(){this._hash=new a.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(m,v){for(var S=0;S<16;S++){var b=v+S,_=m[b];m[b]=(_<<8|_>>>24)&16711935|(_<<24|_>>>8)&4278255360}var w=this._hash.words,x=m[v+0],y=m[v+1],T=m[v+2],I=m[v+3],V=m[v+4],E=m[v+5],C=m[v+6],L=m[v+7],N=m[v+8],B=m[v+9],O=m[v+10],D=m[v+11],U=m[v+12],j=m[v+13],q=m[v+14],z=m[v+15],A=w[0],P=w[1],$=w[2],R=w[3];A=h(A,P,$,R,x,7,c[0]),R=h(R,A,P,$,y,12,c[1]),$=h($,R,A,P,T,17,c[2]),P=h(P,$,R,A,I,22,c[3]),A=h(A,P,$,R,V,7,c[4]),R=h(R,A,P,$,E,12,c[5]),$=h($,R,A,P,C,17,c[6]),P=h(P,$,R,A,L,22,c[7]),A=h(A,P,$,R,N,7,c[8]),R=h(R,A,P,$,B,12,c[9]),$=h($,R,A,P,O,17,c[10]),P=h(P,$,R,A,D,22,c[11]),A=h(A,P,$,R,U,7,c[12]),R=h(R,A,P,$,j,12,c[13]),$=h($,R,A,P,q,17,c[14]),P=h(P,$,R,A,z,22,c[15]),A=p(A,P,$,R,y,5,c[16]),R=p(R,A,P,$,C,9,c[17]),$=p($,R,A,P,D,14,c[18]),P=p(P,$,R,A,x,20,c[19]),A=p(A,P,$,R,E,5,c[20]),R=p(R,A,P,$,O,9,c[21]),$=p($,R,A,P,z,14,c[22]),P=p(P,$,R,A,V,20,c[23]),A=p(A,P,$,R,B,5,c[24]),R=p(R,A,P,$,q,9,c[25]),$=p($,R,A,P,I,14,c[26]),P=p(P,$,R,A,N,20,c[27]),A=p(A,P,$,R,j,5,c[28]),R=p(R,A,P,$,T,9,c[29]),$=p($,R,A,P,L,14,c[30]),P=p(P,$,R,A,U,20,c[31]),A=f(A,P,$,R,E,4,c[32]),R=f(R,A,P,$,N,11,c[33]),$=f($,R,A,P,D,16,c[34]),P=f(P,$,R,A,q,23,c[35]),A=f(A,P,$,R,y,4,c[36]),R=f(R,A,P,$,V,11,c[37]),$=f($,R,A,P,L,16,c[38]),P=f(P,$,R,A,O,23,c[39]),A=f(A,P,$,R,j,4,c[40]),R=f(R,A,P,$,x,11,c[41]),$=f($,R,A,P,I,16,c[42]),P=f(P,$,R,A,C,23,c[43]),A=f(A,P,$,R,B,4,c[44]),R=f(R,A,P,$,U,11,c[45]),$=f($,R,A,P,z,16,c[46]),P=f(P,$,R,A,T,23,c[47]),A=d(A,P,$,R,x,6,c[48]),R=d(R,A,P,$,L,10,c[49]),$=d($,R,A,P,q,15,c[50]),P=d(P,$,R,A,E,21,c[51]),A=d(A,P,$,R,U,6,c[52]),R=d(R,A,P,$,I,10,c[53]),$=d($,R,A,P,O,15,c[54]),P=d(P,$,R,A,y,21,c[55]),A=d(A,P,$,R,N,6,c[56]),R=d(R,A,P,$,z,10,c[57]),$=d($,R,A,P,C,15,c[58]),P=d(P,$,R,A,j,21,c[59]),A=d(A,P,$,R,V,6,c[60]),R=d(R,A,P,$,D,10,c[61]),$=d($,R,A,P,T,15,c[62]),P=d(P,$,R,A,B,21,c[63]),w[0]=w[0]+A|0,w[1]=w[1]+P|0,w[2]=w[2]+$|0,w[3]=w[3]+R|0},_doFinalize:function(){var m=this._data,v=m.words,S=this._nDataBytes*8,b=m.sigBytes*8;v[b>>>5]|=128<<24-b%32;var _=n.floor(S/4294967296),w=S;v[(b+64>>>9<<4)+15]=(_<<8|_>>>24)&16711935|(_<<24|_>>>8)&4278255360,v[(b+64>>>9<<4)+14]=(w<<8|w>>>24)&16711935|(w<<24|w>>>8)&4278255360,m.sigBytes=(v.length+1)*4,this._process();for(var x=this._hash,y=x.words,T=0;T<4;T++){var I=y[T];y[T]=(I<<8|I>>>24)&16711935|(I<<24|I>>>8)&4278255360}return x},clone:function(){var m=o.clone.call(this);return m._hash=this._hash.clone(),m}});function h(m,v,S,b,_,w,x){var y=m+(v&S|~v&b)+_+x;return(y<<w|y>>>32-w)+v}function p(m,v,S,b,_,w,x){var y=m+(v&b|S&~b)+_+x;return(y<<w|y>>>32-w)+v}function f(m,v,S,b,_,w,x){var y=m+(v^S^b)+_+x;return(y<<w|y>>>32-w)+v}function d(m,v,S,b,_,w,x){var y=m+(S^(v|~b))+_+x;return(y<<w|y>>>32-w)+v}i.MD5=o._createHelper(l),i.HmacMD5=o._createHmacHelper(l)})(Math),r.MD5})})(Ga);var gg=Ga.exports,Ka={exports:{}};(function(t,e){(function(r,n){t.exports=n(ct())})(ye,function(r){return(function(){var n=r,i=n.lib,s=i.WordArray,a=n.enc;a.Base64={stringify:function(u){var c=u.words,l=u.sigBytes,h=this._map;u.clamp();for(var p=[],f=0;f<l;f+=3)for(var d=c[f>>>2]>>>24-f%4*8&255,m=c[f+1>>>2]>>>24-(f+1)%4*8&255,v=c[f+2>>>2]>>>24-(f+2)%4*8&255,S=d<<16|m<<8|v,b=0;b<4&&f+b*.75<l;b++)p.push(h.charAt(S>>>6*(3-b)&63));var _=h.charAt(64);if(_)for(;p.length%4;)p.push(_);return p.join("")},parse:function(u){var c=u.length,l=this._map,h=this._reverseMap;if(!h){h=this._reverseMap=[];for(var p=0;p<l.length;p++)h[l.charCodeAt(p)]=p}var f=l.charAt(64);if(f){var d=u.indexOf(f);d!==-1&&(c=d)}return o(u,c,h)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function o(u,c,l){for(var h=[],p=0,f=0;f<c;f++)if(f%4){var d=l[u.charCodeAt(f-1)]<<f%4*2,m=l[u.charCodeAt(f)]>>>6-f%4*2,v=d|m;h[p>>>2]|=v<<24-p%4*8,p++}return s.create(h,p)}})(),r.enc.Base64})})(Ka);var mg=Ka.exports,vg={exports:{}};(function(t,e){(function(r,n){t.exports=n(ct())})(ye,function(r){return r.enc.Utf8})})(vg);var yg={exports:{}},Wr={exports:{}},Gr={exports:{}},ss;function bg(){return ss||(ss=1,(function(t,e){(function(r,n){t.exports=n(ct())})(ye,function(r){return(function(){var n=r,i=n.lib,s=i.WordArray,a=i.Hasher,o=n.algo,u=[],c=o.SHA1=a.extend({_doReset:function(){this._hash=new s.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(l,h){for(var p=this._hash.words,f=p[0],d=p[1],m=p[2],v=p[3],S=p[4],b=0;b<80;b++){if(b<16)u[b]=l[h+b]|0;else{var _=u[b-3]^u[b-8]^u[b-14]^u[b-16];u[b]=_<<1|_>>>31}var w=(f<<5|f>>>27)+S+u[b];b<20?w+=(d&m|~d&v)+1518500249:b<40?w+=(d^m^v)+1859775393:b<60?w+=(d&m|d&v|m&v)-1894007588:w+=(d^m^v)-899497514,S=v,v=m,m=d<<30|d>>>2,d=f,f=w}p[0]=p[0]+f|0,p[1]=p[1]+d|0,p[2]=p[2]+m|0,p[3]=p[3]+v|0,p[4]=p[4]+S|0},_doFinalize:function(){var l=this._data,h=l.words,p=this._nDataBytes*8,f=l.sigBytes*8;return h[f>>>5]|=128<<24-f%32,h[(f+64>>>9<<4)+14]=Math.floor(p/4294967296),h[(f+64>>>9<<4)+15]=p,l.sigBytes=h.length*4,this._process(),this._hash},clone:function(){var l=a.clone.call(this);return l._hash=this._hash.clone(),l}});n.SHA1=a._createHelper(c),n.HmacSHA1=a._createHmacHelper(c)})(),r.SHA1})})(Gr)),Gr.exports}var Kr={exports:{}},as;function _g(){return as||(as=1,(function(t,e){(function(r,n){t.exports=n(ct())})(ye,function(r){(function(){var n=r,i=n.lib,s=i.Base,a=n.enc,o=a.Utf8,u=n.algo;u.HMAC=s.extend({init:function(c,l){c=this._hasher=new c.init,typeof l=="string"&&(l=o.parse(l));var h=c.blockSize,p=h*4;l.sigBytes>p&&(l=c.finalize(l)),l.clamp();for(var f=this._oKey=l.clone(),d=this._iKey=l.clone(),m=f.words,v=d.words,S=0;S<h;S++)m[S]^=1549556828,v[S]^=909522486;f.sigBytes=d.sigBytes=p,this.reset()},reset:function(){var c=this._hasher;c.reset(),c.update(this._iKey)},update:function(c){return this._hasher.update(c),this},finalize:function(c){var l=this._hasher,h=l.finalize(c);l.reset();var p=l.finalize(this._oKey.clone().concat(h));return p}})})()})})(Kr)),Kr.exports}var os;function Ja(){return os||(os=1,(function(t,e){(function(r,n,i){t.exports=n(ct(),bg(),_g())})(ye,function(r){return(function(){var n=r,i=n.lib,s=i.Base,a=i.WordArray,o=n.algo,u=o.MD5,c=o.EvpKDF=s.extend({cfg:s.extend({keySize:128/32,hasher:u,iterations:1}),init:function(l){this.cfg=this.cfg.extend(l)},compute:function(l,h){for(var p,f=this.cfg,d=f.hasher.create(),m=a.create(),v=m.words,S=f.keySize,b=f.iterations;v.length<S;){p&&d.update(p),p=d.update(l).finalize(h),d.reset();for(var _=1;_<b;_++)p=d.finalize(p),d.reset();m.concat(p)}return m.sigBytes=S*4,m}});n.EvpKDF=function(l,h,p){return c.create(p).compute(l,h)}})(),r.EvpKDF})})(Wr)),Wr.exports}var Jr={exports:{}},cs;function xg(){return cs||(cs=1,(function(t,e){(function(r,n,i){t.exports=n(ct(),Ja())})(ye,function(r){r.lib.Cipher||(function(n){var i=r,s=i.lib,a=s.Base,o=s.WordArray,u=s.BufferedBlockAlgorithm,c=i.enc;c.Utf8;var l=c.Base64,h=i.algo,p=h.EvpKDF,f=s.Cipher=u.extend({cfg:a.extend(),createEncryptor:function(E,C){return this.create(this._ENC_XFORM_MODE,E,C)},createDecryptor:function(E,C){return this.create(this._DEC_XFORM_MODE,E,C)},init:function(E,C,L){this.cfg=this.cfg.extend(L),this._xformMode=E,this._key=C,this.reset()},reset:function(){u.reset.call(this),this._doReset()},process:function(E){return this._append(E),this._process()},finalize:function(E){E&&this._append(E);var C=this._doFinalize();return C},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:(function(){function E(C){return typeof C=="string"?V:y}return function(C){return{encrypt:function(L,N,B){return E(N).encrypt(C,L,N,B)},decrypt:function(L,N,B){return E(N).decrypt(C,L,N,B)}}}})()});s.StreamCipher=f.extend({_doFinalize:function(){var E=this._process(!0);return E},blockSize:1});var d=i.mode={},m=s.BlockCipherMode=a.extend({createEncryptor:function(E,C){return this.Encryptor.create(E,C)},createDecryptor:function(E,C){return this.Decryptor.create(E,C)},init:function(E,C){this._cipher=E,this._iv=C}}),v=d.CBC=(function(){var E=m.extend();E.Encryptor=E.extend({processBlock:function(L,N){var B=this._cipher,O=B.blockSize;C.call(this,L,N,O),B.encryptBlock(L,N),this._prevBlock=L.slice(N,N+O)}}),E.Decryptor=E.extend({processBlock:function(L,N){var B=this._cipher,O=B.blockSize,D=L.slice(N,N+O);B.decryptBlock(L,N),C.call(this,L,N,O),this._prevBlock=D}});function C(L,N,B){var O,D=this._iv;D?(O=D,this._iv=n):O=this._prevBlock;for(var U=0;U<B;U++)L[N+U]^=O[U]}return E})(),S=i.pad={},b=S.Pkcs7={pad:function(E,C){for(var L=C*4,N=L-E.sigBytes%L,B=N<<24|N<<16|N<<8|N,O=[],D=0;D<N;D+=4)O.push(B);var U=o.create(O,N);E.concat(U)},unpad:function(E){var C=E.words[E.sigBytes-1>>>2]&255;E.sigBytes-=C}};s.BlockCipher=f.extend({cfg:f.cfg.extend({mode:v,padding:b}),reset:function(){var E;f.reset.call(this);var C=this.cfg,L=C.iv,N=C.mode;this._xformMode==this._ENC_XFORM_MODE?E=N.createEncryptor:(E=N.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==E?this._mode.init(this,L&&L.words):(this._mode=E.call(N,this,L&&L.words),this._mode.__creator=E)},_doProcessBlock:function(E,C){this._mode.processBlock(E,C)},_doFinalize:function(){var E,C=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(C.pad(this._data,this.blockSize),E=this._process(!0)):(E=this._process(!0),C.unpad(E)),E},blockSize:128/32});var _=s.CipherParams=a.extend({init:function(E){this.mixIn(E)},toString:function(E){return(E||this.formatter).stringify(this)}}),w=i.format={},x=w.OpenSSL={stringify:function(E){var C,L=E.ciphertext,N=E.salt;return N?C=o.create([1398893684,1701076831]).concat(N).concat(L):C=L,C.toString(l)},parse:function(E){var C,L=l.parse(E),N=L.words;return N[0]==1398893684&&N[1]==1701076831&&(C=o.create(N.slice(2,4)),N.splice(0,4),L.sigBytes-=16),_.create({ciphertext:L,salt:C})}},y=s.SerializableCipher=a.extend({cfg:a.extend({format:x}),encrypt:function(E,C,L,N){N=this.cfg.extend(N);var B=E.createEncryptor(L,N),O=B.finalize(C),D=B.cfg;return _.create({ciphertext:O,key:L,iv:D.iv,algorithm:E,mode:D.mode,padding:D.padding,blockSize:E.blockSize,formatter:N.format})},decrypt:function(E,C,L,N){N=this.cfg.extend(N),C=this._parse(C,N.format);var B=E.createDecryptor(L,N).finalize(C.ciphertext);return B},_parse:function(E,C){return typeof E=="string"?C.parse(E,this):E}}),T=i.kdf={},I=T.OpenSSL={execute:function(E,C,L,N,B){if(N||(N=o.random(64/8)),B)var O=p.create({keySize:C+L,hasher:B}).compute(E,N);else var O=p.create({keySize:C+L}).compute(E,N);var D=o.create(O.words.slice(C),L*4);return O.sigBytes=C*4,_.create({key:O,iv:D,salt:N})}},V=s.PasswordBasedCipher=y.extend({cfg:y.cfg.extend({kdf:I}),encrypt:function(E,C,L,N){N=this.cfg.extend(N);var B=N.kdf.execute(L,E.keySize,E.ivSize,N.salt,N.hasher);N.iv=B.iv;var O=y.encrypt.call(this,E,C,B.key,N);return O.mixIn(B),O},decrypt:function(E,C,L,N){N=this.cfg.extend(N),C=this._parse(C,N.format);var B=N.kdf.execute(L,E.keySize,E.ivSize,C.salt,N.hasher);N.iv=B.iv;var O=y.decrypt.call(this,E,C,B.key,N);return O}})})()})})(Jr)),Jr.exports}(function(t,e){(function(r,n,i){t.exports=n(ct(),mg,gg,Ja(),xg())})(ye,function(r){return(function(){var n=r,i=n.lib,s=i.BlockCipher,a=n.algo,o=[],u=[],c=[],l=[],h=[],p=[],f=[],d=[],m=[],v=[];(function(){for(var _=[],w=0;w<256;w++)w<128?_[w]=w<<1:_[w]=w<<1^283;for(var x=0,y=0,w=0;w<256;w++){var T=y^y<<1^y<<2^y<<3^y<<4;T=T>>>8^T&255^99,o[x]=T,u[T]=x;var I=_[x],V=_[I],E=_[V],C=_[T]*257^T*16843008;c[x]=C<<24|C>>>8,l[x]=C<<16|C>>>16,h[x]=C<<8|C>>>24,p[x]=C;var C=E*16843009^V*65537^I*257^x*16843008;f[T]=C<<24|C>>>8,d[T]=C<<16|C>>>16,m[T]=C<<8|C>>>24,v[T]=C,x?(x=I^_[_[_[E^I]]],y^=_[_[y]]):x=y=1}})();var S=[0,1,2,4,8,16,32,64,128,27,54],b=a.AES=s.extend({_doReset:function(){var _;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var w=this._keyPriorReset=this._key,x=w.words,y=w.sigBytes/4,T=this._nRounds=y+6,I=(T+1)*4,V=this._keySchedule=[],E=0;E<I;E++)E<y?V[E]=x[E]:(_=V[E-1],E%y?y>6&&E%y==4&&(_=o[_>>>24]<<24|o[_>>>16&255]<<16|o[_>>>8&255]<<8|o[_&255]):(_=_<<8|_>>>24,_=o[_>>>24]<<24|o[_>>>16&255]<<16|o[_>>>8&255]<<8|o[_&255],_^=S[E/y|0]<<24),V[E]=V[E-y]^_);for(var C=this._invKeySchedule=[],L=0;L<I;L++){var E=I-L;if(L%4)var _=V[E];else var _=V[E-4];L<4||E<=4?C[L]=_:C[L]=f[o[_>>>24]]^d[o[_>>>16&255]]^m[o[_>>>8&255]]^v[o[_&255]]}}},encryptBlock:function(_,w){this._doCryptBlock(_,w,this._keySchedule,c,l,h,p,o)},decryptBlock:function(_,w){var x=_[w+1];_[w+1]=_[w+3],_[w+3]=x,this._doCryptBlock(_,w,this._invKeySchedule,f,d,m,v,u);var x=_[w+1];_[w+1]=_[w+3],_[w+3]=x},_doCryptBlock:function(_,w,x,y,T,I,V,E){for(var C=this._nRounds,L=_[w]^x[0],N=_[w+1]^x[1],B=_[w+2]^x[2],O=_[w+3]^x[3],D=4,U=1;U<C;U++){var j=y[L>>>24]^T[N>>>16&255]^I[B>>>8&255]^V[O&255]^x[D++],q=y[N>>>24]^T[B>>>16&255]^I[O>>>8&255]^V[L&255]^x[D++],z=y[B>>>24]^T[O>>>16&255]^I[L>>>8&255]^V[N&255]^x[D++],A=y[O>>>24]^T[L>>>16&255]^I[N>>>8&255]^V[B&255]^x[D++];L=j,N=q,B=z,O=A}var j=(E[L>>>24]<<24|E[N>>>16&255]<<16|E[B>>>8&255]<<8|E[O&255])^x[D++],q=(E[N>>>24]<<24|E[B>>>16&255]<<16|E[O>>>8&255]<<8|E[L&255])^x[D++],z=(E[B>>>24]<<24|E[O>>>16&255]<<16|E[L>>>8&255]<<8|E[N&255])^x[D++],A=(E[O>>>24]<<24|E[L>>>16&255]<<16|E[N>>>8&255]<<8|E[B&255])^x[D++];_[w]=j,_[w+1]=q,_[w+2]=z,_[w+3]=A},keySize:256/32});n.AES=s._createHelper(b)})(),r.AES})})(yg);var wg="0123456789abcdefghijklmnopqrstuvwxyz";function ze(t){return wg.charAt(t)}function Sg(t,e){return t&e}function ar(t,e){return t|e}function us(t,e){return t^e}function ls(t,e){return t&~e}function Eg(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 Tg(t){for(var e=0;t!=0;)t&=t-1,++e;return e}var Et="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ya="=";function Mt(t){var e,r,n="";for(e=0;e+3<=t.length;e+=3)r=parseInt(t.substring(e,e+3),16),n+=Et.charAt(r>>6)+Et.charAt(r&63);for(e+1==t.length?(r=parseInt(t.substring(e,e+1),16),n+=Et.charAt(r<<2)):e+2==t.length&&(r=parseInt(t.substring(e,e+2),16),n+=Et.charAt(r>>2)+Et.charAt((r&3)<<4));(n.length&3)>0;)n+=Ya;return n}function hs(t){var e="",r,n=0,i=0;for(r=0;r<t.length&&t.charAt(r)!=Ya;++r){var s=Et.indexOf(t.charAt(r));s<0||(n==0?(e+=ze(s>>2),i=s&3,n=1):n==1?(e+=ze(i<<2|s>>4),i=s&15,n=2):n==2?(e+=ze(i),e+=ze(s>>2),i=s&3,n=3):(e+=ze(i<<2|s>>4),e+=ze(s&15),n=0))}return n==1&&(e+=ze(i<<2)),e}var bt,Cg={decode:function(t){var e;if(bt===void 0){var r="0123456789ABCDEF",n=` \f
20
- \r  \u2028\u2029`;for(bt={},e=0;e<16;++e)bt[r.charAt(e)]=e;for(r=r.toLowerCase(),e=10;e<16;++e)bt[r.charAt(e)]=e;for(e=0;e<n.length;++e)bt[n.charAt(e)]=-1}var i=[],s=0,a=0;for(e=0;e<t.length;++e){var o=t.charAt(e);if(o=="=")break;if(o=bt[o],o!=-1){if(o===void 0)throw new Error("Illegal character at offset "+e);s|=o,++a>=2?(i[i.length]=s,s=0,a=0):s<<=4}}if(a)throw new Error("Hex encoding incomplete: 4 bits missing");return i}},lt,En={decode:function(t){var e;if(lt===void 0){var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n=`= \f
21
- \r  \u2028\u2029`;for(lt=Object.create(null),e=0;e<64;++e)lt[r.charAt(e)]=e;for(lt["-"]=62,lt._=63,e=0;e<n.length;++e)lt[n.charAt(e)]=-1}var i=[],s=0,a=0;for(e=0;e<t.length;++e){var o=t.charAt(e);if(o=="=")break;if(o=lt[o],o!=-1){if(o===void 0)throw new Error("Illegal character at offset "+e);s|=o,++a>=4?(i[i.length]=s>>16,i[i.length]=s>>8&255,i[i.length]=s&255,s=0,a=0):s<<=6}}switch(a){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=En.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 En.decode(t)}},_t=1e13,Lt=(function(){function t(e){this.buf=[+e||0]}return t.prototype.mulAdd=function(e,r){var n=this.buf,i=n.length,s,a;for(s=0;s<i;++s)a=n[s]*e+r,a<_t?r=0:(r=0|a/_t,a-=r*_t),n[s]=a;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+=_t,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+=(_t+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*_t+e[n];return r},t.prototype.simplify=function(){var e=this.buf;return e.length==1?e[0]:this},t})(),Za="…",Ag=/^(\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)?)?$/,Ig=/^(\d\d\d\d)(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])([01]\d|2[0-3])(?:([0-5]\d)(?:([0-5]\d)(?:[.,](\d{1,3}))?)?)?(Z|[-+](?:[0]\d|1[0-2])([0-5]\d)?)?$/;function At(t,e){return t.length>e&&(t=t.substring(0,e)+Za),t}var Yr=(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,a=e;a<r;)i=this.get(a++),s=this.get(a++),n+=String.fromCharCode(i<<8|s);return n},t.prototype.parseTime=function(e,r,n){var i=this.parseStringISO(e,r),s=(n?Ag:Ig).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,a,o="";n==s&&++e<r;)n=this.get(e);if(a=r-e,a===0)return i?-1:0;if(a>4){for(o=n,a<<=3;((+o^s)&128)==0;)o=+o<<1,--a;o="("+a+` bit)
19
+ }`;var m=oh(function(){return Function(s,f+"return "+h).apply(void 0,a)});if(m.source=h,ma(m))throw m;return m}var vg="Expected a function";function yg(t,e,r){var n=!0,i=!0;if(typeof t!="function")throw new TypeError(vg);return Re(r)&&(n="leading"in r?!0:n,i="trailing"in r?!1:i),Zn(t,e,{leading:n,maxWait:e,trailing:i})}function bg(t){return Ea(Ve(t))}var ye=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function _g(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Xa={exports:{}};function xg(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 zr={exports:{}},us;function ct(){return us||(us=1,(function(t,e){(function(r,n){t.exports=n()})(ye,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 ye!="undefined"&&ye.crypto&&(s=ye.crypto),!s&&typeof xg=="function")try{s=require("crypto")}catch(b){}var a=function(){if(s){if(typeof s.getRandomValues=="function")try{return s.getRandomValues(new Uint32Array(1))[0]}catch(b){}if(typeof s.randomBytes=="function")try{return s.randomBytes(4).readInt32LE()}catch(b){}}throw new Error("Native crypto module could not be used to get secure random number.")},o=Object.create||(function(){function b(){}return function(_){var w;return b.prototype=_,w=new b,b.prototype=null,w}})(),u={},c=u.lib={},l=c.Base=(function(){return{extend:function(b){var _=o(this);return b&&_.mixIn(b),(!_.hasOwnProperty("init")||this.init===_.init)&&(_.init=function(){_.$super.init.apply(this,arguments)}),_.init.prototype=_,_.$super=this,_},create:function(){var b=this.extend();return b.init.apply(b,arguments),b},init:function(){},mixIn:function(b){for(var _ in b)b.hasOwnProperty(_)&&(this[_]=b[_]);b.hasOwnProperty("toString")&&(this.toString=b.toString)},clone:function(){return this.init.prototype.extend(this)}}})(),h=c.WordArray=l.extend({init:function(b,_){b=this.words=b||[],_!=i?this.sigBytes=_:this.sigBytes=b.length*4},toString:function(b){return(b||f).stringify(this)},concat:function(b){var _=this.words,w=b.words,x=this.sigBytes,y=b.sigBytes;if(this.clamp(),x%4)for(var T=0;T<y;T++){var I=w[T>>>2]>>>24-T%4*8&255;_[x+T>>>2]|=I<<24-(x+T)%4*8}else for(var j=0;j<y;j+=4)_[x+j>>>2]=w[j>>>2];return this.sigBytes+=y,this},clamp:function(){var b=this.words,_=this.sigBytes;b[_>>>2]&=4294967295<<32-_%4*8,b.length=n.ceil(_/4)},clone:function(){var b=l.clone.call(this);return b.words=this.words.slice(0),b},random:function(b){for(var _=[],w=0;w<b;w+=4)_.push(a());return new h.init(_,b)}}),p=u.enc={},f=p.Hex={stringify:function(b){for(var _=b.words,w=b.sigBytes,x=[],y=0;y<w;y++){var T=_[y>>>2]>>>24-y%4*8&255;x.push((T>>>4).toString(16)),x.push((T&15).toString(16))}return x.join("")},parse:function(b){for(var _=b.length,w=[],x=0;x<_;x+=2)w[x>>>3]|=parseInt(b.substr(x,2),16)<<24-x%8*4;return new h.init(w,_/2)}},d=p.Latin1={stringify:function(b){for(var _=b.words,w=b.sigBytes,x=[],y=0;y<w;y++){var T=_[y>>>2]>>>24-y%4*8&255;x.push(String.fromCharCode(T))}return x.join("")},parse:function(b){for(var _=b.length,w=[],x=0;x<_;x++)w[x>>>2]|=(b.charCodeAt(x)&255)<<24-x%4*8;return new h.init(w,_)}},m=p.Utf8={stringify:function(b){try{return decodeURIComponent(escape(d.stringify(b)))}catch(_){throw new Error("Malformed UTF-8 data")}},parse:function(b){return d.parse(unescape(encodeURIComponent(b)))}},v=c.BufferedBlockAlgorithm=l.extend({reset:function(){this._data=new h.init,this._nDataBytes=0},_append:function(b){typeof b=="string"&&(b=m.parse(b)),this._data.concat(b),this._nDataBytes+=b.sigBytes},_process:function(b){var _,w=this._data,x=w.words,y=w.sigBytes,T=this.blockSize,I=T*4,j=y/I;b?j=n.ceil(j):j=n.max((j|0)-this._minBufferSize,0);var E=j*T,C=n.min(E*4,y);if(E){for(var L=0;L<E;L+=T)this._doProcessBlock(x,L);_=x.splice(0,E),w.sigBytes-=C}return new h.init(_,C)},clone:function(){var b=l.clone.call(this);return b._data=this._data.clone(),b},_minBufferSize:0});c.Hasher=v.extend({cfg:l.extend(),init:function(b){this.cfg=this.cfg.extend(b),this.reset()},reset:function(){v.reset.call(this),this._doReset()},update:function(b){return this._append(b),this._process(),this},finalize:function(b){b&&this._append(b);var _=this._doFinalize();return _},blockSize:16,_createHelper:function(b){return function(_,w){return new b.init(w).finalize(_)}},_createHmacHelper:function(b){return function(_,w){return new S.HMAC.init(b,w).finalize(_)}}});var S=u.algo={};return u})(Math);return r})})(zr)),zr.exports}(function(t,e){(function(r,n){t.exports=n(ct())})(ye,function(r){return(function(n){var i=r,s=i.lib,a=s.WordArray,o=s.Hasher,u=i.algo,c=[];(function(){for(var m=0;m<64;m++)c[m]=n.abs(n.sin(m+1))*4294967296|0})();var l=u.MD5=o.extend({_doReset:function(){this._hash=new a.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(m,v){for(var S=0;S<16;S++){var b=v+S,_=m[b];m[b]=(_<<8|_>>>24)&16711935|(_<<24|_>>>8)&4278255360}var w=this._hash.words,x=m[v+0],y=m[v+1],T=m[v+2],I=m[v+3],j=m[v+4],E=m[v+5],C=m[v+6],L=m[v+7],N=m[v+8],B=m[v+9],O=m[v+10],$=m[v+11],U=m[v+12],V=m[v+13],q=m[v+14],z=m[v+15],A=w[0],P=w[1],D=w[2],R=w[3];A=h(A,P,D,R,x,7,c[0]),R=h(R,A,P,D,y,12,c[1]),D=h(D,R,A,P,T,17,c[2]),P=h(P,D,R,A,I,22,c[3]),A=h(A,P,D,R,j,7,c[4]),R=h(R,A,P,D,E,12,c[5]),D=h(D,R,A,P,C,17,c[6]),P=h(P,D,R,A,L,22,c[7]),A=h(A,P,D,R,N,7,c[8]),R=h(R,A,P,D,B,12,c[9]),D=h(D,R,A,P,O,17,c[10]),P=h(P,D,R,A,$,22,c[11]),A=h(A,P,D,R,U,7,c[12]),R=h(R,A,P,D,V,12,c[13]),D=h(D,R,A,P,q,17,c[14]),P=h(P,D,R,A,z,22,c[15]),A=p(A,P,D,R,y,5,c[16]),R=p(R,A,P,D,C,9,c[17]),D=p(D,R,A,P,$,14,c[18]),P=p(P,D,R,A,x,20,c[19]),A=p(A,P,D,R,E,5,c[20]),R=p(R,A,P,D,O,9,c[21]),D=p(D,R,A,P,z,14,c[22]),P=p(P,D,R,A,j,20,c[23]),A=p(A,P,D,R,B,5,c[24]),R=p(R,A,P,D,q,9,c[25]),D=p(D,R,A,P,I,14,c[26]),P=p(P,D,R,A,N,20,c[27]),A=p(A,P,D,R,V,5,c[28]),R=p(R,A,P,D,T,9,c[29]),D=p(D,R,A,P,L,14,c[30]),P=p(P,D,R,A,U,20,c[31]),A=f(A,P,D,R,E,4,c[32]),R=f(R,A,P,D,N,11,c[33]),D=f(D,R,A,P,$,16,c[34]),P=f(P,D,R,A,q,23,c[35]),A=f(A,P,D,R,y,4,c[36]),R=f(R,A,P,D,j,11,c[37]),D=f(D,R,A,P,L,16,c[38]),P=f(P,D,R,A,O,23,c[39]),A=f(A,P,D,R,V,4,c[40]),R=f(R,A,P,D,x,11,c[41]),D=f(D,R,A,P,I,16,c[42]),P=f(P,D,R,A,C,23,c[43]),A=f(A,P,D,R,B,4,c[44]),R=f(R,A,P,D,U,11,c[45]),D=f(D,R,A,P,z,16,c[46]),P=f(P,D,R,A,T,23,c[47]),A=d(A,P,D,R,x,6,c[48]),R=d(R,A,P,D,L,10,c[49]),D=d(D,R,A,P,q,15,c[50]),P=d(P,D,R,A,E,21,c[51]),A=d(A,P,D,R,U,6,c[52]),R=d(R,A,P,D,I,10,c[53]),D=d(D,R,A,P,O,15,c[54]),P=d(P,D,R,A,y,21,c[55]),A=d(A,P,D,R,N,6,c[56]),R=d(R,A,P,D,z,10,c[57]),D=d(D,R,A,P,C,15,c[58]),P=d(P,D,R,A,V,21,c[59]),A=d(A,P,D,R,j,6,c[60]),R=d(R,A,P,D,$,10,c[61]),D=d(D,R,A,P,T,15,c[62]),P=d(P,D,R,A,B,21,c[63]),w[0]=w[0]+A|0,w[1]=w[1]+P|0,w[2]=w[2]+D|0,w[3]=w[3]+R|0},_doFinalize:function(){var m=this._data,v=m.words,S=this._nDataBytes*8,b=m.sigBytes*8;v[b>>>5]|=128<<24-b%32;var _=n.floor(S/4294967296),w=S;v[(b+64>>>9<<4)+15]=(_<<8|_>>>24)&16711935|(_<<24|_>>>8)&4278255360,v[(b+64>>>9<<4)+14]=(w<<8|w>>>24)&16711935|(w<<24|w>>>8)&4278255360,m.sigBytes=(v.length+1)*4,this._process();for(var x=this._hash,y=x.words,T=0;T<4;T++){var I=y[T];y[T]=(I<<8|I>>>24)&16711935|(I<<24|I>>>8)&4278255360}return x},clone:function(){var m=o.clone.call(this);return m._hash=this._hash.clone(),m}});function h(m,v,S,b,_,w,x){var y=m+(v&S|~v&b)+_+x;return(y<<w|y>>>32-w)+v}function p(m,v,S,b,_,w,x){var y=m+(v&b|S&~b)+_+x;return(y<<w|y>>>32-w)+v}function f(m,v,S,b,_,w,x){var y=m+(v^S^b)+_+x;return(y<<w|y>>>32-w)+v}function d(m,v,S,b,_,w,x){var y=m+(S^(v|~b))+_+x;return(y<<w|y>>>32-w)+v}i.MD5=o._createHelper(l),i.HmacMD5=o._createHmacHelper(l)})(Math),r.MD5})})(Xa);var wg=Xa.exports,eo={exports:{}};(function(t,e){(function(r,n){t.exports=n(ct())})(ye,function(r){return(function(){var n=r,i=n.lib,s=i.WordArray,a=n.enc;a.Base64={stringify:function(u){var c=u.words,l=u.sigBytes,h=this._map;u.clamp();for(var p=[],f=0;f<l;f+=3)for(var d=c[f>>>2]>>>24-f%4*8&255,m=c[f+1>>>2]>>>24-(f+1)%4*8&255,v=c[f+2>>>2]>>>24-(f+2)%4*8&255,S=d<<16|m<<8|v,b=0;b<4&&f+b*.75<l;b++)p.push(h.charAt(S>>>6*(3-b)&63));var _=h.charAt(64);if(_)for(;p.length%4;)p.push(_);return p.join("")},parse:function(u){var c=u.length,l=this._map,h=this._reverseMap;if(!h){h=this._reverseMap=[];for(var p=0;p<l.length;p++)h[l.charCodeAt(p)]=p}var f=l.charAt(64);if(f){var d=u.indexOf(f);d!==-1&&(c=d)}return o(u,c,h)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function o(u,c,l){for(var h=[],p=0,f=0;f<c;f++)if(f%4){var d=l[u.charCodeAt(f-1)]<<f%4*2,m=l[u.charCodeAt(f)]>>>6-f%4*2,v=d|m;h[p>>>2]|=v<<24-p%4*8,p++}return s.create(h,p)}})(),r.enc.Base64})})(eo);var Sg=eo.exports,Eg={exports:{}};(function(t,e){(function(r,n){t.exports=n(ct())})(ye,function(r){return r.enc.Utf8})})(Eg);var Tg={exports:{}},Wr={exports:{}},Gr={exports:{}},ls;function Cg(){return ls||(ls=1,(function(t,e){(function(r,n){t.exports=n(ct())})(ye,function(r){return(function(){var n=r,i=n.lib,s=i.WordArray,a=i.Hasher,o=n.algo,u=[],c=o.SHA1=a.extend({_doReset:function(){this._hash=new s.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(l,h){for(var p=this._hash.words,f=p[0],d=p[1],m=p[2],v=p[3],S=p[4],b=0;b<80;b++){if(b<16)u[b]=l[h+b]|0;else{var _=u[b-3]^u[b-8]^u[b-14]^u[b-16];u[b]=_<<1|_>>>31}var w=(f<<5|f>>>27)+S+u[b];b<20?w+=(d&m|~d&v)+1518500249:b<40?w+=(d^m^v)+1859775393:b<60?w+=(d&m|d&v|m&v)-1894007588:w+=(d^m^v)-899497514,S=v,v=m,m=d<<30|d>>>2,d=f,f=w}p[0]=p[0]+f|0,p[1]=p[1]+d|0,p[2]=p[2]+m|0,p[3]=p[3]+v|0,p[4]=p[4]+S|0},_doFinalize:function(){var l=this._data,h=l.words,p=this._nDataBytes*8,f=l.sigBytes*8;return h[f>>>5]|=128<<24-f%32,h[(f+64>>>9<<4)+14]=Math.floor(p/4294967296),h[(f+64>>>9<<4)+15]=p,l.sigBytes=h.length*4,this._process(),this._hash},clone:function(){var l=a.clone.call(this);return l._hash=this._hash.clone(),l}});n.SHA1=a._createHelper(c),n.HmacSHA1=a._createHmacHelper(c)})(),r.SHA1})})(Gr)),Gr.exports}var Kr={exports:{}},hs;function Ag(){return hs||(hs=1,(function(t,e){(function(r,n){t.exports=n(ct())})(ye,function(r){(function(){var n=r,i=n.lib,s=i.Base,a=n.enc,o=a.Utf8,u=n.algo;u.HMAC=s.extend({init:function(c,l){c=this._hasher=new c.init,typeof l=="string"&&(l=o.parse(l));var h=c.blockSize,p=h*4;l.sigBytes>p&&(l=c.finalize(l)),l.clamp();for(var f=this._oKey=l.clone(),d=this._iKey=l.clone(),m=f.words,v=d.words,S=0;S<h;S++)m[S]^=1549556828,v[S]^=909522486;f.sigBytes=d.sigBytes=p,this.reset()},reset:function(){var c=this._hasher;c.reset(),c.update(this._iKey)},update:function(c){return this._hasher.update(c),this},finalize:function(c){var l=this._hasher,h=l.finalize(c);l.reset();var p=l.finalize(this._oKey.clone().concat(h));return p}})})()})})(Kr)),Kr.exports}var ps;function to(){return ps||(ps=1,(function(t,e){(function(r,n,i){t.exports=n(ct(),Cg(),Ag())})(ye,function(r){return(function(){var n=r,i=n.lib,s=i.Base,a=i.WordArray,o=n.algo,u=o.MD5,c=o.EvpKDF=s.extend({cfg:s.extend({keySize:128/32,hasher:u,iterations:1}),init:function(l){this.cfg=this.cfg.extend(l)},compute:function(l,h){for(var p,f=this.cfg,d=f.hasher.create(),m=a.create(),v=m.words,S=f.keySize,b=f.iterations;v.length<S;){p&&d.update(p),p=d.update(l).finalize(h),d.reset();for(var _=1;_<b;_++)p=d.finalize(p),d.reset();m.concat(p)}return m.sigBytes=S*4,m}});n.EvpKDF=function(l,h,p){return c.create(p).compute(l,h)}})(),r.EvpKDF})})(Wr)),Wr.exports}var Jr={exports:{}},fs;function Ig(){return fs||(fs=1,(function(t,e){(function(r,n,i){t.exports=n(ct(),to())})(ye,function(r){r.lib.Cipher||(function(n){var i=r,s=i.lib,a=s.Base,o=s.WordArray,u=s.BufferedBlockAlgorithm,c=i.enc;c.Utf8;var l=c.Base64,h=i.algo,p=h.EvpKDF,f=s.Cipher=u.extend({cfg:a.extend(),createEncryptor:function(E,C){return this.create(this._ENC_XFORM_MODE,E,C)},createDecryptor:function(E,C){return this.create(this._DEC_XFORM_MODE,E,C)},init:function(E,C,L){this.cfg=this.cfg.extend(L),this._xformMode=E,this._key=C,this.reset()},reset:function(){u.reset.call(this),this._doReset()},process:function(E){return this._append(E),this._process()},finalize:function(E){E&&this._append(E);var C=this._doFinalize();return C},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:(function(){function E(C){return typeof C=="string"?j:y}return function(C){return{encrypt:function(L,N,B){return E(N).encrypt(C,L,N,B)},decrypt:function(L,N,B){return E(N).decrypt(C,L,N,B)}}}})()});s.StreamCipher=f.extend({_doFinalize:function(){var E=this._process(!0);return E},blockSize:1});var d=i.mode={},m=s.BlockCipherMode=a.extend({createEncryptor:function(E,C){return this.Encryptor.create(E,C)},createDecryptor:function(E,C){return this.Decryptor.create(E,C)},init:function(E,C){this._cipher=E,this._iv=C}}),v=d.CBC=(function(){var E=m.extend();E.Encryptor=E.extend({processBlock:function(L,N){var B=this._cipher,O=B.blockSize;C.call(this,L,N,O),B.encryptBlock(L,N),this._prevBlock=L.slice(N,N+O)}}),E.Decryptor=E.extend({processBlock:function(L,N){var B=this._cipher,O=B.blockSize,$=L.slice(N,N+O);B.decryptBlock(L,N),C.call(this,L,N,O),this._prevBlock=$}});function C(L,N,B){var O,$=this._iv;$?(O=$,this._iv=n):O=this._prevBlock;for(var U=0;U<B;U++)L[N+U]^=O[U]}return E})(),S=i.pad={},b=S.Pkcs7={pad:function(E,C){for(var L=C*4,N=L-E.sigBytes%L,B=N<<24|N<<16|N<<8|N,O=[],$=0;$<N;$+=4)O.push(B);var U=o.create(O,N);E.concat(U)},unpad:function(E){var C=E.words[E.sigBytes-1>>>2]&255;E.sigBytes-=C}};s.BlockCipher=f.extend({cfg:f.cfg.extend({mode:v,padding:b}),reset:function(){var E;f.reset.call(this);var C=this.cfg,L=C.iv,N=C.mode;this._xformMode==this._ENC_XFORM_MODE?E=N.createEncryptor:(E=N.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==E?this._mode.init(this,L&&L.words):(this._mode=E.call(N,this,L&&L.words),this._mode.__creator=E)},_doProcessBlock:function(E,C){this._mode.processBlock(E,C)},_doFinalize:function(){var E,C=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(C.pad(this._data,this.blockSize),E=this._process(!0)):(E=this._process(!0),C.unpad(E)),E},blockSize:128/32});var _=s.CipherParams=a.extend({init:function(E){this.mixIn(E)},toString:function(E){return(E||this.formatter).stringify(this)}}),w=i.format={},x=w.OpenSSL={stringify:function(E){var C,L=E.ciphertext,N=E.salt;return N?C=o.create([1398893684,1701076831]).concat(N).concat(L):C=L,C.toString(l)},parse:function(E){var C,L=l.parse(E),N=L.words;return N[0]==1398893684&&N[1]==1701076831&&(C=o.create(N.slice(2,4)),N.splice(0,4),L.sigBytes-=16),_.create({ciphertext:L,salt:C})}},y=s.SerializableCipher=a.extend({cfg:a.extend({format:x}),encrypt:function(E,C,L,N){N=this.cfg.extend(N);var B=E.createEncryptor(L,N),O=B.finalize(C),$=B.cfg;return _.create({ciphertext:O,key:L,iv:$.iv,algorithm:E,mode:$.mode,padding:$.padding,blockSize:E.blockSize,formatter:N.format})},decrypt:function(E,C,L,N){N=this.cfg.extend(N),C=this._parse(C,N.format);var B=E.createDecryptor(L,N).finalize(C.ciphertext);return B},_parse:function(E,C){return typeof E=="string"?C.parse(E,this):E}}),T=i.kdf={},I=T.OpenSSL={execute:function(E,C,L,N,B){if(N||(N=o.random(64/8)),B)var O=p.create({keySize:C+L,hasher:B}).compute(E,N);else var O=p.create({keySize:C+L}).compute(E,N);var $=o.create(O.words.slice(C),L*4);return O.sigBytes=C*4,_.create({key:O,iv:$,salt:N})}},j=s.PasswordBasedCipher=y.extend({cfg:y.cfg.extend({kdf:I}),encrypt:function(E,C,L,N){N=this.cfg.extend(N);var B=N.kdf.execute(L,E.keySize,E.ivSize,N.salt,N.hasher);N.iv=B.iv;var O=y.encrypt.call(this,E,C,B.key,N);return O.mixIn(B),O},decrypt:function(E,C,L,N){N=this.cfg.extend(N),C=this._parse(C,N.format);var B=N.kdf.execute(L,E.keySize,E.ivSize,C.salt,N.hasher);N.iv=B.iv;var O=y.decrypt.call(this,E,C,B.key,N);return O}})})()})})(Jr)),Jr.exports}(function(t,e){(function(r,n,i){t.exports=n(ct(),Sg,wg,to(),Ig())})(ye,function(r){return(function(){var n=r,i=n.lib,s=i.BlockCipher,a=n.algo,o=[],u=[],c=[],l=[],h=[],p=[],f=[],d=[],m=[],v=[];(function(){for(var _=[],w=0;w<256;w++)w<128?_[w]=w<<1:_[w]=w<<1^283;for(var x=0,y=0,w=0;w<256;w++){var T=y^y<<1^y<<2^y<<3^y<<4;T=T>>>8^T&255^99,o[x]=T,u[T]=x;var I=_[x],j=_[I],E=_[j],C=_[T]*257^T*16843008;c[x]=C<<24|C>>>8,l[x]=C<<16|C>>>16,h[x]=C<<8|C>>>24,p[x]=C;var C=E*16843009^j*65537^I*257^x*16843008;f[T]=C<<24|C>>>8,d[T]=C<<16|C>>>16,m[T]=C<<8|C>>>24,v[T]=C,x?(x=I^_[_[_[E^I]]],y^=_[_[y]]):x=y=1}})();var S=[0,1,2,4,8,16,32,64,128,27,54],b=a.AES=s.extend({_doReset:function(){var _;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var w=this._keyPriorReset=this._key,x=w.words,y=w.sigBytes/4,T=this._nRounds=y+6,I=(T+1)*4,j=this._keySchedule=[],E=0;E<I;E++)E<y?j[E]=x[E]:(_=j[E-1],E%y?y>6&&E%y==4&&(_=o[_>>>24]<<24|o[_>>>16&255]<<16|o[_>>>8&255]<<8|o[_&255]):(_=_<<8|_>>>24,_=o[_>>>24]<<24|o[_>>>16&255]<<16|o[_>>>8&255]<<8|o[_&255],_^=S[E/y|0]<<24),j[E]=j[E-y]^_);for(var C=this._invKeySchedule=[],L=0;L<I;L++){var E=I-L;if(L%4)var _=j[E];else var _=j[E-4];L<4||E<=4?C[L]=_:C[L]=f[o[_>>>24]]^d[o[_>>>16&255]]^m[o[_>>>8&255]]^v[o[_&255]]}}},encryptBlock:function(_,w){this._doCryptBlock(_,w,this._keySchedule,c,l,h,p,o)},decryptBlock:function(_,w){var x=_[w+1];_[w+1]=_[w+3],_[w+3]=x,this._doCryptBlock(_,w,this._invKeySchedule,f,d,m,v,u);var x=_[w+1];_[w+1]=_[w+3],_[w+3]=x},_doCryptBlock:function(_,w,x,y,T,I,j,E){for(var C=this._nRounds,L=_[w]^x[0],N=_[w+1]^x[1],B=_[w+2]^x[2],O=_[w+3]^x[3],$=4,U=1;U<C;U++){var V=y[L>>>24]^T[N>>>16&255]^I[B>>>8&255]^j[O&255]^x[$++],q=y[N>>>24]^T[B>>>16&255]^I[O>>>8&255]^j[L&255]^x[$++],z=y[B>>>24]^T[O>>>16&255]^I[L>>>8&255]^j[N&255]^x[$++],A=y[O>>>24]^T[L>>>16&255]^I[N>>>8&255]^j[B&255]^x[$++];L=V,N=q,B=z,O=A}var V=(E[L>>>24]<<24|E[N>>>16&255]<<16|E[B>>>8&255]<<8|E[O&255])^x[$++],q=(E[N>>>24]<<24|E[B>>>16&255]<<16|E[O>>>8&255]<<8|E[L&255])^x[$++],z=(E[B>>>24]<<24|E[O>>>16&255]<<16|E[L>>>8&255]<<8|E[N&255])^x[$++],A=(E[O>>>24]<<24|E[L>>>16&255]<<16|E[N>>>8&255]<<8|E[B&255])^x[$++];_[w]=V,_[w+1]=q,_[w+2]=z,_[w+3]=A},keySize:256/32});n.AES=s._createHelper(b)})(),r.AES})})(Tg);var Rg="0123456789abcdefghijklmnopqrstuvwxyz";function ze(t){return Rg.charAt(t)}function kg(t,e){return t&e}function ar(t,e){return t|e}function ds(t,e){return t^e}function gs(t,e){return t&~e}function Og(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 Pg(t){for(var e=0;t!=0;)t&=t-1,++e;return e}var Et="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ro="=";function Mt(t){var e,r,n="";for(e=0;e+3<=t.length;e+=3)r=parseInt(t.substring(e,e+3),16),n+=Et.charAt(r>>6)+Et.charAt(r&63);for(e+1==t.length?(r=parseInt(t.substring(e,e+1),16),n+=Et.charAt(r<<2)):e+2==t.length&&(r=parseInt(t.substring(e,e+2),16),n+=Et.charAt(r>>2)+Et.charAt((r&3)<<4));(n.length&3)>0;)n+=ro;return n}function ms(t){var e="",r,n=0,i=0;for(r=0;r<t.length&&t.charAt(r)!=ro;++r){var s=Et.indexOf(t.charAt(r));s<0||(n==0?(e+=ze(s>>2),i=s&3,n=1):n==1?(e+=ze(i<<2|s>>4),i=s&15,n=2):n==2?(e+=ze(i),e+=ze(s>>2),i=s&3,n=3):(e+=ze(i<<2|s>>4),e+=ze(s&15),n=0))}return n==1&&(e+=ze(i<<2)),e}var bt,$g={decode:function(t){var e;if(bt===void 0){var r="0123456789ABCDEF",n=` \f
20
+ \r  \u2028\u2029`;for(bt={},e=0;e<16;++e)bt[r.charAt(e)]=e;for(r=r.toLowerCase(),e=10;e<16;++e)bt[r.charAt(e)]=e;for(e=0;e<n.length;++e)bt[n.charAt(e)]=-1}var i=[],s=0,a=0;for(e=0;e<t.length;++e){var o=t.charAt(e);if(o=="=")break;if(o=bt[o],o!=-1){if(o===void 0)throw new Error("Illegal character at offset "+e);s|=o,++a>=2?(i[i.length]=s,s=0,a=0):s<<=4}}if(a)throw new Error("Hex encoding incomplete: 4 bits missing");return i}},lt,An={decode:function(t){var e;if(lt===void 0){var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n=`= \f
21
+ \r  \u2028\u2029`;for(lt=Object.create(null),e=0;e<64;++e)lt[r.charAt(e)]=e;for(lt["-"]=62,lt._=63,e=0;e<n.length;++e)lt[n.charAt(e)]=-1}var i=[],s=0,a=0;for(e=0;e<t.length;++e){var o=t.charAt(e);if(o=="=")break;if(o=lt[o],o!=-1){if(o===void 0)throw new Error("Illegal character at offset "+e);s|=o,++a>=4?(i[i.length]=s>>16,i[i.length]=s>>8&255,i[i.length]=s&255,s=0,a=0):s<<=6}}switch(a){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=An.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 An.decode(t)}},_t=1e13,Lt=(function(){function t(e){this.buf=[+e||0]}return t.prototype.mulAdd=function(e,r){var n=this.buf,i=n.length,s,a;for(s=0;s<i;++s)a=n[s]*e+r,a<_t?r=0:(r=0|a/_t,a-=r*_t),n[s]=a;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+=_t,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+=(_t+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*_t+e[n];return r},t.prototype.simplify=function(){var e=this.buf;return e.length==1?e[0]:this},t})(),no="…",Dg=/^(\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)?)?$/,Ng=/^(\d\d\d\d)(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])([01]\d|2[0-3])(?:([0-5]\d)(?:([0-5]\d)(?:[.,](\d{1,3}))?)?)?(Z|[-+](?:[0]\d|1[0-2])([0-5]\d)?)?$/;function At(t,e){return t.length>e&&(t=t.substring(0,e)+no),t}var Yr=(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,a=e;a<r;)i=this.get(a++),s=this.get(a++),n+=String.fromCharCode(i<<8|s);return n},t.prototype.parseTime=function(e,r,n){var i=this.parseStringISO(e,r),s=(n?Dg:Ng).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,a,o="";n==s&&++e<r;)n=this.get(e);if(a=r-e,a===0)return i?-1:0;if(a>4){for(o=n,a<<=3;((+o^s)&128)==0;)o=+o<<1,--a;o="("+a+` bit)
23
23
  `}i&&(n=n-256);for(var u=new Lt(n),c=e+1;c<r;++c)u.mulAdd(256,this.get(c));return o+u.toString()},t.prototype.parseBitString=function(e,r,n){for(var i=this.get(e),s=(r-e-1<<3)-i,a="("+s+` bit)
24
24
  `,o="",u=e+1;u<r;++u){for(var c=this.get(u),l=u==r-1?i:0,h=7;h>=l;--h)o+=c>>h&1?"1":"0";if(o.length>n)return a+At(o,n)}return a+o},t.prototype.parseOctetString=function(e,r,n){if(this.isASCII(e,r))return At(this.parseStringISO(e,r),n);var i=r-e,s="("+i+` byte)
25
- `;n/=2,i>n&&(r=e+n);for(var a=e;a<r;++a)s+=this.hexByte(this.get(a));return i>n&&(s+=Za),s},t.prototype.parseOID=function(e,r,n){for(var i="",s=new Lt,a=0,o=e;o<r;++o){var u=this.get(o);if(s.mulAdd(128,u&127),a+=7,!(u&128)){if(i==="")if(s=s.simplify(),s instanceof Lt)s.sub(80),i="2."+s.toString();else{var c=s<80?s<40?0:1:2;i=c+"."+(s-c*40)}else i+="."+s.toString();if(i.length>n)return At(i,n);s=new Lt,a=0}}return a>0&&(i+=".incomplete"),i},t})(),Rg=(function(){function t(e,r,n,i,s){if(!(i instanceof ps))throw new Error("Invalid tag value.");this.stream=e,this.header=r,this.length=n,this.tag=i,this.sub=s}return t.prototype.typeName=function(){switch(this.tag.tagClass){case 0:switch(this.tag.tagNumber){case 0:return"EOC";case 1:return"BOOLEAN";case 2:return"INTEGER";case 3:return"BIT_STRING";case 4:return"OCTET_STRING";case 5:return"NULL";case 6:return"OBJECT_IDENTIFIER";case 7:return"ObjectDescriptor";case 8:return"EXTERNAL";case 9:return"REAL";case 10:return"ENUMERATED";case 11:return"EMBEDDED_PDV";case 12:return"UTF8String";case 16:return"SEQUENCE";case 17:return"SET";case 18:return"NumericString";case 19:return"PrintableString";case 20:return"TeletexString";case 21:return"VideotexString";case 22:return"IA5String";case 23:return"UTCTime";case 24:return"GeneralizedTime";case 25:return"GraphicString";case 26:return"VisibleString";case 27:return"GeneralString";case 28:return"UniversalString";case 30:return"BMPString"}return"Universal_"+this.tag.tagNumber.toString();case 1:return"Application_"+this.tag.tagNumber.toString();case 2:return"["+this.tag.tagNumber.toString()+"]";case 3:return"Private_"+this.tag.tagNumber.toString()}},t.prototype.content=function(e){if(this.tag===void 0)return null;e===void 0&&(e=1/0);var r=this.posContent(),n=Math.abs(this.length);if(!this.tag.isUniversal())return this.sub!==null?"("+this.sub.length+" elem)":this.stream.parseOctetString(r,r+n,e);switch(this.tag.tagNumber){case 1:return this.stream.get(r)===0?"false":"true";case 2:return this.stream.parseInteger(r,r+n);case 3:return this.sub?"("+this.sub.length+" elem)":this.stream.parseBitString(r,r+n,e);case 4:return this.sub?"("+this.sub.length+" elem)":this.stream.parseOctetString(r,r+n,e);case 6:return this.stream.parseOID(r,r+n,e);case 16:case 17:return this.sub!==null?"("+this.sub.length+" elem)":"(no elem)";case 12:return At(this.stream.parseStringUTF(r,r+n),e);case 18:case 19:case 20:case 21:case 22:case 26:return At(this.stream.parseStringISO(r,r+n),e);case 30:return At(this.stream.parseStringBMP(r,r+n),e);case 23:case 24:return this.stream.parseTime(r,r+n,this.tag.tagNumber==23)}return null},t.prototype.toString=function(){return this.typeName()+"@"+this.stream.pos+"[header:"+this.header+",length:"+this.length+",sub:"+(this.sub===null?"null":this.sub.length)+"]"},t.prototype.toPrettyString=function(e){e===void 0&&(e="");var r=e+this.typeName()+" @"+this.stream.pos;if(this.length>=0&&(r+="+"),r+=this.length,this.tag.tagConstructed?r+=" (constructed)":this.tag.isUniversal()&&(this.tag.tagNumber==3||this.tag.tagNumber==4)&&this.sub!==null&&(r+=" (encapsulates)"),r+=`
26
- `,this.sub!==null){e+=" ";for(var n=0,i=this.sub.length;n<i;++n)r+=this.sub[n].toPrettyString(e)}return r},t.prototype.posStart=function(){return this.stream.pos},t.prototype.posContent=function(){return this.stream.pos+this.header},t.prototype.posEnd=function(){return this.stream.pos+this.header+Math.abs(this.length)},t.prototype.toHexString=function(){return this.stream.hexDump(this.posStart(),this.posEnd(),!0)},t.decodeLength=function(e){var r=e.get(),n=r&127;if(n==r)return n;if(n>6)throw new Error("Length over 48 bits not supported at position "+(e.pos-1));if(n===0)return null;r=0;for(var i=0;i<n;++i)r=r*256+e.get();return r},t.prototype.getHexStringValue=function(){var e=this.toHexString(),r=this.header*2,n=this.length*2;return e.substring(r,r+n)},t.decode=function(e){var r;e instanceof Yr?r=e:r=new Yr(e,0);var n=new Yr(r),i=new ps(r),s=t.decodeLength(r),a=r.pos,o=a-n.pos,u=null,c=function(){var h=[];if(s!==null){for(var p=a+s;r.pos<p;)h[h.length]=t.decode(r);if(r.pos!=p)throw new Error("Content size is not correct for container starting at offset "+a)}else try{for(;;){var f=t.decode(r);if(f.tag.isEOC())break;h[h.length]=f}s=a-r.pos}catch(d){throw new Error("Exception while decoding undefined length content: "+d)}return h};if(i.tagConstructed)u=c();else if(i.isUniversal()&&(i.tagNumber==3||i.tagNumber==4))try{if(i.tagNumber==3&&r.get()!=0)throw new Error("BIT STRINGs with unused bits cannot encapsulate.");u=c();for(var l=0;l<u.length;++l)if(u[l].tag.isEOC())throw new Error("EOC is not supposed to be actual content.")}catch(h){u=null}if(u===null){if(s===null)throw new Error("We can't skip over an invalid tag with undefined length at offset "+a);r.pos=a+Math.abs(s)}return new t(n,o,s,i,u)},t})(),ps=(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 Lt;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})(),at,kg=0xdeadbeefcafe,fs=(kg&16777215)==15715070,ve=[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],Og=(1<<26)/ve[ve.length-1],G=(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,a="",o=this.t,u=this.DB-o*this.DB%r;if(o-- >0)for(u<this.DB&&(i=this[o]>>u)>0&&(s=!0,a=ze(i));o>=0;)u<r?(i=(this[o]&(1<<u)-1)<<r-u,i|=this[--o]>>(u+=this.DB-r)):(i=this[o]>>(u-=r)&n,u<=0&&(u+=this.DB,--o)),i>0&&(s=!0),s&&(a+=ze(i));return s?a:"0"},t.prototype.negate=function(){var e=Y();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)+or(this[this.t-1]^this.s&this.DM)},t.prototype.mod=function(e){var r=Y();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 ds(r):n=new gs(r),this.exp(e,n)},t.prototype.clone=function(){var e=Y();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=Y();return this.bitwiseTo(e,Sg,r),r},t.prototype.or=function(e){var r=Y();return this.bitwiseTo(e,ar,r),r},t.prototype.xor=function(e){var r=Y();return this.bitwiseTo(e,us,r),r},t.prototype.andNot=function(e){var r=Y();return this.bitwiseTo(e,ls,r),r},t.prototype.not=function(){for(var e=Y(),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=Y();return e<0?this.rShiftTo(-e,r):this.lShiftTo(e,r),r},t.prototype.shiftRight=function(e){var r=Y();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+Eg(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+=Tg(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,ar)},t.prototype.clearBit=function(e){return this.changeBit(e,ls)},t.prototype.flipBit=function(e){return this.changeBit(e,us)},t.prototype.add=function(e){var r=Y();return this.addTo(e,r),r},t.prototype.subtract=function(e){var r=Y();return this.subTo(e,r),r},t.prototype.multiply=function(e){var r=Y();return this.multiplyTo(e,r),r},t.prototype.divide=function(e){var r=Y();return this.divRemTo(e,r,null),r},t.prototype.remainder=function(e){var r=Y();return this.divRemTo(e,null,r),r},t.prototype.divideAndRemainder=function(e){var r=Y(),n=Y();return this.divRemTo(e,r,n),[r,n]},t.prototype.modPow=function(e,r){var n=e.bitLength(),i,s=nt(1),a;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?a=new ds(r):r.isEven()?a=new Dg(r):a=new gs(r);var o=[],u=3,c=i-1,l=(1<<i)-1;if(o[1]=a.convert(this),i>1){var h=Y();for(a.sqrTo(o[1],h);u<=l;)o[u]=Y(),a.mulTo(h,o[u-2],o[u]),u+=2}var p=e.t-1,f,d=!0,m=Y(),v;for(n=or(e[p])-1;p>=0;){for(n>=c?f=e[p]>>n-c&l:(f=(e[p]&(1<<n+1)-1)<<c-n,p>0&&(f|=e[p-1]>>this.DB+n-c)),u=i;(f&1)==0;)f>>=1,--u;if((n-=u)<0&&(n+=this.DB,--p),d)o[f].copyTo(s),d=!1;else{for(;u>1;)a.sqrTo(s,m),a.sqrTo(m,s),u-=2;u>0?a.sqrTo(s,m):(v=s,s=m,m=v),a.mulTo(m,o[f],s)}for(;p>=0&&(e[p]&1<<n)==0;)a.sqrTo(s,m),v=s,s=m,m=v,--n<0&&(n=this.DB-1,--p)}return a.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=nt(1),a=nt(0),o=nt(0),u=nt(1);n.signum()!=0;){for(;n.isEven();)n.rShiftTo(1,n),r?((!s.isEven()||!a.isEven())&&(s.addTo(this,s),a.subTo(e,a)),s.rShiftTo(1,s)):a.isEven()||a.subTo(e,a),a.rShiftTo(1,a);for(;i.isEven();)i.rShiftTo(1,i),r?((!o.isEven()||!u.isEven())&&(o.addTo(this,o),u.subTo(e,u)),o.rShiftTo(1,o)):u.isEven()||u.subTo(e,u),u.rShiftTo(1,u);n.compareTo(i)>=0?(n.subTo(i,n),r&&s.subTo(o,s),a.subTo(u,a)):(i.subTo(n,i),r&&o.subTo(s,o),u.subTo(a,u))}if(i.compareTo(t.ONE)!=0)return t.ZERO;if(u.compareTo(e)>=0)return u.subtract(e);if(u.signum()<0)u.addTo(e,u);else return u;return u.signum()<0?u.add(e):u},t.prototype.pow=function(e){return this.exp(e,new Pg)},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(),a=n.getLowestSetBit();if(a<0)return r;for(s<a&&(a=s),a>0&&(r.rShiftTo(a,r),n.rShiftTo(a,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 a>0&&n.lShiftTo(a,n),n},t.prototype.isProbablePrime=function(e){var r,n=this.abs();if(n.t==1&&n[0]<=ve[ve.length-1]){for(r=0;r<ve.length;++r)if(n[0]==ve[r])return!0;return!1}if(n.isEven())return!1;for(r=1;r<ve.length;){for(var i=ve[r],s=r+1;s<ve.length&&i<Og;)i*=ve[s++];for(i=n.modInt(i);r<s;)if(i%ve[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,a=0;--i>=0;){var o=n==8?+e[i]&255:vs(e,i);if(o<0){e.charAt(i)=="-"&&(s=!0);continue}s=!1,a==0?this[this.t++]=o:a+n>this.DB?(this[this.t-1]|=(o&(1<<this.DB-a)-1)<<a,this[this.t++]=o>>this.DB-a):this[this.t-1]|=o<<a,a+=n,a>=this.DB&&(a-=this.DB)}n==8&&(+e[0]&128)!=0&&(this.s=-1,a>0&&(this[this.t-1]|=(1<<this.DB-a)-1<<a)),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,a=Math.floor(e/this.DB),o=this.s<<n&this.DM,u=this.t-1;u>=0;--u)r[u+a+1]=this[u]>>i|o,o=(this[u]&s)<<n;for(var u=a-1;u>=0;--u)r[u]=0;r[a]=o,r.t=this.t+a+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,a=(1<<i)-1;r[0]=this[n]>>i;for(var o=n+1;o<this.t;++o)r[o-n-1]|=(this[o]&a)<<s,r[o-n]=this[o]>>i;i>0&&(r[this.t-n-1]|=(this.s&a)<<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=Y());var a=Y(),o=this.s,u=e.s,c=this.DB-or(i[i.t-1]);c>0?(i.lShiftTo(c,a),s.lShiftTo(c,n)):(i.copyTo(a),s.copyTo(n));var l=a.t,h=a[l-1];if(h!=0){var p=h*(1<<this.F1)+(l>1?a[l-2]>>this.F2:0),f=this.FV/p,d=(1<<this.F1)/p,m=1<<this.F2,v=n.t,S=v-l,b=r==null?Y():r;for(a.dlShiftTo(S,b),n.compareTo(b)>=0&&(n[n.t++]=1,n.subTo(b,n)),t.ONE.dlShiftTo(l,b),b.subTo(a,a);a.t<l;)a[a.t++]=0;for(;--S>=0;){var _=n[--v]==h?this.DM:Math.floor(n[v]*f+(n[v-1]+m)*d);if((n[v]+=a.am(0,_,n,S,0,l))<_)for(a.dlShiftTo(S,b),n.subTo(b,n);n[v]<--_;)n.subTo(b,n)}r!=null&&(n.drShiftTo(l,r),o!=u&&t.ZERO.subTo(r,r)),n.t=l,n.clamp(),c>0&&n.rShiftTo(c,n),o<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=Y(),i=Y(),s=r.convert(this),a=or(e)-1;for(s.copyTo(n);--a>=0;)if(r.sqrTo(n,i),(e&1<<a)>0)r.mulTo(i,s,n);else{var o=n;n=i,i=o}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=nt(n),s=Y(),a=Y(),o="";for(this.divRemTo(i,s,a);s.signum()>0;)o=(n+a.intValue()).toString(e).substring(1)+o,s.divRemTo(i,s,a);return a.intValue().toString(e)+o},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,a=0,o=0,u=0;u<e.length;++u){var c=vs(e,u);if(c<0){e.charAt(u)=="-"&&this.signum()==0&&(s=!0);continue}o=r*o+c,++a>=n&&(this.dMultiply(i),this.dAddOffset(o,0),a=0,o=0)}a>0&&(this.dMultiply(Math.pow(r,a)),this.dAddOffset(o,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),ar,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,a=Math.min(e.t,this.t);for(i=0;i<a;++i)n[i]=r(this[i],e[i]);if(e.t<this.t){for(s=e.s&this.DM,i=a;i<this.t;++i)n[i]=r(this[i],s);n.t=this.t}else{for(s=this.s&this.DM,i=a;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>ve.length&&(e=ve.length);for(var s=Y(),a=0;a<e;++a){s.fromInt(ve[Math.floor(Math.random()*ve.length)]);var o=s.modPow(i,this);if(o.compareTo(t.ONE)!=0&&o.compareTo(r)!=0){for(var u=1;u++<n&&o.compareTo(r)!=0;)if(o=o.modPowInt(2,this),o.compareTo(t.ONE)==0)return!1;if(o.compareTo(r)!=0)return!1}}return!0},t.prototype.square=function(){var e=Y();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 a=n.getLowestSetBit(),o=i.getLowestSetBit();if(o<0){r(n);return}a<o&&(o=a),o>0&&(n.rShiftTo(o,n),i.rShiftTo(o,i));var u=function(){(a=n.getLowestSetBit())>0&&n.rShiftTo(a,n),(a=i.getLowestSetBit())>0&&i.rShiftTo(a,i),n.compareTo(i)>=0?(n.subTo(i,n),n.rShiftTo(1,n)):(i.subTo(n,i),i.rShiftTo(1,i)),n.signum()>0?setTimeout(u,0):(o>0&&i.lShiftTo(o,i),setTimeout(function(){r(i)},0))};setTimeout(u,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),ar,this),this.isEven()&&this.dAddOffset(1,0);var s=this,a=function(){s.dAddOffset(2,0),s.bitLength()>e&&s.subTo(t.ONE.shiftLeft(e-1),s),s.isProbablePrime(r)?setTimeout(function(){i()},0):setTimeout(a,0)};setTimeout(a,0)}else{var o=[],u=e&7;o.length=(e>>3)+1,r.nextBytes(o),u>0?o[0]&=(1<<u)-1:o[0]=0,this.fromString(o,256)}},t})(),Pg=(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})(),ds=(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})(),gs=(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=Y();return e.abs().dlShiftTo(this.m.t,r),r.divRemTo(this.m,null,r),e.s<0&&r.compareTo(G.ZERO)>0&&this.m.subTo(r,r),r},t.prototype.revert=function(e){var r=Y();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})(),Dg=(function(){function t(e){this.m=e,this.r2=Y(),this.q3=Y(),G.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=Y();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 Y(){return new G(null)}function ie(t,e){return new G(t,e)}var ms=typeof navigator!="undefined";ms&&fs&&navigator.appName=="Microsoft Internet Explorer"?(G.prototype.am=function(e,r,n,i,s,a){for(var o=r&32767,u=r>>15;--a>=0;){var c=this[e]&32767,l=this[e++]>>15,h=u*c+l*o;c=o*c+((h&32767)<<15)+n[i]+(s&1073741823),s=(c>>>30)+(h>>>15)+u*l+(s>>>30),n[i++]=c&1073741823}return s},at=30):ms&&fs&&navigator.appName!="Netscape"?(G.prototype.am=function(e,r,n,i,s,a){for(;--a>=0;){var o=r*this[e++]+n[i]+s;s=Math.floor(o/67108864),n[i++]=o&67108863}return s},at=26):(G.prototype.am=function(e,r,n,i,s,a){for(var o=r&16383,u=r>>14;--a>=0;){var c=this[e]&16383,l=this[e++]>>14,h=u*c+l*o;c=o*c+((h&16383)<<14)+n[i]+s,s=(c>>28)+(h>>14)+u*l,n[i++]=c&268435455}return s},at=28);G.prototype.DB=at;G.prototype.DM=(1<<at)-1;G.prototype.DV=1<<at;var Kn=52;G.prototype.FV=Math.pow(2,Kn);G.prototype.F1=Kn-at;G.prototype.F2=2*at-Kn;var Rr=[],Dt,Ce;Dt=48;for(Ce=0;Ce<=9;++Ce)Rr[Dt++]=Ce;Dt=97;for(Ce=10;Ce<36;++Ce)Rr[Dt++]=Ce;Dt=65;for(Ce=10;Ce<36;++Ce)Rr[Dt++]=Ce;function vs(t,e){var r=Rr[t.charCodeAt(e)];return r==null?-1:r}function nt(t){var e=Y();return e.fromInt(t),e}function or(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}G.ZERO=nt(0);G.ONE=nt(1);var $g=(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 Ng(){return new $g}var Qa=256,cr,st=null,Ne;if(st==null){st=[],Ne=0;var ur=void 0;if(typeof window!="undefined"&&self.crypto&&self.crypto.getRandomValues){var Zr=new Uint32Array(256);for(self.crypto.getRandomValues(Zr),ur=0;ur<Zr.length;++ur)st[Ne++]=Zr[ur]&255}var lr=0,hr=function(t){if(lr=lr||0,lr>=256||Ne>=Qa){self.removeEventListener?self.removeEventListener("mousemove",hr,!1):self.detachEvent&&self.detachEvent("onmousemove",hr);return}try{var e=t.x+t.y;st[Ne++]=e&255,lr+=1}catch(r){}};typeof window!="undefined"&&(self.addEventListener?self.addEventListener("mousemove",hr,!1):self.attachEvent&&self.attachEvent("onmousemove",hr))}function Bg(){if(cr==null){for(cr=Ng();Ne<Qa;){var t=Math.floor(65536*Math.random());st[Ne++]=t&255}for(cr.init(st),Ne=0;Ne<st.length;++Ne)st[Ne]=0;Ne=0}return cr.next()}var wr=(function(){function t(){}return t.prototype.nextBytes=function(e){for(var r=0;r<e.length;++r)e[r]=Bg()},t})();function Tn(t){return Vg(Wg(Lg(t),t.length*8))}function ys(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 Vg(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 Fe(t,e){return t>>>e|t<<32-e}function Xa(t,e){return t>>>e}function jg(t,e,r){return t&e^~t&r}function Mg(t,e,r){return t&e^t&r^e&r}function Fg(t){return Fe(t,2)^Fe(t,13)^Fe(t,22)}function Ug(t){return Fe(t,6)^Fe(t,11)^Fe(t,25)}function Hg(t){return Fe(t,7)^Fe(t,18)^Xa(t,3)}function qg(t){return Fe(t,17)^Fe(t,19)^Xa(t,10)}var zg=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 Wg(t,e){var r=new Array(1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225),n=new Array(64),i,s,a,o,u,c,l,h,p,f,d,m;for(t[e>>5]|=128<<24-e%32,t[(e+64>>9<<4)+15]=e,p=0;p<t.length;p+=16){for(i=r[0],s=r[1],a=r[2],o=r[3],u=r[4],c=r[5],l=r[6],h=r[7],f=0;f<64;f++)f<16?n[f]=t[f+p]:n[f]=le(le(le(qg(n[f-2]),n[f-7]),Hg(n[f-15])),n[f-16]),d=le(le(le(le(h,Ug(u)),jg(u,c,l)),zg[f]),n[f]),m=le(Fg(i),Mg(i,s,a)),h=l,l=c,c=u,u=le(o,d),o=a,a=s,s=i,i=le(d,m);r[0]=le(i,r[0]),r[1]=le(s,r[1]),r[2]=le(a,r[2]),r[3]=le(o,r[3]),r[4]=le(u,r[4]),r[5]=le(c,r[5]),r[6]=le(l,r[6]),r[7]=le(h,r[7])}return r}function le(t,e){var r=(t&65535)+(e&65535),n=(t>>16)+(e>>16)+(r>>16);return n<<16|r&65535}function Gg(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 ie(s,16)}function Kg(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 wr,a=[];e>2;){for(a[0]=0;a[0]==0;)s.nextBytes(a);r[--e]=a[0]}return r[--e]=2,r[--e]=0,new G(r)}function bs(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 Jg=32;function Yg(t,e){var r=Jg,n=Tn;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 a=n("")+i+""+t,o=new Array(r);new wr().nextBytes(o);var u=bs(o,a.length,n),c=[];for(s=0;s<a.length;s+=1)c[s]=a.charCodeAt(s)^u.charCodeAt(s);var l=bs(c,o.length,n),h=[0];for(s=0;s<o.length;s+=1)h[s+1]=o[s]^l.charCodeAt(s);return new G(h.concat(c))}var Zg=(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=ie(e,16),this.e=parseInt(r,16)):console.error("Invalid RSA public key")},t.prototype.encrypt=function(e,r){typeof r=="undefined"&&(r=Kg);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 a=s.toString(16),o=a.length,u=0;u<n*2-o;u++)a="0"+a;return a},t.prototype.setPrivate=function(e,r,n){e!=null&&r!=null&&e.length>0&&r.length>0?(this.n=ie(e,16),this.e=parseInt(r,16),this.d=ie(n,16)):console.error("Invalid RSA private key")},t.prototype.setPrivateEx=function(e,r,n,i,s,a,o,u){e!=null&&r!=null&&e.length>0&&r.length>0?(this.n=ie(e,16),this.e=parseInt(r,16),this.d=ie(n,16),this.p=ie(i,16),this.q=ie(s,16),this.dmp1=ie(a,16),this.dmq1=ie(o,16),this.coeff=ie(u,16)):console.error("Invalid RSA private key")},t.prototype.generate=function(e,r){var n=new wr,i=e>>1;this.e=parseInt(r,16);for(var s=new G(r,16);;){for(;this.p=new G(e-i,1,n),!(this.p.subtract(G.ONE).gcd(s).compareTo(G.ONE)==0&&this.p.isProbablePrime(10)););for(;this.q=new G(i,1,n),!(this.q.subtract(G.ONE).gcd(s).compareTo(G.ONE)==0&&this.q.isProbablePrime(10)););if(this.p.compareTo(this.q)<=0){var a=this.p;this.p=this.q,this.q=a}var o=this.p.subtract(G.ONE),u=this.q.subtract(G.ONE),c=o.multiply(u);if(c.gcd(s).compareTo(G.ONE)==0){this.n=this.p.multiply(this.q),this.d=s.modInverse(c),this.dmp1=this.d.mod(o),this.dmq1=this.d.mod(u),this.coeff=this.q.modInverse(this.p);break}}},t.prototype.decrypt=function(e){var r=ie(e,16),n=this.doPrivate(r);return n==null?null:Qg(n,this.n.bitLength()+7>>3)},t.prototype.generateAsync=function(e,r,n){var i=new wr,s=e>>1;this.e=parseInt(r,16);var a=new G(r,16),o=this,u=function(){var c=function(){if(o.p.compareTo(o.q)<=0){var p=o.p;o.p=o.q,o.q=p}var f=o.p.subtract(G.ONE),d=o.q.subtract(G.ONE),m=f.multiply(d);m.gcd(a).compareTo(G.ONE)==0?(o.n=o.p.multiply(o.q),o.d=a.modInverse(m),o.dmp1=o.d.mod(f),o.dmq1=o.d.mod(d),o.coeff=o.q.modInverse(o.p),setTimeout(function(){n()},0)):setTimeout(u,0)},l=function(){o.q=Y(),o.q.fromNumberAsync(s,1,i,function(){o.q.subtract(G.ONE).gcda(a,function(p){p.compareTo(G.ONE)==0&&o.q.isProbablePrime(10)?setTimeout(c,0):setTimeout(l,0)})})},h=function(){o.p=Y(),o.p.fromNumberAsync(e-s,1,i,function(){o.p.subtract(G.ONE).gcda(a,function(p){p.compareTo(G.ONE)==0&&o.p.isProbablePrime(10)?setTimeout(l,0):setTimeout(h,0)})})};setTimeout(h,0)};setTimeout(u,0)},t.prototype.sign=function(e,r,n){var i=Xg(n),s=i+r(e).toString(),a=this.n.bitLength()/4,o=Gg(s,a);if(o==null)return null;var u=this.doPrivate(o);if(u==null)return null;for(var c=u.toString(16),l=c.length,h=0;h<a-l;h++)c="0"+c;return c},t.prototype.verify=function(e,r,n){var i=ie(r,16),s=this.doPublic(i);if(s==null)return null;var a=s.toString(16).replace(/^1f+00/,""),o=em(a);return o==n(e).toString()},t})();function Qg(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 mr={md2:"3020300c06082a864886f70d020205000410",md5:"3020300c06082a864886f70d020505000410",sha1:"3021300906052b0e03021a05000414",sha224:"302d300d06096086480165030402040500041c",sha256:"3031300d060960864801650304020105000420",sha384:"3041300d060960864801650304020205000430",sha512:"3051300d060960864801650304020305000440",ripemd160:"3021300906052b2403020105000414"};function Xg(t){return mr[t]||""}function em(t){for(var e in mr)if(mr.hasOwnProperty(e)){var r=mr[e],n=r.length;if(t.substring(0,n)==r)return t.substring(n)}return t}function ce(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 a=e;a<r;++a)s+=this.hexByte(this.get(a));return i>n&&(s+=no),s},t.prototype.parseOID=function(e,r,n){for(var i="",s=new Lt,a=0,o=e;o<r;++o){var u=this.get(o);if(s.mulAdd(128,u&127),a+=7,!(u&128)){if(i==="")if(s=s.simplify(),s instanceof Lt)s.sub(80),i="2."+s.toString();else{var c=s<80?s<40?0:1:2;i=c+"."+(s-c*40)}else i+="."+s.toString();if(i.length>n)return At(i,n);s=new Lt,a=0}}return a>0&&(i+=".incomplete"),i},t})(),Bg=(function(){function t(e,r,n,i,s){if(!(i instanceof vs))throw new Error("Invalid tag value.");this.stream=e,this.header=r,this.length=n,this.tag=i,this.sub=s}return t.prototype.typeName=function(){switch(this.tag.tagClass){case 0:switch(this.tag.tagNumber){case 0:return"EOC";case 1:return"BOOLEAN";case 2:return"INTEGER";case 3:return"BIT_STRING";case 4:return"OCTET_STRING";case 5:return"NULL";case 6:return"OBJECT_IDENTIFIER";case 7:return"ObjectDescriptor";case 8:return"EXTERNAL";case 9:return"REAL";case 10:return"ENUMERATED";case 11:return"EMBEDDED_PDV";case 12:return"UTF8String";case 16:return"SEQUENCE";case 17:return"SET";case 18:return"NumericString";case 19:return"PrintableString";case 20:return"TeletexString";case 21:return"VideotexString";case 22:return"IA5String";case 23:return"UTCTime";case 24:return"GeneralizedTime";case 25:return"GraphicString";case 26:return"VisibleString";case 27:return"GeneralString";case 28:return"UniversalString";case 30:return"BMPString"}return"Universal_"+this.tag.tagNumber.toString();case 1:return"Application_"+this.tag.tagNumber.toString();case 2:return"["+this.tag.tagNumber.toString()+"]";case 3:return"Private_"+this.tag.tagNumber.toString()}},t.prototype.content=function(e){if(this.tag===void 0)return null;e===void 0&&(e=1/0);var r=this.posContent(),n=Math.abs(this.length);if(!this.tag.isUniversal())return this.sub!==null?"("+this.sub.length+" elem)":this.stream.parseOctetString(r,r+n,e);switch(this.tag.tagNumber){case 1:return this.stream.get(r)===0?"false":"true";case 2:return this.stream.parseInteger(r,r+n);case 3:return this.sub?"("+this.sub.length+" elem)":this.stream.parseBitString(r,r+n,e);case 4:return this.sub?"("+this.sub.length+" elem)":this.stream.parseOctetString(r,r+n,e);case 6:return this.stream.parseOID(r,r+n,e);case 16:case 17:return this.sub!==null?"("+this.sub.length+" elem)":"(no elem)";case 12:return At(this.stream.parseStringUTF(r,r+n),e);case 18:case 19:case 20:case 21:case 22:case 26:return At(this.stream.parseStringISO(r,r+n),e);case 30:return At(this.stream.parseStringBMP(r,r+n),e);case 23:case 24:return this.stream.parseTime(r,r+n,this.tag.tagNumber==23)}return null},t.prototype.toString=function(){return this.typeName()+"@"+this.stream.pos+"[header:"+this.header+",length:"+this.length+",sub:"+(this.sub===null?"null":this.sub.length)+"]"},t.prototype.toPrettyString=function(e){e===void 0&&(e="");var r=e+this.typeName()+" @"+this.stream.pos;if(this.length>=0&&(r+="+"),r+=this.length,this.tag.tagConstructed?r+=" (constructed)":this.tag.isUniversal()&&(this.tag.tagNumber==3||this.tag.tagNumber==4)&&this.sub!==null&&(r+=" (encapsulates)"),r+=`
26
+ `,this.sub!==null){e+=" ";for(var n=0,i=this.sub.length;n<i;++n)r+=this.sub[n].toPrettyString(e)}return r},t.prototype.posStart=function(){return this.stream.pos},t.prototype.posContent=function(){return this.stream.pos+this.header},t.prototype.posEnd=function(){return this.stream.pos+this.header+Math.abs(this.length)},t.prototype.toHexString=function(){return this.stream.hexDump(this.posStart(),this.posEnd(),!0)},t.decodeLength=function(e){var r=e.get(),n=r&127;if(n==r)return n;if(n>6)throw new Error("Length over 48 bits not supported at position "+(e.pos-1));if(n===0)return null;r=0;for(var i=0;i<n;++i)r=r*256+e.get();return r},t.prototype.getHexStringValue=function(){var e=this.toHexString(),r=this.header*2,n=this.length*2;return e.substring(r,r+n)},t.decode=function(e){var r;e instanceof Yr?r=e:r=new Yr(e,0);var n=new Yr(r),i=new vs(r),s=t.decodeLength(r),a=r.pos,o=a-n.pos,u=null,c=function(){var h=[];if(s!==null){for(var p=a+s;r.pos<p;)h[h.length]=t.decode(r);if(r.pos!=p)throw new Error("Content size is not correct for container starting at offset "+a)}else try{for(;;){var f=t.decode(r);if(f.tag.isEOC())break;h[h.length]=f}s=a-r.pos}catch(d){throw new Error("Exception while decoding undefined length content: "+d)}return h};if(i.tagConstructed)u=c();else if(i.isUniversal()&&(i.tagNumber==3||i.tagNumber==4))try{if(i.tagNumber==3&&r.get()!=0)throw new Error("BIT STRINGs with unused bits cannot encapsulate.");u=c();for(var l=0;l<u.length;++l)if(u[l].tag.isEOC())throw new Error("EOC is not supposed to be actual content.")}catch(h){u=null}if(u===null){if(s===null)throw new Error("We can't skip over an invalid tag with undefined length at offset "+a);r.pos=a+Math.abs(s)}return new t(n,o,s,i,u)},t})(),vs=(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 Lt;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})(),at,Lg=0xdeadbeefcafe,ys=(Lg&16777215)==15715070,ve=[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],jg=(1<<26)/ve[ve.length-1],G=(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,a="",o=this.t,u=this.DB-o*this.DB%r;if(o-- >0)for(u<this.DB&&(i=this[o]>>u)>0&&(s=!0,a=ze(i));o>=0;)u<r?(i=(this[o]&(1<<u)-1)<<r-u,i|=this[--o]>>(u+=this.DB-r)):(i=this[o]>>(u-=r)&n,u<=0&&(u+=this.DB,--o)),i>0&&(s=!0),s&&(a+=ze(i));return s?a:"0"},t.prototype.negate=function(){var e=Y();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)+or(this[this.t-1]^this.s&this.DM)},t.prototype.mod=function(e){var r=Y();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 bs(r):n=new _s(r),this.exp(e,n)},t.prototype.clone=function(){var e=Y();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=Y();return this.bitwiseTo(e,kg,r),r},t.prototype.or=function(e){var r=Y();return this.bitwiseTo(e,ar,r),r},t.prototype.xor=function(e){var r=Y();return this.bitwiseTo(e,ds,r),r},t.prototype.andNot=function(e){var r=Y();return this.bitwiseTo(e,gs,r),r},t.prototype.not=function(){for(var e=Y(),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=Y();return e<0?this.rShiftTo(-e,r):this.lShiftTo(e,r),r},t.prototype.shiftRight=function(e){var r=Y();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+Og(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+=Pg(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,ar)},t.prototype.clearBit=function(e){return this.changeBit(e,gs)},t.prototype.flipBit=function(e){return this.changeBit(e,ds)},t.prototype.add=function(e){var r=Y();return this.addTo(e,r),r},t.prototype.subtract=function(e){var r=Y();return this.subTo(e,r),r},t.prototype.multiply=function(e){var r=Y();return this.multiplyTo(e,r),r},t.prototype.divide=function(e){var r=Y();return this.divRemTo(e,r,null),r},t.prototype.remainder=function(e){var r=Y();return this.divRemTo(e,null,r),r},t.prototype.divideAndRemainder=function(e){var r=Y(),n=Y();return this.divRemTo(e,r,n),[r,n]},t.prototype.modPow=function(e,r){var n=e.bitLength(),i,s=nt(1),a;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?a=new bs(r):r.isEven()?a=new Mg(r):a=new _s(r);var o=[],u=3,c=i-1,l=(1<<i)-1;if(o[1]=a.convert(this),i>1){var h=Y();for(a.sqrTo(o[1],h);u<=l;)o[u]=Y(),a.mulTo(h,o[u-2],o[u]),u+=2}var p=e.t-1,f,d=!0,m=Y(),v;for(n=or(e[p])-1;p>=0;){for(n>=c?f=e[p]>>n-c&l:(f=(e[p]&(1<<n+1)-1)<<c-n,p>0&&(f|=e[p-1]>>this.DB+n-c)),u=i;(f&1)==0;)f>>=1,--u;if((n-=u)<0&&(n+=this.DB,--p),d)o[f].copyTo(s),d=!1;else{for(;u>1;)a.sqrTo(s,m),a.sqrTo(m,s),u-=2;u>0?a.sqrTo(s,m):(v=s,s=m,m=v),a.mulTo(m,o[f],s)}for(;p>=0&&(e[p]&1<<n)==0;)a.sqrTo(s,m),v=s,s=m,m=v,--n<0&&(n=this.DB-1,--p)}return a.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=nt(1),a=nt(0),o=nt(0),u=nt(1);n.signum()!=0;){for(;n.isEven();)n.rShiftTo(1,n),r?((!s.isEven()||!a.isEven())&&(s.addTo(this,s),a.subTo(e,a)),s.rShiftTo(1,s)):a.isEven()||a.subTo(e,a),a.rShiftTo(1,a);for(;i.isEven();)i.rShiftTo(1,i),r?((!o.isEven()||!u.isEven())&&(o.addTo(this,o),u.subTo(e,u)),o.rShiftTo(1,o)):u.isEven()||u.subTo(e,u),u.rShiftTo(1,u);n.compareTo(i)>=0?(n.subTo(i,n),r&&s.subTo(o,s),a.subTo(u,a)):(i.subTo(n,i),r&&o.subTo(s,o),u.subTo(a,u))}if(i.compareTo(t.ONE)!=0)return t.ZERO;if(u.compareTo(e)>=0)return u.subtract(e);if(u.signum()<0)u.addTo(e,u);else return u;return u.signum()<0?u.add(e):u},t.prototype.pow=function(e){return this.exp(e,new Vg)},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(),a=n.getLowestSetBit();if(a<0)return r;for(s<a&&(a=s),a>0&&(r.rShiftTo(a,r),n.rShiftTo(a,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 a>0&&n.lShiftTo(a,n),n},t.prototype.isProbablePrime=function(e){var r,n=this.abs();if(n.t==1&&n[0]<=ve[ve.length-1]){for(r=0;r<ve.length;++r)if(n[0]==ve[r])return!0;return!1}if(n.isEven())return!1;for(r=1;r<ve.length;){for(var i=ve[r],s=r+1;s<ve.length&&i<jg;)i*=ve[s++];for(i=n.modInt(i);r<s;)if(i%ve[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,a=0;--i>=0;){var o=n==8?+e[i]&255:ws(e,i);if(o<0){e.charAt(i)=="-"&&(s=!0);continue}s=!1,a==0?this[this.t++]=o:a+n>this.DB?(this[this.t-1]|=(o&(1<<this.DB-a)-1)<<a,this[this.t++]=o>>this.DB-a):this[this.t-1]|=o<<a,a+=n,a>=this.DB&&(a-=this.DB)}n==8&&(+e[0]&128)!=0&&(this.s=-1,a>0&&(this[this.t-1]|=(1<<this.DB-a)-1<<a)),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,a=Math.floor(e/this.DB),o=this.s<<n&this.DM,u=this.t-1;u>=0;--u)r[u+a+1]=this[u]>>i|o,o=(this[u]&s)<<n;for(var u=a-1;u>=0;--u)r[u]=0;r[a]=o,r.t=this.t+a+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,a=(1<<i)-1;r[0]=this[n]>>i;for(var o=n+1;o<this.t;++o)r[o-n-1]|=(this[o]&a)<<s,r[o-n]=this[o]>>i;i>0&&(r[this.t-n-1]|=(this.s&a)<<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=Y());var a=Y(),o=this.s,u=e.s,c=this.DB-or(i[i.t-1]);c>0?(i.lShiftTo(c,a),s.lShiftTo(c,n)):(i.copyTo(a),s.copyTo(n));var l=a.t,h=a[l-1];if(h!=0){var p=h*(1<<this.F1)+(l>1?a[l-2]>>this.F2:0),f=this.FV/p,d=(1<<this.F1)/p,m=1<<this.F2,v=n.t,S=v-l,b=r==null?Y():r;for(a.dlShiftTo(S,b),n.compareTo(b)>=0&&(n[n.t++]=1,n.subTo(b,n)),t.ONE.dlShiftTo(l,b),b.subTo(a,a);a.t<l;)a[a.t++]=0;for(;--S>=0;){var _=n[--v]==h?this.DM:Math.floor(n[v]*f+(n[v-1]+m)*d);if((n[v]+=a.am(0,_,n,S,0,l))<_)for(a.dlShiftTo(S,b),n.subTo(b,n);n[v]<--_;)n.subTo(b,n)}r!=null&&(n.drShiftTo(l,r),o!=u&&t.ZERO.subTo(r,r)),n.t=l,n.clamp(),c>0&&n.rShiftTo(c,n),o<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=Y(),i=Y(),s=r.convert(this),a=or(e)-1;for(s.copyTo(n);--a>=0;)if(r.sqrTo(n,i),(e&1<<a)>0)r.mulTo(i,s,n);else{var o=n;n=i,i=o}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=nt(n),s=Y(),a=Y(),o="";for(this.divRemTo(i,s,a);s.signum()>0;)o=(n+a.intValue()).toString(e).substring(1)+o,s.divRemTo(i,s,a);return a.intValue().toString(e)+o},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,a=0,o=0,u=0;u<e.length;++u){var c=ws(e,u);if(c<0){e.charAt(u)=="-"&&this.signum()==0&&(s=!0);continue}o=r*o+c,++a>=n&&(this.dMultiply(i),this.dAddOffset(o,0),a=0,o=0)}a>0&&(this.dMultiply(Math.pow(r,a)),this.dAddOffset(o,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),ar,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,a=Math.min(e.t,this.t);for(i=0;i<a;++i)n[i]=r(this[i],e[i]);if(e.t<this.t){for(s=e.s&this.DM,i=a;i<this.t;++i)n[i]=r(this[i],s);n.t=this.t}else{for(s=this.s&this.DM,i=a;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>ve.length&&(e=ve.length);for(var s=Y(),a=0;a<e;++a){s.fromInt(ve[Math.floor(Math.random()*ve.length)]);var o=s.modPow(i,this);if(o.compareTo(t.ONE)!=0&&o.compareTo(r)!=0){for(var u=1;u++<n&&o.compareTo(r)!=0;)if(o=o.modPowInt(2,this),o.compareTo(t.ONE)==0)return!1;if(o.compareTo(r)!=0)return!1}}return!0},t.prototype.square=function(){var e=Y();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 a=n.getLowestSetBit(),o=i.getLowestSetBit();if(o<0){r(n);return}a<o&&(o=a),o>0&&(n.rShiftTo(o,n),i.rShiftTo(o,i));var u=function(){(a=n.getLowestSetBit())>0&&n.rShiftTo(a,n),(a=i.getLowestSetBit())>0&&i.rShiftTo(a,i),n.compareTo(i)>=0?(n.subTo(i,n),n.rShiftTo(1,n)):(i.subTo(n,i),i.rShiftTo(1,i)),n.signum()>0?setTimeout(u,0):(o>0&&i.lShiftTo(o,i),setTimeout(function(){r(i)},0))};setTimeout(u,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),ar,this),this.isEven()&&this.dAddOffset(1,0);var s=this,a=function(){s.dAddOffset(2,0),s.bitLength()>e&&s.subTo(t.ONE.shiftLeft(e-1),s),s.isProbablePrime(r)?setTimeout(function(){i()},0):setTimeout(a,0)};setTimeout(a,0)}else{var o=[],u=e&7;o.length=(e>>3)+1,r.nextBytes(o),u>0?o[0]&=(1<<u)-1:o[0]=0,this.fromString(o,256)}},t})(),Vg=(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})(),bs=(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})(),_s=(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=Y();return e.abs().dlShiftTo(this.m.t,r),r.divRemTo(this.m,null,r),e.s<0&&r.compareTo(G.ZERO)>0&&this.m.subTo(r,r),r},t.prototype.revert=function(e){var r=Y();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})(),Mg=(function(){function t(e){this.m=e,this.r2=Y(),this.q3=Y(),G.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=Y();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 Y(){return new G(null)}function ie(t,e){return new G(t,e)}var xs=typeof navigator!="undefined";xs&&ys&&navigator.appName=="Microsoft Internet Explorer"?(G.prototype.am=function(e,r,n,i,s,a){for(var o=r&32767,u=r>>15;--a>=0;){var c=this[e]&32767,l=this[e++]>>15,h=u*c+l*o;c=o*c+((h&32767)<<15)+n[i]+(s&1073741823),s=(c>>>30)+(h>>>15)+u*l+(s>>>30),n[i++]=c&1073741823}return s},at=30):xs&&ys&&navigator.appName!="Netscape"?(G.prototype.am=function(e,r,n,i,s,a){for(;--a>=0;){var o=r*this[e++]+n[i]+s;s=Math.floor(o/67108864),n[i++]=o&67108863}return s},at=26):(G.prototype.am=function(e,r,n,i,s,a){for(var o=r&16383,u=r>>14;--a>=0;){var c=this[e]&16383,l=this[e++]>>14,h=u*c+l*o;c=o*c+((h&16383)<<14)+n[i]+s,s=(c>>28)+(h>>14)+u*l,n[i++]=c&268435455}return s},at=28);G.prototype.DB=at;G.prototype.DM=(1<<at)-1;G.prototype.DV=1<<at;var Qn=52;G.prototype.FV=Math.pow(2,Qn);G.prototype.F1=Qn-at;G.prototype.F2=2*at-Qn;var Rr=[],$t,Ce;$t=48;for(Ce=0;Ce<=9;++Ce)Rr[$t++]=Ce;$t=97;for(Ce=10;Ce<36;++Ce)Rr[$t++]=Ce;$t=65;for(Ce=10;Ce<36;++Ce)Rr[$t++]=Ce;function ws(t,e){var r=Rr[t.charCodeAt(e)];return r==null?-1:r}function nt(t){var e=Y();return e.fromInt(t),e}function or(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}G.ZERO=nt(0);G.ONE=nt(1);var Fg=(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 Fg}var io=256,cr,st=null,Ne;if(st==null){st=[],Ne=0;var ur=void 0;if(typeof window!="undefined"&&self.crypto&&self.crypto.getRandomValues){var Zr=new Uint32Array(256);for(self.crypto.getRandomValues(Zr),ur=0;ur<Zr.length;++ur)st[Ne++]=Zr[ur]&255}var lr=0,hr=function(t){if(lr=lr||0,lr>=256||Ne>=io){self.removeEventListener?self.removeEventListener("mousemove",hr,!1):self.detachEvent&&self.detachEvent("onmousemove",hr);return}try{var e=t.x+t.y;st[Ne++]=e&255,lr+=1}catch(r){}};typeof window!="undefined"&&(self.addEventListener?self.addEventListener("mousemove",hr,!1):self.attachEvent&&self.attachEvent("onmousemove",hr))}function Hg(){if(cr==null){for(cr=Ug();Ne<io;){var t=Math.floor(65536*Math.random());st[Ne++]=t&255}for(cr.init(st),Ne=0;Ne<st.length;++Ne)st[Ne]=0;Ne=0}return cr.next()}var wr=(function(){function t(){}return t.prototype.nextBytes=function(e){for(var r=0;r<e.length;++r)e[r]=Hg()},t})();function In(t){return zg(Xg(qg(t),t.length*8))}function Ss(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 qg(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 zg(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 Fe(t,e){return t>>>e|t<<32-e}function so(t,e){return t>>>e}function Wg(t,e,r){return t&e^~t&r}function Gg(t,e,r){return t&e^t&r^e&r}function Kg(t){return Fe(t,2)^Fe(t,13)^Fe(t,22)}function Jg(t){return Fe(t,6)^Fe(t,11)^Fe(t,25)}function Yg(t){return Fe(t,7)^Fe(t,18)^so(t,3)}function Zg(t){return Fe(t,17)^Fe(t,19)^so(t,10)}var Qg=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 Xg(t,e){var r=new Array(1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225),n=new Array(64),i,s,a,o,u,c,l,h,p,f,d,m;for(t[e>>5]|=128<<24-e%32,t[(e+64>>9<<4)+15]=e,p=0;p<t.length;p+=16){for(i=r[0],s=r[1],a=r[2],o=r[3],u=r[4],c=r[5],l=r[6],h=r[7],f=0;f<64;f++)f<16?n[f]=t[f+p]:n[f]=le(le(le(Zg(n[f-2]),n[f-7]),Yg(n[f-15])),n[f-16]),d=le(le(le(le(h,Jg(u)),Wg(u,c,l)),Qg[f]),n[f]),m=le(Kg(i),Gg(i,s,a)),h=l,l=c,c=u,u=le(o,d),o=a,a=s,s=i,i=le(d,m);r[0]=le(i,r[0]),r[1]=le(s,r[1]),r[2]=le(a,r[2]),r[3]=le(o,r[3]),r[4]=le(u,r[4]),r[5]=le(c,r[5]),r[6]=le(l,r[6]),r[7]=le(h,r[7])}return r}function le(t,e){var r=(t&65535)+(e&65535),n=(t>>16)+(e>>16)+(r>>16);return n<<16|r&65535}function em(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 ie(s,16)}function tm(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 wr,a=[];e>2;){for(a[0]=0;a[0]==0;)s.nextBytes(a);r[--e]=a[0]}return r[--e]=2,r[--e]=0,new G(r)}function Es(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 rm=32;function nm(t,e){var r=rm,n=In;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 a=n("")+i+""+t,o=new Array(r);new wr().nextBytes(o);var u=Es(o,a.length,n),c=[];for(s=0;s<a.length;s+=1)c[s]=a.charCodeAt(s)^u.charCodeAt(s);var l=Es(c,o.length,n),h=[0];for(s=0;s<o.length;s+=1)h[s+1]=o[s]^l.charCodeAt(s);return new G(h.concat(c))}var im=(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=ie(e,16),this.e=parseInt(r,16)):console.error("Invalid RSA public key")},t.prototype.encrypt=function(e,r){typeof r=="undefined"&&(r=tm);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 a=s.toString(16),o=a.length,u=0;u<n*2-o;u++)a="0"+a;return a},t.prototype.setPrivate=function(e,r,n){e!=null&&r!=null&&e.length>0&&r.length>0?(this.n=ie(e,16),this.e=parseInt(r,16),this.d=ie(n,16)):console.error("Invalid RSA private key")},t.prototype.setPrivateEx=function(e,r,n,i,s,a,o,u){e!=null&&r!=null&&e.length>0&&r.length>0?(this.n=ie(e,16),this.e=parseInt(r,16),this.d=ie(n,16),this.p=ie(i,16),this.q=ie(s,16),this.dmp1=ie(a,16),this.dmq1=ie(o,16),this.coeff=ie(u,16)):console.error("Invalid RSA private key")},t.prototype.generate=function(e,r){var n=new wr,i=e>>1;this.e=parseInt(r,16);for(var s=new G(r,16);;){for(;this.p=new G(e-i,1,n),!(this.p.subtract(G.ONE).gcd(s).compareTo(G.ONE)==0&&this.p.isProbablePrime(10)););for(;this.q=new G(i,1,n),!(this.q.subtract(G.ONE).gcd(s).compareTo(G.ONE)==0&&this.q.isProbablePrime(10)););if(this.p.compareTo(this.q)<=0){var a=this.p;this.p=this.q,this.q=a}var o=this.p.subtract(G.ONE),u=this.q.subtract(G.ONE),c=o.multiply(u);if(c.gcd(s).compareTo(G.ONE)==0){this.n=this.p.multiply(this.q),this.d=s.modInverse(c),this.dmp1=this.d.mod(o),this.dmq1=this.d.mod(u),this.coeff=this.q.modInverse(this.p);break}}},t.prototype.decrypt=function(e){var r=ie(e,16),n=this.doPrivate(r);return n==null?null:sm(n,this.n.bitLength()+7>>3)},t.prototype.generateAsync=function(e,r,n){var i=new wr,s=e>>1;this.e=parseInt(r,16);var a=new G(r,16),o=this,u=function(){var c=function(){if(o.p.compareTo(o.q)<=0){var p=o.p;o.p=o.q,o.q=p}var f=o.p.subtract(G.ONE),d=o.q.subtract(G.ONE),m=f.multiply(d);m.gcd(a).compareTo(G.ONE)==0?(o.n=o.p.multiply(o.q),o.d=a.modInverse(m),o.dmp1=o.d.mod(f),o.dmq1=o.d.mod(d),o.coeff=o.q.modInverse(o.p),setTimeout(function(){n()},0)):setTimeout(u,0)},l=function(){o.q=Y(),o.q.fromNumberAsync(s,1,i,function(){o.q.subtract(G.ONE).gcda(a,function(p){p.compareTo(G.ONE)==0&&o.q.isProbablePrime(10)?setTimeout(c,0):setTimeout(l,0)})})},h=function(){o.p=Y(),o.p.fromNumberAsync(e-s,1,i,function(){o.p.subtract(G.ONE).gcda(a,function(p){p.compareTo(G.ONE)==0&&o.p.isProbablePrime(10)?setTimeout(l,0):setTimeout(h,0)})})};setTimeout(h,0)};setTimeout(u,0)},t.prototype.sign=function(e,r,n){var i=am(n),s=i+r(e).toString(),a=this.n.bitLength()/4,o=em(s,a);if(o==null)return null;var u=this.doPrivate(o);if(u==null)return null;for(var c=u.toString(16),l=c.length,h=0;h<a-l;h++)c="0"+c;return c},t.prototype.verify=function(e,r,n){var i=ie(r,16),s=this.doPublic(i);if(s==null)return null;var a=s.toString(16).replace(/^1f+00/,""),o=om(a);return o==n(e).toString()},t})();function sm(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 mr={md2:"3020300c06082a864886f70d020205000410",md5:"3020300c06082a864886f70d020505000410",sha1:"3021300906052b0e03021a05000414",sha224:"302d300d06096086480165030402040500041c",sha256:"3031300d060960864801650304020105000420",sha384:"3041300d060960864801650304020205000430",sha512:"3051300d060960864801650304020305000440",ripemd160:"3021300906052b2403020105000414"};function am(t){return mr[t]||""}function om(t){for(var e in mr)if(mr.hasOwnProperty(e)){var r=mr[e],n=r.length;if(t.substring(0,n)==r)return t.substring(n)}return t}function ce(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 k={};(typeof k.asn1=="undefined"||!k.asn1)&&(k.asn1={});k.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 a=new G(i,16),o=a.xor(t).add(G.ONE);e=o.toString(16).replace(/^-/,"")}return e},this.getPEMStringFromHex=function(t,e){return hextopem(t,e)},this.newObject=function(t){var e=k,r=e.asn1,n=r.DERBoolean,i=r.DERInteger,s=r.DERBitString,a=r.DEROctetString,o=r.DERNull,u=r.DERObjectIdentifier,c=r.DEREnumerated,l=r.DERUTF8String,h=r.DERNumericString,p=r.DERPrintableString,f=r.DERTeletexString,d=r.DERIA5String,m=r.DERUTCTime,v=r.DERGeneralizedTime,S=r.DERSequence,b=r.DERSet,_=r.DERTaggedObject,w=r.ASN1Util.newObject,x=Object.keys(t);if(x.length!=1)throw"key of param shall be only one.";var y=x[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 a(t[y]);if(y=="null")return new o(t[y]);if(y=="oid")return new u(t[y]);if(y=="enum")return new c(t[y]);if(y=="utf8str")return new l(t[y]);if(y=="numstr")return new h(t[y]);if(y=="prnstr")return new p(t[y]);if(y=="telstr")return new f(t[y]);if(y=="ia5str")return new d(t[y]);if(y=="utctime")return new m(t[y]);if(y=="gentime")return new v(t[y]);if(y=="seq"){for(var T=t[y],I=[],V=0;V<T.length;V++){var E=w(T[V]);I.push(E)}return new S({array:I})}if(y=="set"){for(var T=t[y],I=[],V=0;V<T.length;V++){var E=w(T[V]);I.push(E)}return new b({array:I})}if(y=="tag"){var C=t[y];if(Object.prototype.toString.call(C)==="[object Array]"&&C.length==3){var L=w(C[2]);return new _({tag:C[0],explicit:C[1],obj:L})}else{var N={};if(C.explicit!==void 0&&(N.explicit=C.explicit),C.tag!==void 0&&(N.tag=C.tag),C.obj===void 0)throw"obj shall be specified for 'tag'.";return N.obj=w(C.obj),new _(N)}}},this.jsonToASN1HEX=function(t){var e=this.newObject(t);return e.getEncodedHex()}};k.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="",a=2;a<t.length;a+=2){var o=parseInt(t.substring(a,a+2),16),u=("00000000"+o.toString(2)).slice(-8);if(s=s+u.substring(1,8),u.substring(0,1)=="0"){var c=new G(s,2);i=i+"."+c.toString(10),s=""}}return i};k.asn1.ASN1Util.oidIntToHex=function(t){var e=function(o){var u=o.toString(16);return u.length==1&&(u="0"+u),u},r=function(o){var u="",c=new G(o,10),l=c.toString(2),h=7-l.length%7;h==7&&(h=0);for(var p="",f=0;f<h;f++)p+="0";l=p+l;for(var f=0;f<l.length-1;f+=7){var d=l.substring(f,f+7);f!=l.length-7&&(d="1"+d),u+=e(parseInt(d,2))}return u};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 a=0;a<i.length;a++)n+=r(i[a]);return n};k.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""}};k.asn1.DERAbstractString=function(t){k.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))};ce(k.asn1.DERAbstractString,k.asn1.ASN1Object);k.asn1.DERAbstractTime=function(t){k.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),a=String(s.getFullYear());r=="utc"&&(a=a.substring(2,4));var o=i(String(s.getMonth()+1),2),u=i(String(s.getDate()),2),c=i(String(s.getHours()),2),l=i(String(s.getMinutes()),2),h=i(String(s.getSeconds()),2),p=a+o+u+c+l+h;if(n===!0){var f=s.getMilliseconds();if(f!=0){var d=i(String(f),3);d=d.replace(/[0]+$/,""),p=p+"."+d}}return p+"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,a){var o=new Date(Date.UTC(e,r-1,n,i,s,a,0));this.setByDate(o)},this.getFreshValueHex=function(){return this.hV}};ce(k.asn1.DERAbstractTime,k.asn1.ASN1Object);k.asn1.DERAbstractStructured=function(t){k.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)};ce(k.asn1.DERAbstractStructured,k.asn1.ASN1Object);k.asn1.DERBoolean=function(){k.asn1.DERBoolean.superclass.constructor.call(this),this.hT="01",this.hTLV="0101ff"};ce(k.asn1.DERBoolean,k.asn1.ASN1Object);k.asn1.DERInteger=function(t){k.asn1.DERInteger.superclass.constructor.call(this),this.hT="02",this.setByBigInteger=function(e){this.hTLV=null,this.isModified=!0,this.hV=k.asn1.ASN1Util.bigIntToMinTwosComplementsHex(e)},this.setByInteger=function(e){var r=new G(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))};ce(k.asn1.DERInteger,k.asn1.ASN1Object);k.asn1.DERBitString=function(t){if(t!==void 0&&typeof t.obj!="undefined"){var e=k.asn1.ASN1Util.newObject(t.obj);t.hex="00"+e.getEncodedHex()}k.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 a=r.substring(i,i+8),o=parseInt(a,2).toString(16);o.length==1&&(o="0"+o),s+=o}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))};ce(k.asn1.DERBitString,k.asn1.ASN1Object);k.asn1.DEROctetString=function(t){if(t!==void 0&&typeof t.obj!="undefined"){var e=k.asn1.ASN1Util.newObject(t.obj);t.hex=e.getEncodedHex()}k.asn1.DEROctetString.superclass.constructor.call(this,t),this.hT="04"};ce(k.asn1.DEROctetString,k.asn1.DERAbstractString);k.asn1.DERNull=function(){k.asn1.DERNull.superclass.constructor.call(this),this.hT="05",this.hTLV="0500"};ce(k.asn1.DERNull,k.asn1.ASN1Object);k.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 G(n,10),a=s.toString(2),o=7-a.length%7;o==7&&(o=0);for(var u="",c=0;c<o;c++)u+="0";a=u+a;for(var c=0;c<a.length-1;c+=7){var l=a.substring(c,c+7);c!=a.length-7&&(l="1"+l),i+=e(parseInt(l,2))}return i};k.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("."),a=parseInt(s[0])*40+parseInt(s[1]);i+=e(a),s.splice(0,2);for(var o=0;o<s.length;o++)i+=r(s[o]);this.hTLV=null,this.isModified=!0,this.s=null,this.hV=i},this.setValueName=function(n){var i=k.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))};ce(k.asn1.DERObjectIdentifier,k.asn1.ASN1Object);k.asn1.DEREnumerated=function(t){k.asn1.DEREnumerated.superclass.constructor.call(this),this.hT="0a",this.setByBigInteger=function(e){this.hTLV=null,this.isModified=!0,this.hV=k.asn1.ASN1Util.bigIntToMinTwosComplementsHex(e)},this.setByInteger=function(e){var r=new G(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))};ce(k.asn1.DEREnumerated,k.asn1.ASN1Object);k.asn1.DERUTF8String=function(t){k.asn1.DERUTF8String.superclass.constructor.call(this,t),this.hT="0c"};ce(k.asn1.DERUTF8String,k.asn1.DERAbstractString);k.asn1.DERNumericString=function(t){k.asn1.DERNumericString.superclass.constructor.call(this,t),this.hT="12"};ce(k.asn1.DERNumericString,k.asn1.DERAbstractString);k.asn1.DERPrintableString=function(t){k.asn1.DERPrintableString.superclass.constructor.call(this,t),this.hT="13"};ce(k.asn1.DERPrintableString,k.asn1.DERAbstractString);k.asn1.DERTeletexString=function(t){k.asn1.DERTeletexString.superclass.constructor.call(this,t),this.hT="14"};ce(k.asn1.DERTeletexString,k.asn1.DERAbstractString);k.asn1.DERIA5String=function(t){k.asn1.DERIA5String.superclass.constructor.call(this,t),this.hT="16"};ce(k.asn1.DERIA5String,k.asn1.DERAbstractString);k.asn1.DERUTCTime=function(t){k.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))};ce(k.asn1.DERUTCTime,k.asn1.DERAbstractTime);k.asn1.DERGeneralizedTime=function(t){k.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))};ce(k.asn1.DERGeneralizedTime,k.asn1.DERAbstractTime);k.asn1.DERSequence=function(t){k.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}};ce(k.asn1.DERSequence,k.asn1.DERAbstractStructured);k.asn1.DERSet=function(t){k.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)};ce(k.asn1.DERSet,k.asn1.DERAbstractStructured);k.asn1.DERTaggedObject=function(t){k.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)))};ce(k.asn1.DERTaggedObject,k.asn1.ASN1Object);var tm=(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)}})(),_s=(function(t){tm(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*)+$/,a=s.test(r)?Cg.decode(r):En.unarmor(r),o=Rg.decode(a);if(o.sub.length===3&&(o=o.sub[2].sub[0]),o.sub.length===9){n=o.sub[1].getHexStringValue(),this.n=ie(n,16),i=o.sub[2].getHexStringValue(),this.e=parseInt(i,16);var u=o.sub[3].getHexStringValue();this.d=ie(u,16);var c=o.sub[4].getHexStringValue();this.p=ie(c,16);var l=o.sub[5].getHexStringValue();this.q=ie(l,16);var h=o.sub[6].getHexStringValue();this.dmp1=ie(h,16);var p=o.sub[7].getHexStringValue();this.dmq1=ie(p,16);var f=o.sub[8].getHexStringValue();this.coeff=ie(f,16)}else if(o.sub.length===2)if(o.sub[0].sub){var d=o.sub[1],m=d.sub[0];n=m.sub[0].getHexStringValue(),this.n=ie(n,16),i=m.sub[1].getHexStringValue(),this.e=parseInt(i,16)}else n=o.sub[0].getHexStringValue(),this.n=ie(n,16),i=o.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 k.asn1.DERInteger({int:0}),new k.asn1.DERInteger({bigint:this.n}),new k.asn1.DERInteger({int:this.e}),new k.asn1.DERInteger({bigint:this.d}),new k.asn1.DERInteger({bigint:this.p}),new k.asn1.DERInteger({bigint:this.q}),new k.asn1.DERInteger({bigint:this.dmp1}),new k.asn1.DERInteger({bigint:this.dmq1}),new k.asn1.DERInteger({bigint:this.coeff})]},n=new k.asn1.DERSequence(r);return n.getEncodedHex()},e.prototype.getPrivateBaseKeyB64=function(){return Mt(this.getPrivateBaseKey())},e.prototype.getPublicBaseKey=function(){var r=new k.asn1.DERSequence({array:[new k.asn1.DERObjectIdentifier({oid:"1.2.840.113549.1.1.1"}),new k.asn1.DERNull]}),n=new k.asn1.DERSequence({array:[new k.asn1.DERInteger({bigint:this.n}),new k.asn1.DERInteger({int:this.e})]}),i=new k.asn1.DERBitString({hex:"00"+n.getEncodedHex()}),s=new k.asn1.DERSequence({array:[r,i]});return s.getEncodedHex()},e.prototype.getPublicBaseKeyB64=function(){return Mt(this.getPublicBaseKey())},e.wordwrap=function(r,n){if(n=n||64,!r)return r;var i="(.{1,"+n+`})( +|$
33
+ */var k={};(typeof k.asn1=="undefined"||!k.asn1)&&(k.asn1={});k.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 a=new G(i,16),o=a.xor(t).add(G.ONE);e=o.toString(16).replace(/^-/,"")}return e},this.getPEMStringFromHex=function(t,e){return hextopem(t,e)},this.newObject=function(t){var e=k,r=e.asn1,n=r.DERBoolean,i=r.DERInteger,s=r.DERBitString,a=r.DEROctetString,o=r.DERNull,u=r.DERObjectIdentifier,c=r.DEREnumerated,l=r.DERUTF8String,h=r.DERNumericString,p=r.DERPrintableString,f=r.DERTeletexString,d=r.DERIA5String,m=r.DERUTCTime,v=r.DERGeneralizedTime,S=r.DERSequence,b=r.DERSet,_=r.DERTaggedObject,w=r.ASN1Util.newObject,x=Object.keys(t);if(x.length!=1)throw"key of param shall be only one.";var y=x[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 a(t[y]);if(y=="null")return new o(t[y]);if(y=="oid")return new u(t[y]);if(y=="enum")return new c(t[y]);if(y=="utf8str")return new l(t[y]);if(y=="numstr")return new h(t[y]);if(y=="prnstr")return new p(t[y]);if(y=="telstr")return new f(t[y]);if(y=="ia5str")return new d(t[y]);if(y=="utctime")return new m(t[y]);if(y=="gentime")return new v(t[y]);if(y=="seq"){for(var T=t[y],I=[],j=0;j<T.length;j++){var E=w(T[j]);I.push(E)}return new S({array:I})}if(y=="set"){for(var T=t[y],I=[],j=0;j<T.length;j++){var E=w(T[j]);I.push(E)}return new b({array:I})}if(y=="tag"){var C=t[y];if(Object.prototype.toString.call(C)==="[object Array]"&&C.length==3){var L=w(C[2]);return new _({tag:C[0],explicit:C[1],obj:L})}else{var N={};if(C.explicit!==void 0&&(N.explicit=C.explicit),C.tag!==void 0&&(N.tag=C.tag),C.obj===void 0)throw"obj shall be specified for 'tag'.";return N.obj=w(C.obj),new _(N)}}},this.jsonToASN1HEX=function(t){var e=this.newObject(t);return e.getEncodedHex()}};k.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="",a=2;a<t.length;a+=2){var o=parseInt(t.substring(a,a+2),16),u=("00000000"+o.toString(2)).slice(-8);if(s=s+u.substring(1,8),u.substring(0,1)=="0"){var c=new G(s,2);i=i+"."+c.toString(10),s=""}}return i};k.asn1.ASN1Util.oidIntToHex=function(t){var e=function(o){var u=o.toString(16);return u.length==1&&(u="0"+u),u},r=function(o){var u="",c=new G(o,10),l=c.toString(2),h=7-l.length%7;h==7&&(h=0);for(var p="",f=0;f<h;f++)p+="0";l=p+l;for(var f=0;f<l.length-1;f+=7){var d=l.substring(f,f+7);f!=l.length-7&&(d="1"+d),u+=e(parseInt(d,2))}return u};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 a=0;a<i.length;a++)n+=r(i[a]);return n};k.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""}};k.asn1.DERAbstractString=function(t){k.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))};ce(k.asn1.DERAbstractString,k.asn1.ASN1Object);k.asn1.DERAbstractTime=function(t){k.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),a=String(s.getFullYear());r=="utc"&&(a=a.substring(2,4));var o=i(String(s.getMonth()+1),2),u=i(String(s.getDate()),2),c=i(String(s.getHours()),2),l=i(String(s.getMinutes()),2),h=i(String(s.getSeconds()),2),p=a+o+u+c+l+h;if(n===!0){var f=s.getMilliseconds();if(f!=0){var d=i(String(f),3);d=d.replace(/[0]+$/,""),p=p+"."+d}}return p+"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,a){var o=new Date(Date.UTC(e,r-1,n,i,s,a,0));this.setByDate(o)},this.getFreshValueHex=function(){return this.hV}};ce(k.asn1.DERAbstractTime,k.asn1.ASN1Object);k.asn1.DERAbstractStructured=function(t){k.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)};ce(k.asn1.DERAbstractStructured,k.asn1.ASN1Object);k.asn1.DERBoolean=function(){k.asn1.DERBoolean.superclass.constructor.call(this),this.hT="01",this.hTLV="0101ff"};ce(k.asn1.DERBoolean,k.asn1.ASN1Object);k.asn1.DERInteger=function(t){k.asn1.DERInteger.superclass.constructor.call(this),this.hT="02",this.setByBigInteger=function(e){this.hTLV=null,this.isModified=!0,this.hV=k.asn1.ASN1Util.bigIntToMinTwosComplementsHex(e)},this.setByInteger=function(e){var r=new G(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))};ce(k.asn1.DERInteger,k.asn1.ASN1Object);k.asn1.DERBitString=function(t){if(t!==void 0&&typeof t.obj!="undefined"){var e=k.asn1.ASN1Util.newObject(t.obj);t.hex="00"+e.getEncodedHex()}k.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 a=r.substring(i,i+8),o=parseInt(a,2).toString(16);o.length==1&&(o="0"+o),s+=o}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))};ce(k.asn1.DERBitString,k.asn1.ASN1Object);k.asn1.DEROctetString=function(t){if(t!==void 0&&typeof t.obj!="undefined"){var e=k.asn1.ASN1Util.newObject(t.obj);t.hex=e.getEncodedHex()}k.asn1.DEROctetString.superclass.constructor.call(this,t),this.hT="04"};ce(k.asn1.DEROctetString,k.asn1.DERAbstractString);k.asn1.DERNull=function(){k.asn1.DERNull.superclass.constructor.call(this),this.hT="05",this.hTLV="0500"};ce(k.asn1.DERNull,k.asn1.ASN1Object);k.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 G(n,10),a=s.toString(2),o=7-a.length%7;o==7&&(o=0);for(var u="",c=0;c<o;c++)u+="0";a=u+a;for(var c=0;c<a.length-1;c+=7){var l=a.substring(c,c+7);c!=a.length-7&&(l="1"+l),i+=e(parseInt(l,2))}return i};k.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("."),a=parseInt(s[0])*40+parseInt(s[1]);i+=e(a),s.splice(0,2);for(var o=0;o<s.length;o++)i+=r(s[o]);this.hTLV=null,this.isModified=!0,this.s=null,this.hV=i},this.setValueName=function(n){var i=k.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))};ce(k.asn1.DERObjectIdentifier,k.asn1.ASN1Object);k.asn1.DEREnumerated=function(t){k.asn1.DEREnumerated.superclass.constructor.call(this),this.hT="0a",this.setByBigInteger=function(e){this.hTLV=null,this.isModified=!0,this.hV=k.asn1.ASN1Util.bigIntToMinTwosComplementsHex(e)},this.setByInteger=function(e){var r=new G(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))};ce(k.asn1.DEREnumerated,k.asn1.ASN1Object);k.asn1.DERUTF8String=function(t){k.asn1.DERUTF8String.superclass.constructor.call(this,t),this.hT="0c"};ce(k.asn1.DERUTF8String,k.asn1.DERAbstractString);k.asn1.DERNumericString=function(t){k.asn1.DERNumericString.superclass.constructor.call(this,t),this.hT="12"};ce(k.asn1.DERNumericString,k.asn1.DERAbstractString);k.asn1.DERPrintableString=function(t){k.asn1.DERPrintableString.superclass.constructor.call(this,t),this.hT="13"};ce(k.asn1.DERPrintableString,k.asn1.DERAbstractString);k.asn1.DERTeletexString=function(t){k.asn1.DERTeletexString.superclass.constructor.call(this,t),this.hT="14"};ce(k.asn1.DERTeletexString,k.asn1.DERAbstractString);k.asn1.DERIA5String=function(t){k.asn1.DERIA5String.superclass.constructor.call(this,t),this.hT="16"};ce(k.asn1.DERIA5String,k.asn1.DERAbstractString);k.asn1.DERUTCTime=function(t){k.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))};ce(k.asn1.DERUTCTime,k.asn1.DERAbstractTime);k.asn1.DERGeneralizedTime=function(t){k.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))};ce(k.asn1.DERGeneralizedTime,k.asn1.DERAbstractTime);k.asn1.DERSequence=function(t){k.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}};ce(k.asn1.DERSequence,k.asn1.DERAbstractStructured);k.asn1.DERSet=function(t){k.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)};ce(k.asn1.DERSet,k.asn1.DERAbstractStructured);k.asn1.DERTaggedObject=function(t){k.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)))};ce(k.asn1.DERTaggedObject,k.asn1.ASN1Object);var cm=(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)}})(),Ts=(function(t){cm(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*)+$/,a=s.test(r)?$g.decode(r):An.unarmor(r),o=Bg.decode(a);if(o.sub.length===3&&(o=o.sub[2].sub[0]),o.sub.length===9){n=o.sub[1].getHexStringValue(),this.n=ie(n,16),i=o.sub[2].getHexStringValue(),this.e=parseInt(i,16);var u=o.sub[3].getHexStringValue();this.d=ie(u,16);var c=o.sub[4].getHexStringValue();this.p=ie(c,16);var l=o.sub[5].getHexStringValue();this.q=ie(l,16);var h=o.sub[6].getHexStringValue();this.dmp1=ie(h,16);var p=o.sub[7].getHexStringValue();this.dmq1=ie(p,16);var f=o.sub[8].getHexStringValue();this.coeff=ie(f,16)}else if(o.sub.length===2)if(o.sub[0].sub){var d=o.sub[1],m=d.sub[0];n=m.sub[0].getHexStringValue(),this.n=ie(n,16),i=m.sub[1].getHexStringValue(),this.e=parseInt(i,16)}else n=o.sub[0].getHexStringValue(),this.n=ie(n,16),i=o.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 k.asn1.DERInteger({int:0}),new k.asn1.DERInteger({bigint:this.n}),new k.asn1.DERInteger({int:this.e}),new k.asn1.DERInteger({bigint:this.d}),new k.asn1.DERInteger({bigint:this.p}),new k.asn1.DERInteger({bigint:this.q}),new k.asn1.DERInteger({bigint:this.dmp1}),new k.asn1.DERInteger({bigint:this.dmq1}),new k.asn1.DERInteger({bigint:this.coeff})]},n=new k.asn1.DERSequence(r);return n.getEncodedHex()},e.prototype.getPrivateBaseKeyB64=function(){return Mt(this.getPrivateBaseKey())},e.prototype.getPublicBaseKey=function(){var r=new k.asn1.DERSequence({array:[new k.asn1.DERObjectIdentifier({oid:"1.2.840.113549.1.1.1"}),new k.asn1.DERNull]}),n=new k.asn1.DERSequence({array:[new k.asn1.DERInteger({bigint:this.n}),new k.asn1.DERInteger({int:this.e})]}),i=new k.asn1.DERBitString({hex:"00"+n.getEncodedHex()}),s=new k.asn1.DERSequence({array:[r,i]});return s.getEncodedHex()},e.prototype.getPublicBaseKeyB64=function(){return Mt(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})(Zg),Qr,rm=typeof process!="undefined"?(Qr=lc)===null||Qr===void 0?void 0:Qr.npm_package_version:void 0,nm=(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 _s(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(hs(e))}catch(r){return!1}},t.prototype.encrypt=function(e){try{return Mt(this.getKey().encrypt(e))}catch(r){return!1}},t.prototype.encryptOAEP=function(e){try{return Mt(this.getKey().encrypt(e,Yg))}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 Mt(this.getKey().sign(e,r,n))}catch(i){return!1}},t.prototype.signSha256=function(e){return this.sign(e,function(r){return ys(Tn(r))},"sha256")},t.prototype.verify=function(e,r,n){n===void 0&&(n=function(i){return i});try{return this.getKey().verify(e,hs(r),n)}catch(i){return!1}},t.prototype.verifySha256=function(e,r){return this.verify(e,r,function(n){return ys(Tn(n))})},t.prototype.getKey=function(e){if(!this.key){if(this.key=new _s,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=rm,t})();const im="MIIBUwIBADANBgkqhkiG9w0BAQEFAASCAT0wggE5AgEAAkEAt3LFMIQHlZwadt5TI3jGfVyzzP7S0Lva+Bt38v32iblNnQ59GpFvpjtEl92KYH0snK+bI/1PU/SNaseSi2ryJQIDAQABAkBGHyXG7MDlbD0lcMhAx9q/cp773fABf70sl3tbM754V+mH8dEiAim398NhhrADz4F4K12H74R39O/0Hjr/VAZlAiEA5+3MoAbnsDOzFP+oT4YZJBjx8MmsukU3AaguPW4tYcMCIQDKfN+Qk/jD3vZlWsUJ23013D2NDSjgcH4gdV71oYb19wIgUMWYhgLhnZPjwmRnEYr6JoApglo6NYT1azZPJEXCuFECIDyQUQYbXCKpw6TZG2oxXigH8dkIgJtwyijHMlnhsE5NAiBxF7HA7U2rDnZ6+VRDXtIg+joD3o1h3bFy2A+QX5yDYA==";function xs(t,e=im){const r=new nm;return r.setPrivateKey(e),r.decrypt(t)}const eo=/^(http|https):\/\/[\w.:\-@]*/;function Gt(t){return eo.test(t)}var sm={exports:{}};/*! @preserve
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})(im),Qr,um=typeof process!="undefined"?(Qr=mc)===null||Qr===void 0?void 0:Qr.npm_package_version:void 0,lm=(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 Ts(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(ms(e))}catch(r){return!1}},t.prototype.encrypt=function(e){try{return Mt(this.getKey().encrypt(e))}catch(r){return!1}},t.prototype.encryptOAEP=function(e){try{return Mt(this.getKey().encrypt(e,nm))}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 Mt(this.getKey().sign(e,r,n))}catch(i){return!1}},t.prototype.signSha256=function(e){return this.sign(e,function(r){return Ss(In(r))},"sha256")},t.prototype.verify=function(e,r,n){n===void 0&&(n=function(i){return i});try{return this.getKey().verify(e,ms(r),n)}catch(i){return!1}},t.prototype.verifySha256=function(e,r){return this.verify(e,r,function(n){return Ss(In(n))})},t.prototype.getKey=function(e){if(!this.key){if(this.key=new Ts,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=um,t})();const hm="MIIBUwIBADANBgkqhkiG9w0BAQEFAASCAT0wggE5AgEAAkEAt3LFMIQHlZwadt5TI3jGfVyzzP7S0Lva+Bt38v32iblNnQ59GpFvpjtEl92KYH0snK+bI/1PU/SNaseSi2ryJQIDAQABAkBGHyXG7MDlbD0lcMhAx9q/cp773fABf70sl3tbM754V+mH8dEiAim398NhhrADz4F4K12H74R39O/0Hjr/VAZlAiEA5+3MoAbnsDOzFP+oT4YZJBjx8MmsukU3AaguPW4tYcMCIQDKfN+Qk/jD3vZlWsUJ23013D2NDSjgcH4gdV71oYb19wIgUMWYhgLhnZPjwmRnEYr6JoApglo6NYT1azZPJEXCuFECIDyQUQYbXCKpw6TZG2oxXigH8dkIgJtwyijHMlnhsE5NAiBxF7HA7U2rDnZ6+VRDXtIg+joD3o1h3bFy2A+QX5yDYA==";function Cs(t,e=hm){const r=new lm;return r.setPrivateKey(e),r.decrypt(t)}const ao=/^(http|https):\/\/[\w.:\-@]*/;function Gt(t){return ao.test(t)}var pm={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()})(ye,function(){var e,r,n="2.0.6",i={},s={},a={currentLocale:"en",zeroFormat:null,nullFormat:null,defaultFormat:"0,0",scalePercentBy100:!0},o={currentLocale:a.currentLocale,zeroFormat:a.zeroFormat,nullFormat:a.nullFormat,defaultFormat:a.defaultFormat,scalePercentBy100:a.scalePercentBy100};function u(c,l){this._input=c,this._value=l}return e=function(c){var l,h,p,f;if(e.isNumeral(c))l=c.value();else if(c===0||typeof c=="undefined")l=0;else if(c===null||r.isNaN(c))l=null;else if(typeof c=="string")if(o.zeroFormat&&c===o.zeroFormat)l=0;else if(o.nullFormat&&c===o.nullFormat||!c.replace(/[^0-9]+/g,"").length)l=null;else{for(h in i)if(f=typeof i[h].regexps.unformat=="function"?i[h].regexps.unformat():i[h].regexps.unformat,f&&c.match(f)){p=i[h].unformat;break}p=p||e._.stringToNumber,l=p(c)}else l=Number(c)||null;return new u(c,l)},e.version=n,e.isNumeral=function(c){return c instanceof u},e._=r={numberToFormat:function(c,l,h){var p=s[e.options.currentLocale],f=!1,d=!1,m=0,v="",S=1e12,b=1e9,_=1e6,w=1e3,x="",y=!1,T,I,V,E,C,L,N;if(c=c||0,I=Math.abs(c),e._.includes(l,"(")?(f=!0,l=l.replace(/[\(|\)]/g,"")):(e._.includes(l,"+")||e._.includes(l,"-"))&&(C=e._.includes(l,"+")?l.indexOf("+"):c<0?l.indexOf("-"):-1,l=l.replace(/[\+|\-]/g,"")),e._.includes(l,"a")&&(T=l.match(/a(k|m|b|t)?/),T=T?T[1]:!1,e._.includes(l," a")&&(v=" "),l=l.replace(new RegExp(v+"a[kmbt]?"),""),I>=S&&!T||T==="t"?(v+=p.abbreviations.trillion,c=c/S):I<S&&I>=b&&!T||T==="b"?(v+=p.abbreviations.billion,c=c/b):I<b&&I>=_&&!T||T==="m"?(v+=p.abbreviations.million,c=c/_):(I<_&&I>=w&&!T||T==="k")&&(v+=p.abbreviations.thousand,c=c/w)),e._.includes(l,"[.]")&&(d=!0,l=l.replace("[.]",".")),V=c.toString().split(".")[0],E=l.split(".")[1],L=l.indexOf(","),m=(l.split(".")[0].split(",")[0].match(/0/g)||[]).length,E?(e._.includes(E,"[")?(E=E.replace("]",""),E=E.split("["),x=e._.toFixed(c,E[0].length+E[1].length,h,E[1].length)):x=e._.toFixed(c,E.length,h),V=x.split(".")[0],e._.includes(x,".")?x=p.delimiters.decimal+x.split(".")[1]:x="",d&&Number(x.slice(1))===0&&(x="")):V=e._.toFixed(c,0,h),v&&!T&&Number(V)>=1e3&&v!==p.abbreviations.trillion)switch(V=String(Number(V)/1e3),v){case p.abbreviations.thousand:v=p.abbreviations.million;break;case p.abbreviations.million:v=p.abbreviations.billion;break;case p.abbreviations.billion:v=p.abbreviations.trillion;break}if(e._.includes(V,"-")&&(V=V.slice(1),y=!0),V.length<m)for(var B=m-V.length;B>0;B--)V="0"+V;return L>-1&&(V=V.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+p.delimiters.thousands)),l.indexOf(".")===0&&(V=""),N=V+x+(v||""),f?N=(f&&y?"(":"")+N+(f&&y?")":""):C>=0?N=C===0?(y?"-":"+")+N:N+(y?"-":"+"):y&&(N="-"+N),N},stringToNumber:function(c){var l=s[o.currentLocale],h=c,p={thousand:3,million:6,billion:9,trillion:12},f,d,m;if(o.zeroFormat&&c===o.zeroFormat)d=0;else if(o.nullFormat&&c===o.nullFormat||!c.replace(/[^0-9]+/g,"").length)d=null;else{d=1,l.delimiters.decimal!=="."&&(c=c.replace(/\./g,"").replace(l.delimiters.decimal,"."));for(f in p)if(m=new RegExp("[^a-zA-Z]"+l.abbreviations[f]+"(?:\\)|(\\"+l.currency.symbol+")?(?:\\))?)?$"),h.match(m)){d*=Math.pow(10,p[f]);break}d*=(c.split("-").length+Math.min(c.split("(").length-1,c.split(")").length-1))%2?1:-1,c=c.replace(/[^0-9\.]+/g,""),d*=Number(c)}return d},isNaN:function(c){return typeof c=="number"&&isNaN(c)},includes:function(c,l){return c.indexOf(l)!==-1},insert:function(c,l,h){return c.slice(0,h)+l+c.slice(h)},reduce:function(c,l){if(this===null)throw new TypeError("Array.prototype.reduce called on null or undefined");if(typeof l!="function")throw new TypeError(l+" is not a function");var h=Object(c),p=h.length>>>0,f=0,d;if(arguments.length===3)d=arguments[2];else{for(;f<p&&!(f in h);)f++;if(f>=p)throw new TypeError("Reduce of empty array with no initial value");d=h[f++]}for(;f<p;f++)f in h&&(d=l(d,h[f],f,h));return d},multiplier:function(c){var l=c.toString().split(".");return l.length<2?1:Math.pow(10,l[1].length)},correctionFactor:function(){var c=Array.prototype.slice.call(arguments);return c.reduce(function(l,h){var p=r.multiplier(h);return l>p?l:p},1)},toFixed:function(c,l,h,p){var f=c.toString().split("."),d=l-(p||0),m,v,S,b;return f.length===2?m=Math.min(Math.max(f[1].length,d),l):m=d,S=Math.pow(10,m),b=(h(c+"e+"+m)/S).toFixed(m),p>l-m&&(v=new RegExp("\\.?0{1,"+(p-(l-m))+"}$"),b=b.replace(v,"")),b}},e.options=o,e.formats=i,e.locales=s,e.locale=function(c){return c&&(o.currentLocale=c.toLowerCase()),o.currentLocale},e.localeData=function(c){if(!c)return s[o.currentLocale];if(c=c.toLowerCase(),!s[c])throw new Error("Unknown locale : "+c);return s[c]},e.reset=function(){for(var c in a)o[c]=a[c]},e.zeroFormat=function(c){o.zeroFormat=typeof c=="string"?c:null},e.nullFormat=function(c){o.nullFormat=typeof c=="string"?c:null},e.defaultFormat=function(c){o.defaultFormat=typeof c=="string"?c:"0.0"},e.register=function(c,l,h){if(l=l.toLowerCase(),this[c+"s"][l])throw new TypeError(l+" "+c+" already registered.");return this[c+"s"][l]=h,h},e.validate=function(c,l){var h,p,f,d,m,v,S,b;if(typeof c!="string"&&(c+="",console.warn&&console.warn("Numeral.js: Value is not string. It has been co-erced to: ",c)),c=c.trim(),c.match(/^\d+$/))return!0;if(c==="")return!1;try{S=e.localeData(l)}catch(_){S=e.localeData(e.locale())}return f=S.currency.symbol,m=S.abbreviations,h=S.delimiters.decimal,S.delimiters.thousands==="."?p="\\.":p=S.delimiters.thousands,b=c.match(/^[^\d]+/),b!==null&&(c=c.substr(1),b[0]!==f)||(b=c.match(/[^\d]+$/),b!==null&&(c=c.slice(0,-1),b[0]!==m.thousand&&b[0]!==m.million&&b[0]!==m.billion&&b[0]!==m.trillion))?!1:(v=new RegExp(p+"{2}"),c.match(/[^\d.,]/g)?!1:(d=c.split(h),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=u.prototype={clone:function(){return e(this)},format:function(c,l){var h=this._value,p=c||o.defaultFormat,f,d,m;if(l=l||Math.round,h===0&&o.zeroFormat!==null)d=o.zeroFormat;else if(h===null&&o.nullFormat!==null)d=o.nullFormat;else{for(f in i)if(p.match(i[f].regexps.format)){m=i[f].format;break}m=m||e._.numberToFormat,d=m(h,p,l)}return d},value:function(){return this._value},input:function(){return this._input},set:function(c){return this._value=Number(c),this},add:function(c){var l=r.correctionFactor.call(null,this._value,c);function h(p,f,d,m){return p+Math.round(l*f)}return this._value=r.reduce([this._value,c],h,0)/l,this},subtract:function(c){var l=r.correctionFactor.call(null,this._value,c);function h(p,f,d,m){return p-Math.round(l*f)}return this._value=r.reduce([c],h,Math.round(this._value*l))/l,this},multiply:function(c){function l(h,p,f,d){var m=r.correctionFactor(h,p);return Math.round(h*m)*Math.round(p*m)/Math.round(m*m)}return this._value=r.reduce([this._value,c],l,1),this},divide:function(c){function l(h,p,f,d){var m=r.correctionFactor(h,p);return Math.round(h*m)/Math.round(p*m)}return this._value=r.reduce([this._value,c],l),this},difference:function(c){return Math.abs(e(this._value).subtract(c).value())}},e.register("locale","en",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(c){var l=c%10;return~~(c%100/10)===1?"th":l===1?"st":l===2?"nd":l===3?"rd":"th"},currency:{symbol:"$"}}),(function(){e.register("format","bps",{regexps:{format:/(BPS)/,unformat:/(BPS)/},format:function(c,l,h){var p=e._.includes(l," BPS")?" ":"",f;return c=c*1e4,l=l.replace(/\s?BPS/,""),f=e._.numberToFormat(c,l,h),e._.includes(f,")")?(f=f.split(""),f.splice(-1,0,p+"BPS"),f=f.join("")):f=f+p+"BPS",f},unformat:function(c){return+(e._.stringToNumber(c)*1e-4).toFixed(15)}})})(),(function(){var c={base:1e3,suffixes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]},l={base:1024,suffixes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},h=c.suffixes.concat(l.suffixes.filter(function(f){return c.suffixes.indexOf(f)<0})),p=h.join("|");p="("+p.replace("B","B(?!PS)")+")",e.register("format","bytes",{regexps:{format:/([0\s]i?b)/,unformat:new RegExp(p)},format:function(f,d,m){var v,S=e._.includes(d,"ib")?l:c,b=e._.includes(d," b")||e._.includes(d," ib")?" ":"",_,w,x;for(d=d.replace(/\s?i?b/,""),_=0;_<=S.suffixes.length;_++)if(w=Math.pow(S.base,_),x=Math.pow(S.base,_+1),f===null||f===0||f>=w&&f<x){b+=S.suffixes[_],w>0&&(f=f/w);break}return v=e._.numberToFormat(f,d,m),v+b},unformat:function(f){var d=e._.stringToNumber(f),m,v;if(d){for(m=c.suffixes.length-1;m>=0;m--){if(e._.includes(f,c.suffixes[m])){v=Math.pow(c.base,m);break}if(e._.includes(f,l.suffixes[m])){v=Math.pow(l.base,m);break}}d*=v||1}return d}})})(),(function(){e.register("format","currency",{regexps:{format:/(\$)/},format:function(c,l,h){var p=e.locales[e.options.currentLocale],f={before:l.match(/^([\+|\-|\(|\s|\$]*)/)[0],after:l.match(/([\+|\-|\)|\s|\$]*)$/)[0]},d,m,v;for(l=l.replace(/\s?\$\s?/,""),d=e._.numberToFormat(c,l,h),c>=0?(f.before=f.before.replace(/[\-\(]/,""),f.after=f.after.replace(/[\-\)]/,"")):c<0&&!e._.includes(f.before,"-")&&!e._.includes(f.before,"(")&&(f.before="-"+f.before),v=0;v<f.before.length;v++)switch(m=f.before[v],m){case"$":d=e._.insert(d,p.currency.symbol,v);break;case" ":d=e._.insert(d," ",v+p.currency.symbol.length-1);break}for(v=f.after.length-1;v>=0;v--)switch(m=f.after[v],m){case"$":d=v===f.after.length-1?d+p.currency.symbol:e._.insert(d,p.currency.symbol,-(f.after.length-(1+v)));break;case" ":d=v===f.after.length-1?d+" ":e._.insert(d," ",-(f.after.length-(1+v)+p.currency.symbol.length-1));break}return d}})})(),(function(){e.register("format","exponential",{regexps:{format:/(e\+|e-)/,unformat:/(e\+|e-)/},format:function(c,l,h){var p,f=typeof c=="number"&&!e._.isNaN(c)?c.toExponential():"0e+0",d=f.split("e");return l=l.replace(/e[\+|\-]{1}0/,""),p=e._.numberToFormat(Number(d[0]),l,h),p+"e"+d[1]},unformat:function(c){var l=e._.includes(c,"e+")?c.split("e+"):c.split("e-"),h=Number(l[0]),p=Number(l[1]);p=e._.includes(c,"e-")?p*=-1:p;function f(d,m,v,S){var b=e._.correctionFactor(d,m),_=d*b*(m*b)/(b*b);return _}return e._.reduce([h,Math.pow(10,p)],f,1)}})})(),(function(){e.register("format","ordinal",{regexps:{format:/(o)/},format:function(c,l,h){var p=e.locales[e.options.currentLocale],f,d=e._.includes(l," o")?" ":"";return l=l.replace(/\s?o/,""),d+=p.ordinal(c),f=e._.numberToFormat(c,l,h),f+d}})})(),(function(){e.register("format","percentage",{regexps:{format:/(%)/,unformat:/(%)/},format:function(c,l,h){var p=e._.includes(l," %")?" ":"",f;return e.options.scalePercentBy100&&(c=c*100),l=l.replace(/\s?\%/,""),f=e._.numberToFormat(c,l,h),e._.includes(f,")")?(f=f.split(""),f.splice(-1,0,p+"%"),f=f.join("")):f=f+p+"%",f},unformat:function(c){var l=e._.stringToNumber(c);return e.options.scalePercentBy100?l*.01:l}})})(),(function(){e.register("format","time",{regexps:{format:/(:)/,unformat:/(:)/},format:function(c,l,h){var p=Math.floor(c/60/60),f=Math.floor((c-p*60*60)/60),d=Math.round(c-p*60*60-f*60);return p+":"+(f<10?"0"+f:f)+":"+(d<10?"0"+d:d)},unformat:function(c){var l=c.split(":"),h=0;return l.length===3?(h=h+Number(l[0])*60*60,h=h+Number(l[1])*60,h=h+Number(l[2])):l.length===2&&(h=h+Number(l[0])*60,h=h+Number(l[1])),Number(h)}})})(),e})})(sm);var to={exports:{}};(function(t,e){(function(r,n){t.exports=n()})(ye,(function(){var r=1e3,n=6e4,i=36e5,s="millisecond",a="second",o="minute",u="hour",c="day",l="week",h="month",p="quarter",f="year",d="date",m="Invalid Date",v=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,S=/\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,b={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(B){var O=["th","st","nd","rd"],D=B%100;return"["+B+(O[(D-20)%10]||O[D]||O[0])+"]"}},_=function(B,O,D){var U=String(B);return!U||U.length>=O?B:""+Array(O+1-U.length).join(D)+B},w={s:_,z:function(B){var O=-B.utcOffset(),D=Math.abs(O),U=Math.floor(D/60),j=D%60;return(O<=0?"+":"-")+_(U,2,"0")+":"+_(j,2,"0")},m:function B(O,D){if(O.date()<D.date())return-B(D,O);var U=12*(D.year()-O.year())+(D.month()-O.month()),j=O.clone().add(U,h),q=D-j<0,z=O.clone().add(U+(q?-1:1),h);return+(-(U+(D-j)/(q?j-z:z-j))||0)},a:function(B){return B<0?Math.ceil(B)||0:Math.floor(B)},p:function(B){return{M:h,y:f,w:l,d:c,D:d,h:u,m:o,s:a,ms:s,Q:p}[B]||String(B||"").toLowerCase().replace(/s$/,"")},u:function(B){return B===void 0}},x="en",y={};y[x]=b;var T="$isDayjsObject",I=function(B){return B instanceof L||!(!B||!B[T])},V=function B(O,D,U){var j;if(!O)return x;if(typeof O=="string"){var q=O.toLowerCase();y[q]&&(j=q),D&&(y[q]=D,j=q);var z=O.split("-");if(!j&&z.length>1)return B(z[0])}else{var A=O.name;y[A]=O,j=A}return!U&&j&&(x=j),j||!U&&x},E=function(B,O){if(I(B))return B.clone();var D=typeof O=="object"?O:{};return D.date=B,D.args=arguments,new L(D)},C=w;C.l=V,C.i=I,C.w=function(B,O){return E(B,{locale:O.$L,utc:O.$u,x:O.$x,$offset:O.$offset})};var L=(function(){function B(D){this.$L=V(D.locale,null,!0),this.parse(D),this.$x=this.$x||D.x||{},this[T]=!0}var O=B.prototype;return O.parse=function(D){this.$d=(function(U){var j=U.date,q=U.utc;if(j===null)return new Date(NaN);if(C.u(j))return new Date;if(j instanceof Date)return new Date(j);if(typeof j=="string"&&!/Z$/i.test(j)){var z=j.match(v);if(z){var A=z[2]-1||0,P=(z[7]||"0").substring(0,3);return q?new Date(Date.UTC(z[1],A,z[3]||1,z[4]||0,z[5]||0,z[6]||0,P)):new Date(z[1],A,z[3]||1,z[4]||0,z[5]||0,z[6]||0,P)}}return new Date(j)})(D),this.init()},O.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()},O.$utils=function(){return C},O.isValid=function(){return this.$d.toString()!==m},O.isSame=function(D,U){var j=E(D);return this.startOf(U)<=j&&j<=this.endOf(U)},O.isAfter=function(D,U){return E(D)<this.startOf(U)},O.isBefore=function(D,U){return this.endOf(U)<E(D)},O.$g=function(D,U,j){return C.u(D)?this[U]:this.set(j,D)},O.unix=function(){return Math.floor(this.valueOf()/1e3)},O.valueOf=function(){return this.$d.getTime()},O.startOf=function(D,U){var j=this,q=!!C.u(U)||U,z=C.p(D),A=function(Le,pe){var Pe=C.w(j.$u?Date.UTC(j.$y,pe,Le):new Date(j.$y,pe,Le),j);return q?Pe:Pe.endOf(c)},P=function(Le,pe){return C.w(j.toDate()[Le].apply(j.toDate("s"),(q?[0,0,0,0]:[23,59,59,999]).slice(pe)),j)},$=this.$W,R=this.$M,te=this.$D,me="set"+(this.$u?"UTC":"");switch(z){case f:return q?A(1,0):A(31,11);case h:return q?A(1,R):A(0,R+1);case l:var Oe=this.$locale().weekStart||0,ne=($<Oe?$+7:$)-Oe;return A(q?te-ne:te+(6-ne),R);case c:case d:return P(me+"Hours",0);case u:return P(me+"Minutes",1);case o:return P(me+"Seconds",2);case a:return P(me+"Milliseconds",3);default:return this.clone()}},O.endOf=function(D){return this.startOf(D,!1)},O.$set=function(D,U){var j,q=C.p(D),z="set"+(this.$u?"UTC":""),A=(j={},j[c]=z+"Date",j[d]=z+"Date",j[h]=z+"Month",j[f]=z+"FullYear",j[u]=z+"Hours",j[o]=z+"Minutes",j[a]=z+"Seconds",j[s]=z+"Milliseconds",j)[q],P=q===c?this.$D+(U-this.$W):U;if(q===h||q===f){var $=this.clone().set(d,1);$.$d[A](P),$.init(),this.$d=$.set(d,Math.min(this.$D,$.daysInMonth())).$d}else A&&this.$d[A](P);return this.init(),this},O.set=function(D,U){return this.clone().$set(D,U)},O.get=function(D){return this[C.p(D)]()},O.add=function(D,U){var j,q=this;D=Number(D);var z=C.p(U),A=function(R){var te=E(q);return C.w(te.date(te.date()+Math.round(R*D)),q)};if(z===h)return this.set(h,this.$M+D);if(z===f)return this.set(f,this.$y+D);if(z===c)return A(1);if(z===l)return A(7);var P=(j={},j[o]=n,j[u]=i,j[a]=r,j)[z]||1,$=this.$d.getTime()+D*P;return C.w($,this)},O.subtract=function(D,U){return this.add(-1*D,U)},O.format=function(D){var U=this,j=this.$locale();if(!this.isValid())return j.invalidDate||m;var q=D||"YYYY-MM-DDTHH:mm:ssZ",z=C.z(this),A=this.$H,P=this.$m,$=this.$M,R=j.weekdays,te=j.months,me=j.meridiem,Oe=function(pe,Pe,tt,rr){return pe&&(pe[Pe]||pe(U,q))||tt[Pe].slice(0,rr)},ne=function(pe){return C.s(A%12||12,pe,"0")},Le=me||function(pe,Pe,tt){var rr=pe<12?"AM":"PM";return tt?rr.toLowerCase():rr};return q.replace(S,(function(pe,Pe){return Pe||(function(tt){switch(tt){case"YY":return String(U.$y).slice(-2);case"YYYY":return C.s(U.$y,4,"0");case"M":return $+1;case"MM":return C.s($+1,2,"0");case"MMM":return Oe(j.monthsShort,$,te,3);case"MMMM":return Oe(te,$);case"D":return U.$D;case"DD":return C.s(U.$D,2,"0");case"d":return String(U.$W);case"dd":return Oe(j.weekdaysMin,U.$W,R,2);case"ddd":return Oe(j.weekdaysShort,U.$W,R,3);case"dddd":return R[U.$W];case"H":return String(A);case"HH":return C.s(A,2,"0");case"h":return ne(1);case"hh":return ne(2);case"a":return Le(A,P,!0);case"A":return Le(A,P,!1);case"m":return String(P);case"mm":return C.s(P,2,"0");case"s":return String(U.$s);case"ss":return C.s(U.$s,2,"0");case"SSS":return C.s(U.$ms,3,"0");case"Z":return z}return null})(pe)||z.replace(":","")}))},O.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},O.diff=function(D,U,j){var q,z=this,A=C.p(U),P=E(D),$=(P.utcOffset()-this.utcOffset())*n,R=this-P,te=function(){return C.m(z,P)};switch(A){case f:q=te()/12;break;case h:q=te();break;case p:q=te()/3;break;case l:q=(R-$)/6048e5;break;case c:q=(R-$)/864e5;break;case u:q=R/i;break;case o:q=R/n;break;case a:q=R/r;break;default:q=R}return j?q:C.a(q)},O.daysInMonth=function(){return this.endOf(h).$D},O.$locale=function(){return y[this.$L]},O.locale=function(D,U){if(!D)return this.$L;var j=this.clone(),q=V(D,U,!0);return q&&(j.$L=q),j},O.clone=function(){return C.w(this.$d,this)},O.toDate=function(){return new Date(this.valueOf())},O.toJSON=function(){return this.isValid()?this.toISOString():null},O.toISOString=function(){return this.$d.toISOString()},O.toString=function(){return this.$d.toUTCString()},B})(),N=L.prototype;return E.prototype=N,[["$ms",s],["$s",a],["$m",o],["$H",u],["$W",c],["$M",h],["$y",f],["$D",d]].forEach((function(B){N[B[1]]=function(O){return this.$g(O,B[0],B[1])}})),E.extend=function(B,O){return B.$i||(B(O,L,E),B.$i=!0),E},E.locale=V,E.isDayjs=I,E.unix=function(B){return E(1e3*B)},E.en=y[x],E.Ls=y,E.p={},E}))})(to);var ro=to.exports;const am=fg(ro);var om={exports:{}};(function(t,e){(function(r,n){t.exports=n(ro)})(ye,(function(r){function n(a){return a&&typeof a=="object"&&"default"in a?a:{default:a}}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(a,o){return o==="W"?a+"周":a+"日"},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(a,o){var u=100*a+o;return u<600?"凌晨":u<900?"早上":u<1100?"上午":u<1300?"中午":u<1800?"下午":"晚上"}};return i.default.locale(s,null,!0),s}))})(om);am.locale("zh-cn");function cm(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 Kt(t=0){return M(this,null,function*(){return new Promise(e=>{setTimeout(e,t)})})}function um(t){return[...t.entries()].reduce((e,[r,n])=>(e[r]=n,e),{})}function lm(t,e){return Array.from(new Set(t))}function ws(t){return t?[].concat(t):[]}function Xr(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 hm(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 no={exports:{}};(function(t){var e=(function(){var r=String.fromCharCode,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",s={};function a(u,c){if(!s[u]){s[u]={};for(var l=0;l<u.length;l++)s[u][u.charAt(l)]=l}return s[u][c]}var o={compressToBase64:function(u){if(u==null)return"";var c=o._compress(u,6,function(l){return n.charAt(l)});switch(c.length%4){default:case 0:return c;case 1:return c+"===";case 2:return c+"==";case 3:return c+"="}},decompressFromBase64:function(u){return u==null?"":u==""?null:o._decompress(u.length,32,function(c){return a(n,u.charAt(c))})},compressToUTF16:function(u){return u==null?"":o._compress(u,15,function(c){return r(c+32)})+" "},decompressFromUTF16:function(u){return u==null?"":u==""?null:o._decompress(u.length,16384,function(c){return u.charCodeAt(c)-32})},compressToUint8Array:function(u){for(var c=o.compress(u),l=new Uint8Array(c.length*2),h=0,p=c.length;h<p;h++){var f=c.charCodeAt(h);l[h*2]=f>>>8,l[h*2+1]=f%256}return l},decompressFromUint8Array:function(u){if(u==null)return o.decompress(u);for(var c=new Array(u.length/2),l=0,h=c.length;l<h;l++)c[l]=u[l*2]*256+u[l*2+1];var p=[];return c.forEach(function(f){p.push(r(f))}),o.decompress(p.join(""))},compressToEncodedURIComponent:function(u){return u==null?"":o._compress(u,6,function(c){return i.charAt(c)})},decompressFromEncodedURIComponent:function(u){return u==null?"":u==""?null:(u=u.replace(/ /g,"+"),o._decompress(u.length,32,function(c){return a(i,u.charAt(c))}))},compress:function(u){return o._compress(u,16,function(c){return r(c)})},_compress:function(u,c,l){if(u==null)return"";var h,p,f={},d={},m="",v="",S="",b=2,_=3,w=2,x=[],y=0,T=0,I;for(I=0;I<u.length;I+=1)if(m=u.charAt(I),Object.prototype.hasOwnProperty.call(f,m)||(f[m]=_++,d[m]=!0),v=S+m,Object.prototype.hasOwnProperty.call(f,v))S=v;else{if(Object.prototype.hasOwnProperty.call(d,S)){if(S.charCodeAt(0)<256){for(h=0;h<w;h++)y=y<<1,T==c-1?(T=0,x.push(l(y)),y=0):T++;for(p=S.charCodeAt(0),h=0;h<8;h++)y=y<<1|p&1,T==c-1?(T=0,x.push(l(y)),y=0):T++,p=p>>1}else{for(p=1,h=0;h<w;h++)y=y<<1|p,T==c-1?(T=0,x.push(l(y)),y=0):T++,p=0;for(p=S.charCodeAt(0),h=0;h<16;h++)y=y<<1|p&1,T==c-1?(T=0,x.push(l(y)),y=0):T++,p=p>>1}b--,b==0&&(b=Math.pow(2,w),w++),delete d[S]}else for(p=f[S],h=0;h<w;h++)y=y<<1|p&1,T==c-1?(T=0,x.push(l(y)),y=0):T++,p=p>>1;b--,b==0&&(b=Math.pow(2,w),w++),f[v]=_++,S=String(m)}if(S!==""){if(Object.prototype.hasOwnProperty.call(d,S)){if(S.charCodeAt(0)<256){for(h=0;h<w;h++)y=y<<1,T==c-1?(T=0,x.push(l(y)),y=0):T++;for(p=S.charCodeAt(0),h=0;h<8;h++)y=y<<1|p&1,T==c-1?(T=0,x.push(l(y)),y=0):T++,p=p>>1}else{for(p=1,h=0;h<w;h++)y=y<<1|p,T==c-1?(T=0,x.push(l(y)),y=0):T++,p=0;for(p=S.charCodeAt(0),h=0;h<16;h++)y=y<<1|p&1,T==c-1?(T=0,x.push(l(y)),y=0):T++,p=p>>1}b--,b==0&&(b=Math.pow(2,w),w++),delete d[S]}else for(p=f[S],h=0;h<w;h++)y=y<<1|p&1,T==c-1?(T=0,x.push(l(y)),y=0):T++,p=p>>1;b--,b==0&&(b=Math.pow(2,w),w++)}for(p=2,h=0;h<w;h++)y=y<<1|p&1,T==c-1?(T=0,x.push(l(y)),y=0):T++,p=p>>1;for(;;)if(y=y<<1,T==c-1){x.push(l(y));break}else T++;return x.join("")},decompress:function(u){return u==null?"":u==""?null:o._decompress(u.length,32768,function(c){return u.charCodeAt(c)})},_decompress:function(u,c,l){var h=[],p=4,f=4,d=3,m="",v=[],S,b,_,w,x,y,T,I={val:l(0),position:c,index:1};for(S=0;S<3;S+=1)h[S]=S;for(_=0,x=Math.pow(2,2),y=1;y!=x;)w=I.val&I.position,I.position>>=1,I.position==0&&(I.position=c,I.val=l(I.index++)),_|=(w>0?1:0)*y,y<<=1;switch(_){case 0:for(_=0,x=Math.pow(2,8),y=1;y!=x;)w=I.val&I.position,I.position>>=1,I.position==0&&(I.position=c,I.val=l(I.index++)),_|=(w>0?1:0)*y,y<<=1;T=r(_);break;case 1:for(_=0,x=Math.pow(2,16),y=1;y!=x;)w=I.val&I.position,I.position>>=1,I.position==0&&(I.position=c,I.val=l(I.index++)),_|=(w>0?1:0)*y,y<<=1;T=r(_);break;case 2:return""}for(h[3]=T,b=T,v.push(T);;){if(I.index>u)return"";for(_=0,x=Math.pow(2,d),y=1;y!=x;)w=I.val&I.position,I.position>>=1,I.position==0&&(I.position=c,I.val=l(I.index++)),_|=(w>0?1:0)*y,y<<=1;switch(T=_){case 0:for(_=0,x=Math.pow(2,8),y=1;y!=x;)w=I.val&I.position,I.position>>=1,I.position==0&&(I.position=c,I.val=l(I.index++)),_|=(w>0?1:0)*y,y<<=1;h[f++]=r(_),T=f-1,p--;break;case 1:for(_=0,x=Math.pow(2,16),y=1;y!=x;)w=I.val&I.position,I.position>>=1,I.position==0&&(I.position=c,I.val=l(I.index++)),_|=(w>0?1:0)*y,y<<=1;h[f++]=r(_),T=f-1,p--;break;case 2:return v.join("")}if(p==0&&(p=Math.pow(2,d),d++),h[T])m=h[T];else if(T===f)m=b+b.charAt(0);else return null;v.push(m),h[f++]=b+m.charAt(0),p--,b=m,p==0&&(p=Math.pow(2,d),d++)}}};return o})();t!=null?t.exports=e:typeof angular!="undefined"&&angular!=null&&angular.module("LZString",[]).factory("LZString",function(){return e})})(no);var io=no.exports;function pm(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 a=t.charCodeAt(s);if(a>=48&&a<=57||a>=65&&a<=90||a>=97&&a<=122||a===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 o=1,u="",s=r+1;if(t[s]==="?")throw new TypeError('Pattern cannot start with "?" at '.concat(s));for(;s<t.length;){if(t[s]==="\\"){u+=t[s++]+t[s++];continue}if(t[s]===")"){if(o--,o===0){s++;break}}else if(t[s]==="("&&(o++,t[s+1]!=="?"))throw new TypeError("Capturing groups are not allowed at ".concat(s));u+=t[s++]}if(o)throw new TypeError("Unbalanced pattern at ".concat(r));if(!u)throw new TypeError("Missing pattern at ".concat(r));e.push({type:"PATTERN",index:r,value:u}),r=s;continue}e.push({type:"CHAR",index:r,value:t[r++]})}return e.push({type:"END",index:r,value:""}),e}function so(t,e){e===void 0&&(e={});for(var r=pm(t),n=e.prefixes,i=n===void 0?"./":n,s="[^".concat(Tt(e.delimiter||"/#?"),"]+?"),a=[],o=0,u=0,c="",l=function(y){if(u<r.length&&r[u].type===y)return r[u++].value},h=function(y){var T=l(y);if(T!==void 0)return T;var I=r[u],V=I.type,E=I.index;throw new TypeError("Unexpected ".concat(V," at ").concat(E,", expected ").concat(y))},p=function(){for(var y="",T;T=l("CHAR")||l("ESCAPED_CHAR");)y+=T;return y};u<r.length;){var f=l("CHAR"),d=l("NAME"),m=l("PATTERN");if(d||m){var v=f||"";i.indexOf(v)===-1&&(c+=v,v=""),c&&(a.push(c),c=""),a.push({name:d||o++,prefix:v,suffix:"",pattern:m||s,modifier:l("MODIFIER")||""});continue}var S=f||l("ESCAPED_CHAR");if(S){c+=S;continue}c&&(a.push(c),c="");var b=l("OPEN");if(b){var v=p(),_=l("NAME")||"",w=l("PATTERN")||"",x=p();h("CLOSE"),a.push({name:_||(w?o++:""),pattern:_&&!w?s:w,prefix:v,suffix:x,modifier:l("MODIFIER")||""});continue}h("END")}return a}function fm(t,e){return dm(so(t,e),e)}function dm(t,e){e===void 0&&(e={});var r=Jn(e),n=e.encode,i=n===void 0?function(u){return u}:n,s=e.validate,a=s===void 0?!0:s,o=t.map(function(u){if(typeof u=="object")return new RegExp("^(?:".concat(u.pattern,")$"),r)});return function(u){for(var c="",l=0;l<t.length;l++){var h=t[l];if(typeof h=="string"){c+=h;continue}var p=u?u[h.name]:void 0,f=h.modifier==="?"||h.modifier==="*",d=h.modifier==="*"||h.modifier==="+";if(Array.isArray(p)){if(!d)throw new TypeError('Expected "'.concat(h.name,'" to not repeat, but got an array'));if(p.length===0){if(f)continue;throw new TypeError('Expected "'.concat(h.name,'" to not be empty'))}for(var m=0;m<p.length;m++){var v=i(p[m],h);if(a&&!o[l].test(v))throw new TypeError('Expected all "'.concat(h.name,'" to match "').concat(h.pattern,'", but got "').concat(v,'"'));c+=h.prefix+v+h.suffix}continue}if(typeof p=="string"||typeof p=="number"){var v=i(String(p),h);if(a&&!o[l].test(v))throw new TypeError('Expected "'.concat(h.name,'" to match "').concat(h.pattern,'", but got "').concat(v,'"'));c+=h.prefix+v+h.suffix;continue}if(!f){var S=d?"an array":"a string";throw new TypeError('Expected "'.concat(h.name,'" to be ').concat(S))}}return c}}function gm(t,e){var r=[],n=Yn(t,r,e);return mm(n,r,e)}function mm(t,e,r){r===void 0&&(r={});var n=r.decode,i=n===void 0?function(s){return s}:n;return function(s){var a=t.exec(s);if(!a)return!1;for(var o=a[0],u=a.index,c=Object.create(null),l=function(p){if(a[p]===void 0)return"continue";var f=e[p-1];f.modifier==="*"||f.modifier==="+"?c[f.name]=a[p].split(f.prefix+f.suffix).map(function(d){return i(d,f)}):c[f.name]=i(a[p],f)},h=1;h<a.length;h++)l(h);return{path:o,index:u,params:c}}}function Tt(t){return t.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function Jn(t){return t&&t.sensitive?"":"i"}function vm(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 ym(t,e,r){var n=t.map(function(i){return Yn(i,e,r).source});return new RegExp("(?:".concat(n.join("|"),")"),Jn(r))}function bm(t,e,r){return _m(so(t,r),e,r)}function _m(t,e,r){r===void 0&&(r={});for(var n=r.strict,i=n===void 0?!1:n,s=r.start,a=s===void 0?!0:s,o=r.end,u=o===void 0?!0:o,c=r.encode,l=c===void 0?function(E){return E}:c,h=r.delimiter,p=h===void 0?"/#?":h,f=r.endsWith,d=f===void 0?"":f,m="[".concat(Tt(d),"]|$"),v="[".concat(Tt(p),"]"),S=a?"^":"",b=0,_=t;b<_.length;b++){var w=_[b];if(typeof w=="string")S+=Tt(l(w));else{var x=Tt(l(w.prefix)),y=Tt(l(w.suffix));if(w.pattern)if(e&&e.push(w),x||y)if(w.modifier==="+"||w.modifier==="*"){var T=w.modifier==="*"?"?":"";S+="(?:".concat(x,"((?:").concat(w.pattern,")(?:").concat(y).concat(x,"(?:").concat(w.pattern,"))*)").concat(y,")").concat(T)}else S+="(?:".concat(x,"(").concat(w.pattern,")").concat(y,")").concat(w.modifier);else w.modifier==="+"||w.modifier==="*"?S+="((?:".concat(w.pattern,")").concat(w.modifier,")"):S+="(".concat(w.pattern,")").concat(w.modifier);else S+="(?:".concat(x).concat(y,")").concat(w.modifier)}}if(u)i||(S+="".concat(v,"?")),S+=r.endsWith?"(?=".concat(m,")"):"$";else{var I=t[t.length-1],V=typeof I=="string"?v.indexOf(I[I.length-1])>-1:I===void 0;i||(S+="(?:".concat(v,"(?=").concat(m,"))?")),V||(S+="(?=".concat(v,"|").concat(m,")"))}return new RegExp(S,Jn(r))}function Yn(t,e,r){return t instanceof RegExp?vm(t,e):Array.isArray(t)?ym(t,e,r):bm(t,e,r)}var xm=Object.defineProperty,wm=(t,e,r)=>e in t?xm(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Nt=(t,e,r)=>(wm(t,typeof e!="symbol"?e+"":e,r),r);class Sm{constructor(){Nt(this,"queue",[]),Nt(this,"isProcessing",!1),Nt(this,"results",[]),Nt(this,"cache",new Map),Nt(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((a,o)=>{this.queue.push({key:e,task:r,resolve:a,reject:o}),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 M(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 a=yield r(),o={key:e,status:"fulfilled",value:a};this.results.push(o),this.cache.set(e,o),n(a),this.pendingTasks.delete(e)}catch(s){const a={key:e,status:"rejected",reason:s};this.results.push(a),this.cache.set(e,a),i(s),this.pendingTasks.delete(e)}finally{this.processQueue()}})}}io.compress;io.decompress;/**!
45
+ */(function(t){(function(e,r){t.exports?t.exports=r():e.numeral=r()})(ye,function(){var e,r,n="2.0.6",i={},s={},a={currentLocale:"en",zeroFormat:null,nullFormat:null,defaultFormat:"0,0",scalePercentBy100:!0},o={currentLocale:a.currentLocale,zeroFormat:a.zeroFormat,nullFormat:a.nullFormat,defaultFormat:a.defaultFormat,scalePercentBy100:a.scalePercentBy100};function u(c,l){this._input=c,this._value=l}return e=function(c){var l,h,p,f;if(e.isNumeral(c))l=c.value();else if(c===0||typeof c=="undefined")l=0;else if(c===null||r.isNaN(c))l=null;else if(typeof c=="string")if(o.zeroFormat&&c===o.zeroFormat)l=0;else if(o.nullFormat&&c===o.nullFormat||!c.replace(/[^0-9]+/g,"").length)l=null;else{for(h in i)if(f=typeof i[h].regexps.unformat=="function"?i[h].regexps.unformat():i[h].regexps.unformat,f&&c.match(f)){p=i[h].unformat;break}p=p||e._.stringToNumber,l=p(c)}else l=Number(c)||null;return new u(c,l)},e.version=n,e.isNumeral=function(c){return c instanceof u},e._=r={numberToFormat:function(c,l,h){var p=s[e.options.currentLocale],f=!1,d=!1,m=0,v="",S=1e12,b=1e9,_=1e6,w=1e3,x="",y=!1,T,I,j,E,C,L,N;if(c=c||0,I=Math.abs(c),e._.includes(l,"(")?(f=!0,l=l.replace(/[\(|\)]/g,"")):(e._.includes(l,"+")||e._.includes(l,"-"))&&(C=e._.includes(l,"+")?l.indexOf("+"):c<0?l.indexOf("-"):-1,l=l.replace(/[\+|\-]/g,"")),e._.includes(l,"a")&&(T=l.match(/a(k|m|b|t)?/),T=T?T[1]:!1,e._.includes(l," a")&&(v=" "),l=l.replace(new RegExp(v+"a[kmbt]?"),""),I>=S&&!T||T==="t"?(v+=p.abbreviations.trillion,c=c/S):I<S&&I>=b&&!T||T==="b"?(v+=p.abbreviations.billion,c=c/b):I<b&&I>=_&&!T||T==="m"?(v+=p.abbreviations.million,c=c/_):(I<_&&I>=w&&!T||T==="k")&&(v+=p.abbreviations.thousand,c=c/w)),e._.includes(l,"[.]")&&(d=!0,l=l.replace("[.]",".")),j=c.toString().split(".")[0],E=l.split(".")[1],L=l.indexOf(","),m=(l.split(".")[0].split(",")[0].match(/0/g)||[]).length,E?(e._.includes(E,"[")?(E=E.replace("]",""),E=E.split("["),x=e._.toFixed(c,E[0].length+E[1].length,h,E[1].length)):x=e._.toFixed(c,E.length,h),j=x.split(".")[0],e._.includes(x,".")?x=p.delimiters.decimal+x.split(".")[1]:x="",d&&Number(x.slice(1))===0&&(x="")):j=e._.toFixed(c,0,h),v&&!T&&Number(j)>=1e3&&v!==p.abbreviations.trillion)switch(j=String(Number(j)/1e3),v){case p.abbreviations.thousand:v=p.abbreviations.million;break;case p.abbreviations.million:v=p.abbreviations.billion;break;case p.abbreviations.billion:v=p.abbreviations.trillion;break}if(e._.includes(j,"-")&&(j=j.slice(1),y=!0),j.length<m)for(var B=m-j.length;B>0;B--)j="0"+j;return L>-1&&(j=j.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+p.delimiters.thousands)),l.indexOf(".")===0&&(j=""),N=j+x+(v||""),f?N=(f&&y?"(":"")+N+(f&&y?")":""):C>=0?N=C===0?(y?"-":"+")+N:N+(y?"-":"+"):y&&(N="-"+N),N},stringToNumber:function(c){var l=s[o.currentLocale],h=c,p={thousand:3,million:6,billion:9,trillion:12},f,d,m;if(o.zeroFormat&&c===o.zeroFormat)d=0;else if(o.nullFormat&&c===o.nullFormat||!c.replace(/[^0-9]+/g,"").length)d=null;else{d=1,l.delimiters.decimal!=="."&&(c=c.replace(/\./g,"").replace(l.delimiters.decimal,"."));for(f in p)if(m=new RegExp("[^a-zA-Z]"+l.abbreviations[f]+"(?:\\)|(\\"+l.currency.symbol+")?(?:\\))?)?$"),h.match(m)){d*=Math.pow(10,p[f]);break}d*=(c.split("-").length+Math.min(c.split("(").length-1,c.split(")").length-1))%2?1:-1,c=c.replace(/[^0-9\.]+/g,""),d*=Number(c)}return d},isNaN:function(c){return typeof c=="number"&&isNaN(c)},includes:function(c,l){return c.indexOf(l)!==-1},insert:function(c,l,h){return c.slice(0,h)+l+c.slice(h)},reduce:function(c,l){if(this===null)throw new TypeError("Array.prototype.reduce called on null or undefined");if(typeof l!="function")throw new TypeError(l+" is not a function");var h=Object(c),p=h.length>>>0,f=0,d;if(arguments.length===3)d=arguments[2];else{for(;f<p&&!(f in h);)f++;if(f>=p)throw new TypeError("Reduce of empty array with no initial value");d=h[f++]}for(;f<p;f++)f in h&&(d=l(d,h[f],f,h));return d},multiplier:function(c){var l=c.toString().split(".");return l.length<2?1:Math.pow(10,l[1].length)},correctionFactor:function(){var c=Array.prototype.slice.call(arguments);return c.reduce(function(l,h){var p=r.multiplier(h);return l>p?l:p},1)},toFixed:function(c,l,h,p){var f=c.toString().split("."),d=l-(p||0),m,v,S,b;return f.length===2?m=Math.min(Math.max(f[1].length,d),l):m=d,S=Math.pow(10,m),b=(h(c+"e+"+m)/S).toFixed(m),p>l-m&&(v=new RegExp("\\.?0{1,"+(p-(l-m))+"}$"),b=b.replace(v,"")),b}},e.options=o,e.formats=i,e.locales=s,e.locale=function(c){return c&&(o.currentLocale=c.toLowerCase()),o.currentLocale},e.localeData=function(c){if(!c)return s[o.currentLocale];if(c=c.toLowerCase(),!s[c])throw new Error("Unknown locale : "+c);return s[c]},e.reset=function(){for(var c in a)o[c]=a[c]},e.zeroFormat=function(c){o.zeroFormat=typeof c=="string"?c:null},e.nullFormat=function(c){o.nullFormat=typeof c=="string"?c:null},e.defaultFormat=function(c){o.defaultFormat=typeof c=="string"?c:"0.0"},e.register=function(c,l,h){if(l=l.toLowerCase(),this[c+"s"][l])throw new TypeError(l+" "+c+" already registered.");return this[c+"s"][l]=h,h},e.validate=function(c,l){var h,p,f,d,m,v,S,b;if(typeof c!="string"&&(c+="",console.warn&&console.warn("Numeral.js: Value is not string. It has been co-erced to: ",c)),c=c.trim(),c.match(/^\d+$/))return!0;if(c==="")return!1;try{S=e.localeData(l)}catch(_){S=e.localeData(e.locale())}return f=S.currency.symbol,m=S.abbreviations,h=S.delimiters.decimal,S.delimiters.thousands==="."?p="\\.":p=S.delimiters.thousands,b=c.match(/^[^\d]+/),b!==null&&(c=c.substr(1),b[0]!==f)||(b=c.match(/[^\d]+$/),b!==null&&(c=c.slice(0,-1),b[0]!==m.thousand&&b[0]!==m.million&&b[0]!==m.billion&&b[0]!==m.trillion))?!1:(v=new RegExp(p+"{2}"),c.match(/[^\d.,]/g)?!1:(d=c.split(h),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=u.prototype={clone:function(){return e(this)},format:function(c,l){var h=this._value,p=c||o.defaultFormat,f,d,m;if(l=l||Math.round,h===0&&o.zeroFormat!==null)d=o.zeroFormat;else if(h===null&&o.nullFormat!==null)d=o.nullFormat;else{for(f in i)if(p.match(i[f].regexps.format)){m=i[f].format;break}m=m||e._.numberToFormat,d=m(h,p,l)}return d},value:function(){return this._value},input:function(){return this._input},set:function(c){return this._value=Number(c),this},add:function(c){var l=r.correctionFactor.call(null,this._value,c);function h(p,f,d,m){return p+Math.round(l*f)}return this._value=r.reduce([this._value,c],h,0)/l,this},subtract:function(c){var l=r.correctionFactor.call(null,this._value,c);function h(p,f,d,m){return p-Math.round(l*f)}return this._value=r.reduce([c],h,Math.round(this._value*l))/l,this},multiply:function(c){function l(h,p,f,d){var m=r.correctionFactor(h,p);return Math.round(h*m)*Math.round(p*m)/Math.round(m*m)}return this._value=r.reduce([this._value,c],l,1),this},divide:function(c){function l(h,p,f,d){var m=r.correctionFactor(h,p);return Math.round(h*m)/Math.round(p*m)}return this._value=r.reduce([this._value,c],l),this},difference:function(c){return Math.abs(e(this._value).subtract(c).value())}},e.register("locale","en",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(c){var l=c%10;return~~(c%100/10)===1?"th":l===1?"st":l===2?"nd":l===3?"rd":"th"},currency:{symbol:"$"}}),(function(){e.register("format","bps",{regexps:{format:/(BPS)/,unformat:/(BPS)/},format:function(c,l,h){var p=e._.includes(l," BPS")?" ":"",f;return c=c*1e4,l=l.replace(/\s?BPS/,""),f=e._.numberToFormat(c,l,h),e._.includes(f,")")?(f=f.split(""),f.splice(-1,0,p+"BPS"),f=f.join("")):f=f+p+"BPS",f},unformat:function(c){return+(e._.stringToNumber(c)*1e-4).toFixed(15)}})})(),(function(){var c={base:1e3,suffixes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]},l={base:1024,suffixes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},h=c.suffixes.concat(l.suffixes.filter(function(f){return c.suffixes.indexOf(f)<0})),p=h.join("|");p="("+p.replace("B","B(?!PS)")+")",e.register("format","bytes",{regexps:{format:/([0\s]i?b)/,unformat:new RegExp(p)},format:function(f,d,m){var v,S=e._.includes(d,"ib")?l:c,b=e._.includes(d," b")||e._.includes(d," ib")?" ":"",_,w,x;for(d=d.replace(/\s?i?b/,""),_=0;_<=S.suffixes.length;_++)if(w=Math.pow(S.base,_),x=Math.pow(S.base,_+1),f===null||f===0||f>=w&&f<x){b+=S.suffixes[_],w>0&&(f=f/w);break}return v=e._.numberToFormat(f,d,m),v+b},unformat:function(f){var d=e._.stringToNumber(f),m,v;if(d){for(m=c.suffixes.length-1;m>=0;m--){if(e._.includes(f,c.suffixes[m])){v=Math.pow(c.base,m);break}if(e._.includes(f,l.suffixes[m])){v=Math.pow(l.base,m);break}}d*=v||1}return d}})})(),(function(){e.register("format","currency",{regexps:{format:/(\$)/},format:function(c,l,h){var p=e.locales[e.options.currentLocale],f={before:l.match(/^([\+|\-|\(|\s|\$]*)/)[0],after:l.match(/([\+|\-|\)|\s|\$]*)$/)[0]},d,m,v;for(l=l.replace(/\s?\$\s?/,""),d=e._.numberToFormat(c,l,h),c>=0?(f.before=f.before.replace(/[\-\(]/,""),f.after=f.after.replace(/[\-\)]/,"")):c<0&&!e._.includes(f.before,"-")&&!e._.includes(f.before,"(")&&(f.before="-"+f.before),v=0;v<f.before.length;v++)switch(m=f.before[v],m){case"$":d=e._.insert(d,p.currency.symbol,v);break;case" ":d=e._.insert(d," ",v+p.currency.symbol.length-1);break}for(v=f.after.length-1;v>=0;v--)switch(m=f.after[v],m){case"$":d=v===f.after.length-1?d+p.currency.symbol:e._.insert(d,p.currency.symbol,-(f.after.length-(1+v)));break;case" ":d=v===f.after.length-1?d+" ":e._.insert(d," ",-(f.after.length-(1+v)+p.currency.symbol.length-1));break}return d}})})(),(function(){e.register("format","exponential",{regexps:{format:/(e\+|e-)/,unformat:/(e\+|e-)/},format:function(c,l,h){var p,f=typeof c=="number"&&!e._.isNaN(c)?c.toExponential():"0e+0",d=f.split("e");return l=l.replace(/e[\+|\-]{1}0/,""),p=e._.numberToFormat(Number(d[0]),l,h),p+"e"+d[1]},unformat:function(c){var l=e._.includes(c,"e+")?c.split("e+"):c.split("e-"),h=Number(l[0]),p=Number(l[1]);p=e._.includes(c,"e-")?p*=-1:p;function f(d,m,v,S){var b=e._.correctionFactor(d,m),_=d*b*(m*b)/(b*b);return _}return e._.reduce([h,Math.pow(10,p)],f,1)}})})(),(function(){e.register("format","ordinal",{regexps:{format:/(o)/},format:function(c,l,h){var p=e.locales[e.options.currentLocale],f,d=e._.includes(l," o")?" ":"";return l=l.replace(/\s?o/,""),d+=p.ordinal(c),f=e._.numberToFormat(c,l,h),f+d}})})(),(function(){e.register("format","percentage",{regexps:{format:/(%)/,unformat:/(%)/},format:function(c,l,h){var p=e._.includes(l," %")?" ":"",f;return e.options.scalePercentBy100&&(c=c*100),l=l.replace(/\s?\%/,""),f=e._.numberToFormat(c,l,h),e._.includes(f,")")?(f=f.split(""),f.splice(-1,0,p+"%"),f=f.join("")):f=f+p+"%",f},unformat:function(c){var l=e._.stringToNumber(c);return e.options.scalePercentBy100?l*.01:l}})})(),(function(){e.register("format","time",{regexps:{format:/(:)/,unformat:/(:)/},format:function(c,l,h){var p=Math.floor(c/60/60),f=Math.floor((c-p*60*60)/60),d=Math.round(c-p*60*60-f*60);return p+":"+(f<10?"0"+f:f)+":"+(d<10?"0"+d:d)},unformat:function(c){var l=c.split(":"),h=0;return l.length===3?(h=h+Number(l[0])*60*60,h=h+Number(l[1])*60,h=h+Number(l[2])):l.length===2&&(h=h+Number(l[0])*60,h=h+Number(l[1])),Number(h)}})})(),e})})(pm);var Xr={exports:{}},As;function oo(){return As||(As=1,(function(t,e){(function(r,n){t.exports=n()})(ye,(function(){var r=1e3,n=6e4,i=36e5,s="millisecond",a="second",o="minute",u="hour",c="day",l="week",h="month",p="quarter",f="year",d="date",m="Invalid Date",v=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,S=/\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,b={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(B){var O=["th","st","nd","rd"],$=B%100;return"["+B+(O[($-20)%10]||O[$]||O[0])+"]"}},_=function(B,O,$){var U=String(B);return!U||U.length>=O?B:""+Array(O+1-U.length).join($)+B},w={s:_,z:function(B){var O=-B.utcOffset(),$=Math.abs(O),U=Math.floor($/60),V=$%60;return(O<=0?"+":"-")+_(U,2,"0")+":"+_(V,2,"0")},m:function B(O,$){if(O.date()<$.date())return-B($,O);var U=12*($.year()-O.year())+($.month()-O.month()),V=O.clone().add(U,h),q=$-V<0,z=O.clone().add(U+(q?-1:1),h);return+(-(U+($-V)/(q?V-z:z-V))||0)},a:function(B){return B<0?Math.ceil(B)||0:Math.floor(B)},p:function(B){return{M:h,y:f,w:l,d:c,D:d,h:u,m:o,s:a,ms:s,Q:p}[B]||String(B||"").toLowerCase().replace(/s$/,"")},u:function(B){return B===void 0}},x="en",y={};y[x]=b;var T="$isDayjsObject",I=function(B){return B instanceof L||!(!B||!B[T])},j=function B(O,$,U){var V;if(!O)return x;if(typeof O=="string"){var q=O.toLowerCase();y[q]&&(V=q),$&&(y[q]=$,V=q);var z=O.split("-");if(!V&&z.length>1)return B(z[0])}else{var A=O.name;y[A]=O,V=A}return!U&&V&&(x=V),V||!U&&x},E=function(B,O){if(I(B))return B.clone();var $=typeof O=="object"?O:{};return $.date=B,$.args=arguments,new L($)},C=w;C.l=j,C.i=I,C.w=function(B,O){return E(B,{locale:O.$L,utc:O.$u,x:O.$x,$offset:O.$offset})};var L=(function(){function B($){this.$L=j($.locale,null,!0),this.parse($),this.$x=this.$x||$.x||{},this[T]=!0}var O=B.prototype;return O.parse=function($){this.$d=(function(U){var V=U.date,q=U.utc;if(V===null)return new Date(NaN);if(C.u(V))return new Date;if(V instanceof Date)return new Date(V);if(typeof V=="string"&&!/Z$/i.test(V)){var z=V.match(v);if(z){var A=z[2]-1||0,P=(z[7]||"0").substring(0,3);return q?new Date(Date.UTC(z[1],A,z[3]||1,z[4]||0,z[5]||0,z[6]||0,P)):new Date(z[1],A,z[3]||1,z[4]||0,z[5]||0,z[6]||0,P)}}return new Date(V)})($),this.init()},O.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()},O.$utils=function(){return C},O.isValid=function(){return this.$d.toString()!==m},O.isSame=function($,U){var V=E($);return this.startOf(U)<=V&&V<=this.endOf(U)},O.isAfter=function($,U){return E($)<this.startOf(U)},O.isBefore=function($,U){return this.endOf(U)<E($)},O.$g=function($,U,V){return C.u($)?this[U]:this.set(V,$)},O.unix=function(){return Math.floor(this.valueOf()/1e3)},O.valueOf=function(){return this.$d.getTime()},O.startOf=function($,U){var V=this,q=!!C.u(U)||U,z=C.p($),A=function(Le,pe){var Pe=C.w(V.$u?Date.UTC(V.$y,pe,Le):new Date(V.$y,pe,Le),V);return q?Pe:Pe.endOf(c)},P=function(Le,pe){return C.w(V.toDate()[Le].apply(V.toDate("s"),(q?[0,0,0,0]:[23,59,59,999]).slice(pe)),V)},D=this.$W,R=this.$M,te=this.$D,me="set"+(this.$u?"UTC":"");switch(z){case f:return q?A(1,0):A(31,11);case h:return q?A(1,R):A(0,R+1);case l:var Oe=this.$locale().weekStart||0,ne=(D<Oe?D+7:D)-Oe;return A(q?te-ne:te+(6-ne),R);case c:case d:return P(me+"Hours",0);case u:return P(me+"Minutes",1);case o:return P(me+"Seconds",2);case a:return P(me+"Milliseconds",3);default:return this.clone()}},O.endOf=function($){return this.startOf($,!1)},O.$set=function($,U){var V,q=C.p($),z="set"+(this.$u?"UTC":""),A=(V={},V[c]=z+"Date",V[d]=z+"Date",V[h]=z+"Month",V[f]=z+"FullYear",V[u]=z+"Hours",V[o]=z+"Minutes",V[a]=z+"Seconds",V[s]=z+"Milliseconds",V)[q],P=q===c?this.$D+(U-this.$W):U;if(q===h||q===f){var D=this.clone().set(d,1);D.$d[A](P),D.init(),this.$d=D.set(d,Math.min(this.$D,D.daysInMonth())).$d}else A&&this.$d[A](P);return this.init(),this},O.set=function($,U){return this.clone().$set($,U)},O.get=function($){return this[C.p($)]()},O.add=function($,U){var V,q=this;$=Number($);var z=C.p(U),A=function(R){var te=E(q);return C.w(te.date(te.date()+Math.round(R*$)),q)};if(z===h)return this.set(h,this.$M+$);if(z===f)return this.set(f,this.$y+$);if(z===c)return A(1);if(z===l)return A(7);var P=(V={},V[o]=n,V[u]=i,V[a]=r,V)[z]||1,D=this.$d.getTime()+$*P;return C.w(D,this)},O.subtract=function($,U){return this.add(-1*$,U)},O.format=function($){var U=this,V=this.$locale();if(!this.isValid())return V.invalidDate||m;var q=$||"YYYY-MM-DDTHH:mm:ssZ",z=C.z(this),A=this.$H,P=this.$m,D=this.$M,R=V.weekdays,te=V.months,me=V.meridiem,Oe=function(pe,Pe,tt,rr){return pe&&(pe[Pe]||pe(U,q))||tt[Pe].slice(0,rr)},ne=function(pe){return C.s(A%12||12,pe,"0")},Le=me||function(pe,Pe,tt){var rr=pe<12?"AM":"PM";return tt?rr.toLowerCase():rr};return q.replace(S,(function(pe,Pe){return Pe||(function(tt){switch(tt){case"YY":return String(U.$y).slice(-2);case"YYYY":return C.s(U.$y,4,"0");case"M":return D+1;case"MM":return C.s(D+1,2,"0");case"MMM":return Oe(V.monthsShort,D,te,3);case"MMMM":return Oe(te,D);case"D":return U.$D;case"DD":return C.s(U.$D,2,"0");case"d":return String(U.$W);case"dd":return Oe(V.weekdaysMin,U.$W,R,2);case"ddd":return Oe(V.weekdaysShort,U.$W,R,3);case"dddd":return R[U.$W];case"H":return String(A);case"HH":return C.s(A,2,"0");case"h":return ne(1);case"hh":return ne(2);case"a":return Le(A,P,!0);case"A":return Le(A,P,!1);case"m":return String(P);case"mm":return C.s(P,2,"0");case"s":return String(U.$s);case"ss":return C.s(U.$s,2,"0");case"SSS":return C.s(U.$ms,3,"0");case"Z":return z}return null})(pe)||z.replace(":","")}))},O.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},O.diff=function($,U,V){var q,z=this,A=C.p(U),P=E($),D=(P.utcOffset()-this.utcOffset())*n,R=this-P,te=function(){return C.m(z,P)};switch(A){case f:q=te()/12;break;case h:q=te();break;case p:q=te()/3;break;case l:q=(R-D)/6048e5;break;case c:q=(R-D)/864e5;break;case u:q=R/i;break;case o:q=R/n;break;case a:q=R/r;break;default:q=R}return V?q:C.a(q)},O.daysInMonth=function(){return this.endOf(h).$D},O.$locale=function(){return y[this.$L]},O.locale=function($,U){if(!$)return this.$L;var V=this.clone(),q=j($,U,!0);return q&&(V.$L=q),V},O.clone=function(){return C.w(this.$d,this)},O.toDate=function(){return new Date(this.valueOf())},O.toJSON=function(){return this.isValid()?this.toISOString():null},O.toISOString=function(){return this.$d.toISOString()},O.toString=function(){return this.$d.toUTCString()},B})(),N=L.prototype;return E.prototype=N,[["$ms",s],["$s",a],["$m",o],["$H",u],["$W",c],["$M",h],["$y",f],["$D",d]].forEach((function(B){N[B[1]]=function(O){return this.$g(O,B[0],B[1])}})),E.extend=function(B,O){return B.$i||(B(O,L,E),B.$i=!0),E},E.locale=j,E.isDayjs=I,E.unix=function(B){return E(1e3*B)},E.en=y[x],E.Ls=y,E.p={},E}))})(Xr)),Xr.exports}var fm=oo();const dm=_g(fm);var gm={exports:{}};(function(t,e){(function(r,n){t.exports=n(oo())})(ye,(function(r){function n(a){return a&&typeof a=="object"&&"default"in a?a:{default:a}}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(a,o){return o==="W"?a+"周":a+"日"},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(a,o){var u=100*a+o;return u<600?"凌晨":u<900?"早上":u<1100?"上午":u<1300?"中午":u<1800?"下午":"晚上"}};return i.default.locale(s,null,!0),s}))})(gm);dm.locale("zh-cn");function mm(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 Kt(t=0){return M(this,null,function*(){return new Promise(e=>{setTimeout(e,t)})})}function vm(t){return[...t.entries()].reduce((e,[r,n])=>(e[r]=n,e),{})}function ym(t,e){return Array.from(new Set(t))}function Is(t){return t?[].concat(t):[]}function en(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 bm(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 co={exports:{}};(function(t){var e=(function(){var r=String.fromCharCode,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",s={};function a(u,c){if(!s[u]){s[u]={};for(var l=0;l<u.length;l++)s[u][u.charAt(l)]=l}return s[u][c]}var o={compressToBase64:function(u){if(u==null)return"";var c=o._compress(u,6,function(l){return n.charAt(l)});switch(c.length%4){default:case 0:return c;case 1:return c+"===";case 2:return c+"==";case 3:return c+"="}},decompressFromBase64:function(u){return u==null?"":u==""?null:o._decompress(u.length,32,function(c){return a(n,u.charAt(c))})},compressToUTF16:function(u){return u==null?"":o._compress(u,15,function(c){return r(c+32)})+" "},decompressFromUTF16:function(u){return u==null?"":u==""?null:o._decompress(u.length,16384,function(c){return u.charCodeAt(c)-32})},compressToUint8Array:function(u){for(var c=o.compress(u),l=new Uint8Array(c.length*2),h=0,p=c.length;h<p;h++){var f=c.charCodeAt(h);l[h*2]=f>>>8,l[h*2+1]=f%256}return l},decompressFromUint8Array:function(u){if(u==null)return o.decompress(u);for(var c=new Array(u.length/2),l=0,h=c.length;l<h;l++)c[l]=u[l*2]*256+u[l*2+1];var p=[];return c.forEach(function(f){p.push(r(f))}),o.decompress(p.join(""))},compressToEncodedURIComponent:function(u){return u==null?"":o._compress(u,6,function(c){return i.charAt(c)})},decompressFromEncodedURIComponent:function(u){return u==null?"":u==""?null:(u=u.replace(/ /g,"+"),o._decompress(u.length,32,function(c){return a(i,u.charAt(c))}))},compress:function(u){return o._compress(u,16,function(c){return r(c)})},_compress:function(u,c,l){if(u==null)return"";var h,p,f={},d={},m="",v="",S="",b=2,_=3,w=2,x=[],y=0,T=0,I;for(I=0;I<u.length;I+=1)if(m=u.charAt(I),Object.prototype.hasOwnProperty.call(f,m)||(f[m]=_++,d[m]=!0),v=S+m,Object.prototype.hasOwnProperty.call(f,v))S=v;else{if(Object.prototype.hasOwnProperty.call(d,S)){if(S.charCodeAt(0)<256){for(h=0;h<w;h++)y=y<<1,T==c-1?(T=0,x.push(l(y)),y=0):T++;for(p=S.charCodeAt(0),h=0;h<8;h++)y=y<<1|p&1,T==c-1?(T=0,x.push(l(y)),y=0):T++,p=p>>1}else{for(p=1,h=0;h<w;h++)y=y<<1|p,T==c-1?(T=0,x.push(l(y)),y=0):T++,p=0;for(p=S.charCodeAt(0),h=0;h<16;h++)y=y<<1|p&1,T==c-1?(T=0,x.push(l(y)),y=0):T++,p=p>>1}b--,b==0&&(b=Math.pow(2,w),w++),delete d[S]}else for(p=f[S],h=0;h<w;h++)y=y<<1|p&1,T==c-1?(T=0,x.push(l(y)),y=0):T++,p=p>>1;b--,b==0&&(b=Math.pow(2,w),w++),f[v]=_++,S=String(m)}if(S!==""){if(Object.prototype.hasOwnProperty.call(d,S)){if(S.charCodeAt(0)<256){for(h=0;h<w;h++)y=y<<1,T==c-1?(T=0,x.push(l(y)),y=0):T++;for(p=S.charCodeAt(0),h=0;h<8;h++)y=y<<1|p&1,T==c-1?(T=0,x.push(l(y)),y=0):T++,p=p>>1}else{for(p=1,h=0;h<w;h++)y=y<<1|p,T==c-1?(T=0,x.push(l(y)),y=0):T++,p=0;for(p=S.charCodeAt(0),h=0;h<16;h++)y=y<<1|p&1,T==c-1?(T=0,x.push(l(y)),y=0):T++,p=p>>1}b--,b==0&&(b=Math.pow(2,w),w++),delete d[S]}else for(p=f[S],h=0;h<w;h++)y=y<<1|p&1,T==c-1?(T=0,x.push(l(y)),y=0):T++,p=p>>1;b--,b==0&&(b=Math.pow(2,w),w++)}for(p=2,h=0;h<w;h++)y=y<<1|p&1,T==c-1?(T=0,x.push(l(y)),y=0):T++,p=p>>1;for(;;)if(y=y<<1,T==c-1){x.push(l(y));break}else T++;return x.join("")},decompress:function(u){return u==null?"":u==""?null:o._decompress(u.length,32768,function(c){return u.charCodeAt(c)})},_decompress:function(u,c,l){var h=[],p=4,f=4,d=3,m="",v=[],S,b,_,w,x,y,T,I={val:l(0),position:c,index:1};for(S=0;S<3;S+=1)h[S]=S;for(_=0,x=Math.pow(2,2),y=1;y!=x;)w=I.val&I.position,I.position>>=1,I.position==0&&(I.position=c,I.val=l(I.index++)),_|=(w>0?1:0)*y,y<<=1;switch(_){case 0:for(_=0,x=Math.pow(2,8),y=1;y!=x;)w=I.val&I.position,I.position>>=1,I.position==0&&(I.position=c,I.val=l(I.index++)),_|=(w>0?1:0)*y,y<<=1;T=r(_);break;case 1:for(_=0,x=Math.pow(2,16),y=1;y!=x;)w=I.val&I.position,I.position>>=1,I.position==0&&(I.position=c,I.val=l(I.index++)),_|=(w>0?1:0)*y,y<<=1;T=r(_);break;case 2:return""}for(h[3]=T,b=T,v.push(T);;){if(I.index>u)return"";for(_=0,x=Math.pow(2,d),y=1;y!=x;)w=I.val&I.position,I.position>>=1,I.position==0&&(I.position=c,I.val=l(I.index++)),_|=(w>0?1:0)*y,y<<=1;switch(T=_){case 0:for(_=0,x=Math.pow(2,8),y=1;y!=x;)w=I.val&I.position,I.position>>=1,I.position==0&&(I.position=c,I.val=l(I.index++)),_|=(w>0?1:0)*y,y<<=1;h[f++]=r(_),T=f-1,p--;break;case 1:for(_=0,x=Math.pow(2,16),y=1;y!=x;)w=I.val&I.position,I.position>>=1,I.position==0&&(I.position=c,I.val=l(I.index++)),_|=(w>0?1:0)*y,y<<=1;h[f++]=r(_),T=f-1,p--;break;case 2:return v.join("")}if(p==0&&(p=Math.pow(2,d),d++),h[T])m=h[T];else if(T===f)m=b+b.charAt(0);else return null;v.push(m),h[f++]=b+m.charAt(0),p--,b=m,p==0&&(p=Math.pow(2,d),d++)}}};return o})();t!=null?t.exports=e:typeof angular!="undefined"&&angular!=null&&angular.module("LZString",[]).factory("LZString",function(){return e})})(co);var uo=co.exports;function _m(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 a=t.charCodeAt(s);if(a>=48&&a<=57||a>=65&&a<=90||a>=97&&a<=122||a===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 o=1,u="",s=r+1;if(t[s]==="?")throw new TypeError('Pattern cannot start with "?" at '.concat(s));for(;s<t.length;){if(t[s]==="\\"){u+=t[s++]+t[s++];continue}if(t[s]===")"){if(o--,o===0){s++;break}}else if(t[s]==="("&&(o++,t[s+1]!=="?"))throw new TypeError("Capturing groups are not allowed at ".concat(s));u+=t[s++]}if(o)throw new TypeError("Unbalanced pattern at ".concat(r));if(!u)throw new TypeError("Missing pattern at ".concat(r));e.push({type:"PATTERN",index:r,value:u}),r=s;continue}e.push({type:"CHAR",index:r,value:t[r++]})}return e.push({type:"END",index:r,value:""}),e}function lo(t,e){e===void 0&&(e={});for(var r=_m(t),n=e.prefixes,i=n===void 0?"./":n,s="[^".concat(Tt(e.delimiter||"/#?"),"]+?"),a=[],o=0,u=0,c="",l=function(y){if(u<r.length&&r[u].type===y)return r[u++].value},h=function(y){var T=l(y);if(T!==void 0)return T;var I=r[u],j=I.type,E=I.index;throw new TypeError("Unexpected ".concat(j," at ").concat(E,", expected ").concat(y))},p=function(){for(var y="",T;T=l("CHAR")||l("ESCAPED_CHAR");)y+=T;return y};u<r.length;){var f=l("CHAR"),d=l("NAME"),m=l("PATTERN");if(d||m){var v=f||"";i.indexOf(v)===-1&&(c+=v,v=""),c&&(a.push(c),c=""),a.push({name:d||o++,prefix:v,suffix:"",pattern:m||s,modifier:l("MODIFIER")||""});continue}var S=f||l("ESCAPED_CHAR");if(S){c+=S;continue}c&&(a.push(c),c="");var b=l("OPEN");if(b){var v=p(),_=l("NAME")||"",w=l("PATTERN")||"",x=p();h("CLOSE"),a.push({name:_||(w?o++:""),pattern:_&&!w?s:w,prefix:v,suffix:x,modifier:l("MODIFIER")||""});continue}h("END")}return a}function xm(t,e){return wm(lo(t,e),e)}function wm(t,e){e===void 0&&(e={});var r=Xn(e),n=e.encode,i=n===void 0?function(u){return u}:n,s=e.validate,a=s===void 0?!0:s,o=t.map(function(u){if(typeof u=="object")return new RegExp("^(?:".concat(u.pattern,")$"),r)});return function(u){for(var c="",l=0;l<t.length;l++){var h=t[l];if(typeof h=="string"){c+=h;continue}var p=u?u[h.name]:void 0,f=h.modifier==="?"||h.modifier==="*",d=h.modifier==="*"||h.modifier==="+";if(Array.isArray(p)){if(!d)throw new TypeError('Expected "'.concat(h.name,'" to not repeat, but got an array'));if(p.length===0){if(f)continue;throw new TypeError('Expected "'.concat(h.name,'" to not be empty'))}for(var m=0;m<p.length;m++){var v=i(p[m],h);if(a&&!o[l].test(v))throw new TypeError('Expected all "'.concat(h.name,'" to match "').concat(h.pattern,'", but got "').concat(v,'"'));c+=h.prefix+v+h.suffix}continue}if(typeof p=="string"||typeof p=="number"){var v=i(String(p),h);if(a&&!o[l].test(v))throw new TypeError('Expected "'.concat(h.name,'" to match "').concat(h.pattern,'", but got "').concat(v,'"'));c+=h.prefix+v+h.suffix;continue}if(!f){var S=d?"an array":"a string";throw new TypeError('Expected "'.concat(h.name,'" to be ').concat(S))}}return c}}function Sm(t,e){var r=[],n=ei(t,r,e);return Em(n,r,e)}function Em(t,e,r){r===void 0&&(r={});var n=r.decode,i=n===void 0?function(s){return s}:n;return function(s){var a=t.exec(s);if(!a)return!1;for(var o=a[0],u=a.index,c=Object.create(null),l=function(p){if(a[p]===void 0)return"continue";var f=e[p-1];f.modifier==="*"||f.modifier==="+"?c[f.name]=a[p].split(f.prefix+f.suffix).map(function(d){return i(d,f)}):c[f.name]=i(a[p],f)},h=1;h<a.length;h++)l(h);return{path:o,index:u,params:c}}}function Tt(t){return t.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function Xn(t){return t&&t.sensitive?"":"i"}function Tm(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 Cm(t,e,r){var n=t.map(function(i){return ei(i,e,r).source});return new RegExp("(?:".concat(n.join("|"),")"),Xn(r))}function Am(t,e,r){return Im(lo(t,r),e,r)}function Im(t,e,r){r===void 0&&(r={});for(var n=r.strict,i=n===void 0?!1:n,s=r.start,a=s===void 0?!0:s,o=r.end,u=o===void 0?!0:o,c=r.encode,l=c===void 0?function(E){return E}:c,h=r.delimiter,p=h===void 0?"/#?":h,f=r.endsWith,d=f===void 0?"":f,m="[".concat(Tt(d),"]|$"),v="[".concat(Tt(p),"]"),S=a?"^":"",b=0,_=t;b<_.length;b++){var w=_[b];if(typeof w=="string")S+=Tt(l(w));else{var x=Tt(l(w.prefix)),y=Tt(l(w.suffix));if(w.pattern)if(e&&e.push(w),x||y)if(w.modifier==="+"||w.modifier==="*"){var T=w.modifier==="*"?"?":"";S+="(?:".concat(x,"((?:").concat(w.pattern,")(?:").concat(y).concat(x,"(?:").concat(w.pattern,"))*)").concat(y,")").concat(T)}else S+="(?:".concat(x,"(").concat(w.pattern,")").concat(y,")").concat(w.modifier);else w.modifier==="+"||w.modifier==="*"?S+="((?:".concat(w.pattern,")").concat(w.modifier,")"):S+="(".concat(w.pattern,")").concat(w.modifier);else S+="(?:".concat(x).concat(y,")").concat(w.modifier)}}if(u)i||(S+="".concat(v,"?")),S+=r.endsWith?"(?=".concat(m,")"):"$";else{var I=t[t.length-1],j=typeof I=="string"?v.indexOf(I[I.length-1])>-1:I===void 0;i||(S+="(?:".concat(v,"(?=").concat(m,"))?")),j||(S+="(?=".concat(v,"|").concat(m,")"))}return new RegExp(S,Xn(r))}function ei(t,e,r){return t instanceof RegExp?Tm(t,e):Array.isArray(t)?Cm(t,e,r):Am(t,e,r)}var Rm=Object.defineProperty,km=(t,e,r)=>e in t?Rm(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Nt=(t,e,r)=>(km(t,typeof e!="symbol"?e+"":e,r),r);class Om{constructor(){Nt(this,"queue",[]),Nt(this,"isProcessing",!1),Nt(this,"results",[]),Nt(this,"cache",new Map),Nt(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((a,o)=>{this.queue.push({key:e,task:r,resolve:a,reject:o}),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 M(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 a=yield r(),o={key:e,status:"fulfilled",value:a};this.results.push(o),this.cache.set(e,o),n(a),this.pendingTasks.delete(e)}catch(s){const a={key:e,status:"rejected",reason:s};this.results.push(a),this.cache.set(e,a),i(s),this.pendingTasks.delete(e)}finally{this.processQueue()}})}}uo.compress;uo.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.19.21
49
+ * @version 0.19.23-alpha.0
50
50
  * @license <a href="https://vtj.pro/license.html">MIT License</a>
51
- */const Em="VueMaterial",Tm="VueRouterMaterial",Cm={[Em]:["Transition","TransitionGroup","KeepAlive","Teleport","Suspense"],[Tm]:["RouterView","RouterLink"]};let Am=class{constructor(){H(this,"listeners",[]);H(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 Im=Object.defineProperty,Rm=(t,e,r)=>e in t?Im(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Ee=(t,e,r)=>Rm(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)}})();/**!
51
+ */const Pm="VueMaterial",$m="VueRouterMaterial",Dm={[Pm]:["Transition","TransitionGroup","KeepAlive","Teleport","Suspense"],[$m]:["RouterView","RouterLink"]};let Nm=class{constructor(){H(this,"listeners",[]);H(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}};function Bm(t){return(t||"").trim().replace(/\\/g,"/").replace(/^\/+|\/+$/g,"").replace(/\.vue$/i,"")}function tn(t){const e=(t||"").trim().replace(/\\/g,"/");if(!e)return"";const r=`/${e}`.replace(/\/{2,}/g,"/");return r.length>1?r.replace(/\/$/,""):r}function ti(t){return Bm(t.filePath)||t.id}function Lm(t,e="web"){const r=ti(t);return t.type==="block"?`src/components/${r}.vue`:e==="uniapp"?`src/pages/${r}.vue`:`src/views/${r}.vue`}function Rn(t,e="",r="page"){const n=tn(t.routePath);if(n)return n;if(t.filePath){const i=ti(t).split("/").map(s=>Zd(s)).join("/");return tn(`${e}${r}/${i}`)}return tn(`${e}${r}/${t.id}`)}function jm(t){return`pages/${ti(t)}`}function ho(t=[]){var r;const e=[];for(const n of t)n.dir||e.push(n),(r=n.children)!=null&&r.length&&e.push(...ho(n.children));return e}var Vm=Object.defineProperty,Mm=(t,e,r)=>e in t?Vm(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Ee=(t,e,r)=>Mm(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)}})();/**!
52
52
  * Copyright (c) 2026, VTJ.PRO All rights reserved.
53
53
  * @name @vtj/utils
54
54
  * @author CHC chenhuachun1549@dingtalk.com
55
- * @version 0.19.21
55
+ * @version 0.19.23-alpha.0
56
56
  * @license <a href="https://vtj.pro/license.html">MIT License</a>
57
- */const km={form:"application/x-www-form-urlencoded",json:"application/json",data:"multipart/form-data"},Om=["put","post","patch"],Ss="Local-Request-Id",Pm=100,Dm=300,$m="/api/proxy";let Nm=class{constructor(e={}){Ee(this,"axios"),Ee(this,"settings"),Ee(this,"records",{}),Ee(this,"isLoading",!1),Ee(this,"stopSkipWarn"),Ee(this,"showLoading"),Ee(this,"showError"),this.settings=Object.assign({type:"form"},e.settings||{});const r=Xr(e,["settings","query"]);this.axios=gi.create(Bt({headers:{"Content-Type":"application/x-www-form-urlencoded"},timeout:120*1e3},r)),this.setupSkipWarn(this.settings),this.showLoading=Gn(this.openLoading.bind(this),Pm),this.showError=hg(this._showError.bind(this),Dm,{leading:!0,trailing:!1})}setConfig(e={}){this.settings=Bt(this.settings,e.settings||{});const r=Xr(e,["settings","query"]);this.axios.defaults=Bt(this.axios.defaults,r),this.setupSkipWarn(this.settings)}cancel(e,r="请求已取消"){if(e){const n=this.records[e];if(!n)return;n.source.cancel(r)}else for(const n of Object.values(this.records))n.source.cancel(r)}createHeaders(e,r,n){const i=r.injectHeaders?typeof r.headers=="function"?r.headers(e,n,r):r.headers||{}:{},s=F(F({"Content-Type":km[r.type||"form"]},n.headers),i);return r.skipWarn&&(s[Ss]=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:a,skipWarn:o}=e,{name:u="skipWarn"}=o||{};let{data:c,params:l={},method:h="get"}=r;const p=i?{[u]:!0}:{};return Om.includes(h.toLowerCase())?(c=Object.assign(c||{},p),c=a!=="json"||!this.isJsonType(n)?this.toFormData(c,a):c,l=F({},s)):a==="form"?l=F(F(F({},c||{}),s),p):(c&&(a!=="json"||!this.isJsonType(n))&&(c=this.toFormData(c,a)),l=F(F({},s),p)),{data:c,params:l}}createUrl(e){let{url:r,params:n}=e;if(r){let i=Gt(r)?new URL(r).origin:"";const s=i?r.replace(i,""):r;try{const a=fm(s,{encode:encodeURIComponent});return i+a(n||{})}catch(a){console.warn("createUrl","pathToRegexpCompile error",r)}}return r}createProxy(e,r,n){if(!e.proxy)return{url:r,headers:n};const i=e.proxyPath||$m,{protocol:s,host:a}=location||{},o=Gt(r)?r:`${s}//${a}${r}`;return n.Target=o,{url:i,headers:n}}openLoading(e){const{loading:r,showLoading:n}=e;r&&n&&Object.keys(this.records).length>0&&(this.isLoading=!0,n())}closeLoading(e){const{hideLoading:r}=e;this.isLoading=!1;const n=Object.keys(this.records);r&&n.length===0&&(this.isLoading=!1,r())}_showError(e,r){var s;const{failMessage:n,showError:i}=e;if(n&&i){const a=(s=r==null?void 0:r.response)==null?void 0:s.data,o=(a==null?void 0:a.message)||(a==null?void 0:a.msg)||(r==null?void 0:r.message)||(r==null?void 0:r.msg)||"未知错误";i(o,r)}}validResponse(e,r){const{validSuccess:n,validate:i}=e;return n&&i?!!i(r):!0}isSkipWarnResponse(e){return!!e.promise}send(e={},r=!1){const n=Bt({},this.settings,e.settings||{}),i=e.query||{},s=Xr(e,["settings","query"]),a=cm(!1),o=gi.CancelToken.source();this.records[a]={settings:n,config:s,source:o};const u=this.createUrl(s)||"",c=this.createHeaders(a,n,s),{url:l,headers:h}=this.createProxy(n,u,c),{data:p,params:f}=this.createSendData(n,s,h,r,i);return this.showLoading(n),new Promise((d,m)=>{this.axios(ue(F({cancelToken:o.token},s),{url:l,headers:h,data:p,params:f})).then(v=>{var S;return this.isSkipWarnResponse(v)?d(v.promise):this.validResponse(n,v)?d(n.originResponse?v:(S=v.data)==null?void 0:S.data):(this.showError(n,v.data),m(v.data))}).catch(v=>(this.showError(n,v),m(v))).finally(()=>{delete this.records[a],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(a=>{const o=(a.config.headers||{})[Ss],u=this.records[o];if(!u)return a;const{data:c}=a;if(!c||typeof c!="object")return a;if((c==null?void 0:c.code)===r){i&&i(a);const l=new Promise(n).then(()=>this.send(ue(F({},u.config),{settings:u.settings}),!0));l.catch(h=>h).finally(()=>{s&&s()}),a.promise=l}return a})}};function Zn(t={}){const e=new Nm(t),r=e.send.bind(e),n=e.cancel.bind(e),i=e.setConfig.bind(e),s=e.useRequest.bind(e),a=e.useResponse.bind(e);return Object.assign(r,ue(F({},e),{instance:e,send:r,cancel:n,setConfig:i,useRequest:s,useResponse:a}))}const Cn=Zn({settings:{injectHeaders:!0,loading:!0,originResponse:!0}}),An=typeof window<"u";function Bm(t){const e={};return t?(t.forEach((r,n)=>{e[n]=typeof r=="string"?decodeURIComponent(r):r}),e):{}}class ao{constructor(e={}){Ee(this,"options",{type:"cache",expired:0,prefix:"__VTJ_"}),Ee(this,"caches",{}),Ee(this,"types"),this.types={local:An?window.localStorage:this.caches,session:An?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:a}=F(F({},this.options),n),o=Date.now(),u=a+e,c=this.types[i]||this.caches,l={value:r,timestamp:o,expired:s};c===this.caches?c[u]=l:c.setItem(u,JSON.stringify(l))}get(e,r={}){const{type:n,prefix:i}=F(F({},this.options),r),s=i+e,a=this.types[n]||this.caches;let o;if(a===this.caches)o=a[s];else{const h=a.getItem(s);if(h)try{o=JSON.parse(h)}catch(p){console.warn("[Storage] JSON.parse",p)}}if(!o)return null;const{value:u,timestamp:c,expired:l}=o;return l>0&&c+l<Date.now()?(this.remove(e,r),null):u}remove(e,r={}){const{type:n,prefix:i}=F(F({},this.options),r),s=this.types[n]||this.caches,a=i+e;s===this.caches?delete s[a]:s.removeItem(a)}clear(e={}){const{type:r}=F(F({},this.options),e),n=this.types[r]||this.caches;n===this.caches?this.caches={}:n.clear()}}const en=new ao;function oo(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var vr={exports:{}},Lm=vr.exports,Es;function Vm(){return Es||(Es=1,(function(t,e){(function(r,n){n(e,t)})(Lm,function(r,n){var i={timeout:5e3,jsonpCallback:"callback"};function s(){return"jsonp_"+Date.now()+"_"+Math.ceil(Math.random()*1e5)}function a(c){try{delete window[c]}catch(l){window[c]=void 0}}function o(c){var l=document.getElementById(c);l&&document.getElementsByTagName("head")[0].removeChild(l)}function u(c){var l=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],h=c,p=l.timeout||i.timeout,f=l.jsonpCallback||i.jsonpCallback,d=void 0;return new Promise(function(m,v){var S=l.jsonpCallbackFunction||s(),b=f+"_"+S;window[S]=function(w){m({ok:!0,json:function(){return Promise.resolve(w)}}),d&&clearTimeout(d),o(b),a(S)},h+=h.indexOf("?")===-1?"?":"&";var _=document.createElement("script");_.setAttribute("src",""+h+f+"="+S),l.charset&&_.setAttribute("charset",l.charset),l.nonce&&_.setAttribute("nonce",l.nonce),l.referrerPolicy&&_.setAttribute("referrerPolicy",l.referrerPolicy),l.crossorigin&&_.setAttribute("crossorigin","true"),_.id=b,document.getElementsByTagName("head")[0].appendChild(_),d=setTimeout(function(){v(new Error("JSONP request to "+c+" timed out")),a(S),o(b),window[S]=function(){a(S)}},p),_.onerror=function(){v(new Error("JSONP request to "+c+" failed")),a(S),o(b),d&&clearTimeout(d)}})}n.exports=u})})(vr,vr.exports)),vr.exports}var jm=Vm();const Mm=oo(jm);function Fm(t){if(An){const{protocol:e,host:r,pathname:n}=location;return`${e}//${r}${t?n:""}`}else return null}function Um(t=""){const e=t.match(eo);return e?e[0]:""}function co(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 In(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 uo(t,e){e=typeof e=="string"?In(e):e;const r=t.split("?")[0],n=In(t),i=Object.assign({},n,e),s=co(i);return s?[r,s].join("?"):t}const Ft=Object.freeze(Object.defineProperty({__proto__:null,append:uo,getCurrentHost:Fm,getHost:Um,parse:In,stringify:co},Symbol.toStringTag,{value:"Module"}));function lo(r){return M(this,arguments,function*(t,e={}){const{query:n={}}=e;t.includes("${")&&(t=ug(t)(n||{}));const i=uo(t,n);return yield(yield Mm(i,e)).json()})}var tn,Ts;function Hm(){if(Ts)return tn;Ts=1,tn=function(n,i,s){var a=document.head||document.getElementsByTagName("head")[0],o=document.createElement("script");typeof i=="function"&&(s=i,i={}),i=i||{},s=s||function(){},o.type=i.type||"text/javascript",o.charset=i.charset||"utf8",o.async="async"in i?!!i.async:!0,o.src=n,i.attrs&&t(o,i.attrs),i.text&&(o.text=""+i.text);var u="onload"in o?e:r;u(o,s),o.onload||e(o,s),a.appendChild(o)};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 tn}var qm=Hm();const zm=oo(qm);function Cs(t,e={}){return new Promise((r,n)=>{const{library:i}=e;zm(t,e,(s,a)=>{s?n(s):r(i?window[i]:void 0)})})}const As={debug:-1,log:0,info:0,warn:1,error:2},Wm=function(t,e,r,n){return function(...i){if(e&&As[e]<=As[t]&&console[t].apply&&(n==="*"||r.startsWith(n)))return console[t].apply(console,Gm(i,r))}};function Gm(t,e){return e!=="*"&&(typeof t[0]=="string"?t[0]=`[${e}] ${t[0]}`:t=["["+e+"]"].concat(t)),t}function Km(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 Jm={level:"warn",bizName:"*"};let Ym=class{constructor(e){Ee(this,"config"),Ee(this,"options"),this.options=F(F({},Jm),e);const r=typeof location<"u"?location:{},n=(/__(?:logConf|logLevel)__=([^#/&]*)/.exec(r.href)||[])[1];this.config=Km(n,e)}_log(e){const{targetLevel:r,targetBizName:n}=this.config,{bizName:i}=this.options;return Wm(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 Zm(t){return new Ym(t)}const ft=Zm({level:"log",bizName:"VTJ"});/*! js-cookie v3.0.8 | MIT */function pr(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)n!=="__proto__"&&(t[n]=r[n])}return t}var Qm={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 Rn(t,e){function r(i,s,a){if(!(typeof document>"u")){a=pr({},e,a),typeof a.expires=="number"&&(a.expires=new Date(Date.now()+a.expires*864e5)),a.expires&&(a.expires=a.expires.toUTCString()),i=encodeURIComponent(i).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var o="";for(var u in a)a[u]&&(o+="; "+u,a[u]!==!0&&(o+="="+a[u].split(";")[0]));return document.cookie=i+"="+t.write(s,i)+o}}function n(i){if(!(typeof document>"u"||arguments.length&&!i)){for(var s=document.cookie?document.cookie.split("; "):[],a={},o=0;o<s.length;o++){var u=s[o].split("="),c=u.slice(1).join("=");try{var l=decodeURIComponent(u[0]);if(l in a||(a[l]=t.read(c,l)),i===l)break}catch(h){}}return i?a[i]:a}}return Object.create({set:r,get:n,remove:function(i,s){r(i,"",pr({},s,{expires:-1}))},withAttributes:function(i){return Rn(this.converter,pr({},this.attributes,i))},withConverter:function(i){return Rn(pr({},this.converter,i),this.attributes)}},{attributes:{value:Object.freeze(e)},converter:{value:Object.freeze(t)}})}var Qn=Rn(Qm,{path:"/"});function Xm(t,e,r){Qn.set(t,e,r)}function ev(t){return Qn.get(t)}function tv(t,e){Qn.remove(t,e)}const rn=Object.freeze(Object.defineProperty({__proto__:null,get:ev,remove:tv,set:Xm},Symbol.toStringTag,{value:"Module"}));/**!
57
+ */const Fm={form:"application/x-www-form-urlencoded",json:"application/json",data:"multipart/form-data"},Um=["put","post","patch"],Rs="Local-Request-Id",Hm=100,qm=300,zm="/api/proxy";let Wm=class{constructor(e={}){Ee(this,"axios"),Ee(this,"settings"),Ee(this,"records",{}),Ee(this,"isLoading",!1),Ee(this,"stopSkipWarn"),Ee(this,"showLoading"),Ee(this,"showError"),this.settings=Object.assign({type:"form"},e.settings||{});const r=en(e,["settings","query"]);this.axios=_i.create(Bt({headers:{"Content-Type":"application/x-www-form-urlencoded"},timeout:120*1e3},r)),this.setupSkipWarn(this.settings),this.showLoading=Zn(this.openLoading.bind(this),Hm),this.showError=yg(this._showError.bind(this),qm,{leading:!0,trailing:!1})}setConfig(e={}){this.settings=Bt(this.settings,e.settings||{});const r=en(e,["settings","query"]);this.axios.defaults=Bt(this.axios.defaults,r),this.setupSkipWarn(this.settings)}cancel(e,r="请求已取消"){if(e){const n=this.records[e];if(!n)return;n.source.cancel(r)}else for(const n of Object.values(this.records))n.source.cancel(r)}createHeaders(e,r,n){const i=r.injectHeaders?typeof r.headers=="function"?r.headers(e,n,r):r.headers||{}:{},s=F(F({"Content-Type":Fm[r.type||"form"]},n.headers),i);return r.skipWarn&&(s[Rs]=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:a,skipWarn:o}=e,{name:u="skipWarn"}=o||{};let{data:c,params:l={},method:h="get"}=r;const p=i?{[u]:!0}:{};return Um.includes(h.toLowerCase())?(c=Object.assign(c||{},p),c=a!=="json"||!this.isJsonType(n)?this.toFormData(c,a):c,l=F({},s)):a==="form"?l=F(F(F({},c||{}),s),p):(c&&(a!=="json"||!this.isJsonType(n))&&(c=this.toFormData(c,a)),l=F(F({},s),p)),{data:c,params:l}}createUrl(e){let{url:r,params:n}=e;if(r){let i=Gt(r)?new URL(r).origin:"";const s=i?r.replace(i,""):r;try{const a=xm(s,{encode:encodeURIComponent});return i+a(n||{})}catch(a){console.warn("createUrl","pathToRegexpCompile error",r)}}return r}createProxy(e,r,n){if(!e.proxy)return{url:r,headers:n};const i=e.proxyPath||zm,{protocol:s,host:a}=location||{},o=Gt(r)?r:`${s}//${a}${r}`;return n.Target=o,{url:i,headers:n}}openLoading(e){const{loading:r,showLoading:n}=e;r&&n&&Object.keys(this.records).length>0&&(this.isLoading=!0,n())}closeLoading(e){const{hideLoading:r}=e;this.isLoading=!1;const n=Object.keys(this.records);r&&n.length===0&&(this.isLoading=!1,r())}_showError(e,r){var s;const{failMessage:n,showError:i}=e;if(n&&i){const a=(s=r==null?void 0:r.response)==null?void 0:s.data,o=(a==null?void 0:a.message)||(a==null?void 0:a.msg)||(r==null?void 0:r.message)||(r==null?void 0:r.msg)||"未知错误";i(o,r)}}validResponse(e,r){const{validSuccess:n,validate:i}=e;return n&&i?!!i(r):!0}isSkipWarnResponse(e){return!!e.promise}send(e={},r=!1){const n=Bt({},this.settings,e.settings||{}),i=e.query||{},s=en(e,["settings","query"]),a=mm(!1),o=_i.CancelToken.source();this.records[a]={settings:n,config:s,source:o};const u=this.createUrl(s)||"",c=this.createHeaders(a,n,s),{url:l,headers:h}=this.createProxy(n,u,c),{data:p,params:f}=this.createSendData(n,s,h,r,i);return this.showLoading(n),new Promise((d,m)=>{this.axios(ue(F({cancelToken:o.token},s),{url:l,headers:h,data:p,params:f})).then(v=>{var S;return this.isSkipWarnResponse(v)?d(v.promise):this.validResponse(n,v)?d(n.originResponse?v:(S=v.data)==null?void 0:S.data):(this.showError(n,v.data),m(v.data))}).catch(v=>(this.showError(n,v),m(v))).finally(()=>{delete this.records[a],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(a=>{const o=(a.config.headers||{})[Rs],u=this.records[o];if(!u)return a;const{data:c}=a;if(!c||typeof c!="object")return a;if((c==null?void 0:c.code)===r){i&&i(a);const l=new Promise(n).then(()=>this.send(ue(F({},u.config),{settings:u.settings}),!0));l.catch(h=>h).finally(()=>{s&&s()}),a.promise=l}return a})}};function ri(t={}){const e=new Wm(t),r=e.send.bind(e),n=e.cancel.bind(e),i=e.setConfig.bind(e),s=e.useRequest.bind(e),a=e.useResponse.bind(e);return Object.assign(r,ue(F({},e),{instance:e,send:r,cancel:n,setConfig:i,useRequest:s,useResponse:a}))}const kn=ri({settings:{injectHeaders:!0,loading:!0,originResponse:!0}}),On=typeof window<"u";function Gm(t){const e={};return t?(t.forEach((r,n)=>{e[n]=typeof r=="string"?decodeURIComponent(r):r}),e):{}}class po{constructor(e={}){Ee(this,"options",{type:"cache",expired:0,prefix:"__VTJ_"}),Ee(this,"caches",{}),Ee(this,"types"),this.types={local:On?window.localStorage:this.caches,session:On?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:a}=F(F({},this.options),n),o=Date.now(),u=a+e,c=this.types[i]||this.caches,l={value:r,timestamp:o,expired:s};c===this.caches?c[u]=l:c.setItem(u,JSON.stringify(l))}get(e,r={}){const{type:n,prefix:i}=F(F({},this.options),r),s=i+e,a=this.types[n]||this.caches;let o;if(a===this.caches)o=a[s];else{const h=a.getItem(s);if(h)try{o=JSON.parse(h)}catch(p){console.warn("[Storage] JSON.parse",p)}}if(!o)return null;const{value:u,timestamp:c,expired:l}=o;return l>0&&c+l<Date.now()?(this.remove(e,r),null):u}remove(e,r={}){const{type:n,prefix:i}=F(F({},this.options),r),s=this.types[n]||this.caches,a=i+e;s===this.caches?delete s[a]:s.removeItem(a)}clear(e={}){const{type:r}=F(F({},this.options),e),n=this.types[r]||this.caches;n===this.caches?this.caches={}:n.clear()}}const rn=new po;function fo(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var vr={exports:{}},Km=vr.exports,ks;function Jm(){return ks||(ks=1,(function(t,e){(function(r,n){n(e,t)})(Km,function(r,n){var i={timeout:5e3,jsonpCallback:"callback"};function s(){return"jsonp_"+Date.now()+"_"+Math.ceil(Math.random()*1e5)}function a(c){try{delete window[c]}catch(l){window[c]=void 0}}function o(c){var l=document.getElementById(c);l&&document.getElementsByTagName("head")[0].removeChild(l)}function u(c){var l=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],h=c,p=l.timeout||i.timeout,f=l.jsonpCallback||i.jsonpCallback,d=void 0;return new Promise(function(m,v){var S=l.jsonpCallbackFunction||s(),b=f+"_"+S;window[S]=function(w){m({ok:!0,json:function(){return Promise.resolve(w)}}),d&&clearTimeout(d),o(b),a(S)},h+=h.indexOf("?")===-1?"?":"&";var _=document.createElement("script");_.setAttribute("src",""+h+f+"="+S),l.charset&&_.setAttribute("charset",l.charset),l.nonce&&_.setAttribute("nonce",l.nonce),l.referrerPolicy&&_.setAttribute("referrerPolicy",l.referrerPolicy),l.crossorigin&&_.setAttribute("crossorigin","true"),_.id=b,document.getElementsByTagName("head")[0].appendChild(_),d=setTimeout(function(){v(new Error("JSONP request to "+c+" timed out")),a(S),o(b),window[S]=function(){a(S)}},p),_.onerror=function(){v(new Error("JSONP request to "+c+" failed")),a(S),o(b),d&&clearTimeout(d)}})}n.exports=u})})(vr,vr.exports)),vr.exports}var Ym=Jm();const Zm=fo(Ym);function Qm(t){if(On){const{protocol:e,host:r,pathname:n}=location;return`${e}//${r}${t?n:""}`}else return null}function Xm(t=""){const e=t.match(ao);return e?e[0]:""}function go(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 mo(t,e){e=typeof e=="string"?Pn(e):e;const r=t.split("?")[0],n=Pn(t),i=Object.assign({},n,e),s=go(i);return s?[r,s].join("?"):t}const Ft=Object.freeze(Object.defineProperty({__proto__:null,append:mo,getCurrentHost:Qm,getHost:Xm,parse:Pn,stringify:go},Symbol.toStringTag,{value:"Module"}));function vo(r){return M(this,arguments,function*(t,e={}){const{query:n={}}=e;t.includes("${")&&(t=mg(t)(n||{}));const i=mo(t,n);return yield(yield Zm(i,e)).json()})}var nn,Os;function ev(){if(Os)return nn;Os=1,nn=function(n,i,s){var a=document.head||document.getElementsByTagName("head")[0],o=document.createElement("script");typeof i=="function"&&(s=i,i={}),i=i||{},s=s||function(){},o.type=i.type||"text/javascript",o.charset=i.charset||"utf8",o.async="async"in i?!!i.async:!0,o.src=n,i.attrs&&t(o,i.attrs),i.text&&(o.text=""+i.text);var u="onload"in o?e:r;u(o,s),o.onload||e(o,s),a.appendChild(o)};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 nn}var tv=ev();const rv=fo(tv);function Ps(t,e={}){return new Promise((r,n)=>{const{library:i}=e;rv(t,e,(s,a)=>{s?n(s):r(i?window[i]:void 0)})})}const $s={debug:-1,log:0,info:0,warn:1,error:2},nv=function(t,e,r,n){return function(...i){if(e&&$s[e]<=$s[t]&&console[t].apply&&(n==="*"||r.startsWith(n)))return console[t].apply(console,iv(i,r))}};function iv(t,e){return e!=="*"&&(typeof t[0]=="string"?t[0]=`[${e}] ${t[0]}`:t=["["+e+"]"].concat(t)),t}function sv(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 av={level:"warn",bizName:"*"};let ov=class{constructor(e){Ee(this,"config"),Ee(this,"options"),this.options=F(F({},av),e);const r=typeof location<"u"?location:{},n=(/__(?:logConf|logLevel)__=([^#/&]*)/.exec(r.href)||[])[1];this.config=sv(n,e)}_log(e){const{targetLevel:r,targetBizName:n}=this.config,{bizName:i}=this.options;return nv(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 cv(t){return new ov(t)}const ft=cv({level:"log",bizName:"VTJ"});/*! js-cookie v3.0.8 | MIT */function pr(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)n!=="__proto__"&&(t[n]=r[n])}return t}var uv={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 $n(t,e){function r(i,s,a){if(!(typeof document>"u")){a=pr({},e,a),typeof a.expires=="number"&&(a.expires=new Date(Date.now()+a.expires*864e5)),a.expires&&(a.expires=a.expires.toUTCString()),i=encodeURIComponent(i).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var o="";for(var u in a)a[u]&&(o+="; "+u,a[u]!==!0&&(o+="="+a[u].split(";")[0]));return document.cookie=i+"="+t.write(s,i)+o}}function n(i){if(!(typeof document>"u"||arguments.length&&!i)){for(var s=document.cookie?document.cookie.split("; "):[],a={},o=0;o<s.length;o++){var u=s[o].split("="),c=u.slice(1).join("=");try{var l=decodeURIComponent(u[0]);if(l in a||(a[l]=t.read(c,l)),i===l)break}catch(h){}}return i?a[i]:a}}return Object.create({set:r,get:n,remove:function(i,s){r(i,"",pr({},s,{expires:-1}))},withAttributes:function(i){return $n(this.converter,pr({},this.attributes,i))},withConverter:function(i){return $n(pr({},this.converter,i),this.attributes)}},{attributes:{value:Object.freeze(e)},converter:{value:Object.freeze(t)}})}var ni=$n(uv,{path:"/"});function lv(t,e,r){ni.set(t,e,r)}function hv(t){return ni.get(t)}function pv(t,e){ni.remove(t,e)}const sn=Object.freeze(Object.defineProperty({__proto__:null,get:hv,remove:pv,set:lv},Symbol.toStringTag,{value:"Module"}));/**!
58
58
  * Copyright (c) 2026, VTJ.PRO All rights reserved.
59
59
  * @name @vtj/renderer
60
60
  * @author CHC chenhuachun1549@dingtalk.com
61
- * @version 0.19.21
61
+ * @version 0.19.23-alpha.0
62
62
  * @license <a href="https://vtj.pro/license.html">MIT License</a>
63
- */const nn="0.19.21";var se=(t=>(t.Runtime="Runtime",t.Design="Design",t.Raw="Raw",t.VNode="VNode",t))(se||{});const Is=["$el","$emit","$nextTick","$parent","$root","$attrs","$slots","$watch","$props","$options","$forceUpdate"],rv=["vIf","vElseIf","vElse","vShow","vModel","vFor","vBind","vHtml"],nv={String,Number,Boolean,Array,Object,Function,Date},yr="VtjPage",sn="VtjHomepage",ho="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(","),iv="component,slot".split(",");function fr(t,e){return t.map(r=>Gt(r)||r.startsWith("/")?r:`${e}${r}`)}function kr(t){return/\.css$/.test(t)}function Or(t){return/\.js$/.test(t)}function sv(t){return/\.json$/.test(t)}function av(t,e=!1){return e&&t.endsWith(".prod.js")?t.replace(".prod.js",".js"):t}function ov(t,e,r=!1){const n=t.filter(p=>!!p.enabled),i=[],s=[],a=[],o=[],u={},c={},l=[],h={};return n.forEach(({urls:p,assetsUrl:f,library:d,assetsLibrary:m,localeLibrary:v})=>{p==null||p.forEach(S=>{Or(S)&&i.push(av(S,r)),kr(S)&&s.push(S)}),d&&(o.push(d),u[d]=fr(p||[],e),v&&(c[d]=v)),f&&a.push(f),m&&l.push(m),d&&m&&(h[m]=d)}),{scripts:fr(i,e),css:fr(s,e),materials:fr(a,e),libraryExports:o,materialExports:lm(l),materialMapLibrary:h,libraryMap:u,libraryLocaleMap:c}}function cv(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 uv(t=[]){const e=t.filter(n=>kr(n)),r=t.filter(n=>Or(n));return{css:e,js:r}}function lv(t,e){const r=c=>{const l=[];let h=0;for(;h<c.length;){if(/\s/.test(c[h])){h++;continue}if(c.substring(h,h+2)==="/*"){const S=c.indexOf("*/",h+2);if(S!==-1){h=S+2;continue}}if(c[h]==="@"){const S=h;for(;h<c.length&&c[h]!=="{"&&c[h]!==";";)h++;const b=c.substring(S,h).trim(),_=b.includes("@keyframes");if(c[h]===";")l.push({type:"simple-at-rule",content:c.substring(S,h+1)}),h++;else if(c[h]==="{"){const w=h+1;let x=1;for(h++;h<c.length&&x>0;)c[h]==="{"?x++:c[h]==="}"&&x--,h++;const y=c.substring(S,h),T=c.substring(w,h-1);l.push({type:_?"keyframes":"at-rule",rule:b,content:y,inner:T})}continue}const p=h;for(;h<c.length&&c[h]!=="{";)h++;if(h>=c.length)break;const f=c.substring(p,h).trim();if(!f){h++;continue}const d=h+1;let m=1;for(h++;h<c.length&&m>0;)c[h]==="{"?m++:c[h]==="}"&&m--,h++;const v=c.substring(d,h-1);l.push({type:"rule",selector:f,content:v.trim()})}return l},n=c=>{const l=c.trim();return/^(from|to|\d+(\.\d+)?%)$/.test(l)},i=c=>c.replace(/::v-deep\(/g,":deep(").replace(/::v-deep\s+/g,":deep(").replace(/\/deep\//g," ").replace(/>>>/g," ").replace(/(.*?):deep\(([^)]+)\)/g,(l,h,p)=>{const f=h.trim(),d=p.trim();return f?`${f}[${e}] ${d}`:`[${e}] ${d}`}),s=c=>{const l=c.trim();if(!l||l.includes(`[${e}]`)||/^(:root|:host|html|body)(\s|$|:|\.|\#|\[)/.test(l)||n(l))return l;const h=l.match(/^(.+?)((?:::?[\w-]+(?:\([^)]*\))?)*)\s*$/);if(h){const[,p,f=""]=h,d=p.trim();return d?`${d}[${e}]${f}`:l}return`${l}[${e}]`},a=c=>i(c).split(",").map(l=>s(l)).filter(l=>l.trim()).join(", "),o=c=>c.map(l=>{switch(l.type){case"simple-at-rule":return l.content;case"keyframes":return l.content;case"at-rule":try{const p=r(l.inner),f=o(p);return`${l.rule} { ${f} }`}catch(p){return l.content}case"rule":if(!l.selector||!l.content)return"";const h=a(l.selector);return h.trim()?`${h} { ${l.content} }`:"";default:return""}}).filter(l=>l.trim()).join(" "),u=c=>c.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 c=t.replace(/\/\*(?!\s*!)[\s\S]*?\*\//g,"").replace(/^\s+|\s+$/gm,"").replace(/\n\s*\n/g,`
64
- `),l=r(c),h=o(l);return u(h)}catch(c){return console.error("CSS scoping failed:",c),console.error("Input CSS:",t),t.replace(/\/\*[\s\S]*?\*\//g,"").replace(/(@keyframes\s+[^{]+\s*{[^{}]*(?:{[^}]*}[^{}]*)*})/g,l=>l).replace(/([^{}@]+)(?=\s*{)/g,l=>{const h=l.trim();return!h||h.startsWith("@")||h.includes(`[${e}]`)||n(h)?l:`${h}[${e}]`})}}const hv=750;function pv(t,e,r){let n;typeof t<"u"?n=t.innerWidth||t.document.documentElement.clientWidth:(console.warn("无法获取屏幕宽度,使用默认值375"),n=375);const i=hv;return e*n/i}function fv(t,e){let r=!1,n=!1,i=!1,s="";for(let a=0;a<e.length;a++){const o=e[a];if(o==="'"&&!n&&!i?r=!r:o==='"'&&!r&&!i?n=!n:e.substr(a,4).toLowerCase()==="url("&&!r&&!n?i=!0:o===")"&&i&&(i=!1),!r&&!n&&!i){const u=e.substr(a).match(/^(-?\d+(?:\.\d+)?)\s*rpx/);if(u){const c=u[1],l=parseFloat(c),h=`${pv(t,l).toFixed(6).replace(/\.?0+$/,"")}px`;s+=h,a+=u[0].length-1;continue}}s+=o}return s}function po(t){return Ze(t)?t:JSON.stringify(t)}function Pr(t,e,r,n=!1){var f;const i=t.CSSStyleSheet,s=n?`data-v-${e}`:e,a=t.__uniConfig?fv(t,r):r,o=!!t.__uniConfig,u=t.document,c=!!((f=i==null?void 0:i.prototype)!=null&&f.replaceSync)&&!o,l=c?Array.from(u.adoptedStyleSheets||[]).find(d=>d.id===e):u.getElementById(e),h=`${s}
65
- ${a}`;if((l==null?void 0:l.__vtjSource)===h)return;const p=n?lv(a,s):a;if(c){const d=new i;d.id=e,d.__vtjSource=h,d.replaceSync(p);const m=u.adoptedStyleSheets||[],v=Array.from(m).filter(S=>S.id!==e);u.adoptedStyleSheets=[...v,d]}else{let d=l;d?d.innerHTML=p:(d=u.createElement("style"),d.id=e,d.innerHTML=p,u.head.appendChild(d)),d.__vtjSource=h}}function dv(t,e){return M(this,null,function*(){const r=yield globalThis.fetch(e).then(n=>n.text()).catch(()=>"");r&&Pr(globalThis,t,r)})}function fo(t,e=globalThis){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 go(n,i){return M(this,arguments,function*(t,e,r=globalThis){var u;const s=r.document,a=r.document.head;let o=r[e];if(o)return o.default||o;for(const c of t){const l=(u=s.getElementById)==null?void 0:u.call(s,c);if(l!=null&&l.__vtjLoading){yield l.__vtjLoading;continue}if(l)continue;const h=s.createElement("script");h.id=c,h.src=c,h.__vtjLoading=new Promise((p,f)=>{h.onload=()=>p(),h.onerror=d=>{var m;(m=h.remove)==null||m.call(h),f(d)}}),a.appendChild(h),yield h.__vtjLoading}return o=r[e],o?o.default||o:Promise.reject(null)})}function gv(t){return ge(t)&&Object.getOwnPropertyNames(t.prototype||{}).length===0||ge(t==null?void 0:t.install)}function mv(t){return iv.includes(t)}function vv(t){return ho.includes(t)}function Jt(t=globalThis){const e=globalThis==null?void 0:globalThis.Mock;if(e)return e;const r=t==null?void 0:t.Mock;if(r&&globalThis)return globalThis.Mock=r,r}function yv(t){return/^\([\s\S]*\)/.test(t.trim())}function bv(t){return/\w+\([\s\S]*\)$/.test(t.trim())}function _v(t){return t.includes("=")}var an={3:"abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile",5:"class enum extends super const export import",6:"enum",strict:"implements interface let package private protected public static yield",strictBind:"eval arguments"},on="break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this",xv={5:on,"5module":on+" export import",6:on+" const class extends export import super"},wv=/^in(stanceof)?$/,Xn="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࢠ-ࢴࢶ-ࣇऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-鿼ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞿꟂ-ꟊꟵ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",mo="‌‍·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛࣓-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-ໍ໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜔ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠐-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿᫀᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷹᷻-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_",Sv=new RegExp("["+Xn+"]"),Ev=new RegExp("["+Xn+mo+"]");Xn=mo=null;var vo=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,157,310,10,21,11,7,153,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,349,41,7,1,79,28,11,0,9,21,107,20,28,22,13,52,76,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,85,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,159,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,230,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,35,56,264,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,190,0,80,921,103,110,18,195,2749,1070,4050,582,8634,568,8,30,114,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,43,8,8952,286,50,2,18,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,2357,44,11,6,17,0,370,43,1301,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42717,35,4148,12,221,3,5761,15,7472,3104,541,1507,4938],Tv=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,370,1,154,10,176,2,54,14,32,9,16,3,46,10,54,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,161,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,193,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,406,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,19306,9,135,4,60,6,26,9,1014,0,2,54,8,3,82,0,12,1,19628,1,5319,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,262,6,10,9,419,13,1495,6,110,6,6,9,4759,9,787719,239];function kn(t,e){for(var r=65536,n=0;n<e.length;n+=2){if(r+=e[n],r>t)return!1;if(r+=e[n+1],r>=t)return!0}}function ot(t,e){return t<65?t===36:t<91?!0:t<97?t===95:t<123?!0:t<=65535?t>=170&&Sv.test(String.fromCharCode(t)):e===!1?!1:kn(t,vo)}function Rt(t,e){return t<48?t===36:t<58?!0:t<65?!1:t<91?!0:t<97?t===95:t<123?!0:t<=65535?t>=170&&Ev.test(String.fromCharCode(t)):e===!1?!1:kn(t,vo)||kn(t,Tv)}var X=function(t,e){e===void 0&&(e={}),this.label=t,this.keyword=e.keyword,this.beforeExpr=!!e.beforeExpr,this.startsExpr=!!e.startsExpr,this.isLoop=!!e.isLoop,this.isAssign=!!e.isAssign,this.prefix=!!e.prefix,this.postfix=!!e.postfix,this.binop=e.binop||null,this.updateContext=null};function we(t,e){return new X(t,{beforeExpr:!0,binop:e})}var Se={beforeExpr:!0},xe={startsExpr:!0},ei={};function Q(t,e){return e===void 0&&(e={}),e.keyword=t,ei[t]=new X(t,e)}var g={num:new X("num",xe),regexp:new X("regexp",xe),string:new X("string",xe),name:new X("name",xe),eof:new X("eof"),bracketL:new X("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new X("]"),braceL:new X("{",{beforeExpr:!0,startsExpr:!0}),braceR:new X("}"),parenL:new X("(",{beforeExpr:!0,startsExpr:!0}),parenR:new X(")"),comma:new X(",",Se),semi:new X(";",Se),colon:new X(":",Se),dot:new X("."),question:new X("?",Se),questionDot:new X("?."),arrow:new X("=>",Se),template:new X("template"),invalidTemplate:new X("invalidTemplate"),ellipsis:new X("...",Se),backQuote:new X("`",xe),dollarBraceL:new X("${",{beforeExpr:!0,startsExpr:!0}),eq:new X("=",{beforeExpr:!0,isAssign:!0}),assign:new X("_=",{beforeExpr:!0,isAssign:!0}),incDec:new X("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new X("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:we("||",1),logicalAND:we("&&",2),bitwiseOR:we("|",3),bitwiseXOR:we("^",4),bitwiseAND:we("&",5),equality:we("==/!=/===/!==",6),relational:we("</>/<=/>=",7),bitShift:we("<</>>/>>>",8),plusMin:new X("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:we("%",10),star:we("*",10),slash:we("/",10),starstar:new X("**",{beforeExpr:!0}),coalesce:we("??",1),_break:Q("break"),_case:Q("case",Se),_catch:Q("catch"),_continue:Q("continue"),_debugger:Q("debugger"),_default:Q("default",Se),_do:Q("do",{isLoop:!0,beforeExpr:!0}),_else:Q("else",Se),_finally:Q("finally"),_for:Q("for",{isLoop:!0}),_function:Q("function",xe),_if:Q("if"),_return:Q("return",Se),_switch:Q("switch"),_throw:Q("throw",Se),_try:Q("try"),_var:Q("var"),_const:Q("const"),_while:Q("while",{isLoop:!0}),_with:Q("with"),_new:Q("new",{beforeExpr:!0,startsExpr:!0}),_this:Q("this",xe),_super:Q("super",xe),_class:Q("class",xe),_extends:Q("extends",Se),_export:Q("export"),_import:Q("import",xe),_null:Q("null",xe),_true:Q("true",xe),_false:Q("false",xe),_in:Q("in",{beforeExpr:!0,binop:7}),_instanceof:Q("instanceof",{beforeExpr:!0,binop:7}),_typeof:Q("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:Q("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:Q("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},ke=/\r\n?|\n|\u2028|\u2029/,Yt=new RegExp(ke.source,"g");function er(t,e){return t===10||t===13||!e&&(t===8232||t===8233)}var yo=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,Te=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,bo=Object.prototype,Cv=bo.hasOwnProperty,Av=bo.toString;function Dr(t,e){return Cv.call(t,e)}var Rs=Array.isArray||(function(t){return Av.call(t)==="[object Array]"});function dt(t){return new RegExp("^(?:"+t.replace(/ /g,"|")+")$")}var Zt=function(t,e){this.line=t,this.column=e};Zt.prototype.offset=function(t){return new Zt(this.line,this.column+t)};var $r=function(t,e,r){this.start=e,this.end=r,t.sourceFile!==null&&(this.source=t.sourceFile)};function _o(t,e){for(var r=1,n=0;;){Yt.lastIndex=n;var i=Yt.exec(t);if(i&&i.index<e)++r,n=i.index+i[0].length;else return new Zt(r,e-n)}}var On={ecmaVersion:10,sourceType:"script",onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:!1,allowHashBang:!1,locations:!1,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1};function Iv(t){var e={};for(var r in On)e[r]=t&&Dr(t,r)?t[r]:On[r];if(e.ecmaVersion>=2015&&(e.ecmaVersion-=2009),e.allowReserved==null&&(e.allowReserved=e.ecmaVersion<5),Rs(e.onToken)){var n=e.onToken;e.onToken=function(i){return n.push(i)}}return Rs(e.onComment)&&(e.onComment=Rv(e,e.onComment)),e}function Rv(t,e){return function(r,n,i,s,a,o){var u={type:r?"Block":"Line",value:n,start:i,end:s};t.locations&&(u.loc=new $r(this,a,o)),t.ranges&&(u.range=[i,s]),e.push(u)}}var Qt=1,tr=2,ti=Qt|tr,xo=4,wo=8,So=16,Eo=32,To=64,Co=128;function ri(t,e){return tr|(t?xo:0)|(e?wo:0)}var ks=0,ni=1,We=2,Ao=3,Io=4,Ro=5,oe=function(t,e,r){this.options=t=Iv(t),this.sourceFile=t.sourceFile,this.keywords=dt(xv[t.ecmaVersion>=6?6:t.sourceType==="module"?"5module":5]);var n="";if(t.allowReserved!==!0){for(var i=t.ecmaVersion;!(n=an[i]);i--);t.sourceType==="module"&&(n+=" await")}this.reservedWords=dt(n);var s=(n?n+" ":"")+an.strict;this.reservedWordsStrict=dt(s),this.reservedWordsStrictBind=dt(s+" "+an.strictBind),this.input=String(e),this.containsEsc=!1,r?(this.pos=r,this.lineStart=this.input.lastIndexOf(`
66
- `,r-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(ke).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=g.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule=t.sourceType==="module",this.strict=this.inModule||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports={},this.pos===0&&t.allowHashBang&&this.input.slice(0,2)==="#!"&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(Qt),this.regexpState=null},yt={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0}};oe.prototype.parse=function(){var t=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(t)};yt.inFunction.get=function(){return(this.currentVarScope().flags&tr)>0};yt.inGenerator.get=function(){return(this.currentVarScope().flags&wo)>0};yt.inAsync.get=function(){return(this.currentVarScope().flags&xo)>0};yt.allowSuper.get=function(){return(this.currentThisScope().flags&To)>0};yt.allowDirectSuper.get=function(){return(this.currentThisScope().flags&Co)>0};yt.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())};oe.prototype.inNonArrowFunction=function(){return(this.currentThisScope().flags&tr)>0};oe.extend=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];for(var r=this,n=0;n<t.length;n++)r=t[n](r);return r};oe.parse=function(t,e){return new this(e,t).parse()};oe.parseExpressionAt=function(t,e,r){var n=new this(r,t,e);return n.nextToken(),n.parseExpression()};oe.tokenizer=function(t,e){return new this(e,t)};Object.defineProperties(oe.prototype,yt);var be=oe.prototype,kv=/^(?:'((?:\\.|[^'\\])*?)'|"((?:\\.|[^"\\])*?)")/;be.strictDirective=function(t){for(;;){Te.lastIndex=t,t+=Te.exec(this.input)[0].length;var e=kv.exec(this.input.slice(t));if(!e)return!1;if((e[1]||e[2])==="use strict"){Te.lastIndex=t+e[0].length;var r=Te.exec(this.input),n=r.index+r[0].length,i=this.input.charAt(n);return i===";"||i==="}"||ke.test(r[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(i)||i==="!"&&this.input.charAt(n+1)==="=")}t+=e[0].length,Te.lastIndex=t,t+=Te.exec(this.input)[0].length,this.input[t]===";"&&t++}};be.eat=function(t){return this.type===t?(this.next(),!0):!1};be.isContextual=function(t){return this.type===g.name&&this.value===t&&!this.containsEsc};be.eatContextual=function(t){return this.isContextual(t)?(this.next(),!0):!1};be.expectContextual=function(t){this.eatContextual(t)||this.unexpected()};be.canInsertSemicolon=function(){return this.type===g.eof||this.type===g.braceR||ke.test(this.input.slice(this.lastTokEnd,this.start))};be.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0};be.semicolon=function(){!this.eat(g.semi)&&!this.insertSemicolon()&&this.unexpected()};be.afterTrailingComma=function(t,e){if(this.type===t)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),e||this.next(),!0};be.expect=function(t){this.eat(t)||this.unexpected()};be.unexpected=function(t){this.raise(t!=null?t:this.start,"Unexpected token")};function Nr(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1}be.checkPatternErrors=function(t,e){if(t){t.trailingComma>-1&&this.raiseRecoverable(t.trailingComma,"Comma is not permitted after the rest element");var r=e?t.parenthesizedAssign:t.parenthesizedBind;r>-1&&this.raiseRecoverable(r,"Parenthesized pattern")}};be.checkExpressionErrors=function(t,e){if(!t)return!1;var r=t.shorthandAssign,n=t.doubleProto;if(!e)return r>=0||n>=0;r>=0&&this.raise(r,"Shorthand property assignments are valid only in destructuring patterns"),n>=0&&this.raiseRecoverable(n,"Redefinition of __proto__ property")};be.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos<this.awaitPos)&&this.raise(this.yieldPos,"Yield expression cannot be a default value"),this.awaitPos&&this.raise(this.awaitPos,"Await expression cannot be a default value")};be.isSimpleAssignTarget=function(t){return t.type==="ParenthesizedExpression"?this.isSimpleAssignTarget(t.expression):t.type==="Identifier"||t.type==="MemberExpression"};var K=oe.prototype;K.parseTopLevel=function(t){var e={};for(t.body||(t.body=[]);this.type!==g.eof;){var r=this.parseStatement(null,!0,e);t.body.push(r)}if(this.inModule)for(var n=0,i=Object.keys(this.undefinedExports);n<i.length;n+=1){var s=i[n];this.raiseRecoverable(this.undefinedExports[s].start,"Export '"+s+"' is not defined")}return this.adaptDirectivePrologue(t.body),this.next(),t.sourceType=this.options.sourceType,this.finishNode(t,"Program")};var ii={kind:"loop"},Ov={kind:"switch"};K.isLet=function(t){if(this.options.ecmaVersion<6||!this.isContextual("let"))return!1;Te.lastIndex=this.pos;var e=Te.exec(this.input),r=this.pos+e[0].length,n=this.input.charCodeAt(r);if(n===91)return!0;if(t)return!1;if(n===123)return!0;if(ot(n,!0)){for(var i=r+1;Rt(this.input.charCodeAt(i),!0);)++i;var s=this.input.slice(r,i);if(!wv.test(s))return!0}return!1};K.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;Te.lastIndex=this.pos;var t=Te.exec(this.input),e=this.pos+t[0].length;return!ke.test(this.input.slice(this.pos,e))&&this.input.slice(e,e+8)==="function"&&(e+8===this.input.length||!Rt(this.input.charAt(e+8)))};K.parseStatement=function(t,e,r){var n=this.type,i=this.startNode(),s;switch(this.isLet(t)&&(n=g._var,s="let"),n){case g._break:case g._continue:return this.parseBreakContinueStatement(i,n.keyword);case g._debugger:return this.parseDebuggerStatement(i);case g._do:return this.parseDoStatement(i);case g._for:return this.parseForStatement(i);case g._function:return t&&(this.strict||t!=="if"&&t!=="label")&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(i,!1,!t);case g._class:return t&&this.unexpected(),this.parseClass(i,!0);case g._if:return this.parseIfStatement(i);case g._return:return this.parseReturnStatement(i);case g._switch:return this.parseSwitchStatement(i);case g._throw:return this.parseThrowStatement(i);case g._try:return this.parseTryStatement(i);case g._const:case g._var:return s=s||this.value,t&&s!=="var"&&this.unexpected(),this.parseVarStatement(i,s);case g._while:return this.parseWhileStatement(i);case g._with:return this.parseWithStatement(i);case g.braceL:return this.parseBlock(!0,i);case g.semi:return this.parseEmptyStatement(i);case g._export:case g._import:if(this.options.ecmaVersion>10&&n===g._import){Te.lastIndex=this.pos;var a=Te.exec(this.input),o=this.pos+a[0].length,u=this.input.charCodeAt(o);if(u===40||u===46)return this.parseExpressionStatement(i,this.parseExpression())}return this.options.allowImportExportEverywhere||(e||this.raise(this.start,"'import' and 'export' may only appear at the top level"),this.inModule||this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")),n===g._import?this.parseImport(i):this.parseExport(i,r);default:if(this.isAsyncFunction())return t&&this.unexpected(),this.next(),this.parseFunctionStatement(i,!0,!t);var c=this.value,l=this.parseExpression();return n===g.name&&l.type==="Identifier"&&this.eat(g.colon)?this.parseLabeledStatement(i,c,l,t):this.parseExpressionStatement(i,l)}};K.parseBreakContinueStatement=function(t,e){var r=e==="break";this.next(),this.eat(g.semi)||this.insertSemicolon()?t.label=null:this.type!==g.name?this.unexpected():(t.label=this.parseIdent(),this.semicolon());for(var n=0;n<this.labels.length;++n){var i=this.labels[n];if((t.label==null||i.name===t.label.name)&&(i.kind!=null&&(r||i.kind==="loop")||t.label&&r))break}return n===this.labels.length&&this.raise(t.start,"Unsyntactic "+e),this.finishNode(t,r?"BreakStatement":"ContinueStatement")};K.parseDebuggerStatement=function(t){return this.next(),this.semicolon(),this.finishNode(t,"DebuggerStatement")};K.parseDoStatement=function(t){return this.next(),this.labels.push(ii),t.body=this.parseStatement("do"),this.labels.pop(),this.expect(g._while),t.test=this.parseParenExpression(),this.options.ecmaVersion>=6?this.eat(g.semi):this.semicolon(),this.finishNode(t,"DoWhileStatement")};K.parseForStatement=function(t){this.next();var e=this.options.ecmaVersion>=9&&(this.inAsync||!this.inFunction&&this.options.allowAwaitOutsideFunction)&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(ii),this.enterScope(0),this.expect(g.parenL),this.type===g.semi)return e>-1&&this.unexpected(e),this.parseFor(t,null);var r=this.isLet();if(this.type===g._var||this.type===g._const||r){var n=this.startNode(),i=r?"let":this.value;return this.next(),this.parseVar(n,!0,i),this.finishNode(n,"VariableDeclaration"),(this.type===g._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&n.declarations.length===1?(this.options.ecmaVersion>=9&&(this.type===g._in?e>-1&&this.unexpected(e):t.await=e>-1),this.parseForIn(t,n)):(e>-1&&this.unexpected(e),this.parseFor(t,n))}var s=new Nr,a=this.parseExpression(!0,s);return this.type===g._in||this.options.ecmaVersion>=6&&this.isContextual("of")?(this.options.ecmaVersion>=9&&(this.type===g._in?e>-1&&this.unexpected(e):t.await=e>-1),this.toAssignable(a,!1,s),this.checkLVal(a),this.parseForIn(t,a)):(this.checkExpressionErrors(s,!0),e>-1&&this.unexpected(e),this.parseFor(t,a))};K.parseFunctionStatement=function(t,e,r){return this.next(),this.parseFunction(t,Ut|(r?0:Pn),!1,e)};K.parseIfStatement=function(t){return this.next(),t.test=this.parseParenExpression(),t.consequent=this.parseStatement("if"),t.alternate=this.eat(g._else)?this.parseStatement("if"):null,this.finishNode(t,"IfStatement")};K.parseReturnStatement=function(t){return!this.inFunction&&!this.options.allowReturnOutsideFunction&&this.raise(this.start,"'return' outside of function"),this.next(),this.eat(g.semi)||this.insertSemicolon()?t.argument=null:(t.argument=this.parseExpression(),this.semicolon()),this.finishNode(t,"ReturnStatement")};K.parseSwitchStatement=function(t){this.next(),t.discriminant=this.parseParenExpression(),t.cases=[],this.expect(g.braceL),this.labels.push(Ov),this.enterScope(0);for(var e,r=!1;this.type!==g.braceR;)if(this.type===g._case||this.type===g._default){var n=this.type===g._case;e&&this.finishNode(e,"SwitchCase"),t.cases.push(e=this.startNode()),e.consequent=[],this.next(),n?e.test=this.parseExpression():(r&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),r=!0,e.test=null),this.expect(g.colon)}else e||this.unexpected(),e.consequent.push(this.parseStatement(null));return this.exitScope(),e&&this.finishNode(e,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(t,"SwitchStatement")};K.parseThrowStatement=function(t){return this.next(),ke.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,"Illegal newline after throw"),t.argument=this.parseExpression(),this.semicolon(),this.finishNode(t,"ThrowStatement")};var Pv=[];K.parseTryStatement=function(t){if(this.next(),t.block=this.parseBlock(),t.handler=null,this.type===g._catch){var e=this.startNode();if(this.next(),this.eat(g.parenL)){e.param=this.parseBindingAtom();var r=e.param.type==="Identifier";this.enterScope(r?Eo:0),this.checkLVal(e.param,r?Io:We),this.expect(g.parenR)}else this.options.ecmaVersion<10&&this.unexpected(),e.param=null,this.enterScope(0);e.body=this.parseBlock(!1),this.exitScope(),t.handler=this.finishNode(e,"CatchClause")}return t.finalizer=this.eat(g._finally)?this.parseBlock():null,!t.handler&&!t.finalizer&&this.raise(t.start,"Missing catch or finally clause"),this.finishNode(t,"TryStatement")};K.parseVarStatement=function(t,e){return this.next(),this.parseVar(t,!1,e),this.semicolon(),this.finishNode(t,"VariableDeclaration")};K.parseWhileStatement=function(t){return this.next(),t.test=this.parseParenExpression(),this.labels.push(ii),t.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(t,"WhileStatement")};K.parseWithStatement=function(t){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),t.object=this.parseParenExpression(),t.body=this.parseStatement("with"),this.finishNode(t,"WithStatement")};K.parseEmptyStatement=function(t){return this.next(),this.finishNode(t,"EmptyStatement")};K.parseLabeledStatement=function(t,e,r,n){for(var i=0,s=this.labels;i<s.length;i+=1){var a=s[i];a.name===e&&this.raise(r.start,"Label '"+e+"' is already declared")}for(var o=this.type.isLoop?"loop":this.type===g._switch?"switch":null,u=this.labels.length-1;u>=0;u--){var c=this.labels[u];if(c.statementStart===t.start)c.statementStart=this.start,c.kind=o;else break}return this.labels.push({name:e,kind:o,statementStart:this.start}),t.body=this.parseStatement(n?n.indexOf("label")===-1?n+"label":n:"label"),this.labels.pop(),t.label=r,this.finishNode(t,"LabeledStatement")};K.parseExpressionStatement=function(t,e){return t.expression=e,this.semicolon(),this.finishNode(t,"ExpressionStatement")};K.parseBlock=function(t,e,r){for(t===void 0&&(t=!0),e===void 0&&(e=this.startNode()),e.body=[],this.expect(g.braceL),t&&this.enterScope(0);this.type!==g.braceR;){var n=this.parseStatement(null);e.body.push(n)}return r&&(this.strict=!1),this.next(),t&&this.exitScope(),this.finishNode(e,"BlockStatement")};K.parseFor=function(t,e){return t.init=e,this.expect(g.semi),t.test=this.type===g.semi?null:this.parseExpression(),this.expect(g.semi),t.update=this.type===g.parenR?null:this.parseExpression(),this.expect(g.parenR),t.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(t,"ForStatement")};K.parseForIn=function(t,e){var r=this.type===g._in;return this.next(),e.type==="VariableDeclaration"&&e.declarations[0].init!=null&&(!r||this.options.ecmaVersion<8||this.strict||e.kind!=="var"||e.declarations[0].id.type!=="Identifier")?this.raise(e.start,(r?"for-in":"for-of")+" loop variable declaration may not have an initializer"):e.type==="AssignmentPattern"&&this.raise(e.start,"Invalid left-hand side in for-loop"),t.left=e,t.right=r?this.parseExpression():this.parseMaybeAssign(),this.expect(g.parenR),t.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(t,r?"ForInStatement":"ForOfStatement")};K.parseVar=function(t,e,r){for(t.declarations=[],t.kind=r;;){var n=this.startNode();if(this.parseVarId(n,r),this.eat(g.eq)?n.init=this.parseMaybeAssign(e):r==="const"&&!(this.type===g._in||this.options.ecmaVersion>=6&&this.isContextual("of"))?this.unexpected():n.id.type!=="Identifier"&&!(e&&(this.type===g._in||this.isContextual("of")))?this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):n.init=null,t.declarations.push(this.finishNode(n,"VariableDeclarator")),!this.eat(g.comma))break}return t};K.parseVarId=function(t,e){t.id=this.parseBindingAtom(),this.checkLVal(t.id,e==="var"?ni:We,!1)};var Ut=1,Pn=2,ko=4;K.parseFunction=function(t,e,r,n){this.initFunction(t),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!n)&&(this.type===g.star&&e&Pn&&this.unexpected(),t.generator=this.eat(g.star)),this.options.ecmaVersion>=8&&(t.async=!!n),e&Ut&&(t.id=e&ko&&this.type!==g.name?null:this.parseIdent(),t.id&&!(e&Pn)&&this.checkLVal(t.id,this.strict||t.generator||t.async?this.treatFunctionsAsVar?ni:We:Ao));var i=this.yieldPos,s=this.awaitPos,a=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(ri(t.async,t.generator)),e&Ut||(t.id=this.type===g.name?this.parseIdent():null),this.parseFunctionParams(t),this.parseFunctionBody(t,r,!1),this.yieldPos=i,this.awaitPos=s,this.awaitIdentPos=a,this.finishNode(t,e&Ut?"FunctionDeclaration":"FunctionExpression")};K.parseFunctionParams=function(t){this.expect(g.parenL),t.params=this.parseBindingList(g.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()};K.parseClass=function(t,e){this.next();var r=this.strict;this.strict=!0,this.parseClassId(t,e),this.parseClassSuper(t);var n=this.startNode(),i=!1;for(n.body=[],this.expect(g.braceL);this.type!==g.braceR;){var s=this.parseClassElement(t.superClass!==null);s&&(n.body.push(s),s.type==="MethodDefinition"&&s.kind==="constructor"&&(i&&this.raise(s.start,"Duplicate constructor in the same class"),i=!0))}return this.strict=r,this.next(),t.body=this.finishNode(n,"ClassBody"),this.finishNode(t,e?"ClassDeclaration":"ClassExpression")};K.parseClassElement=function(t){var e=this;if(this.eat(g.semi))return null;var r=this.startNode(),n=function(u,c){c===void 0&&(c=!1);var l=e.start,h=e.startLoc;return e.eatContextual(u)?e.type!==g.parenL&&(!c||!e.canInsertSemicolon())?!0:(r.key&&e.unexpected(),r.computed=!1,r.key=e.startNodeAt(l,h),r.key.name=u,e.finishNode(r.key,"Identifier"),!1):!1};r.kind="method",r.static=n("static");var i=this.eat(g.star),s=!1;i||(this.options.ecmaVersion>=8&&n("async",!0)?(s=!0,i=this.options.ecmaVersion>=9&&this.eat(g.star)):n("get")?r.kind="get":n("set")&&(r.kind="set")),r.key||this.parsePropertyName(r);var a=r.key,o=!1;return!r.computed&&!r.static&&(a.type==="Identifier"&&a.name==="constructor"||a.type==="Literal"&&a.value==="constructor")?(r.kind!=="method"&&this.raise(a.start,"Constructor can't have get/set modifier"),i&&this.raise(a.start,"Constructor can't be a generator"),s&&this.raise(a.start,"Constructor can't be an async method"),r.kind="constructor",o=t):r.static&&a.type==="Identifier"&&a.name==="prototype"&&this.raise(a.start,"Classes may not have a static property named prototype"),this.parseClassMethod(r,i,s,o),r.kind==="get"&&r.value.params.length!==0&&this.raiseRecoverable(r.value.start,"getter should have no params"),r.kind==="set"&&r.value.params.length!==1&&this.raiseRecoverable(r.value.start,"setter should have exactly one param"),r.kind==="set"&&r.value.params[0].type==="RestElement"&&this.raiseRecoverable(r.value.params[0].start,"Setter cannot use rest params"),r};K.parseClassMethod=function(t,e,r,n){return t.value=this.parseMethod(e,r,n),this.finishNode(t,"MethodDefinition")};K.parseClassId=function(t,e){this.type===g.name?(t.id=this.parseIdent(),e&&this.checkLVal(t.id,We,!1)):(e===!0&&this.unexpected(),t.id=null)};K.parseClassSuper=function(t){t.superClass=this.eat(g._extends)?this.parseExprSubscripts():null};K.parseExport=function(t,e){if(this.next(),this.eat(g.star))return this.options.ecmaVersion>=11&&(this.eatContextual("as")?(t.exported=this.parseIdent(!0),this.checkExport(e,t.exported.name,this.lastTokStart)):t.exported=null),this.expectContextual("from"),this.type!==g.string&&this.unexpected(),t.source=this.parseExprAtom(),this.semicolon(),this.finishNode(t,"ExportAllDeclaration");if(this.eat(g._default)){this.checkExport(e,"default",this.lastTokStart);var r;if(this.type===g._function||(r=this.isAsyncFunction())){var n=this.startNode();this.next(),r&&this.next(),t.declaration=this.parseFunction(n,Ut|ko,!1,r)}else if(this.type===g._class){var i=this.startNode();t.declaration=this.parseClass(i,"nullableID")}else t.declaration=this.parseMaybeAssign(),this.semicolon();return this.finishNode(t,"ExportDefaultDeclaration")}if(this.shouldParseExportStatement())t.declaration=this.parseStatement(null),t.declaration.type==="VariableDeclaration"?this.checkVariableExport(e,t.declaration.declarations):this.checkExport(e,t.declaration.id.name,t.declaration.id.start),t.specifiers=[],t.source=null;else{if(t.declaration=null,t.specifiers=this.parseExportSpecifiers(e),this.eatContextual("from"))this.type!==g.string&&this.unexpected(),t.source=this.parseExprAtom();else{for(var s=0,a=t.specifiers;s<a.length;s+=1){var o=a[s];this.checkUnreserved(o.local),this.checkLocalExport(o.local)}t.source=null}this.semicolon()}return this.finishNode(t,"ExportNamedDeclaration")};K.checkExport=function(t,e,r){t&&(Dr(t,e)&&this.raiseRecoverable(r,"Duplicate export '"+e+"'"),t[e]=!0)};K.checkPatternExport=function(t,e){var r=e.type;if(r==="Identifier")this.checkExport(t,e.name,e.start);else if(r==="ObjectPattern")for(var n=0,i=e.properties;n<i.length;n+=1){var s=i[n];this.checkPatternExport(t,s)}else if(r==="ArrayPattern")for(var a=0,o=e.elements;a<o.length;a+=1){var u=o[a];u&&this.checkPatternExport(t,u)}else r==="Property"?this.checkPatternExport(t,e.value):r==="AssignmentPattern"?this.checkPatternExport(t,e.left):r==="RestElement"?this.checkPatternExport(t,e.argument):r==="ParenthesizedExpression"&&this.checkPatternExport(t,e.expression)};K.checkVariableExport=function(t,e){if(t)for(var r=0,n=e;r<n.length;r+=1){var i=n[r];this.checkPatternExport(t,i.id)}};K.shouldParseExportStatement=function(){return this.type.keyword==="var"||this.type.keyword==="const"||this.type.keyword==="class"||this.type.keyword==="function"||this.isLet()||this.isAsyncFunction()};K.parseExportSpecifiers=function(t){var e=[],r=!0;for(this.expect(g.braceL);!this.eat(g.braceR);){if(r)r=!1;else if(this.expect(g.comma),this.afterTrailingComma(g.braceR))break;var n=this.startNode();n.local=this.parseIdent(!0),n.exported=this.eatContextual("as")?this.parseIdent(!0):n.local,this.checkExport(t,n.exported.name,n.exported.start),e.push(this.finishNode(n,"ExportSpecifier"))}return e};K.parseImport=function(t){return this.next(),this.type===g.string?(t.specifiers=Pv,t.source=this.parseExprAtom()):(t.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),t.source=this.type===g.string?this.parseExprAtom():this.unexpected()),this.semicolon(),this.finishNode(t,"ImportDeclaration")};K.parseImportSpecifiers=function(){var t=[],e=!0;if(this.type===g.name){var r=this.startNode();if(r.local=this.parseIdent(),this.checkLVal(r.local,We),t.push(this.finishNode(r,"ImportDefaultSpecifier")),!this.eat(g.comma))return t}if(this.type===g.star){var n=this.startNode();return this.next(),this.expectContextual("as"),n.local=this.parseIdent(),this.checkLVal(n.local,We),t.push(this.finishNode(n,"ImportNamespaceSpecifier")),t}for(this.expect(g.braceL);!this.eat(g.braceR);){if(e)e=!1;else if(this.expect(g.comma),this.afterTrailingComma(g.braceR))break;var i=this.startNode();i.imported=this.parseIdent(!0),this.eatContextual("as")?i.local=this.parseIdent():(this.checkUnreserved(i.imported),i.local=i.imported),this.checkLVal(i.local,We),t.push(this.finishNode(i,"ImportSpecifier"))}return t};K.adaptDirectivePrologue=function(t){for(var e=0;e<t.length&&this.isDirectiveCandidate(t[e]);++e)t[e].directive=t[e].expression.raw.slice(1,-1)};K.isDirectiveCandidate=function(t){return t.type==="ExpressionStatement"&&t.expression.type==="Literal"&&typeof t.expression.value=="string"&&(this.input[t.start]==='"'||this.input[t.start]==="'")};var Qe=oe.prototype;Qe.toAssignable=function(t,e,r){if(this.options.ecmaVersion>=6&&t)switch(t.type){case"Identifier":this.inAsync&&t.name==="await"&&this.raise(t.start,"Cannot use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"RestElement":break;case"ObjectExpression":t.type="ObjectPattern",r&&this.checkPatternErrors(r,!0);for(var n=0,i=t.properties;n<i.length;n+=1){var s=i[n];this.toAssignable(s,e),s.type==="RestElement"&&(s.argument.type==="ArrayPattern"||s.argument.type==="ObjectPattern")&&this.raise(s.argument.start,"Unexpected token")}break;case"Property":t.kind!=="init"&&this.raise(t.key.start,"Object pattern can't contain getter or setter"),this.toAssignable(t.value,e);break;case"ArrayExpression":t.type="ArrayPattern",r&&this.checkPatternErrors(r,!0),this.toAssignableList(t.elements,e);break;case"SpreadElement":t.type="RestElement",this.toAssignable(t.argument,e),t.argument.type==="AssignmentPattern"&&this.raise(t.argument.start,"Rest elements cannot have a default value");break;case"AssignmentExpression":t.operator!=="="&&this.raise(t.left.end,"Only '=' operator can be used for specifying default value."),t.type="AssignmentPattern",delete t.operator,this.toAssignable(t.left,e);case"AssignmentPattern":break;case"ParenthesizedExpression":this.toAssignable(t.expression,e,r);break;case"ChainExpression":this.raiseRecoverable(t.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":if(!e)break;default:this.raise(t.start,"Assigning to rvalue")}else r&&this.checkPatternErrors(r,!0);return t};Qe.toAssignableList=function(t,e){for(var r=t.length,n=0;n<r;n++){var i=t[n];i&&this.toAssignable(i,e)}if(r){var s=t[r-1];this.options.ecmaVersion===6&&e&&s&&s.type==="RestElement"&&s.argument.type!=="Identifier"&&this.unexpected(s.argument.start)}return t};Qe.parseSpread=function(t){var e=this.startNode();return this.next(),e.argument=this.parseMaybeAssign(!1,t),this.finishNode(e,"SpreadElement")};Qe.parseRestBinding=function(){var t=this.startNode();return this.next(),this.options.ecmaVersion===6&&this.type!==g.name&&this.unexpected(),t.argument=this.parseBindingAtom(),this.finishNode(t,"RestElement")};Qe.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case g.bracketL:var t=this.startNode();return this.next(),t.elements=this.parseBindingList(g.bracketR,!0,!0),this.finishNode(t,"ArrayPattern");case g.braceL:return this.parseObj(!0)}return this.parseIdent()};Qe.parseBindingList=function(t,e,r){for(var n=[],i=!0;!this.eat(t);)if(i?i=!1:this.expect(g.comma),e&&this.type===g.comma)n.push(null);else{if(r&&this.afterTrailingComma(t))break;if(this.type===g.ellipsis){var s=this.parseRestBinding();this.parseBindingListItem(s),n.push(s),this.type===g.comma&&this.raise(this.start,"Comma is not permitted after the rest element"),this.expect(t);break}else{var a=this.parseMaybeDefault(this.start,this.startLoc);this.parseBindingListItem(a),n.push(a)}}return n};Qe.parseBindingListItem=function(t){return t};Qe.parseMaybeDefault=function(t,e,r){if(r=r||this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(g.eq))return r;var n=this.startNodeAt(t,e);return n.left=r,n.right=this.parseMaybeAssign(),this.finishNode(n,"AssignmentPattern")};Qe.checkLVal=function(t,e,r){switch(e===void 0&&(e=ks),t.type){case"Identifier":e===We&&t.name==="let"&&this.raiseRecoverable(t.start,"let is disallowed as a lexically bound name"),this.strict&&this.reservedWordsStrictBind.test(t.name)&&this.raiseRecoverable(t.start,(e?"Binding ":"Assigning to ")+t.name+" in strict mode"),r&&(Dr(r,t.name)&&this.raiseRecoverable(t.start,"Argument name clash"),r[t.name]=!0),e!==ks&&e!==Ro&&this.declareName(t.name,e,t.start);break;case"ChainExpression":this.raiseRecoverable(t.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":e&&this.raiseRecoverable(t.start,"Binding member expression");break;case"ObjectPattern":for(var n=0,i=t.properties;n<i.length;n+=1){var s=i[n];this.checkLVal(s,e,r)}break;case"Property":this.checkLVal(t.value,e,r);break;case"ArrayPattern":for(var a=0,o=t.elements;a<o.length;a+=1){var u=o[a];u&&this.checkLVal(u,e,r)}break;case"AssignmentPattern":this.checkLVal(t.left,e,r);break;case"RestElement":this.checkLVal(t.argument,e,r);break;case"ParenthesizedExpression":this.checkLVal(t.expression,e,r);break;default:this.raise(t.start,(e?"Binding":"Assigning to")+" rvalue")}};var J=oe.prototype;J.checkPropClash=function(t,e,r){if(!(this.options.ecmaVersion>=9&&t.type==="SpreadElement")&&!(this.options.ecmaVersion>=6&&(t.computed||t.method||t.shorthand))){var n=t.key,i;switch(n.type){case"Identifier":i=n.name;break;case"Literal":i=String(n.value);break;default:return}var s=t.kind;if(this.options.ecmaVersion>=6){i==="__proto__"&&s==="init"&&(e.proto&&(r?r.doubleProto<0&&(r.doubleProto=n.start):this.raiseRecoverable(n.start,"Redefinition of __proto__ property")),e.proto=!0);return}i="$"+i;var a=e[i];if(a){var o;s==="init"?o=this.strict&&a.init||a.get||a.set:o=a.init||a[s],o&&this.raiseRecoverable(n.start,"Redefinition of property")}else a=e[i]={init:!1,get:!1,set:!1};a[s]=!0}};J.parseExpression=function(t,e){var r=this.start,n=this.startLoc,i=this.parseMaybeAssign(t,e);if(this.type===g.comma){var s=this.startNodeAt(r,n);for(s.expressions=[i];this.eat(g.comma);)s.expressions.push(this.parseMaybeAssign(t,e));return this.finishNode(s,"SequenceExpression")}return i};J.parseMaybeAssign=function(t,e,r){if(this.isContextual("yield")){if(this.inGenerator)return this.parseYield(t);this.exprAllowed=!1}var n=!1,i=-1,s=-1;e?(i=e.parenthesizedAssign,s=e.trailingComma,e.parenthesizedAssign=e.trailingComma=-1):(e=new Nr,n=!0);var a=this.start,o=this.startLoc;(this.type===g.parenL||this.type===g.name)&&(this.potentialArrowAt=this.start);var u=this.parseMaybeConditional(t,e);if(r&&(u=r.call(this,u,a,o)),this.type.isAssign){var c=this.startNodeAt(a,o);return c.operator=this.value,c.left=this.type===g.eq?this.toAssignable(u,!1,e):u,n||(e.parenthesizedAssign=e.trailingComma=e.doubleProto=-1),e.shorthandAssign>=c.left.start&&(e.shorthandAssign=-1),this.checkLVal(u),this.next(),c.right=this.parseMaybeAssign(t),this.finishNode(c,"AssignmentExpression")}else n&&this.checkExpressionErrors(e,!0);return i>-1&&(e.parenthesizedAssign=i),s>-1&&(e.trailingComma=s),u};J.parseMaybeConditional=function(t,e){var r=this.start,n=this.startLoc,i=this.parseExprOps(t,e);if(this.checkExpressionErrors(e))return i;if(this.eat(g.question)){var s=this.startNodeAt(r,n);return s.test=i,s.consequent=this.parseMaybeAssign(),this.expect(g.colon),s.alternate=this.parseMaybeAssign(t),this.finishNode(s,"ConditionalExpression")}return i};J.parseExprOps=function(t,e){var r=this.start,n=this.startLoc,i=this.parseMaybeUnary(e,!1);return this.checkExpressionErrors(e)||i.start===r&&i.type==="ArrowFunctionExpression"?i:this.parseExprOp(i,r,n,-1,t)};J.parseExprOp=function(t,e,r,n,i){var s=this.type.binop;if(s!=null&&(!i||this.type!==g._in)&&s>n){var a=this.type===g.logicalOR||this.type===g.logicalAND,o=this.type===g.coalesce;o&&(s=g.logicalAND.binop);var u=this.value;this.next();var c=this.start,l=this.startLoc,h=this.parseExprOp(this.parseMaybeUnary(null,!1),c,l,s,i),p=this.buildBinary(e,r,t,h,u,a||o);return(a&&this.type===g.coalesce||o&&(this.type===g.logicalOR||this.type===g.logicalAND))&&this.raiseRecoverable(this.start,"Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses"),this.parseExprOp(p,e,r,n,i)}return t};J.buildBinary=function(t,e,r,n,i,s){var a=this.startNodeAt(t,e);return a.left=r,a.operator=i,a.right=n,this.finishNode(a,s?"LogicalExpression":"BinaryExpression")};J.parseMaybeUnary=function(t,e){var r=this.start,n=this.startLoc,i;if(this.isContextual("await")&&(this.inAsync||!this.inFunction&&this.options.allowAwaitOutsideFunction))i=this.parseAwait(),e=!0;else if(this.type.prefix){var s=this.startNode(),a=this.type===g.incDec;s.operator=this.value,s.prefix=!0,this.next(),s.argument=this.parseMaybeUnary(null,!0),this.checkExpressionErrors(t,!0),a?this.checkLVal(s.argument):this.strict&&s.operator==="delete"&&s.argument.type==="Identifier"?this.raiseRecoverable(s.start,"Deleting local variable in strict mode"):e=!0,i=this.finishNode(s,a?"UpdateExpression":"UnaryExpression")}else{if(i=this.parseExprSubscripts(t),this.checkExpressionErrors(t))return i;for(;this.type.postfix&&!this.canInsertSemicolon();){var o=this.startNodeAt(r,n);o.operator=this.value,o.prefix=!1,o.argument=i,this.checkLVal(i),this.next(),i=this.finishNode(o,"UpdateExpression")}}return!e&&this.eat(g.starstar)?this.buildBinary(r,n,i,this.parseMaybeUnary(null,!1),"**",!1):i};J.parseExprSubscripts=function(t){var e=this.start,r=this.startLoc,n=this.parseExprAtom(t);if(n.type==="ArrowFunctionExpression"&&this.input.slice(this.lastTokStart,this.lastTokEnd)!==")")return n;var i=this.parseSubscripts(n,e,r);return t&&i.type==="MemberExpression"&&(t.parenthesizedAssign>=i.start&&(t.parenthesizedAssign=-1),t.parenthesizedBind>=i.start&&(t.parenthesizedBind=-1)),i};J.parseSubscripts=function(t,e,r,n){for(var i=this.options.ecmaVersion>=8&&t.type==="Identifier"&&t.name==="async"&&this.lastTokEnd===t.end&&!this.canInsertSemicolon()&&t.end-t.start===5&&this.potentialArrowAt===t.start,s=!1;;){var a=this.parseSubscript(t,e,r,n,i,s);if(a.optional&&(s=!0),a===t||a.type==="ArrowFunctionExpression"){if(s){var o=this.startNodeAt(e,r);o.expression=a,a=this.finishNode(o,"ChainExpression")}return a}t=a}};J.parseSubscript=function(t,e,r,n,i,s){var a=this.options.ecmaVersion>=11,o=a&&this.eat(g.questionDot);n&&o&&this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");var u=this.eat(g.bracketL);if(u||o&&this.type!==g.parenL&&this.type!==g.backQuote||this.eat(g.dot)){var c=this.startNodeAt(e,r);c.object=t,c.property=u?this.parseExpression():this.parseIdent(this.options.allowReserved!=="never"),c.computed=!!u,u&&this.expect(g.bracketR),a&&(c.optional=o),t=this.finishNode(c,"MemberExpression")}else if(!n&&this.eat(g.parenL)){var l=new Nr,h=this.yieldPos,p=this.awaitPos,f=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var d=this.parseExprList(g.parenR,this.options.ecmaVersion>=8,!1,l);if(i&&!o&&!this.canInsertSemicolon()&&this.eat(g.arrow))return this.checkPatternErrors(l,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0&&this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function"),this.yieldPos=h,this.awaitPos=p,this.awaitIdentPos=f,this.parseArrowExpression(this.startNodeAt(e,r),d,!0);this.checkExpressionErrors(l,!0),this.yieldPos=h||this.yieldPos,this.awaitPos=p||this.awaitPos,this.awaitIdentPos=f||this.awaitIdentPos;var m=this.startNodeAt(e,r);m.callee=t,m.arguments=d,a&&(m.optional=o),t=this.finishNode(m,"CallExpression")}else if(this.type===g.backQuote){(o||s)&&this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");var v=this.startNodeAt(e,r);v.tag=t,v.quasi=this.parseTemplate({isTagged:!0}),t=this.finishNode(v,"TaggedTemplateExpression")}return t};J.parseExprAtom=function(t){this.type===g.slash&&this.readRegexp();var e,r=this.potentialArrowAt===this.start;switch(this.type){case g._super:return this.allowSuper||this.raise(this.start,"'super' keyword outside a method"),e=this.startNode(),this.next(),this.type===g.parenL&&!this.allowDirectSuper&&this.raise(e.start,"super() call outside constructor of a subclass"),this.type!==g.dot&&this.type!==g.bracketL&&this.type!==g.parenL&&this.unexpected(),this.finishNode(e,"Super");case g._this:return e=this.startNode(),this.next(),this.finishNode(e,"ThisExpression");case g.name:var n=this.start,i=this.startLoc,s=this.containsEsc,a=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!s&&a.name==="async"&&!this.canInsertSemicolon()&&this.eat(g._function))return this.parseFunction(this.startNodeAt(n,i),0,!1,!0);if(r&&!this.canInsertSemicolon()){if(this.eat(g.arrow))return this.parseArrowExpression(this.startNodeAt(n,i),[a],!1);if(this.options.ecmaVersion>=8&&a.name==="async"&&this.type===g.name&&!s)return a=this.parseIdent(!1),(this.canInsertSemicolon()||!this.eat(g.arrow))&&this.unexpected(),this.parseArrowExpression(this.startNodeAt(n,i),[a],!0)}return a;case g.regexp:var o=this.value;return e=this.parseLiteral(o.value),e.regex={pattern:o.pattern,flags:o.flags},e;case g.num:case g.string:return this.parseLiteral(this.value);case g._null:case g._true:case g._false:return e=this.startNode(),e.value=this.type===g._null?null:this.type===g._true,e.raw=this.type.keyword,this.next(),this.finishNode(e,"Literal");case g.parenL:var u=this.start,c=this.parseParenAndDistinguishExpression(r);return t&&(t.parenthesizedAssign<0&&!this.isSimpleAssignTarget(c)&&(t.parenthesizedAssign=u),t.parenthesizedBind<0&&(t.parenthesizedBind=u)),c;case g.bracketL:return e=this.startNode(),this.next(),e.elements=this.parseExprList(g.bracketR,!0,!0,t),this.finishNode(e,"ArrayExpression");case g.braceL:return this.parseObj(!1,t);case g._function:return e=this.startNode(),this.next(),this.parseFunction(e,0);case g._class:return this.parseClass(this.startNode(),!1);case g._new:return this.parseNew();case g.backQuote:return this.parseTemplate();case g._import:return this.options.ecmaVersion>=11?this.parseExprImport():this.unexpected();default:this.unexpected()}};J.parseExprImport=function(){var t=this.startNode();this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword import");var e=this.parseIdent(!0);switch(this.type){case g.parenL:return this.parseDynamicImport(t);case g.dot:return t.meta=e,this.parseImportMeta(t);default:this.unexpected()}};J.parseDynamicImport=function(t){if(this.next(),t.source=this.parseMaybeAssign(),!this.eat(g.parenR)){var e=this.start;this.eat(g.comma)&&this.eat(g.parenR)?this.raiseRecoverable(e,"Trailing comma is not allowed in import()"):this.unexpected(e)}return this.finishNode(t,"ImportExpression")};J.parseImportMeta=function(t){this.next();var e=this.containsEsc;return t.property=this.parseIdent(!0),t.property.name!=="meta"&&this.raiseRecoverable(t.property.start,"The only valid meta property for import is 'import.meta'"),e&&this.raiseRecoverable(t.start,"'import.meta' must not contain escaped characters"),this.options.sourceType!=="module"&&this.raiseRecoverable(t.start,"Cannot use 'import.meta' outside a module"),this.finishNode(t,"MetaProperty")};J.parseLiteral=function(t){var e=this.startNode();return e.value=t,e.raw=this.input.slice(this.start,this.end),e.raw.charCodeAt(e.raw.length-1)===110&&(e.bigint=e.raw.slice(0,-1).replace(/_/g,"")),this.next(),this.finishNode(e,"Literal")};J.parseParenExpression=function(){this.expect(g.parenL);var t=this.parseExpression();return this.expect(g.parenR),t};J.parseParenAndDistinguishExpression=function(t){var e=this.start,r=this.startLoc,n,i=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var s=this.start,a=this.startLoc,o=[],u=!0,c=!1,l=new Nr,h=this.yieldPos,p=this.awaitPos,f;for(this.yieldPos=0,this.awaitPos=0;this.type!==g.parenR;)if(u?u=!1:this.expect(g.comma),i&&this.afterTrailingComma(g.parenR,!0)){c=!0;break}else if(this.type===g.ellipsis){f=this.start,o.push(this.parseParenItem(this.parseRestBinding())),this.type===g.comma&&this.raise(this.start,"Comma is not permitted after the rest element");break}else o.push(this.parseMaybeAssign(!1,l,this.parseParenItem));var d=this.start,m=this.startLoc;if(this.expect(g.parenR),t&&!this.canInsertSemicolon()&&this.eat(g.arrow))return this.checkPatternErrors(l,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=h,this.awaitPos=p,this.parseParenArrowList(e,r,o);(!o.length||c)&&this.unexpected(this.lastTokStart),f&&this.unexpected(f),this.checkExpressionErrors(l,!0),this.yieldPos=h||this.yieldPos,this.awaitPos=p||this.awaitPos,o.length>1?(n=this.startNodeAt(s,a),n.expressions=o,this.finishNodeAt(n,"SequenceExpression",d,m)):n=o[0]}else n=this.parseParenExpression();if(this.options.preserveParens){var v=this.startNodeAt(e,r);return v.expression=n,this.finishNode(v,"ParenthesizedExpression")}else return n};J.parseParenItem=function(t){return t};J.parseParenArrowList=function(t,e,r){return this.parseArrowExpression(this.startNodeAt(t,e),r)};var Dv=[];J.parseNew=function(){this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword new");var t=this.startNode(),e=this.parseIdent(!0);if(this.options.ecmaVersion>=6&&this.eat(g.dot)){t.meta=e;var r=this.containsEsc;return t.property=this.parseIdent(!0),t.property.name!=="target"&&this.raiseRecoverable(t.property.start,"The only valid meta property for new is 'new.target'"),r&&this.raiseRecoverable(t.start,"'new.target' must not contain escaped characters"),this.inNonArrowFunction()||this.raiseRecoverable(t.start,"'new.target' can only be used in functions"),this.finishNode(t,"MetaProperty")}var n=this.start,i=this.startLoc,s=this.type===g._import;return t.callee=this.parseSubscripts(this.parseExprAtom(),n,i,!0),s&&t.callee.type==="ImportExpression"&&this.raise(n,"Cannot use new with import()"),this.eat(g.parenL)?t.arguments=this.parseExprList(g.parenR,this.options.ecmaVersion>=8,!1):t.arguments=Dv,this.finishNode(t,"NewExpression")};J.parseTemplateElement=function(t){var e=t.isTagged,r=this.startNode();return this.type===g.invalidTemplate?(e||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),r.value={raw:this.value,cooked:null}):r.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,`
67
- `),cooked:this.value},this.next(),r.tail=this.type===g.backQuote,this.finishNode(r,"TemplateElement")};J.parseTemplate=function(t){t===void 0&&(t={});var e=t.isTagged;e===void 0&&(e=!1);var r=this.startNode();this.next(),r.expressions=[];var n=this.parseTemplateElement({isTagged:e});for(r.quasis=[n];!n.tail;)this.type===g.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(g.dollarBraceL),r.expressions.push(this.parseExpression()),this.expect(g.braceR),r.quasis.push(n=this.parseTemplateElement({isTagged:e}));return this.next(),this.finishNode(r,"TemplateLiteral")};J.isAsyncProp=function(t){return!t.computed&&t.key.type==="Identifier"&&t.key.name==="async"&&(this.type===g.name||this.type===g.num||this.type===g.string||this.type===g.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===g.star)&&!ke.test(this.input.slice(this.lastTokEnd,this.start))};J.parseObj=function(t,e){var r=this.startNode(),n=!0,i={};for(r.properties=[],this.next();!this.eat(g.braceR);){if(n)n=!1;else if(this.expect(g.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(g.braceR))break;var s=this.parseProperty(t,e);t||this.checkPropClash(s,i,e),r.properties.push(s)}return this.finishNode(r,t?"ObjectPattern":"ObjectExpression")};J.parseProperty=function(t,e){var r=this.startNode(),n,i,s,a;if(this.options.ecmaVersion>=9&&this.eat(g.ellipsis))return t?(r.argument=this.parseIdent(!1),this.type===g.comma&&this.raise(this.start,"Comma is not permitted after the rest element"),this.finishNode(r,"RestElement")):(this.type===g.parenL&&e&&(e.parenthesizedAssign<0&&(e.parenthesizedAssign=this.start),e.parenthesizedBind<0&&(e.parenthesizedBind=this.start)),r.argument=this.parseMaybeAssign(!1,e),this.type===g.comma&&e&&e.trailingComma<0&&(e.trailingComma=this.start),this.finishNode(r,"SpreadElement"));this.options.ecmaVersion>=6&&(r.method=!1,r.shorthand=!1,(t||e)&&(s=this.start,a=this.startLoc),t||(n=this.eat(g.star)));var o=this.containsEsc;return this.parsePropertyName(r),!t&&!o&&this.options.ecmaVersion>=8&&!n&&this.isAsyncProp(r)?(i=!0,n=this.options.ecmaVersion>=9&&this.eat(g.star),this.parsePropertyName(r,e)):i=!1,this.parsePropertyValue(r,t,n,i,s,a,e,o),this.finishNode(r,"Property")};J.parsePropertyValue=function(t,e,r,n,i,s,a,o){if((r||n)&&this.type===g.colon&&this.unexpected(),this.eat(g.colon))t.value=e?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,a),t.kind="init";else if(this.options.ecmaVersion>=6&&this.type===g.parenL)e&&this.unexpected(),t.kind="init",t.method=!0,t.value=this.parseMethod(r,n);else if(!e&&!o&&this.options.ecmaVersion>=5&&!t.computed&&t.key.type==="Identifier"&&(t.key.name==="get"||t.key.name==="set")&&this.type!==g.comma&&this.type!==g.braceR&&this.type!==g.eq){(r||n)&&this.unexpected(),t.kind=t.key.name,this.parsePropertyName(t),t.value=this.parseMethod(!1);var u=t.kind==="get"?0:1;if(t.value.params.length!==u){var c=t.value.start;t.kind==="get"?this.raiseRecoverable(c,"getter should have no params"):this.raiseRecoverable(c,"setter should have exactly one param")}else t.kind==="set"&&t.value.params[0].type==="RestElement"&&this.raiseRecoverable(t.value.params[0].start,"Setter cannot use rest params")}else this.options.ecmaVersion>=6&&!t.computed&&t.key.type==="Identifier"?((r||n)&&this.unexpected(),this.checkUnreserved(t.key),t.key.name==="await"&&!this.awaitIdentPos&&(this.awaitIdentPos=i),t.kind="init",e?t.value=this.parseMaybeDefault(i,s,t.key):this.type===g.eq&&a?(a.shorthandAssign<0&&(a.shorthandAssign=this.start),t.value=this.parseMaybeDefault(i,s,t.key)):t.value=t.key,t.shorthand=!0):this.unexpected()};J.parsePropertyName=function(t){if(this.options.ecmaVersion>=6){if(this.eat(g.bracketL))return t.computed=!0,t.key=this.parseMaybeAssign(),this.expect(g.bracketR),t.key;t.computed=!1}return t.key=this.type===g.num||this.type===g.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never")};J.initFunction=function(t){t.id=null,this.options.ecmaVersion>=6&&(t.generator=t.expression=!1),this.options.ecmaVersion>=8&&(t.async=!1)};J.parseMethod=function(t,e,r){var n=this.startNode(),i=this.yieldPos,s=this.awaitPos,a=this.awaitIdentPos;return this.initFunction(n),this.options.ecmaVersion>=6&&(n.generator=t),this.options.ecmaVersion>=8&&(n.async=!!e),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(ri(e,n.generator)|To|(r?Co:0)),this.expect(g.parenL),n.params=this.parseBindingList(g.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(n,!1,!0),this.yieldPos=i,this.awaitPos=s,this.awaitIdentPos=a,this.finishNode(n,"FunctionExpression")};J.parseArrowExpression=function(t,e,r){var n=this.yieldPos,i=this.awaitPos,s=this.awaitIdentPos;return this.enterScope(ri(r,!1)|So),this.initFunction(t),this.options.ecmaVersion>=8&&(t.async=!!r),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,t.params=this.toAssignableList(e,!0),this.parseFunctionBody(t,!0,!1),this.yieldPos=n,this.awaitPos=i,this.awaitIdentPos=s,this.finishNode(t,"ArrowFunctionExpression")};J.parseFunctionBody=function(t,e,r){var n=e&&this.type!==g.braceL,i=this.strict,s=!1;if(n)t.body=this.parseMaybeAssign(),t.expression=!0,this.checkParams(t,!1);else{var a=this.options.ecmaVersion>=7&&!this.isSimpleParamList(t.params);(!i||a)&&(s=this.strictDirective(this.end),s&&a&&this.raiseRecoverable(t.start,"Illegal 'use strict' directive in function with non-simple parameter list"));var o=this.labels;this.labels=[],s&&(this.strict=!0),this.checkParams(t,!i&&!s&&!e&&!r&&this.isSimpleParamList(t.params)),this.strict&&t.id&&this.checkLVal(t.id,Ro),t.body=this.parseBlock(!1,void 0,s&&!i),t.expression=!1,this.adaptDirectivePrologue(t.body.body),this.labels=o}this.exitScope()};J.isSimpleParamList=function(t){for(var e=0,r=t;e<r.length;e+=1){var n=r[e];if(n.type!=="Identifier")return!1}return!0};J.checkParams=function(t,e){for(var r={},n=0,i=t.params;n<i.length;n+=1){var s=i[n];this.checkLVal(s,ni,e?null:r)}};J.parseExprList=function(t,e,r,n){for(var i=[],s=!0;!this.eat(t);){if(s)s=!1;else if(this.expect(g.comma),e&&this.afterTrailingComma(t))break;var a=void 0;r&&this.type===g.comma?a=null:this.type===g.ellipsis?(a=this.parseSpread(n),n&&this.type===g.comma&&n.trailingComma<0&&(n.trailingComma=this.start)):a=this.parseMaybeAssign(!1,n),i.push(a)}return i};J.checkUnreserved=function(t){var e=t.start,r=t.end,n=t.name;if(this.inGenerator&&n==="yield"&&this.raiseRecoverable(e,"Cannot use 'yield' as identifier inside a generator"),this.inAsync&&n==="await"&&this.raiseRecoverable(e,"Cannot use 'await' as identifier inside an async function"),this.keywords.test(n)&&this.raise(e,"Unexpected keyword '"+n+"'"),!(this.options.ecmaVersion<6&&this.input.slice(e,r).indexOf("\\")!==-1)){var i=this.strict?this.reservedWordsStrict:this.reservedWords;i.test(n)&&(!this.inAsync&&n==="await"&&this.raiseRecoverable(e,"Cannot use keyword 'await' outside an async function"),this.raiseRecoverable(e,"The keyword '"+n+"' is reserved"))}};J.parseIdent=function(t,e){var r=this.startNode();return this.type===g.name?r.name=this.value:this.type.keyword?(r.name=this.type.keyword,(r.name==="class"||r.name==="function")&&(this.lastTokEnd!==this.lastTokStart+1||this.input.charCodeAt(this.lastTokStart)!==46)&&this.context.pop()):this.unexpected(),this.next(!!t),this.finishNode(r,"Identifier"),t||(this.checkUnreserved(r),r.name==="await"&&!this.awaitIdentPos&&(this.awaitIdentPos=r.start)),r};J.parseYield=function(t){this.yieldPos||(this.yieldPos=this.start);var e=this.startNode();return this.next(),this.type===g.semi||this.canInsertSemicolon()||this.type!==g.star&&!this.type.startsExpr?(e.delegate=!1,e.argument=null):(e.delegate=this.eat(g.star),e.argument=this.parseMaybeAssign(t)),this.finishNode(e,"YieldExpression")};J.parseAwait=function(){this.awaitPos||(this.awaitPos=this.start);var t=this.startNode();return this.next(),t.argument=this.parseMaybeUnary(null,!1),this.finishNode(t,"AwaitExpression")};var Sr=oe.prototype;Sr.raise=function(t,e){var r=_o(this.input,t);e+=" ("+r.line+":"+r.column+")";var n=new SyntaxError(e);throw n.pos=t,n.loc=r,n.raisedAt=this.pos,n};Sr.raiseRecoverable=Sr.raise;Sr.curPosition=function(){if(this.options.locations)return new Zt(this.curLine,this.pos-this.lineStart)};var ut=oe.prototype,$v=function(t){this.flags=t,this.var=[],this.lexical=[],this.functions=[]};ut.enterScope=function(t){this.scopeStack.push(new $v(t))};ut.exitScope=function(){this.scopeStack.pop()};ut.treatFunctionsAsVarInScope=function(t){return t.flags&tr||!this.inModule&&t.flags&Qt};ut.declareName=function(t,e,r){var n=!1;if(e===We){var i=this.currentScope();n=i.lexical.indexOf(t)>-1||i.functions.indexOf(t)>-1||i.var.indexOf(t)>-1,i.lexical.push(t),this.inModule&&i.flags&Qt&&delete this.undefinedExports[t]}else if(e===Io){var s=this.currentScope();s.lexical.push(t)}else if(e===Ao){var a=this.currentScope();this.treatFunctionsAsVar?n=a.lexical.indexOf(t)>-1:n=a.lexical.indexOf(t)>-1||a.var.indexOf(t)>-1,a.functions.push(t)}else for(var o=this.scopeStack.length-1;o>=0;--o){var u=this.scopeStack[o];if(u.lexical.indexOf(t)>-1&&!(u.flags&Eo&&u.lexical[0]===t)||!this.treatFunctionsAsVarInScope(u)&&u.functions.indexOf(t)>-1){n=!0;break}if(u.var.push(t),this.inModule&&u.flags&Qt&&delete this.undefinedExports[t],u.flags&ti)break}n&&this.raiseRecoverable(r,"Identifier '"+t+"' has already been declared")};ut.checkLocalExport=function(t){this.scopeStack[0].lexical.indexOf(t.name)===-1&&this.scopeStack[0].var.indexOf(t.name)===-1&&(this.undefinedExports[t.name]=t)};ut.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]};ut.currentVarScope=function(){for(var t=this.scopeStack.length-1;;t--){var e=this.scopeStack[t];if(e.flags&ti)return e}};ut.currentThisScope=function(){for(var t=this.scopeStack.length-1;;t--){var e=this.scopeStack[t];if(e.flags&ti&&!(e.flags&So))return e}};var si=function(t,e,r){this.type="",this.start=e,this.end=0,t.options.locations&&(this.loc=new $r(t,r)),t.options.directSourceFile&&(this.sourceFile=t.options.directSourceFile),t.options.ranges&&(this.range=[e,0])},Br=oe.prototype;Br.startNode=function(){return new si(this,this.start,this.startLoc)};Br.startNodeAt=function(t,e){return new si(this,t,e)};function Oo(t,e,r,n){return t.type=e,t.end=r,this.options.locations&&(t.loc.end=n),this.options.ranges&&(t.range[1]=r),t}Br.finishNode=function(t,e){return Oo.call(this,t,e,this.lastTokEnd,this.lastTokEndLoc)};Br.finishNodeAt=function(t,e,r,n){return Oo.call(this,t,e,r,n)};var De=function(t,e,r,n,i){this.token=t,this.isExpr=!!e,this.preserveSpace=!!r,this.override=n,this.generator=!!i},ae={b_stat:new De("{",!1),b_expr:new De("{",!0),b_tmpl:new De("${",!1),p_stat:new De("(",!1),p_expr:new De("(",!0),q_tmpl:new De("`",!0,!0,function(t){return t.tryReadTemplateToken()}),f_stat:new De("function",!1),f_expr:new De("function",!0),f_expr_gen:new De("function",!0,!1,null,!0),f_gen:new De("function",!1,!1,null,!0)},Lr=oe.prototype;Lr.initialContext=function(){return[ae.b_stat]};Lr.braceIsBlock=function(t){var e=this.curContext();return e===ae.f_expr||e===ae.f_stat?!0:t===g.colon&&(e===ae.b_stat||e===ae.b_expr)?!e.isExpr:t===g._return||t===g.name&&this.exprAllowed?ke.test(this.input.slice(this.lastTokEnd,this.start)):t===g._else||t===g.semi||t===g.eof||t===g.parenR||t===g.arrow?!0:t===g.braceL?e===ae.b_stat:t===g._var||t===g._const||t===g.name?!1:!this.exprAllowed};Lr.inGeneratorContext=function(){for(var t=this.context.length-1;t>=1;t--){var e=this.context[t];if(e.token==="function")return e.generator}return!1};Lr.updateContext=function(t){var e,r=this.type;r.keyword&&t===g.dot?this.exprAllowed=!1:(e=r.updateContext)?e.call(this,t):this.exprAllowed=r.beforeExpr};g.parenR.updateContext=g.braceR.updateContext=function(){if(this.context.length===1){this.exprAllowed=!0;return}var t=this.context.pop();t===ae.b_stat&&this.curContext().token==="function"&&(t=this.context.pop()),this.exprAllowed=!t.isExpr};g.braceL.updateContext=function(t){this.context.push(this.braceIsBlock(t)?ae.b_stat:ae.b_expr),this.exprAllowed=!0};g.dollarBraceL.updateContext=function(){this.context.push(ae.b_tmpl),this.exprAllowed=!0};g.parenL.updateContext=function(t){var e=t===g._if||t===g._for||t===g._with||t===g._while;this.context.push(e?ae.p_stat:ae.p_expr),this.exprAllowed=!0};g.incDec.updateContext=function(){};g._function.updateContext=g._class.updateContext=function(t){t.beforeExpr&&t!==g.semi&&t!==g._else&&!(t===g._return&&ke.test(this.input.slice(this.lastTokEnd,this.start)))&&!((t===g.colon||t===g.braceL)&&this.curContext()===ae.b_stat)?this.context.push(ae.f_expr):this.context.push(ae.f_stat),this.exprAllowed=!1};g.backQuote.updateContext=function(){this.curContext()===ae.q_tmpl?this.context.pop():this.context.push(ae.q_tmpl),this.exprAllowed=!1};g.star.updateContext=function(t){if(t===g._function){var e=this.context.length-1;this.context[e]===ae.f_expr?this.context[e]=ae.f_expr_gen:this.context[e]=ae.f_gen}this.exprAllowed=!0};g.name.updateContext=function(t){var e=!1;this.options.ecmaVersion>=6&&t!==g.dot&&(this.value==="of"&&!this.exprAllowed||this.value==="yield"&&this.inGeneratorContext())&&(e=!0),this.exprAllowed=e};var Po="ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS",Do=Po+" Extended_Pictographic",Nv=Do,Bv={9:Po,10:Do,11:Nv},Os="Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu",$o="Adlam Adlm Ahom Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb",No=$o+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",Lv=No+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",Vv={9:$o,10:No,11:Lv},Bo={};function ai(t){var e=Bo[t]={binary:dt(Bv[t]+" "+Os),nonBinary:{General_Category:dt(Os),Script:dt(Vv[t])}};e.nonBinary.Script_Extensions=e.nonBinary.Script,e.nonBinary.gc=e.nonBinary.General_Category,e.nonBinary.sc=e.nonBinary.Script,e.nonBinary.scx=e.nonBinary.Script_Extensions}ai(9);ai(10);ai(11);var W=oe.prototype,Xe=function(t){this.parser=t,this.validFlags="gim"+(t.options.ecmaVersion>=6?"uy":"")+(t.options.ecmaVersion>=9?"s":""),this.unicodeProperties=Bo[t.options.ecmaVersion>=11?11:t.options.ecmaVersion],this.source="",this.flags="",this.start=0,this.switchU=!1,this.switchN=!1,this.pos=0,this.lastIntValue=0,this.lastStringValue="",this.lastAssertionIsQuantifiable=!1,this.numCapturingParens=0,this.maxBackReference=0,this.groupNames=[],this.backReferenceNames=[]};Xe.prototype.reset=function(t,e,r){var n=r.indexOf("u")!==-1;this.start=t|0,this.source=e+"",this.flags=r,this.switchU=n&&this.parser.options.ecmaVersion>=6,this.switchN=n&&this.parser.options.ecmaVersion>=9};Xe.prototype.raise=function(t){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+t)};Xe.prototype.at=function(t,e){e===void 0&&(e=!1);var r=this.source,n=r.length;if(t>=n)return-1;var i=r.charCodeAt(t);if(!(e||this.switchU)||i<=55295||i>=57344||t+1>=n)return i;var s=r.charCodeAt(t+1);return s>=56320&&s<=57343?(i<<10)+s-56613888:i};Xe.prototype.nextIndex=function(t,e){e===void 0&&(e=!1);var r=this.source,n=r.length;if(t>=n)return n;var i=r.charCodeAt(t),s;return!(e||this.switchU)||i<=55295||i>=57344||t+1>=n||(s=r.charCodeAt(t+1))<56320||s>57343?t+1:t+2};Xe.prototype.current=function(t){return t===void 0&&(t=!1),this.at(this.pos,t)};Xe.prototype.lookahead=function(t){return t===void 0&&(t=!1),this.at(this.nextIndex(this.pos,t),t)};Xe.prototype.advance=function(t){t===void 0&&(t=!1),this.pos=this.nextIndex(this.pos,t)};Xe.prototype.eat=function(t,e){return e===void 0&&(e=!1),this.current(e)===t?(this.advance(e),!0):!1};function Er(t){return t<=65535?String.fromCharCode(t):(t-=65536,String.fromCharCode((t>>10)+55296,(t&1023)+56320))}W.validateRegExpFlags=function(t){for(var e=t.validFlags,r=t.flags,n=0;n<r.length;n++){var i=r.charAt(n);e.indexOf(i)===-1&&this.raise(t.start,"Invalid regular expression flag"),r.indexOf(i,n+1)>-1&&this.raise(t.start,"Duplicate regular expression flag")}};W.validateRegExpPattern=function(t){this.regexp_pattern(t),!t.switchN&&this.options.ecmaVersion>=9&&t.groupNames.length>0&&(t.switchN=!0,this.regexp_pattern(t))};W.regexp_pattern=function(t){t.pos=0,t.lastIntValue=0,t.lastStringValue="",t.lastAssertionIsQuantifiable=!1,t.numCapturingParens=0,t.maxBackReference=0,t.groupNames.length=0,t.backReferenceNames.length=0,this.regexp_disjunction(t),t.pos!==t.source.length&&(t.eat(41)&&t.raise("Unmatched ')'"),(t.eat(93)||t.eat(125))&&t.raise("Lone quantifier brackets")),t.maxBackReference>t.numCapturingParens&&t.raise("Invalid escape");for(var e=0,r=t.backReferenceNames;e<r.length;e+=1){var n=r[e];t.groupNames.indexOf(n)===-1&&t.raise("Invalid named capture referenced")}};W.regexp_disjunction=function(t){for(this.regexp_alternative(t);t.eat(124);)this.regexp_alternative(t);this.regexp_eatQuantifier(t,!0)&&t.raise("Nothing to repeat"),t.eat(123)&&t.raise("Lone quantifier brackets")};W.regexp_alternative=function(t){for(;t.pos<t.source.length&&this.regexp_eatTerm(t););};W.regexp_eatTerm=function(t){return this.regexp_eatAssertion(t)?(t.lastAssertionIsQuantifiable&&this.regexp_eatQuantifier(t)&&t.switchU&&t.raise("Invalid quantifier"),!0):(t.switchU?this.regexp_eatAtom(t):this.regexp_eatExtendedAtom(t))?(this.regexp_eatQuantifier(t),!0):!1};W.regexp_eatAssertion=function(t){var e=t.pos;if(t.lastAssertionIsQuantifiable=!1,t.eat(94)||t.eat(36))return!0;if(t.eat(92)){if(t.eat(66)||t.eat(98))return!0;t.pos=e}if(t.eat(40)&&t.eat(63)){var r=!1;if(this.options.ecmaVersion>=9&&(r=t.eat(60)),t.eat(61)||t.eat(33))return this.regexp_disjunction(t),t.eat(41)||t.raise("Unterminated group"),t.lastAssertionIsQuantifiable=!r,!0}return t.pos=e,!1};W.regexp_eatQuantifier=function(t,e){return e===void 0&&(e=!1),this.regexp_eatQuantifierPrefix(t,e)?(t.eat(63),!0):!1};W.regexp_eatQuantifierPrefix=function(t,e){return t.eat(42)||t.eat(43)||t.eat(63)||this.regexp_eatBracedQuantifier(t,e)};W.regexp_eatBracedQuantifier=function(t,e){var r=t.pos;if(t.eat(123)){var n=0,i=-1;if(this.regexp_eatDecimalDigits(t)&&(n=t.lastIntValue,t.eat(44)&&this.regexp_eatDecimalDigits(t)&&(i=t.lastIntValue),t.eat(125)))return i!==-1&&i<n&&!e&&t.raise("numbers out of order in {} quantifier"),!0;t.switchU&&!e&&t.raise("Incomplete quantifier"),t.pos=r}return!1};W.regexp_eatAtom=function(t){return this.regexp_eatPatternCharacters(t)||t.eat(46)||this.regexp_eatReverseSolidusAtomEscape(t)||this.regexp_eatCharacterClass(t)||this.regexp_eatUncapturingGroup(t)||this.regexp_eatCapturingGroup(t)};W.regexp_eatReverseSolidusAtomEscape=function(t){var e=t.pos;if(t.eat(92)){if(this.regexp_eatAtomEscape(t))return!0;t.pos=e}return!1};W.regexp_eatUncapturingGroup=function(t){var e=t.pos;if(t.eat(40)){if(t.eat(63)&&t.eat(58)){if(this.regexp_disjunction(t),t.eat(41))return!0;t.raise("Unterminated group")}t.pos=e}return!1};W.regexp_eatCapturingGroup=function(t){if(t.eat(40)){if(this.options.ecmaVersion>=9?this.regexp_groupSpecifier(t):t.current()===63&&t.raise("Invalid group"),this.regexp_disjunction(t),t.eat(41))return t.numCapturingParens+=1,!0;t.raise("Unterminated group")}return!1};W.regexp_eatExtendedAtom=function(t){return t.eat(46)||this.regexp_eatReverseSolidusAtomEscape(t)||this.regexp_eatCharacterClass(t)||this.regexp_eatUncapturingGroup(t)||this.regexp_eatCapturingGroup(t)||this.regexp_eatInvalidBracedQuantifier(t)||this.regexp_eatExtendedPatternCharacter(t)};W.regexp_eatInvalidBracedQuantifier=function(t){return this.regexp_eatBracedQuantifier(t,!0)&&t.raise("Nothing to repeat"),!1};W.regexp_eatSyntaxCharacter=function(t){var e=t.current();return Lo(e)?(t.lastIntValue=e,t.advance(),!0):!1};function Lo(t){return t===36||t>=40&&t<=43||t===46||t===63||t>=91&&t<=94||t>=123&&t<=125}W.regexp_eatPatternCharacters=function(t){for(var e=t.pos,r=0;(r=t.current())!==-1&&!Lo(r);)t.advance();return t.pos!==e};W.regexp_eatExtendedPatternCharacter=function(t){var e=t.current();return e!==-1&&e!==36&&!(e>=40&&e<=43)&&e!==46&&e!==63&&e!==91&&e!==94&&e!==124?(t.advance(),!0):!1};W.regexp_groupSpecifier=function(t){if(t.eat(63)){if(this.regexp_eatGroupName(t)){t.groupNames.indexOf(t.lastStringValue)!==-1&&t.raise("Duplicate capture group name"),t.groupNames.push(t.lastStringValue);return}t.raise("Invalid group")}};W.regexp_eatGroupName=function(t){if(t.lastStringValue="",t.eat(60)){if(this.regexp_eatRegExpIdentifierName(t)&&t.eat(62))return!0;t.raise("Invalid capture group name")}return!1};W.regexp_eatRegExpIdentifierName=function(t){if(t.lastStringValue="",this.regexp_eatRegExpIdentifierStart(t)){for(t.lastStringValue+=Er(t.lastIntValue);this.regexp_eatRegExpIdentifierPart(t);)t.lastStringValue+=Er(t.lastIntValue);return!0}return!1};W.regexp_eatRegExpIdentifierStart=function(t){var e=t.pos,r=this.options.ecmaVersion>=11,n=t.current(r);return t.advance(r),n===92&&this.regexp_eatRegExpUnicodeEscapeSequence(t,r)&&(n=t.lastIntValue),jv(n)?(t.lastIntValue=n,!0):(t.pos=e,!1)};function jv(t){return ot(t,!0)||t===36||t===95}W.regexp_eatRegExpIdentifierPart=function(t){var e=t.pos,r=this.options.ecmaVersion>=11,n=t.current(r);return t.advance(r),n===92&&this.regexp_eatRegExpUnicodeEscapeSequence(t,r)&&(n=t.lastIntValue),Mv(n)?(t.lastIntValue=n,!0):(t.pos=e,!1)};function Mv(t){return Rt(t,!0)||t===36||t===95||t===8204||t===8205}W.regexp_eatAtomEscape=function(t){return this.regexp_eatBackReference(t)||this.regexp_eatCharacterClassEscape(t)||this.regexp_eatCharacterEscape(t)||t.switchN&&this.regexp_eatKGroupName(t)?!0:(t.switchU&&(t.current()===99&&t.raise("Invalid unicode escape"),t.raise("Invalid escape")),!1)};W.regexp_eatBackReference=function(t){var e=t.pos;if(this.regexp_eatDecimalEscape(t)){var r=t.lastIntValue;if(t.switchU)return r>t.maxBackReference&&(t.maxBackReference=r),!0;if(r<=t.numCapturingParens)return!0;t.pos=e}return!1};W.regexp_eatKGroupName=function(t){if(t.eat(107)){if(this.regexp_eatGroupName(t))return t.backReferenceNames.push(t.lastStringValue),!0;t.raise("Invalid named reference")}return!1};W.regexp_eatCharacterEscape=function(t){return this.regexp_eatControlEscape(t)||this.regexp_eatCControlLetter(t)||this.regexp_eatZero(t)||this.regexp_eatHexEscapeSequence(t)||this.regexp_eatRegExpUnicodeEscapeSequence(t,!1)||!t.switchU&&this.regexp_eatLegacyOctalEscapeSequence(t)||this.regexp_eatIdentityEscape(t)};W.regexp_eatCControlLetter=function(t){var e=t.pos;if(t.eat(99)){if(this.regexp_eatControlLetter(t))return!0;t.pos=e}return!1};W.regexp_eatZero=function(t){return t.current()===48&&!Vr(t.lookahead())?(t.lastIntValue=0,t.advance(),!0):!1};W.regexp_eatControlEscape=function(t){var e=t.current();return e===116?(t.lastIntValue=9,t.advance(),!0):e===110?(t.lastIntValue=10,t.advance(),!0):e===118?(t.lastIntValue=11,t.advance(),!0):e===102?(t.lastIntValue=12,t.advance(),!0):e===114?(t.lastIntValue=13,t.advance(),!0):!1};W.regexp_eatControlLetter=function(t){var e=t.current();return Vo(e)?(t.lastIntValue=e%32,t.advance(),!0):!1};function Vo(t){return t>=65&&t<=90||t>=97&&t<=122}W.regexp_eatRegExpUnicodeEscapeSequence=function(t,e){e===void 0&&(e=!1);var r=t.pos,n=e||t.switchU;if(t.eat(117)){if(this.regexp_eatFixedHexDigits(t,4)){var i=t.lastIntValue;if(n&&i>=55296&&i<=56319){var s=t.pos;if(t.eat(92)&&t.eat(117)&&this.regexp_eatFixedHexDigits(t,4)){var a=t.lastIntValue;if(a>=56320&&a<=57343)return t.lastIntValue=(i-55296)*1024+(a-56320)+65536,!0}t.pos=s,t.lastIntValue=i}return!0}if(n&&t.eat(123)&&this.regexp_eatHexDigits(t)&&t.eat(125)&&Fv(t.lastIntValue))return!0;n&&t.raise("Invalid unicode escape"),t.pos=r}return!1};function Fv(t){return t>=0&&t<=1114111}W.regexp_eatIdentityEscape=function(t){if(t.switchU)return this.regexp_eatSyntaxCharacter(t)?!0:t.eat(47)?(t.lastIntValue=47,!0):!1;var e=t.current();return e!==99&&(!t.switchN||e!==107)?(t.lastIntValue=e,t.advance(),!0):!1};W.regexp_eatDecimalEscape=function(t){t.lastIntValue=0;var e=t.current();if(e>=49&&e<=57){do t.lastIntValue=10*t.lastIntValue+(e-48),t.advance();while((e=t.current())>=48&&e<=57);return!0}return!1};W.regexp_eatCharacterClassEscape=function(t){var e=t.current();if(Uv(e))return t.lastIntValue=-1,t.advance(),!0;if(t.switchU&&this.options.ecmaVersion>=9&&(e===80||e===112)){if(t.lastIntValue=-1,t.advance(),t.eat(123)&&this.regexp_eatUnicodePropertyValueExpression(t)&&t.eat(125))return!0;t.raise("Invalid property name")}return!1};function Uv(t){return t===100||t===68||t===115||t===83||t===119||t===87}W.regexp_eatUnicodePropertyValueExpression=function(t){var e=t.pos;if(this.regexp_eatUnicodePropertyName(t)&&t.eat(61)){var r=t.lastStringValue;if(this.regexp_eatUnicodePropertyValue(t)){var n=t.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(t,r,n),!0}}if(t.pos=e,this.regexp_eatLoneUnicodePropertyNameOrValue(t)){var i=t.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(t,i),!0}return!1};W.regexp_validateUnicodePropertyNameAndValue=function(t,e,r){Dr(t.unicodeProperties.nonBinary,e)||t.raise("Invalid property name"),t.unicodeProperties.nonBinary[e].test(r)||t.raise("Invalid property value")};W.regexp_validateUnicodePropertyNameOrValue=function(t,e){t.unicodeProperties.binary.test(e)||t.raise("Invalid property name")};W.regexp_eatUnicodePropertyName=function(t){var e=0;for(t.lastStringValue="";jo(e=t.current());)t.lastStringValue+=Er(e),t.advance();return t.lastStringValue!==""};function jo(t){return Vo(t)||t===95}W.regexp_eatUnicodePropertyValue=function(t){var e=0;for(t.lastStringValue="";Hv(e=t.current());)t.lastStringValue+=Er(e),t.advance();return t.lastStringValue!==""};function Hv(t){return jo(t)||Vr(t)}W.regexp_eatLoneUnicodePropertyNameOrValue=function(t){return this.regexp_eatUnicodePropertyValue(t)};W.regexp_eatCharacterClass=function(t){if(t.eat(91)){if(t.eat(94),this.regexp_classRanges(t),t.eat(93))return!0;t.raise("Unterminated character class")}return!1};W.regexp_classRanges=function(t){for(;this.regexp_eatClassAtom(t);){var e=t.lastIntValue;if(t.eat(45)&&this.regexp_eatClassAtom(t)){var r=t.lastIntValue;t.switchU&&(e===-1||r===-1)&&t.raise("Invalid character class"),e!==-1&&r!==-1&&e>r&&t.raise("Range out of order in character class")}}};W.regexp_eatClassAtom=function(t){var e=t.pos;if(t.eat(92)){if(this.regexp_eatClassEscape(t))return!0;if(t.switchU){var r=t.current();(r===99||Uo(r))&&t.raise("Invalid class escape"),t.raise("Invalid escape")}t.pos=e}var n=t.current();return n!==93?(t.lastIntValue=n,t.advance(),!0):!1};W.regexp_eatClassEscape=function(t){var e=t.pos;if(t.eat(98))return t.lastIntValue=8,!0;if(t.switchU&&t.eat(45))return t.lastIntValue=45,!0;if(!t.switchU&&t.eat(99)){if(this.regexp_eatClassControlLetter(t))return!0;t.pos=e}return this.regexp_eatCharacterClassEscape(t)||this.regexp_eatCharacterEscape(t)};W.regexp_eatClassControlLetter=function(t){var e=t.current();return Vr(e)||e===95?(t.lastIntValue=e%32,t.advance(),!0):!1};W.regexp_eatHexEscapeSequence=function(t){var e=t.pos;if(t.eat(120)){if(this.regexp_eatFixedHexDigits(t,2))return!0;t.switchU&&t.raise("Invalid escape"),t.pos=e}return!1};W.regexp_eatDecimalDigits=function(t){var e=t.pos,r=0;for(t.lastIntValue=0;Vr(r=t.current());)t.lastIntValue=10*t.lastIntValue+(r-48),t.advance();return t.pos!==e};function Vr(t){return t>=48&&t<=57}W.regexp_eatHexDigits=function(t){var e=t.pos,r=0;for(t.lastIntValue=0;Mo(r=t.current());)t.lastIntValue=16*t.lastIntValue+Fo(r),t.advance();return t.pos!==e};function Mo(t){return t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102}function Fo(t){return t>=65&&t<=70?10+(t-65):t>=97&&t<=102?10+(t-97):t-48}W.regexp_eatLegacyOctalEscapeSequence=function(t){if(this.regexp_eatOctalDigit(t)){var e=t.lastIntValue;if(this.regexp_eatOctalDigit(t)){var r=t.lastIntValue;e<=3&&this.regexp_eatOctalDigit(t)?t.lastIntValue=e*64+r*8+t.lastIntValue:t.lastIntValue=e*8+r}else t.lastIntValue=e;return!0}return!1};W.regexp_eatOctalDigit=function(t){var e=t.current();return Uo(e)?(t.lastIntValue=e-48,t.advance(),!0):(t.lastIntValue=0,!1)};function Uo(t){return t>=48&&t<=55}W.regexp_eatFixedHexDigits=function(t,e){var r=t.pos;t.lastIntValue=0;for(var n=0;n<e;++n){var i=t.current();if(!Mo(i))return t.pos=r,!1;t.lastIntValue=16*t.lastIntValue+Fo(i),t.advance()}return!0};var oi=function(t){this.type=t.type,this.value=t.value,this.start=t.start,this.end=t.end,t.options.locations&&(this.loc=new $r(t,t.startLoc,t.endLoc)),t.options.ranges&&(this.range=[t.start,t.end])},Z=oe.prototype;Z.next=function(t){!t&&this.type.keyword&&this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword "+this.type.keyword),this.options.onToken&&this.options.onToken(new oi(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()};Z.getToken=function(){return this.next(),new oi(this)};typeof Symbol<"u"&&(Z[Symbol.iterator]=function(){var t=this;return{next:function(){var e=t.getToken();return{done:e.type===g.eof,value:e}}}});Z.curContext=function(){return this.context[this.context.length-1]};Z.nextToken=function(){var t=this.curContext();if((!t||!t.preserveSpace)&&this.skipSpace(),this.start=this.pos,this.options.locations&&(this.startLoc=this.curPosition()),this.pos>=this.input.length)return this.finishToken(g.eof);if(t.override)return t.override(this);this.readToken(this.fullCharCodeAtPos())};Z.readToken=function(t){return ot(t,this.options.ecmaVersion>=6)||t===92?this.readWord():this.getTokenFromCode(t)};Z.fullCharCodeAtPos=function(){var t=this.input.charCodeAt(this.pos);if(t<=55295||t>=57344)return t;var e=this.input.charCodeAt(this.pos+1);return(t<<10)+e-56613888};Z.skipBlockComment=function(){var t=this.options.onComment&&this.curPosition(),e=this.pos,r=this.input.indexOf("*/",this.pos+=2);if(r===-1&&this.raise(this.pos-2,"Unterminated comment"),this.pos=r+2,this.options.locations){Yt.lastIndex=e;for(var n;(n=Yt.exec(this.input))&&n.index<this.pos;)++this.curLine,this.lineStart=n.index+n[0].length}this.options.onComment&&this.options.onComment(!0,this.input.slice(e+2,r),e,this.pos,t,this.curPosition())};Z.skipLineComment=function(t){for(var e=this.pos,r=this.options.onComment&&this.curPosition(),n=this.input.charCodeAt(this.pos+=t);this.pos<this.input.length&&!er(n);)n=this.input.charCodeAt(++this.pos);this.options.onComment&&this.options.onComment(!1,this.input.slice(e+t,this.pos),e,this.pos,r,this.curPosition())};Z.skipSpace=function(){e:for(;this.pos<this.input.length;){var t=this.input.charCodeAt(this.pos);switch(t){case 32:case 160:++this.pos;break;case 13:this.input.charCodeAt(this.pos+1)===10&&++this.pos;case 10:case 8232:case 8233:++this.pos,this.options.locations&&(++this.curLine,this.lineStart=this.pos);break;case 47:switch(this.input.charCodeAt(this.pos+1)){case 42:this.skipBlockComment();break;case 47:this.skipLineComment(2);break;default:break e}break;default:if(t>8&&t<14||t>=5760&&yo.test(String.fromCharCode(t)))++this.pos;else break e}}};Z.finishToken=function(t,e){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var r=this.type;this.type=t,this.value=e,this.updateContext(r)};Z.readToken_dot=function(){var t=this.input.charCodeAt(this.pos+1);if(t>=48&&t<=57)return this.readNumber(!0);var e=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&t===46&&e===46?(this.pos+=3,this.finishToken(g.ellipsis)):(++this.pos,this.finishToken(g.dot))};Z.readToken_slash=function(){var t=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):t===61?this.finishOp(g.assign,2):this.finishOp(g.slash,1)};Z.readToken_mult_modulo_exp=function(t){var e=this.input.charCodeAt(this.pos+1),r=1,n=t===42?g.star:g.modulo;return this.options.ecmaVersion>=7&&t===42&&e===42&&(++r,n=g.starstar,e=this.input.charCodeAt(this.pos+2)),e===61?this.finishOp(g.assign,r+1):this.finishOp(n,r)};Z.readToken_pipe_amp=function(t){var e=this.input.charCodeAt(this.pos+1);if(e===t){if(this.options.ecmaVersion>=12){var r=this.input.charCodeAt(this.pos+2);if(r===61)return this.finishOp(g.assign,3)}return this.finishOp(t===124?g.logicalOR:g.logicalAND,2)}return e===61?this.finishOp(g.assign,2):this.finishOp(t===124?g.bitwiseOR:g.bitwiseAND,1)};Z.readToken_caret=function(){var t=this.input.charCodeAt(this.pos+1);return t===61?this.finishOp(g.assign,2):this.finishOp(g.bitwiseXOR,1)};Z.readToken_plus_min=function(t){var e=this.input.charCodeAt(this.pos+1);return e===t?e===45&&!this.inModule&&this.input.charCodeAt(this.pos+2)===62&&(this.lastTokEnd===0||ke.test(this.input.slice(this.lastTokEnd,this.pos)))?(this.skipLineComment(3),this.skipSpace(),this.nextToken()):this.finishOp(g.incDec,2):e===61?this.finishOp(g.assign,2):this.finishOp(g.plusMin,1)};Z.readToken_lt_gt=function(t){var e=this.input.charCodeAt(this.pos+1),r=1;return e===t?(r=t===62&&this.input.charCodeAt(this.pos+2)===62?3:2,this.input.charCodeAt(this.pos+r)===61?this.finishOp(g.assign,r+1):this.finishOp(g.bitShift,r)):e===33&&t===60&&!this.inModule&&this.input.charCodeAt(this.pos+2)===45&&this.input.charCodeAt(this.pos+3)===45?(this.skipLineComment(4),this.skipSpace(),this.nextToken()):(e===61&&(r=2),this.finishOp(g.relational,r))};Z.readToken_eq_excl=function(t){var e=this.input.charCodeAt(this.pos+1);return e===61?this.finishOp(g.equality,this.input.charCodeAt(this.pos+2)===61?3:2):t===61&&e===62&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(g.arrow)):this.finishOp(t===61?g.eq:g.prefix,1)};Z.readToken_question=function(){var t=this.options.ecmaVersion;if(t>=11){var e=this.input.charCodeAt(this.pos+1);if(e===46){var r=this.input.charCodeAt(this.pos+2);if(r<48||r>57)return this.finishOp(g.questionDot,2)}if(e===63){if(t>=12){var n=this.input.charCodeAt(this.pos+2);if(n===61)return this.finishOp(g.assign,3)}return this.finishOp(g.coalesce,2)}}return this.finishOp(g.question,1)};Z.getTokenFromCode=function(t){switch(t){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(g.parenL);case 41:return++this.pos,this.finishToken(g.parenR);case 59:return++this.pos,this.finishToken(g.semi);case 44:return++this.pos,this.finishToken(g.comma);case 91:return++this.pos,this.finishToken(g.bracketL);case 93:return++this.pos,this.finishToken(g.bracketR);case 123:return++this.pos,this.finishToken(g.braceL);case 125:return++this.pos,this.finishToken(g.braceR);case 58:return++this.pos,this.finishToken(g.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(g.backQuote);case 48:var e=this.input.charCodeAt(this.pos+1);if(e===120||e===88)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(e===111||e===79)return this.readRadixNumber(8);if(e===98||e===66)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(t);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(t);case 124:case 38:return this.readToken_pipe_amp(t);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(t);case 60:case 62:return this.readToken_lt_gt(t);case 61:case 33:return this.readToken_eq_excl(t);case 63:return this.readToken_question();case 126:return this.finishOp(g.prefix,1)}this.raise(this.pos,"Unexpected character '"+ci(t)+"'")};Z.finishOp=function(t,e){var r=this.input.slice(this.pos,this.pos+e);return this.pos+=e,this.finishToken(t,r)};Z.readRegexp=function(){for(var t,e,r=this.pos;;){this.pos>=this.input.length&&this.raise(r,"Unterminated regular expression");var n=this.input.charAt(this.pos);if(ke.test(n)&&this.raise(r,"Unterminated regular expression"),t)t=!1;else{if(n==="[")e=!0;else if(n==="]"&&e)e=!1;else if(n==="/"&&!e)break;t=n==="\\"}++this.pos}var i=this.input.slice(r,this.pos);++this.pos;var s=this.pos,a=this.readWord1();this.containsEsc&&this.unexpected(s);var o=this.regexpState||(this.regexpState=new Xe(this));o.reset(r,i,a),this.validateRegExpFlags(o),this.validateRegExpPattern(o);var u=null;try{u=new RegExp(i,a)}catch(c){}return this.finishToken(g.regexp,{pattern:i,flags:a,value:u})};Z.readInt=function(t,e,r){for(var n=this.options.ecmaVersion>=12&&e===void 0,i=r&&this.input.charCodeAt(this.pos)===48,s=this.pos,a=0,o=0,u=0,c=e!=null?e:1/0;u<c;++u,++this.pos){var l=this.input.charCodeAt(this.pos),h=void 0;if(n&&l===95){i&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed in legacy octal numeric literals"),o===95&&this.raiseRecoverable(this.pos,"Numeric separator must be exactly one underscore"),u===0&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed at the first of digits"),o=l;continue}if(l>=97?h=l-97+10:l>=65?h=l-65+10:l>=48&&l<=57?h=l-48:h=1/0,h>=t)break;o=l,a=a*t+h}return n&&o===95&&this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits"),this.pos===s||e!=null&&this.pos-s!==e?null:a};function qv(t,e){return e?parseInt(t,8):parseFloat(t.replace(/_/g,""))}function Ho(t){return typeof BigInt!="function"?null:BigInt(t.replace(/_/g,""))}Z.readRadixNumber=function(t){var e=this.pos;this.pos+=2;var r=this.readInt(t);return r==null&&this.raise(this.start+2,"Expected number in radix "+t),this.options.ecmaVersion>=11&&this.input.charCodeAt(this.pos)===110?(r=Ho(this.input.slice(e,this.pos)),++this.pos):ot(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(g.num,r)};Z.readNumber=function(t){var e=this.pos;!t&&this.readInt(10,void 0,!0)===null&&this.raise(e,"Invalid number");var r=this.pos-e>=2&&this.input.charCodeAt(e)===48;r&&this.strict&&this.raise(e,"Invalid number");var n=this.input.charCodeAt(this.pos);if(!r&&!t&&this.options.ecmaVersion>=11&&n===110){var i=Ho(this.input.slice(e,this.pos));return++this.pos,ot(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(g.num,i)}r&&/[89]/.test(this.input.slice(e,this.pos))&&(r=!1),n===46&&!r&&(++this.pos,this.readInt(10),n=this.input.charCodeAt(this.pos)),(n===69||n===101)&&!r&&(n=this.input.charCodeAt(++this.pos),(n===43||n===45)&&++this.pos,this.readInt(10)===null&&this.raise(e,"Invalid number")),ot(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var s=qv(this.input.slice(e,this.pos),r);return this.finishToken(g.num,s)};Z.readCodePoint=function(){var t=this.input.charCodeAt(this.pos),e;if(t===123){this.options.ecmaVersion<6&&this.unexpected();var r=++this.pos;e=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,e>1114111&&this.invalidStringToken(r,"Code point out of bounds")}else e=this.readHexChar(4);return e};function ci(t){return t<=65535?String.fromCharCode(t):(t-=65536,String.fromCharCode((t>>10)+55296,(t&1023)+56320))}Z.readString=function(t){for(var e="",r=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var n=this.input.charCodeAt(this.pos);if(n===t)break;n===92?(e+=this.input.slice(r,this.pos),e+=this.readEscapedChar(!1),r=this.pos):(er(n,this.options.ecmaVersion>=10)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return e+=this.input.slice(r,this.pos++),this.finishToken(g.string,e)};var qo={};Z.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(t){if(t===qo)this.readInvalidTemplateToken();else throw t}this.inTemplateElement=!1};Z.invalidStringToken=function(t,e){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw qo;this.raise(t,e)};Z.readTmplToken=function(){for(var t="",e=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated template");var r=this.input.charCodeAt(this.pos);if(r===96||r===36&&this.input.charCodeAt(this.pos+1)===123)return this.pos===this.start&&(this.type===g.template||this.type===g.invalidTemplate)?r===36?(this.pos+=2,this.finishToken(g.dollarBraceL)):(++this.pos,this.finishToken(g.backQuote)):(t+=this.input.slice(e,this.pos),this.finishToken(g.template,t));if(r===92)t+=this.input.slice(e,this.pos),t+=this.readEscapedChar(!0),e=this.pos;else if(er(r)){switch(t+=this.input.slice(e,this.pos),++this.pos,r){case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:t+=`
63
+ */const an="0.19.23-alpha.0";var se=(t=>(t.Runtime="Runtime",t.Design="Design",t.Raw="Raw",t.VNode="VNode",t))(se||{});const Ds=["$el","$emit","$nextTick","$parent","$root","$attrs","$slots","$watch","$props","$options","$forceUpdate"],fv=["vIf","vElseIf","vElse","vShow","vModel","vFor","vBind","vHtml"],dv={String,Number,Boolean,Array,Object,Function,Date},yr="VtjPage",on="VtjHomepage",yo="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(","),gv="component,slot".split(",");function fr(t,e){return t.map(r=>Gt(r)||r.startsWith("/")?r:`${e}${r}`)}function kr(t){return/\.css$/.test(t)}function Or(t){return/\.js$/.test(t)}function mv(t){return/\.json$/.test(t)}function vv(t,e=!1){return e&&t.endsWith(".prod.js")?t.replace(".prod.js",".js"):t}function yv(t,e,r=!1){const n=t.filter(p=>!!p.enabled),i=[],s=[],a=[],o=[],u={},c={},l=[],h={};return n.forEach(({urls:p,assetsUrl:f,library:d,assetsLibrary:m,localeLibrary:v})=>{p==null||p.forEach(S=>{Or(S)&&i.push(vv(S,r)),kr(S)&&s.push(S)}),d&&(o.push(d),u[d]=fr(p||[],e),v&&(c[d]=v)),f&&a.push(f),m&&l.push(m),d&&m&&(h[m]=d)}),{scripts:fr(i,e),css:fr(s,e),materials:fr(a,e),libraryExports:o,materialExports:ym(l),materialMapLibrary:h,libraryMap:u,libraryLocaleMap:c}}function bv(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 _v(t=[]){const e=t.filter(n=>kr(n)),r=t.filter(n=>Or(n));return{css:e,js:r}}function xv(t,e){const r=c=>{const l=[];let h=0;for(;h<c.length;){if(/\s/.test(c[h])){h++;continue}if(c.substring(h,h+2)==="/*"){const S=c.indexOf("*/",h+2);if(S!==-1){h=S+2;continue}}if(c[h]==="@"){const S=h;for(;h<c.length&&c[h]!=="{"&&c[h]!==";";)h++;const b=c.substring(S,h).trim(),_=b.includes("@keyframes");if(c[h]===";")l.push({type:"simple-at-rule",content:c.substring(S,h+1)}),h++;else if(c[h]==="{"){const w=h+1;let x=1;for(h++;h<c.length&&x>0;)c[h]==="{"?x++:c[h]==="}"&&x--,h++;const y=c.substring(S,h),T=c.substring(w,h-1);l.push({type:_?"keyframes":"at-rule",rule:b,content:y,inner:T})}continue}const p=h;for(;h<c.length&&c[h]!=="{";)h++;if(h>=c.length)break;const f=c.substring(p,h).trim();if(!f){h++;continue}const d=h+1;let m=1;for(h++;h<c.length&&m>0;)c[h]==="{"?m++:c[h]==="}"&&m--,h++;const v=c.substring(d,h-1);l.push({type:"rule",selector:f,content:v.trim()})}return l},n=c=>{const l=c.trim();return/^(from|to|\d+(\.\d+)?%)$/.test(l)},i=c=>c.replace(/::v-deep\(/g,":deep(").replace(/::v-deep\s+/g,":deep(").replace(/\/deep\//g," ").replace(/>>>/g," ").replace(/(.*?):deep\(([^)]+)\)/g,(l,h,p)=>{const f=h.trim(),d=p.trim();return f?`${f}[${e}] ${d}`:`[${e}] ${d}`}),s=c=>{const l=c.trim();if(!l||l.includes(`[${e}]`)||/^(:root|:host|html|body)(\s|$|:|\.|\#|\[)/.test(l)||n(l))return l;const h=l.match(/^(.+?)((?:::?[\w-]+(?:\([^)]*\))?)*)\s*$/);if(h){const[,p,f=""]=h,d=p.trim();return d?`${d}[${e}]${f}`:l}return`${l}[${e}]`},a=c=>i(c).split(",").map(l=>s(l)).filter(l=>l.trim()).join(", "),o=c=>c.map(l=>{switch(l.type){case"simple-at-rule":return l.content;case"keyframes":return l.content;case"at-rule":try{const p=r(l.inner),f=o(p);return`${l.rule} { ${f} }`}catch(p){return l.content}case"rule":if(!l.selector||!l.content)return"";const h=a(l.selector);return h.trim()?`${h} { ${l.content} }`:"";default:return""}}).filter(l=>l.trim()).join(" "),u=c=>c.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 c=t.replace(/\/\*(?!\s*!)[\s\S]*?\*\//g,"").replace(/^\s+|\s+$/gm,"").replace(/\n\s*\n/g,`
64
+ `),l=r(c),h=o(l);return u(h)}catch(c){return console.error("CSS scoping failed:",c),console.error("Input CSS:",t),t.replace(/\/\*[\s\S]*?\*\//g,"").replace(/(@keyframes\s+[^{]+\s*{[^{}]*(?:{[^}]*}[^{}]*)*})/g,l=>l).replace(/([^{}@]+)(?=\s*{)/g,l=>{const h=l.trim();return!h||h.startsWith("@")||h.includes(`[${e}]`)||n(h)?l:`${h}[${e}]`})}}const wv=750;function Sv(t,e,r){let n;typeof t<"u"?n=t.innerWidth||t.document.documentElement.clientWidth:(console.warn("无法获取屏幕宽度,使用默认值375"),n=375);const i=wv;return e*n/i}function Ev(t,e){let r=!1,n=!1,i=!1,s="";for(let a=0;a<e.length;a++){const o=e[a];if(o==="'"&&!n&&!i?r=!r:o==='"'&&!r&&!i?n=!n:e.substr(a,4).toLowerCase()==="url("&&!r&&!n?i=!0:o===")"&&i&&(i=!1),!r&&!n&&!i){const u=e.substr(a).match(/^(-?\d+(?:\.\d+)?)\s*rpx/);if(u){const c=u[1],l=parseFloat(c),h=`${Sv(t,l).toFixed(6).replace(/\.?0+$/,"")}px`;s+=h,a+=u[0].length-1;continue}}s+=o}return s}function bo(t){return Ze(t)?t:JSON.stringify(t)}function Pr(t,e,r,n=!1){var f;const i=t.CSSStyleSheet,s=n?`data-v-${e}`:e,a=t.__uniConfig?Ev(t,r):r,o=!!t.__uniConfig,u=t.document,c=!!((f=i==null?void 0:i.prototype)!=null&&f.replaceSync)&&!o,l=c?Array.from(u.adoptedStyleSheets||[]).find(d=>d.id===e):u.getElementById(e),h=`${s}
65
+ ${a}`;if((l==null?void 0:l.__vtjSource)===h)return;const p=n?xv(a,s):a;if(c){const d=new i;d.id=e,d.__vtjSource=h,d.replaceSync(p);const m=u.adoptedStyleSheets||[],v=Array.from(m).filter(S=>S.id!==e);u.adoptedStyleSheets=[...v,d]}else{let d=l;d?d.innerHTML=p:(d=u.createElement("style"),d.id=e,d.innerHTML=p,u.head.appendChild(d)),d.__vtjSource=h}}function Tv(t,e){return M(this,null,function*(){const r=yield globalThis.fetch(e).then(n=>n.text()).catch(()=>"");r&&Pr(globalThis,t,r)})}function _o(t,e=globalThis){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 xo(n,i){return M(this,arguments,function*(t,e,r=globalThis){var u;const s=r.document,a=r.document.head;let o=r[e];if(o)return o.default||o;for(const c of t){const l=(u=s.getElementById)==null?void 0:u.call(s,c);if(l!=null&&l.__vtjLoading){yield l.__vtjLoading;continue}if(l)continue;const h=s.createElement("script");h.id=c,h.src=c,h.__vtjLoading=new Promise((p,f)=>{h.onload=()=>p(),h.onerror=d=>{var m;(m=h.remove)==null||m.call(h),f(d)}}),a.appendChild(h),yield h.__vtjLoading}return o=r[e],o?o.default||o:Promise.reject(null)})}function Cv(t){return ge(t)&&Object.getOwnPropertyNames(t.prototype||{}).length===0||ge(t==null?void 0:t.install)}function Av(t){return gv.includes(t)}function Iv(t){return yo.includes(t)}function Jt(t=globalThis){const e=globalThis==null?void 0:globalThis.Mock;if(e)return e;const r=t==null?void 0:t.Mock;if(r&&globalThis)return globalThis.Mock=r,r}function Rv(t){return/^\([\s\S]*\)/.test(t.trim())}function kv(t){return/\w+\([\s\S]*\)$/.test(t.trim())}function Ov(t){return t.includes("=")}var cn={3:"abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile",5:"class enum extends super const export import",6:"enum",strict:"implements interface let package private protected public static yield",strictBind:"eval arguments"},un="break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this",Pv={5:un,"5module":un+" export import",6:un+" const class extends export import super"},$v=/^in(stanceof)?$/,ii="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࢠ-ࢴࢶ-ࣇऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-鿼ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞿꟂ-ꟊꟵ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",wo="‌‍·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛࣓-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-ໍ໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜔ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠐-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿᫀᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷹᷻-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_",Dv=new RegExp("["+ii+"]"),Nv=new RegExp("["+ii+wo+"]");ii=wo=null;var So=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,157,310,10,21,11,7,153,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,349,41,7,1,79,28,11,0,9,21,107,20,28,22,13,52,76,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,85,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,159,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,230,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,35,56,264,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,190,0,80,921,103,110,18,195,2749,1070,4050,582,8634,568,8,30,114,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,43,8,8952,286,50,2,18,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,2357,44,11,6,17,0,370,43,1301,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42717,35,4148,12,221,3,5761,15,7472,3104,541,1507,4938],Bv=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,370,1,154,10,176,2,54,14,32,9,16,3,46,10,54,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,161,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,193,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,406,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,19306,9,135,4,60,6,26,9,1014,0,2,54,8,3,82,0,12,1,19628,1,5319,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,262,6,10,9,419,13,1495,6,110,6,6,9,4759,9,787719,239];function Dn(t,e){for(var r=65536,n=0;n<e.length;n+=2){if(r+=e[n],r>t)return!1;if(r+=e[n+1],r>=t)return!0}}function ot(t,e){return t<65?t===36:t<91?!0:t<97?t===95:t<123?!0:t<=65535?t>=170&&Dv.test(String.fromCharCode(t)):e===!1?!1:Dn(t,So)}function Rt(t,e){return t<48?t===36:t<58?!0:t<65?!1:t<91?!0:t<97?t===95:t<123?!0:t<=65535?t>=170&&Nv.test(String.fromCharCode(t)):e===!1?!1:Dn(t,So)||Dn(t,Bv)}var X=function(t,e){e===void 0&&(e={}),this.label=t,this.keyword=e.keyword,this.beforeExpr=!!e.beforeExpr,this.startsExpr=!!e.startsExpr,this.isLoop=!!e.isLoop,this.isAssign=!!e.isAssign,this.prefix=!!e.prefix,this.postfix=!!e.postfix,this.binop=e.binop||null,this.updateContext=null};function we(t,e){return new X(t,{beforeExpr:!0,binop:e})}var Se={beforeExpr:!0},xe={startsExpr:!0},si={};function Q(t,e){return e===void 0&&(e={}),e.keyword=t,si[t]=new X(t,e)}var g={num:new X("num",xe),regexp:new X("regexp",xe),string:new X("string",xe),name:new X("name",xe),eof:new X("eof"),bracketL:new X("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new X("]"),braceL:new X("{",{beforeExpr:!0,startsExpr:!0}),braceR:new X("}"),parenL:new X("(",{beforeExpr:!0,startsExpr:!0}),parenR:new X(")"),comma:new X(",",Se),semi:new X(";",Se),colon:new X(":",Se),dot:new X("."),question:new X("?",Se),questionDot:new X("?."),arrow:new X("=>",Se),template:new X("template"),invalidTemplate:new X("invalidTemplate"),ellipsis:new X("...",Se),backQuote:new X("`",xe),dollarBraceL:new X("${",{beforeExpr:!0,startsExpr:!0}),eq:new X("=",{beforeExpr:!0,isAssign:!0}),assign:new X("_=",{beforeExpr:!0,isAssign:!0}),incDec:new X("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new X("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:we("||",1),logicalAND:we("&&",2),bitwiseOR:we("|",3),bitwiseXOR:we("^",4),bitwiseAND:we("&",5),equality:we("==/!=/===/!==",6),relational:we("</>/<=/>=",7),bitShift:we("<</>>/>>>",8),plusMin:new X("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:we("%",10),star:we("*",10),slash:we("/",10),starstar:new X("**",{beforeExpr:!0}),coalesce:we("??",1),_break:Q("break"),_case:Q("case",Se),_catch:Q("catch"),_continue:Q("continue"),_debugger:Q("debugger"),_default:Q("default",Se),_do:Q("do",{isLoop:!0,beforeExpr:!0}),_else:Q("else",Se),_finally:Q("finally"),_for:Q("for",{isLoop:!0}),_function:Q("function",xe),_if:Q("if"),_return:Q("return",Se),_switch:Q("switch"),_throw:Q("throw",Se),_try:Q("try"),_var:Q("var"),_const:Q("const"),_while:Q("while",{isLoop:!0}),_with:Q("with"),_new:Q("new",{beforeExpr:!0,startsExpr:!0}),_this:Q("this",xe),_super:Q("super",xe),_class:Q("class",xe),_extends:Q("extends",Se),_export:Q("export"),_import:Q("import",xe),_null:Q("null",xe),_true:Q("true",xe),_false:Q("false",xe),_in:Q("in",{beforeExpr:!0,binop:7}),_instanceof:Q("instanceof",{beforeExpr:!0,binop:7}),_typeof:Q("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:Q("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:Q("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},ke=/\r\n?|\n|\u2028|\u2029/,Yt=new RegExp(ke.source,"g");function er(t,e){return t===10||t===13||!e&&(t===8232||t===8233)}var Eo=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,Te=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,To=Object.prototype,Lv=To.hasOwnProperty,jv=To.toString;function $r(t,e){return Lv.call(t,e)}var Ns=Array.isArray||(function(t){return jv.call(t)==="[object Array]"});function dt(t){return new RegExp("^(?:"+t.replace(/ /g,"|")+")$")}var Zt=function(t,e){this.line=t,this.column=e};Zt.prototype.offset=function(t){return new Zt(this.line,this.column+t)};var Dr=function(t,e,r){this.start=e,this.end=r,t.sourceFile!==null&&(this.source=t.sourceFile)};function Co(t,e){for(var r=1,n=0;;){Yt.lastIndex=n;var i=Yt.exec(t);if(i&&i.index<e)++r,n=i.index+i[0].length;else return new Zt(r,e-n)}}var Nn={ecmaVersion:10,sourceType:"script",onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:!1,allowHashBang:!1,locations:!1,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1};function Vv(t){var e={};for(var r in Nn)e[r]=t&&$r(t,r)?t[r]:Nn[r];if(e.ecmaVersion>=2015&&(e.ecmaVersion-=2009),e.allowReserved==null&&(e.allowReserved=e.ecmaVersion<5),Ns(e.onToken)){var n=e.onToken;e.onToken=function(i){return n.push(i)}}return Ns(e.onComment)&&(e.onComment=Mv(e,e.onComment)),e}function Mv(t,e){return function(r,n,i,s,a,o){var u={type:r?"Block":"Line",value:n,start:i,end:s};t.locations&&(u.loc=new Dr(this,a,o)),t.ranges&&(u.range=[i,s]),e.push(u)}}var Qt=1,tr=2,ai=Qt|tr,Ao=4,Io=8,Ro=16,ko=32,Oo=64,Po=128;function oi(t,e){return tr|(t?Ao:0)|(e?Io:0)}var Bs=0,ci=1,We=2,$o=3,Do=4,No=5,oe=function(t,e,r){this.options=t=Vv(t),this.sourceFile=t.sourceFile,this.keywords=dt(Pv[t.ecmaVersion>=6?6:t.sourceType==="module"?"5module":5]);var n="";if(t.allowReserved!==!0){for(var i=t.ecmaVersion;!(n=cn[i]);i--);t.sourceType==="module"&&(n+=" await")}this.reservedWords=dt(n);var s=(n?n+" ":"")+cn.strict;this.reservedWordsStrict=dt(s),this.reservedWordsStrictBind=dt(s+" "+cn.strictBind),this.input=String(e),this.containsEsc=!1,r?(this.pos=r,this.lineStart=this.input.lastIndexOf(`
66
+ `,r-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(ke).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=g.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule=t.sourceType==="module",this.strict=this.inModule||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports={},this.pos===0&&t.allowHashBang&&this.input.slice(0,2)==="#!"&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(Qt),this.regexpState=null},yt={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0}};oe.prototype.parse=function(){var t=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(t)};yt.inFunction.get=function(){return(this.currentVarScope().flags&tr)>0};yt.inGenerator.get=function(){return(this.currentVarScope().flags&Io)>0};yt.inAsync.get=function(){return(this.currentVarScope().flags&Ao)>0};yt.allowSuper.get=function(){return(this.currentThisScope().flags&Oo)>0};yt.allowDirectSuper.get=function(){return(this.currentThisScope().flags&Po)>0};yt.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())};oe.prototype.inNonArrowFunction=function(){return(this.currentThisScope().flags&tr)>0};oe.extend=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];for(var r=this,n=0;n<t.length;n++)r=t[n](r);return r};oe.parse=function(t,e){return new this(e,t).parse()};oe.parseExpressionAt=function(t,e,r){var n=new this(r,t,e);return n.nextToken(),n.parseExpression()};oe.tokenizer=function(t,e){return new this(e,t)};Object.defineProperties(oe.prototype,yt);var be=oe.prototype,Fv=/^(?:'((?:\\.|[^'\\])*?)'|"((?:\\.|[^"\\])*?)")/;be.strictDirective=function(t){for(;;){Te.lastIndex=t,t+=Te.exec(this.input)[0].length;var e=Fv.exec(this.input.slice(t));if(!e)return!1;if((e[1]||e[2])==="use strict"){Te.lastIndex=t+e[0].length;var r=Te.exec(this.input),n=r.index+r[0].length,i=this.input.charAt(n);return i===";"||i==="}"||ke.test(r[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(i)||i==="!"&&this.input.charAt(n+1)==="=")}t+=e[0].length,Te.lastIndex=t,t+=Te.exec(this.input)[0].length,this.input[t]===";"&&t++}};be.eat=function(t){return this.type===t?(this.next(),!0):!1};be.isContextual=function(t){return this.type===g.name&&this.value===t&&!this.containsEsc};be.eatContextual=function(t){return this.isContextual(t)?(this.next(),!0):!1};be.expectContextual=function(t){this.eatContextual(t)||this.unexpected()};be.canInsertSemicolon=function(){return this.type===g.eof||this.type===g.braceR||ke.test(this.input.slice(this.lastTokEnd,this.start))};be.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0};be.semicolon=function(){!this.eat(g.semi)&&!this.insertSemicolon()&&this.unexpected()};be.afterTrailingComma=function(t,e){if(this.type===t)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),e||this.next(),!0};be.expect=function(t){this.eat(t)||this.unexpected()};be.unexpected=function(t){this.raise(t!=null?t:this.start,"Unexpected token")};function Nr(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1}be.checkPatternErrors=function(t,e){if(t){t.trailingComma>-1&&this.raiseRecoverable(t.trailingComma,"Comma is not permitted after the rest element");var r=e?t.parenthesizedAssign:t.parenthesizedBind;r>-1&&this.raiseRecoverable(r,"Parenthesized pattern")}};be.checkExpressionErrors=function(t,e){if(!t)return!1;var r=t.shorthandAssign,n=t.doubleProto;if(!e)return r>=0||n>=0;r>=0&&this.raise(r,"Shorthand property assignments are valid only in destructuring patterns"),n>=0&&this.raiseRecoverable(n,"Redefinition of __proto__ property")};be.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos<this.awaitPos)&&this.raise(this.yieldPos,"Yield expression cannot be a default value"),this.awaitPos&&this.raise(this.awaitPos,"Await expression cannot be a default value")};be.isSimpleAssignTarget=function(t){return t.type==="ParenthesizedExpression"?this.isSimpleAssignTarget(t.expression):t.type==="Identifier"||t.type==="MemberExpression"};var K=oe.prototype;K.parseTopLevel=function(t){var e={};for(t.body||(t.body=[]);this.type!==g.eof;){var r=this.parseStatement(null,!0,e);t.body.push(r)}if(this.inModule)for(var n=0,i=Object.keys(this.undefinedExports);n<i.length;n+=1){var s=i[n];this.raiseRecoverable(this.undefinedExports[s].start,"Export '"+s+"' is not defined")}return this.adaptDirectivePrologue(t.body),this.next(),t.sourceType=this.options.sourceType,this.finishNode(t,"Program")};var ui={kind:"loop"},Uv={kind:"switch"};K.isLet=function(t){if(this.options.ecmaVersion<6||!this.isContextual("let"))return!1;Te.lastIndex=this.pos;var e=Te.exec(this.input),r=this.pos+e[0].length,n=this.input.charCodeAt(r);if(n===91)return!0;if(t)return!1;if(n===123)return!0;if(ot(n,!0)){for(var i=r+1;Rt(this.input.charCodeAt(i),!0);)++i;var s=this.input.slice(r,i);if(!$v.test(s))return!0}return!1};K.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;Te.lastIndex=this.pos;var t=Te.exec(this.input),e=this.pos+t[0].length;return!ke.test(this.input.slice(this.pos,e))&&this.input.slice(e,e+8)==="function"&&(e+8===this.input.length||!Rt(this.input.charAt(e+8)))};K.parseStatement=function(t,e,r){var n=this.type,i=this.startNode(),s;switch(this.isLet(t)&&(n=g._var,s="let"),n){case g._break:case g._continue:return this.parseBreakContinueStatement(i,n.keyword);case g._debugger:return this.parseDebuggerStatement(i);case g._do:return this.parseDoStatement(i);case g._for:return this.parseForStatement(i);case g._function:return t&&(this.strict||t!=="if"&&t!=="label")&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(i,!1,!t);case g._class:return t&&this.unexpected(),this.parseClass(i,!0);case g._if:return this.parseIfStatement(i);case g._return:return this.parseReturnStatement(i);case g._switch:return this.parseSwitchStatement(i);case g._throw:return this.parseThrowStatement(i);case g._try:return this.parseTryStatement(i);case g._const:case g._var:return s=s||this.value,t&&s!=="var"&&this.unexpected(),this.parseVarStatement(i,s);case g._while:return this.parseWhileStatement(i);case g._with:return this.parseWithStatement(i);case g.braceL:return this.parseBlock(!0,i);case g.semi:return this.parseEmptyStatement(i);case g._export:case g._import:if(this.options.ecmaVersion>10&&n===g._import){Te.lastIndex=this.pos;var a=Te.exec(this.input),o=this.pos+a[0].length,u=this.input.charCodeAt(o);if(u===40||u===46)return this.parseExpressionStatement(i,this.parseExpression())}return this.options.allowImportExportEverywhere||(e||this.raise(this.start,"'import' and 'export' may only appear at the top level"),this.inModule||this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")),n===g._import?this.parseImport(i):this.parseExport(i,r);default:if(this.isAsyncFunction())return t&&this.unexpected(),this.next(),this.parseFunctionStatement(i,!0,!t);var c=this.value,l=this.parseExpression();return n===g.name&&l.type==="Identifier"&&this.eat(g.colon)?this.parseLabeledStatement(i,c,l,t):this.parseExpressionStatement(i,l)}};K.parseBreakContinueStatement=function(t,e){var r=e==="break";this.next(),this.eat(g.semi)||this.insertSemicolon()?t.label=null:this.type!==g.name?this.unexpected():(t.label=this.parseIdent(),this.semicolon());for(var n=0;n<this.labels.length;++n){var i=this.labels[n];if((t.label==null||i.name===t.label.name)&&(i.kind!=null&&(r||i.kind==="loop")||t.label&&r))break}return n===this.labels.length&&this.raise(t.start,"Unsyntactic "+e),this.finishNode(t,r?"BreakStatement":"ContinueStatement")};K.parseDebuggerStatement=function(t){return this.next(),this.semicolon(),this.finishNode(t,"DebuggerStatement")};K.parseDoStatement=function(t){return this.next(),this.labels.push(ui),t.body=this.parseStatement("do"),this.labels.pop(),this.expect(g._while),t.test=this.parseParenExpression(),this.options.ecmaVersion>=6?this.eat(g.semi):this.semicolon(),this.finishNode(t,"DoWhileStatement")};K.parseForStatement=function(t){this.next();var e=this.options.ecmaVersion>=9&&(this.inAsync||!this.inFunction&&this.options.allowAwaitOutsideFunction)&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(ui),this.enterScope(0),this.expect(g.parenL),this.type===g.semi)return e>-1&&this.unexpected(e),this.parseFor(t,null);var r=this.isLet();if(this.type===g._var||this.type===g._const||r){var n=this.startNode(),i=r?"let":this.value;return this.next(),this.parseVar(n,!0,i),this.finishNode(n,"VariableDeclaration"),(this.type===g._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&n.declarations.length===1?(this.options.ecmaVersion>=9&&(this.type===g._in?e>-1&&this.unexpected(e):t.await=e>-1),this.parseForIn(t,n)):(e>-1&&this.unexpected(e),this.parseFor(t,n))}var s=new Nr,a=this.parseExpression(!0,s);return this.type===g._in||this.options.ecmaVersion>=6&&this.isContextual("of")?(this.options.ecmaVersion>=9&&(this.type===g._in?e>-1&&this.unexpected(e):t.await=e>-1),this.toAssignable(a,!1,s),this.checkLVal(a),this.parseForIn(t,a)):(this.checkExpressionErrors(s,!0),e>-1&&this.unexpected(e),this.parseFor(t,a))};K.parseFunctionStatement=function(t,e,r){return this.next(),this.parseFunction(t,Ut|(r?0:Bn),!1,e)};K.parseIfStatement=function(t){return this.next(),t.test=this.parseParenExpression(),t.consequent=this.parseStatement("if"),t.alternate=this.eat(g._else)?this.parseStatement("if"):null,this.finishNode(t,"IfStatement")};K.parseReturnStatement=function(t){return!this.inFunction&&!this.options.allowReturnOutsideFunction&&this.raise(this.start,"'return' outside of function"),this.next(),this.eat(g.semi)||this.insertSemicolon()?t.argument=null:(t.argument=this.parseExpression(),this.semicolon()),this.finishNode(t,"ReturnStatement")};K.parseSwitchStatement=function(t){this.next(),t.discriminant=this.parseParenExpression(),t.cases=[],this.expect(g.braceL),this.labels.push(Uv),this.enterScope(0);for(var e,r=!1;this.type!==g.braceR;)if(this.type===g._case||this.type===g._default){var n=this.type===g._case;e&&this.finishNode(e,"SwitchCase"),t.cases.push(e=this.startNode()),e.consequent=[],this.next(),n?e.test=this.parseExpression():(r&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),r=!0,e.test=null),this.expect(g.colon)}else e||this.unexpected(),e.consequent.push(this.parseStatement(null));return this.exitScope(),e&&this.finishNode(e,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(t,"SwitchStatement")};K.parseThrowStatement=function(t){return this.next(),ke.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,"Illegal newline after throw"),t.argument=this.parseExpression(),this.semicolon(),this.finishNode(t,"ThrowStatement")};var Hv=[];K.parseTryStatement=function(t){if(this.next(),t.block=this.parseBlock(),t.handler=null,this.type===g._catch){var e=this.startNode();if(this.next(),this.eat(g.parenL)){e.param=this.parseBindingAtom();var r=e.param.type==="Identifier";this.enterScope(r?ko:0),this.checkLVal(e.param,r?Do:We),this.expect(g.parenR)}else this.options.ecmaVersion<10&&this.unexpected(),e.param=null,this.enterScope(0);e.body=this.parseBlock(!1),this.exitScope(),t.handler=this.finishNode(e,"CatchClause")}return t.finalizer=this.eat(g._finally)?this.parseBlock():null,!t.handler&&!t.finalizer&&this.raise(t.start,"Missing catch or finally clause"),this.finishNode(t,"TryStatement")};K.parseVarStatement=function(t,e){return this.next(),this.parseVar(t,!1,e),this.semicolon(),this.finishNode(t,"VariableDeclaration")};K.parseWhileStatement=function(t){return this.next(),t.test=this.parseParenExpression(),this.labels.push(ui),t.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(t,"WhileStatement")};K.parseWithStatement=function(t){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),t.object=this.parseParenExpression(),t.body=this.parseStatement("with"),this.finishNode(t,"WithStatement")};K.parseEmptyStatement=function(t){return this.next(),this.finishNode(t,"EmptyStatement")};K.parseLabeledStatement=function(t,e,r,n){for(var i=0,s=this.labels;i<s.length;i+=1){var a=s[i];a.name===e&&this.raise(r.start,"Label '"+e+"' is already declared")}for(var o=this.type.isLoop?"loop":this.type===g._switch?"switch":null,u=this.labels.length-1;u>=0;u--){var c=this.labels[u];if(c.statementStart===t.start)c.statementStart=this.start,c.kind=o;else break}return this.labels.push({name:e,kind:o,statementStart:this.start}),t.body=this.parseStatement(n?n.indexOf("label")===-1?n+"label":n:"label"),this.labels.pop(),t.label=r,this.finishNode(t,"LabeledStatement")};K.parseExpressionStatement=function(t,e){return t.expression=e,this.semicolon(),this.finishNode(t,"ExpressionStatement")};K.parseBlock=function(t,e,r){for(t===void 0&&(t=!0),e===void 0&&(e=this.startNode()),e.body=[],this.expect(g.braceL),t&&this.enterScope(0);this.type!==g.braceR;){var n=this.parseStatement(null);e.body.push(n)}return r&&(this.strict=!1),this.next(),t&&this.exitScope(),this.finishNode(e,"BlockStatement")};K.parseFor=function(t,e){return t.init=e,this.expect(g.semi),t.test=this.type===g.semi?null:this.parseExpression(),this.expect(g.semi),t.update=this.type===g.parenR?null:this.parseExpression(),this.expect(g.parenR),t.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(t,"ForStatement")};K.parseForIn=function(t,e){var r=this.type===g._in;return this.next(),e.type==="VariableDeclaration"&&e.declarations[0].init!=null&&(!r||this.options.ecmaVersion<8||this.strict||e.kind!=="var"||e.declarations[0].id.type!=="Identifier")?this.raise(e.start,(r?"for-in":"for-of")+" loop variable declaration may not have an initializer"):e.type==="AssignmentPattern"&&this.raise(e.start,"Invalid left-hand side in for-loop"),t.left=e,t.right=r?this.parseExpression():this.parseMaybeAssign(),this.expect(g.parenR),t.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(t,r?"ForInStatement":"ForOfStatement")};K.parseVar=function(t,e,r){for(t.declarations=[],t.kind=r;;){var n=this.startNode();if(this.parseVarId(n,r),this.eat(g.eq)?n.init=this.parseMaybeAssign(e):r==="const"&&!(this.type===g._in||this.options.ecmaVersion>=6&&this.isContextual("of"))?this.unexpected():n.id.type!=="Identifier"&&!(e&&(this.type===g._in||this.isContextual("of")))?this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):n.init=null,t.declarations.push(this.finishNode(n,"VariableDeclarator")),!this.eat(g.comma))break}return t};K.parseVarId=function(t,e){t.id=this.parseBindingAtom(),this.checkLVal(t.id,e==="var"?ci:We,!1)};var Ut=1,Bn=2,Bo=4;K.parseFunction=function(t,e,r,n){this.initFunction(t),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!n)&&(this.type===g.star&&e&Bn&&this.unexpected(),t.generator=this.eat(g.star)),this.options.ecmaVersion>=8&&(t.async=!!n),e&Ut&&(t.id=e&Bo&&this.type!==g.name?null:this.parseIdent(),t.id&&!(e&Bn)&&this.checkLVal(t.id,this.strict||t.generator||t.async?this.treatFunctionsAsVar?ci:We:$o));var i=this.yieldPos,s=this.awaitPos,a=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(oi(t.async,t.generator)),e&Ut||(t.id=this.type===g.name?this.parseIdent():null),this.parseFunctionParams(t),this.parseFunctionBody(t,r,!1),this.yieldPos=i,this.awaitPos=s,this.awaitIdentPos=a,this.finishNode(t,e&Ut?"FunctionDeclaration":"FunctionExpression")};K.parseFunctionParams=function(t){this.expect(g.parenL),t.params=this.parseBindingList(g.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()};K.parseClass=function(t,e){this.next();var r=this.strict;this.strict=!0,this.parseClassId(t,e),this.parseClassSuper(t);var n=this.startNode(),i=!1;for(n.body=[],this.expect(g.braceL);this.type!==g.braceR;){var s=this.parseClassElement(t.superClass!==null);s&&(n.body.push(s),s.type==="MethodDefinition"&&s.kind==="constructor"&&(i&&this.raise(s.start,"Duplicate constructor in the same class"),i=!0))}return this.strict=r,this.next(),t.body=this.finishNode(n,"ClassBody"),this.finishNode(t,e?"ClassDeclaration":"ClassExpression")};K.parseClassElement=function(t){var e=this;if(this.eat(g.semi))return null;var r=this.startNode(),n=function(u,c){c===void 0&&(c=!1);var l=e.start,h=e.startLoc;return e.eatContextual(u)?e.type!==g.parenL&&(!c||!e.canInsertSemicolon())?!0:(r.key&&e.unexpected(),r.computed=!1,r.key=e.startNodeAt(l,h),r.key.name=u,e.finishNode(r.key,"Identifier"),!1):!1};r.kind="method",r.static=n("static");var i=this.eat(g.star),s=!1;i||(this.options.ecmaVersion>=8&&n("async",!0)?(s=!0,i=this.options.ecmaVersion>=9&&this.eat(g.star)):n("get")?r.kind="get":n("set")&&(r.kind="set")),r.key||this.parsePropertyName(r);var a=r.key,o=!1;return!r.computed&&!r.static&&(a.type==="Identifier"&&a.name==="constructor"||a.type==="Literal"&&a.value==="constructor")?(r.kind!=="method"&&this.raise(a.start,"Constructor can't have get/set modifier"),i&&this.raise(a.start,"Constructor can't be a generator"),s&&this.raise(a.start,"Constructor can't be an async method"),r.kind="constructor",o=t):r.static&&a.type==="Identifier"&&a.name==="prototype"&&this.raise(a.start,"Classes may not have a static property named prototype"),this.parseClassMethod(r,i,s,o),r.kind==="get"&&r.value.params.length!==0&&this.raiseRecoverable(r.value.start,"getter should have no params"),r.kind==="set"&&r.value.params.length!==1&&this.raiseRecoverable(r.value.start,"setter should have exactly one param"),r.kind==="set"&&r.value.params[0].type==="RestElement"&&this.raiseRecoverable(r.value.params[0].start,"Setter cannot use rest params"),r};K.parseClassMethod=function(t,e,r,n){return t.value=this.parseMethod(e,r,n),this.finishNode(t,"MethodDefinition")};K.parseClassId=function(t,e){this.type===g.name?(t.id=this.parseIdent(),e&&this.checkLVal(t.id,We,!1)):(e===!0&&this.unexpected(),t.id=null)};K.parseClassSuper=function(t){t.superClass=this.eat(g._extends)?this.parseExprSubscripts():null};K.parseExport=function(t,e){if(this.next(),this.eat(g.star))return this.options.ecmaVersion>=11&&(this.eatContextual("as")?(t.exported=this.parseIdent(!0),this.checkExport(e,t.exported.name,this.lastTokStart)):t.exported=null),this.expectContextual("from"),this.type!==g.string&&this.unexpected(),t.source=this.parseExprAtom(),this.semicolon(),this.finishNode(t,"ExportAllDeclaration");if(this.eat(g._default)){this.checkExport(e,"default",this.lastTokStart);var r;if(this.type===g._function||(r=this.isAsyncFunction())){var n=this.startNode();this.next(),r&&this.next(),t.declaration=this.parseFunction(n,Ut|Bo,!1,r)}else if(this.type===g._class){var i=this.startNode();t.declaration=this.parseClass(i,"nullableID")}else t.declaration=this.parseMaybeAssign(),this.semicolon();return this.finishNode(t,"ExportDefaultDeclaration")}if(this.shouldParseExportStatement())t.declaration=this.parseStatement(null),t.declaration.type==="VariableDeclaration"?this.checkVariableExport(e,t.declaration.declarations):this.checkExport(e,t.declaration.id.name,t.declaration.id.start),t.specifiers=[],t.source=null;else{if(t.declaration=null,t.specifiers=this.parseExportSpecifiers(e),this.eatContextual("from"))this.type!==g.string&&this.unexpected(),t.source=this.parseExprAtom();else{for(var s=0,a=t.specifiers;s<a.length;s+=1){var o=a[s];this.checkUnreserved(o.local),this.checkLocalExport(o.local)}t.source=null}this.semicolon()}return this.finishNode(t,"ExportNamedDeclaration")};K.checkExport=function(t,e,r){t&&($r(t,e)&&this.raiseRecoverable(r,"Duplicate export '"+e+"'"),t[e]=!0)};K.checkPatternExport=function(t,e){var r=e.type;if(r==="Identifier")this.checkExport(t,e.name,e.start);else if(r==="ObjectPattern")for(var n=0,i=e.properties;n<i.length;n+=1){var s=i[n];this.checkPatternExport(t,s)}else if(r==="ArrayPattern")for(var a=0,o=e.elements;a<o.length;a+=1){var u=o[a];u&&this.checkPatternExport(t,u)}else r==="Property"?this.checkPatternExport(t,e.value):r==="AssignmentPattern"?this.checkPatternExport(t,e.left):r==="RestElement"?this.checkPatternExport(t,e.argument):r==="ParenthesizedExpression"&&this.checkPatternExport(t,e.expression)};K.checkVariableExport=function(t,e){if(t)for(var r=0,n=e;r<n.length;r+=1){var i=n[r];this.checkPatternExport(t,i.id)}};K.shouldParseExportStatement=function(){return this.type.keyword==="var"||this.type.keyword==="const"||this.type.keyword==="class"||this.type.keyword==="function"||this.isLet()||this.isAsyncFunction()};K.parseExportSpecifiers=function(t){var e=[],r=!0;for(this.expect(g.braceL);!this.eat(g.braceR);){if(r)r=!1;else if(this.expect(g.comma),this.afterTrailingComma(g.braceR))break;var n=this.startNode();n.local=this.parseIdent(!0),n.exported=this.eatContextual("as")?this.parseIdent(!0):n.local,this.checkExport(t,n.exported.name,n.exported.start),e.push(this.finishNode(n,"ExportSpecifier"))}return e};K.parseImport=function(t){return this.next(),this.type===g.string?(t.specifiers=Hv,t.source=this.parseExprAtom()):(t.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),t.source=this.type===g.string?this.parseExprAtom():this.unexpected()),this.semicolon(),this.finishNode(t,"ImportDeclaration")};K.parseImportSpecifiers=function(){var t=[],e=!0;if(this.type===g.name){var r=this.startNode();if(r.local=this.parseIdent(),this.checkLVal(r.local,We),t.push(this.finishNode(r,"ImportDefaultSpecifier")),!this.eat(g.comma))return t}if(this.type===g.star){var n=this.startNode();return this.next(),this.expectContextual("as"),n.local=this.parseIdent(),this.checkLVal(n.local,We),t.push(this.finishNode(n,"ImportNamespaceSpecifier")),t}for(this.expect(g.braceL);!this.eat(g.braceR);){if(e)e=!1;else if(this.expect(g.comma),this.afterTrailingComma(g.braceR))break;var i=this.startNode();i.imported=this.parseIdent(!0),this.eatContextual("as")?i.local=this.parseIdent():(this.checkUnreserved(i.imported),i.local=i.imported),this.checkLVal(i.local,We),t.push(this.finishNode(i,"ImportSpecifier"))}return t};K.adaptDirectivePrologue=function(t){for(var e=0;e<t.length&&this.isDirectiveCandidate(t[e]);++e)t[e].directive=t[e].expression.raw.slice(1,-1)};K.isDirectiveCandidate=function(t){return t.type==="ExpressionStatement"&&t.expression.type==="Literal"&&typeof t.expression.value=="string"&&(this.input[t.start]==='"'||this.input[t.start]==="'")};var Qe=oe.prototype;Qe.toAssignable=function(t,e,r){if(this.options.ecmaVersion>=6&&t)switch(t.type){case"Identifier":this.inAsync&&t.name==="await"&&this.raise(t.start,"Cannot use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"RestElement":break;case"ObjectExpression":t.type="ObjectPattern",r&&this.checkPatternErrors(r,!0);for(var n=0,i=t.properties;n<i.length;n+=1){var s=i[n];this.toAssignable(s,e),s.type==="RestElement"&&(s.argument.type==="ArrayPattern"||s.argument.type==="ObjectPattern")&&this.raise(s.argument.start,"Unexpected token")}break;case"Property":t.kind!=="init"&&this.raise(t.key.start,"Object pattern can't contain getter or setter"),this.toAssignable(t.value,e);break;case"ArrayExpression":t.type="ArrayPattern",r&&this.checkPatternErrors(r,!0),this.toAssignableList(t.elements,e);break;case"SpreadElement":t.type="RestElement",this.toAssignable(t.argument,e),t.argument.type==="AssignmentPattern"&&this.raise(t.argument.start,"Rest elements cannot have a default value");break;case"AssignmentExpression":t.operator!=="="&&this.raise(t.left.end,"Only '=' operator can be used for specifying default value."),t.type="AssignmentPattern",delete t.operator,this.toAssignable(t.left,e);case"AssignmentPattern":break;case"ParenthesizedExpression":this.toAssignable(t.expression,e,r);break;case"ChainExpression":this.raiseRecoverable(t.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":if(!e)break;default:this.raise(t.start,"Assigning to rvalue")}else r&&this.checkPatternErrors(r,!0);return t};Qe.toAssignableList=function(t,e){for(var r=t.length,n=0;n<r;n++){var i=t[n];i&&this.toAssignable(i,e)}if(r){var s=t[r-1];this.options.ecmaVersion===6&&e&&s&&s.type==="RestElement"&&s.argument.type!=="Identifier"&&this.unexpected(s.argument.start)}return t};Qe.parseSpread=function(t){var e=this.startNode();return this.next(),e.argument=this.parseMaybeAssign(!1,t),this.finishNode(e,"SpreadElement")};Qe.parseRestBinding=function(){var t=this.startNode();return this.next(),this.options.ecmaVersion===6&&this.type!==g.name&&this.unexpected(),t.argument=this.parseBindingAtom(),this.finishNode(t,"RestElement")};Qe.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case g.bracketL:var t=this.startNode();return this.next(),t.elements=this.parseBindingList(g.bracketR,!0,!0),this.finishNode(t,"ArrayPattern");case g.braceL:return this.parseObj(!0)}return this.parseIdent()};Qe.parseBindingList=function(t,e,r){for(var n=[],i=!0;!this.eat(t);)if(i?i=!1:this.expect(g.comma),e&&this.type===g.comma)n.push(null);else{if(r&&this.afterTrailingComma(t))break;if(this.type===g.ellipsis){var s=this.parseRestBinding();this.parseBindingListItem(s),n.push(s),this.type===g.comma&&this.raise(this.start,"Comma is not permitted after the rest element"),this.expect(t);break}else{var a=this.parseMaybeDefault(this.start,this.startLoc);this.parseBindingListItem(a),n.push(a)}}return n};Qe.parseBindingListItem=function(t){return t};Qe.parseMaybeDefault=function(t,e,r){if(r=r||this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(g.eq))return r;var n=this.startNodeAt(t,e);return n.left=r,n.right=this.parseMaybeAssign(),this.finishNode(n,"AssignmentPattern")};Qe.checkLVal=function(t,e,r){switch(e===void 0&&(e=Bs),t.type){case"Identifier":e===We&&t.name==="let"&&this.raiseRecoverable(t.start,"let is disallowed as a lexically bound name"),this.strict&&this.reservedWordsStrictBind.test(t.name)&&this.raiseRecoverable(t.start,(e?"Binding ":"Assigning to ")+t.name+" in strict mode"),r&&($r(r,t.name)&&this.raiseRecoverable(t.start,"Argument name clash"),r[t.name]=!0),e!==Bs&&e!==No&&this.declareName(t.name,e,t.start);break;case"ChainExpression":this.raiseRecoverable(t.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":e&&this.raiseRecoverable(t.start,"Binding member expression");break;case"ObjectPattern":for(var n=0,i=t.properties;n<i.length;n+=1){var s=i[n];this.checkLVal(s,e,r)}break;case"Property":this.checkLVal(t.value,e,r);break;case"ArrayPattern":for(var a=0,o=t.elements;a<o.length;a+=1){var u=o[a];u&&this.checkLVal(u,e,r)}break;case"AssignmentPattern":this.checkLVal(t.left,e,r);break;case"RestElement":this.checkLVal(t.argument,e,r);break;case"ParenthesizedExpression":this.checkLVal(t.expression,e,r);break;default:this.raise(t.start,(e?"Binding":"Assigning to")+" rvalue")}};var J=oe.prototype;J.checkPropClash=function(t,e,r){if(!(this.options.ecmaVersion>=9&&t.type==="SpreadElement")&&!(this.options.ecmaVersion>=6&&(t.computed||t.method||t.shorthand))){var n=t.key,i;switch(n.type){case"Identifier":i=n.name;break;case"Literal":i=String(n.value);break;default:return}var s=t.kind;if(this.options.ecmaVersion>=6){i==="__proto__"&&s==="init"&&(e.proto&&(r?r.doubleProto<0&&(r.doubleProto=n.start):this.raiseRecoverable(n.start,"Redefinition of __proto__ property")),e.proto=!0);return}i="$"+i;var a=e[i];if(a){var o;s==="init"?o=this.strict&&a.init||a.get||a.set:o=a.init||a[s],o&&this.raiseRecoverable(n.start,"Redefinition of property")}else a=e[i]={init:!1,get:!1,set:!1};a[s]=!0}};J.parseExpression=function(t,e){var r=this.start,n=this.startLoc,i=this.parseMaybeAssign(t,e);if(this.type===g.comma){var s=this.startNodeAt(r,n);for(s.expressions=[i];this.eat(g.comma);)s.expressions.push(this.parseMaybeAssign(t,e));return this.finishNode(s,"SequenceExpression")}return i};J.parseMaybeAssign=function(t,e,r){if(this.isContextual("yield")){if(this.inGenerator)return this.parseYield(t);this.exprAllowed=!1}var n=!1,i=-1,s=-1;e?(i=e.parenthesizedAssign,s=e.trailingComma,e.parenthesizedAssign=e.trailingComma=-1):(e=new Nr,n=!0);var a=this.start,o=this.startLoc;(this.type===g.parenL||this.type===g.name)&&(this.potentialArrowAt=this.start);var u=this.parseMaybeConditional(t,e);if(r&&(u=r.call(this,u,a,o)),this.type.isAssign){var c=this.startNodeAt(a,o);return c.operator=this.value,c.left=this.type===g.eq?this.toAssignable(u,!1,e):u,n||(e.parenthesizedAssign=e.trailingComma=e.doubleProto=-1),e.shorthandAssign>=c.left.start&&(e.shorthandAssign=-1),this.checkLVal(u),this.next(),c.right=this.parseMaybeAssign(t),this.finishNode(c,"AssignmentExpression")}else n&&this.checkExpressionErrors(e,!0);return i>-1&&(e.parenthesizedAssign=i),s>-1&&(e.trailingComma=s),u};J.parseMaybeConditional=function(t,e){var r=this.start,n=this.startLoc,i=this.parseExprOps(t,e);if(this.checkExpressionErrors(e))return i;if(this.eat(g.question)){var s=this.startNodeAt(r,n);return s.test=i,s.consequent=this.parseMaybeAssign(),this.expect(g.colon),s.alternate=this.parseMaybeAssign(t),this.finishNode(s,"ConditionalExpression")}return i};J.parseExprOps=function(t,e){var r=this.start,n=this.startLoc,i=this.parseMaybeUnary(e,!1);return this.checkExpressionErrors(e)||i.start===r&&i.type==="ArrowFunctionExpression"?i:this.parseExprOp(i,r,n,-1,t)};J.parseExprOp=function(t,e,r,n,i){var s=this.type.binop;if(s!=null&&(!i||this.type!==g._in)&&s>n){var a=this.type===g.logicalOR||this.type===g.logicalAND,o=this.type===g.coalesce;o&&(s=g.logicalAND.binop);var u=this.value;this.next();var c=this.start,l=this.startLoc,h=this.parseExprOp(this.parseMaybeUnary(null,!1),c,l,s,i),p=this.buildBinary(e,r,t,h,u,a||o);return(a&&this.type===g.coalesce||o&&(this.type===g.logicalOR||this.type===g.logicalAND))&&this.raiseRecoverable(this.start,"Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses"),this.parseExprOp(p,e,r,n,i)}return t};J.buildBinary=function(t,e,r,n,i,s){var a=this.startNodeAt(t,e);return a.left=r,a.operator=i,a.right=n,this.finishNode(a,s?"LogicalExpression":"BinaryExpression")};J.parseMaybeUnary=function(t,e){var r=this.start,n=this.startLoc,i;if(this.isContextual("await")&&(this.inAsync||!this.inFunction&&this.options.allowAwaitOutsideFunction))i=this.parseAwait(),e=!0;else if(this.type.prefix){var s=this.startNode(),a=this.type===g.incDec;s.operator=this.value,s.prefix=!0,this.next(),s.argument=this.parseMaybeUnary(null,!0),this.checkExpressionErrors(t,!0),a?this.checkLVal(s.argument):this.strict&&s.operator==="delete"&&s.argument.type==="Identifier"?this.raiseRecoverable(s.start,"Deleting local variable in strict mode"):e=!0,i=this.finishNode(s,a?"UpdateExpression":"UnaryExpression")}else{if(i=this.parseExprSubscripts(t),this.checkExpressionErrors(t))return i;for(;this.type.postfix&&!this.canInsertSemicolon();){var o=this.startNodeAt(r,n);o.operator=this.value,o.prefix=!1,o.argument=i,this.checkLVal(i),this.next(),i=this.finishNode(o,"UpdateExpression")}}return!e&&this.eat(g.starstar)?this.buildBinary(r,n,i,this.parseMaybeUnary(null,!1),"**",!1):i};J.parseExprSubscripts=function(t){var e=this.start,r=this.startLoc,n=this.parseExprAtom(t);if(n.type==="ArrowFunctionExpression"&&this.input.slice(this.lastTokStart,this.lastTokEnd)!==")")return n;var i=this.parseSubscripts(n,e,r);return t&&i.type==="MemberExpression"&&(t.parenthesizedAssign>=i.start&&(t.parenthesizedAssign=-1),t.parenthesizedBind>=i.start&&(t.parenthesizedBind=-1)),i};J.parseSubscripts=function(t,e,r,n){for(var i=this.options.ecmaVersion>=8&&t.type==="Identifier"&&t.name==="async"&&this.lastTokEnd===t.end&&!this.canInsertSemicolon()&&t.end-t.start===5&&this.potentialArrowAt===t.start,s=!1;;){var a=this.parseSubscript(t,e,r,n,i,s);if(a.optional&&(s=!0),a===t||a.type==="ArrowFunctionExpression"){if(s){var o=this.startNodeAt(e,r);o.expression=a,a=this.finishNode(o,"ChainExpression")}return a}t=a}};J.parseSubscript=function(t,e,r,n,i,s){var a=this.options.ecmaVersion>=11,o=a&&this.eat(g.questionDot);n&&o&&this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");var u=this.eat(g.bracketL);if(u||o&&this.type!==g.parenL&&this.type!==g.backQuote||this.eat(g.dot)){var c=this.startNodeAt(e,r);c.object=t,c.property=u?this.parseExpression():this.parseIdent(this.options.allowReserved!=="never"),c.computed=!!u,u&&this.expect(g.bracketR),a&&(c.optional=o),t=this.finishNode(c,"MemberExpression")}else if(!n&&this.eat(g.parenL)){var l=new Nr,h=this.yieldPos,p=this.awaitPos,f=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var d=this.parseExprList(g.parenR,this.options.ecmaVersion>=8,!1,l);if(i&&!o&&!this.canInsertSemicolon()&&this.eat(g.arrow))return this.checkPatternErrors(l,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0&&this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function"),this.yieldPos=h,this.awaitPos=p,this.awaitIdentPos=f,this.parseArrowExpression(this.startNodeAt(e,r),d,!0);this.checkExpressionErrors(l,!0),this.yieldPos=h||this.yieldPos,this.awaitPos=p||this.awaitPos,this.awaitIdentPos=f||this.awaitIdentPos;var m=this.startNodeAt(e,r);m.callee=t,m.arguments=d,a&&(m.optional=o),t=this.finishNode(m,"CallExpression")}else if(this.type===g.backQuote){(o||s)&&this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");var v=this.startNodeAt(e,r);v.tag=t,v.quasi=this.parseTemplate({isTagged:!0}),t=this.finishNode(v,"TaggedTemplateExpression")}return t};J.parseExprAtom=function(t){this.type===g.slash&&this.readRegexp();var e,r=this.potentialArrowAt===this.start;switch(this.type){case g._super:return this.allowSuper||this.raise(this.start,"'super' keyword outside a method"),e=this.startNode(),this.next(),this.type===g.parenL&&!this.allowDirectSuper&&this.raise(e.start,"super() call outside constructor of a subclass"),this.type!==g.dot&&this.type!==g.bracketL&&this.type!==g.parenL&&this.unexpected(),this.finishNode(e,"Super");case g._this:return e=this.startNode(),this.next(),this.finishNode(e,"ThisExpression");case g.name:var n=this.start,i=this.startLoc,s=this.containsEsc,a=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!s&&a.name==="async"&&!this.canInsertSemicolon()&&this.eat(g._function))return this.parseFunction(this.startNodeAt(n,i),0,!1,!0);if(r&&!this.canInsertSemicolon()){if(this.eat(g.arrow))return this.parseArrowExpression(this.startNodeAt(n,i),[a],!1);if(this.options.ecmaVersion>=8&&a.name==="async"&&this.type===g.name&&!s)return a=this.parseIdent(!1),(this.canInsertSemicolon()||!this.eat(g.arrow))&&this.unexpected(),this.parseArrowExpression(this.startNodeAt(n,i),[a],!0)}return a;case g.regexp:var o=this.value;return e=this.parseLiteral(o.value),e.regex={pattern:o.pattern,flags:o.flags},e;case g.num:case g.string:return this.parseLiteral(this.value);case g._null:case g._true:case g._false:return e=this.startNode(),e.value=this.type===g._null?null:this.type===g._true,e.raw=this.type.keyword,this.next(),this.finishNode(e,"Literal");case g.parenL:var u=this.start,c=this.parseParenAndDistinguishExpression(r);return t&&(t.parenthesizedAssign<0&&!this.isSimpleAssignTarget(c)&&(t.parenthesizedAssign=u),t.parenthesizedBind<0&&(t.parenthesizedBind=u)),c;case g.bracketL:return e=this.startNode(),this.next(),e.elements=this.parseExprList(g.bracketR,!0,!0,t),this.finishNode(e,"ArrayExpression");case g.braceL:return this.parseObj(!1,t);case g._function:return e=this.startNode(),this.next(),this.parseFunction(e,0);case g._class:return this.parseClass(this.startNode(),!1);case g._new:return this.parseNew();case g.backQuote:return this.parseTemplate();case g._import:return this.options.ecmaVersion>=11?this.parseExprImport():this.unexpected();default:this.unexpected()}};J.parseExprImport=function(){var t=this.startNode();this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword import");var e=this.parseIdent(!0);switch(this.type){case g.parenL:return this.parseDynamicImport(t);case g.dot:return t.meta=e,this.parseImportMeta(t);default:this.unexpected()}};J.parseDynamicImport=function(t){if(this.next(),t.source=this.parseMaybeAssign(),!this.eat(g.parenR)){var e=this.start;this.eat(g.comma)&&this.eat(g.parenR)?this.raiseRecoverable(e,"Trailing comma is not allowed in import()"):this.unexpected(e)}return this.finishNode(t,"ImportExpression")};J.parseImportMeta=function(t){this.next();var e=this.containsEsc;return t.property=this.parseIdent(!0),t.property.name!=="meta"&&this.raiseRecoverable(t.property.start,"The only valid meta property for import is 'import.meta'"),e&&this.raiseRecoverable(t.start,"'import.meta' must not contain escaped characters"),this.options.sourceType!=="module"&&this.raiseRecoverable(t.start,"Cannot use 'import.meta' outside a module"),this.finishNode(t,"MetaProperty")};J.parseLiteral=function(t){var e=this.startNode();return e.value=t,e.raw=this.input.slice(this.start,this.end),e.raw.charCodeAt(e.raw.length-1)===110&&(e.bigint=e.raw.slice(0,-1).replace(/_/g,"")),this.next(),this.finishNode(e,"Literal")};J.parseParenExpression=function(){this.expect(g.parenL);var t=this.parseExpression();return this.expect(g.parenR),t};J.parseParenAndDistinguishExpression=function(t){var e=this.start,r=this.startLoc,n,i=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var s=this.start,a=this.startLoc,o=[],u=!0,c=!1,l=new Nr,h=this.yieldPos,p=this.awaitPos,f;for(this.yieldPos=0,this.awaitPos=0;this.type!==g.parenR;)if(u?u=!1:this.expect(g.comma),i&&this.afterTrailingComma(g.parenR,!0)){c=!0;break}else if(this.type===g.ellipsis){f=this.start,o.push(this.parseParenItem(this.parseRestBinding())),this.type===g.comma&&this.raise(this.start,"Comma is not permitted after the rest element");break}else o.push(this.parseMaybeAssign(!1,l,this.parseParenItem));var d=this.start,m=this.startLoc;if(this.expect(g.parenR),t&&!this.canInsertSemicolon()&&this.eat(g.arrow))return this.checkPatternErrors(l,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=h,this.awaitPos=p,this.parseParenArrowList(e,r,o);(!o.length||c)&&this.unexpected(this.lastTokStart),f&&this.unexpected(f),this.checkExpressionErrors(l,!0),this.yieldPos=h||this.yieldPos,this.awaitPos=p||this.awaitPos,o.length>1?(n=this.startNodeAt(s,a),n.expressions=o,this.finishNodeAt(n,"SequenceExpression",d,m)):n=o[0]}else n=this.parseParenExpression();if(this.options.preserveParens){var v=this.startNodeAt(e,r);return v.expression=n,this.finishNode(v,"ParenthesizedExpression")}else return n};J.parseParenItem=function(t){return t};J.parseParenArrowList=function(t,e,r){return this.parseArrowExpression(this.startNodeAt(t,e),r)};var qv=[];J.parseNew=function(){this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword new");var t=this.startNode(),e=this.parseIdent(!0);if(this.options.ecmaVersion>=6&&this.eat(g.dot)){t.meta=e;var r=this.containsEsc;return t.property=this.parseIdent(!0),t.property.name!=="target"&&this.raiseRecoverable(t.property.start,"The only valid meta property for new is 'new.target'"),r&&this.raiseRecoverable(t.start,"'new.target' must not contain escaped characters"),this.inNonArrowFunction()||this.raiseRecoverable(t.start,"'new.target' can only be used in functions"),this.finishNode(t,"MetaProperty")}var n=this.start,i=this.startLoc,s=this.type===g._import;return t.callee=this.parseSubscripts(this.parseExprAtom(),n,i,!0),s&&t.callee.type==="ImportExpression"&&this.raise(n,"Cannot use new with import()"),this.eat(g.parenL)?t.arguments=this.parseExprList(g.parenR,this.options.ecmaVersion>=8,!1):t.arguments=qv,this.finishNode(t,"NewExpression")};J.parseTemplateElement=function(t){var e=t.isTagged,r=this.startNode();return this.type===g.invalidTemplate?(e||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),r.value={raw:this.value,cooked:null}):r.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,`
67
+ `),cooked:this.value},this.next(),r.tail=this.type===g.backQuote,this.finishNode(r,"TemplateElement")};J.parseTemplate=function(t){t===void 0&&(t={});var e=t.isTagged;e===void 0&&(e=!1);var r=this.startNode();this.next(),r.expressions=[];var n=this.parseTemplateElement({isTagged:e});for(r.quasis=[n];!n.tail;)this.type===g.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(g.dollarBraceL),r.expressions.push(this.parseExpression()),this.expect(g.braceR),r.quasis.push(n=this.parseTemplateElement({isTagged:e}));return this.next(),this.finishNode(r,"TemplateLiteral")};J.isAsyncProp=function(t){return!t.computed&&t.key.type==="Identifier"&&t.key.name==="async"&&(this.type===g.name||this.type===g.num||this.type===g.string||this.type===g.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===g.star)&&!ke.test(this.input.slice(this.lastTokEnd,this.start))};J.parseObj=function(t,e){var r=this.startNode(),n=!0,i={};for(r.properties=[],this.next();!this.eat(g.braceR);){if(n)n=!1;else if(this.expect(g.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(g.braceR))break;var s=this.parseProperty(t,e);t||this.checkPropClash(s,i,e),r.properties.push(s)}return this.finishNode(r,t?"ObjectPattern":"ObjectExpression")};J.parseProperty=function(t,e){var r=this.startNode(),n,i,s,a;if(this.options.ecmaVersion>=9&&this.eat(g.ellipsis))return t?(r.argument=this.parseIdent(!1),this.type===g.comma&&this.raise(this.start,"Comma is not permitted after the rest element"),this.finishNode(r,"RestElement")):(this.type===g.parenL&&e&&(e.parenthesizedAssign<0&&(e.parenthesizedAssign=this.start),e.parenthesizedBind<0&&(e.parenthesizedBind=this.start)),r.argument=this.parseMaybeAssign(!1,e),this.type===g.comma&&e&&e.trailingComma<0&&(e.trailingComma=this.start),this.finishNode(r,"SpreadElement"));this.options.ecmaVersion>=6&&(r.method=!1,r.shorthand=!1,(t||e)&&(s=this.start,a=this.startLoc),t||(n=this.eat(g.star)));var o=this.containsEsc;return this.parsePropertyName(r),!t&&!o&&this.options.ecmaVersion>=8&&!n&&this.isAsyncProp(r)?(i=!0,n=this.options.ecmaVersion>=9&&this.eat(g.star),this.parsePropertyName(r,e)):i=!1,this.parsePropertyValue(r,t,n,i,s,a,e,o),this.finishNode(r,"Property")};J.parsePropertyValue=function(t,e,r,n,i,s,a,o){if((r||n)&&this.type===g.colon&&this.unexpected(),this.eat(g.colon))t.value=e?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,a),t.kind="init";else if(this.options.ecmaVersion>=6&&this.type===g.parenL)e&&this.unexpected(),t.kind="init",t.method=!0,t.value=this.parseMethod(r,n);else if(!e&&!o&&this.options.ecmaVersion>=5&&!t.computed&&t.key.type==="Identifier"&&(t.key.name==="get"||t.key.name==="set")&&this.type!==g.comma&&this.type!==g.braceR&&this.type!==g.eq){(r||n)&&this.unexpected(),t.kind=t.key.name,this.parsePropertyName(t),t.value=this.parseMethod(!1);var u=t.kind==="get"?0:1;if(t.value.params.length!==u){var c=t.value.start;t.kind==="get"?this.raiseRecoverable(c,"getter should have no params"):this.raiseRecoverable(c,"setter should have exactly one param")}else t.kind==="set"&&t.value.params[0].type==="RestElement"&&this.raiseRecoverable(t.value.params[0].start,"Setter cannot use rest params")}else this.options.ecmaVersion>=6&&!t.computed&&t.key.type==="Identifier"?((r||n)&&this.unexpected(),this.checkUnreserved(t.key),t.key.name==="await"&&!this.awaitIdentPos&&(this.awaitIdentPos=i),t.kind="init",e?t.value=this.parseMaybeDefault(i,s,t.key):this.type===g.eq&&a?(a.shorthandAssign<0&&(a.shorthandAssign=this.start),t.value=this.parseMaybeDefault(i,s,t.key)):t.value=t.key,t.shorthand=!0):this.unexpected()};J.parsePropertyName=function(t){if(this.options.ecmaVersion>=6){if(this.eat(g.bracketL))return t.computed=!0,t.key=this.parseMaybeAssign(),this.expect(g.bracketR),t.key;t.computed=!1}return t.key=this.type===g.num||this.type===g.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never")};J.initFunction=function(t){t.id=null,this.options.ecmaVersion>=6&&(t.generator=t.expression=!1),this.options.ecmaVersion>=8&&(t.async=!1)};J.parseMethod=function(t,e,r){var n=this.startNode(),i=this.yieldPos,s=this.awaitPos,a=this.awaitIdentPos;return this.initFunction(n),this.options.ecmaVersion>=6&&(n.generator=t),this.options.ecmaVersion>=8&&(n.async=!!e),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(oi(e,n.generator)|Oo|(r?Po:0)),this.expect(g.parenL),n.params=this.parseBindingList(g.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(n,!1,!0),this.yieldPos=i,this.awaitPos=s,this.awaitIdentPos=a,this.finishNode(n,"FunctionExpression")};J.parseArrowExpression=function(t,e,r){var n=this.yieldPos,i=this.awaitPos,s=this.awaitIdentPos;return this.enterScope(oi(r,!1)|Ro),this.initFunction(t),this.options.ecmaVersion>=8&&(t.async=!!r),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,t.params=this.toAssignableList(e,!0),this.parseFunctionBody(t,!0,!1),this.yieldPos=n,this.awaitPos=i,this.awaitIdentPos=s,this.finishNode(t,"ArrowFunctionExpression")};J.parseFunctionBody=function(t,e,r){var n=e&&this.type!==g.braceL,i=this.strict,s=!1;if(n)t.body=this.parseMaybeAssign(),t.expression=!0,this.checkParams(t,!1);else{var a=this.options.ecmaVersion>=7&&!this.isSimpleParamList(t.params);(!i||a)&&(s=this.strictDirective(this.end),s&&a&&this.raiseRecoverable(t.start,"Illegal 'use strict' directive in function with non-simple parameter list"));var o=this.labels;this.labels=[],s&&(this.strict=!0),this.checkParams(t,!i&&!s&&!e&&!r&&this.isSimpleParamList(t.params)),this.strict&&t.id&&this.checkLVal(t.id,No),t.body=this.parseBlock(!1,void 0,s&&!i),t.expression=!1,this.adaptDirectivePrologue(t.body.body),this.labels=o}this.exitScope()};J.isSimpleParamList=function(t){for(var e=0,r=t;e<r.length;e+=1){var n=r[e];if(n.type!=="Identifier")return!1}return!0};J.checkParams=function(t,e){for(var r={},n=0,i=t.params;n<i.length;n+=1){var s=i[n];this.checkLVal(s,ci,e?null:r)}};J.parseExprList=function(t,e,r,n){for(var i=[],s=!0;!this.eat(t);){if(s)s=!1;else if(this.expect(g.comma),e&&this.afterTrailingComma(t))break;var a=void 0;r&&this.type===g.comma?a=null:this.type===g.ellipsis?(a=this.parseSpread(n),n&&this.type===g.comma&&n.trailingComma<0&&(n.trailingComma=this.start)):a=this.parseMaybeAssign(!1,n),i.push(a)}return i};J.checkUnreserved=function(t){var e=t.start,r=t.end,n=t.name;if(this.inGenerator&&n==="yield"&&this.raiseRecoverable(e,"Cannot use 'yield' as identifier inside a generator"),this.inAsync&&n==="await"&&this.raiseRecoverable(e,"Cannot use 'await' as identifier inside an async function"),this.keywords.test(n)&&this.raise(e,"Unexpected keyword '"+n+"'"),!(this.options.ecmaVersion<6&&this.input.slice(e,r).indexOf("\\")!==-1)){var i=this.strict?this.reservedWordsStrict:this.reservedWords;i.test(n)&&(!this.inAsync&&n==="await"&&this.raiseRecoverable(e,"Cannot use keyword 'await' outside an async function"),this.raiseRecoverable(e,"The keyword '"+n+"' is reserved"))}};J.parseIdent=function(t,e){var r=this.startNode();return this.type===g.name?r.name=this.value:this.type.keyword?(r.name=this.type.keyword,(r.name==="class"||r.name==="function")&&(this.lastTokEnd!==this.lastTokStart+1||this.input.charCodeAt(this.lastTokStart)!==46)&&this.context.pop()):this.unexpected(),this.next(!!t),this.finishNode(r,"Identifier"),t||(this.checkUnreserved(r),r.name==="await"&&!this.awaitIdentPos&&(this.awaitIdentPos=r.start)),r};J.parseYield=function(t){this.yieldPos||(this.yieldPos=this.start);var e=this.startNode();return this.next(),this.type===g.semi||this.canInsertSemicolon()||this.type!==g.star&&!this.type.startsExpr?(e.delegate=!1,e.argument=null):(e.delegate=this.eat(g.star),e.argument=this.parseMaybeAssign(t)),this.finishNode(e,"YieldExpression")};J.parseAwait=function(){this.awaitPos||(this.awaitPos=this.start);var t=this.startNode();return this.next(),t.argument=this.parseMaybeUnary(null,!1),this.finishNode(t,"AwaitExpression")};var Sr=oe.prototype;Sr.raise=function(t,e){var r=Co(this.input,t);e+=" ("+r.line+":"+r.column+")";var n=new SyntaxError(e);throw n.pos=t,n.loc=r,n.raisedAt=this.pos,n};Sr.raiseRecoverable=Sr.raise;Sr.curPosition=function(){if(this.options.locations)return new Zt(this.curLine,this.pos-this.lineStart)};var ut=oe.prototype,zv=function(t){this.flags=t,this.var=[],this.lexical=[],this.functions=[]};ut.enterScope=function(t){this.scopeStack.push(new zv(t))};ut.exitScope=function(){this.scopeStack.pop()};ut.treatFunctionsAsVarInScope=function(t){return t.flags&tr||!this.inModule&&t.flags&Qt};ut.declareName=function(t,e,r){var n=!1;if(e===We){var i=this.currentScope();n=i.lexical.indexOf(t)>-1||i.functions.indexOf(t)>-1||i.var.indexOf(t)>-1,i.lexical.push(t),this.inModule&&i.flags&Qt&&delete this.undefinedExports[t]}else if(e===Do){var s=this.currentScope();s.lexical.push(t)}else if(e===$o){var a=this.currentScope();this.treatFunctionsAsVar?n=a.lexical.indexOf(t)>-1:n=a.lexical.indexOf(t)>-1||a.var.indexOf(t)>-1,a.functions.push(t)}else for(var o=this.scopeStack.length-1;o>=0;--o){var u=this.scopeStack[o];if(u.lexical.indexOf(t)>-1&&!(u.flags&ko&&u.lexical[0]===t)||!this.treatFunctionsAsVarInScope(u)&&u.functions.indexOf(t)>-1){n=!0;break}if(u.var.push(t),this.inModule&&u.flags&Qt&&delete this.undefinedExports[t],u.flags&ai)break}n&&this.raiseRecoverable(r,"Identifier '"+t+"' has already been declared")};ut.checkLocalExport=function(t){this.scopeStack[0].lexical.indexOf(t.name)===-1&&this.scopeStack[0].var.indexOf(t.name)===-1&&(this.undefinedExports[t.name]=t)};ut.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]};ut.currentVarScope=function(){for(var t=this.scopeStack.length-1;;t--){var e=this.scopeStack[t];if(e.flags&ai)return e}};ut.currentThisScope=function(){for(var t=this.scopeStack.length-1;;t--){var e=this.scopeStack[t];if(e.flags&ai&&!(e.flags&Ro))return e}};var li=function(t,e,r){this.type="",this.start=e,this.end=0,t.options.locations&&(this.loc=new Dr(t,r)),t.options.directSourceFile&&(this.sourceFile=t.options.directSourceFile),t.options.ranges&&(this.range=[e,0])},Br=oe.prototype;Br.startNode=function(){return new li(this,this.start,this.startLoc)};Br.startNodeAt=function(t,e){return new li(this,t,e)};function Lo(t,e,r,n){return t.type=e,t.end=r,this.options.locations&&(t.loc.end=n),this.options.ranges&&(t.range[1]=r),t}Br.finishNode=function(t,e){return Lo.call(this,t,e,this.lastTokEnd,this.lastTokEndLoc)};Br.finishNodeAt=function(t,e,r,n){return Lo.call(this,t,e,r,n)};var $e=function(t,e,r,n,i){this.token=t,this.isExpr=!!e,this.preserveSpace=!!r,this.override=n,this.generator=!!i},ae={b_stat:new $e("{",!1),b_expr:new $e("{",!0),b_tmpl:new $e("${",!1),p_stat:new $e("(",!1),p_expr:new $e("(",!0),q_tmpl:new $e("`",!0,!0,function(t){return t.tryReadTemplateToken()}),f_stat:new $e("function",!1),f_expr:new $e("function",!0),f_expr_gen:new $e("function",!0,!1,null,!0),f_gen:new $e("function",!1,!1,null,!0)},Lr=oe.prototype;Lr.initialContext=function(){return[ae.b_stat]};Lr.braceIsBlock=function(t){var e=this.curContext();return e===ae.f_expr||e===ae.f_stat?!0:t===g.colon&&(e===ae.b_stat||e===ae.b_expr)?!e.isExpr:t===g._return||t===g.name&&this.exprAllowed?ke.test(this.input.slice(this.lastTokEnd,this.start)):t===g._else||t===g.semi||t===g.eof||t===g.parenR||t===g.arrow?!0:t===g.braceL?e===ae.b_stat:t===g._var||t===g._const||t===g.name?!1:!this.exprAllowed};Lr.inGeneratorContext=function(){for(var t=this.context.length-1;t>=1;t--){var e=this.context[t];if(e.token==="function")return e.generator}return!1};Lr.updateContext=function(t){var e,r=this.type;r.keyword&&t===g.dot?this.exprAllowed=!1:(e=r.updateContext)?e.call(this,t):this.exprAllowed=r.beforeExpr};g.parenR.updateContext=g.braceR.updateContext=function(){if(this.context.length===1){this.exprAllowed=!0;return}var t=this.context.pop();t===ae.b_stat&&this.curContext().token==="function"&&(t=this.context.pop()),this.exprAllowed=!t.isExpr};g.braceL.updateContext=function(t){this.context.push(this.braceIsBlock(t)?ae.b_stat:ae.b_expr),this.exprAllowed=!0};g.dollarBraceL.updateContext=function(){this.context.push(ae.b_tmpl),this.exprAllowed=!0};g.parenL.updateContext=function(t){var e=t===g._if||t===g._for||t===g._with||t===g._while;this.context.push(e?ae.p_stat:ae.p_expr),this.exprAllowed=!0};g.incDec.updateContext=function(){};g._function.updateContext=g._class.updateContext=function(t){t.beforeExpr&&t!==g.semi&&t!==g._else&&!(t===g._return&&ke.test(this.input.slice(this.lastTokEnd,this.start)))&&!((t===g.colon||t===g.braceL)&&this.curContext()===ae.b_stat)?this.context.push(ae.f_expr):this.context.push(ae.f_stat),this.exprAllowed=!1};g.backQuote.updateContext=function(){this.curContext()===ae.q_tmpl?this.context.pop():this.context.push(ae.q_tmpl),this.exprAllowed=!1};g.star.updateContext=function(t){if(t===g._function){var e=this.context.length-1;this.context[e]===ae.f_expr?this.context[e]=ae.f_expr_gen:this.context[e]=ae.f_gen}this.exprAllowed=!0};g.name.updateContext=function(t){var e=!1;this.options.ecmaVersion>=6&&t!==g.dot&&(this.value==="of"&&!this.exprAllowed||this.value==="yield"&&this.inGeneratorContext())&&(e=!0),this.exprAllowed=e};var jo="ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS",Vo=jo+" Extended_Pictographic",Wv=Vo,Gv={9:jo,10:Vo,11:Wv},Ls="Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu",Mo="Adlam Adlm Ahom Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb",Fo=Mo+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",Kv=Fo+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",Jv={9:Mo,10:Fo,11:Kv},Uo={};function hi(t){var e=Uo[t]={binary:dt(Gv[t]+" "+Ls),nonBinary:{General_Category:dt(Ls),Script:dt(Jv[t])}};e.nonBinary.Script_Extensions=e.nonBinary.Script,e.nonBinary.gc=e.nonBinary.General_Category,e.nonBinary.sc=e.nonBinary.Script,e.nonBinary.scx=e.nonBinary.Script_Extensions}hi(9);hi(10);hi(11);var W=oe.prototype,Xe=function(t){this.parser=t,this.validFlags="gim"+(t.options.ecmaVersion>=6?"uy":"")+(t.options.ecmaVersion>=9?"s":""),this.unicodeProperties=Uo[t.options.ecmaVersion>=11?11:t.options.ecmaVersion],this.source="",this.flags="",this.start=0,this.switchU=!1,this.switchN=!1,this.pos=0,this.lastIntValue=0,this.lastStringValue="",this.lastAssertionIsQuantifiable=!1,this.numCapturingParens=0,this.maxBackReference=0,this.groupNames=[],this.backReferenceNames=[]};Xe.prototype.reset=function(t,e,r){var n=r.indexOf("u")!==-1;this.start=t|0,this.source=e+"",this.flags=r,this.switchU=n&&this.parser.options.ecmaVersion>=6,this.switchN=n&&this.parser.options.ecmaVersion>=9};Xe.prototype.raise=function(t){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+t)};Xe.prototype.at=function(t,e){e===void 0&&(e=!1);var r=this.source,n=r.length;if(t>=n)return-1;var i=r.charCodeAt(t);if(!(e||this.switchU)||i<=55295||i>=57344||t+1>=n)return i;var s=r.charCodeAt(t+1);return s>=56320&&s<=57343?(i<<10)+s-56613888:i};Xe.prototype.nextIndex=function(t,e){e===void 0&&(e=!1);var r=this.source,n=r.length;if(t>=n)return n;var i=r.charCodeAt(t),s;return!(e||this.switchU)||i<=55295||i>=57344||t+1>=n||(s=r.charCodeAt(t+1))<56320||s>57343?t+1:t+2};Xe.prototype.current=function(t){return t===void 0&&(t=!1),this.at(this.pos,t)};Xe.prototype.lookahead=function(t){return t===void 0&&(t=!1),this.at(this.nextIndex(this.pos,t),t)};Xe.prototype.advance=function(t){t===void 0&&(t=!1),this.pos=this.nextIndex(this.pos,t)};Xe.prototype.eat=function(t,e){return e===void 0&&(e=!1),this.current(e)===t?(this.advance(e),!0):!1};function Er(t){return t<=65535?String.fromCharCode(t):(t-=65536,String.fromCharCode((t>>10)+55296,(t&1023)+56320))}W.validateRegExpFlags=function(t){for(var e=t.validFlags,r=t.flags,n=0;n<r.length;n++){var i=r.charAt(n);e.indexOf(i)===-1&&this.raise(t.start,"Invalid regular expression flag"),r.indexOf(i,n+1)>-1&&this.raise(t.start,"Duplicate regular expression flag")}};W.validateRegExpPattern=function(t){this.regexp_pattern(t),!t.switchN&&this.options.ecmaVersion>=9&&t.groupNames.length>0&&(t.switchN=!0,this.regexp_pattern(t))};W.regexp_pattern=function(t){t.pos=0,t.lastIntValue=0,t.lastStringValue="",t.lastAssertionIsQuantifiable=!1,t.numCapturingParens=0,t.maxBackReference=0,t.groupNames.length=0,t.backReferenceNames.length=0,this.regexp_disjunction(t),t.pos!==t.source.length&&(t.eat(41)&&t.raise("Unmatched ')'"),(t.eat(93)||t.eat(125))&&t.raise("Lone quantifier brackets")),t.maxBackReference>t.numCapturingParens&&t.raise("Invalid escape");for(var e=0,r=t.backReferenceNames;e<r.length;e+=1){var n=r[e];t.groupNames.indexOf(n)===-1&&t.raise("Invalid named capture referenced")}};W.regexp_disjunction=function(t){for(this.regexp_alternative(t);t.eat(124);)this.regexp_alternative(t);this.regexp_eatQuantifier(t,!0)&&t.raise("Nothing to repeat"),t.eat(123)&&t.raise("Lone quantifier brackets")};W.regexp_alternative=function(t){for(;t.pos<t.source.length&&this.regexp_eatTerm(t););};W.regexp_eatTerm=function(t){return this.regexp_eatAssertion(t)?(t.lastAssertionIsQuantifiable&&this.regexp_eatQuantifier(t)&&t.switchU&&t.raise("Invalid quantifier"),!0):(t.switchU?this.regexp_eatAtom(t):this.regexp_eatExtendedAtom(t))?(this.regexp_eatQuantifier(t),!0):!1};W.regexp_eatAssertion=function(t){var e=t.pos;if(t.lastAssertionIsQuantifiable=!1,t.eat(94)||t.eat(36))return!0;if(t.eat(92)){if(t.eat(66)||t.eat(98))return!0;t.pos=e}if(t.eat(40)&&t.eat(63)){var r=!1;if(this.options.ecmaVersion>=9&&(r=t.eat(60)),t.eat(61)||t.eat(33))return this.regexp_disjunction(t),t.eat(41)||t.raise("Unterminated group"),t.lastAssertionIsQuantifiable=!r,!0}return t.pos=e,!1};W.regexp_eatQuantifier=function(t,e){return e===void 0&&(e=!1),this.regexp_eatQuantifierPrefix(t,e)?(t.eat(63),!0):!1};W.regexp_eatQuantifierPrefix=function(t,e){return t.eat(42)||t.eat(43)||t.eat(63)||this.regexp_eatBracedQuantifier(t,e)};W.regexp_eatBracedQuantifier=function(t,e){var r=t.pos;if(t.eat(123)){var n=0,i=-1;if(this.regexp_eatDecimalDigits(t)&&(n=t.lastIntValue,t.eat(44)&&this.regexp_eatDecimalDigits(t)&&(i=t.lastIntValue),t.eat(125)))return i!==-1&&i<n&&!e&&t.raise("numbers out of order in {} quantifier"),!0;t.switchU&&!e&&t.raise("Incomplete quantifier"),t.pos=r}return!1};W.regexp_eatAtom=function(t){return this.regexp_eatPatternCharacters(t)||t.eat(46)||this.regexp_eatReverseSolidusAtomEscape(t)||this.regexp_eatCharacterClass(t)||this.regexp_eatUncapturingGroup(t)||this.regexp_eatCapturingGroup(t)};W.regexp_eatReverseSolidusAtomEscape=function(t){var e=t.pos;if(t.eat(92)){if(this.regexp_eatAtomEscape(t))return!0;t.pos=e}return!1};W.regexp_eatUncapturingGroup=function(t){var e=t.pos;if(t.eat(40)){if(t.eat(63)&&t.eat(58)){if(this.regexp_disjunction(t),t.eat(41))return!0;t.raise("Unterminated group")}t.pos=e}return!1};W.regexp_eatCapturingGroup=function(t){if(t.eat(40)){if(this.options.ecmaVersion>=9?this.regexp_groupSpecifier(t):t.current()===63&&t.raise("Invalid group"),this.regexp_disjunction(t),t.eat(41))return t.numCapturingParens+=1,!0;t.raise("Unterminated group")}return!1};W.regexp_eatExtendedAtom=function(t){return t.eat(46)||this.regexp_eatReverseSolidusAtomEscape(t)||this.regexp_eatCharacterClass(t)||this.regexp_eatUncapturingGroup(t)||this.regexp_eatCapturingGroup(t)||this.regexp_eatInvalidBracedQuantifier(t)||this.regexp_eatExtendedPatternCharacter(t)};W.regexp_eatInvalidBracedQuantifier=function(t){return this.regexp_eatBracedQuantifier(t,!0)&&t.raise("Nothing to repeat"),!1};W.regexp_eatSyntaxCharacter=function(t){var e=t.current();return Ho(e)?(t.lastIntValue=e,t.advance(),!0):!1};function Ho(t){return t===36||t>=40&&t<=43||t===46||t===63||t>=91&&t<=94||t>=123&&t<=125}W.regexp_eatPatternCharacters=function(t){for(var e=t.pos,r=0;(r=t.current())!==-1&&!Ho(r);)t.advance();return t.pos!==e};W.regexp_eatExtendedPatternCharacter=function(t){var e=t.current();return e!==-1&&e!==36&&!(e>=40&&e<=43)&&e!==46&&e!==63&&e!==91&&e!==94&&e!==124?(t.advance(),!0):!1};W.regexp_groupSpecifier=function(t){if(t.eat(63)){if(this.regexp_eatGroupName(t)){t.groupNames.indexOf(t.lastStringValue)!==-1&&t.raise("Duplicate capture group name"),t.groupNames.push(t.lastStringValue);return}t.raise("Invalid group")}};W.regexp_eatGroupName=function(t){if(t.lastStringValue="",t.eat(60)){if(this.regexp_eatRegExpIdentifierName(t)&&t.eat(62))return!0;t.raise("Invalid capture group name")}return!1};W.regexp_eatRegExpIdentifierName=function(t){if(t.lastStringValue="",this.regexp_eatRegExpIdentifierStart(t)){for(t.lastStringValue+=Er(t.lastIntValue);this.regexp_eatRegExpIdentifierPart(t);)t.lastStringValue+=Er(t.lastIntValue);return!0}return!1};W.regexp_eatRegExpIdentifierStart=function(t){var e=t.pos,r=this.options.ecmaVersion>=11,n=t.current(r);return t.advance(r),n===92&&this.regexp_eatRegExpUnicodeEscapeSequence(t,r)&&(n=t.lastIntValue),Yv(n)?(t.lastIntValue=n,!0):(t.pos=e,!1)};function Yv(t){return ot(t,!0)||t===36||t===95}W.regexp_eatRegExpIdentifierPart=function(t){var e=t.pos,r=this.options.ecmaVersion>=11,n=t.current(r);return t.advance(r),n===92&&this.regexp_eatRegExpUnicodeEscapeSequence(t,r)&&(n=t.lastIntValue),Zv(n)?(t.lastIntValue=n,!0):(t.pos=e,!1)};function Zv(t){return Rt(t,!0)||t===36||t===95||t===8204||t===8205}W.regexp_eatAtomEscape=function(t){return this.regexp_eatBackReference(t)||this.regexp_eatCharacterClassEscape(t)||this.regexp_eatCharacterEscape(t)||t.switchN&&this.regexp_eatKGroupName(t)?!0:(t.switchU&&(t.current()===99&&t.raise("Invalid unicode escape"),t.raise("Invalid escape")),!1)};W.regexp_eatBackReference=function(t){var e=t.pos;if(this.regexp_eatDecimalEscape(t)){var r=t.lastIntValue;if(t.switchU)return r>t.maxBackReference&&(t.maxBackReference=r),!0;if(r<=t.numCapturingParens)return!0;t.pos=e}return!1};W.regexp_eatKGroupName=function(t){if(t.eat(107)){if(this.regexp_eatGroupName(t))return t.backReferenceNames.push(t.lastStringValue),!0;t.raise("Invalid named reference")}return!1};W.regexp_eatCharacterEscape=function(t){return this.regexp_eatControlEscape(t)||this.regexp_eatCControlLetter(t)||this.regexp_eatZero(t)||this.regexp_eatHexEscapeSequence(t)||this.regexp_eatRegExpUnicodeEscapeSequence(t,!1)||!t.switchU&&this.regexp_eatLegacyOctalEscapeSequence(t)||this.regexp_eatIdentityEscape(t)};W.regexp_eatCControlLetter=function(t){var e=t.pos;if(t.eat(99)){if(this.regexp_eatControlLetter(t))return!0;t.pos=e}return!1};W.regexp_eatZero=function(t){return t.current()===48&&!jr(t.lookahead())?(t.lastIntValue=0,t.advance(),!0):!1};W.regexp_eatControlEscape=function(t){var e=t.current();return e===116?(t.lastIntValue=9,t.advance(),!0):e===110?(t.lastIntValue=10,t.advance(),!0):e===118?(t.lastIntValue=11,t.advance(),!0):e===102?(t.lastIntValue=12,t.advance(),!0):e===114?(t.lastIntValue=13,t.advance(),!0):!1};W.regexp_eatControlLetter=function(t){var e=t.current();return qo(e)?(t.lastIntValue=e%32,t.advance(),!0):!1};function qo(t){return t>=65&&t<=90||t>=97&&t<=122}W.regexp_eatRegExpUnicodeEscapeSequence=function(t,e){e===void 0&&(e=!1);var r=t.pos,n=e||t.switchU;if(t.eat(117)){if(this.regexp_eatFixedHexDigits(t,4)){var i=t.lastIntValue;if(n&&i>=55296&&i<=56319){var s=t.pos;if(t.eat(92)&&t.eat(117)&&this.regexp_eatFixedHexDigits(t,4)){var a=t.lastIntValue;if(a>=56320&&a<=57343)return t.lastIntValue=(i-55296)*1024+(a-56320)+65536,!0}t.pos=s,t.lastIntValue=i}return!0}if(n&&t.eat(123)&&this.regexp_eatHexDigits(t)&&t.eat(125)&&Qv(t.lastIntValue))return!0;n&&t.raise("Invalid unicode escape"),t.pos=r}return!1};function Qv(t){return t>=0&&t<=1114111}W.regexp_eatIdentityEscape=function(t){if(t.switchU)return this.regexp_eatSyntaxCharacter(t)?!0:t.eat(47)?(t.lastIntValue=47,!0):!1;var e=t.current();return e!==99&&(!t.switchN||e!==107)?(t.lastIntValue=e,t.advance(),!0):!1};W.regexp_eatDecimalEscape=function(t){t.lastIntValue=0;var e=t.current();if(e>=49&&e<=57){do t.lastIntValue=10*t.lastIntValue+(e-48),t.advance();while((e=t.current())>=48&&e<=57);return!0}return!1};W.regexp_eatCharacterClassEscape=function(t){var e=t.current();if(Xv(e))return t.lastIntValue=-1,t.advance(),!0;if(t.switchU&&this.options.ecmaVersion>=9&&(e===80||e===112)){if(t.lastIntValue=-1,t.advance(),t.eat(123)&&this.regexp_eatUnicodePropertyValueExpression(t)&&t.eat(125))return!0;t.raise("Invalid property name")}return!1};function Xv(t){return t===100||t===68||t===115||t===83||t===119||t===87}W.regexp_eatUnicodePropertyValueExpression=function(t){var e=t.pos;if(this.regexp_eatUnicodePropertyName(t)&&t.eat(61)){var r=t.lastStringValue;if(this.regexp_eatUnicodePropertyValue(t)){var n=t.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(t,r,n),!0}}if(t.pos=e,this.regexp_eatLoneUnicodePropertyNameOrValue(t)){var i=t.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(t,i),!0}return!1};W.regexp_validateUnicodePropertyNameAndValue=function(t,e,r){$r(t.unicodeProperties.nonBinary,e)||t.raise("Invalid property name"),t.unicodeProperties.nonBinary[e].test(r)||t.raise("Invalid property value")};W.regexp_validateUnicodePropertyNameOrValue=function(t,e){t.unicodeProperties.binary.test(e)||t.raise("Invalid property name")};W.regexp_eatUnicodePropertyName=function(t){var e=0;for(t.lastStringValue="";zo(e=t.current());)t.lastStringValue+=Er(e),t.advance();return t.lastStringValue!==""};function zo(t){return qo(t)||t===95}W.regexp_eatUnicodePropertyValue=function(t){var e=0;for(t.lastStringValue="";ey(e=t.current());)t.lastStringValue+=Er(e),t.advance();return t.lastStringValue!==""};function ey(t){return zo(t)||jr(t)}W.regexp_eatLoneUnicodePropertyNameOrValue=function(t){return this.regexp_eatUnicodePropertyValue(t)};W.regexp_eatCharacterClass=function(t){if(t.eat(91)){if(t.eat(94),this.regexp_classRanges(t),t.eat(93))return!0;t.raise("Unterminated character class")}return!1};W.regexp_classRanges=function(t){for(;this.regexp_eatClassAtom(t);){var e=t.lastIntValue;if(t.eat(45)&&this.regexp_eatClassAtom(t)){var r=t.lastIntValue;t.switchU&&(e===-1||r===-1)&&t.raise("Invalid character class"),e!==-1&&r!==-1&&e>r&&t.raise("Range out of order in character class")}}};W.regexp_eatClassAtom=function(t){var e=t.pos;if(t.eat(92)){if(this.regexp_eatClassEscape(t))return!0;if(t.switchU){var r=t.current();(r===99||Ko(r))&&t.raise("Invalid class escape"),t.raise("Invalid escape")}t.pos=e}var n=t.current();return n!==93?(t.lastIntValue=n,t.advance(),!0):!1};W.regexp_eatClassEscape=function(t){var e=t.pos;if(t.eat(98))return t.lastIntValue=8,!0;if(t.switchU&&t.eat(45))return t.lastIntValue=45,!0;if(!t.switchU&&t.eat(99)){if(this.regexp_eatClassControlLetter(t))return!0;t.pos=e}return this.regexp_eatCharacterClassEscape(t)||this.regexp_eatCharacterEscape(t)};W.regexp_eatClassControlLetter=function(t){var e=t.current();return jr(e)||e===95?(t.lastIntValue=e%32,t.advance(),!0):!1};W.regexp_eatHexEscapeSequence=function(t){var e=t.pos;if(t.eat(120)){if(this.regexp_eatFixedHexDigits(t,2))return!0;t.switchU&&t.raise("Invalid escape"),t.pos=e}return!1};W.regexp_eatDecimalDigits=function(t){var e=t.pos,r=0;for(t.lastIntValue=0;jr(r=t.current());)t.lastIntValue=10*t.lastIntValue+(r-48),t.advance();return t.pos!==e};function jr(t){return t>=48&&t<=57}W.regexp_eatHexDigits=function(t){var e=t.pos,r=0;for(t.lastIntValue=0;Wo(r=t.current());)t.lastIntValue=16*t.lastIntValue+Go(r),t.advance();return t.pos!==e};function Wo(t){return t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102}function Go(t){return t>=65&&t<=70?10+(t-65):t>=97&&t<=102?10+(t-97):t-48}W.regexp_eatLegacyOctalEscapeSequence=function(t){if(this.regexp_eatOctalDigit(t)){var e=t.lastIntValue;if(this.regexp_eatOctalDigit(t)){var r=t.lastIntValue;e<=3&&this.regexp_eatOctalDigit(t)?t.lastIntValue=e*64+r*8+t.lastIntValue:t.lastIntValue=e*8+r}else t.lastIntValue=e;return!0}return!1};W.regexp_eatOctalDigit=function(t){var e=t.current();return Ko(e)?(t.lastIntValue=e-48,t.advance(),!0):(t.lastIntValue=0,!1)};function Ko(t){return t>=48&&t<=55}W.regexp_eatFixedHexDigits=function(t,e){var r=t.pos;t.lastIntValue=0;for(var n=0;n<e;++n){var i=t.current();if(!Wo(i))return t.pos=r,!1;t.lastIntValue=16*t.lastIntValue+Go(i),t.advance()}return!0};var pi=function(t){this.type=t.type,this.value=t.value,this.start=t.start,this.end=t.end,t.options.locations&&(this.loc=new Dr(t,t.startLoc,t.endLoc)),t.options.ranges&&(this.range=[t.start,t.end])},Z=oe.prototype;Z.next=function(t){!t&&this.type.keyword&&this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword "+this.type.keyword),this.options.onToken&&this.options.onToken(new pi(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()};Z.getToken=function(){return this.next(),new pi(this)};typeof Symbol<"u"&&(Z[Symbol.iterator]=function(){var t=this;return{next:function(){var e=t.getToken();return{done:e.type===g.eof,value:e}}}});Z.curContext=function(){return this.context[this.context.length-1]};Z.nextToken=function(){var t=this.curContext();if((!t||!t.preserveSpace)&&this.skipSpace(),this.start=this.pos,this.options.locations&&(this.startLoc=this.curPosition()),this.pos>=this.input.length)return this.finishToken(g.eof);if(t.override)return t.override(this);this.readToken(this.fullCharCodeAtPos())};Z.readToken=function(t){return ot(t,this.options.ecmaVersion>=6)||t===92?this.readWord():this.getTokenFromCode(t)};Z.fullCharCodeAtPos=function(){var t=this.input.charCodeAt(this.pos);if(t<=55295||t>=57344)return t;var e=this.input.charCodeAt(this.pos+1);return(t<<10)+e-56613888};Z.skipBlockComment=function(){var t=this.options.onComment&&this.curPosition(),e=this.pos,r=this.input.indexOf("*/",this.pos+=2);if(r===-1&&this.raise(this.pos-2,"Unterminated comment"),this.pos=r+2,this.options.locations){Yt.lastIndex=e;for(var n;(n=Yt.exec(this.input))&&n.index<this.pos;)++this.curLine,this.lineStart=n.index+n[0].length}this.options.onComment&&this.options.onComment(!0,this.input.slice(e+2,r),e,this.pos,t,this.curPosition())};Z.skipLineComment=function(t){for(var e=this.pos,r=this.options.onComment&&this.curPosition(),n=this.input.charCodeAt(this.pos+=t);this.pos<this.input.length&&!er(n);)n=this.input.charCodeAt(++this.pos);this.options.onComment&&this.options.onComment(!1,this.input.slice(e+t,this.pos),e,this.pos,r,this.curPosition())};Z.skipSpace=function(){e:for(;this.pos<this.input.length;){var t=this.input.charCodeAt(this.pos);switch(t){case 32:case 160:++this.pos;break;case 13:this.input.charCodeAt(this.pos+1)===10&&++this.pos;case 10:case 8232:case 8233:++this.pos,this.options.locations&&(++this.curLine,this.lineStart=this.pos);break;case 47:switch(this.input.charCodeAt(this.pos+1)){case 42:this.skipBlockComment();break;case 47:this.skipLineComment(2);break;default:break e}break;default:if(t>8&&t<14||t>=5760&&Eo.test(String.fromCharCode(t)))++this.pos;else break e}}};Z.finishToken=function(t,e){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var r=this.type;this.type=t,this.value=e,this.updateContext(r)};Z.readToken_dot=function(){var t=this.input.charCodeAt(this.pos+1);if(t>=48&&t<=57)return this.readNumber(!0);var e=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&t===46&&e===46?(this.pos+=3,this.finishToken(g.ellipsis)):(++this.pos,this.finishToken(g.dot))};Z.readToken_slash=function(){var t=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):t===61?this.finishOp(g.assign,2):this.finishOp(g.slash,1)};Z.readToken_mult_modulo_exp=function(t){var e=this.input.charCodeAt(this.pos+1),r=1,n=t===42?g.star:g.modulo;return this.options.ecmaVersion>=7&&t===42&&e===42&&(++r,n=g.starstar,e=this.input.charCodeAt(this.pos+2)),e===61?this.finishOp(g.assign,r+1):this.finishOp(n,r)};Z.readToken_pipe_amp=function(t){var e=this.input.charCodeAt(this.pos+1);if(e===t){if(this.options.ecmaVersion>=12){var r=this.input.charCodeAt(this.pos+2);if(r===61)return this.finishOp(g.assign,3)}return this.finishOp(t===124?g.logicalOR:g.logicalAND,2)}return e===61?this.finishOp(g.assign,2):this.finishOp(t===124?g.bitwiseOR:g.bitwiseAND,1)};Z.readToken_caret=function(){var t=this.input.charCodeAt(this.pos+1);return t===61?this.finishOp(g.assign,2):this.finishOp(g.bitwiseXOR,1)};Z.readToken_plus_min=function(t){var e=this.input.charCodeAt(this.pos+1);return e===t?e===45&&!this.inModule&&this.input.charCodeAt(this.pos+2)===62&&(this.lastTokEnd===0||ke.test(this.input.slice(this.lastTokEnd,this.pos)))?(this.skipLineComment(3),this.skipSpace(),this.nextToken()):this.finishOp(g.incDec,2):e===61?this.finishOp(g.assign,2):this.finishOp(g.plusMin,1)};Z.readToken_lt_gt=function(t){var e=this.input.charCodeAt(this.pos+1),r=1;return e===t?(r=t===62&&this.input.charCodeAt(this.pos+2)===62?3:2,this.input.charCodeAt(this.pos+r)===61?this.finishOp(g.assign,r+1):this.finishOp(g.bitShift,r)):e===33&&t===60&&!this.inModule&&this.input.charCodeAt(this.pos+2)===45&&this.input.charCodeAt(this.pos+3)===45?(this.skipLineComment(4),this.skipSpace(),this.nextToken()):(e===61&&(r=2),this.finishOp(g.relational,r))};Z.readToken_eq_excl=function(t){var e=this.input.charCodeAt(this.pos+1);return e===61?this.finishOp(g.equality,this.input.charCodeAt(this.pos+2)===61?3:2):t===61&&e===62&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(g.arrow)):this.finishOp(t===61?g.eq:g.prefix,1)};Z.readToken_question=function(){var t=this.options.ecmaVersion;if(t>=11){var e=this.input.charCodeAt(this.pos+1);if(e===46){var r=this.input.charCodeAt(this.pos+2);if(r<48||r>57)return this.finishOp(g.questionDot,2)}if(e===63){if(t>=12){var n=this.input.charCodeAt(this.pos+2);if(n===61)return this.finishOp(g.assign,3)}return this.finishOp(g.coalesce,2)}}return this.finishOp(g.question,1)};Z.getTokenFromCode=function(t){switch(t){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(g.parenL);case 41:return++this.pos,this.finishToken(g.parenR);case 59:return++this.pos,this.finishToken(g.semi);case 44:return++this.pos,this.finishToken(g.comma);case 91:return++this.pos,this.finishToken(g.bracketL);case 93:return++this.pos,this.finishToken(g.bracketR);case 123:return++this.pos,this.finishToken(g.braceL);case 125:return++this.pos,this.finishToken(g.braceR);case 58:return++this.pos,this.finishToken(g.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(g.backQuote);case 48:var e=this.input.charCodeAt(this.pos+1);if(e===120||e===88)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(e===111||e===79)return this.readRadixNumber(8);if(e===98||e===66)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(t);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(t);case 124:case 38:return this.readToken_pipe_amp(t);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(t);case 60:case 62:return this.readToken_lt_gt(t);case 61:case 33:return this.readToken_eq_excl(t);case 63:return this.readToken_question();case 126:return this.finishOp(g.prefix,1)}this.raise(this.pos,"Unexpected character '"+fi(t)+"'")};Z.finishOp=function(t,e){var r=this.input.slice(this.pos,this.pos+e);return this.pos+=e,this.finishToken(t,r)};Z.readRegexp=function(){for(var t,e,r=this.pos;;){this.pos>=this.input.length&&this.raise(r,"Unterminated regular expression");var n=this.input.charAt(this.pos);if(ke.test(n)&&this.raise(r,"Unterminated regular expression"),t)t=!1;else{if(n==="[")e=!0;else if(n==="]"&&e)e=!1;else if(n==="/"&&!e)break;t=n==="\\"}++this.pos}var i=this.input.slice(r,this.pos);++this.pos;var s=this.pos,a=this.readWord1();this.containsEsc&&this.unexpected(s);var o=this.regexpState||(this.regexpState=new Xe(this));o.reset(r,i,a),this.validateRegExpFlags(o),this.validateRegExpPattern(o);var u=null;try{u=new RegExp(i,a)}catch(c){}return this.finishToken(g.regexp,{pattern:i,flags:a,value:u})};Z.readInt=function(t,e,r){for(var n=this.options.ecmaVersion>=12&&e===void 0,i=r&&this.input.charCodeAt(this.pos)===48,s=this.pos,a=0,o=0,u=0,c=e!=null?e:1/0;u<c;++u,++this.pos){var l=this.input.charCodeAt(this.pos),h=void 0;if(n&&l===95){i&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed in legacy octal numeric literals"),o===95&&this.raiseRecoverable(this.pos,"Numeric separator must be exactly one underscore"),u===0&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed at the first of digits"),o=l;continue}if(l>=97?h=l-97+10:l>=65?h=l-65+10:l>=48&&l<=57?h=l-48:h=1/0,h>=t)break;o=l,a=a*t+h}return n&&o===95&&this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits"),this.pos===s||e!=null&&this.pos-s!==e?null:a};function ty(t,e){return e?parseInt(t,8):parseFloat(t.replace(/_/g,""))}function Jo(t){return typeof BigInt!="function"?null:BigInt(t.replace(/_/g,""))}Z.readRadixNumber=function(t){var e=this.pos;this.pos+=2;var r=this.readInt(t);return r==null&&this.raise(this.start+2,"Expected number in radix "+t),this.options.ecmaVersion>=11&&this.input.charCodeAt(this.pos)===110?(r=Jo(this.input.slice(e,this.pos)),++this.pos):ot(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(g.num,r)};Z.readNumber=function(t){var e=this.pos;!t&&this.readInt(10,void 0,!0)===null&&this.raise(e,"Invalid number");var r=this.pos-e>=2&&this.input.charCodeAt(e)===48;r&&this.strict&&this.raise(e,"Invalid number");var n=this.input.charCodeAt(this.pos);if(!r&&!t&&this.options.ecmaVersion>=11&&n===110){var i=Jo(this.input.slice(e,this.pos));return++this.pos,ot(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(g.num,i)}r&&/[89]/.test(this.input.slice(e,this.pos))&&(r=!1),n===46&&!r&&(++this.pos,this.readInt(10),n=this.input.charCodeAt(this.pos)),(n===69||n===101)&&!r&&(n=this.input.charCodeAt(++this.pos),(n===43||n===45)&&++this.pos,this.readInt(10)===null&&this.raise(e,"Invalid number")),ot(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var s=ty(this.input.slice(e,this.pos),r);return this.finishToken(g.num,s)};Z.readCodePoint=function(){var t=this.input.charCodeAt(this.pos),e;if(t===123){this.options.ecmaVersion<6&&this.unexpected();var r=++this.pos;e=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,e>1114111&&this.invalidStringToken(r,"Code point out of bounds")}else e=this.readHexChar(4);return e};function fi(t){return t<=65535?String.fromCharCode(t):(t-=65536,String.fromCharCode((t>>10)+55296,(t&1023)+56320))}Z.readString=function(t){for(var e="",r=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var n=this.input.charCodeAt(this.pos);if(n===t)break;n===92?(e+=this.input.slice(r,this.pos),e+=this.readEscapedChar(!1),r=this.pos):(er(n,this.options.ecmaVersion>=10)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return e+=this.input.slice(r,this.pos++),this.finishToken(g.string,e)};var Yo={};Z.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(t){if(t===Yo)this.readInvalidTemplateToken();else throw t}this.inTemplateElement=!1};Z.invalidStringToken=function(t,e){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw Yo;this.raise(t,e)};Z.readTmplToken=function(){for(var t="",e=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated template");var r=this.input.charCodeAt(this.pos);if(r===96||r===36&&this.input.charCodeAt(this.pos+1)===123)return this.pos===this.start&&(this.type===g.template||this.type===g.invalidTemplate)?r===36?(this.pos+=2,this.finishToken(g.dollarBraceL)):(++this.pos,this.finishToken(g.backQuote)):(t+=this.input.slice(e,this.pos),this.finishToken(g.template,t));if(r===92)t+=this.input.slice(e,this.pos),t+=this.readEscapedChar(!0),e=this.pos;else if(er(r)){switch(t+=this.input.slice(e,this.pos),++this.pos,r){case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:t+=`
68
68
  `;break;default:t+=String.fromCharCode(r);break}this.options.locations&&(++this.curLine,this.lineStart=this.pos),e=this.pos}else++this.pos}};Z.readInvalidTemplateToken=function(){for(;this.pos<this.input.length;this.pos++)switch(this.input[this.pos]){case"\\":++this.pos;break;case"$":if(this.input[this.pos+1]!=="{")break;case"`":return this.finishToken(g.invalidTemplate,this.input.slice(this.start,this.pos))}this.raise(this.start,"Unterminated template")};Z.readEscapedChar=function(t){var e=this.input.charCodeAt(++this.pos);switch(++this.pos,e){case 110:return`
69
- `;case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return ci(this.readCodePoint());case 116:return" ";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:return this.options.locations&&(this.lineStart=this.pos,++this.curLine),"";case 56:case 57:if(t){var r=this.pos-1;return this.invalidStringToken(r,"Invalid escape sequence in template string"),null}default:if(e>=48&&e<=55){var n=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],i=parseInt(n,8);return i>255&&(n=n.slice(0,-1),i=parseInt(n,8)),this.pos+=n.length-1,e=this.input.charCodeAt(this.pos),(n!=="0"||e===56||e===57)&&(this.strict||t)&&this.invalidStringToken(this.pos-1-n.length,t?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(i)}return er(e)?"":String.fromCharCode(e)}};Z.readHexChar=function(t){var e=this.pos,r=this.readInt(16,t);return r===null&&this.invalidStringToken(e,"Bad character escape sequence"),r};Z.readWord1=function(){this.containsEsc=!1;for(var t="",e=!0,r=this.pos,n=this.options.ecmaVersion>=6;this.pos<this.input.length;){var i=this.fullCharCodeAtPos();if(Rt(i,n))this.pos+=i<=65535?1:2;else if(i===92){this.containsEsc=!0,t+=this.input.slice(r,this.pos);var s=this.pos;this.input.charCodeAt(++this.pos)!==117&&this.invalidStringToken(this.pos,"Expecting Unicode escape sequence \\uXXXX"),++this.pos;var a=this.readCodePoint();(e?ot:Rt)(a,n)||this.invalidStringToken(s,"Invalid Unicode escape"),t+=ci(a),r=this.pos}else break;e=!1}return t+this.input.slice(r,this.pos)};Z.readWord=function(){var t=this.readWord1(),e=g.name;return this.keywords.test(t)&&(e=ei[t]),this.finishToken(e,t)};var zv="7.4.1";oe.acorn={Parser:oe,version:zv,defaultOptions:On,Position:Zt,SourceLocation:$r,getLineInfo:_o,Node:si,TokenType:X,tokTypes:g,keywordTypes:ei,TokContext:De,tokContexts:ae,isIdentifierChar:Rt,isIdentifierStart:ot,Token:oi,isNewLine:er,lineBreak:ke,lineBreakG:Yt,nonASCIIwhitespace:yo};function Wv(t,e){return oe.parse(t,e)}class Gv extends Error{}class Kv extends SyntaxError{}class Dn extends ReferenceError{}class Jv extends TypeError{}class zo extends Gv{}class Yv extends Kv{}let $e=class extends Dn{};const de={ExecutionTimeOutError:[3002,"Script execution timed out after %0ms",zo],NodeTypeSyntaxError:[1001,"Unknown node type: %0",$e],BinaryOperatorSyntaxError:[1002,"Unknown binary operator: %0",$e],LogicalOperatorSyntaxError:[1003,"Unknown logical operator: %0",$e],UnaryOperatorSyntaxError:[1004,"Unknown unary operator: %0",$e],UpdateOperatorSyntaxError:[1005,"Unknown update operator: %0",$e],ObjectStructureSyntaxError:[1006,"Unknown object structure: %0",$e],AssignmentExpressionSyntaxError:[1007,"Unknown assignment expression: %0",$e],VariableTypeSyntaxError:[1008,"Unknown variable type: %0",$e],ParamTypeSyntaxError:[1009,"Unknown param type: %0",$e],AssignmentTypeSyntaxError:[1010,"Unknown assignment type: %0",$e],FunctionUndefinedReferenceError:[2001,"%0 is not a function",Dn],VariableUndefinedReferenceError:[2002,"%0 is not defined",Dn],IsNotConstructor:[2003,"%0 is not a constructor",Jv]},Zv="1.4.8";function Ps(t,e){Object.defineProperty(t,"name",{value:e,writable:!1,enumerable:!1,configurable:!0})}const Qv=Object.prototype.hasOwnProperty,xt=Symbol("Break"),wt=Symbol("Continue"),Ds=Symbol("DefaultCase"),fe=Symbol("EmptyStatementReturn"),$s=Symbol("WithScopeName"),Ns=Symbol("SuperScopeName"),Bs=Symbol("RootScopeName"),Ls=Symbol("GlobalScopeName");function cn(t){return typeof t=="function"}class it{constructor(e){this.interpreter=e}generator(){const e=this.interpreter;function r(){return this.getCurrentScope()}function n(){return this.getGlobalScope()}function i(){return this.getCurrentContext()}return{getOptions:e.getOptions.bind(e),getCurrentScope:r.bind(e),getGlobalScope:n.bind(e),getCurrentContext:i.bind(e),getExecStartTime:e.getExecStartTime.bind(e)}}}function ui(t,e,r=!0){if(!(t instanceof it))throw new Error("Illegal call");if(typeof e!="string")return e;if(!e)return;const n=t.generator(),i={timeout:n.getOptions().timeout,_initEnv:function(){r||this.setCurrentContext(n.getCurrentContext()),this.execStartTime=n.getExecStartTime(),this.execEndTime=this.execStartTime}},s=r?n.getGlobalScope():n.getCurrentScope();return new et(s,i).evaluate(e)}Object.defineProperty(ui,"__IS_EVAL_FUNC",{value:!0,writable:!1,enumerable:!1,configurable:!1});function li(t,...e){if(!(t instanceof it))throw new Error("Illegal call");const r=t.generator(),n=e.pop(),i=new et(r.getGlobalScope(),r.getOptions()),s=`
69
+ `;case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return fi(this.readCodePoint());case 116:return" ";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:return this.options.locations&&(this.lineStart=this.pos,++this.curLine),"";case 56:case 57:if(t){var r=this.pos-1;return this.invalidStringToken(r,"Invalid escape sequence in template string"),null}default:if(e>=48&&e<=55){var n=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],i=parseInt(n,8);return i>255&&(n=n.slice(0,-1),i=parseInt(n,8)),this.pos+=n.length-1,e=this.input.charCodeAt(this.pos),(n!=="0"||e===56||e===57)&&(this.strict||t)&&this.invalidStringToken(this.pos-1-n.length,t?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(i)}return er(e)?"":String.fromCharCode(e)}};Z.readHexChar=function(t){var e=this.pos,r=this.readInt(16,t);return r===null&&this.invalidStringToken(e,"Bad character escape sequence"),r};Z.readWord1=function(){this.containsEsc=!1;for(var t="",e=!0,r=this.pos,n=this.options.ecmaVersion>=6;this.pos<this.input.length;){var i=this.fullCharCodeAtPos();if(Rt(i,n))this.pos+=i<=65535?1:2;else if(i===92){this.containsEsc=!0,t+=this.input.slice(r,this.pos);var s=this.pos;this.input.charCodeAt(++this.pos)!==117&&this.invalidStringToken(this.pos,"Expecting Unicode escape sequence \\uXXXX"),++this.pos;var a=this.readCodePoint();(e?ot:Rt)(a,n)||this.invalidStringToken(s,"Invalid Unicode escape"),t+=fi(a),r=this.pos}else break;e=!1}return t+this.input.slice(r,this.pos)};Z.readWord=function(){var t=this.readWord1(),e=g.name;return this.keywords.test(t)&&(e=si[t]),this.finishToken(e,t)};var ry="7.4.1";oe.acorn={Parser:oe,version:ry,defaultOptions:Nn,Position:Zt,SourceLocation:Dr,getLineInfo:Co,Node:li,TokenType:X,tokTypes:g,keywordTypes:si,TokContext:$e,tokContexts:ae,isIdentifierChar:Rt,isIdentifierStart:ot,Token:pi,isNewLine:er,lineBreak:ke,lineBreakG:Yt,nonASCIIwhitespace:Eo};function ny(t,e){return oe.parse(t,e)}class iy extends Error{}class sy extends SyntaxError{}class Ln extends ReferenceError{}class ay extends TypeError{}class Zo extends iy{}class oy extends sy{}let De=class extends Ln{};const de={ExecutionTimeOutError:[3002,"Script execution timed out after %0ms",Zo],NodeTypeSyntaxError:[1001,"Unknown node type: %0",De],BinaryOperatorSyntaxError:[1002,"Unknown binary operator: %0",De],LogicalOperatorSyntaxError:[1003,"Unknown logical operator: %0",De],UnaryOperatorSyntaxError:[1004,"Unknown unary operator: %0",De],UpdateOperatorSyntaxError:[1005,"Unknown update operator: %0",De],ObjectStructureSyntaxError:[1006,"Unknown object structure: %0",De],AssignmentExpressionSyntaxError:[1007,"Unknown assignment expression: %0",De],VariableTypeSyntaxError:[1008,"Unknown variable type: %0",De],ParamTypeSyntaxError:[1009,"Unknown param type: %0",De],AssignmentTypeSyntaxError:[1010,"Unknown assignment type: %0",De],FunctionUndefinedReferenceError:[2001,"%0 is not a function",Ln],VariableUndefinedReferenceError:[2002,"%0 is not defined",Ln],IsNotConstructor:[2003,"%0 is not a constructor",ay]},cy="1.4.8";function js(t,e){Object.defineProperty(t,"name",{value:e,writable:!1,enumerable:!1,configurable:!0})}const uy=Object.prototype.hasOwnProperty,xt=Symbol("Break"),wt=Symbol("Continue"),Vs=Symbol("DefaultCase"),fe=Symbol("EmptyStatementReturn"),Ms=Symbol("WithScopeName"),Fs=Symbol("SuperScopeName"),Us=Symbol("RootScopeName"),Hs=Symbol("GlobalScopeName");function ln(t){return typeof t=="function"}class it{constructor(e){this.interpreter=e}generator(){const e=this.interpreter;function r(){return this.getCurrentScope()}function n(){return this.getGlobalScope()}function i(){return this.getCurrentContext()}return{getOptions:e.getOptions.bind(e),getCurrentScope:r.bind(e),getGlobalScope:n.bind(e),getCurrentContext:i.bind(e),getExecStartTime:e.getExecStartTime.bind(e)}}}function di(t,e,r=!0){if(!(t instanceof it))throw new Error("Illegal call");if(typeof e!="string")return e;if(!e)return;const n=t.generator(),i={timeout:n.getOptions().timeout,_initEnv:function(){r||this.setCurrentContext(n.getCurrentContext()),this.execStartTime=n.getExecStartTime(),this.execEndTime=this.execStartTime}},s=r?n.getGlobalScope():n.getCurrentScope();return new et(s,i).evaluate(e)}Object.defineProperty(di,"__IS_EVAL_FUNC",{value:!0,writable:!1,enumerable:!1,configurable:!1});function gi(t,...e){if(!(t instanceof it))throw new Error("Illegal call");const r=t.generator(),n=e.pop(),i=new et(r.getGlobalScope(),r.getOptions()),s=`
70
70
  (function anonymous(${e.join(",")}){
71
71
  ${n}
72
72
  });
73
- `;return i.evaluate(s)}Object.defineProperty(li,"__IS_FUNCTION_FUNC",{value:!0,writable:!1,enumerable:!1,configurable:!1});let Ve=class{constructor(e){this.value=e}};class ht{constructor(e){this.value=e}}let rt=class{constructor(e){this.value=e}};class Ct{constructor(e,r=null,n){this.name=n,this.parent=r,this.data=e,this.labelStack=[]}}function dr(){}function Xv(t=null,e){return new Ct(Object.create(null),t,e)}function ey(t){return Object.create(t)}const qe={NaN:NaN,Infinity:1/0,undefined:void 0,Object,Array,String,Boolean,Number,Date,RegExp,Error,URIError,TypeError,RangeError,SyntaxError,ReferenceError,Math,parseInt,parseFloat,isNaN,isFinite,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,escape,unescape,eval:ui,Function:li};typeof JSON<"u"&&(qe.JSON=JSON);typeof Promise<"u"&&(qe.Promise=Promise);typeof Set<"u"&&(qe.Set=Set);typeof Map<"u"&&(qe.Map=Map);typeof Symbol<"u"&&(qe.Symbol=Symbol);typeof Proxy<"u"&&(qe.Proxy=Proxy);typeof WeakMap<"u"&&(qe.WeakMap=WeakMap);typeof WeakSet<"u"&&(qe.WeakSet=WeakSet);typeof Reflect<"u"&&(qe.Reflect=Reflect);let et=class Vt{constructor(e=Vt.global,r={}){this.sourceList=[],this.collectDeclVars=Object.create(null),this.collectDeclFuncs=Object.create(null),this.isVarDeclMode=!1,this.lastExecNode=null,this.isRunning=!1,this.options={ecmaVersion:r.ecmaVersion||Vt.ecmaVersion,timeout:r.timeout||0,rootContext:r.rootContext,globalContextInFunction:r.globalContextInFunction===void 0?Vt.globalContextInFunction:r.globalContextInFunction,_initEnv:r._initEnv},this.context=e||Object.create(null),this.callStack=[],this.initEnvironment(this.context)}initEnvironment(e){let r;if(e instanceof Ct)r=e;else{let i=null;const s=this.createSuperScope(e);this.options.rootContext&&(i=new Ct(ey(this.options.rootContext),s,Bs)),r=new Ct(e,i||s,Ls)}this.globalScope=r,this.currentScope=this.globalScope,this.globalContext=r.data,this.currentContext=r.data,this.collectDeclVars=Object.create(null),this.collectDeclFuncs=Object.create(null),this.execStartTime=Date.now(),this.execEndTime=this.execStartTime;const n=this.options._initEnv;n&&n.call(this)}getExecStartTime(){return this.execStartTime}getExecutionTime(){return this.execEndTime-this.execStartTime}setExecTimeout(e=0){this.options.timeout=e}getOptions(){return this.options}getGlobalScope(){return this.globalScope}getCurrentScope(){return this.currentScope}getCurrentContext(){return this.currentContext}isInterruptThrow(e){return e instanceof zo||e instanceof $e||e instanceof Yv}createSuperScope(e){let r=Object.assign({},qe);return Object.keys(r).forEach(n=>{n in e&&delete r[n]}),new Ct(r,null,Ns)}setCurrentContext(e){this.currentContext=e}setCurrentScope(e){this.currentScope=e}evaluate(e=""){let r;if(e)return r=Wv(e,{ranges:!0,locations:!0,ecmaVersion:this.options.ecmaVersion||Vt.ecmaVersion}),this.evaluateNode(r,e)}appendCode(e){return this.evaluate(e)}evaluateNode(e,r=""){this.value=void 0,this.source=r,this.sourceList.push(r),this.isRunning=!0,this.execStartTime=Date.now(),this.execEndTime=this.execStartTime,this.collectDeclVars=Object.create(null),this.collectDeclFuncs=Object.create(null);const n=this.getCurrentScope(),i=this.getCurrentContext(),s=n.labelStack.concat([]),a=this.callStack.concat([]),o=()=>{this.setCurrentScope(n),this.setCurrentContext(i),n.labelStack=s,this.callStack=a};try{const u=this.createClosure(e);this.addDeclarationsToScope(this.collectDeclVars,this.collectDeclFuncs,this.getCurrentScope()),u()}catch(u){throw u}finally{o(),this.execEndTime=Date.now()}return this.isRunning=!1,this.getValue()}createErrorMessage(e,r,n){let i=e[1].replace("%0",String(r));return n!==null&&(i+=this.getNodePosition(n||this.lastExecNode)),i}createError(e,r){return new r(e)}createThrowError(e,r){return this.createError(e,r)}createInternalThrowError(e,r,n){return this.createError(this.createErrorMessage(e,r,n),e[2])}checkTimeout(){if(!this.isRunning)return!1;const e=this.options.timeout||0;return Date.now()-this.execStartTime>e}getNodePosition(e){return e&&e.loc?` [${e.loc.start.line}:${e.loc.start.column}]`:""}createClosure(e){let r;switch(e.type){case"BinaryExpression":r=this.binaryExpressionHandler(e);break;case"LogicalExpression":r=this.logicalExpressionHandler(e);break;case"UnaryExpression":r=this.unaryExpressionHandler(e);break;case"UpdateExpression":r=this.updateExpressionHandler(e);break;case"ObjectExpression":r=this.objectExpressionHandler(e);break;case"ArrayExpression":r=this.arrayExpressionHandler(e);break;case"CallExpression":r=this.callExpressionHandler(e);break;case"NewExpression":r=this.newExpressionHandler(e);break;case"MemberExpression":r=this.memberExpressionHandler(e);break;case"ThisExpression":r=this.thisExpressionHandler(e);break;case"SequenceExpression":r=this.sequenceExpressionHandler(e);break;case"Literal":r=this.literalHandler(e);break;case"Identifier":r=this.identifierHandler(e);break;case"AssignmentExpression":r=this.assignmentExpressionHandler(e);break;case"FunctionDeclaration":r=this.functionDeclarationHandler(e);break;case"VariableDeclaration":r=this.variableDeclarationHandler(e);break;case"BlockStatement":case"Program":r=this.programHandler(e);break;case"ExpressionStatement":r=this.expressionStatementHandler(e);break;case"EmptyStatement":r=this.emptyStatementHandler(e);break;case"ReturnStatement":r=this.returnStatementHandler(e);break;case"FunctionExpression":r=this.functionExpressionHandler(e);break;case"IfStatement":r=this.ifStatementHandler(e);break;case"ConditionalExpression":r=this.conditionalExpressionHandler(e);break;case"ForStatement":r=this.forStatementHandler(e);break;case"WhileStatement":r=this.whileStatementHandler(e);break;case"DoWhileStatement":r=this.doWhileStatementHandler(e);break;case"ForInStatement":r=this.forInStatementHandler(e);break;case"WithStatement":r=this.withStatementHandler(e);break;case"ThrowStatement":r=this.throwStatementHandler(e);break;case"TryStatement":r=this.tryStatementHandler(e);break;case"ContinueStatement":r=this.continueStatementHandler(e);break;case"BreakStatement":r=this.breakStatementHandler(e);break;case"SwitchStatement":r=this.switchStatementHandler(e);break;case"LabeledStatement":r=this.labeledStatementHandler(e);break;case"DebuggerStatement":r=this.debuggerStatementHandler(e);break;default:throw this.createInternalThrowError(de.NodeTypeSyntaxError,e.type,e)}return(...n)=>{const i=this.options.timeout;if(i&&i>0&&this.checkTimeout())throw this.createInternalThrowError(de.ExecutionTimeOutError,i,null);return this.lastExecNode=e,r(...n)}}binaryExpressionHandler(e){const r=this.createClosure(e.left),n=this.createClosure(e.right);return()=>{const i=r(),s=n();switch(e.operator){case"==":return i==s;case"!=":return i!=s;case"===":return i===s;case"!==":return i!==s;case"<":return i<s;case"<=":return i<=s;case">":return i>s;case">=":return i>=s;case"<<":return i<<s;case">>":return i>>s;case">>>":return i>>>s;case"+":return i+s;case"-":return i-s;case"*":return i*s;case"**":return Math.pow(i,s);case"/":return i/s;case"%":return i%s;case"|":return i|s;case"^":return i^s;case"&":return i&s;case"in":return i in s;case"instanceof":return i instanceof s;default:throw this.createInternalThrowError(de.BinaryOperatorSyntaxError,e.operator,e)}}}logicalExpressionHandler(e){const r=this.createClosure(e.left),n=this.createClosure(e.right);return()=>{switch(e.operator){case"||":return r()||n();case"&&":return r()&&n();default:throw this.createInternalThrowError(de.LogicalOperatorSyntaxError,e.operator,e)}}}unaryExpressionHandler(e){switch(e.operator){case"delete":const r=this.createObjectGetter(e.argument),n=this.createNameGetter(e.argument);return()=>{let s=r();const a=n();return delete s[a]};default:let i;if(e.operator==="typeof"&&e.argument.type==="Identifier"){const s=this.createObjectGetter(e.argument),a=this.createNameGetter(e.argument);i=()=>s()[a()]}else i=this.createClosure(e.argument);return()=>{const s=i();switch(e.operator){case"-":return-s;case"+":return+s;case"!":return!s;case"~":return~s;case"void":return;case"typeof":return typeof s;default:throw this.createInternalThrowError(de.UnaryOperatorSyntaxError,e.operator,e)}}}}updateExpressionHandler(e){const r=this.createObjectGetter(e.argument),n=this.createNameGetter(e.argument);return()=>{const i=r(),s=n();switch(this.assertVariable(i,s,e),e.operator){case"++":return e.prefix?++i[s]:i[s]++;case"--":return e.prefix?--i[s]:i[s]--;default:throw this.createInternalThrowError(de.UpdateOperatorSyntaxError,e.operator,e)}}}objectExpressionHandler(e){const r=[];function n(s){return s.type==="Identifier"?s.name:s.type==="Literal"?s.value:this.throwError(de.ObjectStructureSyntaxError,s.type,s)}const i=Object.create(null);return e.properties.forEach(s=>{const a=s.kind,o=n(s.key);(!i[o]||a==="init")&&(i[o]={}),i[o][a]=this.createClosure(s.value),r.push({key:o,property:s})}),()=>{const s={},a=r.length;for(let o=0;o<a;o++){const u=r[o],c=u.key,l=i[c],h=l.init?l.init():void 0,p=l.get?l.get():function(){},f=l.set?l.set():function(d){};if("set"in l||"get"in l)Object.defineProperty(s,c,{configurable:!0,enumerable:!0,get:p,set:f});else{const d=u.property,m=d.kind;d.key.type==="Identifier"&&d.value.type==="FunctionExpression"&&m==="init"&&!d.value.id&&Ps(h,d.key.name),s[c]=h}}return s}}arrayExpressionHandler(e){const r=e.elements.map(n=>n&&this.createClosure(n));return()=>{const n=r.length,i=Array(n);for(let s=0;s<n;s++){const a=r[s];a&&(i[s]=a())}return i}}safeObjectGet(e,r,n){return e[r]}createCallFunctionGetter(e){switch(e.type){case"MemberExpression":const r=this.createClosure(e.object),n=this.createMemberKeyGetter(e),i=this.source;return()=>{const a=r(),o=n(),u=this.safeObjectGet(a,o,e);if(!u||!cn(u)){const c=i.slice(e.start,e.end);throw this.createInternalThrowError(de.FunctionUndefinedReferenceError,c,e)}return u.__IS_EVAL_FUNC?c=>u(new it(this),c,!0):u.__IS_FUNCTION_FUNC?(...c)=>u(new it(this),...c):u.bind(a)};default:const s=this.createClosure(e);return()=>{let a="";e.type==="Identifier"&&(a=e.name);const o=s();if(!o||!cn(o))throw this.createInternalThrowError(de.FunctionUndefinedReferenceError,a,e);if(e.type==="Identifier"&&o.__IS_EVAL_FUNC&&a==="eval")return c=>{const l=this.getScopeFromName(a,this.getCurrentScope()),h=l.name===Ns||l.name===Ls||l.name===Bs;return o(new it(this),c,!h)};if(o.__IS_EVAL_FUNC)return c=>o(new it(this),c,!0);if(o.__IS_FUNCTION_FUNC)return(...c)=>o(new it(this),...c);let u=this.options.globalContextInFunction;if(e.type==="Identifier"){const c=this.getIdentifierScope(e);c.name===$s&&(u=c.data)}return o.bind(u)}}}callExpressionHandler(e){const r=this.createCallFunctionGetter(e.callee),n=e.arguments.map(i=>this.createClosure(i));return()=>r()(...n.map(i=>i()))}functionExpressionHandler(e){const r=this,n=this.source,i=this.collectDeclVars,s=this.collectDeclFuncs;this.collectDeclVars=Object.create(null),this.collectDeclFuncs=Object.create(null);const a=e.id?e.id.name:"",o=e.params.length,u=e.params.map(p=>this.createParamNameGetter(p)),c=this.createClosure(e.body),l=this.collectDeclVars,h=this.collectDeclFuncs;return this.collectDeclVars=i,this.collectDeclFuncs=s,()=>{const p=r.getCurrentScope(),f=function(...d){r.callStack.push(`${a}`);const m=r.getCurrentScope(),v=Xv(p,`FunctionScope(${a})`);r.setCurrentScope(v),r.addDeclarationsToScope(l,h,v),a&&(v.data[a]=f),v.data.arguments=arguments,u.forEach((_,w)=>{v.data[_()]=d[w]});const S=r.getCurrentContext();r.setCurrentContext(this);const b=c();if(r.setCurrentContext(S),r.setCurrentScope(m),r.callStack.pop(),b instanceof Ve)return b.value};return Ps(f,a),Object.defineProperty(f,"length",{value:o,writable:!1,enumerable:!1,configurable:!0}),Object.defineProperty(f,"toString",{value:()=>n.slice(e.start,e.end),writable:!0,configurable:!0,enumerable:!1}),Object.defineProperty(f,"valueOf",{value:()=>n.slice(e.start,e.end),writable:!0,configurable:!0,enumerable:!1}),f}}newExpressionHandler(e){const r=this.source,n=this.createClosure(e.callee),i=e.arguments.map(s=>this.createClosure(s));return()=>{const s=n();if(!cn(s)||s.__IS_EVAL_FUNC){const a=e.callee,o=r.slice(a.start,a.end);throw this.createInternalThrowError(de.IsNotConstructor,o,e)}return s.__IS_FUNCTION_FUNC?s(new it(this),...i.map(a=>a())):new s(...i.map(a=>a()))}}memberExpressionHandler(e){const r=this.createClosure(e.object),n=this.createMemberKeyGetter(e);return()=>{const i=r();let s=n();return i[s]}}thisExpressionHandler(e){return()=>this.getCurrentContext()}sequenceExpressionHandler(e){const r=e.expressions.map(n=>this.createClosure(n));return()=>{let n;const i=r.length;for(let s=0;s<i;s++){const a=r[s];n=a()}return n}}literalHandler(e){return()=>e.regex?new RegExp(e.regex.pattern,e.regex.flags):e.value}identifierHandler(e){return()=>{const r=this.getCurrentScope(),n=this.getScopeDataFromName(e.name,r);return this.assertVariable(n,e.name,e),n[e.name]}}getIdentifierScope(e){const r=this.getCurrentScope();return this.getScopeFromName(e.name,r)}assignmentExpressionHandler(e){e.left.type==="Identifier"&&e.right.type==="FunctionExpression"&&!e.right.id&&(e.right.id={type:"Identifier",name:e.left.name});const r=this.createObjectGetter(e.left),n=this.createNameGetter(e.left),i=this.createClosure(e.right);return()=>{const s=r(),a=n(),o=i();switch(e.operator!=="="&&this.assertVariable(s,a,e),e.operator){case"=":return s[a]=o;case"+=":return s[a]+=o;case"-=":return s[a]-=o;case"*=":return s[a]*=o;case"**=":return s[a]=Math.pow(s[a],o);case"/=":return s[a]/=o;case"%=":return s[a]%=o;case"<<=":return s[a]<<=o;case">>=":return s[a]>>=o;case">>>=":return s[a]>>>=o;case"&=":return s[a]&=o;case"^=":return s[a]^=o;case"|=":return s[a]|=o;default:throw this.createInternalThrowError(de.AssignmentExpressionSyntaxError,e.type,e)}}}functionDeclarationHandler(e){if(e.id){const r=this.functionExpressionHandler(e);Object.defineProperty(r,"isFunctionDeclareClosure",{value:!0,writable:!1,configurable:!1,enumerable:!1}),this.funcDeclaration(e.id.name,r)}return()=>fe}getVariableName(e){if(e.type==="Identifier")return e.name;throw this.createInternalThrowError(de.VariableTypeSyntaxError,e.type,e)}variableDeclarationHandler(e){let r;const n=[];for(let i=0;i<e.declarations.length;i++){const s=e.declarations[i];this.varDeclaration(this.getVariableName(s.id)),s.init&&n.push({type:"AssignmentExpression",operator:"=",left:s.id,right:s.init})}return n.length&&(r=this.createClosure({type:"BlockStatement",body:n})),()=>{if(r){const i=this.isVarDeclMode;this.isVarDeclMode=!0,r(),this.isVarDeclMode=i}return fe}}assertVariable(e,r,n){if(e===this.globalScope.data&&!(r in e))throw this.createInternalThrowError(de.VariableUndefinedReferenceError,r,n)}programHandler(e){const r=e.body.map(n=>this.createClosure(n));return()=>{let n=fe;for(let i=0;i<r.length;i++){const s=r[i],a=this.setValue(s());if(a!==fe&&(n=a,n instanceof Ve||n instanceof ht||n instanceof rt||n===xt||n===wt))break}return n}}expressionStatementHandler(e){return this.createClosure(e.expression)}emptyStatementHandler(e){return()=>fe}returnStatementHandler(e){const r=e.argument?this.createClosure(e.argument):dr;return()=>new Ve(r())}ifStatementHandler(e){const r=this.createClosure(e.test),n=this.createClosure(e.consequent),i=e.alternate?this.createClosure(e.alternate):(()=>fe);return()=>r()?n():i()}conditionalExpressionHandler(e){return this.ifStatementHandler(e)}forStatementHandler(e){let r=dr,n=e.test?this.createClosure(e.test):()=>!0,i=dr;const s=this.createClosure(e.body);return e.type==="ForStatement"&&(r=e.init?this.createClosure(e.init):r,i=e.update?this.createClosure(e.update):dr),a=>{let o,u=fe,c=e.type==="DoWhileStatement";for(a&&a.type==="LabeledStatement"&&(o=a.label.name),r();c||n();i()){c=!1;const l=this.setValue(s());if(!(l===fe||l===wt)){if(l===xt)break;if(u=l,u instanceof rt&&u.value===o){u=fe;continue}if(u instanceof Ve||u instanceof ht||u instanceof rt)break}}return u}}whileStatementHandler(e){return this.forStatementHandler(e)}doWhileStatementHandler(e){return this.forStatementHandler(e)}forInStatementHandler(e){let r=e.left;const n=this.createClosure(e.right),i=this.createClosure(e.body);return e.left.type==="VariableDeclaration"&&(this.createClosure(e.left)(),r=e.left.declarations[0].id),s=>{let a,o=fe,u;s&&s.type==="LabeledStatement"&&(a=s.label.name);const c=n();for(u in c){this.assignmentExpressionHandler({type:"AssignmentExpression",operator:"=",left:r,right:{type:"Literal",value:u}})();const l=this.setValue(i());if(!(l===fe||l===wt)){if(l===xt)break;if(o=l,o instanceof rt&&o.value===a){o=fe;continue}if(o instanceof Ve||o instanceof ht||o instanceof rt)break}}return o}}withStatementHandler(e){const r=this.createClosure(e.object),n=this.createClosure(e.body);return()=>{const i=r(),s=this.getCurrentScope(),a=new Ct(i,s,$s);this.setCurrentScope(a);const o=this.setValue(n());return this.setCurrentScope(s),o}}throwStatementHandler(e){const r=this.createClosure(e.argument);return()=>{throw this.setValue(void 0),r()}}tryStatementHandler(e){const r=this.createClosure(e.block),n=e.handler?this.catchClauseHandler(e.handler):null,i=e.finalizer?this.createClosure(e.finalizer):null;return()=>{const s=this.getCurrentScope(),a=this.getCurrentContext(),o=s.labelStack.concat([]),u=this.callStack.concat([]);let c=fe,l,h;const p=()=>{this.setCurrentScope(s),this.setCurrentContext(a),s.labelStack=o,this.callStack=u};try{c=this.setValue(r()),c instanceof Ve&&(l=c)}catch(f){if(p(),this.isInterruptThrow(f))throw f;if(n)try{c=this.setValue(n(f)),c instanceof Ve&&(l=c)}catch(d){if(p(),this.isInterruptThrow(d))throw d;h=d}}if(i)try{c=i(),c instanceof Ve&&(l=c)}catch(f){if(p(),this.isInterruptThrow(f))throw f;h=f}if(h)throw h;return l||c}}catchClauseHandler(e){const r=this.createParamNameGetter(e.param),n=this.createClosure(e.body);return i=>{let s;const a=this.getCurrentScope().data,o=r(),u=Qv.call(a,o),c=a[o];return a[o]=i,s=n(),u?a[o]=c:delete a[o],s}}continueStatementHandler(e){return()=>e.label?new rt(e.label.name):wt}breakStatementHandler(e){return()=>e.label?new ht(e.label.name):xt}switchStatementHandler(e){const r=this.createClosure(e.discriminant),n=e.cases.map(i=>this.switchCaseHandler(i));return()=>{const i=r();let s=!1,a,o,u=0,c=!1;for(let l=0;l<2;l++){for(let h=u;h<n.length;h++){const p=n[h](),f=p.testClosure();if(!c&&f===Ds&&(c=!0,u=h),s||f===i){if(s=!0,o=this.setValue(p.bodyClosure()),o===fe)continue;if(o===xt||(a=o,a instanceof Ve||a instanceof ht||a instanceof rt||a===wt))break}}if(!s&&c)s=!0;else break}return a}}switchCaseHandler(e){const r=e.test?this.createClosure(e.test):()=>Ds,n=this.createClosure({type:"BlockStatement",body:e.consequent});return()=>({testClosure:r,bodyClosure:n})}labeledStatementHandler(e){const r=e.label.name,n=this.createClosure(e.body);return()=>{let i;const s=this.getCurrentScope();return s.labelStack.push(r),i=n(e),i instanceof ht&&i.value===r&&(i=fe),s.labelStack.pop(),i}}debuggerStatementHandler(e){return()=>{debugger;return fe}}createParamNameGetter(e){if(e.type==="Identifier")return()=>e.name;throw this.createInternalThrowError(de.ParamTypeSyntaxError,e.type,e)}createObjectKeyGetter(e){let r;return e.type==="Identifier"?r=()=>e.name:r=this.createClosure(e),function(){return r()}}createMemberKeyGetter(e){return e.computed?this.createClosure(e.property):this.createObjectKeyGetter(e.property)}createObjectGetter(e){switch(e.type){case"Identifier":return()=>this.getScopeDataFromName(e.name,this.getCurrentScope());case"MemberExpression":return this.createClosure(e.object);default:throw this.createInternalThrowError(de.AssignmentTypeSyntaxError,e.type,e)}}createNameGetter(e){switch(e.type){case"Identifier":return()=>e.name;case"MemberExpression":return this.createMemberKeyGetter(e);default:throw this.createInternalThrowError(de.AssignmentTypeSyntaxError,e.type,e)}}varDeclaration(e){const r=this.collectDeclVars;r[e]=void 0}funcDeclaration(e,r){const n=this.collectDeclFuncs;n[e]=r}addDeclarationsToScope(e,r,n){const i=n.data;for(let s in r){const a=r[s];i[s]=a&&a()}for(let s in e)s in i||(i[s]=void 0)}getScopeValue(e,r){return this.getScopeFromName(e,r).data[e]}getScopeDataFromName(e,r){return this.getScopeFromName(e,r).data}getScopeFromName(e,r){let n=r;do if(e in n.data)return n;while(n=n.parent);return this.globalScope}setValue(e){const r=this.callStack.length;return this.isVarDeclMode||r||e===fe||e===xt||e===wt||e instanceof ht||e instanceof rt||(this.value=e instanceof Ve?e.value:e),e}getValue(){return this.value}};et.version=Zv;et.eval=ui;et.Function=li;et.ecmaVersion=5;et.globalContextInFunction=void 0;et.global=Object.create(null);const ty=(()=>{try{return new Function("return 1")(),!0}catch(t){return!1}})();function It(t){if(typeof globalThis>"u")return;const e=globalThis[0]||globalThis;if(e.__simulator__)try{const r=e.__simulator__.engine.provider.errorHandler;r&&r(t)}catch(r){}}function ry(t,e){return new et(e,{rootContext:e,globalContextInFunction:e}).evaluate(`(function($scope){ ${t} }).call(this, this)`)}function Xt(t,e,r=!1,n=!1,i=!1){var s;try{const a=['"use strict";',"var __self = $scope;"];a.push("return ");let o=(t.value||"").trim();o=a.join(`
73
+ `;return i.evaluate(s)}Object.defineProperty(gi,"__IS_FUNCTION_FUNC",{value:!0,writable:!1,enumerable:!1,configurable:!1});let je=class{constructor(e){this.value=e}};class ht{constructor(e){this.value=e}}let rt=class{constructor(e){this.value=e}};class Ct{constructor(e,r=null,n){this.name=n,this.parent=r,this.data=e,this.labelStack=[]}}function dr(){}function ly(t=null,e){return new Ct(Object.create(null),t,e)}function hy(t){return Object.create(t)}const qe={NaN:NaN,Infinity:1/0,undefined:void 0,Object,Array,String,Boolean,Number,Date,RegExp,Error,URIError,TypeError,RangeError,SyntaxError,ReferenceError,Math,parseInt,parseFloat,isNaN,isFinite,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,escape,unescape,eval:di,Function:gi};typeof JSON<"u"&&(qe.JSON=JSON);typeof Promise<"u"&&(qe.Promise=Promise);typeof Set<"u"&&(qe.Set=Set);typeof Map<"u"&&(qe.Map=Map);typeof Symbol<"u"&&(qe.Symbol=Symbol);typeof Proxy<"u"&&(qe.Proxy=Proxy);typeof WeakMap<"u"&&(qe.WeakMap=WeakMap);typeof WeakSet<"u"&&(qe.WeakSet=WeakSet);typeof Reflect<"u"&&(qe.Reflect=Reflect);let et=class jt{constructor(e=jt.global,r={}){this.sourceList=[],this.collectDeclVars=Object.create(null),this.collectDeclFuncs=Object.create(null),this.isVarDeclMode=!1,this.lastExecNode=null,this.isRunning=!1,this.options={ecmaVersion:r.ecmaVersion||jt.ecmaVersion,timeout:r.timeout||0,rootContext:r.rootContext,globalContextInFunction:r.globalContextInFunction===void 0?jt.globalContextInFunction:r.globalContextInFunction,_initEnv:r._initEnv},this.context=e||Object.create(null),this.callStack=[],this.initEnvironment(this.context)}initEnvironment(e){let r;if(e instanceof Ct)r=e;else{let i=null;const s=this.createSuperScope(e);this.options.rootContext&&(i=new Ct(hy(this.options.rootContext),s,Us)),r=new Ct(e,i||s,Hs)}this.globalScope=r,this.currentScope=this.globalScope,this.globalContext=r.data,this.currentContext=r.data,this.collectDeclVars=Object.create(null),this.collectDeclFuncs=Object.create(null),this.execStartTime=Date.now(),this.execEndTime=this.execStartTime;const n=this.options._initEnv;n&&n.call(this)}getExecStartTime(){return this.execStartTime}getExecutionTime(){return this.execEndTime-this.execStartTime}setExecTimeout(e=0){this.options.timeout=e}getOptions(){return this.options}getGlobalScope(){return this.globalScope}getCurrentScope(){return this.currentScope}getCurrentContext(){return this.currentContext}isInterruptThrow(e){return e instanceof Zo||e instanceof De||e instanceof oy}createSuperScope(e){let r=Object.assign({},qe);return Object.keys(r).forEach(n=>{n in e&&delete r[n]}),new Ct(r,null,Fs)}setCurrentContext(e){this.currentContext=e}setCurrentScope(e){this.currentScope=e}evaluate(e=""){let r;if(e)return r=ny(e,{ranges:!0,locations:!0,ecmaVersion:this.options.ecmaVersion||jt.ecmaVersion}),this.evaluateNode(r,e)}appendCode(e){return this.evaluate(e)}evaluateNode(e,r=""){this.value=void 0,this.source=r,this.sourceList.push(r),this.isRunning=!0,this.execStartTime=Date.now(),this.execEndTime=this.execStartTime,this.collectDeclVars=Object.create(null),this.collectDeclFuncs=Object.create(null);const n=this.getCurrentScope(),i=this.getCurrentContext(),s=n.labelStack.concat([]),a=this.callStack.concat([]),o=()=>{this.setCurrentScope(n),this.setCurrentContext(i),n.labelStack=s,this.callStack=a};try{const u=this.createClosure(e);this.addDeclarationsToScope(this.collectDeclVars,this.collectDeclFuncs,this.getCurrentScope()),u()}catch(u){throw u}finally{o(),this.execEndTime=Date.now()}return this.isRunning=!1,this.getValue()}createErrorMessage(e,r,n){let i=e[1].replace("%0",String(r));return n!==null&&(i+=this.getNodePosition(n||this.lastExecNode)),i}createError(e,r){return new r(e)}createThrowError(e,r){return this.createError(e,r)}createInternalThrowError(e,r,n){return this.createError(this.createErrorMessage(e,r,n),e[2])}checkTimeout(){if(!this.isRunning)return!1;const e=this.options.timeout||0;return Date.now()-this.execStartTime>e}getNodePosition(e){return e&&e.loc?` [${e.loc.start.line}:${e.loc.start.column}]`:""}createClosure(e){let r;switch(e.type){case"BinaryExpression":r=this.binaryExpressionHandler(e);break;case"LogicalExpression":r=this.logicalExpressionHandler(e);break;case"UnaryExpression":r=this.unaryExpressionHandler(e);break;case"UpdateExpression":r=this.updateExpressionHandler(e);break;case"ObjectExpression":r=this.objectExpressionHandler(e);break;case"ArrayExpression":r=this.arrayExpressionHandler(e);break;case"CallExpression":r=this.callExpressionHandler(e);break;case"NewExpression":r=this.newExpressionHandler(e);break;case"MemberExpression":r=this.memberExpressionHandler(e);break;case"ThisExpression":r=this.thisExpressionHandler(e);break;case"SequenceExpression":r=this.sequenceExpressionHandler(e);break;case"Literal":r=this.literalHandler(e);break;case"Identifier":r=this.identifierHandler(e);break;case"AssignmentExpression":r=this.assignmentExpressionHandler(e);break;case"FunctionDeclaration":r=this.functionDeclarationHandler(e);break;case"VariableDeclaration":r=this.variableDeclarationHandler(e);break;case"BlockStatement":case"Program":r=this.programHandler(e);break;case"ExpressionStatement":r=this.expressionStatementHandler(e);break;case"EmptyStatement":r=this.emptyStatementHandler(e);break;case"ReturnStatement":r=this.returnStatementHandler(e);break;case"FunctionExpression":r=this.functionExpressionHandler(e);break;case"IfStatement":r=this.ifStatementHandler(e);break;case"ConditionalExpression":r=this.conditionalExpressionHandler(e);break;case"ForStatement":r=this.forStatementHandler(e);break;case"WhileStatement":r=this.whileStatementHandler(e);break;case"DoWhileStatement":r=this.doWhileStatementHandler(e);break;case"ForInStatement":r=this.forInStatementHandler(e);break;case"WithStatement":r=this.withStatementHandler(e);break;case"ThrowStatement":r=this.throwStatementHandler(e);break;case"TryStatement":r=this.tryStatementHandler(e);break;case"ContinueStatement":r=this.continueStatementHandler(e);break;case"BreakStatement":r=this.breakStatementHandler(e);break;case"SwitchStatement":r=this.switchStatementHandler(e);break;case"LabeledStatement":r=this.labeledStatementHandler(e);break;case"DebuggerStatement":r=this.debuggerStatementHandler(e);break;default:throw this.createInternalThrowError(de.NodeTypeSyntaxError,e.type,e)}return(...n)=>{const i=this.options.timeout;if(i&&i>0&&this.checkTimeout())throw this.createInternalThrowError(de.ExecutionTimeOutError,i,null);return this.lastExecNode=e,r(...n)}}binaryExpressionHandler(e){const r=this.createClosure(e.left),n=this.createClosure(e.right);return()=>{const i=r(),s=n();switch(e.operator){case"==":return i==s;case"!=":return i!=s;case"===":return i===s;case"!==":return i!==s;case"<":return i<s;case"<=":return i<=s;case">":return i>s;case">=":return i>=s;case"<<":return i<<s;case">>":return i>>s;case">>>":return i>>>s;case"+":return i+s;case"-":return i-s;case"*":return i*s;case"**":return Math.pow(i,s);case"/":return i/s;case"%":return i%s;case"|":return i|s;case"^":return i^s;case"&":return i&s;case"in":return i in s;case"instanceof":return i instanceof s;default:throw this.createInternalThrowError(de.BinaryOperatorSyntaxError,e.operator,e)}}}logicalExpressionHandler(e){const r=this.createClosure(e.left),n=this.createClosure(e.right);return()=>{switch(e.operator){case"||":return r()||n();case"&&":return r()&&n();default:throw this.createInternalThrowError(de.LogicalOperatorSyntaxError,e.operator,e)}}}unaryExpressionHandler(e){switch(e.operator){case"delete":const r=this.createObjectGetter(e.argument),n=this.createNameGetter(e.argument);return()=>{let s=r();const a=n();return delete s[a]};default:let i;if(e.operator==="typeof"&&e.argument.type==="Identifier"){const s=this.createObjectGetter(e.argument),a=this.createNameGetter(e.argument);i=()=>s()[a()]}else i=this.createClosure(e.argument);return()=>{const s=i();switch(e.operator){case"-":return-s;case"+":return+s;case"!":return!s;case"~":return~s;case"void":return;case"typeof":return typeof s;default:throw this.createInternalThrowError(de.UnaryOperatorSyntaxError,e.operator,e)}}}}updateExpressionHandler(e){const r=this.createObjectGetter(e.argument),n=this.createNameGetter(e.argument);return()=>{const i=r(),s=n();switch(this.assertVariable(i,s,e),e.operator){case"++":return e.prefix?++i[s]:i[s]++;case"--":return e.prefix?--i[s]:i[s]--;default:throw this.createInternalThrowError(de.UpdateOperatorSyntaxError,e.operator,e)}}}objectExpressionHandler(e){const r=[];function n(s){return s.type==="Identifier"?s.name:s.type==="Literal"?s.value:this.throwError(de.ObjectStructureSyntaxError,s.type,s)}const i=Object.create(null);return e.properties.forEach(s=>{const a=s.kind,o=n(s.key);(!i[o]||a==="init")&&(i[o]={}),i[o][a]=this.createClosure(s.value),r.push({key:o,property:s})}),()=>{const s={},a=r.length;for(let o=0;o<a;o++){const u=r[o],c=u.key,l=i[c],h=l.init?l.init():void 0,p=l.get?l.get():function(){},f=l.set?l.set():function(d){};if("set"in l||"get"in l)Object.defineProperty(s,c,{configurable:!0,enumerable:!0,get:p,set:f});else{const d=u.property,m=d.kind;d.key.type==="Identifier"&&d.value.type==="FunctionExpression"&&m==="init"&&!d.value.id&&js(h,d.key.name),s[c]=h}}return s}}arrayExpressionHandler(e){const r=e.elements.map(n=>n&&this.createClosure(n));return()=>{const n=r.length,i=Array(n);for(let s=0;s<n;s++){const a=r[s];a&&(i[s]=a())}return i}}safeObjectGet(e,r,n){return e[r]}createCallFunctionGetter(e){switch(e.type){case"MemberExpression":const r=this.createClosure(e.object),n=this.createMemberKeyGetter(e),i=this.source;return()=>{const a=r(),o=n(),u=this.safeObjectGet(a,o,e);if(!u||!ln(u)){const c=i.slice(e.start,e.end);throw this.createInternalThrowError(de.FunctionUndefinedReferenceError,c,e)}return u.__IS_EVAL_FUNC?c=>u(new it(this),c,!0):u.__IS_FUNCTION_FUNC?(...c)=>u(new it(this),...c):u.bind(a)};default:const s=this.createClosure(e);return()=>{let a="";e.type==="Identifier"&&(a=e.name);const o=s();if(!o||!ln(o))throw this.createInternalThrowError(de.FunctionUndefinedReferenceError,a,e);if(e.type==="Identifier"&&o.__IS_EVAL_FUNC&&a==="eval")return c=>{const l=this.getScopeFromName(a,this.getCurrentScope()),h=l.name===Fs||l.name===Hs||l.name===Us;return o(new it(this),c,!h)};if(o.__IS_EVAL_FUNC)return c=>o(new it(this),c,!0);if(o.__IS_FUNCTION_FUNC)return(...c)=>o(new it(this),...c);let u=this.options.globalContextInFunction;if(e.type==="Identifier"){const c=this.getIdentifierScope(e);c.name===Ms&&(u=c.data)}return o.bind(u)}}}callExpressionHandler(e){const r=this.createCallFunctionGetter(e.callee),n=e.arguments.map(i=>this.createClosure(i));return()=>r()(...n.map(i=>i()))}functionExpressionHandler(e){const r=this,n=this.source,i=this.collectDeclVars,s=this.collectDeclFuncs;this.collectDeclVars=Object.create(null),this.collectDeclFuncs=Object.create(null);const a=e.id?e.id.name:"",o=e.params.length,u=e.params.map(p=>this.createParamNameGetter(p)),c=this.createClosure(e.body),l=this.collectDeclVars,h=this.collectDeclFuncs;return this.collectDeclVars=i,this.collectDeclFuncs=s,()=>{const p=r.getCurrentScope(),f=function(...d){r.callStack.push(`${a}`);const m=r.getCurrentScope(),v=ly(p,`FunctionScope(${a})`);r.setCurrentScope(v),r.addDeclarationsToScope(l,h,v),a&&(v.data[a]=f),v.data.arguments=arguments,u.forEach((_,w)=>{v.data[_()]=d[w]});const S=r.getCurrentContext();r.setCurrentContext(this);const b=c();if(r.setCurrentContext(S),r.setCurrentScope(m),r.callStack.pop(),b instanceof je)return b.value};return js(f,a),Object.defineProperty(f,"length",{value:o,writable:!1,enumerable:!1,configurable:!0}),Object.defineProperty(f,"toString",{value:()=>n.slice(e.start,e.end),writable:!0,configurable:!0,enumerable:!1}),Object.defineProperty(f,"valueOf",{value:()=>n.slice(e.start,e.end),writable:!0,configurable:!0,enumerable:!1}),f}}newExpressionHandler(e){const r=this.source,n=this.createClosure(e.callee),i=e.arguments.map(s=>this.createClosure(s));return()=>{const s=n();if(!ln(s)||s.__IS_EVAL_FUNC){const a=e.callee,o=r.slice(a.start,a.end);throw this.createInternalThrowError(de.IsNotConstructor,o,e)}return s.__IS_FUNCTION_FUNC?s(new it(this),...i.map(a=>a())):new s(...i.map(a=>a()))}}memberExpressionHandler(e){const r=this.createClosure(e.object),n=this.createMemberKeyGetter(e);return()=>{const i=r();let s=n();return i[s]}}thisExpressionHandler(e){return()=>this.getCurrentContext()}sequenceExpressionHandler(e){const r=e.expressions.map(n=>this.createClosure(n));return()=>{let n;const i=r.length;for(let s=0;s<i;s++){const a=r[s];n=a()}return n}}literalHandler(e){return()=>e.regex?new RegExp(e.regex.pattern,e.regex.flags):e.value}identifierHandler(e){return()=>{const r=this.getCurrentScope(),n=this.getScopeDataFromName(e.name,r);return this.assertVariable(n,e.name,e),n[e.name]}}getIdentifierScope(e){const r=this.getCurrentScope();return this.getScopeFromName(e.name,r)}assignmentExpressionHandler(e){e.left.type==="Identifier"&&e.right.type==="FunctionExpression"&&!e.right.id&&(e.right.id={type:"Identifier",name:e.left.name});const r=this.createObjectGetter(e.left),n=this.createNameGetter(e.left),i=this.createClosure(e.right);return()=>{const s=r(),a=n(),o=i();switch(e.operator!=="="&&this.assertVariable(s,a,e),e.operator){case"=":return s[a]=o;case"+=":return s[a]+=o;case"-=":return s[a]-=o;case"*=":return s[a]*=o;case"**=":return s[a]=Math.pow(s[a],o);case"/=":return s[a]/=o;case"%=":return s[a]%=o;case"<<=":return s[a]<<=o;case">>=":return s[a]>>=o;case">>>=":return s[a]>>>=o;case"&=":return s[a]&=o;case"^=":return s[a]^=o;case"|=":return s[a]|=o;default:throw this.createInternalThrowError(de.AssignmentExpressionSyntaxError,e.type,e)}}}functionDeclarationHandler(e){if(e.id){const r=this.functionExpressionHandler(e);Object.defineProperty(r,"isFunctionDeclareClosure",{value:!0,writable:!1,configurable:!1,enumerable:!1}),this.funcDeclaration(e.id.name,r)}return()=>fe}getVariableName(e){if(e.type==="Identifier")return e.name;throw this.createInternalThrowError(de.VariableTypeSyntaxError,e.type,e)}variableDeclarationHandler(e){let r;const n=[];for(let i=0;i<e.declarations.length;i++){const s=e.declarations[i];this.varDeclaration(this.getVariableName(s.id)),s.init&&n.push({type:"AssignmentExpression",operator:"=",left:s.id,right:s.init})}return n.length&&(r=this.createClosure({type:"BlockStatement",body:n})),()=>{if(r){const i=this.isVarDeclMode;this.isVarDeclMode=!0,r(),this.isVarDeclMode=i}return fe}}assertVariable(e,r,n){if(e===this.globalScope.data&&!(r in e))throw this.createInternalThrowError(de.VariableUndefinedReferenceError,r,n)}programHandler(e){const r=e.body.map(n=>this.createClosure(n));return()=>{let n=fe;for(let i=0;i<r.length;i++){const s=r[i],a=this.setValue(s());if(a!==fe&&(n=a,n instanceof je||n instanceof ht||n instanceof rt||n===xt||n===wt))break}return n}}expressionStatementHandler(e){return this.createClosure(e.expression)}emptyStatementHandler(e){return()=>fe}returnStatementHandler(e){const r=e.argument?this.createClosure(e.argument):dr;return()=>new je(r())}ifStatementHandler(e){const r=this.createClosure(e.test),n=this.createClosure(e.consequent),i=e.alternate?this.createClosure(e.alternate):(()=>fe);return()=>r()?n():i()}conditionalExpressionHandler(e){return this.ifStatementHandler(e)}forStatementHandler(e){let r=dr,n=e.test?this.createClosure(e.test):()=>!0,i=dr;const s=this.createClosure(e.body);return e.type==="ForStatement"&&(r=e.init?this.createClosure(e.init):r,i=e.update?this.createClosure(e.update):dr),a=>{let o,u=fe,c=e.type==="DoWhileStatement";for(a&&a.type==="LabeledStatement"&&(o=a.label.name),r();c||n();i()){c=!1;const l=this.setValue(s());if(!(l===fe||l===wt)){if(l===xt)break;if(u=l,u instanceof rt&&u.value===o){u=fe;continue}if(u instanceof je||u instanceof ht||u instanceof rt)break}}return u}}whileStatementHandler(e){return this.forStatementHandler(e)}doWhileStatementHandler(e){return this.forStatementHandler(e)}forInStatementHandler(e){let r=e.left;const n=this.createClosure(e.right),i=this.createClosure(e.body);return e.left.type==="VariableDeclaration"&&(this.createClosure(e.left)(),r=e.left.declarations[0].id),s=>{let a,o=fe,u;s&&s.type==="LabeledStatement"&&(a=s.label.name);const c=n();for(u in c){this.assignmentExpressionHandler({type:"AssignmentExpression",operator:"=",left:r,right:{type:"Literal",value:u}})();const l=this.setValue(i());if(!(l===fe||l===wt)){if(l===xt)break;if(o=l,o instanceof rt&&o.value===a){o=fe;continue}if(o instanceof je||o instanceof ht||o instanceof rt)break}}return o}}withStatementHandler(e){const r=this.createClosure(e.object),n=this.createClosure(e.body);return()=>{const i=r(),s=this.getCurrentScope(),a=new Ct(i,s,Ms);this.setCurrentScope(a);const o=this.setValue(n());return this.setCurrentScope(s),o}}throwStatementHandler(e){const r=this.createClosure(e.argument);return()=>{throw this.setValue(void 0),r()}}tryStatementHandler(e){const r=this.createClosure(e.block),n=e.handler?this.catchClauseHandler(e.handler):null,i=e.finalizer?this.createClosure(e.finalizer):null;return()=>{const s=this.getCurrentScope(),a=this.getCurrentContext(),o=s.labelStack.concat([]),u=this.callStack.concat([]);let c=fe,l,h;const p=()=>{this.setCurrentScope(s),this.setCurrentContext(a),s.labelStack=o,this.callStack=u};try{c=this.setValue(r()),c instanceof je&&(l=c)}catch(f){if(p(),this.isInterruptThrow(f))throw f;if(n)try{c=this.setValue(n(f)),c instanceof je&&(l=c)}catch(d){if(p(),this.isInterruptThrow(d))throw d;h=d}}if(i)try{c=i(),c instanceof je&&(l=c)}catch(f){if(p(),this.isInterruptThrow(f))throw f;h=f}if(h)throw h;return l||c}}catchClauseHandler(e){const r=this.createParamNameGetter(e.param),n=this.createClosure(e.body);return i=>{let s;const a=this.getCurrentScope().data,o=r(),u=uy.call(a,o),c=a[o];return a[o]=i,s=n(),u?a[o]=c:delete a[o],s}}continueStatementHandler(e){return()=>e.label?new rt(e.label.name):wt}breakStatementHandler(e){return()=>e.label?new ht(e.label.name):xt}switchStatementHandler(e){const r=this.createClosure(e.discriminant),n=e.cases.map(i=>this.switchCaseHandler(i));return()=>{const i=r();let s=!1,a,o,u=0,c=!1;for(let l=0;l<2;l++){for(let h=u;h<n.length;h++){const p=n[h](),f=p.testClosure();if(!c&&f===Vs&&(c=!0,u=h),s||f===i){if(s=!0,o=this.setValue(p.bodyClosure()),o===fe)continue;if(o===xt||(a=o,a instanceof je||a instanceof ht||a instanceof rt||a===wt))break}}if(!s&&c)s=!0;else break}return a}}switchCaseHandler(e){const r=e.test?this.createClosure(e.test):()=>Vs,n=this.createClosure({type:"BlockStatement",body:e.consequent});return()=>({testClosure:r,bodyClosure:n})}labeledStatementHandler(e){const r=e.label.name,n=this.createClosure(e.body);return()=>{let i;const s=this.getCurrentScope();return s.labelStack.push(r),i=n(e),i instanceof ht&&i.value===r&&(i=fe),s.labelStack.pop(),i}}debuggerStatementHandler(e){return()=>{debugger;return fe}}createParamNameGetter(e){if(e.type==="Identifier")return()=>e.name;throw this.createInternalThrowError(de.ParamTypeSyntaxError,e.type,e)}createObjectKeyGetter(e){let r;return e.type==="Identifier"?r=()=>e.name:r=this.createClosure(e),function(){return r()}}createMemberKeyGetter(e){return e.computed?this.createClosure(e.property):this.createObjectKeyGetter(e.property)}createObjectGetter(e){switch(e.type){case"Identifier":return()=>this.getScopeDataFromName(e.name,this.getCurrentScope());case"MemberExpression":return this.createClosure(e.object);default:throw this.createInternalThrowError(de.AssignmentTypeSyntaxError,e.type,e)}}createNameGetter(e){switch(e.type){case"Identifier":return()=>e.name;case"MemberExpression":return this.createMemberKeyGetter(e);default:throw this.createInternalThrowError(de.AssignmentTypeSyntaxError,e.type,e)}}varDeclaration(e){const r=this.collectDeclVars;r[e]=void 0}funcDeclaration(e,r){const n=this.collectDeclFuncs;n[e]=r}addDeclarationsToScope(e,r,n){const i=n.data;for(let s in r){const a=r[s];i[s]=a&&a()}for(let s in e)s in i||(i[s]=void 0)}getScopeValue(e,r){return this.getScopeFromName(e,r).data[e]}getScopeDataFromName(e,r){return this.getScopeFromName(e,r).data}getScopeFromName(e,r){let n=r;do if(e in n.data)return n;while(n=n.parent);return this.globalScope}setValue(e){const r=this.callStack.length;return this.isVarDeclMode||r||e===fe||e===xt||e===wt||e instanceof ht||e instanceof rt||(this.value=e instanceof je?e.value:e),e}getValue(){return this.value}};et.version=cy;et.eval=di;et.Function=gi;et.ecmaVersion=5;et.globalContextInFunction=void 0;et.global=Object.create(null);const py=(()=>{try{return new Function("return 1")(),!0}catch(t){return!1}})();function It(t){if(typeof globalThis>"u")return;const e=globalThis[0]||globalThis;if(e.__simulator__)try{const r=e.__simulator__.engine.provider.errorHandler;r&&r(t)}catch(r){}}function fy(t,e){return new et(e,{rootContext:e,globalContextInFunction:e}).evaluate(`(function($scope){ ${t} }).call(this, this)`)}function Xt(t,e,r=!1,n=!1,i=!1){var s;try{const a=['"use strict";',"var __self = $scope;"];a.push("return ");let o=(t.value||"").trim();o=a.join(`
74
74
  `)+o;const u=i?`
75
75
  ${o}
76
- `:`with(${r?"{}":"$scope || {}"}) { ${o} }`;if(ty){const c=new Function("$scope",u).call(e,e);return typeof c=="function"?c.bind(e):c}else{const c=ry(u,e);return typeof c=="function"?c.bind(e):c}}catch(a){if(ft.error("parseExpression.error",a,t,(s=e==null?void 0:e.__self)!=null?s:e),a&&(a.info=t.value),It(a),n)throw a}}function Ae(t,e,r=!1,n=!1,i=!1){var a;const s=Xt(t,e,r,n,i);if(typeof s!="function"&&(ft.error("parseFunction.error","not a function",t,(a=e==null?void 0:e.__self)!=null?a:e),n))throw new Error(`"${t.value}" not a function`);return s}function he(t){return t&&t.type==="JSExpression"}function _e(t){return typeof t=="object"&&t&&t.type==="JSFunction"}const ny={session:!1,authKey:"Authorization",storageKey:"ACCESS_STORAGE",storagePrefix:"__VTJ_",unauthorized:void 0,auth:"/#/login",redirectParam:"r",unauthorizedCode:401,unauthorizedMessage:"登录已经失效,请重新登录!",noPermissionMessage:"无权限访问该页面",appName:"",statusKey:"code"},iy=Symbol("access");class Wo{constructor(e){H(this,"options");H(this,"data",null);H(this,"mode",se.Raw);H(this,"interceptResponse",!0);H(this,"isTipShowing",!1);this.options=Object.assign({},ny,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!==se.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&&(en.save(r,e,{type:i?"session":"local",prefix:n}),i&&rn.set(s,this.data.token))}clear(){const{storageKey:e,storagePrefix:r,session:n,authKey:i}=this.options;this.data=null,en.remove(e,{type:n?"session":"local",prefix:r}),n&&rn.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||{};if(typeof e=="function")return e(n);const i=ws(e);return Array.isArray(n)?i.every(s=>n.includes(s)||n.includes(r+"."+s)):i.every(s=>n[s]||n[r+"."+s])}some(e){const{appName:r}=this.options,{permissions:n={}}=this.data||{},i=ws(e);return Array.isArray(n)?i.some(s=>n.includes(s)||n.includes(r+"."+s)):i.some(s=>n[s]||n[r+"."+s])}install(e){e.config.globalProperties.$access=this,e.provide(iy,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=>xs(i,r));try{this.data=JSON.parse(n.join(""))}catch(i){console.warn(i)}return}if(typeof e=="string")try{const n=r?xs(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,session:n}=this.options,i=en.get(e,{type:n?"session":"local",prefix:r});this.setData(i||null)}isLogined(){const{session:e,authKey:r}=this.options;return e&&r?!!rn.get(r):!!this.getToken()}hasRoutePermission(e){if(e.name===yr){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 M(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),ge(i)?(i(),r(!1)):Ze(i)?r(i):r(!1)}}r(!1),yield Kt(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 M(this,null,function*(){const{unauthorizedMessage:r="登录已失效"}=this.options;this.isUnauthorized(e)&&(yield this.showTip(r))&&this.toLogin()})}showTip(e){return M(this,null,function*(){var n,i,s,a;const{alert:r}=this.options;return this.isTipShowing?!1:r?(this.isTipShowing=!0,yield Kt(150),yield(i=(n=r(e,{title:"提示",type:"warning"}))==null?void 0:n.catch(()=>!0))==null?void 0:i.finally(()=>{this.isTipShowing=!1})):((a=(s=globalThis.alert)==null?void 0:s.call(globalThis,e))!=null||console.warn(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=>M(this,null,function*(){return this.interceptResponse&&(yield this.showUnauthorizedAlert(r)),r}),r=>M(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:a,alert:o}=t;let u=null;return{request:Zn({adapter:t.axiosAdapter,settings:F({type:"form",validSuccess:!1,originResponse:!0,loading:!0,validate:c=>{var l,h;return((l=c.data)==null?void 0:l.code)===0||!!((h=c.data)!=null&&h.success)},failMessage:!0,showError:c=>{e&&e(c||"未知错误")},showLoading:()=>{u&&u.close(),r&&(u=r())},hideLoading:()=>{u&&(u.close(),u=null)}},n)}),jsonp:lo,notify:e,loading:r,useTitle:a,alert:o,startupComponent:i,access:s?new Wo(F({alert:o},s)):void 0}}function ay(t,e){const{jsonp:r,request:n}=e;if(t.method==="jsonp")return(i={})=>r(t.url,ue(F({},t.jsonpOptions),{query:i}));{const i=t.headers?Xt(t.headers,{},!0):void 0,s={url:t.url,method:t.method,settings:ue(F({},t.settings),{headers:i})};return(a,o)=>(delete s.data,n.send(Bt(s,o||{},{data:a})))}}function oy(t,e){const{metaQuery:r}=e;if(!r)return;const{code:n,queryCode:i}=t;return(s,a)=>{if(!r){console.warn("adapter.metaQuery is not defined!");return}return r(n,i,s,a)}}function cy(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]=oy(i,r);return n}function uy(){return M(this,arguments,function*(t=[],e=globalThis){const r=Jt(e);r&&(Go(e),t.forEach(n=>hy(r,n)))})}function ly(t,e=globalThis){const r=_e(t.mockTemplate)&&t.mockTemplate.value?Ae(t.mockTemplate,{},!0):void 0,n=Jt(e);return(...i)=>M(null,null,function*(){let s={};if(r)try{s=yield r.apply(r,i)}catch(a){ft.warn("模拟数据模版异常",a)}return n==null?void 0:n.mock(s)})}function hy(t,e){if(!e.mock)return;const{url:r,mockTemplate:n,method:i="get",settings:s={}}=e;if(r&&n)try{const a=Gt(r)?new URL(r).pathname:r,o=Yn(`(.*)${a}`,[],{end:!1}),u=new RegExp(o.source+"([?#].*)?$",o.flags),c=gm(a,{decode:decodeURIComponent}),l=Xt(n,{},!0);t.mock(u,i.toLowerCase(),h=>{var S;const p=Ft.parse(h.url)||{},f=s.type||"form";let d=h.body instanceof FormData?Bm(h.body):h.body;if(typeof d=="string")if(f==="json")try{d=JSON.parse(d)}catch(b){console.warn("[Mock.mock]",b)}else d=Ft.parse(d);const m=Gt(h.url)?new URL(h.url).pathname:h.url.split("?")[0],v=(S=c(m))==null?void 0:S.params;Object.assign(h,{data:d,params:v,query:p});try{return t.mock(l(h))}catch(b){return console.warn("[mockApi]",u,h,b),null}})}catch(a){console.warn("mockApi",a)}}function Go(t=globalThis){const e=Jt(t);e&&(e._mocked={})}class py{constructor(){H(this,"__props",{});H(this,"__events",{});H(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 qr(e,r)}isNodeEqual(e,r){if(e===r)return!0;if(!e||!r)return!1;const n=o=>!o||typeof o!="object"?[]:Object.keys(o).filter(u=>ge(o[u])),i=o=>{if(!o||typeof o!="object")return o;const u={};for(const c in o)if(Object.prototype.hasOwnProperty.call(o,c)){const l=o[c];ge(l)||(u[c]=l)}return u},s=n(e).sort(),a=n(r).sort();return qr(s,a)?qr(i(e),i(r)):!1}clear(){this.__props={},this.__events={},this.__nodes={}}}class Vs{constructor(e){H(this,"__cache",new py);H(this,"__id",null);H(this,"__mode");H(this,"__instance",null);H(this,"__contextRefs",{});H(this,"__refs",{});H(this,"__refCaches",{});H(this,"__refGenerations",{});H(this,"context",{});H(this,"state",{});H(this,"props",{});H(this,"$props",{});H(this,"$state",{});H(this,"$refs",{});H(this,"$el",null);H(this,"$emit",null);H(this,"$nextTick",null);H(this,"$parent",null);H(this,"$root",null);H(this,"$attrs",null);H(this,"$slots",null);H(this,"$watch",null);H(this,"$options",null);H(this,"$forceUpdate",null);H(this,"$components",{});H(this,"$libs",{});H(this,"$apis",{});H(this,"$provider",null);H(this,"$uni",null);H(this,"$getApp",null);H(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=Tr){var a,o,u,c;const n=r.getCurrentInstance();if(!n)return;this.__refs={},this.__refCaches={},this.$refs={},this.context={},this.__contextRefs={},this.__instance=n.proxy;const{state:i}=this,s=n.appContext.config.globalProperties;Object.assign(this,s,e||{}),this.$uni=(o=(a=this.$libs.UniH5)==null?void 0:a.uni)!=null?o:null,this.$getApp=(c=(u=this.$libs.UniH5)==null?void 0:u.getApp)!=null?c:null,this.$state=this.state=i,this.__proxy(),r.onMounted(()=>{this.__proxy()}),r.onUnmounted(()=>{this.__cleanup()}),r.onBeforeUpdate(()=>{if(this.__proxy(),this.$props)for(const l of Object.keys(this.$props))this[l]=this.$props[l];this.__reset()})}__proxy(){if(!this.__instance)return;const e=this.__instance;Is.forEach(r=>{var n;this[r]=e[r]||((n=e._)==null?void 0:n[r.replace("$","")])||null})}__cleanup(){Is.forEach(e=>{this[e]=null}),this.__reset(),this.__cache.clear(),this.__refGenerations={}}__reset(){this.__refs={},this.__refCaches={},this.$refs={},this.__contextRefs={},this.context={}}__parseFunction(e){var r;if(e)if(this.__mode===se.Runtime){const{id:n,type:i}=e,s=n&&(r=this.__transform[n])!=null?r:e.value;return Ae({type:i,value:s},this)}else return Ae(e,this)}__parseExpression(e){var r;if(e)if(this.__mode===se.Runtime){const{id:n,type:i}=e,s=n&&(r=this.__transform[n])!=null?r:e.value;return Xt({type:i,value:s},this)}else return Xt(e,this)}__ref(e=null,r){if(this.__mode===se.VNode)return;e&&e!==this.__id&&(this.__contextRefs[e]=this);let n=e?this.__refCaches[e]:null;if(n)return n;const i=e?(this.__refGenerations[e]||0)+1:0;return e&&(this.__refGenerations[e]=i),n=s=>M(this,null,function*(){var o,u;if(yield Kt(0),e&&this.__refGenerations[e]!==i)return;let a=(s==null?void 0:s.$vtjEl)||(s==null?void 0:s.$el)||((u=(o=s==null?void 0:s._)==null?void 0:o.vnode)==null?void 0:u.el)||s;if(!a){typeof r=="string"&&(delete this.$refs[r],this[r]&&yi(this[r])&&(this[r].value=null),e&&delete this.__refs[e]);return}return a.nodeType===3&&a.nextSibling&&(a=a.nextSibling),a.__vtj__=e,se.Design===this.__mode&&(a.__context__=this,a.draggable=!0),e&&(this.__refs[e]=this.__getRefEl(this.__refs,e,s)),typeof r=="function"?r(s):r&&(this.$refs[r]=this.__getRefEl(this.$refs,r,s),this[r]&&yi(this[r])&&(this[r].value=this.$refs[r])),s}),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=F(F({},this.context),e),n=ue(F({},r),{context:r});return n.context.__proto__=this.context,n.__proto__=this,n}}const un=Symbol("vtjBlockChain");function $n(t){var p,d;const{Vue:e=Tr,UniApp:r={},mode:n=se.Runtime,components:i={},libs:s={},apis:a={},loader:o}=t,u=e.computed(()=>t.dsl),c={$components:i,$libs:s,$apis:a},l=new Vs({mode:n,dsl:u.value,attrs:c}),h=e.defineComponent(F({name:u.value.name,__scopeId:u.value.id?`data-v-${u.value.id}`:void 0,props:F({},dy((p=u.value.props)!=null?p:[],l)),setup(m,v){return M(this,null,function*(){var O,D,U,j,q,z,A,P,$;const S=u.value.id,b=u.value.name,_=e.inject(un,null);if(S&&_&&_.has(S)){const R=`检测到区块循环引用: ${b}(${S})`;return console.warn(`[VTJ Renderer] ${R},已中断渲染以防止浏览器崩溃`),It(new Error(R)),e.provide(un,_),{__vtjCircular:!0}}const w=new Set(_||[]);S&&w.add(S),e.provide(un,w);const x=new Vs({mode:n,dsl:u.value,attrs:c});x.$props=x.props=m,u.value.id&&Pr(t.window||globalThis,u.value.id,u.value.css||"",!0);const y=u.value.apiMode==="composition";x.$state=x.state=gy(e,(O=u.value.state)!=null?O:{},x);const T=y?xy(e,(D=u.value.refs)!=null?D:{},x):{},I=y?wy(e,(U=u.value.reactives)!=null?U:{},x):{},V=my(e,(j=u.value.computed)!=null?j:{},x),E=vy((q=u.value.methods)!=null?q:{},x),C=yy(e,u.value.inject,x),L=by(u.value.dataSources||{},x),N=F(F(F(F(F(F(F({},m),T),I),C),V),E),L);x.setup(N,e);const B=y?Sy((z=u.value.composables)!=null?z:[],x):{};if(Object.assign(x,B),e.onMounted(()=>{js(x,l)}),y&&u.value.props&&u.value.props.length>0){const R=new Set([...Object.keys(T),...Object.keys(I),...Object.keys(V)]);for(const te of u.value.props){const me=typeof te=="string"?te:te.name;R.has(me)||Object.defineProperty(x,me,{get(){return this.$props[me]},set(Oe){},configurable:!0,enumerable:!0})}}if(_y(e,(A=u.value.watch)!=null?A:[],x),v&&typeof v.expose=="function"){const R={vtj:x};for(const te of u.value.expose||[])Object.defineProperty(R,te,{get:()=>x[te],enumerable:!0,configurable:!0});v.expose(R)}if(y){const R=Ty(e,(P=u.value.lifeCycles)!=null?P:{},x,r);if(Ey(e,($=u.value.provide)!=null?$:{},x),yield Promise.all(R),u.value.setup){const te=x.__parseFunction(u.value.setup);if(ge(te))try{yield te()}catch(me){console.warn("[VTJ] Composition setup 执行失败",me)}}}return F(F(F(F(F(F(F(F({vtj:x,state:x.$state},m),T),I),V),E),C),L),B)})},emits:fy(u.value.emits),expose:["vtj",...u.value.expose||[]],render(){if(this.__vtjCircular)return null;const m=this.vtj||l,v=u.value;if(!v.nodes)return null;const S=v.nodes||[];let b;if(S.length===1)b=kt(S[0],m,e,o,S);else{const _=S.map(w=>kt(w,m,e,o,S)).flat();b=e.createVNode("div",{},_)}return js(m,l),b}},u.value.apiMode!=="composition"?Cy((d=u.value.lifeCycles)!=null?d:{},l):{}));return{renderer:e.markRaw(h),context:l,loader:o}}function js(t,e){t!==e&&Object.assign(e,t)}function fy(t=[]){return t.map(e=>Ze(e)?e:e.name)}function dy(t=[],e){const r=n=>n?(Array.isArray(n)?n:[n]).map(i=>nv[i]):void 0;return t.map(n=>Ze(n)?{name:n}:{name:n.name,type:n.type,required:n.required,default:he(n.default)?e.__parseExpression(n.default):n.default}).reduce((n,i)=>{const s=i.default;return n[i.name]={type:r(i.type),required:i.required,default:s!==null&&typeof s=="object"?()=>xn(s):s},n},{})}function gy(t,e,r){return t.reactive(Object.keys(e||{}).reduce((n,i)=>{let s=e[i];return he(s)?s=r.__parseExpression(s):_e(s)&&(s=r.__parseFunction(s)),n[i]=s,n},{}))}function my(t,e,r){return Object.entries(e!=null?e:{}).reduce((n,[i,s])=>{if(_e(s))n[i]=t.computed(r.__parseFunction(s));else{const a=r.__parseExpression(s);a&&typeof a=="object"&&(ge(a.get)&&(a.get=a.get.bind(r)),ge(a.set)&&(a.set=a.set.bind(r))),n[i]=t.computed(a)}return n},{})}function vy(t,e){return Object.entries(t!=null?t:{}).reduce((r,[n,i])=>(r[n]=e.__parseFunction(i),r),{})}function yy(t,e=[],r){return e.reduce((n,i)=>{var c;const{name:s,from:a}=i||{},o=he(a)?r.__parseExpression(a)||s:a!=null?a:s,u=he(i.default)?r.__parseExpression(i.default):(c=i.default)!=null?c:null;return n[s]=t.inject(o,u),n},{})}function by(t,e){return Object.keys(t).reduce((r,n)=>{const i=t[n];if(i.type==="mock")r[n]=ly(i);else if(i.ref){const s=e.$apis[i.ref],a=_e(i.transform)?i.transform.value?e.__parseFunction(i.transform):void 0:i.transform;r[n]=(...o)=>M(null,null,function*(){const u=yield s.apply(e,o);return a?a(u):u})}return r},{})}function _y(t,e=[],r){e.forEach(n=>{t.watch(r.__parseExpression(n.source),r.__parseFunction(n.handler),{deep:n.deep,immediate:n.immediate,flush:n.flush})})}function xy(t,e,r){return Object.entries(e).reduce((n,[i,s])=>{const a=he(s)?r.__parseExpression(s):s;return n[i]=t.ref(a),n},{})}function wy(t,e,r){return Object.entries(e).reduce((n,[i,s])=>{const a=he(s)?r.__parseExpression(s):s;return n[i]=t.reactive(a!=null?a:{}),n},{})}function Sy(t,e){return t.reduce((r,n)=>{try{let i;if(he(n.composable)?i=e.__parseExpression(n.composable):Ze(n.composable)&&(i=e.$libs[n.composable]),ge(i)){const s=(n.args||[]).map(o=>he(o)?e.__parseExpression(o):o),a=i(...s);if(n.destructure&&n.destructure.length>0)for(const o of n.destructure)r[o]=a==null?void 0:a[o];else r[n.name]=a}}catch(i){if(e.__mode===se.Design)console.warn("[VTJ] composable 执行失败,已降级处理",i),r[n.name]={};else throw console.warn("[VTJ] composable 执行失败",i),It(i),i}return r},{})}function Ey(t,e,r){Object.entries(e).forEach(([n,i])=>{let s=i;he(i)?s=r.__parseExpression(i):_e(i)&&(s=r.__parseFunction(i)),t.provide(n,s)})}function Ty(t,e,r,n={}){const i=[],s={beforeMount:"onBeforeMount",mounted:"onMounted",beforeUpdate:"onBeforeUpdate",updated:"onUpdated",beforeUnmount:"onBeforeUnmount",unmounted:"onUnmounted",errorCaptured:"onErrorCaptured",renderTracked:"onRenderTracked",renderTriggered:"onRenderTriggered",activated:"onActivated",deactivated:"onDeactivated"};for(const[a,o]of Object.entries(e)){if(a==="created"||a==="beforeCreate"){const l=r.__parseFunction(o);if(ge(l))try{i.push(Promise.resolve(l()).catch(h=>{console.warn(`[VTJ] Composition 生命周期 "${a}" 执行失败`,h),It(h)}))}catch(h){console.warn(`[VTJ] Composition 生命周期 "${a}" 执行失败`,h),It(h)}continue}const u=s[a]||a,c=t[u]||n[u];if(c&&ge(c)){const l=r.__parseFunction(o);ge(l)&&c(()=>M(null,null,function*(){try{yield Kt(0),yield l()}catch(h){console.warn(`[VTJ] Composition 生命周期 "${a}" 执行失败`,h),It(h)}}))}else console.warn(`[VTJ] 无效的 Composition 生命周期钩子 "${a}"`)}return i}function Cy(t,e){return Object.entries(t!=null?t:{}).reduce((r,[n,i])=>(r[n]=function(){return M(this,null,function*(){const s=((this==null?void 0:this.vtj)||e).__parseFunction(i);ge(s)&&(yield Kt(0),yield s())})},r),{})}const Ay=Object.assign((t,e)=>e,{clear:()=>{}});function Ko(r){return M(this,arguments,function*(t,e=globalThis){const{urls:n=[],library:i}=t,s=n.filter(o=>Or(o));if(s.length===0||!i)return null;const a=n.filter(o=>kr(o));return a.length&&fo(a,e),yield go(s,i,e).catch(o=>(console.warn("loadScriptUrl error",s,i,o),null))})}function Iy(t){const{getDsl:e,getDslByUrl:r,options:n}=t,i=new Sm,s={},a={},o=(u,c,l,h=Tr)=>{if(!l||typeof l=="string")return c;let p="";if(l.type==="Schema"&&l.id)return p=l.id+"_"+u,a[p]||(a[p]=h.defineAsyncComponent(()=>M(null,null,function*(){const f=s[l.id]||(yield i.add(l.id,()=>e(l.id)));return f&&(f.name=c,s[l.id]=f),f?$n(ue(F({Vue:h,mode:se.Runtime},n),{dsl:xn(f),loader:o})).renderer:null})));if(l.type==="UrlSchema"&&l.url)return p=l.url+"_"+u,a[p]||(a[p]=h.defineAsyncComponent(()=>M(null,null,function*(){const f=s[l.url]||(yield r(l.url));return f&&(f.name=c,s[l.url]=f),f?$n(ue(F({},n),{Vue:h,dsl:xn(f),mode:se.Runtime,loader:o})).renderer:null})));if(l.type==="Plugin"){let f=l.library?s[l.library]:null;return f||(f=s[l.library||Symbol()]=h.defineAsyncComponent(()=>M(null,null,function*(){return(yield Ko(l,n.window))||(console.warn("getPlugin result is null",l),null)})),f)}return c};return Object.assign(o,{clear(){for(const u of Reflect.ownKeys(s))delete s[u];for(const u of Reflect.ownKeys(a))delete a[u];i.clearAllCache()}})}function kt(t,e,r=Tr,n=Ay,i=[],s=!1,a=0){var w;if(!t||!t.name||t.invisible)return null;const o=(w=r.getCurrentInstance())==null?void 0:w.appContext,{id:u=null,directives:c=[]}=t,{vIf:l,vElseIf:h,vElse:p,vFor:f,vShow:d,vModels:m,vBind:v,vHtml:S,others:b}=Jo(c);if(!s&&(h||p))return null;if(l&&!ky(l,e))return By(t,e,r,n,i);const _=(x,y=0)=>{var $,R,te,me;const T=x.$components,I=(()=>{var Le,pe,Pe,tt;if(t.name==="component")return Oy(x,(Le=t.props)==null?void 0:Le.is);if(t.name==="slot")return t.name;const ne=n(`${t.id}_${y}`,t.name,t.from,r);return Ze(ne)?mv(ne)||vv(ne)?ne:(tt=(Pe=T[ne])!=null?Pe:(pe=o==null?void 0:o.app)==null?void 0:pe.component(ne))!=null?tt:ne:ne})(),V=Py(u,($=t.props)!=null?$:{},x),E=Ny(r,t.id,(R=t.events)!=null?R:{},x);if(t.name==="slot")return Ly(r,t,V,x,n);v&&Object.assign(V,x.__parseExpression(v.value)),d&&(V.style=Object.assign((te=V.style)!=null?te:{},jy(d,x))),S&&Object.assign(V,My(S,x)),m.forEach(ne=>{ho.includes(t.name)?Object.assign(V,Fy(ne,x,t.name,V.type,V.value)):Object.assign(V,Uy(ne,x))});const C=Hy(r,(me=t.children)!=null?me:[],x,n,t),L=x!=null&&x.__id?`data-v-${x.__id}`:void 0,N=L?{[L]:""}:{},B=x.__mode===se.Design?{"data-vtj":u}:{},Oe=V,{ref:O}=Oe,D=di(Oe,["ref"]),U={},j={};for(const ne of Object.keys(D))ne.startsWith("on")?U[ne]=D[ne]:j[ne]=D[ne];const q=`${u}_${y}`,z=F(F(F({key:q},N),B),j);x.__cache.isNodeEqual(z,x.__cache.getNode(q))||x.__cache.setNode(q,z);let A=r.createVNode(I,F(F(ue(F({},x.__cache.getNode(q)||z),{ref:O}),U),E),C);const P=o?Ry(o,b,x):[];return P.length&&(A=r.withDirectives(A,P)),A};return f?Wy(f,_,e):_(e,a)}function Ry(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 a=[s];return i.value&&a.push(r.__parseExpression(i.value)),i.arg&&a.push(i.arg),i.modifiers&&a.push(i.modifiers),a}).filter(i=>!!i)}function Jo(t=[]){const e=t.find(l=>je(l.name)==="vIf"),r=t.find(l=>je(l.name)==="vElseIf"),n=t.find(l=>je(l.name)==="vElse"),i=t.find(l=>je(l.name)==="vFor"),s=t.find(l=>je(l.name)==="vShow"),a=t.find(l=>je(l.name)==="vBind"),o=t.find(l=>je(l.name)==="vHtml"),u=t.filter(l=>je(l.name)==="vModel"),c=t.filter(l=>!rv.includes(je(l.name)));return{vIf:e,vElseIf:r,vElse:n,vFor:i,vShow:s,vModels:u,vBind:a,others:c,vHtml:o}}function ky(t,e){return!!e.__parseExpression(t.value)}function Oy(t,e){return e?he(e)?t.__parseExpression(e):e:"div"}function Py(t,e,r){const n=Nn(e,r);return n.ref=r.__ref(t,n.ref),n}function Nn(t,e){return t===null?null:he(t)?e.__parseExpression(t):_e(t)?e.__parseFunction(t):Array.isArray(t)?t.map(r=>Nn(r,e)):typeof t=="object"?Object.keys(t||{}).reduce((r,n)=>{let i=t[n];return r[n]=Nn(i,e),r},{}):t}function Dy(t,e){return r=>{var n;((n=r==null?void 0:r.key)==null?void 0:n.toLowerCase())===e.toLowerCase()&&t(r)}}function $y(t){return yv(t.value)?t:bv(t.value)?{type:"JSFunction",value:`(...args) => (() => {
76
+ `:`with(${r?"{}":"$scope || {}"}) { ${o} }`;if(py){const c=new Function("$scope",u).call(e,e);return typeof c=="function"?c.bind(e):c}else{const c=fy(u,e);return typeof c=="function"?c.bind(e):c}}catch(a){if(ft.error("parseExpression.error",a,t,(s=e==null?void 0:e.__self)!=null?s:e),a&&(a.info=t.value),It(a),n)throw a}}function Ae(t,e,r=!1,n=!1,i=!1){var a;const s=Xt(t,e,r,n,i);if(typeof s!="function"&&(ft.error("parseFunction.error","not a function",t,(a=e==null?void 0:e.__self)!=null?a:e),n))throw new Error(`"${t.value}" not a function`);return s}function he(t){return t&&t.type==="JSExpression"}function _e(t){return typeof t=="object"&&t&&t.type==="JSFunction"}const dy={session:!1,authKey:"Authorization",storageKey:"ACCESS_STORAGE",storagePrefix:"__VTJ_",unauthorized:void 0,auth:"/#/login",redirectParam:"r",unauthorizedCode:401,unauthorizedMessage:"登录已经失效,请重新登录!",noPermissionMessage:"无权限访问该页面",appName:"",statusKey:"code"},gy=Symbol("access");class Qo{constructor(e){H(this,"options");H(this,"data",null);H(this,"mode",se.Raw);H(this,"interceptResponse",!0);H(this,"isTipShowing",!1);this.options=Object.assign({},dy,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!==se.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&&(rn.save(r,e,{type:i?"session":"local",prefix:n}),i&&sn.set(s,this.data.token))}clear(){const{storageKey:e,storagePrefix:r,session:n,authKey:i}=this.options;this.data=null,rn.remove(e,{type:n?"session":"local",prefix:r}),n&&sn.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||{};if(typeof e=="function")return e(n);const i=Is(e);return Array.isArray(n)?i.every(s=>n.includes(s)||n.includes(r+"."+s)):i.every(s=>n[s]||n[r+"."+s])}some(e){const{appName:r}=this.options,{permissions:n={}}=this.data||{},i=Is(e);return Array.isArray(n)?i.some(s=>n.includes(s)||n.includes(r+"."+s)):i.some(s=>n[s]||n[r+"."+s])}install(e){e.config.globalProperties.$access=this,e.provide(gy,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=>Cs(i,r));try{this.data=JSON.parse(n.join(""))}catch(i){console.warn(i)}return}if(typeof e=="string")try{const n=r?Cs(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,session:n}=this.options,i=rn.get(e,{type:n?"session":"local",prefix:r});this.setData(i||null)}isLogined(){const{session:e,authKey:r}=this.options;return e&&r?!!sn.get(r):!!this.getToken()}hasRoutePermission(e){if(e.name===yr){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 M(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),ge(i)?(i(),r(!1)):Ze(i)?r(i):r(!1)}}r(!1),yield Kt(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 M(this,null,function*(){const{unauthorizedMessage:r="登录已失效"}=this.options;this.isUnauthorized(e)&&(yield this.showTip(r))&&this.toLogin()})}showTip(e){return M(this,null,function*(){var n,i,s,a;const{alert:r}=this.options;return this.isTipShowing?!1:r?(this.isTipShowing=!0,yield Kt(150),yield(i=(n=r(e,{title:"提示",type:"warning"}))==null?void 0:n.catch(()=>!0))==null?void 0:i.finally(()=>{this.isTipShowing=!1})):((a=(s=globalThis.alert)==null?void 0:s.call(globalThis,e))!=null||console.warn(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=>M(this,null,function*(){return this.interceptResponse&&(yield this.showUnauthorizedAlert(r)),r}),r=>M(this,null,function*(){if(!this.interceptResponse)return Promise.reject(r);const n=r.response||r||{};return yield this.showUnauthorizedAlert(n),Promise.reject(r)}))}}function my(t={}){const{notify:e,loading:r,settings:n={},Startup:i,access:s,useTitle:a,alert:o}=t;let u=null;return{request:ri({adapter:t.axiosAdapter,settings:F({type:"form",validSuccess:!1,originResponse:!0,loading:!0,validate:c=>{var l,h;return((l=c.data)==null?void 0:l.code)===0||!!((h=c.data)!=null&&h.success)},failMessage:!0,showError:c=>{e&&e(c||"未知错误")},showLoading:()=>{u&&u.close(),r&&(u=r())},hideLoading:()=>{u&&(u.close(),u=null)}},n)}),jsonp:vo,notify:e,loading:r,useTitle:a,alert:o,startupComponent:i,access:s?new Qo(F({alert:o},s)):void 0}}function vy(t,e){const{jsonp:r,request:n}=e;if(t.method==="jsonp")return(i={})=>r(t.url,ue(F({},t.jsonpOptions),{query:i}));{const i=t.headers?Xt(t.headers,{},!0):void 0,s={url:t.url,method:t.method,settings:ue(F({},t.settings),{headers:i})};return(a,o)=>(delete s.data,n.send(Bt(s,o||{},{data:a})))}}function yy(t,e){const{metaQuery:r}=e;if(!r)return;const{code:n,queryCode:i}=t;return(s,a)=>{if(!r){console.warn("adapter.metaQuery is not defined!");return}return r(n,i,s,a)}}function by(t=[],e=[],r){const n={};for(const i of t){const s=vy(i,r);n[i.id]=s,n[i.name]=s}for(const i of e)n[i.id]=yy(i,r);return n}function _y(){return M(this,arguments,function*(t=[],e=globalThis){const r=Jt(e);r&&(Xo(e),t.forEach(n=>wy(r,n)))})}function xy(t,e=globalThis){const r=_e(t.mockTemplate)&&t.mockTemplate.value?Ae(t.mockTemplate,{},!0):void 0,n=Jt(e);return(...i)=>M(null,null,function*(){let s={};if(r)try{s=yield r.apply(r,i)}catch(a){ft.warn("模拟数据模版异常",a)}return n==null?void 0:n.mock(s)})}function wy(t,e){if(!e.mock)return;const{url:r,mockTemplate:n,method:i="get",settings:s={}}=e;if(r&&n)try{const a=Gt(r)?new URL(r).pathname:r,o=ei(`(.*)${a}`,[],{end:!1}),u=new RegExp(o.source+"([?#].*)?$",o.flags),c=Sm(a,{decode:decodeURIComponent}),l=Xt(n,{},!0);t.mock(u,i.toLowerCase(),h=>{var S;const p=Ft.parse(h.url)||{},f=s.type||"form";let d=h.body instanceof FormData?Gm(h.body):h.body;if(typeof d=="string")if(f==="json")try{d=JSON.parse(d)}catch(b){console.warn("[Mock.mock]",b)}else d=Ft.parse(d);const m=Gt(h.url)?new URL(h.url).pathname:h.url.split("?")[0],v=(S=c(m))==null?void 0:S.params;Object.assign(h,{data:d,params:v,query:p});try{return t.mock(l(h))}catch(b){return console.warn("[mockApi]",u,h,b),null}})}catch(a){console.warn("mockApi",a)}}function Xo(t=globalThis){const e=Jt(t);e&&(e._mocked={})}class Sy{constructor(){H(this,"__props",{});H(this,"__events",{});H(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 qr(e,r)}isNodeEqual(e,r){if(e===r)return!0;if(!e||!r)return!1;const n=o=>!o||typeof o!="object"?[]:Object.keys(o).filter(u=>ge(o[u])),i=o=>{if(!o||typeof o!="object")return o;const u={};for(const c in o)if(Object.prototype.hasOwnProperty.call(o,c)){const l=o[c];ge(l)||(u[c]=l)}return u},s=n(e).sort(),a=n(r).sort();return qr(s,a)?qr(i(e),i(r)):!1}clear(){this.__props={},this.__events={},this.__nodes={}}}class qs{constructor(e){H(this,"__cache",new Sy);H(this,"__id",null);H(this,"__mode");H(this,"__instance",null);H(this,"__contextRefs",{});H(this,"__refs",{});H(this,"__refCaches",{});H(this,"__refGenerations",{});H(this,"context",{});H(this,"state",{});H(this,"props",{});H(this,"$props",{});H(this,"$state",{});H(this,"$refs",{});H(this,"$el",null);H(this,"$emit",null);H(this,"$nextTick",null);H(this,"$parent",null);H(this,"$root",null);H(this,"$attrs",null);H(this,"$slots",null);H(this,"$watch",null);H(this,"$options",null);H(this,"$forceUpdate",null);H(this,"$components",{});H(this,"$libs",{});H(this,"$apis",{});H(this,"$provider",null);H(this,"$uni",null);H(this,"$getApp",null);H(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=Tr){var a,o,u,c;const n=r.getCurrentInstance();if(!n)return;this.__refs={},this.__refCaches={},this.$refs={},this.context={},this.__contextRefs={},this.__instance=n.proxy;const{state:i}=this,s=n.appContext.config.globalProperties;Object.assign(this,s,e||{}),this.$uni=(o=(a=this.$libs.UniH5)==null?void 0:a.uni)!=null?o:null,this.$getApp=(c=(u=this.$libs.UniH5)==null?void 0:u.getApp)!=null?c:null,this.$state=this.state=i,this.__proxy(),r.onMounted(()=>{this.__proxy()}),r.onUnmounted(()=>{this.__cleanup()}),r.onBeforeUpdate(()=>{if(this.__proxy(),this.$props)for(const l of Object.keys(this.$props))this[l]=this.$props[l];this.__reset()})}__proxy(){if(!this.__instance)return;const e=this.__instance;Ds.forEach(r=>{var n;this[r]=e[r]||((n=e._)==null?void 0:n[r.replace("$","")])||null})}__cleanup(){Ds.forEach(e=>{this[e]=null}),this.__reset(),this.__cache.clear(),this.__refGenerations={}}__reset(){this.__refs={},this.__refCaches={},this.$refs={},this.__contextRefs={},this.context={}}__parseFunction(e){var r;if(e)if(this.__mode===se.Runtime){const{id:n,type:i}=e,s=n&&(r=this.__transform[n])!=null?r:e.value;return Ae({type:i,value:s},this)}else return Ae(e,this)}__parseExpression(e){var r;if(e)if(this.__mode===se.Runtime){const{id:n,type:i}=e,s=n&&(r=this.__transform[n])!=null?r:e.value;return Xt({type:i,value:s},this)}else return Xt(e,this)}__ref(e=null,r){if(this.__mode===se.VNode)return;e&&e!==this.__id&&(this.__contextRefs[e]=this);let n=e?this.__refCaches[e]:null;if(n)return n;const i=e?(this.__refGenerations[e]||0)+1:0;return e&&(this.__refGenerations[e]=i),n=s=>M(this,null,function*(){var o,u;if(yield Kt(0),e&&this.__refGenerations[e]!==i)return;let a=(s==null?void 0:s.$vtjEl)||(s==null?void 0:s.$el)||((u=(o=s==null?void 0:s._)==null?void 0:o.vnode)==null?void 0:u.el)||s;if(!a){typeof r=="string"&&(delete this.$refs[r],this[r]&&Si(this[r])&&(this[r].value=null),e&&delete this.__refs[e]);return}return a.nodeType===3&&a.nextSibling&&(a=a.nextSibling),a.__vtj__=e,se.Design===this.__mode&&(a.__context__=this,a.draggable=!0),e&&(this.__refs[e]=this.__getRefEl(this.__refs,e,s)),typeof r=="function"?r(s):r&&(this.$refs[r]=this.__getRefEl(this.$refs,r,s),this[r]&&Si(this[r])&&(this[r].value=this.$refs[r])),s}),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=F(F({},this.context),e),n=ue(F({},r),{context:r});return n.context.__proto__=this.context,n.__proto__=this,n}}const hn=Symbol("vtjBlockChain");function jn(t){var p,d;const{Vue:e=Tr,UniApp:r={},mode:n=se.Runtime,components:i={},libs:s={},apis:a={},loader:o}=t,u=e.computed(()=>t.dsl),c={$components:i,$libs:s,$apis:a},l=new qs({mode:n,dsl:u.value,attrs:c}),h=e.defineComponent(F({name:u.value.name,__scopeId:u.value.id?`data-v-${u.value.id}`:void 0,props:F({},Ty((p=u.value.props)!=null?p:[],l)),setup(m,v){return M(this,null,function*(){var O,$,U,V,q,z,A,P,D;const S=u.value.id,b=u.value.name,_=e.inject(hn,null);if(S&&_&&_.has(S)){const R=`检测到区块循环引用: ${b}(${S})`;return console.warn(`[VTJ Renderer] ${R},已中断渲染以防止浏览器崩溃`),It(new Error(R)),e.provide(hn,_),{__vtjCircular:!0}}const w=new Set(_||[]);S&&w.add(S),e.provide(hn,w);const x=new qs({mode:n,dsl:u.value,attrs:c});x.$props=x.props=m,u.value.id&&Pr(t.window||globalThis,u.value.id,u.value.css||"",!0);const y=u.value.apiMode==="composition";x.$state=x.state=Cy(e,(O=u.value.state)!=null?O:{},x);const T=y?Py(e,($=u.value.refs)!=null?$:{},x):{},I=y?$y(e,(U=u.value.reactives)!=null?U:{},x):{},j=Ay(e,(V=u.value.computed)!=null?V:{},x),E=Iy((q=u.value.methods)!=null?q:{},x),C=Ry(e,u.value.inject,x),L=ky(u.value.dataSources||{},x),N=F(F(F(F(F(F(F({},m),T),I),C),j),E),L);x.setup(N,e);const B=y?Dy((z=u.value.composables)!=null?z:[],x):{};if(Object.assign(x,B),e.onMounted(()=>{zs(x,l)}),y&&u.value.props&&u.value.props.length>0){const R=new Set([...Object.keys(T),...Object.keys(I),...Object.keys(j)]);for(const te of u.value.props){const me=typeof te=="string"?te:te.name;R.has(me)||Object.defineProperty(x,me,{get(){return this.$props[me]},set(Oe){},configurable:!0,enumerable:!0})}}if(Oy(e,(A=u.value.watch)!=null?A:[],x),v&&typeof v.expose=="function"){const R={vtj:x};for(const te of u.value.expose||[])Object.defineProperty(R,te,{get:()=>x[te],enumerable:!0,configurable:!0});v.expose(R)}if(y){const R=By(e,(P=u.value.lifeCycles)!=null?P:{},x,r);if(Ny(e,(D=u.value.provide)!=null?D:{},x),yield Promise.all(R),u.value.setup){const te=x.__parseFunction(u.value.setup);if(ge(te))try{yield te()}catch(me){console.warn("[VTJ] Composition setup 执行失败",me)}}}return F(F(F(F(F(F(F(F({vtj:x,state:x.$state},m),T),I),j),E),C),L),B)})},emits:Ey(u.value.emits),expose:["vtj",...u.value.expose||[]],render(){if(this.__vtjCircular)return null;const m=this.vtj||l,v=u.value;if(!v.nodes)return null;const S=v.nodes||[];let b;if(S.length===1)b=kt(S[0],m,e,o,S);else{const _=S.map(w=>kt(w,m,e,o,S)).flat();b=e.createVNode("div",{},_)}return zs(m,l),b}},u.value.apiMode!=="composition"?Ly((d=u.value.lifeCycles)!=null?d:{},l):{}));return{renderer:e.markRaw(h),context:l,loader:o}}function zs(t,e){t!==e&&Object.assign(e,t)}function Ey(t=[]){return t.map(e=>Ze(e)?e:e.name)}function Ty(t=[],e){const r=n=>n?(Array.isArray(n)?n:[n]).map(i=>dv[i]):void 0;return t.map(n=>Ze(n)?{name:n}:{name:n.name,type:n.type,required:n.required,default:he(n.default)?e.__parseExpression(n.default):n.default}).reduce((n,i)=>{const s=i.default;return n[i.name]={type:r(i.type),required:i.required,default:s!==null&&typeof s=="object"?()=>En(s):s},n},{})}function Cy(t,e,r){return t.reactive(Object.keys(e||{}).reduce((n,i)=>{let s=e[i];return he(s)?s=r.__parseExpression(s):_e(s)&&(s=r.__parseFunction(s)),n[i]=s,n},{}))}function Ay(t,e,r){return Object.entries(e!=null?e:{}).reduce((n,[i,s])=>{if(_e(s))n[i]=t.computed(r.__parseFunction(s));else{const a=r.__parseExpression(s);a&&typeof a=="object"&&(ge(a.get)&&(a.get=a.get.bind(r)),ge(a.set)&&(a.set=a.set.bind(r))),n[i]=t.computed(a)}return n},{})}function Iy(t,e){return Object.entries(t!=null?t:{}).reduce((r,[n,i])=>(r[n]=e.__parseFunction(i),r),{})}function Ry(t,e=[],r){return e.reduce((n,i)=>{var c;const{name:s,from:a}=i||{},o=he(a)?r.__parseExpression(a)||s:a!=null?a:s,u=he(i.default)?r.__parseExpression(i.default):(c=i.default)!=null?c:null;return n[s]=t.inject(o,u),n},{})}function ky(t,e){return Object.keys(t).reduce((r,n)=>{const i=t[n];if(i.type==="mock")r[n]=xy(i);else if(i.ref){const s=e.$apis[i.ref],a=_e(i.transform)?i.transform.value?e.__parseFunction(i.transform):void 0:i.transform;r[n]=(...o)=>M(null,null,function*(){const u=yield s.apply(e,o);return a?a(u):u})}return r},{})}function Oy(t,e=[],r){e.forEach(n=>{t.watch(r.__parseExpression(n.source),r.__parseFunction(n.handler),{deep:n.deep,immediate:n.immediate,flush:n.flush})})}function Py(t,e,r){return Object.entries(e).reduce((n,[i,s])=>{const a=he(s)?r.__parseExpression(s):s;return n[i]=t.ref(a),n},{})}function $y(t,e,r){return Object.entries(e).reduce((n,[i,s])=>{const a=he(s)?r.__parseExpression(s):s;return n[i]=t.reactive(a!=null?a:{}),n},{})}function Dy(t,e){return t.reduce((r,n)=>{try{let i;if(he(n.composable)?i=e.__parseExpression(n.composable):Ze(n.composable)&&(i=e.$libs[n.composable]),ge(i)){const s=(n.args||[]).map(o=>he(o)?e.__parseExpression(o):o),a=i(...s);if(n.destructure&&n.destructure.length>0)for(const o of n.destructure)r[o]=a==null?void 0:a[o];else r[n.name]=a}}catch(i){if(e.__mode===se.Design)console.warn("[VTJ] composable 执行失败,已降级处理",i),r[n.name]={};else throw console.warn("[VTJ] composable 执行失败",i),It(i),i}return r},{})}function Ny(t,e,r){Object.entries(e).forEach(([n,i])=>{let s=i;he(i)?s=r.__parseExpression(i):_e(i)&&(s=r.__parseFunction(i)),t.provide(n,s)})}function By(t,e,r,n={}){const i=[],s={beforeMount:"onBeforeMount",mounted:"onMounted",beforeUpdate:"onBeforeUpdate",updated:"onUpdated",beforeUnmount:"onBeforeUnmount",unmounted:"onUnmounted",errorCaptured:"onErrorCaptured",renderTracked:"onRenderTracked",renderTriggered:"onRenderTriggered",activated:"onActivated",deactivated:"onDeactivated"};for(const[a,o]of Object.entries(e)){if(a==="created"||a==="beforeCreate"){const l=r.__parseFunction(o);if(ge(l))try{i.push(Promise.resolve(l()).catch(h=>{console.warn(`[VTJ] Composition 生命周期 "${a}" 执行失败`,h),It(h)}))}catch(h){console.warn(`[VTJ] Composition 生命周期 "${a}" 执行失败`,h),It(h)}continue}const u=s[a]||a,c=t[u]||n[u];if(c&&ge(c)){const l=r.__parseFunction(o);ge(l)&&c(()=>M(null,null,function*(){try{yield Kt(0),yield l()}catch(h){console.warn(`[VTJ] Composition 生命周期 "${a}" 执行失败`,h),It(h)}}))}else console.warn(`[VTJ] 无效的 Composition 生命周期钩子 "${a}"`)}return i}function Ly(t,e){return Object.entries(t!=null?t:{}).reduce((r,[n,i])=>(r[n]=function(){return M(this,null,function*(){const s=((this==null?void 0:this.vtj)||e).__parseFunction(i);ge(s)&&(yield Kt(0),yield s())})},r),{})}const jy=Object.assign((t,e)=>e,{clear:()=>{}});function ec(r){return M(this,arguments,function*(t,e=globalThis){const{urls:n=[],library:i}=t,s=n.filter(o=>Or(o));if(s.length===0||!i)return null;const a=n.filter(o=>kr(o));return a.length&&_o(a,e),yield xo(s,i,e).catch(o=>(console.warn("loadScriptUrl error",s,i,o),null))})}function Vy(t){const{getDsl:e,getDslByUrl:r,options:n}=t,i=new Om,s={},a={},o=(u,c,l,h=Tr)=>{if(!l||typeof l=="string")return c;let p="";if(l.type==="Schema"&&l.id)return p=l.id+"_"+u,a[p]||(a[p]=h.defineAsyncComponent(()=>M(null,null,function*(){const f=s[l.id]||(yield i.add(l.id,()=>e(l.id)));return f&&(f.name=c,s[l.id]=f),f?jn(ue(F({Vue:h,mode:se.Runtime},n),{dsl:En(f),loader:o})).renderer:null})));if(l.type==="UrlSchema"&&l.url)return p=l.url+"_"+u,a[p]||(a[p]=h.defineAsyncComponent(()=>M(null,null,function*(){const f=s[l.url]||(yield r(l.url));return f&&(f.name=c,s[l.url]=f),f?jn(ue(F({},n),{Vue:h,dsl:En(f),mode:se.Runtime,loader:o})).renderer:null})));if(l.type==="Plugin"){let f=l.library?s[l.library]:null;return f||(f=s[l.library||Symbol()]=h.defineAsyncComponent(()=>M(null,null,function*(){return(yield ec(l,n.window))||(console.warn("getPlugin result is null",l),null)})),f)}return c};return Object.assign(o,{clear(){for(const u of Reflect.ownKeys(s))delete s[u];for(const u of Reflect.ownKeys(a))delete a[u];i.clearAllCache()}})}function kt(t,e,r=Tr,n=jy,i=[],s=!1,a=0){var w;if(!t||!t.name||t.invisible)return null;const o=(w=r.getCurrentInstance())==null?void 0:w.appContext,{id:u=null,directives:c=[]}=t,{vIf:l,vElseIf:h,vElse:p,vFor:f,vShow:d,vModels:m,vBind:v,vHtml:S,others:b}=tc(c);if(!s&&(h||p))return null;if(l&&!Fy(l,e))return Gy(t,e,r,n,i);const _=(x,y=0)=>{var D,R,te,me;const T=x.$components,I=(()=>{var Le,pe,Pe,tt;if(t.name==="component")return Uy(x,(Le=t.props)==null?void 0:Le.is);if(t.name==="slot")return t.name;const ne=n(`${t.id}_${y}`,t.name,t.from,r);return Ze(ne)?Av(ne)||Iv(ne)?ne:(tt=(Pe=T[ne])!=null?Pe:(pe=o==null?void 0:o.app)==null?void 0:pe.component(ne))!=null?tt:ne:ne})(),j=Hy(u,(D=t.props)!=null?D:{},x),E=Wy(r,t.id,(R=t.events)!=null?R:{},x);if(t.name==="slot")return Ky(r,t,j,x,n);v&&Object.assign(j,x.__parseExpression(v.value)),d&&(j.style=Object.assign((te=j.style)!=null?te:{},Yy(d,x))),S&&Object.assign(j,Zy(S,x)),m.forEach(ne=>{yo.includes(t.name)?Object.assign(j,Qy(ne,x,t.name,j.type,j.value)):Object.assign(j,Xy(ne,x))});const C=e1(r,(me=t.children)!=null?me:[],x,n,t),L=x!=null&&x.__id?`data-v-${x.__id}`:void 0,N=L?{[L]:""}:{},B=x.__mode===se.Design?{"data-vtj":u}:{},Oe=j,{ref:O}=Oe,$=bi(Oe,["ref"]),U={},V={};for(const ne of Object.keys($))ne.startsWith("on")?U[ne]=$[ne]:V[ne]=$[ne];const q=`${u}_${y}`,z=F(F(F({key:q},N),B),V);x.__cache.isNodeEqual(z,x.__cache.getNode(q))||x.__cache.setNode(q,z);let A=r.createVNode(I,F(F(ue(F({},x.__cache.getNode(q)||z),{ref:O}),U),E),C);const P=o?My(o,b,x):[];return P.length&&(A=r.withDirectives(A,P)),A};return f?n1(f,_,e):_(e,a)}function My(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 a=[s];return i.value&&a.push(r.__parseExpression(i.value)),i.arg&&a.push(i.arg),i.modifiers&&a.push(i.modifiers),a}).filter(i=>!!i)}function tc(t=[]){const e=t.find(l=>Ve(l.name)==="vIf"),r=t.find(l=>Ve(l.name)==="vElseIf"),n=t.find(l=>Ve(l.name)==="vElse"),i=t.find(l=>Ve(l.name)==="vFor"),s=t.find(l=>Ve(l.name)==="vShow"),a=t.find(l=>Ve(l.name)==="vBind"),o=t.find(l=>Ve(l.name)==="vHtml"),u=t.filter(l=>Ve(l.name)==="vModel"),c=t.filter(l=>!fv.includes(Ve(l.name)));return{vIf:e,vElseIf:r,vElse:n,vFor:i,vShow:s,vModels:u,vBind:a,others:c,vHtml:o}}function Fy(t,e){return!!e.__parseExpression(t.value)}function Uy(t,e){return e?he(e)?t.__parseExpression(e):e:"div"}function Hy(t,e,r){const n=Vn(e,r);return n.ref=r.__ref(t,n.ref),n}function Vn(t,e){return t===null?null:he(t)?e.__parseExpression(t):_e(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 qy(t,e){return r=>{var n;((n=r==null?void 0:r.key)==null?void 0:n.toLowerCase())===e.toLowerCase()&&t(r)}}function zy(t){return Rv(t.value)?t:kv(t.value)?{type:"JSFunction",value:`(...args) => (() => {
77
77
  return (($event) => {
78
78
  ${t.value}
79
79
  }).apply(this, args);
80
- })()`}:_v(t.value)?{type:"JSFunction",value:`() => { ${t.value}}`}:t}function Ny(t,e,r,n){const i=["once","capture","passive"],s={capture:"Capture",once:"Once",passive:"Passive"};return Object.keys(r||{}).reduce((a,o)=>{const u=r[o],c=hi(u.modifiers),l=i.filter(d=>c.includes(d)).map(d=>s[d]).join(""),h=c.filter(d=>!i.includes(d)),p="on"+pg(o)+l,f=u.handler?n.__parseFunction($y(u.handler)):null;return f&&(a[p]=t.withModifiers(c.includes("enter")?Dy(f,"enter"):f,h)),a},{})}function By(t,e,r,n,i=[]){let s=i.findIndex(a=>a.id===t.id);for(let a=++s;a<i.length;a++){const{directives:o=[]}=i[a],{vIf:u,vElseIf:c,vElse:l}=Jo(o);if(u)break;if(c){if(e.__parseExpression(c.value))return kt(i[a],e,r,n,i,!0);continue}if(l)return kt(i[a],e,r,n,i,!0)}return null}function hi(t={},e=!1){const r=Object.keys(t).filter(n=>t[n]);return e?r.map(n=>"."+n):r}function Ly(t,e,r,n,i){var u;const{children:s}=e,a=Vy(e,n),o=(u=n.$slots)==null?void 0:u[a.name];return o?o(r):s?Ze(s)?t.createTextVNode(s):he(s)?t.createTextVNode(po(n.__parseExpression(s))):Array.isArray(s)?s.map((c,l)=>kt(c,n,t,i,s,!1,l)):null:null}function Vy(t,e){const{props:r}=t,n=(r==null?void 0:r.name)||"default";return{name:he(n)?e.__parseExpression(n):n,params:[]}}function jy(t,e){return e.__parseExpression(t.value)?{}:{display:"none"}}function My(t,e){return{innerHTML:e.__parseExpression(t.value)||""}}function Fy(t,e,r,n,i){var b;const s=(b=t.value)==null?void 0:b.value,a=hi(he(t.modifiers)?e.__parseExpression(t.modifiers):t.modifiers),o=r==="input"&&n==="checkbox",u=r==="input"&&n==="radio",c=r==="select",l=a.includes("lazy")||o||u||c?"onChange":"onInput",h=_=>`((value) => value === '' ? value : (Number.isNaN(Number(value)) ? value : Number(value)))(${_})`,p=a.includes("number")?h("v?.target._value ?? v?.target.value"):"v?.target._value ?? v?.target.value";let f="v?.target.value";if(o)f=`Array.isArray(${s})
80
+ })()`}:Ov(t.value)?{type:"JSFunction",value:`() => { ${t.value}}`}:t}function Wy(t,e,r,n){const i=["once","capture","passive"],s={capture:"Capture",once:"Once",passive:"Passive"};return Object.keys(r||{}).reduce((a,o)=>{const u=r[o],c=mi(u.modifiers),l=i.filter(d=>c.includes(d)).map(d=>s[d]).join(""),h=c.filter(d=>!i.includes(d)),p="on"+bg(o)+l,f=u.handler?n.__parseFunction(zy(u.handler)):null;return f&&(a[p]=t.withModifiers(c.includes("enter")?qy(f,"enter"):f,h)),a},{})}function Gy(t,e,r,n,i=[]){let s=i.findIndex(a=>a.id===t.id);for(let a=++s;a<i.length;a++){const{directives:o=[]}=i[a],{vIf:u,vElseIf:c,vElse:l}=tc(o);if(u)break;if(c){if(e.__parseExpression(c.value))return kt(i[a],e,r,n,i,!0);continue}if(l)return kt(i[a],e,r,n,i,!0)}return null}function mi(t={},e=!1){const r=Object.keys(t).filter(n=>t[n]);return e?r.map(n=>"."+n):r}function Ky(t,e,r,n,i){var u;const{children:s}=e,a=Jy(e,n),o=(u=n.$slots)==null?void 0:u[a.name];return o?o(r):s?Ze(s)?t.createTextVNode(s):he(s)?t.createTextVNode(bo(n.__parseExpression(s))):Array.isArray(s)?s.map((c,l)=>kt(c,n,t,i,s,!1,l)):null:null}function Jy(t,e){const{props:r}=t,n=(r==null?void 0:r.name)||"default";return{name:he(n)?e.__parseExpression(n):n,params:[]}}function Yy(t,e){return e.__parseExpression(t.value)?{}:{display:"none"}}function Zy(t,e){return{innerHTML:e.__parseExpression(t.value)||""}}function Qy(t,e,r,n,i){var b;const s=(b=t.value)==null?void 0:b.value,a=mi(he(t.modifiers)?e.__parseExpression(t.modifiers):t.modifiers),o=r==="input"&&n==="checkbox",u=r==="input"&&n==="radio",c=r==="select",l=a.includes("lazy")||o||u||c?"onChange":"onInput",h=_=>`((value) => value === '' ? value : (Number.isNaN(Number(value)) ? value : Number(value)))(${_})`,p=a.includes("number")?h("v?.target._value ?? v?.target.value"):"v?.target._value ?? v?.target.value";let f="v?.target.value";if(o)f=`Array.isArray(${s})
81
81
  ? (v?.target.checked
82
82
  ? (${s}.includes(${p})
83
83
  ? ${s}
@@ -87,12 +87,12 @@ ${o}
87
87
  ? Array.from(v.target.selectedOptions).map((option) => ${_})
88
88
  : (${w})`}else a.includes("trim")&&(f=`(${f})?.trim()`),a.includes("number")&&(f=h(f));const d={type:"JSFunction",value:s?`(v) => {
89
89
  ${s} = ${f};
90
- }`:"(v) => {}"},m=he(t.arg)?e.__parseExpression(t.arg):t.arg||"value",v=e.__parseExpression(t.value),S=o?Array.isArray(v)?v.includes(i):!!v:u?v===i:v;return{[o||u?"checked":m]:S,[l]:e.__parseFunction(d)}}function Uy(t,e){var o;const r={type:"JSFunction",value:(o=t.value)!=null&&o.value?`(v) => {
90
+ }`:"(v) => {}"},m=he(t.arg)?e.__parseExpression(t.arg):t.arg||"value",v=e.__parseExpression(t.value),S=o?Array.isArray(v)?v.includes(i):!!v:u?v===i:v;return{[o||u?"checked":m]:S,[l]:e.__parseFunction(d)}}function Xy(t,e){var o;const r={type:"JSFunction",value:(o=t.value)!=null&&o.value?`(v) => {
91
91
  ${t.value.value} = v;
92
- }`:"(v) => {}"},n=e.__parseFunction(r),i=hi(he(t.modifiers)?e.__parseExpression(t.modifiers):t.modifiers),s=he(t.arg)?e.__parseExpression(t.arg):t.arg||"modelValue",a={[s]:e.__parseExpression(t.value),[`onUpdate:${s}`]:n};return i.length&&(a[s==="modelValue"?"modelModifiers":`${s}Modifiers`]=i.reduce((u,c)=>(u[c]=!0,u),{})),a}function Hy(t,e,r,n,i){if(!e)return null;if(Ze(e))return{default:()=>e};if(he(e))return{default:()=>po(r.__parseExpression(e))};if(Array.isArray(e)&&e.length>0){const s=qy(e),a=(o,u)=>!o||!i?{}:i!=null&&i.id&&Object.keys(o).length?u?{[u]:o}:{[`scope_${i.id}`]:o}:u?{[u]:Object.create(null)}:{};return Object.entries(s).reduce((o,[u,{nodes:c,params:l,scope:h}])=>(o[u]=p=>{const f=l.length?hm(p!=null?p:{},l):a(p,h);return c.map((d,m)=>kt(d,r.__clone(f),t,n,c,!1,m))},o),{})}return null}function qy(t){const e={};for(const r of t){const n=zy(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 zy(t="default"){return Ze(t)?{name:t,params:[],scope:""}:F({params:[],scope:""},t)}function Wy(t,e,r){const{value:n,iterator:i}=t,{item:s="item",index:a="index"}=i||{};let o=r.__parseExpression(n)||[];return Number.isInteger(o)&&(o=new Array(o).fill(!0).map((u,c)=>c+1)),Array.isArray(o)?o.map((u,c)=>e(r.__clone({[s]:u,[a]:c}),c)):(console.warn("[vForRender]:",`${n==null?void 0:n.value} is not a Arrary`),[])}const ln=Us({name:"VtjPageContainer",setup(){return M(this,null,function*(){const t=n1(),e=oc(),r=vi(),n=vi(),i=ic(Symbol());let s=0;const a=()=>M(null,null,function*(){const u=++s,c=e.meta.__vtj__||e.params.id,l=c?t.getPage(c):t.getHomepage(),h=l?yield t.getRenderComponent(l.id):null;if(u!==s||(r.value=l,n.value=h,i.value=Symbol(),!l))return;Object.assign(e.meta,l.meta||{},{cache:l.cache});const{useTitle:p}=t==null?void 0:t.adapter;if(p){const f=e.meta.title||l.title||"VTJ.PRO";p(f)}}),o=a();return sc(()=>[e.meta.__vtj__,e.params.id],()=>a()),yield o,{provider:t,component:n,file:r,sid:i,route:e}})},render(){const{component:t,sid:e,route:r}=this;return t?pn(t,ue(F({},r.query),{key:e})):pn("div",{style:{padding:"10px"}},"找不到组件,组件不存在或未发布!")},activated(){this.route.meta.cache===!1&&(this.sid=Symbol())}}),Gy=Us({name:"VtjStartupContainer",render(){return pn("div","page not found!")}});function Bn(t,e,r=[]){const n=[];for(const i of r){const{id:s,title:a,icon:o,children:u,hidden:c,layout:l}=i;if(l){const h=Bn(t,e,u||[]);n.push(...h)}else{const h={id:s,title:a,icon:o,hidden:c,url:`${t}/${e}/${s}`,children:u&&u.length?Bn(t,e,u):void 0};n.push(h)}}return n}function hn(t,e){const{id:r,title:n,meta:i}=t,{name:s="page",prefix:a="",component:o,routeMeta:u}=e;return{name:r,path:`${a}${s}/${r}`,component:o,meta:ue(F(F({title:n},u),i),{__vtj__:r})}}function Ln(t){const{name:e="page",prefix:r="",pages:n=[],component:i,loader:s,routeMeta:a,homepage:o}=t,u=[];for(const c of n){const{id:l,title:h,dir:p,layout:f,children:d,meta:m}=c;if(p){const v=Ln({name:e,prefix:r,component:i,routeMeta:a,homepage:o,loader:s,pages:d||[]});u.push(...v)}else if(f){const v=Ln({name:e,prefix:r,component:i,routeMeta:a,homepage:o,loader:s,pages:d||[]}),S={name:`layout_${l}`,path:r,component:()=>s(l),meta:ue(F(F({title:h},a),m),{__vtj__:l}),children:v};u.push(S),u.push(hn(c,t))}else if(u.push(hn(c,t)),o===l){const v=hn(c,t);v.path="",v.name=`home_${l}`,u.push(v)}}return u}function Ky(t={},e){const{css:r,store:n,enhance:i}=t,{window:s,app:a,library:o={},adapter:u,mode:c}=e,{Pinia:l}=o;a.config.globalProperties.$libs=o,Pr(s,"global-css",r||""),l&&n&&Jy(n,a,l),Zy(a,u,t),!u.access&&t.access&&Yy(t.access,a,c,u),Qy(a,t),i&&Xy(i,a,o)}function Jy(t,e,r){if(!e.config.globalProperties.$pinia){const n=r.createPinia();e.use(n)}if(_e(t)&&t.value){const n=Ae(t,{},!1,!1,!0),i=r.defineStore("$store",n(e)||{});e.config.globalProperties.$store=i()}}function Yy(t,e,r,n){if(_e(t)&&t.value){const i=Ae(t,{},!1,!1,!0),{alert:s,request:a}=n,o=new Wo(F({alert:s,storagePrefix:"__VTJ_APP_"},i(e))),u=e.config.globalProperties.$router;o.connect({mode:r,router:u,request:a}),e.use(o)}}function Zy(t,e,r){if(!e.request)return;const{axios:n,request:i,response:s}=r;if(n&&_e(n)&&n.value){const a=Ae(n,{},!1,!1,!0);e.request.setConfig(a(t))}if(i&&_e(i)&&i.value){const a=Ae(i,{},!1,!1,!0),o=e.request;o.__unReq&&o.__unReq(),o.__unReq=e.request.useRequest(u=>a(u,t))}if(s&&_e(s)&&s.value){const a=Ae(s,{},!1,!1,!0),o=e.request;o.__unRes&&o.__unRes(),o.__unRes=e.request.useResponse(u=>a(u,t))}}function Qy(t,e){const{beforeEach:r,afterEach:n}=e,i=t.config.globalProperties.$router;if(r&&_e(r)&&r.value){const s=Ae(r,{},!1,!1,!0);i&&i.beforeEach((a,o,u)=>s(a,o,u,t))}if(n&&_e(n)&&n.value){const s=Ae(n,{},!1,!1,!0);i&&i.afterEach((a,o,u)=>s(a,o,u,t))}}function Xy(t,e,r={}){_e(t)&&t.value&&Ae(t,{},!1,!1,!0)(e,r)}function e1(t,e,r){if(!t||!e||!r)return;const{VueI18n:n}=e;if(n){const{locale:i,fallbackLocale:s,messages:a=[]}=r,o={};for(let c of a){const l=Object.keys(c).filter(h=>h!=="key");for(const h of l)o[h]||(o[h]={}),o[h][c.key]=c[h]}const u=n.createI18n({legacy:!1,locale:i,fallbackLocale:s,messages:o});t.use(u)}}const Yo=Symbol("Provider");class t1 extends Am{constructor(r){super();H(this,"mode");H(this,"globals",{});H(this,"modules",{});H(this,"adapter",{request:Cn,jsonp:lo});H(this,"apis",{});H(this,"dependencies",{});H(this,"materials",{});H(this,"library",{});H(this,"libraryLocales",{});H(this,"libraryLocaleMap",{});H(this,"service");H(this,"project",null);H(this,"components",{});H(this,"nodeEnv","development");H(this,"env",{});H(this,"router",null);H(this,"materialPath","./");H(this,"urlDslCaches",{});H(this,"errorHandler",null);H(this,"initialization");this.options=r;const{service:n,mode:i=se.Raw,dependencies:s,materials:a,project:o={},adapter:u={},globals:c={},modules:l={},router:h=null,materialPath:p="./",nodeEnv:f="development"}=r;this.mode=i,this.modules=l,this.service=n,this.router=h,this.materialPath=p,this.nodeEnv=f,s&&(this.dependencies=s),a&&(this.materials=a),Object.assign(this.globals,c),Object.assign(this.adapter,u);const{access:d,request:m}=this.adapter;d&&d.connect({mode:i,router:h,request:m}),o&&i!==se.Design?(this.initialization=this.load(o).then(()=>this),this.initialization.catch(v=>ft.error("Provider.load.error",v))):(this.project=o,this.triggerReady(),this.initialization=Promise.resolve(this))}createMock(r){return(...n)=>M(null,null,function*(){let i={};if(r)try{i=yield r.apply(r,n)}catch(a){ft.warn("模拟数据模版异常",a)}const s=Jt();return s||console.warn("[@vtj/renderer]","项目缺少mockjs, 你需要安装mockjs依赖,并在应用的 main.ts 中添加 mockjs 导入,确保 window.Mock 可用"),s==null?void 0:s.mock(i)})}load(r){return M(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:a=[],env:o=[]}=this.project,u=globalThis;u&&(u.CKEDITOR_VERSION=void 0),this.initEnv(o),this.mode===se.Raw?yield this.loadDependencies(u):yield this.loadAssets(u),this.initMock(u),this.apis=cy(s,a,this.adapter),Go(u),uy(s,u),this.project.platform!=="uniapp"&&this.initRouter(),this.triggerReady()})}initMock(r){const n=Jt(r);n&&n.setup({timeout:"50-500"})}loadDependencies(){return M(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 M(this,arguments,function*(r={}){const{dependencies:n=[]}=this.project,{dependencies:i,library:s,components:a,materialPath:o,nodeEnv:u,libraryLocales:c}=this,{libraryExports:l,libraryMap:h,materials:p,materialExports:f,materialMapLibrary:d,libraryLocaleMap:m}=ov(n,o,u==="development");Object.assign(this.libraryLocaleMap,m);for(const v of l){const S=i[v],b=r[v];if(b)s[v]=b;else if(S)r[v]=s[v]=yield S();else{const w=h[v]||[];for(const x of w)kr(x)&&(yield dv(x,Ft.append(x,{v:nn}))),Or(x)&&(yield Cs(Ft.append(x,{v:nn})));s[v]=r[v]}const _=m[v];if(_){const w=i[_];c[_]=w?yield w():r[_]}}if(u==="development"){for(const S of p)yield Cs(Ft.append(S,{v:nn}));const v=this.materials||{};for(const S of f){const b=r[d[S]],_=(b==null?void 0:b.default)||b,w=Cm[S];if(w)_&&w.forEach(x=>{a[x]=_[x]});else{const x=v[S]?(yield v[S]()).default:r[S];x&&_&&(x.components||[]).forEach(y=>{a[y.name]=cv(y,_)})}}}})}initRouter(){const{router:r,project:n,options:i,adapter:s}=this;if(!r)return;const a=(n==null?void 0:n.platform)==="uniapp"?"pages":"page",{routeAppendTo:o,pageRouteName:u=a,routeMeta:c}=i,l=o?"":"/",h={path:`${l}${u}/:id`,name:yr,component:ln},p=this.getHomepage(),f={path:l,name:sn,component:p?ln:s.startupComponent||Gy,meta:c};if(r.hasRoute(yr)&&r.removeRoute(yr),r.hasRoute(sn)&&r.removeRoute(sn),i.enableStaticRoute){const d=(n==null?void 0:n.pages)||[];Ln({name:u,prefix:l,pages:d,component:ln,loader:this.getRenderComponent.bind(this),homepage:p==null?void 0:p.id,routeMeta:c}).forEach(m=>{o?r.addRoute(o,m):r.addRoute(m)}),p||(o?r.addRoute(o,f):r.addRoute(f))}else o?(r.addRoute(o,h),r.addRoute(o,f)):(r.addRoute(h),r.addRoute(f))}setErrorHandler(r){r.config.errorHandler=Gn((n,i,s)=>{const a=i==null?void 0:i.$options.name,o=typeof n=="string"?n:(n==null?void 0:n.message)||(n==null?void 0:n.msg)||"未知错误",u=`[ ${a} ] ${o} ${s}`;if(!["getComputedStyle","ResizeObserver"].some(c=>u.includes(c))){try{const c={message:u,err:n,instance:i,info:JSON.stringify(s),stack:n==null?void 0:n.stack};console.error("[VTJ Error]:",c,n==null?void 0:n.stack),this.errorHandler&&this.errorHandler(c)}catch(c){console.warn("[provider.setErrorHandler]",c)}this.adapter.notify&&this.adapter.notify(u,"组件渲染错误","error")}},200)}install(r){var o,u,c,l;const{libraryLocaleMap:n,libraryLocales:i}=this,{libraryOptions:s={}}=this.options,a=r.config.globalProperties.installed||{};for(const[h,p]of Object.entries(this.library))if(!a[h]&&gv(p)){const f={locale:i[n[h]]},d=s[h]||{},m=F(F({},f),d);r.use(p,m),a[h]=!0}r.provide(Yo,this),r.config.globalProperties.$provider=this,r.config.globalProperties.$apis=this.apis,r.config.globalProperties.$request=(o=this.adapter)==null?void 0:o.request,this.options.install&&r.use(this.options.install),this.adapter.access&&r.use(this.adapter.access),((u=this.project)==null?void 0:u.platform)!=="uniapp"&&this.mode!==se.Design&&this.initGlobals(((c=this.project)==null?void 0:c.globals)||{},{app:r,window:globalThis,adapter:this.adapter,library:this.library,mode:this.mode}),this.mode!==se.Design&&((l=this.project)!=null&&l.i18n)&&this.initI18n(r,this.library,this.project.i18n),this.options.enhance&&r.use(this.options.enhance,this),this.mode===se.Design&&this.setErrorHandler(r),r.config.globalProperties.installed=a,this.setGlobals(r.config.globalProperties)}setGlobals(r={}){for(const[n,i]of Object.entries(r))this.globals[n]=i}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,a=[])=>{for(const o of a){if(o.id===s)return o;if(o.children&&o.children.length){const u=i(s,o.children);if(u)return u}}};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 a=n(s.children);if(a)return a}}};return n(r)||null}getMenus(r="page",n=""){var i;return Bn(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 M(this,null,function*(){const{vtjDir:n=".vtj"}=this.options,i=this.modules[`${n}/files/${r}.json`]||this.modules[`/src/${n}/files/${r}.json`],s=i?yield i():yield this.service.getFile(r,this.project||void 0).catch(()=>null);return s||this.errorHandler&&this.errorHandler(new Error(`区块 ${r} 不存在`)),s})}getDslByUrl(r){return M(this,null,function*(){const n=this.urlDslCaches[r];if(n)return n;if(!this.adapter.request)return null;const i=this.urlDslCaches[r]=this.adapter.request.send({url:r,method:"get",settings:{validSuccess:!1,originResponse:!0}}).then(s=>s.data).catch(()=>(this.urlDslCaches[r]===i&&delete this.urlDslCaches[r],null));return i})}createDslRenderer(r,n={}){const{library:i,components:s,mode:a,apis:o}=this,u=F({mode:a,Vue:i.Vue,UniApp:i.UniApp,components:s,libs:i,apis:o,window:globalThis},n),c=Iy({getDsl:l=>M(this,null,function*(){return(yield this.getDsl(l))||null}),getDslByUrl:l=>M(this,null,function*(){return(yield this.getDslByUrl(l))||null}),options:u});return $n(ue(F({},u),{dsl:r,loader:c}))}getRenderComponent(r,n){return M(this,null,function*(){var a;const i=this.getFile(r);if(!i)return ft.warn(`Can not find file: ${r}`),null;if(n&&n(i),this.mode===se.Raw){const{vtjRawDir:o=".vtj/vue"}=this.options,u=`${o}/${r}.vue`,c=this.modules[u]||this.modules[`/src/pages/${r}.vue`];return c?(a=yield c())==null?void 0:a.default:this.nodeEnv==="development"&&this.adapter.startupComponent||null}const s=yield this.getDsl(i.id);return s?this.createDslRenderer(s).renderer:(ft.warn(`Can not find dsl: ${r}`),null)})}defineUrlSchemaComponent(r,n){return mi(()=>M(this,null,function*(){const i=yield this.getDslByUrl(r);return i?(i.name=n||i.name,this.createDslRenderer(i).renderer):null}))}definePluginComponent(r){return mi(()=>M(null,null,function*(){return yield Ko(r,globalThis)}))}initGlobals(r,n){const i=Object.assign({adapter:this.adapter,window:globalThis},n);Ky(r,i)}initI18n(r,n,i){e1(r,n,i)}initEnv(r=[]){this.env=r.reduce((n,i)=>(n[i.name]=i[this.nodeEnv],n),{})}}function r1(t){const e=new t1(t);return{provider:e,onReady:r=>e.ready(r),ready:e.initialization}}function n1(t={}){const e=ac(Yo,null);if(!e)throw new Error("Can not find provider");if(e.nodeEnv==="development"){const{id:r,version:n}=t;r&&n&&M(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 i1(t,e=""){return M(this,null,function*(){const{name:r,urls:n=[]}=t||{},i=n.map(o=>e+o),{css:s,js:a}=uv(i);if(s.length&&fo(s),a.length)return yield go(a,r).catch(()=>{})})}const Zo={type:"json",validSuccess:!0,originResponse:!1,failMessage:!0,validate:t=>{var e;return((e=t.data)==null?void 0:e.code)===0}},s1=(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:Zo}),a1=(t,e="/__vtj__/api/uploader.json")=>(r,n)=>M(null,null,function*(){return yield t.send({url:e,method:"post",data:{files:r,projectId:n},settings:ue(F({},Zo),{type:"data"})}).then(i=>i&&i[0]?i[0]:null).catch(()=>null)});function o1(t){return Zn({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 c1{constructor(e=Cn){H(this,"api");H(this,"pluginCaches",{});H(this,"uploader");this.req=e,this.api=s1(e),this.uploader=a1(e)}getExtension(){return M(this,null,function*(){console.log("BaseService.getExtension")})}init(e){return M(this,null,function*(){return console.log("BaseService.init",e),{}})}saveProject(e,r){return M(this,null,function*(){return!!(yield this.api("saveProject",e,{type:r}).catch(()=>!1))})}saveMaterials(e,r){return M(this,null,function*(){return console.log("BaseService.saveMaterials",e,r),!1})}saveFile(e){return M(this,null,function*(){return console.log("BaseService.saveFile",e),!1})}getFile(e){return M(this,null,function*(){return console.log("BaseService.getFile",e),{}})}removeFile(e){return M(this,null,function*(){return console.log("BaseService.removeFile",e),!1})}saveHistory(e){return M(this,null,function*(){return console.log("BaseService.saveHistory",e),!1})}removeHistory(e){return M(this,null,function*(){return console.log("BaseService.removeHistory",e),!1})}getHistory(e){return M(this,null,function*(){return console.log("BaseService.getHistory",e),{}})}getHistoryItem(e,r){return M(this,null,function*(){return console.log("BaseService.getHistoryItem",e,r),{}})}saveHistoryItem(e,r){return M(this,null,function*(){return console.log("BaseService.saveHistoryItem",e,r),!1})}removeHistoryItem(e,r){return M(this,null,function*(){return console.log("BaseService.removeHistoryItem",e,r),!1})}publish(e){return M(this,null,function*(){return!!(yield this.api("publish",e).catch(()=>!1))})}publishFile(e,r){return M(this,null,function*(){return!!(yield this.api("publishFile",{project:e,file:r}).catch(()=>!1))})}genVueContent(e,r){return M(this,null,function*(){return yield this.api("genVueContent",{project:e,dsl:r}).catch(()=>"")})}parseVue(e,r){return M(this,null,function*(){return yield this.api("parseVue",F({project:e},r))})}createRawPage(e){return M(this,null,function*(){return yield this.api("createRawPage",e).catch(()=>"")})}removeRawPage(e){return M(this,null,function*(){return yield this.api("removeRawPage",e).catch(()=>"")})}uploadStaticFile(e,r){return M(this,null,function*(){return yield this.uploader(e,r).catch(()=>null)})}getStaticFiles(e){return M(this,null,function*(){return yield this.api("getStaticFiles",e).catch(()=>[])})}removeStaticFile(e,r){return M(this,null,function*(){return yield this.api("removeStaticFile",{name:e,projectId:r}).catch(()=>"")})}clearStaticFiles(e){return M(this,null,function*(){return yield this.api("clearStaticFiles",e).catch(()=>"")})}getPluginMaterial(e){return M(this,null,function*(){const{urls:r=[]}=e,n=r.filter(s=>sv(s))[0];return n?this.pluginCaches[n]||(this.pluginCaches[n]=Cn.send({url:n,method:"get",settings:{validSuccess:!1,originResponse:!0}}).then(s=>s.data).catch(()=>null)):null})}genSource(e){return M(this,null,function*(){return console.log("BaseService.genSource",e),""})}}new ao({type:"local",expired:0,prefix:"__VTJ_"});class u1 extends c1{constructor(){super(...arguments);H(this,"getFileCaches",{})}getExtension(){return M(this,null,function*(){return yield this.api("getExtension",{}).catch(()=>{})})}init(r){return M(this,null,function*(){return(yield this.api("init",r).catch(()=>null))||{}})}saveProject(r,n){return M(this,null,function*(){return!!(yield this.api("saveProject",r,{type:n}).catch(()=>!1))})}saveMaterials(r,n){return M(this,null,function*(){return!!(yield this.api("saveMaterials",{project:r,materials:um(n)}).catch(()=>!1))})}saveFile(r){return M(this,null,function*(){return!!(yield this.api("saveFile",r).catch(()=>!1))})}getFile(r){return M(this,null,function*(){return this.getFileCaches[r]||(this.getFileCaches[r]=this.api("getFile",r).catch(()=>null)).finally(()=>{delete this.getFileCaches[r]})})}removeFile(r){return M(this,null,function*(){return!!(yield this.api("removeFile",r).catch(()=>!1))})}saveHistory(r){return M(this,null,function*(){return!!(yield this.api("saveHistory",r).catch(()=>!1))})}removeHistory(r){return M(this,null,function*(){return!!(yield this.api("removeHistory",r).catch(()=>!1))})}getHistory(r){return M(this,null,function*(){return(yield this.api("getHistory",r).catch(()=>null))||{}})}getHistoryItem(r,n){return M(this,null,function*(){return(yield this.api("getHistoryItem",{fId:r,id:n}).catch(()=>null))||{}})}saveHistoryItem(r,n){return M(this,null,function*(){return!!(yield this.api("saveHistoryItem",{fId:r,item:n}).catch(()=>!1))})}removeHistoryItem(r,n){return M(this,null,function*(){return!!(yield this.api("removeHistoryItem",{fId:r,ids:n}).catch(()=>!1))})}}/**!
92
+ }`:"(v) => {}"},n=e.__parseFunction(r),i=mi(he(t.modifiers)?e.__parseExpression(t.modifiers):t.modifiers),s=he(t.arg)?e.__parseExpression(t.arg):t.arg||"modelValue",a={[s]:e.__parseExpression(t.value),[`onUpdate:${s}`]:n};return i.length&&(a[s==="modelValue"?"modelModifiers":`${s}Modifiers`]=i.reduce((u,c)=>(u[c]=!0,u),{})),a}function e1(t,e,r,n,i){if(!e)return null;if(Ze(e))return{default:()=>e};if(he(e))return{default:()=>bo(r.__parseExpression(e))};if(Array.isArray(e)&&e.length>0){const s=t1(e),a=(o,u)=>!o||!i?{}:i!=null&&i.id&&Object.keys(o).length?u?{[u]:o}:{[`scope_${i.id}`]:o}:u?{[u]:Object.create(null)}:{};return Object.entries(s).reduce((o,[u,{nodes:c,params:l,scope:h}])=>(o[u]=p=>{const f=l.length?bm(p!=null?p:{},l):a(p,h);return c.map((d,m)=>kt(d,r.__clone(f),t,n,c,!1,m))},o),{})}return null}function t1(t){const e={};for(const r of t){const n=r1(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 r1(t="default"){return Ze(t)?{name:t,params:[],scope:""}:F({params:[],scope:""},t)}function n1(t,e,r){const{value:n,iterator:i}=t,{item:s="item",index:a="index"}=i||{};let o=r.__parseExpression(n)||[];return Number.isInteger(o)&&(o=new Array(o).fill(!0).map((u,c)=>c+1)),Array.isArray(o)?o.map((u,c)=>e(r.__clone({[s]:u,[a]:c}),c)):(console.warn("[vForRender]:",`${n==null?void 0:n.value} is not a Arrary`),[])}const pn=Gs({name:"VtjPageContainer",setup(){return M(this,null,function*(){const t=d1(),e=fc(),r=wi(),n=wi(),i=lc(Symbol());let s=0;const a=()=>M(null,null,function*(){const u=++s,c=e.meta.__vtj__||e.params.id,l=c?t.getPage(c):t.getHomepage(),h=l?yield t.getRenderComponent(l.id):null;if(u!==s||(r.value=l,n.value=h,i.value=Symbol(),!l))return;Object.assign(e.meta,l.meta||{},{cache:l.cache});const{useTitle:p}=t==null?void 0:t.adapter;if(p){const f=e.meta.title||l.title||"VTJ.PRO";p(f)}}),o=a();return hc(()=>[e.meta.__vtj__,e.params.id],()=>a()),yield o,{provider:t,component:n,file:r,sid:i,route:e}})},render(){const{component:t,sid:e,route:r}=this;return t?gn(t,ue(F({},r.query),{key:e})):gn("div",{style:{padding:"10px"}},"找不到组件,组件不存在或未发布!")},activated(){this.route.meta.cache===!1&&(this.sid=Symbol())}}),i1=Gs({name:"VtjStartupContainer",render(){return gn("div","page not found!")}});function Mn(t,e,r=[]){const n=[];for(const i of r){const{id:s,title:a,icon:o,children:u,hidden:c,layout:l}=i;if(l){const h=Mn(t,e,u||[]);n.push(...h)}else{const h={id:s,title:a,icon:o,hidden:c,url:Rn(i,`${t}/`,e),children:u&&u.length?Mn(t,e,u):void 0};n.push(h)}}return n}function fn(t,e){const{id:r,title:n,meta:i}=t,{name:s="page",prefix:a="",component:o,routeMeta:u}=e,c={name:r,path:Rn(t,a,s),component:o,meta:ue(F(F({title:n},u),i),{__vtj__:r})};return(t.routePath||t.filePath)&&(c.alias=Rn(ue(F({},t),{filePath:void 0,routePath:void 0}),a,s)),c}function Fn(t){const{name:e="page",prefix:r="",pages:n=[],component:i,loader:s,routeMeta:a,homepage:o}=t,u=[];for(const c of n){const{id:l,title:h,dir:p,layout:f,children:d,meta:m}=c;if(p){const v=Fn({name:e,prefix:r,component:i,routeMeta:a,homepage:o,loader:s,pages:d||[]});u.push(...v)}else if(f){const v=Fn({name:e,prefix:r,component:i,routeMeta:a,homepage:o,loader:s,pages:d||[]}),S={name:`layout_${l}`,path:r,component:()=>s(l),meta:ue(F(F({title:h},a),m),{__vtj__:l}),children:v};u.push(S),u.push(fn(c,t))}else if(u.push(fn(c,t)),o===l){const v=fn(c,t);v.path="",v.name=`home_${l}`,delete v.alias,u.push(v)}}return u}function s1(t={},e){const{css:r,store:n,enhance:i}=t,{window:s,app:a,library:o={},adapter:u,mode:c}=e,{Pinia:l}=o;a.config.globalProperties.$libs=o,Pr(s,"global-css",r||""),l&&n&&a1(n,a,l),c1(a,u,t),!u.access&&t.access&&o1(t.access,a,c,u),u1(a,t),i&&l1(i,a,o)}function a1(t,e,r){if(!e.config.globalProperties.$pinia){const n=r.createPinia();e.use(n)}if(_e(t)&&t.value){const n=Ae(t,{},!1,!1,!0),i=r.defineStore("$store",n(e)||{});e.config.globalProperties.$store=i()}}function o1(t,e,r,n){if(_e(t)&&t.value){const i=Ae(t,{},!1,!1,!0),{alert:s,request:a}=n,o=new Qo(F({alert:s,storagePrefix:"__VTJ_APP_"},i(e))),u=e.config.globalProperties.$router;o.connect({mode:r,router:u,request:a}),e.use(o)}}function c1(t,e,r){if(!e.request)return;const{axios:n,request:i,response:s}=r;if(n&&_e(n)&&n.value){const a=Ae(n,{},!1,!1,!0);e.request.setConfig(a(t))}if(i&&_e(i)&&i.value){const a=Ae(i,{},!1,!1,!0),o=e.request;o.__unReq&&o.__unReq(),o.__unReq=e.request.useRequest(u=>a(u,t))}if(s&&_e(s)&&s.value){const a=Ae(s,{},!1,!1,!0),o=e.request;o.__unRes&&o.__unRes(),o.__unRes=e.request.useResponse(u=>a(u,t))}}function u1(t,e){const{beforeEach:r,afterEach:n}=e,i=t.config.globalProperties.$router;if(r&&_e(r)&&r.value){const s=Ae(r,{},!1,!1,!0);i&&i.beforeEach((a,o,u)=>s(a,o,u,t))}if(n&&_e(n)&&n.value){const s=Ae(n,{},!1,!1,!0);i&&i.afterEach((a,o,u)=>s(a,o,u,t))}}function l1(t,e,r={}){_e(t)&&t.value&&Ae(t,{},!1,!1,!0)(e,r)}function h1(t,e,r){if(!t||!e||!r)return;const{VueI18n:n}=e;if(n){const{locale:i,fallbackLocale:s,messages:a=[]}=r,o={};for(let c of a){const l=Object.keys(c).filter(h=>h!=="key");for(const h of l)o[h]||(o[h]={}),o[h][c.key]=c[h]}const u=n.createI18n({legacy:!1,locale:i,fallbackLocale:s,messages:o});t.use(u)}}const rc=Symbol("Provider");class p1 extends Nm{constructor(r){super();H(this,"mode");H(this,"globals",{});H(this,"modules",{});H(this,"adapter",{request:kn,jsonp:vo});H(this,"apis",{});H(this,"dependencies",{});H(this,"materials",{});H(this,"library",{});H(this,"libraryLocales",{});H(this,"libraryLocaleMap",{});H(this,"service");H(this,"project",null);H(this,"components",{});H(this,"nodeEnv","development");H(this,"env",{});H(this,"router",null);H(this,"materialPath","./");H(this,"urlDslCaches",{});H(this,"errorHandler",null);H(this,"initialization");this.options=r;const{service:n,mode:i=se.Raw,dependencies:s,materials:a,project:o={},adapter:u={},globals:c={},modules:l={},router:h=null,materialPath:p="./",nodeEnv:f="development"}=r;this.mode=i,this.modules=l,this.service=n,this.router=h,this.materialPath=p,this.nodeEnv=f,s&&(this.dependencies=s),a&&(this.materials=a),Object.assign(this.globals,c),Object.assign(this.adapter,u);const{access:d,request:m}=this.adapter;d&&d.connect({mode:i,router:h,request:m}),o&&i!==se.Design?(this.initialization=this.load(o).then(()=>this),this.initialization.catch(v=>ft.error("Provider.load.error",v))):(this.project=o,this.triggerReady(),this.initialization=Promise.resolve(this))}createMock(r){return(...n)=>M(null,null,function*(){let i={};if(r)try{i=yield r.apply(r,n)}catch(a){ft.warn("模拟数据模版异常",a)}const s=Jt();return s||console.warn("[@vtj/renderer]","项目缺少mockjs, 你需要安装mockjs依赖,并在应用的 main.ts 中添加 mockjs 导入,确保 window.Mock 可用"),s==null?void 0:s.mock(i)})}load(r){return M(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:a=[],env:o=[]}=this.project,u=globalThis;u&&(u.CKEDITOR_VERSION=void 0),this.initEnv(o),this.mode===se.Raw?yield this.loadDependencies(u):yield this.loadAssets(u),this.initMock(u),this.apis=by(s,a,this.adapter),Xo(u),_y(s,u),this.project.platform!=="uniapp"&&this.initRouter(),this.triggerReady()})}initMock(r){const n=Jt(r);n&&n.setup({timeout:"50-500"})}loadDependencies(){return M(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 M(this,arguments,function*(r={}){const{dependencies:n=[]}=this.project,{dependencies:i,library:s,components:a,materialPath:o,nodeEnv:u,libraryLocales:c}=this,{libraryExports:l,libraryMap:h,materials:p,materialExports:f,materialMapLibrary:d,libraryLocaleMap:m}=yv(n,o,u==="development");Object.assign(this.libraryLocaleMap,m);for(const v of l){const S=i[v],b=r[v];if(b)s[v]=b;else if(S)r[v]=s[v]=yield S();else{const w=h[v]||[];for(const x of w)kr(x)&&(yield Tv(x,Ft.append(x,{v:an}))),Or(x)&&(yield Ps(Ft.append(x,{v:an})));s[v]=r[v]}const _=m[v];if(_){const w=i[_];c[_]=w?yield w():r[_]}}if(u==="development"){for(const S of p)yield Ps(Ft.append(S,{v:an}));const v=this.materials||{};for(const S of f){const b=r[d[S]],_=(b==null?void 0:b.default)||b,w=Dm[S];if(w)_&&w.forEach(x=>{a[x]=_[x]});else{const x=v[S]?(yield v[S]()).default:r[S];x&&_&&(x.components||[]).forEach(y=>{a[y.name]=bv(y,_)})}}}})}initRouter(){const{router:r,project:n,options:i,adapter:s}=this;if(!r)return;const a=(n==null?void 0:n.platform)==="uniapp"?"pages":"page",{routeAppendTo:o,pageRouteName:u=a,routeMeta:c}=i,l=o?"":"/",h={path:`${l}${u}/:id`,name:yr,component:pn},p=this.getHomepage(),f={path:l,name:on,component:p?pn:s.startupComponent||i1,meta:c};if(r.hasRoute(yr)&&r.removeRoute(yr),r.hasRoute(on)&&r.removeRoute(on),i.enableStaticRoute){const d=(n==null?void 0:n.pages)||[];Fn({name:u,prefix:l,pages:d,component:pn,loader:this.getRenderComponent.bind(this),homepage:p==null?void 0:p.id,routeMeta:c}).forEach(m=>{o?r.addRoute(o,m):r.addRoute(m)}),p||(o?r.addRoute(o,f):r.addRoute(f))}else o?(r.addRoute(o,h),r.addRoute(o,f)):(r.addRoute(h),r.addRoute(f))}setErrorHandler(r){r.config.errorHandler=Zn((n,i,s)=>{const a=i==null?void 0:i.$options.name,o=typeof n=="string"?n:(n==null?void 0:n.message)||(n==null?void 0:n.msg)||"未知错误",u=`[ ${a} ] ${o} ${s}`;if(!["getComputedStyle","ResizeObserver"].some(c=>u.includes(c))){try{const c={message:u,err:n,instance:i,info:JSON.stringify(s),stack:n==null?void 0:n.stack};console.error("[VTJ Error]:",c,n==null?void 0:n.stack),this.errorHandler&&this.errorHandler(c)}catch(c){console.warn("[provider.setErrorHandler]",c)}this.adapter.notify&&this.adapter.notify(u,"组件渲染错误","error")}},200)}install(r){var o,u,c,l;const{libraryLocaleMap:n,libraryLocales:i}=this,{libraryOptions:s={}}=this.options,a=r.config.globalProperties.installed||{};for(const[h,p]of Object.entries(this.library))if(!a[h]&&Cv(p)){const f={locale:i[n[h]]},d=s[h]||{},m=F(F({},f),d);r.use(p,m),a[h]=!0}r.provide(rc,this),r.config.globalProperties.$provider=this,r.config.globalProperties.$apis=this.apis,r.config.globalProperties.$request=(o=this.adapter)==null?void 0:o.request,this.options.install&&r.use(this.options.install),this.adapter.access&&r.use(this.adapter.access),((u=this.project)==null?void 0:u.platform)!=="uniapp"&&this.mode!==se.Design&&this.initGlobals(((c=this.project)==null?void 0:c.globals)||{},{app:r,window:globalThis,adapter:this.adapter,library:this.library,mode:this.mode}),this.mode!==se.Design&&((l=this.project)!=null&&l.i18n)&&this.initI18n(r,this.library,this.project.i18n),this.options.enhance&&r.use(this.options.enhance,this),this.mode===se.Design&&this.setErrorHandler(r),r.config.globalProperties.installed=a,this.setGlobals(r.config.globalProperties)}setGlobals(r={}){for(const[n,i]of Object.entries(r))this.globals[n]=i}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,a=[])=>{for(const o of a){if(o.id===s)return o;if(o.children&&o.children.length){const u=i(s,o.children);if(u)return u}}};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 a=n(s.children);if(a)return a}}};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 M(this,null,function*(){const{vtjDir:n=".vtj"}=this.options,i=this.modules[`${n}/files/${r}.json`]||this.modules[`/src/${n}/files/${r}.json`],s=i?yield i():yield this.service.getFile(r,this.project||void 0).catch(()=>null);return s||this.errorHandler&&this.errorHandler(new Error(`区块 ${r} 不存在`)),s})}getDslByUrl(r){return M(this,null,function*(){const n=this.urlDslCaches[r];if(n)return n;if(!this.adapter.request)return null;const i=this.urlDslCaches[r]=this.adapter.request.send({url:r,method:"get",settings:{validSuccess:!1,originResponse:!0}}).then(s=>s.data).catch(()=>(this.urlDslCaches[r]===i&&delete this.urlDslCaches[r],null));return i})}createDslRenderer(r,n={}){const{library:i,components:s,mode:a,apis:o}=this,u=F({mode:a,Vue:i.Vue,UniApp:i.UniApp,components:s,libs:i,apis:o,window:globalThis},n),c=Vy({getDsl:l=>M(this,null,function*(){return(yield this.getDsl(l))||null}),getDslByUrl:l=>M(this,null,function*(){return(yield this.getDslByUrl(l))||null}),options:u});return jn(ue(F({},u),{dsl:r,loader:c}))}getRenderComponent(r,n){return M(this,null,function*(){var a,o;const i=this.getFile(r);if(!i)return ft.warn(`Can not find file: ${r}`),null;if(n&&n(i),this.mode===se.Raw){const{vtjRawDir:u=".vtj/vue"}=this.options,c=Lm(i,((a=this.project)==null?void 0:a.platform)||"web"),l=`${u}/${r}.vue`,h=this.modules[c]||this.modules[`/${c}`]||this.modules[l]||this.modules[`/${l}`]||this.modules[`/src/pages/${r}.vue`];return h?(o=yield h())==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:(ft.warn(`Can not find dsl: ${r}`),null)})}defineUrlSchemaComponent(r,n){return xi(()=>M(this,null,function*(){const i=yield this.getDslByUrl(r);return i?(i.name=n||i.name,this.createDslRenderer(i).renderer):null}))}definePluginComponent(r){return xi(()=>M(null,null,function*(){return yield ec(r,globalThis)}))}initGlobals(r,n){const i=Object.assign({adapter:this.adapter,window:globalThis},n);s1(r,i)}initI18n(r,n,i){h1(r,n,i)}initEnv(r=[]){this.env=r.reduce((n,i)=>(n[i.name]=i[this.nodeEnv],n),{})}}function f1(t){const e=new p1(t);return{provider:e,onReady:r=>e.ready(r),ready:e.initialization}}function d1(t={}){const e=pc(rc,null);if(!e)throw new Error("Can not find provider");if(e.nodeEnv==="development"){const{id:r,version:n}=t;r&&n&&M(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 g1(t,e=""){return M(this,null,function*(){const{name:r,urls:n=[]}=t||{},i=n.map(o=>e+o),{css:s,js:a}=_v(i);if(s.length&&_o(s),a.length)return yield xo(a,r).catch(()=>{})})}const nc={type:"json",validSuccess:!0,originResponse:!1,failMessage:!0,validate:t=>{var e;return((e=t.data)==null?void 0:e.code)===0}},m1=(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:nc}),v1=(t,e="/__vtj__/api/uploader.json")=>(r,n)=>M(null,null,function*(){return yield t.send({url:e,method:"post",data:{files:r,projectId:n},settings:ue(F({},nc),{type:"data"})}).then(i=>i&&i[0]?i[0]:null).catch(()=>null)});function y1(t){return ri({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 b1{constructor(e=kn){H(this,"api");H(this,"pluginCaches",{});H(this,"uploader");this.req=e,this.api=m1(e),this.uploader=v1(e)}getExtension(){return M(this,null,function*(){console.log("BaseService.getExtension")})}init(e){return M(this,null,function*(){return console.log("BaseService.init",e),{}})}saveProject(e,r){return M(this,null,function*(){return!!(yield this.api("saveProject",e,{type:r}).catch(()=>!1))})}saveMaterials(e,r){return M(this,null,function*(){return console.log("BaseService.saveMaterials",e,r),!1})}saveFile(e){return M(this,null,function*(){return console.log("BaseService.saveFile",e),!1})}getFile(e){return M(this,null,function*(){return console.log("BaseService.getFile",e),{}})}removeFile(e){return M(this,null,function*(){return console.log("BaseService.removeFile",e),!1})}saveHistory(e){return M(this,null,function*(){return console.log("BaseService.saveHistory",e),!1})}removeHistory(e){return M(this,null,function*(){return console.log("BaseService.removeHistory",e),!1})}getHistory(e){return M(this,null,function*(){return console.log("BaseService.getHistory",e),{}})}getHistoryItem(e,r){return M(this,null,function*(){return console.log("BaseService.getHistoryItem",e,r),{}})}saveHistoryItem(e,r){return M(this,null,function*(){return console.log("BaseService.saveHistoryItem",e,r),!1})}removeHistoryItem(e,r){return M(this,null,function*(){return console.log("BaseService.removeHistoryItem",e,r),!1})}publish(e){return M(this,null,function*(){return!!(yield this.api("publish",e).catch(()=>!1))})}publishFile(e,r){return M(this,null,function*(){return!!(yield this.api("publishFile",{project:e,file:r}).catch(()=>!1))})}genVueContent(e,r){return M(this,null,function*(){return yield this.api("genVueContent",{project:e,dsl:r}).catch(()=>"")})}parseVue(e,r){return M(this,null,function*(){return yield this.api("parseVue",F({project:e},r))})}createRawPage(e,r){return M(this,null,function*(){return yield this.api("createRawPage",{file:e,project:r}).catch(()=>"")})}removeRawPage(e,r,n){return M(this,null,function*(){return yield this.api("removeRawPage",{id:e,project:r,file:n}).catch(()=>"")})}uploadStaticFile(e,r){return M(this,null,function*(){return yield this.uploader(e,r).catch(()=>null)})}getStaticFiles(e){return M(this,null,function*(){return yield this.api("getStaticFiles",e).catch(()=>[])})}removeStaticFile(e,r){return M(this,null,function*(){return yield this.api("removeStaticFile",{name:e,projectId:r}).catch(()=>"")})}clearStaticFiles(e){return M(this,null,function*(){return yield this.api("clearStaticFiles",e).catch(()=>"")})}getPluginMaterial(e){return M(this,null,function*(){const{urls:r=[]}=e,n=r.filter(s=>mv(s))[0];return n?this.pluginCaches[n]||(this.pluginCaches[n]=kn.send({url:n,method:"get",settings:{validSuccess:!1,originResponse:!0}}).then(s=>s.data).catch(()=>null)):null})}genSource(e){return M(this,null,function*(){return console.log("BaseService.genSource",e),""})}}new po({type:"local",expired:0,prefix:"__VTJ_"});class _1 extends b1{constructor(){super(...arguments);H(this,"getFileCaches",{})}getExtension(){return M(this,null,function*(){return yield this.api("getExtension",{}).catch(()=>{})})}init(r){return M(this,null,function*(){return(yield this.api("init",r).catch(()=>null))||{}})}saveProject(r,n){return M(this,null,function*(){return!!(yield this.api("saveProject",r,{type:n}).catch(()=>!1))})}saveMaterials(r,n){return M(this,null,function*(){return!!(yield this.api("saveMaterials",{project:r,materials:vm(n)}).catch(()=>!1))})}saveFile(r){return M(this,null,function*(){return!!(yield this.api("saveFile",r).catch(()=>!1))})}getFile(r){return M(this,null,function*(){return this.getFileCaches[r]||(this.getFileCaches[r]=this.api("getFile",r).catch(()=>null)).finally(()=>{delete this.getFileCaches[r]})})}removeFile(r){return M(this,null,function*(){return!!(yield this.api("removeFile",r).catch(()=>!1))})}saveHistory(r){return M(this,null,function*(){return!!(yield this.api("saveHistory",r).catch(()=>!1))})}removeHistory(r){return M(this,null,function*(){return!!(yield this.api("removeHistory",r).catch(()=>!1))})}getHistory(r){return M(this,null,function*(){return(yield this.api("getHistory",r).catch(()=>null))||{}})}getHistoryItem(r,n){return M(this,null,function*(){return(yield this.api("getHistoryItem",{fId:r,id:n}).catch(()=>null))||{}})}saveHistoryItem(r,n){return M(this,null,function*(){return!!(yield this.api("saveHistoryItem",{fId:r,item:n}).catch(()=>!1))})}removeHistoryItem(r,n){return M(this,null,function*(){return!!(yield this.api("removeHistoryItem",{fId:r,ids:n}).catch(()=>!1))})}}/**!
93
93
  * Copyright (c) 2026, VTJ.PRO All rights reserved.
94
94
  * @name @vtj/uni
95
95
  * @author CHC chenhuachun1549@dingtalk.com
96
- * @version 0.19.21
96
+ * @version 0.19.23-alpha.0
97
97
  * @license <a href="https://vtj.pro/license.html">MIT License</a>
98
- */const l1=["onLaunch","onShow","onHide","onError","onPageNotFound","onUnhandledRejection","onThemeChange","onPageNotFound","onUniNViewMessage","onExit"],Ms="/pages",h1="VTJ",p1="__UNI__1FC118B",f1="VTJ移动跨端项目",d1="1.0.0",g1="100",m1=!1,v1={},y1={enable:!1},b1="3",_1={name:h1,appid:p1,description:f1,versionName:d1,versionCode:g1,transformPx:m1,"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:v1,"mp-weixin":{appid:"",setting:{urlCheck:!1},usingComponents:!0},"mp-alipay":{usingComponents:!0},"mp-baidu":{usingComponents:!0},"mp-toutiao":{usingComponents:!0},uniStatistics:y1,vueVersion:b1},x1=[],w1={navigationBarTextStyle:"black",navigationBarTitleText:"uni-app",navigationBarBackgroundColor:"#F8F8F8",backgroundColor:"#F8F8F8"},S1={autoscan:!0,custom:{"^uni-(.*)":"@dcloudio/uni-ui/lib/uni-$1/uni-$1.vue"}},E1={pages:x1,globalStyle:w1,easycom:S1};function T1(t){let{manifestJson:e={},pagesJson:r={},routes:n=[]}=t;const i=n.map(s=>{const{path:a,style:o,needLogin:u}=s;return{path:a,style:o,needLogin:u}});return ue(F({},t),{manifestJson:Object.assign({},_1,e),pagesJson:Object.assign({},E1,r,{pages:i})})}const Vn={navigationBarBackgroundColor:"backgroundColor",navigationBarTextStyle:"titleColor",navigationBarTitleText:"titleText",navigationStyle:"style",titleImage:"titleImage",titlePenetrate:"titlePenetrate",transparentTitle:"transparentTitle"};function Qo(t){const e={},r={black:"#000000",white:"#ffffff"};for(const n in t)Vn[n]&&(e[Vn[n]]=n==="navigationBarTextStyle"?r[t[n]]||r.black:t[n]);return e}function C1(t){const e={};for(const r in t)Vn[r]||(e[r]=t[r]);return e}function A1(t){var e,r;return((r=(e=t.h5)==null?void 0:e.router)==null?void 0:r.mode)||"hash"}function I1(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 R1(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 a;return((a=s.style)==null?void 0:a.navigationStyle)==="default"})&&(i=!1)):n.every(s=>{var a;return((a=s.style)==null?void 0:a.navigationStyle)==="custom"})&&(i=!0),i}function O1(t){var o;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 a=(o=i==null?void 0:i.h5)==null?void 0:o.titleNView;return s.find(u=>{var c,l,h;return!!((h=(l=(c=u.style)==null?void 0:c.h5)==null?void 0:l.titleNView)!=null&&h.buttons.length)})&&(r.navigationBarButtons=!0),(a!=null&&a.searchInput||s.find(u=>{var c,l,h;return!!((h=(l=(c=u.style)==null?void 0:c.h5)==null?void 0:l.titleNView)!=null&&h.searchInput)}))&&(r.navigationBarSearchInput=!0),((a==null?void 0:a.type)==="transparent"||s.find(u=>{var c,l,h;return((h=(l=(c=u.style)==null?void 0:c.h5)==null?void 0:l.titleNView)==null?void 0:h.type)==="transparent"}))&&(r.navigationBarTransparent=!0),r}function P1(t,e=window){var p,f,d,m;const{pagesJson:r={},manifestJson:n={}}=t,{topWindow:i,leftWindow:s,rightWindow:a}=I1(r),{navigationBar:o,navigationBarButtons:u,navigationBarSearchInput:c,navigationBarTransparent:l}=O1(t),h={__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__:A1(n),__UNI_FEATURE_PAGES__:!!((p=r.pages)!=null&&p.length),__UNI_FEATURE_TABBAR__:!!((d=(f=r.tabBar)==null?void 0:f.list)!=null&&d.length),__UNI_FEATURE_TABBAR_MIDBUTTON__:!!((m=r.tabBar)!=null&&m.midButton),__UNI_FEATURE_TOPWINDOW__:i,__UNI_FEATURE_LEFTWINDOW__:s,__UNI_FEATURE_RIGHTWINDOW__:a,__UNI_FEATURE_RESPONSIVE__:!1,__UNI_FEATURE_NAVIGATIONBAR__:o,__UNI_FEATURE_PULL_DOWN_REFRESH__:R1(t),__UNI_FEATURE_NAVIGATIONBAR_BUTTONS__:u,__UNI_FEATURE_NAVIGATIONBAR_SEARCHINPUT__:c,__UNI_FEATURE_NAVIGATIONBAR_TRANSPARENT__:l};Object.entries(h).forEach(([v,S])=>{e[v]=S})}const D1="5.07";function $1(t,e=window){var h,p;const{pagesJson:r={},manifestJson:n={}}=t,{easycom:i={}}=r,{appid:s="",name:a="",versionCode:o="",versionName:u=""}=n,c=r.globalStyle,l=((h=n.h5)==null?void 0:h.router)||{};e.__uniConfig={easycom:i,globalStyle:ue(F({},C1(c)),{navigationBar:Qo(c),isNVue:!1}),compilerVersion:D1,appId:s,appName:a,appVersion:u,appVersionCode:String(o),async:F({loading:"AsyncLoading",error:"AsyncError",delay:200,timeout:6e4,suspensible:!0},((p=n.h5)==null?void 0:p.async)||{}),debug:!1,networkTimeout:F({request:6e4,connectSocket:6e4,uploadFile:6e4,downloadFile:6e4},n.networkTimeout||{}),sdkConfigs:{},nvue:{"flex-direction":"column"},locale:"",fallbackLocale:"",locales:{},router:F({mode:"hash",base:"/",assets:"assets",routerBase:l.base||"/"},l),darkmode:!1,themeConfig:{},tabBar:r.tabBar?F({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 N1(t,e=window){const{UniServiceJSBridge:r,UniViewJSBridge:n,getApp:i,uni:s,getCurrentPages:a,upx2px:o,setupPage:u}=t;e.UniServiceJSBridge=r,e.UniViewJSBridge=n,e.getApp=i,e.uni=s,e.wx=s,e.getCurrentPages=a,e.upx2px=o,e.__setupPage=c=>u(c)}function B1(t,e,r){const{openBlock:n,createBlock:i,withCtx:s,createVNode:a}=t,{PageComponent:o,setupPage:u,getApp:c}=e;return{mpType:"page",setup(){return M(this,null,function*(){var m,v;const h=((v=(m=c())==null?void 0:m.$route)==null?void 0:v.query)||{},{loader:p,component:f}=r,d=p?yield p(r):f||{};return()=>(n(),i(o,null,{page:s(()=>[a(u(d),Object.assign({},h,{ref:"page"}),null,512)]),_:1}))})}}}function L1(t,e,r){var f;const{path:n,style:i={},meta:s={},home:a,id:o}=e,u=((f=t.tabBar)==null?void 0:f.list)||[],c=u.findIndex(d=>{var m;return d.pagePath===n||((m=d.pagePath)==null?void 0:m.endsWith(o))}),l=u[c],h=!!l,p=r===0;return F({isTabBar:h,tabBarIndex:c,isQuit:a!=null?a:p,isEntry:a!=null?a:p,navigationBar:F({type:"default"},Qo(i)),isNVue:!1,route:l?l.pagePath:n},s)}function V1(t,e,r,n,i=window){const s=r.map((a,o)=>{const u=L1(n,a,o),c=B1(t,e,a),{path:l}=a;return{path:l,alias:l,meta:u,component:{render(){return t.h(t.Suspense,[t.h(c)])}}}});i.__uniRoutes=s,i.__uniLayout={}}function j1(t,e,r=window){Pr(r,String(t),e)}function M1(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 F1(t){const e=T1(t),{Vue:r,App:n,UniH5:i,routes:s=[],pagesJson:a={},manifestJson:o={},window:u,css:c=""}=e;if(!i)return r.createApp(n);const{plugin:l,setupApp:h}=i;P1(e,u),$1(e,u),N1(i,u),V1(r,i,s,a,u),j1(o.appid||Date.now(),c,u);const p=r.createApp(h(n));return p.use(M1,i),p.use(l),p}function U1(t,e){const r={};return Object.entries(t).forEach(([n,i])=>{l1.includes(n)&&i&&(r[n]=e(i))}),r}function Fs(t,e){return()=>M(null,null,function*(){const r=yield t.getDsl(e);if(r){const{renderer:n}=t.createDslRenderer(r);return n}return null})}function H1(n){return M(this,arguments,function*(t,e=!1,r=Ms){var o,u,c;const i=((o=t.project)==null?void 0:o.pages)||[],s=[];for(const l of i){const h=((u=t.project)==null?void 0:u.homepage)===l.id;s.push({id:l.id,path:`${r}/${l.id}`,loader:Fs(t,l.id),style:F({navigationBarTitleText:l.title},l.style),needLogin:l.needLogin,home:h})}const a=s.find(l=>!!l.home)||s[0];if(a){const l=r===Ms?"/":r;s.unshift(ue(F({},a),{path:l}))}if(e){const l=((c=t.project)==null?void 0:c.blocks)||[];for(const h of l)s.push({id:h.id,path:`${r}/${h.id}`,loader:Fs(t,h.id),style:{navigationStyle:"custom"}})}return s})}function jn(){if(typeof uni<"u")return uni;if(typeof globalThis<"u"&&globalThis.uni)return globalThis.uni;if(typeof window<"u"&&window.uni)return window.uni}function q1(){const t=jn();return t!=null&&t.showLoading&&t.showLoading({title:"加载中...",mask:!0}),{close:()=>{const e=jn();e!=null&&e.hideLoading&&e.hideLoading()}}}function Xo(t,e="",r="warning"){return M(this,null,function*(){const n=jn();return n!=null&&n.showModal?n.showModal({title:e,content:t,showCancel:!1}):(typeof window<"u"&&window.alert(t),!0)})}function z1(t=se.Runtime){let e={};t===se.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 W1=sy({loading:q1,notify:Xo}),ec=new u1(o1(Xo)),G1=z1(),{provider:K1,onReady:J1}=r1({nodeEnv:"production",mode:se.Runtime,modules:G1,materialPath:"../",adapter:W1,service:ec,dependencies:{Vue:()=>_i(()=>import("./@dcloudio-uni-h5-vue-ZHZeNOoM.js").then(t=>t.y),__vite__mapDeps([0,1,2]),import.meta.url),VueRouter:()=>_i(()=>import("./vue-router-cjYR4veV.js"),__vite__mapDeps([3,0,1,2]),import.meta.url)}}),Y1=t=>M(null,null,function*(){const e=(yield ec.getExtension().catch(()=>null))||{},r=top||window,n=yield i1(e.enhance,r.location.pathname),{Vue:i,UniH5:s}=window,a=t.project;if(!a)return;const o=a.uniConfig||{},u=U1(o,d=>Ae(d,window,!1,!0)),{manifestJson:c,pagesJson:l,css:h}=o,p=yield H1(t,!0),f=F1({Vue:i,App:u,UniH5:s,routes:p,css:h,manifestJson:c,pagesJson:l});f.use(t),n&&f.use(n,t),f.mount(document.body)});J1(()=>Y1(K1));
98
+ */const x1=["onLaunch","onShow","onHide","onError","onPageNotFound","onUnhandledRejection","onThemeChange","onPageNotFound","onUniNViewMessage","onExit"],dn="/pages",w1="VTJ",S1="__UNI__1FC118B",E1="VTJ移动跨端项目",T1="1.0.0",C1="100",A1=!1,I1={},R1={enable:!1},k1="3",O1={name:w1,appid:S1,description:E1,versionName:T1,versionCode:C1,transformPx:A1,"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:I1,"mp-weixin":{appid:"",setting:{urlCheck:!1},usingComponents:!0},"mp-alipay":{usingComponents:!0},"mp-baidu":{usingComponents:!0},"mp-toutiao":{usingComponents:!0},uniStatistics:R1,vueVersion:k1},P1=[],$1={navigationBarTextStyle:"black",navigationBarTitleText:"uni-app",navigationBarBackgroundColor:"#F8F8F8",backgroundColor:"#F8F8F8"},D1={autoscan:!0,custom:{"^uni-(.*)":"@dcloudio/uni-ui/lib/uni-$1/uni-$1.vue"}},N1={pages:P1,globalStyle:$1,easycom:D1};function B1(t){let{manifestJson:e={},pagesJson:r={},routes:n=[]}=t;const i=n.map(s=>{const{path:a,style:o,needLogin:u}=s;return{path:a,style:o,needLogin:u}});return ue(F({},t),{manifestJson:Object.assign({},O1,e),pagesJson:Object.assign({},N1,r,{pages:i})})}const Un={navigationBarBackgroundColor:"backgroundColor",navigationBarTextStyle:"titleColor",navigationBarTitleText:"titleText",navigationStyle:"style",titleImage:"titleImage",titlePenetrate:"titlePenetrate",transparentTitle:"transparentTitle"};function ic(t){const e={},r={black:"#000000",white:"#ffffff"};for(const n in t)Un[n]&&(e[Un[n]]=n==="navigationBarTextStyle"?r[t[n]]||r.black:t[n]);return e}function L1(t){const e={};for(const r in t)Un[r]||(e[r]=t[r]);return e}function j1(t){var e,r;return((r=(e=t.h5)==null?void 0:e.router)==null?void 0:r.mode)||"hash"}function V1(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 M1(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 F1(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 a;return((a=s.style)==null?void 0:a.navigationStyle)==="default"})&&(i=!1)):n.every(s=>{var a;return((a=s.style)==null?void 0:a.navigationStyle)==="custom"})&&(i=!0),i}function U1(t){var o;const e=F1(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 a=(o=i==null?void 0:i.h5)==null?void 0:o.titleNView;return s.find(u=>{var c,l,h;return!!((h=(l=(c=u.style)==null?void 0:c.h5)==null?void 0:l.titleNView)!=null&&h.buttons.length)})&&(r.navigationBarButtons=!0),(a!=null&&a.searchInput||s.find(u=>{var c,l,h;return!!((h=(l=(c=u.style)==null?void 0:c.h5)==null?void 0:l.titleNView)!=null&&h.searchInput)}))&&(r.navigationBarSearchInput=!0),((a==null?void 0:a.type)==="transparent"||s.find(u=>{var c,l,h;return((h=(l=(c=u.style)==null?void 0:c.h5)==null?void 0:l.titleNView)==null?void 0:h.type)==="transparent"}))&&(r.navigationBarTransparent=!0),r}function H1(t,e=window){var p,f,d,m;const{pagesJson:r={},manifestJson:n={}}=t,{topWindow:i,leftWindow:s,rightWindow:a}=V1(r),{navigationBar:o,navigationBarButtons:u,navigationBarSearchInput:c,navigationBarTransparent:l}=U1(t),h={__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__:j1(n),__UNI_FEATURE_PAGES__:!!((p=r.pages)!=null&&p.length),__UNI_FEATURE_TABBAR__:!!((d=(f=r.tabBar)==null?void 0:f.list)!=null&&d.length),__UNI_FEATURE_TABBAR_MIDBUTTON__:!!((m=r.tabBar)!=null&&m.midButton),__UNI_FEATURE_TOPWINDOW__:i,__UNI_FEATURE_LEFTWINDOW__:s,__UNI_FEATURE_RIGHTWINDOW__:a,__UNI_FEATURE_RESPONSIVE__:!1,__UNI_FEATURE_NAVIGATIONBAR__:o,__UNI_FEATURE_PULL_DOWN_REFRESH__:M1(t),__UNI_FEATURE_NAVIGATIONBAR_BUTTONS__:u,__UNI_FEATURE_NAVIGATIONBAR_SEARCHINPUT__:c,__UNI_FEATURE_NAVIGATIONBAR_TRANSPARENT__:l};Object.entries(h).forEach(([v,S])=>{e[v]=S})}const q1="5.07";function z1(t,e=window){var h,p;const{pagesJson:r={},manifestJson:n={}}=t,{easycom:i={}}=r,{appid:s="",name:a="",versionCode:o="",versionName:u=""}=n,c=r.globalStyle,l=((h=n.h5)==null?void 0:h.router)||{};e.__uniConfig={easycom:i,globalStyle:ue(F({},L1(c)),{navigationBar:ic(c),isNVue:!1}),compilerVersion:q1,appId:s,appName:a,appVersion:u,appVersionCode:String(o),async:F({loading:"AsyncLoading",error:"AsyncError",delay:200,timeout:6e4,suspensible:!0},((p=n.h5)==null?void 0:p.async)||{}),debug:!1,networkTimeout:F({request:6e4,connectSocket:6e4,uploadFile:6e4,downloadFile:6e4},n.networkTimeout||{}),sdkConfigs:{},nvue:{"flex-direction":"column"},locale:"",fallbackLocale:"",locales:{},router:F({mode:"hash",base:"/",assets:"assets",routerBase:l.base||"/"},l),darkmode:!1,themeConfig:{},tabBar:r.tabBar?F({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 W1(t,e=window){const{UniServiceJSBridge:r,UniViewJSBridge:n,getApp:i,uni:s,getCurrentPages:a,upx2px:o,setupPage:u}=t;e.UniServiceJSBridge=r,e.UniViewJSBridge=n,e.getApp=i,e.uni=s,e.wx=s,e.getCurrentPages=a,e.upx2px=o,e.__setupPage=c=>u(c)}function G1(t,e,r){const{openBlock:n,createBlock:i,withCtx:s,createVNode:a}=t,{PageComponent:o,setupPage:u,getApp:c}=e;return{mpType:"page",setup(){return M(this,null,function*(){var m,v;const h=((v=(m=c())==null?void 0:m.$route)==null?void 0:v.query)||{},{loader:p,component:f}=r,d=p?yield p(r):f||{};return()=>(n(),i(o,null,{page:s(()=>[a(u(d),Object.assign({},h,{ref:"page"}),null,512)]),_:1}))})}}}function K1(t,e,r){var f;const{path:n,style:i={},meta:s={},home:a,id:o}=e,u=((f=t.tabBar)==null?void 0:f.list)||[],c=u.findIndex(d=>{var m;return d.pagePath===n||((m=d.pagePath)==null?void 0:m.endsWith(o))}),l=u[c],h=!!l,p=r===0;return F({isTabBar:h,tabBarIndex:c,isQuit:a!=null?a:p,isEntry:a!=null?a:p,navigationBar:F({type:"default"},ic(i)),isNVue:!1,route:l?l.pagePath:n},s)}function J1(t,e,r,n,i=window){const s=r.map((a,o)=>{const u=K1(n,a,o),c=G1(t,e,a),{path:l}=a;return{path:l,alias:l,meta:u,component:{render(){return t.h(t.Suspense,[t.h(c)])}}}});i.__uniRoutes=s,i.__uniLayout={}}function Y1(t,e,r=window){Pr(r,String(t),e)}function Z1(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 Q1(t){const e=B1(t),{Vue:r,App:n,UniH5:i,routes:s=[],pagesJson:a={},manifestJson:o={},window:u,css:c=""}=e;if(!i)return r.createApp(n);const{plugin:l,setupApp:h}=i;H1(e,u),z1(e,u),W1(i,u),J1(r,i,s,a,u),Y1(o.appid||Date.now(),c,u);const p=r.createApp(h(n));return p.use(Z1,i),p.use(l),p}function X1(t,e){const r={};return Object.entries(t).forEach(([n,i])=>{x1.includes(n)&&i&&(r[n]=e(i))}),r}function Ws(t,e){return()=>M(null,null,function*(){const r=yield t.getDsl(e);if(r){const{renderer:n}=t.createDslRenderer(r);return n}return null})}function e0(n){return M(this,arguments,function*(t,e=!1,r=dn){var o,u,c;const i=ho(((o=t.project)==null?void 0:o.pages)||[]),s=[];for(const l of i){const h=((u=t.project)==null?void 0:u.homepage)===l.id;s.push({id:l.id,path:r===dn?`/${jm(l)}`:`${r}/${l.id}`,loader:Ws(t,l.id),style:F({navigationBarTitleText:l.title},l.style),needLogin:l.needLogin,home:h})}const a=s.find(l=>!!l.home)||s[0];if(a){const l=r===dn?"/":r;s.unshift(ue(F({},a),{path:l}))}if(e){const l=((c=t.project)==null?void 0:c.blocks)||[];for(const h of l)s.push({id:h.id,path:`${r}/${h.id}`,loader:Ws(t,h.id),style:{navigationStyle:"custom"}})}return s})}function Hn(){if(typeof uni<"u")return uni;if(typeof globalThis<"u"&&globalThis.uni)return globalThis.uni;if(typeof window<"u"&&window.uni)return window.uni}function t0(){const t=Hn();return t!=null&&t.showLoading&&t.showLoading({title:"加载中...",mask:!0}),{close:()=>{const e=Hn();e!=null&&e.hideLoading&&e.hideLoading()}}}function sc(t,e="",r="warning"){return M(this,null,function*(){const n=Hn();return n!=null&&n.showModal?n.showModal({title:e,content:t,showCancel:!1}):(typeof window<"u"&&window.alert(t),!0)})}function r0(t=se.Runtime){let e={};t===se.Runtime?e=Object.assign({}):e=Object.assign({});const r=Object.assign({});e=F(F({},e),r);let n={};for(const[i,s]of Object.entries(e))n[i]=typeof s=="function"?s:()=>Promise.resolve(s);return n}const n0=my({loading:t0,notify:sc}),ac=new _1(y1(sc)),i0=r0(),{provider:s0,onReady:a0}=f1({nodeEnv:"production",mode:se.Runtime,modules:i0,materialPath:"../",adapter:n0,service:ac,dependencies:{Vue:()=>Ti(()=>import("./@dcloudio-uni-h5-vue-ZHZeNOoM.js").then(t=>t.y),__vite__mapDeps([0,1,2]),import.meta.url),VueRouter:()=>Ti(()=>import("./vue-router-cjYR4veV.js"),__vite__mapDeps([3,0,1,2]),import.meta.url)}}),o0=t=>M(null,null,function*(){const e=(yield ac.getExtension().catch(()=>null))||{},r=top||window,n=yield g1(e.enhance,r.location.pathname),{Vue:i,UniH5:s}=window,a=t.project;if(!a)return;const o=a.uniConfig||{},u=X1(o,d=>Ae(d,window,!1,!0)),{manifestJson:c,pagesJson:l,css:h}=o,p=yield e0(t,!0),f=Q1({Vue:i,App:u,UniH5:s,routes:p,css:h,manifestJson:c,pagesJson:l});f.use(t),n&&f.use(n,t),f.mount(document.body)});a0(()=>o0(s0));