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