UNPKG

@fxtop/proxy

Version:

a lightweight web proxy tool based on Nodejs

1 lines 67.4 kB
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("net"),e=require("tls"),r=require("http"),n=require("https"),o=require("fs"),i=require("path"),a=require("mkcert"),u=require("child_process"),s=require("regedit");function c(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var f=c(t),l=c(e),h=c(r),p=c(n),d=c(o),v=c(i),y=c(a),g=c(s),m="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function w(t,e,r){return t(r={path:e,exports:{},require:function(t,e){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==e&&r.path)}},r.exports),r.exports}var b=function(t){return t&&t.Math==Math&&t},S=b("object"==typeof globalThis&&globalThis)||b("object"==typeof window&&window)||b("object"==typeof self&&self)||b("object"==typeof m&&m)||function(){return this}()||Function("return this")(),A=function(t){try{return!!t()}catch(t){return!0}},O=!A((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),E={}.propertyIsEnumerable,x=Object.getOwnPropertyDescriptor,P={f:x&&!E.call({1:2},1)?function(t){var e=x(this,t);return!!e&&e.enumerable}:E},j=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},R={}.toString,k=function(t){return R.call(t).slice(8,-1)},C="".split,I=A((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==k(t)?C.call(t,""):Object(t)}:Object,T=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t},L=function(t){return I(T(t))},F=function(t){return"object"==typeof t?null!==t:"function"==typeof t},D=function(t,e){if(!F(t))return t;var r,n;if(e&&"function"==typeof(r=t.toString)&&!F(n=r.call(t)))return n;if("function"==typeof(r=t.valueOf)&&!F(n=r.call(t)))return n;if(!e&&"function"==typeof(r=t.toString)&&!F(n=r.call(t)))return n;throw TypeError("Can't convert object to primitive value")},U={}.hasOwnProperty,M=function(t,e){return U.call(t,e)},N=S.document,q=F(N)&&F(N.createElement),B=function(t){return q?N.createElement(t):{}},G=!O&&!A((function(){return 7!=Object.defineProperty(B("div"),"a",{get:function(){return 7}}).a})),V=Object.getOwnPropertyDescriptor,Q={f:O?V:function(t,e){if(t=L(t),e=D(e,!0),G)try{return V(t,e)}catch(t){}if(M(t,e))return j(!P.f.call(t,e),t[e])}},z=/#|\.prototype\./,H=function(t,e){var r=$[W(t)];return r==J||r!=_&&("function"==typeof e?A(e):!!e)},W=H.normalize=function(t){return String(t).replace(z,".").toLowerCase()},$=H.data={},_=H.NATIVE="N",J=H.POLYFILL="P",Y=H,Z={},K=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t},X=function(t,e,r){if(K(t),void 0===e)return t;switch(r){case 0:return function(){return t.call(e)};case 1:return function(r){return t.call(e,r)};case 2:return function(r,n){return t.call(e,r,n)};case 3:return function(r,n,o){return t.call(e,r,n,o)}}return function(){return t.apply(e,arguments)}},tt=function(t){if(!F(t))throw TypeError(String(t)+" is not an object");return t},et=Object.defineProperty,rt={f:O?et:function(t,e,r){if(tt(t),e=D(e,!0),tt(r),G)try{return et(t,e,r)}catch(t){}if("get"in r||"set"in r)throw TypeError("Accessors not supported");return"value"in r&&(t[e]=r.value),t}},nt=O?function(t,e,r){return rt.f(t,e,j(1,r))}:function(t,e,r){return t[e]=r,t},ot=Q.f,it=function(t){var e=function(e,r,n){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,r)}return new t(e,r,n)}return t.apply(this,arguments)};return e.prototype=t.prototype,e},at=function(t,e){var r,n,o,i,a,u,s,c,f=t.target,l=t.global,h=t.stat,p=t.proto,d=l?S:h?S[f]:(S[f]||{}).prototype,v=l?Z:Z[f]||(Z[f]={}),y=v.prototype;for(o in e)r=!Y(l?o:f+(h?".":"#")+o,t.forced)&&d&&M(d,o),a=v[o],r&&(u=t.noTargetGet?(c=ot(d,o))&&c.value:d[o]),i=r&&u?u:e[o],r&&typeof a==typeof i||(s=t.bind&&r?X(i,S):t.wrap&&r?it(i):p&&"function"==typeof i?X(Function.call,i):i,(t.sham||i&&i.sham||a&&a.sham)&&nt(s,"sham",!0),v[o]=s,p&&(M(Z,n=f+"Prototype")||nt(Z,n,{}),Z[n][o]=i,t.real&&y&&!y[o]&&nt(y,o,i)))},ut={},st=0,ct=Math.random(),ft=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++st+ct).toString(36)},lt=!A((function(){return Object.isExtensible(Object.preventExtensions({}))})),ht=w((function(t){var e=rt.f,r=ft("meta"),n=0,o=Object.isExtensible||function(){return!0},i=function(t){e(t,r,{value:{objectID:"O"+ ++n,weakData:{}}})},a=t.exports={REQUIRED:!1,fastKey:function(t,e){if(!F(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!M(t,r)){if(!o(t))return"F";if(!e)return"E";i(t)}return t[r].objectID},getWeakData:function(t,e){if(!M(t,r)){if(!o(t))return!0;if(!e)return!1;i(t)}return t[r].weakData},onFreeze:function(t){return lt&&a.REQUIRED&&o(t)&&!M(t,r)&&i(t),t}};ut[r]=!0})),pt=S["__core-js_shared__"]||function(t,e){try{nt(S,t,e)}catch(r){S[t]=e}return e}("__core-js_shared__",{}),dt=w((function(t){(t.exports=function(t,e){return pt[t]||(pt[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.8.0",mode:"pure",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})})),vt=!!Object.getOwnPropertySymbols&&!A((function(){return!String(Symbol())})),yt=vt&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,gt=dt("wks"),mt=S.Symbol,wt=yt?mt:mt&&mt.withoutSetter||ft,bt=function(t){return M(gt,t)||(vt&&M(mt,t)?gt[t]=mt[t]:gt[t]=wt("Symbol."+t)),gt[t]},St={},At=bt("iterator"),Ot=Array.prototype,Et=function(t){return void 0!==t&&(St.Array===t||Ot[At]===t)},xt=Math.ceil,Pt=Math.floor,jt=function(t){return isNaN(t=+t)?0:(t>0?Pt:xt)(t)},Rt=Math.min,kt=function(t){return t>0?Rt(jt(t),9007199254740991):0},Ct={};Ct[bt("toStringTag")]="z";var It="[object z]"===String(Ct),Tt=bt("toStringTag"),Lt="Arguments"==k(function(){return arguments}()),Ft=It?k:function(t){var e,r,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),Tt))?r:Lt?k(e):"Object"==(n=k(e))&&"function"==typeof e.callee?"Arguments":n},Dt=bt("iterator"),Ut=function(t){if(null!=t)return t[Dt]||t["@@iterator"]||St[Ft(t)]},Mt=function(t){var e=t.return;if(void 0!==e)return tt(e.call(t)).value},Nt=function(t,e){this.stopped=t,this.result=e},qt=function(t,e,r){var n,o,i,a,u,s,c,f=r&&r.that,l=!(!r||!r.AS_ENTRIES),h=!(!r||!r.IS_ITERATOR),p=!(!r||!r.INTERRUPTED),d=X(e,f,1+l+p),v=function(t){return n&&Mt(n),new Nt(!0,t)},y=function(t){return l?(tt(t),p?d(t[0],t[1],v):d(t[0],t[1])):p?d(t,v):d(t)};if(h)n=t;else{if("function"!=typeof(o=Ut(t)))throw TypeError("Target is not iterable");if(Et(o)){for(i=0,a=kt(t.length);a>i;i++)if((u=y(t[i]))&&u instanceof Nt)return u;return new Nt(!1)}n=o.call(t)}for(s=n.next;!(c=s.call(n)).done;){try{u=y(c.value)}catch(t){throw Mt(n),t}if("object"==typeof u&&u&&u instanceof Nt)return u}return new Nt(!1)},Bt=function(t,e,r){if(!(t instanceof e))throw TypeError("Incorrect "+(r?r+" ":"")+"invocation");return t},Gt=It?{}.toString:function(){return"[object "+Ft(this)+"]"},Vt=rt.f,Qt=bt("toStringTag"),zt=function(t,e,r,n){if(t){var o=r?t:t.prototype;M(o,Qt)||Vt(o,Qt,{configurable:!0,value:e}),n&&!It&&nt(o,"toString",Gt)}},Ht=function(t){return Object(T(t))},Wt=Array.isArray||function(t){return"Array"==k(t)},$t=bt("species"),_t=function(t,e){var r;return Wt(t)&&("function"!=typeof(r=t.constructor)||r!==Array&&!Wt(r.prototype)?F(r)&&null===(r=r[$t])&&(r=void 0):r=void 0),new(void 0===r?Array:r)(0===e?0:e)},Jt=[].push,Yt=function(t){var e=1==t,r=2==t,n=3==t,o=4==t,i=6==t,a=7==t,u=5==t||i;return function(s,c,f,l){for(var h,p,d=Ht(s),v=I(d),y=X(c,f,3),g=kt(v.length),m=0,w=l||_t,b=e?w(s,g):r||a?w(s,0):void 0;g>m;m++)if((u||m in v)&&(p=y(h=v[m],m,d),t))if(e)b[m]=p;else if(p)switch(t){case 3:return!0;case 5:return h;case 6:return m;case 2:Jt.call(b,h)}else switch(t){case 4:return!1;case 7:Jt.call(b,h)}return i?-1:n||o?o:b}},Zt={forEach:Yt(0),map:Yt(1),filter:Yt(2),some:Yt(3),every:Yt(4),find:Yt(5),findIndex:Yt(6),filterOut:Yt(7)},Kt=Function.toString;"function"!=typeof pt.inspectSource&&(pt.inspectSource=function(t){return Kt.call(t)});var Xt,te,ee,re=pt.inspectSource,ne=S.WeakMap,oe="function"==typeof ne&&/native code/.test(re(ne)),ie=dt("keys"),ae=function(t){return ie[t]||(ie[t]=ft(t))},ue=S.WeakMap;if(oe){var se=pt.state||(pt.state=new ue),ce=se.get,fe=se.has,le=se.set;Xt=function(t,e){return e.facade=t,le.call(se,t,e),e},te=function(t){return ce.call(se,t)||{}},ee=function(t){return fe.call(se,t)}}else{var he=ae("state");ut[he]=!0,Xt=function(t,e){return e.facade=t,nt(t,he,e),e},te=function(t){return M(t,he)?t[he]:{}},ee=function(t){return M(t,he)}}var pe,de={set:Xt,get:te,has:ee,enforce:function(t){return ee(t)?te(t):Xt(t,{})},getterFor:function(t){return function(e){var r;if(!F(e)||(r=te(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return r}}},ve=rt.f,ye=Zt.forEach,ge=de.set,me=de.getterFor,we=function(t,e,r){var n,o=-1!==t.indexOf("Map"),i=-1!==t.indexOf("Weak"),a=o?"set":"add",u=S[t],s=u&&u.prototype,c={};if(O&&"function"==typeof u&&(i||s.forEach&&!A((function(){(new u).entries().next()})))){n=e((function(e,r){ge(Bt(e,n,t),{type:t,collection:new u}),null!=r&&qt(r,e[a],{that:e,AS_ENTRIES:o})}));var f=me(t);ye(["add","clear","delete","forEach","get","has","set","keys","values","entries"],(function(t){var e="add"==t||"set"==t;!(t in s)||i&&"clear"==t||nt(n.prototype,t,(function(r,n){var o=f(this).collection;if(!e&&i&&!F(r))return"get"==t&&void 0;var a=o[t](0===r?0:r,n);return e?this:a}))})),i||ve(n.prototype,"size",{configurable:!0,get:function(){return f(this).collection.size}})}else n=r.getConstructor(e,t,o,a),ht.REQUIRED=!0;return zt(n,t,!1,!0),c[t]=n,at({global:!0,forced:!0},c),i||r.setStrong(n,t,o),n},be=Math.max,Se=Math.min,Ae=function(t){return function(e,r,n){var o,i=L(e),a=kt(i.length),u=function(t,e){var r=jt(t);return r<0?be(r+e,0):Se(r,e)}(n,a);if(t&&r!=r){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((t||u in i)&&i[u]===r)return t||u||0;return!t&&-1}},Oe={includes:Ae(!0),indexOf:Ae(!1)},Ee=Oe.indexOf,xe=function(t,e){var r,n=L(t),o=0,i=[];for(r in n)!M(ut,r)&&M(n,r)&&i.push(r);for(;e.length>o;)M(n,r=e[o++])&&(~Ee(i,r)||i.push(r));return i},Pe=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],je=Object.keys||function(t){return xe(t,Pe)},Re=O?Object.defineProperties:function(t,e){tt(t);for(var r,n=je(e),o=n.length,i=0;o>i;)rt.f(t,r=n[i++],e[r]);return t},ke=function(t){return"function"==typeof t?t:void 0},Ce=function(t,e){return arguments.length<2?ke(Z[t])||ke(S[t]):Z[t]&&Z[t][e]||S[t]&&S[t][e]},Ie=Ce("document","documentElement"),Te=ae("IE_PROTO"),Le=function(){},Fe=function(t){return"<script>"+t+"<\/script>"},De=function(){try{pe=document.domain&&new ActiveXObject("htmlfile")}catch(t){}var t,e;De=pe?function(t){t.write(Fe("")),t.close();var e=t.parentWindow.Object;return t=null,e}(pe):((e=B("iframe")).style.display="none",Ie.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(Fe("document.F=Object")),t.close(),t.F);for(var r=Pe.length;r--;)delete De.prototype[Pe[r]];return De()};ut[Te]=!0;var Ue,Me,Ne,qe=Object.create||function(t,e){var r;return null!==t?(Le.prototype=tt(t),r=new Le,Le.prototype=null,r[Te]=t):r=De(),void 0===e?r:Re(r,e)},Be=function(t,e,r,n){n&&n.enumerable?t[e]=r:nt(t,e,r)},Ge=function(t,e,r){for(var n in e)r&&r.unsafe&&t[n]?t[n]=e[n]:Be(t,n,e[n],r);return t},Ve=!A((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),Qe=ae("IE_PROTO"),ze=Object.prototype,He=Ve?Object.getPrototypeOf:function(t){return t=Ht(t),M(t,Qe)?t[Qe]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?ze:null},We=(bt("iterator"),!1);[].keys&&("next"in(Ne=[].keys())?(Me=He(He(Ne)))!==Object.prototype&&(Ue=Me):We=!0),null==Ue&&(Ue={});var $e={IteratorPrototype:Ue,BUGGY_SAFARI_ITERATORS:We},_e=$e.IteratorPrototype,Je=function(){return this},Ye=function(t,e,r){var n=e+" Iterator";return t.prototype=qe(_e,{next:j(1,r)}),zt(t,n,!1,!0),St[n]=Je,t},Ze=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{(t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(r,[]),e=r instanceof Array}catch(t){}return function(r,n){return tt(r),function(t){if(!F(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype")}(n),e?t.call(r,n):r.__proto__=n,r}}():void 0),Ke=$e.IteratorPrototype,Xe=$e.BUGGY_SAFARI_ITERATORS,tr=bt("iterator"),er=function(){return this},rr=function(t,e,r,n,o,i,a){Ye(r,e,n);var u,s,c,f=function(t){if(t===o&&v)return v;if(!Xe&&t in p)return p[t];switch(t){case"keys":case"values":case"entries":return function(){return new r(this,t)}}return function(){return new r(this)}},l=e+" Iterator",h=!1,p=t.prototype,d=p[tr]||p["@@iterator"]||o&&p[o],v=!Xe&&d||f(o),y="Array"==e&&p.entries||d;if(y&&(u=He(y.call(new t)),Ke!==Object.prototype&&u.next&&(zt(u,l,!0,!0),St[l]=er)),"values"==o&&d&&"values"!==d.name&&(h=!0,v=function(){return d.call(this)}),a&&p[tr]!==v&&nt(p,tr,v),St[e]=v,o)if(s={values:f("values"),keys:i?v:f("keys"),entries:f("entries")},a)for(c in s)(Xe||h||!(c in p))&&Be(p,c,s[c]);else at({target:e,proto:!0,forced:Xe||h},s);return s},nr=bt("species"),or=function(t){var e=Ce(t),r=rt.f;O&&e&&!e[nr]&&r(e,nr,{configurable:!0,get:function(){return this}})},ir=rt.f,ar=ht.fastKey,ur=de.set,sr=de.getterFor,cr={getConstructor:function(t,e,r,n){var o=t((function(t,i){Bt(t,o,e),ur(t,{type:e,index:qe(null),first:void 0,last:void 0,size:0}),O||(t.size=0),null!=i&&qt(i,t[n],{that:t,AS_ENTRIES:r})})),i=sr(e),a=function(t,e,r){var n,o,a=i(t),s=u(t,e);return s?s.value=r:(a.last=s={index:o=ar(e,!0),key:e,value:r,previous:n=a.last,next:void 0,removed:!1},a.first||(a.first=s),n&&(n.next=s),O?a.size++:t.size++,"F"!==o&&(a.index[o]=s)),t},u=function(t,e){var r,n=i(t),o=ar(e);if("F"!==o)return n.index[o];for(r=n.first;r;r=r.next)if(r.key==e)return r};return Ge(o.prototype,{clear:function(){for(var t=i(this),e=t.index,r=t.first;r;)r.removed=!0,r.previous&&(r.previous=r.previous.next=void 0),delete e[r.index],r=r.next;t.first=t.last=void 0,O?t.size=0:this.size=0},delete:function(t){var e=this,r=i(e),n=u(e,t);if(n){var o=n.next,a=n.previous;delete r.index[n.index],n.removed=!0,a&&(a.next=o),o&&(o.previous=a),r.first==n&&(r.first=o),r.last==n&&(r.last=a),O?r.size--:e.size--}return!!n},forEach:function(t){for(var e,r=i(this),n=X(t,arguments.length>1?arguments[1]:void 0,3);e=e?e.next:r.first;)for(n(e.value,e.key,this);e&&e.removed;)e=e.previous},has:function(t){return!!u(this,t)}}),Ge(o.prototype,r?{get:function(t){var e=u(this,t);return e&&e.value},set:function(t,e){return a(this,0===t?0:t,e)}}:{add:function(t){return a(this,t=0===t?0:t,t)}}),O&&ir(o.prototype,"size",{get:function(){return i(this).size}}),o},setStrong:function(t,e,r){var n=e+" Iterator",o=sr(e),i=sr(n);rr(t,e,(function(t,e){ur(this,{type:n,target:t,state:o(t),kind:e,last:void 0})}),(function(){for(var t=i(this),e=t.kind,r=t.last;r&&r.removed;)r=r.previous;return t.target&&(t.last=r=r?r.next:t.state.first)?"keys"==e?{value:r.key,done:!1}:"values"==e?{value:r.value,done:!1}:{value:[r.key,r.value],done:!1}:(t.target=void 0,{value:void 0,done:!0})}),r?"entries":"values",!r,!0),or(e)}},fr=(we("Map",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),cr),function(t){return function(e,r){var n,o,i=String(T(e)),a=jt(r),u=i.length;return a<0||a>=u?t?"":void 0:(n=i.charCodeAt(a))<55296||n>56319||a+1===u||(o=i.charCodeAt(a+1))<56320||o>57343?t?i.charAt(a):n:t?i.slice(a,a+2):o-56320+(n-55296<<10)+65536}}),lr={codeAt:fr(!1),charAt:fr(!0)},hr=lr.charAt,pr=de.set,dr=de.getterFor("String Iterator");rr(String,"String",(function(t){pr(this,{type:"String Iterator",string:String(t),index:0})}),(function(){var t,e=dr(this),r=e.string,n=e.index;return n>=r.length?{value:void 0,done:!0}:(t=hr(r,n),e.index+=t.length,{value:t,done:!1})}));var vr=de.set,yr=de.getterFor("Array Iterator");rr(Array,"Array",(function(t,e){vr(this,{type:"Array Iterator",target:L(t),index:0,kind:e})}),(function(){var t=yr(this),e=t.target,r=t.kind,n=t.index++;return!e||n>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==r?{value:n,done:!1}:"values"==r?{value:e[n],done:!1}:{value:[n,e[n]],done:!1}}),"values");St.Arguments=St.Array;var gr=bt("toStringTag");for(var mr in{CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}){var wr=S[mr],br=wr&&wr.prototype;br&&Ft(br)!==gr&&nt(br,gr,mr),St[mr]=St.Array}var Sr=Z.Map,Ar=function(t,e){var r=[][t];return!!r&&A((function(){r.call(null,e||function(){throw 1},1)}))},Or=Object.defineProperty,Er={},xr=function(t){throw t},Pr=function(t,e){if(M(Er,t))return Er[t];e||(e={});var r=[][t],n=!!M(e,"ACCESSORS")&&e.ACCESSORS,o=M(e,0)?e[0]:xr,i=M(e,1)?e[1]:void 0;return Er[t]=!!r&&!A((function(){if(n&&!O)return!0;var t={length:-1};n?Or(t,1,{enumerable:!0,get:xr}):t[1]=1,r.call(t,o,i)}))},jr=Zt.forEach,Rr=Ar("forEach"),kr=Pr("forEach"),Cr=Rr&&kr?[].forEach:function(t){return jr(this,t,arguments.length>1?arguments[1]:void 0)};at({target:"Array",proto:!0,forced:[].forEach!=Cr},{forEach:Cr});var Ir=function(t){return Z[t+"Prototype"]},Tr=Ir("Array").forEach,Lr=Array.prototype,Fr={DOMTokenList:!0,NodeList:!0},Dr=function(t){var e=t.forEach;return t===Lr||t instanceof Array&&e===Lr.forEach||Fr.hasOwnProperty(Ft(t))?Tr:e},Ur={f:Object.getOwnPropertySymbols},Mr=Object.assign,Nr=Object.defineProperty,qr=!Mr||A((function(){if(O&&1!==Mr({b:1},Mr(Nr({},"a",{enumerable:!0,get:function(){Nr(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},r=Symbol(),n="abcdefghijklmnopqrst";return t[r]=7,n.split("").forEach((function(t){e[t]=t})),7!=Mr({},t)[r]||je(Mr({},e)).join("")!=n}))?function(t,e){for(var r=Ht(t),n=arguments.length,o=1,i=Ur.f,a=P.f;n>o;)for(var u,s=I(arguments[o++]),c=i?je(s).concat(i(s)):je(s),f=c.length,l=0;f>l;)u=c[l++],O&&!a.call(s,u)||(r[u]=s[u]);return r}:Mr;at({target:"Object",stat:!0,forced:Object.assign!==qr},{assign:qr});var Br,Gr,Vr=Z.Object.assign,Qr=function(t,e,r){var n=D(e);n in t?rt.f(t,n,j(0,r)):t[n]=r},zr=Ce("navigator","userAgent")||"",Hr=S.process,Wr=Hr&&Hr.versions,$r=Wr&&Wr.v8;$r?Gr=(Br=$r.split("."))[0]+Br[1]:zr&&(!(Br=zr.match(/Edge\/(\d+)/))||Br[1]>=74)&&(Br=zr.match(/Chrome\/(\d+)/))&&(Gr=Br[1]);var _r=Gr&&+Gr,Jr=bt("species"),Yr=function(t){return _r>=51||!A((function(){var e=[];return(e.constructor={})[Jr]=function(){return{foo:1}},1!==e[t](Boolean).foo}))},Zr=bt("isConcatSpreadable"),Kr=_r>=51||!A((function(){var t=[];return t[Zr]=!1,t.concat()[0]!==t})),Xr=Yr("concat"),tn=function(t){if(!F(t))return!1;var e=t[Zr];return void 0!==e?!!e:Wt(t)};at({target:"Array",proto:!0,forced:!Kr||!Xr},{concat:function(t){var e,r,n,o,i,a=Ht(this),u=_t(a,0),s=0;for(e=-1,n=arguments.length;e<n;e++)if(tn(i=-1===e?a:arguments[e])){if(s+(o=kt(i.length))>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(r=0;r<o;r++,s++)r in i&&Qr(u,s,i[r])}else{if(s>=9007199254740991)throw TypeError("Maximum allowed index exceeded");Qr(u,s++,i)}return u.length=s,u}});var en=Ir("Array").concat,rn=Array.prototype,nn=function(t){var e=t.concat;return t===rn||t instanceof Array&&e===rn.concat?en:e},on="\t\n\v\f\r                 \u2028\u2029\ufeff",an="["+on+"]",un=RegExp("^"+an+an+"*"),sn=RegExp(an+an+"*$"),cn=function(t){return function(e){var r=String(T(e));return 1&t&&(r=r.replace(un,"")),2&t&&(r=r.replace(sn,"")),r}},fn={start:cn(1),end:cn(2),trim:cn(3)}.trim,ln=S.parseInt,hn=/^[+-]?0[Xx]/,pn=8!==ln(on+"08")||22!==ln(on+"0x16")?function(t,e){var r=fn(String(t));return ln(r,e>>>0||(hn.test(r)?16:10))}:ln;at({global:!0,forced:parseInt!=pn},{parseInt:pn});var dn=Z.parseInt,vn=bt("iterator"),yn=!A((function(){var t=new URL("b?a=1&b=2&c=3","http://a"),e=t.searchParams,r="";return t.pathname="c%20d",e.forEach((function(t,n){e.delete("b"),r+=n+t})),!t.toJSON||!e.sort||"http://a/c%20d?a=1&c=3"!==t.href||"3"!==e.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!e[vn]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==r||"x"!==new URL("http://x",void 0).host})),gn=function(t,e,r,n){try{return n?e(tt(r)[0],r[1]):e(r)}catch(e){throw Mt(t),e}},mn=function(t){var e,r,n,o,i,a,u=Ht(t),s="function"==typeof this?this:Array,c=arguments.length,f=c>1?arguments[1]:void 0,l=void 0!==f,h=Ut(u),p=0;if(l&&(f=X(f,c>2?arguments[2]:void 0,2)),null==h||s==Array&&Et(h))for(r=new s(e=kt(u.length));e>p;p++)a=l?f(u[p],p):u[p],Qr(r,p,a);else for(i=(o=h.call(u)).next,r=new s;!(n=i.call(o)).done;p++)a=l?gn(o,f,[n.value,p],!0):n.value,Qr(r,p,a);return r.length=p,r},wn=/[^\0-\u007E]/,bn=/[.\u3002\uFF0E\uFF61]/g,Sn="Overflow: input needs wider integers to process",An=Math.floor,On=String.fromCharCode,En=function(t){return t+22+75*(t<26)},xn=function(t,e,r){var n=0;for(t=r?An(t/700):t>>1,t+=An(t/e);t>455;n+=36)t=An(t/35);return An(n+36*t/(t+38))},Pn=function(t){var e,r,n=[],o=(t=function(t){for(var e=[],r=0,n=t.length;r<n;){var o=t.charCodeAt(r++);if(o>=55296&&o<=56319&&r<n){var i=t.charCodeAt(r++);56320==(64512&i)?e.push(((1023&o)<<10)+(1023&i)+65536):(e.push(o),r--)}else e.push(o)}return e}(t)).length,i=128,a=0,u=72;for(e=0;e<t.length;e++)(r=t[e])<128&&n.push(On(r));var s=n.length,c=s;for(s&&n.push("-");c<o;){var f=2147483647;for(e=0;e<t.length;e++)(r=t[e])>=i&&r<f&&(f=r);var l=c+1;if(f-i>An((2147483647-a)/l))throw RangeError(Sn);for(a+=(f-i)*l,i=f,e=0;e<t.length;e++){if((r=t[e])<i&&++a>2147483647)throw RangeError(Sn);if(r==i){for(var h=a,p=36;;p+=36){var d=p<=u?1:p>=u+26?26:p-u;if(h<d)break;var v=h-d,y=36-d;n.push(On(En(d+v%y))),h=An(v/y)}n.push(On(En(h))),u=xn(a,l,c==s),a=0,++c}}++a,++i}return n.join("")},jn=function(t){var e=Ut(t);if("function"!=typeof e)throw TypeError(String(t)+" is not iterable");return tt(e.call(t))},Rn=Ce("fetch"),kn=Ce("Headers"),Cn=bt("iterator"),In=de.set,Tn=de.getterFor("URLSearchParams"),Ln=de.getterFor("URLSearchParamsIterator"),Fn=/\+/g,Dn=Array(4),Un=function(t){return Dn[t-1]||(Dn[t-1]=RegExp("((?:%[\\da-f]{2}){"+t+"})","gi"))},Mn=function(t){try{return decodeURIComponent(t)}catch(e){return t}},Nn=function(t){var e=t.replace(Fn," "),r=4;try{return decodeURIComponent(e)}catch(t){for(;r;)e=e.replace(Un(r--),Mn);return e}},qn=/[!'()~]|%20/g,Bn={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},Gn=function(t){return Bn[t]},Vn=function(t){return encodeURIComponent(t).replace(qn,Gn)},Qn=function(t,e){if(e)for(var r,n,o=e.split("&"),i=0;i<o.length;)(r=o[i++]).length&&(n=r.split("="),t.push({key:Nn(n.shift()),value:Nn(n.join("="))}))},zn=function(t){this.entries.length=0,Qn(this.entries,t)},Hn=function(t,e){if(t<e)throw TypeError("Not enough arguments")},Wn=Ye((function(t,e){In(this,{type:"URLSearchParamsIterator",iterator:jn(Tn(t).entries),kind:e})}),"Iterator",(function(){var t=Ln(this),e=t.kind,r=t.iterator.next(),n=r.value;return r.done||(r.value="keys"===e?n.key:"values"===e?n.value:[n.key,n.value]),r})),$n=function(){Bt(this,$n,"URLSearchParams");var t,e,r,n,o,i,a,u,s,c=arguments.length>0?arguments[0]:void 0,f=this,l=[];if(In(f,{type:"URLSearchParams",entries:l,updateURL:function(){},updateSearchParams:zn}),void 0!==c)if(F(c))if("function"==typeof(t=Ut(c)))for(r=(e=t.call(c)).next;!(n=r.call(e)).done;){if((a=(i=(o=jn(tt(n.value))).next).call(o)).done||(u=i.call(o)).done||!i.call(o).done)throw TypeError("Expected sequence with length 2");l.push({key:a.value+"",value:u.value+""})}else for(s in c)M(c,s)&&l.push({key:s,value:c[s]+""});else Qn(l,"string"==typeof c?"?"===c.charAt(0)?c.slice(1):c:c+"")},_n=$n.prototype;Ge(_n,{append:function(t,e){Hn(arguments.length,2);var r=Tn(this);r.entries.push({key:t+"",value:e+""}),r.updateURL()},delete:function(t){Hn(arguments.length,1);for(var e=Tn(this),r=e.entries,n=t+"",o=0;o<r.length;)r[o].key===n?r.splice(o,1):o++;e.updateURL()},get:function(t){Hn(arguments.length,1);for(var e=Tn(this).entries,r=t+"",n=0;n<e.length;n++)if(e[n].key===r)return e[n].value;return null},getAll:function(t){Hn(arguments.length,1);for(var e=Tn(this).entries,r=t+"",n=[],o=0;o<e.length;o++)e[o].key===r&&n.push(e[o].value);return n},has:function(t){Hn(arguments.length,1);for(var e=Tn(this).entries,r=t+"",n=0;n<e.length;)if(e[n++].key===r)return!0;return!1},set:function(t,e){Hn(arguments.length,1);for(var r,n=Tn(this),o=n.entries,i=!1,a=t+"",u=e+"",s=0;s<o.length;s++)(r=o[s]).key===a&&(i?o.splice(s--,1):(i=!0,r.value=u));i||o.push({key:a,value:u}),n.updateURL()},sort:function(){var t,e,r,n=Tn(this),o=n.entries,i=o.slice();for(o.length=0,r=0;r<i.length;r++){for(t=i[r],e=0;e<r;e++)if(o[e].key>t.key){o.splice(e,0,t);break}e===r&&o.push(t)}n.updateURL()},forEach:function(t){for(var e,r=Tn(this).entries,n=X(t,arguments.length>1?arguments[1]:void 0,3),o=0;o<r.length;)n((e=r[o++]).value,e.key,this)},keys:function(){return new Wn(this,"keys")},values:function(){return new Wn(this,"values")},entries:function(){return new Wn(this,"entries")}},{enumerable:!0}),Be(_n,Cn,_n.entries),Be(_n,"toString",(function(){for(var t,e=Tn(this).entries,r=[],n=0;n<e.length;)t=e[n++],r.push(Vn(t.key)+"="+Vn(t.value));return r.join("&")}),{enumerable:!0}),zt($n,"URLSearchParams"),at({global:!0,forced:!yn},{URLSearchParams:$n}),yn||"function"!=typeof Rn||"function"!=typeof kn||at({global:!0,enumerable:!0,forced:!0},{fetch:function(t){var e,r,n,o=[t];return arguments.length>1&&(F(e=arguments[1])&&(r=e.body,"URLSearchParams"===Ft(r)&&((n=e.headers?new kn(e.headers):new kn).has("content-type")||n.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"),e=qe(e,{body:j(0,String(r)),headers:j(0,n)}))),o.push(e)),Rn.apply(this,o)}});var Jn,Yn={URLSearchParams:$n,getState:Tn},Zn=lr.codeAt,Kn=S.URL,Xn=Yn.URLSearchParams,to=Yn.getState,eo=de.set,ro=de.getterFor("URL"),no=Math.floor,oo=Math.pow,io=/[A-Za-z]/,ao=/[\d+-.A-Za-z]/,uo=/\d/,so=/^(0x|0X)/,co=/^[0-7]+$/,fo=/^\d+$/,lo=/^[\dA-Fa-f]+$/,ho=/[\u0000\u0009\u000A\u000D #%/:?@[\\]]/,po=/[\u0000\u0009\u000A\u000D #/:?@[\\]]/,vo=/^[\u0000-\u001F ]+|[\u0000-\u001F ]+$/g,yo=/[\u0009\u000A\u000D]/g,go=function(t,e){var r,n,o;if("["==e.charAt(0)){if("]"!=e.charAt(e.length-1))return"Invalid host";if(!(r=wo(e.slice(1,-1))))return"Invalid host";t.host=r}else if(jo(t)){if(e=function(t){var e,r,n=[],o=t.toLowerCase().replace(bn,".").split(".");for(e=0;e<o.length;e++)r=o[e],n.push(wn.test(r)?"xn--"+Pn(r):r);return n.join(".")}(e),ho.test(e))return"Invalid host";if(null===(r=mo(e)))return"Invalid host";t.host=r}else{if(po.test(e))return"Invalid host";for(r="",n=mn(e),o=0;o<n.length;o++)r+=xo(n[o],So);t.host=r}},mo=function(t){var e,r,n,o,i,a,u,s=t.split(".");if(s.length&&""==s[s.length-1]&&s.pop(),(e=s.length)>4)return t;for(r=[],n=0;n<e;n++){if(""==(o=s[n]))return t;if(i=10,o.length>1&&"0"==o.charAt(0)&&(i=so.test(o)?16:8,o=o.slice(8==i?1:2)),""===o)a=0;else{if(!(10==i?fo:8==i?co:lo).test(o))return t;a=parseInt(o,i)}r.push(a)}for(n=0;n<e;n++)if(a=r[n],n==e-1){if(a>=oo(256,5-e))return null}else if(a>255)return null;for(u=r.pop(),n=0;n<r.length;n++)u+=r[n]*oo(256,3-n);return u},wo=function(t){var e,r,n,o,i,a,u,s=[0,0,0,0,0,0,0,0],c=0,f=null,l=0,h=function(){return t.charAt(l)};if(":"==h()){if(":"!=t.charAt(1))return;l+=2,f=++c}for(;h();){if(8==c)return;if(":"!=h()){for(e=r=0;r<4&&lo.test(h());)e=16*e+parseInt(h(),16),l++,r++;if("."==h()){if(0==r)return;if(l-=r,c>6)return;for(n=0;h();){if(o=null,n>0){if(!("."==h()&&n<4))return;l++}if(!uo.test(h()))return;for(;uo.test(h());){if(i=parseInt(h(),10),null===o)o=i;else{if(0==o)return;o=10*o+i}if(o>255)return;l++}s[c]=256*s[c]+o,2!=++n&&4!=n||c++}if(4!=n)return;break}if(":"==h()){if(l++,!h())return}else if(h())return;s[c++]=e}else{if(null!==f)return;l++,f=++c}}if(null!==f)for(a=c-f,c=7;0!=c&&a>0;)u=s[c],s[c--]=s[f+a-1],s[f+--a]=u;else if(8!=c)return;return s},bo=function(t){var e,r,n,o;if("number"==typeof t){for(e=[],r=0;r<4;r++)e.unshift(t%256),t=no(t/256);return e.join(".")}if("object"==typeof t){for(e="",n=function(t){for(var e=null,r=1,n=null,o=0,i=0;i<8;i++)0!==t[i]?(o>r&&(e=n,r=o),n=null,o=0):(null===n&&(n=i),++o);return o>r&&(e=n,r=o),e}(t),r=0;r<8;r++)o&&0===t[r]||(o&&(o=!1),n===r?(e+=r?":":"::",o=!0):(e+=t[r].toString(16),r<7&&(e+=":")));return"["+e+"]"}return t},So={},Ao=qr({},So,{" ":1,'"':1,"<":1,">":1,"`":1}),Oo=qr({},Ao,{"#":1,"?":1,"{":1,"}":1}),Eo=qr({},Oo,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),xo=function(t,e){var r=Zn(t,0);return r>32&&r<127&&!M(e,t)?t:encodeURIComponent(t)},Po={ftp:21,file:null,http:80,https:443,ws:80,wss:443},jo=function(t){return M(Po,t.scheme)},Ro=function(t){return""!=t.username||""!=t.password},ko=function(t){return!t.host||t.cannotBeABaseURL||"file"==t.scheme},Co=function(t,e){var r;return 2==t.length&&io.test(t.charAt(0))&&(":"==(r=t.charAt(1))||!e&&"|"==r)},Io=function(t){var e;return t.length>1&&Co(t.slice(0,2))&&(2==t.length||"/"===(e=t.charAt(2))||"\\"===e||"?"===e||"#"===e)},To=function(t){var e=t.path,r=e.length;!r||"file"==t.scheme&&1==r&&Co(e[0],!0)||e.pop()},Lo=function(t){return"."===t||"%2e"===t.toLowerCase()},Fo={},Do={},Uo={},Mo={},No={},qo={},Bo={},Go={},Vo={},Qo={},zo={},Ho={},Wo={},$o={},_o={},Jo={},Yo={},Zo={},Ko={},Xo={},ti={},ei=function(t,e,r,n){var o,i,a,u,s,c=r||Fo,f=0,l="",h=!1,p=!1,d=!1;for(r||(t.scheme="",t.username="",t.password="",t.host=null,t.port=null,t.path=[],t.query=null,t.fragment=null,t.cannotBeABaseURL=!1,e=e.replace(vo,"")),e=e.replace(yo,""),o=mn(e);f<=o.length;){switch(i=o[f],c){case Fo:if(!i||!io.test(i)){if(r)return"Invalid scheme";c=Uo;continue}l+=i.toLowerCase(),c=Do;break;case Do:if(i&&(ao.test(i)||"+"==i||"-"==i||"."==i))l+=i.toLowerCase();else{if(":"!=i){if(r)return"Invalid scheme";l="",c=Uo,f=0;continue}if(r&&(jo(t)!=M(Po,l)||"file"==l&&(Ro(t)||null!==t.port)||"file"==t.scheme&&!t.host))return;if(t.scheme=l,r)return void(jo(t)&&Po[t.scheme]==t.port&&(t.port=null));l="","file"==t.scheme?c=$o:jo(t)&&n&&n.scheme==t.scheme?c=Mo:jo(t)?c=Go:"/"==o[f+1]?(c=No,f++):(t.cannotBeABaseURL=!0,t.path.push(""),c=Ko)}break;case Uo:if(!n||n.cannotBeABaseURL&&"#"!=i)return"Invalid scheme";if(n.cannotBeABaseURL&&"#"==i){t.scheme=n.scheme,t.path=n.path.slice(),t.query=n.query,t.fragment="",t.cannotBeABaseURL=!0,c=ti;break}c="file"==n.scheme?$o:qo;continue;case Mo:if("/"!=i||"/"!=o[f+1]){c=qo;continue}c=Vo,f++;break;case No:if("/"==i){c=Qo;break}c=Zo;continue;case qo:if(t.scheme=n.scheme,i==Jn)t.username=n.username,t.password=n.password,t.host=n.host,t.port=n.port,t.path=n.path.slice(),t.query=n.query;else if("/"==i||"\\"==i&&jo(t))c=Bo;else if("?"==i)t.username=n.username,t.password=n.password,t.host=n.host,t.port=n.port,t.path=n.path.slice(),t.query="",c=Xo;else{if("#"!=i){t.username=n.username,t.password=n.password,t.host=n.host,t.port=n.port,t.path=n.path.slice(),t.path.pop(),c=Zo;continue}t.username=n.username,t.password=n.password,t.host=n.host,t.port=n.port,t.path=n.path.slice(),t.query=n.query,t.fragment="",c=ti}break;case Bo:if(!jo(t)||"/"!=i&&"\\"!=i){if("/"!=i){t.username=n.username,t.password=n.password,t.host=n.host,t.port=n.port,c=Zo;continue}c=Qo}else c=Vo;break;case Go:if(c=Vo,"/"!=i||"/"!=l.charAt(f+1))continue;f++;break;case Vo:if("/"!=i&&"\\"!=i){c=Qo;continue}break;case Qo:if("@"==i){h&&(l="%40"+l),h=!0,a=mn(l);for(var v=0;v<a.length;v++){var y=a[v];if(":"!=y||d){var g=xo(y,Eo);d?t.password+=g:t.username+=g}else d=!0}l=""}else if(i==Jn||"/"==i||"?"==i||"#"==i||"\\"==i&&jo(t)){if(h&&""==l)return"Invalid authority";f-=mn(l).length+1,l="",c=zo}else l+=i;break;case zo:case Ho:if(r&&"file"==t.scheme){c=Jo;continue}if(":"!=i||p){if(i==Jn||"/"==i||"?"==i||"#"==i||"\\"==i&&jo(t)){if(jo(t)&&""==l)return"Invalid host";if(r&&""==l&&(Ro(t)||null!==t.port))return;if(u=go(t,l))return u;if(l="",c=Yo,r)return;continue}"["==i?p=!0:"]"==i&&(p=!1),l+=i}else{if(""==l)return"Invalid host";if(u=go(t,l))return u;if(l="",c=Wo,r==Ho)return}break;case Wo:if(!uo.test(i)){if(i==Jn||"/"==i||"?"==i||"#"==i||"\\"==i&&jo(t)||r){if(""!=l){var m=parseInt(l,10);if(m>65535)return"Invalid port";t.port=jo(t)&&m===Po[t.scheme]?null:m,l=""}if(r)return;c=Yo;continue}return"Invalid port"}l+=i;break;case $o:if(t.scheme="file","/"==i||"\\"==i)c=_o;else{if(!n||"file"!=n.scheme){c=Zo;continue}if(i==Jn)t.host=n.host,t.path=n.path.slice(),t.query=n.query;else if("?"==i)t.host=n.host,t.path=n.path.slice(),t.query="",c=Xo;else{if("#"!=i){Io(o.slice(f).join(""))||(t.host=n.host,t.path=n.path.slice(),To(t)),c=Zo;continue}t.host=n.host,t.path=n.path.slice(),t.query=n.query,t.fragment="",c=ti}}break;case _o:if("/"==i||"\\"==i){c=Jo;break}n&&"file"==n.scheme&&!Io(o.slice(f).join(""))&&(Co(n.path[0],!0)?t.path.push(n.path[0]):t.host=n.host),c=Zo;continue;case Jo:if(i==Jn||"/"==i||"\\"==i||"?"==i||"#"==i){if(!r&&Co(l))c=Zo;else if(""==l){if(t.host="",r)return;c=Yo}else{if(u=go(t,l))return u;if("localhost"==t.host&&(t.host=""),r)return;l="",c=Yo}continue}l+=i;break;case Yo:if(jo(t)){if(c=Zo,"/"!=i&&"\\"!=i)continue}else if(r||"?"!=i)if(r||"#"!=i){if(i!=Jn&&(c=Zo,"/"!=i))continue}else t.fragment="",c=ti;else t.query="",c=Xo;break;case Zo:if(i==Jn||"/"==i||"\\"==i&&jo(t)||!r&&("?"==i||"#"==i)){if(".."===(s=(s=l).toLowerCase())||"%2e."===s||".%2e"===s||"%2e%2e"===s?(To(t),"/"==i||"\\"==i&&jo(t)||t.path.push("")):Lo(l)?"/"==i||"\\"==i&&jo(t)||t.path.push(""):("file"==t.scheme&&!t.path.length&&Co(l)&&(t.host&&(t.host=""),l=l.charAt(0)+":"),t.path.push(l)),l="","file"==t.scheme&&(i==Jn||"?"==i||"#"==i))for(;t.path.length>1&&""===t.path[0];)t.path.shift();"?"==i?(t.query="",c=Xo):"#"==i&&(t.fragment="",c=ti)}else l+=xo(i,Oo);break;case Ko:"?"==i?(t.query="",c=Xo):"#"==i?(t.fragment="",c=ti):i!=Jn&&(t.path[0]+=xo(i,So));break;case Xo:r||"#"!=i?i!=Jn&&("'"==i&&jo(t)?t.query+="%27":t.query+="#"==i?"%23":xo(i,So)):(t.fragment="",c=ti);break;case ti:i!=Jn&&(t.fragment+=xo(i,Ao))}f++}},ri=function(t){var e,r,n=Bt(this,ri,"URL"),o=arguments.length>1?arguments[1]:void 0,i=String(t),a=eo(n,{type:"URL"});if(void 0!==o)if(o instanceof ri)e=ro(o);else if(r=ei(e={},String(o)))throw TypeError(r);if(r=ei(a,i,null,e))throw TypeError(r);var u=a.searchParams=new Xn,s=to(u);s.updateSearchParams(a.query),s.updateURL=function(){a.query=String(u)||null},O||(n.href=oi.call(n),n.origin=ii.call(n),n.protocol=ai.call(n),n.username=ui.call(n),n.password=si.call(n),n.host=ci.call(n),n.hostname=fi.call(n),n.port=li.call(n),n.pathname=hi.call(n),n.search=pi.call(n),n.searchParams=di.call(n),n.hash=vi.call(n))},ni=ri.prototype,oi=function(){var t=ro(this),e=t.scheme,r=t.username,n=t.password,o=t.host,i=t.port,a=t.path,u=t.query,s=t.fragment,c=e+":";return null!==o?(c+="//",Ro(t)&&(c+=r+(n?":"+n:"")+"@"),c+=bo(o),null!==i&&(c+=":"+i)):"file"==e&&(c+="//"),c+=t.cannotBeABaseURL?a[0]:a.length?"/"+a.join("/"):"",null!==u&&(c+="?"+u),null!==s&&(c+="#"+s),c},ii=function(){var t=ro(this),e=t.scheme,r=t.port;if("blob"==e)try{return new URL(e.path[0]).origin}catch(t){return"null"}return"file"!=e&&jo(t)?e+"://"+bo(t.host)+(null!==r?":"+r:""):"null"},ai=function(){return ro(this).scheme+":"},ui=function(){return ro(this).username},si=function(){return ro(this).password},ci=function(){var t=ro(this),e=t.host,r=t.port;return null===e?"":null===r?bo(e):bo(e)+":"+r},fi=function(){var t=ro(this).host;return null===t?"":bo(t)},li=function(){var t=ro(this).port;return null===t?"":String(t)},hi=function(){var t=ro(this),e=t.path;return t.cannotBeABaseURL?e[0]:e.length?"/"+e.join("/"):""},pi=function(){var t=ro(this).query;return t?"?"+t:""},di=function(){return ro(this).searchParams},vi=function(){var t=ro(this).fragment;return t?"#"+t:""},yi=function(t,e){return{get:t,set:e,configurable:!0,enumerable:!0}};if(O&&Re(ni,{href:yi(oi,(function(t){var e=ro(this),r=String(t),n=ei(e,r);if(n)throw TypeError(n);to(e.searchParams).updateSearchParams(e.query)})),origin:yi(ii),protocol:yi(ai,(function(t){var e=ro(this);ei(e,String(t)+":",Fo)})),username:yi(ui,(function(t){var e=ro(this),r=mn(String(t));if(!ko(e)){e.username="";for(var n=0;n<r.length;n++)e.username+=xo(r[n],Eo)}})),password:yi(si,(function(t){var e=ro(this),r=mn(String(t));if(!ko(e)){e.password="";for(var n=0;n<r.length;n++)e.password+=xo(r[n],Eo)}})),host:yi(ci,(function(t){var e=ro(this);e.cannotBeABaseURL||ei(e,String(t),zo)})),hostname:yi(fi,(function(t){var e=ro(this);e.cannotBeABaseURL||ei(e,String(t),Ho)})),port:yi(li,(function(t){var e=ro(this);ko(e)||(""==(t=String(t))?e.port=null:ei(e,t,Wo))})),pathname:yi(hi,(function(t){var e=ro(this);e.cannotBeABaseURL||(e.path=[],ei(e,t+"",Yo))})),search:yi(pi,(function(t){var e=ro(this);""==(t=String(t))?e.query=null:("?"==t.charAt(0)&&(t=t.slice(1)),e.query="",ei(e,t,Xo)),to(e.searchParams).updateSearchParams(e.query)})),searchParams:yi(di),hash:yi(vi,(function(t){var e=ro(this);""!=(t=String(t))?("#"==t.charAt(0)&&(t=t.slice(1)),e.fragment="",ei(e,t,ti)):e.fragment=null}))}),Be(ni,"toJSON",(function(){return oi.call(this)}),{enumerable:!0}),Be(ni,"toString",(function(){return oi.call(this)}),{enumerable:!0}),Kn){var gi=Kn.createObjectURL,mi=Kn.revokeObjectURL;gi&&Be(ri,"createObjectURL",(function(t){return gi.apply(Kn,arguments)})),mi&&Be(ri,"revokeObjectURL",(function(t){return mi.apply(Kn,arguments)}))}zt(ri,"URL"),at({global:!0,forced:!yn,sham:!O},{URL:ri});var wi=Z.URL,bi=[].slice,Si={},Ai=function(t,e,r){if(!(e in Si)){for(var n=[],o=0;o<e;o++)n[o]="a["+o+"]";Si[e]=Function("C,a","return new C("+n.join(",")+")")}return Si[e](t,r)},Oi=Function.bind||function(t){var e=K(this),r=bi.call(arguments,1),n=function(){var o=r.concat(bi.call(arguments));return this instanceof n?Ai(e,o.length,o):e.apply(t,o)};return F(e.prototype)&&(n.prototype=e.prototype),n};at({target:"Function",proto:!0},{bind:Oi});var Ei=Ir("Function").bind,xi=Function.prototype,Pi=function(t){var e=t.bind;return t===xi||t instanceof Function&&e===xi.bind?Ei:e},ji=(we("Set",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),cr),Z.Set);at({target:"Object",stat:!0,forced:!O,sham:!O},{defineProperty:rt.f});var Ri=w((function(t){var e=Z.Object,r=t.exports=function(t,r,n){return e.defineProperty(t,r,n)};e.defineProperty.sham&&(r.sham=!0)})),ki=Ri;var Ci=function(t,e,r){return e in t?ki(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t},Ii=function(t,e){var r=this;if(!(r instanceof Ii))return new Ii(t,e);Ze&&(r=Ze(new Error(void 0),He(r))),void 0!==e&&nt(r,"message",String(e));var n=[];return qt(t,n.push,{that:n}),nt(r,"errors",n),r};Ii.prototype=qe(Error.prototype,{constructor:j(5,Ii),message:j(5,""),name:j(5,"AggregateError")}),at({global:!0},{AggregateError:Ii});var Ti=S.Promise,Li=bt("iterator"),Fi=!1;try{var Di=0,Ui={next:function(){return{done:!!Di++}},return:function(){Fi=!0}};Ui[Li]=function(){return this},Array.from(Ui,(function(){throw 2}))}catch(t){}var Mi,Ni,qi,Bi=bt("species"),Gi=function(t,e){var r,n=tt(t).constructor;return void 0===n||null==(r=tt(n)[Bi])?e:K(r)},Vi=/(iphone|ipod|ipad).*applewebkit/i.test(zr),Qi="process"==k(S.process),zi=S.location,Hi=S.setImmediate,Wi=S.clearImmediate,$i=S.process,_i=S.MessageChannel,Ji=S.Dispatch,Yi=0,Zi={},Ki=function(t){if(Zi.hasOwnProperty(t)){var e=Zi[t];delete Zi[t],e()}},Xi=function(t){return function(){Ki(t)}},ta=function(t){Ki(t.data)},ea=function(t){S.postMessage(t+"",zi.protocol+"//"+zi.host)};Hi&&Wi||(Hi=function(t){for(var e=[],r=1;arguments.length>r;)e.push(arguments[r++]);return Zi[++Yi]=function(){("function"==typeof t?t:Function(t)).apply(void 0,e)},Mi(Yi),Yi},Wi=function(t){delete Zi[t]},Qi?Mi=function(t){$i.nextTick(Xi(t))}:Ji&&Ji.now?Mi=function(t){Ji.now(Xi(t))}:_i&&!Vi?(qi=(Ni=new _i).port2,Ni.port1.onmessage=ta,Mi=X(qi.postMessage,qi,1)):S.addEventListener&&"function"==typeof postMessage&&!S.importScripts&&zi&&"file:"!==zi.protocol&&!A(ea)?(Mi=ea,S.addEventListener("message",ta,!1)):Mi="onreadystatechange"in B("script")?function(t){Ie.appendChild(B("script")).onreadystatechange=function(){Ie.removeChild(this),Ki(t)}}:function(t){setTimeout(Xi(t),0)});var ra,na,oa,ia,aa,ua,sa,ca,fa={set:Hi,clear:Wi},la=Q.f,ha=fa.set,pa=S.MutationObserver||S.WebKitMutationObserver,da=S.document,va=S.process,ya=S.Promise,ga=la(S,"queueMicrotask"),ma=ga&&ga.value;ma||(ra=function(){var t,e;for(Qi&&(t=va.domain)&&t.exit();na;){e=na.fn,na=na.next;try{e()}catch(t){throw na?ia():oa=void 0,t}}oa=void 0,t&&t.enter()},!Vi&&!Qi&&pa&&da?(aa=!0,ua=da.createTextNode(""),new pa(ra).observe(ua,{characterData:!0}),ia=function(){ua.data=aa=!aa}):ya&&ya.resolve?(sa=ya.resolve(void 0),ca=sa.then,ia=function(){ca.call(sa,ra)}):ia=Qi?function(){va.nextTick(ra)}:function(){ha.call(S,ra)});var wa,ba,Sa,Aa=ma||function(t){var e={fn:t,next:void 0};oa&&(oa.next=e),na||(na=e,ia()),oa=e},Oa=function(t){var e,r;this.promise=new t((function(t,n){if(void 0!==e||void 0!==r)throw TypeError("Bad Promise constructor");e=t,r=n})),this.resolve=K(e),this.reject=K(r)},Ea={f:function(t){return new Oa(t)}},xa=function(t,e){if(tt(t),F(e)&&e.constructor===t)return e;var r=Ea.f(t);return(0,r.resolve)(e),r.promise},Pa=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}},ja=fa.set,Ra=bt("species"),ka="Promise",Ca=de.get,Ia=de.set,Ta=de.getterFor(ka),La=Ti,Fa=S.TypeError,Da=S.document,Ua=S.process,Ma=(Ce("fetch"),Ea.f),Na=Ma,qa=!!(Da&&Da.createEvent&&S.dispatchEvent),Ba="function"==typeof PromiseRejectionEvent,Ga=Y(ka,(function(){if(!(re(La)!==String(La))){if(66===_r)return!0;if(!Qi&&!Ba)return!0}if(!La.prototype.finally)return!0;if(_r>=51&&/native code/.test(La))return!1;var t=La.resolve(1),e=function(t){t((function(){}),(function(){}))};return(t.constructor={})[Ra]=e,!(t.then((function(){}))instanceof e)})),Va=Ga||!function(t,e){if(!e&&!Fi)return!1;var r=!1;try{var n={};n[Li]=function(){return{next:function(){return{done:r=!0}}}},t(n)}catch(t){}return r}((function(t){La.all(t).catch((function(){}))})),Qa=function(t){var e;return!(!F(t)||"function"!=typeof(e=t.then))&&e},za=function(t,e){if(!t.notified){t.notified=!0;var r=t.reactions;Aa((function(){for(var n=t.value,o=1==t.state,i=0;r.length>i;){var a,u,s,c=r[i++],f=o?c.ok:c.fail,l=c.resolve,h=c.reject,p=c.domain;try{f?(o||(2===t.rejection&&_a(t),t.rejection=1),!0===f?a=n:(p&&p.enter(),a=f(n),p&&(p.exit(),s=!0)),a===c.promise?h(Fa("Promise-chain cycle")):(u=Qa(a))?u.call(a,l,h):l(a)):h(n)}catch(t){p&&!s&&p.exit(),h(t)}}t.reactions=[],t.notified=!1,e&&!t.rejection&&Wa(t)}))}},Ha=function(t,e,r){var n,o;qa?((n=Da.createEvent("Event")).promise=e,n.reason=r,n.initEvent(t,!1,!0),S.dispatchEvent(n)):n={promise:e,reason:r},!Ba&&(o=S["on"+t])?o(n):"unhandledrejection"===t&&function(t,e){var r=S.console;r&&r.error&&(1===arguments.length?r.error(t):r.error(t,e))}("Unhandled promise rejection",r)},Wa=function(t){ja.call(S,(function(){var e,r=t.facade,n=t.value;if($a(t)&&(e=Pa((function(){Qi?Ua.emit("unhandledRejection",n,r):Ha("unhandledrejection",r,n)})),t.rejection=Qi||$a(t)?2:1,e.error))throw e.value}))},$a=function(t){return 1!==t.rejection&&!t.parent},_a=function(t){ja.call(S,(function(){var e=t.facade;Qi?Ua.emit("rejectionHandled",e):Ha("rejectionhandled",e,t.value)}))},Ja=function(t,e,r){return function(n){t(e,n,r)}},Ya=function(t,e,r){t.done||(t.done=!0,r&&(t=r),t.value=e,t.state=2,za(t,!0))},Za=function(t,e,r){if(!t.done){t.done=!0,r&&(t=r);try{if(t.facade===e)throw Fa("Promise can't be resolved itself");var n=Qa(e);n?Aa((function(){var r={done:!1};try{n.call(e,Ja(Za,r,t),Ja(Ya,r,t))}catch(e){Ya(r,e,t)}})):(t.value=e,t.state=1,za(t,!1))}catch(e){Ya({done:!1},e,t)}}};Ga&&(La=function(t){Bt(this,La,ka),K(t),wa.call(this);var e=Ca(this);try{t(Ja(Za,e),Ja(Ya,e))}catch(t){Ya(e,t)}},(wa=function(t){Ia(this,{type:ka,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=Ge(La.prototype,{then:function(t,e){var r=Ta(this),n=Ma(Gi(this,La));return n.ok="function"!=typeof t||t,n.fail="function"==typeof e&&e,n.domain=Qi?Ua.domain:void 0,r.parent=!0,r.reactions.push(n),0!=r.state&&za(r,!1),n.promise},catch:function(t){return this.then(void 0,t)}}),ba=function(){var t=new wa,e=Ca(t);this.promise=t,this.resolve=Ja(Za,e),this.reject=Ja(Ya,e)},Ea.f=Ma=function(t){return t===La||t===Sa?new ba(t):Na(t)}),at({global:!0,wrap:!0,forced:Ga},{Promise:La}),zt(La,ka,!1,!0),or(ka),Sa=Ce(ka),at({target:ka,stat:!0,forced:Ga},{reject:function(t){var e=Ma(this);return e.reject.call(void 0,t),e.promise}}),at({target:ka,stat:!0,forced:true},{resolve:function(t){return xa(this===Sa?La:this,t)}}),at({target:ka,stat:!0,forced:Va},{all:function(t){var e=this,r=Ma(e),n=r.resolve,o=r.reject,i=Pa((function(){var r=K(e.resolve),i=[],a=0,u=1;qt(t,(function(t){var s=a++,c=!1;i.push(void 0),u++,r.call(e,t).then((function(t){c||(c=!0,i[s]=t,--u||n(i))}),o)})),--u||n(i)}));return i.error&&o(i.value),r.promise},race:function(t){var e=this,r=Ma(e),n=r.reject,o=Pa((function(){var o=K(e.resolve);qt(t,(function(t){o.call(e,t).then(r.resolve,n)}))}));return o.error&&n(o.value),r.promise}}),at({target:"Promise",stat:!0},{allSettled:function(t){var e=this,r=Ea.f(e),n=r.resolve,o=r.reject,i=Pa((function(){var r=K(e.resolve),o=[],i=0,a=1;qt(t,(function(t){var u=i++,s=!1;o.push(void 0),a++,r.call(e,t).then((function(t){s||(s=!0,o[u]={status:"fulfilled",value:t},--a||n(o))}),(function(t){s||(s=!0,o[u]={status:"rejected",reason:t},--a||n(o))}))})),--a||n(o)}));return i.error&&o(i.value),r.promise}});at({target:"Promise",stat:!0},{any:function(t){var e=this,r=Ea.f(e),n=r.resolve,o=r.reject,i=Pa((function(){var r=K(e.resolve),i=[],a=0,u=1,s=!1;qt(t,(function(t){var c=a++,f=!1;i.push(void 0),u++,r.call(e,t).then((function(t){f||s||(s=!0,n(t))}),(function(t){f||s||(f=!0,i[c]=t,--u||o(new(Ce("AggregateError"))(i,"No one promise resolved")))}))})),--u||o(new(Ce("AggregateError"))(i,"No one promise resolved"))}));return i.error&&o(i.value),r.promise}});var Ka=!!Ti&&A((function(){Ti.prototype.finally.call({then:function(){}},(function(){}))}));at({target:"Promise",proto:!0,real:!0,forced:Ka},{finally:function(t){var e=Gi(this,Ce("Promise")),r="function"==typeof t;return this.then(r?function(r){return xa(e,t()).then((function(){return r}))}:t,r?function(r){return xa(e,t()).then((function(){throw r}))}:t)}});var Xa=Z.Promise,tu=Ce("JSON","stringify"),eu=/[\uD800-\uDFFF]/g,ru=/^[\uD800-\uDBFF]$/,nu=/^[\uDC00-\uDFFF]$/,ou=function(t,e,r){var n=r.charAt(e-1),o=r.charAt(e+1);return ru.test(t)&&!nu.test(o)||nu.test(t)&&!ru.test(n)?"\\u"+t.charCodeAt(0).toString(16):t},iu=A((function(){return'"\\udf06\\ud834"'!==tu("\udf06\ud834")||'"\\udead"'!==tu("\udead")}));tu&&at({target:"JSON",stat:!0,forced:iu},{stringify:function(t,e,r){var n=tu.apply(null,arguments);return"string"==typeof n?n.replace(eu,ou):n}}),Z.JSON||(Z.JSON={stringify:JSON.stringify});var au=function(t,e,r){return Z.JSON.stringify.apply(null,arguments)};const uu=v.default.join(__dirname,"./temp");d.default.mkdirSync(uu,{recursive:!0});const su={readFile(t){try{return d.default.readFileSync(v.default.join(uu,t),{encoding:"utf-8"})}catch(t){return""}},writeFile(t,e){try{return d.default.writeFileSync(v.default.join(uu,t),e,{encoding:"utf-8"}),!0}catch(t){return!1}},readJSON(t){try{return JSON.parse(d.default.readFileSync(v.default.join(uu,t),{encoding:"utf-8"}))}catch(t){return{}}},writeJSON(t,e){try{return d.default.writeFileSync(v.default.join(uu,t),au(e),{encoding:"utf-8"}),!0}catch(t){return!1}},exists(t){try{return d.default.accessSync(v.default.join(uu,t)),!0}catch(t){return!1}},delete(t){if(!su.exists(t))return!0;try{return d.default.unlinkSync(v.default.join(uu,t)),!0}catch(t){return!1}},getAbsPath:t=>v.default.join(uu,t)};var cu=Ri;at({target:"Object",stat:!0,forced:!O,sham:!O},{defineProperties:Re});var fu=w((function(t){var e=Z.Object,r=t.exports=function(t,r){return e.defineProperties(t,r)};e.defineProperties.sham&&(r.sham=!0)})),lu=Pe.concat("length","prototype"),hu={f:Object.getOwnPropertyNames||function(t){return xe(t,lu)}},pu=Ce("Reflect","ownKeys")||function(t){var e=hu.f(tt(t)),r=Ur.f;return r?e.concat(r(t)):e};at({target:"Object",stat:!0,sham:!O},{getOwnPropertyDescriptors:function(t){for(var e,r,n=L(t),o=Q.f,i=pu(n),a={},u=0;i.length>u;)void 0!==(r=o(n,e=i[u++]))&&Qr(a,e,r);return a}});var du=Z.Object.getOwnPropertyDescriptors,vu=Q.f,yu=A((function(){vu(1)}));at({target:"Object",stat:!0,forced:!O||yu,sham:!O},{getOwnPropertyDescriptor:function(t,e){return vu(L(t),e)}});var gu=w((function(t){var e=Z.Object,r=t.exports=function(t,r){return e.getOwnPropertyDescriptor(t,r)};e.getOwnPropertyDescriptor.sham&&(r.sham=!0)})),mu=Zt.filter,wu=Yr("filter"),bu=Pr("filter");at({target:"Array",proto:!0,forced:!wu||!bu},{filter:function(t){return mu(this,t,arguments.length>1?arguments[1]:void 0)}});var Su=Ir("Array").filter,Au=Array.prototype,Ou=function(t){var e=t.filter;return t===Au||t instanceof Array&&e===Au.filter?Su:e},Eu=hu.f,xu={}.toString,Pu="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],ju={f:function(t){return Pu&&"[object Window]"==xu.call(t)?function(t){try{return Eu(t)}catch(t){return Pu.slice()}}(t):Eu(L(t))}},Ru={f:bt},ku=rt.f,Cu=Zt.forEach,Iu=ae("hidden"),Tu=bt("toPrimitive"),Lu=de.set,Fu=de.getterFor("Symbol"),Du=Object.prototype,Uu=S.Symbol,Mu=Ce("JSON","stringify"),Nu=Q.f,qu=rt.f,Bu=ju.f,Gu=P.f,Vu=dt("symbols"),Qu=dt("op-symbols"),zu=dt("string-to-symbol-registry"),Hu=dt("symbol-to-string-registry"),Wu=dt("wks"),$u=S.QObject,_u=!$u||!$u.prototype||!$u.prototype.findChild,Ju=O&&A((function(){return 7!=qe(qu({},"a",{get:function(){return qu(this,"a",{value:7}).a}})).a}))?function(t,e,r){var n=Nu(Du,e);