(()=>{var p={96:(p,e,a)=>{function d(p){return p&&p.default||p}p.exports=global.fetch=global.fetch||("undefined"==typeof process?d(a(762)):function(p,e){return d(a(482))(String(p).replace(/^\/\//g,"https://"),e)})},159:(p,e,a)=>{"use strict";var d=a(477),m=a(941),i={TRANSITIONAL:0,NONTRANSITIONAL:1};function l(p){return p.split("\0").map((function(p){return p.normalize("NFC")})).join("\0")}function t(p){for(var e=0,a=m.length-1;e<=a;){var d=Math.floor((e+a)/2),i=m[d];if(i[0][0]<=p&&i[0][1]>=p)return i;i[0][0]>p?a=d-1:e=d+1}return null}var s=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g;function o(p){return p.replace(s,"_").length}var r=/[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08E4-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C03\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D01-\u0D03\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D82\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EB9\u0EBB\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u18A9\u1920-\u192B\u1930-\u193B\u19B0-\u19C0\u19C8\u19C9\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F\u1AB0-\u1ABE\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF2-\u1CF4\u1CF8\u1CF9\u1DC0-\u1DF5\u1DFC-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA880\uA881\uA8B4-\uA8C4\uA8E0-\uA8F1\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2D]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD804[\uDC00-\uDC02\uDC38-\uDC46\uDC7F-\uDC82\uDCB0-\uDCBA\uDD00-\uDD02\uDD27-\uDD34\uDD73\uDD80-\uDD82\uDDB3-\uDDC0\uDE2C-\uDE37\uDEDF-\uDEEA\uDF01-\uDF03\uDF3C\uDF3E-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF57\uDF62\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDCB0-\uDCC3\uDDAF-\uDDB5\uDDB8-\uDDC0\uDE30-\uDE40\uDEAB-\uDEB7]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDF51-\uDF7E\uDF8F-\uDF92]|\uD82F[\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD83A[\uDCD0-\uDCD6]|\uDB40[\uDD00-\uDDEF]/;function n(p,e){"xn--"===p.substr(0,4)&&(p=d.toUnicode(p));var a=!1;(l(p)!==p||"-"===p[3]&&"-"===p[4]||"-"===p[0]||"-"===p[p.length-1]||-1!==p.indexOf(".")||0===p.search(r))&&(a=!0);for(var m=o(p),s=0;s253||0===t.length)&&(i.error=!0);for(var s=0;s63||0===l.length){i.error=!0;break}}return i.error?null:l.join(".")},p.exports.toUnicode=function(p,e){var a=v(p,e,i.NONTRANSITIONAL);return{domain:a.string,error:a.error}},p.exports.PROCESSING_OPTIONS=i},762:(p,e,a)=>{"use strict";function d(p,e){return e=e||{},new Promise((function(a,d){var m=new XMLHttpRequest,i=[],l=[],t={},s=function(){return{ok:2==(m.status/100|0),statusText:m.statusText,status:m.status,url:m.responseURL,text:function(){return Promise.resolve(m.responseText)},json:function(){return Promise.resolve(m.responseText).then(JSON.parse)},blob:function(){return Promise.resolve(new Blob([m.response]))},clone:s,headers:{keys:function(){return i},entries:function(){return l},get:function(p){return t[p.toLowerCase()]},has:function(p){return p.toLowerCase()in t}}}};for(var o in m.open(e.method||"get",p,!0),m.onload=function(){m.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,(function(p,e,a){i.push(e=e.toLowerCase()),l.push([e,a]),t[e]=t[e]?t[e]+","+a:a})),a(s())},m.onerror=d,m.withCredentials="include"==e.credentials,e.headers)m.setRequestHeader(o,e.headers[o]);m.send(e.body||null)}))}a.r(e),a.d(e,{default:()=>d})},824:p=>{"use strict";var e={};function a(p){return p<0?-1:1}function d(p,e){e.unsigned||--p;const d=e.unsigned?0:-Math.pow(2,p),m=Math.pow(2,p)-1,i=e.moduloBitLength?Math.pow(2,e.moduloBitLength):Math.pow(2,p),l=e.moduloBitLength?Math.pow(2,e.moduloBitLength-1):Math.pow(2,p-1);return function(p,t){t||(t={});let s=+p;if(t.enforceRange){if(!Number.isFinite(s))throw new TypeError("Argument is not a finite number");if(s=a(s)*Math.floor(Math.abs(s)),sm)throw new TypeError("Argument is not in byte range");return s}if(!isNaN(s)&&t.clamp)return s=function(p){return p%1==.5&&0==(1&p)?Math.floor(p):Math.round(p)}(s),sm&&(s=m),s;if(!Number.isFinite(s)||0===s)return 0;if(s=a(s)*Math.floor(Math.abs(s)),s%=i,!e.unsigned&&s>=l)return s-i;if(e.unsigned)if(s<0)s+=i;else if(-0===s)return 0;return s}}p.exports=e,e.void=function(){},e.boolean=function(p){return!!p},e.byte=d(8,{unsigned:!1}),e.octet=d(8,{unsigned:!0}),e.short=d(16,{unsigned:!1}),e["unsigned short"]=d(16,{unsigned:!0}),e.long=d(32,{unsigned:!1}),e["unsigned long"]=d(32,{unsigned:!0}),e["long long"]=d(32,{unsigned:!1,moduloBitLength:64}),e["unsigned long long"]=d(32,{unsigned:!0,moduloBitLength:64}),e.double=function(p){const e=+p;if(!Number.isFinite(e))throw new TypeError("Argument is not a finite floating-point value");return e},e["unrestricted double"]=function(p){const e=+p;if(isNaN(e))throw new TypeError("Argument is NaN");return e},e.float=e.double,e["unrestricted float"]=e["unrestricted double"],e.DOMString=function(p,e){return e||(e={}),e.treatNullAsEmptyString&&null===p?"":String(p)},e.ByteString=function(p,e){const a=String(p);let d;for(let p=0;void 0!==(d=a.codePointAt(p));++p)if(d>255)throw new TypeError("Argument is not a valid bytestring");return a},e.USVString=function(p){const e=String(p),a=e.length,d=[];for(let p=0;p57343)d.push(String.fromCodePoint(m));else if(56320<=m&&m<=57343)d.push(String.fromCodePoint(65533));else if(p===a-1)d.push(String.fromCodePoint(65533));else{const a=e.charCodeAt(p+1);if(56320<=a&&a<=57343){const e=1023&m,i=1023&a;d.push(String.fromCodePoint(65536+1024*e+i)),++p}else d.push(String.fromCodePoint(65533))}}return d.join("")},e.Date=function(p,e){if(!(p instanceof Date))throw new TypeError("Argument is not a Date object");if(!isNaN(p))return p},e.RegExp=function(p,e){return p instanceof RegExp||(p=new RegExp(p)),p}},557:(p,e,a)=>{"use strict";const d=a(216);e.implementation=class{constructor(p){const e=p[0],a=p[1];let m=null;if(void 0!==a&&(m=d.basicURLParse(a),"failure"===m))throw new TypeError("Invalid base URL");const i=d.basicURLParse(e,{baseURL:m});if("failure"===i)throw new TypeError("Invalid URL");this._url=i}get href(){return d.serializeURL(this._url)}set href(p){const e=d.basicURLParse(p);if("failure"===e)throw new TypeError("Invalid URL");this._url=e}get origin(){return d.serializeURLOrigin(this._url)}get protocol(){return this._url.scheme+":"}set protocol(p){d.basicURLParse(p+":",{url:this._url,stateOverride:"scheme start"})}get username(){return this._url.username}set username(p){d.cannotHaveAUsernamePasswordPort(this._url)||d.setTheUsername(this._url,p)}get password(){return this._url.password}set password(p){d.cannotHaveAUsernamePasswordPort(this._url)||d.setThePassword(this._url,p)}get host(){const p=this._url;return null===p.host?"":null===p.port?d.serializeHost(p.host):d.serializeHost(p.host)+":"+d.serializeInteger(p.port)}set host(p){this._url.cannotBeABaseURL||d.basicURLParse(p,{url:this._url,stateOverride:"host"})}get hostname(){return null===this._url.host?"":d.serializeHost(this._url.host)}set hostname(p){this._url.cannotBeABaseURL||d.basicURLParse(p,{url:this._url,stateOverride:"hostname"})}get port(){return null===this._url.port?"":d.serializeInteger(this._url.port)}set port(p){d.cannotHaveAUsernamePasswordPort(this._url)||(""===p?this._url.port=null:d.basicURLParse(p,{url:this._url,stateOverride:"port"}))}get pathname(){return this._url.cannotBeABaseURL?this._url.path[0]:0===this._url.path.length?"":"/"+this._url.path.join("/")}set pathname(p){this._url.cannotBeABaseURL||(this._url.path=[],d.basicURLParse(p,{url:this._url,stateOverride:"path start"}))}get search(){return null===this._url.query||""===this._url.query?"":"?"+this._url.query}set search(p){const e=this._url;if(""===p)return void(e.query=null);const a="?"===p[0]?p.substring(1):p;e.query="",d.basicURLParse(a,{url:e,stateOverride:"query"})}get hash(){return null===this._url.fragment||""===this._url.fragment?"":"#"+this._url.fragment}set hash(p){if(""===p)return void(this._url.fragment=null);const e="#"===p[0]?p.substring(1):p;this._url.fragment="",d.basicURLParse(e,{url:this._url,stateOverride:"fragment"})}toJSON(){return this.href}}},29:(p,e,a)=>{"use strict";const d=a(824),m=a(587),i=a(557),l=m.implSymbol;function t(e){if(!this||this[l]||!(this instanceof t))throw new TypeError("Failed to construct 'URL': Please use the 'new' operator, this DOM object constructor cannot be called as a function.");if(arguments.length<1)throw new TypeError("Failed to construct 'URL': 1 argument required, but only "+arguments.length+" present.");const a=[];for(let p=0;p!!p&&p[l]instanceof i.implementation,create(p,e){let a=Object.create(t.prototype);return this.setup(a,p,e),a},setup(p,e,a){a||(a={}),a.wrapper=p,p[l]=new i.implementation(e,a),p[l][m.wrapperSymbol]=p},interface:t,expose:{Window:{URL:t},Worker:{URL:t}}}},658:(p,e,a)=>{"use strict";e.URL=a(29).interface,a(216).serializeURL,a(216).serializeURLOrigin,a(216).basicURLParse,a(216).setTheUsername,a(216).setThePassword,a(216).serializeHost,a(216).serializeInteger,a(216).parseURL},216:(p,e,a)=>{"use strict";const d=a(477),m=a(159),i={ftp:21,file:null,gopher:70,http:80,https:443,ws:80,wss:443},l=Symbol("failure");function t(p){return d.ucs2.decode(p).length}function s(p,e){const a=p[e];return isNaN(a)?void 0:String.fromCodePoint(a)}function o(p){return p>=48&&p<=57}function r(p){return p>=65&&p<=90||p>=97&&p<=122}function n(p){return o(p)||p>=65&&p<=70||p>=97&&p<=102}function v(p){return"."===p||"%2e"===p.toLowerCase()}function u(p){return 2===p.length&&r(p.codePointAt(0))&&(":"===p[1]||"|"===p[1])}function c(p){return void 0!==i[p]}function h(p){return c(p.scheme)}function w(p){let e=p.toString(16).toUpperCase();return 1===e.length&&(e="0"+e),"%"+e}function f(p){return p<=31||p>126}const _=new Set([32,34,35,60,62,63,96,123,125]);function N(p){return f(p)||_.has(p)}const b=new Set([47,58,59,61,64,91,92,93,94,124]);function g(p){return N(p)||b.has(p)}function D(p,e){const a=String.fromCodePoint(p);return e(p)?function(p){const e=new Buffer(p);let a="";for(let p=0;p=2&&"0"===p.charAt(0)&&"x"===p.charAt(1).toLowerCase()?(p=p.substring(2),e=16):p.length>=2&&"0"===p.charAt(0)&&(p=p.substring(1),e=8),""===p?0:(10===e?/[^0-9]/:16===e?/[^0-9A-Fa-f]/:/[^0-7]/).test(p)?l:parseInt(p,e)}function S(p,e){if("["===p[0])return"]"!==p[p.length-1]?l:function(p){const e=[0,0,0,0,0,0,0,0];let a=0,m=null,i=0;if(58===(p=d.ucs2.decode(p))[i]){if(58!==p[i+1])return l;i+=2,++a,m=a}for(;i6)return l;let d=0;for(;void 0!==p[i];){let m=null;if(d>0){if(!(46===p[i]&&d<4))return l;++i}if(!o(p[i]))return l;for(;o(p[i]);){const e=parseInt(s(p,i));if(null===m)m=e;else{if(0===m)return l;m=10*m+e}if(m>255)return l;++i}e[a]=256*e[a]+m,++d,2!==d&&4!==d||++a}if(4!==d)return l;break}if(58===p[i]){if(++i,void 0===p[i])return l}else if(void 0!==p[i])return l;e[a]=d,++a}if(null!==m){let p=a-m;for(a=7;0!==a&&p>0;){const d=e[m+p-1];e[m+p-1]=e[a],e[a]=d,--a,--p}}else if(null===m&&8!==a)return l;return e}(p.substring(1,p.length-1));if(!e)return function(p){if(-1!==p.search(/\u0000|\u0009|\u000A|\u000D|\u0020|#|\/|:|\?|@|\[|\\|\]/))return l;let e="";const a=d.ucs2.decode(p);for(let p=0;p1&&e.pop(),e.length>4)return p;const a=[];for(const d of e){if(""===d)return p;const e=V(d);if(e===l)return p;a.push(e)}for(let p=0;p255)return l;if(a[a.length-1]>=Math.pow(256,5-a.length))return l;let d=a.pop(),m=0;for(const p of a)d+=p*Math.pow(256,3-m),++m;return d}(i);return"number"==typeof t||t===l?t:i}function y(p){return"number"==typeof p?function(p){let e="",a=p;for(let p=1;p<=4;++p)e=String(a%256)+e,4!==p&&(e="."+e),a=Math.floor(a/256);return e}(p):p instanceof Array?"["+function(p){let e="";const a=function(p){let e=null,a=1,d=null,m=0;for(let i=0;ia&&(e=d,a=m),d=null,m=0):(null===d&&(d=i),++m);return m>a&&(e=d,a=m),{idx:e,len:a}}(p).idx;let d=!1;for(let m=0;m<=7;++m)d&&0===p[m]||(d&&(d=!1),a!==m?(e+=p[m].toString(16),7!==m&&(e+=":")):(e+=0===m?"::":":",d=!0));return e}(p)+"]":p}function T(p){const e=p.path;var a;0!==e.length&&("file"===p.scheme&&1===e.length&&(a=e[0],/^[A-Za-z]:$/.test(a))||e.pop())}function P(p){return""!==p.username||""!==p.password}function C(p,e,a,m,i){if(this.pointer=0,this.input=p,this.base=e||null,this.encodingOverride=a||"utf-8",this.stateOverride=i,this.url=m,this.failure=!1,this.parseError=!1,!this.url){this.url={scheme:"",username:"",password:"",host:null,port:null,path:[],query:null,fragment:null,cannotBeABaseURL:!1};const p=function(p){return p.replace(/^[\u0000-\u001F\u0020]+|[\u0000-\u001F\u0020]+$/g,"")}(this.input);p!==this.input&&(this.parseError=!0),this.input=p}const t=function(p){return p.replace(/\u0009|\u000A|\u000D/g,"")}(this.input);for(t!==this.input&&(this.parseError=!0),this.input=t,this.state=i||"scheme start",this.buffer="",this.atFlag=!1,this.arrFlag=!1,this.passwordTokenSeenFlag=!1,this.input=d.ucs2.decode(this.input);this.pointer<=this.input.length;++this.pointer){const p=this.input[this.pointer],e=isNaN(p)?void 0:String.fromCodePoint(p),a=this["parse "+this.state](p,e);if(!a)break;if(a===l){this.failure=!0;break}}}C.prototype["parse scheme start"]=function(p,e){if(r(p))this.buffer+=e.toLowerCase(),this.state="scheme";else{if(this.stateOverride)return this.parseError=!0,l;this.state="no scheme",--this.pointer}return!0},C.prototype["parse scheme"]=function(p,e){if(function(p){return r(p)||o(p)}(p)||43===p||45===p||46===p)this.buffer+=e.toLowerCase();else if(58===p){if(this.stateOverride){if(h(this.url)&&!c(this.buffer))return!1;if(!h(this.url)&&c(this.buffer))return!1;if((P(this.url)||null!==this.url.port)&&"file"===this.buffer)return!1;if("file"===this.url.scheme&&(""===this.url.host||null===this.url.host))return!1}if(this.url.scheme=this.buffer,this.buffer="",this.stateOverride)return!1;"file"===this.url.scheme?(47===this.input[this.pointer+1]&&47===this.input[this.pointer+2]||(this.parseError=!0),this.state="file"):h(this.url)&&null!==this.base&&this.base.scheme===this.url.scheme?this.state="special relative or authority":h(this.url)?this.state="special authority slashes":47===this.input[this.pointer+1]?(this.state="path or authority",++this.pointer):(this.url.cannotBeABaseURL=!0,this.url.path.push(""),this.state="cannot-be-a-base-URL path")}else{if(this.stateOverride)return this.parseError=!0,l;this.buffer="",this.state="no scheme",this.pointer=-1}return!0},C.prototype["parse no scheme"]=function(p){return null===this.base||this.base.cannotBeABaseURL&&35!==p?l:(this.base.cannotBeABaseURL&&35===p?(this.url.scheme=this.base.scheme,this.url.path=this.base.path.slice(),this.url.query=this.base.query,this.url.fragment="",this.url.cannotBeABaseURL=!0,this.state="fragment"):"file"===this.base.scheme?(this.state="file",--this.pointer):(this.state="relative",--this.pointer),!0)},C.prototype["parse special relative or authority"]=function(p){return 47===p&&47===this.input[this.pointer+1]?(this.state="special authority ignore slashes",++this.pointer):(this.parseError=!0,this.state="relative",--this.pointer),!0},C.prototype["parse path or authority"]=function(p){return 47===p?this.state="authority":(this.state="path",--this.pointer),!0},C.prototype["parse relative"]=function(p){return this.url.scheme=this.base.scheme,isNaN(p)?(this.url.username=this.base.username,this.url.password=this.base.password,this.url.host=this.base.host,this.url.port=this.base.port,this.url.path=this.base.path.slice(),this.url.query=this.base.query):47===p?this.state="relative slash":63===p?(this.url.username=this.base.username,this.url.password=this.base.password,this.url.host=this.base.host,this.url.port=this.base.port,this.url.path=this.base.path.slice(),this.url.query="",this.state="query"):35===p?(this.url.username=this.base.username,this.url.password=this.base.password,this.url.host=this.base.host,this.url.port=this.base.port,this.url.path=this.base.path.slice(),this.url.query=this.base.query,this.url.fragment="",this.state="fragment"):h(this.url)&&92===p?(this.parseError=!0,this.state="relative slash"):(this.url.username=this.base.username,this.url.password=this.base.password,this.url.host=this.base.host,this.url.port=this.base.port,this.url.path=this.base.path.slice(0,this.base.path.length-1),this.state="path",--this.pointer),!0},C.prototype["parse relative slash"]=function(p){return!h(this.url)||47!==p&&92!==p?47===p?this.state="authority":(this.url.username=this.base.username,this.url.password=this.base.password,this.url.host=this.base.host,this.url.port=this.base.port,this.state="path",--this.pointer):(92===p&&(this.parseError=!0),this.state="special authority ignore slashes"),!0},C.prototype["parse special authority slashes"]=function(p){return 47===p&&47===this.input[this.pointer+1]?(this.state="special authority ignore slashes",++this.pointer):(this.parseError=!0,this.state="special authority ignore slashes",--this.pointer),!0},C.prototype["parse special authority ignore slashes"]=function(p){return 47!==p&&92!==p?(this.state="authority",--this.pointer):this.parseError=!0,!0},C.prototype["parse authority"]=function(p,e){if(64===p){this.parseError=!0,this.atFlag&&(this.buffer="%40"+this.buffer),this.atFlag=!0;const p=t(this.buffer);for(let e=0;eMath.pow(2,16)-1)return this.parseError=!0,l;this.url.port=p===(a=this.url.scheme,i[a])?null:p,this.buffer=""}if(this.stateOverride)return!1;this.state="path start",--this.pointer}var a;return!0};const A=new Set([47,92,63,35]);C.prototype["parse file"]=function(p){var e,a;return this.url.scheme="file",47===p||92===p?(92===p&&(this.parseError=!0),this.state="file slash"):null!==this.base&&"file"===this.base.scheme?isNaN(p)?(this.url.host=this.base.host,this.url.path=this.base.path.slice(),this.url.query=this.base.query):63===p?(this.url.host=this.base.host,this.url.path=this.base.path.slice(),this.url.query="",this.state="query"):35===p?(this.url.host=this.base.host,this.url.path=this.base.path.slice(),this.url.query=this.base.query,this.url.fragment="",this.state="fragment"):(this.input.length-this.pointer-1==0||(e=p,a=this.input[this.pointer+1],!r(e)||58!==a&&124!==a)||this.input.length-this.pointer-1>=2&&!A.has(this.input[this.pointer+2])?(this.url.host=this.base.host,this.url.path=this.base.path.slice(),T(this.url)):this.parseError=!0,this.state="path",--this.pointer):(this.state="path",--this.pointer),!0},C.prototype["parse file slash"]=function(p){var e;return 47===p||92===p?(92===p&&(this.parseError=!0),this.state="file host"):(null!==this.base&&"file"===this.base.scheme&&(2===(e=this.base.path[0]).length&&r(e.codePointAt(0))&&":"===e[1]?this.url.path.push(this.base.path[0]):this.url.host=this.base.host),this.state="path",--this.pointer),!0},C.prototype["parse file host"]=function(p,e){if(isNaN(p)||47===p||92===p||63===p||35===p)if(--this.pointer,!this.stateOverride&&u(this.buffer))this.parseError=!0,this.state="path";else if(""===this.buffer){if(this.url.host="",this.stateOverride)return!1;this.state="path start"}else{let p=S(this.buffer,h(this.url));if(p===l)return l;if("localhost"===p&&(p=""),this.url.host=p,this.stateOverride)return!1;this.buffer="",this.state="path start"}else this.buffer+=e;return!0},C.prototype["parse path start"]=function(p){return h(this.url)?(92===p&&(this.parseError=!0),this.state="path",47!==p&&92!==p&&--this.pointer):this.stateOverride||63!==p?this.stateOverride||35!==p?void 0!==p&&(this.state="path",47!==p&&--this.pointer):(this.url.fragment="",this.state="fragment"):(this.url.query="",this.state="query"),!0},C.prototype["parse path"]=function(p){if(isNaN(p)||47===p||h(this.url)&&92===p||!this.stateOverride&&(63===p||35===p)){if(h(this.url)&&92===p&&(this.parseError=!0),".."===(e=(e=this.buffer).toLowerCase())||"%2e."===e||".%2e"===e||"%2e%2e"===e?(T(this.url),47===p||h(this.url)&&92===p||this.url.path.push("")):!v(this.buffer)||47===p||h(this.url)&&92===p?v(this.buffer)||("file"===this.url.scheme&&0===this.url.path.length&&u(this.buffer)&&(""!==this.url.host&&null!==this.url.host&&(this.parseError=!0,this.url.host=""),this.buffer=this.buffer[0]+":"),this.url.path.push(this.buffer)):this.url.path.push(""),this.buffer="","file"===this.url.scheme&&(void 0===p||63===p||35===p))for(;this.url.path.length>1&&""===this.url.path[0];)this.parseError=!0,this.url.path.shift();63===p&&(this.url.query="",this.state="query"),35===p&&(this.url.fragment="",this.state="fragment")}else 37!==p||n(this.input[this.pointer+1])&&n(this.input[this.pointer+2])||(this.parseError=!0),this.buffer+=D(p,N);var e;return!0},C.prototype["parse cannot-be-a-base-URL path"]=function(p){return 63===p?(this.url.query="",this.state="query"):35===p?(this.url.fragment="",this.state="fragment"):(isNaN(p)||37===p||(this.parseError=!0),37!==p||n(this.input[this.pointer+1])&&n(this.input[this.pointer+2])||(this.parseError=!0),isNaN(p)||(this.url.path[0]=this.url.path[0]+D(p,f))),!0},C.prototype["parse query"]=function(p,e){if(isNaN(p)||!this.stateOverride&&35===p){h(this.url)&&"ws"!==this.url.scheme&&"wss"!==this.url.scheme||(this.encodingOverride="utf-8");const e=new Buffer(this.buffer);for(let p=0;p126||34===e[p]||35===e[p]||60===e[p]||62===e[p]?this.url.query+=w(e[p]):this.url.query+=String.fromCodePoint(e[p]);this.buffer="",35===p&&(this.url.fragment="",this.state="fragment")}else 37!==p||n(this.input[this.pointer+1])&&n(this.input[this.pointer+2])||(this.parseError=!0),this.buffer+=e;return!0},C.prototype["parse fragment"]=function(p){return isNaN(p)||(0===p?this.parseError=!0:(37!==p||n(this.input[this.pointer+1])&&n(this.input[this.pointer+2])||(this.parseError=!0),this.url.fragment+=D(p,f))),!0},p.exports.serializeURL=function(p,e){let a=p.scheme+":";if(null!==p.host?(a+="//",""===p.username&&""===p.password||(a+=p.username,""!==p.password&&(a+=":"+p.password),a+="@"),a+=y(p.host),null!==p.port&&(a+=":"+p.port)):null===p.host&&"file"===p.scheme&&(a+="//"),p.cannotBeABaseURL)a+=p.path[0];else for(const e of p.path)a+="/"+e;return null!==p.query&&(a+="?"+p.query),e||null===p.fragment||(a+="#"+p.fragment),a},p.exports.serializeURLOrigin=function(e){switch(e.scheme){case"blob":try{return p.exports.serializeURLOrigin(p.exports.parseURL(e.path[0]))}catch(p){return"null"}case"ftp":case"gopher":case"http":case"https":case"ws":case"wss":return function(p){let e=p.scheme+"://";return e+=y(p.host),null!==p.port&&(e+=":"+p.port),e}({scheme:e.scheme,host:e.host,port:e.port});case"file":return"file://";default:return"null"}},p.exports.basicURLParse=function(p,e){void 0===e&&(e={});const a=new C(p,e.baseURL,e.encodingOverride,e.url,e.stateOverride);return a.failure?"failure":a.url},p.exports.setTheUsername=function(p,e){p.username="";const a=d.ucs2.decode(e);for(let e=0;e{"use strict";p.exports.mixin=function(p,e){const a=Object.getOwnPropertyNames(e);for(let d=0;d{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.once=e.toggleInSet=e.removeFromSet=e.addToSet=e.binarySearch=void 0,e.binarySearch=function(p,e){let a=0,d=p.length-1;for(;a<=d;){const m=(a+d)/2|0,i=e(p[m]);if(i<0)a=m+1;else{if(!(i>0))return m;d=m-1}}return-(a+1)},e.addToSet=(p,e)=>{const a=new Set([...p,e]);return a.add(e),a},e.removeFromSet=(p,e)=>{const a=new Set([...p]);return a.delete(e),a},e.toggleInSet=(p,e)=>{const a=new Set([...p]);return a.has(e)?a.delete(e):a.add(e),a};const a=Symbol("unset");e.once=p=>{let e=a;return()=>(e===a&&(e=p()),e)}},85:(p,e,a)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.bundlePage=void 0;const d=a(412);e.bundlePage=async(p,e)=>{const a=(0,d.makeNonce)();return`\n \n \n \n \n ${(0,d.nonceHeader)(a)}\n Profile Custom Editor\n \n \n